Files
stackpulse/backend/public/assets/index-ad90a034.js
T
2025-10-16 20:00:39 +00:00

782 lines
1.4 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function N2(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const f of l.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();function Xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ll(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var Yx={exports:{}},ud={},Gx={exports:{}},Tt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jl=Symbol.for("react.element"),I2=Symbol.for("react.portal"),L2=Symbol.for("react.fragment"),j2=Symbol.for("react.strict_mode"),D2=Symbol.for("react.profiler"),z2=Symbol.for("react.provider"),F2=Symbol.for("react.context"),V2=Symbol.for("react.forward_ref"),W2=Symbol.for("react.suspense"),B2=Symbol.for("react.memo"),H2=Symbol.for("react.lazy"),nm=Symbol.iterator;function X2(e){return e===null||typeof e!="object"?null:(e=nm&&e[nm]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$x=Object.assign,qx={};function es(e,t,r){this.props=e,this.context=t,this.refs=qx,this.updater=r||Ux}es.prototype.isReactComponent={};es.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")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kx(){}Kx.prototype=es.prototype;function cg(e,t,r){this.props=e,this.context=t,this.refs=qx,this.updater=r||Ux}var dg=cg.prototype=new Kx;dg.constructor=cg;$x(dg,es.prototype);dg.isPureReactComponent=!0;var om=Array.isArray,Zx=Object.prototype.hasOwnProperty,fg={current:null},Qx={key:!0,ref:!0,__self:!0,__source:!0};function Jx(e,t,r){var a,s={},l=null,f=null;if(t!=null)for(a in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(l=""+t.key),t)Zx.call(t,a)&&!Qx.hasOwnProperty(a)&&(s[a]=t[a]);var b=arguments.length-2;if(b===1)s.children=r;else if(1<b){for(var S=Array(b),T=0;T<b;T++)S[T]=arguments[T+2];s.children=S}if(e&&e.defaultProps)for(a in b=e.defaultProps,b)s[a]===void 0&&(s[a]=b[a]);return{$$typeof:jl,type:e,key:l,ref:f,props:s,_owner:fg.current}}function Y2(e,t){return{$$typeof:jl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pg(e){return typeof e=="object"&&e!==null&&e.$$typeof===jl}function G2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var am=/\/+/g;function Vf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G2(""+e.key):t.toString(36)}function Fu(e,t,r,a,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case jl:case I2:f=!0}}if(f)return f=e,s=s(f),e=a===""?"."+Vf(f,0):a,om(s)?(r="",e!=null&&(r=e.replace(am,"$&/")+"/"),Fu(s,t,r,"",function(T){return T})):s!=null&&(pg(s)&&(s=Y2(s,r+(!s.key||f&&f.key===s.key?"":(""+s.key).replace(am,"$&/")+"/")+e)),t.push(s)),1;if(f=0,a=a===""?".":a+":",om(e))for(var b=0;b<e.length;b++){l=e[b];var S=a+Vf(l,b);f+=Fu(l,t,r,S,s)}else if(S=X2(e),typeof S=="function")for(e=S.call(e),b=0;!(l=e.next()).done;)l=l.value,S=a+Vf(l,b++),f+=Fu(l,t,r,S,s);else if(l==="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 f}function hu(e,t,r){if(e==null)return e;var a=[],s=0;return Fu(e,a,"","",function(l){return t.call(r,l,s++)}),a}function U2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dr={current:null},Vu={transition:null},$2={ReactCurrentDispatcher:Dr,ReactCurrentBatchConfig:Vu,ReactCurrentOwner:fg};Tt.Children={map:hu,forEach:function(e,t,r){hu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return hu(e,function(){t++}),t},toArray:function(e){return hu(e,function(t){return t})||[]},only:function(e){if(!pg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tt.Component=es;Tt.Fragment=L2;Tt.Profiler=D2;Tt.PureComponent=cg;Tt.StrictMode=j2;Tt.Suspense=W2;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$2;Tt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=$x({},e.props),s=e.key,l=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,f=fg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var b=e.type.defaultProps;for(S in t)Zx.call(t,S)&&!Qx.hasOwnProperty(S)&&(a[S]=t[S]===void 0&&b!==void 0?b[S]:t[S])}var S=arguments.length-2;if(S===1)a.children=r;else if(1<S){b=Array(S);for(var T=0;T<S;T++)b[T]=arguments[T+2];a.children=b}return{$$typeof:jl,type:e.type,key:s,ref:l,props:a,_owner:f}};Tt.createContext=function(e){return e={$$typeof:F2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:z2,_context:e},e.Consumer=e};Tt.createElement=Jx;Tt.createFactory=function(e){var t=Jx.bind(null,e);return t.type=e,t};Tt.createRef=function(){return{current:null}};Tt.forwardRef=function(e){return{$$typeof:V2,render:e}};Tt.isValidElement=pg;Tt.lazy=function(e){return{$$typeof:H2,_payload:{_status:-1,_result:e},_init:U2}};Tt.memo=function(e,t){return{$$typeof:B2,type:e,compare:t===void 0?null:t}};Tt.startTransition=function(e){var t=Vu.transition;Vu.transition={};try{e()}finally{Vu.transition=t}};Tt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Tt.useCallback=function(e,t){return Dr.current.useCallback(e,t)};Tt.useContext=function(e){return Dr.current.useContext(e)};Tt.useDebugValue=function(){};Tt.useDeferredValue=function(e){return Dr.current.useDeferredValue(e)};Tt.useEffect=function(e,t){return Dr.current.useEffect(e,t)};Tt.useId=function(){return Dr.current.useId()};Tt.useImperativeHandle=function(e,t,r){return Dr.current.useImperativeHandle(e,t,r)};Tt.useInsertionEffect=function(e,t){return Dr.current.useInsertionEffect(e,t)};Tt.useLayoutEffect=function(e,t){return Dr.current.useLayoutEffect(e,t)};Tt.useMemo=function(e,t){return Dr.current.useMemo(e,t)};Tt.useReducer=function(e,t,r){return Dr.current.useReducer(e,t,r)};Tt.useRef=function(e){return Dr.current.useRef(e)};Tt.useState=function(e){return Dr.current.useState(e)};Tt.useSyncExternalStore=function(e,t,r){return Dr.current.useSyncExternalStore(e,t,r)};Tt.useTransition=function(){return Dr.current.useTransition()};Tt.version="18.2.0";Gx.exports=Tt;var ee=Gx.exports;const ln=Xx(ee),hg=N2({__proto__:null,default:ln},[ee]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q2=ee,K2=Symbol.for("react.element"),Z2=Symbol.for("react.fragment"),Q2=Object.prototype.hasOwnProperty,J2=q2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eE={key:!0,ref:!0,__self:!0,__source:!0};function ew(e,t,r){var a,s={},l=null,f=null;r!==void 0&&(l=""+r),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(f=t.ref);for(a in t)Q2.call(t,a)&&!eE.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)s[a]===void 0&&(s[a]=t[a]);return{$$typeof:K2,type:e,key:l,ref:f,props:s,_owner:J2.current}}ud.Fragment=Z2;ud.jsx=ew;ud.jsxs=ew;Yx.exports=ud;var he=Yx.exports,Lp={},tw={exports:{}},dn={},rw={exports:{}},nw={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(be,ue){var ge=be.length;be.push(ue);e:for(;0<ge;){var ye=ge-1>>>1,_e=be[ye];if(0<s(_e,ue))be[ye]=ue,be[ge]=_e,ge=ye;else break e}}function r(be){return be.length===0?null:be[0]}function a(be){if(be.length===0)return null;var ue=be[0],ge=be.pop();if(ge!==ue){be[0]=ge;e:for(var ye=0,_e=be.length,Ee=_e>>>1;ye<Ee;){var Ne=2*(ye+1)-1,Le=be[Ne],Pe=Ne+1,Xe=be[Pe];if(0>s(Le,ge))Pe<_e&&0>s(Xe,Le)?(be[ye]=Xe,be[Pe]=ge,ye=Pe):(be[ye]=Le,be[Ne]=ge,ye=Ne);else if(Pe<_e&&0>s(Xe,ge))be[ye]=Xe,be[Pe]=ge,ye=Pe;else break e}}return ue}function s(be,ue){var ge=be.sortIndex-ue.sortIndex;return ge!==0?ge:be.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var f=Date,b=f.now();e.unstable_now=function(){return f.now()-b}}var S=[],T=[],O=1,j=null,F=3,z=!1,D=!1,R=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(be){for(var ue=r(T);ue!==null;){if(ue.callback===null)a(T);else if(ue.startTime<=be)a(T),ue.sortIndex=ue.expirationTime,t(S,ue);else break;ue=r(T)}}function g(be){if(R=!1,v(be),!D)if(r(S)!==null)D=!0,me(m);else{var ue=r(T);ue!==null&&Se(g,ue.startTime-be)}}function m(be,ue){D=!1,R&&(R=!1,y(X),X=-1),z=!0;var ge=F;try{for(v(ue),j=r(S);j!==null&&(!(j.expirationTime>ue)||be&&!U());){var ye=j.callback;if(typeof ye=="function"){j.callback=null,F=j.priorityLevel;var _e=ye(j.expirationTime<=ue);ue=e.unstable_now(),typeof _e=="function"?j.callback=_e:j===r(S)&&a(S),v(ue)}else a(S);j=r(S)}if(j!==null)var Ee=!0;else{var Ne=r(T);Ne!==null&&Se(g,Ne.startTime-ue),Ee=!1}return Ee}finally{j=null,F=ge,z=!1}}var _=!1,M=null,X=-1,H=5,B=-1;function U(){return!(e.unstable_now()-B<H)}function K(){if(M!==null){var be=e.unstable_now();B=be;var ue=!0;try{ue=M(!0,be)}finally{ue?oe():(_=!1,M=null)}}else _=!1}var oe;if(typeof p=="function")oe=function(){p(K)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,fe=ne.port2;ne.port1.onmessage=K,oe=function(){fe.postMessage(null)}}else oe=function(){P(K,0)};function me(be){M=be,_||(_=!0,oe())}function Se(be,ue){X=P(function(){be(e.unstable_now())},ue)}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(be){be.callback=null},e.unstable_continueExecution=function(){D||z||(D=!0,me(m))},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<be?Math.floor(1e3/be):5},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return r(S)},e.unstable_next=function(be){switch(F){case 1:case 2:case 3:var ue=3;break;default:ue=F}var ge=F;F=ue;try{return be()}finally{F=ge}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(be,ue){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var ge=F;F=be;try{return ue()}finally{F=ge}},e.unstable_scheduleCallback=function(be,ue,ge){var ye=e.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?ye+ge:ye):ge=ye,be){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ge+_e,be={id:O++,callback:ue,priorityLevel:be,startTime:ge,expirationTime:_e,sortIndex:-1},ge>ye?(be.sortIndex=ge,t(T,be),r(S)===null&&be===r(T)&&(R?(y(X),X=-1):R=!0,Se(g,ge-ye))):(be.sortIndex=_e,t(S,be),D||z||(D=!0,me(m))),be},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(be){var ue=F;return function(){var ge=F;F=ue;try{return be.apply(this,arguments)}finally{F=ge}}}})(nw);rw.exports=nw;var tE=rw.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ow=ee,un=tE;function Ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 aw=new Set,sl={};function Ga(e,t){zi(e,t),zi(e+"Capture",t)}function zi(e,t){for(sl[e]=t,e=0;e<t.length;e++)aw.add(t[e])}var So=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jp=Object.prototype.hasOwnProperty,rE=/^[: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]*$/,im={},sm={};function nE(e){return jp.call(sm,e)?!0:jp.call(im,e)?!1:rE.test(e)?sm[e]=!0:(im[e]=!0,!1)}function oE(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aE(e,t,r,a){if(t===null||typeof t>"u"||oE(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.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 zr(e,t,r,a,s,l,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=f}var wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wr[e]=new zr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wr[t]=new zr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wr[e]=new zr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wr[e]=new zr(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){wr[e]=new zr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wr[e]=new zr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wr[e]=new zr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wr[e]=new zr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wr[e]=new zr(e,5,!1,e.toLowerCase(),null,!1,!1)});var gg=/[\-:]([a-z])/g;function bg(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(gg,bg);wr[t]=new zr(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(gg,bg);wr[t]=new zr(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(gg,bg);wr[t]=new zr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wr[e]=new zr(e,1,!1,e.toLowerCase(),null,!1,!1)});wr.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wr[e]=new zr(e,1,!1,e.toLowerCase(),null,!0,!0)});function vg(e,t,r,a){var s=wr.hasOwnProperty(t)?wr[t]:null;(s!==null?s.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aE(t,r,s,a)&&(r=null),a||s===null?nE(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,a=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var Ao=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gu=Symbol.for("react.element"),pi=Symbol.for("react.portal"),hi=Symbol.for("react.fragment"),mg=Symbol.for("react.strict_mode"),Dp=Symbol.for("react.profiler"),iw=Symbol.for("react.provider"),sw=Symbol.for("react.context"),yg=Symbol.for("react.forward_ref"),zp=Symbol.for("react.suspense"),Fp=Symbol.for("react.suspense_list"),xg=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),lw=Symbol.for("react.offscreen"),lm=Symbol.iterator;function Os(e){return e===null||typeof e!="object"?null:(e=lm&&e[lm]||e["@@iterator"],typeof e=="function"?e:null)}var tr=Object.assign,Wf;function Ws(e){if(Wf===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Wf=t&&t[1]||""}return`
`+Wf+e}var Bf=!1;function Hf(e,t){if(!e||Bf)return"";Bf=!0;var r=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(T){var a=T}Reflect.construct(e,[],t)}else{try{t.call()}catch(T){a=T}e.call(t.prototype)}else{try{throw Error()}catch(T){a=T}e()}}catch(T){if(T&&a&&typeof T.stack=="string"){for(var s=T.stack.split(`
`),l=a.stack.split(`
`),f=s.length-1,b=l.length-1;1<=f&&0<=b&&s[f]!==l[b];)b--;for(;1<=f&&0<=b;f--,b--)if(s[f]!==l[b]){if(f!==1||b!==1)do if(f--,b--,0>b||s[f]!==l[b]){var S=`
`+s[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=f&&0<=b);break}}}finally{Bf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ws(e):""}function iE(e){switch(e.tag){case 5:return Ws(e.type);case 16:return Ws("Lazy");case 13:return Ws("Suspense");case 19:return Ws("SuspenseList");case 0:case 2:case 15:return e=Hf(e.type,!1),e;case 11:return e=Hf(e.type.render,!1),e;case 1:return e=Hf(e.type,!0),e;default:return""}}function Vp(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 hi:return"Fragment";case pi:return"Portal";case Dp:return"Profiler";case mg:return"StrictMode";case zp:return"Suspense";case Fp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sw:return(e.displayName||"Context")+".Consumer";case iw:return(e._context.displayName||"Context")+".Provider";case yg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xg:return t=e.displayName||null,t!==null?t:Vp(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return Vp(e(t))}catch{}}return null}function sE(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 Vp(t);case 8:return t===mg?"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 la(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lE(e){var t=uw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){a=""+f,l.call(this,f)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bu(e){e._valueTracker||(e._valueTracker=lE(e))}function cw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=uw(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function fc(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 Wp(e,t){var r=t.checked;return tr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function um(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=la(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dw(e,t){t=t.checked,t!=null&&vg(e,"checked",t,!1)}function Bp(e,t){dw(e,t);var r=la(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Hp(e,t.type,la(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Hp(e,t,r){(t!=="number"||fc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Bs=Array.isArray;function _i(e,t,r,a){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&a&&(e[r].defaultSelected=!0)}else{for(r=""+la(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Xp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ge(91));return tr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function dm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ge(92));if(Bs(r)){if(1<r.length)throw Error(Ge(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:la(r)}}function fw(e,t){var r=la(t.value),a=la(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function fm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pw(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 Yp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vu,hw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vu=vu||document.createElement("div"),vu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ll(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Us={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},uE=["Webkit","ms","Moz","O"];Object.keys(Us).forEach(function(e){uE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Us[t]=Us[e]})});function gw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Us.hasOwnProperty(e)&&Us[e]?(""+t).trim():t+"px"}function bw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,s=gw(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,s):e[r]=s}}var cE=tr({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 Gp(e,t){if(t){if(cE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ge(62))}}function Up(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 $p=null;function wg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qp=null,Oi=null,Ai=null;function pm(e){if(e=Fl(e)){if(typeof qp!="function")throw Error(Ge(280));var t=e.stateNode;t&&(t=hd(t),qp(e.stateNode,e.type,t))}}function vw(e){Oi?Ai?Ai.push(e):Ai=[e]:Oi=e}function mw(){if(Oi){var e=Oi,t=Ai;if(Ai=Oi=null,pm(e),t)for(e=0;e<t.length;e++)pm(t[e])}}function yw(e,t){return e(t)}function xw(){}var Xf=!1;function ww(e,t,r){if(Xf)return e(t,r);Xf=!0;try{return yw(e,t,r)}finally{Xf=!1,(Oi!==null||Ai!==null)&&(xw(),mw())}}function ul(e,t){var r=e.stateNode;if(r===null)return null;var a=hd(r);if(a===null)return null;r=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Ge(231,t,typeof r));return r}var Kp=!1;if(So)try{var As={};Object.defineProperty(As,"passive",{get:function(){Kp=!0}}),window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{Kp=!1}function dE(e,t,r,a,s,l,f,b,S){var T=Array.prototype.slice.call(arguments,3);try{t.apply(r,T)}catch(O){this.onError(O)}}var $s=!1,pc=null,hc=!1,Zp=null,fE={onError:function(e){$s=!0,pc=e}};function pE(e,t,r,a,s,l,f,b,S){$s=!1,pc=null,dE.apply(fE,arguments)}function hE(e,t,r,a,s,l,f,b,S){if(pE.apply(this,arguments),$s){if($s){var T=pc;$s=!1,pc=null}else throw Error(Ge(198));hc||(hc=!0,Zp=T)}}function Ua(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Cw(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 hm(e){if(Ua(e)!==e)throw Error(Ge(188))}function gE(e){var t=e.alternate;if(!t){if(t=Ua(e),t===null)throw Error(Ge(188));return t!==e?null:e}for(var r=e,a=t;;){var s=r.return;if(s===null)break;var l=s.alternate;if(l===null){if(a=s.return,a!==null){r=a;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===r)return hm(s),e;if(l===a)return hm(s),t;l=l.sibling}throw Error(Ge(188))}if(r.return!==a.return)r=s,a=l;else{for(var f=!1,b=s.child;b;){if(b===r){f=!0,r=s,a=l;break}if(b===a){f=!0,a=s,r=l;break}b=b.sibling}if(!f){for(b=l.child;b;){if(b===r){f=!0,r=l,a=s;break}if(b===a){f=!0,a=l,r=s;break}b=b.sibling}if(!f)throw Error(Ge(189))}}if(r.alternate!==a)throw Error(Ge(190))}if(r.tag!==3)throw Error(Ge(188));return r.stateNode.current===r?e:t}function Sw(e){return e=gE(e),e!==null?kw(e):null}function kw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kw(e);if(t!==null)return t;e=e.sibling}return null}var Tw=un.unstable_scheduleCallback,gm=un.unstable_cancelCallback,bE=un.unstable_shouldYield,vE=un.unstable_requestPaint,or=un.unstable_now,mE=un.unstable_getCurrentPriorityLevel,Cg=un.unstable_ImmediatePriority,Pw=un.unstable_UserBlockingPriority,gc=un.unstable_NormalPriority,yE=un.unstable_LowPriority,_w=un.unstable_IdlePriority,cd=null,oo=null;function xE(e){if(oo&&typeof oo.onCommitFiberRoot=="function")try{oo.onCommitFiberRoot(cd,e,void 0,(e.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:SE,wE=Math.log,CE=Math.LN2;function SE(e){return e>>>=0,e===0?32:31-(wE(e)/CE|0)|0}var mu=64,yu=4194304;function Hs(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 bc(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,s=e.suspendedLanes,l=e.pingedLanes,f=r&268435455;if(f!==0){var b=f&~s;b!==0?a=Hs(b):(l&=f,l!==0&&(a=Hs(l)))}else f=r&~s,f!==0?a=Hs(f):l!==0&&(a=Hs(l));if(a===0)return 0;if(t!==0&&t!==a&&!(t&s)&&(s=a&-a,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(a&4&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-Dn(t),s=1<<r,a|=e[r],t&=~s;return a}function kE(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 TE(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Dn(l),b=1<<f,S=s[f];S===-1?(!(b&r)||b&a)&&(s[f]=kE(b,t)):S<=t&&(e.expiredLanes|=b),l&=~b}}function Qp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ow(){var e=mu;return mu<<=1,!(mu&4194240)&&(mu=64),e}function Yf(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Dl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dn(t),e[t]=r}function PE(e,t){var r=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 a=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-Dn(r),l=1<<s;t[s]=0,a[s]=-1,e[s]=-1,r&=~l}}function Sg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-Dn(r),s=1<<a;s&t|e[a]&t&&(e[a]|=t),r&=~s}}var Nt=0;function Aw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ew,kg,Mw,Rw,Nw,Jp=!1,xu=[],Qo=null,Jo=null,ea=null,cl=new Map,dl=new Map,Uo=[],_E="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 bm(e,t){switch(e){case"focusin":case"focusout":Qo=null;break;case"dragenter":case"dragleave":Jo=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":cl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function Es(e,t,r,a,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:l,targetContainers:[s]},t!==null&&(t=Fl(t),t!==null&&kg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function OE(e,t,r,a,s){switch(t){case"focusin":return Qo=Es(Qo,e,t,r,a,s),!0;case"dragenter":return Jo=Es(Jo,e,t,r,a,s),!0;case"mouseover":return ea=Es(ea,e,t,r,a,s),!0;case"pointerover":var l=s.pointerId;return cl.set(l,Es(cl.get(l)||null,e,t,r,a,s)),!0;case"gotpointercapture":return l=s.pointerId,dl.set(l,Es(dl.get(l)||null,e,t,r,a,s)),!0}return!1}function Iw(e){var t=Aa(e.target);if(t!==null){var r=Ua(t);if(r!==null){if(t=r.tag,t===13){if(t=Cw(r),t!==null){e.blockedOn=t,Nw(e.priority,function(){Mw(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=eh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);$p=a,r.target.dispatchEvent(a),$p=null}else return t=Fl(r),t!==null&&kg(t),e.blockedOn=r,!1;t.shift()}return!0}function vm(e,t,r){Wu(e)&&r.delete(t)}function AE(){Jp=!1,Qo!==null&&Wu(Qo)&&(Qo=null),Jo!==null&&Wu(Jo)&&(Jo=null),ea!==null&&Wu(ea)&&(ea=null),cl.forEach(vm),dl.forEach(vm)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Jp||(Jp=!0,un.unstable_scheduleCallback(un.unstable_NormalPriority,AE)))}function fl(e){function t(s){return Ms(s,e)}if(0<xu.length){Ms(xu[0],e);for(var r=1;r<xu.length;r++){var a=xu[r];a.blockedOn===e&&(a.blockedOn=null)}}for(Qo!==null&&Ms(Qo,e),Jo!==null&&Ms(Jo,e),ea!==null&&Ms(ea,e),cl.forEach(t),dl.forEach(t),r=0;r<Uo.length;r++)a=Uo[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<Uo.length&&(r=Uo[0],r.blockedOn===null);)Iw(r),r.blockedOn===null&&Uo.shift()}var Ei=Ao.ReactCurrentBatchConfig,vc=!0;function EE(e,t,r,a){var s=Nt,l=Ei.transition;Ei.transition=null;try{Nt=1,Tg(e,t,r,a)}finally{Nt=s,Ei.transition=l}}function ME(e,t,r,a){var s=Nt,l=Ei.transition;Ei.transition=null;try{Nt=4,Tg(e,t,r,a)}finally{Nt=s,Ei.transition=l}}function Tg(e,t,r,a){if(vc){var s=eh(e,t,r,a);if(s===null)tp(e,t,a,mc,r),bm(e,a);else if(OE(s,e,t,r,a))a.stopPropagation();else if(bm(e,a),t&4&&-1<_E.indexOf(e)){for(;s!==null;){var l=Fl(s);if(l!==null&&Ew(l),l=eh(e,t,r,a),l===null&&tp(e,t,a,mc,r),l===s)break;s=l}s!==null&&a.stopPropagation()}else tp(e,t,a,null,r)}}var mc=null;function eh(e,t,r,a){if(mc=null,e=wg(a),e=Aa(e),e!==null)if(t=Ua(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Cw(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mc=e,null}function Lw(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(mE()){case Cg:return 1;case Pw:return 4;case gc:case yE:return 16;case _w:return 536870912;default:return 16}default:return 16}}var qo=null,Pg=null,Bu=null;function jw(){if(Bu)return Bu;var e,t=Pg,r=t.length,a,s="value"in qo?qo.value:qo.textContent,l=s.length;for(e=0;e<r&&t[e]===s[e];e++);var f=r-e;for(a=1;a<=f&&t[r-a]===s[l-a];a++);return Bu=s.slice(e,1<a?1-a:void 0)}function Hu(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 wu(){return!0}function mm(){return!1}function fn(e){function t(r,a,s,l,f){this._reactName=r,this._targetInst=s,this.type=a,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(r=e[b],this[b]=r?r(l):l[b]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?wu:mm,this.isPropagationStopped=mm,this}return tr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),t}var ts={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_g=fn(ts),zl=tr({},ts,{view:0,detail:0}),RE=fn(zl),Gf,Uf,Rs,dd=tr({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Og,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!==Rs&&(Rs&&e.type==="mousemove"?(Gf=e.screenX-Rs.screenX,Uf=e.screenY-Rs.screenY):Uf=Gf=0,Rs=e),Gf)},movementY:function(e){return"movementY"in e?e.movementY:Uf}}),ym=fn(dd),NE=tr({},dd,{dataTransfer:0}),IE=fn(NE),LE=tr({},zl,{relatedTarget:0}),$f=fn(LE),jE=tr({},ts,{animationName:0,elapsedTime:0,pseudoElement:0}),DE=fn(jE),zE=tr({},ts,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FE=fn(zE),VE=tr({},ts,{data:0}),xm=fn(VE),WE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BE={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"},HE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function Og(){return XE}var YE=tr({},zl,{key:function(e){if(e.key){var t=WE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?BE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Og,charCode:function(e){return e.type==="keypress"?Hu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GE=fn(YE),UE=tr({},dd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wm=fn(UE),$E=tr({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Og}),qE=fn($E),KE=tr({},ts,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZE=fn(KE),QE=tr({},dd,{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}),JE=fn(QE),eM=[9,13,27,32],Ag=So&&"CompositionEvent"in window,qs=null;So&&"documentMode"in document&&(qs=document.documentMode);var tM=So&&"TextEvent"in window&&!qs,Dw=So&&(!Ag||qs&&8<qs&&11>=qs),Cm=String.fromCharCode(32),Sm=!1;function zw(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function rM(e,t){switch(e){case"compositionend":return Fw(t);case"keypress":return t.which!==32?null:(Sm=!0,Cm);case"textInput":return e=t.data,e===Cm&&Sm?null:e;default:return null}}function nM(e,t){if(gi)return e==="compositionend"||!Ag&&zw(e,t)?(e=jw(),Bu=Pg=qo=null,gi=!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 Dw&&t.locale!=="ko"?null:t.data;default:return null}}var oM={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 km(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oM[e.type]:t==="textarea"}function Vw(e,t,r,a){vw(a),t=yc(t,"onChange"),0<t.length&&(r=new _g("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Ks=null,pl=null;function aM(e){Zw(e,0)}function fd(e){var t=mi(e);if(cw(t))return e}function iM(e,t){if(e==="change")return t}var Ww=!1;if(So){var qf;if(So){var Kf="oninput"in document;if(!Kf){var Tm=document.createElement("div");Tm.setAttribute("oninput","return;"),Kf=typeof Tm.oninput=="function"}qf=Kf}else qf=!1;Ww=qf&&(!document.documentMode||9<document.documentMode)}function Pm(){Ks&&(Ks.detachEvent("onpropertychange",Bw),pl=Ks=null)}function Bw(e){if(e.propertyName==="value"&&fd(pl)){var t=[];Vw(t,pl,e,wg(e)),ww(aM,t)}}function sM(e,t,r){e==="focusin"?(Pm(),Ks=t,pl=r,Ks.attachEvent("onpropertychange",Bw)):e==="focusout"&&Pm()}function lM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fd(pl)}function uM(e,t){if(e==="click")return fd(t)}function cM(e,t){if(e==="input"||e==="change")return fd(t)}function dM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wn=typeof Object.is=="function"?Object.is:dM;function hl(e,t){if(Wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var s=r[a];if(!jp.call(t,s)||!Wn(e[s],t[s]))return!1}return!0}function _m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Om(e,t){var r=_m(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_m(r)}}function Hw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xw(){for(var e=window,t=fc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=fc(e.document)}return t}function Eg(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 fM(e){var t=Xw(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Hw(r.ownerDocument.documentElement,r)){if(a!==null&&Eg(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,l=Math.min(a.start,s);a=a.end===void 0?l:Math.min(a.end,s),!e.extend&&l>a&&(s=a,a=l,l=s),s=Om(r,l);var f=Om(r,a);s&&f&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>a?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pM=So&&"documentMode"in document&&11>=document.documentMode,bi=null,th=null,Zs=null,rh=!1;function Am(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;rh||bi==null||bi!==fc(a)||(a=bi,"selectionStart"in a&&Eg(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zs&&hl(Zs,a)||(Zs=a,a=yc(th,"onSelect"),0<a.length&&(t=new _g("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=bi)))}function Cu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vi={animationend:Cu("Animation","AnimationEnd"),animationiteration:Cu("Animation","AnimationIteration"),animationstart:Cu("Animation","AnimationStart"),transitionend:Cu("Transition","TransitionEnd")},Zf={},Yw={};So&&(Yw=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function pd(e){if(Zf[e])return Zf[e];if(!vi[e])return e;var t=vi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Yw)return Zf[e]=t[r];return e}var Gw=pd("animationend"),Uw=pd("animationiteration"),$w=pd("animationstart"),qw=pd("transitionend"),Kw=new Map,Em="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 da(e,t){Kw.set(e,t),Ga(t,[e])}for(var Qf=0;Qf<Em.length;Qf++){var Jf=Em[Qf],hM=Jf.toLowerCase(),gM=Jf[0].toUpperCase()+Jf.slice(1);da(hM,"on"+gM)}da(Gw,"onAnimationEnd");da(Uw,"onAnimationIteration");da($w,"onAnimationStart");da("dblclick","onDoubleClick");da("focusin","onFocus");da("focusout","onBlur");da(qw,"onTransitionEnd");zi("onMouseEnter",["mouseout","mouseover"]);zi("onMouseLeave",["mouseout","mouseover"]);zi("onPointerEnter",["pointerout","pointerover"]);zi("onPointerLeave",["pointerout","pointerover"]);Ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ga("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xs="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(" "),bM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xs));function Mm(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,hE(a,t,void 0,e),e.currentTarget=null}function Zw(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],s=a.event;a=a.listeners;e:{var l=void 0;if(t)for(var f=a.length-1;0<=f;f--){var b=a[f],S=b.instance,T=b.currentTarget;if(b=b.listener,S!==l&&s.isPropagationStopped())break e;Mm(s,b,T),l=S}else for(f=0;f<a.length;f++){if(b=a[f],S=b.instance,T=b.currentTarget,b=b.listener,S!==l&&s.isPropagationStopped())break e;Mm(s,b,T),l=S}}}if(hc)throw e=Zp,hc=!1,Zp=null,e}function Bt(e,t){var r=t[sh];r===void 0&&(r=t[sh]=new Set);var a=e+"__bubble";r.has(a)||(Qw(t,e,2,!1),r.add(a))}function ep(e,t,r){var a=0;t&&(a|=4),Qw(r,e,a,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[Su]){e[Su]=!0,aw.forEach(function(r){r!=="selectionchange"&&(bM.has(r)||ep(r,!1,e),ep(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,ep("selectionchange",!1,t))}}function Qw(e,t,r,a){switch(Lw(t)){case 1:var s=EE;break;case 4:s=ME;break;default:s=Tg}r=s.bind(null,t,r,e),s=void 0,!Kp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function tp(e,t,r,a,s){var l=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var b=a.stateNode.containerInfo;if(b===s||b.nodeType===8&&b.parentNode===s)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&(S=f.stateNode.containerInfo,S===s||S.nodeType===8&&S.parentNode===s))return;f=f.return}for(;b!==null;){if(f=Aa(b),f===null)return;if(S=f.tag,S===5||S===6){a=l=f;continue e}b=b.parentNode}}a=a.return}ww(function(){var T=l,O=wg(r),j=[];e:{var F=Kw.get(e);if(F!==void 0){var z=_g,D=e;switch(e){case"keypress":if(Hu(r)===0)break e;case"keydown":case"keyup":z=GE;break;case"focusin":D="focus",z=$f;break;case"focusout":D="blur",z=$f;break;case"beforeblur":case"afterblur":z=$f;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=IE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=qE;break;case Gw:case Uw:case $w:z=DE;break;case qw:z=ZE;break;case"scroll":z=RE;break;case"wheel":z=JE;break;case"copy":case"cut":case"paste":z=FE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=wm}var R=(t&4)!==0,P=!R&&e==="scroll",y=R?F!==null?F+"Capture":null:F;R=[];for(var p=T,v;p!==null;){v=p;var g=v.stateNode;if(v.tag===5&&g!==null&&(v=g,y!==null&&(g=ul(p,y),g!=null&&R.push(bl(p,g,v)))),P)break;p=p.return}0<R.length&&(F=new z(F,D,null,r,O),j.push({event:F,listeners:R}))}}if(!(t&7)){e:{if(F=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",F&&r!==$p&&(D=r.relatedTarget||r.fromElement)&&(Aa(D)||D[ko]))break e;if((z||F)&&(F=O.window===O?O:(F=O.ownerDocument)?F.defaultView||F.parentWindow:window,z?(D=r.relatedTarget||r.toElement,z=T,D=D?Aa(D):null,D!==null&&(P=Ua(D),D!==P||D.tag!==5&&D.tag!==6)&&(D=null)):(z=null,D=T),z!==D)){if(R=ym,g="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(R=wm,g="onPointerLeave",y="onPointerEnter",p="pointer"),P=z==null?F:mi(z),v=D==null?F:mi(D),F=new R(g,p+"leave",z,r,O),F.target=P,F.relatedTarget=v,g=null,Aa(O)===T&&(R=new R(y,p+"enter",D,r,O),R.target=v,R.relatedTarget=P,g=R),P=g,z&&D)t:{for(R=z,y=D,p=0,v=R;v;v=ci(v))p++;for(v=0,g=y;g;g=ci(g))v++;for(;0<p-v;)R=ci(R),p--;for(;0<v-p;)y=ci(y),v--;for(;p--;){if(R===y||y!==null&&R===y.alternate)break t;R=ci(R),y=ci(y)}R=null}else R=null;z!==null&&Rm(j,F,z,R,!1),D!==null&&P!==null&&Rm(j,P,D,R,!0)}}e:{if(F=T?mi(T):window,z=F.nodeName&&F.nodeName.toLowerCase(),z==="select"||z==="input"&&F.type==="file")var m=iM;else if(km(F))if(Ww)m=cM;else{m=lM;var _=sM}else(z=F.nodeName)&&z.toLowerCase()==="input"&&(F.type==="checkbox"||F.type==="radio")&&(m=uM);if(m&&(m=m(e,T))){Vw(j,m,r,O);break e}_&&_(e,F,T),e==="focusout"&&(_=F._wrapperState)&&_.controlled&&F.type==="number"&&Hp(F,"number",F.value)}switch(_=T?mi(T):window,e){case"focusin":(km(_)||_.contentEditable==="true")&&(bi=_,th=T,Zs=null);break;case"focusout":Zs=th=bi=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,Am(j,r,O);break;case"selectionchange":if(pM)break;case"keydown":case"keyup":Am(j,r,O)}var M;if(Ag)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else gi?zw(e,r)&&(X="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(X="onCompositionStart");X&&(Dw&&r.locale!=="ko"&&(gi||X!=="onCompositionStart"?X==="onCompositionEnd"&&gi&&(M=jw()):(qo=O,Pg="value"in qo?qo.value:qo.textContent,gi=!0)),_=yc(T,X),0<_.length&&(X=new xm(X,e,null,r,O),j.push({event:X,listeners:_}),M?X.data=M:(M=Fw(r),M!==null&&(X.data=M)))),(M=tM?rM(e,r):nM(e,r))&&(T=yc(T,"onBeforeInput"),0<T.length&&(O=new xm("onBeforeInput","beforeinput",null,r,O),j.push({event:O,listeners:T}),O.data=M))}Zw(j,t)})}function bl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function yc(e,t){for(var r=t+"Capture",a=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=ul(e,r),l!=null&&a.unshift(bl(e,l,s)),l=ul(e,t),l!=null&&a.push(bl(e,l,s))),e=e.return}return a}function ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rm(e,t,r,a,s){for(var l=t._reactName,f=[];r!==null&&r!==a;){var b=r,S=b.alternate,T=b.stateNode;if(S!==null&&S===a)break;b.tag===5&&T!==null&&(b=T,s?(S=ul(r,l),S!=null&&f.unshift(bl(r,S,b))):s||(S=ul(r,l),S!=null&&f.push(bl(r,S,b)))),r=r.return}f.length!==0&&e.push({event:t,listeners:f})}var vM=/\r\n?/g,mM=/\u0000|\uFFFD/g;function Nm(e){return(typeof e=="string"?e:""+e).replace(vM,`
`).replace(mM,"")}function ku(e,t,r){if(t=Nm(t),Nm(e)!==t&&r)throw Error(Ge(425))}function xc(){}var nh=null,oh=null;function ah(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 ih=typeof setTimeout=="function"?setTimeout:void 0,yM=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,xM=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(e){return Im.resolve(null).then(e).catch(wM)}:ih;function wM(e){setTimeout(function(){throw e})}function rp(e,t){var r=t,a=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(a===0){e.removeChild(s),fl(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=s}while(r);fl(t)}function ta(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 Lm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var rs=Math.random().toString(36).slice(2),no="__reactFiber$"+rs,vl="__reactProps$"+rs,ko="__reactContainer$"+rs,sh="__reactEvents$"+rs,CM="__reactListeners$"+rs,SM="__reactHandles$"+rs;function Aa(e){var t=e[no];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ko]||r[no]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Lm(e);e!==null;){if(r=e[no])return r;e=Lm(e)}return t}e=r,r=e.parentNode}return null}function Fl(e){return e=e[no]||e[ko],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ge(33))}function hd(e){return e[vl]||null}var lh=[],yi=-1;function fa(e){return{current:e}}function Xt(e){0>yi||(e.current=lh[yi],lh[yi]=null,yi--)}function Ft(e,t){yi++,lh[yi]=e.current,e.current=t}var ua={},Er=fa(ua),Kr=fa(!1),ja=ua;function Fi(e,t){var r=e.type.contextTypes;if(!r)return ua;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in r)s[l]=t[l];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Zr(e){return e=e.childContextTypes,e!=null}function wc(){Xt(Kr),Xt(Er)}function jm(e,t,r){if(Er.current!==ua)throw Error(Ge(168));Ft(Er,t),Ft(Kr,r)}function Jw(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var s in a)if(!(s in t))throw Error(Ge(108,sE(e)||"Unknown",s));return tr({},r,a)}function Cc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,ja=Er.current,Ft(Er,e),Ft(Kr,Kr.current),!0}function Dm(e,t,r){var a=e.stateNode;if(!a)throw Error(Ge(169));r?(e=Jw(e,t,ja),a.__reactInternalMemoizedMergedChildContext=e,Xt(Kr),Xt(Er),Ft(Er,e)):Xt(Kr),Ft(Kr,r)}var vo=null,gd=!1,np=!1;function e1(e){vo===null?vo=[e]:vo.push(e)}function kM(e){gd=!0,e1(e)}function pa(){if(!np&&vo!==null){np=!0;var e=0,t=Nt;try{var r=vo;for(Nt=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}vo=null,gd=!1}catch(s){throw vo!==null&&(vo=vo.slice(e+1)),Tw(Cg,pa),s}finally{Nt=t,np=!1}}return null}var xi=[],wi=0,Sc=null,kc=0,mn=[],yn=0,Da=null,mo=1,yo="";function _a(e,t){xi[wi++]=kc,xi[wi++]=Sc,Sc=e,kc=t}function t1(e,t,r){mn[yn++]=mo,mn[yn++]=yo,mn[yn++]=Da,Da=e;var a=mo;e=yo;var s=32-Dn(a)-1;a&=~(1<<s),r+=1;var l=32-Dn(t)+s;if(30<l){var f=s-s%5;l=(a&(1<<f)-1).toString(32),a>>=f,s-=f,mo=1<<32-Dn(t)+s|r<<s|a,yo=l+e}else mo=1<<l|r<<s|a,yo=e}function Mg(e){e.return!==null&&(_a(e,1),t1(e,1,0))}function Rg(e){for(;e===Sc;)Sc=xi[--wi],xi[wi]=null,kc=xi[--wi],xi[wi]=null;for(;e===Da;)Da=mn[--yn],mn[yn]=null,yo=mn[--yn],mn[yn]=null,mo=mn[--yn],mn[yn]=null}var nn=null,rn=null,$t=!1,In=null;function r1(e,t){var r=xn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function zm(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,nn=e,rn=ta(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Da!==null?{id:mo,overflow:yo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,nn=e,rn=null,!0):!1;default:return!1}}function uh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ch(e){if($t){var t=rn;if(t){var r=t;if(!zm(e,t)){if(uh(e))throw Error(Ge(418));t=ta(r.nextSibling);var a=nn;t&&zm(e,t)?r1(a,r):(e.flags=e.flags&-4097|2,$t=!1,nn=e)}}else{if(uh(e))throw Error(Ge(418));e.flags=e.flags&-4097|2,$t=!1,nn=e}}}function Fm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nn=e}function Tu(e){if(e!==nn)return!1;if(!$t)return Fm(e),$t=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ah(e.type,e.memoizedProps)),t&&(t=rn)){if(uh(e))throw n1(),Error(Ge(418));for(;t;)r1(e,t),t=ta(t.nextSibling)}if(Fm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ge(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){rn=ta(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=nn?ta(e.stateNode.nextSibling):null;return!0}function n1(){for(var e=rn;e;)e=ta(e.nextSibling)}function Vi(){rn=nn=null,$t=!1}function Ng(e){In===null?In=[e]:In.push(e)}var TM=Ao.ReactCurrentBatchConfig;function Rn(e,t){if(e&&e.defaultProps){t=tr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Tc=fa(null),Pc=null,Ci=null,Ig=null;function Lg(){Ig=Ci=Pc=null}function jg(e){var t=Tc.current;Xt(Tc),e._currentValue=t}function dh(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function Mi(e,t){Pc=e,Ig=Ci=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($r=!0),e.firstContext=null)}function kn(e){var t=e._currentValue;if(Ig!==e)if(e={context:e,memoizedValue:t,next:null},Ci===null){if(Pc===null)throw Error(Ge(308));Ci=e,Pc.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ea=null;function Dg(e){Ea===null?Ea=[e]:Ea.push(e)}function o1(e,t,r,a){var s=t.interleaved;return s===null?(r.next=r,Dg(t)):(r.next=s.next,s.next=r),t.interleaved=r,To(e,a)}function To(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Yo=!1;function zg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function a1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ra(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Ot&2){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,To(e,r)}return s=a.interleaved,s===null?(t.next=t,Dg(a)):(t.next=s.next,s.next=t),a.interleaved=t,To(e,r)}function Xu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Sg(e,r)}}function Vm(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var s=null,l=null;if(r=r.firstBaseUpdate,r!==null){do{var f={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};l===null?s=l=f:l=l.next=f,r=r.next}while(r!==null);l===null?s=l=t:l=l.next=t}else s=l=t;r={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function _c(e,t,r,a){var s=e.updateQueue;Yo=!1;var l=s.firstBaseUpdate,f=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var S=b,T=S.next;S.next=null,f===null?l=T:f.next=T,f=S;var O=e.alternate;O!==null&&(O=O.updateQueue,b=O.lastBaseUpdate,b!==f&&(b===null?O.firstBaseUpdate=T:b.next=T,O.lastBaseUpdate=S))}if(l!==null){var j=s.baseState;f=0,O=T=S=null,b=l;do{var F=b.lane,z=b.eventTime;if((a&F)===F){O!==null&&(O=O.next={eventTime:z,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var D=e,R=b;switch(F=t,z=r,R.tag){case 1:if(D=R.payload,typeof D=="function"){j=D.call(z,j,F);break e}j=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=R.payload,F=typeof D=="function"?D.call(z,j,F):D,F==null)break e;j=tr({},j,F);break e;case 2:Yo=!0}}b.callback!==null&&b.lane!==0&&(e.flags|=64,F=s.effects,F===null?s.effects=[b]:F.push(b))}else z={eventTime:z,lane:F,tag:b.tag,payload:b.payload,callback:b.callback,next:null},O===null?(T=O=z,S=j):O=O.next=z,f|=F;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;F=b,b=F.next,F.next=null,s.lastBaseUpdate=F,s.shared.pending=null}}while(1);if(O===null&&(S=j),s.baseState=S,s.firstBaseUpdate=T,s.lastBaseUpdate=O,t=s.shared.interleaved,t!==null){s=t;do f|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Fa|=f,e.lanes=f,e.memoizedState=j}}function Wm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],s=a.callback;if(s!==null){if(a.callback=null,a=r,typeof s!="function")throw Error(Ge(191,s));s.call(a)}}}var i1=new ow.Component().refs;function fh(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:tr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var bd={isMounted:function(e){return(e=e._reactInternals)?Ua(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=jr(),s=oa(e),l=xo(a,s);l.payload=t,r!=null&&(l.callback=r),t=ra(e,l,s),t!==null&&(zn(t,e,s,a),Xu(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=jr(),s=oa(e),l=xo(a,s);l.tag=1,l.payload=t,r!=null&&(l.callback=r),t=ra(e,l,s),t!==null&&(zn(t,e,s,a),Xu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=jr(),a=oa(e),s=xo(r,a);s.tag=2,t!=null&&(s.callback=t),t=ra(e,s,a),t!==null&&(zn(t,e,a,r),Xu(t,e,a))}};function Bm(e,t,r,a,s,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,l,f):t.prototype&&t.prototype.isPureReactComponent?!hl(r,a)||!hl(s,l):!0}function s1(e,t,r){var a=!1,s=ua,l=t.contextType;return typeof l=="object"&&l!==null?l=kn(l):(s=Zr(t)?ja:Er.current,a=t.contextTypes,l=(a=a!=null)?Fi(e,s):ua),t=new t(r,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bd,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Hm(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&bd.enqueueReplaceState(t,t.state,null)}function ph(e,t,r,a){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs=i1,zg(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=kn(l):(l=Zr(t)?ja:Er.current,s.context=Fi(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(fh(e,t,l,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&bd.enqueueReplaceState(s,s.state,null),_c(e,r,s,a),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ns(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Ge(309));var a=r.stateNode}if(!a)throw Error(Ge(147,e));var s=a,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(f){var b=s.refs;b===i1&&(b=s.refs={}),f===null?delete b[l]:b[l]=f},t._stringRef=l,t)}if(typeof e!="string")throw Error(Ge(284));if(!r._owner)throw Error(Ge(290,e))}return e}function Pu(e,t){throw e=Object.prototype.toString.call(t),Error(Ge(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xm(e){var t=e._init;return t(e._payload)}function l1(e){function t(y,p){if(e){var v=y.deletions;v===null?(y.deletions=[p],y.flags|=16):v.push(p)}}function r(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function a(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function s(y,p){return y=aa(y,p),y.index=0,y.sibling=null,y}function l(y,p,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<p?(y.flags|=2,p):v):(y.flags|=2,p)):(y.flags|=1048576,p)}function f(y){return e&&y.alternate===null&&(y.flags|=2),y}function b(y,p,v,g){return p===null||p.tag!==6?(p=cp(v,y.mode,g),p.return=y,p):(p=s(p,v),p.return=y,p)}function S(y,p,v,g){var m=v.type;return m===hi?O(y,p,v.props.children,g,v.key):p!==null&&(p.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Xo&&Xm(m)===p.type)?(g=s(p,v.props),g.ref=Ns(y,p,v),g.return=y,g):(g=Ku(v.type,v.key,v.props,null,y.mode,g),g.ref=Ns(y,p,v),g.return=y,g)}function T(y,p,v,g){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=dp(v,y.mode,g),p.return=y,p):(p=s(p,v.children||[]),p.return=y,p)}function O(y,p,v,g,m){return p===null||p.tag!==7?(p=Ia(v,y.mode,g,m),p.return=y,p):(p=s(p,v),p.return=y,p)}function j(y,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=cp(""+p,y.mode,v),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case gu:return v=Ku(p.type,p.key,p.props,null,y.mode,v),v.ref=Ns(y,null,p),v.return=y,v;case pi:return p=dp(p,y.mode,v),p.return=y,p;case Xo:var g=p._init;return j(y,g(p._payload),v)}if(Bs(p)||Os(p))return p=Ia(p,y.mode,v,null),p.return=y,p;Pu(y,p)}return null}function F(y,p,v,g){var m=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return m!==null?null:b(y,p,""+v,g);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case gu:return v.key===m?S(y,p,v,g):null;case pi:return v.key===m?T(y,p,v,g):null;case Xo:return m=v._init,F(y,p,m(v._payload),g)}if(Bs(v)||Os(v))return m!==null?null:O(y,p,v,g,null);Pu(y,v)}return null}function z(y,p,v,g,m){if(typeof g=="string"&&g!==""||typeof g=="number")return y=y.get(v)||null,b(p,y,""+g,m);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gu:return y=y.get(g.key===null?v:g.key)||null,S(p,y,g,m);case pi:return y=y.get(g.key===null?v:g.key)||null,T(p,y,g,m);case Xo:var _=g._init;return z(y,p,v,_(g._payload),m)}if(Bs(g)||Os(g))return y=y.get(v)||null,O(p,y,g,m,null);Pu(p,g)}return null}function D(y,p,v,g){for(var m=null,_=null,M=p,X=p=0,H=null;M!==null&&X<v.length;X++){M.index>X?(H=M,M=null):H=M.sibling;var B=F(y,M,v[X],g);if(B===null){M===null&&(M=H);break}e&&M&&B.alternate===null&&t(y,M),p=l(B,p,X),_===null?m=B:_.sibling=B,_=B,M=H}if(X===v.length)return r(y,M),$t&&_a(y,X),m;if(M===null){for(;X<v.length;X++)M=j(y,v[X],g),M!==null&&(p=l(M,p,X),_===null?m=M:_.sibling=M,_=M);return $t&&_a(y,X),m}for(M=a(y,M);X<v.length;X++)H=z(M,y,X,v[X],g),H!==null&&(e&&H.alternate!==null&&M.delete(H.key===null?X:H.key),p=l(H,p,X),_===null?m=H:_.sibling=H,_=H);return e&&M.forEach(function(U){return t(y,U)}),$t&&_a(y,X),m}function R(y,p,v,g){var m=Os(v);if(typeof m!="function")throw Error(Ge(150));if(v=m.call(v),v==null)throw Error(Ge(151));for(var _=m=null,M=p,X=p=0,H=null,B=v.next();M!==null&&!B.done;X++,B=v.next()){M.index>X?(H=M,M=null):H=M.sibling;var U=F(y,M,B.value,g);if(U===null){M===null&&(M=H);break}e&&M&&U.alternate===null&&t(y,M),p=l(U,p,X),_===null?m=U:_.sibling=U,_=U,M=H}if(B.done)return r(y,M),$t&&_a(y,X),m;if(M===null){for(;!B.done;X++,B=v.next())B=j(y,B.value,g),B!==null&&(p=l(B,p,X),_===null?m=B:_.sibling=B,_=B);return $t&&_a(y,X),m}for(M=a(y,M);!B.done;X++,B=v.next())B=z(M,y,X,B.value,g),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?X:B.key),p=l(B,p,X),_===null?m=B:_.sibling=B,_=B);return e&&M.forEach(function(K){return t(y,K)}),$t&&_a(y,X),m}function P(y,p,v,g){if(typeof v=="object"&&v!==null&&v.type===hi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case gu:e:{for(var m=v.key,_=p;_!==null;){if(_.key===m){if(m=v.type,m===hi){if(_.tag===7){r(y,_.sibling),p=s(_,v.props.children),p.return=y,y=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Xo&&Xm(m)===_.type){r(y,_.sibling),p=s(_,v.props),p.ref=Ns(y,_,v),p.return=y,y=p;break e}r(y,_);break}else t(y,_);_=_.sibling}v.type===hi?(p=Ia(v.props.children,y.mode,g,v.key),p.return=y,y=p):(g=Ku(v.type,v.key,v.props,null,y.mode,g),g.ref=Ns(y,p,v),g.return=y,y=g)}return f(y);case pi:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){r(y,p.sibling),p=s(p,v.children||[]),p.return=y,y=p;break e}else{r(y,p);break}else t(y,p);p=p.sibling}p=dp(v,y.mode,g),p.return=y,y=p}return f(y);case Xo:return _=v._init,P(y,p,_(v._payload),g)}if(Bs(v))return D(y,p,v,g);if(Os(v))return R(y,p,v,g);Pu(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(r(y,p.sibling),p=s(p,v),p.return=y,y=p):(r(y,p),p=cp(v,y.mode,g),p.return=y,y=p),f(y)):r(y,p)}return P}var Wi=l1(!0),u1=l1(!1),Vl={},ao=fa(Vl),ml=fa(Vl),yl=fa(Vl);function Ma(e){if(e===Vl)throw Error(Ge(174));return e}function Fg(e,t){switch(Ft(yl,t),Ft(ml,e),Ft(ao,Vl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yp(t,e)}Xt(ao),Ft(ao,t)}function Bi(){Xt(ao),Xt(ml),Xt(yl)}function c1(e){Ma(yl.current);var t=Ma(ao.current),r=Yp(t,e.type);t!==r&&(Ft(ml,e),Ft(ao,r))}function Vg(e){ml.current===e&&(Xt(ao),Xt(ml))}var Zt=fa(0);function Oc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 op=[];function Wg(){for(var e=0;e<op.length;e++)op[e]._workInProgressVersionPrimary=null;op.length=0}var Yu=Ao.ReactCurrentDispatcher,ap=Ao.ReactCurrentBatchConfig,za=0,Jt=null,lr=null,gr=null,Ac=!1,Qs=!1,xl=0,PM=0;function kr(){throw Error(Ge(321))}function Bg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Wn(e[r],t[r]))return!1;return!0}function Hg(e,t,r,a,s,l){if(za=l,Jt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yu.current=e===null||e.memoizedState===null?EM:MM,e=r(a,s),Qs){l=0;do{if(Qs=!1,xl=0,25<=l)throw Error(Ge(301));l+=1,gr=lr=null,t.updateQueue=null,Yu.current=RM,e=r(a,s)}while(Qs)}if(Yu.current=Ec,t=lr!==null&&lr.next!==null,za=0,gr=lr=Jt=null,Ac=!1,t)throw Error(Ge(300));return e}function Xg(){var e=xl!==0;return xl=0,e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gr===null?Jt.memoizedState=gr=e:gr=gr.next=e,gr}function Tn(){if(lr===null){var e=Jt.alternate;e=e!==null?e.memoizedState:null}else e=lr.next;var t=gr===null?Jt.memoizedState:gr.next;if(t!==null)gr=t,lr=e;else{if(e===null)throw Error(Ge(310));lr=e,e={memoizedState:lr.memoizedState,baseState:lr.baseState,baseQueue:lr.baseQueue,queue:lr.queue,next:null},gr===null?Jt.memoizedState=gr=e:gr=gr.next=e}return gr}function wl(e,t){return typeof t=="function"?t(e):t}function ip(e){var t=Tn(),r=t.queue;if(r===null)throw Error(Ge(311));r.lastRenderedReducer=e;var a=lr,s=a.baseQueue,l=r.pending;if(l!==null){if(s!==null){var f=s.next;s.next=l.next,l.next=f}a.baseQueue=s=l,r.pending=null}if(s!==null){l=s.next,a=a.baseState;var b=f=null,S=null,T=l;do{var O=T.lane;if((za&O)===O)S!==null&&(S=S.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),a=T.hasEagerState?T.eagerState:e(a,T.action);else{var j={lane:O,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};S===null?(b=S=j,f=a):S=S.next=j,Jt.lanes|=O,Fa|=O}T=T.next}while(T!==null&&T!==l);S===null?f=a:S.next=b,Wn(a,t.memoizedState)||($r=!0),t.memoizedState=a,t.baseState=f,t.baseQueue=S,r.lastRenderedState=a}if(e=r.interleaved,e!==null){s=e;do l=s.lane,Jt.lanes|=l,Fa|=l,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function sp(e){var t=Tn(),r=t.queue;if(r===null)throw Error(Ge(311));r.lastRenderedReducer=e;var a=r.dispatch,s=r.pending,l=t.memoizedState;if(s!==null){r.pending=null;var f=s=s.next;do l=e(l,f.action),f=f.next;while(f!==s);Wn(l,t.memoizedState)||($r=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),r.lastRenderedState=l}return[l,a]}function d1(){}function f1(e,t){var r=Jt,a=Tn(),s=t(),l=!Wn(a.memoizedState,s);if(l&&(a.memoizedState=s,$r=!0),a=a.queue,Yg(g1.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||gr!==null&&gr.memoizedState.tag&1){if(r.flags|=2048,Cl(9,h1.bind(null,r,a,s,t),void 0,null),br===null)throw Error(Ge(349));za&30||p1(r,t,s)}return s}function p1(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function h1(e,t,r,a){t.value=r,t.getSnapshot=a,b1(t)&&v1(e)}function g1(e,t,r){return r(function(){b1(t)&&v1(e)})}function b1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Wn(e,r)}catch{return!0}}function v1(e){var t=To(e,1);t!==null&&zn(t,e,1,-1)}function Ym(e){var t=ro();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:e},t.queue=e,e=e.dispatch=AM.bind(null,Jt,e),[t.memoizedState,e]}function Cl(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function m1(){return Tn().memoizedState}function Gu(e,t,r,a){var s=ro();Jt.flags|=e,s.memoizedState=Cl(1|t,r,void 0,a===void 0?null:a)}function vd(e,t,r,a){var s=Tn();a=a===void 0?null:a;var l=void 0;if(lr!==null){var f=lr.memoizedState;if(l=f.destroy,a!==null&&Bg(a,f.deps)){s.memoizedState=Cl(t,r,l,a);return}}Jt.flags|=e,s.memoizedState=Cl(1|t,r,l,a)}function Gm(e,t){return Gu(8390656,8,e,t)}function Yg(e,t){return vd(2048,8,e,t)}function y1(e,t){return vd(4,2,e,t)}function x1(e,t){return vd(4,4,e,t)}function w1(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 C1(e,t,r){return r=r!=null?r.concat([e]):null,vd(4,4,w1.bind(null,t,e),r)}function Gg(){}function S1(e,t){var r=Tn();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Bg(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function k1(e,t){var r=Tn();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Bg(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function T1(e,t,r){return za&21?(Wn(r,t)||(r=Ow(),Jt.lanes|=r,Fa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$r=!0),e.memoizedState=r)}function _M(e,t){var r=Nt;Nt=r!==0&&4>r?r:4,e(!0);var a=ap.transition;ap.transition={};try{e(!1),t()}finally{Nt=r,ap.transition=a}}function P1(){return Tn().memoizedState}function OM(e,t,r){var a=oa(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},_1(e))O1(t,r);else if(r=o1(e,t,r,a),r!==null){var s=jr();zn(r,e,a,s),A1(r,t,a)}}function AM(e,t,r){var a=oa(e),s={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(_1(e))O1(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var f=t.lastRenderedState,b=l(f,r);if(s.hasEagerState=!0,s.eagerState=b,Wn(b,f)){var S=t.interleaved;S===null?(s.next=s,Dg(t)):(s.next=S.next,S.next=s),t.interleaved=s;return}}catch{}finally{}r=o1(e,t,s,a),r!==null&&(s=jr(),zn(r,e,a,s),A1(r,t,a))}}function _1(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function O1(e,t){Qs=Ac=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function A1(e,t,r){if(r&4194240){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Sg(e,r)}}var Ec={readContext:kn,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},EM={readContext:kn,useCallback:function(e,t){return ro().memoizedState=[e,t===void 0?null:t],e},useContext:kn,useEffect:Gm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gu(4194308,4,w1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gu(4,2,e,t)},useMemo:function(e,t){var r=ro();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=ro();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=OM.bind(null,Jt,e),[a.memoizedState,e]},useRef:function(e){var t=ro();return e={current:e},t.memoizedState=e},useState:Ym,useDebugValue:Gg,useDeferredValue:function(e){return ro().memoizedState=e},useTransition:function(){var e=Ym(!1),t=e[0];return e=_M.bind(null,e[1]),ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=Jt,s=ro();if($t){if(r===void 0)throw Error(Ge(407));r=r()}else{if(r=t(),br===null)throw Error(Ge(349));za&30||p1(a,t,r)}s.memoizedState=r;var l={value:r,getSnapshot:t};return s.queue=l,Gm(g1.bind(null,a,l,e),[e]),a.flags|=2048,Cl(9,h1.bind(null,a,l,r,t),void 0,null),r},useId:function(){var e=ro(),t=br.identifierPrefix;if($t){var r=yo,a=mo;r=(a&~(1<<32-Dn(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=xl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=PM++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},MM={readContext:kn,useCallback:S1,useContext:kn,useEffect:Yg,useImperativeHandle:C1,useInsertionEffect:y1,useLayoutEffect:x1,useMemo:k1,useReducer:ip,useRef:m1,useState:function(){return ip(wl)},useDebugValue:Gg,useDeferredValue:function(e){var t=Tn();return T1(t,lr.memoizedState,e)},useTransition:function(){var e=ip(wl)[0],t=Tn().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:P1,unstable_isNewReconciler:!1},RM={readContext:kn,useCallback:S1,useContext:kn,useEffect:Yg,useImperativeHandle:C1,useInsertionEffect:y1,useLayoutEffect:x1,useMemo:k1,useReducer:sp,useRef:m1,useState:function(){return sp(wl)},useDebugValue:Gg,useDeferredValue:function(e){var t=Tn();return lr===null?t.memoizedState=e:T1(t,lr.memoizedState,e)},useTransition:function(){var e=sp(wl)[0],t=Tn().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:P1,unstable_isNewReconciler:!1};function Hi(e,t){try{var r="",a=t;do r+=iE(a),a=a.return;while(a);var s=r}catch(l){s=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function lp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function hh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var NM=typeof WeakMap=="function"?WeakMap:Map;function E1(e,t,r){r=xo(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Rc||(Rc=!0,kh=a),hh(e,t)},r}function M1(e,t,r){r=xo(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var s=t.value;r.payload=function(){return a(s)},r.callback=function(){hh(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(r.callback=function(){hh(e,t),typeof a!="function"&&(na===null?na=new Set([this]):na.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),r}function Um(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new NM;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(r)||(s.add(r),e=UM.bind(null,e,t,r),t.then(e,e))}function $m(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 qm(e,t,r,a,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=xo(-1,1),t.tag=2,ra(r,t,1))),r.lanes|=1),e)}var IM=Ao.ReactCurrentOwner,$r=!1;function Lr(e,t,r,a){t.child=e===null?u1(t,null,r,a):Wi(t,e.child,r,a)}function Km(e,t,r,a,s){r=r.render;var l=t.ref;return Mi(t,s),a=Hg(e,t,r,a,l,s),r=Xg(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Po(e,t,s)):($t&&r&&Mg(t),t.flags|=1,Lr(e,t,a,s),t.child)}function Zm(e,t,r,a,s){if(e===null){var l=r.type;return typeof l=="function"&&!e0(l)&&l.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=l,R1(e,t,l,a,s)):(e=Ku(r.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var f=l.memoizedProps;if(r=r.compare,r=r!==null?r:hl,r(f,a)&&e.ref===t.ref)return Po(e,t,s)}return t.flags|=1,e=aa(l,a),e.ref=t.ref,e.return=t,t.child=e}function R1(e,t,r,a,s){if(e!==null){var l=e.memoizedProps;if(hl(l,a)&&e.ref===t.ref)if($r=!1,t.pendingProps=a=l,(e.lanes&s)!==0)e.flags&131072&&($r=!0);else return t.lanes=e.lanes,Po(e,t,s)}return gh(e,t,r,a,s)}function N1(e,t,r){var a=t.pendingProps,s=a.children,l=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ft(ki,tn),tn|=r;else{if(!(r&1073741824))return e=l!==null?l.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ft(ki,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=l!==null?l.baseLanes:r,Ft(ki,tn),tn|=a}else l!==null?(a=l.baseLanes|r,t.memoizedState=null):a=r,Ft(ki,tn),tn|=a;return Lr(e,t,s,r),t.child}function I1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function gh(e,t,r,a,s){var l=Zr(r)?ja:Er.current;return l=Fi(t,l),Mi(t,s),r=Hg(e,t,r,a,l,s),a=Xg(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Po(e,t,s)):($t&&a&&Mg(t),t.flags|=1,Lr(e,t,r,s),t.child)}function Qm(e,t,r,a,s){if(Zr(r)){var l=!0;Cc(t)}else l=!1;if(Mi(t,s),t.stateNode===null)Uu(e,t),s1(t,r,a),ph(t,r,a,s),a=!0;else if(e===null){var f=t.stateNode,b=t.memoizedProps;f.props=b;var S=f.context,T=r.contextType;typeof T=="object"&&T!==null?T=kn(T):(T=Zr(r)?ja:Er.current,T=Fi(t,T));var O=r.getDerivedStateFromProps,j=typeof O=="function"||typeof f.getSnapshotBeforeUpdate=="function";j||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==a||S!==T)&&Hm(t,f,a,T),Yo=!1;var F=t.memoizedState;f.state=F,_c(t,a,f,s),S=t.memoizedState,b!==a||F!==S||Kr.current||Yo?(typeof O=="function"&&(fh(t,r,O,a),S=t.memoizedState),(b=Yo||Bm(t,r,b,a,F,S,T))?(j||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),f.props=a,f.state=S,f.context=T,a=b):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{f=t.stateNode,a1(e,t),b=t.memoizedProps,T=t.type===t.elementType?b:Rn(t.type,b),f.props=T,j=t.pendingProps,F=f.context,S=r.contextType,typeof S=="object"&&S!==null?S=kn(S):(S=Zr(r)?ja:Er.current,S=Fi(t,S));var z=r.getDerivedStateFromProps;(O=typeof z=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==j||F!==S)&&Hm(t,f,a,S),Yo=!1,F=t.memoizedState,f.state=F,_c(t,a,f,s);var D=t.memoizedState;b!==j||F!==D||Kr.current||Yo?(typeof z=="function"&&(fh(t,r,z,a),D=t.memoizedState),(T=Yo||Bm(t,r,T,a,F,D,S)||!1)?(O||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(a,D,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(a,D,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),f.props=a,f.state=D,f.context=S,a=T):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),a=!1)}return bh(e,t,r,a,l,s)}function bh(e,t,r,a,s,l){I1(e,t);var f=(t.flags&128)!==0;if(!a&&!f)return s&&Dm(t,r,!1),Po(e,t,l);a=t.stateNode,IM.current=t;var b=f&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&f?(t.child=Wi(t,e.child,null,l),t.child=Wi(t,null,b,l)):Lr(e,t,b,l),t.memoizedState=a.state,s&&Dm(t,r,!0),t.child}function L1(e){var t=e.stateNode;t.pendingContext?jm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jm(e,t.context,!1),Fg(e,t.containerInfo)}function Jm(e,t,r,a,s){return Vi(),Ng(s),t.flags|=256,Lr(e,t,r,a),t.child}var vh={dehydrated:null,treeContext:null,retryLane:0};function mh(e){return{baseLanes:e,cachePool:null,transitions:null}}function j1(e,t,r){var a=t.pendingProps,s=Zt.current,l=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(s&2)!==0),b?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ft(Zt,s&1),e===null)return ch(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):(f=a.children,e=a.fallback,l?(a=t.mode,l=t.child,f={mode:"hidden",children:f},!(a&1)&&l!==null?(l.childLanes=0,l.pendingProps=f):l=xd(f,a,0,null),e=Ia(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=mh(r),t.memoizedState=vh,e):Ug(t,f));if(s=e.memoizedState,s!==null&&(b=s.dehydrated,b!==null))return LM(e,t,f,a,b,s,r);if(l){l=a.fallback,f=t.mode,s=e.child,b=s.sibling;var S={mode:"hidden",children:a.children};return!(f&1)&&t.child!==s?(a=t.child,a.childLanes=0,a.pendingProps=S,t.deletions=null):(a=aa(s,S),a.subtreeFlags=s.subtreeFlags&14680064),b!==null?l=aa(b,l):(l=Ia(l,f,r,null),l.flags|=2),l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,f=e.child.memoizedState,f=f===null?mh(r):{baseLanes:f.baseLanes|r,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~r,t.memoizedState=vh,a}return l=e.child,e=l.sibling,a=aa(l,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Ug(e,t){return t=xd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _u(e,t,r,a){return a!==null&&Ng(a),Wi(t,e.child,null,r),e=Ug(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LM(e,t,r,a,s,l,f){if(r)return t.flags&256?(t.flags&=-257,a=lp(Error(Ge(422))),_u(e,t,f,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=a.fallback,s=t.mode,a=xd({mode:"visible",children:a.children},s,0,null),l=Ia(l,s,f,null),l.flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,t.mode&1&&Wi(t,e.child,null,f),t.child.memoizedState=mh(f),t.memoizedState=vh,l);if(!(t.mode&1))return _u(e,t,f,null);if(s.data==="$!"){if(a=s.nextSibling&&s.nextSibling.dataset,a)var b=a.dgst;return a=b,l=Error(Ge(419)),a=lp(l,a,void 0),_u(e,t,f,a)}if(b=(f&e.childLanes)!==0,$r||b){if(a=br,a!==null){switch(f&-f){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(a.suspendedLanes|f)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,To(e,s),zn(a,e,s,-1))}return Jg(),a=lp(Error(Ge(421))),_u(e,t,f,a)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=$M.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,rn=ta(s.nextSibling),nn=t,$t=!0,In=null,e!==null&&(mn[yn++]=mo,mn[yn++]=yo,mn[yn++]=Da,mo=e.id,yo=e.overflow,Da=t),t=Ug(t,a.children),t.flags|=4096,t)}function ey(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),dh(e.return,t,r)}function up(e,t,r,a,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=r,l.tailMode=s)}function D1(e,t,r){var a=t.pendingProps,s=a.revealOrder,l=a.tail;if(Lr(e,t,a.children,r),a=Zt.current,a&2)a=a&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&&ey(e,r,t);else if(e.tag===19)ey(e,r,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}a&=1}if(Ft(Zt,a),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Oc(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),up(t,!1,s,r,l);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Oc(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}up(t,!0,r,null,l);break;case"together":up(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Uu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Po(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Fa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ge(153));if(t.child!==null){for(e=t.child,r=aa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=aa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function jM(e,t,r){switch(t.tag){case 3:L1(t),Vi();break;case 5:c1(t);break;case 1:Zr(t.type)&&Cc(t);break;case 4:Fg(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,s=t.memoizedProps.value;Ft(Tc,a._currentValue),a._currentValue=s;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ft(Zt,Zt.current&1),t.flags|=128,null):r&t.child.childLanes?j1(e,t,r):(Ft(Zt,Zt.current&1),e=Po(e,t,r),e!==null?e.sibling:null);Ft(Zt,Zt.current&1);break;case 19:if(a=(r&t.childLanes)!==0,e.flags&128){if(a)return D1(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ft(Zt,Zt.current),a)break;return null;case 22:case 23:return t.lanes=0,N1(e,t,r)}return Po(e,t,r)}var z1,yh,F1,V1;z1=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};yh=function(){};F1=function(e,t,r,a){var s=e.memoizedProps;if(s!==a){e=t.stateNode,Ma(ao.current);var l=null;switch(r){case"input":s=Wp(e,s),a=Wp(e,a),l=[];break;case"select":s=tr({},s,{value:void 0}),a=tr({},a,{value:void 0}),l=[];break;case"textarea":s=Xp(e,s),a=Xp(e,a),l=[];break;default:typeof s.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=xc)}Gp(r,a);var f;r=null;for(T in s)if(!a.hasOwnProperty(T)&&s.hasOwnProperty(T)&&s[T]!=null)if(T==="style"){var b=s[T];for(f in b)b.hasOwnProperty(f)&&(r||(r={}),r[f]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(sl.hasOwnProperty(T)?l||(l=[]):(l=l||[]).push(T,null));for(T in a){var S=a[T];if(b=s!=null?s[T]:void 0,a.hasOwnProperty(T)&&S!==b&&(S!=null||b!=null))if(T==="style")if(b){for(f in b)!b.hasOwnProperty(f)||S&&S.hasOwnProperty(f)||(r||(r={}),r[f]="");for(f in S)S.hasOwnProperty(f)&&b[f]!==S[f]&&(r||(r={}),r[f]=S[f])}else r||(l||(l=[]),l.push(T,r)),r=S;else T==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,b=b?b.__html:void 0,S!=null&&b!==S&&(l=l||[]).push(T,S)):T==="children"?typeof S!="string"&&typeof S!="number"||(l=l||[]).push(T,""+S):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(sl.hasOwnProperty(T)?(S!=null&&T==="onScroll"&&Bt("scroll",e),l||b===S||(l=[])):(l=l||[]).push(T,S))}r&&(l=l||[]).push("style",r);var T=l;(t.updateQueue=T)&&(t.flags|=4)}};V1=function(e,t,r,a){r!==a&&(t.flags|=4)};function Is(e,t){if(!$t)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Tr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,a|=s.subtreeFlags&14680064,a|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function DM(e,t,r){var a=t.pendingProps;switch(Rg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tr(t),null;case 1:return Zr(t.type)&&wc(),Tr(t),null;case 3:return a=t.stateNode,Bi(),Xt(Kr),Xt(Er),Wg(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Tu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,In!==null&&(_h(In),In=null))),yh(e,t),Tr(t),null;case 5:Vg(t);var s=Ma(yl.current);if(r=t.type,e!==null&&t.stateNode!=null)F1(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(Ge(166));return Tr(t),null}if(e=Ma(ao.current),Tu(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[no]=t,a[vl]=l,e=(t.mode&1)!==0,r){case"dialog":Bt("cancel",a),Bt("close",a);break;case"iframe":case"object":case"embed":Bt("load",a);break;case"video":case"audio":for(s=0;s<Xs.length;s++)Bt(Xs[s],a);break;case"source":Bt("error",a);break;case"img":case"image":case"link":Bt("error",a),Bt("load",a);break;case"details":Bt("toggle",a);break;case"input":um(a,l),Bt("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Bt("invalid",a);break;case"textarea":dm(a,l),Bt("invalid",a)}Gp(r,l),s=null;for(var f in l)if(l.hasOwnProperty(f)){var b=l[f];f==="children"?typeof b=="string"?a.textContent!==b&&(l.suppressHydrationWarning!==!0&&ku(a.textContent,b,e),s=["children",b]):typeof b=="number"&&a.textContent!==""+b&&(l.suppressHydrationWarning!==!0&&ku(a.textContent,b,e),s=["children",""+b]):sl.hasOwnProperty(f)&&b!=null&&f==="onScroll"&&Bt("scroll",a)}switch(r){case"input":bu(a),cm(a,l,!0);break;case"textarea":bu(a),fm(a);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(a.onclick=xc)}a=s,t.updateQueue=a,a!==null&&(t.flags|=4)}else{f=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pw(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=f.createElement(r,{is:a.is}):(e=f.createElement(r),r==="select"&&(f=e,a.multiple?f.multiple=!0:a.size&&(f.size=a.size))):e=f.createElementNS(e,r),e[no]=t,e[vl]=a,z1(e,t,!1,!1),t.stateNode=e;e:{switch(f=Up(r,a),r){case"dialog":Bt("cancel",e),Bt("close",e),s=a;break;case"iframe":case"object":case"embed":Bt("load",e),s=a;break;case"video":case"audio":for(s=0;s<Xs.length;s++)Bt(Xs[s],e);s=a;break;case"source":Bt("error",e),s=a;break;case"img":case"image":case"link":Bt("error",e),Bt("load",e),s=a;break;case"details":Bt("toggle",e),s=a;break;case"input":um(e,a),s=Wp(e,a),Bt("invalid",e);break;case"option":s=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},s=tr({},a,{value:void 0}),Bt("invalid",e);break;case"textarea":dm(e,a),s=Xp(e,a),Bt("invalid",e);break;default:s=a}Gp(r,s),b=s;for(l in b)if(b.hasOwnProperty(l)){var S=b[l];l==="style"?bw(e,S):l==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&hw(e,S)):l==="children"?typeof S=="string"?(r!=="textarea"||S!=="")&&ll(e,S):typeof S=="number"&&ll(e,""+S):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(sl.hasOwnProperty(l)?S!=null&&l==="onScroll"&&Bt("scroll",e):S!=null&&vg(e,l,S,f))}switch(r){case"input":bu(e),cm(e,a,!1);break;case"textarea":bu(e),fm(e);break;case"option":a.value!=null&&e.setAttribute("value",""+la(a.value));break;case"select":e.multiple=!!a.multiple,l=a.value,l!=null?_i(e,!!a.multiple,l,!1):a.defaultValue!=null&&_i(e,!!a.multiple,a.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=xc)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Tr(t),null;case 6:if(e&&t.stateNode!=null)V1(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(Ge(166));if(r=Ma(yl.current),Ma(ao.current),Tu(t)){if(a=t.stateNode,r=t.memoizedProps,a[no]=t,(l=a.nodeValue!==r)&&(e=nn,e!==null))switch(e.tag){case 3:ku(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ku(a.nodeValue,r,(e.mode&1)!==0)}l&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[no]=t,t.stateNode=a}return Tr(t),null;case 13:if(Xt(Zt),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($t&&rn!==null&&t.mode&1&&!(t.flags&128))n1(),Vi(),t.flags|=98560,l=!1;else if(l=Tu(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(Ge(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(Ge(317));l[no]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Tr(t),l=!1}else In!==null&&(_h(In),In=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||Zt.current&1?ur===0&&(ur=3):Jg())),t.updateQueue!==null&&(t.flags|=4),Tr(t),null);case 4:return Bi(),yh(e,t),e===null&&gl(t.stateNode.containerInfo),Tr(t),null;case 10:return jg(t.type._context),Tr(t),null;case 17:return Zr(t.type)&&wc(),Tr(t),null;case 19:if(Xt(Zt),l=t.memoizedState,l===null)return Tr(t),null;if(a=(t.flags&128)!==0,f=l.rendering,f===null)if(a)Is(l,!1);else{if(ur!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(f=Oc(e),f!==null){for(t.flags|=128,Is(l,!1),a=f.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)l=r,e=a,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ft(Zt,Zt.current&1|2),t.child}e=e.sibling}l.tail!==null&&or()>Xi&&(t.flags|=128,a=!0,Is(l,!1),t.lanes=4194304)}else{if(!a)if(e=Oc(f),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Is(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!$t)return Tr(t),null}else 2*or()-l.renderingStartTime>Xi&&r!==1073741824&&(t.flags|=128,a=!0,Is(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(r=l.last,r!==null?r.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=or(),t.sibling=null,r=Zt.current,Ft(Zt,a?r&1|2:r&1),t):(Tr(t),null);case 22:case 23:return Qg(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?tn&1073741824&&(Tr(t),t.subtreeFlags&6&&(t.flags|=8192)):Tr(t),null;case 24:return null;case 25:return null}throw Error(Ge(156,t.tag))}function zM(e,t){switch(Rg(t),t.tag){case 1:return Zr(t.type)&&wc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(),Xt(Kr),Xt(Er),Wg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vg(t),null;case 13:if(Xt(Zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ge(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(Zt),null;case 4:return Bi(),null;case 10:return jg(t.type._context),null;case 22:case 23:return Qg(),null;case 24:return null;default:return null}}var Ou=!1,Or=!1,FM=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Si(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){rr(e,t,a)}else r.current=null}function xh(e,t,r){try{r()}catch(a){rr(e,t,a)}}var ty=!1;function VM(e,t){if(nh=vc,e=Xw(),Eg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var s=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{r.nodeType,l.nodeType}catch{r=null;break e}var f=0,b=-1,S=-1,T=0,O=0,j=e,F=null;t:for(;;){for(var z;j!==r||s!==0&&j.nodeType!==3||(b=f+s),j!==l||a!==0&&j.nodeType!==3||(S=f+a),j.nodeType===3&&(f+=j.nodeValue.length),(z=j.firstChild)!==null;)F=j,j=z;for(;;){if(j===e)break t;if(F===r&&++T===s&&(b=f),F===l&&++O===a&&(S=f),(z=j.nextSibling)!==null)break;j=F,F=j.parentNode}j=z}r=b===-1||S===-1?null:{start:b,end:S}}else r=null}r=r||{start:0,end:0}}else r=null;for(oh={focusedElem:e,selectionRange:r},vc=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var D=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var R=D.memoizedProps,P=D.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?R:Rn(t.type,R),P);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(g){rr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return D=ty,ty=!1,D}function Js(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var s=a=a.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&xh(t,r,l)}s=s.next}while(s!==a)}}function md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function wh(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function W1(e){var t=e.alternate;t!==null&&(e.alternate=null,W1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[no],delete t[vl],delete t[sh],delete t[CM],delete t[SM])),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 B1(e){return e.tag===5||e.tag===3||e.tag===4}function ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B1(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 Ch(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xc));else if(a!==4&&(e=e.child,e!==null))for(Ch(e,t,r),e=e.sibling;e!==null;)Ch(e,t,r),e=e.sibling}function Sh(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Sh(e,t,r),e=e.sibling;e!==null;)Sh(e,t,r),e=e.sibling}var yr=null,Nn=!1;function Fo(e,t,r){for(r=r.child;r!==null;)H1(e,t,r),r=r.sibling}function H1(e,t,r){if(oo&&typeof oo.onCommitFiberUnmount=="function")try{oo.onCommitFiberUnmount(cd,r)}catch{}switch(r.tag){case 5:Or||Si(r,t);case 6:var a=yr,s=Nn;yr=null,Fo(e,t,r),yr=a,Nn=s,yr!==null&&(Nn?(e=yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yr.removeChild(r.stateNode));break;case 18:yr!==null&&(Nn?(e=yr,r=r.stateNode,e.nodeType===8?rp(e.parentNode,r):e.nodeType===1&&rp(e,r),fl(e)):rp(yr,r.stateNode));break;case 4:a=yr,s=Nn,yr=r.stateNode.containerInfo,Nn=!0,Fo(e,t,r),yr=a,Nn=s;break;case 0:case 11:case 14:case 15:if(!Or&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){s=a=a.next;do{var l=s,f=l.destroy;l=l.tag,f!==void 0&&(l&2||l&4)&&xh(r,t,f),s=s.next}while(s!==a)}Fo(e,t,r);break;case 1:if(!Or&&(Si(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(b){rr(r,t,b)}Fo(e,t,r);break;case 21:Fo(e,t,r);break;case 22:r.mode&1?(Or=(a=Or)||r.memoizedState!==null,Fo(e,t,r),Or=a):Fo(e,t,r);break;default:Fo(e,t,r)}}function ny(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FM),t.forEach(function(a){var s=qM.bind(null,e,a);r.has(a)||(r.add(a),a.then(s,s))})}}function En(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];try{var l=e,f=t,b=f;e:for(;b!==null;){switch(b.tag){case 5:yr=b.stateNode,Nn=!1;break e;case 3:yr=b.stateNode.containerInfo,Nn=!0;break e;case 4:yr=b.stateNode.containerInfo,Nn=!0;break e}b=b.return}if(yr===null)throw Error(Ge(160));H1(l,f,s),yr=null,Nn=!1;var S=s.alternate;S!==null&&(S.return=null),s.return=null}catch(T){rr(s,t,T)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)X1(t,e),t=t.sibling}function X1(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(En(t,e),to(e),a&4){try{Js(3,e,e.return),md(3,e)}catch(R){rr(e,e.return,R)}try{Js(5,e,e.return)}catch(R){rr(e,e.return,R)}}break;case 1:En(t,e),to(e),a&512&&r!==null&&Si(r,r.return);break;case 5:if(En(t,e),to(e),a&512&&r!==null&&Si(r,r.return),e.flags&32){var s=e.stateNode;try{ll(s,"")}catch(R){rr(e,e.return,R)}}if(a&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,f=r!==null?r.memoizedProps:l,b=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{b==="input"&&l.type==="radio"&&l.name!=null&&dw(s,l),Up(b,f);var T=Up(b,l);for(f=0;f<S.length;f+=2){var O=S[f],j=S[f+1];O==="style"?bw(s,j):O==="dangerouslySetInnerHTML"?hw(s,j):O==="children"?ll(s,j):vg(s,O,j,T)}switch(b){case"input":Bp(s,l);break;case"textarea":fw(s,l);break;case"select":var F=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var z=l.value;z!=null?_i(s,!!l.multiple,z,!1):F!==!!l.multiple&&(l.defaultValue!=null?_i(s,!!l.multiple,l.defaultValue,!0):_i(s,!!l.multiple,l.multiple?[]:"",!1))}s[vl]=l}catch(R){rr(e,e.return,R)}}break;case 6:if(En(t,e),to(e),a&4){if(e.stateNode===null)throw Error(Ge(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(R){rr(e,e.return,R)}}break;case 3:if(En(t,e),to(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(R){rr(e,e.return,R)}break;case 4:En(t,e),to(e);break;case 13:En(t,e),to(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Kg=or())),a&4&&ny(e);break;case 22:if(O=r!==null&&r.memoizedState!==null,e.mode&1?(Or=(T=Or)||O,En(t,e),Or=T):En(t,e),to(e),a&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!O&&e.mode&1)for(tt=e,O=e.child;O!==null;){for(j=tt=O;tt!==null;){switch(F=tt,z=F.child,F.tag){case 0:case 11:case 14:case 15:Js(4,F,F.return);break;case 1:Si(F,F.return);var D=F.stateNode;if(typeof D.componentWillUnmount=="function"){a=F,r=F.return;try{t=a,D.props=t.memoizedProps,D.state=t.memoizedState,D.componentWillUnmount()}catch(R){rr(a,r,R)}}break;case 5:Si(F,F.return);break;case 22:if(F.memoizedState!==null){ay(j);continue}}z!==null?(z.return=F,tt=z):ay(j)}O=O.sibling}e:for(O=null,j=e;;){if(j.tag===5){if(O===null){O=j;try{s=j.stateNode,T?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(b=j.stateNode,S=j.memoizedProps.style,f=S!=null&&S.hasOwnProperty("display")?S.display:null,b.style.display=gw("display",f))}catch(R){rr(e,e.return,R)}}}else if(j.tag===6){if(O===null)try{j.stateNode.nodeValue=T?"":j.memoizedProps}catch(R){rr(e,e.return,R)}}else if((j.tag!==22&&j.tag!==23||j.memoizedState===null||j===e)&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===e)break e;for(;j.sibling===null;){if(j.return===null||j.return===e)break e;O===j&&(O=null),j=j.return}O===j&&(O=null),j.sibling.return=j.return,j=j.sibling}}break;case 19:En(t,e),to(e),a&4&&ny(e);break;case 21:break;default:En(t,e),to(e)}}function to(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(B1(r)){var a=r;break e}r=r.return}throw Error(Ge(160))}switch(a.tag){case 5:var s=a.stateNode;a.flags&32&&(ll(s,""),a.flags&=-33);var l=ry(e);Sh(e,l,s);break;case 3:case 4:var f=a.stateNode.containerInfo,b=ry(e);Ch(e,b,f);break;default:throw Error(Ge(161))}}catch(S){rr(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WM(e,t,r){tt=e,Y1(e)}function Y1(e,t,r){for(var a=(e.mode&1)!==0;tt!==null;){var s=tt,l=s.child;if(s.tag===22&&a){var f=s.memoizedState!==null||Ou;if(!f){var b=s.alternate,S=b!==null&&b.memoizedState!==null||Or;b=Ou;var T=Or;if(Ou=f,(Or=S)&&!T)for(tt=s;tt!==null;)f=tt,S=f.child,f.tag===22&&f.memoizedState!==null?iy(s):S!==null?(S.return=f,tt=S):iy(s);for(;l!==null;)tt=l,Y1(l),l=l.sibling;tt=s,Ou=b,Or=T}oy(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,tt=l):oy(e)}}function oy(e){for(;tt!==null;){var t=tt;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Or||md(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Or)if(r===null)a.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Rn(t.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Wm(t,l,a);break;case 3:var f=t.updateQueue;if(f!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Wm(t,f,r)}break;case 5:var b=t.stateNode;if(r===null&&t.flags&4){r=b;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&r.focus();break;case"img":S.src&&(r.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var T=t.alternate;if(T!==null){var O=T.memoizedState;if(O!==null){var j=O.dehydrated;j!==null&&fl(j)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ge(163))}Or||t.flags&512&&wh(t)}catch(F){rr(t,t.return,F)}}if(t===e){tt=null;break}if(r=t.sibling,r!==null){r.return=t.return,tt=r;break}tt=t.return}}function ay(e){for(;tt!==null;){var t=tt;if(t===e){tt=null;break}var r=t.sibling;if(r!==null){r.return=t.return,tt=r;break}tt=t.return}}function iy(e){for(;tt!==null;){var t=tt;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{md(4,t)}catch(S){rr(t,r,S)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var s=t.return;try{a.componentDidMount()}catch(S){rr(t,s,S)}}var l=t.return;try{wh(t)}catch(S){rr(t,l,S)}break;case 5:var f=t.return;try{wh(t)}catch(S){rr(t,f,S)}}}catch(S){rr(t,t.return,S)}if(t===e){tt=null;break}var b=t.sibling;if(b!==null){b.return=t.return,tt=b;break}tt=t.return}}var BM=Math.ceil,Mc=Ao.ReactCurrentDispatcher,$g=Ao.ReactCurrentOwner,Sn=Ao.ReactCurrentBatchConfig,Ot=0,br=null,ar=null,xr=0,tn=0,ki=fa(0),ur=0,Sl=null,Fa=0,yd=0,qg=0,el=null,Gr=null,Kg=0,Xi=1/0,bo=null,Rc=!1,kh=null,na=null,Au=!1,Ko=null,Nc=0,tl=0,Th=null,$u=-1,qu=0;function jr(){return Ot&6?or():$u!==-1?$u:$u=or()}function oa(e){return e.mode&1?Ot&2&&xr!==0?xr&-xr:TM.transition!==null?(qu===0&&(qu=Ow()),qu):(e=Nt,e!==0||(e=window.event,e=e===void 0?16:Lw(e.type)),e):1}function zn(e,t,r,a){if(50<tl)throw tl=0,Th=null,Error(Ge(185));Dl(e,r,a),(!(Ot&2)||e!==br)&&(e===br&&(!(Ot&2)&&(yd|=r),ur===4&&$o(e,xr)),Qr(e,a),r===1&&Ot===0&&!(t.mode&1)&&(Xi=or()+500,gd&&pa()))}function Qr(e,t){var r=e.callbackNode;TE(e,t);var a=bc(e,e===br?xr:0);if(a===0)r!==null&&gm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&gm(r),t===1)e.tag===0?kM(sy.bind(null,e)):e1(sy.bind(null,e)),xM(function(){!(Ot&6)&&pa()}),r=null;else{switch(Aw(a)){case 1:r=Cg;break;case 4:r=Pw;break;case 16:r=gc;break;case 536870912:r=_w;break;default:r=gc}r=J1(r,G1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function G1(e,t){if($u=-1,qu=0,Ot&6)throw Error(Ge(327));var r=e.callbackNode;if(Ri()&&e.callbackNode!==r)return null;var a=bc(e,e===br?xr:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Ic(e,a);else{t=a;var s=Ot;Ot|=2;var l=$1();(br!==e||xr!==t)&&(bo=null,Xi=or()+500,Na(e,t));do try{YM();break}catch(b){U1(e,b)}while(1);Lg(),Mc.current=l,Ot=s,ar!==null?t=0:(br=null,xr=0,t=ur)}if(t!==0){if(t===2&&(s=Qp(e),s!==0&&(a=s,t=Ph(e,s))),t===1)throw r=Sl,Na(e,0),$o(e,a),Qr(e,or()),r;if(t===6)$o(e,a);else{if(s=e.current.alternate,!(a&30)&&!HM(s)&&(t=Ic(e,a),t===2&&(l=Qp(e),l!==0&&(a=l,t=Ph(e,l))),t===1))throw r=Sl,Na(e,0),$o(e,a),Qr(e,or()),r;switch(e.finishedWork=s,e.finishedLanes=a,t){case 0:case 1:throw Error(Ge(345));case 2:Oa(e,Gr,bo);break;case 3:if($o(e,a),(a&130023424)===a&&(t=Kg+500-or(),10<t)){if(bc(e,0)!==0)break;if(s=e.suspendedLanes,(s&a)!==a){jr(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ih(Oa.bind(null,e,Gr,bo),t);break}Oa(e,Gr,bo);break;case 4:if($o(e,a),(a&4194240)===a)break;for(t=e.eventTimes,s=-1;0<a;){var f=31-Dn(a);l=1<<f,f=t[f],f>s&&(s=f),a&=~l}if(a=s,a=or()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*BM(a/1960))-a,10<a){e.timeoutHandle=ih(Oa.bind(null,e,Gr,bo),a);break}Oa(e,Gr,bo);break;case 5:Oa(e,Gr,bo);break;default:throw Error(Ge(329))}}}return Qr(e,or()),e.callbackNode===r?G1.bind(null,e):null}function Ph(e,t){var r=el;return e.current.memoizedState.isDehydrated&&(Na(e,t).flags|=256),e=Ic(e,t),e!==2&&(t=Gr,Gr=r,t!==null&&_h(t)),e}function _h(e){Gr===null?Gr=e:Gr.push.apply(Gr,e)}function HM(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var s=r[a],l=s.getSnapshot;s=s.value;try{if(!Wn(l(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 $o(e,t){for(t&=~qg,t&=~yd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Dn(t),a=1<<r;e[r]=-1,t&=~a}}function sy(e){if(Ot&6)throw Error(Ge(327));Ri();var t=bc(e,0);if(!(t&1))return Qr(e,or()),null;var r=Ic(e,t);if(e.tag!==0&&r===2){var a=Qp(e);a!==0&&(t=a,r=Ph(e,a))}if(r===1)throw r=Sl,Na(e,0),$o(e,t),Qr(e,or()),r;if(r===6)throw Error(Ge(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Oa(e,Gr,bo),Qr(e,or()),null}function Zg(e,t){var r=Ot;Ot|=1;try{return e(t)}finally{Ot=r,Ot===0&&(Xi=or()+500,gd&&pa())}}function Va(e){Ko!==null&&Ko.tag===0&&!(Ot&6)&&Ri();var t=Ot;Ot|=1;var r=Sn.transition,a=Nt;try{if(Sn.transition=null,Nt=1,e)return e()}finally{Nt=a,Sn.transition=r,Ot=t,!(Ot&6)&&pa()}}function Qg(){tn=ki.current,Xt(ki)}function Na(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,yM(r)),ar!==null)for(r=ar.return;r!==null;){var a=r;switch(Rg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&wc();break;case 3:Bi(),Xt(Kr),Xt(Er),Wg();break;case 5:Vg(a);break;case 4:Bi();break;case 13:Xt(Zt);break;case 19:Xt(Zt);break;case 10:jg(a.type._context);break;case 22:case 23:Qg()}r=r.return}if(br=e,ar=e=aa(e.current,null),xr=tn=t,ur=0,Sl=null,qg=yd=Fa=0,Gr=el=null,Ea!==null){for(t=0;t<Ea.length;t++)if(r=Ea[t],a=r.interleaved,a!==null){r.interleaved=null;var s=a.next,l=r.pending;if(l!==null){var f=l.next;l.next=s,a.next=f}r.pending=a}Ea=null}return e}function U1(e,t){do{var r=ar;try{if(Lg(),Yu.current=Ec,Ac){for(var a=Jt.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Ac=!1}if(za=0,gr=lr=Jt=null,Qs=!1,xl=0,$g.current=null,r===null||r.return===null){ur=1,Sl=t,ar=null;break}e:{var l=e,f=r.return,b=r,S=t;if(t=xr,b.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var T=S,O=b,j=O.tag;if(!(O.mode&1)&&(j===0||j===11||j===15)){var F=O.alternate;F?(O.updateQueue=F.updateQueue,O.memoizedState=F.memoizedState,O.lanes=F.lanes):(O.updateQueue=null,O.memoizedState=null)}var z=$m(f);if(z!==null){z.flags&=-257,qm(z,f,b,l,t),z.mode&1&&Um(l,T,t),t=z,S=T;var D=t.updateQueue;if(D===null){var R=new Set;R.add(S),t.updateQueue=R}else D.add(S);break e}else{if(!(t&1)){Um(l,T,t),Jg();break e}S=Error(Ge(426))}}else if($t&&b.mode&1){var P=$m(f);if(P!==null){!(P.flags&65536)&&(P.flags|=256),qm(P,f,b,l,t),Ng(Hi(S,b));break e}}l=S=Hi(S,b),ur!==4&&(ur=2),el===null?el=[l]:el.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var y=E1(l,S,t);Vm(l,y);break e;case 1:b=S;var p=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(na===null||!na.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=M1(l,b,t);Vm(l,g);break e}}l=l.return}while(l!==null)}K1(r)}catch(m){t=m,ar===r&&r!==null&&(ar=r=r.return);continue}break}while(1)}function $1(){var e=Mc.current;return Mc.current=Ec,e===null?Ec:e}function Jg(){(ur===0||ur===3||ur===2)&&(ur=4),br===null||!(Fa&268435455)&&!(yd&268435455)||$o(br,xr)}function Ic(e,t){var r=Ot;Ot|=2;var a=$1();(br!==e||xr!==t)&&(bo=null,Na(e,t));do try{XM();break}catch(s){U1(e,s)}while(1);if(Lg(),Ot=r,Mc.current=a,ar!==null)throw Error(Ge(261));return br=null,xr=0,ur}function XM(){for(;ar!==null;)q1(ar)}function YM(){for(;ar!==null&&!bE();)q1(ar)}function q1(e){var t=Q1(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?K1(e):ar=t,$g.current=null}function K1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=zM(r,t),r!==null){r.flags&=32767,ar=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ur=6,ar=null;return}}else if(r=DM(r,t,tn),r!==null){ar=r;return}if(t=t.sibling,t!==null){ar=t;return}ar=t=e}while(t!==null);ur===0&&(ur=5)}function Oa(e,t,r){var a=Nt,s=Sn.transition;try{Sn.transition=null,Nt=1,GM(e,t,r,a)}finally{Sn.transition=s,Nt=a}return null}function GM(e,t,r,a){do Ri();while(Ko!==null);if(Ot&6)throw Error(Ge(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ge(177));e.callbackNode=null,e.callbackPriority=0;var l=r.lanes|r.childLanes;if(PE(e,l),e===br&&(ar=br=null,xr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Au||(Au=!0,J1(gc,function(){return Ri(),null})),l=(r.flags&15990)!==0,r.subtreeFlags&15990||l){l=Sn.transition,Sn.transition=null;var f=Nt;Nt=1;var b=Ot;Ot|=4,$g.current=null,VM(e,r),X1(r,e),fM(oh),vc=!!nh,oh=nh=null,e.current=r,WM(r),vE(),Ot=b,Nt=f,Sn.transition=l}else e.current=r;if(Au&&(Au=!1,Ko=e,Nc=s),l=e.pendingLanes,l===0&&(na=null),xE(r.stateNode),Qr(e,or()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],a(s.value,{componentStack:s.stack,digest:s.digest});if(Rc)throw Rc=!1,e=kh,kh=null,e;return Nc&1&&e.tag!==0&&Ri(),l=e.pendingLanes,l&1?e===Th?tl++:(tl=0,Th=e):tl=0,pa(),null}function Ri(){if(Ko!==null){var e=Aw(Nc),t=Sn.transition,r=Nt;try{if(Sn.transition=null,Nt=16>e?16:e,Ko===null)var a=!1;else{if(e=Ko,Ko=null,Nc=0,Ot&6)throw Error(Ge(331));var s=Ot;for(Ot|=4,tt=e.current;tt!==null;){var l=tt,f=l.child;if(tt.flags&16){var b=l.deletions;if(b!==null){for(var S=0;S<b.length;S++){var T=b[S];for(tt=T;tt!==null;){var O=tt;switch(O.tag){case 0:case 11:case 15:Js(8,O,l)}var j=O.child;if(j!==null)j.return=O,tt=j;else for(;tt!==null;){O=tt;var F=O.sibling,z=O.return;if(W1(O),O===T){tt=null;break}if(F!==null){F.return=z,tt=F;break}tt=z}}}var D=l.alternate;if(D!==null){var R=D.child;if(R!==null){D.child=null;do{var P=R.sibling;R.sibling=null,R=P}while(R!==null)}}tt=l}}if(l.subtreeFlags&2064&&f!==null)f.return=l,tt=f;else e:for(;tt!==null;){if(l=tt,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Js(9,l,l.return)}var y=l.sibling;if(y!==null){y.return=l.return,tt=y;break e}tt=l.return}}var p=e.current;for(tt=p;tt!==null;){f=tt;var v=f.child;if(f.subtreeFlags&2064&&v!==null)v.return=f,tt=v;else e:for(f=p;tt!==null;){if(b=tt,b.flags&2048)try{switch(b.tag){case 0:case 11:case 15:md(9,b)}}catch(m){rr(b,b.return,m)}if(b===f){tt=null;break e}var g=b.sibling;if(g!==null){g.return=b.return,tt=g;break e}tt=b.return}}if(Ot=s,pa(),oo&&typeof oo.onPostCommitFiberRoot=="function")try{oo.onPostCommitFiberRoot(cd,e)}catch{}a=!0}return a}finally{Nt=r,Sn.transition=t}}return!1}function ly(e,t,r){t=Hi(r,t),t=E1(e,t,1),e=ra(e,t,1),t=jr(),e!==null&&(Dl(e,1,t),Qr(e,t))}function rr(e,t,r){if(e.tag===3)ly(e,e,r);else for(;t!==null;){if(t.tag===3){ly(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){e=Hi(r,e),e=M1(t,e,1),t=ra(t,e,1),e=jr(),t!==null&&(Dl(t,1,e),Qr(t,e));break}}t=t.return}}function UM(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=jr(),e.pingedLanes|=e.suspendedLanes&r,br===e&&(xr&r)===r&&(ur===4||ur===3&&(xr&130023424)===xr&&500>or()-Kg?Na(e,0):qg|=r),Qr(e,t)}function Z1(e,t){t===0&&(e.mode&1?(t=yu,yu<<=1,!(yu&130023424)&&(yu=4194304)):t=1);var r=jr();e=To(e,t),e!==null&&(Dl(e,t,r),Qr(e,r))}function $M(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z1(e,r)}function qM(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(Ge(314))}a!==null&&a.delete(t),Z1(e,r)}var Q1;Q1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kr.current)$r=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return $r=!1,jM(e,t,r);$r=!!(e.flags&131072)}else $r=!1,$t&&t.flags&1048576&&t1(t,kc,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Uu(e,t),e=t.pendingProps;var s=Fi(t,Er.current);Mi(t,r),s=Hg(null,t,a,e,s,r);var l=Xg();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zr(a)?(l=!0,Cc(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,zg(t),s.updater=bd,t.stateNode=s,s._reactInternals=t,ph(t,a,e,r),t=bh(null,t,a,!0,l,r)):(t.tag=0,$t&&l&&Mg(t),Lr(null,t,s,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Uu(e,t),e=t.pendingProps,s=a._init,a=s(a._payload),t.type=a,s=t.tag=ZM(a),e=Rn(a,e),s){case 0:t=gh(null,t,a,e,r);break e;case 1:t=Qm(null,t,a,e,r);break e;case 11:t=Km(null,t,a,e,r);break e;case 14:t=Zm(null,t,a,Rn(a.type,e),r);break e}throw Error(Ge(306,a,""))}return t;case 0:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:Rn(a,s),gh(e,t,a,s,r);case 1:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:Rn(a,s),Qm(e,t,a,s,r);case 3:e:{if(L1(t),e===null)throw Error(Ge(387));a=t.pendingProps,l=t.memoizedState,s=l.element,a1(e,t),_c(t,a,null,r);var f=t.memoizedState;if(a=f.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=Hi(Error(Ge(423)),t),t=Jm(e,t,a,r,s);break e}else if(a!==s){s=Hi(Error(Ge(424)),t),t=Jm(e,t,a,r,s);break e}else for(rn=ta(t.stateNode.containerInfo.firstChild),nn=t,$t=!0,In=null,r=u1(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vi(),a===s){t=Po(e,t,r);break e}Lr(e,t,a,r)}t=t.child}return t;case 5:return c1(t),e===null&&ch(t),a=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,f=s.children,ah(a,s)?f=null:l!==null&&ah(a,l)&&(t.flags|=32),I1(e,t),Lr(e,t,f,r),t.child;case 6:return e===null&&ch(t),null;case 13:return j1(e,t,r);case 4:return Fg(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wi(t,null,a,r):Lr(e,t,a,r),t.child;case 11:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:Rn(a,s),Km(e,t,a,s,r);case 7:return Lr(e,t,t.pendingProps,r),t.child;case 8:return Lr(e,t,t.pendingProps.children,r),t.child;case 12:return Lr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,s=t.pendingProps,l=t.memoizedProps,f=s.value,Ft(Tc,a._currentValue),a._currentValue=f,l!==null)if(Wn(l.value,f)){if(l.children===s.children&&!Kr.current){t=Po(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var b=l.dependencies;if(b!==null){f=l.child;for(var S=b.firstContext;S!==null;){if(S.context===a){if(l.tag===1){S=xo(-1,r&-r),S.tag=2;var T=l.updateQueue;if(T!==null){T=T.shared;var O=T.pending;O===null?S.next=S:(S.next=O.next,O.next=S),T.pending=S}}l.lanes|=r,S=l.alternate,S!==null&&(S.lanes|=r),dh(l.return,r,t),b.lanes|=r;break}S=S.next}}else if(l.tag===10)f=l.type===t.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(Ge(341));f.lanes|=r,b=f.alternate,b!==null&&(b.lanes|=r),dh(f,r,t),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===t){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}Lr(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,a=t.pendingProps.children,Mi(t,r),s=kn(s),a=a(s),t.flags|=1,Lr(e,t,a,r),t.child;case 14:return a=t.type,s=Rn(a,t.pendingProps),s=Rn(a.type,s),Zm(e,t,a,s,r);case 15:return R1(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:Rn(a,s),Uu(e,t),t.tag=1,Zr(a)?(e=!0,Cc(t)):e=!1,Mi(t,r),s1(t,a,s),ph(t,a,s,r),bh(null,t,a,!0,e,r);case 19:return D1(e,t,r);case 22:return N1(e,t,r)}throw Error(Ge(156,t.tag))};function J1(e,t){return Tw(e,t)}function KM(e,t,r,a){this.tag=e,this.key=r,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xn(e,t,r,a){return new KM(e,t,r,a)}function e0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZM(e){if(typeof e=="function")return e0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yg)return 11;if(e===xg)return 14}return 2}function aa(e,t){var r=e.alternate;return r===null?(r=xn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ku(e,t,r,a,s,l){var f=2;if(a=e,typeof e=="function")e0(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case hi:return Ia(r.children,s,l,t);case mg:f=8,s|=8;break;case Dp:return e=xn(12,r,t,s|2),e.elementType=Dp,e.lanes=l,e;case zp:return e=xn(13,r,t,s),e.elementType=zp,e.lanes=l,e;case Fp:return e=xn(19,r,t,s),e.elementType=Fp,e.lanes=l,e;case lw:return xd(r,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iw:f=10;break e;case sw:f=9;break e;case yg:f=11;break e;case xg:f=14;break e;case Xo:f=16,a=null;break e}throw Error(Ge(130,e==null?e:typeof e,""))}return t=xn(f,r,t,s),t.elementType=e,t.type=a,t.lanes=l,t}function Ia(e,t,r,a){return e=xn(7,e,a,t),e.lanes=r,e}function xd(e,t,r,a){return e=xn(22,e,a,t),e.elementType=lw,e.lanes=r,e.stateNode={isHidden:!1},e}function cp(e,t,r){return e=xn(6,e,null,t),e.lanes=r,e}function dp(e,t,r){return t=xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QM(e,t,r,a,s){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=Yf(0),this.expirationTimes=Yf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yf(0),this.identifierPrefix=a,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function t0(e,t,r,a,s,l,f,b,S){return e=new QM(e,t,r,b,S),t===1?(t=1,l===!0&&(t|=8)):t=0,l=xn(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},zg(l),e}function JM(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function eC(e){if(!e)return ua;e=e._reactInternals;e:{if(Ua(e)!==e||e.tag!==1)throw Error(Ge(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ge(171))}if(e.tag===1){var r=e.type;if(Zr(r))return Jw(e,r,t)}return t}function tC(e,t,r,a,s,l,f,b,S){return e=t0(r,a,!0,e,s,l,f,b,S),e.context=eC(null),r=e.current,a=jr(),s=oa(r),l=xo(a,s),l.callback=t??null,ra(r,l,s),e.current.lanes=s,Dl(e,s,a),Qr(e,a),e}function wd(e,t,r,a){var s=t.current,l=jr(),f=oa(s);return r=eC(r),t.context===null?t.context=r:t.pendingContext=r,t=xo(l,f),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=ra(s,t,f),e!==null&&(zn(e,s,f,l),Xu(e,s,f)),f}function Lc(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 uy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function r0(e,t){uy(e,t),(e=e.alternate)&&uy(e,t)}function eR(){return null}var rC=typeof reportError=="function"?reportError:function(e){console.error(e)};function n0(e){this._internalRoot=e}Cd.prototype.render=n0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ge(409));wd(e,t,null,null)};Cd.prototype.unmount=n0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Va(function(){wd(null,e,null,null)}),t[ko]=null}};function Cd(e){this._internalRoot=e}Cd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rw();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Uo.length&&t!==0&&t<Uo[r].priority;r++);Uo.splice(r,0,e),r===0&&Iw(e)}};function o0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cy(){}function tR(e,t,r,a,s){if(s){if(typeof a=="function"){var l=a;a=function(){var T=Lc(f);l.call(T)}}var f=tC(t,a,e,0,null,!1,!1,"",cy);return e._reactRootContainer=f,e[ko]=f.current,gl(e.nodeType===8?e.parentNode:e),Va(),f}for(;s=e.lastChild;)e.removeChild(s);if(typeof a=="function"){var b=a;a=function(){var T=Lc(S);b.call(T)}}var S=t0(e,0,!1,null,null,!1,!1,"",cy);return e._reactRootContainer=S,e[ko]=S.current,gl(e.nodeType===8?e.parentNode:e),Va(function(){wd(t,S,r,a)}),S}function kd(e,t,r,a,s){var l=r._reactRootContainer;if(l){var f=l;if(typeof s=="function"){var b=s;s=function(){var S=Lc(f);b.call(S)}}wd(t,f,e,s)}else f=tR(r,t,e,s,a);return Lc(f)}Ew=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Hs(t.pendingLanes);r!==0&&(Sg(t,r|1),Qr(t,or()),!(Ot&6)&&(Xi=or()+500,pa()))}break;case 13:Va(function(){var a=To(e,1);if(a!==null){var s=jr();zn(a,e,1,s)}}),r0(e,1)}};kg=function(e){if(e.tag===13){var t=To(e,134217728);if(t!==null){var r=jr();zn(t,e,134217728,r)}r0(e,134217728)}};Mw=function(e){if(e.tag===13){var t=oa(e),r=To(e,t);if(r!==null){var a=jr();zn(r,e,t,a)}r0(e,t)}};Rw=function(){return Nt};Nw=function(e,t){var r=Nt;try{return Nt=e,t()}finally{Nt=r}};qp=function(e,t,r){switch(t){case"input":if(Bp(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var s=hd(a);if(!s)throw Error(Ge(90));cw(a),Bp(a,s)}}}break;case"textarea":fw(e,r);break;case"select":t=r.value,t!=null&&_i(e,!!r.multiple,t,!1)}};yw=Zg;xw=Va;var rR={usingClientEntryPoint:!1,Events:[Fl,mi,hd,vw,mw,Zg]},Ls={findFiberByHostInstance:Aa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nR={bundleType:Ls.bundleType,version:Ls.version,rendererPackageName:Ls.rendererPackageName,rendererConfig:Ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ao.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sw(e),e===null?null:e.stateNode},findFiberByHostInstance:Ls.findFiberByHostInstance||eR,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 Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{cd=Eu.inject(nR),oo=Eu}catch{}}dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rR;dn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o0(t))throw Error(Ge(200));return JM(e,t,null,r)};dn.createRoot=function(e,t){if(!o0(e))throw Error(Ge(299));var r=!1,a="",s=rC;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=t0(e,1,!1,null,null,r,!1,a,s),e[ko]=t.current,gl(e.nodeType===8?e.parentNode:e),new n0(t)};dn.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(Ge(188)):(e=Object.keys(e).join(","),Error(Ge(268,e)));return e=Sw(t),e=e===null?null:e.stateNode,e};dn.flushSync=function(e){return Va(e)};dn.hydrate=function(e,t,r){if(!Sd(t))throw Error(Ge(200));return kd(null,e,t,!0,r)};dn.hydrateRoot=function(e,t,r){if(!o0(e))throw Error(Ge(405));var a=r!=null&&r.hydratedSources||null,s=!1,l="",f=rC;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),t=tC(t,null,e,1,r??null,s,!1,l,f),e[ko]=t.current,gl(e),a)for(e=0;e<a.length;e++)r=a[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new Cd(t)};dn.render=function(e,t,r){if(!Sd(t))throw Error(Ge(200));return kd(null,e,t,!1,r)};dn.unmountComponentAtNode=function(e){if(!Sd(e))throw Error(Ge(40));return e._reactRootContainer?(Va(function(){kd(null,null,e,!1,function(){e._reactRootContainer=null,e[ko]=null})}),!0):!1};dn.unstable_batchedUpdates=Zg;dn.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Sd(r))throw Error(Ge(200));if(e==null||e._reactInternals===void 0)throw Error(Ge(38));return kd(e,t,r,!1,a)};dn.version="18.2.0-next-9e3b772b8-20220608";function nC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nC)}catch(e){console.error(e)}}nC(),tw.exports=dn;var _o=tw.exports,dy=_o;Lp.createRoot=dy.createRoot,Lp.hydrateRoot=dy.hydrateRoot;/**
* @remix-run/router v1.10.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},kl.apply(this,arguments)}var Zo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zo||(Zo={}));const fy="popstate";function oR(e){e===void 0&&(e={});function t(a,s){let{pathname:l,search:f,hash:b}=a.location;return Oh("",{pathname:l,search:f,hash:b},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){return typeof s=="string"?s:jc(s)}return iR(t,r,null,e)}function er(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function a0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aR(){return Math.random().toString(36).substr(2,8)}function py(e,t){return{usr:e.state,key:e.key,idx:t}}function Oh(e,t,r,a){return r===void 0&&(r=null),kl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ns(t):t,{state:r,key:t&&t.key||a||aR()})}function jc(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function ns(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function iR(e,t,r,a){a===void 0&&(a={});let{window:s=document.defaultView,v5Compat:l=!1}=a,f=s.history,b=Zo.Pop,S=null,T=O();T==null&&(T=0,f.replaceState(kl({},f.state,{idx:T}),""));function O(){return(f.state||{idx:null}).idx}function j(){b=Zo.Pop;let P=O(),y=P==null?null:P-T;T=P,S&&S({action:b,location:R.location,delta:y})}function F(P,y){b=Zo.Push;let p=Oh(R.location,P,y);r&&r(p,P),T=O()+1;let v=py(p,T),g=R.createHref(p);try{f.pushState(v,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;s.location.assign(g)}l&&S&&S({action:b,location:R.location,delta:1})}function z(P,y){b=Zo.Replace;let p=Oh(R.location,P,y);r&&r(p,P),T=O();let v=py(p,T),g=R.createHref(p);f.replaceState(v,"",g),l&&S&&S({action:b,location:R.location,delta:0})}function D(P){let y=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof P=="string"?P:jc(P);return er(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let R={get action(){return b},get location(){return e(s,f)},listen(P){if(S)throw new Error("A history only accepts one active listener");return s.addEventListener(fy,j),S=P,()=>{s.removeEventListener(fy,j),S=null}},createHref(P){return t(s,P)},createURL:D,encodeLocation(P){let y=D(P);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:F,replace:z,go(P){return f.go(P)}};return R}var hy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hy||(hy={}));function sR(e,t,r){r===void 0&&(r="/");let a=typeof t=="string"?ns(t):t,s=Tl(a.pathname||"/",r);if(s==null)return null;let l=oC(e);lR(l);let f=null;for(let b=0;f==null&&b<l.length;++b)f=vR(l[b],yR(s));return f}function oC(e,t,r,a){t===void 0&&(t=[]),r===void 0&&(r=[]),a===void 0&&(a="");let s=(l,f,b)=>{let S={relativePath:b===void 0?l.path||"":b,caseSensitive:l.caseSensitive===!0,childrenIndex:f,route:l};S.relativePath.startsWith("/")&&(er(S.relativePath.startsWith(a),'Absolute route path "'+S.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),S.relativePath=S.relativePath.slice(a.length));let T=ia([a,S.relativePath]),O=r.concat(S);l.children&&l.children.length>0&&(er(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+T+'".')),oC(l.children,t,O,T)),!(l.path==null&&!l.index)&&t.push({path:T,score:gR(T,l.index),routesMeta:O})};return e.forEach((l,f)=>{var b;if(l.path===""||!((b=l.path)!=null&&b.includes("?")))s(l,f);else for(let S of aC(l.path))s(l,f,S)}),t}function aC(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),l=r.replace(/\?$/,"");if(a.length===0)return s?[l,""]:[l];let f=aC(a.join("/")),b=[];return b.push(...f.map(S=>S===""?l:[l,S].join("/"))),s&&b.push(...f),b.map(S=>e.startsWith("/")&&S===""?"/":S)}function lR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:bR(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}const uR=/^:\w+$/,cR=3,dR=2,fR=1,pR=10,hR=-2,gy=e=>e==="*";function gR(e,t){let r=e.split("/"),a=r.length;return r.some(gy)&&(a+=hR),t&&(a+=dR),r.filter(s=>!gy(s)).reduce((s,l)=>s+(uR.test(l)?cR:l===""?fR:pR),a)}function bR(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function vR(e,t){let{routesMeta:r}=e,a={},s="/",l=[];for(let f=0;f<r.length;++f){let b=r[f],S=f===r.length-1,T=s==="/"?t:t.slice(s.length)||"/",O=Ah({path:b.relativePath,caseSensitive:b.caseSensitive,end:S},T);if(!O)return null;Object.assign(a,O.params);let j=b.route;l.push({params:a,pathname:ia([s,O.pathname]),pathnameBase:SR(ia([s,O.pathnameBase])),route:j}),O.pathnameBase!=="/"&&(s=ia([s,O.pathnameBase]))}return l}function Ah(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=mR(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let l=s[0],f=l.replace(/(.)\/+$/,"$1"),b=s.slice(1);return{params:a.reduce((T,O,j)=>{if(O==="*"){let F=b[j]||"";f=l.slice(0,l.length-F.length).replace(/(.)\/+$/,"$1")}return T[O]=xR(b[j]||"",O),T},{}),pathname:l,pathnameBase:f,pattern:e}}function mR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),a0(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 a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(f,b)=>(a.push(b),"/([^\\/]+)"));return e.endsWith("*")?(a.push("*"),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function yR(e){try{return decodeURI(e)}catch(t){return a0(!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 xR(e,t){try{return decodeURIComponent(e)}catch(r){return a0(!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 ("+r+").")),e}}function Tl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function wR(e,t){t===void 0&&(t="/");let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?ns(e):e;return{pathname:r?r.startsWith("/")?r:CR(r,t):t,search:kR(a),hash:TR(s)}}function CR(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function fp(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function i0(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function s0(e,t,r,a){a===void 0&&(a=!1);let s;typeof e=="string"?s=ns(e):(s=kl({},e),er(!s.pathname||!s.pathname.includes("?"),fp("?","pathname","search",s)),er(!s.pathname||!s.pathname.includes("#"),fp("#","pathname","hash",s)),er(!s.search||!s.search.includes("#"),fp("#","search","hash",s)));let l=e===""||s.pathname==="",f=l?"/":s.pathname,b;if(a||f==null)b=r;else{let j=t.length-1;if(f.startsWith("..")){let F=f.split("/");for(;F[0]==="..";)F.shift(),j-=1;s.pathname=F.join("/")}b=j>=0?t[j]:"/"}let S=wR(s,b),T=f&&f!=="/"&&f.endsWith("/"),O=(l||f===".")&&r.endsWith("/");return!S.pathname.endsWith("/")&&(T||O)&&(S.pathname+="/"),S}const ia=e=>e.join("/").replace(/\/\/+/g,"/"),SR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iC=["post","put","patch","delete"];new Set(iC);const _R=["get",...iC];new Set(_R);/**
* React Router v6.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Dc.apply(this,arguments)}const Td=ee.createContext(null),sC=ee.createContext(null),$a=ee.createContext(null),Pd=ee.createContext(null),ha=ee.createContext({outlet:null,matches:[],isDataRoute:!1}),lC=ee.createContext(null);function OR(e,t){let{relative:r}=t===void 0?{}:t;os()||er(!1);let{basename:a,navigator:s}=ee.useContext($a),{hash:l,pathname:f,search:b}=_d(e,{relative:r}),S=f;return a!=="/"&&(S=f==="/"?a:ia([a,f])),s.createHref({pathname:S,search:b,hash:l})}function os(){return ee.useContext(Pd)!=null}function qa(){return os()||er(!1),ee.useContext(Pd).location}function uC(e){ee.useContext($a).static||ee.useLayoutEffect(e)}function cC(){let{isDataRoute:e}=ee.useContext(ha);return e?WR():AR()}function AR(){os()||er(!1);let e=ee.useContext(Td),{basename:t,navigator:r}=ee.useContext($a),{matches:a}=ee.useContext(ha),{pathname:s}=qa(),l=JSON.stringify(i0(a).map(S=>S.pathnameBase)),f=ee.useRef(!1);return uC(()=>{f.current=!0}),ee.useCallback(function(S,T){if(T===void 0&&(T={}),!f.current)return;if(typeof S=="number"){r.go(S);return}let O=s0(S,JSON.parse(l),s,T.relative==="path");e==null&&t!=="/"&&(O.pathname=O.pathname==="/"?t:ia([t,O.pathname])),(T.replace?r.replace:r.push)(O,T.state,T)},[t,r,l,s,e])}function _d(e,t){let{relative:r}=t===void 0?{}:t,{matches:a}=ee.useContext(ha),{pathname:s}=qa(),l=JSON.stringify(i0(a).map(f=>f.pathnameBase));return ee.useMemo(()=>s0(e,JSON.parse(l),s,r==="path"),[e,l,s,r])}function ER(e,t){return MR(e,t)}function MR(e,t,r){os()||er(!1);let{navigator:a}=ee.useContext($a),{matches:s}=ee.useContext(ha),l=s[s.length-1],f=l?l.params:{};l&&l.pathname;let b=l?l.pathnameBase:"/";l&&l.route;let S=qa(),T;if(t){var O;let R=typeof t=="string"?ns(t):t;b==="/"||(O=R.pathname)!=null&&O.startsWith(b)||er(!1),T=R}else T=S;let j=T.pathname||"/",F=b==="/"?j:j.slice(b.length)||"/",z=sR(e,{pathname:F}),D=jR(z&&z.map(R=>Object.assign({},R,{params:Object.assign({},f,R.params),pathname:ia([b,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:ia([b,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),s,r);return t&&D?ee.createElement(Pd.Provider,{value:{location:Dc({pathname:"/",search:"",hash:"",state:null,key:"default"},T),navigationType:Zo.Pop}},D):D}function RR(){let e=VR(),t=PR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},l=null;return ee.createElement(ee.Fragment,null,ee.createElement("h2",null,"Unexpected Application Error!"),ee.createElement("h3",{style:{fontStyle:"italic"}},t),r?ee.createElement("pre",{style:s},r):null,l)}const NR=ee.createElement(RR,null);class IR extends ee.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?ee.createElement(ha.Provider,{value:this.props.routeContext},ee.createElement(lC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function LR(e){let{routeContext:t,match:r,children:a}=e,s=ee.useContext(Td);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),ee.createElement(ha.Provider,{value:t},a)}function jR(e,t,r){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var s;if((s=r)!=null&&s.errors)e=r.matches;else return null}let l=e,f=(a=r)==null?void 0:a.errors;if(f!=null){let b=l.findIndex(S=>S.route.id&&(f==null?void 0:f[S.route.id]));b>=0||er(!1),l=l.slice(0,Math.min(l.length,b+1))}return l.reduceRight((b,S,T)=>{let O=S.route.id?f==null?void 0:f[S.route.id]:null,j=null;r&&(j=S.route.errorElement||NR);let F=t.concat(l.slice(0,T+1)),z=()=>{let D;return O?D=j:S.route.Component?D=ee.createElement(S.route.Component,null):S.route.element?D=S.route.element:D=b,ee.createElement(LR,{match:S,routeContext:{outlet:b,matches:F,isDataRoute:r!=null},children:D})};return r&&(S.route.ErrorBoundary||S.route.errorElement||T===0)?ee.createElement(IR,{location:r.location,revalidation:r.revalidation,component:j,error:O,children:z(),routeContext:{outlet:null,matches:F,isDataRoute:!0}}):z()},null)}var dC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dC||{}),zc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zc||{});function DR(e){let t=ee.useContext(Td);return t||er(!1),t}function zR(e){let t=ee.useContext(sC);return t||er(!1),t}function FR(e){let t=ee.useContext(ha);return t||er(!1),t}function fC(e){let t=FR(),r=t.matches[t.matches.length-1];return r.route.id||er(!1),r.route.id}function VR(){var e;let t=ee.useContext(lC),r=zR(zc.UseRouteError),a=fC(zc.UseRouteError);return t||((e=r.errors)==null?void 0:e[a])}function WR(){let{router:e}=DR(dC.UseNavigateStable),t=fC(zc.UseNavigateStable),r=ee.useRef(!1);return uC(()=>{r.current=!0}),ee.useCallback(function(s,l){l===void 0&&(l={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Dc({fromRouteId:t},l)))},[e,t])}function BR(e){let{to:t,replace:r,state:a,relative:s}=e;os()||er(!1);let{matches:l}=ee.useContext(ha),{pathname:f}=qa(),b=cC(),S=s0(t,i0(l).map(O=>O.pathnameBase),f,s==="path"),T=JSON.stringify(S);return ee.useEffect(()=>b(JSON.parse(T),{replace:r,state:a,relative:s}),[b,T,s,r,a]),null}function Ni(e){er(!1)}function HR(e){let{basename:t="/",children:r=null,location:a,navigationType:s=Zo.Pop,navigator:l,static:f=!1}=e;os()&&er(!1);let b=t.replace(/^\/*/,"/"),S=ee.useMemo(()=>({basename:b,navigator:l,static:f}),[b,l,f]);typeof a=="string"&&(a=ns(a));let{pathname:T="/",search:O="",hash:j="",state:F=null,key:z="default"}=a,D=ee.useMemo(()=>{let R=Tl(T,b);return R==null?null:{location:{pathname:R,search:O,hash:j,state:F,key:z},navigationType:s}},[b,T,O,j,F,z,s]);return D==null?null:ee.createElement($a.Provider,{value:S},ee.createElement(Pd.Provider,{children:r,value:D}))}function l0(e){let{children:t,location:r}=e;return ER(Eh(t),r)}new Promise(()=>{});function Eh(e,t){t===void 0&&(t=[]);let r=[];return ee.Children.forEach(e,(a,s)=>{if(!ee.isValidElement(a))return;let l=[...t,s];if(a.type===ee.Fragment){r.push.apply(r,Eh(a.props.children,l));return}a.type!==Ni&&er(!1),!a.props.index||!a.props.children||er(!1);let f={id:a.props.id||l.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(f.children=Eh(a.props.children,l)),r.push(f)}),r}/**
* React Router DOM v6.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Fc.apply(this,arguments)}function pC(e,t){if(e==null)return{};var r={},a=Object.keys(e),s,l;for(l=0;l<a.length;l++)s=a[l],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function XR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YR(e,t){return e.button===0&&(!t||t==="_self")&&!XR(e)}const GR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],UR=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],$R=ee.createContext({isTransitioning:!1}),qR="startTransition",by=hg[qR];function KR(e){let{basename:t,children:r,future:a,window:s}=e,l=ee.useRef();l.current==null&&(l.current=oR({window:s,v5Compat:!0}));let f=l.current,[b,S]=ee.useState({action:f.action,location:f.location}),{v7_startTransition:T}=a||{},O=ee.useCallback(j=>{T&&by?by(()=>S(j)):S(j)},[S,T]);return ee.useLayoutEffect(()=>f.listen(O),[f,O]),ee.createElement(HR,{basename:t,children:r,location:b.location,navigationType:b.action,navigator:f})}const ZR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vc=ee.forwardRef(function(t,r){let{onClick:a,relative:s,reloadDocument:l,replace:f,state:b,target:S,to:T,preventScrollReset:O,unstable_viewTransition:j}=t,F=pC(t,GR),{basename:z}=ee.useContext($a),D,R=!1;if(typeof T=="string"&&QR.test(T)&&(D=T,ZR))try{let v=new URL(window.location.href),g=T.startsWith("//")?new URL(v.protocol+T):new URL(T),m=Tl(g.pathname,z);g.origin===v.origin&&m!=null?T=m+g.search+g.hash:R=!0}catch{}let P=OR(T,{relative:s}),y=tN(T,{replace:f,state:b,target:S,preventScrollReset:O,relative:s,unstable_viewTransition:j});function p(v){a&&a(v),v.defaultPrevented||y(v)}return ee.createElement("a",Fc({},F,{href:D||P,onClick:R||l?a:p,ref:r,target:S}))}),JR=ee.forwardRef(function(t,r){let{"aria-current":a="page",caseSensitive:s=!1,className:l="",end:f=!1,style:b,to:S,unstable_viewTransition:T,children:O}=t,j=pC(t,UR),F=_d(S,{relative:j.relative}),z=qa(),D=ee.useContext(sC),{navigator:R}=ee.useContext($a),P=D!=null&&rN(F)&&T===!0,y=R.encodeLocation?R.encodeLocation(F).pathname:F.pathname,p=z.pathname,v=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;s||(p=p.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase());let g=p===y||!f&&p.startsWith(y)&&p.charAt(y.length)==="/",m=v!=null&&(v===y||!f&&v.startsWith(y)&&v.charAt(y.length)==="/"),_={isActive:g,isPending:m,isTransitioning:P},M=g?a:void 0,X;typeof l=="function"?X=l(_):X=[l,g?"active":null,m?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let H=typeof b=="function"?b(_):b;return ee.createElement(Vc,Fc({},j,{"aria-current":M,className:X,ref:r,style:H,to:S,unstable_viewTransition:T}),typeof O=="function"?O(_):O)});var Mh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Mh||(Mh={}));var vy;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vy||(vy={}));function eN(e){let t=ee.useContext(Td);return t||er(!1),t}function tN(e,t){let{target:r,replace:a,state:s,preventScrollReset:l,relative:f,unstable_viewTransition:b}=t===void 0?{}:t,S=cC(),T=qa(),O=_d(e,{relative:f});return ee.useCallback(j=>{if(YR(j,r)){j.preventDefault();let F=a!==void 0?a:jc(T)===jc(O);S(e,{replace:F,state:s,preventScrollReset:l,relative:f,unstable_viewTransition:b})}},[T,S,O,a,s,r,e,l,f,b])}function rN(e,t){t===void 0&&(t={});let r=ee.useContext($R);r==null&&er(!1);let{basename:a}=eN(Mh.useViewTransitionState),s=_d(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=Tl(r.currentLocation.pathname,a)||r.currentLocation.pathname,f=Tl(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Ah(s.pathname,f)!=null||Ah(s.pathname,l)!=null}function nN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M12 7.5a2.25 2.25 0 100 4.5 2.25 2.25 0 000-4.5z"}),ee.createElement("path",{fillRule:"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 011.5 14.625v-9.75zM8.25 9.75a3.75 3.75 0 117.5 0 3.75 3.75 0 01-7.5 0zM18.75 9a.75.75 0 00-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 00.75-.75V9.75a.75.75 0 00-.75-.75h-.008zM4.5 9.75A.75.75 0 015.25 9h.008a.75.75 0 01.75.75v.008a.75.75 0 01-.75.75H5.25a.75.75 0 01-.75-.75V9.75z",clipRule:"evenodd"}),ee.createElement("path",{d:"M2.25 18a.75.75 0 000 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 00-.75-.75H2.25z"}))}const oN=ee.forwardRef(nN),hC=oN;function aN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 013.75 6h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 6.75zM3 12a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 12zm0 5.25a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const iN=ee.forwardRef(aN),sN=iN;function lN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z",clipRule:"evenodd"}))}const uN=ee.forwardRef(lN),gC=uN;function cN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M18.375 2.25c-1.035 0-1.875.84-1.875 1.875v15.75c0 1.035.84 1.875 1.875 1.875h.75c1.035 0 1.875-.84 1.875-1.875V4.125c0-1.036-.84-1.875-1.875-1.875h-.75zM9.75 8.625c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-.75a1.875 1.875 0 01-1.875-1.875V8.625zM3 13.125c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v6.75c0 1.035-.84 1.875-1.875 1.875h-.75A1.875 1.875 0 013 19.875v-6.75z"}))}const dN=ee.forwardRef(cN),fN=dN;function pN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const hN=ee.forwardRef(pN),gN=hN;function bN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 6a.75.75 0 00-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 000-1.5h-3.75V6z",clipRule:"evenodd"}))}const vN=ee.forwardRef(bN),Zu=vN;function mN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 00-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 00-2.282.819l-.922 1.597a1.875 1.875 0 00.432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 000 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 00-.432 2.385l.922 1.597a1.875 1.875 0 002.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 002.28-.819l.923-1.597a1.875 1.875 0 00-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 000-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 00-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 00-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 00-1.85-1.567h-1.843zM12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5z",clipRule:"evenodd"}))}const yN=ee.forwardRef(mN),bC=yN;function xN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M4.5 3.75a3 3 0 00-3 3v.75h21v-.75a3 3 0 00-3-3h-15z"}),ee.createElement("path",{fillRule:"evenodd",d:"M22.5 9.75h-21v7.5a3 3 0 003 3h15a3 3 0 003-3v-7.5zm-18 3.75a.75.75 0 01.75-.75h6a.75.75 0 010 1.5h-6a.75.75 0 01-.75-.75zm.75 2.25a.75.75 0 000 1.5h3a.75.75 0 000-1.5h-3z",clipRule:"evenodd"}))}const wN=ee.forwardRef(xN),vC=wN;function CN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"}))}const SN=ee.forwardRef(CN),kN=SN;function TN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M2.625 6.75a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0A.75.75 0 018.25 6h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75zM2.625 12a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zM7.5 12a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12A.75.75 0 017.5 12zm-4.875 5.25a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const PN=ee.forwardRef(TN),_N=PN;function ON({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M18 1.5c2.9 0 5.25 2.35 5.25 5.25v3.75a.75.75 0 01-1.5 0V6.75a3.75 3.75 0 10-7.5 0v3a3 3 0 013 3v6.75a3 3 0 01-3 3H3.75a3 3 0 01-3-3v-6.75a3 3 0 013-3h9v-3c0-2.9 2.35-5.25 5.25-5.25z"}))}const AN=ee.forwardRef(ON),EN=AN;function MN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 9a.75.75 0 00-1.5 0v2.25H9a.75.75 0 000 1.5h2.25V15a.75.75 0 001.5 0v-2.25H15a.75.75 0 000-1.5h-2.25V9z",clipRule:"evenodd"}))}const RN=ee.forwardRef(MN),NN=RN;function IN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M2.25 2.25a.75.75 0 000 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 00-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 000-1.5H5.378A2.25 2.25 0 017.5 15h11.218a.75.75 0 00.674-.421 60.358 60.358 0 002.96-7.228.75.75 0 00-.525-.965A60.864 60.864 0 005.68 4.509l-.232-.867A1.875 1.875 0 003.636 2.25H2.25zM3.75 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zM16.5 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"}))}const LN=ee.forwardRef(IN),jN=LN;function DN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M11.644 1.59a.75.75 0 01.712 0l9.75 5.25a.75.75 0 010 1.32l-9.75 5.25a.75.75 0 01-.712 0l-9.75-5.25a.75.75 0 010-1.32l9.75-5.25z"}),ee.createElement("path",{d:"M3.265 10.602l7.668 4.129a2.25 2.25 0 002.134 0l7.668-4.13 1.37.739a.75.75 0 010 1.32l-9.75 5.25a.75.75 0 01-.71 0l-9.75-5.25a.75.75 0 010-1.32l1.37-.738z"}),ee.createElement("path",{d:"M10.933 19.231l-7.668-4.13-1.37.739a.75.75 0 000 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 000-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 01-2.134-.001z"}))}const zN=ee.forwardRef(DN),FN=zN;function VN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z",clipRule:"evenodd"}))}const WN=ee.forwardRef(VN),my=WN;function BN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M6.25 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM3.25 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM19.75 7.5a.75.75 0 00-1.5 0v2.25H16a.75.75 0 000 1.5h2.25v2.25a.75.75 0 001.5 0v-2.25H22a.75.75 0 000-1.5h-2.25V7.5z"}))}const HN=ee.forwardRef(BN),XN=HN;function YN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM17.25 19.128l-.001.144a2.25 2.25 0 01-.233.96 10.088 10.088 0 005.06-1.01.75.75 0 00.42-.643 4.875 4.875 0 00-6.957-4.611 8.586 8.586 0 011.71 5.157v.003z"}))}const GN=ee.forwardRef(YN),UN=GN;function $N({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 6.75a5.25 5.25 0 016.775-5.025.75.75 0 01.313 1.248l-3.32 3.319c.063.475.276.934.641 1.299.365.365.824.578 1.3.64l3.318-3.319a.75.75 0 011.248.313 5.25 5.25 0 01-5.472 6.756c-1.018-.086-1.87.1-2.309.634L7.344 21.3A3.298 3.298 0 112.7 16.657l8.684-7.151c.533-.44.72-1.291.634-2.309A5.342 5.342 0 0112 6.75zM4.117 19.125a.75.75 0 01.75-.75h.008a.75.75 0 01.75.75v.008a.75.75 0 01-.75.75h-.008a.75.75 0 01-.75-.75v-.008z",clipRule:"evenodd"}),ee.createElement("path",{d:"M10.076 8.64l-2.201-2.2V4.874a.75.75 0 00-.364-.643l-3.75-2.25a.75.75 0 00-.916.113l-.75.75a.75.75 0 00-.113.916l2.25 3.75a.75.75 0 00.643.364h1.564l2.062 2.062 1.575-1.297z"}),ee.createElement("path",{fillRule:"evenodd",d:"M12.556 17.329l4.183 4.182a3.375 3.375 0 004.773-4.773l-3.306-3.305a6.803 6.803 0 01-1.53.043c-.394-.034-.682-.006-.867.042a.589.589 0 00-.167.063l-3.086 3.748zm3.414-1.36a.75.75 0 011.06 0l1.875 1.876a.75.75 0 11-1.06 1.06L15.97 17.03a.75.75 0 010-1.06z",clipRule:"evenodd"}))}const qN=ee.forwardRef($N),KN=qN;var De={},mC={},yC={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a=[],s=0;s<arguments.length;s++){var l=arguments[s];if(l){var f=typeof l;if(f==="string"||f==="number")a.push(l);else if(Array.isArray(l)){if(l.length){var b=r.apply(null,l);b&&a.push(b)}}else if(f==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){a.push(l.toString());continue}for(var S in l)t.call(l,S)&&l[S]&&a.push(S)}}}return a.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yC);var ht=yC.exports,xC={exports:{}},Mn={};function u0(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=wC(e))&&(a&&(a+=" "),a+=t);return a}function wC(e){if(typeof e=="string")return e;for(var t,r="",a=0;a<e.length;a++)e[a]&&(t=wC(e[a]))&&(r&&(r+=" "),r+=t);return r}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Rh.apply(this,arguments)}function ZN(e){var t=function(r){var a=r.theme,s=r.prefix,l={nextPart:new Map,validators:[]};return function(f,b){return b?f.map(function(S){return[S[0],S[1].map(function(T){return typeof T=="string"?b+T:typeof T=="object"?Object.fromEntries(Object.entries(T).map(function(O){return[b+O[0],O[1]]})):T})]}):f}(Object.entries(r.classGroups),s).forEach(function(f){Nh(f[1],l,f[0],a)}),l}(e);return{getClassGroupId:function(r){var a=r.split("-");return a[0]===""&&a.length!==1&&a.shift(),CC(a,t)||function(s){if(yy.test(s)){var l=yy.exec(s)[1],f=l==null?void 0:l.substring(0,l.indexOf(":"));if(f)return"arbitrary.."+f}}(r)},getConflictingClassGroupIds:function(r){return e.conflictingClassGroups[r]||[]}}}function CC(e,t){var r;if(e.length===0)return t.classGroupId;var a=t.nextPart.get(e[0]),s=a?CC(e.slice(1),a):void 0;if(s)return s;if(t.validators.length!==0){var l=e.join("-");return(r=t.validators.find(function(f){return(0,f.validator)(l)}))==null?void 0:r.classGroupId}}Object.defineProperty(Mn,"__esModule",{value:!0});var yy=/^\[(.+)\]$/;function Nh(e,t,r,a){e.forEach(function(s){if(typeof s!="string"){if(typeof s=="function")return s.isThemeGetter?void Nh(s(a),t,r,a):void t.validators.push({validator:s,classGroupId:r});Object.entries(s).forEach(function(l){Nh(l[1],xy(t,l[0]),r,a)})}else(s===""?t:xy(t,s)).classGroupId=r})}function xy(e,t){var r=e;return t.split("-").forEach(function(a){r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r}function QN(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,a=new Map;function s(l,f){r.set(l,f),++t>e&&(t=0,a=r,r=new Map)}return{get:function(l){var f=r.get(l);return f!==void 0?f:(f=a.get(l))!==void 0?(s(l,f),f):void 0},set:function(l,f){r.has(l)?r.set(l,f):s(l,f)}}}function JN(e){var t=e.separator||":";return function(r){for(var a=0,s=[],l=0,f=0;f<r.length;f++){var b=r[f];a===0&&b===t[0]&&(t.length!==1&&r.slice(f,f+t.length)!==t||(s.push(r.slice(l,f)),l=f+t.length)),b==="["?a++:b==="]"&&a--}var S=s.length===0?r:r.substring(l),T=S.startsWith("!");return{modifiers:s,hasImportantModifier:T,baseClassName:T?S.substring(1):S}}}function eI(e){return Rh({cache:QN(e.cacheSize),splitModifiers:JN(e)},ZN(e))}var tI=/\s+/;function rI(e,t){var r=t.splitModifiers,a=t.getClassGroupId,s=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(tI).map(function(f){var b=r(f),S=b.modifiers,T=b.hasImportantModifier,O=a(b.baseClassName);if(!O)return{isTailwindClass:!1,originalClassName:f};var j=function(F){if(F.length<=1)return F;var z=[],D=[];return F.forEach(function(R){R[0]==="["?(z.push.apply(z,D.sort().concat([R])),D=[]):D.push(R)}),z.push.apply(z,D.sort()),z}(S).join(":");return{isTailwindClass:!0,modifierId:T?j+"!":j,classGroupId:O,originalClassName:f}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var b=f.modifierId,S=f.classGroupId,T=b+S;return!l.has(T)&&(l.add(T),s(S).forEach(function(O){return l.add(b+O)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function Ih(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,s,l,f=b;function b(T){var O=t[0],j=t.slice(1).reduce(function(F,z){return z(F)},O());return a=eI(j),s=a.cache.get,l=a.cache.set,f=S,S(T)}function S(T){var O=s(T);if(O)return O;var j=rI(T,a);return l(T,j),j}return function(){return f(u0.apply(null,arguments))}}function Ht(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var ga=/^\[(.+)\]$/,nI=/^\d+\/\d+$/,oI=new Set(["px","full","screen"]),aI=/^(\d+)?(xs|sm|md|lg|xl)$/,iI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,sI=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function bn(e){return!Number.isNaN(Number(e))||oI.has(e)||nI.test(e)||Go(e)}function Go(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(r.startsWith("length:")||iI.test(r))}function SC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&r.startsWith("size:")}function kC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&r.startsWith("position:")}function TC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(r.startsWith("url(")||r.startsWith("url:"))}function Wc(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(!Number.isNaN(Number(r))||r.startsWith("number:"))}function Pr(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return Number.isInteger(Number(r||e))}function hr(e){return ga.test(e)}function fi(){return!0}function go(e){return aI.test(e)}function PC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&sI.test(r)}var lI={__proto__:null,isLength:bn,isArbitraryLength:Go,isArbitrarySize:SC,isArbitraryPosition:kC,isArbitraryUrl:TC,isArbitraryNumber:Wc,isArbitraryWeight:Wc,isInteger:Pr,isArbitraryValue:hr,isAny:fi,isTshirtSize:go,isArbitraryShadow:PC};function Qu(){var e=Ht("colors"),t=Ht("spacing"),r=Ht("blur"),a=Ht("brightness"),s=Ht("borderColor"),l=Ht("borderRadius"),f=Ht("borderSpacing"),b=Ht("borderWidth"),S=Ht("contrast"),T=Ht("grayscale"),O=Ht("hueRotate"),j=Ht("invert"),F=Ht("gap"),z=Ht("gradientColorStops"),D=Ht("inset"),R=Ht("margin"),P=Ht("opacity"),y=Ht("padding"),p=Ht("saturate"),v=Ht("scale"),g=Ht("sepia"),m=Ht("skew"),_=Ht("space"),M=Ht("translate"),X=function(){return["auto",t]},H=function(){return["",bn]},B=function(){return["auto",Pr]},U=function(){return["","0",hr]};return{cacheSize:500,theme:{colors:[fi],spacing:[bn],blur:["none","",go,Go],brightness:[Pr],borderColor:[e],borderRadius:["none","","full",go,Go],borderSpacing:[t],borderWidth:H(),contrast:[Pr],grayscale:U(),hueRotate:[Pr],invert:U(),gap:[t],gradientColorStops:[e],inset:X(),margin:X(),opacity:[Pr],padding:[t],saturate:[Pr],scale:[Pr],sepia:U(),skew:[Pr,hr],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",hr]}],container:["container"],columns:[{columns:[go]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[hr])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:[Pr]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",hr]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",Pr]}],"grid-cols":[{"grid-cols":[fi]}],"col-start-end":[{col:["auto",{span:[Pr]}]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[fi]}],"row-start-end":[{row:["auto",{span:[Pr]}]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",hr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",hr]}],gap:[{gap:[F]}],"gap-x":[{"gap-x":[F]}],"gap-y":[{"gap-y":[F]}],"justify-content":[{justify:["start","end","center","between","around","evenly"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(["start","end","center","between","around","evenly"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly"],["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",bn]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[go]},go,Go]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",bn]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",go,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wc]}],"font-family":[{font:[fi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Go]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bn]}],"list-style-type":[{list:["none","disc","decimal",hr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",bn]}],"underline-offset":[{"underline-offset":["auto",bn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Go]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",hr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[kC])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TC]}],"bg-color":[{bg:[e]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[b]}],"border-w-x":[{"border-x":[b]}],"border-w-y":[{"border-y":[b]}],"border-w-t":[{"border-t":[b]}],"border-w-r":[{"border-r":[b]}],"border-w-b":[{"border-b":[b]}],"border-w-l":[{"border-l":[b]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[b]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[b]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[bn]}],"outline-w":[{outline:[bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",go,PC]}],"shadow-color":[{shadow:[fi]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[S]}],"drop-shadow":[{"drop-shadow":["","none",go,hr]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[O]}],invert:[{invert:[j]}],saturate:[{saturate:[p]}],sepia:[{sepia:[g]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[S]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",hr]}],duration:[{duration:[Pr]}],ease:[{ease:["linear","in","out","in-out",hr]}],delay:[{delay:[Pr]}],animate:[{animate:["none","spin","ping","pulse","bounce",hr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Pr,hr]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[m]}],"skew-y":[{"skew-y":[m]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",hr]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",hr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",hr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[bn,Wc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var uI=Ih(Qu);function wy(e,t){for(var r in t)_C(e,r,t[r]);return e}var cI=Object.prototype.hasOwnProperty,dI=new Set(["string","number","boolean"]);function _C(e,t,r){if(cI.call(e,t)&&!dI.has(typeof r)&&r!==null){if(Array.isArray(r)&&Array.isArray(e[t]))e[t]=e[t].concat(r);else if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null)return void(e[t]=r);for(var a in r)_C(e[t],a,r[a])}}else e[t]=r}var fI=u0;Mn.createTailwindMerge=Ih,Mn.extendTailwindMerge=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return Ih.apply(void 0,typeof e=="function"?[Qu,e].concat(r):[function(){return wy(Qu(),e)}].concat(r))},Mn.fromTheme=Ht,Mn.getDefaultConfig=Qu,Mn.join=fI,Mn.mergeConfigs=wy,Mn.twJoin=u0,Mn.twMerge=uI,Mn.validators=lI;xC.exports=Mn;var ut=xC.exports,at={},OC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});function t(S,T){(T==null||T>S.length)&&(T=S.length);for(var O=0,j=new Array(T);O<T;O++)j[O]=S[O];return j}function r(S){if(Array.isArray(S))return t(S)}function a(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(S){return r(S)||a(S)||f(S)||s()}function f(S,T){if(S){if(typeof S=="string")return t(S,T);var O=Object.prototype.toString.call(S).slice(8,-1);if(O==="Object"&&S.constructor&&(O=S.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return t(S,T)}}function b(S){var T=[];return Object.values(S).forEach(function(O){typeof O=="string"?T=l(T).concat([O]):typeof O=="object"&&!Array.isArray(O)&&O!==null&&(T=l(T).concat(l(b(O))))}),T}})(OC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});var t=r(OC);function r(s){return s&&s.__esModule?s:{default:s}}function a(s){return(0,t.default)(s).join(" ")}})(at);var nt={},AC={exports:{}},pI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hI=pI,gI=hI;function EC(){}function MC(){}MC.resetWarningCache=EC;var bI=function(){function e(a,s,l,f,b,S){if(S!==gI){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MC,resetWarningCache:EC};return r.PropTypes=r,r};AC.exports=bI();var it=AC.exports;const Vt=Xx(it);var vI=function(t){return mI(t)&&!yI(t)};function mI(e){return!!e&&typeof e=="object"}function yI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||CI(e)}var xI=typeof Symbol=="function"&&Symbol.for,wI=xI?Symbol.for("react.element"):60103;function CI(e){return e.$$typeof===wI}function SI(e){return Array.isArray(e)?[]:{}}function Pl(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Yi(SI(e),e,t):e}function kI(e,t,r){return e.concat(t).map(function(a){return Pl(a,r)})}function TI(e,t){if(!t.customMerge)return Yi;var r=t.customMerge(e);return typeof r=="function"?r:Yi}function PI(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function Cy(e){return Object.keys(e).concat(PI(e))}function RC(e,t){try{return t in e}catch{return!1}}function _I(e,t){return RC(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function OI(e,t,r){var a={};return r.isMergeableObject(e)&&Cy(e).forEach(function(s){a[s]=Pl(e[s],r)}),Cy(t).forEach(function(s){_I(e,s)||(RC(e,s)&&r.isMergeableObject(t[s])?a[s]=TI(s,r)(e[s],t[s],r):a[s]=Pl(t[s],r))}),a}function Yi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||kI,r.isMergeableObject=r.isMergeableObject||vI,r.cloneUnlessOtherwiseSpecified=Pl;var a=Array.isArray(t),s=Array.isArray(e),l=a===s;return l?a?r.arrayMerge(e,t,r):OI(e,t,r):Pl(t,r)}Yi.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,s){return Yi(a,s,r)},{})};var AI=Yi,Cr=AI,c0={},NC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{accordion:function(){return r},default:function(){return a}});var r={defaultProps:{icon:void 0,className:"",animate:{unmount:{},mount:{}},disabled:!1},styles:{base:{container:{display:"block",position:"relative",width:"w-full"},header:{initial:{display:"flex",justifyContent:"justify-between",alignItems:"items-center",width:"w-full",py:"py-4",borderWidth:"border-b border-b-blue-gray-100",color:"text-blue-gray-700",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-xl",textAlign:"text-left",fontWeight:"font-semibold",lineHeight:"leading-snug",userSelect:"select-none",hover:"hover:text-blue-gray-900",transition:"transition-colors"},active:{color:"text-blue-gray-900"},icon:{ml:"ml-4"}},body:{display:"block",width:"w-full",py:"py-4",color:"text-gray-700",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-light",lineHeight:"leading-normal"},disabled:{pointerEvents:"pointer-events-none",opacity:"opacity-50"}}}},a=r})(NC);var IC={},LC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(LC);var jC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(jC);var DC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-700"},gray:{border:"border border-gray-900",color:"text-gray-900"},brown:{border:"border border-brown-500",color:"text-brown-700"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-700"},orange:{border:"border border-orange-500",color:"text-orange-700"},amber:{border:"border border-amber-500",color:"text-amber-700"},yellow:{border:"border border-yellow-500",color:"text-yellow-700"},lime:{border:"border border-lime-500",color:"text-lime-700"},"light-green":{border:"border border-light-green-500",color:"text-light-green-700"},green:{border:"border border-green-500",color:"text-green-700"},teal:{border:"border border-teal-500",color:"text-teal-700"},cyan:{border:"border border-cyan-500",color:"text-cyan-700"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-700"},blue:{border:"border border-blue-500",color:"text-blue-700"},indigo:{border:"border border-indigo-500",color:"text-indigo-700"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-700"},purple:{border:"border border-purple-500",color:"text-purple-700"},pink:{border:"border border-pink-500",color:"text-pink-700"},red:{border:"border border-red-500",color:"text-red-700"}},r=t})(DC);var zC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500/20",color:"text-blue-gray-900"},gray:{backgroud:"bg-gray-900/10",color:"text-gray-900"},brown:{backgroud:"bg-brown-500/20",color:"text-brown-900"},"deep-orange":{backgroud:"bg-deep-orange-500/20",color:"text-deep-orange-900"},orange:{backgroud:"bg-orange-500/20",color:"text-orange-900"},amber:{backgroud:"bg-amber-500/20",color:"text-amber-900"},yellow:{backgroud:"bg-yellow-500/20",color:"text-yellow-900"},lime:{backgroud:"bg-lime-500/20",color:"text-lime-900"},"light-green":{backgroud:"bg-light-green-500/20",color:"text-light-green-900"},green:{backgroud:"bg-green-500/20",color:"text-green-900"},teal:{backgroud:"bg-teal-500/20",color:"text-teal-900"},cyan:{backgroud:"bg-cyan-500/20",color:"text-cyan-900"},"light-blue":{backgroud:"bg-light-blue-500/20",color:"text-light-blue-900"},blue:{backgroud:"bg-blue-500/20",color:"text-blue-900"},indigo:{backgroud:"bg-indigo-500/20",color:"text-indigo-900"},"deep-purple":{backgroud:"bg-deep-purple-500/20",color:"text-deep-purple-900"},purple:{backgroud:"bg-purple-500/20",color:"text-purple-900"},pink:{backgroud:"bg-pink-500/20",color:"text-pink-900"},red:{backgroud:"bg-red-500/20",color:"text-red-900"}},r=t})(zC);var d0={},Yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesColors:function(){return s},propTypesAnimation:function(){return l},propTypesDismissType:function(){return f},propTypesOffsetType:function(){return b},propTypesPlacements:function(){return S}});var r=a(it);function a(T){return T&&T.__esModule?T:{default:T}}var s=["blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"],l=r.default.shape({mount:r.default.instanceOf(Object),unmount:r.default.instanceOf(Object)}),f=r.default.shape({enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),b=r.default.oneOfType([r.default.number,r.default.shape({mainAxis:r.default.number,crossAxis:r.default.number,alignmentAxis:r.default.number})]),S=["top-start","top","top-end","right-start","right","right-end","bottom-start","bottom","bottom-end","left-start","left","left-end"]})(Yt);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{propTypesVariant:function(){return l},propTypesColor:function(){return f},propTypesIcon:function(){return b},propTypesOpen:function(){return S},propTypesOnClose:function(){return T},propTypesAction:function(){return O},propTypesAnimate:function(){return j},propTypesClassName:function(){return F},propTypesChildren:function(){return z}});var r=s(it),a=Yt;function s(D){return D&&D.__esModule?D:{default:D}}var l=["filled","gradient","outlined","ghost"],f=a.propTypesColors,b=r.default.node,S=r.default.bool,T=r.default.func,O=r.default.node,j=a.propTypesAnimation,F=r.default.string,z=r.default.node.isRequired})(d0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{alert:function(){return S},default:function(){return T}});var r=b(LC),a=b(jC),s=b(DC),l=b(zC),f=d0;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",color:"gray",icon:void 0,open:!0,action:void 0,onClose:void 0,animate:{unmount:{},mount:{}},className:""},valid:{variants:f.propTypesVariant,colors:f.propTypesColor},styles:{base:{alert:{position:"relative",display:"block",width:"w-full",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-regular",px:"px-4",py:"py-4",borderRadius:"rounded-lg"},action:{position:"!absolute",top:"top-3",right:"right-3"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,ghost:l.default}}},T=S})(IC);var FC={},f0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesClassName:function(){return z},propTypesWithBorder:function(){return D},propTypesColor:function(){return R}});var r=f(it),a=Yt;function s(P,y){(y==null||y>P.length)&&(y=P.length);for(var p=0,v=new Array(y);p<y;p++)v[p]=P[p];return v}function l(P){if(Array.isArray(P))return s(P)}function f(P){return P&&P.__esModule?P:{default:P}}function b(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(P){return l(P)||b(P)||O(P)||S()}function O(P,y){if(P){if(typeof P=="string")return s(P,y);var p=Object.prototype.toString.call(P).slice(8,-1);if(p==="Object"&&P.constructor&&(p=P.constructor.name),p==="Map"||p==="Set")return Array.from(p);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return s(P,y)}}var j=["circular","rounded","square"],F=["xs","sm","md","lg","xl","xxl"],z=r.default.string,D=r.default.bool,R=["white"].concat(T(a.propTypesColors))})(f0);var VC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{borderColor:"border-white"},"blue-gray":{borderColor:"border-blue-gray-500"},gray:{borderColor:"border-gray-900"},brown:{borderColor:"border-brown-500"},"deep-orange":{borderColor:"border-deep-orange-500"},orange:{borderColor:"border-orange-500"},amber:{borderColor:"border-amber-500"},yellow:{borderColor:"border-yellow-500"},lime:{borderColor:"border-lime-500"},"light-green":{borderColor:"border-light-green-500"},green:{borderColor:"border-green-500"},teal:{borderColor:"border-teal-500"},cyan:{borderColor:"border-cyan-500"},"light-blue":{borderColor:"border-light-blue-500"},blue:{borderColor:"border-blue-500"},indigo:{borderColor:"border-indigo-500"},"deep-purple":{borderColor:"border-deep-purple-500"},purple:{borderColor:"border-purple-500"},pink:{borderColor:"border-pink-500"},red:{borderColor:"border-red-500"}},r=t})(VC);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{avatar:function(){return l},default:function(){return f}});var r=f0,a=s(VC);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"circular",size:"md",className:"",withBorder:!1,color:"gray"},valid:{variants:r.propTypesVariant,sizes:r.propTypesSize,colors:r.propTypesColor},styles:{base:{initial:{display:"inline-block",position:"relative",objectFit:"object-cover",objectPosition:"object-center"},withBorder:{border:"border-2"}},sizes:{xs:{width:"w-6",height:"h-6",borderRadius:"rounded-md"},sm:{width:"w-9",height:"h-9",borderRadius:"rounded-md"},md:{width:"w-12",height:"h-12",borderRadius:"rounded-lg"},lg:{width:"w-[58px]",height:"h-[58px]",borderRadius:"rounded-lg"},xl:{width:"w-[74px]",height:"h-[74px]",borderRadius:"rounded-xl"},xxl:{width:"w-[110px]",height:"h-[110px]",borderRadius:"rounded-2xl"}},variants:{rounded:{},square:{borderRadius:"!rounded-none"},circular:{borderRadius:"!rounded-full"}},borderColor:a.default}},f=l})(FC);var WC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{breadcrumbs:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",fullWidth:!1,separator:"/"},styles:{base:{root:{initial:{width:"w-max"},fullWidth:{display:"block",width:"w-full"}},list:{display:"flex",flexWrap:"flex-wrap",alignItems:"items-center",width:"w-full",bg:"bg-blue-gray-50",bgOpacity:"bg-opacity-60",py:"py-2",px:"px-4",borderRadius:"rounded-md"},item:{initial:{display:"flex",alignItems:"items-center",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",lineHeight:"leading-normal",cursor:"cursor-pointer",transition:"transition-colors duration-300",hover:"hover:text-light-blue-500"},disabled:{pointerEvents:"pointer-events-none"}},separator:{color:"text-blue-gray-500",fontSize:"text-sm",fontSmoothing:"antialiased",fontFamily:"font-sans",fontWeight:"font-normal",lineHeight:"leading-normal",px:"mx-2",pointerEvents:"pointer-events-none",userSelcet:"select-none"}}}},a=r})(WC);var BC={},p0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{background:"bg-white",color:"text-blue-gray-900",shadow:"shadow-md shadow-blue-gray-500/10",hover:"hover:shadow-lg hover:shadow-blue-gray-500/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"blue-gray":{background:"bg-blue-gray-500",color:"text-white",shadow:"shadow-md shadow-blue-gray-500/20",hover:"hover:shadow-lg hover:shadow-blue-gray-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},gray:{background:"bg-gray-900",color:"text-white",shadow:"shadow-md shadow-gray-900/10",hover:"hover:shadow-lg hover:shadow-gray-900/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},brown:{background:"bg-brown-500",color:"text-white",shadow:"shadow-md shadow-brown-500/20",hover:"hover:shadow-lg hover:shadow-brown-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"deep-orange":{background:"bg-deep-orange-500",color:"text-white",shadow:"shadow-md shadow-deep-orange-500/20",hover:"hover:shadow-lg hover:shadow-deep-orange-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},orange:{background:"bg-orange-500",color:"text-white",shadow:"shadow-md shadow-orange-500/20",hover:"hover:shadow-lg hover:shadow-orange-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},amber:{background:"bg-amber-500",color:"text-black",shadow:"shadow-md shadow-amber-500/20",hover:"hover:shadow-lg hover:shadow-amber-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},yellow:{background:"bg-yellow-500",color:"text-black",shadow:"shadow-md shadow-yellow-500/20",hover:"hover:shadow-lg hover:shadow-yellow-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},lime:{background:"bg-lime-500",color:"text-black",shadow:"shadow-md shadow-lime-500/20",hover:"hover:shadow-lg hover:shadow-lime-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"light-green":{background:"bg-light-green-500",color:"text-white",shadow:"shadow-md shadow-light-green-500/20",hover:"hover:shadow-lg hover:shadow-light-green-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},green:{background:"bg-green-500",color:"text-white",shadow:"shadow-md shadow-green-500/20",hover:"hover:shadow-lg hover:shadow-green-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},teal:{background:"bg-teal-500",color:"text-white",shadow:"shadow-md shadow-teal-500/20",hover:"hover:shadow-lg hover:shadow-teal-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},cyan:{background:"bg-cyan-500",color:"text-white",shadow:"shadow-md shadow-cyan-500/20",hover:"hover:shadow-lg hover:shadow-cyan-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"light-blue":{background:"bg-light-blue-500",color:"text-white",shadow:"shadow-md shadow-light-blue-500/20",hover:"hover:shadow-lg hover:shadow-light-blue-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},blue:{background:"bg-blue-500",color:"text-white",shadow:"shadow-md shadow-blue-500/20",hover:"hover:shadow-lg hover:shadow-blue-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},indigo:{background:"bg-indigo-500",color:"text-white",shadow:"shadow-md shadow-indigo-500/20",hover:"hover:shadow-lg hover:shadow-indigo-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"deep-purple":{background:"bg-deep-purple-500",color:"text-white",shadow:"shadow-md shadow-deep-purple-500/20",hover:"hover:shadow-lg hover:shadow-deep-purple-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},purple:{background:"bg-purple-500",color:"text-white",shadow:"shadow-md shadow-purple-500/20",hover:"hover:shadow-lg hover:shadow-purple-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},pink:{background:"bg-pink-500",color:"text-white",shadow:"shadow-md shadow-pink-500/20",hover:"hover:shadow-lg hover:shadow-pink-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},red:{background:"bg-red-500",color:"text-white",shadow:"shadow-md shadow-red-500/20",hover:"hover:shadow-lg hover:shadow-red-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"}},r=t})(p0);var h0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{background:"bg-white",color:"text-blue-gray-900",shadow:"shadow-md shadow-blue-gray-500/10",hover:"hover:shadow-lg hover:shadow-blue-gray-500/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"blue-gray":{background:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white",shadow:"shadow-md shadow-blue-gray-500/20",hover:"hover:shadow-lg hover:shadow-blue-gray-500/40",active:"active:opacity-[0.85]"},gray:{background:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white",shadow:"shadow-md shadow-gray-900/10",hover:"hover:shadow-lg hover:shadow-gray-900/20",active:"active:opacity-[0.85]"},brown:{background:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white",shadow:"shadow-md shadow-brown-500/20",hover:"hover:shadow-lg hover:shadow-brown-500/40",active:"active:opacity-[0.85]"},"deep-orange":{background:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white",shadow:"shadow-md shadow-deep-orange-500/20",hover:"hover:shadow-lg hover:shadow-deep-orange-500/40",active:"active:opacity-[0.85]"},orange:{background:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white",shadow:"shadow-md shadow-orange-500/20",hover:"hover:shadow-lg hover:shadow-orange-500/40",active:"active:opacity-[0.85]"},amber:{background:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black",shadow:"shadow-md shadow-amber-500/20",hover:"hover:shadow-lg hover:shadow-amber-500/40",active:"active:opacity-[0.85]"},yellow:{background:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black",shadow:"shadow-md shadow-yellow-500/20",hover:"hover:shadow-lg hover:shadow-yellow-500/40",active:"active:opacity-[0.85]"},lime:{background:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black",shadow:"shadow-md shadow-lime-500/20",hover:"hover:shadow-lg hover:shadow-lime-500/40",active:"active:opacity-[0.85]"},"light-green":{background:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white",shadow:"shadow-md shadow-light-green-500/20",hover:"hover:shadow-lg hover:shadow-light-green-500/40",active:"active:opacity-[0.85]"},green:{background:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white",shadow:"shadow-md shadow-green-500/20",hover:"hover:shadow-lg hover:shadow-green-500/40",active:"active:opacity-[0.85]"},teal:{background:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white",shadow:"shadow-md shadow-teal-500/20",hover:"hover:shadow-lg hover:shadow-teal-500/40",active:"active:opacity-[0.85]"},cyan:{background:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white",shadow:"shadow-md shadow-cyan-500/20",hover:"hover:shadow-lg hover:shadow-cyan-500/40",active:"active:opacity-[0.85]"},"light-blue":{background:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white",shadow:"shadow-md shadow-light-blue-500/20",hover:"hover:shadow-lg hover:shadow-light-blue-500/40",active:"active:opacity-[0.85]"},blue:{background:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white",shadow:"shadow-md shadow-blue-500/20",hover:"hover:shadow-lg hover:shadow-blue-500/40",active:"active:opacity-[0.85]"},indigo:{background:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white",shadow:"shadow-md shadow-indigo-500/20",hover:"hover:shadow-lg hover:shadow-indigo-500/40",active:"active:opacity-[0.85]"},"deep-purple":{background:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white",shadow:"shadow-md shadow-deep-purple-500/20",hover:"hover:shadow-lg hover:shadow-deep-purple-500/40",active:"active:opacity-[0.85]"},purple:{background:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white",shadow:"shadow-md shadow-purple-500/20",hover:"hover:shadow-lg hover:shadow-purple-500/40",active:"active:opacity-[0.85]"},pink:{background:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white",shadow:"shadow-md shadow-pink-500/20",hover:"hover:shadow-lg hover:shadow-pink-500/40",active:"active:opacity-[0.85]"},red:{background:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white",shadow:"shadow-md shadow-red-500/20",hover:"hover:shadow-lg hover:shadow-red-500/40",active:"active:opacity-[0.85]"}},r=t})(h0);var g0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{border:"border border-white",color:"text-white",hover:"hover:opacity-75",focus:"focus:ring focus:ring-white/50",active:"active:opacity-[0.85]"},"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-blue-gray-200",active:"active:opacity-[0.85]"},gray:{border:"border border-gray-900",color:"text-gray-900",hover:"hover:opacity-75",focus:"focus:ring focus:ring-gray-300",active:"active:opacity-[0.85]"},brown:{border:"border border-brown-500",color:"text-brown-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-brown-200",active:"active:opacity-[0.85]"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-deep-orange-200",active:"active:opacity-[0.85]"},orange:{border:"border border-orange-500",color:"text-orange-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-orange-200",active:"active:opacity-[0.85]"},amber:{border:"border border-amber-500",color:"text-amber-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-amber-200",active:"active:opacity-[0.85]"},yellow:{border:"border border-yellow-500",color:"text-yellow-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-yellow-200",active:"active:opacity-[0.85]"},lime:{border:"border border-lime-500",color:"text-lime-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-lime-200",active:"active:opacity-[0.85]"},"light-green":{border:"border border-light-green-500",color:"text-light-green-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-light-green-200",active:"active:opacity-[0.85]"},green:{border:"border border-green-500",color:"text-green-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-green-200",active:"active:opacity-[0.85]"},teal:{border:"border border-teal-500",color:"text-teal-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-teal-200",active:"active:opacity-[0.85]"},cyan:{border:"border border-cyan-500",color:"text-cyan-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-cyan-200",active:"active:opacity-[0.85]"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-light-blue-200",active:"active:opacity-[0.85]"},blue:{border:"border border-blue-500",color:"text-blue-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-blue-200",active:"active:opacity-[0.85]"},indigo:{border:"border border-indigo-500",color:"text-indigo-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-indigo-200",active:"active:opacity-[0.85]"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-deep-purple-200",active:"active:opacity-[0.85]"},purple:{border:"border border-purple-500",color:"text-purple-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-purple-200",active:"active:opacity-[0.85]"},pink:{border:"border border-pink-500",color:"text-pink-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-pink-200",active:"active:opacity-[0.85]"},red:{border:"border border-red-500",color:"text-red-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-red-200",active:"active:opacity-[0.85]"}},r=t})(g0);var b0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white",hover:"hover:bg-white/10",active:"active:bg-white/30"},"blue-gray":{color:"text-blue-gray-500",hover:"hover:bg-blue-gray-500/10",active:"active:bg-blue-gray-500/30"},gray:{color:"text-gray-900",hover:"hover:bg-gray-900/10",active:"active:bg-gray-900/20"},brown:{color:"text-brown-500",hover:"hover:bg-brown-500/10",active:"active:bg-brown-500/30"},"deep-orange":{color:"text-deep-orange-500",hover:"hover:bg-deep-orange-500/10",active:"active:bg-deep-orange-500/30"},orange:{color:"text-orange-500",hover:"hover:bg-orange-500/10",active:"active:bg-orange-500/30"},amber:{color:"text-amber-500",hover:"hover:bg-amber-500/10",active:"active:bg-amber-500/30"},yellow:{color:"text-yellow-500",hover:"hover:bg-yellow-500/10",active:"active:bg-yellow-500/30"},lime:{color:"text-lime-500",hover:"hover:bg-lime-500/10",active:"active:bg-lime-500/30"},"light-green":{color:"text-light-green-500",hover:"hover:bg-light-green-500/10",active:"active:bg-light-green-500/30"},green:{color:"text-green-500",hover:"hover:bg-green-500/10",active:"active:bg-green-500/30"},teal:{color:"text-teal-500",hover:"hover:bg-teal-500/10",active:"active:bg-teal-500/30"},cyan:{color:"text-cyan-500",hover:"hover:bg-cyan-500/10",active:"active:bg-cyan-500/30"},"light-blue":{color:"text-light-blue-500",hover:"hover:bg-light-blue-500/10",active:"active:bg-light-blue-500/30"},blue:{color:"text-blue-500",hover:"hover:bg-blue-500/10",active:"active:bg-blue-500/30"},indigo:{color:"text-indigo-500",hover:"hover:bg-indigo-500/10",active:"active:bg-indigo-500/30"},"deep-purple":{color:"text-deep-purple-500",hover:"hover:bg-deep-purple-500/10",active:"active:bg-deep-purple-500/30"},purple:{color:"text-purple-500",hover:"hover:bg-purple-500/10",active:"active:bg-purple-500/30"},pink:{color:"text-pink-500",hover:"hover:bg-pink-500/10",active:"active:bg-pink-500/30"},red:{color:"text-red-500",hover:"hover:bg-red-500/10",active:"active:bg-red-500/30"}},r=t})(b0);var Ka={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesColor:function(){return z},propTypesFullWidth:function(){return D},propTypesRipple:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y}});var r=f(it),a=Yt;function s(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function l(p){if(Array.isArray(p))return s(p)}function f(p){return p&&p.__esModule?p:{default:p}}function b(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(p){return l(p)||b(p)||O(p)||S()}function O(p,v){if(p){if(typeof p=="string")return s(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(p,v)}}var j=["filled","outlined","gradient","text"],F=["sm","md","lg"],z=["white"].concat(T(a.propTypesColors)),D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired})(Ka);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{button:function(){return S},default:function(){return T}});var r=b(p0),a=b(h0),s=b(g0),l=b(b0),f=Ka;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{initial:{verticalAlign:"align-middle",userSelect:"select-none",fontFamily:"font-sans",fontWeight:"font-bold",textAlign:"text-center",textTransform:"uppercase",transition:"transition-all",disabled:"disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none"},fullWidth:{display:"block",width:"w-full"}},sizes:{sm:{fontSize:"text-xs",py:"py-2",px:"px-4",borderRadius:"rounded-lg"},md:{fontSize:"text-xs",py:"py-3",px:"px-6",borderRadius:"rounded-lg"},lg:{fontSize:"text-sm",py:"py-3.5",px:"px-7",borderRadius:"rounded-lg"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,text:l.default}}},T=S})(BC);var HC={},v0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-gray-700",shadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-gray-700"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white",shadow:"shadow-blue-gray-500/40"},gray:{backgroud:"bg-gray-900",color:"text-white",shadow:"shadow-gray-900/20"},brown:{backgroud:"bg-brown-500",color:"text-white",shadow:"shadow-brown-500/40"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white",shadow:"shadow-deep-orange-500/40"},orange:{backgroud:"bg-orange-500",color:"text-white",shadow:"shadow-orange-500/40"},amber:{backgroud:"bg-amber-500",color:"text-gray-700",shadow:"shadow-amber-500/40"},yellow:{backgroud:"bg-yellow-500",color:"text-gray-700",shadow:"shadow-yellow-500/40"},lime:{backgroud:"bg-lime-500",color:"text-gray-700",shadow:"shadow-lime-500/40"},"light-green":{backgroud:"bg-light-green-500",color:"text-white",shadow:"shadow-light-green-500/40"},green:{backgroud:"bg-green-500",color:"text-white",shadow:"shadow-green-500/40"},teal:{backgroud:"bg-teal-500",color:"text-white",shadow:"shadow-teal-500/40"},cyan:{backgroud:"bg-cyan-500",color:"text-white",shadow:"shadow-cyan-500/40"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white",shadow:"shadow-light-blue-500/40"},blue:{backgroud:"bg-blue-500",color:"text-white",shadow:"shadow-blue-500/40"},indigo:{backgroud:"bg-indigo-500",color:"text-white",shadow:"shadow-indigo-500/40"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white",shadow:"shadow-deep-purple-500/40"},purple:{backgroud:"bg-purple-500",color:"text-white",shadow:"shadow-purple-500/40"},pink:{backgroud:"bg-pink-500",color:"text-white",shadow:"shadow-pink-500/40"},red:{backgroud:"bg-red-500",color:"text-white",shadow:"shadow-red-500/40"}},r=t})(v0);var m0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-gray-700",shadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-gray-700"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white",shadow:"shadow-blue-gray-500/40"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white",shadow:"shadow-gray-900/20"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white",shadow:"shadow-brown-500/40"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white",shadow:"shadow-deep-orange-500/40"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white",shadow:"shadow-orange-500/40"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-gray-700",shadow:"shadow-amber-500/40"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-gray-700",shadow:"shadow-yellow-500/40"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-gray-700",shadow:"shadow-lime-500/40"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white",shadow:"shadow-light-green-500/40"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white",shadow:"shadow-green-500/40"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white",shadow:"shadow-teal-500/40"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white",shadow:"shadow-cyan-500/40"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white",shadow:"shadow-light-blue-500/40"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white",shadow:"shadow-blue-500/40"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white",shadow:"shadow-indigo-500/40"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white",shadow:"shadow-deep-purple-500/40"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white",shadow:"shadow-purple-500/40"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white",shadow:"shadow-pink-500/40"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white",shadow:"shadow-red-500/40"}},r=t})(m0);var Za={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesShadow:function(){return z},propTypesFloated:function(){return D},propTypesDivider:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y}});var r=f(it),a=Yt;function s(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function l(p){if(Array.isArray(p))return s(p)}function f(p){return p&&p.__esModule?p:{default:p}}function b(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(p){return l(p)||b(p)||O(p)||S()}function O(p,v){if(p){if(typeof p=="string")return s(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(p,v)}}var j=["filled","gradient"],F=["transparent","white"].concat(T(a.propTypesColors)),z=r.default.bool,D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired})(Za);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(v0),r=s(m0),a=Za;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",color:"white",shadow:!0,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{base:{initial:{position:"relative",display:"flex",flexDirection:"flex-col",backgroundClip:"bg-clip-border",borderRadius:"rounded-xl"},shadow:{boxShadow:"shadow-md"}},variants:{filled:t.default,gradient:r.default}}},f=l})(HC);var XC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{cardBody:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{p:"p-6"}}},a=r})(XC);var YC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{cardFooter:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{initial:{p:"p-6"},divider:{borderWidth:"border-t",borderColor:"border-blue-gray-50"}}}},a=r})(YC);var GC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(v0),r=s(m0),a=Za;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",color:"white",shadow:!0,floated:!0,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{base:{initial:{position:"relative",backgroundClip:"bg-clip-border",mt:"mt-4",mx:"mx-4",borderRadius:"rounded-xl",overflow:"overflow-hidden"},shadow:{boxShadow:"shadow-lg"},floated:{mt:"-mt-6"}},variants:{filled:t.default,gradient:r.default}}},f=l})(GC);var UC={},$C={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{background:"checked:bg-blue-gray-500",border:"checked:border-blue-gray-500",before:"checked:before:bg-blue-gray-500"},gray:{background:"checked:bg-gray-900",border:"checked:border-gray-900",before:"checked:before:bg-gray-900"},brown:{background:"checked:bg-brown-500",border:"checked:border-brown-500",before:"checked:before:bg-brown-500"},"deep-orange":{background:"checked:bg-deep-orange-500",border:"checked:border-deep-orange-500",before:"checked:before:bg-deep-orange-500"},orange:{background:"checked:bg-orange-500",border:"checked:border-orange-500",before:"checked:before:bg-orange-500"},amber:{background:"checked:bg-amber-500",border:"checked:border-amber-500",before:"checked:before:bg-amber-500"},yellow:{background:"checked:bg-yellow-500",border:"checked:border-yellow-500",before:"checked:before:bg-yellow-500"},lime:{background:"checked:bg-lime-500",border:"checked:border-lime-500",before:"checked:before:bg-lime-500"},"light-green":{background:"checked:bg-light-green-500",border:"checked:border-light-green-500",before:"checked:before:bg-light-green-500"},green:{background:"checked:bg-green-500",border:"checked:border-green-500",before:"checked:before:bg-green-500"},teal:{background:"checked:bg-teal-500",border:"checked:border-teal-500",before:"checked:before:bg-teal-500"},cyan:{background:"checked:bg-cyan-500",border:"checked:border-cyan-500",before:"checked:before:bg-cyan-500"},"light-blue":{background:"checked:bg-light-blue-500",border:"checked:border-light-blue-500",before:"checked:before:bg-light-blue-500"},blue:{background:"checked:bg-blue-500",border:"checked:border-blue-500",before:"checked:before:bg-blue-500"},indigo:{background:"checked:bg-indigo-500",border:"checked:border-indigo-500",before:"checked:before:bg-indigo-500"},"deep-purple":{background:"checked:bg-deep-purple-500",border:"checked:border-deep-purple-500",before:"checked:before:bg-deep-purple-500"},purple:{background:"checked:bg-purple-500",border:"checked:border-purple-500",before:"checked:before:bg-purple-500"},pink:{background:"checked:bg-pink-500",border:"checked:border-pink-500",before:"checked:before:bg-pink-500"},red:{background:"checked:bg-red-500",border:"checked:border-red-500",before:"checked:before:bg-red-500"}},r=t})($C);var Qa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesColor:function(){return l},propTypesLabel:function(){return f},propTypesIcon:function(){return b},propTypesRipple:function(){return S},propTypesClassName:function(){return T},propTypesDisabled:function(){return O},propTypesObject:function(){return j}});var r=s(it),a=Yt;function s(F){return F&&F.__esModule?F:{default:F}}var l=a.propTypesColors,f=r.default.node,b=r.default.node,S=r.default.bool,T=r.default.string,O=r.default.bool,j=r.default.instanceOf(Object)})(Qa);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{checkbox:function(){return l},default:function(){return f}});var r=s($C),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:void 0,icon:void 0,ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,iconProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"flex",alignItems:"items-center",cursor:"cursor-pointer",p:"p-3",borderRadius:"rounded-full"},input:{peer:"peer",position:"relative",appearance:"appearance-none",width:"w-5",height:"h-5",borderWidth:"border",borderRadius:"rounded-md",borderColor:"border-blue-gray-200",cursor:"cursor-pointer",transition:"transition-all",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-12",height:"before:h-12",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",opacity:"before:opacity-0 hover:before:opacity-10",transition:"before:transition-opacity"}},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px"},icon:{color:"text-white",position:"absolute",top:"top-2/4",left:"left-2/4",translate:"-translate-y-2/4 -translate-x-2/4",pointerEvents:"pointer-events-none",opacity:"opacity-0 peer-checked:opacity-100",transition:"transition-opacity"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(UC);var qC={},KC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(KC);var ZC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(ZC);var QC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-700"},gray:{border:"border border-gray-900",color:"text-gray-700"},brown:{border:"border border-brown-500",color:"text-brown-700"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-700"},orange:{border:"border border-orange-500",color:"text-orange-700"},amber:{border:"border border-amber-500",color:"text-amber-700"},yellow:{border:"border border-yellow-500",color:"text-yellow-700"},lime:{border:"border border-lime-500",color:"text-lime-700"},"light-green":{border:"border border-light-green-500",color:"text-light-green-700"},green:{border:"border border-green-500",color:"text-green-700"},teal:{border:"border border-teal-500",color:"text-teal-700"},cyan:{border:"border border-cyan-500",color:"text-cyan-700"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-700"},blue:{border:"border border-blue-500",color:"text-blue-700"},indigo:{border:"border border-indigo-500",color:"text-indigo-700"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-700"},purple:{border:"border border-purple-500",color:"text-purple-700"},pink:{border:"border border-pink-500",color:"text-pink-700"},red:{border:"border border-red-500",color:"text-red-700"}},r=t})(QC);var JC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500/20",color:"text-blue-gray-900"},gray:{backgroud:"bg-gray-900/10",color:"text-gray-900"},brown:{backgroud:"bg-brown-500/20",color:"text-brown-900"},"deep-orange":{backgroud:"bg-deep-orange-500/20",color:"text-deep-orange-900"},orange:{backgroud:"bg-orange-500/20",color:"text-orange-900"},amber:{backgroud:"bg-amber-500/20",color:"text-amber-900"},yellow:{backgroud:"bg-yellow-500/20",color:"text-yellow-900"},lime:{backgroud:"bg-lime-500/20",color:"text-lime-900"},"light-green":{backgroud:"bg-light-green-500/20",color:"text-light-green-900"},green:{backgroud:"bg-green-500/20",color:"text-green-900"},teal:{backgroud:"bg-teal-500/20",color:"text-teal-900"},cyan:{backgroud:"bg-cyan-500/20",color:"text-cyan-900"},"light-blue":{backgroud:"bg-light-blue-500/20",color:"text-light-blue-900"},blue:{backgroud:"bg-blue-500/20",color:"text-blue-900"},indigo:{backgroud:"bg-indigo-500/20",color:"text-indigo-900"},"deep-purple":{backgroud:"bg-deep-purple-500/20",color:"text-deep-purple-900"},purple:{backgroud:"bg-purple-500/20",color:"text-purple-900"},pink:{backgroud:"bg-pink-500/20",color:"text-pink-900"},red:{backgroud:"bg-red-500/20",color:"text-red-900"}},r=t})(JC);var y0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{propTypesVariant:function(){return l},propTypesSize:function(){return f},propTypesColor:function(){return b},propTypesIcon:function(){return S},propTypesOpen:function(){return T},propTypesOnClose:function(){return O},propTypesAction:function(){return j},propTypesAnimate:function(){return F},propTypesClassName:function(){return z},propTypesValue:function(){return D}});var r=s(it),a=Yt;function s(R){return R&&R.__esModule?R:{default:R}}var l=["filled","gradient","outlined","ghost"],f=["sm","md","lg"],b=a.propTypesColors,S=r.default.node,T=r.default.bool,O=r.default.func,j=r.default.node,F=a.propTypesAnimation,z=r.default.string,D=r.default.node.isRequired})(y0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{chip:function(){return S},default:function(){return T}});var r=b(KC),a=b(ZC),s=b(QC),l=b(JC),f=y0;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",icon:void 0,open:!0,onClose:void 0,action:void 0,animate:{unmount:{},mount:{}},className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{chip:{position:"relative",display:"grid",placeItems:"items-center",fontFamily:"font-sans",fontWeight:"font-bold",textTransform:"uppercase",lineHeight:"leading-none",whiteSpace:"whitespace-nowrap",userSelect:"select-none"},action:{position:"!absolute",top:"top-2/4",right:"right-1",translate:"-translate-y-2/4",mx:"mx-px",rounded:"rounded-md"},icon:{position:"absolute",top:"top-2/4",translate:"-translate-y-2/4"}},sizes:{sm:{chip:{py:"py-1",px:"px-2",fontSize:"text-xs",borderRadius:"rounded-md"},action:{width:"w-4",height:"h-4"},icon:{width:"w-4",height:"h-4",left:"left-1"}},md:{chip:{py:"py-1.5",px:"px-3",fontSize:"text-xs",borderRadius:"rounded-lg"},action:{width:"w-5",height:"h-5"},icon:{width:"w-5",height:"h-5",left:"left-1.5"}},lg:{chip:{py:"py-2",px:"px-4",fontSize:"text-xs",borderRadius:"rounded-lg"},action:{width:"w-6",height:"h-6"},icon:{width:"w-6",height:"h-6",left:"left-1.5"}}},variants:{filled:r.default,gradient:a.default,outlined:s.default,ghost:l.default}}},T=S})(qC);var eS={},as={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesOpen:function(){return l},propTypesHandler:function(){return f},propTypesSize:function(){return b},propTypesDismiss:function(){return S},propTypesAnimate:function(){return T},propTypesDivider:function(){return O},propTypesClassName:function(){return j},propTypesChildren:function(){return F}});var r=s(it),a=Yt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.bool.isRequired,f=r.default.func,b=["xs","sm","md","lg","xl","xxl"],S=a.propTypesDismissType,T=a.propTypesAnimation,O=r.default.bool,j=r.default.string,F=r.default.node.isRequired})(as);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var b in f)Object.defineProperty(l,b,{enumerable:!0,get:f[b]})}t(e,{dialog:function(){return a},default:function(){return s}});var r=as,a={defaultProps:{size:"md",dismiss:{},animate:{unmount:{},mount:{}},className:""},valid:{sizes:r.propTypesSize},styles:{base:{backdrop:{display:"grid",placeItems:"place-items-center",position:"fixed",top:0,left:0,width:"w-screen",height:"h-screen",backgroundColor:"bg-black",backgroundOpacity:"bg-opacity-60",backdropFilter:"backdrop-blur-sm"},container:{position:"relative",bg:"bg-white",m:"m-4",borderRadius:"rounded-lg",boxShadow:"shadow-2xl",color:"text-blue-gray-500",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"}},sizes:{xs:{width:"w-full md:w-3/5 lg:w-2/5 2xl:w-1/4",minWidth:"min-w-[80%] md:min-w-[60%] lg:min-w-[40%] 2xl:min-w-[25%]",maxWidth:"max-w-[80%] md:max-w-[60%] lg:max-w-[40%] 2xl:max-w-[25%]"},sm:{width:"w-full md:w-2/3 lg:w-2/4 2xl:w-1/3",minWidth:"min-w-[80%] md:min-w-[66.666667%] lg:min-w-[50%] 2xl:min-w-[33.333333%]",maxWidth:"max-w-[80%] md:max-w-[66.666667%] lg:max-w-[50%] 2xl:max-w-[33.333333%]"},md:{width:"w-full md:w-3/4 lg:w-3/5 2xl:w-2/5",minWidth:"min-w-[90%] md:min-w-[75%] lg:min-w-[60%] 2xl:min-w-[40%]",maxWidth:"max-w-[90%] md:max-w-[75%] lg:max-w-[60%] 2xl:max-w-[40%]"},lg:{width:"w-full md:w-5/6 lg:w-3/4 2xl:w-3/5",minWidth:"min-w-[90%] md:min-w-[83.333333%] lg:min-w-[75%] 2xl:min-w-[60%]",maxWidth:"max-w-[90%] md:max-w-[83.333333%] lg:max-w-[75%] 2xl:max-w-[60%]"},xl:{width:"w-full md:w-5/6 2xl:w-3/4",minWidth:"min-w-[95%] md:min-w-[83.333333%] 2xl:min-w-[75%]",maxWidth:"max-w-[95%] md:max-w-[83.333333%] 2xl:max-w-[75%]"},xxl:{display:"flex",flexDirection:"flex-col",width:"w-screen",minWidth:"min-w-[100vw]",maxWidth:"max-w-[100vw]",height:"h-screen",minHeight:"min-h-[100vh]",maxHeight:"max-h-[100vh]",m:"m-0",borderRadius:"rounded-none"}}}},s=a})(eS);var tS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogBody:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",divider:!1},styles:{base:{initial:{position:"relative",p:"p-4",color:"text-blue-gray-500",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"},divider:{borderTop:"border-t",borderTopColor:"border-t-blue-gray-100",borderBottom:"border-b",borderBottomColor:"border-b-blue-gray-100"}}}},a=r})(tS);var rS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogFooter:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",alignItems:"items-center",justifyContent:"justify-end",flexShrink:"shrink-0",flexWrap:"flex-wrap",p:"p-4",color:"text-blue-gray-500"}}},a=r})(rS);var nS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogHeader:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",alignItems:"items-center",flexShrink:"shrink-0",p:"p-4",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-2xl",fontWeight:"font-semibold",lineHeight:"leading-snug"}}},a=r})(nS);var oS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{iconButton:function(){return S},default:function(){return T}});var r=b(p0),a=b(h0),s=b(g0),l=b(b0),f=Ka;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{position:"relative",verticalAlign:"align-middle",userSelect:"select-none",fontFamily:"font-sans",fontWeight:"font-medium",textAlign:"text-center",textTransform:"uppercase",transition:"transition-all",disabled:"disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none"},sizes:{sm:{width:"w-8",maxWidth:"max-w-[32px]",height:"h-8",maxHeight:"max-h-[32px]",borderRadius:"rounded-lg",fontSize:"text-xs"},md:{width:"w-10",maxWidth:"max-w-[40px]",height:"h-10",maxHeight:"max-h-[40px]",borderRadius:"rounded-lg",fontSize:"text-xs"},lg:{width:"w-12",maxWidth:"max-w-[48px]",height:"h-12",maxHeight:"max-h-[48px]",borderRadius:"rounded-lg",fontSize:"text-sm"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,text:l.default}}},T=S})(oS);var aS={},iS={},sS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderColor:"peer-placeholder-shown:before:border-transparent",borderRadius:"before:rounded-tl-md",floated:{bt:"before:border-t peer-focus:before:border-t-2",bl:"before:border-l peer-focus:before:border-l-2"},pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderColor:"peer-placeholder-shown:after:border-transparent",borderRadius:"after:rounded-tr-md",floated:{bt:"after:border-t peer-focus:after:border-t-2",br:"after:border-r peer-focus:after:border-r-2"},pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(sS);var lS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(lS);var uS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:text-black",before:"before:border-black peer-focus:before:!border-black",after:"after:border-black peer-focus:after:!border-black"},white:{color:"!text-white peer-focus:text-white",before:"before:border-white peer-focus:before:!border-white",after:"after:border-white peer-focus:after:!border-white"},"blue-gray":{color:"text-blue-gray-400 peer-focus:text-blue-gray-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-gray-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",before:"before:border-blue-gray-200 peer-focus:before:!border-gray-900",after:"after:border-blue-gray-200 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-400 peer-focus:text-brown-500",before:"before:border-blue-gray-200 peer-focus:before:!border-brown-500",after:"after:border-blue-gray-200 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-400 peer-focus:text-deep-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-400 peer-focus:text-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-400 peer-focus:text-amber-500",before:"before:border-blue-gray-200 peer-focus:before:!border-amber-500",after:"after:border-blue-gray-200 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-400 peer-focus:text-yellow-500",before:"before:border-blue-gray-200 peer-focus:before:!border-yellow-500",after:"after:border-blue-gray-200 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-400 peer-focus:text-lime-500",before:"before:border-blue-gray-200 peer-focus:before:!border-lime-500",after:"after:border-blue-gray-200 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-400 peer-focus:text-light-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-400 peer-focus:text-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-400 peer-focus:text-teal-500",before:"before:border-blue-gray-200 peer-focus:before:!border-teal-500",after:"after:border-blue-gray-200 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-400 peer-focus:text-cyan-500",before:"before:border-blue-gray-200 peer-focus:before:!border-cyan-500",after:"after:border-blue-gray-200 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-400 peer-focus:text-light-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-400 peer-focus:text-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-400 peer-focus:text-indigo-500",before:"before:border-blue-gray-200 peer-focus:before:!border-indigo-500",after:"after:border-blue-gray-200 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-400 peer-focus:text-deep-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-400 peer-focus:text-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-400 peer-focus:text-pink-500",before:"before:border-blue-gray-200 peer-focus:before:!border-pink-500",after:"after:border-blue-gray-200 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-400 peer-focus:text-red-500",before:"before:border-blue-gray-200 peer-focus:before:!border-red-500",after:"after:border-blue-gray-200 peer-focus:after:!border-red-500"}},r=t})(uS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(sS),r=s(lS),a=s(uS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"placeholder-shown:border",borderColor:"placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200",floated:{borderWidth:"border focus:border-2",borderColor:"border-t-transparent focus:border-t-transparent"}},inputWithIcon:{pr:"!pr-9"},icon:{top:"top-2/4",right:"right-3",transform:"-translate-y-2/4"},label:t.default},sizes:{md:{container:{height:"h-10"},input:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{lineHeight:"peer-placeholder-shown:leading-[3.75]"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-11"},input:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-md"},label:{lineHeight:"peer-placeholder-shown:leading-[4.1]"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-t-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",before:"before:border-red-500 peer-focus:before:border-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-t-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",before:"before:border-green-500 peer-focus:before:border-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{borderTop:"!border-t-transparent"},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight",borderColor:"before:!border-blue-gray-200 after:!border-blue-gray-200"}}},f=l})(iS);var cS={},dS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},after:{content:"after:content['']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1.5",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(dS);var fS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-900"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-500"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(fS);var pS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:text-black",after:"after:border-black peer-focus:after:border-black"},white:{color:"!text-white peer-focus:text-white",after:"after:border-white peer-focus:after:border-white"},"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(pS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(dS),r=s(fS),a=s(pS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},inputWithIcon:{pr:"!pr-7"},icon:{top:"top-2/4",right:"right-0",transform:"-translate-y-1/4"},label:t.default},sizes:{md:{container:{height:"h-11"},input:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-[4.25]"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-12"},input:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-[4.875]"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight"}}},f=l})(cS);var hS={},gS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",fontSize:"text-sm peer-focus:text-sm",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-2.5",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(gS);var bS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(bS);var vS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:black",after:"after:border-black peer-focus:after:border-black"},white:{color:"!text-white peer-focus:white",after:"after:border-white peer-focus:after:border-white"},"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(vS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(gS),r=s(bS),a=s(vS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},inputWithIcon:{pr:"!pr-7"},icon:{top:"top-2/4",right:"right-0",transform:"-translate-y-1/4"},label:t.default},sizes:{md:{container:{height:"h-11"},input:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-tight"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-12"},input:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-tight"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{},label:{}}},f=l})(hS);var Wl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesColor:function(){return z},propTypesLabel:function(){return D},propTypesError:function(){return R},propTypesSuccess:function(){return P},propTypesIcon:function(){return y},propTypesResize:function(){return p},propTypesLabelProps:function(){return v},propTypesContainerProps:function(){return g},propTypesShrink:function(){return m},propTypesClassName:function(){return _}});var r=f(it),a=Yt;function s(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function l(M){if(Array.isArray(M))return s(M)}function f(M){return M&&M.__esModule?M:{default:M}}function b(M){if(typeof Symbol<"u"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(M){return l(M)||b(M)||O(M)||S()}function O(M,X){if(M){if(typeof M=="string")return s(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return s(M,X)}}var j=["standard","outlined","static"],F=["md","lg"],z=["black","white"].concat(T(a.propTypesColors)),D=r.default.string,R=r.default.bool,P=r.default.bool,y=r.default.node,p=r.default.bool,v=r.default.instanceOf(Object),g=r.default.instanceOf(Object),m=r.default.bool,_=r.default.string})(Wl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{input:function(){return b},default:function(){return S}});var r=f(iS),a=f(cS),s=f(hS),l=Wl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",size:"md",color:"gray",label:"",error:!1,success:!1,icon:void 0,labelProps:void 0,containerProps:void 0,shrink:!1,className:""},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},input:{peer:"peer",width:"w-full",height:"h-full",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",outline:"outline outline-0 focus:outline-0",disabled:"disabled:bg-blue-gray-50 disabled:border-0",transition:"transition-all"},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",overflow:"!overflow-visible",textOverflow:"truncate",color:"peer-placeholder-shown:text-blue-gray-500",lineHeight:"leading-tight peer-focus:leading-tight",disabled:"peer-disabled:text-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500",transition:"transition-all"},icon:{display:"grid",placeItems:"place-items-center",position:"absolute",color:"text-blue-gray-500"},asterisk:{display:"inline-block",color:"text-red-500",ml:"ml-0.5"}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})(aS);var mS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{menu:function(){return r},default:function(){return a}});var r={defaultProps:{placement:"bottom",offset:5,dismiss:{itemPress:!0},animate:{unmount:{},mount:{}},lockScroll:!1},styles:{base:{menu:{bg:"bg-white",minWidth:"min-w-[180px]",p:"p-3",border:"border border-blue-gray-50",borderRadius:"rounded-md",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",overflow:"overflow-auto",outline:"focus:outline-none",zIndex:"z-[999]"},item:{initial:{display:"block",width:"w-full",pt:"pt-[9px]",pb:"pb-2",px:"px-3",borderRadius:"rounded-md",textAlign:"text-start",lightHeight:"leading-tight",cursor:"cursor-pointer",userSelect:"select-none",transition:"transition-all",bg:"hover:bg-blue-gray-50 hover:bg-opacity-80 focus:bg-blue-gray-50 focus:bg-opacity-80 active:bg-blue-gray-50 active:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900 active:text-blue-gray-900",outline:"outline-none"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none",bg:"hover:bg-transparent focus:bg-transparent active:bg-transparent",color:"hover:text-blue-gray-500 focus:text-blue-gray-500 active:text-blue-gray-500"}}}}},a=r})(mS);var yS={},xS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-white",boxShadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-white"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(xS);var wS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900",boxShadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-600 to-gray-400",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(wS);var Od={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesShadow:function(){return z},propTypesBlurred:function(){return D},propTypesFullWidth:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y},propTypesOpen:function(){return p},propTypesAnimate:function(){return v}});var r=f(it),a=Yt;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function l(g){if(Array.isArray(g))return s(g)}function f(g){return g&&g.__esModule?g:{default:g}}function b(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(g){return l(g)||b(g)||O(g)||S()}function O(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var j=["filled","gradient"],F=["transparent","white"].concat(T(a.propTypesColors)),z=r.default.bool,D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired,p=r.default.bool.isRequired,v=a.propTypesAnimation})(Od);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{navbar:function(){return f},default:function(){return b}});var r=l(xS),a=l(wS),s=Od;function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{variant:"filled",color:"white",shadow:!0,blurred:!0,fullWidth:!1,className:""},valid:{variants:s.propTypesVariant,colors:s.propTypesColor},styles:{base:{navbar:{initial:{display:"block",width:"w-full",maxWidth:"max-w-screen-2xl",borderRadius:"rounded-xl",py:"py-4",px:"px-8"},shadow:{boxShadow:"shadow-md"},blurred:{backdropFilter:"backdrop-saturate-200 backdrop-blur-2xl",bgOpacity:"bg-opacity-80",borderWidth:"border",borderColor:"border-white/80"},fullWidth:{width:"w-full",maxWidth:"max-w-full",rounded:"rounded-none",px:"px-4"}},mobileNav:{display:"block",width:"w-full",basis:"basis-full",overflow:"overflow-hidden"}},variants:{filled:r.default,gradient:a.default}}},b=f})(yS);var CS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{popover:function(){return r},default:function(){return a}});var r={defaultProps:{placement:"top",offset:5,dismiss:{},animate:{unmount:{},mount:{}},className:""},styles:{base:{bg:"bg-white",p:"p-4",border:"border border-blue-gray-50",borderRadius:"rounded-lg",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",outline:"focus:outline-none",overflowWrap:"break-words",whiteSpace:"whitespace-normal"}}},a=r})(CS);var SS={},kS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(kS);var TS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(TS);var x0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesVariant:function(){return l},propTypesColor:function(){return f},propTypesSize:function(){return b},propTypesValue:function(){return S},propTypesLabel:function(){return T},propTypesBarProps:function(){return O},propTypesClassName:function(){return j}});var r=s(it),a=Yt;function s(F){return F&&F.__esModule?F:{default:F}}var l=["filled","gradient"],f=a.propTypesColors,b=["sm","md","lg"],S=r.default.number,T=r.default.oneOfType([r.default.string,r.default.bool]),O=r.default.instanceOf(Object),j=r.default.string})(x0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{progress:function(){return f},default:function(){return b}});var r=l(kS),a=l(TS),s=x0;function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{variant:"filled",color:"gray",size:"md",value:0,label:!1,className:"",barProps:{}},valid:{variants:s.propTypesVariant,colors:s.propTypesColor,sizes:s.propTypesSize},styles:{base:{container:{initial:{display:"flex",justifyContent:"flex-start",bg:"bg-blue-gray-50",overflow:"overflow-hidden",width:"w-full",fontFamily:"font-sans",borderRadius:"rounded-full",fontSize:"text-xs",fontWeight:"font-medium"},withLabel:{}},bar:{display:"flex",justifyContent:"justify-center",alignItems:"items-center",height:"h-full",overflow:"overflow-hidden",wordBreak:"break-all",borderRadius:"rounded-full"}},sizes:{sm:{container:{initial:{height:"h-1.5"},withLabel:{height:"h-3.5"}},bar:{}},md:{container:{initial:{height:"h-2.5"},withLabel:{height:"h-4"}},bar:{}},lg:{container:{initial:{height:"h-3.5"},withLabel:{height:"h-5"}},bar:{}}},variants:{filled:r.default,gradient:a.default}}},b=f})(SS);var PS={},_S={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500",border:"checked:border-blue-gray-500",before:"checked:before:bg-blue-gray-500"},gray:{color:"text-gray-900",border:"checked:border-gray-900",before:"checked:before:bg-gray-900"},brown:{color:"text-brown-500",border:"checked:border-brown-500",before:"checked:before:bg-brown-500"},"deep-orange":{color:"text-deep-orange-500",border:"checked:border-deep-orange-500",before:"checked:before:bg-deep-orange-500"},orange:{color:"text-orange-500",border:"checked:border-orange-500",before:"checked:before:bg-orange-500"},amber:{color:"text-amber-500",border:"checked:border-amber-500",before:"checked:before:bg-amber-500"},yellow:{color:"text-yellow-500",border:"checked:border-yellow-500",before:"checked:before:bg-yellow-500"},lime:{color:"text-lime-500",border:"checked:border-lime-500",before:"checked:before:bg-lime-500"},"light-green":{color:"text-light-green-500",border:"checked:border-light-green-500",before:"checked:before:bg-light-green-500"},green:{color:"text-green-500",border:"checked:border-green-500",before:"checked:before:bg-green-500"},teal:{color:"text-teal-500",border:"checked:border-teal-500",before:"checked:before:bg-teal-500"},cyan:{color:"text-cyan-500",border:"checked:border-cyan-500",before:"checked:before:bg-cyan-500"},"light-blue":{color:"text-light-blue-500",border:"checked:border-light-blue-500",before:"checked:before:bg-light-blue-500"},blue:{color:"text-blue-500",border:"checked:border-blue-500",before:"checked:before:bg-blue-500"},indigo:{color:"text-indigo-500",border:"checked:border-indigo-500",before:"checked:before:bg-indigo-500"},"deep-purple":{color:"text-deep-purple-500",border:"checked:border-deep-purple-500",before:"checked:before:bg-deep-purple-500"},purple:{color:"text-purple-500",border:"checked:border-purple-500",before:"checked:before:bg-purple-500"},pink:{color:"text-pink-500",border:"checked:border-pink-500",before:"checked:before:bg-pink-500"},red:{color:"text-red-500",border:"checked:border-red-500",before:"checked:before:bg-red-500"}},r=t})(_S);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{radio:function(){return l},default:function(){return f}});var r=s(_S),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:void 0,icon:void 0,ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,iconProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"flex",alignItems:"items-center",cursor:"cursor-pointer",p:"p-3",borderRadius:"rounded-full"},input:{peer:"peer",position:"relative",appearance:"appearance-none",width:"w-5",height:"h-5",borderWidth:"border",borderRadius:"rounded-full",borderColor:"border-blue-gray-200",cursor:"cursor-pointer",transition:"transition-all",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-12",height:"before:h-12",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",opacity:"before:opacity-0 hover:before:opacity-10",transition:"before:transition-opacity"}},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px"},icon:{position:"absolute",top:"top-2/4",left:"left-2/4",translate:"-translate-y-2/4 -translate-x-2/4",pointerEvents:"pointer-events-none",opacity:"opacity-0 peer-checked:opacity-100",transition:"transition-opacity"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(PS);var OS={},AS={},ES={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderRadius:"before:rounded-tl-md",pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderRadius:"after:rounded-tr-md",pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(ES);var MS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}}},r=t})(MS);var RS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-blue-gray-500",before:"before:border-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},gray:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-gray-900",before:"before:border-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},brown:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-brown-500",before:"before:border-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"deep-orange":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-deep-orange-500",before:"before:border-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},orange:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-orange-500",before:"before:border-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},amber:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-amber-500",before:"before:border-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},yellow:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-yellow-500",before:"before:border-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},lime:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-lime-500",before:"before:border-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"light-green":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-light-green-500",before:"before:border-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},green:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},teal:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-teal-500",before:"before:border-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},cyan:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-cyan-500",before:"before:border-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"light-blue":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-light-blue-500",before:"before:border-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},blue:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-blue-500",before:"before:border-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},indigo:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-indigo-500",before:"before:border-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"deep-purple":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-deep-purple-500",before:"before:border-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},purple:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-purple-500",before:"before:border-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},pink:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-pink-500",before:"before:border-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},red:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}}},r=t})(RS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ES),r=s(MS),a=s(RS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-10"},select:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{initial:{},states:{close:{lineHeight:"leading-[3.75]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-11"},select:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-[7px]"},label:{initial:{},states:{close:{lineHeight:"leading-[4.1]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",before:{bt:"before:border-t-transparent",bl:"before:border-l-transparent"},after:{bt:"after:border-t-transparent",br:"after:border-r-transparent"}}},open:{select:{borderWidth:"border-2",borderColor:"border-t-transparent"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",before:{bt:"before:border-t-2",bl:"before:border-l-2"},after:{bt:"after:border-t-2",br:"after:border-r-2"}}},withValue:{select:{borderWidth:"border",borderColor:"border-t-transparent"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",before:{bt:"before:border-t",bl:"before:border-l"},after:{bt:"after:border-t",br:"after:border-r"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"}}},label:{initial:{},states:{close:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},open:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"}}},label:{initial:{},states:{close:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},open:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"}}}}},f=l})(AS);var NS={},IS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1.5",left:"left-0",borderWidth:"after:border-b-2",transition:"after:transition-transform after:duration-300"}},r=t})(IS);var LS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500"},withValue:{borderColor:"border-blue-gray-200"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900"},withValue:{borderColor:"border-blue-gray-200"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500"},withValue:{borderColor:"border-blue-gray-200"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500"},withValue:{borderColor:"border-blue-gray-200"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500"},withValue:{borderColor:"border-blue-gray-200"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-blue-gray-200"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500"},withValue:{borderColor:"border-blue-gray-200"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500"},withValue:{borderColor:"border-blue-gray-200"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-blue-gray-200"}}},r=t})(LS);var jS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},open:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-gray-50"}},gray:{close:{color:"text-blue-gray-500",after:"after:border-gray-500"},open:{color:"text-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-500",after:"after:border-gray-500"}},brown:{close:{color:"text-blue-gray-500",after:"after:border-brown-500"},open:{color:"text-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-500",after:"after:border-brown-500"}},"deep-orange":{close:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"},open:{color:"text-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"}},orange:{close:{color:"text-blue-gray-500",after:"after:border-orange-500"},open:{color:"text-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-orange-500"}},amber:{close:{color:"text-blue-gray-500",after:"after:border-amber-500"},open:{color:"text-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-500",after:"after:border-amber-500"}},yellow:{close:{color:"text-blue-gray-500",after:"after:border-yellow-500"},open:{color:"text-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-500",after:"after:border-yellow-500"}},lime:{close:{color:"text-blue-gray-500",after:"after:border-lime-500"},open:{color:"text-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-500",after:"after:border-lime-500"}},"light-green":{close:{color:"text-blue-gray-500",after:"after:border-light-green-500"},open:{color:"text-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-green-500"}},green:{close:{color:"text-blue-gray-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-green-500"}},teal:{close:{color:"text-blue-gray-500",after:"after:border-teal-500"},open:{color:"text-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-500",after:"after:border-teal-500"}},cyan:{close:{color:"text-blue-gray-500",after:"after:border-cyan-500"},open:{color:"text-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-500",after:"after:border-cyan-500"}},"light-blue":{close:{color:"text-blue-gray-500",after:"after:border-light-blue-500"},open:{color:"text-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-blue-500"}},blue:{close:{color:"text-blue-gray-500",after:"after:border-blue-500"},open:{color:"text-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-500"}},indigo:{close:{color:"text-blue-gray-500",after:"after:border-indigo-500"},open:{color:"text-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-500",after:"after:border-indigo-500"}},"deep-purple":{close:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"},open:{color:"text-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"}},purple:{close:{color:"text-blue-gray-500",after:"after:border-purple-500"},open:{color:"text-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-purple-500"}},pink:{close:{color:"text-blue-gray-500",after:"after:border-pink-500"},open:{color:"text-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-500",after:"after:border-pink-500"}},red:{close:{color:"text-blue-gray-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-500",after:"after:border-red-500"}}},r=t})(jS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(IS),r=s(LS),a=s(jS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-11"},select:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{initial:{},states:{close:{lineHeight:"leading-[4.25]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-12"},select:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{initial:{},states:{close:{lineHeight:"leading-[4.875]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",after:{transform:"after:scale-x-0"}}},open:{select:{borderWidth:"border-b"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-100"}}},withValue:{select:{borderWidth:"border-b"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-0"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-red-500"}}},label:{initial:{},states:{close:{color:"text-red-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-green-500"}}},label:{initial:{},states:{close:{color:"text-green-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",after:"after:border-green-500"}}}}},f=l})(NS);var DS={},zS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-2.5",left:"left-0",borderWidth:"after:border-b-2",transition:"after:transition-transform after:duration-300"}},r=t})(zS);var FS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500"},withValue:{borderColor:"border-blue-gray-200"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900"},withValue:{borderColor:"border-blue-gray-200"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500"},withValue:{borderColor:"border-blue-gray-200"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500"},withValue:{borderColor:"border-blue-gray-200"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500"},withValue:{borderColor:"border-blue-gray-200"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-blue-gray-200"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500"},withValue:{borderColor:"border-blue-gray-200"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500"},withValue:{borderColor:"border-blue-gray-200"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-blue-gray-200"}}},r=t})(FS);var VS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},open:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-gray-50"}},gray:{close:{color:"text-blue-gray-500",after:"after:border-gray-500"},open:{color:"text-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-500",after:"after:border-gray-500"}},brown:{close:{color:"text-blue-gray-500",after:"after:border-brown-500"},open:{color:"text-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-500",after:"after:border-brown-500"}},"deep-orange":{close:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"},open:{color:"text-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"}},orange:{close:{color:"text-blue-gray-500",after:"after:border-orange-500"},open:{color:"text-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-orange-500"}},amber:{close:{color:"text-blue-gray-500",after:"after:border-amber-500"},open:{color:"text-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-500",after:"after:border-amber-500"}},yellow:{close:{color:"text-blue-gray-500",after:"after:border-yellow-500"},open:{color:"text-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-500",after:"after:border-yellow-500"}},lime:{close:{color:"text-blue-gray-500",after:"after:border-lime-500"},open:{color:"text-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-500",after:"after:border-lime-500"}},"light-green":{close:{color:"text-blue-gray-500",after:"after:border-light-green-500"},open:{color:"text-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-green-500"}},green:{close:{color:"text-blue-gray-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-green-500"}},teal:{close:{color:"text-blue-gray-500",after:"after:border-teal-500"},open:{color:"text-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-500",after:"after:border-teal-500"}},cyan:{close:{color:"text-blue-gray-500",after:"after:border-cyan-500"},open:{color:"text-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-500",after:"after:border-cyan-500"}},"light-blue":{close:{color:"text-blue-gray-500",after:"after:border-light-blue-500"},open:{color:"text-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-blue-500"}},blue:{close:{color:"text-blue-gray-500",after:"after:border-blue-500"},open:{color:"text-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-500"}},indigo:{close:{color:"text-blue-gray-500",after:"after:border-indigo-500"},open:{color:"text-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-500",after:"after:border-indigo-500"}},"deep-purple":{close:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"},open:{color:"text-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"}},purple:{close:{color:"text-blue-gray-500",after:"after:border-purple-500"},open:{color:"text-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-purple-500"}},pink:{close:{color:"text-blue-gray-500",after:"after:border-pink-500"},open:{color:"text-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-500",after:"after:border-pink-500"}},red:{close:{color:"text-blue-gray-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-500",after:"after:border-red-500"}}},r=t})(VS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(zS),r=s(FS),a=s(VS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-11"},select:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{initial:{},states:{close:{lineHeight:"leading-tight"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-12"},select:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{initial:{},states:{close:{lineHeight:"leading-tight"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",after:{transform:"after:scale-x-0"}}},open:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-100"}}},withValue:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-0"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-red-500"}}},label:{initial:{},states:{close:{color:"text-red-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-green-500"}}},label:{initial:{},states:{close:{color:"text-green-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",after:"after:border-green-500"}}}}},f=l})(DS);var Bl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(oe,ne){for(var fe in ne)Object.defineProperty(oe,fe,{enumerable:!0,get:ne[fe]})}t(e,{propTypesVariant:function(){return l},propTypesSize:function(){return f},propTypesColor:function(){return b},propTypesLabel:function(){return S},propTypesError:function(){return T},propTypesSuccess:function(){return O},propTypesArrow:function(){return j},propTypesValue:function(){return F},propTypesOnChange:function(){return z},propTypesSelected:function(){return D},propTypesOffset:function(){return R},propTypesDismiss:function(){return P},propTypesAnimate:function(){return y},propTypesAutoHeight:function(){return p},propTypesLockScroll:function(){return v},propTypesLabelProps:function(){return g},propTypesMenuProps:function(){return m},propTypesIndex:function(){return _},propTypesDisabled:function(){return M},propTypesClassName:function(){return X},propTypesName:function(){return H},propTypesChildren:function(){return B},propTypesContainerProps:function(){return U},propTypesContextValue:function(){return K}});var r=s(it),a=Yt;function s(oe){return oe&&oe.__esModule?oe:{default:oe}}var l=["standard","outlined","static"],f=["md","lg"],b=a.propTypesColors,S=r.default.string,T=r.default.bool,O=r.default.bool,j=r.default.node,F=r.default.string,z=r.default.func,D=r.default.func,R=a.propTypesOffsetType,P=a.propTypesDismissType,y=a.propTypesAnimation,p=r.default.bool,v=r.default.bool,g=r.default.instanceOf(Object),m=r.default.instanceOf(Object),_=r.default.number,M=r.default.bool,X=r.default.string,H=r.default.string,B=r.default.node.isRequired,U=r.default.instanceOf(Object),K=r.default.shape({selectedIndex:r.default.number.isRequired,setSelectedIndex:r.default.func.isRequired,activeIndex:r.default.oneOfType([r.default.number,r.default.instanceOf(null)]),setActiveIndex:r.default.func.isRequired,listRef:r.default.instanceOf(Object).isRequired,setOpen:r.default.func.isRequired,onChange:r.default.func.isRequired,getItemProps:r.default.func.isRequired,dataRef:r.default.instanceOf(Object).isRequired}).isRequired})(Bl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{select:function(){return b},default:function(){return S}});var r=f(AS),a=f(NS),s=f(DS),l=Bl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",color:"gray",size:"md",label:"",error:!1,success:!1,arrow:void 0,value:void 0,onChange:void 0,selected:void 0,offset:5,dismiss:{},animate:{unmount:{},mount:{}},autoHeight:!1,lockScroll:!1,labelProps:{},menuProps:{},className:"",disabled:!1,containerProps:void 0},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},select:{peer:"peer",width:"w-full",height:"h-full",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",textAlign:"text-left",outline:"outline outline-0 focus:outline-0",disabled:"disabled:bg-blue-gray-50 disabled:border-0",transition:"transition-all"},arrow:{initial:{display:"grid",placeItems:"place-items-center",position:"absolute",top:"top-2/4",right:"right-2",pt:"pt-px",width:"w-5",height:"h-5",color:"text-blue-gray-400",transform:"rotate-0 -translate-y-2/4",transition:"transition-all"},active:{transform:"rotate-180",mt:"mt-px"}},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",transition:"transition-all"},menu:{width:"w-full",maxHeight:"max-h-96",bg:"bg-white",p:"p-3",border:"border border-blue-gray-50",borderRadius:"rounded-md",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",overflow:"overflow-auto",outline:"focus:outline-none"},option:{initial:{pt:"pt-[9px]",pb:"pb-2",px:"px-3",borderRadius:"rounded-md",lightHeight:"leading-tight",cursor:"cursor-pointer",userSelect:"select-none",background:"hover:bg-blue-gray-50 focus:bg-blue-gray-50",opacity:"hover:bg-opacity-80 focus:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900",outline:"outline outline-0",transition:"transition-all"},active:{bg:"bg-blue-gray-50 bg-opacity-80",color:"text-blue-gray-900"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",userSelect:"select-none",pointerEvents:"pointer-events-none"}}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})(OS);var WS={},BS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{input:"checked:bg-blue-gray-500",circle:"peer-checked:border-blue-gray-500",before:"peer-checked:before:bg-blue-gray-500"},gray:{input:"checked:bg-gray-900",circle:"peer-checked:border-gray-900",before:"peer-checked:before:bg-gray-900"},brown:{input:"checked:bg-brown-500",circle:"peer-checked:border-brown-500",before:"peer-checked:before:bg-brown-500"},"deep-orange":{input:"checked:bg-deep-orange-500",circle:"peer-checked:border-deep-orange-500",before:"peer-checked:before:bg-deep-orange-500"},orange:{input:"checked:bg-orange-500",circle:"peer-checked:border-orange-500",before:"peer-checked:before:bg-orange-500"},amber:{input:"checked:bg-amber-500",circle:"peer-checked:border-amber-500",before:"peer-checked:before:bg-amber-500"},yellow:{input:"checked:bg-yellow-500",circle:"peer-checked:border-yellow-500",before:"peer-checked:before:bg-yellow-500"},lime:{input:"checked:bg-lime-500",circle:"peer-checked:border-lime-500",before:"peer-checked:before:bg-lime-500"},"light-green":{input:"checked:bg-light-green-500",circle:"peer-checked:border-light-green-500",before:"peer-checked:before:bg-light-green-500"},green:{input:"checked:bg-green-500",circle:"peer-checked:border-green-500",before:"peer-checked:before:bg-green-500"},teal:{input:"checked:bg-teal-500",circle:"peer-checked:border-teal-500",before:"peer-checked:before:bg-teal-500"},cyan:{input:"checked:bg-cyan-500",circle:"peer-checked:border-cyan-500",before:"peer-checked:before:bg-cyan-500"},"light-blue":{input:"checked:bg-light-blue-500",circle:"peer-checked:border-light-blue-500",before:"peer-checked:before:bg-light-blue-500"},blue:{input:"checked:bg-blue-500",circle:"peer-checked:border-blue-500",before:"peer-checked:before:bg-blue-500"},indigo:{input:"checked:bg-indigo-500",circle:"peer-checked:border-indigo-500",before:"peer-checked:before:bg-indigo-500"},"deep-purple":{input:"checked:bg-deep-purple-500",circle:"peer-checked:border-deep-purple-500",before:"peer-checked:before:bg-deep-purple-500"},purple:{input:"checked:bg-purple-500",circle:"peer-checked:border-purple-500",before:"peer-checked:before:bg-purple-500"},pink:{input:"checked:bg-pink-500",circle:"peer-checked:border-pink-500",before:"peer-checked:before:bg-pink-500"},red:{input:"checked:bg-red-500",circle:"peer-checked:border-red-500",before:"peer-checked:before:bg-red-500"}},r=t})(BS);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{switchButton:function(){return l},default:function(){return f}});var r=s(BS),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:"",ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,circleProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"inline-block",width:"w-8",height:"h-4",cursor:"cursor-pointer",borderRadius:"rounded-full"},input:{peer:"peer",appearance:"appearance-none",width:"w-8",height:"h-4",position:"absolute",background:"bg-blue-gray-100",borderRadius:"rounded-full",cursor:"cursor-pointer",transition:"transition-colors duration-300"},circle:{bg:"bg-white",width:"w-5",height:"h-5",borderWidth:"border",borderColor:"border-blue-gray-100",borderRadius:"rounded-full",boxShadow:"shadow-md",position:"absolute",top:"top-2/4",left:"-left-1",transform:"-translate-y-2/4 peer-checked:translate-x-full",transition:"transition-all duration-300",cursor:"cursor-pointer",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-10",height:"before:h-10",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",transition:"before:transition-opacity",opacity:"before:opacity-0 hover:before:opacity-10"}},ripple:{display:"inline-block",top:"top-2/4",left:"left-2/4",transform:"-translate-x-2/4 -translate-y-2/4",p:"p-5",borderRadius:"rounded-full"},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px",ml:"ml-3",mb:"mb-0"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(WS);var HS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tab:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",activeClassName:"",disabled:!1},styles:{base:{tab:{initial:{display:"flex",alignItems:"items-center",justifyContent:"justify-center",textAlign:"text-center",width:"w-full",height:"h-full",position:"relative",bg:"bg-transparent",py:"py-1",px:"px-2",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-normal",lineHeight:"leading-relaxed",userSelect:"select-none",cursor:"cursor-pointer"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none"}},indicator:{position:"absolute",inset:"inset-0",zIndex:"z-10",height:"h-full",bg:"bg-white",borderRadius:"rounded-md",boxShadow:"shadow"}}}},a=r})(HS);var XS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabs:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",orientation:"horizontal"},styles:{base:{overflow:"overflow-hidden"},horizontal:{display:"block"},vertical:{display:"flex"}}},a=r})(XS);var YS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabsBody:function(){return r},default:function(){return a}});var r={defaultProps:{animate:{unmount:{},mount:{}},className:""},styles:{base:{display:"block",width:"w-full",position:"relative",bg:"bg-transparent",overflow:"overflow-hidden"}}},a=r})(YS);var GS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabsHeader:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",position:"relative",bg:"bg-blue-gray-50",bgOpacity:"bg-opacity-60",borderRadius:"rounded-lg",p:"p-1"},horizontal:{flexDirection:"flex-row"},vertical:{flexDirection:"flex-col"}}},a=r})(GS);var US={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabPanel:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{width:"w-full",height:"h-max",color:"text-gray-700",p:"p-4",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"}}},a=r})(US);var $S={},qS={},KS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderColor:"peer-placeholder-shown:before:border-transparent",borderRadius:"before:rounded-tl-md",floated:{bt:"before:border-t peer-focus:before:border-t-2",bl:"before:border-l peer-focus:before:border-l-2"},pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderColor:"peer-placeholder-shown:after:border-transparent",borderRadius:"after:rounded-tr-md",floated:{bt:"after:border-t peer-focus:after:border-t-2",br:"after:border-r peer-focus:after:border-r-2"},pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(KS);var ZS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(ZS);var QS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-400 peer-focus:text-blue-gray-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-gray-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-blue-gray-400 peer-focus:text-gray-900",before:"before:border-blue-gray-200 peer-focus:before:!border-gray-900",after:"after:border-blue-gray-200 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-400 peer-focus:text-brown-500",before:"before:border-blue-gray-200 peer-focus:before:!border-brown-500",after:"after:border-blue-gray-200 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-400 peer-focus:text-deep-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-400 peer-focus:text-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-400 peer-focus:text-amber-500",before:"before:border-blue-gray-200 peer-focus:before:!border-amber-500",after:"after:border-blue-gray-200 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-400 peer-focus:text-yellow-500",before:"before:border-blue-gray-200 peer-focus:before:!border-yellow-500",after:"after:border-blue-gray-200 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-400 peer-focus:text-lime-500",before:"before:border-blue-gray-200 peer-focus:before:!border-lime-500",after:"after:border-blue-gray-200 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-400 peer-focus:text-light-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-400 peer-focus:text-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-400 peer-focus:text-teal-500",before:"before:border-blue-gray-200 peer-focus:before:!border-teal-500",after:"after:border-blue-gray-200 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-400 peer-focus:text-cyan-500",before:"before:border-blue-gray-200 peer-focus:before:!border-cyan-500",after:"after:border-blue-gray-200 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-400 peer-focus:text-light-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-400 peer-focus:text-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-400 peer-focus:text-indigo-500",before:"before:border-blue-gray-200 peer-focus:before:!border-indigo-500",after:"after:border-blue-gray-200 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-400 peer-focus:text-deep-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-400 peer-focus:text-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-400 peer-focus:text-pink-500",before:"before:border-blue-gray-200 peer-focus:before:!border-pink-500",after:"after:border-blue-gray-200 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-400 peer-focus:text-red-500",before:"before:border-blue-gray-200 peer-focus:before:!border-red-500",after:"after:border-blue-gray-200 peer-focus:after:!border-red-500"}},r=t})(QS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(KS),r=s(ZS),a=s(QS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"placeholder-shown:border",borderColor:"placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200",floated:{borderWidth:"border focus:border-2",borderColor:"border-t-transparent focus:border-t-transparent"}},label:t.default},sizes:{md:{container:{height:"h-10"},textarea:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{lineHeight:"peer-placeholder-shown:leading-[3.75]"}},lg:{container:{height:"h-11"},textarea:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-md"},label:{lineHeight:"peer-placeholder-shown:leading-[4.1]"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-t-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",before:"before:border-red-500 peer-focus:before:border-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-t-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",before:"before:border-green-500 peer-focus:before:border-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{borderTop:"!border-t-transparent"},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight",borderColor:"before:!border-blue-gray-200 after:!border-blue-gray-200"}}},f=l})(qS);var JS={},ek={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-0",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(ek);var tk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(tk);var rk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:!border-red-500"}},r=t})(rk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ek),r=s(tk),a=s(rk);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},label:t.default},sizes:{md:{container:{height:"h-11"},textarea:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-[4.25]"}},lg:{container:{height:"h-12"},textarea:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-[4.875]"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight"}}},f=l})(JS);var nk={},ok={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",fontSize:"text-sm peer-focus:text-sm",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(ok);var ak={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(ak);var ik={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(ik);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ok),r=s(ak),a=s(ik);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},label:t.default},sizes:{md:{container:{height:"h-11"},textarea:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-tight"}},lg:{container:{height:"h-12"},textarea:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-tight"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{},label:{}}},f=l})(nk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{textarea:function(){return b},default:function(){return S}});var r=f(qS),a=f(JS),s=f(nk),l=Wl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",size:"md",color:"gray",label:"",error:!1,success:!1,resize:!0,labelProps:void 0,containerProps:void 0,shrink:!1,className:""},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},textarea:{peer:"peer",width:"w-full",height:"h-full",minHeight:"min-h-[100px]",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",outline:"outline outline-0 focus:outline-0",resize:"resize-y",disabled:"disabled:bg-blue-gray-50 disabled:border-0 disabled:resize-none",transition:"transition-all"},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",color:"peer-placeholder-shown:text-blue-gray-500",lineHeight:"leading-tight peer-focus:leading-tight",disabled:"peer-disabled:text-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500",transition:"transition-all"}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})($S);var sk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tooltip:function(){return r},default:function(){return a}});var r={defaultProps:{interactive:!1,placement:"top",offset:5,dismiss:{},animate:{unmount:{},mount:{}},className:""},styles:{base:{bg:"bg-black",py:"py-1.5",px:"px-3",borderRadius:"rounded-lg",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-white",outline:"focus:outline-none",overflowWrap:"break-words",zIndex:"z-[999]",whiteSpace:"whitespace-normal"}}},a=r})(sk);var lk={},uk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={inherit:{color:"text-inherit"},current:{color:"text-current"},black:{color:"text-black"},white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-900",gradient:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400"},gray:{color:"text-gray-700",gradient:"bg-gradient-to-tr from-gray-600 to-gray-400"},brown:{color:"text-brown-500",gradient:"bg-gradient-to-tr from-brown-600 to-brown-400"},"deep-orange":{color:"text-deep-orange-500",gradient:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400"},orange:{color:"text-orange-500",gradient:"bg-gradient-to-tr from-orange-600 to-orange-400"},amber:{color:"text-amber-500",gradient:"bg-gradient-to-tr from-amber-600 to-amber-400"},yellow:{color:"text-yellow-500",gradient:"bg-gradient-to-tr from-yellow-600 to-yellow-400"},lime:{color:"text-lime-500",gradient:"bg-gradient-to-tr from-lime-600 to-lime-400"},"light-green":{color:"text-light-green-500",gradient:"bg-gradient-to-tr from-light-green-600 to-light-green-400"},green:{color:"text-green-500",gradient:"bg-gradient-to-tr from-green-600 to-green-400"},teal:{color:"text-teal-500",gradient:"bg-gradient-to-tr from-teal-600 to-teal-400"},cyan:{color:"text-cyan-500",gradient:"bg-gradient-to-tr from-cyan-600 to-cyan-400"},"light-blue":{color:"text-light-blue-500",gradient:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400"},blue:{color:"text-blue-500",gradient:"bg-gradient-to-tr from-blue-600 to-blue-400"},indigo:{color:"text-indigo-500",gradient:"bg-gradient-to-tr from-indigo-600 to-indigo-400"},"deep-purple":{color:"text-deep-purple-500",gradient:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400"},purple:{color:"text-purple-500",gradient:"bg-gradient-to-tr from-purple-600 to-purple-400"},pink:{color:"text-pink-500",gradient:"bg-gradient-to-tr from-pink-600 to-pink-400"},red:{color:"text-red-500",gradient:"bg-gradient-to-tr from-red-600 to-red-400"}},r=t})(uk);var w0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesAs:function(){return z},propTypesTextGradient:function(){return D},propTypesClassName:function(){return R},propTypesChildren:function(){return P}});var r=f(it),a=Yt;function s(y,p){(p==null||p>y.length)&&(p=y.length);for(var v=0,g=new Array(p);v<p;v++)g[v]=y[v];return g}function l(y){if(Array.isArray(y))return s(y)}function f(y){return y&&y.__esModule?y:{default:y}}function b(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(y){return l(y)||b(y)||O(y)||S()}function O(y,p){if(y){if(typeof y=="string")return s(y,p);var v=Object.prototype.toString.call(y).slice(8,-1);if(v==="Object"&&y.constructor&&(v=y.constructor.name),v==="Map"||v==="Set")return Array.from(v);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return s(y,p)}}var j=["h1","h2","h3","h4","h5","h6","lead","paragraph","small"],F=["inherit","current","black","white"].concat(T(a.propTypesColors)),z=r.default.elementType,D=r.default.bool,R=r.default.string,P=r.default.node.isRequired})(w0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{typography:function(){return l},default:function(){return f}});var r=s(uk),a=w0;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"paragraph",color:"inherit",textGradient:!1,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{variants:{h1:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-5xl",fontWeight:"font-semibold",lineHeight:"leading-tight"},h2:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-4xl",fontWeight:"font-semibold",lineHeight:"leading-[1.3]"},h3:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-3xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h4:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-2xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h5:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h6:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-semibold",lineHeight:"leading-relaxed"},lead:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-xl",fontWeight:"font-normal",lineHeight:"leading-relaxed"},paragraph:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"},small:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-light",lineHeight:"leading-normal"}},textGradient:{bgClip:"bg-clip-text",color:"text-transparent"},colors:r.default}},f=l})(lk);var ck={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{collapse:function(){return r},default:function(){return a}});var r={defaultProps:{animate:{unmount:{},mount:{}},className:""},styles:{base:{display:"block",width:"w-full",basis:"basis-full",overflow:"overflow-hidden"}}},a=r})(ck);var dk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{list:function(){return r},default:function(){return a}});var r={defaultProps:{ripple:!0,className:""},styles:{base:{list:{display:"flex",flexDirection:"flex-col",gap:"gap-1",minWidth:"min-w-[240px]",p:"p-2",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-normal",color:"text-blue-gray-700"},item:{initial:{display:"flex",alignItems:"items-center",width:"w-full",padding:"p-3",borderRadius:"rounded-lg",textAlign:"text-start",lightHeight:"leading-tight",transition:"transition-all",bg:"hover:bg-blue-gray-50 hover:bg-opacity-80 focus:bg-blue-gray-50 focus:bg-opacity-80 active:bg-blue-gray-50 active:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900 active:text-blue-gray-900",outline:"outline-none"},selected:{bg:"bg-blue-gray-50/50",color:"text-blue-gray-700"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none",bg:"hover:bg-transparent focus:bg-transparent active:bg-transparent",color:"hover:text-blue-gray-500 focus:text-blue-gray-500 active:text-blue-gray-500"}},itemPrefix:{display:"grid",placeItems:"place-items-center",marginRight:"mr-4"},itemSuffix:{display:"grid",placeItems:"place-items-center",marginRight:"ml-auto justify-self-end"}}}},a=r})(dk);var fk={},pk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{divideColor:"divide-blue-gray-50"},"blue-gray":{divideColor:"divide-blue-gray-600"},gray:{divideColor:"divide-gray-800"},brown:{divideColor:"divide-brown-600"},"deep-orange":{divideColor:"divide-deep-orange-600"},orange:{divideColor:"divide-orange-600"},amber:{divideColor:"divide-amber-600"},yellow:{divideColor:"divide-yellow-600"},lime:{divideColor:"divide-lime-600"},"light-green":{divideColor:"divide-light-green-600"},green:{divideColor:"divide-green-600"},teal:{divideColor:"divide-teal-600"},cyan:{divideColor:"divide-cyan-600"},"light-blue":{divideColor:"divide-light-blue-600"},blue:{divideColor:"divide-blue-600"},indigo:{divideColor:"divide-indigo-600"},"deep-purple":{divideColor:"divide-deep-purple-600"},purple:{divideColor:"divide-purple-600"},pink:{divideColor:"divide-pink-600"},red:{divideColor:"divide-red-600"}},r=t})(pk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{buttonGroup:function(){return l},default:function(){return f}});var r=s(pk),a=Ka;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:a.propTypesVariant,sizes:a.propTypesSize,colors:a.propTypesColor},styles:{base:{initial:{display:"flex",flexDirection:"row"},fullWidth:{width:"w-full"}},dividerColor:r.default}},f=l})(fk);var hk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,b){for(var S in b)Object.defineProperty(f,S,{enumerable:!0,get:b[S]})}t(e,{carousel:function(){return s},default:function(){return l}});var r=a(ee);function a(f){return f&&f.__esModule?f:{default:f}}var s={defaultProps:{prevArrow:function(f){var b=f.loop,S=f.handlePrev,T=f.firstIndex;return r.default.createElement("button",{onClick:S,disabled:!b&&T,className:"!absolute top-2/4 left-4 -translate-y-2/4 rounded-full select-none transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none w-12 max-w-[48px] h-12 max-h-[48px] text-white hover:bg-white/10 active:bg-white/30 grid place-items-center"},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,className:"-ml-1 h-7 w-7"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})))},nextArrow:function(f){var b=f.loop,S=f.handleNext,T=f.lastIndex;return r.default.createElement("button",{onClick:S,disabled:!b&&T,className:"!absolute top-2/4 right-4 -translate-y-2/4 rounded-full select-none transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none w-12 max-w-[48px] h-12 max-h-[48px] text-white hover:bg-white/10 active:bg-white/30 grid place-items-center"},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,className:"ml-1 h-7 w-7"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))},navigation:function(f){var b=f.setActiveIndex,S=f.activeIndex,T=f.length;return r.default.createElement("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2"},new Array(T).fill("").map(function(O,j){return r.default.createElement("span",{key:j,className:"block h-3 w-3 cursor-pointer rounded-full transition-colors content-[''] ".concat(S===j?"bg-white":"bg-white/50"),onClick:function(){return b(j)}})}))},autoplay:!1,autoplayDelay:5e3,transition:{type:"tween",duration:.5},loop:!1,className:""},styles:{base:{carousel:{position:"relative",width:"w-full",height:"h-full",overflowX:"overflow-x-hidden",display:"flex"},slide:{width:"w-full",height:"h-full",display:"inline-block",flex:"flex-none"}}}},l=s})(hk);var gk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{drawer:function(){return r},default:function(){return a}});var r={defaultProps:{size:300,overlay:!0,placement:"left",overlayProps:void 0,className:"",dismiss:void 0,onClose:void 0,transition:{type:"tween",duration:.3}},styles:{base:{drawer:{position:"fixed",zIndex:"z-[9999]",pointerEvents:"pointer-events-auto",backgroundColor:"bg-white",boxSizing:"box-border",width:"w-full",boxShadow:"shadow-2xl shadow-blue-gray-900/10"},overlay:{position:"absolute",inset:"inset-0",width:"w-full",height:"h-full",pointerEvents:"pointer-events-auto",zIndex:"z-[9995]",backgroundColor:"bg-black",backgroundOpacity:"bg-opacity-60",backdropBlur:"backdrop-blur-sm"}}}},a=r})(gk);var bk={},C0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{propTypesColor:function(){return j},propTypesInvisible:function(){return F},propTypesWithBorder:function(){return z},propTypesOverlap:function(){return D},propTypesPlacement:function(){return R},propTypesClassName:function(){return P},propTypesContent:function(){return y},propTypesChildren:function(){return p},propTypesContainerProps:function(){return v},propTypesContainerRef:function(){return g}});var r=f(it),a=Yt;function s(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function l(m){if(Array.isArray(m))return s(m)}function f(m){return m&&m.__esModule?m:{default:m}}function b(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(m){return l(m)||b(m)||O(m)||S()}function O(m,_){if(m){if(typeof m=="string")return s(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return s(m,_)}}var j=["white"].concat(T(a.propTypesColors)),F=r.default.bool,z=r.default.bool,D=["circular","square"],R=["top-start","top-end","bottom-start","bottom-end"],P=r.default.string,y=r.default.node,p=r.default.node.isRequired,v=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(C0);var vk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(vk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{badge:function(){return l},default:function(){return f}});var r=C0,a=s(vk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:a.default}},f=l})(bk);var mk={},S0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return j},propTypesValue:function(){return F},propTypesRatedIcon:function(){return z},propTypesUnratedIcon:function(){return D},propTypesColor:function(){return R},propTypesOnChange:function(){return P},propTypesClassName:function(){return y},propTypesReadonly:function(){return p}});var r=f(it),a=Yt;function s(v,g){(g==null||g>v.length)&&(g=v.length);for(var m=0,_=new Array(g);m<g;m++)_[m]=v[m];return _}function l(v){if(Array.isArray(v))return s(v)}function f(v){return v&&v.__esModule?v:{default:v}}function b(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(v){return l(v)||b(v)||O(v)||S()}function O(v,g){if(v){if(typeof v=="string")return s(v,g);var m=Object.prototype.toString.call(v).slice(8,-1);if(m==="Object"&&v.constructor&&(m=v.constructor.name),m==="Map"||m==="Set")return Array.from(m);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return s(v,g)}}var j=r.default.number,F=r.default.number,z=r.default.oneOfType([r.default.node,r.default.instanceOf(Object)]),D=r.default.oneOfType([r.default.node,r.default.instanceOf(Object)]),R=["white"].concat(T(a.propTypesColors)),P=r.default.func,y=r.default.string,p=r.default.bool})(S0);var yk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-500"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-700"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(yk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{rating:function(){return f},default:function(){return b}});var r=l(ee),a=S0,s=l(yk);function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{count:5,value:0,ratedIcon:r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6"},r.default.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"})),unratedIcon:r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})),ratedColor:"yellow",unratedColor:"blue-gray",className:void 0,onChange:void 0,readonly:!1},valid:{colors:a.propTypesColor},styles:{base:{rating:{display:"inline-flex",alignItems:"items-center"},icon:{width:"w-5",height:"h-5",color:"text-inherit",cursor:"cursor-pointer"}},colors:s.default}},b=f})(mk);var xk={},k0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{propTypesColor:function(){return l},propTypesSize:function(){return f},propTypesClassName:function(){return b},propTypesTrackClassName:function(){return S},propTypesThumbClassName:function(){return T},propTypesBarClassName:function(){return O},propTypesDefaultValue:function(){return j},propTypesValue:function(){return F},propTypesOnChange:function(){return z},propTypesMin:function(){return D},propTypesMax:function(){return R},propTypesStep:function(){return P},propTypesInputRef:function(){return y},propTypesInputProps:function(){return p}});var r=s(it),a=Yt;function s(v){return v&&v.__esModule?v:{default:v}}var l=a.propTypesColors,f=["sm","md","lg"],b=r.default.string,S=r.default.string,T=r.default.string,O=r.default.string,j=r.default.oneOfType([r.default.number,r.default.string]),F=r.default.oneOfType([r.default.number,r.default.string]),z=r.default.func,D=r.default.oneOfType([r.default.number,r.default.string]),R=r.default.oneOfType([r.default.number,r.default.string]),P=r.default.oneOfType([r.default.number,r.default.string]),y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})]),p=r.default.instanceOf(Object)})(k0);var wk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-900"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-500"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(wk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{slider:function(){return l},default:function(){return f}});var r=k0,a=s(wk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",size:"md",min:void 0,max:void 0,step:"any",className:"",trackClassName:"",thumbClassName:"",barClassName:"",inputProps:void 0},valid:{sizes:r.propTypesSize,colors:r.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},slider:{width:"w-full",position:"absolute",inset:"inset-0",backgroundColor:"bg-transparent",cursor:"cursor-pointer",outline:"focus:outline-none focus:outline-0",appearance:"appearance-none [-webkit-appearance:none]"},track:{height:"[&::-webkit-slider-runnable-track]:h-full [&::-moz-range-track]:h-full",borderRadius:"[&::-webkit-slider-runnable-track]:rounded-full [&::-moz-range-track]:rounded-full",backgroundColor:"[&::-webkit-slider-runnable-track]:bg-blue-gray-100 [&::-moz-range-track]:bg-blue-gray-100"},thumb:{appearance:"[&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:[-webkit-appearance:none] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:[-webkit-appearance:none]",borderRadius:"[&::-moz-range-thumb]:rounded-full [&::-webkit-slider-thumb]:rounded-full",border:"[&::-moz-range-thumb]:border-0 [&::-webkit-slider-thumb]:border-0",ringWidth:"[&::-moz-range-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-2",ringColor:"[&::-moz-range-thumb]:ring-current [&::-webkit-slider-thumb]:ring-current",backgroundColor:"[&::-moz-range-thumb]:bg-white [&::-webkit-slider-thumb]:bg-white",position:"[&::-moz-range-thumb]:relative [&::-webkit-slider-thumb]:relative",zIndex:"[&::-moz-range-thumb]:z-20 [&::-webkit-slider-thumb]:z-20"},bar:{position:"absolute",inset:"inset-0",zIndex:"z-10",borderRadius:"rounded-l-full",height:"h-full",pointerEvents:"pointer-events-none",backgroundColor:"bg-current"}},sizes:{sm:{container:{height:"h-1"},thumb:{width:"[&::-moz-range-thumb]:w-2.5 [&::-webkit-slider-thumb]:w-2.5",height:"[&::-moz-range-thumb]:h-2.5 [&::-webkit-slider-thumb]:h-2.5",marginTop:"[&::-moz-range-thumb]:-mt-[3px] [&::-webkit-slider-thumb]:-mt-[3px]"},slider:{},track:{},bar:{}},md:{container:{height:"h-2"},thumb:{width:"[&::-moz-range-thumb]:w-3.5 [&::-webkit-slider-thumb]:w-3.5",height:"[&::-moz-range-thumb]:h-3.5 [&::-webkit-slider-thumb]:h-3.5",marginTop:"[&::-moz-range-thumb]:-mt-[3px] [&::-webkit-slider-thumb]:-mt-[3px]"},slider:{},track:{},bar:{}},lg:{container:{height:"h-3"},thumb:{width:"[&::-moz-range-thumb]:w-5 [&::-webkit-slider-thumb]:w-5",height:"[&::-moz-range-thumb]:h-5 [&::-webkit-slider-thumb]:h-5",marginTop:"[&::-moz-range-thumb]:-mt-1 [&::-webkit-slider-thumb]:-mt-1"},slider:{},track:{},bar:{}}},colors:a.default}},f=l})(xk);var Ck={},T0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesColor:function(){return j},propTypesClassName:function(){return F}});var r=f(it),a=Yt;function s(z,D){(D==null||D>z.length)&&(D=z.length);for(var R=0,P=new Array(D);R<D;R++)P[R]=z[R];return P}function l(z){if(Array.isArray(z))return s(z)}function f(z){return z&&z.__esModule?z:{default:z}}function b(z){if(typeof Symbol<"u"&&z[Symbol.iterator]!=null||z["@@iterator"]!=null)return Array.from(z)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(z){return l(z)||b(z)||O(z)||S()}function O(z,D){if(z){if(typeof z=="string")return s(z,D);var R=Object.prototype.toString.call(z).slice(8,-1);if(R==="Object"&&z.constructor&&(R=z.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return s(z,D)}}var j=["white"].concat(T(a.propTypesColors)),F=r.default.string})(T0);var Sk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-900"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-500"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(Sk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{spinner:function(){return l},default:function(){return f}});var r=T0,a=s(Sk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",className:""},valid:{colors:r.propTypesColor},styles:{base:{color:"text-gray-300",animation:"animate-spin"},colors:a.default}},f=l})(Ck);var kk={},Tk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timeline:function(){return r},default:function(){return a}});var r={styles:{base:{display:"w-full",position:"flex",flexDirection:"flex-col"}}},a=r})(Tk);var Pk={},Eo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{propTypeClassName:function(){return j},propTypeChildren:function(){return F},propTypeColor:function(){return z},propTypeVariant:function(){return D}});var r=f(it),a=Yt;function s(R,P){(P==null||P>R.length)&&(P=R.length);for(var y=0,p=new Array(P);y<P;y++)p[y]=R[y];return p}function l(R){if(Array.isArray(R))return s(R)}function f(R){return R&&R.__esModule?R:{default:R}}function b(R){if(typeof Symbol<"u"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(R){return l(R)||b(R)||O(R)||S()}function O(R,P){if(R){if(typeof R=="string")return s(R,P);var y=Object.prototype.toString.call(R).slice(8,-1);if(y==="Object"&&R.constructor&&(y=R.constructor.name),y==="Map"||y==="Set")return Array.from(y);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return s(R,P)}}var j=r.default.string,F=r.default.node,z=["white"].concat(T(a.propTypesColors)),D=["filled","outlined","ghost","gradient"]})(Eo);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var b in f)Object.defineProperty(l,b,{enumerable:!0,get:f[b]})}t(e,{timelineItem:function(){return a},default:function(){return s}});var r=Eo,a={defaultProps:{color:"gray",variant:"filled"},valid:{colors:r.propTypeColor,variants:r.propTypeVariant},styles:{base:{display:"flex",position:"relative",flexDirection:"flex-col",gap:"gap-2"}}},s=a})(Pk);var _k={},Ok={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{color:"text-white",background:"bg-white/10"},"blue-gray":{color:"text-blue-gray-500",background:"bg-blue-gray-500/10"},gray:{color:"text-gray-900",background:"bg-gray-900/10"},brown:{color:"text-brown-500",background:"bg-brown-500/10"},"deep-orange":{color:"text-deep-orange-500",background:"bg-deep-orange-500/10"},orange:{color:"text-orange-500",background:"bg-orange-500/10"},amber:{color:"text-amber-500",background:"bg-amber-500/10"},yellow:{color:"text-yellow-500",background:"bg-yellow-500/10"},lime:{color:"text-lime-500",background:"bg-lime-500/10"},"light-green":{color:"text-light-green-500",background:"bg-light-green-500/10"},green:{color:"text-green-500",background:"bg-green-500/10"},teal:{color:"text-teal-500",background:"bg-teal-500/10"},cyan:{color:"text-cyan-500",background:"bg-cyan-500/10"},"light-blue":{color:"text-light-blue-500",background:"bg-light-blue-500/10"},blue:{color:"text-blue-500",background:"bg-blue-500/10"},indigo:{color:"text-indigo-500",background:"bg-indigo-500/10"},"deep-purple":{color:"text-deep-purple-500",background:"bg-deep-purple-500/10"},purple:{color:"text-purple-500",background:"bg-purple-500/10"},pink:{color:"text-pink-500",background:"bg-pink-500/10"},red:{color:"text-red-500",background:"bg-red-500/10"}},r=t})(Ok);var Ak={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(Ak);var Ek={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{border:"border border-white",color:"text-white"},"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-500"},gray:{border:"border border-gray-900",color:"text-gray-900"},brown:{border:"border border-brown-500",color:"text-brown-500"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-500"},orange:{border:"border border-orange-500",color:"text-orange-500"},amber:{border:"border border-amber-500",color:"text-amber-500"},yellow:{border:"border border-yellow-500",color:"text-yellow-500"},lime:{border:"border border-lime-500",color:"text-lime-500"},"light-green":{border:"border border-light-green-500",color:"text-light-green-500"},green:{border:"border border-green-500",color:"text-green-500"},teal:{border:"border border-teal-500",color:"text-teal-500"},cyan:{border:"border border-cyan-500",color:"text-cyan-500"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-500"},blue:{border:"border border-blue-500",color:"text-blue-500"},indigo:{border:"border border-indigo-500",color:"text-indigo-500"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-500"},purple:{border:"border border-purple-500",color:"text-purple-500"},pink:{border:"border border-pink-500",color:"text-pink-500"},red:{border:"border border-red-500",color:"text-red-500"}},r=t})(Ek);var Mk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(Mk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{timelineIcon:function(){return S},default:function(){return T}});var r=b(Ok),a=b(Ak),s=b(Ek),l=b(Mk),f=Eo;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{color:"gray",variant:"filled"},valid:{colors:f.propTypeColor,variants:f.propTypeVariant},styles:{base:{width:"w-max",height:"w-max",padding:"p-1.5",position:"relative",zIndex:"z-[2]",flexShrink:"flex-shrink-0",borderRadius:"rounded-full",overflow:"overflow-hidden"},variants:{ghost:r.default,filled:a.default,outlined:s.default,gradient:l.default}}},T=S})(_k);var Rk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineHeader:function(){return r},default:function(){return a}});var r={styles:{base:{display:"flex",alignItems:"items-center",gap:"gap-4"}}},a=r})(Rk);var Nk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineBody:function(){return r},default:function(){return a}});var r={styles:{base:{display:"flex",gap:"gap-4"}}},a=r})(Nk);var Ik={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineConnector:function(){return r},default:function(){return a}});var r={styles:{base:{container:{position:"absolute",left:"left-0",display:"grid",justifyContent:"justify-center",backgroundColor:"bg-transparent",transition:"transition-opacity duration-200"},line:{width:"w-0.5",height:"h-full",backgroundColor:"bg-blue-gray-100"}}}},a=r})(Ik);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(Tk,e),t(Pk,e),t(_k,e),t(Rk,e),t(Nk,e),t(Ik,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(kk);var Lk={},jk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{step:function(){return r},default:function(){return a}});var r={styles:{base:{initial:{position:"relative",zIndex:"z-10",display:"grid",placeItems:"place-items-center",width:"w-10",height:"h-10",borderRadius:"rounded-full",backgroundColor:"bg-gray-300",color:"text-gray-900",fontWeight:"font-bold",transition:"transition-all duration-300"},active:{backgroundColor:"bg-gray-900",color:"text-white"},completed:{backgroundColor:"bg-gray-900",color:"text-white"}}}},a=r})(jk);var Dk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{stepper:function(){return r},default:function(){return a}});var r={styles:{base:{stepper:{width:"w-full",position:"relative",display:"flex",alignItems:"items-center",justifyContent:"justify-between"},line:{initial:{position:"absolute",left:"left-0",top:"top-2/4",height:"h-0.5",width:"w-full",transform:"-translate-y-2/4",backgroundColor:"bg-gray-300"},active:{backgroundColor:"bg-gray-900",transition:"transition-all",duration:"duration-500"}}}}},a=r})(Dk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(jk,e),t(Dk,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(Lk);var zk={},Fk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDial:function(){return r},default:function(){return a}});var r={defaultProps:{offset:5,placement:"top",dismiss:void 0,animate:{unmount:{},mount:{}}}},a=r})(Fk);var Vk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDialContent:function(){return r},default:function(){return a}});var r={styles:{padding:"p-0.5",width:"w-max",display:"flex",flexDirection:"flex-col",alignItems:"items-center",gap:"gap-1"}},a=r})(Vk);var Wk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDialAction:function(){return r},default:function(){return a}});var r={styles:{display:"flex",flexDirection:"flex-col",alignItems:"items-center",justifyContent:"justify-center",gap:"gap-1",padding:"p-1",margin:"m-0.5",borderWidth:"border",minWidth:"min-w-[48px]",fontFamily:"font-normal",minHeight:"min-h-[48px]",backgroundColor:"bg-white",borderRadius:"rounded-full",borderColor:"border-blue-gray-50",scale:"hover:scale-110 focus:scale-110 active:scale-100",transition:"transition-transform duration-300 ease-in-out"}},a=r})(Wk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(Fk,e),t(Vk,e),t(Wk,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(zk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return Ke}});var t=He(Re(NC,e)),r=He(Re(IC,e)),a=He(Re(FC,e)),s=He(Re(WC,e)),l=He(Re(BC,e)),f=He(Re(HC,e)),b=He(Re(XC,e)),S=He(Re(YC,e)),T=He(Re(GC,e)),O=He(Re(UC,e)),j=He(Re(qC,e)),F=He(Re(eS,e)),z=He(Re(tS,e)),D=He(Re(rS,e)),R=He(Re(nS,e)),P=He(Re(oS,e)),y=He(Re(aS,e)),p=He(Re(mS,e)),v=He(Re(yS,e)),g=He(Re(CS,e)),m=He(Re(SS,e)),_=He(Re(PS,e)),M=He(Re(OS,e)),X=He(Re(WS,e)),H=He(Re(HS,e)),B=He(Re(XS,e)),U=He(Re(YS,e)),K=He(Re(GS,e)),oe=He(Re(US,e)),ne=He(Re($S,e)),fe=He(Re(sk,e)),me=He(Re(lk,e)),Se=He(Re(ck,e)),be=He(Re(dk,e)),ue=He(Re(fk,e)),ge=He(Re(hk,e)),ye=He(Re(gk,e)),_e=He(Re(bk,e)),Ee=He(Re(mk,e)),Ne=He(Re(xk,e)),Le=He(Re(Ck,e)),Pe=Re(kk,e),Xe=Re(Lk,e),Ve=Re(zk,e);function Re(ot,Qe){return Object.keys(ot).forEach(function(qe){qe!=="default"&&!Object.prototype.hasOwnProperty.call(Qe,qe)&&Object.defineProperty(Qe,qe,{enumerable:!0,get:function(){return ot[qe]}})}),ot}function He(ot){return ot&&ot.__esModule?ot:{default:ot}}var We={accordion:t.default,alert:r.default,avatar:a.default,breadcrumbs:s.default,button:l.default,card:f.default,cardBody:b.default,cardFooter:S.default,cardHeader:T.default,checkbox:O.default,chip:j.default,dialog:F.default,dialogBody:z.default,dialogFooter:D.default,dialogHeader:R.default,iconButton:P.default,input:y.default,menu:p.default,navbar:v.default,popover:g.default,progress:m.default,radio:_.default,select:M.default,switch:X.default,tab:H.default,tabs:B.default,tabsBody:U.default,tabsHeader:K.default,tabPanel:oe.default,textarea:ne.default,tooltip:fe.default,typography:me.default,collapse:Se.default,list:be.default,buttonGroup:ue.default,carousel:ge.default,drawer:ye.default,badge:_e.default,rating:Ee.default,slider:Ne.default,spinner:Le.default,timeline:Pe.timeline,timelineItem:Pe.timelineItem,timelineIcon:Pe.timelineIcon,timelineHeader:Pe.timelineHeader,timelineBody:Pe.timelineBody,timelineConnector:Pe.timelineConnector,step:Xe.step,stepper:Xe.stepper,speedDial:Ve.speedDial,speedDialContent:Ve.speedDialContent,speedDialAction:Ve.speedDialAction},Ke=We})(c0);var Bk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});var t=r(Cr);function r(s){return s&&s.__esModule?s:{default:s}}function a(s,l,f){var b=s.slice();return l.forEach(function(S,T){typeof b[T]>"u"?b[T]=f.cloneUnlessOtherwiseSpecified(S,f):f.isMergeableObject(S)?b[T]=(0,t.default)(s[T],S,f):s.indexOf(S)===-1&&b.push(S)}),b}})(Bk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{MaterialTailwindTheme:function(){return O},ThemeProvider:function(){return j},useTheme:function(){return F}});var r=T(ee),a=b(it),s=b(Cr),l=b(c0),f=b(Bk);function b(z){return z&&z.__esModule?z:{default:z}}function S(z){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(S=function(P){return P?R:D})(z)}function T(z,D){if(!D&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var R=S(D);if(R&&R.has(z))return R.get(z);var P={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in z)if(p!=="default"&&Object.prototype.hasOwnProperty.call(z,p)){var v=y?Object.getOwnPropertyDescriptor(z,p):null;v&&(v.get||v.set)?Object.defineProperty(P,p,v):P[p]=z[p]}return P.default=z,R&&R.set(z,P),P}var O=(0,r.createContext)(l.default);O.displayName="MaterialTailwindThemeProvider";function j(z){var D=z.value,R=D===void 0?l.default:D,P=z.children,y=(0,s.default)(l.default,R,{arrayMerge:f.default});return r.default.createElement(O.Provider,{value:y},P)}var F=function(){return(0,r.useContext)(O)};j.propTypes={value:a.default.instanceOf(Object),children:a.default.node.isRequired}})(nt);var Ad={},Hl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesOpen:function(){return l},propTypesIcon:function(){return f},propTypesAnimate:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return T},propTypesValue:function(){return O},propTypesChildren:function(){return j}});var r=s(it),a=Yt;function s(F){return F&&F.__esModule?F:{default:F}}var l=r.default.bool.isRequired,f=r.default.node,b=a.propTypesAnimation,S=r.default.bool,T=r.default.string,O=r.default.instanceOf(Object).isRequired,j=r.default.node.isRequired})(Hl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{AccordionContext:function(){return l},useAccordion:function(){return f},AccordionContextProvider:function(){return b}});var r=s(ee),a=Hl;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.AccordionContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.propTypes={value:a.propTypesValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.AccordionContextProvider"})(Ad);var Hk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{AccordionHeader:function(){return D},default:function(){return R}});var r=j(ee),a=j(ht),s=ut,l=j(at),f=Ad,b=nt,S=Hl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.className,v=P.children,g=F(P,["className","children"]),m=(0,f.useAccordion)(),_=m.open,M=m.icon,X=m.disabled,H=(0,b.useTheme)().accordion,B=H.styles.base;p=p??"";var U=(0,s.twMerge)((0,a.default)((0,l.default)(B.header.initial),T({},(0,l.default)(B.header.active),_)),p),K=(0,a.default)((0,l.default)(B.header.icon));return r.default.createElement("button",O({},g,{ref:y,type:"button",disabled:X,className:U}),v,r.default.createElement("span",{className:K},M??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});D.propTypes={className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.AccordionHeader";var R=D})(Hk);var Xk={},vr={},Lh=function(e,t){return Lh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])},Lh(e,t)};function Yk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Bc=function(){return Bc=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Bc.apply(this,arguments)};function is(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function Gk(e,t,r,a){var s=arguments.length,l=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,r):a,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,r,a);else for(var b=e.length-1;b>=0;b--)(f=e[b])&&(l=(s<3?f(l):s>3?f(t,r,l):f(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l}function Uk(e,t){return function(r,a){t(r,a,e)}}function $k(e,t,r,a,s,l){function f(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var b=a.kind,S=b==="getter"?"get":b==="setter"?"set":"value",T=!t&&e?a.static?e:e.prototype:null,O=t||(T?Object.getOwnPropertyDescriptor(T,a.name):{}),j,F=!1,z=r.length-1;z>=0;z--){var D={};for(var R in a)D[R]=R==="access"?{}:a[R];for(var R in a.access)D.access[R]=a.access[R];D.addInitializer=function(y){if(F)throw new TypeError("Cannot add initializers after decoration has completed");l.push(f(y||null))};var P=(0,r[z])(b==="accessor"?{get:O.get,set:O.set}:O[S],D);if(b==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(j=f(P.get))&&(O.get=j),(j=f(P.set))&&(O.set=j),(j=f(P.init))&&s.unshift(j)}else(j=f(P))&&(b==="field"?s.unshift(j):O[S]=j)}T&&Object.defineProperty(T,a.name,O),F=!0}function qk(e,t,r){for(var a=arguments.length>2,s=0;s<t.length;s++)r=a?t[s].call(e,r):t[s].call(e);return a?r:void 0}function Kk(e){return typeof e=="symbol"?e:"".concat(e)}function Zk(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Qk(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Jk(e,t,r,a){function s(l){return l instanceof r?l:new r(function(f){f(l)})}return new(r||(r=Promise))(function(l,f){function b(O){try{T(a.next(O))}catch(j){f(j)}}function S(O){try{T(a.throw(O))}catch(j){f(j)}}function T(O){O.done?l(O.value):s(O.value).then(b,S)}T((a=a.apply(e,t||[])).next())})}function e5(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=b(0),f.throw=b(1),f.return=b(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function b(T){return function(O){return S([T,O])}}function S(T){if(a)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(r=0)),r;)try{if(a=1,s&&(l=T[0]&2?s.return:T[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,T[1])).done)return l;switch(s=0,l&&(T=[T[0]&2,l.value]),T[0]){case 0:case 1:l=T;break;case 4:return r.label++,{value:T[1],done:!1};case 5:r.label++,s=T[1],T=[0];continue;case 7:T=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(T[0]===6||T[0]===2)){r=0;continue}if(T[0]===3&&(!l||T[1]>l[0]&&T[1]<l[3])){r.label=T[1];break}if(T[0]===6&&r.label<l[1]){r.label=l[1],l=T;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(T);break}l[2]&&r.ops.pop(),r.trys.pop();continue}T=t.call(e,r)}catch(O){T=[6,O],s=0}finally{a=l=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}}var Ed=Object.create?function(e,t,r,a){a===void 0&&(a=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,s)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]};function t5(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ed(t,e,r)}function Hc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function P0(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),s,l=[],f;try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(b){f={error:b}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(f)throw f.error}}return l}function r5(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(P0(arguments[t]));return e}function n5(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var a=Array(e),s=0,t=0;t<r;t++)for(var l=arguments[t],f=0,b=l.length;f<b;f++,s++)a[s]=l[f];return a}function o5(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,l;a<s;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}function Gi(e){return this instanceof Gi?(this.v=e,this):new Gi(e)}function a5(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=r.apply(e,t||[]),s,l=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),b("next"),b("throw"),b("return",f),s[Symbol.asyncIterator]=function(){return this},s;function f(z){return function(D){return Promise.resolve(D).then(z,j)}}function b(z,D){a[z]&&(s[z]=function(R){return new Promise(function(P,y){l.push([z,R,P,y])>1||S(z,R)})},D&&(s[z]=D(s[z])))}function S(z,D){try{T(a[z](D))}catch(R){F(l[0][3],R)}}function T(z){z.value instanceof Gi?Promise.resolve(z.value.v).then(O,j):F(l[0][2],z)}function O(z){S("next",z)}function j(z){S("throw",z)}function F(z,D){z(D),l.shift(),l.length&&S(l[0][0],l[0][1])}}function i5(e){var t,r;return t={},a("next"),a("throw",function(s){throw s}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(s,l){t[s]=e[s]?function(f){return(r=!r)?{value:Gi(e[s](f)),done:!1}:l?l(f):f}:l}}function s5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Hc=="function"?Hc(e):e[Symbol.iterator](),r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r);function a(l){r[l]=e[l]&&function(f){return new Promise(function(b,S){f=e[l](f),s(b,S,f.done,f.value)})}}function s(l,f,b,S){Promise.resolve(S).then(function(T){l({value:T,done:b})},f)}}function l5(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var EI=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},jh=function(e){return jh=Object.getOwnPropertyNames||function(t){var r=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[r.length]=a);return r},jh(e)};function u5(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=jh(e),a=0;a<r.length;a++)r[a]!=="default"&&Ed(t,e,r[a]);return EI(t,e),t}function c5(e){return e&&e.__esModule?e:{default:e}}function d5(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)}function f5(e,t,r,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r}function p5(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function h5(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var a,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose],r&&(s=a)}if(typeof a!="function")throw new TypeError("Object not disposable.");s&&(a=function(){try{s.call(this)}catch(l){return Promise.reject(l)}}),e.stack.push({value:t,dispose:a,async:r})}else r&&e.stack.push({async:!0});return t}var MI=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var a=new Error(r);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};function g5(e){function t(l){e.error=e.hasError?new MI(l,e.error,"An error was suppressed during disposal."):l,e.hasError=!0}var r,a=0;function s(){for(;r=e.stack.pop();)try{if(!r.async&&a===1)return a=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var l=r.dispose.call(r.value);if(r.async)return a|=2,Promise.resolve(l).then(s,function(f){return t(f),s()})}else a|=1}catch(f){t(f)}if(a===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s()}function b5(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,a,s,l,f){return a?t?".jsx":".js":s&&(!l||!f)?r:s+l+"."+f.toLowerCase()+"js"}):e}const RI={__extends:Yk,__assign:Bc,__rest:is,__decorate:Gk,__param:Uk,__esDecorate:$k,__runInitializers:qk,__propKey:Kk,__setFunctionName:Zk,__metadata:Qk,__awaiter:Jk,__generator:e5,__createBinding:Ed,__exportStar:t5,__values:Hc,__read:P0,__spread:r5,__spreadArrays:n5,__spreadArray:o5,__await:Gi,__asyncGenerator:a5,__asyncDelegator:i5,__asyncValues:s5,__makeTemplateObject:l5,__importStar:u5,__importDefault:c5,__classPrivateFieldGet:d5,__classPrivateFieldSet:f5,__classPrivateFieldIn:p5,__addDisposableResource:h5,__disposeResources:g5,__rewriteRelativeImportExtension:b5},NI=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:h5,get __assign(){return Bc},__asyncDelegator:i5,__asyncGenerator:a5,__asyncValues:s5,__await:Gi,__awaiter:Jk,__classPrivateFieldGet:d5,__classPrivateFieldIn:p5,__classPrivateFieldSet:f5,__createBinding:Ed,__decorate:Gk,__disposeResources:g5,__esDecorate:$k,__exportStar:t5,__extends:Yk,__generator:e5,__importDefault:c5,__importStar:u5,__makeTemplateObject:l5,__metadata:Qk,__param:Uk,__propKey:Kk,__read:P0,__rest:is,__rewriteRelativeImportExtension:b5,__runInitializers:qk,__setFunctionName:Zk,__spread:r5,__spreadArray:o5,__spreadArrays:n5,__values:Hc,default:RI},Symbol.toStringTag,{value:"Module"})),v5=Ll(NI);var II=function(){},m5=function(){};const LI=Object.freeze(Object.defineProperty({__proto__:null,invariant:m5,warning:II},Symbol.toStringTag,{value:"Module"})),y5=Ll(LI);var cr={};Object.defineProperty(cr,"__esModule",{value:!0});const x5=(e,t)=>r=>Math.max(Math.min(r,t),e),rl=e=>e%1?Number(e.toFixed(5)):e,_l=/(-)?([\d]*\.?[\d])+/g,Dh=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,jI=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Xl(e){return typeof e=="string"}const Yl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_0=Object.assign(Object.assign({},Yl),{transform:x5(0,1)}),DI=Object.assign(Object.assign({},Yl),{default:1}),Gl=e=>({test:t=>Xl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zI=Gl("deg"),Ii=Gl("%"),FI=Gl("px"),VI=Gl("vh"),WI=Gl("vw"),BI=Object.assign(Object.assign({},Ii),{parse:e=>Ii.parse(e)/100,transform:e=>Ii.transform(e*100)}),O0=(e,t)=>r=>!!(Xl(r)&&jI.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),w5=(e,t,r)=>a=>{if(!Xl(a))return a;const[s,l,f,b]=a.match(_l);return{[e]:parseFloat(s),[t]:parseFloat(l),[r]:parseFloat(f),alpha:b!==void 0?parseFloat(b):1}},Ys={test:O0("hsl","hue"),parse:w5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Ii.transform(rl(t))+", "+Ii.transform(rl(r))+", "+rl(_0.transform(a))+")"},HI=x5(0,255),Ju=Object.assign(Object.assign({},Yl),{transform:e=>Math.round(HI(e))}),Ti={test:O0("rgb","red"),parse:w5("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+Ju.transform(e)+", "+Ju.transform(t)+", "+Ju.transform(r)+", "+rl(_0.transform(a))+")"};function XI(e){let t="",r="",a="",s="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),a=e.substr(5,2),s=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),a=e.substr(3,1),s=e.substr(4,1),t+=t,r+=r,a+=a,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:s?parseInt(s,16)/255:1}}const zh={test:O0("#"),parse:XI,transform:Ti.transform},A0={test:e=>Ti.test(e)||zh.test(e)||Ys.test(e),parse:e=>Ti.test(e)?Ti.parse(e):Ys.test(e)?Ys.parse(e):zh.parse(e),transform:e=>Xl(e)?e:e.hasOwnProperty("red")?Ti.transform(e):Ys.transform(e)},C5="${c}",S5="${n}";function YI(e){var t,r,a,s;return isNaN(e)&&Xl(e)&&((r=(t=e.match(_l))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((s=(a=e.match(Dh))===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0)>0}function k5(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const a=e.match(Dh);a&&(r=a.length,e=e.replace(Dh,C5),t.push(...a.map(A0.parse)));const s=e.match(_l);return s&&(e=e.replace(_l,S5),t.push(...s.map(Yl.parse))),{values:t,numColors:r,tokenised:e}}function T5(e){return k5(e).values}function P5(e){const{values:t,numColors:r,tokenised:a}=k5(e),s=t.length;return l=>{let f=a;for(let b=0;b<s;b++)f=f.replace(b<r?C5:S5,b<r?A0.transform(l[b]):rl(l[b]));return f}}const GI=e=>typeof e=="number"?0:e;function UI(e){const t=T5(e);return P5(e)(t.map(GI))}const _5={test:YI,parse:T5,createTransformer:P5,getAnimatableNone:UI},$I=new Set(["brightness","contrast","saturate","opacity"]);function qI(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=r.match(_l)||[];if(!a)return e;const s=r.replace(a,"");let l=$I.has(t)?1:0;return a!==r&&(l*=100),t+"("+l+s+")"}const KI=/([a-z-]*)\(.*?\)/g,ZI=Object.assign(Object.assign({},_5),{getAnimatableNone:e=>{const t=e.match(KI);return t?t.map(qI).join(" "):e}});cr.alpha=_0;cr.color=A0;cr.complex=_5;cr.degrees=zI;cr.filter=ZI;cr.hex=zh;cr.hsla=Ys;cr.number=Yl;cr.percent=Ii;cr.progressPercentage=BI;cr.px=FI;cr.rgbUnit=Ju;cr.rgba=Ti;cr.scale=DI;cr.vh=VI;cr.vw=WI;var ft={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});const O5=1/60*1e3,QI=typeof performance<"u"?()=>performance.now():()=>Date.now(),A5=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(QI()),O5);function JI(e){let t=[],r=[],a=0,s=!1,l=!1;const f=new WeakSet,b={schedule:(S,T=!1,O=!1)=>{const j=O&&s,F=j?t:r;return T&&f.add(S),F.indexOf(S)===-1&&(F.push(S),j&&s&&(a=t.length)),S},cancel:S=>{const T=r.indexOf(S);T!==-1&&r.splice(T,1),f.delete(S)},process:S=>{if(s){l=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,a=t.length,a)for(let T=0;T<a;T++){const O=t[T];O(S),f.has(O)&&(b.schedule(O),e())}s=!1,l&&(l=!1,b.process(S))}};return b}const eL=40;let Fh=!0,Ol=!1,Vh=!1;const Li={delta:0,timestamp:0},Ul=["read","update","preRender","render","postRender"],Md=Ul.reduce((e,t)=>(e[t]=JI(()=>Ol=!0),e),{}),tL=Ul.reduce((e,t)=>{const r=Md[t];return e[t]=(a,s=!1,l=!1)=>(Ol||aL(),r.schedule(a,s,l)),e},{}),rL=Ul.reduce((e,t)=>(e[t]=Md[t].cancel,e),{}),nL=Ul.reduce((e,t)=>(e[t]=()=>Md[t].process(Li),e),{}),oL=e=>Md[e].process(Li),E5=e=>{Ol=!1,Li.delta=Fh?O5:Math.max(Math.min(e-Li.timestamp,eL),1),Li.timestamp=e,Vh=!0,Ul.forEach(oL),Vh=!1,Ol&&(Fh=!1,A5(E5))},aL=()=>{Ol=!0,Fh=!0,Vh||A5(E5)},iL=()=>Li;Ja.cancelSync=rL;Ja.default=tL;Ja.flushSync=nL;Ja.getFrameData=iL;Object.defineProperty(ft,"__esModule",{value:!0});var M5=v5,Ui=y5,Ln=cr,Rd=Ja;function sL(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var lL=sL(Rd);const Al=(e,t,r)=>Math.min(Math.max(r,e),t),pp=.001,uL=.01,Sy=10,cL=.05,dL=1;function fL({duration:e=800,bounce:t=.25,velocity:r=0,mass:a=1}){let s,l;Ui.warning(e<=Sy*1e3,"Spring duration must be 10 seconds or less");let f=1-t;f=Al(cL,dL,f),e=Al(uL,Sy,e/1e3),f<1?(s=T=>{const O=T*f,j=O*e,F=O-r,z=Wh(T,f),D=Math.exp(-j);return pp-F/z*D},l=T=>{const j=T*f*e,F=j*r+r,z=Math.pow(f,2)*Math.pow(T,2)*e,D=Math.exp(-j),R=Wh(Math.pow(T,2),f);return(-s(T)+pp>0?-1:1)*((F-z)*D)/R}):(s=T=>{const O=Math.exp(-T*e),j=(T-r)*e+1;return-pp+O*j},l=T=>{const O=Math.exp(-T*e),j=(r-T)*(e*e);return O*j});const b=5/e,S=hL(s,l,b);if(e=e*1e3,isNaN(S))return{stiffness:100,damping:10,duration:e};{const T=Math.pow(S,2)*a;return{stiffness:T,damping:f*2*Math.sqrt(a*T),duration:e}}}const pL=12;function hL(e,t,r){let a=r;for(let s=1;s<pL;s++)a=a-e(a)/t(a);return a}function Wh(e,t){return e*Math.sqrt(1-t*t)}const gL=["duration","bounce"],bL=["stiffness","damping","mass"];function ky(e,t){return t.some(r=>e[r]!==void 0)}function vL(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ky(e,bL)&&ky(e,gL)){const r=fL(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Nd(e){var{from:t=0,to:r=1,restSpeed:a=2,restDelta:s}=e,l=M5.__rest(e,["from","to","restSpeed","restDelta"]);const f={done:!1,value:t};let{stiffness:b,damping:S,mass:T,velocity:O,duration:j,isResolvedFromDuration:F}=vL(l),z=Ty,D=Ty;function R(){const P=O?-(O/1e3):0,y=r-t,p=S/(2*Math.sqrt(b*T)),v=Math.sqrt(b/T)/1e3;if(s===void 0&&(s=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=Wh(v,p);z=m=>{const _=Math.exp(-p*v*m);return r-_*((P+p*v*y)/g*Math.sin(g*m)+y*Math.cos(g*m))},D=m=>{const _=Math.exp(-p*v*m);return p*v*_*(Math.sin(g*m)*(P+p*v*y)/g+y*Math.cos(g*m))-_*(Math.cos(g*m)*(P+p*v*y)-g*y*Math.sin(g*m))}}else if(p===1)z=g=>r-Math.exp(-v*g)*(y+(P+v*y)*g);else{const g=v*Math.sqrt(p*p-1);z=m=>{const _=Math.exp(-p*v*m),M=Math.min(g*m,300);return r-_*((P+p*v*y)*Math.sinh(M)+g*y*Math.cosh(M))/g}}}return R(),{next:P=>{const y=z(P);if(F)f.done=P>=j;else{const p=D(P)*1e3,v=Math.abs(p)<=a,g=Math.abs(r-y)<=s;f.done=v&&g}return f.value=f.done?r:y,f},flipTarget:()=>{O=-O,[t,r]=[r,t],R()}}}Nd.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Ty=e=>0,E0=(e,t,r)=>{const a=t-e;return a===0?1:(r-e)/a},Id=(e,t,r)=>-r*e+r*t+e;function hp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Py({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let s=0,l=0,f=0;if(!t)s=l=f=r;else{const b=r<.5?r*(1+t):r+t-r*t,S=2*r-b;s=hp(S,b,e+1/3),l=hp(S,b,e),f=hp(S,b,e-1/3)}return{red:Math.round(s*255),green:Math.round(l*255),blue:Math.round(f*255),alpha:a}}const mL=(e,t,r)=>{const a=e*e,s=t*t;return Math.sqrt(Math.max(0,r*(s-a)+a))},yL=[Ln.hex,Ln.rgba,Ln.hsla],_y=e=>yL.find(t=>t.test(e)),Oy=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,M0=(e,t)=>{let r=_y(e),a=_y(t);Ui.invariant(!!r,Oy(e)),Ui.invariant(!!a,Oy(t));let s=r.parse(e),l=a.parse(t);r===Ln.hsla&&(s=Py(s),r=Ln.rgba),a===Ln.hsla&&(l=Py(l),a=Ln.rgba);const f=Object.assign({},s);return b=>{for(const S in f)S!=="alpha"&&(f[S]=mL(s[S],l[S],b));return f.alpha=Id(s.alpha,l.alpha,b),r.transform(f)}},xL={x:0,y:0,z:0},Bh=e=>typeof e=="number",wL=(e,t)=>r=>t(e(r)),R0=(...e)=>e.reduce(wL);function R5(e,t){return Bh(e)?r=>Id(e,t,r):Ln.color.test(e)?M0(e,t):N0(e,t)}const N5=(e,t)=>{const r=[...e],a=r.length,s=e.map((l,f)=>R5(l,t[f]));return l=>{for(let f=0;f<a;f++)r[f]=s[f](l);return r}},CL=(e,t)=>{const r=Object.assign(Object.assign({},e),t),a={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(a[s]=R5(e[s],t[s]));return s=>{for(const l in a)r[l]=a[l](s);return r}};function Ay(e){const t=Ln.complex.parse(e),r=t.length;let a=0,s=0,l=0;for(let f=0;f<r;f++)a||typeof t[f]=="number"?a++:t[f].hue!==void 0?l++:s++;return{parsed:t,numNumbers:a,numRGB:s,numHSL:l}}const N0=(e,t)=>{const r=Ln.complex.createTransformer(t),a=Ay(e),s=Ay(t);return a.numHSL===s.numHSL&&a.numRGB===s.numRGB&&a.numNumbers>=s.numNumbers?R0(N5(a.parsed,s.parsed),r):(Ui.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),f=>`${f>0?t:e}`)},SL=(e,t)=>r=>Id(e,t,r);function kL(e){if(typeof e=="number")return SL;if(typeof e=="string")return Ln.color.test(e)?M0:N0;if(Array.isArray(e))return N5;if(typeof e=="object")return CL}function TL(e,t,r){const a=[],s=r||kL(e[0]),l=e.length-1;for(let f=0;f<l;f++){let b=s(e[f],e[f+1]);if(t){const S=Array.isArray(t)?t[f]:t;b=R0(S,b)}a.push(b)}return a}function PL([e,t],[r]){return a=>r(E0(e,t,a))}function _L(e,t){const r=e.length,a=r-1;return s=>{let l=0,f=!1;if(s<=e[0]?f=!0:s>=e[a]&&(l=a-1,f=!0),!f){let S=1;for(;S<r&&!(e[S]>s||S===a);S++);l=S-1}const b=E0(e[l],e[l+1],s);return t[l](b)}}function I0(e,t,{clamp:r=!0,ease:a,mixer:s}={}){const l=e.length;Ui.invariant(l===t.length,"Both input and output ranges must be the same length"),Ui.invariant(!a||!Array.isArray(a)||a.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const f=TL(t,a,s),b=l===2?PL(e,f):_L(e,f);return r?S=>b(Al(e[0],e[l-1],S)):b}const $l=e=>t=>1-e(1-t),Ld=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,I5=e=>t=>Math.pow(t,e),L0=e=>t=>t*t*((e+1)*t-e),L5=e=>{const t=L0(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},j5=1.525,OL=4/11,AL=8/11,EL=9/10,D5=e=>e,j0=I5(2),ML=$l(j0),z5=Ld(j0),F5=e=>1-Math.sin(Math.acos(e)),V5=$l(F5),RL=Ld(V5),D0=L0(j5),NL=$l(D0),IL=Ld(D0),LL=L5(j5),jL=4356/361,DL=35442/1805,zL=16061/1805,Xc=e=>{if(e===1||e===0)return e;const t=e*e;return e<OL?7.5625*t:e<AL?9.075*t-9.9*e+3.4:e<EL?jL*t-DL*e+zL:10.8*e*e-20.52*e+10.72},FL=$l(Xc),VL=e=>e<.5?.5*(1-Xc(1-e*2)):.5*Xc(e*2-1)+.5;function WL(e,t){return e.map(()=>t||z5).splice(0,e.length-1)}function BL(e){const t=e.length;return e.map((r,a)=>a!==0?a/(t-1):0)}function HL(e,t){return e.map(r=>r*t)}function nl({from:e=0,to:t=1,ease:r,offset:a,duration:s=300}){const l={done:!1,value:e},f=Array.isArray(t)?t:[e,t],b=HL(a&&a.length===f.length?a:BL(f),s);function S(){return I0(b,f,{ease:Array.isArray(r)?r:WL(f,r)})}let T=S();return{next:O=>(l.value=T(O),l.done=O>=s,l),flipTarget:()=>{f.reverse(),T=S()}}}function W5({velocity:e=0,from:t=0,power:r=.8,timeConstant:a=350,restDelta:s=.5,modifyTarget:l}){const f={done:!1,value:t};let b=r*e;const S=t+b,T=l===void 0?S:l(S);return T!==S&&(b=T-t),{next:O=>{const j=-b*Math.exp(-O/a);return f.done=!(j>s||j<-s),f.value=f.done?T:T+j,f},flipTarget:()=>{}}}const Ey={keyframes:nl,spring:Nd,decay:W5};function XL(e){if(Array.isArray(e.to))return nl;if(Ey[e.type])return Ey[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?nl:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Nd:nl}function B5(e,t,r=0){return e-t-r}function YL(e,t,r=0,a=!0){return a?B5(t+-e,t,r):t-(e-t)+r}function GL(e,t,r,a){return a?e>=t+r:e<=-r}const UL=e=>{const t=({delta:r})=>e(r);return{start:()=>lL.default.update(t,!0),stop:()=>Rd.cancelSync.update(t)}};function H5(e){var t,r,{from:a,autoplay:s=!0,driver:l=UL,elapsed:f=0,repeat:b=0,repeatType:S="loop",repeatDelay:T=0,onPlay:O,onStop:j,onComplete:F,onRepeat:z,onUpdate:D}=e,R=M5.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:P}=R,y,p=0,v=R.duration,g,m=!1,_=!0,M;const X=XL(R);!((r=(t=X).needsInterpolation)===null||r===void 0)&&r.call(t,a,P)&&(M=I0([0,100],[a,P],{clamp:!1}),a=0,P=100);const H=X(Object.assign(Object.assign({},R),{from:a,to:P}));function B(){p++,S==="reverse"?(_=p%2===0,f=YL(f,v,T,_)):(f=B5(f,v,T),S==="mirror"&&H.flipTarget()),m=!1,z&&z()}function U(){y.stop(),F&&F()}function K(ne){if(_||(ne=-ne),f+=ne,!m){const fe=H.next(Math.max(0,f));g=fe.value,M&&(g=M(g)),m=_?fe.done:f<=0}D==null||D(g),m&&(p===0&&(v??(v=f)),p<b?GL(f,v,T,_)&&B():U())}function oe(){O==null||O(),y=l(K),y.start()}return s&&oe(),{stop:()=>{j==null||j(),y.stop()}}}function X5(e,t){return t?e*(1e3/t):0}function $L({from:e=0,velocity:t=0,min:r,max:a,power:s=.8,timeConstant:l=750,bounceStiffness:f=500,bounceDamping:b=10,restDelta:S=1,modifyTarget:T,driver:O,onUpdate:j,onComplete:F,onStop:z}){let D;function R(v){return r!==void 0&&v<r||a!==void 0&&v>a}function P(v){return r===void 0?a:a===void 0||Math.abs(r-v)<Math.abs(a-v)?r:a}function y(v){D==null||D.stop(),D=H5(Object.assign(Object.assign({},v),{driver:O,onUpdate:g=>{var m;j==null||j(g),(m=v.onUpdate)===null||m===void 0||m.call(v,g)},onComplete:F,onStop:z}))}function p(v){y(Object.assign({type:"spring",stiffness:f,damping:b,restDelta:S},v))}if(R(e))p({from:e,velocity:t,to:P(e)});else{let v=s*t+e;typeof T<"u"&&(v=T(v));const g=P(v),m=g===r?-1:1;let _,M;const X=H=>{_=M,M=H,t=X5(H-_,Rd.getFrameData().delta),(m===1&&H>g||m===-1&&H<g)&&p({from:H,to:g,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:l,power:s,restDelta:S,modifyTarget:T,onUpdate:R(v)?X:void 0})}return{stop:()=>D==null?void 0:D.stop()}}const Y5=e=>e*180/Math.PI,qL=(e,t=xL)=>Y5(Math.atan2(t.y-e.y,t.x-e.x)),KL=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),a=>r?a-e+t:(e=a,r=!0,t)},ZL=e=>e,z0=(e=ZL)=>(t,r,a)=>{const s=r-a,l=-(0-t+1)*(0-e(Math.abs(s)));return s<=0?r+l:r-l},QL=z0(),JL=z0(Math.sqrt),G5=e=>e*Math.PI/180,Yc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Hh=e=>Yc(e)&&e.hasOwnProperty("z"),Mu=(e,t)=>Math.abs(e-t);function ej(e,t){if(Bh(e)&&Bh(t))return Mu(e,t);if(Yc(e)&&Yc(t)){const r=Mu(e.x,t.x),a=Mu(e.y,t.y),s=Hh(e)&&Hh(t)?Mu(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2)+Math.pow(s,2))}}const tj=(e,t,r)=>(t=G5(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),U5=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),$5=(e,t,r,a=0)=>U5(e+r*(t-e)/Math.max(a,r)),rj=(e=50)=>{let t=0,r=0;return a=>{const s=Rd.getFrameData().timestamp,l=s!==r?s-r:0,f=l?$5(t,a,l,e):t;return r=s,t=f,f}},nj=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return a=>{let s=Math.abs(e[0]-a);for(t=1;t<r;t++){const l=e[t],f=Math.abs(l-a);if(f===0)return l;if(f>s)return e[t-1];if(t===r-1)return l;s=f}}}};function oj(e,t){return e/(1e3/t)}const aj=(e,t,r)=>{const a=t-e;return((r-e)%a+a)%a+e},q5=(e,t)=>1-3*t+3*e,K5=(e,t)=>3*t-6*e,Z5=e=>3*e,Gc=(e,t,r)=>((q5(t,r)*e+K5(t,r))*e+Z5(t))*e,Q5=(e,t,r)=>3*q5(t,r)*e*e+2*K5(t,r)*e+Z5(t),ij=1e-7,sj=10;function lj(e,t,r,a,s){let l,f,b=0;do f=t+(r-t)/2,l=Gc(f,a,s)-e,l>0?r=f:t=f;while(Math.abs(l)>ij&&++b<sj);return f}const uj=8,cj=.001;function dj(e,t,r,a){for(let s=0;s<uj;++s){const l=Q5(t,r,a);if(l===0)return t;const f=Gc(t,r,a)-e;t-=f/l}return t}const ec=11,Ru=1/(ec-1);function fj(e,t,r,a){if(e===t&&r===a)return D5;const s=new Float32Array(ec);for(let f=0;f<ec;++f)s[f]=Gc(f*Ru,e,r);function l(f){let b=0,S=1;const T=ec-1;for(;S!==T&&s[S]<=f;++S)b+=Ru;--S;const O=(f-s[S])/(s[S+1]-s[S]),j=b+O*Ru,F=Q5(j,e,r);return F>=cj?dj(f,j,e,r):F===0?j:lj(f,b,b+Ru,e,r)}return f=>f===0||f===1?f:Gc(l(f),t,a)}const pj=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const a=r*e,s=t==="end"?Math.floor(a):Math.ceil(a);return Al(0,1,s/e)};ft.angle=qL;ft.animate=H5;ft.anticipate=LL;ft.applyOffset=KL;ft.attract=QL;ft.attractExpo=JL;ft.backIn=D0;ft.backInOut=IL;ft.backOut=NL;ft.bounceIn=FL;ft.bounceInOut=VL;ft.bounceOut=Xc;ft.circIn=F5;ft.circInOut=RL;ft.circOut=V5;ft.clamp=Al;ft.createAnticipate=L5;ft.createAttractor=z0;ft.createBackIn=L0;ft.createExpoIn=I5;ft.cubicBezier=fj;ft.decay=W5;ft.degreesToRadians=G5;ft.distance=ej;ft.easeIn=j0;ft.easeInOut=z5;ft.easeOut=ML;ft.inertia=$L;ft.interpolate=I0;ft.isPoint=Yc;ft.isPoint3D=Hh;ft.keyframes=nl;ft.linear=D5;ft.mirrorEasing=Ld;ft.mix=Id;ft.mixColor=M0;ft.mixComplex=N0;ft.pipe=R0;ft.pointFromVector=tj;ft.progress=E0;ft.radiansToDegrees=Y5;ft.reverseEasing=$l;ft.smooth=rj;ft.smoothFrame=$5;ft.snap=nj;ft.spring=Nd;ft.steps=pj;ft.toDecimal=U5;ft.velocityPerFrame=oj;ft.velocityPerSecond=X5;ft.wrap=aj;class hj{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const gp=new WeakMap;function F0(e){return gp.has(e)||gp.set(e,{transforms:[],values:new Map}),gp.get(e)}function gj(e,t){return e.has(t)||e.set(t,new hj),e.get(t)}function J5(e,t){e.indexOf(t)===-1&&e.push(t)}function eT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const tT=(e,t,r)=>Math.min(Math.max(r,e),t),Ur={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Oo=e=>typeof e=="number",El=e=>Array.isArray(e)&&!Oo(e[0]),bj=(e,t,r)=>{const a=t-e;return((r-e)%a+a)%a+e};function rT(e,t){return El(e)?e[bj(0,e.length,t)]:e}const V0=(e,t,r)=>-r*e+r*t+e,W0=()=>{},wo=e=>e,jd=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function B0(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const s=jd(0,t,a);e.push(V0(r,1,s))}}function H0(e){const t=[0];return B0(t,e-1),t}function nT(e,t=H0(e.length),r=wo){const a=e.length,s=a-t.length;return s>0&&B0(t,s),l=>{let f=0;for(;f<a-2&&!(l<t[f+1]);f++);let b=tT(0,1,jd(t[f],t[f+1],l));return b=rT(r,f)(b),V0(e[f],e[f+1],b)}}const oT=e=>Array.isArray(e)&&Oo(e[0]),Uc=e=>typeof e=="object"&&!!e.createAnimation,vj=e=>typeof e=="function",X0=e=>typeof e=="string",La={ms:e=>e*1e3,s:e=>e/1e3};function aT(e,t){return t?e*(1e3/t):0}const mj=["","X","Y","Z"],yj=["translate","scale","rotate","skew"],$i={x:"translateX",y:"translateY",z:"translateZ"},My={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},xj={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:My,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:wo},skew:My},qi=new Map,Dd=e=>`--motion-${e}`,$c=["x","y","z"];yj.forEach(e=>{mj.forEach(t=>{$c.push(e+t),qi.set(Dd(e+t),xj[e])})});const wj=(e,t)=>$c.indexOf(e)-$c.indexOf(t),Cj=new Set($c),zd=e=>Cj.has(e),Sj=(e,t)=>{$i[t]&&(t=$i[t]);const{transforms:r}=F0(e);J5(r,t),e.style.transform=iT(r)},iT=e=>e.sort(wj).reduce(kj,"").trim(),kj=(e,t)=>`${e} ${t}(var(${Dd(t)}))`,Xh=e=>e.startsWith("--"),Ry=new Set;function Tj(e){if(!Ry.has(e)){Ry.add(e);try{const{syntax:t,initialValue:r}=qi.has(e)?qi.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const sT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Pj=1e-7,_j=12;function Oj(e,t,r,a,s){let l,f,b=0;do f=t+(r-t)/2,l=sT(f,a,s)-e,l>0?r=f:t=f;while(Math.abs(l)>Pj&&++b<_j);return f}function Gs(e,t,r,a){if(e===t&&r===a)return wo;const s=l=>Oj(l,0,1,e,r);return l=>l===0||l===1?l:sT(s(l),t,a)}const Aj=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const a=r*e,s=t==="end"?Math.floor(a):Math.ceil(a);return tT(0,1,s/e)},Ej={ease:Gs(.25,.1,.25,1),"ease-in":Gs(.42,0,1,1),"ease-in-out":Gs(.42,0,.58,1),"ease-out":Gs(0,0,.58,1)},Mj=/\((.*?)\)/;function Yh(e){if(vj(e))return e;if(oT(e))return Gs(...e);const t=Ej[e];if(t)return t;if(e.startsWith("steps")){const r=Mj.exec(e);if(r){const a=r[1].split(",");return Aj(parseFloat(a[0]),a[1].trim())}}return wo}class Rj{constructor(t,r=[0,1],{easing:a,duration:s=Ur.duration,delay:l=Ur.delay,endDelay:f=Ur.endDelay,repeat:b=Ur.repeat,offset:S,direction:T="normal",autoplay:O=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=wo,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((F,z)=>{this.resolve=F,this.reject=z}),a=a||Ur.easing,Uc(a)){const F=a.createAnimation(r);a=F.easing,r=F.keyframes||r,s=F.duration||s}this.repeat=b,this.easing=El(a)?wo:Yh(a),this.updateDuration(s);const j=nT(r,S,El(a)?a.map(Yh):wo);this.tick=F=>{var z;l=l;let D=0;this.pauseTime!==void 0?D=this.pauseTime:D=(F-this.startTime)*this.rate,this.t=D,D/=1e3,D=Math.max(D-l,0),this.playState==="finished"&&this.pauseTime===void 0&&(D=this.totalDuration);const R=D/this.duration;let P=Math.floor(R),y=R%1;!y&&R>=1&&(y=1),y===1&&P--;const p=P%2;(T==="reverse"||T==="alternate"&&p||T==="alternate-reverse"&&!p)&&(y=1-y);const v=D>=this.totalDuration?1:Math.min(y,1),g=j(this.easing(v));t(g),this.pauseTime===void 0&&(this.playState==="finished"||D>=this.totalDuration+f)?(this.playState="finished",(z=this.resolve)===null||z===void 0||z.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},O&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const Ny=e=>oT(e)?Nj(e):e,Nj=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,Iy=e=>document.createElement("div").animate(e,{duration:.001}),Ly={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Iy({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Iy({opacity:[0,1]}).finished},bp={},tc={};for(const e in Ly)tc[e]=()=>(bp[e]===void 0&&(bp[e]=Ly[e]()),bp[e]);function Ij(e,t){for(let r=0;r<e.length;r++)e[r]===null&&(e[r]=r?e[r-1]:t());return e}const lT=e=>Array.isArray(e)?e:[e];function qc(e){return $i[e]&&(e=$i[e]),zd(e)?Dd(e):e}const Pi={get:(e,t)=>{t=qc(t);let r=Xh(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const a=qi.get(t);a&&(r=a.initialValue)}return r},set:(e,t,r)=>{t=qc(t),Xh(t)?e.style.setProperty(t,r):e.style[t]=r}};function uT(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function Lj(){return window.__MOTION_DEV_TOOLS_RECORD}function Fd(e,t,r,a={}){const s=Lj(),l=a.record!==!1&&s;let f,{duration:b=Ur.duration,delay:S=Ur.delay,endDelay:T=Ur.endDelay,repeat:O=Ur.repeat,easing:j=Ur.easing,direction:F,offset:z,allowWebkitAcceleration:D=!1}=a;const R=F0(e);let P=tc.waapi();const y=zd(t);y&&Sj(e,t);const p=qc(t),v=gj(R.values,p),g=qi.get(p);return uT(v.animation,!(Uc(j)&&v.generator)&&a.record!==!1),()=>{const m=()=>{var M,X;return(X=(M=Pi.get(e,p))!==null&&M!==void 0?M:g==null?void 0:g.initialValue)!==null&&X!==void 0?X:0};let _=Ij(lT(r),m);if(Uc(j)){const M=j.createAnimation(_,m,y,p,v);j=M.easing,M.keyframes!==void 0&&(_=M.keyframes),M.duration!==void 0&&(b=M.duration)}if(Xh(p)&&(tc.cssRegisterProperty()?Tj(p):P=!1),P){g&&(_=_.map(H=>Oo(H)?g.toDefaultUnit(H):H)),_.length===1&&(!tc.partialKeyframes()||l)&&_.unshift(m());const M={delay:La.ms(S),duration:La.ms(b),endDelay:La.ms(T),easing:El(j)?void 0:Ny(j),direction:F,iterations:O+1,fill:"both"};f=e.animate({[p]:_,offset:z,easing:El(j)?j.map(Ny):void 0},M),f.finished||(f.finished=new Promise((H,B)=>{f.onfinish=H,f.oncancel=B}));const X=_[_.length-1];f.finished.then(()=>{Pi.set(e,p,X),f.cancel()}).catch(W0),D||(f.playbackRate=1.000001)}else if(y){_=_.map(X=>typeof X=="string"?parseFloat(X):X),_.length===1&&_.unshift(parseFloat(m()));const M=X=>{g&&(X=g.toDefaultUnit(X)),Pi.set(e,p,X)};f=new Rj(M,_,Object.assign(Object.assign({},a),{duration:b,easing:j}))}else{const M=_[_.length-1];Pi.set(e,p,g&&Oo(M)?g.toDefaultUnit(M):M)}return l&&s(e,t,_,{duration:b,delay:S,easing:j,repeat:O,offset:z},"motion-one"),v.setAnimation(f),f}}const Y0=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function Vd(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const jj=e=>e(),G0=(e,t,r=Ur.duration)=>new Proxy({animations:e.map(jj).filter(Boolean),duration:r,options:t},zj),Dj=e=>e.animations[0],zj={get:(e,t)=>{const r=Dj(e);switch(t){case"duration":return e.duration;case"currentTime":return La.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(Fj)).catch(W0)),e.finished;case"stop":return()=>{e.animations.forEach(a=>uT(a))};case"forEachNative":return a=>{e.animations.forEach(s=>a(s,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(a=>a[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=La.ms(r);case"currentTime":case"playbackRate":for(let a=0;a<e.animations.length;a++)e.animations[a][t]=r;return!0}return!1}},Fj=e=>e.finished;function Vj(e=.1,{start:t=0,from:r=0,easing:a}={}){return(s,l)=>{const f=Oo(r)?r:Wj(r,l),b=Math.abs(f-s);let S=e*b;if(a){const T=l*e;S=Yh(a)(S/T)*T}return t+S}}function Wj(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function cT(e,t,r){return typeof e=="function"?e(t,r):e}function Bj(e,t,r={}){e=Vd(e);const a=e.length,s=[];for(let l=0;l<a;l++){const f=e[l];for(const b in t){const S=Y0(r,b);S.delay=cT(S.delay,l,a);const T=Fd(f,b,t[b],S);s.push(T)}}return G0(s,r,r.duration)}function jy(e,t,r,a){var s;return Oo(t)?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:(s=a.get(t))!==null&&s!==void 0?s:e}function Hj(e,t,r){for(let a=0;a<e.length;a++){const s=e[a];s.at>t&&s.at<r&&(eT(e,s),a--)}}function Xj(e,t,r,a,s,l){Hj(e,s,l);for(let f=0;f<t.length;f++)e.push({value:t[f],at:V0(s,l,a[f]),easing:rT(r,f)})}function Yj(e,t){return e.at===t.at?e.value===null?1:-1:e.at-t.at}function Gj(e,t={}){var r;const a=Uj(e,t),s=a.map(l=>Fd(...l)).filter(Boolean);return G0(s,t,(r=a[0])===null||r===void 0?void 0:r[3].duration)}function Uj(e,t={}){var{defaultOptions:r={}}=t,a=is(t,["defaultOptions"]);const s=[],l=new Map,f={},b=new Map;let S=0,T=0,O=0;for(let j=0;j<e.length;j++){const F=e[j];if(X0(F)){b.set(F,T);continue}else if(!Array.isArray(F)){b.set(F.name,jy(T,F.at,S,b));continue}const[z,D,R={}]=F;R.at!==void 0&&(T=jy(T,R.at,S,b));let P=0;const y=Vd(z,f),p=y.length;for(let v=0;v<p;v++){const g=y[v],m=$j(g,l);for(const _ in D){const M=qj(_,m);let X=lT(D[_]);const H=Y0(R,_);let{duration:B=r.duration||Ur.duration,easing:U=r.easing||Ur.easing}=H;if(Uc(U)){const Se=zd(_);m5(X.length===2||!Se);const be=U.createAnimation(X,()=>"0",Se);U=be.easing,be.keyframes!==void 0&&(X=be.keyframes),be.duration!==void 0&&(B=be.duration)}const K=cT(R.delay,v,p)||0,oe=T+K,ne=oe+B;let{offset:fe=H0(X.length)}=H;fe.length===1&&fe[0]===0&&(fe[1]=1);const me=length-X.length;me>0&&B0(fe,me),X.length===1&&X.unshift(null),Xj(M,X,U,fe,oe,ne),P=Math.max(K+B,P),O=Math.max(ne,O)}}S=T,T+=P}return l.forEach((j,F)=>{for(const z in j){const D=j[z];D.sort(Yj);const R=[],P=[],y=[];for(let p=0;p<D.length;p++){const{at:v,value:g,easing:m}=D[p];R.push(g),P.push(jd(0,O,v)),y.push(m||Ur.easing)}P[0]!==0&&(P.unshift(0),R.unshift(R[0]),y.unshift("linear")),P[P.length-1]!==1&&(P.push(1),R.push(null)),s.push([F,z,R,Object.assign(Object.assign(Object.assign({},r),{duration:O,easing:y,offset:P}),a)])}}),s}function $j(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qj(e,t){return t[e]||(t[e]=[]),t[e]}const Kj=5;function U0(e,t,r){const a=Math.max(t-Kj,0);return aT(r-e(a),t-a)}const ji={stiffness:100,damping:10,mass:1},Zj=(e=ji.stiffness,t=ji.damping,r=ji.mass)=>t/(2*Math.sqrt(e*r));function Qj(e,t,r){return e<t&&r>=t||e>t&&r<=t}const dT=({stiffness:e=ji.stiffness,damping:t=ji.damping,mass:r=ji.mass,from:a=0,to:s=1,velocity:l=0,restSpeed:f,restDistance:b}={})=>{l=l?La.s(l):0;const S={done:!1,hasReachedTarget:!1,current:a,target:s},T=s-a,O=Math.sqrt(e/r)/1e3,j=Zj(e,t,r),F=Math.abs(T)<5;f||(f=F?.01:2),b||(b=F?.005:.5);let z;if(j<1){const D=O*Math.sqrt(1-j*j);z=R=>s-Math.exp(-j*O*R)*((-l+j*O*T)/D*Math.sin(D*R)+T*Math.cos(D*R))}else z=D=>s-Math.exp(-O*D)*(T+(-l+O*T)*D);return D=>{S.current=z(D);const R=D===0?l:U0(z,D,S.current),P=Math.abs(R)<=f,y=Math.abs(s-S.current)<=b;return S.done=P&&y,S.hasReachedTarget=Qj(a,s,S.current),S}},Jj=({from:e=0,velocity:t=0,power:r=.8,decay:a=.325,bounceDamping:s,bounceStiffness:l,changeTarget:f,min:b,max:S,restDistance:T=.5,restSpeed:O})=>{a=La.ms(a);const j={hasReachedTarget:!1,done:!1,current:e,target:e},F=M=>b!==void 0&&M<b||S!==void 0&&M>S,z=M=>b===void 0?S:S===void 0||Math.abs(b-M)<Math.abs(S-M)?b:S;let D=r*t;const R=e+D,P=f===void 0?R:f(R);j.target=P,P!==R&&(D=P-e);const y=M=>-D*Math.exp(-M/a),p=M=>P+y(M),v=M=>{const X=y(M),H=p(M);j.done=Math.abs(X)<=T,j.current=j.done?P:H};let g,m;const _=M=>{F(j.current)&&(g=M,m=dT({from:j.current,to:z(j.current),velocity:U0(p,M,j.current),damping:s,stiffness:l,restDistance:T,restSpeed:O}))};return _(0),M=>{let X=!1;return!m&&g===void 0&&(X=!0,v(M),_(M)),g!==void 0&&M>g?(j.hasReachedTarget=!0,m(M-g)):(j.hasReachedTarget=!1,!X&&v(M),j)}},vp=10,eD=1e4;function tD(e,t=wo){let r,a=vp,s=e(0);const l=[t(s.current)];for(;!s.done&&a<eD;)s=e(a),l.push(t(s.done?s.target:s.current)),r===void 0&&s.hasReachedTarget&&(r=a),a+=vp;const f=a-vp;return l.length===1&&l.push(s.current),{keyframes:l,duration:f/1e3,overshootDuration:(r??f)/1e3}}function fT(e){const t=new WeakMap;return(r={})=>{const a=new Map,s=(f=0,b=100,S=0,T=!1)=>{const O=`${f}-${b}-${S}-${T}`;return a.has(O)||a.set(O,e(Object.assign({from:f,to:b,velocity:S,restSpeed:T?.05:2,restDistance:T?.01:.5},r))),a.get(O)},l=f=>(t.has(f)||t.set(f,tD(f)),t.get(f));return{createAnimation:(f,b,S,T,O)=>{var j,F;let z;const D=f.length;if(S&&D<=2&&f.every(rD)){const P=f[D-1],y=D===1?null:f[0];let p=0,v=0;const g=O==null?void 0:O.generator;if(g){const{animation:M,generatorStartTime:X}=O,H=(M==null?void 0:M.startTime)||X||0,B=(M==null?void 0:M.currentTime)||performance.now()-H,U=g(B).current;v=(j=y)!==null&&j!==void 0?j:U,(D===1||D===2&&f[0]===null)&&(p=U0(K=>g(K).current,B,U))}else v=(F=y)!==null&&F!==void 0?F:parseFloat(b());const m=s(v,P,p,T==null?void 0:T.includes("scale")),_=l(m);z=Object.assign(Object.assign({},_),{easing:"linear"}),O&&(O.generator=m,O.generatorStartTime=performance.now())}else z={easing:"ease",duration:l(s(0,100)).overshootDuration};return z}}}}const rD=e=>typeof e!="string",nD=fT(dT),oD=fT(Jj),aD={any:0,all:1};function pT(e,t,{root:r,margin:a,amount:s="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const l=Vd(e),f=new WeakMap,b=T=>{T.forEach(O=>{const j=f.get(O.target);if(O.isIntersecting!==!!j)if(O.isIntersecting){const F=t(O);typeof F=="function"?f.set(O.target,F):S.unobserve(O.target)}else j&&(j(O),f.delete(O.target))})},S=new IntersectionObserver(b,{root:r,rootMargin:a,threshold:typeof s=="number"?s:aD[s]});return l.forEach(T=>S.observe(T)),()=>S.disconnect()}const rc=new WeakMap;let Bo;function iD(e,t){if(t){const{inlineSize:r,blockSize:a}=t[0];return{width:r,height:a}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function sD({target:e,contentRect:t,borderBoxSize:r}){var a;(a=rc.get(e))===null||a===void 0||a.forEach(s=>{s({target:e,contentSize:t,get size(){return iD(e,r)}})})}function lD(e){e.forEach(sD)}function uD(){typeof ResizeObserver>"u"||(Bo=new ResizeObserver(lD))}function cD(e,t){Bo||uD();const r=Vd(e);return r.forEach(a=>{let s=rc.get(a);s||(s=new Set,rc.set(a,s)),s.add(t),Bo==null||Bo.observe(a)}),()=>{r.forEach(a=>{const s=rc.get(a);s==null||s.delete(t),s!=null&&s.size||Bo==null||Bo.unobserve(a)})}}const nc=new Set;let ol;function dD(){ol=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};nc.forEach(r=>r(t))},window.addEventListener("resize",ol)}function fD(e){return nc.add(e),ol||dD(),()=>{nc.delete(e),!nc.size&&ol&&(ol=void 0)}}function hT(e,t){return typeof e=="function"?fD(e):cD(e,t)}const pD=50,Dy=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),hD=()=>({time:0,x:Dy(),y:Dy()}),gD={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function zy(e,t,r,a){const s=r[t],{length:l,position:f}=gD[t],b=s.current,S=r.time;s.current=e["scroll"+f],s.scrollLength=e["scroll"+l]-e["client"+l],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=jd(0,s.scrollLength,s.current);const T=a-S;s.velocity=T>pD?0:aT(s.current-b,T)}function bD(e,t,r){zy(e,"x",t,r),zy(e,"y",t,r),t.time=r}function vD(e,t){let r={x:0,y:0},a=e;for(;a&&a!==t;)if(a instanceof HTMLElement)r.x+=a.offsetLeft,r.y+=a.offsetTop,a=a.offsetParent;else if(a instanceof SVGGraphicsElement&&"getBBox"in a){const{top:s,left:l}=a.getBBox();for(r.x+=l,r.y+=s;a&&a.tagName!=="svg";)a=a.parentNode}return r}const gT={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Gh={start:0,center:.5,end:1};function Fy(e,t,r=0){let a=0;if(Gh[e]!==void 0&&(e=Gh[e]),X0(e)){const s=parseFloat(e);e.endsWith("px")?a=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?a=s/100*document.documentElement.clientWidth:e.endsWith("vh")?a=s/100*document.documentElement.clientHeight:e=s}return Oo(e)&&(a=t*e),r+a}const mD=[0,0];function yD(e,t,r,a){let s=Array.isArray(e)?e:mD,l=0,f=0;return Oo(e)?s=[e,e]:X0(e)&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Gh[e]?e:"0"]),l=Fy(s[0],r,a),f=Fy(s[1],t),l-f}const xD={x:0,y:0};function wD(e,t,r){let{offset:a=gT.All}=r;const{target:s=e,axis:l="y"}=r,f=l==="y"?"height":"width",b=s!==e?vD(s,e):xD,S=s===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:s.clientWidth,height:s.clientHeight},T={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let O=!t[l].interpolate;const j=a.length;for(let F=0;F<j;F++){const z=yD(a[F],T[f],S[f],b[l]);!O&&z!==t[l].interpolatorOffsets[F]&&(O=!0),t[l].offset[F]=z}O&&(t[l].interpolate=nT(H0(j),t[l].offset),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=t[l].interpolate(t[l].current)}function CD(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let a=t;for(;a&&a!=e;)r.x.targetOffset+=a.offsetLeft,r.y.targetOffset+=a.offsetTop,a=a.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function SD(e,t,r,a={}){const s=a.axis||"y";return{measure:()=>CD(e,a.target,r),update:l=>{bD(e,r,l),(a.offset||a.target)&&wD(e,r,a)},notify:typeof t=="function"?()=>t(r):kD(t,r[s])}}function kD(e,t){return e.pause(),e.forEachNative((r,{easing:a})=>{var s,l;if(r.updateDuration)a||(r.easing=wo),r.updateDuration(1);else{const f={duration:1e3};a||(f.easing="linear"),(l=(s=r.effect)===null||s===void 0?void 0:s.updateTiming)===null||l===void 0||l.call(s,f)}}),()=>{e.currentTime=t.progress}}const js=new WeakMap,Vy=new WeakMap,mp=new WeakMap,Wy=e=>e===document.documentElement?window:e;function TD(e,t={}){var{container:r=document.documentElement}=t,a=is(t,["container"]);let s=mp.get(r);s||(s=new Set,mp.set(r,s));const l=hD(),f=SD(r,e,l,a);if(s.add(f),!js.has(r)){const T=()=>{const j=performance.now();for(const F of s)F.measure();for(const F of s)F.update(j);for(const F of s)F.notify()};js.set(r,T);const O=Wy(r);window.addEventListener("resize",T,{passive:!0}),r!==document.documentElement&&Vy.set(r,hT(r,T)),O.addEventListener("scroll",T,{passive:!0})}const b=js.get(r),S=requestAnimationFrame(b);return()=>{var T;typeof e!="function"&&e.stop(),cancelAnimationFrame(S);const O=mp.get(r);if(!O||(O.delete(f),O.size))return;const j=js.get(r);js.delete(r),j&&(Wy(r).removeEventListener("scroll",j),(T=Vy.get(r))===null||T===void 0||T(),window.removeEventListener("resize",j))}}function PD(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!_D(e,t):e!==t}function _D(e,t){const r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}function OD(e){return typeof e=="object"}function By(e,t){if(OD(e))return e;if(e&&t)return t[e]}let sa;function AD(){if(!sa)return;const e=sa.sort(MD).map(RD);e.forEach(Hy),e.forEach(Hy),sa=void 0}function yp(e){sa?J5(sa,e):(sa=[e],requestAnimationFrame(AD))}function ED(e){sa&&eT(sa,e)}const MD=(e,t)=>e.getDepth()-t.getDepth(),RD=e=>e.animateUpdates(),Hy=e=>e.next(),Xy=(e,t)=>new CustomEvent(e,{detail:{target:t}});function Uh(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function Yy(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const ND={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:a={}})=>{const{once:s}=a,l=is(a,["once"]);return pT(e,f=>{if(t(),Yy(e,"viewenter",f),!s)return b=>{r(),Yy(e,"viewleave",b)}},l)}},Gy=(e,t,r)=>a=>{a.pointerType&&a.pointerType!=="mouse"||(r(),Uh(e,t,a))},ID={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const a=Gy(e,"hoverstart",t),s=Gy(e,"hoverend",r);return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",s)}}},LD={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const a=l=>{r(),Uh(e,"pressend",l),window.removeEventListener("pointerup",a)},s=l=>{t(),Uh(e,"pressstart",l),window.addEventListener("pointerup",a)};return e.addEventListener("pointerdown",s),()=>{e.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",a)}}},oc={inView:ND,hover:ID,press:LD},Uy=["initial","animate",...Object.keys(oc),"exit"],$h=new WeakMap;function jD(e={},t){let r,a=t?t.getDepth()+1:0;const s={initial:!0,animate:!0},l={},f={};for(const R of Uy)f[R]=typeof e[R]=="string"?e[R]:t==null?void 0:t.getContext()[R];const b=e.initial===!1?"animate":"initial";let S=By(e[b]||f[b],e.variants)||{},T=is(S,["transition"]);const O=Object.assign({},T);function*j(){var R,P;const y=T;T={};const p={};for(const M of Uy){if(!s[M])continue;const X=By(e[M]);if(X)for(const H in X)H!=="transition"&&(T[H]=X[H],p[H]=Y0((P=(R=X.transition)!==null&&R!==void 0?R:e.transition)!==null&&P!==void 0?P:{},H))}const v=new Set([...Object.keys(T),...Object.keys(y)]),g=[];v.forEach(M=>{var X;T[M]===void 0&&(T[M]=O[M]),PD(y[M],T[M])&&((X=O[M])!==null&&X!==void 0||(O[M]=Pi.get(r,M)),g.push(Fd(r,M,T[M],p[M])))}),yield;const m=g.map(M=>M()).filter(Boolean);if(!m.length)return;const _=T;r.dispatchEvent(Xy("motionstart",_)),Promise.all(m.map(M=>M.finished)).then(()=>{r.dispatchEvent(Xy("motioncomplete",_))}).catch(W0)}const F=(R,P)=>()=>{s[R]=P,yp(D)},z=()=>{for(const R in oc){const P=oc[R].isActive(e),y=l[R];P&&!y?l[R]=oc[R].subscribe(r,{enable:F(R,!0),disable:F(R,!1)},e):!P&&y&&(y(),delete l[R])}},D={update:R=>{r&&(e=R,z(),yp(D))},setActive:(R,P)=>{r&&(s[R]=P,yp(D))},animateUpdates:j,getDepth:()=>a,getTarget:()=>T,getOptions:()=>e,getContext:()=>f,mount:R=>(r=R,$h.set(r,D),z(),()=>{$h.delete(r),ED(D);for(const P in l)l[P]()}),isMounted:()=>!!r};return D}function bT(e){const t={},r=[];for(let a in e){const s=e[a];zd(a)&&($i[a]&&(a=$i[a]),r.push(a),a=Dd(a));let l=Array.isArray(s)?s[0]:s;const f=qi.get(a);f&&(l=Oo(s)?f.toDefaultUnit(s):s),t[a]=l}return r.length&&(t.transform=iT(r)),t}const DD=e=>`-${e.toLowerCase()}`,zD=e=>e.replace(/[A-Z]/g,DD);function FD(e={}){const t=bT(e);let r="";for(const a in t)r+=a.startsWith("--")?a:zD(a),r+=`: ${t[a]}; `;return r}const VD=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:gT,animate:Bj,animateStyle:Fd,createMotionState:jD,createStyleString:FD,createStyles:bT,getAnimationData:F0,getStyleName:qc,glide:oD,inView:pT,mountedStates:$h,resize:hT,scroll:TD,spring:nD,stagger:Vj,style:Pi,timeline:Gj,withControls:G0},Symbol.toStringTag,{value:"Module"})),WD=Ll(VD);function BD(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var HD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XD=BD(function(e){return HD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const YD=Object.freeze(Object.defineProperty({__proto__:null,default:XD},Symbol.toStringTag,{value:"Module"})),GD=Ll(YD);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=v5,r=ee,a=y5,s=cr,l=ft,f=Ja,b=WD;function S(w){return w&&typeof w=="object"&&"default"in w?w:{default:w}}function T(w){if(w&&w.__esModule)return w;var A=Object.create(null);return w&&Object.keys(w).forEach(function(V){if(V!=="default"){var Y=Object.getOwnPropertyDescriptor(w,V);Object.defineProperty(A,V,Y.get?Y:{enumerable:!0,get:function(){return w[V]}})}}),A.default=w,Object.freeze(A)}var O=T(r),j=S(r),F=S(f),z="production",D=typeof process>"u"||process.env===void 0?z:"production",R=function(w){return{isEnabled:function(A){return w.some(function(V){return!!A[V]})}}},P={measureLayout:R(["layout","layoutId","drag"]),animation:R(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:R(["exit"]),drag:R(["drag","dragControls"]),focus:R(["whileFocus"]),hover:R(["whileHover","onHoverStart","onHoverEnd"]),tap:R(["whileTap","onTap","onTapStart","onTapCancel"]),pan:R(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:R(["whileInView","onViewportEnter","onViewportLeave"])};function y(w){for(var A in w)w[A]!==null&&(A==="projectionNodeConstructor"?P.projectionNodeConstructor=w[A]:P[A].Component=w[A])}var p=r.createContext({strict:!1}),v=Object.keys(P),g=v.length;function m(w,A,V){var Y=[],Z=r.useContext(p);if(!A)return null;D!=="production"&&V&&Z.strict&&a.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var se=0;se<g;se++){var le=v[se],ae=P[le],pe=ae.isEnabled,ve=ae.Component;pe(w)&&ve&&Y.push(O.createElement(ve,t.__assign({key:le},w,{visualElement:A})))}return Y}var _=r.createContext({transformPagePoint:function(w){return w},isStatic:!1,reducedMotion:"never"}),M=r.createContext({});function X(){return r.useContext(M).visualElement}var H=r.createContext(null),B=typeof document<"u",U=B?r.useLayoutEffect:r.useEffect,K={current:null},oe=!1;function ne(){if(oe=!0,!!B)if(window.matchMedia){var w=window.matchMedia("(prefers-reduced-motion)"),A=function(){return K.current=w.matches};w.addListener(A),A()}else K.current=!1}function fe(){!oe&&ne();var w=t.__read(r.useState(K.current),1),A=w[0];return A}function me(){var w=fe(),A=r.useContext(_).reducedMotion;return A==="never"?!1:A==="always"?!0:w}function Se(w,A,V,Y){var Z=r.useContext(p),se=X(),le=r.useContext(H),ae=me(),pe=r.useRef(void 0);Y||(Y=Z.renderer),!pe.current&&Y&&(pe.current=Y(w,{visualState:A,parent:se,props:V,presenceId:le==null?void 0:le.id,blockInitialAnimation:(le==null?void 0:le.initial)===!1,shouldReduceMotion:ae}));var ve=pe.current;return U(function(){ve==null||ve.syncRender()}),r.useEffect(function(){var xe;(xe=ve==null?void 0:ve.animationState)===null||xe===void 0||xe.animateChanges()}),U(function(){return function(){return ve==null?void 0:ve.notifyUnmount()}},[]),ve}function be(w){return typeof w=="object"&&Object.prototype.hasOwnProperty.call(w,"current")}function ue(w,A,V){return r.useCallback(function(Y){var Z;Y&&((Z=w.mount)===null||Z===void 0||Z.call(w,Y)),A&&(Y?A.mount(Y):A.unmount()),V&&(typeof V=="function"?V(Y):be(V)&&(V.current=Y))},[A])}function ge(w){return Array.isArray(w)}function ye(w){return typeof w=="string"||ge(w)}function _e(w){var A={};return w.forEachValue(function(V,Y){return A[Y]=V.get()}),A}function Ee(w){var A={};return w.forEachValue(function(V,Y){return A[Y]=V.getVelocity()}),A}function Ne(w,A,V,Y,Z){var se;return Y===void 0&&(Y={}),Z===void 0&&(Z={}),typeof A=="function"&&(A=A(V??w.custom,Y,Z)),typeof A=="string"&&(A=(se=w.variants)===null||se===void 0?void 0:se[A]),typeof A=="function"&&(A=A(V??w.custom,Y,Z)),A}function Le(w,A,V){var Y=w.getProps();return Ne(Y,A,V??Y.custom,_e(w),Ee(w))}function Pe(w){var A;return typeof((A=w.animate)===null||A===void 0?void 0:A.start)=="function"||ye(w.initial)||ye(w.animate)||ye(w.whileHover)||ye(w.whileDrag)||ye(w.whileTap)||ye(w.whileFocus)||ye(w.exit)}function Xe(w){return!!(Pe(w)||w.variants)}function Ve(w,A){if(Pe(w)){var V=w.initial,Y=w.animate;return{initial:V===!1||ye(V)?V:void 0,animate:ye(Y)?Y:void 0}}return w.inherit!==!1?A:{}}function Re(w){var A=Ve(w,r.useContext(M)),V=A.initial,Y=A.animate;return r.useMemo(function(){return{initial:V,animate:Y}},[He(V),He(Y)])}function He(w){return Array.isArray(w)?w.join(" "):w}function We(w){var A=r.useRef(null);return A.current===null&&(A.current=w()),A.current}var Ke={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ot=1;function Qe(){return We(function(){if(Ke.hasEverUpdated)return ot++})}var qe=r.createContext({}),st=r.createContext({});function wt(w,A,V,Y){var Z,se=A.layoutId,le=A.layout,ae=A.drag,pe=A.dragConstraints,ve=A.layoutScroll,xe=r.useContext(st);!Y||!V||V!=null&&V.projection||(V.projection=new Y(w,V.getLatestValues(),(Z=V.parent)===null||Z===void 0?void 0:Z.projection),V.projection.setOptions({layoutId:se,layout:le,alwaysMeasureLayout:!!ae||pe&&be(pe),visualElement:V,scheduleRender:function(){return V.scheduleRender()},animationType:typeof le=="string"?le:"both",initialPromotionConfig:xe,layoutScroll:ve}))}var kt=function(w){t.__extends(A,w);function A(){return w!==null&&w.apply(this,arguments)||this}return A.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},A.prototype.componentDidUpdate=function(){},A.prototype.updateProps=function(){var V=this.props,Y=V.visualElement,Z=V.props;Y&&Y.setProps(Z)},A.prototype.render=function(){return this.props.children},A}(j.default.Component);function Lt(w){var A=w.preloadedFeatures,V=w.createVisualElement,Y=w.projectionNodeConstructor,Z=w.useRender,se=w.useVisualState,le=w.Component;A&&y(A);function ae(pe,ve){var xe=At(pe);pe=t.__assign(t.__assign({},pe),{layoutId:xe});var ke=r.useContext(_),Te=null,Oe=Re(pe),Ae=ke.isStatic?void 0:Qe(),Ie=se(pe,ke.isStatic);return!ke.isStatic&&B&&(Oe.visualElement=Se(le,Ie,t.__assign(t.__assign({},ke),pe),V),wt(Ae,pe,Oe.visualElement,Y||P.projectionNodeConstructor),Te=m(pe,Oe.visualElement,A)),O.createElement(kt,{visualElement:Oe.visualElement,props:t.__assign(t.__assign({},ke),pe)},Te,O.createElement(M.Provider,{value:Oe},Z(le,pe,Ae,ue(Ie,Oe.visualElement,ve),Ie,ke.isStatic,Oe.visualElement)))}return r.forwardRef(ae)}function At(w){var A,V=w.layoutId,Y=(A=r.useContext(qe))===null||A===void 0?void 0:A.id;return Y&&V!==void 0?Y+"-"+V:V}function jt(w){function A(Y,Z){return Z===void 0&&(Z={}),Lt(w(Y,Z))}if(typeof Proxy>"u")return A;var V=new Map;return new Proxy(A,{get:function(Y,Z){return V.has(Z)||V.set(Z,A(Z)),V.get(Z)}})}var Fe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ye(w){return typeof w!="string"||w.includes("-")?!1:!!(Fe.indexOf(w)>-1||/[A-Z]/.test(w))}var et={};function dt(w){Object.assign(et,w)}var St=["","X","Y","Z"],Et=["translate","scale","rotate","skew"],gt=["transformPerspective","x","y","z"];Et.forEach(function(w){return St.forEach(function(A){return gt.push(w+A)})});function Gt(w,A){return gt.indexOf(w)-gt.indexOf(A)}var Sr=new Set(gt);function nr(w){return Sr.has(w)}var Pn=new Set(["originX","originY","originZ"]);function Fr(w){return Pn.has(w)}function Vr(w,A){var V=A.layout,Y=A.layoutId;return nr(w)||Fr(w)||(V||Y!==void 0)&&(!!et[w]||w==="opacity")}var Kt=function(w){return!!(w!==null&&typeof w=="object"&&w.getVelocity)},ri={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ba(w,A,V,Y){var Z=w.transform,se=w.transformKeys,le=A.enableHardwareAcceleration,ae=le===void 0?!0:le,pe=A.allowTransformNone,ve=pe===void 0?!0:pe,xe="";se.sort(Gt);for(var ke=!1,Te=se.length,Oe=0;Oe<Te;Oe++){var Ae=se[Oe];xe+="".concat(ri[Ae]||Ae,"(").concat(Z[Ae],") "),Ae==="z"&&(ke=!0)}return!ke&&ae?xe+="translateZ(0)":xe=xe.trim(),Y?xe=Y(Z,V?"":xe):ve&&V&&(xe="none"),xe}function Mr(w){var A=w.originX,V=A===void 0?"50%":A,Y=w.originY,Z=Y===void 0?"50%":Y,se=w.originZ,le=se===void 0?0:se;return"".concat(V," ").concat(Z," ").concat(le)}function va(w){return w.startsWith("--")}var _n=function(w,A){return A&&typeof w=="number"?A.transform(w):w},Wr=t.__assign(t.__assign({},s.number),{transform:Math.round}),Un={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.degrees,rotateX:s.degrees,rotateY:s.degrees,rotateZ:s.degrees,scale:s.scale,scaleX:s.scale,scaleY:s.scale,scaleZ:s.scale,skew:s.degrees,skewX:s.degrees,skewY:s.degrees,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:s.alpha,originX:s.progressPercentage,originY:s.progressPercentage,originZ:s.px,zIndex:Wr,fillOpacity:s.alpha,strokeOpacity:s.alpha,numOctaves:Wr};function uo(w,A,V,Y){var Z,se=w.style,le=w.vars,ae=w.transform,pe=w.transformKeys,ve=w.transformOrigin;pe.length=0;var xe=!1,ke=!1,Te=!0;for(var Oe in A){var Ae=A[Oe];if(va(Oe)){le[Oe]=Ae;continue}var Ie=Un[Oe],Ue=_n(Ae,Ie);if(nr(Oe)){if(xe=!0,ae[Oe]=Ue,pe.push(Oe),!Te)continue;Ae!==((Z=Ie.default)!==null&&Z!==void 0?Z:0)&&(Te=!1)}else Fr(Oe)?(ve[Oe]=Ue,ke=!0):se[Oe]=Ue}xe?se.transform=ba(w,V,Te,Y):Y?se.transform=Y({},""):!A.transform&&se.transform&&(se.transform="none"),ke&&(se.transformOrigin=Mr(ve))}var mr=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function co(w,A,V){for(var Y in A)!Kt(A[Y])&&!Vr(Y,V)&&(w[Y]=A[Y])}function ma(w,A,V){var Y=w.transformTemplate;return r.useMemo(function(){var Z=mr();uo(Z,A,{enableHardwareAcceleration:!V},Y);var se=Z.vars,le=Z.style;return t.__assign(t.__assign({},se),le)},[A])}function ni(w,A,V){var Y=w.style||{},Z={};return co(Z,Y,w),Object.assign(Z,ma(w,A,V)),w.transformValues&&(Z=w.transformValues(Z)),Z}function $n(w,A,V){var Y={},Z=ni(w,A,V);return w.drag&&w.dragListener!==!1&&(Y.draggable=!1,Z.userSelect=Z.WebkitUserSelect=Z.WebkitTouchCallout="none",Z.touchAction=w.drag===!0?"none":"pan-".concat(w.drag==="x"?"y":"x")),Y.style=Z,Y}var ya=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Jr(w){return ya.has(w)}var Mo=function(w){return!Jr(w)};function qn(w){w&&(Mo=function(A){return A.startsWith("on")?!Jr(A):w(A)})}try{qn(GD.default)}catch{}function xa(w,A,V){var Y={};for(var Z in w)(Mo(Z)||V===!0&&Jr(Z)||!A&&!Jr(Z)||w.draggable&&Z.startsWith("onDrag"))&&(Y[Z]=w[Z]);return Y}function Kn(w,A,V){return typeof w=="string"?w:s.px.transform(A+V*w)}function Br(w,A,V){var Y=Kn(A,w.x,w.width),Z=Kn(V,w.y,w.height);return"".concat(Y," ").concat(Z)}var On={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zn={offset:"strokeDashoffset",array:"strokeDasharray"};function bs(w,A,V,Y,Z){V===void 0&&(V=1),Y===void 0&&(Y=0),Z===void 0&&(Z=!0),w.pathLength=1;var se=Z?On:Zn;w[se.offset]=s.px.transform(-Y);var le=s.px.transform(A),ae=s.px.transform(V);w[se.array]="".concat(le," ").concat(ae)}function wa(w,A,V,Y){var Z=A.attrX,se=A.attrY,le=A.originX,ae=A.originY,pe=A.pathLength,ve=A.pathSpacing,xe=ve===void 0?1:ve,ke=A.pathOffset,Te=ke===void 0?0:ke,Oe=t.__rest(A,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);uo(w,Oe,V,Y),w.attrs=w.style,w.style={};var Ae=w.attrs,Ie=w.style,Ue=w.dimensions;Ae.transform&&(Ue&&(Ie.transform=Ae.transform),delete Ae.transform),Ue&&(le!==void 0||ae!==void 0||Ie.transform)&&(Ie.transformOrigin=Br(Ue,le!==void 0?le:.5,ae!==void 0?ae:.5)),Z!==void 0&&(Ae.x=Z),se!==void 0&&(Ae.y=se),pe!==void 0&&bs(Ae,pe,xe,Te,!1)}var Ca=function(){return t.__assign(t.__assign({},mr()),{attrs:{}})};function vs(w,A){var V=r.useMemo(function(){var Z=Ca();return wa(Z,A,{enableHardwareAcceleration:!1},w.transformTemplate),t.__assign(t.__assign({},Z.attrs),{style:t.__assign({},Z.style)})},[A]);if(w.style){var Y={};co(Y,w.style,w),V.style=t.__assign(t.__assign({},Y),V.style)}return V}function Hr(w){w===void 0&&(w=!1);var A=function(V,Y,Z,se,le,ae){var pe=le.latestValues,ve=Ye(V)?vs:$n,xe=ve(Y,pe,ae),ke=xa(Y,typeof V=="string",w),Te=t.__assign(t.__assign(t.__assign({},ke),xe),{ref:se});return Z&&(Te["data-projection-id"]=Z),r.createElement(V,Te)};return A}var fo=/([a-z])([A-Z])/g,Sa="$1-$2",po=function(w){return w.replace(fo,Sa).toLowerCase()};function oi(w,A,V,Y){var Z=A.style,se=A.vars;Object.assign(w.style,Z,Y&&Y.getProjectionStyles(V));for(var le in se)w.style.setProperty(le,se[le])}var J=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function n(w,A,V,Y){oi(w,A,void 0,Y);for(var Z in A.attrs)w.setAttribute(J.has(Z)?Z:po(Z),A.attrs[Z])}function o(w){var A=w.style,V={};for(var Y in A)(Kt(A[Y])||Vr(Y,w))&&(V[Y]=A[Y]);return V}function i(w){var A=o(w);for(var V in w)if(Kt(w[V])){var Y=V==="x"||V==="y"?"attr"+V.toUpperCase():V;A[Y]=w[V]}return A}function u(w){return typeof w=="object"&&typeof w.start=="function"}var c=function(w){return Array.isArray(w)},d=function(w){return!!(w&&typeof w=="object"&&w.mix&&w.toValue)},h=function(w){return c(w)?w[w.length-1]||0:w};function x(w){var A=Kt(w)?w.get():w;return d(A)?A.toValue():A}function k(w,A,V,Y){var Z=w.scrapeMotionValuesFromProps,se=w.createRenderState,le=w.onMount,ae={latestValues:N(A,V,Y,Z),renderState:se()};return le&&(ae.mount=function(pe){return le(A,pe,ae)}),ae}var E=function(w){return function(A,V){var Y=r.useContext(M),Z=r.useContext(H);return V?k(w,A,Y,Z):We(function(){return k(w,A,Y,Z)})}};function N(w,A,V,Y){var Z={},se=(V==null?void 0:V.initial)===!1,le=Y(w);for(var ae in le)Z[ae]=x(le[ae]);var pe=w.initial,ve=w.animate,xe=Pe(w),ke=Xe(w);A&&ke&&!xe&&w.inherit!==!1&&(pe??(pe=A.initial),ve??(ve=A.animate));var Te=se||pe===!1,Oe=Te?ve:pe;if(Oe&&typeof Oe!="boolean"&&!u(Oe)){var Ae=Array.isArray(Oe)?Oe:[Oe];Ae.forEach(function(Ie){var Ue=Ne(w,Ie);if(Ue){var Je=Ue.transitionEnd;Ue.transition;var lt=t.__rest(Ue,["transitionEnd","transition"]);for(var bt in lt){var vt=lt[bt];if(Array.isArray(vt)){var xt=Te?vt.length-1:0;vt=vt[xt]}vt!==null&&(Z[bt]=vt)}for(var bt in Je)Z[bt]=Je[bt]}})}return Z}var L={useVisualState:E({scrapeMotionValuesFromProps:i,createRenderState:Ca,onMount:function(w,A,V){var Y=V.renderState,Z=V.latestValues;try{Y.dimensions=typeof A.getBBox=="function"?A.getBBox():A.getBoundingClientRect()}catch{Y.dimensions={x:0,y:0,width:0,height:0}}wa(Y,Z,{enableHardwareAcceleration:!1},w.transformTemplate),n(A,Y)}})},W={useVisualState:E({scrapeMotionValuesFromProps:o,createRenderState:mr})};function G(w,A,V,Y,Z){var se=A.forwardMotionProps,le=se===void 0?!1:se,ae=Ye(w)?L:W;return t.__assign(t.__assign({},ae),{preloadedFeatures:V,useRender:Hr(le),createVisualElement:Y,projectionNodeConstructor:Z,Component:w})}e.AnimationType=void 0,function(w){w.Animate="animate",w.Hover="whileHover",w.Tap="whileTap",w.Drag="whileDrag",w.Focus="whileFocus",w.InView="whileInView",w.Exit="exit"}(e.AnimationType||(e.AnimationType={}));function q(w,A,V,Y){return Y===void 0&&(Y={passive:!0}),w.addEventListener(A,V,Y),function(){return w.removeEventListener(A,V)}}function Q(w,A,V,Y){r.useEffect(function(){var Z=w.current;if(V&&Z)return q(Z,A,V,Y)},[w,A,V,Y])}function re(w){var A=w.whileFocus,V=w.visualElement,Y=function(){var se;(se=V.animationState)===null||se===void 0||se.setActive(e.AnimationType.Focus,!0)},Z=function(){var se;(se=V.animationState)===null||se===void 0||se.setActive(e.AnimationType.Focus,!1)};Q(V,"focus",A?Y:void 0),Q(V,"blur",A?Z:void 0)}function ie(w){return typeof PointerEvent<"u"&&w instanceof PointerEvent?w.pointerType==="mouse":w instanceof MouseEvent}function C(w){var A=!!w.touches;return A}function I(w){return function(A){var V=A instanceof MouseEvent,Y=!V||V&&A.button===0;Y&&w(A)}}var $={pageX:0,pageY:0};function te(w,A){A===void 0&&(A="page");var V=w.touches[0]||w.changedTouches[0],Y=V||$;return{x:Y[A+"X"],y:Y[A+"Y"]}}function ce(w,A){return A===void 0&&(A="page"),{x:w[A+"X"],y:w[A+"Y"]}}function de(w,A){return A===void 0&&(A="page"),{point:C(w)?te(w,A):ce(w,A)}}var we=function(w,A){A===void 0&&(A=!1);var V=function(Y){return w(Y,de(Y))};return A?I(V):V},Ce=function(){return B&&window.onpointerdown===null},Me=function(){return B&&window.ontouchstart===null},Be=function(){return B&&window.onmousedown===null},ze={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},$e={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ze(w){return Ce()?w:Me()?$e[w]:Be()?ze[w]:w}function ct(w,A,V,Y){return q(w,Ze(A),we(V,A==="pointerdown"),Y)}function mt(w,A,V,Y){return Q(w,Ze(A),V&&we(V,A==="pointerdown"),Y)}function Pt(w){var A=null;return function(){var V=function(){A=null};return A===null?(A=w,V):!1}}var zt=Pt("dragHorizontal"),Rt=Pt("dragVertical");function Wt(w){var A=!1;if(w==="y")A=Rt();else if(w==="x")A=zt();else{var V=zt(),Y=Rt();V&&Y?A=function(){V(),Y()}:(V&&V(),Y&&Y())}return A}function Rr(){var w=Wt(!0);return w?(w(),!1):!0}function Qn(w,A,V){return function(Y,Z){var se;!ie(Y)||Rr()||((se=w.animationState)===null||se===void 0||se.setActive(e.AnimationType.Hover,A),V==null||V(Y,Z))}}function ms(w){var A=w.onHoverStart,V=w.onHoverEnd,Y=w.whileHover,Z=w.visualElement;mt(Z,"pointerenter",A||Y?Qn(Z,!0,A):void 0,{passive:!A}),mt(Z,"pointerleave",V||Y?Qn(Z,!1,V):void 0,{passive:!V})}var ai=function(w,A){return A?w===A?!0:ai(w,A.parentElement):!1};function sr(w){return r.useEffect(function(){return function(){return w()}},[])}function fr(w){var A=w.onTap,V=w.onTapStart,Y=w.onTapCancel,Z=w.whileTap,se=w.visualElement,le=A||V||Y||Z,ae=r.useRef(!1),pe=r.useRef(null),ve={passive:!(V||A||Y||Ae)};function xe(){var Ie;(Ie=pe.current)===null||Ie===void 0||Ie.call(pe),pe.current=null}function ke(){var Ie;return xe(),ae.current=!1,(Ie=se.animationState)===null||Ie===void 0||Ie.setActive(e.AnimationType.Tap,!1),!Rr()}function Te(Ie,Ue){ke()&&(ai(se.getInstance(),Ie.target)?A==null||A(Ie,Ue):Y==null||Y(Ie,Ue))}function Oe(Ie,Ue){ke()&&(Y==null||Y(Ie,Ue))}function Ae(Ie,Ue){var Je;xe(),!ae.current&&(ae.current=!0,pe.current=l.pipe(ct(window,"pointerup",Te,ve),ct(window,"pointercancel",Oe,ve)),(Je=se.animationState)===null||Je===void 0||Je.setActive(e.AnimationType.Tap,!0),V==null||V(Ie,Ue))}mt(se,"pointerdown",le?Ae:void 0,ve),sr(xe)}var ys=new Set;function sf(w,A,V){w||ys.has(A)||(console.warn(A),V&&console.warn(V),ys.add(A))}var lf=new WeakMap,uf=new WeakMap,W_=function(w){var A;(A=lf.get(w.target))===null||A===void 0||A(w)},B_=function(w){w.forEach(W_)};function H_(w){var A=w.root,V=t.__rest(w,["root"]),Y=A||document;uf.has(Y)||uf.set(Y,{});var Z=uf.get(Y),se=JSON.stringify(V);return Z[se]||(Z[se]=new IntersectionObserver(B_,t.__assign({root:A},V))),Z[se]}function X_(w,A,V){var Y=H_(A);return lf.set(w,V),Y.observe(w),function(){lf.delete(w),Y.unobserve(w)}}function Y_(w){var A=w.visualElement,V=w.whileInView,Y=w.onViewportEnter,Z=w.onViewportLeave,se=w.viewport,le=se===void 0?{}:se,ae=r.useRef({hasEnteredView:!1,isInView:!1}),pe=!!(V||Y||Z);le.once&&ae.current.hasEnteredView&&(pe=!1);var ve=typeof IntersectionObserver>"u"?$_:U_;ve(pe,ae.current,A,le)}var G_={some:0,all:1};function U_(w,A,V,Y){var Z=Y.root,se=Y.margin,le=Y.amount,ae=le===void 0?"some":le,pe=Y.once;r.useEffect(function(){if(w){var ve={root:Z==null?void 0:Z.current,rootMargin:se,threshold:typeof ae=="number"?ae:G_[ae]},xe=function(ke){var Te,Oe=ke.isIntersecting;if(A.isInView!==Oe&&(A.isInView=Oe,!(pe&&!Oe&&A.hasEnteredView))){Oe&&(A.hasEnteredView=!0),(Te=V.animationState)===null||Te===void 0||Te.setActive(e.AnimationType.InView,Oe);var Ae=V.getProps(),Ie=Oe?Ae.onViewportEnter:Ae.onViewportLeave;Ie==null||Ie(ke)}};return X_(V.getInstance(),ve,xe)}},[w,Z,se,ae])}function $_(w,A,V,Y){var Z=Y.fallback,se=Z===void 0?!0:Z;r.useEffect(function(){!w||!se||(D!=="production"&&sf(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var le;A.hasEnteredView=!0;var ae=V.getProps().onViewportEnter;ae==null||ae(null),(le=V.animationState)===null||le===void 0||le.setActive(e.AnimationType.InView,!0)}))},[w])}var Ro=function(w){return function(A){return w(A),null}},Cb={inView:Ro(Y_),tap:Ro(fr),focus:Ro(re),hover:Ro(ms)},q_=0,K_=function(){return q_++},Sb=function(){return We(K_)};function cf(){var w=r.useContext(H);if(w===null)return[!0,null];var A=w.isPresent,V=w.onExitComplete,Y=w.register,Z=Sb();r.useEffect(function(){return Y(Z)},[]);var se=function(){return V==null?void 0:V(Z)};return!A&&V?[!1,se]:[!0]}function Z_(){return Q_(r.useContext(H))}function Q_(w){return w===null?!0:w.isPresent}function kb(w,A){if(!Array.isArray(A))return!1;var V=A.length;if(V!==w.length)return!1;for(var Y=0;Y<V;Y++)if(A[Y]!==w[Y])return!1;return!0}var ru=function(w){return w*1e3},Tb={linear:l.linear,easeIn:l.easeIn,easeInOut:l.easeInOut,easeOut:l.easeOut,circIn:l.circIn,circInOut:l.circInOut,circOut:l.circOut,backIn:l.backIn,backInOut:l.backInOut,backOut:l.backOut,anticipate:l.anticipate,bounceIn:l.bounceIn,bounceInOut:l.bounceInOut,bounceOut:l.bounceOut},Pb=function(w){if(Array.isArray(w)){a.invariant(w.length===4,"Cubic bezier arrays must contain four numerical values.");var A=t.__read(w,4),V=A[0],Y=A[1],Z=A[2],se=A[3];return l.cubicBezier(V,Y,Z,se)}else if(typeof w=="string")return a.invariant(Tb[w]!==void 0,"Invalid easing type '".concat(w,"'")),Tb[w];return w},J_=function(w){return Array.isArray(w)&&typeof w[0]!="number"},_b=function(w,A){return w==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&s.complex.test(A)&&!A.startsWith("url("))},ka=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},nu=function(w){return{type:"spring",stiffness:550,damping:w===0?2*Math.sqrt(550):30,restSpeed:10}},df=function(){return{type:"keyframes",ease:"linear",duration:.3}},eO=function(w){return{type:"keyframes",duration:.8,values:w}},Ob={x:ka,y:ka,z:ka,rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scaleX:nu,scaleY:nu,scale:nu,opacity:df,backgroundColor:df,color:df,default:nu},tO=function(w,A){var V;return c(A)?V=eO:V=Ob[w]||Ob.default,t.__assign({to:A},V(A))},rO=t.__assign(t.__assign({},Un),{color:s.color,backgroundColor:s.color,outlineColor:s.color,fill:s.color,stroke:s.color,borderColor:s.color,borderTopColor:s.color,borderRightColor:s.color,borderBottomColor:s.color,borderLeftColor:s.color,filter:s.filter,WebkitFilter:s.filter}),ff=function(w){return rO[w]};function pf(w,A){var V,Y=ff(w);return Y!==s.filter&&(Y=s.complex),(V=Y.getAnimatableNone)===null||V===void 0?void 0:V.call(Y,A)}var hf={current:!1};function nO(w){w.when,w.delay,w.delayChildren,w.staggerChildren,w.staggerDirection,w.repeat,w.repeatType,w.repeatDelay,w.from;var A=t.__rest(w,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(A).length}var Ab=!1;function oO(w){var A=w.ease,V=w.times,Y=w.yoyo,Z=w.flip,se=w.loop,le=t.__rest(w,["ease","times","yoyo","flip","loop"]),ae=t.__assign({},le);return V&&(ae.offset=V),le.duration&&(ae.duration=ru(le.duration)),le.repeatDelay&&(ae.repeatDelay=ru(le.repeatDelay)),A&&(ae.ease=J_(A)?A.map(Pb):Pb(A)),le.type==="tween"&&(ae.type="keyframes"),(Y||se||Z)&&(a.warning(!Ab,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Ab=!0,Y?ae.repeatType="reverse":se?ae.repeatType="loop":Z&&(ae.repeatType="mirror"),ae.repeat=se||Y||Z||le.repeat),le.type!=="spring"&&(ae.type="keyframes"),ae}function aO(w,A){var V,Y,Z=gf(w,A)||{};return(Y=(V=Z.delay)!==null&&V!==void 0?V:w.delay)!==null&&Y!==void 0?Y:0}function iO(w){return Array.isArray(w.to)&&w.to[0]===null&&(w.to=t.__spreadArray([],t.__read(w.to),!1),w.to[0]=w.from),w}function sO(w,A,V){var Y;return Array.isArray(A.to)&&((Y=w.duration)!==null&&Y!==void 0||(w.duration=.8)),iO(A),nO(w)||(w=t.__assign(t.__assign({},w),tO(V,A.to))),t.__assign(t.__assign({},A),oO(w))}function lO(w,A,V,Y,Z){var se,le=gf(Y,w),ae=(se=le.from)!==null&&se!==void 0?se:A.get(),pe=_b(w,V);ae==="none"&&pe&&typeof V=="string"?ae=pf(w,V):Eb(ae)&&typeof V=="string"?ae=Mb(V):!Array.isArray(V)&&Eb(V)&&typeof ae=="string"&&(V=Mb(ae));var ve=_b(w,ae);a.warning(ve===pe,"You are trying to animate ".concat(w,' from "').concat(ae,'" to "').concat(V,'". ').concat(ae," is not an animatable value - to enable this animation set ").concat(ae," to a value animatable to ").concat(V," via the `style` property."));function xe(){var Te={from:ae,to:V,velocity:A.getVelocity(),onComplete:Z,onUpdate:function(Oe){return A.set(Oe)}};return le.type==="inertia"||le.type==="decay"?l.inertia(t.__assign(t.__assign({},Te),le)):l.animate(t.__assign(t.__assign({},sO(le,Te,w)),{onUpdate:function(Oe){var Ae;Te.onUpdate(Oe),(Ae=le.onUpdate)===null||Ae===void 0||Ae.call(le,Oe)},onComplete:function(){var Oe;Te.onComplete(),(Oe=le.onComplete)===null||Oe===void 0||Oe.call(le)}}))}function ke(){var Te,Oe,Ae=h(V);return A.set(Ae),Z(),(Te=le==null?void 0:le.onUpdate)===null||Te===void 0||Te.call(le,Ae),(Oe=le==null?void 0:le.onComplete)===null||Oe===void 0||Oe.call(le),{stop:function(){}}}return!ve||!pe||le.type===!1?ke:xe}function Eb(w){return w===0||typeof w=="string"&&parseFloat(w)===0&&w.indexOf(" ")===-1}function Mb(w){return typeof w=="number"?0:pf("",w)}function gf(w,A){return w[A]||w.default||w}function bf(w,A,V,Y){return Y===void 0&&(Y={}),hf.current&&(Y={type:!1}),A.start(function(Z){var se,le,ae=lO(w,A,V,Y,Z),pe=aO(Y,w),ve=function(){return le=ae()};return pe?se=window.setTimeout(ve,ru(pe)):ve(),function(){clearTimeout(se),le==null||le.stop()}})}var uO=function(w){return/^\-?\d*\.?\d+$/.test(w)},cO=function(w){return/^0[^.\s]+$/.test(w)};function vf(w,A){w.indexOf(A)===-1&&w.push(A)}function mf(w,A){var V=w.indexOf(A);V>-1&&w.splice(V,1)}function dO(w,A,V){var Y=t.__read(w),Z=Y.slice(0),se=A<0?Z.length+A:A;if(se>=0&&se<Z.length){var le=V<0?Z.length+V:V,ae=t.__read(Z.splice(A,1),1),pe=ae[0];Z.splice(le,0,pe)}return Z}var xs=function(){function w(){this.subscriptions=[]}return w.prototype.add=function(A){var V=this;return vf(this.subscriptions,A),function(){return mf(V.subscriptions,A)}},w.prototype.notify=function(A,V,Y){var Z=this.subscriptions.length;if(Z)if(Z===1)this.subscriptions[0](A,V,Y);else for(var se=0;se<Z;se++){var le=this.subscriptions[se];le&&le(A,V,Y)}},w.prototype.getSize=function(){return this.subscriptions.length},w.prototype.clear=function(){this.subscriptions.length=0},w}(),fO=function(w){return!isNaN(parseFloat(w))},Rb=function(){function w(A){var V=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new xs,this.velocityUpdateSubscribers=new xs,this.renderSubscribers=new xs,this.canTrackVelocity=!1,this.updateAndNotify=function(Y,Z){Z===void 0&&(Z=!0),V.prev=V.current,V.current=Y;var se=f.getFrameData(),le=se.delta,ae=se.timestamp;V.lastUpdated!==ae&&(V.timeDelta=le,V.lastUpdated=ae,F.default.postRender(V.scheduleVelocityCheck)),V.prev!==V.current&&V.updateSubscribers.notify(V.current),V.velocityUpdateSubscribers.getSize()&&V.velocityUpdateSubscribers.notify(V.getVelocity()),Z&&V.renderSubscribers.notify(V.current)},this.scheduleVelocityCheck=function(){return F.default.postRender(V.velocityCheck)},this.velocityCheck=function(Y){var Z=Y.timestamp;Z!==V.lastUpdated&&(V.prev=V.current,V.velocityUpdateSubscribers.notify(V.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=A,this.canTrackVelocity=fO(this.current)}return w.prototype.onChange=function(A){return this.updateSubscribers.add(A)},w.prototype.clearListeners=function(){this.updateSubscribers.clear()},w.prototype.onRenderRequest=function(A){return A(this.get()),this.renderSubscribers.add(A)},w.prototype.attach=function(A){this.passiveEffect=A},w.prototype.set=function(A,V){V===void 0&&(V=!0),!V||!this.passiveEffect?this.updateAndNotify(A,V):this.passiveEffect(A,this.updateAndNotify)},w.prototype.get=function(){return this.current},w.prototype.getPrevious=function(){return this.prev},w.prototype.getVelocity=function(){return this.canTrackVelocity?l.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},w.prototype.start=function(A){var V=this;return this.stop(),new Promise(function(Y){V.hasAnimated=!0,V.stopAnimation=A(Y)}).then(function(){return V.clearAnimation()})},w.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},w.prototype.isAnimating=function(){return!!this.stopAnimation},w.prototype.clearAnimation=function(){this.stopAnimation=null},w.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},w}();function pn(w){return new Rb(w)}var Nb=function(w){return function(A){return A.test(w)}},pO={test:function(w){return w==="auto"},parse:function(w){return w}},Ib=[s.number,s.px,s.percent,s.degrees,s.vw,s.vh,pO],ws=function(w){return Ib.find(Nb(w))},hO=t.__spreadArray(t.__spreadArray([],t.__read(Ib),!1),[s.color,s.complex],!1),gO=function(w){return hO.find(Nb(w))};function bO(w,A,V){w.hasValue(A)?w.getValue(A).set(V):w.addValue(A,pn(V))}function yf(w,A){var V=Le(w,A),Y=V?w.makeTargetAnimatable(V,!1):{},Z=Y.transitionEnd,se=Z===void 0?{}:Z;Y.transition;var le=t.__rest(Y,["transitionEnd","transition"]);le=t.__assign(t.__assign({},le),se);for(var ae in le){var pe=h(le[ae]);bO(w,ae,pe)}}function xf(w,A){var V=t.__spreadArray([],t.__read(A),!1).reverse();V.forEach(function(Y){var Z,se=w.getVariant(Y);se&&yf(w,se),(Z=w.variantChildren)===null||Z===void 0||Z.forEach(function(le){xf(le,A)})})}function vO(w,A){if(Array.isArray(A))return xf(w,A);if(typeof A=="string")return xf(w,[A]);yf(w,A)}function wf(w,A,V){var Y,Z,se,le,ae=Object.keys(A).filter(function(Oe){return!w.hasValue(Oe)}),pe=ae.length;if(pe)for(var ve=0;ve<pe;ve++){var xe=ae[ve],ke=A[xe],Te=null;Array.isArray(ke)&&(Te=ke[0]),Te===null&&(Te=(Z=(Y=V[xe])!==null&&Y!==void 0?Y:w.readValue(xe))!==null&&Z!==void 0?Z:A[xe]),Te!=null&&(typeof Te=="string"&&(uO(Te)||cO(Te))?Te=parseFloat(Te):!gO(Te)&&s.complex.test(ke)&&(Te=pf(xe,ke)),w.addValue(xe,pn(Te)),(se=(le=V)[xe])!==null&&se!==void 0||(le[xe]=Te),w.setBaseTarget(xe,Te))}}function mO(w,A){if(A){var V=A[w]||A.default||A;return V.from}}function Lb(w,A,V){var Y,Z,se={};for(var le in w)se[le]=(Y=mO(le,A))!==null&&Y!==void 0?Y:(Z=V.getValue(le))===null||Z===void 0?void 0:Z.get();return se}function ou(w,A,V){V===void 0&&(V={}),w.notifyAnimationStart(A);var Y;if(Array.isArray(A)){var Z=A.map(function(le){return Cf(w,le,V)});Y=Promise.all(Z)}else if(typeof A=="string")Y=Cf(w,A,V);else{var se=typeof A=="function"?Le(w,A,V.custom):A;Y=jb(w,se,V)}return Y.then(function(){return w.notifyAnimationComplete(A)})}function Cf(w,A,V){var Y;V===void 0&&(V={});var Z=Le(w,A,V.custom),se=(Z||{}).transition,le=se===void 0?w.getDefaultTransition()||{}:se;V.transitionOverride&&(le=V.transitionOverride);var ae=Z?function(){return jb(w,Z,V)}:function(){return Promise.resolve()},pe=!((Y=w.variantChildren)===null||Y===void 0)&&Y.size?function(Oe){Oe===void 0&&(Oe=0);var Ae=le.delayChildren,Ie=Ae===void 0?0:Ae,Ue=le.staggerChildren,Je=le.staggerDirection;return yO(w,A,Ie+Oe,Ue,Je,V)}:function(){return Promise.resolve()},ve=le.when;if(ve){var xe=t.__read(ve==="beforeChildren"?[ae,pe]:[pe,ae],2),ke=xe[0],Te=xe[1];return ke().then(Te)}else return Promise.all([ae(),pe(V.delay)])}function jb(w,A,V){var Y,Z=V===void 0?{}:V,se=Z.delay,le=se===void 0?0:se,ae=Z.transitionOverride,pe=Z.type,ve=w.makeTargetAnimatable(A),xe=ve.transition,ke=xe===void 0?w.getDefaultTransition():xe,Te=ve.transitionEnd,Oe=t.__rest(ve,["transition","transitionEnd"]);ae&&(ke=ae);var Ae=[],Ie=pe&&((Y=w.animationState)===null||Y===void 0?void 0:Y.getState()[pe]);for(var Ue in Oe){var Je=w.getValue(Ue),lt=Oe[Ue];if(!(!Je||lt===void 0||Ie&&CO(Ie,Ue))){var bt=t.__assign({delay:le},ke);w.shouldReduceMotion&&nr(Ue)&&(bt=t.__assign(t.__assign({},bt),{type:!1,delay:0}));var vt=bf(Ue,Je,lt,bt);Ae.push(vt)}}return Promise.all(Ae).then(function(){Te&&yf(w,Te)})}function yO(w,A,V,Y,Z,se){V===void 0&&(V=0),Y===void 0&&(Y=0),Z===void 0&&(Z=1);var le=[],ae=(w.variantChildren.size-1)*Y,pe=Z===1?function(ve){return ve===void 0&&(ve=0),ve*Y}:function(ve){return ve===void 0&&(ve=0),ae-ve*Y};return Array.from(w.variantChildren).sort(wO).forEach(function(ve,xe){le.push(Cf(ve,A,t.__assign(t.__assign({},se),{delay:V+pe(xe)})).then(function(){return ve.notifyAnimationComplete(A)}))}),Promise.all(le)}function xO(w){w.forEachValue(function(A){return A.stop()})}function wO(w,A){return w.sortNodePosition(A)}function CO(w,A){var V=w.protectedKeys,Y=w.needsAnimating,Z=V.hasOwnProperty(A)&&Y[A]!==!0;return Y[A]=!1,Z}var Sf=[e.AnimationType.Animate,e.AnimationType.InView,e.AnimationType.Focus,e.AnimationType.Hover,e.AnimationType.Tap,e.AnimationType.Drag,e.AnimationType.Exit],SO=t.__spreadArray([],t.__read(Sf),!1).reverse(),kO=Sf.length;function TO(w){return function(A){return Promise.all(A.map(function(V){var Y=V.animation,Z=V.options;return ou(w,Y,Z)}))}}function PO(w){var A=TO(w),V=OO(),Y={},Z=!0,se=function(xe,ke){var Te=Le(w,ke);if(Te){Te.transition;var Oe=Te.transitionEnd,Ae=t.__rest(Te,["transition","transitionEnd"]);xe=t.__assign(t.__assign(t.__assign({},xe),Ae),Oe)}return xe};function le(xe){return Y[xe]!==void 0}function ae(xe){A=xe(w)}function pe(xe,ke){for(var Te,Oe=w.getProps(),Ae=w.getVariantContext(!0)||{},Ie=[],Ue=new Set,Je={},lt=1/0,bt=function(Dt){var Ct=SO[Dt],_t=V[Ct],Ut=(Te=Oe[Ct])!==null&&Te!==void 0?Te:Ae[Ct],hn=ye(Ut),Nr=Ct===ke?_t.isActive:null;Nr===!1&&(lt=Dt);var en=Ut===Ae[Ct]&&Ut!==Oe[Ct]&&hn;if(en&&Z&&w.manuallyAnimateOnMount&&(en=!1),_t.protectedKeys=t.__assign({},Je),!_t.isActive&&Nr===null||!Ut&&!_t.prevProp||u(Ut)||typeof Ut=="boolean")return"continue";var jo=_O(_t.prevProp,Ut),Do=jo||Ct===ke&&_t.isActive&&!en&&hn||Dt>lt&&hn,zo=Array.isArray(Ut)?Ut:[Ut],gn=zo.reduce(se,{});Nr===!1&&(gn={});var Ps=_t.prevResolvedValues,li=Ps===void 0?{}:Ps,fu=t.__assign(t.__assign({},li),gn),ui=function(pt){Do=!0,Ue.delete(pt),_t.needsAnimating[pt]=!0};for(var Xr in fu){var Mt=gn[Xr],rt=li[Xr];Je.hasOwnProperty(Xr)||(Mt!==rt?c(Mt)&&c(rt)?!kb(Mt,rt)||jo?ui(Xr):_t.protectedKeys[Xr]=!0:Mt!==void 0?ui(Xr):Ue.add(Xr):Mt!==void 0&&Ue.has(Xr)?ui(Xr):_t.protectedKeys[Xr]=!0)}_t.prevProp=Ut,_t.prevResolvedValues=gn,_t.isActive&&(Je=t.__assign(t.__assign({},Je),gn)),Z&&w.blockInitialAnimation&&(Do=!1),Do&&!en&&Ie.push.apply(Ie,t.__spreadArray([],t.__read(zo.map(function(pt){return{animation:pt,options:t.__assign({type:Ct},xe)}})),!1))},vt=0;vt<kO;vt++)bt(vt);if(Y=t.__assign({},Je),Ue.size){var xt={};Ue.forEach(function(Dt){var Ct=w.getBaseTarget(Dt);Ct!==void 0&&(xt[Dt]=Ct)}),Ie.push({animation:xt})}var It=!!Ie.length;return Z&&Oe.initial===!1&&!w.manuallyAnimateOnMount&&(It=!1),Z=!1,It?A(Ie):Promise.resolve()}function ve(xe,ke,Te){var Oe;if(V[xe].isActive===ke)return Promise.resolve();(Oe=w.variantChildren)===null||Oe===void 0||Oe.forEach(function(Ue){var Je;return(Je=Ue.animationState)===null||Je===void 0?void 0:Je.setActive(xe,ke)}),V[xe].isActive=ke;var Ae=pe(Te,xe);for(var Ie in V)V[Ie].protectedKeys={};return Ae}return{isAnimated:le,animateChanges:pe,setActive:ve,setAnimateFunction:ae,getState:function(){return V}}}function _O(w,A){return typeof A=="string"?A!==w:ge(A)?!kb(A,w):!1}function Ta(w){return w===void 0&&(w=!1),{isActive:w,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OO(){var w;return w={},w[e.AnimationType.Animate]=Ta(!0),w[e.AnimationType.InView]=Ta(),w[e.AnimationType.Hover]=Ta(),w[e.AnimationType.Tap]=Ta(),w[e.AnimationType.Drag]=Ta(),w[e.AnimationType.Focus]=Ta(),w[e.AnimationType.Exit]=Ta(),w}var kf={animation:Ro(function(w){var A=w.visualElement,V=w.animate;A.animationState||(A.animationState=PO(A)),u(V)&&r.useEffect(function(){return V.subscribe(A)},[V])}),exit:Ro(function(w){var A=w.custom,V=w.visualElement,Y=t.__read(cf(),2),Z=Y[0],se=Y[1],le=r.useContext(H);r.useEffect(function(){var ae,pe;V.isPresent=Z;var ve=(ae=V.animationState)===null||ae===void 0?void 0:ae.setActive(e.AnimationType.Exit,!Z,{custom:(pe=le==null?void 0:le.custom)!==null&&pe!==void 0?pe:A});!Z&&(ve==null||ve.then(se))},[Z])})},Db=function(){function w(A,V,Y){var Z=this,se=Y===void 0?{}:Y,le=se.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(Z.lastMoveEvent&&Z.lastMoveEventInfo){var Te=Pf(Z.lastMoveEventInfo,Z.history),Oe=Z.startEvent!==null,Ae=l.distance(Te.offset,{x:0,y:0})>=3;if(!(!Oe&&!Ae)){var Ie=Te.point,Ue=f.getFrameData().timestamp;Z.history.push(t.__assign(t.__assign({},Ie),{timestamp:Ue}));var Je=Z.handlers,lt=Je.onStart,bt=Je.onMove;Oe||(lt&&lt(Z.lastMoveEvent,Te),Z.startEvent=Z.lastMoveEvent),bt&&bt(Z.lastMoveEvent,Te)}}},this.handlePointerMove=function(Te,Oe){if(Z.lastMoveEvent=Te,Z.lastMoveEventInfo=Tf(Oe,Z.transformPagePoint),ie(Te)&&Te.buttons===0){Z.handlePointerUp(Te,Oe);return}F.default.update(Z.updatePoint,!0)},this.handlePointerUp=function(Te,Oe){Z.end();var Ae=Z.handlers,Ie=Ae.onEnd,Ue=Ae.onSessionEnd,Je=Pf(Tf(Oe,Z.transformPagePoint),Z.history);Z.startEvent&&Ie&&Ie(Te,Je),Ue&&Ue(Te,Je)},!(C(A)&&A.touches.length>1)){this.handlers=V,this.transformPagePoint=le;var ae=de(A),pe=Tf(ae,this.transformPagePoint),ve=pe.point,xe=f.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},ve),{timestamp:xe})];var ke=V.onSessionStart;ke&&ke(A,Pf(pe,this.history)),this.removeListeners=l.pipe(ct(window,"pointermove",this.handlePointerMove),ct(window,"pointerup",this.handlePointerUp),ct(window,"pointercancel",this.handlePointerUp))}}return w.prototype.updateHandlers=function(A){this.handlers=A},w.prototype.end=function(){this.removeListeners&&this.removeListeners(),f.cancelSync.update(this.updatePoint)},w}();function Tf(w,A){return A?{point:A(w.point)}:w}function zb(w,A){return{x:w.x-A.x,y:w.y-A.y}}function Pf(w,A){var V=w.point;return{point:V,delta:zb(V,Fb(A)),offset:zb(V,AO(A)),velocity:EO(A,.1)}}function AO(w){return w[0]}function Fb(w){return w[w.length-1]}function EO(w,A){if(w.length<2)return{x:0,y:0};for(var V=w.length-1,Y=null,Z=Fb(w);V>=0&&(Y=w[V],!(Z.timestamp-Y.timestamp>ru(A)));)V--;if(!Y)return{x:0,y:0};var se=(Z.timestamp-Y.timestamp)/1e3;if(se===0)return{x:0,y:0};var le={x:(Z.x-Y.x)/se,y:(Z.y-Y.y)/se};return le.x===1/0&&(le.x=0),le.y===1/0&&(le.y=0),le}function Jn(w){return w.max-w.min}function Vb(w,A,V){return A===void 0&&(A=0),V===void 0&&(V=.01),l.distance(w,A)<V}function Wb(w,A,V,Y){Y===void 0&&(Y=.5),w.origin=Y,w.originPoint=l.mix(A.min,A.max,w.origin),w.scale=Jn(V)/Jn(A),(Vb(w.scale,1,1e-4)||isNaN(w.scale))&&(w.scale=1),w.translate=l.mix(V.min,V.max,w.origin)-w.originPoint,(Vb(w.translate)||isNaN(w.translate))&&(w.translate=0)}function Cs(w,A,V,Y){Wb(w.x,A.x,V.x,Y==null?void 0:Y.originX),Wb(w.y,A.y,V.y,Y==null?void 0:Y.originY)}function Bb(w,A,V){w.min=V.min+A.min,w.max=w.min+Jn(A)}function MO(w,A,V){Bb(w.x,A.x,V.x),Bb(w.y,A.y,V.y)}function Hb(w,A,V){w.min=A.min-V.min,w.max=w.min+Jn(A)}function Ss(w,A,V){Hb(w.x,A.x,V.x),Hb(w.y,A.y,V.y)}function RO(w,A,V){var Y=A.min,Z=A.max;return Y!==void 0&&w<Y?w=V?l.mix(Y,w,V.min):Math.max(w,Y):Z!==void 0&&w>Z&&(w=V?l.mix(Z,w,V.max):Math.min(w,Z)),w}function Xb(w,A,V){return{min:A!==void 0?w.min+A:void 0,max:V!==void 0?w.max+V-(w.max-w.min):void 0}}function NO(w,A){var V=A.top,Y=A.left,Z=A.bottom,se=A.right;return{x:Xb(w.x,Y,se),y:Xb(w.y,V,Z)}}function Yb(w,A){var V,Y=A.min-w.min,Z=A.max-w.max;return A.max-A.min<w.max-w.min&&(V=t.__read([Z,Y],2),Y=V[0],Z=V[1]),{min:Y,max:Z}}function IO(w,A){return{x:Yb(w.x,A.x),y:Yb(w.y,A.y)}}function LO(w,A){var V=.5,Y=Jn(w),Z=Jn(A);return Z>Y?V=l.progress(A.min,A.max-Y,w.min):Y>Z&&(V=l.progress(w.min,w.max-Z,A.min)),l.clamp(0,1,V)}function jO(w,A){var V={};return A.min!==void 0&&(V.min=A.min-w.min),A.max!==void 0&&(V.max=A.max-w.min),V}var _f=.35;function DO(w){return w===void 0&&(w=_f),w===!1?w=0:w===!0&&(w=_f),{x:Gb(w,"left","right"),y:Gb(w,"top","bottom")}}function Gb(w,A,V){return{min:Ub(w,A),max:Ub(w,V)}}function Ub(w,A){var V;return typeof w=="number"?w:(V=w[A])!==null&&V!==void 0?V:0}var $b=function(){return{translate:0,scale:1,origin:0,originPoint:0}},ks=function(){return{x:$b(),y:$b()}},qb=function(){return{min:0,max:0}},pr=function(){return{x:qb(),y:qb()}};function eo(w){return[w("x"),w("y")]}function Kb(w){var A=w.top,V=w.left,Y=w.right,Z=w.bottom;return{x:{min:V,max:Y},y:{min:A,max:Z}}}function zO(w){var A=w.x,V=w.y;return{top:V.min,right:A.max,bottom:V.max,left:A.min}}function FO(w,A){if(!A)return w;var V=A({x:w.left,y:w.top}),Y=A({x:w.right,y:w.bottom});return{top:V.y,left:V.x,bottom:Y.y,right:Y.x}}function Of(w){return w===void 0||w===1}function Zb(w){var A=w.scale,V=w.scaleX,Y=w.scaleY;return!Of(A)||!Of(V)||!Of(Y)}function No(w){return Zb(w)||Qb(w.x)||Qb(w.y)||w.z||w.rotate||w.rotateX||w.rotateY}function Qb(w){return w&&w!=="0%"}function au(w,A,V){var Y=w-V,Z=A*Y;return V+Z}function Jb(w,A,V,Y,Z){return Z!==void 0&&(w=au(w,Z,Y)),au(w,V,Y)+A}function Af(w,A,V,Y,Z){A===void 0&&(A=0),V===void 0&&(V=1),w.min=Jb(w.min,A,V,Y,Z),w.max=Jb(w.max,A,V,Y,Z)}function ev(w,A){var V=A.x,Y=A.y;Af(w.x,V.translate,V.scale,V.originPoint),Af(w.y,Y.translate,Y.scale,Y.originPoint)}function VO(w,A,V,Y){var Z,se;Y===void 0&&(Y=!1);var le=V.length;if(le){A.x=A.y=1;for(var ae,pe,ve=0;ve<le;ve++)ae=V[ve],pe=ae.projectionDelta,((se=(Z=ae.instance)===null||Z===void 0?void 0:Z.style)===null||se===void 0?void 0:se.display)!=="contents"&&(Y&&ae.options.layoutScroll&&ae.scroll&&ae!==ae.root&&ii(w,{x:-ae.scroll.x,y:-ae.scroll.y}),pe&&(A.x*=pe.x.scale,A.y*=pe.y.scale,ev(w,pe)),Y&&No(ae.latestValues)&&ii(w,ae.latestValues))}}function Io(w,A){w.min=w.min+A,w.max=w.max+A}function tv(w,A,V){var Y=t.__read(V,3),Z=Y[0],se=Y[1],le=Y[2],ae=A[le]!==void 0?A[le]:.5,pe=l.mix(w.min,w.max,ae);Af(w,A[Z],A[se],pe,A.scale)}var WO=["x","scaleX","originX"],BO=["y","scaleY","originY"];function ii(w,A){tv(w.x,A,WO),tv(w.y,A,BO)}function rv(w,A){return Kb(FO(w.getBoundingClientRect(),A))}function HO(w,A,V){var Y=rv(w,V),Z=A.scroll;return Z&&(Io(Y.x,Z.x),Io(Y.y,Z.y)),Y}var XO=new WeakMap,YO=function(){function w(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pr(),this.visualElement=A}return w.prototype.start=function(A,V){var Y=this,Z=V===void 0?{}:V,se=Z.snapToCursor,le=se===void 0?!1:se;if(this.visualElement.isPresent!==!1){var ae=function(ke){Y.stopAnimation(),le&&Y.snapToCursor(de(ke,"page").point)},pe=function(ke,Te){var Oe,Ae=Y.getProps(),Ie=Ae.drag,Ue=Ae.dragPropagation,Je=Ae.onDragStart;Ie&&!Ue&&(Y.openGlobalLock&&Y.openGlobalLock(),Y.openGlobalLock=Wt(Ie),!Y.openGlobalLock)||(Y.isDragging=!0,Y.currentDirection=null,Y.resolveConstraints(),Y.visualElement.projection&&(Y.visualElement.projection.isAnimationBlocked=!0,Y.visualElement.projection.target=void 0),eo(function(lt){var bt,vt,xt=Y.getAxisMotionValue(lt).get()||0;if(s.percent.test(xt)){var It=(vt=(bt=Y.visualElement.projection)===null||bt===void 0?void 0:bt.layout)===null||vt===void 0?void 0:vt.actual[lt];if(It){var Dt=Jn(It);xt=Dt*(parseFloat(xt)/100)}}Y.originPoint[lt]=xt}),Je==null||Je(ke,Te),(Oe=Y.visualElement.animationState)===null||Oe===void 0||Oe.setActive(e.AnimationType.Drag,!0))},ve=function(ke,Te){var Oe=Y.getProps(),Ae=Oe.dragPropagation,Ie=Oe.dragDirectionLock,Ue=Oe.onDirectionLock,Je=Oe.onDrag;if(!(!Ae&&!Y.openGlobalLock)){var lt=Te.offset;if(Ie&&Y.currentDirection===null){Y.currentDirection=GO(lt),Y.currentDirection!==null&&(Ue==null||Ue(Y.currentDirection));return}Y.updateAxis("x",Te.point,lt),Y.updateAxis("y",Te.point,lt),Y.visualElement.syncRender(),Je==null||Je(ke,Te)}},xe=function(ke,Te){return Y.stop(ke,Te)};this.panSession=new Db(A,{onSessionStart:ae,onStart:pe,onMove:ve,onSessionEnd:xe},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},w.prototype.stop=function(A,V){var Y=this.isDragging;if(this.cancel(),!!Y){var Z=V.velocity;this.startAnimation(Z);var se=this.getProps().onDragEnd;se==null||se(A,V)}},w.prototype.cancel=function(){var A,V;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(A=this.panSession)===null||A===void 0||A.end(),this.panSession=void 0;var Y=this.getProps().dragPropagation;!Y&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(V=this.visualElement.animationState)===null||V===void 0||V.setActive(e.AnimationType.Drag,!1)},w.prototype.updateAxis=function(A,V,Y){var Z=this.getProps().drag;if(!(!Y||!iu(A,Z,this.currentDirection))){var se=this.getAxisMotionValue(A),le=this.originPoint[A]+Y[A];this.constraints&&this.constraints[A]&&(le=RO(le,this.constraints[A],this.elastic[A])),se.set(le)}},w.prototype.resolveConstraints=function(){var A=this,V=this.getProps(),Y=V.dragConstraints,Z=V.dragElastic,se=(this.visualElement.projection||{}).layout,le=this.constraints;Y&&be(Y)?this.constraints||(this.constraints=this.resolveRefConstraints()):Y&&se?this.constraints=NO(se.actual,Y):this.constraints=!1,this.elastic=DO(Z),le!==this.constraints&&se&&this.constraints&&!this.hasMutatedConstraints&&eo(function(ae){A.getAxisMotionValue(ae)&&(A.constraints[ae]=jO(se.actual[ae],A.constraints[ae]))})},w.prototype.resolveRefConstraints=function(){var A=this.getProps(),V=A.dragConstraints,Y=A.onMeasureDragConstraints;if(!V||!be(V))return!1;var Z=V.current;a.invariant(Z!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var se=this.visualElement.projection;if(!se||!se.layout)return!1;var le=HO(Z,se.root,this.visualElement.getTransformPagePoint()),ae=IO(se.layout.actual,le);if(Y){var pe=Y(zO(ae));this.hasMutatedConstraints=!!pe,pe&&(ae=Kb(pe))}return ae},w.prototype.startAnimation=function(A){var V=this,Y=this.getProps(),Z=Y.drag,se=Y.dragMomentum,le=Y.dragElastic,ae=Y.dragTransition,pe=Y.dragSnapToOrigin,ve=Y.onDragTransitionEnd,xe=this.constraints||{},ke=eo(function(Te){var Oe;if(iu(Te,Z,V.currentDirection)){var Ae=(Oe=xe==null?void 0:xe[Te])!==null&&Oe!==void 0?Oe:{};pe&&(Ae={min:0,max:0});var Ie=le?200:1e6,Ue=le?40:1e7,Je=t.__assign(t.__assign({type:"inertia",velocity:se?A[Te]:0,bounceStiffness:Ie,bounceDamping:Ue,timeConstant:750,restDelta:1,restSpeed:10},ae),Ae);return V.startAxisValueAnimation(Te,Je)}});return Promise.all(ke).then(ve)},w.prototype.startAxisValueAnimation=function(A,V){var Y=this.getAxisMotionValue(A);return bf(A,Y,0,V)},w.prototype.stopAnimation=function(){var A=this;eo(function(V){return A.getAxisMotionValue(V).stop()})},w.prototype.getAxisMotionValue=function(A){var V,Y,Z="_drag"+A.toUpperCase(),se=this.visualElement.getProps()[Z];return se||this.visualElement.getValue(A,(Y=(V=this.visualElement.getProps().initial)===null||V===void 0?void 0:V[A])!==null&&Y!==void 0?Y:0)},w.prototype.snapToCursor=function(A){var V=this;eo(function(Y){var Z=V.getProps().drag;if(iu(Y,Z,V.currentDirection)){var se=V.visualElement.projection,le=V.getAxisMotionValue(Y);if(se&&se.layout){var ae=se.layout.actual[Y],pe=ae.min,ve=ae.max;le.set(A[Y]-l.mix(pe,ve,.5))}}})},w.prototype.scalePositionWithinConstraints=function(){var A=this,V,Y=this.getProps(),Z=Y.drag,se=Y.dragConstraints,le=this.visualElement.projection;if(!(!be(se)||!le||!this.constraints)){this.stopAnimation();var ae={x:0,y:0};eo(function(ve){var xe=A.getAxisMotionValue(ve);if(xe){var ke=xe.get();ae[ve]=LO({min:ke,max:ke},A.constraints[ve])}});var pe=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=pe?pe({},""):"none",(V=le.root)===null||V===void 0||V.updateScroll(),le.updateLayout(),this.resolveConstraints(),eo(function(ve){if(iu(ve,Z,null)){var xe=A.getAxisMotionValue(ve),ke=A.constraints[ve],Te=ke.min,Oe=ke.max;xe.set(l.mix(Te,Oe,ae[ve]))}})}},w.prototype.addListeners=function(){var A=this,V;XO.set(this.visualElement,this);var Y=this.visualElement.getInstance(),Z=ct(Y,"pointerdown",function(ve){var xe=A.getProps(),ke=xe.drag,Te=xe.dragListener,Oe=Te===void 0?!0:Te;ke&&Oe&&A.start(ve)}),se=function(){var ve=A.getProps().dragConstraints;be(ve)&&(A.constraints=A.resolveRefConstraints())},le=this.visualElement.projection,ae=le.addEventListener("measure",se);le&&!le.layout&&((V=le.root)===null||V===void 0||V.updateScroll(),le.updateLayout()),se();var pe=q(window,"resize",function(){return A.scalePositionWithinConstraints()});return le.addEventListener("didUpdate",function(ve){var xe=ve.delta,ke=ve.hasLayoutChanged;A.isDragging&&ke&&(eo(function(Te){var Oe=A.getAxisMotionValue(Te);Oe&&(A.originPoint[Te]+=xe[Te].translate,Oe.set(Oe.get()+xe[Te].translate))}),A.visualElement.syncRender())}),function(){pe(),Z(),ae()}},w.prototype.getProps=function(){var A=this.visualElement.getProps(),V=A.drag,Y=V===void 0?!1:V,Z=A.dragDirectionLock,se=Z===void 0?!1:Z,le=A.dragPropagation,ae=le===void 0?!1:le,pe=A.dragConstraints,ve=pe===void 0?!1:pe,xe=A.dragElastic,ke=xe===void 0?_f:xe,Te=A.dragMomentum,Oe=Te===void 0?!0:Te;return t.__assign(t.__assign({},A),{drag:Y,dragDirectionLock:se,dragPropagation:ae,dragConstraints:ve,dragElastic:ke,dragMomentum:Oe})},w}();function iu(w,A,V){return(A===!0||A===w)&&(V===null||V===w)}function GO(w,A){A===void 0&&(A=10);var V=null;return Math.abs(w.y)>A?V="y":Math.abs(w.x)>A&&(V="x"),V}function UO(w){var A=w.dragControls,V=w.visualElement,Y=We(function(){return new YO(V)});r.useEffect(function(){return A&&A.subscribe(Y)},[Y,A]),r.useEffect(function(){return Y.addListeners()},[Y])}function $O(w){var A=w.onPan,V=w.onPanStart,Y=w.onPanEnd,Z=w.onPanSessionStart,se=w.visualElement,le=A||V||Y||Z,ae=r.useRef(null),pe=r.useContext(_).transformPagePoint,ve={onSessionStart:Z,onStart:V,onMove:A,onEnd:function(ke,Te){ae.current=null,Y&&Y(ke,Te)}};r.useEffect(function(){ae.current!==null&&ae.current.updateHandlers(ve)});function xe(ke){ae.current=new Db(ke,ve,{transformPagePoint:pe})}mt(se,"pointerdown",le&&xe),sr(function(){return ae.current&&ae.current.end()})}var nv={pan:Ro($O),drag:Ro(UO)},su=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function qO(){var w=su.map(function(){return new xs}),A={},V={clearAllListeners:function(){return w.forEach(function(Y){return Y.clear()})},updatePropListeners:function(Y){su.forEach(function(Z){var se,le="on"+Z,ae=Y[le];(se=A[Z])===null||se===void 0||se.call(A),ae&&(A[Z]=V[le](ae))})}};return w.forEach(function(Y,Z){V["on"+su[Z]]=function(se){return Y.add(se)},V["notify"+su[Z]]=function(){for(var se=[],le=0;le<arguments.length;le++)se[le]=arguments[le];return Y.notify.apply(Y,t.__spreadArray([],t.__read(se),!1))}}),V}function KO(w,A,V){var Y;for(var Z in A){var se=A[Z],le=V[Z];if(Kt(se))w.addValue(Z,se);else if(Kt(le))w.addValue(Z,pn(se));else if(le!==se)if(w.hasValue(Z)){var ae=w.getValue(Z);!ae.hasAnimated&&ae.set(se)}else w.addValue(Z,pn((Y=w.getStaticValue(Z))!==null&&Y!==void 0?Y:se))}for(var Z in V)A[Z]===void 0&&w.removeValue(Z);return A}var lu=function(w){var A=w.treeType,V=A===void 0?"":A,Y=w.build,Z=w.getBaseTarget,se=w.makeTargetAnimatable,le=w.measureViewportBox,ae=w.render,pe=w.readValueFromInstance,ve=w.removeValueFromRenderState,xe=w.sortNodePosition,ke=w.scrapeMotionValuesFromProps;return function(Te,Oe){var Ae=Te.parent,Ie=Te.props,Ue=Te.presenceId,Je=Te.blockInitialAnimation,lt=Te.visualState,bt=Te.shouldReduceMotion;Oe===void 0&&(Oe={});var vt=!1,xt=lt.latestValues,It=lt.renderState,Dt,Ct=qO(),_t=new Map,Ut=new Map,hn={},Nr=t.__assign({},xt),en;function jo(){!Dt||!vt||(Do(),ae(Dt,It,Ie.style,Mt.projection))}function Do(){Y(Mt,It,xt,Oe,Ie)}function zo(){Ct.notifyUpdate(xt)}function gn(rt,pt){var Ir=pt.onChange(function(pu){xt[rt]=pu,Ie.onUpdate&&F.default.update(zo,!1,!0)}),_s=pt.onRenderRequest(Mt.scheduleRender);Ut.set(rt,function(){Ir(),_s()})}var Ps=ke(Ie);for(var li in Ps){var fu=Ps[li];xt[li]!==void 0&&Kt(fu)&&fu.set(xt[li],!1)}var ui=Pe(Ie),Xr=Xe(Ie),Mt=t.__assign(t.__assign({treeType:V,current:null,depth:Ae?Ae.depth+1:0,parent:Ae,children:new Set,presenceId:Ue,shouldReduceMotion:bt,variantChildren:Xr?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(Ae!=null&&Ae.isMounted()),blockInitialAnimation:Je,isMounted:function(){return!!Dt},mount:function(rt){vt=!0,Dt=Mt.current=rt,Mt.projection&&Mt.projection.mount(rt),Xr&&Ae&&!ui&&(en=Ae==null?void 0:Ae.addVariantChild(Mt)),_t.forEach(function(pt,Ir){return gn(Ir,pt)}),Ae==null||Ae.children.add(Mt),Mt.setProps(Ie)},unmount:function(){var rt;(rt=Mt.projection)===null||rt===void 0||rt.unmount(),f.cancelSync.update(zo),f.cancelSync.render(jo),Ut.forEach(function(pt){return pt()}),en==null||en(),Ae==null||Ae.children.delete(Mt),Ct.clearAllListeners(),Dt=void 0,vt=!1},addVariantChild:function(rt){var pt,Ir=Mt.getClosestVariantNode();if(Ir)return(pt=Ir.variantChildren)===null||pt===void 0||pt.add(rt),function(){return Ir.variantChildren.delete(rt)}},sortNodePosition:function(rt){return!xe||V!==rt.treeType?0:xe(Mt.getInstance(),rt.getInstance())},getClosestVariantNode:function(){return Xr?Mt:Ae==null?void 0:Ae.getClosestVariantNode()},getLayoutId:function(){return Ie.layoutId},getInstance:function(){return Dt},getStaticValue:function(rt){return xt[rt]},setStaticValue:function(rt,pt){return xt[rt]=pt},getLatestValues:function(){return xt},setVisibility:function(rt){Mt.isVisible!==rt&&(Mt.isVisible=rt,Mt.scheduleRender())},makeTargetAnimatable:function(rt,pt){return pt===void 0&&(pt=!0),se(Mt,rt,Ie,pt)},measureViewportBox:function(){return le(Dt,Ie)},addValue:function(rt,pt){Mt.hasValue(rt)&&Mt.removeValue(rt),_t.set(rt,pt),xt[rt]=pt.get(),gn(rt,pt)},removeValue:function(rt){var pt;_t.delete(rt),(pt=Ut.get(rt))===null||pt===void 0||pt(),Ut.delete(rt),delete xt[rt],ve(rt,It)},hasValue:function(rt){return _t.has(rt)},getValue:function(rt,pt){var Ir=_t.get(rt);return Ir===void 0&&pt!==void 0&&(Ir=pn(pt),Mt.addValue(rt,Ir)),Ir},forEachValue:function(rt){return _t.forEach(rt)},readValue:function(rt){var pt;return(pt=xt[rt])!==null&&pt!==void 0?pt:pe(Dt,rt,Oe)},setBaseTarget:function(rt,pt){Nr[rt]=pt},getBaseTarget:function(rt){if(Z){var pt=Z(Ie,rt);if(pt!==void 0&&!Kt(pt))return pt}return Nr[rt]}},Ct),{build:function(){return Do(),It},scheduleRender:function(){F.default.render(jo,!1,!0)},syncRender:jo,setProps:function(rt){(rt.transformTemplate||Ie.transformTemplate)&&Mt.scheduleRender(),Ie=rt,Ct.updatePropListeners(rt),hn=KO(Mt,ke(Ie),hn)},getProps:function(){return Ie},getVariant:function(rt){var pt;return(pt=Ie.variants)===null||pt===void 0?void 0:pt[rt]},getDefaultTransition:function(){return Ie.transition},getTransformPagePoint:function(){return Ie.transformPagePoint},getVariantContext:function(rt){if(rt===void 0&&(rt=!1),rt)return Ae==null?void 0:Ae.getVariantContext();if(!ui){var pt=(Ae==null?void 0:Ae.getVariantContext())||{};return Ie.initial!==void 0&&(pt.initial=Ie.initial),pt}for(var Ir={},_s=0;_s<ZO;_s++){var pu=ov[_s],Ff=Ie[pu];(ye(Ff)||Ff===!1)&&(Ir[pu]=Ff)}return Ir}});return Mt}},ov=t.__spreadArray(["initial"],t.__read(Sf),!1),ZO=ov.length;function Ef(w){return typeof w=="string"&&w.startsWith("var(--")}var av=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function QO(w){var A=av.exec(w);if(!A)return[,];var V=t.__read(A,3),Y=V[1],Z=V[2];return[Y,Z]}var JO=4;function Mf(w,A,V){V===void 0&&(V=1),a.invariant(V<=JO,'Max CSS variable fallback depth detected in property "'.concat(w,'". This may indicate a circular fallback dependency.'));var Y=t.__read(QO(w),2),Z=Y[0],se=Y[1];if(Z){var le=window.getComputedStyle(A).getPropertyValue(Z);return le?le.trim():Ef(se)?Mf(se,A,V+1):se}}function eA(w,A,V){var Y,Z=t.__rest(A,[]),se=w.getInstance();if(!(se instanceof Element))return{target:Z,transitionEnd:V};V&&(V=t.__assign({},V)),w.forEachValue(function(ve){var xe=ve.get();if(Ef(xe)){var ke=Mf(xe,se);ke&&ve.set(ke)}});for(var le in Z){var ae=Z[le];if(Ef(ae)){var pe=Mf(ae,se);pe&&(Z[le]=pe,V&&((Y=V[le])!==null&&Y!==void 0||(V[le]=ae)))}}return{target:Z,transitionEnd:V}}var tA=new Set(["width","height","top","left","right","bottom","x","y"]),iv=function(w){return tA.has(w)},rA=function(w){return Object.keys(w).some(iv)},sv=function(w,A){w.set(A,!1),w.set(A)},uu=function(w){return w===s.number||w===s.px},lv;(function(w){w.width="width",w.height="height",w.left="left",w.right="right",w.top="top",w.bottom="bottom"})(lv||(lv={}));var uv=function(w,A){return parseFloat(w.split(", ")[A])},cv=function(w,A){return function(V,Y){var Z=Y.transform;if(Z==="none"||!Z)return 0;var se=Z.match(/^matrix3d\((.+)\)$/);if(se)return uv(se[1],A);var le=Z.match(/^matrix\((.+)\)$/);return le?uv(le[1],w):0}},nA=new Set(["x","y","z"]),oA=gt.filter(function(w){return!nA.has(w)});function aA(w){var A=[];return oA.forEach(function(V){var Y=w.getValue(V);Y!==void 0&&(A.push([V,Y.get()]),Y.set(V.startsWith("scale")?1:0))}),A.length&&w.syncRender(),A}var dv={width:function(w,A){var V=w.x,Y=A.paddingLeft,Z=Y===void 0?"0":Y,se=A.paddingRight,le=se===void 0?"0":se;return V.max-V.min-parseFloat(Z)-parseFloat(le)},height:function(w,A){var V=w.y,Y=A.paddingTop,Z=Y===void 0?"0":Y,se=A.paddingBottom,le=se===void 0?"0":se;return V.max-V.min-parseFloat(Z)-parseFloat(le)},top:function(w,A){var V=A.top;return parseFloat(V)},left:function(w,A){var V=A.left;return parseFloat(V)},bottom:function(w,A){var V=w.y,Y=A.top;return parseFloat(Y)+(V.max-V.min)},right:function(w,A){var V=w.x,Y=A.left;return parseFloat(Y)+(V.max-V.min)},x:cv(4,13),y:cv(5,14)},iA=function(w,A,V){var Y=A.measureViewportBox(),Z=A.getInstance(),se=getComputedStyle(Z),le=se.display,ae={};le==="none"&&A.setStaticValue("display",w.display||"block"),V.forEach(function(ve){ae[ve]=dv[ve](Y,se)}),A.syncRender();var pe=A.measureViewportBox();return V.forEach(function(ve){var xe=A.getValue(ve);sv(xe,ae[ve]),w[ve]=dv[ve](pe,se)}),w},sA=function(w,A,V,Y){V===void 0&&(V={}),Y===void 0&&(Y={}),A=t.__assign({},A),Y=t.__assign({},Y);var Z=Object.keys(A).filter(iv),se=[],le=!1,ae=[];if(Z.forEach(function(xe){var ke=w.getValue(xe);if(w.hasValue(xe)){var Te=V[xe],Oe=ws(Te),Ae=A[xe],Ie;if(c(Ae)){var Ue=Ae.length,Je=Ae[0]===null?1:0;Te=Ae[Je],Oe=ws(Te);for(var lt=Je;lt<Ue;lt++)Ie?a.invariant(ws(Ae[lt])===Ie,"All keyframes must be of the same type"):(Ie=ws(Ae[lt]),a.invariant(Ie===Oe||uu(Oe)&&uu(Ie),"Keyframes must be of the same dimension as the current value"))}else Ie=ws(Ae);if(Oe!==Ie)if(uu(Oe)&&uu(Ie)){var bt=ke.get();typeof bt=="string"&&ke.set(parseFloat(bt)),typeof Ae=="string"?A[xe]=parseFloat(Ae):Array.isArray(Ae)&&Ie===s.px&&(A[xe]=Ae.map(parseFloat))}else Oe!=null&&Oe.transform&&(Ie!=null&&Ie.transform)&&(Te===0||Ae===0)?Te===0?ke.set(Ie.transform(Te)):A[xe]=Oe.transform(Ae):(le||(se=aA(w),le=!0),ae.push(xe),Y[xe]=Y[xe]!==void 0?Y[xe]:A[xe],sv(ke,Ae))}}),ae.length){var pe=ae.indexOf("height")>=0?window.pageYOffset:null,ve=iA(A,w,ae);return se.length&&se.forEach(function(xe){var ke=t.__read(xe,2),Te=ke[0],Oe=ke[1];w.getValue(Te).set(Oe)}),w.syncRender(),pe!==null&&window.scrollTo({top:pe}),{target:ve,transitionEnd:Y}}else return{target:A,transitionEnd:Y}};function lA(w,A,V,Y){return rA(A)?sA(w,A,V,Y):{target:A,transitionEnd:Y}}var uA=function(w,A,V,Y){var Z=eA(w,A,Y);return A=Z.target,Y=Z.transitionEnd,lA(w,A,V,Y)};function cA(w){return window.getComputedStyle(w)}var fv={treeType:"dom",readValueFromInstance:function(w,A){if(nr(A)){var V=ff(A);return V&&V.default||0}else{var Y=cA(w);return(va(A)?Y.getPropertyValue(A):Y[A])||0}},sortNodePosition:function(w,A){return w.compareDocumentPosition(A)&2?1:-1},getBaseTarget:function(w,A){var V;return(V=w.style)===null||V===void 0?void 0:V[A]},measureViewportBox:function(w,A){var V=A.transformPagePoint;return rv(w,V)},resetTransform:function(w,A,V){var Y=V.transformTemplate;A.style.transform=Y?Y({},""):"none",w.scheduleRender()},restoreTransform:function(w,A){w.style.transform=A.style.transform},removeValueFromRenderState:function(w,A){var V=A.vars,Y=A.style;delete V[w],delete Y[w]},makeTargetAnimatable:function(w,A,V,Y){var Z=V.transformValues;Y===void 0&&(Y=!0);var se=A.transition,le=A.transitionEnd,ae=t.__rest(A,["transition","transitionEnd"]),pe=Lb(ae,se||{},w);if(Z&&(le&&(le=Z(le)),ae&&(ae=Z(ae)),pe&&(pe=Z(pe))),Y){wf(w,ae,pe);var ve=uA(w,ae,pe,le);le=ve.transitionEnd,ae=ve.target}return t.__assign({transition:se,transitionEnd:le},ae)},scrapeMotionValuesFromProps:o,build:function(w,A,V,Y,Z){w.isVisible!==void 0&&(A.style.visibility=w.isVisible?"visible":"hidden"),uo(A,V,Y,Z.transformTemplate)},render:oi},dA=lu(fv),fA=lu(t.__assign(t.__assign({},fv),{getBaseTarget:function(w,A){return w[A]},readValueFromInstance:function(w,A){var V;return nr(A)?((V=ff(A))===null||V===void 0?void 0:V.default)||0:(A=J.has(A)?A:po(A),w.getAttribute(A))},scrapeMotionValuesFromProps:i,build:function(w,A,V,Y,Z){wa(A,V,Y,Z.transformTemplate)},render:n})),Rf=function(w,A){return Ye(w)?fA(A,{enableHardwareAcceleration:!1}):dA(A,{enableHardwareAcceleration:!0})};function pv(w,A){return A.max===A.min?0:w/(A.max-A.min)*100}var Ts={correct:function(w,A){if(!A.target)return w;if(typeof w=="string")if(s.px.test(w))w=parseFloat(w);else return w;var V=pv(w,A.target.x),Y=pv(w,A.target.y);return"".concat(V,"% ").concat(Y,"%")}},hv="_$css",pA={correct:function(w,A){var V=A.treeScale,Y=A.projectionDelta,Z=w,se=w.includes("var("),le=[];se&&(w=w.replace(av,function(Ie){return le.push(Ie),hv}));var ae=s.complex.parse(w);if(ae.length>5)return Z;var pe=s.complex.createTransformer(w),ve=typeof ae[0]!="number"?1:0,xe=Y.x.scale*V.x,ke=Y.y.scale*V.y;ae[0+ve]/=xe,ae[1+ve]/=ke;var Te=l.mix(xe,ke,.5);typeof ae[2+ve]=="number"&&(ae[2+ve]/=Te),typeof ae[3+ve]=="number"&&(ae[3+ve]/=Te);var Oe=pe(ae);if(se){var Ae=0;Oe=Oe.replace(hv,function(){var Ie=le[Ae];return Ae++,Ie})}return Oe}},hA=function(w){t.__extends(A,w);function A(){return w!==null&&w.apply(this,arguments)||this}return A.prototype.componentDidMount=function(){var V=this,Y=this.props,Z=Y.visualElement,se=Y.layoutGroup,le=Y.switchLayoutGroup,ae=Y.layoutId,pe=Z.projection;dt(bA),pe&&(se!=null&&se.group&&se.group.add(pe),le!=null&&le.register&&ae&&le.register(pe),pe.root.didUpdate(),pe.addEventListener("animationComplete",function(){V.safeToRemove()}),pe.setOptions(t.__assign(t.__assign({},pe.options),{onExitComplete:function(){return V.safeToRemove()}}))),Ke.hasEverUpdated=!0},A.prototype.getSnapshotBeforeUpdate=function(V){var Y=this,Z=this.props,se=Z.layoutDependency,le=Z.visualElement,ae=Z.drag,pe=Z.isPresent,ve=le.projection;return ve&&(ve.isPresent=pe,ae||V.layoutDependency!==se||se===void 0?ve.willUpdate():this.safeToRemove(),V.isPresent!==pe&&(pe?ve.promote():ve.relegate()||F.default.postRender(function(){var xe;!((xe=ve.getStack())===null||xe===void 0)&&xe.members.length||Y.safeToRemove()}))),null},A.prototype.componentDidUpdate=function(){var V=this.props.visualElement.projection;V&&(V.root.didUpdate(),!V.currentAnimation&&V.isLead()&&this.safeToRemove())},A.prototype.componentWillUnmount=function(){var V=this.props,Y=V.visualElement,Z=V.layoutGroup,se=V.switchLayoutGroup,le=Y.projection;le&&(le.scheduleCheckAfterUnmount(),Z!=null&&Z.group&&Z.group.remove(le),se!=null&&se.deregister&&se.deregister(le))},A.prototype.safeToRemove=function(){var V=this.props.safeToRemove;V==null||V()},A.prototype.render=function(){return null},A}(j.default.Component);function gA(w){var A=t.__read(cf(),2),V=A[0],Y=A[1],Z=r.useContext(qe);return j.default.createElement(hA,t.__assign({},w,{layoutGroup:Z,switchLayoutGroup:r.useContext(st),isPresent:V,safeToRemove:Y}))}var bA={borderRadius:t.__assign(t.__assign({},Ts),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ts,borderTopRightRadius:Ts,borderBottomLeftRadius:Ts,borderBottomRightRadius:Ts,boxShadow:pA},gv={measureLayout:gA};function bv(w,A,V){V===void 0&&(V={});var Y=Kt(w)?w:pn(w);return bf("",Y,A,V),{stop:function(){return Y.stop()},isAnimating:function(){return Y.isAnimating()}}}var vv=["TopLeft","TopRight","BottomLeft","BottomRight"],vA=vv.length,mv=function(w){return typeof w=="string"?parseFloat(w):w},yv=function(w){return typeof w=="number"||s.px.test(w)};function mA(w,A,V,Y,Z,se){var le,ae,pe,ve;Z?(w.opacity=l.mix(0,(le=V.opacity)!==null&&le!==void 0?le:1,yA(Y)),w.opacityExit=l.mix((ae=A.opacity)!==null&&ae!==void 0?ae:1,0,xA(Y))):se&&(w.opacity=l.mix((pe=A.opacity)!==null&&pe!==void 0?pe:1,(ve=V.opacity)!==null&&ve!==void 0?ve:1,Y));for(var xe=0;xe<vA;xe++){var ke="border".concat(vv[xe],"Radius"),Te=xv(A,ke),Oe=xv(V,ke);if(!(Te===void 0&&Oe===void 0)){Te||(Te=0),Oe||(Oe=0);var Ae=Te===0||Oe===0||yv(Te)===yv(Oe);Ae?(w[ke]=Math.max(l.mix(mv(Te),mv(Oe),Y),0),(s.percent.test(Oe)||s.percent.test(Te))&&(w[ke]+="%")):w[ke]=Oe}}(A.rotate||V.rotate)&&(w.rotate=l.mix(A.rotate||0,V.rotate||0,Y))}function xv(w,A){var V;return(V=w[A])!==null&&V!==void 0?V:w.borderRadius}var yA=wv(0,.5,l.circOut),xA=wv(.5,.95,l.linear);function wv(w,A,V){return function(Y){return Y<w?0:Y>A?1:V(l.progress(w,A,Y))}}function Cv(w,A){w.min=A.min,w.max=A.max}function An(w,A){Cv(w.x,A.x),Cv(w.y,A.y)}function Sv(w,A,V,Y,Z){return w-=A,w=au(w,1/V,Y),Z!==void 0&&(w=au(w,1/Z,Y)),w}function wA(w,A,V,Y,Z,se,le){if(A===void 0&&(A=0),V===void 0&&(V=1),Y===void 0&&(Y=.5),se===void 0&&(se=w),le===void 0&&(le=w),s.percent.test(A)){A=parseFloat(A);var ae=l.mix(le.min,le.max,A/100);A=ae-le.min}if(typeof A=="number"){var pe=l.mix(se.min,se.max,Y);w===se&&(pe-=A),w.min=Sv(w.min,A,V,pe,Z),w.max=Sv(w.max,A,V,pe,Z)}}function kv(w,A,V,Y,Z){var se=t.__read(V,3),le=se[0],ae=se[1],pe=se[2];wA(w,A[le],A[ae],A[pe],A.scale,Y,Z)}var CA=["x","scaleX","originX"],SA=["y","scaleY","originY"];function Tv(w,A,V,Y){kv(w.x,A,CA,V==null?void 0:V.x,Y==null?void 0:Y.x),kv(w.y,A,SA,V==null?void 0:V.y,Y==null?void 0:Y.y)}function Pv(w){return w.translate===0&&w.scale===1}function _v(w){return Pv(w.x)&&Pv(w.y)}function Ov(w,A){return w.x.min===A.x.min&&w.x.max===A.x.max&&w.y.min===A.y.min&&w.y.max===A.y.max}var kA=function(){function w(){this.members=[]}return w.prototype.add=function(A){vf(this.members,A),A.scheduleRender()},w.prototype.remove=function(A){if(mf(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){var V=this.members[this.members.length-1];V&&this.promote(V)}},w.prototype.relegate=function(A){var V=this.members.findIndex(function(le){return A===le});if(V===0)return!1;for(var Y,Z=V;Z>=0;Z--){var se=this.members[Z];if(se.isPresent!==!1){Y=se;break}}return Y?(this.promote(Y),!0):!1},w.prototype.promote=function(A,V){var Y,Z=this.lead;if(A!==Z&&(this.prevLead=Z,this.lead=A,A.show(),Z)){Z.instance&&Z.scheduleRender(),A.scheduleRender(),A.resumeFrom=Z,V&&(A.resumeFrom.preserveOpacity=!0),Z.snapshot&&(A.snapshot=Z.snapshot,A.snapshot.latestValues=Z.animationValues||Z.latestValues,A.snapshot.isShared=!0),!((Y=A.root)===null||Y===void 0)&&Y.isUpdating&&(A.isLayoutDirty=!0);var se=A.options.crossfade;se===!1&&Z.hide()}},w.prototype.exitAnimationComplete=function(){this.members.forEach(function(A){var V,Y,Z,se,le;(Y=(V=A.options).onExitComplete)===null||Y===void 0||Y.call(V),(le=(Z=A.resumingFrom)===null||Z===void 0?void 0:(se=Z.options).onExitComplete)===null||le===void 0||le.call(se)})},w.prototype.scheduleRender=function(){this.members.forEach(function(A){A.instance&&A.scheduleRender(!1)})},w.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},w}(),TA="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Av(w,A,V){var Y=w.x.translate/A.x,Z=w.y.translate/A.y,se="translate3d(".concat(Y,"px, ").concat(Z,"px, 0) ");if(se+="scale(".concat(1/A.x,", ").concat(1/A.y,") "),V){var le=V.rotate,ae=V.rotateX,pe=V.rotateY;le&&(se+="rotate(".concat(le,"deg) ")),ae&&(se+="rotateX(".concat(ae,"deg) ")),pe&&(se+="rotateY(".concat(pe,"deg) "))}var ve=w.x.scale*A.x,xe=w.y.scale*A.y;return se+="scale(".concat(ve,", ").concat(xe,")"),se===TA?"none":se}var PA=function(w,A){return w.depth-A.depth},Ev=function(){function w(){this.children=[],this.isDirty=!1}return w.prototype.add=function(A){vf(this.children,A),this.isDirty=!0},w.prototype.remove=function(A){mf(this.children,A),this.isDirty=!0},w.prototype.forEach=function(A){this.isDirty&&this.children.sort(PA),this.isDirty=!1,this.children.forEach(A)},w}(),Mv=1e3;function Rv(w){var A=w.attachResizeListener,V=w.defaultParent,Y=w.measureScroll,Z=w.checkIsScrollRoot,se=w.resetTransform;return function(){function le(ae,pe,ve){var xe=this;pe===void 0&&(pe={}),ve===void 0&&(ve=V==null?void 0:V()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){xe.isUpdating&&(xe.isUpdating=!1,xe.clearAllSnapshots())},this.updateProjection=function(){xe.nodes.forEach(RA),xe.nodes.forEach(NA)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=ae,this.latestValues=pe,this.root=ve?ve.root||ve:this,this.path=ve?t.__spreadArray(t.__spreadArray([],t.__read(ve.path),!1),[ve],!1):[],this.parent=ve,this.depth=ve?ve.depth+1:0,ae&&this.root.registerPotentialNode(ae,this);for(var ke=0;ke<this.path.length;ke++)this.path[ke].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ev)}return le.prototype.addEventListener=function(ae,pe){return this.eventHandlers.has(ae)||this.eventHandlers.set(ae,new xs),this.eventHandlers.get(ae).add(pe)},le.prototype.notifyListeners=function(ae){for(var pe=[],ve=1;ve<arguments.length;ve++)pe[ve-1]=arguments[ve];var xe=this.eventHandlers.get(ae);xe==null||xe.notify.apply(xe,t.__spreadArray([],t.__read(pe),!1))},le.prototype.hasListeners=function(ae){return this.eventHandlers.has(ae)},le.prototype.registerPotentialNode=function(ae,pe){this.potentialNodes.set(ae,pe)},le.prototype.mount=function(ae,pe){var ve=this,xe;if(pe===void 0&&(pe=!1),!this.instance){this.isSVG=ae instanceof SVGElement&&ae.tagName!=="svg",this.instance=ae;var ke=this.options,Te=ke.layoutId,Oe=ke.layout,Ae=ke.visualElement;if(Ae&&!Ae.getInstance()&&Ae.mount(ae),this.root.nodes.add(this),(xe=this.parent)===null||xe===void 0||xe.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),pe&&(Oe||Te)&&(this.isLayoutDirty=!0),A){var Ie,Ue=function(){return ve.root.updateBlockedByResize=!1};A(ae,function(){ve.root.updateBlockedByResize=!0,clearTimeout(Ie),Ie=window.setTimeout(Ue,250),Ke.hasAnimatedSinceResize&&(Ke.hasAnimatedSinceResize=!1,ve.nodes.forEach(MA))})}Te&&this.root.registerSharedNode(Te,this),this.options.animate!==!1&&Ae&&(Te||Oe)&&this.addEventListener("didUpdate",function(Je){var lt,bt,vt,xt,It,Dt=Je.delta,Ct=Je.hasLayoutChanged,_t=Je.hasRelativeTargetChanged,Ut=Je.layout;if(ve.isTreeAnimationBlocked()){ve.target=void 0,ve.relativeTarget=void 0;return}var hn=(bt=(lt=ve.options.transition)!==null&&lt!==void 0?lt:Ae.getDefaultTransition())!==null&&bt!==void 0?bt:zA,Nr=Ae.getProps(),en=Nr.onLayoutAnimationStart,jo=Nr.onLayoutAnimationComplete,Do=!ve.targetLayout||!Ov(ve.targetLayout,Ut)||_t,zo=!Ct&&_t;if(!((vt=ve.resumeFrom)===null||vt===void 0)&&vt.instance||zo||Ct&&(Do||!ve.currentAnimation)){ve.resumeFrom&&(ve.resumingFrom=ve.resumeFrom,ve.resumingFrom.resumingFrom=void 0),ve.setAnimationOrigin(Dt,zo);var gn=t.__assign(t.__assign({},gf(hn,"layout")),{onPlay:en,onComplete:jo});Ae.shouldReduceMotion&&(gn.delay=0,gn.type=!1),ve.startAnimation(gn)}else!Ct&&ve.animationProgress===0&&ve.finishAnimation(),ve.isLead()&&((It=(xt=ve.options).onExitComplete)===null||It===void 0||It.call(xt));ve.targetLayout=Ut})}},le.prototype.unmount=function(){var ae,pe;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(ae=this.getStack())===null||ae===void 0||ae.remove(this),(pe=this.parent)===null||pe===void 0||pe.children.delete(this),this.instance=void 0,f.cancelSync.preRender(this.updateProjection)},le.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},le.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},le.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},le.prototype.isTreeAnimationBlocked=function(){var ae;return this.isAnimationBlocked||((ae=this.parent)===null||ae===void 0?void 0:ae.isTreeAnimationBlocked())||!1},le.prototype.startUpdate=function(){var ae;this.isUpdateBlocked()||(this.isUpdating=!0,(ae=this.nodes)===null||ae===void 0||ae.forEach(IA))},le.prototype.willUpdate=function(ae){var pe,ve,xe;if(ae===void 0&&(ae=!0),this.root.isUpdateBlocked()){(ve=(pe=this.options).onExitComplete)===null||ve===void 0||ve.call(pe);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var ke=0;ke<this.path.length;ke++){var Te=this.path[ke];Te.shouldResetTransform=!0,Te.updateScroll()}var Oe=this.options,Ae=Oe.layoutId,Ie=Oe.layout;if(!(Ae===void 0&&!Ie)){var Ue=(xe=this.options.visualElement)===null||xe===void 0?void 0:xe.getProps().transformTemplate;this.prevTransformTemplateValue=Ue==null?void 0:Ue(this.latestValues,""),this.updateSnapshot(),ae&&this.notifyListeners("willUpdate")}}},le.prototype.didUpdate=function(){var ae=this.isUpdateBlocked();if(ae){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nv);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(FA),this.potentialNodes.clear()),this.nodes.forEach(EA),this.nodes.forEach(_A),this.nodes.forEach(OA),this.clearAllSnapshots(),f.flushSync.update(),f.flushSync.preRender(),f.flushSync.render())},le.prototype.clearAllSnapshots=function(){this.nodes.forEach(AA),this.sharedNodes.forEach(LA)},le.prototype.scheduleUpdateProjection=function(){F.default.preRender(this.updateProjection,!1,!0)},le.prototype.scheduleCheckAfterUnmount=function(){var ae=this;F.default.postRender(function(){ae.isLayoutDirty?ae.root.didUpdate():ae.root.checkUpdateFailed()})},le.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var ae=this.measure(),pe=this.removeTransform(this.removeElementScroll(ae));Dv(pe),this.snapshot={measured:ae,layout:pe,latestValues:{}}}},le.prototype.updateLayout=function(){var ae;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var pe=0;pe<this.path.length;pe++){var ve=this.path[pe];ve.updateScroll()}var xe=this.measure();Dv(xe);var ke=this.layout;this.layout={measured:xe,actual:this.removeElementScroll(xe)},this.layoutCorrected=pr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(ae=this.options.visualElement)===null||ae===void 0||ae.notifyLayoutMeasure(this.layout.actual,ke==null?void 0:ke.actual)}},le.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=Z(this.instance),this.scroll=Y(this.instance))},le.prototype.resetTransform=function(){var ae;if(se){var pe=this.isLayoutDirty||this.shouldResetTransform,ve=this.projectionDelta&&!_v(this.projectionDelta),xe=(ae=this.options.visualElement)===null||ae===void 0?void 0:ae.getProps().transformTemplate,ke=xe==null?void 0:xe(this.latestValues,""),Te=ke!==this.prevTransformTemplateValue;pe&&(ve||No(this.latestValues)||Te)&&(se(this.instance,ke),this.shouldResetTransform=!1,this.scheduleRender())}},le.prototype.measure=function(){var ae=this.options.visualElement;if(!ae)return pr();var pe=ae.measureViewportBox(),ve=this.root.scroll;return ve&&(Io(pe.x,ve.x),Io(pe.y,ve.y)),pe},le.prototype.removeElementScroll=function(ae){var pe=pr();An(pe,ae);for(var ve=0;ve<this.path.length;ve++){var xe=this.path[ve],ke=xe.scroll,Te=xe.options,Oe=xe.isScrollRoot;if(xe!==this.root&&ke&&Te.layoutScroll){if(Oe){An(pe,ae);var Ae=this.root.scroll;Ae&&(Io(pe.x,-Ae.x),Io(pe.y,-Ae.y))}Io(pe.x,ke.x),Io(pe.y,ke.y)}}return pe},le.prototype.applyTransform=function(ae,pe){pe===void 0&&(pe=!1);var ve=pr();An(ve,ae);for(var xe=0;xe<this.path.length;xe++){var ke=this.path[xe];!pe&&ke.options.layoutScroll&&ke.scroll&&ke!==ke.root&&ii(ve,{x:-ke.scroll.x,y:-ke.scroll.y}),No(ke.latestValues)&&ii(ve,ke.latestValues)}return No(this.latestValues)&&ii(ve,this.latestValues),ve},le.prototype.removeTransform=function(ae){var pe,ve=pr();An(ve,ae);for(var xe=0;xe<this.path.length;xe++){var ke=this.path[xe];if(ke.instance&&No(ke.latestValues)){Zb(ke.latestValues)&&ke.updateSnapshot();var Te=pr(),Oe=ke.measure();An(Te,Oe),Tv(ve,ke.latestValues,(pe=ke.snapshot)===null||pe===void 0?void 0:pe.layout,Te)}}return No(this.latestValues)&&Tv(ve,this.latestValues),ve},le.prototype.setTargetDelta=function(ae){this.targetDelta=ae,this.root.scheduleUpdateProjection()},le.prototype.setOptions=function(ae){var pe;this.options=t.__assign(t.__assign(t.__assign({},this.options),ae),{crossfade:(pe=ae.crossfade)!==null&&pe!==void 0?pe:!0})},le.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},le.prototype.resolveTargetDelta=function(){var ae,pe=this.options,ve=pe.layout,xe=pe.layoutId;!this.layout||!(ve||xe)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),Ss(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),An(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pr(),this.targetWithTransforms=pr()),this.relativeTarget&&this.relativeTargetOrigin&&(!((ae=this.relativeParent)===null||ae===void 0)&&ae.target)?MO(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):An(this.target,this.layout.actual),ev(this.target,this.targetDelta)):An(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),Ss(this.relativeTargetOrigin,this.target,this.relativeParent.target),An(this.relativeTarget,this.relativeTargetOrigin)))))},le.prototype.getClosestProjectingParent=function(){if(!(!this.parent||No(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},le.prototype.calcProjection=function(){var ae,pe=this.options,ve=pe.layout,xe=pe.layoutId;if(this.isTreeAnimating=!!(!((ae=this.parent)===null||ae===void 0)&&ae.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(ve||xe))){var ke=this.getLead();An(this.layoutCorrected,this.layout.actual),VO(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==ke);var Te=ke.target;if(Te){this.projectionDelta||(this.projectionDelta=ks(),this.projectionDeltaWithTransform=ks());var Oe=this.treeScale.x,Ae=this.treeScale.y,Ie=this.projectionTransform;Cs(this.projectionDelta,this.layoutCorrected,Te,this.latestValues),this.projectionTransform=Av(this.projectionDelta,this.treeScale),(this.projectionTransform!==Ie||this.treeScale.x!==Oe||this.treeScale.y!==Ae)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",Te))}}},le.prototype.hide=function(){this.isVisible=!1},le.prototype.show=function(){this.isVisible=!0},le.prototype.scheduleRender=function(ae){var pe,ve,xe;ae===void 0&&(ae=!0),(ve=(pe=this.options).scheduleRender)===null||ve===void 0||ve.call(pe),ae&&((xe=this.getStack())===null||xe===void 0||xe.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},le.prototype.setAnimationOrigin=function(ae,pe){var ve=this,xe;pe===void 0&&(pe=!1);var ke=this.snapshot,Te=(ke==null?void 0:ke.latestValues)||{},Oe=t.__assign({},this.latestValues),Ae=ks();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!pe;var Ie=pr(),Ue=ke==null?void 0:ke.isShared,Je=(((xe=this.getStack())===null||xe===void 0?void 0:xe.members.length)||0)<=1,lt=!!(Ue&&!Je&&this.options.crossfade===!0&&!this.path.some(DA));this.animationProgress=0,this.mixTargetDelta=function(bt){var vt,xt=bt/1e3;Iv(Ae.x,ae.x,xt),Iv(Ae.y,ae.y,xt),ve.setTargetDelta(Ae),ve.relativeTarget&&ve.relativeTargetOrigin&&ve.layout&&(!((vt=ve.relativeParent)===null||vt===void 0)&&vt.layout)&&(Ss(Ie,ve.layout.actual,ve.relativeParent.layout.actual),jA(ve.relativeTarget,ve.relativeTargetOrigin,Ie,xt)),Ue&&(ve.animationValues=Oe,mA(Oe,Te,ve.latestValues,xt,lt,Je)),ve.root.scheduleUpdateProjection(),ve.scheduleRender(),ve.animationProgress=xt},this.mixTargetDelta(0)},le.prototype.startAnimation=function(ae){var pe=this,ve,xe;this.notifyListeners("animationStart"),(ve=this.currentAnimation)===null||ve===void 0||ve.stop(),this.resumingFrom&&((xe=this.resumingFrom.currentAnimation)===null||xe===void 0||xe.stop()),this.pendingAnimation&&(f.cancelSync.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.default.update(function(){Ke.hasAnimatedSinceResize=!0,pe.currentAnimation=bv(0,Mv,t.__assign(t.__assign({},ae),{onUpdate:function(ke){var Te;pe.mixTargetDelta(ke),(Te=ae.onUpdate)===null||Te===void 0||Te.call(ae,ke)},onComplete:function(){var ke;(ke=ae.onComplete)===null||ke===void 0||ke.call(ae),pe.completeAnimation()}})),pe.resumingFrom&&(pe.resumingFrom.currentAnimation=pe.currentAnimation),pe.pendingAnimation=void 0})},le.prototype.completeAnimation=function(){var ae;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(ae=this.getStack())===null||ae===void 0||ae.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},le.prototype.finishAnimation=function(){var ae;this.currentAnimation&&((ae=this.mixTargetDelta)===null||ae===void 0||ae.call(this,Mv),this.currentAnimation.stop()),this.completeAnimation()},le.prototype.applyTransformsToTarget=function(){var ae=this.getLead(),pe=ae.targetWithTransforms,ve=ae.target,xe=ae.layout,ke=ae.latestValues;!pe||!ve||!xe||(An(pe,ve),ii(pe,ke),Cs(this.projectionDeltaWithTransform,this.layoutCorrected,pe,ke))},le.prototype.registerSharedNode=function(ae,pe){var ve,xe,ke;this.sharedNodes.has(ae)||this.sharedNodes.set(ae,new kA);var Te=this.sharedNodes.get(ae);Te.add(pe),pe.promote({transition:(ve=pe.options.initialPromotionConfig)===null||ve===void 0?void 0:ve.transition,preserveFollowOpacity:(ke=(xe=pe.options.initialPromotionConfig)===null||xe===void 0?void 0:xe.shouldPreserveFollowOpacity)===null||ke===void 0?void 0:ke.call(xe,pe)})},le.prototype.isLead=function(){var ae=this.getStack();return ae?ae.lead===this:!0},le.prototype.getLead=function(){var ae,pe=this.options.layoutId;return pe?((ae=this.getStack())===null||ae===void 0?void 0:ae.lead)||this:this},le.prototype.getPrevLead=function(){var ae,pe=this.options.layoutId;return pe?(ae=this.getStack())===null||ae===void 0?void 0:ae.prevLead:void 0},le.prototype.getStack=function(){var ae=this.options.layoutId;if(ae)return this.root.sharedNodes.get(ae)},le.prototype.promote=function(ae){var pe=ae===void 0?{}:ae,ve=pe.needsReset,xe=pe.transition,ke=pe.preserveFollowOpacity,Te=this.getStack();Te&&Te.promote(this,ke),ve&&(this.projectionDelta=void 0,this.needsReset=!0),xe&&this.setOptions({transition:xe})},le.prototype.relegate=function(){var ae=this.getStack();return ae?ae.relegate(this):!1},le.prototype.resetRotation=function(){var ae=this.options.visualElement;if(ae){for(var pe=!1,ve={},xe=0;xe<St.length;xe++){var ke=St[xe],Te="rotate"+ke;ae.getStaticValue(Te)&&(pe=!0,ve[Te]=ae.getStaticValue(Te),ae.setStaticValue(Te,0))}if(pe){ae==null||ae.syncRender();for(var Te in ve)ae.setStaticValue(Te,ve[Te]);ae.scheduleRender()}}},le.prototype.getProjectionStyles=function(ae){var pe,ve,xe,ke,Te,Oe;ae===void 0&&(ae={});var Ae={};if(!this.instance||this.isSVG)return Ae;if(this.isVisible)Ae.visibility="";else return{visibility:"hidden"};var Ie=(pe=this.options.visualElement)===null||pe===void 0?void 0:pe.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,Ae.opacity="",Ae.pointerEvents=x(ae.pointerEvents)||"",Ae.transform=Ie?Ie(this.latestValues,""):"none",Ae;var Ue=this.getLead();if(!this.projectionDelta||!this.layout||!Ue.target){var Je={};return this.options.layoutId&&(Je.opacity=(ve=this.latestValues.opacity)!==null&&ve!==void 0?ve:1,Je.pointerEvents=x(ae.pointerEvents)||""),this.hasProjected&&!No(this.latestValues)&&(Je.transform=Ie?Ie({},""):"none",this.hasProjected=!1),Je}var lt=Ue.animationValues||Ue.latestValues;this.applyTransformsToTarget(),Ae.transform=Av(this.projectionDeltaWithTransform,this.treeScale,lt),Ie&&(Ae.transform=Ie(lt,Ae.transform));var bt=this.projectionDelta,vt=bt.x,xt=bt.y;Ae.transformOrigin="".concat(vt.origin*100,"% ").concat(xt.origin*100,"% 0"),Ue.animationValues?Ae.opacity=Ue===this?(ke=(xe=lt.opacity)!==null&&xe!==void 0?xe:this.latestValues.opacity)!==null&&ke!==void 0?ke:1:this.preserveOpacity?this.latestValues.opacity:lt.opacityExit:Ae.opacity=Ue===this?(Te=lt.opacity)!==null&&Te!==void 0?Te:"":(Oe=lt.opacityExit)!==null&&Oe!==void 0?Oe:0;for(var It in et)if(lt[It]!==void 0){var Dt=et[It],Ct=Dt.correct,_t=Dt.applyTo,Ut=Ct(lt[It],Ue);if(_t)for(var hn=_t.length,Nr=0;Nr<hn;Nr++)Ae[_t[Nr]]=Ut;else Ae[It]=Ut}return this.options.layoutId&&(Ae.pointerEvents=Ue===this?x(ae.pointerEvents)||"":"none"),Ae},le.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},le.prototype.resetTree=function(){this.root.nodes.forEach(function(ae){var pe;return(pe=ae.currentAnimation)===null||pe===void 0?void 0:pe.stop()}),this.root.nodes.forEach(Nv),this.root.sharedNodes.clear()},le}()}function _A(w){w.updateLayout()}function OA(w){var A,V,Y,Z,se=(V=(A=w.resumeFrom)===null||A===void 0?void 0:A.snapshot)!==null&&V!==void 0?V:w.snapshot;if(w.isLead()&&w.layout&&se&&w.hasListeners("didUpdate")){var le=w.layout,ae=le.actual,pe=le.measured;w.options.animationType==="size"?eo(function(lt){var bt=se.isShared?se.measured[lt]:se.layout[lt],vt=Jn(bt);bt.min=ae[lt].min,bt.max=bt.min+vt}):w.options.animationType==="position"&&eo(function(lt){var bt=se.isShared?se.measured[lt]:se.layout[lt],vt=Jn(ae[lt]);bt.max=bt.min+vt});var ve=ks();Cs(ve,ae,se.layout);var xe=ks();se.isShared?Cs(xe,w.applyTransform(pe,!0),se.measured):Cs(xe,ae,se.layout);var ke=!_v(ve),Te=!1;if(!w.resumeFrom&&(w.relativeParent=w.getClosestProjectingParent(),w.relativeParent&&!w.relativeParent.resumeFrom)){var Oe=w.relativeParent,Ae=Oe.snapshot,Ie=Oe.layout;if(Ae&&Ie){var Ue=pr();Ss(Ue,se.layout,Ae.layout);var Je=pr();Ss(Je,ae,Ie.actual),Ov(Ue,Je)||(Te=!0)}}w.notifyListeners("didUpdate",{layout:ae,snapshot:se,delta:xe,layoutDelta:ve,hasLayoutChanged:ke,hasRelativeTargetChanged:Te})}else w.isLead()&&((Z=(Y=w.options).onExitComplete)===null||Z===void 0||Z.call(Y));w.options.transition=void 0}function AA(w){w.clearSnapshot()}function Nv(w){w.clearMeasurements()}function EA(w){var A=w.options.visualElement;A!=null&&A.getProps().onBeforeLayoutMeasure&&A.notifyBeforeLayoutMeasure(),w.resetTransform()}function MA(w){w.finishAnimation(),w.targetDelta=w.relativeTarget=w.target=void 0}function RA(w){w.resolveTargetDelta()}function NA(w){w.calcProjection()}function IA(w){w.resetRotation()}function LA(w){w.removeLeadSnapshot()}function Iv(w,A,V){w.translate=l.mix(A.translate,0,V),w.scale=l.mix(A.scale,1,V),w.origin=A.origin,w.originPoint=A.originPoint}function Lv(w,A,V,Y){w.min=l.mix(A.min,V.min,Y),w.max=l.mix(A.max,V.max,Y)}function jA(w,A,V,Y){Lv(w.x,A.x,V.x,Y),Lv(w.y,A.y,V.y,Y)}function DA(w){return w.animationValues&&w.animationValues.opacityExit!==void 0}var zA={duration:.45,ease:[.4,0,.1,1]};function FA(w,A){for(var V=w.root,Y=w.path.length-1;Y>=0;Y--)if(w.path[Y].instance){V=w.path[Y];break}var Z=V&&V!==w.root?V.instance:document,se=Z.querySelector('[data-projection-id="'.concat(A,'"]'));se&&w.mount(se,!0)}function jv(w){w.min=Math.round(w.min),w.max=Math.round(w.max)}function Dv(w){jv(w.x),jv(w.y)}var VA=Rv({attachResizeListener:function(w,A){return q(w,"resize",A)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Pa={current:void 0},Nf=Rv({measureScroll:function(w){return{x:w.scrollLeft,y:w.scrollTop}},defaultParent:function(){if(!Pa.current){var w=new VA(0,{});w.mount(window),w.setOptions({layoutScroll:!0}),Pa.current=w}return Pa.current},resetTransform:function(w,A){w.style.transform=A??"none"},checkIsScrollRoot:function(w){return window.getComputedStyle(w).position==="fixed"}}),zv=t.__assign(t.__assign(t.__assign(t.__assign({},kf),Cb),nv),gv),If=jt(function(w,A){return G(w,A,zv,Rf,Nf)});function WA(w){return Lt(G(w,{forwardMotionProps:!1},zv,Rf,Nf))}var BA=jt(G);function Fv(){var w=r.useRef(!1);return U(function(){return w.current=!0,function(){w.current=!1}},[]),w}function cu(){var w=Fv(),A=t.__read(r.useState(0),2),V=A[0],Y=A[1],Z=r.useCallback(function(){w.current&&Y(V+1)},[V]),se=r.useCallback(function(){return F.default.postRender(Z)},[Z]);return[se,V]}var Lf=function(w){var A=w.children,V=w.initial,Y=w.isPresent,Z=w.onExitComplete,se=w.custom,le=w.presenceAffectsLayout,ae=We(HA),pe=Sb(),ve=r.useMemo(function(){return{id:pe,initial:V,isPresent:Y,custom:se,onExitComplete:function(xe){var ke,Te;ae.set(xe,!0);try{for(var Oe=t.__values(ae.values()),Ae=Oe.next();!Ae.done;Ae=Oe.next()){var Ie=Ae.value;if(!Ie)return}}catch(Ue){ke={error:Ue}}finally{try{Ae&&!Ae.done&&(Te=Oe.return)&&Te.call(Oe)}finally{if(ke)throw ke.error}}Z==null||Z()},register:function(xe){return ae.set(xe,!1),function(){return ae.delete(xe)}}}},le?void 0:[Y]);return r.useMemo(function(){ae.forEach(function(xe,ke){return ae.set(ke,!1)})},[Y]),O.useEffect(function(){!Y&&!ae.size&&(Z==null||Z())},[Y]),O.createElement(H.Provider,{value:ve},A)};function HA(){return new Map}var si=function(w){return w.key||""};function XA(w,A){w.forEach(function(V){var Y=si(V);A.set(Y,V)})}function YA(w){var A=[];return r.Children.forEach(w,function(V){r.isValidElement(V)&&A.push(V)}),A}var GA=function(w){var A=w.children,V=w.custom,Y=w.initial,Z=Y===void 0?!0:Y,se=w.onExitComplete,le=w.exitBeforeEnter,ae=w.presenceAffectsLayout,pe=ae===void 0?!0:ae,ve=t.__read(cu(),1),xe=ve[0],ke=r.useContext(qe).forceRender;ke&&(xe=ke);var Te=Fv(),Oe=YA(A),Ae=Oe,Ie=new Set,Ue=r.useRef(Ae),Je=r.useRef(new Map).current,lt=r.useRef(!0);if(U(function(){lt.current=!1,XA(Oe,Je),Ue.current=Ae}),sr(function(){lt.current=!0,Je.clear(),Ie.clear()}),lt.current)return O.createElement(O.Fragment,null,Ae.map(function(Ct){return O.createElement(Lf,{key:si(Ct),isPresent:!0,initial:Z?void 0:!1,presenceAffectsLayout:pe},Ct)}));Ae=t.__spreadArray([],t.__read(Ae),!1);for(var bt=Ue.current.map(si),vt=Oe.map(si),xt=bt.length,It=0;It<xt;It++){var Dt=bt[It];vt.indexOf(Dt)===-1&&Ie.add(Dt)}return le&&Ie.size&&(Ae=[]),Ie.forEach(function(Ct){if(vt.indexOf(Ct)===-1){var _t=Je.get(Ct);if(_t){var Ut=bt.indexOf(Ct),hn=function(){Je.delete(Ct),Ie.delete(Ct);var Nr=Ue.current.findIndex(function(en){return en.key===Ct});if(Ue.current.splice(Nr,1),!Ie.size){if(Ue.current=Oe,Te.current===!1)return;xe(),se&&se()}};Ae.splice(Ut,0,O.createElement(Lf,{key:si(_t),isPresent:!1,onExitComplete:hn,custom:V,presenceAffectsLayout:pe},_t))}}}),Ae=Ae.map(function(Ct){var _t=Ct.key;return Ie.has(_t)?Ct:O.createElement(Lf,{key:si(Ct),isPresent:!0,presenceAffectsLayout:pe},Ct)}),D!=="production"&&le&&Ae.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),O.createElement(O.Fragment,null,Ie.size?Ae:Ae.map(function(Ct){return r.cloneElement(Ct)}))},Vv=r.createContext(null),UA=function(w){return!w.isLayoutDirty&&w.willUpdate(!1)};function Wv(){var w=new Set,A=new WeakMap,V=function(){return w.forEach(UA)};return{add:function(Y){w.add(Y),A.set(Y,Y.addEventListener("willUpdate",V))},remove:function(Y){var Z;w.delete(Y),(Z=A.get(Y))===null||Z===void 0||Z(),A.delete(Y),V()},dirty:V}}var Bv=function(w){return w===!0},$A=function(w){return Bv(w===!0)||w==="id"},Hv=function(w){var A,V,Y=w.children,Z=w.id,se=w.inheritId,le=w.inherit,ae=le===void 0?!0:le;se!==void 0&&(ae=se);var pe=r.useContext(qe),ve=r.useContext(Vv),xe=t.__read(cu(),2),ke=xe[0],Te=xe[1],Oe=r.useRef(null),Ae=(A=pe.id)!==null&&A!==void 0?A:ve;Oe.current===null&&($A(ae)&&Ae&&(Z=Z?Ae+"-"+Z:Ae),Oe.current={id:Z,group:Bv(ae)&&(V=pe==null?void 0:pe.group)!==null&&V!==void 0?V:Wv()});var Ie=r.useMemo(function(){return t.__assign(t.__assign({},Oe.current),{forceRender:ke})},[Te]);return O.createElement(qe.Provider,{value:Ie},Y)},qA=0,KA=function(w){var A=w.children;return O.useEffect(function(){a.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),O.createElement(Hv,{id:We(function(){return"asl-".concat(qA++)})},A)};function ZA(w){var A=w.children,V=w.isValidProp,Y=t.__rest(w,["children","isValidProp"]);V&&qn(V),Y=t.__assign(t.__assign({},r.useContext(_)),Y),Y.isStatic=We(function(){return Y.isStatic});var Z=r.useMemo(function(){return Y},[JSON.stringify(Y.transition),Y.transformPagePoint,Y.reducedMotion]);return O.createElement(_.Provider,{value:Z},A)}function QA(w){var A=w.children,V=w.features,Y=w.strict,Z=Y===void 0?!1:Y,se=t.__read(r.useState(!jf(V)),2),le=se[1],ae=r.useRef(void 0);if(!jf(V)){var pe=V.renderer,ve=t.__rest(V,["renderer"]);ae.current=pe,y(ve)}return r.useEffect(function(){jf(V)&&V().then(function(xe){var ke=xe.renderer,Te=t.__rest(xe,["renderer"]);y(Te),ae.current=ke,le(!0)})},[]),O.createElement(p.Provider,{value:{renderer:ae.current,strict:Z}},A)}function jf(w){return typeof w=="function"}var Xv=r.createContext(null);function JA(w,A,V,Y){if(!Y)return w;var Z=w.findIndex(function(xe){return xe.value===A});if(Z===-1)return w;var se=Y>0?1:-1,le=w[Z+se];if(!le)return w;var ae=w[Z],pe=le.layout,ve=l.mix(pe.min,pe.max,.5);return se===1&&ae.layout.max+V>ve||se===-1&&ae.layout.min+V<ve?dO(w,Z,Z+se):w}function e2(w,A){var V=w.children,Y=w.as,Z=Y===void 0?"ul":Y,se=w.axis,le=se===void 0?"y":se,ae=w.onReorder,pe=w.values,ve=t.__rest(w,["children","as","axis","onReorder","values"]),xe=We(function(){return If(Z)}),ke=[],Te=r.useRef(!1);a.invariant(!!pe,"Reorder.Group must be provided a values prop");var Oe={axis:le,registerItem:function(Ae,Ie){Ie&&ke.findIndex(function(Ue){return Ae===Ue.value})===-1&&(ke.push({value:Ae,layout:Ie[le]}),ke.sort(n2))},updateOrder:function(Ae,Ie,Ue){if(!Te.current){var Je=JA(ke,Ae,Ie,Ue);ke!==Je&&(Te.current=!0,ae(Je.map(r2).filter(function(lt){return pe.indexOf(lt)!==-1})))}}};return r.useEffect(function(){Te.current=!1}),O.createElement(xe,t.__assign({},ve,{ref:A}),O.createElement(Xv.Provider,{value:Oe},V))}var t2=r.forwardRef(e2);function r2(w){return w.value}function n2(w,A){return w.layout.min-A.layout.min}function Lo(w){var A=We(function(){return pn(w)}),V=r.useContext(_).isStatic;if(V){var Y=t.__read(r.useState(w),2),Z=Y[1];r.useEffect(function(){return A.onChange(Z)},[])}return A}var o2=function(w){return typeof w=="object"&&w.mix},a2=function(w){return o2(w)?w.mix:void 0};function Yv(){for(var w=[],A=0;A<arguments.length;A++)w[A]=arguments[A];var V=!Array.isArray(w[0]),Y=V?0:-1,Z=w[0+Y],se=w[1+Y],le=w[2+Y],ae=w[3+Y],pe=l.interpolate(se,le,t.__assign({mixer:a2(le[0])},ae));return V?pe(Z):pe}function i2(w,A){U(function(){if(Kt(w))return w.onChange(A)},[A])}function s2(w,A){U(function(){var V=w.map(function(Y){return Y.onChange(A)});return function(){return V.forEach(function(Y){return Y()})}})}function Gv(w,A){var V=Lo(A()),Y=function(){return V.set(A())};return Y(),s2(w,function(){return F.default.update(Y,!1,!0)}),V}function du(w,A,V,Y){var Z=typeof A=="function"?A:Yv(A,V,Y);return Array.isArray(w)?Uv(w,Z):Uv([w],function(se){var le=t.__read(se,1),ae=le[0];return Z(ae)})}function Uv(w,A){var V=We(function(){return[]});return Gv(w,function(){V.length=0;for(var Y=w.length,Z=0;Z<Y;Z++)V[Z]=w[Z].get();return A(V)})}function $v(w,A){return A===void 0&&(A=0),Kt(w)?w:Lo(A)}function l2(w,A){var V=w.children,Y=w.style,Z=w.value,se=w.as,le=se===void 0?"li":se,ae=w.onDrag,pe=w.layout,ve=pe===void 0?!0:pe,xe=t.__rest(w,["children","style","value","as","onDrag","layout"]),ke=We(function(){return If(le)}),Te=r.useContext(Xv),Oe={x:$v(Y==null?void 0:Y.x),y:$v(Y==null?void 0:Y.y)},Ae=du([Oe.x,Oe.y],function(vt){var xt=t.__read(vt,2),It=xt[0],Dt=xt[1];return It||Dt?1:"unset"}),Ie=r.useRef(null);a.invariant(!!Te,"Reorder.Item must be a child of Reorder.Group");var Ue=Te,Je=Ue.axis,lt=Ue.registerItem,bt=Ue.updateOrder;return r.useEffect(function(){lt(Z,Ie.current)},[Te]),O.createElement(ke,t.__assign({drag:Je},xe,{dragSnapToOrigin:!0,style:t.__assign(t.__assign({},Y),{x:Oe.x,y:Oe.y,zIndex:Ae}),layout:ve,onDrag:function(vt,xt){var It=xt.velocity;It[Je]&&bt(Z,Oe[Je].get(),It[Je]),ae==null||ae(vt,xt)},onLayoutMeasure:function(vt){Ie.current=vt},ref:A}),V)}var u2=r.forwardRef(l2),c2={Group:t2,Item:u2},qv=t.__assign(t.__assign({renderer:Rf},kf),Cb),d2=t.__assign(t.__assign(t.__assign(t.__assign({},qv),nv),gv),{projectionNodeConstructor:Nf});function f2(w){for(var A=[],V=1;V<arguments.length;V++)A[V-1]=arguments[V];var Y=w.length;function Z(){for(var se="",le=0;le<Y;le++){se+=w[le];var ae=A[le];ae&&(se+=A[le].get())}return se}return Gv(A,Z)}function p2(w,A){A===void 0&&(A={});var V=r.useContext(_).isStatic,Y=r.useRef(null),Z=Lo(Kt(w)?w.get():w);return r.useMemo(function(){return Z.attach(function(se,le){return V?le(se):(Y.current&&Y.current.stop(),Y.current=l.animate(t.__assign(t.__assign({from:Z.get(),to:se,velocity:Z.getVelocity()},A),{onUpdate:le})),Z.get())})},[JSON.stringify(A)]),i2(w,function(se){return Z.set(parseFloat(se))}),Z}function h2(w){var A=Lo(w.getVelocity());return r.useEffect(function(){return w.velocityUpdateSubscribers.add(function(V){A.set(V)})},[w]),A}var g2=function(){return{scrollX:pn(0),scrollY:pn(0),scrollXProgress:pn(0),scrollYProgress:pn(0)}};function Df(w){w===void 0&&(w={});var A=w.container,V=w.target,Y=t.__rest(w,["container","target"]),Z=We(g2);return U(function(){return b.scroll(function(se){var le=se.x,ae=se.y;Z.scrollX.set(le.current),Z.scrollXProgress.set(le.progress),Z.scrollY.set(ae.current),Z.scrollYProgress.set(ae.progress)},t.__assign(t.__assign({},Y),{container:(A==null?void 0:A.current)||void 0,target:(V==null?void 0:V.current)||void 0}))},[]),Z}function b2(w){return sf(!1,"useElementScroll is deprecated. Convert to useScroll({ container: ref })."),Df({container:w})}function v2(){return sf(!1,"useViewportScroll is deprecated. Convert to useScroll()."),Df()}var m2=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()};function Kv(w){var A=We(m2),V=r.useContext(_).isStatic;r.useEffect(function(){if(!V){var Y=function(Z){var se=Z.timestamp;w(se-A)};return F.default.update(Y,!0),function(){return f.cancelSync.update(Y)}}},[w])}function y2(){var w=Lo(0);return Kv(function(A){return w.set(A)}),w}function Zv(){var w=!1,A=[],V=new Set,Y={subscribe:function(Z){return V.add(Z),function(){return void V.delete(Z)}},start:function(Z,se){if(w){var le=[];return V.forEach(function(ae){le.push(ou(ae,Z,{transitionOverride:se}))}),Promise.all(le)}else return new Promise(function(ae){A.push({animation:[Z,se],resolve:ae})})},set:function(Z){return a.invariant(w,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),V.forEach(function(se){vO(se,Z)})},stop:function(){V.forEach(function(Z){xO(Z)})},mount:function(){return w=!0,A.forEach(function(Z){var se=Z.animation,le=Z.resolve;Y.start.apply(Y,t.__spreadArray([],t.__read(se),!1)).then(le)}),function(){w=!1,Y.stop()}}};return Y}function Qv(){var w=We(Zv);return r.useEffect(w.mount,[]),w}var x2=Qv;function w2(){for(var w=[],A=0;A<arguments.length;A++)w[A]=arguments[A];var V=r.useRef(0),Y=t.__read(r.useState(w[V.current]),2),Z=Y[0],se=Y[1],le=r.useCallback(function(ae){V.current=typeof ae!="number"?l.wrap(0,w.length,V.current+1):ae,se(w[V.current])},t.__spreadArray([w.length],t.__read(w),!1));return[Z,le]}function C2(w,A){var V=A===void 0?{}:A,Y=V.root,Z=V.margin,se=V.amount,le=V.once,ae=le===void 0?!1:le,pe=t.__read(r.useState(!1),2),ve=pe[0],xe=pe[1];return r.useEffect(function(){var ke;if(!(!w.current||ae&&ve)){var Te=function(){return xe(!0),ae?void 0:function(){return xe(!1)}},Oe={root:(ke=Y==null?void 0:Y.current)!==null&&ke!==void 0?ke:void 0,margin:Z,amount:se==="some"?"any":se};return b.inView(w.current,Te,Oe)}},[Y,w,Z,ae]),ve}var Jv=function(){function w(){this.componentControls=new Set}return w.prototype.subscribe=function(A){var V=this;return this.componentControls.add(A),function(){return V.componentControls.delete(A)}},w.prototype.start=function(A,V){this.componentControls.forEach(function(Y){Y.start(A.nativeEvent||A,V)})},w}(),S2=function(){return new Jv};function k2(){return We(S2)}function em(){return T2}function T2(w){Pa.current&&(Pa.current.isUpdating=!1,Pa.current.blockUpdate(),w==null||w())}function P2(){var w=t.__read(cu(),2),A=w[0],V=w[1],Y=em();return r.useEffect(function(){F.default.postRender(function(){return F.default.postRender(function(){return hf.current=!1})})},[V]),function(Z){Y(function(){hf.current=!0,A(),Z()})}}function _2(){var w=O.useCallback(function(){var A=Pa.current;A&&A.resetTree()},[]);return w}var zf=function(){return{}},O2=lu({build:function(){},measureViewportBox:pr,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:zf,readValueFromInstance:function(w,A,V){return V.initialState[A]||0},makeTargetAnimatable:function(w,A){var V=A.transition,Y=A.transitionEnd,Z=t.__rest(A,["transition","transitionEnd"]),se=Lb(Z,V||{},w);return wf(w,Z,se),t.__assign({transition:V,transitionEnd:Y},Z)}}),A2=E({scrapeMotionValuesFromProps:zf,createRenderState:zf});function E2(w){var A=t.__read(r.useState(w),2),V=A[0],Y=A[1],Z=A2({},!1),se=We(function(){return O2({props:{},visualState:Z},{initialState:w})});r.useEffect(function(){return se.mount({}),se.unmount},[se]),r.useEffect(function(){se.setProps({onUpdate:function(ae){Y(t.__assign({},ae))}})},[Y,se]);var le=We(function(){return function(ae){return ou(se,ae)}});return[V,le]}var M2=1e5,tm=function(w){return w>.001?1/w:M2},rm=!1;function R2(w){var A=Lo(1),V=Lo(1),Y=X();a.invariant(!!(w||Y),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),a.warning(rm,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),rm=!0,w?(A=w.scaleX||A,V=w.scaleY||V):Y&&(A=Y.getValue("scaleX",1),V=Y.getValue("scaleY",1));var Z=du(A,tm),se=du(V,tm);return{scaleX:Z,scaleY:se}}e.AnimatePresence=GA,e.AnimateSharedLayout=KA,e.DeprecatedLayoutGroupContext=Vv,e.DragControls=Jv,e.FlatTree=Ev,e.LayoutGroup=Hv,e.LayoutGroupContext=qe,e.LazyMotion=QA,e.MotionConfig=ZA,e.MotionConfigContext=_,e.MotionContext=M,e.MotionValue=Rb,e.PresenceContext=H,e.Reorder=c2,e.SwitchLayoutGroupContext=st,e.addPointerEvent=ct,e.addScaleCorrector=dt,e.animate=bv,e.animateVisualElement=ou,e.animationControls=Zv,e.animations=kf,e.calcLength=Jn,e.checkTargetForNewValues=wf,e.createBox=pr,e.createDomMotionComponent=WA,e.createMotionComponent=Lt,e.domAnimation=qv,e.domMax=d2,e.filterProps=xa,e.isBrowser=B,e.isDragActive=Rr,e.isMotionValue=Kt,e.isValidMotionProp=Jr,e.m=BA,e.makeUseVisualState=E,e.motion=If,e.motionValue=pn,e.resolveMotionValue=x,e.transform=Yv,e.useAnimation=x2,e.useAnimationControls=Qv,e.useAnimationFrame=Kv,e.useCycle=w2,e.useDeprecatedAnimatedState=E2,e.useDeprecatedInvertedScale=R2,e.useDomEvent=Q,e.useDragControls=k2,e.useElementScroll=b2,e.useForceUpdate=cu,e.useInView=C2,e.useInstantLayoutTransition=em,e.useInstantTransition=P2,e.useIsPresent=Z_,e.useIsomorphicLayoutEffect=U,e.useMotionTemplate=f2,e.useMotionValue=Lo,e.usePresence=cf,e.useReducedMotion=fe,e.useReducedMotionConfig=me,e.useResetProjection=_2,e.useScroll=Df,e.useSpring=p2,e.useTime=y2,e.useTransform=du,e.useUnmountEffect=sr,e.useVelocity=h2,e.useViewportScroll=v2,e.useVisualElementContext=X,e.visualElement=lu,e.wrapHandler=we})(vr);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{AccordionBody:function(){return R},default:function(){return P}});var r=F(ee),a=vr,s=F(ht),l=F(Cr),f=F(at),b=ut,S=Ad,T=nt,O=Hl;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.className,g=y.children,m=z(y,["className","children"]),_=(0,S.useAccordion)(),M=_.open,X=_.animate,H=(0,T.useTheme)().accordion,B=H.styles.base;v=v??"";var U=(0,b.twMerge)((0,s.default)((0,f.default)(B.body)),v),K={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},oe={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},ne=(0,l.default)(oe,X);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(a.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:M?"mount":"unmount",variants:K},r.default.createElement(a.m.div,j({},m,{ref:p,className:U,initial:"unmount",exit:"unmount",animate:M?"mount":"unmount",variants:ne}),g)))});R.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.AccordionBody";var P=R})(Xk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Accordion:function(){return P},AccordionHeader:function(){return T.AccordionHeader},AccordionBody:function(){return O.AccordionBody},useAccordion:function(){return b.useAccordion},default:function(){return y}});var r=z(ee),a=z(ht),s=ut,l=z(at),f=nt,b=Ad,S=Hl,T=Hk,O=Xk;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.open,m=p.icon,_=p.animate,M=p.className,X=p.disabled,H=p.children,B=D(p,["open","icon","animate","className","disabled","children"]),U=(0,f.useTheme)().accordion,K=U.defaultProps,oe=U.styles.base;m=m??K.icon,_=_??K.animate,M=M??K.className,X=X??K.disabled;var ne=(0,s.twMerge)((0,a.default)((0,l.default)(oe.container),j({},(0,l.default)(oe.disabled),X)),M),fe=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:X}},[g,m,_,X]);return r.default.createElement(b.AccordionContextProvider,{value:fe},r.default.createElement("div",F({},B,{ref:v,className:ne}),H))});P.propTypes={open:S.propTypesOpen,icon:S.propTypesIcon,animate:S.propTypesAnimate,disabled:S.propTypesDisabled,className:S.propTypesClassName,children:S.propTypesChildren},P.displayName="MaterialTailwind.Accordion";var y=Object.assign(P,{Header:T.AccordionHeader,Body:O.AccordionBody})})(mC);var vT={},qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(a,s,l){var f=a.findIndex(function(b){return b===s});return f>=0?s:l}var r=t})(qt);var Wd={},ss=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,a,s,l,f){return this.x=t-a>r/2?0:r,this.y=s-f>l/2?0:l,this.z=Math.hypot(this.x-(t-a),this.y-(s-f)),this.z}appyStyles(t,r,a,s,l){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=l.clientX-a.left-s+"px",t.style.top=l.clientY-a.top-s+"px",t.style.width=t.style.height=s*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const a=t.currentTarget;a.style.position="relative",a.style.overflow="hidden";const s=a.getBoundingClientRect(),l=this.findFurthestPoint(t.clientX,a.offsetWidth,s.left,t.clientY,a.offsetHeight,s.top),f=document.createElement("span");this.appyStyles(f,r,s,l,t),this.applyAnimation(f),a.appendChild(f),setTimeout(()=>f.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{IconButton:function(){return R},default:function(){return P}});var r=F(ee),a=F(it),s=F(ss),l=F(ht),f=ut,b=F(qt),S=F(at),T=nt,O=Ka;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.color,_=y.ripple,M=y.className,X=y.children;y.fullWidth;var H=z(y,["variant","size","color","ripple","className","children","fullWidth"]),B=(0,T.useTheme)().iconButton,U=B.valid,K=B.defaultProps,oe=B.styles,ne=oe.base,fe=oe.variants,me=oe.sizes;v=v??K.variant,g=g??K.size,m=m??K.color,_=_??K.ripple,M=M??K.className;var Se=_!==void 0&&new s.default,be=(0,S.default)(ne),ue=(0,S.default)(fe[(0,b.default)(U.variants,v,"filled")][(0,b.default)(U.colors,m,"gray")]),ge=(0,S.default)(me[(0,b.default)(U.sizes,g,"md")]),ye=(0,f.twMerge)((0,l.default)(be,ge,ue),M);return r.default.createElement("button",j({},H,{ref:p,className:ye,type:H.type||"button",onMouseDown:function(_e){var Ee=H==null?void 0:H.onMouseDown;return _&&Se.create(_e,(v==="filled"||v==="gradient")&&m!=="white"?"light":"dark"),typeof Ee=="function"&&Ee(_e)}}),r.default.createElement("span",{className:"absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"},X))});R.propTypes={variant:a.default.oneOf(O.propTypesVariant),size:a.default.oneOf(O.propTypesSize),color:a.default.oneOf(O.propTypesColor),ripple:O.propTypesRipple,className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.IconButton";var P=R})(Wd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return y},default:function(){return p}});var r=D(ee),a=D(it),s=vr,l=D(ht),f=D(Cr),b=ut,S=D(qt),T=D(at),O=nt,j=d0,F=D(Wd);function z(){return z=Object.assign||function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&(v[_]=m[_])}return v},z.apply(this,arguments)}function D(v){return v&&v.__esModule?v:{default:v}}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.color,M=v.icon,X=v.open,H=v.action,B=v.onClose,U=v.animate,K=v.className,oe=v.children,ne=R(v,["variant","color","icon","open","action","onClose","animate","className","children"]),fe=(0,O.useTheme)().alert,me=fe.defaultProps,Se=fe.valid,be=fe.styles,ue=be.base,ge=be.variants;m=m??me.variant,_=_??me.color,K=K??me.className,U=U??me.animate,X=X??me.open,H=H??me.action,B=B??me.onClose;var ye=(0,T.default)(ue.alert),_e=(0,T.default)(ue.action),Ee=(0,T.default)(ge[(0,S.default)(Se.variants,m,"filled")][(0,S.default)(Se.colors,_,"gray")]),Ne=(0,b.twMerge)((0,l.default)(ye,Ee),K),Le=(0,l.default)(_e),Pe={unmount:{opacity:0},mount:{opacity:1}},Xe=(0,f.default)(Pe,U),Ve=r.default.createElement("div",{className:"shrink-0"},M),Re=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(Re,null,X&&r.default.createElement(s.m.div,z({},ne,{ref:g,role:"alert",className:"".concat(Ne," flex"),initial:"unmount",exit:"unmount",animate:X?"mount":"unmount",variants:Xe}),M&&Ve,r.default.createElement("div",{className:"".concat(M?"ml-3":""," mr-12")},oe),B&&!H&&r.default.createElement(F.default,{onClick:B,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:Le},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),H||null)))});y.propTypes={variant:a.default.oneOf(j.propTypesVariant),color:a.default.oneOf(j.propTypesColor),icon:j.propTypesIcon,open:j.propTypesOpen,action:j.propTypesAction,onClose:j.propTypesOnClose,animate:j.propTypesAnimate,className:j.propTypesClassName,children:j.propTypesChildren},y.displayName="MaterialTailwind.Alert";var p=y})(vT);var mT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Avatar:function(){return R},default:function(){return P}});var r=F(ee),a=F(it),s=F(ht),l=ut,f=F(qt),b=F(at),S=nt,T=f0;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.className,_=y.color,M=y.withBorder,X=z(y,["variant","size","className","color","withBorder"]),H=(0,S.useTheme)().avatar,B=H.valid,U=H.defaultProps,K=H.styles,oe=K.base,ne=K.variants,fe=K.sizes,me=K.borderColor;v=v??U.variant,g=g??U.size,m=m??U.className,M=M??U.withBorder,_=_??U.color;var Se=(0,b.default)(ne[(0,f.default)(B.variants,v,"rounded")]),be=(0,b.default)(fe[(0,f.default)(B.sizes,g,"md")]),ue=(0,b.default)(me[(0,f.default)(B.colors,_,"gray")]),ge,ye=(0,l.twMerge)((0,s.default)((0,b.default)(oe.initial),Se,be,(ge={},O(ge,(0,b.default)(oe.withBorder),M),O(ge,ue,M),ge)),m);return r.default.createElement("img",j({},X,{ref:p,className:ye}))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),size:a.default.oneOf(T.propTypesSize),className:T.propTypesClassName,withBorder:T.propTypesWithBorder,color:a.default.oneOf(T.propTypesColor)},R.displayName="MaterialTailwind.Avatar";var P=R})(mT);var yT={},xT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{propTypesSeparator:function(){return s},propTypesFullWidth:function(){return l},propTypesClassName:function(){return f},propTypesChildren:function(){return b}});var r=a(it);function a(S){return S&&S.__esModule?S:{default:S}}var s=r.default.node,l=r.default.bool,f=r.default.string,b=r.default.node.isRequired})(xT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Breadcrumbs:function(){return R},default:function(){return P}});var r=F(ee),a=O(ht),s=ut,l=O(at),f=nt,b=xT;function S(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function T(){return T=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},T.apply(this,arguments)}function O(y){return y&&y.__esModule?y:{default:y}}function j(y){if(typeof WeakMap!="function")return null;var p=new WeakMap,v=new WeakMap;return(j=function(g){return g?v:p})(y)}function F(y,p){if(!p&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=j(p);if(v&&v.has(y))return v.get(y);var g={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in y)if(_!=="default"&&Object.prototype.hasOwnProperty.call(y,_)){var M=m?Object.getOwnPropertyDescriptor(y,_):null;M&&(M.get||M.set)?Object.defineProperty(g,_,M):g[_]=y[_]}return g.default=y,v&&v.set(y,g),g}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=(0,r.forwardRef)(function(y,p){var v=y.separator,g=y.fullWidth,m=y.className,_=y.children,M=z(y,["separator","fullWidth","className","children"]),X=(0,f.useTheme)().breadcrumbs,H=X.defaultProps,B=X.styles.base;v=v??H.separator,g=g??H.fullWidth,m=m??H.className;var U=(0,a.default)((0,l.default)(B.root.initial),S({},(0,l.default)(B.root.fullWidth),g)),K=(0,s.twMerge)((0,a.default)((0,l.default)(B.list)),m),oe=(0,a.default)((0,l.default)(B.item.initial)),ne=(0,a.default)((0,l.default)(B.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:U},r.default.createElement("ol",T({},M,{ref:p,className:K}),r.Children.map(_,function(fe,me){if((0,r.isValidElement)(fe)){var Se;return r.default.createElement("li",{className:(0,a.default)(oe,S({},(0,l.default)(B.item.disabled),fe==null||(Se=fe.props)===null||Se===void 0?void 0:Se.disabled))},fe,me!==r.Children.count(_)-1&&r.default.createElement("span",{className:ne},v))}return null})))});R.propTypes={separator:b.propTypesSeparator,fullWidth:b.propTypesFullWidth,className:b.propTypesClassName,children:b.propTypesChildren},R.displayName="MaterialTailwind.Breadcrumbs";var P=R})(yT);var wT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Button:function(){return P},default:function(){return y}});var r=z(ee),a=z(it),s=z(ss),l=z(ht),f=ut,b=z(qt),S=z(at),T=nt,O=Ka;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.variant,m=p.size,_=p.color,M=p.fullWidth,X=p.ripple,H=p.className,B=p.children,U=D(p,["variant","size","color","fullWidth","ripple","className","children"]),K=(0,T.useTheme)().button,oe=K.valid,ne=K.defaultProps,fe=K.styles,me=fe.base,Se=fe.variants,be=fe.sizes;g=g??ne.variant,m=m??ne.size,_=_??ne.color,M=M??ne.fullWidth,X=X??ne.ripple,H=H??ne.className;var ue=X!==void 0&&new s.default,ge=(0,S.default)(me.initial),ye=(0,S.default)(Se[(0,b.default)(oe.variants,g,"filled")][(0,b.default)(oe.colors,_,"gray")]),_e=(0,S.default)(be[(0,b.default)(oe.sizes,m,"md")]),Ee=(0,f.twMerge)((0,l.default)(ge,_e,ye,j({},(0,S.default)(me.fullWidth),M)),H);return r.default.createElement("button",F({},U,{ref:v,className:Ee,type:U.type||"button",onMouseDown:function(Ne){var Le=U==null?void 0:U.onMouseDown;return X&&ue.create(Ne,(g==="filled"||g==="gradient")&&_!=="white"?"light":"dark"),typeof Le=="function"&&Le(Ne)}}),B)});P.propTypes={variant:a.default.oneOf(O.propTypesVariant),size:a.default.oneOf(O.propTypesSize),color:a.default.oneOf(O.propTypesColor),fullWidth:O.propTypesFullWidth,ripple:O.propTypesRipple,className:O.propTypesClassName,children:O.propTypesChildren},P.displayName="MaterialTailwind.Button";var y=P})(wT);var CT={},ST={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{CardHeader:function(){return R},default:function(){return P}});var r=F(ee),a=F(it),s=F(ht),l=ut,f=F(qt),b=F(at),S=nt,T=Za;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.color,m=y.shadow,_=y.floated,M=y.className,X=y.children,H=z(y,["variant","color","shadow","floated","className","children"]),B=(0,S.useTheme)().cardHeader,U=B.defaultProps,K=B.styles,oe=B.valid,ne=K.base,fe=K.variants;v=v??U.variant,g=g??U.color,m=m??U.shadow,_=_??U.floated,M=M??U.className;var me=(0,b.default)(ne.initial),Se=(0,b.default)(fe[(0,f.default)(oe.variants,v,"filled")][(0,f.default)(oe.colors,g,"white")]),be=(0,l.twMerge)((0,s.default)(me,Se,O({},(0,b.default)(ne.shadow),m),O({},(0,b.default)(ne.floated),_)),M);return r.default.createElement("div",j({},H,{ref:p,className:be}),X)});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),shadow:T.propTypesShadow,floated:T.propTypesFloated,className:T.propTypesClassName,children:T.propTypesChildren},R.displayName="MaterialTailwind.CardHeader";var P=R})(ST);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{CardBody:function(){return F},default:function(){return z}});var r=T(ee),a=T(ht),s=ut,l=T(at),f=nt,b=Za;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().cardBody,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.CardBody";var z=F})(kT);var TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{CardFooter:function(){return z},default:function(){return D}});var r=O(ee),a=O(ht),s=ut,l=O(at),f=nt,b=Za;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.divider,p=R.className,v=R.children,g=j(R,["divider","className","children"]),m=(0,f.useTheme)().cardFooter,_=m.defaultProps,M=m.styles.base;p=p??_.className,y=y??_.divider;var X=(0,s.twMerge)((0,a.default)((0,l.default)(M.initial),S({},(0,l.default)(M.divider),y)),p);return r.default.createElement("div",T({},g,{ref:P,className:X}),v)});z.propTypes={divider:b.propTypesDivider,className:b.propTypesClassName,children:b.propTypesChildren},z.displayName="MaterialTailwind.CardFooter";var D=z})(TT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return T.CardHeader},CardBody:function(){return O.CardBody},CardFooter:function(){return j.CardFooter},default:function(){return v}});var r=R(ee),a=R(it),s=R(ht),l=ut,f=R(qt),b=R(at),S=nt,T=ST,O=kT,j=TT,F=Za;function z(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function D(){return D=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},D.apply(this,arguments)}function R(g){return g&&g.__esModule?g:{default:g}}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,M=g.color,X=g.shadow,H=g.className,B=g.children,U=P(g,["variant","color","shadow","className","children"]),K=(0,S.useTheme)().card,oe=K.defaultProps,ne=K.styles,fe=K.valid,me=ne.base,Se=ne.variants;_=_??oe.variant,M=M??oe.color,X=X??oe.shadow,H=H??oe.className;var be=(0,b.default)(me.initial),ue=(0,b.default)(Se[(0,f.default)(fe.variants,_,"filled")][(0,f.default)(fe.colors,M,"white")]),ge=(0,l.twMerge)((0,s.default)(be,ue,z({},(0,b.default)(me.shadow),X)),H);return r.default.createElement("div",D({},U,{ref:m,className:ge}),B)});p.propTypes={variant:a.default.oneOf(F.propTypesVariant),color:a.default.oneOf(F.propTypesColor),shadow:F.propTypesShadow,className:F.propTypesClassName,children:F.propTypesChildren},p.displayName="MaterialTailwind.Card";var v=Object.assign(p,{Header:T.CardHeader,Body:O.CardBody,Footer:j.CardFooter})})(CT);var PT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Checkbox:function(){return P},default:function(){return y}});var r=z(ee),a=z(it),s=z(ss),l=z(ht),f=ut,b=z(qt),S=z(at),T=nt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.icon,M=p.ripple,X=p.className,H=p.disabled,B=p.containerProps,U=p.labelProps,K=p.iconProps,oe=p.inputRef,ne=D(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),fe=(0,T.useTheme)().checkbox,me=fe.defaultProps,Se=fe.valid,be=fe.styles,ue=be.base,ge=be.colors,ye=r.default.useId();g=g??me.color,m=m??me.label,_=_??me.icon,M=M??me.ripple,X=X??me.className,H=H??me.disabled,B=B??me.containerProps,U=U??me.labelProps,K=K??me.iconProps;var _e=M!==void 0&&new s.default,Ee=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),H)),Ne=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),B==null?void 0:B.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),X),Pe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className),Xe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.icon)),K==null?void 0:K.className);return r.default.createElement("div",{ref:v,className:Ee},r.default.createElement("label",F({},B,{className:Ne,htmlFor:ne.id||ye,onMouseDown:function(Ve){var Re=B==null?void 0:B.onMouseDown;return M&&_e.create(Ve,"dark"),typeof Re=="function"&&Re(Ve)}}),r.default.createElement("input",F({},ne,{ref:oe,type:"checkbox",disabled:H,className:Le,id:ne.id||ye})),r.default.createElement("span",{className:Xe},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",F({},U,{className:Pe,htmlFor:ne.id||ye}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,icon:O.propTypesIcon,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject},P.displayName="MaterialTailwind.Checkbox";var y=P})(PT);var _T={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return y},default:function(){return p}});var r=D(ee),a=D(it),s=vr,l=D(ht),f=D(Cr),b=ut,S=D(qt),T=D(at),O=nt,j=y0,F=D(Wd);function z(){return z=Object.assign||function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&(v[_]=m[_])}return v},z.apply(this,arguments)}function D(v){return v&&v.__esModule?v:{default:v}}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.size,M=v.color,X=v.icon,H=v.open,B=v.onClose,U=v.action,K=v.animate,oe=v.className,ne=v.value,fe=R(v,["variant","size","color","icon","open","onClose","action","animate","className","value"]),me=(0,O.useTheme)().chip,Se=me.defaultProps,be=me.valid,ue=me.styles,ge=ue.base,ye=ue.variants,_e=ue.sizes;m=m??Se.variant,_=_??Se.size,M=M??Se.color,oe=oe??Se.className,K=K??Se.animate,H=H??Se.open,U=U??Se.action,B=B??Se.onClose;var Ee=(0,T.default)(ge.chip),Ne=(0,T.default)(ge.action),Le=(0,T.default)(ge.icon),Pe=(0,T.default)(ye[(0,S.default)(be.variants,m,"filled")][(0,S.default)(be.colors,M,"gray")]),Xe=(0,T.default)(_e[(0,S.default)(be.sizes,_,"md")].chip),Ve=(0,T.default)(_e[(0,S.default)(be.sizes,_,"md")].action),Re=(0,T.default)(_e[(0,S.default)(be.sizes,_,"md")].icon),He=(0,b.twMerge)((0,l.default)(Ee,Pe,Xe),oe),We=(0,l.default)(Ne,Ve),Ke=(0,l.default)(Le,Re),ot=(0,l.default)({"ml-4":X&&_==="sm","ml-[18px]":X&&_==="md","ml-5":X&&_==="lg","mr-5":B}),Qe={unmount:{opacity:0},mount:{opacity:1}},qe=(0,f.default)(Qe,K),st=r.default.createElement("div",{className:Ke},X),wt=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(wt,null,H&&r.default.createElement(s.m.div,z({},fe,{ref:g,className:He,initial:"unmount",exit:"unmount",animate:H?"mount":"unmount",variants:qe}),X&&st,r.default.createElement("span",{className:ot},ne),B&&!U&&r.default.createElement(F.default,{onClick:B,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?M:"white",className:We},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,l.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),U||null)))});y.propTypes={variant:a.default.oneOf(j.propTypesVariant),size:a.default.oneOf(j.propTypesSize),color:a.default.oneOf(j.propTypesColor),icon:j.propTypesIcon,open:j.propTypesOpen,onClose:j.propTypesOnClose,action:j.propTypesAction,animate:j.propTypesAnimate,className:j.propTypesClassName,value:j.propTypesValue},y.displayName="MaterialTailwind.Chip";var p=y})(_T);var OT={},UD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,Nu=new WeakMap,Iu={},xp=0,AT=function(e){return e&&(e.host||AT(e.parentNode))},$D=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=AT(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},qD=function(e,t,r,a){var s=$D(t,Array.isArray(e)?e:[e]);Iu[r]||(Iu[r]=new WeakMap);var l=Iu[r],f=[],b=new Set,S=new Set(s),T=function(j){!j||b.has(j)||(b.add(j),T(j.parentNode))};s.forEach(T);var O=function(j){!j||S.has(j)||Array.prototype.forEach.call(j.children,function(F){if(b.has(F))O(F);else try{var z=F.getAttribute(a),D=z!==null&&z!=="false",R=(di.get(F)||0)+1,P=(l.get(F)||0)+1;di.set(F,R),l.set(F,P),f.push(F),R===1&&D&&Nu.set(F,!0),P===1&&F.setAttribute(r,"true"),D||F.setAttribute(a,"true")}catch(y){console.error("aria-hidden: cannot operate on ",F,y)}})};return O(t),b.clear(),xp++,function(){f.forEach(function(j){var F=di.get(j)-1,z=l.get(j)-1;di.set(j,F),l.set(j,z),F||(Nu.has(j)||j.removeAttribute(a),Nu.delete(j)),z||j.removeAttribute(r)}),xp--,xp||(di=new WeakMap,di=new WeakMap,Nu=new WeakMap,Iu={})}},KD=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=t||UD(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),qD(a,s,r,"aria-hidden")):function(){return null}};/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var ZD=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],qh=ZD.join(","),ET=typeof Element>"u",Ml=ET?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Kc=!ET&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Zc=function e(t,r){var a;r===void 0&&(r=!0);var s=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),l=s===""||s==="true",f=l||r&&t&&e(t.parentNode);return f},QD=function(t){var r,a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return a===""||a==="true"},JD=function(t,r,a){if(Zc(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(qh));return r&&Ml.call(t,qh)&&s.unshift(t),s=s.filter(a),s},ez=function e(t,r,a){for(var s=[],l=Array.from(t);l.length;){var f=l.shift();if(!Zc(f,!1))if(f.tagName==="SLOT"){var b=f.assignedElements(),S=b.length?b:f.children,T=e(S,!0,a);a.flatten?s.push.apply(s,T):s.push({scopeParent:f,candidates:T})}else{var O=Ml.call(f,qh);O&&a.filter(f)&&(r||!t.includes(f))&&s.push(f);var j=f.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(f),F=!Zc(j,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(f));if(j&&F){var z=e(j===!0?f.children:j.children,!0,a);a.flatten?s.push.apply(s,z):s.push({scopeParent:f,candidates:z})}else l.unshift.apply(l,f.children)}}return s},MT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},RT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||QD(t))&&!MT(t)?0:t.tabIndex},tz=function(t,r){var a=RT(t);return a<0&&r&&!MT(t)?0:a},rz=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},NT=function(t){return t.tagName==="INPUT"},nz=function(t){return NT(t)&&t.type==="hidden"},oz=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return r},az=function(t,r){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===r)return t[a]},iz=function(t){if(!t.name)return!0;var r=t.form||Kc(t),a=function(b){return r.querySelectorAll('input[type="radio"][name="'+b+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(t.name));else try{s=a(t.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var l=az(s,t.form);return!l||l===t},sz=function(t){return NT(t)&&t.type==="radio"},lz=function(t){return sz(t)&&!iz(t)},uz=function(t){var r,a=t&&Kc(t),s=(r=a)===null||r===void 0?void 0:r.host,l=!1;if(a&&a!==t){var f,b,S;for(l=!!((f=s)!==null&&f!==void 0&&(b=f.ownerDocument)!==null&&b!==void 0&&b.contains(s)||t!=null&&(S=t.ownerDocument)!==null&&S!==void 0&&S.contains(t));!l&&s;){var T,O,j;a=Kc(s),s=(T=a)===null||T===void 0?void 0:T.host,l=!!((O=s)!==null&&O!==void 0&&(j=O.ownerDocument)!==null&&j!==void 0&&j.contains(s))}}return l},$y=function(t){var r=t.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},cz=function(t,r){var a=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var l=Ml.call(t,"details>summary:first-of-type"),f=l?t.parentElement:t;if(Ml.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof s=="function"){for(var b=t;t;){var S=t.parentElement,T=Kc(t);if(S&&!S.shadowRoot&&s(S)===!0)return $y(t);t.assignedSlot?t=t.assignedSlot:!S&&T!==t.ownerDocument?t=T.host:t=S}t=b}if(uz(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return $y(t);return!1},dz=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return Ml.call(r,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}r=r.parentElement}return!1},fz=function(t,r){return!(r.disabled||Zc(r)||nz(r)||cz(r,t)||oz(r)||dz(r))},qy=function(t,r){return!(lz(r)||RT(r)<0||!fz(t,r))},pz=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},hz=function e(t){var r=[],a=[];return t.forEach(function(s,l){var f=!!s.scopeParent,b=f?s.scopeParent:s,S=tz(b,f),T=f?e(s.candidates):b;S===0?f?r.push.apply(r,T):r.push(b):a.push({documentOrder:l,tabIndex:S,item:s,isScope:f,content:T})}),a.sort(rz).reduce(function(s,l){return l.isScope?s.push.apply(s,l.content):s.push(l.content),s},[]).concat(r)},Qc=function(t,r){r=r||{};var a;return r.getShadowRoot?a=ez([t],r.includeContainer,{filter:qy.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:pz}):a=JD(t,r.includeContainer,qy.bind(null,r)),hz(a)};const IT=["top","right","bottom","left"],Ky=["start","end"],Zy=IT.reduce((e,t)=>e.concat(t,t+"-"+Ky[0],t+"-"+Ky[1]),[]),Bn=Math.min,Ar=Math.max,Jc=Math.round,Lu=Math.floor,io=e=>({x:e,y:e}),gz={left:"right",right:"left",bottom:"top",top:"bottom"},bz={start:"end",end:"start"};function Kh(e,t,r){return Ar(e,Bn(t,r))}function Hn(e,t){return typeof e=="function"?e(t):e}function cn(e){return e.split("-")[0]}function Fn(e){return e.split("-")[1]}function $0(e){return e==="x"?"y":"x"}function q0(e){return e==="y"?"height":"width"}const vz=new Set(["top","bottom"]);function jn(e){return vz.has(cn(e))?"y":"x"}function K0(e){return $0(jn(e))}function LT(e,t,r){r===void 0&&(r=!1);const a=Fn(e),s=K0(e),l=q0(s);let f=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(f=td(f)),[f,td(f)]}function mz(e){const t=td(e);return[ed(e),t,ed(t)]}function ed(e){return e.replace(/start|end/g,t=>bz[t])}const Qy=["left","right"],Jy=["right","left"],yz=["top","bottom"],xz=["bottom","top"];function wz(e,t,r){switch(e){case"top":case"bottom":return r?t?Jy:Qy:t?Qy:Jy;case"left":case"right":return t?yz:xz;default:return[]}}function Cz(e,t,r,a){const s=Fn(e);let l=wz(cn(e),r==="start",a);return s&&(l=l.map(f=>f+"-"+s),t&&(l=l.concat(l.map(ed)))),l}function td(e){return e.replace(/left|right|bottom|top/g,t=>gz[t])}function Sz(e){return{top:0,right:0,bottom:0,left:0,...e}}function Z0(e){return typeof e!="number"?Sz(e):{top:e,right:e,bottom:e,left:e}}function Ki(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}function ex(e,t,r){let{reference:a,floating:s}=e;const l=jn(t),f=K0(t),b=q0(f),S=cn(t),T=l==="y",O=a.x+a.width/2-s.width/2,j=a.y+a.height/2-s.height/2,F=a[b]/2-s[b]/2;let z;switch(S){case"top":z={x:O,y:a.y-s.height};break;case"bottom":z={x:O,y:a.y+a.height};break;case"right":z={x:a.x+a.width,y:j};break;case"left":z={x:a.x-s.width,y:j};break;default:z={x:a.x,y:a.y}}switch(Fn(t)){case"start":z[f]-=F*(r&&T?-1:1);break;case"end":z[f]+=F*(r&&T?-1:1);break}return z}const kz=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:f}=r,b=l.filter(Boolean),S=await(f.isRTL==null?void 0:f.isRTL(t));let T=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:O,y:j}=ex(T,a,S),F=a,z={},D=0;for(let R=0;R<b.length;R++){const{name:P,fn:y}=b[R],{x:p,y:v,data:g,reset:m}=await y({x:O,y:j,initialPlacement:a,placement:F,strategy:s,middlewareData:z,rects:T,platform:f,elements:{reference:e,floating:t}});O=p??O,j=v??j,z={...z,[P]:{...z[P],...g}},m&&D<=50&&(D++,typeof m=="object"&&(m.placement&&(F=m.placement),m.rects&&(T=m.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):m.rects),{x:O,y:j}=ex(T,F,S)),R=-1)}return{x:O,y:j,placement:F,strategy:s,middlewareData:z}};async function Wa(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:l,rects:f,elements:b,strategy:S}=e,{boundary:T="clippingAncestors",rootBoundary:O="viewport",elementContext:j="floating",altBoundary:F=!1,padding:z=0}=Hn(t,e),D=Z0(z),P=b[F?j==="floating"?"reference":"floating":j],y=Ki(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(P)))==null||r?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(b.floating)),boundary:T,rootBoundary:O,strategy:S})),p=j==="floating"?{x:a,y:s,width:f.floating.width,height:f.floating.height}:f.reference,v=await(l.getOffsetParent==null?void 0:l.getOffsetParent(b.floating)),g=await(l.isElement==null?void 0:l.isElement(v))?await(l.getScale==null?void 0:l.getScale(v))||{x:1,y:1}:{x:1,y:1},m=Ki(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:p,offsetParent:v,strategy:S}):p);return{top:(y.top-m.top+D.top)/g.y,bottom:(m.bottom-y.bottom+D.bottom)/g.y,left:(y.left-m.left+D.left)/g.x,right:(m.right-y.right+D.right)/g.x}}const Tz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:l,platform:f,elements:b,middlewareData:S}=t,{element:T,padding:O=0}=Hn(e,t)||{};if(T==null)return{};const j=Z0(O),F={x:r,y:a},z=K0(s),D=q0(z),R=await f.getDimensions(T),P=z==="y",y=P?"top":"left",p=P?"bottom":"right",v=P?"clientHeight":"clientWidth",g=l.reference[D]+l.reference[z]-F[z]-l.floating[D],m=F[z]-l.reference[z],_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(T));let M=_?_[v]:0;(!M||!await(f.isElement==null?void 0:f.isElement(_)))&&(M=b.floating[v]||l.floating[D]);const X=g/2-m/2,H=M/2-R[D]/2-1,B=Bn(j[y],H),U=Bn(j[p],H),K=B,oe=M-R[D]-U,ne=M/2-R[D]/2+X,fe=Kh(K,ne,oe),me=!S.arrow&&Fn(s)!=null&&ne!==fe&&l.reference[D]/2-(ne<K?B:U)-R[D]/2<0,Se=me?ne<K?ne-K:ne-oe:0;return{[z]:F[z]+Se,data:{[z]:fe,centerOffset:ne-fe-Se,...me&&{alignmentOffset:Se}},reset:me}}});function Pz(e,t,r){return(e?[...r.filter(s=>Fn(s)===e),...r.filter(s=>Fn(s)!==e)]:r.filter(s=>cn(s)===s)).filter(s=>e?Fn(s)===e||(t?ed(s)!==s:!1):!0)}const _z=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,a,s;const{rects:l,middlewareData:f,placement:b,platform:S,elements:T}=t,{crossAxis:O=!1,alignment:j,allowedPlacements:F=Zy,autoAlignment:z=!0,...D}=Hn(e,t),R=j!==void 0||F===Zy?Pz(j||null,z,F):F,P=await Wa(t,D),y=((r=f.autoPlacement)==null?void 0:r.index)||0,p=R[y];if(p==null)return{};const v=LT(p,l,await(S.isRTL==null?void 0:S.isRTL(T.floating)));if(b!==p)return{reset:{placement:R[0]}};const g=[P[cn(p)],P[v[0]],P[v[1]]],m=[...((a=f.autoPlacement)==null?void 0:a.overflows)||[],{placement:p,overflows:g}],_=R[y+1];if(_)return{data:{index:y+1,overflows:m},reset:{placement:_}};const M=m.map(B=>{const U=Fn(B.placement);return[B.placement,U&&O?B.overflows.slice(0,2).reduce((K,oe)=>K+oe,0):B.overflows[0],B.overflows]}).sort((B,U)=>B[1]-U[1]),H=((s=M.filter(B=>B[2].slice(0,Fn(B[0])?2:3).every(U=>U<=0))[0])==null?void 0:s[0])||M[0][0];return H!==b?{data:{index:y+1,overflows:m},reset:{placement:H}}:{}}}},Oz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:s,middlewareData:l,rects:f,initialPlacement:b,platform:S,elements:T}=t,{mainAxis:O=!0,crossAxis:j=!0,fallbackPlacements:F,fallbackStrategy:z="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:R=!0,...P}=Hn(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const y=cn(s),p=jn(b),v=cn(b)===b,g=await(S.isRTL==null?void 0:S.isRTL(T.floating)),m=F||(v||!R?[td(b)]:mz(b)),_=D!=="none";!F&&_&&m.push(...Cz(b,R,D,g));const M=[b,...m],X=await Wa(t,P),H=[];let B=((a=l.flip)==null?void 0:a.overflows)||[];if(O&&H.push(X[y]),j){const ne=LT(s,f,g);H.push(X[ne[0]],X[ne[1]])}if(B=[...B,{placement:s,overflows:H}],!H.every(ne=>ne<=0)){var U,K;const ne=(((U=l.flip)==null?void 0:U.index)||0)+1,fe=M[ne];if(fe&&(!(j==="alignment"?p!==jn(fe):!1)||B.every(be=>jn(be.placement)===p?be.overflows[0]>0:!0)))return{data:{index:ne,overflows:B},reset:{placement:fe}};let me=(K=B.filter(Se=>Se.overflows[0]<=0).sort((Se,be)=>Se.overflows[1]-be.overflows[1])[0])==null?void 0:K.placement;if(!me)switch(z){case"bestFit":{var oe;const Se=(oe=B.filter(be=>{if(_){const ue=jn(be.placement);return ue===p||ue==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(ue=>ue>0).reduce((ue,ge)=>ue+ge,0)]).sort((be,ue)=>be[1]-ue[1])[0])==null?void 0:oe[0];Se&&(me=Se);break}case"initialPlacement":me=b;break}if(s!==me)return{reset:{placement:me}}}return{}}}};function tx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rx(e){return IT.some(t=>e[t]>=0)}const Az=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...s}=Hn(e,t);switch(a){case"referenceHidden":{const l=await Wa(t,{...s,elementContext:"reference"}),f=tx(l,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:rx(f)}}}case"escaped":{const l=await Wa(t,{...s,altBoundary:!0}),f=tx(l,r.floating);return{data:{escapedOffsets:f,escaped:rx(f)}}}default:return{}}}}};function jT(e){const t=Bn(...e.map(l=>l.left)),r=Bn(...e.map(l=>l.top)),a=Ar(...e.map(l=>l.right)),s=Ar(...e.map(l=>l.bottom));return{x:t,y:r,width:a-t,height:s-r}}function Ez(e){const t=e.slice().sort((s,l)=>s.y-l.y),r=[];let a=null;for(let s=0;s<t.length;s++){const l=t[s];!a||l.y-a.y>a.height/2?r.push([l]):r[r.length-1].push(l),a=l}return r.map(s=>Ki(jT(s)))}const Mz=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:a,rects:s,platform:l,strategy:f}=t,{padding:b=2,x:S,y:T}=Hn(e,t),O=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(a.reference))||[]),j=Ez(O),F=Ki(jT(O)),z=Z0(b);function D(){if(j.length===2&&j[0].left>j[1].right&&S!=null&&T!=null)return j.find(P=>S>P.left-z.left&&S<P.right+z.right&&T>P.top-z.top&&T<P.bottom+z.bottom)||F;if(j.length>=2){if(jn(r)==="y"){const B=j[0],U=j[j.length-1],K=cn(r)==="top",oe=B.top,ne=U.bottom,fe=K?B.left:U.left,me=K?B.right:U.right,Se=me-fe,be=ne-oe;return{top:oe,bottom:ne,left:fe,right:me,width:Se,height:be,x:fe,y:oe}}const P=cn(r)==="left",y=Ar(...j.map(B=>B.right)),p=Bn(...j.map(B=>B.left)),v=j.filter(B=>P?B.left===p:B.right===y),g=v[0].top,m=v[v.length-1].bottom,_=p,M=y,X=M-_,H=m-g;return{top:g,bottom:m,left:_,right:M,width:X,height:H,x:_,y:g}}return F}const R=await l.getElementRects({reference:{getBoundingClientRect:D},floating:a.floating,strategy:f});return s.reference.x!==R.reference.x||s.reference.y!==R.reference.y||s.reference.width!==R.reference.width||s.reference.height!==R.reference.height?{reset:{rects:R}}:{}}}},DT=new Set(["left","top"]);async function Rz(e,t){const{placement:r,platform:a,elements:s}=e,l=await(a.isRTL==null?void 0:a.isRTL(s.floating)),f=cn(r),b=Fn(r),S=jn(r)==="y",T=DT.has(f)?-1:1,O=l&&S?-1:1,j=Hn(t,e);let{mainAxis:F,crossAxis:z,alignmentAxis:D}=typeof j=="number"?{mainAxis:j,crossAxis:0,alignmentAxis:null}:{mainAxis:j.mainAxis||0,crossAxis:j.crossAxis||0,alignmentAxis:j.alignmentAxis};return b&&typeof D=="number"&&(z=b==="end"?D*-1:D),S?{x:z*O,y:F*T}:{x:F*T,y:z*O}}const Nz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:l,placement:f,middlewareData:b}=t,S=await Rz(t,e);return f===((r=b.offset)==null?void 0:r.placement)&&(a=b.arrow)!=null&&a.alignmentOffset?{}:{x:s+S.x,y:l+S.y,data:{...S,placement:f}}}}},Iz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:b={fn:P=>{let{x:y,y:p}=P;return{x:y,y:p}}},...S}=Hn(e,t),T={x:r,y:a},O=await Wa(t,S),j=jn(cn(s)),F=$0(j);let z=T[F],D=T[j];if(l){const P=F==="y"?"top":"left",y=F==="y"?"bottom":"right",p=z+O[P],v=z-O[y];z=Kh(p,z,v)}if(f){const P=j==="y"?"top":"left",y=j==="y"?"bottom":"right",p=D+O[P],v=D-O[y];D=Kh(p,D,v)}const R=b.fn({...t,[F]:z,[j]:D});return{...R,data:{x:R.x-r,y:R.y-a,enabled:{[F]:l,[j]:f}}}}}},Lz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:l,middlewareData:f}=t,{offset:b=0,mainAxis:S=!0,crossAxis:T=!0}=Hn(e,t),O={x:r,y:a},j=jn(s),F=$0(j);let z=O[F],D=O[j];const R=Hn(b,t),P=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(S){const v=F==="y"?"height":"width",g=l.reference[F]-l.floating[v]+P.mainAxis,m=l.reference[F]+l.reference[v]-P.mainAxis;z<g?z=g:z>m&&(z=m)}if(T){var y,p;const v=F==="y"?"width":"height",g=DT.has(cn(s)),m=l.reference[j]-l.floating[v]+(g&&((y=f.offset)==null?void 0:y[j])||0)+(g?0:P.crossAxis),_=l.reference[j]+l.reference[v]+(g?0:((p=f.offset)==null?void 0:p[j])||0)-(g?P.crossAxis:0);D<m?D=m:D>_&&(D=_)}return{[F]:z,[j]:D}}}},jz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:l,platform:f,elements:b}=t,{apply:S=()=>{},...T}=Hn(e,t),O=await Wa(t,T),j=cn(s),F=Fn(s),z=jn(s)==="y",{width:D,height:R}=l.floating;let P,y;j==="top"||j==="bottom"?(P=j,y=F===(await(f.isRTL==null?void 0:f.isRTL(b.floating))?"start":"end")?"left":"right"):(y=j,P=F==="end"?"top":"bottom");const p=R-O.top-O.bottom,v=D-O.left-O.right,g=Bn(R-O[P],p),m=Bn(D-O[y],v),_=!t.middlewareData.shift;let M=g,X=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(X=v),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(M=p),_&&!F){const B=Ar(O.left,0),U=Ar(O.right,0),K=Ar(O.top,0),oe=Ar(O.bottom,0);z?X=D-2*(B!==0||U!==0?B+U:Ar(O.left,O.right)):M=R-2*(K!==0||oe!==0?K+oe:Ar(O.top,O.bottom))}await S({...t,availableWidth:X,availableHeight:M});const H=await f.getDimensions(b.floating);return D!==H.width||R!==H.height?{reset:{rects:!0}}:{}}}};function Bd(){return typeof window<"u"}function ls(e){return zT(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lo(e){var t;return(t=(zT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zT(e){return Bd()?e instanceof Node||e instanceof on(e).Node:!1}function Xn(e){return Bd()?e instanceof Element||e instanceof on(e).Element:!1}function so(e){return Bd()?e instanceof HTMLElement||e instanceof on(e).HTMLElement:!1}function nx(e){return!Bd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}const Dz=new Set(["inline","contents"]);function ql(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=Yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!Dz.has(s)}const zz=new Set(["table","td","th"]);function Fz(e){return zz.has(ls(e))}const Vz=[":popover-open",":modal"];function Hd(e){return Vz.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wz=["transform","translate","scale","rotate","perspective"],Bz=["transform","translate","scale","rotate","perspective","filter"],Hz=["paint","layout","strict","content"];function Q0(e){const t=J0(),r=Xn(e)?Yn(e):e;return Wz.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Bz.some(a=>(r.willChange||"").includes(a))||Hz.some(a=>(r.contain||"").includes(a))}function Xz(e){let t=ca(e);for(;so(t)&&!Zi(t);){if(Q0(t))return t;if(Hd(t))return null;t=ca(t)}return null}function J0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yz=new Set(["html","body","#document"]);function Zi(e){return Yz.has(ls(e))}function Yn(e){return on(e).getComputedStyle(e)}function Xd(e){return Xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(ls(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nx(e)&&e.host||lo(e);return nx(t)?t.host:t}function FT(e){const t=ca(e);return Zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:so(t)&&ql(t)?t:FT(t)}function Co(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=FT(e),l=s===((a=e.ownerDocument)==null?void 0:a.body),f=on(s);if(l){const b=Zh(f);return t.concat(f,f.visualViewport||[],ql(s)?s:[],b&&r?Co(b):[])}return t.concat(s,Co(s,[],r))}function Zh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VT(e){const t=Yn(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=so(e),l=s?e.offsetWidth:r,f=s?e.offsetHeight:a,b=Jc(r)!==l||Jc(a)!==f;return b&&(r=l,a=f),{width:r,height:a,$:b}}function eb(e){return Xn(e)?e:e.contextElement}function Di(e){const t=eb(e);if(!so(t))return io(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:l}=VT(t);let f=(l?Jc(r.width):r.width)/a,b=(l?Jc(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!b||!Number.isFinite(b))&&(b=1),{x:f,y:b}}const Gz=io(0);function WT(e){const t=on(e);return!J0()||!t.visualViewport?Gz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uz(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==on(e)?!1:t}function Ba(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),l=eb(e);let f=io(1);t&&(a?Xn(a)&&(f=Di(a)):f=Di(e));const b=Uz(l,r,a)?WT(l):io(0);let S=(s.left+b.x)/f.x,T=(s.top+b.y)/f.y,O=s.width/f.x,j=s.height/f.y;if(l){const F=on(l),z=a&&Xn(a)?on(a):a;let D=F,R=Zh(D);for(;R&&a&&z!==D;){const P=Di(R),y=R.getBoundingClientRect(),p=Yn(R),v=y.left+(R.clientLeft+parseFloat(p.paddingLeft))*P.x,g=y.top+(R.clientTop+parseFloat(p.paddingTop))*P.y;S*=P.x,T*=P.y,O*=P.x,j*=P.y,S+=v,T+=g,D=on(R),R=Zh(D)}}return Ki({width:O,height:j,x:S,y:T})}function Yd(e,t){const r=Xd(e).scrollLeft;return t?t.left+r:Ba(lo(e)).left+r}function BT(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-Yd(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function $z(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const l=s==="fixed",f=lo(a),b=t?Hd(t.floating):!1;if(a===f||b&&l)return r;let S={scrollLeft:0,scrollTop:0},T=io(1);const O=io(0),j=so(a);if((j||!j&&!l)&&((ls(a)!=="body"||ql(f))&&(S=Xd(a)),so(a))){const z=Ba(a);T=Di(a),O.x=z.x+a.clientLeft,O.y=z.y+a.clientTop}const F=f&&!j&&!l?BT(f,S):io(0);return{width:r.width*T.x,height:r.height*T.y,x:r.x*T.x-S.scrollLeft*T.x+O.x+F.x,y:r.y*T.y-S.scrollTop*T.y+O.y+F.y}}function qz(e){return Array.from(e.getClientRects())}function Kz(e){const t=lo(e),r=Xd(e),a=e.ownerDocument.body,s=Ar(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Ar(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let f=-r.scrollLeft+Yd(e);const b=-r.scrollTop;return Yn(a).direction==="rtl"&&(f+=Ar(t.clientWidth,a.clientWidth)-s),{width:s,height:l,x:f,y:b}}const ox=25;function Zz(e,t){const r=on(e),a=lo(e),s=r.visualViewport;let l=a.clientWidth,f=a.clientHeight,b=0,S=0;if(s){l=s.width,f=s.height;const O=J0();(!O||O&&t==="fixed")&&(b=s.offsetLeft,S=s.offsetTop)}const T=Yd(a);if(T<=0){const O=a.ownerDocument,j=O.body,F=getComputedStyle(j),z=O.compatMode==="CSS1Compat"&&parseFloat(F.marginLeft)+parseFloat(F.marginRight)||0,D=Math.abs(a.clientWidth-j.clientWidth-z);D<=ox&&(l-=D)}else T<=ox&&(l+=T);return{width:l,height:f,x:b,y:S}}const Qz=new Set(["absolute","fixed"]);function Jz(e,t){const r=Ba(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,l=so(e)?Di(e):io(1),f=e.clientWidth*l.x,b=e.clientHeight*l.y,S=s*l.x,T=a*l.y;return{width:f,height:b,x:S,y:T}}function ax(e,t,r){let a;if(t==="viewport")a=Zz(e,r);else if(t==="document")a=Kz(lo(e));else if(Xn(t))a=Jz(t,r);else{const s=WT(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ki(a)}function HT(e,t){const r=ca(e);return r===t||!Xn(r)||Zi(r)?!1:Yn(r).position==="fixed"||HT(r,t)}function eF(e,t){const r=t.get(e);if(r)return r;let a=Co(e,[],!1).filter(b=>Xn(b)&&ls(b)!=="body"),s=null;const l=Yn(e).position==="fixed";let f=l?ca(e):e;for(;Xn(f)&&!Zi(f);){const b=Yn(f),S=Q0(f);!S&&b.position==="fixed"&&(s=null),(l?!S&&!s:!S&&b.position==="static"&&!!s&&Qz.has(s.position)||ql(f)&&!S&&HT(e,f))?a=a.filter(O=>O!==f):s=b,f=ca(f)}return t.set(e,a),a}function tF(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const f=[...r==="clippingAncestors"?Hd(t)?[]:eF(t,this._c):[].concat(r),a],b=f[0],S=f.reduce((T,O)=>{const j=ax(t,O,s);return T.top=Ar(j.top,T.top),T.right=Bn(j.right,T.right),T.bottom=Bn(j.bottom,T.bottom),T.left=Ar(j.left,T.left),T},ax(t,b,s));return{width:S.right-S.left,height:S.bottom-S.top,x:S.left,y:S.top}}function rF(e){const{width:t,height:r}=VT(e);return{width:t,height:r}}function nF(e,t,r){const a=so(t),s=lo(t),l=r==="fixed",f=Ba(e,!0,l,t);let b={scrollLeft:0,scrollTop:0};const S=io(0);function T(){S.x=Yd(s)}if(a||!a&&!l)if((ls(t)!=="body"||ql(s))&&(b=Xd(t)),a){const z=Ba(t,!0,l,t);S.x=z.x+t.clientLeft,S.y=z.y+t.clientTop}else s&&T();l&&!a&&s&&T();const O=s&&!a&&!l?BT(s,b):io(0),j=f.left+b.scrollLeft-S.x-O.x,F=f.top+b.scrollTop-S.y-O.y;return{x:j,y:F,width:f.width,height:f.height}}function wp(e){return Yn(e).position==="static"}function ix(e,t){if(!so(e)||Yn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return lo(e)===r&&(r=r.ownerDocument.body),r}function XT(e,t){const r=on(e);if(Hd(e))return r;if(!so(e)){let s=ca(e);for(;s&&!Zi(s);){if(Xn(s)&&!wp(s))return s;s=ca(s)}return r}let a=ix(e,t);for(;a&&Fz(a)&&wp(a);)a=ix(a,t);return a&&Zi(a)&&wp(a)&&!Q0(a)?r:a||Xz(e)||r}const oF=async function(e){const t=this.getOffsetParent||XT,r=this.getDimensions,a=await r(e.floating);return{reference:nF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function aF(e){return Yn(e).direction==="rtl"}const YT={convertOffsetParentRelativeRectToViewportRelativeRect:$z,getDocumentElement:lo,getClippingRect:tF,getOffsetParent:XT,getElementRects:oF,getClientRects:qz,getDimensions:rF,getScale:Di,isElement:Xn,isRTL:aF};function GT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iF(e,t){let r=null,a;const s=lo(e);function l(){var b;clearTimeout(a),(b=r)==null||b.disconnect(),r=null}function f(b,S){b===void 0&&(b=!1),S===void 0&&(S=1),l();const T=e.getBoundingClientRect(),{left:O,top:j,width:F,height:z}=T;if(b||t(),!F||!z)return;const D=Lu(j),R=Lu(s.clientWidth-(O+F)),P=Lu(s.clientHeight-(j+z)),y=Lu(O),v={rootMargin:-D+"px "+-R+"px "+-P+"px "+-y+"px",threshold:Ar(0,Bn(1,S))||1};let g=!0;function m(_){const M=_[0].intersectionRatio;if(M!==S){if(!g)return f();M?f(!1,M):a=setTimeout(()=>{f(!1,1e-7)},1e3)}M===1&&!GT(T,e.getBoundingClientRect())&&f(),g=!1}try{r=new IntersectionObserver(m,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(m,v)}r.observe(e)}return f(!0),l}function sF(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:S=!1}=a,T=eb(e),O=s||l?[...T?Co(T):[],...Co(t)]:[];O.forEach(y=>{s&&y.addEventListener("scroll",r,{passive:!0}),l&&y.addEventListener("resize",r)});const j=T&&b?iF(T,r):null;let F=-1,z=null;f&&(z=new ResizeObserver(y=>{let[p]=y;p&&p.target===T&&z&&(z.unobserve(t),cancelAnimationFrame(F),F=requestAnimationFrame(()=>{var v;(v=z)==null||v.observe(t)})),r()}),T&&!S&&z.observe(T),z.observe(t));let D,R=S?Ba(e):null;S&&P();function P(){const y=Ba(e);R&&!GT(R,y)&&r(),R=y,D=requestAnimationFrame(P)}return r(),()=>{var y;O.forEach(p=>{s&&p.removeEventListener("scroll",r),l&&p.removeEventListener("resize",r)}),j==null||j(),(y=z)==null||y.disconnect(),z=null,S&&cancelAnimationFrame(D)}}const ac=Wa,UT=Nz,lF=_z,uF=Iz,cF=Oz,dF=jz,fF=Az,sx=Tz,pF=Mz,hF=Lz,$T=(e,t,r)=>{const a=new Map,s={platform:YT,...r},l={...s.platform,_c:a};return kz(e,t,{...s,platform:l})},gF=e=>{const{element:t,padding:r}=e;function a(s){return Object.prototype.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){return a(t)?t.current!=null?sx({element:t.current,padding:r}).fn(s):{}:t?sx({element:t,padding:r}).fn(s):{}}}};var ic=typeof document<"u"?ee.useLayoutEffect:ee.useEffect;function rd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!rd(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[a]))return!1;for(a=r;a--!==0;){const l=s[a];if(!(l==="_owner"&&e.$$typeof)&&!rd(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function lx(e){const t=ee.useRef(e);return ic(()=>{t.current=e}),t}function bF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:s,whileElementsMounted:l,open:f}=e,[b,S]=ee.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[T,O]=ee.useState(a);rd(T,a)||O(a);const j=ee.useRef(null),F=ee.useRef(null),z=ee.useRef(b),D=lx(l),R=lx(s),[P,y]=ee.useState(null),[p,v]=ee.useState(null),g=ee.useCallback(B=>{j.current!==B&&(j.current=B,y(B))},[]),m=ee.useCallback(B=>{F.current!==B&&(F.current=B,v(B))},[]),_=ee.useCallback(()=>{if(!j.current||!F.current)return;const B={placement:t,strategy:r,middleware:T};R.current&&(B.platform=R.current),$T(j.current,F.current,B).then(U=>{const K={...U,isPositioned:!0};M.current&&!rd(z.current,K)&&(z.current=K,_o.flushSync(()=>{S(K)}))})},[T,t,r,R]);ic(()=>{f===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,S(B=>({...B,isPositioned:!1})))},[f]);const M=ee.useRef(!1);ic(()=>(M.current=!0,()=>{M.current=!1}),[]),ic(()=>{if(P&&p){if(D.current)return D.current(P,p,_);_()}},[P,p,_,D]);const X=ee.useMemo(()=>({reference:j,floating:F,setReference:g,setFloating:m}),[g,m]),H=ee.useMemo(()=>({reference:P,floating:p}),[P,p]);return ee.useMemo(()=>({...b,update:_,refs:X,elements:H,reference:g,floating:m}),[b,_,X,H,g,m])}var Qt=typeof document<"u"?ee.useLayoutEffect:ee.useEffect;let Cp=!1,vF=0;const ux=()=>"floating-ui-"+vF++;function mF(){const[e,t]=ee.useState(()=>Cp?ux():void 0);return Qt(()=>{e==null&&t(ux())},[]),ee.useEffect(()=>{Cp||(Cp=!0)},[]),e}const yF=hg["useId".toString()],Rl=yF||mF;function qT(){const e=new Map;return{emit(t,r){var a;(a=e.get(t))==null||a.forEach(s=>s(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(a=>a!==r))}}}const KT=ee.createContext(null),ZT=ee.createContext(null),us=()=>{var e;return((e=ee.useContext(KT))==null?void 0:e.id)||null},ei=()=>ee.useContext(ZT),xF=e=>{const t=Rl(),r=ei(),a=us(),s=e||a;return Qt(()=>{const l={id:t,parentId:s};return r==null||r.addNode(l),()=>{r==null||r.removeNode(l)}},[r,t,s]),t},wF=e=>{let{children:t,id:r}=e;const a=us();return ee.createElement(KT.Provider,{value:ee.useMemo(()=>({id:r,parentId:a}),[r,a])},t)},CF=e=>{let{children:t}=e;const r=ee.useRef([]),a=ee.useCallback(f=>{r.current=[...r.current,f]},[]),s=ee.useCallback(f=>{r.current=r.current.filter(b=>b!==f)},[]),l=ee.useState(()=>qT())[0];return ee.createElement(ZT.Provider,{value:ee.useMemo(()=>({nodesRef:r,addNode:a,removeNode:s,events:l}),[r,a,s,l])},t)};function qr(e){return(e==null?void 0:e.ownerDocument)||document}function tb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function QT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:a}=t;return r+"/"+a}).join(" "):navigator.userAgent}function rb(e){return qr(e).defaultView||window}function wn(e){return e?e instanceof rb(e).Element:!1}function Ha(e){return e?e instanceof rb(e).HTMLElement:!1}function SF(e){if(typeof ShadowRoot>"u")return!1;const t=rb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JT(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(tb())||t.test(QT()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function eP(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function Qh(){return/apple/i.test(navigator.vendor)}function tP(){return tb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function nd(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Cn(e){const t=ee.useRef(e);return Qt(()=>{t.current=e}),t}const cx="data-floating-ui-safe-polygon";function sc(e,t,r){return r&&!nd(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const kF=function(e,t){let{enabled:r=!0,delay:a=0,handleClose:s=null,mouseOnly:l=!1,restMs:f=0,move:b=!0}=t===void 0?{}:t;const{open:S,onOpenChange:T,dataRef:O,events:j,elements:{domReference:F,floating:z},refs:D}=e,R=ei(),P=us(),y=Cn(s),p=Cn(a),v=ee.useRef(),g=ee.useRef(),m=ee.useRef(),_=ee.useRef(),M=ee.useRef(!0),X=ee.useRef(!1),H=ee.useRef(()=>{}),B=ee.useCallback(()=>{var ne;const fe=(ne=O.current.openEvent)==null?void 0:ne.type;return(fe==null?void 0:fe.includes("mouse"))&&fe!=="mousedown"},[O]);ee.useEffect(()=>{if(!r)return;function ne(){clearTimeout(g.current),clearTimeout(_.current),M.current=!0}return j.on("dismiss",ne),()=>{j.off("dismiss",ne)}},[r,j]),ee.useEffect(()=>{if(!r||!y.current||!S)return;function ne(){B()&&T(!1)}const fe=qr(z).documentElement;return fe.addEventListener("mouseleave",ne),()=>{fe.removeEventListener("mouseleave",ne)}},[z,S,T,r,y,O,B]);const U=ee.useCallback(function(ne){ne===void 0&&(ne=!0);const fe=sc(p.current,"close",v.current);fe&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>T(!1),fe)):ne&&(clearTimeout(g.current),T(!1))},[p,T]),K=ee.useCallback(()=>{H.current(),m.current=void 0},[]),oe=ee.useCallback(()=>{if(X.current){const ne=qr(D.floating.current).body;ne.style.pointerEvents="",ne.removeAttribute(cx),X.current=!1}},[D]);return ee.useEffect(()=>{if(!r)return;function ne(){return O.current.openEvent?["click","mousedown"].includes(O.current.openEvent.type):!1}function fe(be){if(clearTimeout(g.current),M.current=!1,l&&!nd(v.current)||f>0&&sc(p.current,"open")===0)return;O.current.openEvent=be;const ue=sc(p.current,"open",v.current);ue?g.current=setTimeout(()=>{T(!0)},ue):T(!0)}function me(be){if(ne())return;H.current();const ue=qr(z);if(clearTimeout(_.current),y.current){clearTimeout(g.current),m.current=y.current({...e,tree:R,x:be.clientX,y:be.clientY,onClose(){oe(),K(),U()}});const ge=m.current;ue.addEventListener("mousemove",ge),H.current=()=>{ue.removeEventListener("mousemove",ge)};return}U()}function Se(be){ne()||y.current==null||y.current({...e,tree:R,x:be.clientX,y:be.clientY,onClose(){K(),U()}})(be)}if(wn(F)){const be=F;return S&&be.addEventListener("mouseleave",Se),z==null||z.addEventListener("mouseleave",Se),b&&be.addEventListener("mousemove",fe,{once:!0}),be.addEventListener("mouseenter",fe),be.addEventListener("mouseleave",me),()=>{S&&be.removeEventListener("mouseleave",Se),z==null||z.removeEventListener("mouseleave",Se),b&&be.removeEventListener("mousemove",fe),be.removeEventListener("mouseenter",fe),be.removeEventListener("mouseleave",me)}}},[F,z,r,e,l,f,b,U,K,oe,T,S,R,p,y,O]),Qt(()=>{var ne;if(r&&S&&(ne=y.current)!=null&&ne.__options.blockPointerEvents&&B()){const Se=qr(z).body;if(Se.setAttribute(cx,""),Se.style.pointerEvents="none",X.current=!0,wn(F)&&z){var fe,me;const be=F,ue=R==null||(fe=R.nodesRef.current.find(ge=>ge.id===P))==null||(me=fe.context)==null?void 0:me.elements.floating;return ue&&(ue.style.pointerEvents=""),be.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{be.style.pointerEvents="",z.style.pointerEvents=""}}}},[r,S,P,z,F,R,y,O,B]),Qt(()=>{S||(v.current=void 0,K(),oe())},[S,K,oe]),ee.useEffect(()=>()=>{K(),clearTimeout(g.current),clearTimeout(_.current),oe()},[r,K,oe]),ee.useMemo(()=>{if(!r)return{};function ne(fe){v.current=fe.pointerType}return{reference:{onPointerDown:ne,onPointerEnter:ne,onMouseMove(){S||f===0||(clearTimeout(_.current),_.current=setTimeout(()=>{M.current||T(!0)},f))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){j.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),U(!1)}}}},[j,r,f,S,T,U])},rP=ee.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),nP=()=>ee.useContext(rP),TF=e=>{let{children:t,delay:r,timeoutMs:a=0}=e;const[s,l]=ee.useReducer((S,T)=>({...S,...T}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),f=ee.useRef(null),b=ee.useCallback(S=>{l({currentId:S})},[]);return Qt(()=>{s.currentId?f.current===null?f.current=s.currentId:l({isInstantPhase:!0}):(l({isInstantPhase:!1}),f.current=null)},[s.currentId]),ee.createElement(rP.Provider,{value:ee.useMemo(()=>({...s,setState:l,setCurrentId:b}),[s,l,b])},t)},PF=(e,t)=>{let{open:r,onOpenChange:a}=e,{id:s}=t;const{currentId:l,setCurrentId:f,initialDelay:b,setState:S,timeoutMs:T}=nP();ee.useEffect(()=>{l&&(S({delay:{open:1,close:sc(b,"close")}}),l!==s&&a(!1))},[s,a,S,l,b]),ee.useEffect(()=>{function O(){a(!1),S({delay:b,currentId:null})}if(!r&&l===s)if(T){const j=window.setTimeout(O,T);return()=>{clearTimeout(j)}}else O()},[r,S,l,s,a,b,T]),ee.useEffect(()=>{r&&f(s)},[r,f,s])};function Nl(){return Nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Nl.apply(this,arguments)}function Xa(e){let t=e.activeElement;for(;((r=t)==null||(a=r.shadowRoot)==null?void 0:a.activeElement)!=null;){var r,a;t=t.shadowRoot.activeElement}return t}function Yr(e,t){if(!e||!t)return!1;const r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SF(r)){let a=t;do{if(a&&e===a)return!0;a=a.parentNode||a.host}while(a)}return!1}let dx=0;function Ho(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:a=!0,sync:s=!1}=t;a&&cancelAnimationFrame(dx);const l=()=>e==null?void 0:e.focus({preventScroll:r});s?l():dx=requestAnimationFrame(l)}function _F(e,t){var r;let a=[],s=(r=e.find(l=>l.id===t))==null?void 0:r.parentId;for(;s;){const l=e.find(f=>f.id===s);s=l==null?void 0:l.parentId,l&&(a=a.concat(l))}return a}function al(e,t){let r=e.filter(s=>{var l;return s.parentId===t&&((l=s.context)==null?void 0:l.open)})||[],a=r;for(;a.length;)a=e.filter(s=>{var l;return(l=a)==null?void 0:l.some(f=>{var b;return s.parentId===f.id&&((b=s.context)==null?void 0:b.open)})})||[],r=r.concat(a);return r}function Gd(e){return"composedPath"in e?e.composedPath()[0]:e.target}const OF="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function oP(e){return Ha(e)&&e.matches(OF)}function vn(e){e.preventDefault(),e.stopPropagation()}const od=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function aP(e,t){const r=Qc(e,od());t==="prev"&&r.reverse();const a=r.indexOf(Xa(qr(e)));return r.slice(a+1)[0]}function iP(){return aP(document.body,"next")}function sP(){return aP(document.body,"prev")}function il(e,t){const r=t||e.currentTarget,a=e.relatedTarget;return!a||!Yr(r,a)}function AF(e){Qc(e,od()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function EF(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}const MF=hg["useInsertionEffect".toString()],RF=MF||(e=>e());function cs(e){const t=ee.useRef(()=>{});return RF(()=>{t.current=e}),ee.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}const nb={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Jh,ob;function fx(e){e.key==="Tab"&&(Jh=e.target,clearTimeout(ob))}function NF(e){const t=Jh===e.relatedTarget;return Jh=e.relatedTarget,clearTimeout(ob),t}const ad=ee.forwardRef(function(t,r){const a=cs(t.onFocus),[s,l]=ee.useState();return Qt(()=>(Qh()&&l("button"),document.addEventListener("keydown",fx),()=>{document.removeEventListener("keydown",fx)}),[]),ee.createElement("span",Nl({},t,{ref:r,tabIndex:0,role:s,"aria-hidden":s?void 0:!0,"data-floating-ui-focus-guard":"",style:nb,onFocus:f=>{Qh()&&tP()&&!NF(f)?(f.persist(),ob=window.setTimeout(()=>{a(f)},50)):a(f)}}))}),lP=ee.createContext(null),uP=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[a,s]=ee.useState(null),l=Rl(),f=cP();return Qt(()=>{if(!r)return;const b=t?document.getElementById(t):null;if(b)b.setAttribute("data-floating-ui-portal",""),s(b);else{const S=document.createElement("div");t!==""&&(S.id=t||l),S.setAttribute("data-floating-ui-portal",""),s(S);const T=(f==null?void 0:f.portalNode)||document.body;return T.appendChild(S),()=>{T.removeChild(S)}}},[t,f,l,r]),a},IF=e=>{let{children:t,id:r,root:a=null,preserveTabOrder:s=!0}=e;const l=uP({id:r,enabled:!a}),[f,b]=ee.useState(null),S=ee.useRef(null),T=ee.useRef(null),O=ee.useRef(null),j=ee.useRef(null),F=!!f&&!f.modal&&!!(a||l)&&s;return ee.useEffect(()=>{if(!l||!s||f!=null&&f.modal)return;function z(D){l&&il(D)&&(D.type==="focusin"?EF:AF)(l)}return l.addEventListener("focusin",z,!0),l.addEventListener("focusout",z,!0),()=>{l.removeEventListener("focusin",z,!0),l.removeEventListener("focusout",z,!0)}},[l,s,f==null?void 0:f.modal]),ee.createElement(lP.Provider,{value:ee.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:S,afterOutsideRef:T,beforeInsideRef:O,afterInsideRef:j,portalNode:l,setFocusManagerState:b}),[s,l])},F&&l&&ee.createElement(ad,{"data-type":"outside",ref:S,onFocus:z=>{if(il(z,l)){var D;(D=O.current)==null||D.focus()}else{const R=sP()||(f==null?void 0:f.refs.domReference.current);R==null||R.focus()}}}),F&&l&&ee.createElement("span",{"aria-owns":l.id,style:nb}),a?_o.createPortal(t,a):l?_o.createPortal(t,l):null,F&&l&&ee.createElement(ad,{"data-type":"outside",ref:T,onFocus:z=>{if(il(z,l)){var D;(D=j.current)==null||D.focus()}else{const R=iP()||(f==null?void 0:f.refs.domReference.current);R==null||R.focus(),f!=null&&f.closeOnFocusOut&&(f==null||f.onOpenChange(!1))}}}))},cP=()=>ee.useContext(lP),LF=ee.forwardRef(function(t,r){return ee.createElement("button",Nl({},t,{type:"button",ref:r,tabIndex:-1,style:nb}))});function jF(e){let{context:t,children:r,order:a=["content"],guards:s=!0,initialFocus:l=0,returnFocus:f=!0,modal:b=!0,visuallyHiddenDismiss:S=!1,closeOnFocusOut:T=!0}=e;const{refs:O,nodeId:j,onOpenChange:F,events:z,dataRef:D,elements:{domReference:R,floating:P}}=t,y=Cn(a),p=ei(),v=cP(),[g,m]=ee.useState(null),_=typeof l=="number"&&l<0,M=ee.useRef(null),X=ee.useRef(null),H=ee.useRef(!1),B=ee.useRef(null),U=ee.useRef(!1),K=v!=null,oe=R&&R.getAttribute("role")==="combobox"&&oP(R),ne=ee.useCallback(function(be){return be===void 0&&(be=P),be?Qc(be,od()):[]},[P]),fe=ee.useCallback(be=>{const ue=ne(be);return y.current.map(ge=>R&&ge==="reference"?R:P&&ge==="floating"?P:ue).filter(Boolean).flat()},[R,P,y,ne]);ee.useEffect(()=>{if(!b)return;function be(ge){if(ge.key==="Tab"){ne().length===0&&!oe&&vn(ge);const ye=fe(),_e=Gd(ge);y.current[0]==="reference"&&_e===R&&(vn(ge),ge.shiftKey?Ho(ye[ye.length-1]):Ho(ye[1])),y.current[1]==="floating"&&_e===P&&ge.shiftKey&&(vn(ge),Ho(ye[0]))}}const ue=qr(P);return ue.addEventListener("keydown",be),()=>{ue.removeEventListener("keydown",be)}},[R,P,b,y,O,oe,ne,fe]),ee.useEffect(()=>{if(!T)return;function be(){U.current=!0,setTimeout(()=>{U.current=!1})}function ue(ge){const ye=ge.relatedTarget,_e=!(Yr(R,ye)||Yr(P,ye)||Yr(ye,P)||Yr(v==null?void 0:v.portalNode,ye)||ye!=null&&ye.hasAttribute("data-floating-ui-focus-guard")||p&&(al(p.nodesRef.current,j).find(Ee=>{var Ne,Le;return Yr((Ne=Ee.context)==null?void 0:Ne.elements.floating,ye)||Yr((Le=Ee.context)==null?void 0:Le.elements.domReference,ye)})||_F(p.nodesRef.current,j).find(Ee=>{var Ne,Le;return((Ne=Ee.context)==null?void 0:Ne.elements.floating)===ye||((Le=Ee.context)==null?void 0:Le.elements.domReference)===ye})));ye&&_e&&!U.current&&ye!==B.current&&(H.current=!0,setTimeout(()=>F(!1)))}if(P&&Ha(R))return R.addEventListener("focusout",ue),R.addEventListener("pointerdown",be),!b&&P.addEventListener("focusout",ue),()=>{R.removeEventListener("focusout",ue),R.removeEventListener("pointerdown",be),!b&&P.removeEventListener("focusout",ue)}},[R,P,b,j,p,v,F,T]),ee.useEffect(()=>{var be;const ue=Array.from((v==null||(be=v.portalNode)==null?void 0:be.querySelectorAll("[data-floating-ui-portal]"))||[]);function ge(){return[M.current,X.current].filter(Boolean)}if(P&&b){const ye=[P,...ue,...ge()],_e=KD(y.current.includes("reference")||oe?ye.concat(R||[]):ye);return()=>{_e()}}},[R,P,b,y,v,oe]),ee.useEffect(()=>{if(b&&!s&&P){const be=[],ue=od(),ge=Qc(qr(P).body,ue),ye=fe(),_e=ge.filter(Ee=>!ye.includes(Ee));return _e.forEach((Ee,Ne)=>{be[Ne]=Ee.getAttribute("tabindex"),Ee.setAttribute("tabindex","-1")}),()=>{_e.forEach((Ee,Ne)=>{const Le=be[Ne];Le==null?Ee.removeAttribute("tabindex"):Ee.setAttribute("tabindex",Le)})}}},[P,b,s,fe]),Qt(()=>{if(!P)return;const be=qr(P);let ue=f,ge=!1;const ye=Xa(be),_e=D.current;B.current=ye;const Ee=fe(P),Ne=(typeof l=="number"?Ee[l]:l.current)||P;!_&&Ho(Ne,{preventScroll:Ne===P});function Le(Pe){if(Pe.type==="escapeKey"&&O.domReference.current&&(B.current=O.domReference.current),["referencePress","escapeKey"].includes(Pe.type))return;const Xe=Pe.data.returnFocus;typeof Xe=="object"?(ue=!0,ge=Xe.preventScroll):ue=Xe}return z.on("dismiss",Le),()=>{if(z.off("dismiss",Le),Yr(P,Xa(be))&&O.domReference.current&&(B.current=O.domReference.current),ue&&Ha(B.current)&&!H.current)if(!O.domReference.current||U.current)Ho(B.current,{cancelPrevious:!1,preventScroll:ge});else{var Pe;_e.__syncReturnFocus=!0,(Pe=B.current)==null||Pe.focus({preventScroll:ge}),setTimeout(()=>{delete _e.__syncReturnFocus})}}},[P,fe,l,f,D,O,z,_]),Qt(()=>{if(v)return v.setFocusManagerState({...t,modal:b,closeOnFocusOut:T}),()=>{v.setFocusManagerState(null)}},[v,b,T,t]),Qt(()=>{if(_||!P)return;function be(){m(ne().length)}if(be(),typeof MutationObserver=="function"){const ue=new MutationObserver(be);return ue.observe(P,{childList:!0,subtree:!0}),()=>{ue.disconnect()}}},[P,ne,_,O]);const me=s&&(K||b)&&!oe;function Se(be){return S&&b?ee.createElement(LF,{ref:be==="start"?M:X,onClick:()=>F(!1)},typeof S=="string"?S:"Dismiss"):null}return ee.createElement(ee.Fragment,null,me&&ee.createElement(ad,{"data-type":"inside",ref:v==null?void 0:v.beforeInsideRef,onFocus:be=>{if(b){const ge=fe();Ho(a[0]==="reference"?ge[0]:ge[ge.length-1])}else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(H.current=!1,il(be,v.portalNode)){const ge=iP()||R;ge==null||ge.focus()}else{var ue;(ue=v.beforeOutsideRef.current)==null||ue.focus()}}}),oe?null:Se("start"),ee.cloneElement(r,g===0||a.includes("floating")?{tabIndex:0}:{}),Se("end"),me&&ee.createElement(ad,{"data-type":"inside",ref:v==null?void 0:v.afterInsideRef,onFocus:be=>{if(b)Ho(fe()[0]);else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(H.current=!0,il(be,v.portalNode)){const ge=sP()||R;ge==null||ge.focus()}else{var ue;(ue=v.afterOutsideRef.current)==null||ue.focus()}}}))}const ju="data-floating-ui-scroll-lock",DF=ee.forwardRef(function(t,r){let{lockScroll:a=!1,...s}=t;return Qt(()=>{var l,f;if(!a||document.body.hasAttribute(ju))return;document.body.setAttribute(ju,"");const T=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",O=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(tb()))return Object.assign(document.body.style,{overflow:"hidden",[T]:O+"px"}),()=>{document.body.removeAttribute(ju),Object.assign(document.body.style,{overflow:"",[T]:""})};const j=((l=window.visualViewport)==null?void 0:l.offsetLeft)||0,F=((f=window.visualViewport)==null?void 0:f.offsetTop)||0,z=window.pageXOffset,D=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(D-Math.floor(F))+"px",left:-(z-Math.floor(j))+"px",right:"0",[T]:O+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[T]:""}),document.body.removeAttribute(ju),window.scrollTo(z,D)}},[a]),ee.createElement("div",Nl({ref:r},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function px(e){return Ha(e.target)&&e.target.tagName==="BUTTON"}function hx(e){return oP(e)}const zF=function(e,t){let{open:r,onOpenChange:a,dataRef:s,elements:{domReference:l}}=e,{enabled:f=!0,event:b="click",toggle:S=!0,ignoreMouse:T=!1,keyboardHandlers:O=!0}=t===void 0?{}:t;const j=ee.useRef();return ee.useMemo(()=>f?{reference:{onPointerDown(F){j.current=F.pointerType},onMouseDown(F){F.button===0&&(nd(j.current,!0)&&T||b!=="click"&&(r?S&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")&&a(!1):(F.preventDefault(),a(!0)),s.current.openEvent=F.nativeEvent))},onClick(F){if(!s.current.__syncReturnFocus){if(b==="mousedown"&&j.current){j.current=void 0;return}nd(j.current,!0)&&T||(r?S&&(!s.current.openEvent||s.current.openEvent.type==="click")&&a(!1):a(!0),s.current.openEvent=F.nativeEvent)}},onKeyDown(F){j.current=void 0,O&&(px(F)||(F.key===" "&&!hx(l)&&F.preventDefault(),F.key==="Enter"&&(r?S&&a(!1):a(!0))))},onKeyUp(F){O&&(px(F)||hx(l)||F.key===" "&&(r?S&&a(!1):a(!0)))}}}:{},[f,s,b,T,O,l,S,r,a])};function lc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const FF={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},VF={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},WF=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},BF=function(e,t){let{open:r,onOpenChange:a,events:s,nodeId:l,elements:{reference:f,domReference:b,floating:S},dataRef:T}=e,{enabled:O=!0,escapeKey:j=!0,outsidePress:F=!0,outsidePressEvent:z="pointerdown",referencePress:D=!1,referencePressEvent:R="pointerdown",ancestorScroll:P=!1,bubbles:y=!0}=t===void 0?{}:t;const p=ei(),v=us()!=null,g=cs(typeof F=="function"?F:()=>!1),m=typeof F=="function"?g:F,_=ee.useRef(!1),{escapeKeyBubbles:M,outsidePressBubbles:X}=WF(y);return ee.useEffect(()=>{if(!r||!O)return;T.current.__escapeKeyBubbles=M,T.current.__outsidePressBubbles=X;function H(ne){if(ne.key==="Escape"){const fe=p?al(p.nodesRef.current,l):[];if(fe.length>0){let me=!0;if(fe.forEach(Se=>{var be;if((be=Se.context)!=null&&be.open&&!Se.context.dataRef.current.__escapeKeyBubbles){me=!1;return}}),!me)return}s.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1)}}function B(ne){const fe=_.current;if(_.current=!1,fe||typeof m=="function"&&!m(ne))return;const me=Gd(ne);if(Ha(me)&&S){const ue=S.ownerDocument.defaultView||window,ge=me.scrollWidth>me.clientWidth,ye=me.scrollHeight>me.clientHeight;let _e=ye&&ne.offsetX>me.clientWidth;if(ye&&ue.getComputedStyle(me).direction==="rtl"&&(_e=ne.offsetX<=me.offsetWidth-me.clientWidth),_e||ge&&ne.offsetY>me.clientHeight)return}const Se=p&&al(p.nodesRef.current,l).some(ue=>{var ge;return lc(ne,(ge=ue.context)==null?void 0:ge.elements.floating)});if(lc(ne,S)||lc(ne,b)||Se)return;const be=p?al(p.nodesRef.current,l):[];if(be.length>0){let ue=!0;if(be.forEach(ge=>{var ye;if((ye=ge.context)!=null&&ye.open&&!ge.context.dataRef.current.__outsidePressBubbles){ue=!1;return}}),!ue)return}s.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:JT(ne)||eP(ne)}}),a(!1)}function U(){a(!1)}const K=qr(S);j&&K.addEventListener("keydown",H),m&&K.addEventListener(z,B);let oe=[];return P&&(wn(b)&&(oe=Co(b)),wn(S)&&(oe=oe.concat(Co(S))),!wn(f)&&f&&f.contextElement&&(oe=oe.concat(Co(f.contextElement)))),oe=oe.filter(ne=>{var fe;return ne!==((fe=K.defaultView)==null?void 0:fe.visualViewport)}),oe.forEach(ne=>{ne.addEventListener("scroll",U,{passive:!0})}),()=>{j&&K.removeEventListener("keydown",H),m&&K.removeEventListener(z,B),oe.forEach(ne=>{ne.removeEventListener("scroll",U)})}},[T,S,b,f,j,m,z,s,p,l,r,a,P,O,M,X,v]),ee.useEffect(()=>{_.current=!1},[m,z]),ee.useMemo(()=>O?{reference:{[FF[R]]:()=>{D&&(s.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1))}},floating:{[VF[z]]:()=>{_.current=!0}}}:{},[O,s,D,z,R,a])},HF=function(e,t){let{open:r,onOpenChange:a,dataRef:s,events:l,refs:f,elements:{floating:b,domReference:S}}=e,{enabled:T=!0,keyboardOnly:O=!0}=t===void 0?{}:t;const j=ee.useRef(""),F=ee.useRef(!1),z=ee.useRef();return ee.useEffect(()=>{if(!T)return;const R=qr(b).defaultView||window;function P(){!r&&Ha(S)&&S===Xa(qr(S))&&(F.current=!0)}return R.addEventListener("blur",P),()=>{R.removeEventListener("blur",P)}},[b,S,r,T]),ee.useEffect(()=>{if(!T)return;function D(R){(R.type==="referencePress"||R.type==="escapeKey")&&(F.current=!0)}return l.on("dismiss",D),()=>{l.off("dismiss",D)}},[l,T]),ee.useEffect(()=>()=>{clearTimeout(z.current)},[]),ee.useMemo(()=>T?{reference:{onPointerDown(D){let{pointerType:R}=D;j.current=R,F.current=!!(R&&O)},onMouseLeave(){F.current=!1},onFocus(D){var R;F.current||D.type==="focus"&&((R=s.current.openEvent)==null?void 0:R.type)==="mousedown"&&s.current.openEvent&&lc(s.current.openEvent,S)||(s.current.openEvent=D.nativeEvent,a(!0))},onBlur(D){F.current=!1;const R=D.relatedTarget,P=wn(R)&&R.hasAttribute("data-floating-ui-focus-guard")&&R.getAttribute("data-type")==="outside";z.current=setTimeout(()=>{Yr(f.floating.current,R)||Yr(S,R)||P||a(!1)})}}}:{},[T,O,S,f,s,a])};let gx=!1;const ab="ArrowUp",Ud="ArrowDown",Qi="ArrowLeft",Kl="ArrowRight";function Du(e,t,r){return Math.floor(e/t)!==r}function Ds(e,t){return t<0||t>=e.current.length}function _r(e,t){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:s,amount:l=1}=t===void 0?{}:t;const f=e.current;let b=r;do{var S,T;b=b+(a?-l:l)}while(b>=0&&b<=f.length-1&&(s?s.includes(b):f[b]==null||(S=f[b])!=null&&S.hasAttribute("disabled")||((T=f[b])==null?void 0:T.getAttribute("aria-disabled"))==="true"));return b}function $d(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function bx(e,t){return $d(t,e===ab||e===Ud,e===Qi||e===Kl)}function Sp(e,t,r){return $d(t,e===Ud,r?e===Qi:e===Kl)||e==="Enter"||e==" "||e===""}function XF(e,t,r){return $d(t,r?e===Qi:e===Kl,e===Ud)}function YF(e,t,r){return $d(t,r?e===Kl:e===Qi,e===ab)}function kp(e,t){return _r(e,{disabledIndices:t})}function vx(e,t){return _r(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const GF=function(e,t){let{open:r,onOpenChange:a,refs:s,elements:{domReference:l}}=e,{listRef:f,activeIndex:b,onNavigate:S=()=>{},enabled:T=!0,selectedIndex:O=null,allowEscape:j=!1,loop:F=!1,nested:z=!1,rtl:D=!1,virtual:R=!1,focusItemOnOpen:P="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:p=!0,disabledIndices:v=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const M=us(),X=ei(),H=cs(S),B=ee.useRef(P),U=ee.useRef(O??-1),K=ee.useRef(null),oe=ee.useRef(!0),ne=ee.useRef(H),fe=ee.useRef(r),me=ee.useRef(!1),Se=ee.useRef(!1),be=Cn(v),ue=Cn(r),ge=Cn(_),[ye,_e]=ee.useState(),Ee=ee.useCallback(function(Pe,Xe,Ve){Ve===void 0&&(Ve=!1);const Re=Pe.current[Xe.current];R?_e(Re==null?void 0:Re.id):Ho(Re,{preventScroll:!0,sync:tP()&&Qh()?gx||me.current:!1}),requestAnimationFrame(()=>{const He=ge.current;He&&Re&&(Ve||!oe.current)&&(Re.scrollIntoView==null||Re.scrollIntoView(typeof He=="boolean"?{block:"nearest",inline:"nearest"}:He))})},[R,ge]);Qt(()=>{document.createElement("div").focus({get preventScroll(){return gx=!0,!1}})},[]),Qt(()=>{T&&(r?B.current&&O!=null&&(Se.current=!0,H(O)):fe.current&&(U.current=-1,ne.current(null)))},[T,r,O,H]),Qt(()=>{if(T&&r)if(b==null){if(me.current=!1,O!=null)return;fe.current&&(U.current=-1,Ee(f,U)),!fe.current&&B.current&&(K.current!=null||B.current===!0&&K.current==null)&&(U.current=K.current==null||Sp(K.current,g,D)||z?kp(f,be.current):vx(f,be.current),H(U.current))}else Ds(f,b)||(U.current=b,Ee(f,U,Se.current),Se.current=!1)},[T,r,b,O,z,f,g,D,H,Ee,be]),Qt(()=>{if(T&&fe.current&&!r){var Pe,Xe;const Ve=X==null||(Pe=X.nodesRef.current.find(Re=>Re.id===M))==null||(Xe=Pe.context)==null?void 0:Xe.elements.floating;Ve&&!Yr(Ve,Xa(qr(Ve)))&&Ve.focus({preventScroll:!0})}},[T,r,X,M]),Qt(()=>{K.current=null,ne.current=H,fe.current=r});const Ne=b!=null,Le=ee.useMemo(()=>{function Pe(Ve){if(!r)return;const Re=f.current.indexOf(Ve);Re!==-1&&H(Re)}return{onFocus(Ve){let{currentTarget:Re}=Ve;Pe(Re)},onClick:Ve=>{let{currentTarget:Re}=Ve;return Re.focus({preventScroll:!0})},...y&&{onMouseMove(Ve){let{currentTarget:Re}=Ve;Pe(Re)},onPointerLeave(){if(oe.current&&(U.current=-1,Ee(f,U),_o.flushSync(()=>H(null)),!R)){var Ve;(Ve=s.floating.current)==null||Ve.focus({preventScroll:!0})}}}}},[r,s,Ee,y,f,H,R]);return ee.useMemo(()=>{if(!T)return{};const Pe=be.current;function Xe(We){if(oe.current=!1,me.current=!0,!ue.current&&We.currentTarget===s.floating.current)return;if(z&&YF(We.key,g,D)){vn(We),a(!1),Ha(l)&&l.focus();return}const Ke=U.current,ot=kp(f,Pe),Qe=vx(f,Pe);if(We.key==="Home"&&(U.current=ot,H(U.current)),We.key==="End"&&(U.current=Qe,H(U.current)),m>1){const qe=U.current;if(We.key===ab){if(vn(We),qe===-1)U.current=Qe;else if(U.current=_r(f,{startingIndex:qe,amount:m,decrement:!0,disabledIndices:Pe}),F&&(qe-m<ot||U.current<0)){const st=qe%m,wt=Qe%m,kt=Qe-(wt-st);wt===st?U.current=Qe:U.current=wt>st?kt:kt-m}Ds(f,U.current)&&(U.current=qe),H(U.current)}if(We.key===Ud&&(vn(We),qe===-1?U.current=ot:(U.current=_r(f,{startingIndex:qe,amount:m,disabledIndices:Pe}),F&&qe+m>Qe&&(U.current=_r(f,{startingIndex:qe%m-m,amount:m,disabledIndices:Pe}))),Ds(f,U.current)&&(U.current=qe),H(U.current)),g==="both"){const st=Math.floor(qe/m);We.key===Kl&&(vn(We),qe%m!==m-1?(U.current=_r(f,{startingIndex:qe,disabledIndices:Pe}),F&&Du(U.current,m,st)&&(U.current=_r(f,{startingIndex:qe-qe%m-1,disabledIndices:Pe}))):F&&(U.current=_r(f,{startingIndex:qe-qe%m-1,disabledIndices:Pe})),Du(U.current,m,st)&&(U.current=qe)),We.key===Qi&&(vn(We),qe%m!==0?(U.current=_r(f,{startingIndex:qe,disabledIndices:Pe,decrement:!0}),F&&Du(U.current,m,st)&&(U.current=_r(f,{startingIndex:qe+(m-qe%m),decrement:!0,disabledIndices:Pe}))):F&&(U.current=_r(f,{startingIndex:qe+(m-qe%m),decrement:!0,disabledIndices:Pe})),Du(U.current,m,st)&&(U.current=qe));const wt=Math.floor(Qe/m)===st;Ds(f,U.current)&&(F&&wt?U.current=We.key===Qi?Qe:_r(f,{startingIndex:qe-qe%m-1,disabledIndices:Pe}):U.current=qe),H(U.current);return}}if(bx(We.key,g)){if(vn(We),r&&!R&&Xa(We.currentTarget.ownerDocument)===We.currentTarget){U.current=Sp(We.key,g,D)?ot:Qe,H(U.current);return}Sp(We.key,g,D)?F?U.current=Ke>=Qe?j&&Ke!==f.current.length?-1:ot:_r(f,{startingIndex:Ke,disabledIndices:Pe}):U.current=Math.min(Qe,_r(f,{startingIndex:Ke,disabledIndices:Pe})):F?U.current=Ke<=ot?j&&Ke!==-1?f.current.length:Qe:_r(f,{startingIndex:Ke,decrement:!0,disabledIndices:Pe}):U.current=Math.max(ot,_r(f,{startingIndex:Ke,decrement:!0,disabledIndices:Pe})),Ds(f,U.current)?H(null):H(U.current)}}function Ve(We){P==="auto"&&JT(We.nativeEvent)&&(B.current=!0)}function Re(We){B.current=P,P==="auto"&&eP(We.nativeEvent)&&(B.current=!0)}const He=R&&r&&Ne&&{"aria-activedescendant":ye};return{reference:{...He,onKeyDown(We){oe.current=!1;const Ke=We.key.indexOf("Arrow")===0;if(R&&r)return Xe(We);if(!r&&!p&&Ke)return;if((Ke||We.key==="Enter"||We.key===" "||We.key==="")&&(K.current=We.key),z){XF(We.key,g,D)&&(vn(We),r?(U.current=kp(f,Pe),H(U.current)):a(!0));return}bx(We.key,g)&&(O!=null&&(U.current=O),vn(We),!r&&p?a(!0):Xe(We),r&&H(U.current))},onFocus(){r&&H(null)},onPointerDown:Re,onMouseDown:Ve,onClick:Ve},floating:{"aria-orientation":g==="both"?void 0:g,...He,onKeyDown:Xe,onPointerMove(){oe.current=!0}},item:Le}},[l,s,ye,be,ue,f,T,g,D,R,r,Ne,z,O,p,j,m,F,P,H,a,Le])};function UF(e){return ee.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const $F=function(e,t){let{open:r}=e,{enabled:a=!0,role:s="dialog"}=t===void 0?{}:t;const l=Rl(),f=Rl();return ee.useMemo(()=>{const b={id:l,role:s};return a?s==="tooltip"?{reference:{"aria-describedby":r?l:void 0},floating:b}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?l:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:f}},floating:{...b,...s==="menu"&&{"aria-labelledby":f}}}:{}},[a,s,r,l,f])},mx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function qF(e,t){const[r,a]=ee.useState(e);return e&&!r&&a(!0),ee.useEffect(()=>{if(!e){const s=setTimeout(()=>a(!1),t);return()=>clearTimeout(s)}},[e,t]),r}function dP(e,t){let{open:r,elements:{floating:a}}=e,{duration:s=250}=t===void 0?{}:t;const f=(typeof s=="number"?s:s.close)||0,[b,S]=ee.useState(!1),[T,O]=ee.useState("unmounted"),j=qF(r,f);return Qt(()=>{b&&!j&&O("unmounted")},[b,j]),Qt(()=>{if(a)if(r){O("initial");const F=requestAnimationFrame(()=>{O("open")});return()=>{cancelAnimationFrame(F)}}else S(!0),O("close")},[r,a]),{isMounted:j,status:T}}function KF(e,t){let{initial:r={opacity:0},open:a,close:s,common:l,duration:f=250}=t===void 0?{}:t;const b=e.placement,S=b.split("-")[0],[T,O]=ee.useState({}),{isMounted:j,status:F}=dP(e,{duration:f}),z=Cn(r),D=Cn(a),R=Cn(s),P=Cn(l),y=typeof f=="number",p=(y?f:f.open)||0,v=(y?f:f.close)||0;return Qt(()=>{const g={side:S,placement:b},m=z.current,_=R.current,M=D.current,X=P.current,H=typeof m=="function"?m(g):m,B=typeof _=="function"?_(g):_,U=typeof X=="function"?X(g):X,K=(typeof M=="function"?M(g):M)||Object.keys(H).reduce((oe,ne)=>(oe[ne]="",oe),{});if(F==="initial"&&O(oe=>({transitionProperty:oe.transitionProperty,...U,...H})),F==="open"&&O({transitionProperty:Object.keys(K).map(mx).join(","),transitionDuration:p+"ms",...U,...K}),F==="close"){const oe=B||H;O({transitionProperty:Object.keys(oe).map(mx).join(","),transitionDuration:v+"ms",...U,...oe})}},[S,b,v,R,z,D,P,p,F]),{isMounted:j,styles:T}}const ZF=function(e,t){var r;let{open:a,dataRef:s}=e,{listRef:l,activeIndex:f,onMatch:b=()=>{},enabled:S=!0,findMatch:T=null,resetMs:O=1e3,ignoreKeys:j=[],selectedIndex:F=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const z=ee.useRef(),D=ee.useRef(""),R=ee.useRef((r=F??f)!=null?r:-1),P=ee.useRef(null),y=cs(b),p=Cn(T),v=Cn(j);return Qt(()=>{a&&(clearTimeout(z.current),P.current=null,D.current="")},[a]),Qt(()=>{if(a&&D.current===""){var g;R.current=(g=F??f)!=null?g:-1}},[a,F,f]),ee.useMemo(()=>{if(!S)return{};function g(m){const _=Gd(m.nativeEvent);if(wn(_)&&(Xa(qr(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;D.current.length>0&&D.current[0]!==" "&&(s.current.typing=!0,m.key===" "&&vn(m));const M=l.current;if(M==null||v.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;M.every(oe=>{var ne,fe;return oe?((ne=oe[0])==null?void 0:ne.toLocaleLowerCase())!==((fe=oe[1])==null?void 0:fe.toLocaleLowerCase()):!0})&&D.current===m.key&&(D.current="",R.current=P.current),D.current+=m.key,clearTimeout(z.current),z.current=setTimeout(()=>{D.current="",R.current=P.current,s.current.typing=!1},O);const H=R.current,B=[...M.slice((H||0)+1),...M.slice(0,(H||0)+1)],U=p.current?p.current(B,D.current):B.find(oe=>(oe==null?void 0:oe.toLocaleLowerCase().indexOf(D.current.toLocaleLowerCase()))===0),K=U?M.indexOf(U):-1;K!==-1&&(y(K),P.current=K)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[S,s,l,O,v,p,y])};function yx(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const QF=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:a,onFallbackChange:s,offset:l=0,index:f=0,minItemsVisible:b=4,referenceOverflowThreshold:S=0,scrollRef:T,...O}=e,{rects:j,elements:{floating:F}}=t,z=r.current[f];if(!z)return{};const D={...t,...await UT(-z.offsetTop-j.reference.height/2-z.offsetHeight/2-l).fn(t)},R=(T==null?void 0:T.current)||F,P=await ac(yx(D,R.scrollHeight),O),y=await ac(D,{...O,elementContext:"reference"}),p=Math.max(0,P.top),v=D.y+p,g=Math.max(0,R.scrollHeight-p-Math.max(0,P.bottom));return R.style.maxHeight=g+"px",R.scrollTop=p,s&&(R.offsetHeight<z.offsetHeight*Math.min(b,r.current.length-1)-1||y.top>=-S||y.bottom>=-S?_o.flushSync(()=>s(!0)):_o.flushSync(()=>s(!1))),a&&(a.current=await ac(yx({...D,y:v},R.offsetHeight),O)),{y:v}}}),JF=(e,t)=>{let{open:r,elements:a}=e,{enabled:s=!0,overflowRef:l,scrollRef:f,onChange:b}=t;const S=cs(b),T=ee.useRef(!1),O=ee.useRef(null),j=ee.useRef(null);return ee.useEffect(()=>{if(!s)return;function F(D){if(D.ctrlKey||!z||l.current==null)return;const R=D.deltaY,P=l.current.top>=-.5,y=l.current.bottom>=-.5,p=z.scrollHeight-z.clientHeight,v=R<0?-1:1,g=R<0?"max":"min";z.scrollHeight<=z.clientHeight||(!P&&R>0||!y&&R<0?(D.preventDefault(),_o.flushSync(()=>{S(m=>m+Math[g](R,p*v))})):/firefox/i.test(QT())&&(z.scrollTop+=R))}const z=(f==null?void 0:f.current)||a.floating;if(r&&z)return z.addEventListener("wheel",F),requestAnimationFrame(()=>{O.current=z.scrollTop,l.current!=null&&(j.current={...l.current})}),()=>{O.current=null,j.current=null,z.removeEventListener("wheel",F)}},[s,r,a.floating,l,f,S]),ee.useMemo(()=>s?{floating:{onKeyDown(){T.current=!0},onWheel(){T.current=!1},onPointerMove(){T.current=!1},onScroll(){const F=(f==null?void 0:f.current)||a.floating;if(!(!l.current||!F||!T.current)){if(O.current!==null){const z=F.scrollTop-O.current;(l.current.bottom<-.5&&z<-1||l.current.top<-.5&&z>1)&&_o.flushSync(()=>S(D=>D+z))}requestAnimationFrame(()=>{O.current=F.scrollTop})}}}}:{},[s,l,a.floating,f,S])};function e4(e,t){const[r,a]=e;let s=!1;const l=t.length;for(let f=0,b=l-1;f<l;b=f++){const[S,T]=t[f]||[0,0],[O,j]=t[b]||[0,0];T>=a!=j>=a&&r<=(O-S)*(a-T)/(j-T)+S&&(s=!s)}return s}function t4(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function r4(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:a=!1}=e===void 0?{}:e,s,l=!1,f=!1;const b=S=>{let{x:T,y:O,placement:j,elements:F,onClose:z,nodeId:D,tree:R}=S;return function(y){function p(){clearTimeout(s),z()}if(clearTimeout(s),!F.domReference||!F.floating||j==null||T==null||O==null)return;const{clientX:v,clientY:g}=y,m=[v,g],_=Gd(y),M=y.type==="mouseleave",X=Yr(F.floating,_),H=Yr(F.domReference,_),B=F.domReference.getBoundingClientRect(),U=F.floating.getBoundingClientRect(),K=j.split("-")[0],oe=T>U.right-U.width/2,ne=O>U.bottom-U.height/2,fe=t4(m,B);if(X&&(f=!0),H&&(f=!1),H&&!M){f=!0;return}if(M&&wn(y.relatedTarget)&&Yr(F.floating,y.relatedTarget)||R&&al(R.nodesRef.current,D).some(ue=>{let{context:ge}=ue;return ge==null?void 0:ge.open}))return;if(K==="top"&&O>=B.bottom-1||K==="bottom"&&O<=B.top+1||K==="left"&&T>=B.right-1||K==="right"&&T<=B.left+1)return p();let me=[];switch(K){case"top":me=[[U.left,B.top+1],[U.left,U.bottom-1],[U.right,U.bottom-1],[U.right,B.top+1]],l=v>=U.left&&v<=U.right&&g>=U.top&&g<=B.top+1;break;case"bottom":me=[[U.left,U.top+1],[U.left,B.bottom-1],[U.right,B.bottom-1],[U.right,U.top+1]],l=v>=U.left&&v<=U.right&&g>=B.bottom-1&&g<=U.bottom;break;case"left":me=[[U.right-1,U.bottom],[U.right-1,U.top],[B.left+1,U.top],[B.left+1,U.bottom]],l=v>=U.left&&v<=B.left+1&&g>=U.top&&g<=U.bottom;break;case"right":me=[[B.right-1,U.bottom],[B.right-1,U.top],[U.left+1,U.top],[U.left+1,U.bottom]],l=v>=B.right-1&&v<=U.right&&g>=U.top&&g<=U.bottom;break}function Se(ue){let[ge,ye]=ue;const _e=U.width>B.width,Ee=U.height>B.height;switch(K){case"top":{const Ne=[_e?ge+r/2:oe?ge+r*4:ge-r*4,ye+r+1],Le=[_e?ge-r/2:oe?ge+r*4:ge-r*4,ye+r+1],Pe=[[U.left,oe||_e?U.bottom-r:U.top],[U.right,oe?_e?U.bottom-r:U.top:U.bottom-r]];return[Ne,Le,...Pe]}case"bottom":{const Ne=[_e?ge+r/2:oe?ge+r*4:ge-r*4,ye-r],Le=[_e?ge-r/2:oe?ge+r*4:ge-r*4,ye-r],Pe=[[U.left,oe||_e?U.top+r:U.bottom],[U.right,oe?_e?U.top+r:U.bottom:U.top+r]];return[Ne,Le,...Pe]}case"left":{const Ne=[ge+r+1,Ee?ye+r/2:ne?ye+r*4:ye-r*4],Le=[ge+r+1,Ee?ye-r/2:ne?ye+r*4:ye-r*4];return[...[[ne||Ee?U.right-r:U.left,U.top],[ne?Ee?U.right-r:U.left:U.right-r,U.bottom]],Ne,Le]}case"right":{const Ne=[ge-r,Ee?ye+r/2:ne?ye+r*4:ye-r*4],Le=[ge-r,Ee?ye-r/2:ne?ye+r*4:ye-r*4],Pe=[[ne||Ee?U.left+r:U.right,U.top],[ne?Ee?U.left+r:U.right:U.left+r,U.bottom]];return[Ne,Le,...Pe]}}}const be=l?me:Se([T,O]);if(!l){if(f&&!fe)return p();e4([v,g],be)?t&&!f&&(s=setTimeout(p,t)):p()}}};return b.__options={blockPointerEvents:a},b}function n4(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:a}=e,s=bF(e),l=ei(),f=ee.useRef(null),b=ee.useRef({}),S=ee.useState(()=>qT())[0],[T,O]=ee.useState(null),j=ee.useCallback(y=>{const p=wn(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;s.refs.setReference(p)},[s.refs]),F=ee.useCallback(y=>{(wn(y)||y===null)&&(f.current=y,O(y)),(wn(s.refs.reference.current)||s.refs.reference.current===null||y!==null&&!wn(y))&&s.refs.setReference(y)},[s.refs]),z=ee.useMemo(()=>({...s.refs,setReference:F,setPositionReference:j,domReference:f}),[s.refs,F,j]),D=ee.useMemo(()=>({...s.elements,domReference:T}),[s.elements,T]),R=cs(r),P=ee.useMemo(()=>({...s,refs:z,elements:D,dataRef:b,nodeId:a,events:S,open:t,onOpenChange:R}),[s,a,S,t,R,z,D]);return Qt(()=>{const y=l==null?void 0:l.nodesRef.current.find(p=>p.id===a);y&&(y.context=P)}),ee.useMemo(()=>({...s,context:P,refs:z,reference:F,positionReference:j}),[s,z,P,F,j])}function Tp(e,t,r){const a=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(s=>s?s[r]:null).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(f=>{let[b,S]=f;if(b.indexOf("on")===0){if(a.has(b)||a.set(b,[]),typeof S=="function"){var T;(T=a.get(b))==null||T.push(S),s[b]=function(){for(var O,j=arguments.length,F=new Array(j),z=0;z<j;z++)F[z]=arguments[z];(O=a.get(b))==null||O.forEach(D=>D(...F))}}}else s[b]=S}),s),{})}}const o4=function(e){e===void 0&&(e=[]);const t=e,r=ee.useCallback(l=>Tp(l,e,"reference"),t),a=ee.useCallback(l=>Tp(l,e,"floating"),t),s=ee.useCallback(l=>Tp(l,e,"item"),e.map(l=>l==null?void 0:l.item));return ee.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])},a4=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:TF,FloatingFocusManager:jF,FloatingNode:wF,FloatingOverlay:DF,FloatingPortal:IF,FloatingTree:CF,arrow:gF,autoPlacement:lF,autoUpdate:sF,computePosition:$T,detectOverflow:ac,flip:cF,getOverflowAncestors:Co,hide:fF,inline:pF,inner:QF,limitShift:hF,offset:UT,platform:YT,safePolygon:r4,shift:uF,size:dF,useClick:zF,useDelayGroup:PF,useDelayGroupContext:nP,useDismiss:BF,useFloating:n4,useFloatingNodeId:xF,useFloatingParentNodeId:us,useFloatingPortalNode:uP,useFloatingTree:ei,useFocus:HF,useHover:kF,useId:Rl,useInnerOffset:JF,useInteractions:o4,useListNavigation:GF,useMergeRefs:UF,useRole:$F,useTransitionStatus:dP,useTransitionStyles:KF,useTypeahead:ZF},Symbol.toStringTag,{value:"Module"})),dr=Ll(a4);var fP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{DialogHeader:function(){return F},default:function(){return z}});var r=T(ee),a=T(ht),s=ut,l=T(at),f=nt,b=as;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().dialogHeader,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.DialogHeader";var z=F})(fP);var pP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{DialogBody:function(){return z},default:function(){return D}});var r=O(ee),a=O(ht),s=ut,l=O(at),f=nt,b=as;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.divider,p=R.className,v=R.children,g=j(R,["divider","className","children"]),m=(0,f.useTheme)().dialogBody,_=m.defaultProps,M=m.styles.base;p=p??_.className;var X=(0,s.twMerge)((0,a.default)((0,l.default)(M.initial),S({},(0,l.default)(M.divider),y)),p);return r.default.createElement("div",T({},g,{ref:P,className:X}),v)});z.propTypes={divider:b.propTypesDivider,className:b.propTypesClassName,children:b.propTypesChildren},z.displayName="MaterialTailwind.DialogBody";var D=z})(pP);var hP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{DialogFooter:function(){return F},default:function(){return z}});var r=T(ee),a=T(ht),s=ut,l=T(at),f=nt,b=as;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().dialogFooter,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.DialogFooter";var z=F})(hP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(B,U){for(var K in U)Object.defineProperty(B,K,{enumerable:!0,get:U[K]})}t(e,{Dialog:function(){return X},DialogHeader:function(){return z.DialogHeader},DialogBody:function(){return D.DialogBody},DialogFooter:function(){return R.DialogFooter},default:function(){return H}});var r=p(ee),a=p(it),s=dr,l=vr,f=p(ht),b=p(Cr),S=ut,T=p(qt),O=p(at),j=nt,F=as,z=fP,D=pP,R=hP;function P(B,U,K){return U in B?Object.defineProperty(B,U,{value:K,enumerable:!0,configurable:!0,writable:!0}):B[U]=K,B}function y(){return y=Object.assign||function(B){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var oe in K)Object.prototype.hasOwnProperty.call(K,oe)&&(B[oe]=K[oe])}return B},y.apply(this,arguments)}function p(B){return B&&B.__esModule?B:{default:B}}function v(B){for(var U=1;U<arguments.length;U++){var K=arguments[U]!=null?arguments[U]:{},oe=Object.keys(K);typeof Object.getOwnPropertySymbols=="function"&&(oe=oe.concat(Object.getOwnPropertySymbols(K).filter(function(ne){return Object.getOwnPropertyDescriptor(K,ne).enumerable}))),oe.forEach(function(ne){P(B,ne,K[ne])})}return B}function g(B,U){var K=Object.keys(B);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(B);U&&(oe=oe.filter(function(ne){return Object.getOwnPropertyDescriptor(B,ne).enumerable})),K.push.apply(K,oe)}return K}function m(B,U){return U=U??{},Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(U)):g(Object(U)).forEach(function(K){Object.defineProperty(B,K,Object.getOwnPropertyDescriptor(U,K))}),B}function _(B,U){if(B==null)return{};var K=M(B,U),oe,ne;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(B);for(ne=0;ne<fe.length;ne++)oe=fe[ne],!(U.indexOf(oe)>=0)&&Object.prototype.propertyIsEnumerable.call(B,oe)&&(K[oe]=B[oe])}return K}function M(B,U){if(B==null)return{};var K={},oe=Object.keys(B),ne,fe;for(fe=0;fe<oe.length;fe++)ne=oe[fe],!(U.indexOf(ne)>=0)&&(K[ne]=B[ne]);return K}var X=r.default.forwardRef(function(B,U){var K=B.open,oe=B.handler,ne=B.size,fe=B.dismiss,me=B.animate,Se=B.className,be=B.children,ue=_(B,["open","handler","size","dismiss","animate","className","children"]),ge=(0,j.useTheme)().dialog,ye=ge.defaultProps,_e=ge.valid,Ee=ge.styles,Ne=Ee.base,Le=Ee.sizes;oe=oe??void 0,ne=ne??ye.size,fe=fe??ye.dismiss,me=me??ye.animate,Se=Se??ye.className;var Pe=(0,f.default)((0,O.default)(Ne.backdrop)),Xe=(0,S.twMerge)((0,f.default)((0,O.default)(Ne.container),(0,O.default)(Le[(0,T.default)(_e.sizes,ne,"md")])),Se),Ve={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},Re={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},He=(0,b.default)(Ve,me),We=(0,s.useFloating)({open:K,onOpenChange:oe}),Ke=We.floating,ot=We.context,Qe=(0,s.useId)(),qe="".concat(Qe,"-label"),st="".concat(Qe,"-description"),wt=(0,s.useInteractions)([(0,s.useClick)(ot),(0,s.useRole)(ot),(0,s.useDismiss)(ot,fe)]).getFloatingProps,kt=(0,s.useMergeRefs)([U,Ke]),Lt=l.AnimatePresence;return r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(s.FloatingPortal,null,r.default.createElement(Lt,null,K&&r.default.createElement(s.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(s.FloatingFocusManager,{context:ot},r.default.createElement(l.m.div,{className:ne==="xxl"?"":Pe,initial:"unmount",exit:"unmount",animate:K?"mount":"unmount",variants:Re,transition:{duration:.2}},r.default.createElement(l.m.div,y({},wt(m(v({},ue),{ref:kt,className:Xe,"aria-labelledby":qe,"aria-describedby":st})),{initial:"unmount",exit:"unmount",animate:K?"mount":"unmount",variants:He}),be)))))))});X.propTypes={open:F.propTypesOpen,handler:F.propTypesHandler,size:a.default.oneOf(F.propTypesSize),dismiss:F.propTypesDismiss,animate:F.propTypesAnimate,className:F.propTypesClassName,children:F.propTypesChildren},X.displayName="MaterialTailwind.Dialog";var H=Object.assign(X,{Header:z.DialogHeader,Body:D.DialogBody,Footer:R.DialogFooter})})(OT);var gP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{Input:function(){return D},default:function(){return R}});var r=j(ee),a=j(it),s=j(ht),l=j(qt),f=j(at),b=nt,S=Wl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.variant,v=P.color,g=P.size,m=P.label,_=P.error,M=P.success,X=P.icon,H=P.containerProps,B=P.labelProps,U=P.className,K=P.shrink,oe=P.inputRef,ne=F(P,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),fe=(0,b.useTheme)().input,me=fe.defaultProps,Se=fe.valid,be=fe.styles,ue=be.base,ge=be.variants;p=p??me.variant,g=g??me.size,v=v??me.color,m=m??me.label,B=B??me.labelProps,H=H??me.containerProps,U=U??me.className,K=K??me.shrink,X=X??me.icon;var ye=ge[(0,l.default)(Se.variants,p,"outlined")],_e=ye.sizes[(0,l.default)(Se.sizes,g,"md")],Ee=(0,f.default)(ye.error.input),Ne=(0,f.default)(ye.success.input),Le=(0,f.default)(ye.shrink.input),Pe=(0,f.default)(ye.colors.input[(0,l.default)(Se.colors,v,"gray")]),Xe=(0,f.default)(ye.error.label),Ve=(0,f.default)(ye.success.label),Re=(0,f.default)(ye.shrink.label),He=(0,f.default)(ye.colors.label[(0,l.default)(Se.colors,v,"gray")]),We=(0,s.default)((0,f.default)(ue.container),(0,f.default)(_e.container),H==null?void 0:H.className),Ke=(0,s.default)((0,f.default)(ue.input),(0,f.default)(ye.base.input),(0,f.default)(_e.input),T({},(0,f.default)(ye.base.inputWithIcon),X),T({},Pe,!_&&!M),T({},Ee,_),T({},Ne,M),T({},Le,K),U),ot=(0,s.default)((0,f.default)(ue.label),(0,f.default)(ye.base.label),(0,f.default)(_e.label),T({},He,!_&&!M),T({},Xe,_),T({},Ve,M),T({},Re,K),B==null?void 0:B.className),Qe=(0,s.default)((0,f.default)(ue.icon),(0,f.default)(ye.base.icon),(0,f.default)(_e.icon)),qe=(0,s.default)((0,f.default)(ue.asterisk));return r.default.createElement("div",O({},H,{ref:y,className:We}),X&&r.default.createElement("div",{className:Qe},X),r.default.createElement("input",O({},ne,{ref:oe,className:Ke,placeholder:(ne==null?void 0:ne.placeholder)||" "})),r.default.createElement("label",O({},B,{className:ot}),m," ",ne.required?r.default.createElement("span",{className:qe},"*"):""))});D.propTypes={variant:a.default.oneOf(S.propTypesVariant),size:a.default.oneOf(S.propTypesSize),color:a.default.oneOf(S.propTypesColor),label:S.propTypesLabel,error:S.propTypesError,success:S.propTypesSuccess,icon:S.propTypesIcon,labelProps:S.propTypesLabelProps,containerProps:S.propTypesContainerProps,shrink:S.propTypesShrink,className:S.propTypesClassName},D.displayName="MaterialTailwind.Input";var R=D})(gP);var bP={},Zl={},ds={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{propTypesOpen:function(){return T},propTypesHandler:function(){return O},propTypesPlacement:function(){return j},propTypesOffset:function(){return F},propTypesDismiss:function(){return z},propTypesAnimate:function(){return D},propTypesLockScroll:function(){return R},propTypesDisabled:function(){return P},propTypesClassName:function(){return y},propTypesChildren:function(){return p},propTypesContextValue:function(){return v}});var r=l(it),a=Yt;function s(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function l(g){return g&&g.__esModule?g:{default:g}}function f(g){for(var m=1;m<arguments.length;m++){var _=arguments[m]!=null?arguments[m]:{},M=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(M=M.concat(Object.getOwnPropertySymbols(_).filter(function(X){return Object.getOwnPropertyDescriptor(_,X).enumerable}))),M.forEach(function(X){s(g,X,_[X])})}return g}function b(g,m){var _=Object.keys(g);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(g);m&&(M=M.filter(function(X){return Object.getOwnPropertyDescriptor(g,X).enumerable})),_.push.apply(_,M)}return _}function S(g,m){return m=m??{},Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(m)):b(Object(m)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(m,_))}),g}var T=r.default.bool,O=r.default.func,j=a.propTypesPlacements,F=a.propTypesOffsetType,z=r.default.shape(S(f({},a.propTypesDismissType),{itemPress:r.default.bool})),D=a.propTypesAnimation,R=r.default.bool,P=r.default.bool,y=r.default.string,p=r.default.node.isRequired,v=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:D.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(ds);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{MenuContext:function(){return l},useMenu:function(){return f},MenuContextProvider:function(){return b}});var r=s(ee),a=ds;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.MenuContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.prototypes={value:a.propTypesContextValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.MenuContextProvider"})(Zl);var vP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{MenuCore:function(){return P},default:function(){return y}});var r=j(ee),a=j(it),s=dr,l=j(Cr),f=nt,b=Zl,S=ds;function T(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function O(p){if(Array.isArray(p))return p}function j(p){return p&&p.__esModule?p:{default:p}}function F(p,v){var g=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(g!=null){var m=[],_=!0,M=!1,X,H;try{for(g=g.call(p);!(_=(X=g.next()).done)&&(m.push(X.value),!(v&&m.length===v));_=!0);}catch(B){M=!0,H=B}finally{try{!_&&g.return!=null&&g.return()}finally{if(M)throw H}}return m}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(p,v){return O(p)||F(p,v)||R(p,v)||z()}function R(p,v){if(p){if(typeof p=="string")return T(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return T(p,v)}}var P=r.default.forwardRef(function(p,v){var g=p.open,m=p.handler,_=p.placement,M=p.offset,X=p.dismiss,H=p.animate,B=p.lockScroll,U=p.allowHover,K=p.children,oe=(0,f.useTheme)().menu,ne=oe.defaultProps,fe=D(r.default.useState(!1),2),me=fe[0],Se=fe[1],be=D(r.default.useState(!1),2),ue=be[0],ge=be[1];g=g??me,m=m??Se,_=_??ne.placement,M=M??ne.offset,X=X??ne.dismiss,H=H??ne.animate,B=B??ne.lockScroll;var ye={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},_e=(0,l.default)(ye,H),Ee=D(r.default.useState(null),2),Ne=Ee[0],Le=Ee[1],Pe=r.default.useRef([]),Xe=r.default.useRef(r.default.Children.map(K,function(et){return r.default.isValidElement(et)?et.props.label:null})),Ve=(0,s.useFloatingTree)(),Re=(0,s.useFloatingNodeId)(),He=(0,s.useFloatingParentNodeId)(),We=He!=null,Ke=(0,s.useFloating)({open:g,nodeId:Re,placement:_,onOpenChange:m,middleware:[(0,s.offset)(M),(0,s.flip)(),(0,s.shift)()],whileElementsMounted:s.autoUpdate}),ot=Ke.x,Qe=Ke.y,qe=Ke.strategy,st=Ke.refs,wt=Ke.context,kt=(0,s.useInteractions)([(0,s.useHover)(wt,{handleClose:(0,s.safePolygon)({restMs:25,blockPointerEvents:!0}),enabled:U||We&&ue,delay:{open:75}}),(0,s.useClick)(wt,{toggle:!We||!ue,event:"mousedown",ignoreMouse:We}),(0,s.useRole)(wt,{role:"menu"}),(0,s.useDismiss)(wt,X),(0,s.useListNavigation)(wt,{listRef:Pe,activeIndex:Ne,nested:We,onNavigate:Le}),(0,s.useTypeahead)(wt,{listRef:Xe,onMatch:g?Le:void 0,activeIndex:Ne})]),Lt=kt.getReferenceProps,At=kt.getFloatingProps,jt=kt.getItemProps;r.default.useEffect(function(){var et=function(){X.itemPress&&m(!1)},dt=function(Et){Et.nodeId!==Re&&Et.parentId===He&&m(!1)};return Ve==null||Ve.events.on("click",et),Ve==null||Ve.events.on("menuopen",dt),function(){Ve==null||Ve.events.off("click",et),Ve==null||Ve.events.off("menuopen",dt)}},[Ve,Re,He,m,X]),r.default.useEffect(function(){g&&(Ve==null||Ve.events.emit("menuopen",{parentId:He,nodeId:Re}))},[Ve,g,Re,He]),r.default.useEffect(function(){var et=function(Et){var gt=Et.pointerType;gt!=="touch"&&ge(!0)},dt=function(){ge(!1)};return window.addEventListener("pointermove",et,{once:!0,capture:!0}),window.addEventListener("keydown",dt,!0),function(){window.removeEventListener("pointermove",et,{capture:!0}),window.removeEventListener("keydown",dt,!0)}},[ue]);var Fe=(0,s.useMergeRefs)([st.setReference,v]),Ye=r.default.useMemo(function(){return{open:g,handler:m,setInternalOpen:Se,strategy:qe,x:ot,y:Qe,reference:Fe,floating:st.setFloating,listItemsRef:Pe,getReferenceProps:Lt,getFloatingProps:At,getItemProps:jt,appliedAnimation:_e,lockScroll:B,context:wt,activeIndex:Ne,tree:Ve,allowHover:U,internalAllowHover:ue,nested:We,setActiveIndex:Le}},[g,m,Se,qe,ot,Qe,Fe,st,Lt,At,jt,_e,B,wt,Ne,Ve,U,ue,We,Le]);return r.default.createElement(b.MenuContextProvider,{value:Ye},r.default.createElement(s.FloatingNode,{id:Re},K))});P.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,placement:a.default.oneOf(S.propTypesPlacement),offset:S.propTypesOffset,dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,lockScroll:S.propTypesLockScroll,children:S.propTypesChildren},P.displayName="MaterialTailwind.MenuCore";var y=P})(vP);var mP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{MenuHandler:function(){return z},default:function(){return D}});var r=b(ee),a=dr,s=Zl,l=ds;function f(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function b(R){return R&&R.__esModule?R:{default:R}}function S(R){for(var P=1;P<arguments.length;P++){var y=arguments[P]!=null?arguments[P]:{},p=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(p=p.concat(Object.getOwnPropertySymbols(y).filter(function(v){return Object.getOwnPropertyDescriptor(y,v).enumerable}))),p.forEach(function(v){f(R,v,y[v])})}return R}function T(R,P){var y=Object.keys(R);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(R);P&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(R,v).enumerable})),y.push.apply(y,p)}return y}function O(R,P){return P=P??{},Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(P)):T(Object(P)).forEach(function(y){Object.defineProperty(R,y,Object.getOwnPropertyDescriptor(P,y))}),R}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.children,p=j(R,["children"]),v=(0,s.useMenu)(),g=v.getReferenceProps,m=v.reference,_=v.nested,M=(0,a.useMergeRefs)([P,m]);return r.default.cloneElement(y,S({},g(S(O(S({},p),{ref:M,onClick:function(H){H.stopPropagation()}}),_&&{role:"menuitem"}))))});z.propTypes={children:l.propTypesChildren},z.displayName="MaterialTailwind.MenuHandler";var D=z})(mP);var yP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{MenuList:function(){return R},default:function(){return P}});var r=F(ee),a=dr,s=vr,l=F(ht),f=ut,b=F(at),S=nt,T=Zl,O=ds;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.children,g=y.className,m=z(y,["children","className"]),_=(0,S.useTheme)().menu,M=_.styles.base,X=(0,T.useMenu)(),H=X.open,B=X.handler,U=X.strategy,K=X.x,oe=X.y,ne=X.floating,fe=X.listItemsRef,me=X.getFloatingProps,Se=X.getItemProps,be=X.appliedAnimation,ue=X.lockScroll,ge=X.context,ye=X.activeIndex,_e=X.tree,Ee=X.allowHover,Ne=X.internalAllowHover,Le=X.setActiveIndex,Pe=X.nested;g=g??"";var Xe=(0,f.twMerge)((0,l.default)((0,b.default)(M.menu)),g),Ve=(0,a.useMergeRefs)([p,ne]),Re=s.AnimatePresence,He=r.default.createElement(s.m.div,j({},m,{ref:Ve,style:{position:U,top:oe??0,left:K??0},className:Xe},me({onKeyDown:function(Ke){Ke.key==="Tab"&&(B(!1),Ke.shiftKey&&Ke.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:H?"mount":"unmount",variants:be}),r.default.Children.map(v,function(We,Ke){return r.default.isValidElement(We)&&r.default.cloneElement(We,Se({tabIndex:ye===Ke?0:-1,role:"menuitem",className:We.props.className,ref:function(Qe){fe.current[Ke]=Qe},onClick:function(Qe){if(We.props.onClick){var qe,st;(st=(qe=We.props).onClick)===null||st===void 0||st.call(qe,Qe)}_e==null||_e.events.emit("click")},onMouseEnter:function(){(Ee&&H||Ne&&H)&&Le(Ke)}}))}));return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(a.FloatingPortal,null,r.default.createElement(Re,null,H&&r.default.createElement(r.default.Fragment,null,ue?r.default.createElement(a.FloatingOverlay,{lockScroll:!0},r.default.createElement(a.FloatingFocusManager,{context:ge,modal:!Pe,initialFocus:Pe?-1:0,returnFocus:!Pe,visuallyHiddenDismiss:!0},He)):r.default.createElement(a.FloatingFocusManager,{context:ge,modal:!Pe,initialFocus:Pe?-1:0,returnFocus:!Pe,visuallyHiddenDismiss:!0},He)))))});R.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.MenuList";var P=R})(yP);var xP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{MenuItem:function(){return z},default:function(){return D}});var r=O(ee),a=O(ht),s=ut,l=O(at),f=nt,b=ds;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.className,p=y===void 0?"":y,v=R.disabled,g=v===void 0?!1:v,m=R.children,_=j(R,["className","disabled","children"]),M=(0,f.useTheme)().menu,X=M.styles.base,H=(0,s.twMerge)((0,a.default)((0,l.default)(X.item.initial),S({},(0,l.default)(X.item.disabled),g)),p);return r.default.createElement("button",T({},_,{ref:P,role:"menuitem",className:H}),m)});z.propTypes={className:b.propTypesClassName,disabled:b.propTypesDisabled,children:b.propTypesChildren},z.displayName="MaterialTailwind.MenuItem";var D=z})(xP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{Menu:function(){return j},MenuHandler:function(){return f.MenuHandler},MenuList:function(){return b.MenuList},MenuItem:function(){return S.MenuItem},useMenu:function(){return s.useMenu},default:function(){return F}});var r=O(ee),a=dr,s=Zl,l=vP,f=mP,b=yP,S=xP;function T(){return T=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},T.apply(this,arguments)}function O(z){return z&&z.__esModule?z:{default:z}}var j=r.default.forwardRef(function(z,D){var R=z.open,P=z.handler,y=z.placement,p=z.offset,v=z.dismiss,g=z.animate,m=z.lockScroll,_=z.allowHover,M=z.children,X=(0,a.useFloatingParentNodeId)(),H={open:R,handler:P,placement:y,offset:p,dismiss:v,animate:g,lockScroll:m,allowHover:_};return X==null?r.default.createElement(a.FloatingTree,null,r.default.createElement(l.MenuCore,T({ref:D},H),M)):r.default.createElement(l.MenuCore,T({ref:D},H),M)});j.propTypes=l.MenuCore.propTypes,j.displayName="MaterialTailwind.Menu";var F=Object.assign(j,{Handler:f.MenuHandler,List:b.MenuList,Item:S.MenuItem})})(bP);var wP={},CP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{MobileNav:function(){return R},default:function(){return P}});var r=F(ee),a=vr,s=dr,l=F(Cr),f=F(ht),b=ut,S=F(at),T=nt,O=Od;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.open,g=y.animate,m=y.className,_=y.children,M=z(y,["open","animate","className","children"]),X;console.error(`<MobileNav /> will be deprecated in the future versions of @material-tailwind/react use <Collapse /> instead.
More details: https://www.material-tailwind.com/docs/react/collapse
`);var H=r.default.useRef(null),B=(0,T.useTheme)().navbar,U=B.styles,K=U.base.mobileNav;g=g??{},m=m??"";var oe=(0,b.twMerge)((0,f.default)((0,S.default)(K)),m),ne={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((X=H.current)===null||X===void 0?void 0:X.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},fe=(0,l.default)(ne,g),me=a.AnimatePresence,Se=(0,s.useMergeRefs)([p,H]);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(me,null,r.default.createElement(a.m.div,j({},M,{ref:Se,className:oe,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:fe}),_)))});R.displayName="MaterialTailwind.MobileNav",R.propTypes={open:O.propTypesOpen,animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren};var P=R})(CP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Navbar:function(){return P},MobileNav:function(){return T.MobileNav},default:function(){return y}});var r=z(ee),a=z(it),s=z(ht),l=ut,f=z(qt),b=z(at),S=nt,T=CP,O=Od;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.variant,m=p.color,_=p.shadow,M=p.blurred,X=p.fullWidth,H=p.className,B=p.children,U=D(p,["variant","color","shadow","blurred","fullWidth","className","children"]),K=(0,S.useTheme)().navbar,oe=K.defaultProps,ne=K.valid,fe=K.styles,me=fe.base,Se=fe.variants;g=g??oe.variant,m=m??oe.color,_=_??oe.shadow,M=M??oe.blurred,X=X??oe.fullWidth,H=H??oe.className;var be,ue=(0,s.default)((0,b.default)(me.navbar.initial),(be={},j(be,(0,b.default)(me.navbar.shadow),_),j(be,(0,b.default)(me.navbar.blurred),M&&m==="white"),j(be,(0,b.default)(me.navbar.fullWidth),X),be)),ge=(0,s.default)((0,b.default)(Se[(0,f.default)(ne.variants,g,"filled")][(0,f.default)(ne.colors,m,"white")])),ye=(0,l.twMerge)((0,s.default)(ue,ge),H);return r.default.createElement("nav",F({},U,{ref:v,className:ye}),B)});P.propTypes={variant:a.default.oneOf(O.propTypesVariant),color:a.default.oneOf(O.propTypesColor),shadow:O.propTypesShadow,blurred:O.propTypesBlurred,fullWidth:O.propTypesFullWidth,className:O.propTypesClassName,children:O.propTypesChildren},P.displayName="MaterialTailwind.Navbar";var y=Object.assign(P,{MobileNav:T.MobileNav})})(wP);var SP={},qd={},fs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesOpen:function(){return l},propTypesHandler:function(){return f},propTypesPlacement:function(){return b},propTypesOffset:function(){return S},propTypesDismiss:function(){return T},propTypesAnimate:function(){return O},propTypesContent:function(){return j},propTypesInteractive:function(){return F},propTypesClassName:function(){return z},propTypesChildren:function(){return D},propTypesContextValue:function(){return R}});var r=s(it),a=Yt;function s(P){return P&&P.__esModule?P:{default:P}}var l=r.default.bool,f=r.default.func,b=a.propTypesPlacements,S=a.propTypesOffsetType,T=a.propTypesDismissType,O=a.propTypesAnimation,j=r.default.node,F=r.default.bool,z=r.default.string,D=r.default.node.isRequired,R=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:O.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(fs);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{PopoverContext:function(){return l},usePopover:function(){return f},PopoverContextProvider:function(){return b}});var r=s(ee),a=fs;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.PopoverContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.propTypes={value:a.propTypesContextValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.PopoverContextProvider"})(qd);var kP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{PopoverHandler:function(){return z},default:function(){return D}});var r=b(ee),a=dr,s=qd,l=fs;function f(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function b(R){return R&&R.__esModule?R:{default:R}}function S(R){for(var P=1;P<arguments.length;P++){var y=arguments[P]!=null?arguments[P]:{},p=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(p=p.concat(Object.getOwnPropertySymbols(y).filter(function(v){return Object.getOwnPropertyDescriptor(y,v).enumerable}))),p.forEach(function(v){f(R,v,y[v])})}return R}function T(R,P){var y=Object.keys(R);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(R);P&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(R,v).enumerable})),y.push.apply(y,p)}return y}function O(R,P){return P=P??{},Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(P)):T(Object(P)).forEach(function(y){Object.defineProperty(R,y,Object.getOwnPropertyDescriptor(P,y))}),R}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.children,p=j(R,["children"]),v=(0,s.usePopover)(),g=v.getReferenceProps,m=v.reference,_=(0,a.useMergeRefs)([P,m]);return r.default.cloneElement(y,S({},g(O(S({},p),{ref:_}))))});z.propTypes={children:l.propTypesChildren},z.displayName="MaterialTailwind.PopoverHandler";var D=z})(kP);var TP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{PopoverContent:function(){return v},default:function(){return g}});var r=z(ee),a=dr,s=vr,l=z(ht),f=ut,b=z(at),S=nt,T=qd,O=fs;function j(m,_,M){return _ in m?Object.defineProperty(m,_,{value:M,enumerable:!0,configurable:!0,writable:!0}):m[_]=M,m}function F(){return F=Object.assign||function(m){for(var _=1;_<arguments.length;_++){var M=arguments[_];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(m[X]=M[X])}return m},F.apply(this,arguments)}function z(m){return m&&m.__esModule?m:{default:m}}function D(m){for(var _=1;_<arguments.length;_++){var M=arguments[_]!=null?arguments[_]:{},X=Object.keys(M);typeof Object.getOwnPropertySymbols=="function"&&(X=X.concat(Object.getOwnPropertySymbols(M).filter(function(H){return Object.getOwnPropertyDescriptor(M,H).enumerable}))),X.forEach(function(H){j(m,H,M[H])})}return m}function R(m,_){var M=Object.keys(m);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(m);_&&(X=X.filter(function(H){return Object.getOwnPropertyDescriptor(m,H).enumerable})),M.push.apply(M,X)}return M}function P(m,_){return _=_??{},Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(_)):R(Object(_)).forEach(function(M){Object.defineProperty(m,M,Object.getOwnPropertyDescriptor(_,M))}),m}function y(m,_){if(m==null)return{};var M=p(m,_),X,H;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(m);for(H=0;H<B.length;H++)X=B[H],!(_.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(m,X)&&(M[X]=m[X])}return M}function p(m,_){if(m==null)return{};var M={},X=Object.keys(m),H,B;for(B=0;B<X.length;B++)H=X[B],!(_.indexOf(H)>=0)&&(M[H]=m[H]);return M}var v=r.default.forwardRef(function(m,_){var M=m.children,X=m.className,H=y(m,["children","className"]),B=(0,S.useTheme)().popover,U=B.defaultProps,K=B.styles.base,oe=(0,T.usePopover)(),ne=oe.open,fe=oe.strategy,me=oe.x,Se=oe.y,be=oe.context,ue=oe.floating,ge=oe.getFloatingProps,ye=oe.appliedAnimation,_e=oe.labelId,Ee=oe.descriptionId;X=X??U.className;var Ne=(0,f.twMerge)((0,l.default)((0,b.default)(K)),X),Le=(0,a.useMergeRefs)([_,ue]),Pe=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(a.FloatingPortal,null,r.default.createElement(Pe,null,ne&&r.default.createElement(a.FloatingFocusManager,{context:be},r.default.createElement(s.m.div,F({},ge(P(D({},H),{ref:Le,className:Ne,style:{position:fe,top:Se??"",left:me??""},"aria-labelledby":_e,"aria-describedby":Ee})),{initial:"unmount",exit:"unmount",animate:ne?"mount":"unmount",variants:ye}),M)))))});v.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},v.displayName="MaterialTailwind.PopoverContent";var g=v})(TP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return T.PopoverHandler},PopoverContent:function(){return O.PopoverContent},usePopover:function(){return b.usePopover},default:function(){return v}});var r=z(ee),a=z(it),s=dr,l=z(Cr),f=nt,b=qd,S=fs,T=kP,O=TP;function j(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function F(g){if(Array.isArray(g))return g}function z(g){return g&&g.__esModule?g:{default:g}}function D(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(g,m){return F(g)||D(g,m)||y(g,m)||R()}function y(g,m){if(g){if(typeof g=="string")return j(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return j(g,m)}}var p=function(g){var m=g.open,_=g.handler,M=g.placement,X=g.offset,H=g.dismiss,B=g.animate,U=g.children,K=(0,f.useTheme)().popover,oe=K.defaultProps,ne=P(r.default.useState(!1),2),fe=ne[0],me=ne[1];m=m??fe,_=_??me,M=M??oe.placement,X=X??oe.offset,H=H??oe.dismiss,B=B??oe.animate;var Se={unmount:{opacity:0},mount:{opacity:1}},be=(0,l.default)(Se,B),ue=(0,s.useFloating)({open:m,onOpenChange:_,middleware:[(0,s.offset)(X),(0,s.flip)(),(0,s.shift)()],placement:M}),ge=ue.x,ye=ue.y,_e=ue.reference,Ee=ue.floating,Ne=ue.strategy,Le=ue.refs,Pe=ue.update,Xe=ue.context,Ve=(0,s.useId)(),Re="".concat(Ve,"-label"),He="".concat(Ve,"-description"),We=(0,s.useInteractions)([(0,s.useClick)(Xe),(0,s.useRole)(Xe),(0,s.useDismiss)(Xe,H)]),Ke=We.getReferenceProps,ot=We.getFloatingProps;r.default.useEffect(function(){if(Le.reference.current&&Le.floating.current&&m)return(0,s.autoUpdate)(Le.reference.current,Le.floating.current,Pe)},[m,Pe,Le.reference,Le.floating]);var Qe=r.default.useMemo(function(){return{open:m,strategy:Ne,x:ge,y:ye,context:Xe,reference:_e,floating:Ee,getReferenceProps:Ke,getFloatingProps:ot,appliedAnimation:be,labelId:Re,descriptionId:He}},[m,Ne,ge,ye,Xe,_e,Ee,ot,Ke,be,Re,He]);return r.default.createElement(b.PopoverContextProvider,{value:Qe},U)};p.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,placement:a.default.oneOf(S.propTypesPlacement),offset:S.propTypesOffset,dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,children:S.propTypesChildren},p.displayName="MaterialTailwind.Popover";var v=Object.assign(p,{Handler:T.PopoverHandler,Content:O.PopoverContent})})(SP);var PP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Progress:function(){return R},default:function(){return P}});var r=F(ee),a=F(it),s=F(ht),l=ut,f=F(qt),b=F(at),S=nt,T=x0;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.color,m=y.size,_=y.value,M=y.label,X=y.className,H=y.barProps,B=z(y,["variant","color","size","value","label","className","barProps"]),U=(0,S.useTheme)().progress,K=U.defaultProps,oe=U.valid,ne=U.styles,fe=ne.base,me=ne.variants,Se=ne.sizes;v=v??K.variant,g=g??K.color,m=m??K.size,M=M??K.label,X=X??K.className,H=H??K.barProps;var be=(0,b.default)(me[(0,f.default)(oe.variants,v,"filled")][(0,f.default)(oe.colors,g,"gray")]),ue=(0,b.default)(Se[(0,f.default)(oe.sizes,m,"md")].container.initial),ge=(0,s.default)((0,b.default)(fe.container.initial),ue),ye=(0,b.default)(Se[(0,f.default)(oe.sizes,m,"md")].container.withLabel),_e=(0,s.default)((0,b.default)(fe.container.withLabel),ye),Ee=(0,b.default)(Se[(0,f.default)(oe.sizes,m,"md")].bar),Ne=(0,s.default)((0,b.default)(fe.bar),Ee),Le=(0,l.twMerge)((0,s.default)(ge,O({},_e,M)),X),Pe=(0,l.twMerge)((0,s.default)(Ne,be),H==null?void 0:H.className);return r.default.createElement("div",j({},B,{ref:p,className:Le}),r.default.createElement("div",j({},H,{className:Pe,style:{width:"".concat(_,"%")}}),M&&"".concat(_,"% ").concat(typeof M=="string"?M:"")))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),size:a.default.oneOf(T.propTypesSize),value:T.propTypesValue,label:T.propTypesLabel,barProps:T.propTypesBarProps,className:T.propTypesClassName},R.displayName="MaterialTailwind.Progress";var P=R})(PP);var _P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Radio:function(){return P},default:function(){return y}});var r=z(ee),a=z(it),s=z(ss),l=z(ht),f=ut,b=z(qt),S=z(at),T=nt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.icon,M=p.ripple,X=p.className,H=p.disabled,B=p.containerProps,U=p.labelProps,K=p.iconProps,oe=p.inputRef,ne=D(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),fe=(0,T.useTheme)().radio,me=fe.defaultProps,Se=fe.valid,be=fe.styles,ue=be.base,ge=be.colors,ye=r.default.useId();g=g??me.color,m=m??me.label,_=_??me.icon,M=M??me.ripple,X=X??me.className,H=H??me.disabled,B=B??me.containerProps,U=U??me.labelProps,K=K??me.iconProps;var _e=M!==void 0&&new s.default,Ee=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),H)),Ne=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),B==null?void 0:B.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),X),Pe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className),Xe=(0,l.default)((0,l.default)((0,S.default)(ue.icon)),ge[(0,b.default)(Se.colors,g,"gray")].color,K==null?void 0:K.className);return r.default.createElement("div",{ref:v,className:Ee},r.default.createElement("label",F({},B,{className:Ne,htmlFor:ne.id||ye,onMouseDown:function(Ve){var Re=B==null?void 0:B.onMouseDown;return M&&_e.create(Ve,"dark"),typeof Re=="function"&&Re(Ve)}}),r.default.createElement("input",F({},ne,{ref:oe,type:"radio",disabled:H,className:Le,id:ne.id||ye})),r.default.createElement("span",{className:Xe},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",F({},U,{className:Pe,htmlFor:ne.id||ye}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,icon:O.propTypesIcon,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject},P.displayName="MaterialTailwind.Radio";var y=P})(_P);var OP={},ib={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{SelectContext:function(){return f},useSelect:function(){return b},usePrevious:function(){return S},SelectContextProvider:function(){return T}});var r=l(ee),a=vr,s=Bl;function l(O){return O&&O.__esModule?O:{default:O}}var f=r.default.createContext(null);f.displayName="MaterialTailwind.SelectContext";function b(){var O=r.default.useContext(f);if(O===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return O}function S(O){var j=r.default.useRef();return(0,a.useIsomorphicLayoutEffect)(function(){j.current=O},[O]),j.current}var T=function(O){var j=O.value,F=O.children;return r.default.createElement(f.Provider,{value:j},F)};T.propTypes={value:s.propTypesContextValue,children:s.propTypesChildren},T.displayName="MaterialTailwind.SelectContextProvider"})(ib);var AP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SelectOption:function(){return D},default:function(){return R}});var r=j(ee),a=j(ht),s=ut,l=j(at),f=nt,b=ib,S=Bl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=function(P){var y=function(){be(_),ye(g),ge(!1),Ee(null)},p=function(Ke){(Ke.key==="Enter"||Ke.key===" "&&!Le.current.typing)&&(Ke.preventDefault(),y())},v=P.value,g=v===void 0?"":v,m=P.index,_=m===void 0?0:m,M=P.disabled,X=M===void 0?!1:M,H=P.className,B=H===void 0?"":H,U=P.children,K=F(P,["value","index","disabled","className","children"]),oe=(0,f.useTheme)().select,ne=oe.styles,fe=ne.base,me=(0,b.useSelect)(),Se=me.selectedIndex,be=me.setSelectedIndex,ue=me.listRef,ge=me.setOpen,ye=me.onChange,_e=me.activeIndex,Ee=me.setActiveIndex,Ne=me.getItemProps,Le=me.dataRef,Pe=(0,l.default)(fe.option.initial),Xe=(0,l.default)(fe.option.active),Ve=(0,l.default)(fe.option.disabled),Re,He=(0,s.twMerge)((0,a.default)(Pe,(Re={},T(Re,Xe,Se===_),T(Re,Ve,X),Re)),B??"");return r.default.createElement("li",O({},K,{role:"option",ref:function(We){return ue.current[_]=We},className:He,disabled:X,tabIndex:_e===_?0:1,"aria-selected":_e===_&&Se===_,"data-selected":Se===_},Ne({onClick:function(We){var Ke=K==null?void 0:K.onClick;typeof Ke=="function"&&(Ke(We),y()),y()},onKeyDown:function(We){var Ke=K==null?void 0:K.onKeyDown;typeof Ke=="function"&&(Ke(We),p(We)),p(We)}})),U)};D.propTypes={value:S.propTypesValue,index:S.propTypesIndex,disabled:S.propTypesDisabled,className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.SelectOption";var R=D})(AP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ue,ge){for(var ye in ge)Object.defineProperty(ue,ye,{enumerable:!0,get:ge[ye]})}t(e,{Select:function(){return Se},Option:function(){return D.SelectOption},useSelect:function(){return F.useSelect},usePrevious:function(){return F.usePrevious},default:function(){return be}});var r=g(ee),a=g(it),s=dr,l=vr,f=g(ht),b=ut,S=g(Cr),T=g(qt),O=g(at),j=nt,F=ib,z=Bl,D=AP;function R(ue,ge){(ge==null||ge>ue.length)&&(ge=ue.length);for(var ye=0,_e=new Array(ge);ye<ge;ye++)_e[ye]=ue[ye];return _e}function P(ue){if(Array.isArray(ue))return ue}function y(ue){if(Array.isArray(ue))return R(ue)}function p(ue,ge,ye){return ge in ue?Object.defineProperty(ue,ge,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[ge]=ye,ue}function v(){return v=Object.assign||function(ue){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge];for(var _e in ye)Object.prototype.hasOwnProperty.call(ye,_e)&&(ue[_e]=ye[_e])}return ue},v.apply(this,arguments)}function g(ue){return ue&&ue.__esModule?ue:{default:ue}}function m(ue){if(typeof Symbol<"u"&&ue[Symbol.iterator]!=null||ue["@@iterator"]!=null)return Array.from(ue)}function _(ue,ge){var ye=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(ye!=null){var _e=[],Ee=!0,Ne=!1,Le,Pe;try{for(ye=ye.call(ue);!(Ee=(Le=ye.next()).done)&&(_e.push(Le.value),!(ge&&_e.length===ge));Ee=!0);}catch(Xe){Ne=!0,Pe=Xe}finally{try{!Ee&&ye.return!=null&&ye.return()}finally{if(Ne)throw Pe}}return _e}}function M(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(ue){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge]!=null?arguments[ge]:{},_e=Object.keys(ye);typeof Object.getOwnPropertySymbols=="function"&&(_e=_e.concat(Object.getOwnPropertySymbols(ye).filter(function(Ee){return Object.getOwnPropertyDescriptor(ye,Ee).enumerable}))),_e.forEach(function(Ee){p(ue,Ee,ye[Ee])})}return ue}function B(ue,ge){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(ue);ge&&(_e=_e.filter(function(Ee){return Object.getOwnPropertyDescriptor(ue,Ee).enumerable})),ye.push.apply(ye,_e)}return ye}function U(ue,ge){return ge=ge??{},Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(ge)):B(Object(ge)).forEach(function(ye){Object.defineProperty(ue,ye,Object.getOwnPropertyDescriptor(ge,ye))}),ue}function K(ue,ge){if(ue==null)return{};var ye=oe(ue,ge),_e,Ee;if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ue);for(Ee=0;Ee<Ne.length;Ee++)_e=Ne[Ee],!(ge.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call(ue,_e)&&(ye[_e]=ue[_e])}return ye}function oe(ue,ge){if(ue==null)return{};var ye={},_e=Object.keys(ue),Ee,Ne;for(Ne=0;Ne<_e.length;Ne++)Ee=_e[Ne],!(ge.indexOf(Ee)>=0)&&(ye[Ee]=ue[Ee]);return ye}function ne(ue,ge){return P(ue)||_(ue,ge)||me(ue,ge)||M()}function fe(ue){return y(ue)||m(ue)||me(ue)||X()}function me(ue,ge){if(ue){if(typeof ue=="string")return R(ue,ge);var ye=Object.prototype.toString.call(ue).slice(8,-1);if(ye==="Object"&&ue.constructor&&(ye=ue.constructor.name),ye==="Map"||ye==="Set")return Array.from(ye);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return R(ue,ge)}}var Se=r.default.forwardRef(function(ue,ge){var ye=ue.variant,_e=ue.color,Ee=ue.size,Ne=ue.label,Le=ue.error,Pe=ue.success,Xe=ue.arrow,Ve=ue.value,Re=ue.onChange,He=ue.selected,We=ue.offset,Ke=ue.dismiss,ot=ue.animate,Qe=ue.lockScroll,qe=ue.labelProps,st=ue.menuProps,wt=ue.className,kt=ue.disabled,Lt=ue.name,At=ue.children,jt=ue.containerProps,Fe=K(ue,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ye,et=(0,j.useTheme)().select,dt=et.defaultProps,St=et.valid,Et=et.styles,gt=Et.base,Gt=Et.variants,Sr=ne(r.default.useState("close"),2),nr=Sr[0],Pn=Sr[1];ye=ye??dt.variant,_e=_e??dt.color,Ee=Ee??dt.size,Ne=Ne??dt.label,Le=Le??dt.error,Pe=Pe??dt.success,Xe=Xe??dt.arrow,Ve=Ve??dt.value,Re=Re??dt.onChange,He=He??dt.selected,We=We??dt.offset,Ke=Ke??dt.dismiss,ot=ot??dt.animate,qe=qe??dt.labelProps,st=st??dt.menuProps;var Fr;jt=(Fr=(0,S.default)(jt,(dt==null?void 0:dt.containerProps)||{}))!==null&&Fr!==void 0?Fr:dt.containerProps,wt=wt??dt.className;var Vr=r.default.useRef([]),Kt,ri=r.default.useRef(fe((Kt=r.default.Children.map(At,function(Q){var re=Q.props;return re==null?void 0:re.value}))!==null&&Kt!==void 0?Kt:[])),ba=ne(r.default.useState(!1),2),Mr=ba[0],va=ba[1],_n=ne(r.default.useState(null),2),Wr=_n[0],Un=_n[1],uo=ne(r.default.useState(0),2),mr=uo[0],co=uo[1],ma=ne(r.default.useState(!1),2),ni=ma[0],$n=ma[1],ya=(0,F.usePrevious)(Wr),Jr=(0,s.useFloating)({placement:"bottom-start",open:Mr,onOpenChange:va,whileElementsMounted:s.autoUpdate,middleware:[(0,s.offset)(5),(0,s.flip)({padding:10}),(0,s.size)({apply:function(re){var ie=re.rects,C=re.elements,I,$;Object.assign(C==null||(I=C.floating)===null||I===void 0?void 0:I.style,{width:"".concat(ie==null||($=ie.reference)===null||$===void 0?void 0:$.width,"px"),zIndex:99})},padding:20})]}),Mo=Jr.x,qn=Jr.y,xa=Jr.strategy,Kn=Jr.refs,Br=Jr.context;r.default.useEffect(function(){co(Math.max(0,ri.current.indexOf(Ve)+1))},[Ve]);var On=Kn.floating,Zn=(0,s.useInteractions)([(0,s.useClick)(Br),(0,s.useRole)(Br,{role:"listbox"}),(0,s.useDismiss)(Br,H({},Ke)),(0,s.useListNavigation)(Br,{listRef:Vr,activeIndex:Wr,selectedIndex:mr,onNavigate:Un,loop:!0}),(0,s.useTypeahead)(Br,{listRef:ri,activeIndex:Wr,selectedIndex:mr,onMatch:Mr?Un:co})]),bs=Zn.getReferenceProps,wa=Zn.getFloatingProps,Ca=Zn.getItemProps;(0,l.useIsomorphicLayoutEffect)(function(){var Q=On.current;if(Mr&&ni&&Q){var re=Wr!=null?Vr.current[Wr]:mr!=null?Vr.current[mr]:null;if(re&&ya!=null){var ie,C,I=(C=(ie=Vr.current[ya])===null||ie===void 0?void 0:ie.offsetHeight)!==null&&C!==void 0?C:0,$=Q.offsetHeight,te=re.offsetTop,ce=te+I;te<Q.scrollTop?Q.scrollTop-=Q.scrollTop-te+5:ce>$+Q.scrollTop&&(Q.scrollTop+=ce-$-Q.scrollTop+5)}}},[Mr,ni,ya,Wr]);var vs=r.default.useMemo(function(){return{selectedIndex:mr,setSelectedIndex:co,listRef:Vr,setOpen:va,onChange:Re||function(){},activeIndex:Wr,setActiveIndex:Un,getItemProps:Ca,dataRef:Br.dataRef}},[mr,Re,Wr,Ca,Br.dataRef]);r.default.useEffect(function(){Pn(Mr?"open":!Mr&&mr||!Mr&&Ve?"withValue":"close")},[Mr,Ve,mr,He]);var Hr=Gt[(0,T.default)(St.variants,ye,"outlined")],fo=Hr.sizes[(0,T.default)(St.sizes,Ee,"md")],Sa=Hr.error.select,po=Hr.success.select,oi=Hr.colors.select[(0,T.default)(St.colors,_e,"gray")],J=Hr.error.label,n=Hr.success.label,o=Hr.colors.label[(0,T.default)(St.colors,_e,"gray")],i=Hr.states[nr],u=(0,f.default)((0,O.default)(gt.container),(0,O.default)(fo.container),jt==null?void 0:jt.className),c=(0,b.twMerge)((0,f.default)((0,O.default)(gt.select),(0,O.default)(Hr.base.select),(0,O.default)(i.select),(0,O.default)(fo.select),p({},(0,O.default)(oi[nr]),!Le&&!Pe),p({},(0,O.default)(Sa.initial),Le),p({},(0,O.default)(Sa.states[nr]),Le),p({},(0,O.default)(po.initial),Pe),p({},(0,O.default)(po.states[nr]),Pe)),wt),d,h=(0,b.twMerge)((0,f.default)((0,O.default)(gt.label),(0,O.default)(Hr.base.label),(0,O.default)(i.label),(0,O.default)(fo.label.initial),(0,O.default)(fo.label.states[nr]),p({},(0,O.default)(o[nr]),!Le&&!Pe),p({},(0,O.default)(J.initial),Le),p({},(0,O.default)(J.states[nr]),Le),p({},(0,O.default)(n.initial),Pe),p({},(0,O.default)(n.states[nr]),Pe)),(d=qe.className)!==null&&d!==void 0?d:""),x=(0,f.default)((0,O.default)(gt.arrow.initial),p({},(0,O.default)(gt.arrow.active),Mr)),k,E=(0,b.twMerge)((0,f.default)((0,O.default)(gt.menu)),(k=st.className)!==null&&k!==void 0?k:""),N=(0,f.default)("absolute top-2/4 -translate-y-2/4",ye==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),L={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,S.default)(L,ot),G=l.AnimatePresence;r.default.useEffect(function(){Ve&&!Re&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[Ve,Re]);var q=r.default.createElement(s.FloatingFocusManager,{context:Br,modal:!1},r.default.createElement(l.m.ul,v({},wa(U(H({},st),{ref:Kn.setFloating,role:"listbox",className:E,style:{position:xa,top:qn??0,left:Mo??0,overflow:"auto"},onPointerEnter:function(re){var ie=st==null?void 0:st.onPointerEnter;typeof ie=="function"&&(ie(re),$n(!1)),$n(!1)},onPointerMove:function(re){var ie=st==null?void 0:st.onPointerMove;typeof ie=="function"&&(ie(re),$n(!1)),$n(!1)},onKeyDown:function(re){var ie=st==null?void 0:st.onKeyDown;typeof ie=="function"&&(ie(re),$n(!0)),$n(!0)}})),{initial:"unmount",exit:"unmount",animate:Mr?"mount":"unmount",variants:W}),r.default.Children.map(At,function(Q,re){var ie;return r.default.isValidElement(Q)&&r.default.cloneElement(Q,U(H({},Q.props),{index:((ie=Q.props)===null||ie===void 0?void 0:ie.index)||re+1,id:"material-tailwind-select-".concat(re)}))})));return r.default.createElement(F.SelectContextProvider,{value:vs},r.default.createElement("div",v({},jt,{ref:ge,className:u}),r.default.createElement("button",v({type:"button"},bs(U(H({},Fe),{ref:Kn.setReference,className:c,disabled:kt,name:Lt}))),typeof He=="function"?r.default.createElement("span",{className:N},He(At[mr-1],mr-1)):Ve&&!Re?r.default.createElement("span",{className:N},Ve):r.default.createElement("span",v({},(Ye=At[mr-1])===null||Ye===void 0?void 0:Ye.props,{className:N})),r.default.createElement("div",{className:x},Xe??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",v({},qe,{className:h}),Ne),r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(G,null,Mr&&r.default.createElement(r.default.Fragment,null,Qe?r.default.createElement(s.FloatingOverlay,{lockScroll:!0},q):q)))))});Se.propTypes={variant:a.default.oneOf(z.propTypesVariant),color:a.default.oneOf(z.propTypesColor),size:a.default.oneOf(z.propTypesSize),label:z.propTypesLabel,error:z.propTypesError,success:z.propTypesSuccess,arrow:z.propTypesArrow,value:z.propTypesValue,onChange:z.propTypesOnChange,selected:z.propTypesSelected,offset:z.propTypesOffset,dismiss:z.propTypesDismiss,animate:z.propTypesAnimate,lockScroll:z.propTypesLockScroll,labelProps:z.propTypesLabelProps,menuProps:z.propTypesMenuProps,className:z.propTypesClassName,disabled:z.propTypesDisabled,name:z.propTypesName,children:z.propTypesChildren,containerProps:z.propTypesContainerProps},Se.displayName="MaterialTailwind.Select";var be=Object.assign(Se,{Option:D.SelectOption})})(OP);var EP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Switch:function(){return P},default:function(){return y}});var r=z(ee),a=z(it),s=z(ss),l=z(ht),f=ut,b=z(qt),S=z(at),T=nt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.ripple,M=p.className,X=p.disabled,H=p.containerProps,B=p.circleProps,U=p.labelProps,K=p.inputRef,oe=D(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),ne=(0,T.useTheme)(),fe=ne.switch,me=fe.defaultProps,Se=fe.valid,be=fe.styles,ue=be.base,ge=be.colors,ye=r.default.useId();g=g??me.color,_=_??me.ripple,M=M??me.className,X=X??me.disabled,H=H??me.containerProps,U=U??me.labelProps,B=B??me.circleProps;var _e=_!==void 0&&new s.default,Ee=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),X)),Ne=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),H==null?void 0:H.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),M),Pe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.circle),ge[(0,b.default)(Se.colors,g,"gray")].circle,ge[(0,b.default)(Se.colors,g,"gray")].before),B==null?void 0:B.className),Xe=(0,l.default)((0,S.default)(ue.ripple)),Ve=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className);return r.default.createElement("div",{ref:v,className:Ee},r.default.createElement("div",F({},H,{className:Ne}),r.default.createElement("input",F({},oe,{ref:K,type:"checkbox",disabled:X,id:oe.id||ye,className:Le})),r.default.createElement("label",F({},B,{htmlFor:oe.id||ye,className:Pe}),_&&r.default.createElement("div",{className:Xe,onMouseDown:function(Re){var He=H==null?void 0:H.onMouseDown;return _&&_e.create(Re,"dark"),typeof He=="function"&&He(Re)}}))),m&&r.default.createElement("label",F({},U,{htmlFor:oe.id||ye,className:Ve}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject,circleProps:O.propTypesObject},P.displayName="MaterialTailwind.Switch";var y=P})(EP);var MP={},ps={},ti={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesId:function(){return l},propTypesValue:function(){return f},propTypesAnimate:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return T},propTypesOrientation:function(){return O},propTypesIndicator:function(){return j},propTypesChildren:function(){return F}});var r=s(it),a=Yt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.string,f=r.default.oneOfType([r.default.string,r.default.number]).isRequired,b=a.propTypesAnimation,S=r.default.bool,T=r.default.string,O=r.default.oneOf(["horizontal","vertical"]),j=r.default.instanceOf(Object),F=r.default.node.isRequired})(ti);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(H,B){for(var U in B)Object.defineProperty(H,U,{enumerable:!0,get:B[U]})}t(e,{TabsContext:function(){return P},useTabs:function(){return y},TabsContextProvider:function(){return p},setId:function(){return v},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return M},setOrientation:function(){return X}});var r=b(ee),a=ti;function s(H,B){(B==null||B>H.length)&&(B=H.length);for(var U=0,K=new Array(B);U<B;U++)K[U]=H[U];return K}function l(H){if(Array.isArray(H))return H}function f(H,B,U){return B in H?Object.defineProperty(H,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):H[B]=U,H}function b(H){return H&&H.__esModule?H:{default:H}}function S(H,B){var U=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(U!=null){var K=[],oe=!0,ne=!1,fe,me;try{for(U=U.call(H);!(oe=(fe=U.next()).done)&&(K.push(fe.value),!(B&&K.length===B));oe=!0);}catch(Se){ne=!0,me=Se}finally{try{!oe&&U.return!=null&&U.return()}finally{if(ne)throw me}}return K}}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(H){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{},K=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(K=K.concat(Object.getOwnPropertySymbols(U).filter(function(oe){return Object.getOwnPropertyDescriptor(U,oe).enumerable}))),K.forEach(function(oe){f(H,oe,U[oe])})}return H}function j(H,B){var U=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);B&&(K=K.filter(function(oe){return Object.getOwnPropertyDescriptor(H,oe).enumerable})),U.push.apply(U,K)}return U}function F(H,B){return B=B??{},Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(B)):j(Object(B)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(B,U))}),H}function z(H,B){return l(H)||S(H,B)||D(H,B)||T()}function D(H,B){if(H){if(typeof H=="string")return s(H,B);var U=Object.prototype.toString.call(H).slice(8,-1);if(U==="Object"&&H.constructor&&(U=H.constructor.name),U==="Map"||U==="Set")return Array.from(U);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return s(H,B)}}function R(H,B){switch(B.type){case"SET_ID":return F(O({},H),{id:B.value});case"SET_ACTIVE":return F(O({},H),{active:B.value});case"SET_ANIMATION":return F(O({},H),{appliedAnimation:B.value});case"SET_INDICATOR":return F(O({},H),{indicatorProps:B.value});case"SET_IS_INITIAL":return F(O({},H),{isInitial:B.value});case"SET_ORIENTATION":return F(O({},H),{orientation:B.value});default:throw new Error("Unhandled action type: ".concat(B.type))}}var P=r.default.createContext(null);P.displayName="MaterialTailwind.TabsContext";function y(){var H=r.default.useContext(P);if(!H)throw new Error("useTabs() must be used within a Tabs. It happens when you use TabsHeader, TabsBody, Tab or TabPanel outside the Tabs component.");return H}var p=function(H){var B=H.id,U=H.value,K=H.orientation,oe=H.children,ne=r.default.useMemo(function(){return{id:B??"indicator",active:U,orientation:K,isInitial:!0,appliedAnimation:{initial:{},unmount:{},mount:{}},indicatorProps:void 0}},[B,U,K]),fe=z(r.default.useReducer(R,ne),2),me=fe[0],Se=fe[1],be=r.default.useMemo(function(){return{state:me,dispatch:Se}},[me]);return r.default.createElement(P.Provider,{value:be},oe)},v=function(H,B){return H({type:"SET_ID",value:B})},g=function(H,B){return H({type:"SET_ACTIVE",value:B})},m=function(H,B){return H({type:"SET_ANIMATION",value:B})},_=function(H,B){return H({type:"SET_INDICATOR",value:B})},M=function(H,B){return H({type:"SET_IS_INITIAL",value:B})},X=function(H,B){return H({type:"SET_ORIENTATION",value:B})};p.propTypes={id:a.propTypesId,value:a.propTypesValue,orientation:a.propTypesOrientation,children:a.propTypesChildren},p.displayName="MaterialTailwind.TabsContextProvider"})(ps);var RP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Tab:function(){return R},default:function(){return P}});var r=F(ee),a=vr,s=F(ht),l=ut,f=F(at),b=nt,S=ps,T=ti;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.value,g=y.className,m=y.activeClassName,_=y.disabled,M=y.children,X=z(y,["value","className","activeClassName","disabled","children"]),H=(0,b.useTheme)(),B=H.tab,U=B.defaultProps,K=B.styles.base,oe=(0,S.useTabs)(),ne=oe.state,fe=oe.dispatch,me=ne.id,Se=ne.active,be=ne.indicatorProps;g=g??U.className,m=m??U.activeClassName,_=_??U.disabled;var ue,ge=(0,l.twMerge)((0,s.default)((0,f.default)(K.tab.initial),(ue={},O(ue,(0,f.default)(K.tab.disabled),_),O(ue,m,Se===v),ue)),g),ye,_e=(0,l.twMerge)((0,s.default)((0,f.default)(K.indicator)),(ye=be==null?void 0:be.className)!==null&&ye!==void 0?ye:"");return r.default.createElement("li",j({},X,{ref:p,role:"tab",className:ge,onClick:function(Ee){var Ne=X==null?void 0:X.onClick;typeof Ne=="function"&&((0,S.setActive)(fe,v),(0,S.setIsInitial)(fe,!1),Ne(Ee)),(0,S.setIsInitial)(fe,!1),(0,S.setActive)(fe,v)},"data-value":v}),r.default.createElement("div",{className:"z-20 text-inherit"},M),Se===v&&r.default.createElement(a.motion.div,j({},be,{transition:{duration:.5},className:_e,layoutId:me})))});R.propTypes={value:T.propTypesValue,className:T.propTypesClassName,disabled:T.propTypesDisabled,children:T.propTypesChildren},R.displayName="MaterialTailwind.Tab";var P=R})(RP);var NP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{TabsBody:function(){return R},default:function(){return P}});var r=F(ee),a=vr,s=F(Cr),l=F(ht),f=ut,b=F(at),S=nt,T=ps,O=ti;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.animate,g=y.className,m=y.children,_=z(y,["animate","className","children"]),M=(0,S.useTheme)().tabsBody,X=M.defaultProps,H=M.styles.base,B=(0,T.useTabs)().dispatch;g=g??X.className,v=v??X.animate;var U=(0,f.twMerge)((0,l.default)((0,b.default)(H)),g),K=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),oe=r.default.useMemo(function(){return(0,s.default)(K,v)},[v,K]);return(0,a.useIsomorphicLayoutEffect)(function(){(0,T.setAnimation)(B,oe)},[oe,B]),r.default.createElement("div",j({},_,{ref:p,className:U}),m)});R.propTypes={animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.TabsBody";var P=R})(NP);var IP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{TabsHeader:function(){return D},default:function(){return R}});var r=j(ee),a=j(ht),s=ut,l=j(at),f=nt,b=ps,S=ti;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.indicatorProps,v=P.className,g=P.children,m=F(P,["indicatorProps","className","children"]),_=(0,f.useTheme)().tabsHeader,M=_.defaultProps,X=_.styles,H=(0,b.useTabs)(),B=H.state,U=H.dispatch,K=B.orientation;r.default.useEffect(function(){(0,b.setIndicator)(U,p)},[U,p]),v=v??M.className;var oe=(0,s.twMerge)((0,a.default)((0,l.default)(X.base),T({},X[K]&&(0,l.default)(X[K]),K)),v);return r.default.createElement("nav",null,r.default.createElement("ul",O({},m,{ref:y,role:"tablist",className:oe}),g))});D.propTypes={indicatorProps:S.propTypesIndicator,className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.TabsHeader";var R=D})(IP);var LP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{TabPanel:function(){return D},default:function(){return R}});var r=j(ee),a=vr,s=j(ht),l=ut,f=j(at),b=nt,S=ps,T=ti;function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.value,v=P.className,g=P.children,m=F(P,["value","className","children"]),_=(0,b.useTheme)().tabPanel,M=_.defaultProps,X=_.styles.base,H=(0,S.useTabs)().state,B=H.active,U=H.appliedAnimation,K=H.isInitial;v=v??M.className;var oe=(0,l.twMerge)((0,s.default)((0,f.default)(X)),v),ne=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(ne,{exitBeforeEnter:!0},r.default.createElement(a.m.div,O({},m,{ref:y,role:"tabpanel",className:oe,initial:"unmount",exit:"unmount",animate:B===p?"mount":K?"initial":"unmount",variants:U,"data-value":p}),g)))});D.propTypes={value:T.propTypesValue,className:T.propTypesClassName,children:T.propTypesChildren},D.displayName="MaterialTailwind.TabPanel";var R=D})(LP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return S.Tab},TabsBody:function(){return T.TabsBody},TabsHeader:function(){return O.TabsHeader},TabPanel:function(){return j.TabPanel},useTabs:function(){return b.useTabs},default:function(){return v}});var r=R(ee),a=R(ht),s=ut,l=R(at),f=nt,b=ps,S=RP,T=NP,O=IP,j=LP,F=ti;function z(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function D(){return D=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},D.apply(this,arguments)}function R(g){return g&&g.__esModule?g:{default:g}}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,M=g.className,X=g.orientation,H=g.children,B=P(g,["value","className","orientation","children"]),U=(0,f.useTheme)().tabs,K=U.defaultProps,oe=U.styles,ne=r.default.useId();M=M??K.className,X=X??K.orientation;var fe=(0,s.twMerge)((0,a.default)((0,l.default)(oe.base),z({},oe[X]&&(0,l.default)(oe[X]),X)),M);return r.default.createElement(b.TabsContextProvider,{id:ne,value:_,orientation:X},r.default.createElement("div",D({},B,{ref:m,className:fe}),H))});p.propTypes={id:F.propTypesId,value:F.propTypesValue,className:F.propTypesClassName,orientation:F.propTypesOrientation,children:F.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var v=Object.assign(p,{Tab:S.Tab,Body:T.TabsBody,Header:O.TabsHeader,Panel:j.TabPanel})})(MP);var jP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{Textarea:function(){return D},default:function(){return R}});var r=j(ee),a=j(it),s=j(ht),l=j(qt),f=j(at),b=nt,S=Wl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.variant,v=P.color,g=P.size,m=P.label,_=P.error,M=P.success,X=P.resize,H=P.labelProps,B=P.containerProps,U=P.shrink,K=P.className,oe=F(P,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),ne=(0,b.useTheme)().textarea,fe=ne.defaultProps,me=ne.valid,Se=ne.styles,be=Se.base,ue=Se.variants;p=p??fe.variant,g=g??fe.size,v=v??fe.color,m=m??fe.label,H=H??fe.labelProps,B=B??fe.containerProps,U=U??fe.shrink,K=K??fe.className;var ge=ue[(0,l.default)(me.variants,p,"outlined")],ye=(0,f.default)(ge.error.textarea),_e=(0,f.default)(ge.success.textarea),Ee=(0,f.default)(ge.shrink.textarea),Ne=(0,f.default)(ge.colors.textarea[(0,l.default)(me.colors,v,"gray")]),Le=(0,f.default)(ge.error.label),Pe=(0,f.default)(ge.success.label),Xe=(0,f.default)(ge.shrink.label),Ve=(0,f.default)(ge.colors.label[(0,l.default)(me.colors,v,"gray")]),Re=(0,s.default)((0,f.default)(be.container),B==null?void 0:B.className),He=(0,s.default)((0,f.default)(be.textarea),(0,f.default)(ge.base.textarea),(0,f.default)(ge.sizes[(0,l.default)(me.sizes,g,"md")].textarea),T({},Ne,!_&&!M),T({},ye,_),T({},_e,M),T({},Ee,U),X?"":"!resize-none",K),We=(0,s.default)((0,f.default)(be.label),(0,f.default)(ge.base.label),(0,f.default)(ge.sizes[(0,l.default)(me.sizes,g,"md")].label),T({},Ve,!_&&!M),T({},Le,_),T({},Pe,M),T({},Xe,U),H==null?void 0:H.className);return r.default.createElement("div",{ref:y,className:Re},r.default.createElement("textarea",O({},oe,{className:He,placeholder:(oe==null?void 0:oe.placeholder)||" "})),r.default.createElement("label",{className:We},m))});D.propTypes={variant:a.default.oneOf(S.propTypesVariant),size:a.default.oneOf(S.propTypesSize),color:a.default.oneOf(S.propTypesColor),label:S.propTypesLabel,error:S.propTypesError,success:S.propTypesSuccess,resize:S.propTypesResize,labelProps:S.propTypesLabelProps,containerProps:S.propTypesContainerProps,shrink:S.propTypesShrink,className:S.propTypesClassName},D.displayName="MaterialTailwind.Textarea";var R=D})(jP);var DP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(K,oe){for(var ne in oe)Object.defineProperty(K,ne,{enumerable:!0,get:oe[ne]})}t(e,{Tooltip:function(){return B},default:function(){return U}});var r=P(ee),a=P(it),s=dr,l=vr,f=P(ht),b=ut,S=P(Cr),T=P(at),O=nt,j=fs;function F(K,oe){(oe==null||oe>K.length)&&(oe=K.length);for(var ne=0,fe=new Array(oe);ne<oe;ne++)fe[ne]=K[ne];return fe}function z(K){if(Array.isArray(K))return K}function D(K,oe,ne){return oe in K?Object.defineProperty(K,oe,{value:ne,enumerable:!0,configurable:!0,writable:!0}):K[oe]=ne,K}function R(){return R=Object.assign||function(K){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe];for(var fe in ne)Object.prototype.hasOwnProperty.call(ne,fe)&&(K[fe]=ne[fe])}return K},R.apply(this,arguments)}function P(K){return K&&K.__esModule?K:{default:K}}function y(K,oe){var ne=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(ne!=null){var fe=[],me=!0,Se=!1,be,ue;try{for(ne=ne.call(K);!(me=(be=ne.next()).done)&&(fe.push(be.value),!(oe&&fe.length===oe));me=!0);}catch(ge){Se=!0,ue=ge}finally{try{!me&&ne.return!=null&&ne.return()}finally{if(Se)throw ue}}return fe}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(K){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{},fe=Object.keys(ne);typeof Object.getOwnPropertySymbols=="function"&&(fe=fe.concat(Object.getOwnPropertySymbols(ne).filter(function(me){return Object.getOwnPropertyDescriptor(ne,me).enumerable}))),fe.forEach(function(me){D(K,me,ne[me])})}return K}function g(K,oe){var ne=Object.keys(K);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(K);oe&&(fe=fe.filter(function(me){return Object.getOwnPropertyDescriptor(K,me).enumerable})),ne.push.apply(ne,fe)}return ne}function m(K,oe){return oe=oe??{},Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(oe)):g(Object(oe)).forEach(function(ne){Object.defineProperty(K,ne,Object.getOwnPropertyDescriptor(oe,ne))}),K}function _(K,oe){if(K==null)return{};var ne=M(K,oe),fe,me;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(K);for(me=0;me<Se.length;me++)fe=Se[me],!(oe.indexOf(fe)>=0)&&Object.prototype.propertyIsEnumerable.call(K,fe)&&(ne[fe]=K[fe])}return ne}function M(K,oe){if(K==null)return{};var ne={},fe=Object.keys(K),me,Se;for(Se=0;Se<fe.length;Se++)me=fe[Se],!(oe.indexOf(me)>=0)&&(ne[me]=K[me]);return ne}function X(K,oe){return z(K)||y(K,oe)||H(K,oe)||p()}function H(K,oe){if(K){if(typeof K=="string")return F(K,oe);var ne=Object.prototype.toString.call(K).slice(8,-1);if(ne==="Object"&&K.constructor&&(ne=K.constructor.name),ne==="Map"||ne==="Set")return Array.from(ne);if(ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return F(K,oe)}}var B=r.default.forwardRef(function(K,oe){var ne=K.open,fe=K.handler,me=K.content,Se=K.interactive,be=K.placement,ue=K.offset,ge=K.dismiss,ye=K.animate,_e=K.className,Ee=K.children,Ne=_(K,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),Le=(0,O.useTheme)().tooltip,Pe=Le.defaultProps,Xe=Le.styles.base,Ve=X(r.default.useState(!1),2),Re=Ve[0],He=Ve[1];ne=ne??Re,fe=fe??He,Se=Se??Pe.interactive,be=be??Pe.placement,ue=ue??Pe.offset,ge=ge??Pe.dismiss,ye=ye??Pe.animate,_e=_e??Pe.className;var We=(0,b.twMerge)((0,f.default)((0,T.default)(Xe)),_e),Ke={unmount:{opacity:0},mount:{opacity:1}},ot=(0,S.default)(Ke,ye),Qe=(0,s.useFloating)({open:ne,onOpenChange:fe,middleware:[(0,s.offset)(ue),(0,s.flip)(),(0,s.shift)()],placement:be}),qe=Qe.x,st=Qe.y,wt=Qe.reference,kt=Qe.floating,Lt=Qe.strategy,At=Qe.refs,jt=Qe.update,Fe=Qe.context,Ye=(0,s.useInteractions)([(0,s.useClick)(Fe,{enabled:Se}),(0,s.useFocus)(Fe),(0,s.useHover)(Fe),(0,s.useRole)(Fe,{role:"tooltip"}),(0,s.useDismiss)(Fe,ge)]),et=Ye.getReferenceProps,dt=Ye.getFloatingProps;r.default.useEffect(function(){if(At.reference.current&&At.floating.current&&ne)return(0,s.autoUpdate)(At.reference.current,At.floating.current,jt)},[ne,jt,At.reference,At.floating]);var St=(0,s.useMergeRefs)([oe,kt]),Et=(0,s.useMergeRefs)([oe,wt]),gt=l.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof Ee=="string"?r.default.createElement("span",R({},et({ref:Et})),Ee):r.default.cloneElement(Ee,v({},et(m(v({},Ee==null?void 0:Ee.props),{ref:Et})))),r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(s.FloatingPortal,null,r.default.createElement(gt,null,ne&&r.default.createElement(l.m.div,R({},dt(m(v({},Ne),{ref:St,className:We,style:{position:Lt,top:st??"",left:qe??""}})),{initial:"unmount",exit:"unmount",animate:ne?"mount":"unmount",variants:ot}),me)))))});B.propTypes={open:j.propTypesOpen,handler:j.propTypesHandler,content:j.propTypesContent,interactive:j.propTypesInteractive,placement:a.default.oneOf(j.propTypesPlacement),offset:j.propTypesOffset,dismiss:j.propTypesDismiss,animate:j.propTypesAnimate,className:j.propTypesClassName,children:j.propTypesChildren},B.displayName="MaterialTailwind.Tooltip";var U=B})(DP);var zP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return y},default:function(){return p}});var r=j(ee),a=j(it),s=j(ht),l=ut,f=j(qt),b=j(at),S=nt,T=w0;function O(v,g,m){return g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function j(v){return v&&v.__esModule?v:{default:v}}function F(v){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{},_=Object.keys(m);typeof Object.getOwnPropertySymbols=="function"&&(_=_.concat(Object.getOwnPropertySymbols(m).filter(function(M){return Object.getOwnPropertyDescriptor(m,M).enumerable}))),_.forEach(function(M){O(v,M,m[M])})}return v}function z(v,g){var m=Object.keys(v);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(v);g&&(_=_.filter(function(M){return Object.getOwnPropertyDescriptor(v,M).enumerable})),m.push.apply(m,_)}return m}function D(v,g){return g=g??{},Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)):z(Object(g)).forEach(function(m){Object.defineProperty(v,m,Object.getOwnPropertyDescriptor(g,m))}),v}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.color,M=v.textGradient,X=v.as,H=v.className,B=v.children,U=R(v,["variant","color","textGradient","as","className","children"]),K=(0,S.useTheme)().typography,oe=K.defaultProps,ne=K.valid,fe=K.styles,me=fe.variants,Se=fe.colors,be=fe.textGradient;m=m??oe.variant,_=_??oe.color,M=M||oe.textGradient,X=X??void 0,H=H??oe.className;var ue=(0,b.default)(me[(0,f.default)(ne.variants,m,"paragraph")]),ge=Se[(0,f.default)(ne.colors,_,"inherit")],ye=(0,b.default)(be),_e=(0,l.twMerge)((0,s.default)(ue,O({},ge.color,!M),O({},ye,M),O({},ge.gradient,M)),H),Ee;switch(m){case"h1":Ee=r.default.createElement(X||"h1",D(F({},U),{ref:g,className:_e}),B);break;case"h2":Ee=r.default.createElement(X||"h2",D(F({},U),{ref:g,className:_e}),B);break;case"h3":Ee=r.default.createElement(X||"h3",D(F({},U),{ref:g,className:_e}),B);break;case"h4":Ee=r.default.createElement(X||"h4",D(F({},U),{ref:g,className:_e}),B);break;case"h5":Ee=r.default.createElement(X||"h5",D(F({},U),{ref:g,className:_e}),B);break;case"h6":Ee=r.default.createElement(X||"h6",D(F({},U),{ref:g,className:_e}),B);break;case"lead":Ee=r.default.createElement(X||"p",D(F({},U),{ref:g,className:_e}),B);break;case"paragraph":Ee=r.default.createElement(X||"p",D(F({},U),{ref:g,className:_e}),B);break;case"small":Ee=r.default.createElement(X||"p",D(F({},U),{ref:g,className:_e}),B);break;default:Ee=r.default.createElement(X||"p",D(F({},U),{ref:g,className:_e}),B);break}return Ee});y.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),as:T.propTypesAs,textGradient:T.propTypesTextGradient,className:T.propTypesClassName,children:T.propTypesChildren},y.displayName="MaterialTailwind.Typography";var p=y})(zP);var FP={},VP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesClassName:function(){return l},propTypesChildren:function(){return f},propTypesOpen:function(){return b},propTypesAnimate:function(){return S}});var r=s(it),a=Yt;function s(T){return T&&T.__esModule?T:{default:T}}var l=r.default.string,f=r.default.node.isRequired,b=r.default.bool.isRequired,S=a.propTypesAnimation})(VP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Collapse:function(){return R},default:function(){return P}});var r=F(ee),a=vr,s=dr,l=F(Cr),f=F(ht),b=ut,S=F(at),T=nt,O=VP;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.open,g=y.animate,m=y.className,_=y.children,M=z(y,["open","animate","className","children"]),X=r.default.useRef(null),H=(0,T.useTheme)().collapse,B=H.styles,U=B.base;g=g??{},m=m??"";var K=(0,b.twMerge)((0,f.default)((0,S.default)(U)),m),oe={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},ne=(0,l.default)(oe,g),fe=a.AnimatePresence,me=(0,s.useMergeRefs)([p,X]);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(fe,null,r.default.createElement(a.m.div,j({},M,{ref:me,className:K,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:ne}),_)))});R.displayName="MaterialTailwind.Collapse",R.propTypes={open:O.propTypesOpen,animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren};var P=R})(FP);var WP={},Ql={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesClassName:function(){return s},propTypesDisabled:function(){return l},propTypesSelected:function(){return f},propTypesRipple:function(){return b},propTypesChildren:function(){return S}});var r=a(it);function a(T){return T&&T.__esModule?T:{default:T}}var s=r.default.string,l=r.default.bool,f=r.default.bool,b=r.default.bool,S=r.default.node.isRequired})(Ql);var BP={},sb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{ListItemPrefix:function(){return F},default:function(){return z}});var r=T(ee),a=nt,s=T(ht),l=ut,f=T(at),b=Ql;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,a.useTheme)().list,g=v.styles.base,m=(0,l.twMerge)((0,s.default)((0,f.default)(g.itemPrefix)),P);return r.default.createElement("div",S({},p,{ref:R,className:m}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.ListItemPrefix";var z=F})(sb);var lb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{ListItemSuffix:function(){return F},default:function(){return z}});var r=T(ee),a=nt,s=T(ht),l=ut,f=T(at),b=Ql;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,a.useTheme)().list,g=v.styles.base,m=(0,l.twMerge)((0,s.default)((0,f.default)(g.itemSuffix)),P);return r.default.createElement("div",S({},p,{ref:R,className:m}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.ListItemSuffix";var z=F})(lb);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{ListItem:function(){return P},ListItemPrefix:function(){return T.ListItemPrefix},ListItemSuffix:function(){return O.ListItemSuffix},default:function(){return y}});var r=z(ee),a=nt,s=z(ss),l=z(ht),f=ut,b=z(at),S=Ql,T=sb,O=lb;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.className,m=p.disabled,_=p.selected,M=p.ripple,X=p.children,H=D(p,["className","disabled","selected","ripple","children"]),B=(0,a.useTheme)().list,U=B.defaultProps,K=B.styles.base;M=M??U.ripple;var oe=M!==void 0&&new s.default,ne,fe=(0,f.twMerge)((0,l.default)((0,b.default)(K.item.initial),(ne={},j(ne,(0,b.default)(K.item.disabled),m),j(ne,(0,b.default)(K.item.selected),_&&!m),ne)),g);return r.default.createElement("div",F({},H,{ref:v,role:"button",tabIndex:0,className:fe,onMouseDown:function(me){var Se=H==null?void 0:H.onMouseDown;return M&&oe.create(me,"dark"),typeof Se=="function"&&Se(me)}}),X)});P.propTypes={className:S.propTypesClassName,selected:S.propTypesSelected,disabled:S.propTypesDisabled,ripple:S.propTypesRipple,children:S.propTypesChildren},P.displayName="MaterialTailwind.ListItem";var y=Object.assign(P,{Prefix:T.ListItemPrefix,Suffix:O.ListItemSuffix})})(BP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{List:function(){return R},ListItem:function(){return S.ListItem},ListItemPrefix:function(){return T.ListItemPrefix},ListItemSuffix:function(){return O.ListItemSuffix},default:function(){return P}});var r=F(ee),a=nt,s=F(ht),l=ut,f=F(at),b=Ql,S=BP,T=sb,O=lb;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.className,g=y.children,m=z(y,["className","children"]),_=(0,a.useTheme)().list,M=_.defaultProps,X=_.styles.base;v=v??M.className;var H=(0,l.twMerge)((0,s.default)((0,f.default)(X.list)),v);return r.default.createElement("nav",j({},m,{ref:p,className:H}),g)});R.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},R.displayName="MaterialTailwind.List";var P=Object.assign(R,{Item:S.ListItem,ItemPrefix:T.ListItemPrefix,ItemSuffix:O.ListItemSuffix})})(WP);var HP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{ButtonGroup:function(){return R},default:function(){return P}});var r=F(ee),a=F(it),s=F(ht),l=ut,f=F(qt),b=F(at),S=nt,T=Ka;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.color,_=y.fullWidth,M=y.ripple,X=y.className,H=y.children,B=z(y,["variant","size","color","fullWidth","ripple","className","children"]),U=(0,S.useTheme)().buttonGroup,K=U.defaultProps,oe=U.styles,ne=U.valid,fe=oe.base,me=oe.dividerColor;v=v??K.variant,g=g??K.size,m=m??K.color,M=M??K.ripple,_=_??K.fullWidth,X=X??K.className;var Se,be=(0,l.twMerge)((0,s.default)((0,b.default)(fe.initial),(Se={},O(Se,(0,b.default)(fe.fullWidth),_),O(Se,"divide-x",v!=="outlined"),O(Se,(0,b.default)(me[(0,f.default)(ne.colors,m,"gray")]),v!=="outlined"),Se)),X);return r.default.createElement("div",j({},B,{ref:p,className:be}),r.default.Children.map(H,function(ue,ge){var ye;return r.default.isValidElement(ue)&&r.default.cloneElement(ue,{variant:v,size:g,color:m,ripple:M,fullWidth:_,className:(0,l.twMerge)((0,s.default)({"rounded-r-none":ge!==r.default.Children.count(H)-1,"border-r-0":ge!==r.default.Children.count(H)-1,"rounded-l-none":ge!==0}),(ye=ue.props)===null||ye===void 0?void 0:ye.className)})}))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),size:a.default.oneOf(T.propTypesSize),color:a.default.oneOf(T.propTypesColor),fullWidth:T.propTypesFullWidth,ripple:T.propTypesRipple,className:T.propTypesClassName,children:T.propTypesChildren},R.displayName="MaterialTailwind.ButtonGroup";var P=R})(HP);var XP={},YP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{propTypesClassName:function(){return s},propTypesPrevArrow:function(){return l},propTypesNextArrow:function(){return f},propTypesNavigation:function(){return b},propTypesAutoplay:function(){return S},propTypesAutoplayDelay:function(){return T},propTypesTransition:function(){return O},propTypesLoop:function(){return j},propTypesChildren:function(){return F},propTypesSlideRef:function(){return z}});var r=a(it);function a(D){return D&&D.__esModule?D:{default:D}}var s=r.default.string,l=r.default.func,f=r.default.func,b=r.default.func,S=r.default.bool,T=r.default.number,O=r.default.object,j=r.default.bool,F=r.default.node.isRequired,z=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(YP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,M){for(var X in M)Object.defineProperty(_,X,{enumerable:!0,get:M[X]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=z(ee),a=vr,s=dr,l=z(ht),f=ut,b=z(at),S=nt,T=YP;function O(_,M){(M==null||M>_.length)&&(M=_.length);for(var X=0,H=new Array(M);X<M;X++)H[X]=_[X];return H}function j(_){if(Array.isArray(_))return _}function F(){return F=Object.assign||function(_){for(var M=1;M<arguments.length;M++){var X=arguments[M];for(var H in X)Object.prototype.hasOwnProperty.call(X,H)&&(_[H]=X[H])}return _},F.apply(this,arguments)}function z(_){return _&&_.__esModule?_:{default:_}}function D(_,M){var X=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(X!=null){var H=[],B=!0,U=!1,K,oe;try{for(X=X.call(_);!(B=(K=X.next()).done)&&(H.push(K.value),!(M&&H.length===M));B=!0);}catch(ne){U=!0,oe=ne}finally{try{!B&&X.return!=null&&X.return()}finally{if(U)throw oe}}return H}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(_,M){if(_==null)return{};var X=y(_,M),H,B;if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(_);for(B=0;B<U.length;B++)H=U[B],!(M.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(_,H)&&(X[H]=_[H])}return X}function y(_,M){if(_==null)return{};var X={},H=Object.keys(_),B,U;for(U=0;U<H.length;U++)B=H[U],!(M.indexOf(B)>=0)&&(X[B]=_[B]);return X}function p(_,M){return j(_)||D(_,M)||v(_,M)||R()}function v(_,M){if(_){if(typeof _=="string")return O(_,M);var X=Object.prototype.toString.call(_).slice(8,-1);if(X==="Object"&&_.constructor&&(X=_.constructor.name),X==="Map"||X==="Set")return Array.from(X);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return O(_,M)}}var g=r.default.forwardRef(function(_,M){var X=_.children,H=_.prevArrow,B=_.nextArrow,U=_.navigation,K=_.autoplay,oe=_.autoplayDelay,ne=_.transition,fe=_.loop,me=_.className,Se=_.slideRef,be=P(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),ue=(0,S.useTheme)().carousel,ge=ue.defaultProps,ye=ue.styles.base,_e=(0,a.useMotionValue)(0),Ee=r.default.useRef(null),Ne=p(r.default.useState(0),2),Le=Ne[0],Pe=Ne[1],Xe=r.default.Children.toArray(X);me=me??ge.className,H=H??ge.prevArrow,B=B??ge.nextArrow,U=U??ge.navigation,K=K??ge.autoplay,oe=oe??ge.autoplayDelay,ne=ne??ge.transition,fe=fe??ge.loop;var Ve=(0,f.twMerge)((0,l.default)((0,b.default)(ye.carousel)),me),Re=(0,f.twMerge)((0,l.default)((0,b.default)(ye.slide))),He=r.default.useCallback(function(){var Qe;return-Le*(((Qe=Ee.current)===null||Qe===void 0?void 0:Qe.clientWidth)||0)},[Le]),We=r.default.useCallback(function(){var Qe=fe?0:Le;Pe(Le+1===Xe.length?Qe:Le+1)},[Le,fe,Xe.length]),Ke=function(){var Qe=fe?Xe.length-1:0;Pe(Le-1<0?Qe:Le-1)};r.default.useEffect(function(){var Qe=(0,a.animate)(_e,He(),ne);return Qe.stop},[He,Le,_e,ne]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,a.animate)(_e,He(),ne)})},[He,ne,_e]),r.default.useEffect(function(){if(K){var Qe=setInterval(function(){return We()},oe);return function(){return clearInterval(Qe)}}},[K,We,oe]);var ot=(0,s.useMergeRefs)([Ee,M]);return r.default.createElement("div",F({},be,{ref:ot,className:Ve}),Xe.map(function(Qe,qe){return r.default.createElement(a.LazyMotion,{key:qe,features:a.domAnimation},r.default.createElement(a.m.div,{ref:Se,className:Re,style:{x:_e,left:"".concat(qe*100,"%"),right:"".concat(qe*100,"%")}},Qe))}),H&&H({loop:fe,handlePrev:Ke,activeIndex:Le,firstIndex:Le===0}),B&&B({loop:fe,handleNext:We,activeIndex:Le,lastIndex:Le===Xe.length-1}),U&&U({setActiveIndex:Pe,activeIndex:Le,length:Xe.length}))});g.propTypes={className:T.propTypesClassName,children:T.propTypesChildren,nextArrow:T.propTypesNextArrow,prevArrow:T.propTypesPrevArrow,navigation:T.propTypesNavigation,autoplay:T.propTypesAutoplay,autoplayDelay:T.propTypesAutoplayDelay,transition:T.propTypesTransition,loop:T.propTypesLoop,slideRef:T.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(XP);var GP={},UP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesOpen:function(){return l},propTypesSize:function(){return f},propTypesOverlay:function(){return b},propTypesChildren:function(){return S},propTypesPlacement:function(){return T},propTypesOverlayProps:function(){return O},propTypesClassName:function(){return j},propTypesOnClose:function(){return F},propTypesDismiss:function(){return z},propTypesTransition:function(){return D},propTypesOverlayRef:function(){return R}});var r=s(it),a=Yt;function s(P){return P&&P.__esModule?P:{default:P}}var l=r.default.bool.isRequired,f=r.default.number,b=r.default.bool,S=r.default.node.isRequired,T=["top","right","bottom","left"],O=r.default.object,j=r.default.string,F=r.default.func,z=a.propTypesDismissType,D=r.default.object,R=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(UP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return v}});var r=D(ee),a=D(it),s=vr,l=dr,f=D(Cr),b=D(ht),S=ut,T=D(at),O=nt,j=UP;function F(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function z(){return z=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},z.apply(this,arguments)}function D(g){return g&&g.__esModule?g:{default:g}}function R(g){for(var m=1;m<arguments.length;m++){var _=arguments[m]!=null?arguments[m]:{},M=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(M=M.concat(Object.getOwnPropertySymbols(_).filter(function(X){return Object.getOwnPropertyDescriptor(_,X).enumerable}))),M.forEach(function(X){F(g,X,_[X])})}return g}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,M=g.size,X=g.overlay,H=g.children,B=g.placement,U=g.overlayProps,K=g.className,oe=g.onClose,ne=g.dismiss,fe=g.transition,me=g.overlayRef,Se=P(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),be=(0,O.useTheme)().drawer,ue=be.defaultProps,ge=be.styles.base,ye=(0,s.useAnimation)();M=M??ue.size,X=X??ue.overlay,B=B??ue.placement,K=K??ue.className,U=U??ue.overlayProps,oe=oe??ue.onClose;var _e;ne=(_e=(0,f.default)(ue.dismiss,ne||{}))!==null&&_e!==void 0?_e:ue.dismiss,fe=fe??ue.transition;var Ee=(0,S.twMerge)((0,b.default)((0,T.default)(ge.drawer),{"top-0 right-0":B==="right","bottom-0 left-0":B==="bottom","top-0 left-0":B==="top"||B==="left"}),K),Ne=(0,S.twMerge)((0,b.default)((0,T.default)(ge.overlay)),U==null?void 0:U.className),Le=(0,l.useFloating)({open:_,onOpenChange:oe}).context,Pe=(0,l.useInteractions)([(0,l.useDismiss)(Le,ne)]).getFloatingProps;r.default.useEffect(function(){ye.start(_?"open":"close")},[_,ye,B]);var Xe={open:{x:0,y:0},close:{x:B==="left"?-M:B==="right"?M:0,y:B==="top"?-M:B==="bottom"?M:0}},Ve={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(s.AnimatePresence,null,X&&_&&r.default.createElement(s.m.div,{ref:me,className:Ne,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:Ve,transition:{duration:.3}})),r.default.createElement(s.m.div,z({},Pe(R({ref:m},Se)),{className:Ee,style:{maxWidth:B==="left"||B==="right"?M:"100%",maxHeight:B==="top"||B==="bottom"?M:"100%",height:B==="left"||B==="right"?"100vh":"100%"},initial:"close",animate:ye,variants:Xe,transition:fe}),H)))});p.propTypes={open:j.propTypesOpen,size:j.propTypesSize,overlay:j.propTypesOverlay,children:j.propTypesChildren,placement:a.default.oneOf(j.propTypesPlacement),overlayProps:j.propTypesOverlayProps,className:j.propTypesClassName,onClose:j.propTypesOnClose,dismiss:j.propTypesDismiss,transition:j.propTypesTransition,overlayRef:j.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var v=p})(GP);var $P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Badge:function(){return P},default:function(){return y}});var r=z(ee),a=z(it),s=z(Cr),l=z(ht),f=ut,b=z(qt),S=z(at),T=nt,O=C0;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.invisible,_=p.withBorder,M=p.overlap,X=p.placement,H=p.className,B=p.content,U=p.children,K=p.containerProps,oe=p.containerRef,ne=D(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),fe=(0,T.useTheme)().badge,me=fe.valid,Se=fe.defaultProps,be=fe.styles,ue=be.base,ge=be.placements,ye=be.colors;g=g??Se.color,m=m??Se.invisible,_=_??Se.withBorder,M=M??Se.overlap,X=X??Se.placement;var _e;H=(_e=(0,l.default)(H,Se.className))!==null&&_e!==void 0?_e:Se.className;var Ee;K=(Ee=(0,s.default)(K,Se.containerProps||{}))!==null&&Ee!==void 0?Ee:Se.containerProps;var Ne=(0,S.default)(ue.badge.initial),Le=(0,S.default)(ue.badge.withBorder),Pe=(0,S.default)(ue.badge.withContent),Xe=(0,S.default)(ye[(0,b.default)(me.colors,g,"red")]),Ve=(0,S.default)(ge[(0,b.default)(me.placements,X,"top-end")][(0,b.default)(me.overlaps,M,"square")]),Re,He=(0,f.twMerge)((0,l.default)(Ne,Ve,Xe,(Re={},j(Re,Le,_),j(Re,Pe,B),Re)),H),We=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container),K==null?void 0:K.className));return r.default.createElement("div",F({ref:oe},K,{className:We}),U,!m&&r.default.createElement("span",F({},ne,{ref:v,className:He}),B))});P.propTypes={color:a.default.oneOf(O.propTypesColor),invisible:O.propTypesInvisible,withBorder:O.propTypesWithBorder,overlap:a.default.oneOf(O.propTypesOverlap),className:O.propTypesClassName,content:O.propTypesContent,children:O.propTypesChildren,placement:a.default.oneOf(O.propTypesPlacement),containerProps:O.propTypesContainerProps,containerRef:O.propTypesContainerRef},P.displayName="MaterialTailwind.Badge";var y=P})($P);var qP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(B,U){for(var K in U)Object.defineProperty(B,K,{enumerable:!0,get:U[K]})}t(e,{Rating:function(){return X},default:function(){return H}});var r=D(ee),a=D(it),s=D(ht),l=ut,f=D(qt),b=D(at),S=nt,T=S0;function O(B,U){(U==null||U>B.length)&&(U=B.length);for(var K=0,oe=new Array(U);K<U;K++)oe[K]=B[K];return oe}function j(B){if(Array.isArray(B))return B}function F(B){if(Array.isArray(B))return O(B)}function z(){return z=Object.assign||function(B){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var oe in K)Object.prototype.hasOwnProperty.call(K,oe)&&(B[oe]=K[oe])}return B},z.apply(this,arguments)}function D(B){return B&&B.__esModule?B:{default:B}}function R(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}function P(B,U){var K=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(K!=null){var oe=[],ne=!0,fe=!1,me,Se;try{for(K=K.call(B);!(ne=(me=K.next()).done)&&(oe.push(me.value),!(U&&oe.length===U));ne=!0);}catch(be){fe=!0,Se=be}finally{try{!ne&&K.return!=null&&K.return()}finally{if(fe)throw Se}}return oe}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(B,U){if(B==null)return{};var K=g(B,U),oe,ne;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(B);for(ne=0;ne<fe.length;ne++)oe=fe[ne],!(U.indexOf(oe)>=0)&&Object.prototype.propertyIsEnumerable.call(B,oe)&&(K[oe]=B[oe])}return K}function g(B,U){if(B==null)return{};var K={},oe=Object.keys(B),ne,fe;for(fe=0;fe<oe.length;fe++)ne=oe[fe],!(U.indexOf(ne)>=0)&&(K[ne]=B[ne]);return K}function m(B,U){return j(B)||P(B,U)||M(B,U)||y()}function _(B){return F(B)||R(B)||M(B)||p()}function M(B,U){if(B){if(typeof B=="string")return O(B,U);var K=Object.prototype.toString.call(B).slice(8,-1);if(K==="Object"&&B.constructor&&(K=B.constructor.name),K==="Map"||K==="Set")return Array.from(K);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return O(B,U)}}var X=r.default.forwardRef(function(B,U){var K=B.count,oe=B.value,ne=B.ratedIcon,fe=B.unratedIcon,me=B.ratedColor,Se=B.unratedColor,be=B.className,ue=B.onChange,ge=B.readonly,ye=v(B,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),_e,Ee,Ne=(0,S.useTheme)().rating,Le=Ne.valid,Pe=Ne.defaultProps,Xe=Ne.styles,Ve=Xe.base,Re=Xe.colors;K=K??Pe.count,oe=oe??Pe.value,ne=ne??Pe.ratedIcon,ne=ne??Pe.ratedIcon,fe=fe??Pe.unratedIcon,me=me??Pe.ratedColor,Se=Se??Pe.unratedColor,be=be??Pe.className,ue=ue??Pe.onChange,ge=ge??Pe.readonly;var He=m(r.default.useState(function(){return _(Array(oe).fill("rated")).concat(_(Array(K-oe).fill("un_rated")))}),2),We=He[0],Ke=He[1],ot=m(r.default.useState(function(){return _(Array(K).fill("un_rated"))}),2),Qe=ot[0],qe=ot[1],st=m(r.default.useState(!1),2),wt=st[0],kt=st[1],Lt=(0,b.default)(Re[(0,f.default)(Le.colors,me,"yellow")]),At=(0,b.default)(Re[(0,f.default)(Le.colors,Se,"blue-gray")]),jt=(0,l.twMerge)((0,s.default)((0,b.default)(Ve.rating),be)),Fe=(0,b.default)(Ve.icon),Ye=ne,et=fe,dt=r.default.isValidElement(ne)&&r.default.cloneElement(Ye,{className:(0,l.twMerge)((0,s.default)(Fe,Lt,Ye==null||(_e=Ye.props)===null||_e===void 0?void 0:_e.className))}),St=r.default.isValidElement(ne)&&r.default.cloneElement(et,{className:(0,l.twMerge)((0,s.default)(Fe,At,et==null||(Ee=et.props)===null||Ee===void 0?void 0:Ee.className))}),Et=!r.default.isValidElement(ne)&&r.default.createElement(ne,{className:(0,l.twMerge)((0,s.default)(Fe,Lt))}),gt=!r.default.isValidElement(ne)&&r.default.createElement(fe,{className:(0,l.twMerge)((0,s.default)(Fe,At))}),Gt=function(Sr){return Sr.map(function(nr,Pn){return r.default.createElement("span",{key:Pn,onClick:function(){if(!ge){var Fr=We.map(function(Vr,Kt){return Kt<=Pn?"rated":"un_rated"});Ke(Fr),ue&&typeof ue=="function"&&ue(Fr.filter(function(Vr){return Vr==="rated"}).length)}},onMouseEnter:function(){if(!ge){var Fr=Qe.map(function(Vr,Kt){return Kt<=Pn?"rated":"un_rated"});kt(!0),qe(Fr)}},onMouseLeave:function(){return!ge&&kt(!1)}},r.default.isValidElement(nr==="rated"?ne:fe)?nr==="rated"?dt:St:nr==="rated"?Et:gt)})};return r.default.createElement("div",z({},ye,{ref:U,className:jt}),Gt(wt?Qe:We))});X.propTypes={count:T.propTypesCount,value:T.propTypesValue,ratedIcon:T.propTypesRatedIcon,unratedIcon:T.propTypesUnratedIcon,ratedColor:a.default.oneOf(T.propTypesColor),unratedColor:a.default.oneOf(T.propTypesColor),className:T.propTypesClassName,onChange:T.propTypesOnChange,readonly:T.propTypesReadonly},X.displayName="MaterialTailwind.Rating";var H=X})(qP);var KP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=D(ee),a=D(it),s=D(Cr),l=D(ht),f=ut,b=D(qt),S=D(at),T=nt,O=k0;function j(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function F(M){if(Array.isArray(M))return M}function z(){return z=Object.assign||function(M){for(var X=1;X<arguments.length;X++){var H=arguments[X];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(M[B]=H[B])}return M},z.apply(this,arguments)}function D(M){return M&&M.__esModule?M:{default:M}}function R(M,X){var H=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(H!=null){var B=[],U=!0,K=!1,oe,ne;try{for(H=H.call(M);!(U=(oe=H.next()).done)&&(B.push(oe.value),!(X&&B.length===X));U=!0);}catch(fe){K=!0,ne=fe}finally{try{!U&&H.return!=null&&H.return()}finally{if(K)throw ne}}return B}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(M,X){if(M==null)return{};var H=p(M,X),B,U;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(M);for(U=0;U<K.length;U++)B=K[U],!(X.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(M,B)&&(H[B]=M[B])}return H}function p(M,X){if(M==null)return{};var H={},B=Object.keys(M),U,K;for(K=0;K<B.length;K++)U=B[K],!(X.indexOf(U)>=0)&&(H[U]=M[U]);return H}function v(M,X){return F(M)||R(M,X)||g(M,X)||P()}function g(M,X){if(M){if(typeof M=="string")return j(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(M,X)}}var m=r.default.forwardRef(function(M,X){var H=M.color,B=M.size,U=M.className,K=M.trackClassName,oe=M.thumbClassName,ne=M.barClassName,fe=M.value,me=M.defaultValue,Se=M.onChange,be=M.min,ue=M.max,ge=M.step,ye=M.inputRef,_e=M.inputProps,Ee=y(M,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),Ne=(0,T.useTheme)().slider,Le=Ne.valid,Pe=Ne.defaultProps,Xe=Ne.styles,Ve=Xe.base,Re=Xe.sizes,He=Xe.colors,We=v(r.default.useState(me||0),2),Ke=We[0],ot=We[1];r.default.useMemo(function(){me&&ot(me)},[me]),H=H??Pe.color,B=B??Pe.size,be=be??Pe.min,ue=ue??Pe.max,ge=ge??Pe.step;var Qe;U=(Qe=(0,l.default)(Pe.className,U))!==null&&Qe!==void 0?Qe:Pe.className;var qe;oe=(qe=(0,l.default)(Pe.thumbClassName,oe))!==null&&qe!==void 0?qe:Pe.thumbClassName;var st;K=(st=(0,l.default)(Pe.trackClassName,K))!==null&&st!==void 0?st:Pe.trackClassName;var wt;ne=(wt=(0,l.default)(Pe.barClassName,ne))!==null&&wt!==void 0?wt:Pe.barClassName;var kt;_e=(kt=(0,s.default)(_e,(Pe==null?void 0:Pe.inputProps)||{}))!==null&&kt!==void 0?kt:Pe.inputProps;var Lt=(0,f.twMerge)((0,l.default)((0,S.default)(Ve.container),(0,S.default)(He[(0,b.default)(Le.colors,H,"gray")]),(0,S.default)(Re[(0,b.default)(Le.sizes,B,"md")].container),U)),At=(0,f.twMerge)((0,l.default)((0,S.default)(Ve.bar),ne)),jt=(0,l.default)((0,S.default)(Ve.track),(0,S.default)(Re[(0,b.default)(Le.sizes,B,"md")].track)),Fe=(0,l.default)((0,S.default)(Ve.thumb),(0,S.default)(Re[(0,b.default)(Le.sizes,B,"md")].thumb)),Ye=(0,l.default)((0,S.default)(Ve.slider),(0,f.twMerge)(jt,K),(0,f.twMerge)(Fe,oe));return r.default.createElement("div",z({},Ee,{ref:X,className:Lt}),r.default.createElement("label",{className:At,style:{width:"".concat(fe||Ke,"%")}}),r.default.createElement("input",z({ref:ye,type:"range",max:ue,min:be,step:ge,className:Ye},fe?{value:fe}:null,{defaultValue:me,onChange:function(et){return Se?Se(et):ot(Number(et.target.value))}})))});m.propTypes={color:a.default.oneOf(O.propTypesColor),size:a.default.oneOf(O.propTypesSize),className:O.propTypesClassName,trackClassName:O.propTypesTrackClassName,thumbClassName:O.propTypesThumbClassName,barClassName:O.propTypesBarClassName,defaultValue:O.propTypesDefaultValue,value:O.propTypesValue,onChange:O.propTypesOnChange,min:O.propTypesMin,max:O.propTypesMax,step:O.propTypesStep,inputRef:O.propTypesInputRef,inputProps:O.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(KP);var ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Spinner:function(){return P},default:function(){return y}});var r=j(it),a=z(ee),s=j(ht),l=ut,f=j(qt),b=j(at),S=nt,T=T0;function O(){return O=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},O.apply(this,arguments)}function j(p){return p&&p.__esModule?p:{default:p}}function F(p){if(typeof WeakMap!="function")return null;var v=new WeakMap,g=new WeakMap;return(F=function(m){return m?g:v})(p)}function z(p,v){if(!v&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var g=F(v);if(g&&g.has(p))return g.get(p);var m={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in p)if(M!=="default"&&Object.prototype.hasOwnProperty.call(p,M)){var X=_?Object.getOwnPropertyDescriptor(p,M):null;X&&(X.get||X.set)?Object.defineProperty(m,M,X):m[M]=p[M]}return m.default=p,g&&g.set(p,m),m}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=(0,a.forwardRef)(function(p,v){var g=p.color,m=p.className,_=D(p,["color","className"]),M=(0,S.useTheme)().spinner,X=M.defaultProps,H=M.valid,B=M.styles,U=B.base,K=B.colors;g=g??X.color;var oe;m=(oe=(0,s.default)(X.className,m))!==null&&oe!==void 0?oe:X.className;var ne=(0,b.default)(K[(0,f.default)(H.colors,g,"gray")]),fe=(0,l.twMerge)((0,s.default)((0,b.default)(U)),m),me,Se;return a.default.createElement("svg",O({},_,{ref:v,className:fe,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(me=_==null?void 0:_.width)!==null&&me!==void 0?me:24,height:(Se=_==null?void 0:_.height)!==null&&Se!==void 0?Se:24}),a.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),a.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:ne}))});P.propTypes={color:r.default.oneOf(T.propTypesColor),className:T.propTypesClassName},P.displayName="MaterialTailwind.Spinner";var y=P})(ZP);var QP={},Jl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return v},default:function(){return g}});var r=O(ee),a=ut,s=O(at),l=nt,f=Eo;function b(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function S(m){if(Array.isArray(m))return m}function T(){return T=Object.assign||function(m){for(var _=1;_<arguments.length;_++){var M=arguments[_];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(m[X]=M[X])}return m},T.apply(this,arguments)}function O(m){return m&&m.__esModule?m:{default:m}}function j(m,_){var M=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(M!=null){var X=[],H=!0,B=!1,U,K;try{for(M=M.call(m);!(H=(U=M.next()).done)&&(X.push(U.value),!(_&&X.length===_));H=!0);}catch(oe){B=!0,K=oe}finally{try{!H&&M.return!=null&&M.return()}finally{if(B)throw K}}return X}}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(m,_){if(m==null)return{};var M=D(m,_),X,H;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(m);for(H=0;H<B.length;H++)X=B[H],!(_.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(m,X)&&(M[X]=m[X])}return M}function D(m,_){if(m==null)return{};var M={},X=Object.keys(m),H,B;for(B=0;B<X.length;B++)H=X[B],!(_.indexOf(H)>=0)&&(M[H]=m[H]);return M}function R(m,_){return S(m)||j(m,_)||P(m,_)||F()}function P(m,_){if(m){if(typeof m=="string")return b(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return b(m,_)}}var y=r.default.createContext(0);y.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(y);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var v=r.default.forwardRef(function(m,_){var M=m.className,X=m.children,H=z(m,["className","children"]),B=(0,l.useTheme)().timelineItem,U=B.styles,K=U.base,oe=R(r.default.useState(0),2),ne=oe[0],fe=oe[1],me=r.default.useMemo(function(){return[ne,fe]},[ne,fe]),Se=(0,a.twMerge)((0,s.default)(K),M);return r.default.createElement(y.Provider,{value:me},r.default.createElement("li",T({ref:_},H,{className:Se}),X))});v.propTypes={className:f.propTypeClassName,children:f.propTypeChildren.isRequired},v.displayName="MaterialTailwind.TimelineItem";var g=v})(Jl);var JP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=D(ee),a=D(it),s=dr,l=ut,f=D(qt),b=D(at),S=nt,T=Jl,O=Eo;function j(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function F(M){if(Array.isArray(M))return M}function z(){return z=Object.assign||function(M){for(var X=1;X<arguments.length;X++){var H=arguments[X];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(M[B]=H[B])}return M},z.apply(this,arguments)}function D(M){return M&&M.__esModule?M:{default:M}}function R(M,X){var H=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(H!=null){var B=[],U=!0,K=!1,oe,ne;try{for(H=H.call(M);!(U=(oe=H.next()).done)&&(B.push(oe.value),!(X&&B.length===X));U=!0);}catch(fe){K=!0,ne=fe}finally{try{!U&&H.return!=null&&H.return()}finally{if(K)throw ne}}return B}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(M,X){if(M==null)return{};var H=p(M,X),B,U;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(M);for(U=0;U<K.length;U++)B=K[U],!(X.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(M,B)&&(H[B]=M[B])}return H}function p(M,X){if(M==null)return{};var H={},B=Object.keys(M),U,K;for(K=0;K<B.length;K++)U=B[K],!(X.indexOf(U)>=0)&&(H[U]=M[U]);return H}function v(M,X){return F(M)||R(M,X)||g(M,X)||P()}function g(M,X){if(M){if(typeof M=="string")return j(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(M,X)}}var m=r.default.forwardRef(function(M,X){var H=M.color,B=M.variant,U=M.className,K=M.children,oe=y(M,["color","variant","className","children"]),ne=(0,S.useTheme)().timelineIcon,fe=ne.styles,me=ne.valid,Se=fe.base,be=fe.variants,ue=v((0,T.useTimelineItem)(),2),ge=ue[1],ye=r.default.useRef(null),_e=(0,s.useMergeRefs)([X,ye]);r.default.useEffect(function(){var Le=ye.current;if(Le){var Pe=Le.getBoundingClientRect().width;return ge(Pe),function(){ge(0)}}},[ge,U,K]);var Ee=(0,b.default)(be[(0,f.default)(me.variants,B,"filled")][(0,f.default)(me.colors,H,"gray")]),Ne=(0,l.twMerge)((0,b.default)(Se),Ee,U);return r.default.createElement("span",z({ref:_e},oe,{className:Ne}),K)});m.propTypes={children:O.propTypeChildren,className:O.propTypeClassName,color:a.default.oneOf(O.propTypeColor),variant:a.default.oneOf(O.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(JP);var e_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return v}});var r=j(ee),a=ut,s=j(at),l=nt,f=Jl,b=Eo;function S(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function T(g){if(Array.isArray(g))return g}function O(){return O=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},O.apply(this,arguments)}function j(g){return g&&g.__esModule?g:{default:g}}function F(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(g,m){if(g==null)return{};var _=R(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function R(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}function P(g,m){return T(g)||F(g,m)||y(g,m)||z()}function y(g,m){if(g){if(typeof g=="string")return S(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return S(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,M=g.children,X=D(g,["className","children"]),H=(0,l.useTheme)().timelineBody,B=H.styles,U=B.base,K=P((0,f.useTimelineItem)(),1),oe=K[0],ne=(0,a.twMerge)((0,s.default)(U),_);return r.default.createElement("div",O({},X,{ref:m,className:ne}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(oe,"px")}}),r.default.createElement("div",null,M))});p.propTypes={children:b.propTypeChildren,className:b.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var v=p})(e_);var t_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{TimelineHeader:function(){return j},default:function(){return F}});var r=S(ee),a=ut,s=S(at),l=nt,f=Eo;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className,P=z.children,y=T(z,["className","children"]),p=(0,l.useTheme)().timelineHeader,v=p.styles,g=v.base,m=(0,a.twMerge)((0,s.default)(g),R);return r.default.createElement("div",b({},y,{ref:D,className:m}),P)});j.propTypes={children:f.propTypeChildren,className:f.propTypeClassName},j.displayName="MaterialTailwind.TimelineHeader";var F=j})(t_);var r_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return v}});var r=j(ee),a=ut,s=j(at),l=nt,f=Jl,b=Eo;function S(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function T(g){if(Array.isArray(g))return g}function O(){return O=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},O.apply(this,arguments)}function j(g){return g&&g.__esModule?g:{default:g}}function F(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(g,m){if(g==null)return{};var _=R(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function R(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}function P(g,m){return T(g)||F(g,m)||y(g,m)||z()}function y(g,m){if(g){if(typeof g=="string")return S(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return S(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,M=g.children,X=D(g,["className","children"]),H,B=(0,l.useTheme)().timelineConnector,U=B.styles,K=U.base,oe=P((0,f.useTimelineItem)(),1),ne=oe[0],fe=(0,s.default)(K.line),me=(0,a.twMerge)((0,s.default)(K.container),_);return r.default.createElement("span",O({},X,{ref:m,className:me,style:{top:"".concat(ne,"px"),width:"".concat(ne,"px"),opacity:ne?1:0,height:"calc(100% - ".concat(ne,"px)")}}),M&&r.default.isValidElement(M)?r.default.cloneElement(M,{className:(0,a.twMerge)(fe,(H=M.props)===null||H===void 0?void 0:H.className)}):r.default.createElement("span",{className:fe}))});p.propTypes={children:b.propTypeChildren,className:b.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var v=p})(r_);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Timeline:function(){return P},TimelineItem:function(){return b.default},TimelineIcon:function(){return S.default},TimelineBody:function(){return T.default},TimelineHeader:function(){return O.default},TimelineConnector:function(){return j.default},default:function(){return y}});var r=z(ee),a=ut,s=z(at),l=nt,f=Eo,b=z(Jl),S=z(JP),T=z(e_),O=z(t_),j=z(r_);function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.className,m=p.children,_=D(p,["className","children"]),M=(0,l.useTheme)().timeline,X=M.styles,H=X.base,B=(0,a.twMerge)((0,s.default)(H),g);return r.default.createElement("ul",F({ref:v},_,{className:B}),m)});P.propTypes={className:f.propTypeClassName,children:f.propTypeChildren},P.displayName="MaterialTailwind.Timeline";var y=Object.assign(P,{Item:b.default,Icon:S.default,Header:O.default,Body:T.default,Connector:j.default})})(QP);var n_={},o_={},ub={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesActiveStep:function(){return s},propTypesIsLastStep:function(){return l},propTypesIsFirstStep:function(){return f},propTypesChildren:function(){return b},propTypesClassName:function(){return S}});var r=a(it);function a(T){return T&&T.__esModule?T:{default:T}}var s=r.default.number,l=r.default.func,f=r.default.func,b=r.default.node,S=r.default.string})(ub);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{Step:function(){return j},default:function(){return F}});var r=S(ee),a=ut,s=S(at),l=nt,f=ub;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className;z.activeClassName,z.completedClassName;var P=z.children,y=T(z,["className","activeClassName","completedClassName","children"]),p=(0,l.useTheme)().step,v=p.styles.base,g=(0,a.twMerge)((0,s.default)(v.initial),R);return r.default.createElement("div",b({},y,{ref:D,className:g}),P)});j.propTypes={className:f.propTypesClassName,activeClassName:f.propTypesClassName,completedClassName:f.propTypesClassName,children:f.propTypesChildren},j.displayName="MaterialTailwind.Step";var F=j})(o_);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(H,B){for(var U in B)Object.defineProperty(H,U,{enumerable:!0,get:B[U]})}t(e,{Stepper:function(){return M},Step:function(){return b.default},default:function(){return X}});var r=z(ee),a=dr,s=ut,l=z(at),f=nt,b=z(o_),S=ub;function T(H,B){(B==null||B>H.length)&&(B=H.length);for(var U=0,K=new Array(B);U<B;U++)K[U]=H[U];return K}function O(H){if(Array.isArray(H))return H}function j(H,B,U){return B in H?Object.defineProperty(H,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):H[B]=U,H}function F(){return F=Object.assign||function(H){for(var B=1;B<arguments.length;B++){var U=arguments[B];for(var K in U)Object.prototype.hasOwnProperty.call(U,K)&&(H[K]=U[K])}return H},F.apply(this,arguments)}function z(H){return H&&H.__esModule?H:{default:H}}function D(H,B){var U=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(U!=null){var K=[],oe=!0,ne=!1,fe,me;try{for(U=U.call(H);!(oe=(fe=U.next()).done)&&(K.push(fe.value),!(B&&K.length===B));oe=!0);}catch(Se){ne=!0,me=Se}finally{try{!oe&&U.return!=null&&U.return()}finally{if(ne)throw me}}return K}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(H){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{},K=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(K=K.concat(Object.getOwnPropertySymbols(U).filter(function(oe){return Object.getOwnPropertyDescriptor(U,oe).enumerable}))),K.forEach(function(oe){j(H,oe,U[oe])})}return H}function y(H,B){var U=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);B&&(K=K.filter(function(oe){return Object.getOwnPropertyDescriptor(H,oe).enumerable})),U.push.apply(U,K)}return U}function p(H,B){return B=B??{},Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(B)):y(Object(B)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(B,U))}),H}function v(H,B){if(H==null)return{};var U=g(H,B),K,oe;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(H);for(oe=0;oe<ne.length;oe++)K=ne[oe],!(B.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(H,K)&&(U[K]=H[K])}return U}function g(H,B){if(H==null)return{};var U={},K=Object.keys(H),oe,ne;for(ne=0;ne<K.length;ne++)oe=K[ne],!(B.indexOf(oe)>=0)&&(U[oe]=H[oe]);return U}function m(H,B){return O(H)||D(H,B)||_(H,B)||R()}function _(H,B){if(H){if(typeof H=="string")return T(H,B);var U=Object.prototype.toString.call(H).slice(8,-1);if(U==="Object"&&H.constructor&&(U=H.constructor.name),U==="Map"||U==="Set")return Array.from(U);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return T(H,B)}}var M=r.default.forwardRef(function(H,B){var U=H.activeStep,K=H.isFirstStep,oe=H.isLastStep,ne=H.className,fe=H.lineClassName,me=H.activeLineClassName,Se=H.children,be=v(H,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),ue=(0,f.useTheme)(),ge=ue.stepper,ye=ue.step,_e=ge.styles.base,Ee=ye.styles,Ne=Ee.base,Le=r.default.useRef(null),Pe=m(r.default.useState(0),2),Xe=Pe[0],Ve=Pe[1],Re=U===0,He=Array.isArray(Se)&&U===Se.length-1,We=Array.isArray(Se)&&U>Se.length-1;r.default.useEffect(function(){if(Le.current){var kt=Se,Lt=Le.current.getBoundingClientRect().width,At=Lt/(kt.length-1);Ve(At)}},[Se]);var Ke=r.default.useMemo(function(){if(!We)return Xe*U},[U,We,Xe]);(0,a.useMergeRefs)([B,Le]);var ot=(0,s.twMerge)((0,l.default)(_e.stepper),ne),Qe=(0,s.twMerge)((0,l.default)(_e.line.initial),fe),qe=(0,s.twMerge)(Qe,(0,l.default)(_e.line.active),me),st=(0,l.default)(Ne.active),wt=(0,l.default)(Ne.completed);return r.default.useEffect(function(){oe&&typeof oe=="function"&&oe(He),K&&typeof K=="function"&&K(Re)},[K,Re,oe,He]),r.default.createElement("div",F({},be,{ref:Le,className:ot}),r.default.createElement("div",{className:Qe}),r.default.createElement("div",{className:qe,style:{width:"".concat(Ke,"px")}}),Array.isArray(Se)?Se.map(function(kt,Lt){var At,jt;return r.default.cloneElement(kt,p(P({key:Lt},kt.props),{className:(0,s.twMerge)(kt.props.className,Lt===U?(0,s.twMerge)(st,(At=kt.props)===null||At===void 0?void 0:At.activeClassName):Lt<U?(0,s.twMerge)(wt,(jt=kt.props)===null||jt===void 0?void 0:jt.completedClassName):"")}))}):Se)});M.propTypes={activeStep:S.propTypesActiveStep,isFirstStep:S.propTypesIsFirstStep,isLastStep:S.propTypesIsLastStep,className:S.propTypesClassName,lineClassName:S.propTypesClassName,activeLineClassName:S.propTypesClassName,children:S.propTypesChildren},M.displayName="MaterialTailwind.Stepper";var X=Object.assign(M,{Step:b.default})})(n_);var Pp={},eu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesOpen:function(){return l},propTypesHanlder:function(){return f},propTypesPlacement:function(){return b},propTypesOffset:function(){return S},propTypesDismiss:function(){return T},propTypesChildren:function(){return O},propTypesAnimate:function(){return j},propTypesClassName:function(){return F}});var r=s(it),a=Yt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.bool,f=r.default.func,b=r.default.oneOf(a.propTypesPlacements),S=a.propTypesOffsetType,T=a.propTypesDismissType,O=r.default.node.isRequired,j=a.propTypesAnimation,F=r.default.string})(eu);var _p={},xx;function i4(){return xx||(xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SpeedDialHandler:function(){return D},default:function(){return R}});var r=S(ee),a=dr,s=cb(),l=ut,f=eu;function b(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function S(P){return P&&P.__esModule?P:{default:P}}function T(P){for(var y=1;y<arguments.length;y++){var p=arguments[y]!=null?arguments[y]:{},v=Object.keys(p);typeof Object.getOwnPropertySymbols=="function"&&(v=v.concat(Object.getOwnPropertySymbols(p).filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable}))),v.forEach(function(g){b(P,g,p[g])})}return P}function O(P,y){var p=Object.keys(P);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(P);y&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(P,g).enumerable})),p.push.apply(p,v)}return p}function j(P,y){return y=y??{},Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(y)):O(Object(y)).forEach(function(p){Object.defineProperty(P,p,Object.getOwnPropertyDescriptor(y,p))}),P}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.children,v=F(P,["children"]),g,m=(0,s.useSpeedDial)(),_=m.getReferenceProps,M=m.refs,X=(0,a.useMergeRefs)([y,M.setReference]);return r.default.cloneElement(p,T({},_(j(T({},v),{ref:X,className:(0,l.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,v==null?void 0:v.className)}))))});D.propTypes={children:f.propTypesChildren},D.displayName="MaterialTailwind.SpeedDialHandler";var R=D}(_p)),_p}var Op={},wx;function s4(){return wx||(wx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SpeedDialContent:function(){return D},default:function(){return R}});var r=j(ee),a=vr,s=dr,l=cb(),f=nt,b=ut,S=j(at),T=eu;function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.children,v=P.className,g=F(P,["children","className"]),m=(0,f.useTheme)(),_=m.speedDialContent.styles,M=(0,l.useSpeedDial)(),X=M.x,H=M.y,B=M.refs,U=M.open,K=M.strategy,oe=M.getFloatingProps,ne=M.animation,fe=(0,s.useMergeRefs)([y,B.setFloating]),me=(0,b.twMerge)((0,S.default)(_),v),Se=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(Se,null,U&&r.default.createElement("div",O({},g,{ref:fe,className:me,style:{position:K,top:H??0,left:X??0}},oe()),r.default.Children.map(p,function(be){return r.default.createElement(a.m.div,{initial:"unmount",exit:"unmount",animate:U?"mount":"unmount",variants:ne},be)}))))});D.propTypes={children:T.propTypesChildren,className:T.propTypesClassName},D.displayName="MaterialTailwind.SpeedDialContent";var R=D}(Op)),Op}var a_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{SpeedDialAction:function(){return j},default:function(){return F}});var r=S(ee),a=nt,s=ut,l=S(at),f=eu;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className,P=z.children,y=T(z,["className","children"]),p=(0,a.useTheme)(),v=p.speedDialAction.styles,g=(0,s.twMerge)((0,l.default)(v),R);return r.default.createElement("button",b({},y,{ref:D,className:g}),P)});j.propTypes={children:f.propTypesChildren,className:f.propTypesClassName},j.displayName="SpeedDialAction";var F=j})(a_);var Cx;function cb(){return Cx||(Cx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{SpeedDialContext:function(){return y},useSpeedDial:function(){return p},SpeedDial:function(){return v},SpeedDialHandler:function(){return b.default},SpeedDialContent:function(){return S.default},SpeedDialAction:function(){return T.default},default:function(){return g}});var r=F(ee),a=dr,s=nt,l=F(Cr),f=eu,b=F(i4()),S=F(s4()),T=F(a_);function O(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function j(m){if(Array.isArray(m))return m}function F(m){return m&&m.__esModule?m:{default:m}}function z(m,_){var M=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(M!=null){var X=[],H=!0,B=!1,U,K;try{for(M=M.call(m);!(H=(U=M.next()).done)&&(X.push(U.value),!(_&&X.length===_));H=!0);}catch(oe){B=!0,K=oe}finally{try{!H&&M.return!=null&&M.return()}finally{if(B)throw K}}return X}}function D(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(m,_){return j(m)||z(m,_)||P(m,_)||D()}function P(m,_){if(m){if(typeof m=="string")return O(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return O(m,_)}}var y=r.default.createContext(null);function p(){var m=r.default.useContext(y);if(!m)throw new Error("useSpeedDial must be used within a <SpeedDial />.");return m}function v(m){var _=m.open,M=m.handler,X=m.placement,H=m.offset,B=m.dismiss,U=m.animate,K=m.children,oe=(0,s.useTheme)(),ne=oe.speedDial.defaultProps,fe=R(r.default.useState(!1),2),me=fe[0],Se=fe[1];_=_??me,M=M??Se,X=X??ne.placement,H=H??ne.offset,B=B??ne.dismiss,U=U??ne.animate;var be={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},ue=(0,l.default)(be,U),ge=(0,a.useFloatingNodeId)(),ye=(0,a.useFloating)({open:_,nodeId:ge,placement:X,onOpenChange:M,whileElementsMounted:a.autoUpdate,middleware:[(0,a.offset)(H),(0,a.flip)(),(0,a.shift)()]}),_e=ye.x,Ee=ye.y,Ne=ye.strategy,Le=ye.refs,Pe=ye.context,Xe=(0,a.useInteractions)([(0,a.useHover)(Pe,{handleClose:(0,a.safePolygon)()}),(0,a.useDismiss)(Pe,B)]),Ve=Xe.getReferenceProps,Re=Xe.getFloatingProps,He=r.default.useMemo(function(){return{x:_e,y:Ee,strategy:Ne,refs:Le,open:_,context:Pe,getReferenceProps:Ve,getFloatingProps:Re,animation:ue}},[Pe,Re,Ve,Le,Ne,_e,Ee,_,ue]);return r.default.createElement(y.Provider,{value:He},r.default.createElement("div",{className:"group"},r.default.createElement(a.FloatingNode,{id:ge},K)))}v.propTypes={open:f.propTypesOpen,handler:f.propTypesHanlder,placement:f.propTypesPlacement,offset:f.propTypesOffset,dismiss:f.propTypesDismiss,className:f.propTypesClassName,children:f.propTypesChildren,animate:f.propTypesAnimate},v.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(v,{Handler:b.default,Content:S.default,Action:T.default})}(Pp)),Pp}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(mC,e),t(vT,e),t(mT,e),t(yT,e),t(wT,e),t(CT,e),t(PT,e),t(_T,e),t(OT,e),t(Wd,e),t(gP,e),t(bP,e),t(wP,e),t(SP,e),t(PP,e),t(_P,e),t(OP,e),t(EP,e),t(MP,e),t(jP,e),t(DP,e),t(zP,e),t(FP,e),t(WP,e),t(HP,e),t(XP,e),t(GP,e),t($P,e),t(qP,e),t(KP,e),t(ZP,e),t(QP,e),t(n_,e),t(cb(),e),t(nt,e),t(c0,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(De);function l4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"}))}const u4=ee.forwardRef(l4),c4=u4;function d4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"}))}const f4=ee.forwardRef(d4),p4=f4;function h4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const g4=ee.forwardRef(h4),b4=g4;function v4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const m4=ee.forwardRef(v4),i_=m4,db=ln.createContext(null);db.displayName="MaterialTailwindContext";function y4(e,t){switch(t.type){case"OPEN_SIDENAV":return{...e,openSidenav:t.value};case"SIDENAV_TYPE":return{...e,sidenavType:t.value};case"SIDENAV_COLOR":return{...e,sidenavColor:t.value};case"TRANSPARENT_NAVBAR":return{...e,transparentNavbar:t.value};case"FIXED_NAVBAR":return{...e,fixedNavbar:t.value};case"OPEN_CONFIGURATOR":return{...e,openConfigurator:t.value};default:throw new Error(`Unhandled action type: ${t.type}`)}}function fb({children:e}){const t={openSidenav:!1,sidenavColor:"dark",sidenavType:"white",transparentNavbar:!0,fixedNavbar:!1,openConfigurator:!1},[r,a]=ln.useReducer(y4,t),s=ln.useMemo(()=>[r,a],[r,a]);return he.jsx(db.Provider,{value:s,children:e})}function Kd(){const e=ln.useContext(db);if(!e)throw new Error("useMaterialTailwindController should be used inside the MaterialTailwindControllerProvider.");return e}fb.displayName="/src/context/index.jsx";fb.propTypes={children:Vt.node.isRequired};const s_=(e,t)=>e({type:"OPEN_SIDENAV",value:t}),Ap=(e,t)=>e({type:"SIDENAV_TYPE",value:t}),x4=(e,t)=>e({type:"SIDENAV_COLOR",value:t}),w4=(e,t)=>e({type:"FIXED_NAVBAR",value:t}),pb=(e,t)=>e({type:"OPEN_CONFIGURATOR",value:t});function Zd({brandImg:e,brandName:t,routes:r}){const[a,s]=Kd(),{sidenavColor:l,sidenavType:f,openSidenav:b}=a,S={dark:"bg-gradient-to-br from-gray-800 to-gray-900",white:"bg-white shadow-sm",transparent:"bg-transparent"};return he.jsxs("aside",{className:`${S[f]} ${b?"translate-x-0":"-translate-x-80"} fixed inset-0 z-50 my-4 ml-4 h-[calc(100vh-32px)] w-72 rounded-xl transition-transform duration-300 xl:translate-x-0 border border-blue-gray-100`,children:[he.jsxs("div",{className:"relative",children:[he.jsx(Vc,{to:"/",className:"py-6 px-8 text-center",children:he.jsx(De.Typography,{variant:"h6",color:f==="dark"?"white":"blue-gray",children:t})}),he.jsx(De.IconButton,{variant:"text",color:"white",size:"sm",ripple:!1,className:"absolute right-0 top-0 grid rounded-br-none rounded-tl-none xl:hidden",onClick:()=>s_(s,!1),children:he.jsx(i_,{strokeWidth:2.5,className:"h-5 w-5 text-white"})})]}),he.jsx("div",{className:"m-4",children:r.map(({layout:T,title:O,pages:j},F)=>he.jsxs("ul",{className:"mb-4 flex flex-col gap-1",children:[O&&he.jsx("li",{className:"mx-3.5 mt-4 mb-2",children:he.jsx(De.Typography,{variant:"small",color:f==="dark"?"white":"blue-gray",className:"font-black uppercase opacity-75",children:O})}),j.map(({icon:z,name:D,path:R})=>he.jsx("li",{children:he.jsx(JR,{to:`/${T}${R}`,children:({isActive:P})=>he.jsxs(De.Button,{variant:P?"gradient":"text",color:P?l:f==="dark"?"white":"blue-gray",className:"flex items-center gap-4 px-4 capitalize",fullWidth:!0,children:[z,he.jsx(De.Typography,{color:"inherit",className:"font-medium capitalize",children:D})]})})},D))]},F))})]})}Zd.defaultProps={brandImg:"/img/logo-ct.png",brandName:"Material Tailwind React"};Zd.propTypes={brandImg:Vt.string,brandName:Vt.string,routes:Vt.arrayOf(Vt.object).isRequired};Zd.displayName="/src/widgets/layout/sidnave.jsx";function l_(){const[e,t]=Kd(),{fixedNavbar:r,openSidenav:a}=e,{pathname:s}=qa(),[l,f]=s.split("/").filter(b=>b!=="");return he.jsx(De.Navbar,{color:r?"white":"transparent",className:`rounded-xl transition-all ${r?"sticky top-4 z-40 py-3 shadow-md shadow-blue-gray-500/5":"px-0 py-1"}`,fullWidth:!0,blurred:r,children:he.jsxs("div",{className:"flex flex-col-reverse justify-between gap-6 md:flex-row md:items-center",children:[he.jsxs("div",{className:"capitalize",children:[he.jsxs(De.Breadcrumbs,{className:`bg-transparent p-0 transition-all ${r?"mt-1":""}`,children:[he.jsx(Vc,{to:`/${l}`,children:he.jsx(De.Typography,{variant:"small",color:"blue-gray",className:"font-normal opacity-50 transition-all hover:text-blue-500 hover:opacity-100",children:l})}),he.jsx(De.Typography,{variant:"small",color:"blue-gray",className:"font-normal",children:f})]}),he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:f})]}),he.jsxs("div",{className:"flex items-center",children:[he.jsx("div",{className:"mr-auto md:mr-4 md:w-56",children:he.jsx(De.Input,{label:"Search"})}),he.jsx(De.IconButton,{variant:"text",color:"blue-gray",className:"grid xl:hidden",onClick:()=>s_(t,!a),children:he.jsx(sN,{strokeWidth:3,className:"h-6 w-6 text-blue-gray-500"})}),he.jsxs(Vc,{to:"/auth/sign-in",children:[he.jsxs(De.Button,{variant:"text",color:"blue-gray",className:"hidden items-center gap-1 px-4 xl:flex normal-case",children:[he.jsx(my,{className:"h-5 w-5 text-blue-gray-500"}),"Sign In"]}),he.jsx(De.IconButton,{variant:"text",color:"blue-gray",className:"grid xl:hidden",children:he.jsx(my,{className:"h-5 w-5 text-blue-gray-500"})})]}),he.jsxs(De.Menu,{children:[he.jsx(De.MenuHandler,{children:he.jsx(De.IconButton,{variant:"text",color:"blue-gray",children:he.jsx(gC,{className:"h-5 w-5 text-blue-gray-500"})})}),he.jsxs(De.MenuList,{className:"w-max border-0",children:[he.jsxs(De.MenuItem,{className:"flex items-center gap-3",children:[he.jsx(De.Avatar,{src:"https://demos.creative-tim.com/material-dashboard/assets/img/team-2.jpg",alt:"item-1",size:"sm",variant:"circular"}),he.jsxs("div",{children:[he.jsxs(De.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:[he.jsx("strong",{children:"New message"})," from Laur"]}),he.jsxs(De.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[he.jsx(Zu,{className:"h-3.5 w-3.5"})," 13 minutes ago"]})]})]}),he.jsxs(De.MenuItem,{className:"flex items-center gap-4",children:[he.jsx(De.Avatar,{src:"https://demos.creative-tim.com/material-dashboard/assets/img/small-logos/logo-spotify.svg",alt:"item-1",size:"sm",variant:"circular"}),he.jsxs("div",{children:[he.jsxs(De.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:[he.jsx("strong",{children:"New album"})," by Travis Scott"]}),he.jsxs(De.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[he.jsx(Zu,{className:"h-3.5 w-3.5"})," 1 day ago"]})]})]}),he.jsxs(De.MenuItem,{className:"flex items-center gap-4",children:[he.jsx("div",{className:"grid h-9 w-9 place-items-center rounded-full bg-gradient-to-tr from-blue-gray-800 to-blue-gray-900",children:he.jsx(vC,{className:"h-4 w-4 text-white"})}),he.jsxs("div",{children:[he.jsx(De.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:"Payment successfully completed"}),he.jsxs(De.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[he.jsx(Zu,{className:"h-3.5 w-3.5"})," 2 days ago"]})]})]})]})]}),he.jsx(De.IconButton,{variant:"text",color:"blue-gray",onClick:()=>pb(t,!0),children:he.jsx(bC,{className:"h-5 w-5 text-blue-gray-500"})})]})]})})}l_.displayName="/src/widgets/layout/dashboard-navbar.jsx";function C4(e,t){t=Math.pow(10,t);const r=["K","M","B","T"];for(let s=r.length-1;s>=0;s--){var a=Math.pow(10,(s+1)*3);if(a<=e){e=Math.round(e*t/a)/t,e==1e3&&s<r.length-1&&(e=1,s++),e+=r[s];break}}return e}function u_(){const[e,t]=Kd(),{openConfigurator:r,sidenavColor:a,sidenavType:s,fixedNavbar:l}=e,[f,b]=ln.useState(0),S={white:"from-gray-100 to-gray-100 border-gray-200",dark:"from-black to-black border-gray-200",green:"from-green-400 to-green-600",orange:"from-orange-400 to-orange-600",red:"from-red-400 to-red-600",pink:"from-pink-400 to-pink-600"};return ln.useEffect(()=>{fetch("https://api.github.com/repos/creativetimofficial/material-tailwind-dashboard-react").then(T=>T.json()).then(T=>b(C4(T.stargazers_count,1)))},[]),he.jsxs("aside",{className:`fixed top-0 right-0 z-50 h-screen w-96 bg-white px-2.5 shadow-lg transition-transform duration-300 ${r?"translate-x-0":"translate-x-96"}`,children:[he.jsxs("div",{className:"flex items-start justify-between px-6 pt-8 pb-6",children:[he.jsxs("div",{children:[he.jsx(De.Typography,{variant:"h5",color:"blue-gray",children:"Dashboard Configurator"}),he.jsx(De.Typography,{className:"font-normal text-blue-gray-600",children:"See our dashboard options."})]}),he.jsx(De.IconButton,{variant:"text",color:"blue-gray",onClick:()=>pb(t,!1),children:he.jsx(i_,{strokeWidth:2.5,className:"h-5 w-5"})})]}),he.jsxs("div",{className:"py-4 px-6",children:[he.jsxs("div",{className:"mb-12",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:"Sidenav Colors"}),he.jsx("div",{className:"mt-3 flex items-center gap-2",children:Object.keys(S).map(T=>he.jsx("span",{className:`h-6 w-6 cursor-pointer rounded-full border bg-gradient-to-br transition-transform hover:scale-105 ${S[T]} ${a===T?"border-black":"border-transparent"}`,onClick:()=>x4(t,T)},T))})]}),he.jsxs("div",{className:"mb-12",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:"Sidenav Types"}),he.jsx(De.Typography,{variant:"small",color:"gray",children:"Choose between 3 different sidenav types."}),he.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[he.jsx(De.Button,{variant:s==="dark"?"gradient":"outlined",onClick:()=>Ap(t,"dark"),children:"Dark"}),he.jsx(De.Button,{variant:s==="transparent"?"gradient":"outlined",onClick:()=>Ap(t,"transparent"),children:"Transparent"}),he.jsx(De.Button,{variant:s==="white"?"gradient":"outlined",onClick:()=>Ap(t,"white"),children:"White"})]})]}),he.jsxs("div",{className:"mb-12",children:[he.jsx("hr",{}),he.jsxs("div",{className:"flex items-center justify-between py-5",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:"Navbar Fixed"}),he.jsx(De.Switch,{id:"navbar-fixed",value:l,onChange:()=>w4(t,!l)})]}),he.jsx("hr",{}),he.jsxs("div",{className:"my-8 flex flex-col gap-4",children:[he.jsx("a",{href:"https://www.creative-tim.com/product/material-tailwind-dashboard-react?rel=mtdr",target:"_black",children:he.jsx(De.Button,{variant:"gradient",fullWidth:!0,children:"Free Download"})}),he.jsx("a",{href:"https://www.material-tailwind.com/docs/react/installation?rel=mtdr",target:"_black",children:he.jsx(De.Button,{variant:"outlined",color:"blue-gray",fullWidth:!0,children:"View Documentation"})}),he.jsx("a",{href:"https://www.material-tailwind.com/blocks/react?rel=mtdr",target:"_black",children:he.jsx(De.Button,{variant:"outlined",color:"blue-gray",fullWidth:!0,children:"Material Tailwind PRO"})})]}),he.jsxs("a",{className:"mx-auto flex items-center justify-center gap-2",href:"https://github.com/creativetimofficial/material-tailwind-dashboard-react",target:"_blank",rel:"noreferrer",children:[he.jsx(De.Chip,{value:`${f} - Stars`,icon:he.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"mt-px ml-1.5 h-4 w-4",children:he.jsx("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z",clipRule:"evenodd"})}),className:"bg-blue-gray-900 px-4"}),he.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:he.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})]})]}),he.jsxs("div",{className:"text-center",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:"Thank you for sharing ❤️"}),he.jsxs("div",{className:"mt-4 flex justify-center gap-2",children:[he.jsxs(De.Button,{variant:"gradient",className:"flex items-center gap-2",children:[he.jsx("i",{className:"fa-brands fa-twitter text-white"}),"Tweet"]}),he.jsxs(De.Button,{variant:"gradient",className:"flex items-center gap-2",children:[he.jsx("i",{className:"fa-brands fa-facebook text-white"}),"Share"]})]})]})]})]})}u_.displayName="/src/widgets/layout/configurator.jsx";function c_({brandName:e,brandLink:t,routes:r}){const a=new Date().getFullYear();return he.jsx("footer",{className:"py-2",children:he.jsx("div",{className:"flex w-full flex-wrap items-center justify-center gap-6 px-2 md:justify-between",children:he.jsxs(De.Typography,{variant:"small",className:"font-normal text-inherit",children:["© ",a,", made with"," ",he.jsx(kN,{className:"-mt-0.5 inline-block h-3.5 w-3.5 text-red-600"})," by"," ",he.jsx("a",{href:t,target:"_blank",className:"transition-colors hover:text-blue-500 font-bold",children:e})," ","for a better web."]})})})}c_.displayName="/src/widgets/layout/footer.jsx";Vt.string,Vt.arrayOf(Vt.object).isRequired,Vt.node;function Qd({color:e,icon:t,title:r,value:a,footer:s}){return he.jsxs(De.Card,{className:"border border-blue-gray-100 shadow-sm",children:[he.jsx(De.CardHeader,{variant:"gradient",color:e,floated:!1,shadow:!1,className:"absolute grid h-12 w-12 place-items-center",children:t}),he.jsxs(De.CardBody,{className:"p-4 text-right",children:[he.jsx(De.Typography,{variant:"small",className:"font-normal text-blue-gray-600",children:r}),he.jsx(De.Typography,{variant:"h4",color:"blue-gray",children:a})]}),s&&he.jsx(De.CardFooter,{className:"border-t border-blue-gray-50 p-4",children:s})]})}Qd.defaultProps={color:"blue",footer:null};Qd.propTypes={color:Vt.oneOf(["white","blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"]),icon:Vt.node.isRequired,title:Vt.node.isRequired,value:Vt.node.isRequired,footer:Vt.node};Qd.displayName="/src/widgets/cards/statistics-card.jsx";Vt.string.isRequired,Vt.node,Vt.object;Vt.string.isRequired,Vt.string.isRequired,Vt.node.isRequired,Vt.node;var d_={},eg={exports:{}};/*!
* ApexCharts v3.44.0
* (c) 2018-2023 ApexCharts
* Released under the MIT License.
*/(function(e,t){function r(J,n){var o=Object.keys(J);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(J);n&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(J,u).enumerable})),o.push.apply(o,i)}return o}function a(J){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(i){S(J,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(i){Object.defineProperty(J,i,Object.getOwnPropertyDescriptor(o,i))})}return J}function s(J){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(J)}function l(J,n){if(!(J instanceof n))throw new TypeError("Cannot call a class as a function")}function f(J,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(J,i.key,i)}}function b(J,n,o){return n&&f(J.prototype,n),o&&f(J,o),J}function S(J,n,o){return n in J?Object.defineProperty(J,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):J[n]=o,J}function T(J,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(n&&n.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),n&&j(J,n)}function O(J){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},O(J)}function j(J,n){return j=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},j(J,n)}function F(J,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(J)}function z(J){var n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,i=O(J);if(n){var u=O(this).constructor;o=Reflect.construct(i,arguments,u)}else o=i.apply(this,arguments);return F(this,o)}}function D(J,n){return function(o){if(Array.isArray(o))return o}(J)||function(o,i){var u=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(u!=null){var c,d,h=[],x=!0,k=!1;try{for(u=u.call(o);!(x=(c=u.next()).done)&&(h.push(c.value),!i||h.length!==i);x=!0);}catch(E){k=!0,d=E}finally{try{x||u.return==null||u.return()}finally{if(k)throw d}}return h}}(J,n)||P(J,n)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(J){return function(n){if(Array.isArray(n))return y(n)}(J)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(J)||P(J)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(J,n){if(J){if(typeof J=="string")return y(J,n);var o=Object.prototype.toString.call(J).slice(8,-1);return o==="Object"&&J.constructor&&(o=J.constructor.name),o==="Map"||o==="Set"?Array.from(J):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(J,n):void 0}}function y(J,n){(n==null||n>J.length)&&(n=J.length);for(var o=0,i=new Array(n);o<n;o++)i[o]=J[o];return i}var p=function(){function J(){l(this,J)}return b(J,[{key:"shadeRGBColor",value:function(n,o){var i=o.split(","),u=n<0?0:255,c=n<0?-1*n:n,d=parseInt(i[0].slice(4),10),h=parseInt(i[1],10),x=parseInt(i[2],10);return"rgb("+(Math.round((u-d)*c)+d)+","+(Math.round((u-h)*c)+h)+","+(Math.round((u-x)*c)+x)+")"}},{key:"shadeHexColor",value:function(n,o){var i=parseInt(o.slice(1),16),u=n<0?0:255,c=n<0?-1*n:n,d=i>>16,h=i>>8&255,x=255&i;return"#"+(16777216+65536*(Math.round((u-d)*c)+d)+256*(Math.round((u-h)*c)+h)+(Math.round((u-x)*c)+x)).toString(16).slice(1)}},{key:"shadeColor",value:function(n,o){return J.isColorHex(o)?this.shadeHexColor(n,o):this.shadeRGBColor(n,o)}}],[{key:"bind",value:function(n,o){return function(){return n.apply(o,arguments)}}},{key:"isObject",value:function(n){return n&&s(n)==="object"&&!Array.isArray(n)&&n!=null}},{key:"is",value:function(n,o){return Object.prototype.toString.call(o)==="[object "+n+"]"}},{key:"listToArray",value:function(n){var o,i=[];for(o=0;o<n.length;o++)i[o]=n[o];return i}},{key:"extend",value:function(n,o){var i=this;typeof Object.assign!="function"&&(Object.assign=function(c){if(c==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(c),h=1;h<arguments.length;h++){var x=arguments[h];if(x!=null)for(var k in x)x.hasOwnProperty(k)&&(d[k]=x[k])}return d});var u=Object.assign({},n);return this.isObject(n)&&this.isObject(o)&&Object.keys(o).forEach(function(c){i.isObject(o[c])&&c in n?u[c]=i.extend(n[c],o[c]):Object.assign(u,S({},c,o[c]))}),u}},{key:"extendArray",value:function(n,o){var i=[];return n.map(function(u){i.push(J.extend(o,u))}),n=i}},{key:"monthMod",value:function(n){return n%12}},{key:"clone",value:function(n){if(J.is("Array",n)){for(var o=[],i=0;i<n.length;i++)o[i]=this.clone(n[i]);return o}if(J.is("Null",n))return null;if(J.is("Date",n))return n;if(s(n)==="object"){var u={};for(var c in n)n.hasOwnProperty(c)&&(u[c]=this.clone(n[c]));return u}return n}},{key:"log10",value:function(n){return Math.log(n)/Math.LN10}},{key:"roundToBase10",value:function(n){return Math.pow(10,Math.floor(Math.log10(n)))}},{key:"roundToBase",value:function(n,o){return Math.pow(o,Math.floor(Math.log(n)/Math.log(o)))}},{key:"parseNumber",value:function(n){return n===null?n:parseFloat(n)}},{key:"stripNumber",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(n)?n:parseFloat(n.toPrecision(o))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(n){var o=String(n).split(/[eE]/);if(o.length===1)return o[0];var i="",u=n<0?"-":"",c=o[0].replace(".",""),d=Number(o[1])+1;if(d<0){for(i=u+"0.";d++;)i+="0";return i+c.replace(/^-/,"")}for(d-=c.length;d--;)i+="0";return c+i}},{key:"getDimensions",value:function(n){var o=getComputedStyle(n,null),i=n.clientHeight,u=n.clientWidth;return i-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),[u-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i]}},{key:"getBoundingClientRect",value:function(n){var o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:n.clientWidth,height:n.clientHeight,x:o.left,y:o.top}}},{key:"getLargestStringFromArr",value:function(n){return n.reduce(function(o,i){return Array.isArray(i)&&(i=i.reduce(function(u,c){return u.length>c.length?u:c})),o.length>i.length?o:i},0)}},{key:"hexToRgba",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;n.substring(0,1)!=="#"&&(n="#999999");var i=n.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var u=0;u<i.length;u++)i[u]=parseInt(i[u].length===1?i[u]+i[u]:i[u],16);return o!==void 0&&i.push(o),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(n){return parseFloat(n.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(n){return(n=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&n.length===4?"#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(n)}},{key:"getPolygonPos",value:function(n,o){for(var i=[],u=2*Math.PI/o,c=0;c<o;c++){var d={};d.x=n*Math.sin(c*u),d.y=-n*Math.cos(c*u),i.push(d)}return i}},{key:"polarToCartesian",value:function(n,o,i,u){var c=(u-90)*Math.PI/180;return{x:n+i*Math.cos(c),y:o+i*Math.sin(c)}}},{key:"escapeString",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",i=n.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,o)}},{key:"negToZero",value:function(n){return n<0?0:n}},{key:"moveIndexInArray",value:function(n,o,i){if(i>=n.length)for(var u=i-n.length+1;u--;)n.push(void 0);return n.splice(i,0,n.splice(o,1)[0]),n}},{key:"extractNumber",value:function(n){return parseFloat(n.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(n,o){for(;(n=n.parentElement)&&!n.classList.contains(o););return n}},{key:"setELstyles",value:function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n.style.key=o[i])}},{key:"isNumber",value:function(n){return!isNaN(n)&&parseFloat(Number(n))===n&&!isNaN(parseInt(n,10))}},{key:"isFloat",value:function(n){return Number(n)===n&&n%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var n=window.navigator.userAgent,o=n.indexOf("MSIE ");if(o>0)return parseInt(n.substring(o+5,n.indexOf(".",o)),10);if(n.indexOf("Trident/")>0){var i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}var u=n.indexOf("Edge/");return u>0&&parseInt(n.substring(u+5,n.indexOf(".",u)),10)}}]),J}(),v=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.setEasingFunctions()}return b(J,[{key:"setEasingFunctions",value:function(){var n;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":n="-";break;case"easein":n="<";break;case"easeout":n=">";break;case"easeinout":default:n="<>";break;case"swing":n=function(o){var i=1.70158;return(o-=1)*o*((i+1)*o+i)+1};break;case"bounce":n=function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375};break;case"elastic":n=function(o){return o===!!o?o:Math.pow(2,-10*o)*Math.sin((o-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=n}}},{key:"animateLine",value:function(n,o,i,u){n.attr(o).animate(u).attr(i)}},{key:"animateMarker",value:function(n,o,i,u,c,d){o||(o=0),n.attr({r:o,width:o,height:o}).animate(u,c).attr({r:i,width:i.width,height:i.height}).afterAll(function(){d()})}},{key:"animateCircle",value:function(n,o,i,u,c){n.attr({r:o.r,cx:o.cx,cy:o.cy}).animate(u,c).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(n,o,i,u,c){n.attr(o).animate(u).attr(i).afterAll(function(){return c()})}},{key:"animatePathsGradually",value:function(n){var o=n.el,i=n.realIndex,u=n.j,c=n.fill,d=n.pathFrom,h=n.pathTo,x=n.speed,k=n.delay,E=this.w,N=0;E.config.chart.animations.animateGradually.enabled&&(N=E.config.chart.animations.animateGradually.delay),E.config.chart.animations.dynamicAnimation.enabled&&E.globals.dataChanged&&E.config.chart.type!=="bar"&&(N=0),this.morphSVG(o,i,u,E.config.chart.type!=="line"||E.globals.comboCharts?c:"stroke",d,h,x,k*N)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(n){var o=n.el;o.classList.remove("apexcharts-element-hidden"),o.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(n){var o=this.w;o.globals.animationEnded||(o.globals.animationEnded=!0,this.showDelayedElements(),typeof o.config.chart.events.animationEnd=="function"&&o.config.chart.events.animationEnd(this.ctx,{el:n,w:o}))}},{key:"morphSVG",value:function(n,o,i,u,c,d,h,x){var k=this,E=this.w;c||(c=n.attr("pathFrom")),d||(d=n.attr("pathTo"));var N=function(L){return E.config.chart.type==="radar"&&(h=1),"M 0 ".concat(E.globals.gridHeight)};(!c||c.indexOf("undefined")>-1||c.indexOf("NaN")>-1)&&(c=N()),(!d||d.indexOf("undefined")>-1||d.indexOf("NaN")>-1)&&(d=N()),E.globals.shouldAnimate||(h=1),n.plot(c).animate(1,E.globals.easing,x).plot(c).animate(h,E.globals.easing,x).plot(d).afterAll(function(){p.isNumber(i)?i===E.globals.series[E.globals.maxValsInArrayIndex].length-2&&E.globals.shouldAnimate&&k.animationCompleted(n):u!=="none"&&E.globals.shouldAnimate&&(!E.globals.comboCharts&&o===E.globals.series.length-1||E.globals.comboCharts)&&k.animationCompleted(n),k.showDelayedElements()})}}]),J}(),g=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getDefaultFilter",value:function(n,o){var i=this.w;n.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(n,o,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(n,i.config.chart.dropShadow,o)}},{key:"addNormalFilter",value:function(n,o){var i=this.w;i.config.chart.dropShadow.enabled&&!n.node.classList.contains("apexcharts-marker")&&this.dropShadow(n,i.config.chart.dropShadow,o)}},{key:"addLightenFilter",value:function(n,o,i){var u=this,c=this.w,d=i.intensity;n.unfilter(!0),new window.SVG.Filter,n.filter(function(h){var x=c.config.chart.dropShadow;(x.enabled?u.addShadow(h,o,x):h).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:d}})}),n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)}},{key:"addDarkenFilter",value:function(n,o,i){var u=this,c=this.w,d=i.intensity;n.unfilter(!0),new window.SVG.Filter,n.filter(function(h){var x=c.config.chart.dropShadow;(x.enabled?u.addShadow(h,o,x):h).componentTransfer({rgb:{type:"linear",slope:d}})}),n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)}},{key:"applyFilter",value:function(n,o,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(n,o);break;case"lighten":this.addLightenFilter(n,o,{intensity:u});break;case"darken":this.addDarkenFilter(n,o,{intensity:u})}}},{key:"addShadow",value:function(n,o,i){var u=i.blur,c=i.top,d=i.left,h=i.color,x=i.opacity,k=n.flood(Array.isArray(h)?h[o]:h,x).composite(n.sourceAlpha,"in").offset(d,c).gaussianBlur(u).merge(n.source);return n.blend(n.source,k)}},{key:"dropShadow",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=o.top,c=o.left,d=o.blur,h=o.color,x=o.opacity,k=o.noUserSpaceOnUse,E=this.w;return n.unfilter(!0),p.isIE()&&E.config.chart.type==="radialBar"||(h=Array.isArray(h)?h[i]:h,n.filter(function(N){var L=null;L=p.isSafari()||p.isFirefox()||p.isIE()?N.flood(h,x).composite(N.sourceAlpha,"in").offset(c,u).gaussianBlur(d):N.flood(h,x).composite(N.sourceAlpha,"in").offset(c,u).gaussianBlur(d).merge(N.source),N.blend(N.source,L)}),k||n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)),n}},{key:"setSelectionFilter",value:function(n,o,i){var u=this.w;if(u.globals.selectedDataPoints[o]!==void 0&&u.globals.selectedDataPoints[o].indexOf(i)>-1){n.node.setAttribute("selected",!0);var c=u.config.states.active.filter;c!=="none"&&this.applyFilter(n,o,c.type,c.value)}}},{key:"_scaleFilterSize",value:function(n){(function(o){for(var i in o)o.hasOwnProperty(i)&&n.setAttribute(i,o[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),J}(),m=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"roundPathCorners",value:function(n,o){function i(de,we,Ce){var Me=we.x-de.x,Be=we.y-de.y,ze=Math.sqrt(Me*Me+Be*Be);return u(de,we,Math.min(1,Ce/ze))}function u(de,we,Ce){return{x:de.x+(we.x-de.x)*Ce,y:de.y+(we.y-de.y)*Ce}}function c(de,we){de.length>2&&(de[de.length-2]=we.x,de[de.length-1]=we.y)}function d(de){return{x:parseFloat(de[de.length-2]),y:parseFloat(de[de.length-1])}}n.indexOf("NaN")>-1&&(n="");var h=n.split(/[,\s]/).reduce(function(de,we){var Ce=we.match("([a-zA-Z])(.+)");return Ce?(de.push(Ce[1]),de.push(Ce[2])):de.push(we),de},[]).reduce(function(de,we){return parseFloat(we)==we&&de.length?de[de.length-1].push(we):de.push([we]),de},[]),x=[];if(h.length>1){var k=d(h[0]),E=null;h[h.length-1][0]=="Z"&&h[0].length>2&&(E=["L",k.x,k.y],h[h.length-1]=E),x.push(h[0]);for(var N=1;N<h.length;N++){var L=x[x.length-1],W=h[N],G=W==E?h[1]:h[N+1];if(G&&L&&L.length>2&&W[0]=="L"&&G.length>2&&G[0]=="L"){var q,Q,re=d(L),ie=d(W),C=d(G);q=i(ie,re,o),Q=i(ie,C,o),c(W,q),W.origPoint=ie,x.push(W);var I=u(q,ie,.5),$=u(ie,Q,.5),te=["C",I.x,I.y,$.x,$.y,Q.x,Q.y];te.origPoint=ie,x.push(te)}else x.push(W)}if(E){var ce=d(x[x.length-1]);x.push(["Z"]),c(x[0],ce)}}else x=h;return x.reduce(function(de,we){return de+we.join(" ")+" "},"")}},{key:"drawLine",value:function(n,o,i,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:n,y1:o,x2:i,y2:u,stroke:c,"stroke-dasharray":d,"stroke-width":h,"stroke-linecap":x})}},{key:"drawRect",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,E=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,N=this.w.globals.dom.Paper.rect();return N.attr({x:n,y:o,width:i>0?i:0,height:u>0?u:0,rx:c,ry:c,opacity:h,"stroke-width":x!==null?x:0,stroke:k!==null?k:"none","stroke-dasharray":E}),N.node.setAttribute("fill",d),N}},{key:"drawPolygon",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(n).attr({fill:u,stroke:o,"stroke-width":i})}},{key:"drawCircle",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;n<0&&(n=0);var i=this.w.globals.dom.Paper.circle(2*n);return o!==null&&i.attr(o),i}},{key:"drawPath",value:function(n){var o=n.d,i=o===void 0?"":o,u=n.stroke,c=u===void 0?"#a8a8a8":u,d=n.strokeWidth,h=d===void 0?1:d,x=n.fill,k=n.fillOpacity,E=k===void 0?1:k,N=n.strokeOpacity,L=N===void 0?1:N,W=n.classes,G=n.strokeLinecap,q=G===void 0?null:G,Q=n.strokeDashArray,re=Q===void 0?0:Q,ie=this.w;return q===null&&(q=ie.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(ie.globals.gridHeight)),ie.globals.dom.Paper.path(i).attr({fill:x,"fill-opacity":E,stroke:c,"stroke-opacity":L,"stroke-linecap":q,"stroke-width":h,"stroke-dasharray":re,class:W})}},{key:"group",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=this.w.globals.dom.Paper.group();return n!==null&&o.attr(n),o}},{key:"move",value:function(n,o){var i=["M",n,o].join(" ");return i}},{key:"line",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=null;return i===null?u=[" L",n,o].join(" "):i==="H"?u=[" H",n].join(" "):i==="V"&&(u=[" V",o].join(" ")),u}},{key:"curve",value:function(n,o,i,u,c,d){var h=["C",n,o,i,u,c,d].join(" ");return h}},{key:"quadraticCurve",value:function(n,o,i,u){return["Q",n,o,i,u].join(" ")}},{key:"arc",value:function(n,o,i,u,c,d,h){var x="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(x="a");var k=[x,n,o,i,u,c,d,h].join(" ");return k}},{key:"renderPaths",value:function(n){var o,i=n.j,u=n.realIndex,c=n.pathFrom,d=n.pathTo,h=n.stroke,x=n.strokeWidth,k=n.strokeLinecap,E=n.fill,N=n.animationDelay,L=n.initialSpeed,W=n.dataChangeSpeed,G=n.className,q=n.shouldClipToGrid,Q=q===void 0||q,re=n.bindEventsOnPaths,ie=re===void 0||re,C=n.drawShadow,I=C===void 0||C,$=this.w,te=new g(this.ctx),ce=new v(this.ctx),de=this.w.config.chart.animations.enabled,we=de&&this.w.config.chart.animations.dynamicAnimation.enabled,Ce=!!(de&&!$.globals.resized||we&&$.globals.dataChanged&&$.globals.shouldAnimate);Ce?o=c:(o=d,$.globals.animationEnded=!0);var Me=$.config.stroke.dashArray,Be=0;Be=Array.isArray(Me)?Me[u]:$.config.stroke.dashArray;var ze=this.drawPath({d:o,stroke:h,strokeWidth:x,fill:E,fillOpacity:1,classes:G,strokeLinecap:k,strokeDashArray:Be});if(ze.attr("index",u),Q&&ze.attr({"clip-path":"url(#gridRectMask".concat($.globals.cuid,")")}),$.config.states.normal.filter.type!=="none")te.getDefaultFilter(ze,u);else if($.config.chart.dropShadow.enabled&&I&&(!$.config.chart.dropShadow.enabledOnSeries||$.config.chart.dropShadow.enabledOnSeries&&$.config.chart.dropShadow.enabledOnSeries.indexOf(u)!==-1)){var $e=$.config.chart.dropShadow;te.dropShadow(ze,$e,u)}ie&&(ze.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,ze)),ze.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,ze)),ze.node.addEventListener("mousedown",this.pathMouseDown.bind(this,ze))),ze.attr({pathTo:d,pathFrom:c});var Ze={el:ze,j:i,realIndex:u,pathFrom:c,pathTo:d,fill:E,strokeWidth:x,delay:N};return!de||$.globals.resized||$.globals.dataChanged?!$.globals.resized&&$.globals.dataChanged||ce.showDelayedElements():ce.animatePathsGradually(a(a({},Ze),{},{speed:L})),$.globals.dataChanged&&we&&Ce&&ce.animatePathsGradually(a(a({},Ze),{},{speed:W})),ze}},{key:"drawPattern",value:function(n,o,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(o,i,function(d){n==="horizontalLines"?d.line(0,0,i,0).stroke({color:u,width:c+1}):n==="verticalLines"?d.line(0,0,0,o).stroke({color:u,width:c+1}):n==="slantedLines"?d.line(0,0,o,i).stroke({color:u,width:c}):n==="squares"?d.rect(o,i).fill("none").stroke({color:u,width:c}):n==="circles"&&d.circle(o).fill("none").stroke({color:u,width:c})})}},{key:"drawGradient",value:function(n,o,i,u,c){var d,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,k=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,E=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,N=this.w;o.length<9&&o.indexOf("#")===0&&(o=p.hexToRgba(o,u)),i.length<9&&i.indexOf("#")===0&&(i=p.hexToRgba(i,c));var L=0,W=1,G=1,q=null;x!==null&&(L=x[0]!==void 0?x[0]/100:0,W=x[1]!==void 0?x[1]/100:1,G=x[2]!==void 0?x[2]/100:1,q=x[3]!==void 0?x[3]/100:null);var Q=!(N.config.chart.type!=="donut"&&N.config.chart.type!=="pie"&&N.config.chart.type!=="polarArea"&&N.config.chart.type!=="bubble");if(d=k===null||k.length===0?N.globals.dom.Paper.gradient(Q?"radial":"linear",function(C){C.at(L,o,u),C.at(W,i,c),C.at(G,i,c),q!==null&&C.at(q,o,u)}):N.globals.dom.Paper.gradient(Q?"radial":"linear",function(C){(Array.isArray(k[E])?k[E]:k).forEach(function(I){C.at(I.offset/100,I.color,I.opacity)})}),Q){var re=N.globals.gridWidth/2,ie=N.globals.gridHeight/2;N.config.chart.type!=="bubble"?d.attr({gradientUnits:"userSpaceOnUse",cx:re,cy:ie,r:h}):d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else n==="vertical"?d.from(0,0).to(0,1):n==="diagonal"?d.from(0,0).to(1,1):n==="horizontal"?d.from(0,1).to(1,1):n==="diagonal2"&&d.from(1,0).to(0,1);return d}},{key:"getTextBasedOnMaxWidth",value:function(n){var o=n.text,i=n.maxWidth,u=n.fontSize,c=n.fontFamily,d=this.getTextRects(o,u,c),h=d.width/o.length,x=Math.floor(i/h);return i<d.width?o.slice(0,x-3)+"...":o}},{key:"drawText",value:function(n){var o=this,i=n.x,u=n.y,c=n.text,d=n.textAnchor,h=n.fontSize,x=n.fontFamily,k=n.fontWeight,E=n.foreColor,N=n.opacity,L=n.maxWidth,W=n.cssClass,G=W===void 0?"":W,q=n.isPlainText,Q=q===void 0||q,re=this.w;c===void 0&&(c="");var ie=c;d||(d="start"),E&&E.length||(E=re.config.chart.foreColor),x=x||re.config.chart.fontFamily,k=k||"regular";var C,I={maxWidth:L,fontSize:h=h||"11px",fontFamily:x};return Array.isArray(c)?C=re.globals.dom.Paper.text(function($){for(var te=0;te<c.length;te++)ie=c[te],L&&(ie=o.getTextBasedOnMaxWidth(a({text:c[te]},I))),te===0?$.tspan(ie):$.tspan(ie).newLine()}):(L&&(ie=this.getTextBasedOnMaxWidth(a({text:c},I))),C=Q?re.globals.dom.Paper.plain(c):re.globals.dom.Paper.text(function($){return $.tspan(ie)})),C.attr({x:i,y:u,"text-anchor":d,"dominant-baseline":"auto","font-size":h,"font-family":x,"font-weight":k,fill:E,class:"apexcharts-text "+G}),C.node.style.fontFamily=x,C.node.style.opacity=N,C}},{key:"drawMarker",value:function(n,o,i){n=n||0;var u=i.pSize||0,c=null;if(i.shape==="square"||i.shape==="rect"){var d=i.pRadius===void 0?u/2:i.pRadius;o!==null&&u||(u=0,d=0);var h=1.2*u+d,x=this.drawRect(h,h,h,h,d);x.attr({x:n-h/2,y:o-h/2,cx:n,cy:o,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),c=x}else i.shape!=="circle"&&i.shape||(p.isNumber(o)||(u=0,o=0),c=this.drawCircle(u,{cx:n,cy:o,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return c}},{key:"pathMouseEnter",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}]),(i.config.states.active.filter.type==="none"||n.node.getAttribute("selected")!=="true")&&i.config.states.hover.filter.type!=="none"&&!i.globals.isTouchDevice){var h=i.config.states.hover.filter;u.applyFilter(n,c,h.type,h.value)}}},{key:"pathMouseLeave",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}]),i.config.states.active.filter.type!=="none"&&n.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&u.getDefaultFilter(n,c)}},{key:"pathMouseDown",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10),h="false";if(n.node.getAttribute("selected")==="true"){if(n.node.setAttribute("selected","false"),i.globals.selectedDataPoints[c].indexOf(d)>-1){var x=i.globals.selectedDataPoints[c].indexOf(d);i.globals.selectedDataPoints[c].splice(x,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var k=i.globals.dom.Paper.select(".apexcharts-series path").members,E=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,N=function(G){Array.prototype.forEach.call(G,function(q){q.node.setAttribute("selected","false"),u.getDefaultFilter(q,c)})};N(k),N(E)}n.node.setAttribute("selected","true"),h="true",i.globals.selectedDataPoints[c]===void 0&&(i.globals.selectedDataPoints[c]=[]),i.globals.selectedDataPoints[c].push(d)}if(h==="true"){var L=i.config.states.active.filter;if(L!=="none")u.applyFilter(n,c,L.type,L.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var W=i.config.states.hover.filter;u.applyFilter(n,c,W.type,W.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?u.getDefaultFilter(n,c):(W=i.config.states.hover.filter,u.applyFilter(n,c,W.type,W.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(o,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:c,dataPointIndex:d,w:i}),o&&this.ctx.events.fireEvent("dataPointSelection",[o,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:c,dataPointIndex:d,w:i}])}},{key:"rotateAroundCenter",value:function(n){var o={};return n&&typeof n.getBBox=="function"&&(o=n.getBBox()),{x:o.x+o.width/2,y:o.y+o.height/2}}},{key:"getTextRects",value:function(n,o,i,u){var c=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],d=this.w,h=this.drawText({x:-200,y:-200,text:n,textAnchor:"start",fontSize:o,fontFamily:i,foreColor:"#fff",opacity:0});u&&h.attr("transform",u),d.globals.dom.Paper.add(h);var x=h.bbox();return c||(x=h.node.getBoundingClientRect()),h.remove(),{width:x.width,height:x.height}}},{key:"placeTextWithEllipsis",value:function(n,o,i){if(typeof n.getComputedTextLength=="function"&&(n.textContent=o,o.length>0&&n.getComputedTextLength()>=i/1.1)){for(var u=o.length-3;u>0;u-=3)if(n.getSubStringLength(0,u)<=i/1.1)return void(n.textContent=o.substring(0,u)+"...");n.textContent="."}}}],[{key:"setAttrs",value:function(n,o){for(var i in o)o.hasOwnProperty(i)&&n.setAttribute(i,o[i])}}]),J}(),_=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getStackedSeriesTotals",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=this.w,i=[];if(o.globals.series.length===0)return i;for(var u=0;u<o.globals.series[o.globals.maxValsInArrayIndex].length;u++){for(var c=0,d=0;d<o.globals.series.length;d++)o.globals.series[d][u]!==void 0&&n.indexOf(d)===-1&&(c+=o.globals.series[d][u]);i.push(c)}return i}},{key:"getSeriesTotalByIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return n===null?this.w.config.series.reduce(function(o,i){return o+i},0):this.w.globals.series[n].reduce(function(o,i){return o+i},0)}},{key:"isSeriesNull",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(n===null?this.w.config.series.filter(function(o){return o!==null}):this.w.config.series[n].data.filter(function(o){return o!==null})).length===0}},{key:"seriesHaveSameValues",value:function(n){return this.w.globals.series[n].every(function(o,i,u){return o===u[0]})}},{key:"getCategoryLabels",value:function(n){var o=this.w,i=n.slice();return o.config.xaxis.convertedCatToNumeric&&(i=n.map(function(u,c){return o.config.xaxis.labels.formatter(u-o.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var n=this.w;n.globals.maxValsInArrayIndex=n.globals.series.map(function(o){return o.length}).indexOf(Math.max.apply(Math,n.globals.series.map(function(o){return o.length})))}},{key:"getLargestMarkerSize",value:function(){var n=this.w,o=0;return n.globals.markers.size.forEach(function(i){o=Math.max(o,i)}),n.config.markers.discrete&&n.config.markers.discrete.length&&n.config.markers.discrete.forEach(function(i){o=Math.max(o,i.size)}),o>0&&(o+=n.config.markers.hover.sizeOffset+1),n.globals.markers.largestSize=o,o}},{key:"getSeriesTotals",value:function(){var n=this.w;n.globals.seriesTotals=n.globals.series.map(function(o,i){var u=0;if(Array.isArray(o))for(var c=0;c<o.length;c++)u+=o[c];else u+=o;return u})}},{key:"getSeriesTotalsXRange",value:function(n,o){var i=this.w;return i.globals.series.map(function(u,c){for(var d=0,h=0;h<u.length;h++)i.globals.seriesX[c][h]>n&&i.globals.seriesX[c][h]<o&&(d+=u[h]);return d})}},{key:"getPercentSeries",value:function(){var n=this.w;n.globals.seriesPercent=n.globals.series.map(function(o,i){var u=[];if(Array.isArray(o))for(var c=0;c<o.length;c++){var d=n.globals.stackedSeriesTotals[c],h=0;d&&(h=100*o[c]/d),u.push(h)}else{var x=100*o/n.globals.seriesTotals.reduce(function(k,E){return k+E},0);u.push(x)}return u})}},{key:"getCalculatedRatios",value:function(){var n,o,i,u,c=this.w.globals,d=[],h=0,x=[],k=.1,E=0;if(c.yRange=[],c.isMultipleYAxis)for(var N=0;N<c.minYArr.length;N++)c.yRange.push(Math.abs(c.minYArr[N]-c.maxYArr[N])),x.push(0);else c.yRange.push(Math.abs(c.minY-c.maxY));c.xRange=Math.abs(c.maxX-c.minX),c.zRange=Math.abs(c.maxZ-c.minZ);for(var L=0;L<c.yRange.length;L++)d.push(c.yRange[L]/c.gridHeight);if(o=c.xRange/c.gridWidth,i=Math.abs(c.initialMaxX-c.initialMinX)/c.gridWidth,n=c.yRange/c.gridWidth,u=c.xRange/c.gridHeight,(h=c.zRange/c.gridHeight*16)||(h=1),c.minY!==Number.MIN_VALUE&&Math.abs(c.minY)!==0&&(c.hasNegs=!0),c.isMultipleYAxis){x=[];for(var W=0;W<d.length;W++)x.push(-c.minYArr[W]/d[W])}else x.push(-c.minY/d[0]),c.minY!==Number.MIN_VALUE&&Math.abs(c.minY)!==0&&(k=-c.minY/n,E=c.minX/o);return{yRatio:d,invertedYRatio:n,zRatio:h,xRatio:o,initialXRatio:i,invertedXRatio:u,baseLineInvertedY:k,baseLineY:x,baseLineX:E}}},{key:"getLogSeries",value:function(n){var o=this,i=this.w;return i.globals.seriesLog=n.map(function(u,c){return i.config.yaxis[c]&&i.config.yaxis[c].logarithmic?u.map(function(d){return d===null?null:o.getLogVal(i.config.yaxis[c].logBase,d,c)}):u}),i.globals.invalidLogScale?n:i.globals.seriesLog}},{key:"getBaseLog",value:function(n,o){return Math.log(o)/Math.log(n)}},{key:"getLogVal",value:function(n,o,i){if(o===0)return 0;var u=this.w,c=u.globals.minYArr[i]===0?-1:this.getBaseLog(n,u.globals.minYArr[i]),d=(u.globals.maxYArr[i]===0?0:this.getBaseLog(n,u.globals.maxYArr[i]))-c;return o<1?o/d:(this.getBaseLog(n,o)-c)/d}},{key:"getLogYRatios",value:function(n){var o=this,i=this.w,u=this.w.globals;return u.yLogRatio=n.slice(),u.logYRange=u.yRange.map(function(c,d){if(i.config.yaxis[d]&&o.w.config.yaxis[d].logarithmic){var h,x=-Number.MAX_VALUE,k=Number.MIN_VALUE;return u.seriesLog.forEach(function(E,N){E.forEach(function(L){i.config.yaxis[N]&&i.config.yaxis[N].logarithmic&&(x=Math.max(L,x),k=Math.min(L,k))})}),h=Math.pow(u.yRange[d],Math.abs(k-x)/u.yRange[d]),u.yLogRatio[d]=h/u.gridHeight,h}}),u.invalidLogScale?n.slice():u.yLogRatio}}],[{key:"checkComboSeries",value:function(n){var o=!1,i=0,u=0;return n.length&&n[0].type!==void 0&&n.forEach(function(c){c.type!=="bar"&&c.type!=="column"&&c.type!=="candlestick"&&c.type!=="boxPlot"||i++,c.type!==void 0&&u++}),u>0&&(o=!0),{comboBarCount:i,comboCharts:o}}},{key:"extendArrayProps",value:function(n,o,i){return o.yaxis&&(o=n.extendYAxis(o,i)),o.annotations&&(o.annotations.yaxis&&(o=n.extendYAxisAnnotations(o)),o.annotations.xaxis&&(o=n.extendXAxisAnnotations(o)),o.annotations.points&&(o=n.extendPointAnnotations(o))),o}}]),J}(),M=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n}return b(J,[{key:"setOrientations",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(n.label.orientation==="vertical"){var u=o!==null?o:0,c=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(u,"']"));if(c!==null){var d=c.getBoundingClientRect();c.setAttribute("x",parseFloat(c.getAttribute("x"))-d.height+4),n.label.position==="top"?c.setAttribute("y",parseFloat(c.getAttribute("y"))+d.width):c.setAttribute("y",parseFloat(c.getAttribute("y"))-d.width);var h=this.annoCtx.graphics.rotateAroundCenter(c),x=h.x,k=h.y;c.setAttribute("transform","rotate(-90 ".concat(x," ").concat(k,")"))}}}},{key:"addBackgroundToAnno",value:function(n,o){var i=this.w;if(!n||o.label.text===void 0||o.label.text!==void 0&&!String(o.label.text).trim())return null;var u=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),c=n.getBoundingClientRect(),d=o.label.style.padding.left,h=o.label.style.padding.right,x=o.label.style.padding.top,k=o.label.style.padding.bottom;o.label.orientation==="vertical"&&(x=o.label.style.padding.left,k=o.label.style.padding.right,d=o.label.style.padding.top,h=o.label.style.padding.bottom);var E=c.left-u.left-d,N=c.top-u.top-x,L=this.annoCtx.graphics.drawRect(E-i.globals.barPadForNumericAxis,N,c.width+d+h,c.height+x+k,o.label.borderRadius,o.label.style.background,1,o.label.borderWidth,o.label.borderColor,0);return o.id&&L.node.classList.add(o.id),L}},{key:"annotationsBackground",value:function(){var n=this,o=this.w,i=function(u,c,d){var h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(d,"-annotations .apexcharts-").concat(d,"-annotation-label[rel='").concat(c,"']"));if(h){var x=h.parentNode,k=n.addBackgroundToAnno(h,u);k&&(x.insertBefore(k.node,h),u.label.mouseEnter&&k.node.addEventListener("mouseenter",u.label.mouseEnter.bind(n,u)),u.label.mouseLeave&&k.node.addEventListener("mouseleave",u.label.mouseLeave.bind(n,u)),u.label.click&&k.node.addEventListener("click",u.label.click.bind(n,u)))}};o.config.annotations.xaxis.map(function(u,c){i(u,c,"xaxis")}),o.config.annotations.yaxis.map(function(u,c){i(u,c,"yaxis")}),o.config.annotations.points.map(function(u,c){i(u,c,"point")})}},{key:"getY1Y2",value:function(n,o){var i,u=n==="y1"?o.y:o.y2,c=this.w;if(this.annoCtx.invertAxis){var d=c.globals.labels.indexOf(u);c.config.xaxis.convertedCatToNumeric&&(d=c.globals.categoryLabels.indexOf(u));var h=c.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(d+1)+")");h&&(i=parseFloat(h.getAttribute("y")))}else{var x;c.config.yaxis[o.yAxisIndex].logarithmic?x=(u=new _(this.annoCtx.ctx).getLogVal(u,o.yAxisIndex))/c.globals.yLogRatio[o.yAxisIndex]:x=(u-c.globals.minYArr[o.yAxisIndex])/(c.globals.yRange[o.yAxisIndex]/c.globals.gridHeight),i=c.globals.gridHeight-x,!o.marker||o.y!==void 0&&o.y!==null||(i=0),c.config.yaxis[o.yAxisIndex]&&c.config.yaxis[o.yAxisIndex].reversed&&(i=x)}return typeof u=="string"&&u.indexOf("px")>-1&&(i=parseFloat(u)),i}},{key:"getX1X2",value:function(n,o){var i=this.w,u=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,c=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,d=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,h=(o.x-u)/(d/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(h=(c-o.x)/(d/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(h=this.getStringX(o.x));var x=(o.x2-u)/(d/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(x=(c-o.x2)/(d/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(x=this.getStringX(o.x2)),o.x!==void 0&&o.x!==null||!o.marker||(h=i.globals.gridWidth),n==="x1"&&typeof o.x=="string"&&o.x.indexOf("px")>-1&&(h=parseFloat(o.x)),n==="x2"&&typeof o.x2=="string"&&o.x2.indexOf("px")>-1&&(x=parseFloat(o.x2)),n==="x1"?h:x}},{key:"getStringX",value:function(n){var o=this.w,i=n;o.config.xaxis.convertedCatToNumeric&&o.globals.categoryLabels.length&&(n=o.globals.categoryLabels.indexOf(n)+1);var u=o.globals.labels.indexOf(n),c=o.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(u+1)+")");return c&&(i=parseFloat(c.getAttribute("x"))),i}}]),J}(),X=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addXaxisAnnotation",value:function(n,o,i){var u,c=this.w,d=this.helpers.getX1X2("x1",n),h=n.label.text,x=n.strokeDashArray;if(p.isNumber(d)){if(n.x2===null||n.x2===void 0){var k=this.annoCtx.graphics.drawLine(d+n.offsetX,0+n.offsetY,d+n.offsetX,c.globals.gridHeight+n.offsetY,n.borderColor,x,n.borderWidth);o.appendChild(k.node),n.id&&k.node.classList.add(n.id)}else{if((u=this.helpers.getX1X2("x2",n))<d){var E=d;d=u,u=E}var N=this.annoCtx.graphics.drawRect(d+n.offsetX,0+n.offsetY,u-d,c.globals.gridHeight+n.offsetY,0,n.fillColor,n.opacity,1,n.borderColor,x);N.node.classList.add("apexcharts-annotation-rect"),N.attr("clip-path","url(#gridRectMask".concat(c.globals.cuid,")")),o.appendChild(N.node),n.id&&N.node.classList.add(n.id)}var L=this.annoCtx.graphics.getTextRects(h,parseFloat(n.label.style.fontSize)),W=n.label.position==="top"?4:n.label.position==="center"?c.globals.gridHeight/2+(n.label.orientation==="vertical"?L.width/2:0):c.globals.gridHeight,G=this.annoCtx.graphics.drawText({x:d+n.label.offsetX,y:W+n.label.offsetY-(n.label.orientation==="vertical"?n.label.position==="top"?L.width/2-12:-L.width/2:0),text:h,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});G.attr({rel:i}),o.appendChild(G.node),this.annoCtx.helpers.setOrientations(n,i)}}},{key:"drawXAxisAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return o.config.annotations.xaxis.map(function(u,c){n.addXaxisAnnotation(u,i.node,c)}),i}}]),J}(),H=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addYaxisAnnotation",value:function(n,o,i){var u,c=this.w,d=n.strokeDashArray,h=this.helpers.getY1Y2("y1",n),x=n.label.text;if(n.y2===null||n.y2===void 0){var k=this.annoCtx.graphics.drawLine(0+n.offsetX,h+n.offsetY,this._getYAxisAnnotationWidth(n),h+n.offsetY,n.borderColor,d,n.borderWidth);o.appendChild(k.node),n.id&&k.node.classList.add(n.id)}else{if((u=this.helpers.getY1Y2("y2",n))>h){var E=h;h=u,u=E}var N=this.annoCtx.graphics.drawRect(0+n.offsetX,u+n.offsetY,this._getYAxisAnnotationWidth(n),h-u,0,n.fillColor,n.opacity,1,n.borderColor,d);N.node.classList.add("apexcharts-annotation-rect"),N.attr("clip-path","url(#gridRectMask".concat(c.globals.cuid,")")),o.appendChild(N.node),n.id&&N.node.classList.add(n.id)}var L=n.label.position==="right"?c.globals.gridWidth:n.label.position==="center"?c.globals.gridWidth/2:0,W=this.annoCtx.graphics.drawText({x:L+n.label.offsetX,y:(u??h)+n.label.offsetY-3,text:x,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});W.attr({rel:i}),o.appendChild(W.node)}},{key:"_getYAxisAnnotationWidth",value:function(n){var o=this.w;return o.globals.gridWidth,(n.width.indexOf("%")>-1?o.globals.gridWidth*parseInt(n.width,10)/100:parseInt(n.width,10))+n.offsetX}},{key:"drawYAxisAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return o.config.annotations.yaxis.map(function(u,c){n.addYaxisAnnotation(u,i.node,c)}),i}}]),J}(),B=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addPointAnnotation",value:function(n,o,i){this.w;var u=this.helpers.getX1X2("x1",n),c=this.helpers.getY1Y2("y1",n);if(p.isNumber(u)){var d={pSize:n.marker.size,pointStrokeWidth:n.marker.strokeWidth,pointFillColor:n.marker.fillColor,pointStrokeColor:n.marker.strokeColor,shape:n.marker.shape,pRadius:n.marker.radius,class:"apexcharts-point-annotation-marker ".concat(n.marker.cssClass," ").concat(n.id?n.id:"")},h=this.annoCtx.graphics.drawMarker(u+n.marker.offsetX,c+n.marker.offsetY,d);o.appendChild(h.node);var x=n.label.text?n.label.text:"",k=this.annoCtx.graphics.drawText({x:u+n.label.offsetX,y:c+n.label.offsetY-n.marker.size-parseFloat(n.label.style.fontSize)/1.6,text:x,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});if(k.attr({rel:i}),o.appendChild(k.node),n.customSVG.SVG){var E=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+n.customSVG.cssClass});E.attr({transform:"translate(".concat(u+n.customSVG.offsetX,", ").concat(c+n.customSVG.offsetY,")")}),E.node.innerHTML=n.customSVG.SVG,o.appendChild(E.node)}if(n.image.path){var N=n.image.width?n.image.width:20,L=n.image.height?n.image.height:20;h=this.annoCtx.addImage({x:u+n.image.offsetX-N/2,y:c+n.image.offsetY-L/2,width:N,height:L,path:n.image.path,appendTo:".apexcharts-point-annotations"})}n.mouseEnter&&h.node.addEventListener("mouseenter",n.mouseEnter.bind(this,n)),n.mouseLeave&&h.node.addEventListener("mouseleave",n.mouseLeave.bind(this,n)),n.click&&h.node.addEventListener("click",n.click.bind(this,n))}}},{key:"drawPointAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return o.config.annotations.points.map(function(u,c){n.addPointAnnotation(u,i.node,c)}),i}}]),J}(),U={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},K=function(){function J(){l(this,J),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return b(J,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[U],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(n){return new Date(n).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(n){return n}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(n){return n+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(o,i){return o+i},0)/n.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(n){return n}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(n){return n}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(o,i){return o+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(n){return n!==null?n:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(n){return n?n+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),J}(),oe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.graphics=new m(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new M(this),this.xAxisAnnotations=new X(this),this.yAxisAnnotations=new H(this),this.pointsAnnotations=new B(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return b(J,[{key:"drawAxesAnnotations",value:function(){var n=this.w;if(n.globals.axisCharts){for(var o=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),u=this.pointsAnnotations.drawPointAnnotations(),c=n.config.chart.animations.enabled,d=[o,i,u],h=[i.node,o.node,u.node],x=0;x<3;x++)n.globals.dom.elGraphical.add(d[x]),!c||n.globals.resized||n.globals.dataChanged||n.config.chart.type!=="scatter"&&n.config.chart.type!=="bubble"&&n.globals.dataPoints>1&&h[x].classList.add("apexcharts-element-hidden"),n.globals.delayedElements.push({el:h[x],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var n=this;this.w.config.annotations.images.map(function(o,i){n.addImage(o,i)})}},{key:"drawTextAnnos",value:function(){var n=this;this.w.config.annotations.texts.map(function(o,i){n.addText(o,i)})}},{key:"addXaxisAnnotation",value:function(n,o,i){this.xAxisAnnotations.addXaxisAnnotation(n,o,i)}},{key:"addYaxisAnnotation",value:function(n,o,i){this.yAxisAnnotations.addYaxisAnnotation(n,o,i)}},{key:"addPointAnnotation",value:function(n,o,i){this.pointsAnnotations.addPointAnnotation(n,o,i)}},{key:"addText",value:function(n,o){var i=n.x,u=n.y,c=n.text,d=n.textAnchor,h=n.foreColor,x=n.fontSize,k=n.fontFamily,E=n.fontWeight,N=n.cssClass,L=n.backgroundColor,W=n.borderWidth,G=n.strokeDashArray,q=n.borderRadius,Q=n.borderColor,re=n.appendTo,ie=re===void 0?".apexcharts-annotations":re,C=n.paddingLeft,I=C===void 0?4:C,$=n.paddingRight,te=$===void 0?4:$,ce=n.paddingBottom,de=ce===void 0?2:ce,we=n.paddingTop,Ce=we===void 0?2:we,Me=this.w,Be=this.graphics.drawText({x:i,y:u,text:c,textAnchor:d||"start",fontSize:x||"12px",fontWeight:E||"regular",fontFamily:k||Me.config.chart.fontFamily,foreColor:h||Me.config.chart.foreColor,cssClass:N}),ze=Me.globals.dom.baseEl.querySelector(ie);ze&&ze.appendChild(Be.node);var $e=Be.bbox();if(c){var Ze=this.graphics.drawRect($e.x-I,$e.y-Ce,$e.width+I+te,$e.height+de+Ce,q,L||"transparent",1,W,Q,G);ze.insertBefore(Ze.node,Be.node)}}},{key:"addImage",value:function(n,o){var i=this.w,u=n.path,c=n.x,d=c===void 0?0:c,h=n.y,x=h===void 0?0:h,k=n.width,E=k===void 0?20:k,N=n.height,L=N===void 0?20:N,W=n.appendTo,G=W===void 0?".apexcharts-annotations":W,q=i.globals.dom.Paper.image(u);q.size(E,L).move(d,x);var Q=i.globals.dom.baseEl.querySelector(G);return Q&&Q.appendChild(q.node),q}},{key:"addXaxisAnnotationExternal",value:function(n,o,i){return this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(n,o,i){return this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(n,o,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(n){var o=n.params,i=n.pushToMemory,u=n.context,c=n.type,d=n.contextMethod,h=u,x=h.w,k=x.globals.dom.baseEl.querySelector(".apexcharts-".concat(c,"-annotations")),E=k.childNodes.length+1,N=new K,L=Object.assign({},c==="xaxis"?N.xAxisAnnotation:c==="yaxis"?N.yAxisAnnotation:N.pointAnnotation),W=p.extend(L,o);switch(c){case"xaxis":this.addXaxisAnnotation(W,k,E);break;case"yaxis":this.addYaxisAnnotation(W,k,E);break;case"point":this.addPointAnnotation(W,k,E)}var G=x.globals.dom.baseEl.querySelector(".apexcharts-".concat(c,"-annotations .apexcharts-").concat(c,"-annotation-label[rel='").concat(E,"']")),q=this.helpers.addBackgroundToAnno(G,W);return q&&k.insertBefore(q.node,G),i&&x.globals.memory.methodsToExec.push({context:h,id:W.id?W.id:p.randomId(),method:d,label:"addAnnotation",params:o}),u}},{key:"clearAnnotations",value:function(n){var o=n.w,i=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");o.globals.memory.methodsToExec.map(function(u,c){u.label!=="addText"&&u.label!=="addAnnotation"||o.globals.memory.methodsToExec.splice(c,1)}),i=p.listToArray(i),Array.prototype.forEach.call(i,function(u){for(;u.firstChild;)u.removeChild(u.firstChild)})}},{key:"removeAnnotation",value:function(n,o){var i=n.w,u=i.globals.dom.baseEl.querySelectorAll(".".concat(o));u&&(i.globals.memory.methodsToExec.map(function(c,d){c.id===o&&i.globals.memory.methodsToExec.splice(d,1)}),Array.prototype.forEach.call(u,function(c){c.parentElement.removeChild(c)}))}}]),J}(),ne=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return b(J,[{key:"isValidDate",value:function(n){return!isNaN(this.parseDate(n))}},{key:"getTimeStamp",value:function(n){return Date.parse(n)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toISOString().substr(0,25)).getTime():new Date(n).getTime():n}},{key:"getDate",value:function(n){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toUTCString()):new Date(n)}},{key:"parseDate",value:function(n){var o=Date.parse(n);if(!isNaN(o))return this.getTimeStamp(n);var i=Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(n){return Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(n,o){var i=this.w.globals.locale,u=this.w.config.xaxis.labels.datetimeUTC,c=["\0"].concat(R(i.months)),d=[""].concat(R(i.shortMonths)),h=[""].concat(R(i.days)),x=[""].concat(R(i.shortDays));function k(de,we){var Ce=de+"";for(we=we||2;Ce.length<we;)Ce="0"+Ce;return Ce}var E=u?n.getUTCFullYear():n.getFullYear();o=(o=(o=o.replace(/(^|[^\\])yyyy+/g,"$1"+E)).replace(/(^|[^\\])yy/g,"$1"+E.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+E);var N=(u?n.getUTCMonth():n.getMonth())+1;o=(o=(o=(o=o.replace(/(^|[^\\])MMMM+/g,"$1"+c[0])).replace(/(^|[^\\])MMM/g,"$1"+d[0])).replace(/(^|[^\\])MM/g,"$1"+k(N))).replace(/(^|[^\\])M/g,"$1"+N);var L=u?n.getUTCDate():n.getDate();o=(o=(o=(o=o.replace(/(^|[^\\])dddd+/g,"$1"+h[0])).replace(/(^|[^\\])ddd/g,"$1"+x[0])).replace(/(^|[^\\])dd/g,"$1"+k(L))).replace(/(^|[^\\])d/g,"$1"+L);var W=u?n.getUTCHours():n.getHours(),G=W>12?W-12:W===0?12:W;o=(o=(o=(o=o.replace(/(^|[^\\])HH+/g,"$1"+k(W))).replace(/(^|[^\\])H/g,"$1"+W)).replace(/(^|[^\\])hh+/g,"$1"+k(G))).replace(/(^|[^\\])h/g,"$1"+G);var q=u?n.getUTCMinutes():n.getMinutes();o=(o=o.replace(/(^|[^\\])mm+/g,"$1"+k(q))).replace(/(^|[^\\])m/g,"$1"+q);var Q=u?n.getUTCSeconds():n.getSeconds();o=(o=o.replace(/(^|[^\\])ss+/g,"$1"+k(Q))).replace(/(^|[^\\])s/g,"$1"+Q);var re=u?n.getUTCMilliseconds():n.getMilliseconds();o=o.replace(/(^|[^\\])fff+/g,"$1"+k(re,3)),re=Math.round(re/10),o=o.replace(/(^|[^\\])ff/g,"$1"+k(re)),re=Math.round(re/10);var ie=W<12?"AM":"PM";o=(o=(o=o.replace(/(^|[^\\])f/g,"$1"+re)).replace(/(^|[^\\])TT+/g,"$1"+ie)).replace(/(^|[^\\])T/g,"$1"+ie.charAt(0));var C=ie.toLowerCase();o=(o=o.replace(/(^|[^\\])tt+/g,"$1"+C)).replace(/(^|[^\\])t/g,"$1"+C.charAt(0));var I=-n.getTimezoneOffset(),$=u||!I?"Z":I>0?"+":"-";if(!u){var te=(I=Math.abs(I))%60;$+=k(Math.floor(I/60))+":"+k(te)}o=o.replace(/(^|[^\\])K/g,"$1"+$);var ce=(u?n.getUTCDay():n.getDay())+1;return o=(o=(o=(o=(o=o.replace(new RegExp(h[0],"g"),h[ce])).replace(new RegExp(x[0],"g"),x[ce])).replace(new RegExp(c[0],"g"),c[N])).replace(new RegExp(d[0],"g"),d[N])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(n,o,i){var u=this.w;u.config.xaxis.min!==void 0&&(n=u.config.xaxis.min),u.config.xaxis.max!==void 0&&(o=u.config.xaxis.max);var c=this.getDate(n),d=this.getDate(o),h=this.formatDate(c,"yyyy MM dd HH mm ss fff").split(" "),x=this.formatDate(d,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(h[6],10),maxMillisecond:parseInt(x[6],10),minSecond:parseInt(h[5],10),maxSecond:parseInt(x[5],10),minMinute:parseInt(h[4],10),maxMinute:parseInt(x[4],10),minHour:parseInt(h[3],10),maxHour:parseInt(x[3],10),minDate:parseInt(h[2],10),maxDate:parseInt(x[2],10),minMonth:parseInt(h[1],10)-1,maxMonth:parseInt(x[1],10)-1,minYear:parseInt(h[0],10),maxYear:parseInt(x[0],10)}}},{key:"isLeapYear",value:function(n){return n%4==0&&n%100!=0||n%400==0}},{key:"calculcateLastDaysOfMonth",value:function(n,o,i){return this.determineDaysOfMonths(n,o)-i}},{key:"determineDaysOfYear",value:function(n){var o=365;return this.isLeapYear(n)&&(o=366),o}},{key:"determineRemainingDaysOfYear",value:function(n,o,i){var u=this.daysCntOfYear[o]+i;return o>1&&this.isLeapYear()&&u++,u}},{key:"determineDaysOfMonths",value:function(n,o){var i=30;switch(n=p.monthMod(n),!0){case this.months30.indexOf(n)>-1:n===2&&(i=this.isLeapYear(o)?29:28);break;case this.months31.indexOf(n)>-1:default:i=31}return i}}]),J}(),fe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.tooltipKeyFormat="dd MMM"}return b(J,[{key:"xLabelFormat",value:function(n,o,i,u){var c=this.w;if(c.config.xaxis.type==="datetime"&&c.config.xaxis.labels.formatter===void 0&&c.config.tooltip.x.formatter===void 0){var d=new ne(this.ctx);return d.formatDate(d.getDate(o),c.config.tooltip.x.format)}return n(o,i,u)}},{key:"defaultGeneralFormatter",value:function(n){return Array.isArray(n)?n.map(function(o){return o}):n}},{key:"defaultYFormatter",value:function(n,o,i){var u=this.w;return p.isNumber(n)&&(n=u.globals.yValueDecimal!==0?n.toFixed(o.decimalsInFloat!==void 0?o.decimalsInFloat:u.globals.yValueDecimal):u.globals.maxYArr[i]-u.globals.minYArr[i]<5?n.toFixed(1):n.toFixed(0)),n}},{key:"setLabelFormatters",value:function(){var n=this,o=this.w;return o.globals.xaxisTooltipFormatter=function(i){return n.defaultGeneralFormatter(i)},o.globals.ttKeyFormatter=function(i){return n.defaultGeneralFormatter(i)},o.globals.ttZFormatter=function(i){return i},o.globals.legendFormatter=function(i){return n.defaultGeneralFormatter(i)},o.config.xaxis.labels.formatter!==void 0?o.globals.xLabelFormatter=o.config.xaxis.labels.formatter:o.globals.xLabelFormatter=function(i){if(p.isNumber(i)){if(!o.config.xaxis.convertedCatToNumeric&&o.config.xaxis.type==="numeric"){if(p.isNumber(o.config.xaxis.decimalsInFloat))return i.toFixed(o.config.xaxis.decimalsInFloat);var u=o.globals.maxX-o.globals.minX;return u>0&&u<100?i.toFixed(1):i.toFixed(0)}return o.globals.isBarHorizontal&&o.globals.maxY-o.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof o.config.tooltip.x.formatter=="function"?o.globals.ttKeyFormatter=o.config.tooltip.x.formatter:o.globals.ttKeyFormatter=o.globals.xLabelFormatter,typeof o.config.xaxis.tooltip.formatter=="function"&&(o.globals.xaxisTooltipFormatter=o.config.xaxis.tooltip.formatter),(Array.isArray(o.config.tooltip.y)||o.config.tooltip.y.formatter!==void 0)&&(o.globals.ttVal=o.config.tooltip.y),o.config.tooltip.z.formatter!==void 0&&(o.globals.ttZFormatter=o.config.tooltip.z.formatter),o.config.legend.formatter!==void 0&&(o.globals.legendFormatter=o.config.legend.formatter),o.config.yaxis.forEach(function(i,u){i.labels.formatter!==void 0?o.globals.yLabelFormatters[u]=i.labels.formatter:o.globals.yLabelFormatters[u]=function(c){return o.globals.xyCharts?Array.isArray(c)?c.map(function(d){return n.defaultYFormatter(d,i,u)}):n.defaultYFormatter(c,i,u):c}}),o.globals}},{key:"heatmapLabelFormatters",value:function(){var n=this.w;if(n.config.chart.type==="heatmap"){n.globals.yAxisScale[0].result=n.globals.seriesNames.slice();var o=n.globals.seriesNames.reduce(function(i,u){return i.length>u.length?i:u},0);n.globals.yAxisScale[0].niceMax=o,n.globals.yAxisScale[0].niceMin=o}}}]),J}(),me=function(J){var n,o=J.isTimeline,i=J.ctx,u=J.seriesIndex,c=J.dataPointIndex,d=J.y1,h=J.y2,x=J.w,k=x.globals.seriesRangeStart[u][c],E=x.globals.seriesRangeEnd[u][c],N=x.globals.labels[c],L=x.config.series[u].name?x.config.series[u].name:"",W=x.globals.ttKeyFormatter,G=x.config.tooltip.y.title.formatter,q={w:x,seriesIndex:u,dataPointIndex:c,start:k,end:E};typeof G=="function"&&(L=G(L,q)),(n=x.config.series[u].data[c])!==null&&n!==void 0&&n.x&&(N=x.config.series[u].data[c].x),o||x.config.xaxis.type==="datetime"&&(N=new fe(i).xLabelFormat(x.globals.ttKeyFormatter,N,N,{i:void 0,dateFormatter:new ne(i).formatDate,w:x})),typeof W=="function"&&(N=W(N,q)),Number.isFinite(d)&&Number.isFinite(h)&&(k=d,E=h);var Q="",re="",ie=x.globals.colors[u];if(x.config.tooltip.x.formatter===void 0)if(x.config.xaxis.type==="datetime"){var C=new ne(i);Q=C.formatDate(C.getDate(k),x.config.tooltip.x.format),re=C.formatDate(C.getDate(E),x.config.tooltip.x.format)}else Q=k,re=E;else Q=x.config.tooltip.x.formatter(k),re=x.config.tooltip.x.formatter(E);return{start:k,end:E,startVal:Q,endVal:re,ylabel:N,color:ie,seriesName:L}},Se=function(J){var n=J.color,o=J.seriesName,i=J.ylabel,u=J.start,c=J.end,d=J.seriesIndex,h=J.dataPointIndex,x=J.ctx.tooltip.tooltipLabels.getFormatters(d);u=x.yLbFormatter(u),c=x.yLbFormatter(c);var k=x.yLbFormatter(J.w.globals.series[d][h]),E=`<span class="value start-value">
`.concat(u,`
</span> <span class="separator">-</span> <span class="value end-value">
`).concat(c,`
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+n+'">'+(o||"")+'</span></div><div> <span class="category">'+i+": </span> "+(J.w.globals.comboCharts?J.w.config.series[d].type==="rangeArea"||J.w.config.series[d].type==="rangeBar"?E:"<span>".concat(k,"</span>"):E)+" </div></div>"},be=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(n){return this.hideYAxis(),p.extend(n,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),a(a({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var n=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(o){var i=o.seriesIndex,u=o.dataPointIndex,c=o.w;return n._getBoxTooltip(c,i,u,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var n=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(o){var i=o.seriesIndex,u=o.dataPointIndex,c=o.w;return n._getBoxTooltip(c,i,u,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(n,o){o.ctx;var i=o.seriesIndex,u=o.dataPointIndex,c=o.w,d=function(){var h=c.globals.seriesRangeStart[i][u];return c.globals.seriesRangeEnd[i][u]-h};return c.globals.comboCharts?c.config.series[i].type==="rangeBar"||c.config.series[i].type==="rangeArea"?d():n:d()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(n){return n.w.config.plotOptions&&n.w.config.plotOptions.bar&&n.w.config.plotOptions.bar.horizontal?function(o){var i=me(a(a({},o),{},{isTimeline:!0})),u=i.color,c=i.seriesName,d=i.ylabel,h=i.startVal,x=i.endVal;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n):function(o){var i=me(o),u=i.color,c=i.seriesName,d=i.ylabel,h=i.start,x=i.end;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(n){var o,i;return(o=n.plotOptions.bar)!==null&&o!==void 0&&o.barHeight||(n.plotOptions.bar.barHeight=2),(i=n.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(n.plotOptions.bar.columnWidth=2),n}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(n){return function(o){var i=me(o),u=i.color,c=i.seriesName,d=i.ylabel,h=i.start,x=i.end;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n)}}}}},{key:"brush",value:function(n){return p.extend(n,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(n){n.dataLabels=n.dataLabels||{},n.dataLabels.formatter=n.dataLabels.formatter||void 0;var o=n.dataLabels.formatter;return n.yaxis.forEach(function(i,u){n.yaxis[u].min=0,n.yaxis[u].max=100}),n.chart.type==="bar"&&(n.dataLabels.formatter=o||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),n}},{key:"stackedBars",value:function(){var n=this.bar();return a(a({},n),{},{plotOptions:a(a({},n.plotOptions),{},{bar:a(a({},n.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(n){return n.xaxis.convertedCatToNumeric=!0,n}},{key:"convertCatToNumericXaxis",value:function(n,o,i){n.xaxis.type="numeric",n.xaxis.labels=n.xaxis.labels||{},n.xaxis.labels.formatter=n.xaxis.labels.formatter||function(d){return p.isNumber(d)?Math.floor(d):d};var u=n.xaxis.labels.formatter,c=n.xaxis.categories&&n.xaxis.categories.length?n.xaxis.categories:n.labels;return i&&i.length&&(c=i.map(function(d){return Array.isArray(d)?d:String(d)})),c&&c.length&&(n.xaxis.labels.formatter=function(d){return p.isNumber(d)?u(c[Math.floor(d)-1]):u(d)}),n.xaxis.categories=[],n.labels=[],n.xaxis.tickAmount=n.xaxis.tickAmount||"dataPoints",n}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(n){return n},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(n,o,i,u,c){var d=n.globals.seriesCandleO[o][i],h=n.globals.seriesCandleH[o][i],x=n.globals.seriesCandleM[o][i],k=n.globals.seriesCandleL[o][i],E=n.globals.seriesCandleC[o][i];return n.config.series[o].type&&n.config.series[o].type!==c?`<div class="apexcharts-custom-tooltip">
`.concat(n.config.series[o].name?n.config.series[o].name:"series-"+(o+1),": <strong>").concat(n.globals.series[o][i],`</strong>
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(n.config.chart.type,'">')+"<div>".concat(u[0],': <span class="value">')+d+"</span></div>"+"<div>".concat(u[1],': <span class="value">')+h+"</span></div>"+(x?"<div>".concat(u[2],': <span class="value">')+x+"</span></div>":"")+"<div>".concat(u[3],': <span class="value">')+k+"</span></div>"+"<div>".concat(u[4],': <span class="value">')+E+"</span></div></div>"}}]),J}(),ue=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"init",value:function(n){var o=n.responsiveOverride,i=this.opts,u=new K,c=new be(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var d=u.init(),h={};if(i&&s(i)==="object"){var x,k,E,N,L,W,G,q,Q,re,ie={};ie=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?c[i.chart.type]():c.line(),(x=i.plotOptions)!==null&&x!==void 0&&(k=x.bar)!==null&&k!==void 0&&k.isFunnel&&(ie=c.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(ie=c.stackedBars()),(E=i.chart.brush)!==null&&E!==void 0&&E.enabled&&(ie=c.brush(ie)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=c.stacked100(i)),(N=i.plotOptions)!==null&&N!==void 0&&(L=N.bar)!==null&&L!==void 0&&L.isDumbbell&&(i=c.dumbbell(i)),((W=i)===null||W===void 0||(G=W.stroke)===null||G===void 0?void 0:G.curve)==="monotoneCubic"&&(i.stroke.curve="smooth"),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},o||(i.xaxis.convertedCatToNumeric=!1),((q=(i=this.checkForCatToNumericXAxis(this.chartType,ie,i)).chart.sparkline)!==null&&q!==void 0&&q.enabled||(Q=window.Apex.chart)!==null&&Q!==void 0&&(re=Q.sparkline)!==null&&re!==void 0&&re.enabled)&&(ie=c.sparkline(ie)),h=p.extend(d,ie)}var C=p.extend(h,window.Apex);return d=p.extend(C,i),d=this.handleUserInputErrors(d)}},{key:"checkForCatToNumericXAxis",value:function(n,o,i){var u,c,d=new be(i),h=(n==="bar"||n==="boxPlot")&&((u=i.plotOptions)===null||u===void 0||(c=u.bar)===null||c===void 0?void 0:c.horizontal),x=n==="pie"||n==="polarArea"||n==="donut"||n==="radar"||n==="radialBar"||n==="heatmap",k=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",E=i.xaxis.tickPlacement?i.xaxis.tickPlacement:o.xaxis&&o.xaxis.tickPlacement;return h||x||!k||E==="between"||(i=d.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(n,o){var i=new K;(n.yaxis===void 0||!n.yaxis||Array.isArray(n.yaxis)&&n.yaxis.length===0)&&(n.yaxis={}),n.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(n.yaxis=p.extend(n.yaxis,window.Apex.yaxis)),n.yaxis.constructor!==Array?n.yaxis=[p.extend(i.yAxis,n.yaxis)]:n.yaxis=p.extendArray(n.yaxis,i.yAxis);var u=!1;n.yaxis.forEach(function(d){d.logarithmic&&(u=!0)});var c=n.series;return o&&!c&&(c=o.config.series),u&&c.length!==n.yaxis.length&&c.length&&(n.yaxis=c.map(function(d,h){if(d.name||(c[h].name="series-".concat(h+1)),n.yaxis[h])return n.yaxis[h].seriesName=c[h].name,n.yaxis[h];var x=p.extend(i.yAxis,n.yaxis[0]);return x.show=!1,x})),u&&c.length>1&&c.length!==n.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),n}},{key:"extendAnnotations",value:function(n){return n.annotations===void 0&&(n.annotations={},n.annotations.yaxis=[],n.annotations.xaxis=[],n.annotations.points=[]),n=this.extendYAxisAnnotations(n),n=this.extendXAxisAnnotations(n),n=this.extendPointAnnotations(n)}},{key:"extendYAxisAnnotations",value:function(n){var o=new K;return n.annotations.yaxis=p.extendArray(n.annotations.yaxis!==void 0?n.annotations.yaxis:[],o.yAxisAnnotation),n}},{key:"extendXAxisAnnotations",value:function(n){var o=new K;return n.annotations.xaxis=p.extendArray(n.annotations.xaxis!==void 0?n.annotations.xaxis:[],o.xAxisAnnotation),n}},{key:"extendPointAnnotations",value:function(n){var o=new K;return n.annotations.points=p.extendArray(n.annotations.points!==void 0?n.annotations.points:[],o.pointAnnotation),n}},{key:"checkForDarkTheme",value:function(n){n.theme&&n.theme.mode==="dark"&&(n.tooltip||(n.tooltip={}),n.tooltip.theme!=="light"&&(n.tooltip.theme="dark"),n.chart.foreColor||(n.chart.foreColor="#f6f7f8"),n.chart.background||(n.chart.background="#424242"),n.theme.palette||(n.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(n){var o=n;if(o.tooltip.shared&&o.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(o.chart.type==="bar"&&o.plotOptions.bar.horizontal){if(o.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");o.yaxis[0].reversed&&(o.yaxis[0].opposite=!0),o.xaxis.tooltip.enabled=!1,o.yaxis[0].tooltip.enabled=!1,o.chart.zoom.enabled=!1}return o.chart.type!=="bar"&&o.chart.type!=="rangeBar"||o.tooltip.shared&&o.xaxis.crosshairs.width==="barWidth"&&o.series.length>1&&(o.xaxis.crosshairs.width="tickWidth"),o.chart.type!=="candlestick"&&o.chart.type!=="boxPlot"||o.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(o.chart.type," chart is not supported.")),o.yaxis[0].reversed=!1),o}}]),J}(),ge=function(){function J(){l(this,J)}return b(J,[{key:"initGlobalVars",value:function(n){n.series=[],n.seriesCandleO=[],n.seriesCandleH=[],n.seriesCandleM=[],n.seriesCandleL=[],n.seriesCandleC=[],n.seriesRangeStart=[],n.seriesRangeEnd=[],n.seriesRange=[],n.seriesPercent=[],n.seriesGoals=[],n.seriesX=[],n.seriesZ=[],n.seriesNames=[],n.seriesTotals=[],n.seriesLog=[],n.seriesColors=[],n.stackedSeriesTotals=[],n.seriesXvalues=[],n.seriesYvalues=[],n.labels=[],n.hasXaxisGroups=!1,n.groups=[],n.hasSeriesGroups=!1,n.seriesGroups=[],n.categoryLabels=[],n.timescaleLabels=[],n.noLabelsProvided=!1,n.resizeTimer=null,n.selectionResizeTimer=null,n.delayedElements=[],n.pointsArray=[],n.dataLabelsRects=[],n.isXNumeric=!1,n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1,n.isDataXYZ=!1,n.isMultiLineX=!1,n.isMultipleYAxis=!1,n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE,n.minYArr=[],n.maxYArr=[],n.maxX=-Number.MAX_VALUE,n.minX=Number.MAX_VALUE,n.initialMaxX=-Number.MAX_VALUE,n.initialMinX=Number.MAX_VALUE,n.maxDate=0,n.minDate=Number.MAX_VALUE,n.minZ=Number.MAX_VALUE,n.maxZ=-Number.MAX_VALUE,n.minXDiff=Number.MAX_VALUE,n.yAxisScale=[],n.xAxisScale=null,n.xAxisTicksPositions=[],n.yLabelsCoords=[],n.yTitleCoords=[],n.barPadForNumericAxis=0,n.padHorizontal=0,n.xRange=0,n.yRange=[],n.zRange=0,n.dataPoints=0,n.xTickAmount=0}},{key:"globalVars",value:function(n){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:n.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:n.chart.toolbar.autoSelected==="zoom"&&n.chart.toolbar.tools.zoom&&n.chart.zoom.enabled,panEnabled:n.chart.toolbar.autoSelected==="pan"&&n.chart.toolbar.tools.pan,selectionEnabled:n.chart.toolbar.autoSelected==="selection"&&n.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(n){var o=this.globalVars(n);return this.initGlobalVars(o),o.initialConfig=p.extend({},n),o.initialSeries=p.clone(n.series),o.lastXAxis=p.clone(o.initialConfig.xaxis),o.lastYAxis=p.clone(o.initialConfig.yaxis),o}}]),J}(),ye=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"init",value:function(){var n=new ue(this.opts).init({responsiveOverride:!1});return{config:n,globals:new ge().init(n)}}}]),J}(),_e=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.opts=null,this.seriesIndex=0}return b(J,[{key:"clippedImgArea",value:function(n){var o=this.w,i=o.config,u=parseInt(o.globals.gridWidth,10),c=parseInt(o.globals.gridHeight,10),d=u>c?u:c,h=n.image,x=0,k=0;n.width===void 0&&n.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(x=i.fill.image.width+1,k=i.fill.image.height):(x=d+1,k=d):(x=n.width,k=n.height);var E=document.createElementNS(o.globals.SVGNS,"pattern");m.setAttrs(E,{id:n.patternID,patternUnits:n.patternUnits?n.patternUnits:"userSpaceOnUse",width:x+"px",height:k+"px"});var N=document.createElementNS(o.globals.SVGNS,"image");E.appendChild(N),N.setAttributeNS(window.SVG.xlink,"href",h),m.setAttrs(N,{x:0,y:0,preserveAspectRatio:"none",width:x+"px",height:k+"px"}),N.style.opacity=n.opacity,o.globals.dom.elDefs.node.appendChild(E)}},{key:"getSeriesIndex",value:function(n){var o=this.w,i=o.config.chart.type;return(i==="bar"||i==="rangeBar")&&o.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=n.seriesNumber:this.seriesIndex=n.seriesNumber%o.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(n){var o=this.w;this.opts=n;var i,u,c,d=this.w.config;this.seriesIndex=this.getSeriesIndex(n);var h=this.getFillColors()[this.seriesIndex];o.globals.seriesColors[this.seriesIndex]!==void 0&&(h=o.globals.seriesColors[this.seriesIndex]),typeof h=="function"&&(h=h({seriesIndex:this.seriesIndex,dataPointIndex:n.dataPointIndex,value:n.value,w:o}));var x=n.fillType?n.fillType:this.getFillType(this.seriesIndex),k=Array.isArray(d.fill.opacity)?d.fill.opacity[this.seriesIndex]:d.fill.opacity;n.color&&(h=n.color),h||(h="#fff",console.warn("undefined color - ApexCharts"));var E=h;if(h.indexOf("rgb")===-1?h.length<9&&(E=p.hexToRgba(h,k)):h.indexOf("rgba")>-1&&(k=p.getOpacityFromRGBA(h)),n.opacity&&(k=n.opacity),x==="pattern"&&(u=this.handlePatternFill({fillConfig:n.fillConfig,patternFill:u,fillColor:h,fillOpacity:k,defaultColor:E})),x==="gradient"&&(c=this.handleGradientFill({fillConfig:n.fillConfig,fillColor:h,fillOpacity:k,i:this.seriesIndex})),x==="image"){var N=d.fill.image.src,L=n.patternID?n.patternID:"";this.clippedImgArea({opacity:k,image:Array.isArray(N)?n.seriesNumber<N.length?N[n.seriesNumber]:N[0]:N,width:n.width?n.width:void 0,height:n.height?n.height:void 0,patternUnits:n.patternUnits,patternID:"pattern".concat(o.globals.cuid).concat(n.seriesNumber+1).concat(L)}),i="url(#pattern".concat(o.globals.cuid).concat(n.seriesNumber+1).concat(L,")")}else i=x==="gradient"?c:x==="pattern"?u:E;return n.solid&&(i=E),i}},{key:"getFillType",value:function(n){var o=this.w;return Array.isArray(o.config.fill.type)?o.config.fill.type[n]:o.config.fill.type}},{key:"getFillColors",value:function(){var n=this.w,o=n.config,i=this.opts,u=[];return n.globals.comboCharts?n.config.series[this.seriesIndex].type==="line"?Array.isArray(n.globals.stroke.colors)?u=n.globals.stroke.colors:u.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?u=n.globals.fill.colors:u.push(n.globals.fill.colors):o.chart.type==="line"?Array.isArray(n.globals.stroke.colors)?u=n.globals.stroke.colors:u.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?u=n.globals.fill.colors:u.push(n.globals.fill.colors),i.fillColors!==void 0&&(u=[],Array.isArray(i.fillColors)?u=i.fillColors.slice():u.push(i.fillColors)),u}},{key:"handlePatternFill",value:function(n){var o=n.fillConfig,i=n.patternFill,u=n.fillColor,c=n.fillOpacity,d=n.defaultColor,h=this.w.config.fill;o&&(h=o);var x=this.opts,k=new m(this.ctx),E=Array.isArray(h.pattern.strokeWidth)?h.pattern.strokeWidth[this.seriesIndex]:h.pattern.strokeWidth,N=u;return Array.isArray(h.pattern.style)?i=h.pattern.style[x.seriesNumber]!==void 0?k.drawPattern(h.pattern.style[x.seriesNumber],h.pattern.width,h.pattern.height,N,E,c):d:i=k.drawPattern(h.pattern.style,h.pattern.width,h.pattern.height,N,E,c),i}},{key:"handleGradientFill",value:function(n){var o=n.fillColor,i=n.fillOpacity,u=n.fillConfig,c=n.i,d=this.w.config.fill;u&&(d=a(a({},d),u));var h,x=this.opts,k=new m(this.ctx),E=new p,N=d.gradient.type,L=o,W=d.gradient.opacityFrom===void 0?i:Array.isArray(d.gradient.opacityFrom)?d.gradient.opacityFrom[c]:d.gradient.opacityFrom;L.indexOf("rgba")>-1&&(W=p.getOpacityFromRGBA(L));var G=d.gradient.opacityTo===void 0?i:Array.isArray(d.gradient.opacityTo)?d.gradient.opacityTo[c]:d.gradient.opacityTo;if(d.gradient.gradientToColors===void 0||d.gradient.gradientToColors.length===0)h=d.gradient.shade==="dark"?E.shadeColor(-1*parseFloat(d.gradient.shadeIntensity),o.indexOf("rgb")>-1?p.rgb2hex(o):o):E.shadeColor(parseFloat(d.gradient.shadeIntensity),o.indexOf("rgb")>-1?p.rgb2hex(o):o);else if(d.gradient.gradientToColors[x.seriesNumber]){var q=d.gradient.gradientToColors[x.seriesNumber];h=q,q.indexOf("rgba")>-1&&(G=p.getOpacityFromRGBA(q))}else h=o;if(d.gradient.gradientFrom&&(L=d.gradient.gradientFrom),d.gradient.gradientTo&&(h=d.gradient.gradientTo),d.gradient.inverseColors){var Q=L;L=h,h=Q}return L.indexOf("rgb")>-1&&(L=p.rgb2hex(L)),h.indexOf("rgb")>-1&&(h=p.rgb2hex(h)),k.drawGradient(N,L,h,W,G,x.size,d.gradient.stops,d.gradient.colorStops,c)}}]),J}(),Ee=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"setGlobalMarkerSize",value:function(){var n=this.w;if(n.globals.markers.size=Array.isArray(n.config.markers.size)?n.config.markers.size:[n.config.markers.size],n.globals.markers.size.length>0){if(n.globals.markers.size.length<n.globals.series.length+1)for(var o=0;o<=n.globals.series.length;o++)n.globals.markers.size[o]===void 0&&n.globals.markers.size.push(n.globals.markers.size[0])}else n.globals.markers.size=n.config.series.map(function(i){return n.config.markers.size})}},{key:"plotChartMarkers",value:function(n,o,i,u){var c,d=arguments.length>4&&arguments[4]!==void 0&&arguments[4],h=this.w,x=o,k=n,E=null,N=new m(this.ctx),L=h.config.markers.discrete&&h.config.markers.discrete.length;if((h.globals.markers.size[o]>0||d||L)&&(E=N.group({class:d||L?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(h.globals.cuid,")")),Array.isArray(k.x))for(var W=0;W<k.x.length;W++){var G=i;i===1&&W===0&&(G=0),i===1&&W===1&&(G=1);var q="apexcharts-marker";if(h.config.chart.type!=="line"&&h.config.chart.type!=="area"||h.globals.comboCharts||h.config.tooltip.intersect||(q+=" no-pointer-events"),(Array.isArray(h.config.markers.size)?h.globals.markers.size[o]>0:h.config.markers.size>0)||d||L){p.isNumber(k.y[W])?q+=" w".concat(p.randomId()):q="apexcharts-nullpoint";var Q=this.getMarkerConfig({cssClass:q,seriesIndex:o,dataPointIndex:G});h.config.series[x].data[G]&&(h.config.series[x].data[G].fillColor&&(Q.pointFillColor=h.config.series[x].data[G].fillColor),h.config.series[x].data[G].strokeColor&&(Q.pointStrokeColor=h.config.series[x].data[G].strokeColor)),u&&(Q.pSize=u),(k.x[W]<0||k.x[W]>h.globals.gridWidth||k.y[W]<-h.globals.markers.largestSize||k.y[W]>h.globals.gridHeight+h.globals.markers.largestSize)&&(Q.pSize=0),(c=N.drawMarker(k.x[W],k.y[W],Q)).attr("rel",G),c.attr("j",G),c.attr("index",o),c.node.setAttribute("default-marker-size",Q.pSize),new g(this.ctx).setSelectionFilter(c,o,G),this.addEvents(c),E&&E.add(c)}else h.globals.pointsArray[o]===void 0&&(h.globals.pointsArray[o]=[]),h.globals.pointsArray[o].push([k.x[W],k.y[W]])}return E}},{key:"getMarkerConfig",value:function(n){var o=n.cssClass,i=n.seriesIndex,u=n.dataPointIndex,c=u===void 0?null:u,d=n.finishRadius,h=d===void 0?null:d,x=this.w,k=this.getMarkerStyle(i),E=x.globals.markers.size[i],N=x.config.markers;return c!==null&&N.discrete.length&&N.discrete.map(function(L){L.seriesIndex===i&&L.dataPointIndex===c&&(k.pointStrokeColor=L.strokeColor,k.pointFillColor=L.fillColor,E=L.size,k.pointShape=L.shape)}),{pSize:h===null?E:h,pRadius:N.radius,width:Array.isArray(N.width)?N.width[i]:N.width,height:Array.isArray(N.height)?N.height[i]:N.height,pointStrokeWidth:Array.isArray(N.strokeWidth)?N.strokeWidth[i]:N.strokeWidth,pointStrokeColor:k.pointStrokeColor,pointFillColor:k.pointFillColor,shape:k.pointShape||(Array.isArray(N.shape)?N.shape[i]:N.shape),class:o,pointStrokeOpacity:Array.isArray(N.strokeOpacity)?N.strokeOpacity[i]:N.strokeOpacity,pointStrokeDashArray:Array.isArray(N.strokeDashArray)?N.strokeDashArray[i]:N.strokeDashArray,pointFillOpacity:Array.isArray(N.fillOpacity)?N.fillOpacity[i]:N.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(n){var o=this.w,i=new m(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,n)),n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,n)),n.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,n)),n.node.addEventListener("click",o.config.markers.onClick),n.node.addEventListener("dblclick",o.config.markers.onDblClick),n.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,n),{passive:!0})}},{key:"getMarkerStyle",value:function(n){var o=this.w,i=o.globals.markers.colors,u=o.config.markers.strokeColor||o.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(u)?u[n]:u,pointFillColor:Array.isArray(i)?i[n]:i}}}]),J}(),Ne=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return b(J,[{key:"draw",value:function(n,o,i){var u=this.w,c=new m(this.ctx),d=i.realIndex,h=i.pointsPos,x=i.zRatio,k=i.elParent,E=c.group({class:"apexcharts-series-markers apexcharts-series-".concat(u.config.chart.type)});if(E.attr("clip-path","url(#gridRectMarkerMask".concat(u.globals.cuid,")")),Array.isArray(h.x))for(var N=0;N<h.x.length;N++){var L=o+1,W=!0;o===0&&N===0&&(L=0),o===0&&N===1&&(L=1);var G=0,q=u.globals.markers.size[d];if(x!==1/0){var Q=u.config.plotOptions.bubble;q=u.globals.seriesZ[d][L],Q.zScaling&&(q/=x),Q.minBubbleRadius&&q<Q.minBubbleRadius&&(q=Q.minBubbleRadius),Q.maxBubbleRadius&&q>Q.maxBubbleRadius&&(q=Q.maxBubbleRadius)}u.config.chart.animations.enabled||(G=q);var re=h.x[N],ie=h.y[N];if(G=G||0,ie!==null&&u.globals.series[d][L]!==void 0||(W=!1),W){var C=this.drawPoint(re,ie,G,q,d,L,o);E.add(C)}k.add(E)}}},{key:"drawPoint",value:function(n,o,i,u,c,d,h){var x=this.w,k=c,E=new v(this.ctx),N=new g(this.ctx),L=new _e(this.ctx),W=new Ee(this.ctx),G=new m(this.ctx),q=W.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:k,dataPointIndex:d,finishRadius:x.config.chart.type==="bubble"||x.globals.comboCharts&&x.config.series[c]&&x.config.series[c].type==="bubble"?u:null});u=q.pSize;var Q,re=L.fillPath({seriesNumber:c,dataPointIndex:d,color:q.pointFillColor,patternUnits:"objectBoundingBox",value:x.globals.series[c][h]});if(q.shape==="circle"?Q=G.drawCircle(i):q.shape!=="square"&&q.shape!=="rect"||(Q=G.drawRect(0,0,q.width-q.pointStrokeWidth/2,q.height-q.pointStrokeWidth/2,q.pRadius)),x.config.series[k].data[d]&&x.config.series[k].data[d].fillColor&&(re=x.config.series[k].data[d].fillColor),Q.attr({x:n-q.width/2-q.pointStrokeWidth/2,y:o-q.height/2-q.pointStrokeWidth/2,cx:n,cy:o,fill:re,"fill-opacity":q.pointFillOpacity,stroke:q.pointStrokeColor,r:u,"stroke-width":q.pointStrokeWidth,"stroke-dasharray":q.pointStrokeDashArray,"stroke-opacity":q.pointStrokeOpacity}),x.config.chart.dropShadow.enabled){var ie=x.config.chart.dropShadow;N.dropShadow(Q,ie,c)}if(!this.initialAnim||x.globals.dataChanged||x.globals.resized)x.globals.animationEnded=!0;else{var C=x.config.chart.animations.speed;E.animateMarker(Q,0,q.shape==="circle"?u:{width:q.width,height:q.height},C,x.globals.easing,function(){window.setTimeout(function(){E.animationCompleted(Q)},100)})}if(x.globals.dataChanged&&q.shape==="circle")if(this.dynamicAnim){var I,$,te,ce,de=x.config.chart.animations.dynamicAnimation.speed;(ce=x.globals.previousPaths[c]&&x.globals.previousPaths[c][h])!=null&&(I=ce.x,$=ce.y,te=ce.r!==void 0?ce.r:u);for(var we=0;we<x.globals.collapsedSeries.length;we++)x.globals.collapsedSeries[we].index===c&&(de=1,u=0);n===0&&o===0&&(u=0),E.animateCircle(Q,{cx:I,cy:$,r:te},{cx:n,cy:o,r:u},de,x.globals.easing)}else Q.attr({r:u});return Q.attr({rel:d,j:d,index:c,"default-marker-size":u}),N.setSelectionFilter(Q,c,d),W.addEvents(Q),Q.node.classList.add("apexcharts-marker"),Q}},{key:"centerTextInBubble",value:function(n){var o=this.w;return{y:n+=parseInt(o.config.dataLabels.style.fontSize,10)/4}}}]),J}(),Le=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"dataLabelsCorrection",value:function(n,o,i,u,c,d,h){var x=this.w,k=!1,E=new m(this.ctx).getTextRects(i,h),N=E.width,L=E.height;o<0&&(o=0),o>x.globals.gridHeight+L&&(o=x.globals.gridHeight+L/2),x.globals.dataLabelsRects[u]===void 0&&(x.globals.dataLabelsRects[u]=[]),x.globals.dataLabelsRects[u].push({x:n,y:o,width:N,height:L});var W=x.globals.dataLabelsRects[u].length-2,G=x.globals.lastDrawnDataLabelsIndexes[u]!==void 0?x.globals.lastDrawnDataLabelsIndexes[u][x.globals.lastDrawnDataLabelsIndexes[u].length-1]:0;if(x.globals.dataLabelsRects[u][W]!==void 0){var q=x.globals.dataLabelsRects[u][G];(n>q.x+q.width||o>q.y+q.height||o+L<q.y||n+N<q.x)&&(k=!0)}return(c===0||d)&&(k=!0),{x:n,y:o,textRects:E,drawnextLabel:k}}},{key:"drawDataLabel",value:function(n){var o=this,i=n.type,u=n.pos,c=n.i,d=n.j,h=n.isRangeStart,x=n.strokeWidth,k=x===void 0?2:x,E=this.w,N=new m(this.ctx),L=E.config.dataLabels,W=0,G=0,q=d,Q=null;if(!L.enabled||!Array.isArray(u.x))return Q;Q=N.group({class:"apexcharts-data-labels"});for(var re=0;re<u.x.length;re++)if(W=u.x[re]+L.offsetX,G=u.y[re]+L.offsetY+k,!isNaN(W)){d===1&&re===0&&(q=0),d===1&&re===1&&(q=1);var ie=E.globals.series[c][q];i==="rangeArea"&&(ie=h?E.globals.seriesRangeStart[c][q]:E.globals.seriesRangeEnd[c][q]);var C="",I=function($){return E.config.dataLabels.formatter($,{ctx:o.ctx,seriesIndex:c,dataPointIndex:q,w:E})};E.config.chart.type==="bubble"?(C=I(ie=E.globals.seriesZ[c][q]),G=u.y[re],G=new Ne(this.ctx).centerTextInBubble(G,c,q).y):ie!==void 0&&(C=I(ie)),this.plotDataLabelsText({x:W,y:G,text:C,i:c,j:q,parent:Q,offsetCorrection:!0,dataLabelsConfig:E.config.dataLabels})}return Q}},{key:"plotDataLabelsText",value:function(n){var o=this.w,i=new m(this.ctx),u=n.x,c=n.y,d=n.i,h=n.j,x=n.text,k=n.textAnchor,E=n.fontSize,N=n.parent,L=n.dataLabelsConfig,W=n.color,G=n.alwaysDrawDataLabel,q=n.offsetCorrection;if(!(Array.isArray(o.config.dataLabels.enabledOnSeries)&&o.config.dataLabels.enabledOnSeries.indexOf(d)<0)){var Q={x:u,y:c,drawnextLabel:!0,textRects:null};q&&(Q=this.dataLabelsCorrection(u,c,x,d,h,G,parseInt(L.style.fontSize,10))),o.globals.zoomed||(u=Q.x,c=Q.y),Q.textRects&&(u<-10-Q.textRects.width||u>o.globals.gridWidth+Q.textRects.width+10)&&(x="");var re=o.globals.dataLabels.style.colors[d];((o.config.chart.type==="bar"||o.config.chart.type==="rangeBar")&&o.config.plotOptions.bar.distributed||o.config.dataLabels.distributed)&&(re=o.globals.dataLabels.style.colors[h]),typeof re=="function"&&(re=re({series:o.globals.series,seriesIndex:d,dataPointIndex:h,w:o})),W&&(re=W);var ie=L.offsetX,C=L.offsetY;if(o.config.chart.type!=="bar"&&o.config.chart.type!=="rangeBar"||(ie=0,C=0),Q.drawnextLabel){var I=i.drawText({width:100,height:parseInt(L.style.fontSize,10),x:u+ie,y:c+C,foreColor:re,textAnchor:k||L.textAnchor,text:x,fontSize:E||L.style.fontSize,fontFamily:L.style.fontFamily,fontWeight:L.style.fontWeight||"normal"});if(I.attr({class:"apexcharts-datalabel",cx:u,cy:c}),L.dropShadow.enabled){var $=L.dropShadow;new g(this.ctx).dropShadow(I,$)}N.add(I),o.globals.lastDrawnDataLabelsIndexes[d]===void 0&&(o.globals.lastDrawnDataLabelsIndexes[d]=[]),o.globals.lastDrawnDataLabelsIndexes[d].push(h)}}}},{key:"addBackgroundToDataLabel",value:function(n,o){var i=this.w,u=i.config.dataLabels.background,c=u.padding,d=u.padding/2,h=o.width,x=o.height,k=new m(this.ctx).drawRect(o.x-c,o.y-d/2,h+2*c,x+d,u.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,u.opacity,u.borderWidth,u.borderColor);return u.dropShadow.enabled&&new g(this.ctx).dropShadow(k,u.dropShadow),k}},{key:"dataLabelsBackground",value:function(){var n=this.w;if(n.config.chart.type!=="bubble")for(var o=n.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<o.length;i++){var u=o[i],c=u.getBBox(),d=null;if(c.width&&c.height&&(d=this.addBackgroundToDataLabel(u,c)),d){u.parentNode.insertBefore(d.node,u);var h=u.getAttribute("fill");n.config.chart.animations.enabled&&!n.globals.resized&&!n.globals.dataChanged?d.animate().attr({fill:h}):d.attr({fill:h}),u.setAttribute("fill",n.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var n=this.w,o=n.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=n.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),u=0;u<o.length;u++)i&&i.insertBefore(o[u],i.nextSibling)}}]),J}(),Pe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.legendInactiveClass="legend-mouseover-inactive"}return b(J,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(n){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(p.escapeString(n),"']"))}},{key:"isSeriesHidden",value:function(n){var o=this.getSeriesByName(n),i=parseInt(o.getAttribute("data:realIndex"),10);return{isHidden:o.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(n,o){var i=this.w;function u(c){for(var d=0;d<c.length;d++)c[d].index===o&&n.node.classList.add("apexcharts-series-collapsed")}u(i.globals.collapsedSeries),u(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(n){var o=this.isSeriesHidden(n);return this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,o.isHidden),o.isHidden}},{key:"showSeries",value:function(n){var o=this.isSeriesHidden(n);o.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,!0)}},{key:"hideSeries",value:function(n){var o=this.isSeriesHidden(n);o.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,!1)}},{key:"resetSeries",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],u=this.w,c=p.clone(u.globals.initialSeries);u.globals.previousPaths=[],i?(u.globals.collapsedSeries=[],u.globals.ancillaryCollapsedSeries=[],u.globals.collapsedSeriesIndices=[],u.globals.ancillaryCollapsedSeriesIndices=[]):c=this.emptyCollapsedSeries(c),u.config.series=c,n&&(o&&(u.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(n){for(var o=this.w,i=0;i<n.length;i++)o.globals.collapsedSeriesIndices.indexOf(i)>-1&&(n[i].data=[]);return n}},{key:"toggleSeriesOnHover",value:function(n,o){var i=this.w;o||(o=n.target);var u=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(n.type==="mousemove"){var c=parseInt(o.getAttribute("rel"),10)-1,d=null,h=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(d=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(c,"']")),h=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(c,"']"))):d=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(c+1,"']")):d=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(c+1,"'] path"));for(var x=0;x<u.length;x++)u[x].classList.add(this.legendInactiveClass);d!==null&&(i.globals.axisCharts||d.parentNode.classList.remove(this.legendInactiveClass),d.classList.remove(this.legendInactiveClass),h!==null&&h.classList.remove(this.legendInactiveClass))}else if(n.type==="mouseout")for(var k=0;k<u.length;k++)u[k].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(n,o){var i=this,u=this.w,c=u.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),d=function(x){for(var k=0;k<c.length;k++)c[k].classList[x](i.legendInactiveClass)};if(n.type==="mousemove"){var h=parseInt(o.getAttribute("rel"),10)-1;d("add"),function(x){for(var k=0;k<c.length;k++){var E=parseInt(c[k].getAttribute("val"),10);E>=x.from&&E<=x.to&&c[k].classList.remove(i.legendInactiveClass)}}(u.config.plotOptions.heatmap.colorScale.ranges[h])}else n.type==="mouseout"&&d("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,u=0;if(i.config.series.length>1){for(var c=i.config.series.map(function(h,x){return h.data&&h.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(x)===-1&&(!i.globals.comboCharts||o.length===0||o.length&&o.indexOf(i.config.series[x].type)>-1)?x:-1}),d=n==="asc"?0:c.length-1;n==="asc"?d<c.length:d>=0;n==="asc"?d++:d--)if(c[d]!==-1){u=c[d];break}}return u}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(n,o){return n.type==="bar"||n.type==="column"?o:-1}).filter(function(n){return n!==-1}):this.w.config.series.map(function(n,o){return o})}},{key:"getPreviousPaths",value:function(){var n=this.w;function o(d,h,x){for(var k=d[h].childNodes,E={type:x,paths:[],realIndex:d[h].getAttribute("data:realIndex")},N=0;N<k.length;N++)if(k[N].hasAttribute("pathTo")){var L=k[N].getAttribute("pathTo");E.paths.push({d:L})}n.globals.previousPaths.push(E)}n.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(d){for(var h,x=(h=d,n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(h,"-series .apexcharts-series"))),k=0;k<x.length;k++)o(x,k,d)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series"));if(i.length>0)for(var u=function(d){for(var h=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(d,"'] rect")),x=[],k=function(N){var L=function(G){return h[N].getAttribute(G)},W={x:parseFloat(L("x")),y:parseFloat(L("y")),width:parseFloat(L("width")),height:parseFloat(L("height"))};x.push({rect:W,color:h[N].getAttribute("color")})},E=0;E<h.length;E++)k(E);n.globals.previousPaths.push(x)},c=0;c<i.length;c++)u(c);n.globals.axisCharts||(n.globals.previousPaths=n.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(n){var o=this.w,i=o.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"));if(i.length>0)for(var u=0;u<i.length;u++){for(var c=o.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series[data\\:realIndex='").concat(u,"'] circle")),d=[],h=0;h<c.length;h++)d.push({x:c[h].getAttribute("cx"),y:c[h].getAttribute("cy"),r:c[h].getAttribute("r")});o.globals.previousPaths.push(d)}}},{key:"clearPreviousPaths",value:function(){var n=this.w;n.globals.previousPaths=[],n.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var n=this.w,o=n.config.noData,i=new m(this.ctx),u=n.globals.svgWidth/2,c=n.globals.svgHeight/2,d="middle";if(n.globals.noData=!0,n.globals.animationEnded=!0,o.align==="left"?(u=10,d="start"):o.align==="right"&&(u=n.globals.svgWidth-10,d="end"),o.verticalAlign==="top"?c=50:o.verticalAlign==="bottom"&&(c=n.globals.svgHeight-50),u+=o.offsetX,c=c+parseInt(o.style.fontSize,10)+2+o.offsetY,o.text!==void 0&&o.text!==""){var h=i.drawText({x:u,y:c,text:o.text,textAnchor:d,fontSize:o.style.fontSize,fontFamily:o.style.fontFamily,foreColor:o.style.color,opacity:1,class:"apexcharts-text-nodata"});n.globals.dom.Paper.add(h)}}},{key:"setNullSeriesToZeroValues",value:function(n){for(var o=this.w,i=0;i<n.length;i++)if(n[i].length===0)for(var u=0;u<n[o.globals.maxValsInArrayIndex].length;u++)n[i].push(0);return n}},{key:"hasAllSeriesEqualX",value:function(){for(var n=!0,o=this.w,i=this.filteredSeriesX(),u=0;u<i.length-1;u++)if(i[u][0]!==i[u+1][0]){n=!1;break}return o.globals.allSeriesHasEqualX=n,n}},{key:"filteredSeriesX",value:function(){var n=this.w.globals.seriesX.map(function(o){return o.length>0?o:[]});return n}}]),J}(),Xe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new _(this.ctx)}return b(J,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var n=this.w.config.series.slice(),o=new Pe(this.ctx);if(this.activeSeriesIndex=o.getActiveConfigSeriesIndex(),n[this.activeSeriesIndex].data!==void 0&&n[this.activeSeriesIndex].data.length>0&&n[this.activeSeriesIndex].data[0]!==null&&n[this.activeSeriesIndex].data[0].x!==void 0&&n[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var n=this.w.config.series.slice(),o=new Pe(this.ctx);if(this.activeSeriesIndex=o.getActiveConfigSeriesIndex(),n[this.activeSeriesIndex].data!==void 0&&n[this.activeSeriesIndex].data.length>0&&n[this.activeSeriesIndex].data[0]!==void 0&&n[this.activeSeriesIndex].data[0]!==null&&n[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(n,o){for(var i=this.w.config,u=this.w.globals,c=i.chart.type==="boxPlot"||i.series[o].type==="boxPlot",d=0;d<n[o].data.length;d++)if(n[o].data[d][1]!==void 0&&(Array.isArray(n[o].data[d][1])&&n[o].data[d][1].length===4&&!c?this.twoDSeries.push(p.parseNumber(n[o].data[d][1][3])):n[o].data[d].length>=5?this.twoDSeries.push(p.parseNumber(n[o].data[d][4])):this.twoDSeries.push(p.parseNumber(n[o].data[d][1])),u.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var h=new Date(n[o].data[d][0]);h=new Date(h).getTime(),this.twoDSeriesX.push(h)}else this.twoDSeriesX.push(n[o].data[d][0]);for(var x=0;x<n[o].data.length;x++)n[o].data[x][2]!==void 0&&(this.threeDSeries.push(n[o].data[x][2]),u.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(n,o){var i=this.w.config,u=this.w.globals,c=new ne(this.ctx),d=o;u.collapsedSeriesIndices.indexOf(o)>-1&&(d=this.activeSeriesIndex);for(var h=0;h<n[o].data.length;h++)n[o].data[h].y!==void 0&&(Array.isArray(n[o].data[h].y)?this.twoDSeries.push(p.parseNumber(n[o].data[h].y[n[o].data[h].y.length-1])):this.twoDSeries.push(p.parseNumber(n[o].data[h].y))),n[o].data[h].goals!==void 0&&Array.isArray(n[o].data[h].goals)?(this.seriesGoals[o]===void 0&&(this.seriesGoals[o]=[]),this.seriesGoals[o].push(n[o].data[h].goals)):(this.seriesGoals[o]===void 0&&(this.seriesGoals[o]=[]),this.seriesGoals[o].push(null));for(var x=0;x<n[d].data.length;x++){var k=typeof n[d].data[x].x=="string",E=Array.isArray(n[d].data[x].x),N=!E&&!!c.isValidDate(n[d].data[x].x.toString());if(k||N)if(k||i.xaxis.convertedCatToNumeric){var L=u.isBarHorizontal&&u.isRangeData;i.xaxis.type!=="datetime"||L?(this.fallbackToCategory=!0,this.twoDSeriesX.push(n[d].data[x].x),isNaN(n[d].data[x].x)||this.w.config.xaxis.type==="category"||typeof n[d].data[x].x=="string"||(u.isXNumeric=!0)):this.twoDSeriesX.push(c.parseDate(n[d].data[x].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(c.parseDate(n[d].data[x].x.toString())):(u.dataFormatXNumeric=!0,u.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(n[d].data[x].x)));else E?(this.fallbackToCategory=!0,this.twoDSeriesX.push(n[d].data[x].x)):(u.isXNumeric=!0,u.dataFormatXNumeric=!0,this.twoDSeriesX.push(n[d].data[x].x))}if(n[o].data[0]&&n[o].data[0].z!==void 0){for(var W=0;W<n[o].data.length;W++)this.threeDSeries.push(n[o].data[W].z);u.isDataXYZ=!0}}},{key:"handleRangeData",value:function(n,o){var i=this.w.globals,u={};return this.isFormat2DArray()?u=this.handleRangeDataFormat("array",n,o):this.isFormatXY()&&(u=this.handleRangeDataFormat("xy",n,o)),i.seriesRangeStart.push(u.start),i.seriesRangeEnd.push(u.end),i.seriesRange.push(u.rangeUniques),i.seriesRange.forEach(function(c,d){c&&c.forEach(function(h,x){h.y.forEach(function(k,E){for(var N=0;N<h.y.length;N++)if(E!==N){var L=k.y1,W=k.y2,G=h.y[N].y1;L<=h.y[N].y2&&G<=W&&(h.overlaps.indexOf(k.rangeName)<0&&h.overlaps.push(k.rangeName),h.overlaps.indexOf(h.y[N].rangeName)<0&&h.overlaps.push(h.y[N].rangeName))}})})}),u}},{key:"handleCandleStickBoxData",value:function(n,o){var i=this.w.globals,u={};return this.isFormat2DArray()?u=this.handleCandleStickBoxDataFormat("array",n,o):this.isFormatXY()&&(u=this.handleCandleStickBoxDataFormat("xy",n,o)),i.seriesCandleO[o]=u.o,i.seriesCandleH[o]=u.h,i.seriesCandleM[o]=u.m,i.seriesCandleL[o]=u.l,i.seriesCandleC[o]=u.c,u}},{key:"handleRangeDataFormat",value:function(n,o,i){var u=[],c=[],d=o[i].data.filter(function(E,N,L){return N===L.findIndex(function(W){return W.x===E.x})}).map(function(E,N){return{x:E.x,overlaps:[],y:[]}});if(n==="array")for(var h=0;h<o[i].data.length;h++)Array.isArray(o[i].data[h])?(u.push(o[i].data[h][1][0]),c.push(o[i].data[h][1][1])):(u.push(o[i].data[h]),c.push(o[i].data[h]));else if(n==="xy")for(var x=function(E){var N=Array.isArray(o[i].data[E].y),L=p.randomId(),W=o[i].data[E].x,G={y1:N?o[i].data[E].y[0]:o[i].data[E].y,y2:N?o[i].data[E].y[1]:o[i].data[E].y,rangeName:L};o[i].data[E].rangeName=L;var q=d.findIndex(function(Q){return Q.x===W});d[q].y.push(G),u.push(G.y1),c.push(G.y2)},k=0;k<o[i].data.length;k++)x(k);return{start:u,end:c,rangeUniques:d}}},{key:"handleCandleStickBoxDataFormat",value:function(n,o,i){var u=this.w,c=u.config.chart.type==="boxPlot"||u.config.series[i].type==="boxPlot",d=[],h=[],x=[],k=[],E=[];if(n==="array")if(c&&o[i].data[0].length===6||!c&&o[i].data[0].length===5)for(var N=0;N<o[i].data.length;N++)d.push(o[i].data[N][1]),h.push(o[i].data[N][2]),c?(x.push(o[i].data[N][3]),k.push(o[i].data[N][4]),E.push(o[i].data[N][5])):(k.push(o[i].data[N][3]),E.push(o[i].data[N][4]));else for(var L=0;L<o[i].data.length;L++)Array.isArray(o[i].data[L][1])&&(d.push(o[i].data[L][1][0]),h.push(o[i].data[L][1][1]),c?(x.push(o[i].data[L][1][2]),k.push(o[i].data[L][1][3]),E.push(o[i].data[L][1][4])):(k.push(o[i].data[L][1][2]),E.push(o[i].data[L][1][3])));else if(n==="xy")for(var W=0;W<o[i].data.length;W++)Array.isArray(o[i].data[W].y)&&(d.push(o[i].data[W].y[0]),h.push(o[i].data[W].y[1]),c?(x.push(o[i].data[W].y[2]),k.push(o[i].data[W].y[3]),E.push(o[i].data[W].y[4])):(k.push(o[i].data[W].y[2]),E.push(o[i].data[W].y[3])));return{o:d,h,m:x,l:k,c:E}}},{key:"parseDataAxisCharts",value:function(n){var o,i=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,c=this.w.config,d=this.w.globals,h=new ne(u),x=c.labels.length>0?c.labels.slice():c.xaxis.categories.slice();if(d.isRangeBar=c.chart.type==="rangeBar"&&d.isBarHorizontal,d.hasXaxisGroups=c.xaxis.type==="category"&&c.xaxis.group.groups.length>0,d.hasXaxisGroups&&(d.groups=c.xaxis.group.groups),d.hasSeriesGroups=(o=n[0])===null||o===void 0?void 0:o.group,d.hasSeriesGroups){var k=[],E=R(new Set(n.map(function(G){return G.group})));n.forEach(function(G,q){var Q=E.indexOf(G.group);k[Q]||(k[Q]=[]),k[Q].push(G.name)}),d.seriesGroups=k}for(var N=function(){for(var G=0;G<x.length;G++)if(typeof x[G]=="string"){if(!h.isValidDate(x[G]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(h.parseDate(x[G]))}else i.twoDSeriesX.push(x[G])},L=0;L<n.length;L++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],n[L].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(c.chart.type!=="rangeBar"&&c.chart.type!=="rangeArea"&&n[L].type!=="rangeBar"&&n[L].type!=="rangeArea"||(d.isRangeData=!0,d.isComboCharts?n[L].type!=="rangeBar"&&n[L].type!=="rangeArea"||this.handleRangeData(n,L):c.chart.type!=="rangeBar"&&c.chart.type!=="rangeArea"||this.handleRangeData(n,L)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(n,L):this.isFormatXY()&&this.handleFormatXY(n,L),c.chart.type!=="candlestick"&&n[L].type!=="candlestick"&&c.chart.type!=="boxPlot"&&n[L].type!=="boxPlot"||this.handleCandleStickBoxData(n,L),d.series.push(this.twoDSeries),d.labels.push(this.twoDSeriesX),d.seriesX.push(this.twoDSeriesX),d.seriesGoals=this.seriesGoals,L!==this.activeSeriesIndex||this.fallbackToCategory||(d.isXNumeric=!0);else{c.xaxis.type==="datetime"?(d.isXNumeric=!0,N(),d.seriesX.push(this.twoDSeriesX)):c.xaxis.type==="numeric"&&(d.isXNumeric=!0,x.length>0&&(this.twoDSeriesX=x,d.seriesX.push(this.twoDSeriesX))),d.labels.push(this.twoDSeriesX);var W=n[L].data.map(function(G){return p.parseNumber(G)});d.series.push(W)}d.seriesZ.push(this.threeDSeries),n[L].name!==void 0?d.seriesNames.push(n[L].name):d.seriesNames.push("series-"+parseInt(L+1,10)),n[L].color!==void 0?d.seriesColors.push(n[L].color):d.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(n){var o=this.w.globals,i=this.w.config;o.series=n.slice(),o.seriesNames=i.labels.slice();for(var u=0;u<o.series.length;u++)o.seriesNames[u]===void 0&&o.seriesNames.push("series-"+(u+1));return this.w}},{key:"handleExternalLabelsData",value:function(n){var o=this.w.config,i=this.w.globals;o.xaxis.categories.length>0?i.labels=o.xaxis.categories:o.labels.length>0?i.labels=o.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(u){u.forEach(function(c){i.labels.indexOf(c.x)<0&&c.x&&i.labels.push(c.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),o.xaxis.convertedCatToNumeric&&(new be(o).convertCatToNumericXaxis(o,this.ctx,i.seriesX[0]),this._generateExternalLabels(n))):this._generateExternalLabels(n)}},{key:"_generateExternalLabels",value:function(n){var o=this.w.globals,i=this.w.config,u=[];if(o.axisCharts){if(o.series.length>0)if(this.isFormatXY())for(var c=i.series.map(function(N,L){return N.data.filter(function(W,G,q){return q.findIndex(function(Q){return Q.x===W.x})===G})}),d=c.reduce(function(N,L,W,G){return G[N].length>L.length?N:W},0),h=0;h<c[d].length;h++)u.push(h+1);else for(var x=0;x<o.series[o.maxValsInArrayIndex].length;x++)u.push(x+1);o.seriesX=[];for(var k=0;k<n.length;k++)o.seriesX.push(u);this.w.globals.isBarHorizontal||(o.isXNumeric=!0)}if(u.length===0){u=o.axisCharts?[]:o.series.map(function(N,L){return L+1});for(var E=0;E<n.length;E++)o.seriesX.push(u)}o.labels=u,i.xaxis.convertedCatToNumeric&&(o.categoryLabels=u.map(function(N){return i.xaxis.labels.formatter(N)})),o.noLabelsProvided=!0}},{key:"parseData",value:function(n){var o=this.w,i=o.config,u=o.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),u.axisCharts?(this.parseDataAxisCharts(n),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(n),i.chart.stacked){var c=new Pe(this.ctx);u.series=c.setNullSeriesToZeroValues(u.series)}this.coreUtils.getSeriesTotals(),u.axisCharts&&(u.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),u.dataFormatXNumeric||u.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(n);for(var d=this.coreUtils.getCategoryLabels(u.labels),h=0;h<d.length;h++)if(Array.isArray(d[h])){u.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var n=this,o=this.w;o.globals.ignoreYAxisIndexes=o.globals.collapsedSeries.map(function(i,u){if(n.w.globals.isMultipleYAxis&&!o.config.chart.stacked)return i.index})}}]),J}(),Ve=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getLabel",value:function(n,o,i,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",h=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],x=this.w,k=n[u]===void 0?"":n[u],E=k,N=x.globals.xLabelFormatter,L=x.config.xaxis.labels.formatter,W=!1,G=new fe(this.ctx),q=k;h&&(E=G.xLabelFormat(N,k,q,{i:u,dateFormatter:new ne(this.ctx).formatDate,w:x}),L!==void 0&&(E=L(k,n[u],{i:u,dateFormatter:new ne(this.ctx).formatDate,w:x})));var Q,re;o.length>0?(Q=o[u].unit,re=null,o.forEach(function($){$.unit==="month"?re="year":$.unit==="day"?re="month":$.unit==="hour"?re="day":$.unit==="minute"&&(re="hour")}),W=re===Q,i=o[u].position,E=o[u].value):x.config.xaxis.type==="datetime"&&L===void 0&&(E=""),E===void 0&&(E=""),E=Array.isArray(E)?E:E.toString();var ie=new m(this.ctx),C={};C=x.globals.rotateXLabels&&h?ie.getTextRects(E,parseInt(d,10),null,"rotate(".concat(x.config.xaxis.labels.rotate," 0 0)"),!1):ie.getTextRects(E,parseInt(d,10));var I=!x.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(E)&&(E.indexOf("NaN")===0||E.toLowerCase().indexOf("invalid")===0||E.toLowerCase().indexOf("infinity")>=0||c.indexOf(E)>=0&&I)&&(E=""),{x:i,text:E,textRect:C,isBold:W}}},{key:"checkLabelBasedOnTickamount",value:function(n,o,i){var u=this.w,c=u.config.xaxis.tickAmount;return c==="dataPoints"&&(c=Math.round(u.globals.gridWidth/120)),c>i||n%Math.round(i/(c+1))==0||(o.text=""),o}},{key:"checkForOverflowingLabels",value:function(n,o,i,u,c){var d=this.w;if(n===0&&d.globals.skipFirstTimelinelabel&&(o.text=""),n===i-1&&d.globals.skipLastTimelinelabel&&(o.text=""),d.config.xaxis.labels.hideOverlappingLabels&&u.length>0){var h=c[c.length-1];o.x<h.textRect.width/(d.globals.rotateXLabels?Math.abs(d.config.xaxis.labels.rotate)/12:1.01)+h.x&&(o.text="")}return o}},{key:"checkForReversedLabels",value:function(n,o){var i=this.w;return i.config.yaxis[n]&&i.config.yaxis[n].reversed&&o.reverse(),o}},{key:"isYAxisHidden",value:function(n){var o=this.w,i=new _(this.ctx);return!o.config.yaxis[n].show||!o.config.yaxis[n].showForNullSeries&&i.isSeriesNull(n)&&o.globals.collapsedSeriesIndices.indexOf(n)===-1}},{key:"getYAxisForeColor",value:function(n,o){var i=this.w;return Array.isArray(n)&&i.globals.yAxisScale[o]&&this.ctx.theme.pushExtraColors(n,i.globals.yAxisScale[o].result.length,!1),n}},{key:"drawYAxisTicks",value:function(n,o,i,u,c,d,h){var x=this.w,k=new m(this.ctx),E=x.globals.translateY;if(u.show&&o>0){x.config.yaxis[c].opposite===!0&&(n+=u.width);for(var N=o;N>=0;N--){var L=E+o/10+x.config.yaxis[c].labels.offsetY-1;x.globals.isBarHorizontal&&(L=d*N),x.config.chart.type==="heatmap"&&(L+=d/2);var W=k.drawLine(n+i.offsetX-u.width+u.offsetX,L+u.offsetY,n+i.offsetX+u.offsetX,L+u.offsetY,u.color);h.add(W),E+=d}}}}]),J}(),Re=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"scaleSvgNode",value:function(n,o){var i=parseFloat(n.getAttributeNS(null,"width")),u=parseFloat(n.getAttributeNS(null,"height"));n.setAttributeNS(null,"width",i*o),n.setAttributeNS(null,"height",u*o),n.setAttributeNS(null,"viewBox","0 0 "+i+" "+u)}},{key:"fixSvgStringForIe11",value:function(n){if(!p.isIE11())return n.replace(/&nbsp;/g,"&#160;");var o=0,i=n.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(u){return++o===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':u});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(n){n==null&&(n=1);var o=this.w.globals.dom.Paper.svg();if(n!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,n),o=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(o)}},{key:"cleanup",value:function(){var n=this.w,o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=n.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(u,function(c){c.setAttribute("width",0)}),o&&o[0]&&(o[0].setAttribute("x",-500),o[0].setAttribute("x1",-500),o[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var n=this.getSvgString(),o=new Blob([n],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(o)}},{key:"dataURI",value:function(n){var o=this;return new Promise(function(i){var u=o.w,c=n?n.scale||n.width/u.globals.svgWidth:1;o.cleanup();var d=document.createElement("canvas");d.width=u.globals.svgWidth*c,d.height=parseInt(u.globals.dom.elWrap.style.height,10)*c;var h=u.config.chart.background==="transparent"?"#fff":u.config.chart.background,x=d.getContext("2d");x.fillStyle=h,x.fillRect(0,0,d.width*c,d.height*c);var k=o.getSvgString(c);if(window.canvg&&p.isIE11()){var E=window.canvg.Canvg.fromString(x,k,{ignoreClear:!0,ignoreDimensions:!0});E.start();var N=d.msToBlob();E.stop(),i({blob:N})}else{var L="data:image/svg+xml,"+encodeURIComponent(k),W=new Image;W.crossOrigin="anonymous",W.onload=function(){if(x.drawImage(W,0,0),d.msToBlob){var G=d.msToBlob();i({blob:G})}else{var q=d.toDataURL("image/png");i({imgURI:q})}},W.src=L}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var n=this;this.dataURI().then(function(o){var i=o.imgURI,u=o.blob;u?navigator.msSaveOrOpenBlob(u,n.w.globals.chartID+".png"):n.triggerDownload(i,n.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(n){var o=this,i=n.series,u=n.fileName,c=n.columnDelimiter,d=c===void 0?",":c,h=n.lineDelimiter,x=h===void 0?`
`:h,k=this.w;i||(i=k.config.series);var E=[],N=[],L="",W=k.globals.series.map(function(C,I){return k.globals.collapsedSeriesIndices.indexOf(I)===-1?C:[]}),G=Math.max.apply(Math,R(i.map(function(C){return C.data?C.data.length:0}))),q=new Xe(this.ctx),Q=new Ve(this.ctx),re=function(C){var I="";if(k.globals.axisCharts){if(k.config.xaxis.type==="category"||k.config.xaxis.convertedCatToNumeric)if(k.globals.isBarHorizontal){var $=k.globals.yLabelFormatters[0],te=new Pe(o.ctx).getActiveConfigSeriesIndex();I=$(k.globals.labels[C],{seriesIndex:te,dataPointIndex:C,w:k})}else I=Q.getLabel(k.globals.labels,k.globals.timescaleLabels,0,C).text;k.config.xaxis.type==="datetime"&&(k.config.xaxis.categories.length?I=k.config.xaxis.categories[C]:k.config.labels.length&&(I=k.config.labels[C]))}else I=k.config.labels[C];return Array.isArray(I)&&(I=I.join(" ")),p.isNumber(I)?I:I.split(d).join("")},ie=function(C,I){if(E.length&&I===0&&N.push(E.join(d)),C.data){C.data=C.data.length&&C.data||R(Array(G)).map(function(){return""});for(var $=0;$<C.data.length;$++){E=[];var te=re($);if(te||(q.isFormatXY()?te=i[I].data[$].x:q.isFormat2DArray()&&(te=i[I].data[$]?i[I].data[$][0]:"")),I===0){E.push((we=te,k.config.xaxis.type==="datetime"&&String(we).length>=10?k.config.chart.toolbar.export.csv.dateFormatter(te):p.isNumber(te)?te:te.split(d).join("")));for(var ce=0;ce<k.globals.series.length;ce++){var de;q.isFormatXY()?E.push((de=i[ce].data[$])===null||de===void 0?void 0:de.y):E.push(W[ce][$])}}(k.config.chart.type==="candlestick"||C.type&&C.type==="candlestick")&&(E.pop(),E.push(k.globals.seriesCandleO[I][$]),E.push(k.globals.seriesCandleH[I][$]),E.push(k.globals.seriesCandleL[I][$]),E.push(k.globals.seriesCandleC[I][$])),(k.config.chart.type==="boxPlot"||C.type&&C.type==="boxPlot")&&(E.pop(),E.push(k.globals.seriesCandleO[I][$]),E.push(k.globals.seriesCandleH[I][$]),E.push(k.globals.seriesCandleM[I][$]),E.push(k.globals.seriesCandleL[I][$]),E.push(k.globals.seriesCandleC[I][$])),k.config.chart.type==="rangeBar"&&(E.pop(),E.push(k.globals.seriesRangeStart[I][$]),E.push(k.globals.seriesRangeEnd[I][$])),E.length&&N.push(E.join(d))}}var we};E.push(k.config.chart.toolbar.export.csv.headerCategory),k.config.chart.type==="boxPlot"?(E.push("minimum"),E.push("q1"),E.push("median"),E.push("q3"),E.push("maximum")):k.config.chart.type==="candlestick"?(E.push("open"),E.push("high"),E.push("low"),E.push("close")):k.config.chart.type==="rangeBar"?(E.push("minimum"),E.push("maximum")):i.map(function(C,I){var $=(C.name?C.name:"series-".concat(I))+"";k.globals.axisCharts&&E.push($.split(d).join("")?$.split(d).join(""):"series-".concat(I))}),k.globals.axisCharts||(E.push(k.config.chart.toolbar.export.csv.headerValue),N.push(E.join(d))),i.map(function(C,I){k.globals.axisCharts?ie(C,I):((E=[]).push(k.globals.labels[I].split(d).join("")),E.push(W[I]),N.push(E.join(d)))}),L+=N.join(x),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+L),u||k.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(n,o,i){var u=document.createElement("a");u.href=n,u.download=(o||this.w.globals.chartID)+i,document.body.appendChild(u),u.click(),document.body.removeChild(u)}}]),J}(),He=function(){function J(n,o){l(this,J),this.ctx=n,this.elgrid=o,this.w=n.w;var i=this.w;this.axesUtils=new Ve(n),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return b(J,[{key:"drawXaxis",value:function(){var n=this.w,o=new m(this.ctx),i=o.group({class:"apexcharts-xaxis",transform:"translate(".concat(n.config.xaxis.offsetX,", ").concat(n.config.xaxis.offsetY,")")}),u=o.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(n.globals.translateXAxisX,", ").concat(n.globals.translateXAxisY,")")});i.add(u);for(var c=[],d=0;d<this.xaxisLabels.length;d++)c.push(this.xaxisLabels[d]);if(this.drawXAxisLabelAndGroup(!0,o,u,c,n.globals.isXNumeric,function(G,q){return q}),n.globals.hasXaxisGroups){var h=n.globals.groups;c=[];for(var x=0;x<h.length;x++)c.push(h[x].title);var k={};n.config.xaxis.group.style&&(k.xaxisFontSize=n.config.xaxis.group.style.fontSize,k.xaxisFontFamily=n.config.xaxis.group.style.fontFamily,k.xaxisForeColors=n.config.xaxis.group.style.colors,k.fontWeight=n.config.xaxis.group.style.fontWeight,k.cssClass=n.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,o,u,c,!1,function(G,q){return h[G].cols*q},k)}if(n.config.xaxis.title.text!==void 0){var E=o.group({class:"apexcharts-xaxis-title"}),N=o.drawText({x:n.globals.gridWidth/2+n.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(n.config.xaxis.position==="bottom"?n.globals.xAxisLabelsHeight:-n.globals.xAxisLabelsHeight-10)+n.config.xaxis.title.offsetY,text:n.config.xaxis.title.text,textAnchor:"middle",fontSize:n.config.xaxis.title.style.fontSize,fontFamily:n.config.xaxis.title.style.fontFamily,fontWeight:n.config.xaxis.title.style.fontWeight,foreColor:n.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+n.config.xaxis.title.style.cssClass});E.add(N),i.add(E)}if(n.config.xaxis.axisBorder.show){var L=n.globals.barPadForNumericAxis,W=o.drawLine(n.globals.padHorizontal+n.config.xaxis.axisBorder.offsetX-L,this.offY,this.xaxisBorderWidth+L,this.offY,n.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&n.config.grid.show?this.elgrid.elGridBorders.add(W):i.add(W)}return i}},{key:"drawXAxisLabelAndGroup",value:function(n,o,i,u,c,d){var h,x=this,k=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},E=[],N=[],L=this.w,W=k.xaxisFontSize||this.xaxisFontSize,G=k.xaxisFontFamily||this.xaxisFontFamily,q=k.xaxisForeColors||this.xaxisForeColors,Q=k.fontWeight||L.config.xaxis.labels.style.fontWeight,re=k.cssClass||L.config.xaxis.labels.style.cssClass,ie=L.globals.padHorizontal,C=u.length,I=L.config.xaxis.type==="category"?L.globals.dataPoints:C;if(I===0&&C>I&&(I=C),c){var $=I>1?I-1:I;h=L.globals.gridWidth/Math.min($,C-1),ie=ie+d(0,h)/2+L.config.xaxis.labels.offsetX}else h=L.globals.gridWidth/I,ie=ie+d(0,h)+L.config.xaxis.labels.offsetX;for(var te=function(de){var we=ie-d(de,h)/2+L.config.xaxis.labels.offsetX;de===0&&C===1&&h/2===ie&&I===1&&(we=L.globals.gridWidth/2);var Ce=x.axesUtils.getLabel(u,L.globals.timescaleLabels,we,de,E,W,n),Me=28;if(L.globals.rotateXLabels&&n&&(Me=22),L.config.xaxis.title.text&&L.config.xaxis.position==="top"&&(Me+=parseFloat(L.config.xaxis.title.style.fontSize)+2),n||(Me=Me+parseFloat(W)+(L.globals.xAxisLabelsHeight-L.globals.xAxisGroupLabelsHeight)+(L.globals.rotateXLabels?10:0)),Ce=L.config.xaxis.tickAmount!==void 0&&L.config.xaxis.tickAmount!=="dataPoints"&&L.config.xaxis.type!=="datetime"?x.axesUtils.checkLabelBasedOnTickamount(de,Ce,C):x.axesUtils.checkForOverflowingLabels(de,Ce,C,E,N),L.config.xaxis.labels.show){var Be=o.drawText({x:Ce.x,y:x.offY+L.config.xaxis.labels.offsetY+Me-(L.config.xaxis.position==="top"?L.globals.xAxisHeight+L.config.xaxis.axisTicks.height-2:0),text:Ce.text,textAnchor:"middle",fontWeight:Ce.isBold?600:Q,fontSize:W,fontFamily:G,foreColor:Array.isArray(q)?n&&L.config.xaxis.convertedCatToNumeric?q[L.globals.minX+de-1]:q[de]:q,isPlainText:!1,cssClass:(n?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+re});if(i.add(Be),Be.on("click",function($e){if(typeof L.config.chart.events.xAxisLabelClick=="function"){var Ze=Object.assign({},L,{labelIndex:de});L.config.chart.events.xAxisLabelClick($e,x.ctx,Ze)}}),n){var ze=document.createElementNS(L.globals.SVGNS,"title");ze.textContent=Array.isArray(Ce.text)?Ce.text.join(" "):Ce.text,Be.node.appendChild(ze),Ce.text!==""&&(E.push(Ce.text),N.push(Ce))}}de<C-1&&(ie+=d(de+1,h))},ce=0;ce<=C-1;ce++)te(ce)}},{key:"drawXaxisInversed",value:function(n){var o,i,u=this,c=this.w,d=new m(this.ctx),h=c.config.yaxis[0].opposite?c.globals.translateYAxisX[n]:0,x=d.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:n}),k=d.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+h+", 0)"});x.add(k);var E=[];if(c.config.yaxis[n].show)for(var N=0;N<this.xaxisLabels.length;N++)E.push(this.xaxisLabels[N]);o=c.globals.gridHeight/E.length,i=-o/2.2;var L=c.globals.yLabelFormatters[0],W=c.config.yaxis[0].labels;if(W.show)for(var G=function($){var te=E[$]===void 0?"":E[$];te=L(te,{seriesIndex:n,dataPointIndex:$,w:c});var ce=u.axesUtils.getYAxisForeColor(W.style.colors,n),de=0;Array.isArray(te)&&(de=te.length/2*parseInt(W.style.fontSize,10));var we=W.offsetX-15,Ce="end";u.yaxis.opposite&&(Ce="start"),c.config.yaxis[0].labels.align==="left"?(we=W.offsetX,Ce="start"):c.config.yaxis[0].labels.align==="center"?(we=W.offsetX,Ce="middle"):c.config.yaxis[0].labels.align==="right"&&(Ce="end");var Me=d.drawText({x:we,y:i+o+W.offsetY-de,text:te,textAnchor:Ce,foreColor:Array.isArray(ce)?ce[$]:ce,fontSize:W.style.fontSize,fontFamily:W.style.fontFamily,fontWeight:W.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+W.style.cssClass,maxWidth:W.maxWidth});k.add(Me),Me.on("click",function($e){if(typeof c.config.chart.events.xAxisLabelClick=="function"){var Ze=Object.assign({},c,{labelIndex:$});c.config.chart.events.xAxisLabelClick($e,u.ctx,Ze)}});var Be=document.createElementNS(c.globals.SVGNS,"title");if(Be.textContent=Array.isArray(te)?te.join(" "):te,Me.node.appendChild(Be),c.config.yaxis[n].labels.rotate!==0){var ze=d.rotateAroundCenter(Me.node);Me.node.setAttribute("transform","rotate(".concat(c.config.yaxis[n].labels.rotate," 0 ").concat(ze.y,")"))}i+=o},q=0;q<=E.length-1;q++)G(q);if(c.config.yaxis[0].title.text!==void 0){var Q=d.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+h+", 0)"}),re=d.drawText({x:c.config.yaxis[0].title.offsetX,y:c.globals.gridHeight/2+c.config.yaxis[0].title.offsetY,text:c.config.yaxis[0].title.text,textAnchor:"middle",foreColor:c.config.yaxis[0].title.style.color,fontSize:c.config.yaxis[0].title.style.fontSize,fontWeight:c.config.yaxis[0].title.style.fontWeight,fontFamily:c.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+c.config.yaxis[0].title.style.cssClass});Q.add(re),x.add(Q)}var ie=0;this.isCategoryBarHorizontal&&c.config.yaxis[0].opposite&&(ie=c.globals.gridWidth);var C=c.config.xaxis.axisBorder;if(C.show){var I=d.drawLine(c.globals.padHorizontal+C.offsetX+ie,1+C.offsetY,c.globals.padHorizontal+C.offsetX+ie,c.globals.gridHeight+C.offsetY,C.color,0);this.elgrid&&this.elgrid.elGridBorders&&c.config.grid.show?this.elgrid.elGridBorders.add(I):x.add(I)}return c.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(ie,E.length,c.config.yaxis[0].axisBorder,c.config.yaxis[0].axisTicks,0,o,x),x}},{key:"drawXaxisTicks",value:function(n,o,i){var u=this.w,c=n;if(!(n<0||n-2>u.globals.gridWidth)){var d=this.offY+u.config.xaxis.axisTicks.offsetY;if(o=o+d+u.config.xaxis.axisTicks.height,u.config.xaxis.position==="top"&&(o=d-u.config.xaxis.axisTicks.height),u.config.xaxis.axisTicks.show){var h=new m(this.ctx).drawLine(n+u.config.xaxis.axisTicks.offsetX,d+u.config.xaxis.offsetY,c+u.config.xaxis.axisTicks.offsetX,o+u.config.xaxis.offsetY,u.config.xaxis.axisTicks.color);i.add(h),h.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var n=this.w,o=[],i=this.xaxisLabels.length,u=n.globals.padHorizontal;if(n.globals.timescaleLabels.length>0)for(var c=0;c<i;c++)u=this.xaxisLabels[c].position,o.push(u);else for(var d=i,h=0;h<d;h++){var x=d;n.globals.isXNumeric&&n.config.chart.type!=="bar"&&(x-=1),u+=n.globals.gridWidth/x,o.push(u)}return o}},{key:"xAxisLabelCorrections",value:function(){var n=this.w,o=new m(this.ctx),i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),c=n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),d=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(n.globals.rotateXLabels||n.config.xaxis.labels.rotateAlways)for(var h=0;h<u.length;h++){var x=o.rotateAroundCenter(u[h]);x.y=x.y-1,x.x=x.x+1,u[h].setAttribute("transform","rotate(".concat(n.config.xaxis.labels.rotate," ").concat(x.x," ").concat(x.y,")")),u[h].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var k=u[h].childNodes;n.config.xaxis.labels.trim&&Array.prototype.forEach.call(k,function(W){o.placeTextWithEllipsis(W,W.textContent,n.globals.xAxisLabelsHeight-(n.config.legend.position==="bottom"?20:10))})}else(function(){for(var W=n.globals.gridWidth/(n.globals.labels.length+1),G=0;G<u.length;G++){var q=u[G].childNodes;n.config.xaxis.labels.trim&&n.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(q,function(Q){o.placeTextWithEllipsis(Q,Q.textContent,W)})}})();if(c.length>0){var E=c[c.length-1].getBBox(),N=c[0].getBBox();E.x<-20&&c[c.length-1].parentNode.removeChild(c[c.length-1]),N.x+N.width>n.globals.gridWidth&&!n.globals.isBarHorizontal&&c[0].parentNode.removeChild(c[0]);for(var L=0;L<d.length;L++)o.placeTextWithEllipsis(d[L],d[L].textContent,n.config.yaxis[0].labels.maxWidth-(n.config.yaxis[0].title.text?2*parseFloat(n.config.yaxis[0].title.style.fontSize):0)-15)}}}]),J}(),We=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.xaxisLabels=o.globals.labels.slice(),this.axesUtils=new Ve(n),this.isRangeBar=o.globals.seriesRange.length&&o.globals.isBarHorizontal,o.globals.timescaleLabels.length>0&&(this.xaxisLabels=o.globals.timescaleLabels.slice())}return b(J,[{key:"drawGridArea",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=this.w,i=new m(this.ctx);n===null&&(n=i.group({class:"apexcharts-grid"}));var u=i.drawLine(o.globals.padHorizontal,1,o.globals.padHorizontal,o.globals.gridHeight,"transparent"),c=i.drawLine(o.globals.padHorizontal,o.globals.gridHeight,o.globals.gridWidth,o.globals.gridHeight,"transparent");return n.add(c),n.add(u),n}},{key:"drawGrid",value:function(){var n=null;return this.w.globals.axisCharts&&(n=this.renderGrid(),this.drawGridArea(n.el)),n}},{key:"createGridMask",value:function(){var n=this.w,o=n.globals,i=new m(this.ctx),u=Array.isArray(n.config.stroke.width)?0:n.config.stroke.width;if(Array.isArray(n.config.stroke.width)){var c=0;n.config.stroke.width.forEach(function(N){c=Math.max(c,N)}),u=c}o.dom.elGridRectMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(o.cuid)),o.dom.elGridRectMarkerMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(o.cuid)),o.dom.elForecastMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elForecastMask.setAttribute("id","forecastMask".concat(o.cuid)),o.dom.elNonForecastMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(o.cuid));var d=n.config.chart.type,h=0,x=0;(d==="bar"||d==="rangeBar"||d==="candlestick"||d==="boxPlot"||n.globals.comboBarCount>0)&&n.globals.isXNumeric&&!n.globals.isBarHorizontal&&(h=n.config.grid.padding.left,x=n.config.grid.padding.right,o.barPadForNumericAxis>h&&(h=o.barPadForNumericAxis,x=o.barPadForNumericAxis)),o.dom.elGridRect=i.drawRect(-u-h-2,2*-u-2,o.gridWidth+u+x+h+4,o.gridHeight+4*u+4,0,"#fff");var k=n.globals.markers.largestSize+1;o.dom.elGridRectMarker=i.drawRect(2*-k,2*-k,o.gridWidth+4*k,o.gridHeight+4*k,0,"#fff"),o.dom.elGridRectMask.appendChild(o.dom.elGridRect.node),o.dom.elGridRectMarkerMask.appendChild(o.dom.elGridRectMarker.node);var E=o.dom.baseEl.querySelector("defs");E.appendChild(o.dom.elGridRectMask),E.appendChild(o.dom.elForecastMask),E.appendChild(o.dom.elNonForecastMask),E.appendChild(o.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(n){var o=n.i,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.xCount,x=n.parent,k=this.w;if(!(o===0&&k.globals.skipFirstTimelinelabel||o===h-1&&k.globals.skipLastTimelinelabel&&!k.config.xaxis.labels.formatter||k.config.chart.type==="radar")){k.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,x1:i,y1:u,x2:c,y2:d,xCount:h,parent:x});var E=0;if(k.globals.hasXaxisGroups&&k.config.xaxis.tickPlacement==="between"){var N=k.globals.groups;if(N){for(var L=0,W=0;L<o&&W<N.length;W++)L+=N[W].cols;L===o&&(E=.6*k.globals.xAxisLabelsHeight)}}new He(this.ctx).drawXaxisTicks(i,E,k.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(n){var o=n.i,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.xCount,x=n.parent,k=this.w,E=!1,N=x.node.classList.contains("apexcharts-gridlines-horizontal"),L=k.config.grid.strokeDashArray,W=k.globals.barPadForNumericAxis;(u===0&&d===0||i===0&&c===0)&&(E=!0),u===k.globals.gridHeight&&d===k.globals.gridHeight&&(E=!0),!k.globals.isBarHorizontal||o!==0&&o!==h-1||(E=!0);var G=new m(this).drawLine(i-(N?W:0),u,c+(N?W:0),d,k.config.grid.borderColor,L);G.node.classList.add("apexcharts-gridline"),E&&k.config.grid.show?this.elGridBorders.add(G):x.add(G)}},{key:"_drawGridBandRect",value:function(n){var o=n.c,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.type,x=this.w,k=new m(this.ctx),E=x.globals.barPadForNumericAxis;if(h!=="column"||x.config.xaxis.type!=="datetime"){var N=x.config.grid[h].colors[o],L=k.drawRect(i-(h==="row"?E:0),u,c+(h==="row"?2*E:0),d,0,N,x.config.grid[h].opacity);this.elg.add(L),L.attr("clip-path","url(#gridRectMask".concat(x.globals.cuid,")")),L.node.classList.add("apexcharts-grid-".concat(h))}}},{key:"_drawXYLines",value:function(n){var o=this,i=n.xCount,u=n.tickAmount,c=this.w;if(c.config.grid.xaxis.lines.show||c.config.xaxis.axisTicks.show){var d,h=c.globals.padHorizontal,x=c.globals.gridHeight;c.globals.timescaleLabels.length?function(G){for(var q=G.xC,Q=G.x1,re=G.y1,ie=G.x2,C=G.y2,I=0;I<q;I++)Q=o.xaxisLabels[I].position,ie=o.xaxisLabels[I].position,o._drawGridLines({i:I,x1:Q,y1:re,x2:ie,y2:C,xCount:i,parent:o.elgridLinesV})}({xC:i,x1:h,y1:0,x2:d,y2:x}):(c.globals.isXNumeric&&(i=c.globals.xAxisScale.result.length),function(G){for(var q=G.xC,Q=G.x1,re=G.y1,ie=G.x2,C=G.y2,I=0;I<q+(c.globals.isXNumeric?0:1);I++)I===0&&q===1&&c.globals.dataPoints===1&&(ie=Q=c.globals.gridWidth/2),o._drawGridLines({i:I,x1:Q,y1:re,x2:ie,y2:C,xCount:i,parent:o.elgridLinesV}),ie=Q+=c.globals.gridWidth/(c.globals.isXNumeric?q-1:q)}({xC:i,x1:h,y1:0,x2:d,y2:x}))}if(c.config.grid.yaxis.lines.show){var k=0,E=0,N=c.globals.gridWidth,L=u+1;this.isRangeBar&&(L=c.globals.labels.length);for(var W=0;W<L+(this.isRangeBar?1:0);W++)this._drawGridLine({i:W,xCount:L+(this.isRangeBar?1:0),x1:0,y1:k,x2:N,y2:E,parent:this.elgridLinesH}),E=k+=c.globals.gridHeight/(this.isRangeBar?L:u)}}},{key:"_drawInvertedXYLines",value:function(n){var o=n.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var u,c=i.globals.padHorizontal,d=i.globals.gridHeight,h=0;h<o+1;h++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:h,xCount:o+1,x1:c,y1:0,x2:u,y2:d,parent:this.elgridLinesV}),new He(this.ctx).drawXaxisTicks(c,0,i.globals.dom.elGraphical),u=c=c+i.globals.gridWidth/o+.3;if(i.config.grid.yaxis.lines.show)for(var x=0,k=0,E=i.globals.gridWidth,N=0;N<i.globals.dataPoints+1;N++)this._drawGridLine({i:N,xCount:i.globals.dataPoints+1,x1:0,y1:x,x2:E,y2:k,parent:this.elgridLinesH}),k=x+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var n=this.w,o=new m(this.ctx);this.elg=o.group({class:"apexcharts-grid"}),this.elgridLinesH=o.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=o.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=o.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),n.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i,u=n.globals.yAxisScale.length?n.globals.yAxisScale[0].result.length-1:5,c=0;c<n.globals.series.length&&(n.globals.yAxisScale[c]!==void 0&&(u=n.globals.yAxisScale[c].result.length-1),!(u>2));c++);return!n.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(i--,u=n.globals.labels.length,n.config.xaxis.tickAmount&&n.config.xaxis.labels.formatter&&(i=n.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:u})):(i=u,u=n.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:u})),this.drawGridBands(i,u),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:n.globals.gridWidth/i}}},{key:"drawGridBands",value:function(n,o){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var u=0,c=i.globals.gridHeight/o,d=i.globals.gridWidth,h=0,x=0;h<o;h++,x++)x>=i.config.grid.row.colors.length&&(x=0),this._drawGridBandRect({c:x,x1:0,y1:u,x2:d,y2:c,type:"row"}),u+=i.globals.gridHeight/o;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var k=i.globals.isBarHorizontal||i.config.xaxis.tickPlacement!=="on"||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?n:n-1,E=i.globals.padHorizontal,N=i.globals.padHorizontal+i.globals.gridWidth/k,L=i.globals.gridHeight,W=0,G=0;W<n;W++,G++)G>=i.config.grid.column.colors.length&&(G=0),this._drawGridBandRect({c:G,x1:E,y1:0,x2:N,y2:L,type:"column"}),E+=i.globals.gridWidth/k}}]),J}(),Ke=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"niceScale",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4?arguments[4]:void 0,d=this.w,h=Math.abs(o-n);if((i=this._adjustTicksForSmallRange(i,u,h))==="dataPoints"&&(i=d.globals.dataPoints-1),n===Number.MIN_VALUE&&o===0||!p.isNumber(n)&&!p.isNumber(o)||n===Number.MIN_VALUE&&o===-Number.MAX_VALUE)return n=0,o=i,this.linearScale(n,o,i);n>o?(console.warn("axis.min cannot be greater than axis.max"),o=n+.1):n===o&&(n=n===0?0:n-.5,o=o===0?2:o+.5);var x=[];h<1&&c&&(d.config.chart.type==="candlestick"||d.config.series[u].type==="candlestick"||d.config.chart.type==="boxPlot"||d.config.series[u].type==="boxPlot"||d.globals.isRangeData)&&(o*=1.01);var k=i+1;k<2?k=2:k>2&&(k-=2);var E=h/k,N=Math.floor(p.log10(E)),L=Math.pow(10,N),W=Math.round(E/L);W<1&&(W=1);var G=W*L,q=G*Math.floor(n/G),Q=G*Math.ceil(o/G),re=q;if(c&&h>2){for(;x.push(p.stripNumber(re,7)),!((re+=G)>Q););return{result:x,niceMin:x[0],niceMax:x[x.length-1]}}var ie=n;(x=[]).push(p.stripNumber(ie,7));for(var C=Math.abs(o-n)/i,I=0;I<=i;I++)ie+=C,x.push(ie);return x[x.length-2]>=o&&x.pop(),{result:x,niceMin:x[0],niceMax:x[x.length-1]}}},{key:"linearScale",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,u=arguments.length>3?arguments[3]:void 0,c=Math.abs(o-n);(i=this._adjustTicksForSmallRange(i,u,c))==="dataPoints"&&(i=this.w.globals.dataPoints-1);var d=c/i;i===Number.MAX_VALUE&&(i=10,d=1);for(var h=[],x=n;i>=0;)h.push(x),x+=d,i-=1;return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"logarithmicScaleNice",value:function(n,o,i){o<=0&&(o=Math.max(n,i)),n<=0&&(n=Math.min(o,i));for(var u=[],c=Math.ceil(Math.log(o)/Math.log(i)+1),d=Math.floor(Math.log(n)/Math.log(i));d<c;d++)u.push(Math.pow(i,d));return{result:u,niceMin:u[0],niceMax:u[u.length-1]}}},{key:"logarithmicScale",value:function(n,o,i){o<=0&&(o=Math.max(n,i)),n<=0&&(n=Math.min(o,i));for(var u=[],c=Math.log(o)/Math.log(i),d=Math.log(n)/Math.log(i),h=c-d,x=Math.round(h),k=h/x,E=0,N=d;E<x;E++,N+=k)u.push(Math.pow(i,N));return u.push(Math.pow(i,c)),{result:u,niceMin:n,niceMax:o}}},{key:"_adjustTicksForSmallRange",value:function(n,o,i){var u=n;if(o!==void 0&&this.w.config.yaxis[o].labels.formatter&&this.w.config.yaxis[o].tickAmount===void 0){var c=Number(this.w.config.yaxis[o].labels.formatter(1));p.isNumber(c)&&this.w.globals.yValueDecimal===0&&(u=Math.ceil(i))}return u<n?u:n}},{key:"setYScaleForIndex",value:function(n,o,i){var u=this.w.globals,c=this.w.config,d=u.isBarHorizontal?c.xaxis:c.yaxis[n];u.yAxisScale[n]===void 0&&(u.yAxisScale[n]=[]);var h=Math.abs(i-o);if(d.logarithmic&&h<=5&&(u.invalidLogScale=!0),d.logarithmic&&h>5)u.allSeriesCollapsed=!1,u.yAxisScale[n]=this.logarithmicScale(o,i,d.logBase),u.yAxisScale[n]=d.forceNiceScale?this.logarithmicScaleNice(o,i,d.logBase):this.logarithmicScale(o,i,d.logBase);else if(i!==-Number.MAX_VALUE&&p.isNumber(i))if(u.allSeriesCollapsed=!1,d.min===void 0&&d.max===void 0||d.forceNiceScale){var x=c.yaxis[n].max===void 0&&c.yaxis[n].min===void 0||c.yaxis[n].forceNiceScale;u.yAxisScale[n]=this.niceScale(o,i,d.tickAmount?d.tickAmount:h<5&&h>1?h+1:5,n,x)}else u.yAxisScale[n]=this.linearScale(o,i,d.tickAmount,n);else u.yAxisScale[n]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(n,o){var i=this.w,u=i.globals,c=i.config.xaxis,d=Math.abs(o-n);return o!==-Number.MAX_VALUE&&p.isNumber(o)?u.xAxisScale=this.linearScale(n,o,c.tickAmount?c.tickAmount:d<5&&d>1?d+1:5,0):u.xAxisScale=this.linearScale(0,5,5),u.xAxisScale}},{key:"setMultipleYScales",value:function(){var n=this,o=this.w.globals,i=this.w.config,u=o.minYArr.concat([]),c=o.maxYArr.concat([]),d=[];i.yaxis.forEach(function(h,x){var k=x;i.series.forEach(function(L,W){L.name===h.seriesName&&(k=W,x!==W?d.push({index:W,similarIndex:x,alreadyExists:!0}):d.push({index:W}))});var E=u[k],N=c[k];n.setYScaleForIndex(x,E,N)}),this.sameScaleInMultipleAxes(u,c,d)}},{key:"sameScaleInMultipleAxes",value:function(n,o,i){var u=this,c=this.w.config,d=this.w.globals,h=[];i.forEach(function(q){q.alreadyExists&&(h[q.index]===void 0&&(h[q.index]=[]),h[q.index].push(q.index),h[q.index].push(q.similarIndex))}),d.yAxisSameScaleIndices=h,h.forEach(function(q,Q){h.forEach(function(re,ie){var C,I;Q!==ie&&(C=q,I=re,C.filter(function($){return I.indexOf($)!==-1})).length>0&&(h[Q]=h[Q].concat(h[ie]))})});var x=h.map(function(q){return q.filter(function(Q,re){return q.indexOf(Q)===re})}).map(function(q){return q.sort()});h=h.filter(function(q){return!!q});var k=x.slice(),E=k.map(function(q){return JSON.stringify(q)});k=k.filter(function(q,Q){return E.indexOf(JSON.stringify(q))===Q});var N=[],L=[];n.forEach(function(q,Q){k.forEach(function(re,ie){re.indexOf(Q)>-1&&(N[ie]===void 0&&(N[ie]=[],L[ie]=[]),N[ie].push({key:Q,value:q}),L[ie].push({key:Q,value:o[Q]}))})});var W=Array.apply(null,Array(k.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),G=Array.apply(null,Array(k.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);N.forEach(function(q,Q){q.forEach(function(re,ie){W[Q]=Math.min(re.value,W[Q])})}),L.forEach(function(q,Q){q.forEach(function(re,ie){G[Q]=Math.max(re.value,G[Q])})}),n.forEach(function(q,Q){L.forEach(function(re,ie){var C=W[ie],I=G[ie];c.chart.stacked&&(I=0,re.forEach(function($,te){$.value!==-Number.MAX_VALUE&&(I+=$.value),C!==Number.MIN_VALUE&&(C+=N[ie][te].value)})),re.forEach(function($,te){re[te].key===Q&&(c.yaxis[Q].min!==void 0&&(C=typeof c.yaxis[Q].min=="function"?c.yaxis[Q].min(d.minY):c.yaxis[Q].min),c.yaxis[Q].max!==void 0&&(I=typeof c.yaxis[Q].max=="function"?c.yaxis[Q].max(d.maxY):c.yaxis[Q].max),u.setYScaleForIndex(Q,C,I))})})})}},{key:"autoScaleY",value:function(n,o,i){n||(n=this);var u=n.w;if(u.globals.isMultipleYAxis||u.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),o;var c=u.globals.seriesX[0],d=u.config.chart.stacked;return o.forEach(function(h,x){for(var k=0,E=0;E<c.length;E++)if(c[E]>=i.xaxis.min){k=E;break}var N,L,W=u.globals.minYArr[x],G=u.globals.maxYArr[x],q=u.globals.stackedSeriesTotals;u.globals.series.forEach(function(Q,re){var ie=Q[k];d?(ie=q[k],N=L=ie,q.forEach(function(C,I){c[I]<=i.xaxis.max&&c[I]>=i.xaxis.min&&(C>L&&C!==null&&(L=C),Q[I]<N&&Q[I]!==null&&(N=Q[I]))})):(N=L=ie,Q.forEach(function(C,I){if(c[I]<=i.xaxis.max&&c[I]>=i.xaxis.min){var $=C,te=C;u.globals.series.forEach(function(ce,de){C!==null&&($=Math.min(ce[I],$),te=Math.max(ce[I],te))}),te>L&&te!==null&&(L=te),$<N&&$!==null&&(N=$)}})),N===void 0&&L===void 0&&(N=W,L=G),L*=L<0?.9:1.1,(N*=N<0?1.1:.9)===0&&L===0&&(N=-1,L=1),L<0&&L<G&&(L=G),N<0&&N>W&&(N=W),o.length>1?(o[re].min=h.min===void 0?N:h.min,o[re].max=h.max===void 0?L:h.max):(o[0].min=h.min===void 0?N:h.min,o[0].max=h.max===void 0?L:h.max)})}),o}}]),J}(),ot=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.scales=new Ke(n)}return b(J,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=this.w.config,d=this.w.globals,h=-Number.MAX_VALUE,x=Number.MIN_VALUE;u===null&&(u=n+1);var k=d.series,E=k,N=k;c.chart.type==="candlestick"?(E=d.seriesCandleL,N=d.seriesCandleH):c.chart.type==="boxPlot"?(E=d.seriesCandleO,N=d.seriesCandleC):d.isRangeData&&(E=d.seriesRangeStart,N=d.seriesRangeEnd);for(var L=n;L<u;L++){d.dataPoints=Math.max(d.dataPoints,k[L].length),d.categoryLabels.length&&(d.dataPoints=d.categoryLabels.filter(function(q){return q!==void 0}).length),d.labels.length&&c.xaxis.type!=="datetime"&&d.series.reduce(function(q,Q){return q+Q.length},0)!==0&&(d.dataPoints=Math.max(d.dataPoints,d.labels.length));for(var W=0;W<d.series[L].length;W++){var G=k[L][W];G!==null&&p.isNumber(G)?(N[L][W]!==void 0&&(h=Math.max(h,N[L][W]),o=Math.min(o,N[L][W])),E[L][W]!==void 0&&(o=Math.min(o,E[L][W]),i=Math.max(i,E[L][W])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||d.seriesCandleC[L][W]!==void 0&&(h=Math.max(h,d.seriesCandleO[L][W]),h=Math.max(h,d.seriesCandleH[L][W]),h=Math.max(h,d.seriesCandleL[L][W]),h=Math.max(h,d.seriesCandleC[L][W]),this.w.config.chart.type==="boxPlot"&&(h=Math.max(h,d.seriesCandleM[L][W]))),!c.series[L].type||c.series[L].type==="candlestick"&&c.series[L].type==="boxPlot"&&c.series[L].type==="rangeArea"&&c.series[L].type==="rangeBar"||(h=Math.max(h,d.series[L][W]),o=Math.min(o,d.series[L][W])),i=h),d.seriesGoals[L]&&d.seriesGoals[L][W]&&Array.isArray(d.seriesGoals[L][W])&&d.seriesGoals[L][W].forEach(function(q){x!==Number.MIN_VALUE&&(x=Math.min(x,q.value),o=x),h=Math.max(h,q.value),i=h}),p.isFloat(G)&&(G=p.noExponents(G),d.yValueDecimal=Math.max(d.yValueDecimal,G.toString().split(".")[1].length)),x>E[L][W]&&E[L][W]<0&&(x=E[L][W])):d.hasNullValues=!0}}return c.chart.type==="rangeBar"&&d.seriesRangeStart.length&&d.isBarHorizontal&&(x=o),c.chart.type==="bar"&&(x<0&&h<0&&(h=0),x===Number.MIN_VALUE&&(x=0)),{minY:x,maxY:h,lowestY:o,highestY:i}}},{key:"setYRange",value:function(){var n=this.w.globals,o=this.w.config;n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(n.isMultipleYAxis)for(var u=0;u<n.series.length;u++){var c=this.getMinYMaxY(u,i,null,u+1);n.minYArr.push(c.minY),n.maxYArr.push(c.maxY),i=c.lowestY}var d=this.getMinYMaxY(0,i,null,n.series.length);if(n.minY=d.minY,n.maxY=d.maxY,i=d.lowestY,o.chart.stacked&&this._setStackedMinMax(),(o.chart.type==="line"||o.chart.type==="area"||o.chart.type==="candlestick"||o.chart.type==="boxPlot"||o.chart.type==="rangeBar"&&!n.isBarHorizontal)&&n.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==n.maxY){var h=n.maxY-i;(i>=0&&i<=10||o.yaxis[0].min!==void 0||o.yaxis[0].max!==void 0)&&(h=0),n.minY=i-5*h/100,i>0&&n.minY<0&&(n.minY=0),n.maxY=n.maxY+5*h/100}return o.yaxis.forEach(function(x,k){x.max!==void 0&&(typeof x.max=="number"?n.maxYArr[k]=x.max:typeof x.max=="function"&&(n.maxYArr[k]=x.max(n.isMultipleYAxis?n.maxYArr[k]:n.maxY)),n.maxY=n.maxYArr[k]),x.min!==void 0&&(typeof x.min=="number"?n.minYArr[k]=x.min:typeof x.min=="function"&&(n.minYArr[k]=x.min(n.isMultipleYAxis?n.minYArr[k]===Number.MIN_VALUE?0:n.minYArr[k]:n.minY)),n.minY=n.minYArr[k])}),n.isBarHorizontal&&["min","max"].forEach(function(x){o.xaxis[x]!==void 0&&typeof o.xaxis[x]=="number"&&(x==="min"?n.minY=o.xaxis[x]:n.maxY=o.xaxis[x])}),n.isMultipleYAxis?(this.scales.setMultipleYScales(),n.minY=i,n.yAxisScale.forEach(function(x,k){n.minYArr[k]=x.niceMin,n.maxYArr[k]=x.niceMax})):(this.scales.setYScaleForIndex(0,n.minY,n.maxY),n.minY=n.yAxisScale[0].niceMin,n.maxY=n.yAxisScale[0].niceMax,n.minYArr[0]=n.yAxisScale[0].niceMin,n.maxYArr[0]=n.yAxisScale[0].niceMax),{minY:n.minY,maxY:n.maxY,minYArr:n.minYArr,maxYArr:n.maxYArr,yAxisScale:n.yAxisScale}}},{key:"setXRange",value:function(){var n=this.w.globals,o=this.w.config,i=o.xaxis.type==="numeric"||o.xaxis.type==="datetime"||o.xaxis.type==="category"&&!n.noLabelsProvided||n.noLabelsProvided||n.isXNumeric;if(n.isXNumeric&&function(){for(var h=0;h<n.series.length;h++)if(n.labels[h])for(var x=0;x<n.labels[h].length;x++)n.labels[h][x]!==null&&p.isNumber(n.labels[h][x])&&(n.maxX=Math.max(n.maxX,n.labels[h][x]),n.initialMaxX=Math.max(n.maxX,n.labels[h][x]),n.minX=Math.min(n.minX,n.labels[h][x]),n.initialMinX=Math.min(n.minX,n.labels[h][x]))}(),n.noLabelsProvided&&o.xaxis.categories.length===0&&(n.maxX=n.labels[n.labels.length-1],n.initialMaxX=n.labels[n.labels.length-1],n.minX=1,n.initialMinX=1),n.isXNumeric||n.noLabelsProvided||n.dataFormatXNumeric){var u;if(o.xaxis.tickAmount===void 0?(u=Math.round(n.svgWidth/150),o.xaxis.type==="numeric"&&n.dataPoints<30&&(u=n.dataPoints-1),u>n.dataPoints&&n.dataPoints!==0&&(u=n.dataPoints-1)):o.xaxis.tickAmount==="dataPoints"?(n.series.length>1&&(u=n.series[n.maxValsInArrayIndex].length-1),n.isXNumeric&&(u=n.maxX-n.minX-1)):u=o.xaxis.tickAmount,n.xTickAmount=u,o.xaxis.max!==void 0&&typeof o.xaxis.max=="number"&&(n.maxX=o.xaxis.max),o.xaxis.min!==void 0&&typeof o.xaxis.min=="number"&&(n.minX=o.xaxis.min),o.xaxis.range!==void 0&&(n.minX=n.maxX-o.xaxis.range),n.minX!==Number.MAX_VALUE&&n.maxX!==-Number.MAX_VALUE)if(o.xaxis.convertedCatToNumeric&&!n.dataFormatXNumeric){for(var c=[],d=n.minX-1;d<n.maxX;d++)c.push(d+1);n.xAxisScale={result:c,niceMin:c[0],niceMax:c[c.length-1]}}else n.xAxisScale=this.scales.setXScale(n.minX,n.maxX);else n.xAxisScale=this.scales.linearScale(0,u,u),n.noLabelsProvided&&n.labels.length>0&&(n.xAxisScale=this.scales.linearScale(1,n.labels.length,u-1),n.seriesX=n.labels.slice());i&&(n.labels=n.xAxisScale.result.slice())}return n.isBarHorizontal&&n.labels.length&&(n.xTickAmount=n.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:n.minX,maxX:n.maxX}}},{key:"setZRange",value:function(){var n=this.w.globals;if(n.isDataXYZ){for(var o=0;o<n.series.length;o++)if(n.seriesZ[o]!==void 0)for(var i=0;i<n.seriesZ[o].length;i++)n.seriesZ[o][i]!==null&&p.isNumber(n.seriesZ[o][i])&&(n.maxZ=Math.max(n.maxZ,n.seriesZ[o][i]),n.minZ=Math.min(n.minZ,n.seriesZ[o][i]))}}},{key:"_handleSingleDataPoint",value:function(){var n=this.w.globals,o=this.w.config;if(n.minX===n.maxX){var i=new ne(this.ctx);if(o.xaxis.type==="datetime"){var u=i.getDate(n.minX);o.xaxis.labels.datetimeUTC?u.setUTCDate(u.getUTCDate()-2):u.setDate(u.getDate()-2),n.minX=new Date(u).getTime();var c=i.getDate(n.maxX);o.xaxis.labels.datetimeUTC?c.setUTCDate(c.getUTCDate()+2):c.setDate(c.getDate()+2),n.maxX=new Date(c).getTime()}else(o.xaxis.type==="numeric"||o.xaxis.type==="category"&&!n.noLabelsProvided)&&(n.minX=n.minX-2,n.initialMinX=n.minX,n.maxX=n.maxX+2,n.initialMaxX=n.maxX)}}},{key:"_getMinXDiff",value:function(){var n=this.w.globals;n.isXNumeric&&n.seriesX.forEach(function(o,i){o.length===1&&o.push(n.seriesX[n.maxValsInArrayIndex][n.seriesX[n.maxValsInArrayIndex].length-1]);var u=o.slice();u.sort(function(c,d){return c-d}),u.forEach(function(c,d){if(d>0){var h=c-u[d-1];h>0&&(n.minXDiff=Math.min(h,n.minXDiff))}}),n.dataPoints!==1&&n.minXDiff!==Number.MAX_VALUE||(n.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var n=this,o=this.w.globals;if(o.series.length){var i=o.seriesGroups;i.length||(i=[this.w.config.series.map(function(d){return d.name})]);var u={},c={};i.forEach(function(d){u[d]=[],c[d]=[],n.w.config.series.map(function(h,x){return d.indexOf(h.name)>-1?x:null}).filter(function(h){return h!==null}).forEach(function(h){for(var x=0;x<o.series[o.maxValsInArrayIndex].length;x++)u[d][x]===void 0&&(u[d][x]=0,c[d][x]=0),o.series[h][x]!==null&&p.isNumber(o.series[h][x])&&(o.series[h][x]>0?u[d][x]+=parseFloat(o.series[h][x])+1e-4:c[d][x]+=parseFloat(o.series[h][x]))})}),Object.entries(u).forEach(function(d){var h=D(d,1)[0];u[h].forEach(function(x,k){o.maxY=Math.max(o.maxY,u[h][k]),o.minY=Math.min(o.minY,c[h][k])})})}}}]),J}(),Qe=function(){function J(n,o){l(this,J),this.ctx=n,this.elgrid=o,this.w=n.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,i.config.xaxis.position==="bottom"&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Ve(n)}return b(J,[{key:"drawYaxis",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=i.config.yaxis[n].labels.style,d=c.fontSize,h=c.fontFamily,x=c.fontWeight,k=u.group({class:"apexcharts-yaxis",rel:n,transform:"translate("+i.globals.translateYAxisX[n]+", 0)"});if(this.axesUtils.isYAxisHidden(n))return k;var E=u.group({class:"apexcharts-yaxis-texts-g"});k.add(E);var N=i.globals.yAxisScale[n].result.length-1,L=i.globals.gridHeight/N,W=i.globals.translateY,G=i.globals.yLabelFormatters[n],q=i.globals.yAxisScale[n].result.slice();q=this.axesUtils.checkForReversedLabels(n,q);var Q="";if(i.config.yaxis[n].labels.show)for(var re=function(we){var Ce=q[we];Ce=G(Ce,we,i);var Me=i.config.yaxis[n].labels.padding;i.config.yaxis[n].opposite&&i.config.yaxis.length!==0&&(Me*=-1);var Be="end";i.config.yaxis[n].opposite&&(Be="start"),i.config.yaxis[n].labels.align==="left"?Be="start":i.config.yaxis[n].labels.align==="center"?Be="middle":i.config.yaxis[n].labels.align==="right"&&(Be="end");var ze=o.axesUtils.getYAxisForeColor(c.colors,n),$e=i.config.yaxis[n].labels.offsetY;i.config.chart.type==="heatmap"&&($e-=(i.globals.gridHeight/i.globals.series.length-1)/2);var Ze=u.drawText({x:Me,y:W+N/10+$e+1,text:Ce,textAnchor:Be,fontSize:d,fontFamily:h,fontWeight:x,maxWidth:i.config.yaxis[n].labels.maxWidth,foreColor:Array.isArray(ze)?ze[we]:ze,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+c.cssClass});we===N&&(Q=Ze),E.add(Ze);var ct=document.createElementNS(i.globals.SVGNS,"title");if(ct.textContent=Array.isArray(Ce)?Ce.join(" "):Ce,Ze.node.appendChild(ct),i.config.yaxis[n].labels.rotate!==0){var mt=u.rotateAroundCenter(Q.node),Pt=u.rotateAroundCenter(Ze.node);Ze.node.setAttribute("transform","rotate(".concat(i.config.yaxis[n].labels.rotate," ").concat(mt.x," ").concat(Pt.y,")"))}W+=L},ie=N;ie>=0;ie--)re(ie);if(i.config.yaxis[n].title.text!==void 0){var C=u.group({class:"apexcharts-yaxis-title"}),I=0;i.config.yaxis[n].opposite&&(I=i.globals.translateYAxisX[n]);var $=u.drawText({x:I,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[n].title.offsetY,text:i.config.yaxis[n].title.text,textAnchor:"end",foreColor:i.config.yaxis[n].title.style.color,fontSize:i.config.yaxis[n].title.style.fontSize,fontWeight:i.config.yaxis[n].title.style.fontWeight,fontFamily:i.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[n].title.style.cssClass});C.add($),k.add(C)}var te=i.config.yaxis[n].axisBorder,ce=31+te.offsetX;if(i.config.yaxis[n].opposite&&(ce=-31-te.offsetX),te.show){var de=u.drawLine(ce,i.globals.translateY+te.offsetY-2,ce,i.globals.gridHeight+i.globals.translateY+te.offsetY+2,te.color,0,te.width);k.add(de)}return i.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(ce,N,te,i.config.yaxis[n].axisTicks,n,L,k),k}},{key:"drawYaxisInversed",value:function(n){var o=this.w,i=new m(this.ctx),u=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),c=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(o.globals.translateXAxisX,", ").concat(o.globals.translateXAxisY,")")});u.add(c);var d=o.globals.yAxisScale[n].result.length-1,h=o.globals.gridWidth/d+.1,x=h+o.config.xaxis.labels.offsetX,k=o.globals.xLabelFormatter,E=o.globals.yAxisScale[n].result.slice(),N=o.globals.timescaleLabels;N.length>0&&(this.xaxisLabels=N.slice(),d=(E=N.slice()).length),E=this.axesUtils.checkForReversedLabels(n,E);var L=N.length;if(o.config.xaxis.labels.show)for(var W=L?0:d;L?W<L:W>=0;L?W++:W--){var G=E[W];G=k(G,W,o);var q=o.globals.gridWidth+o.globals.padHorizontal-(x-h+o.config.xaxis.labels.offsetX);if(N.length){var Q=this.axesUtils.getLabel(E,N,q,W,this.drawnLabels,this.xaxisFontSize);q=Q.x,G=Q.text,this.drawnLabels.push(Q.text),W===0&&o.globals.skipFirstTimelinelabel&&(G=""),W===E.length-1&&o.globals.skipLastTimelinelabel&&(G="")}var re=i.drawText({x:q,y:this.xAxisoffX+o.config.xaxis.labels.offsetY+30-(o.config.xaxis.position==="top"?o.globals.xAxisHeight+o.config.xaxis.axisTicks.height-2:0),text:G,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[n]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:o.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+o.config.xaxis.labels.style.cssClass});c.add(re),re.tspan(G);var ie=document.createElementNS(o.globals.SVGNS,"title");ie.textContent=G,re.node.appendChild(ie),x+=h}return this.inversedYAxisTitleText(u),this.inversedYAxisBorder(u),u}},{key:"inversedYAxisBorder",value:function(n){var o=this.w,i=new m(this.ctx),u=o.config.xaxis.axisBorder;if(u.show){var c=0;o.config.chart.type==="bar"&&o.globals.isXNumeric&&(c-=15);var d=i.drawLine(o.globals.padHorizontal+c+u.offsetX,this.xAxisoffX,o.globals.gridWidth,this.xAxisoffX,u.color,0,u.height);this.elgrid&&this.elgrid.elGridBorders&&o.config.grid.show?this.elgrid.elGridBorders.add(d):n.add(d)}}},{key:"inversedYAxisTitleText",value:function(n){var o=this.w,i=new m(this.ctx);if(o.config.xaxis.title.text!==void 0){var u=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),c=i.drawText({x:o.globals.gridWidth/2+o.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(o.config.xaxis.title.style.fontSize)+o.config.xaxis.title.offsetY+20,text:o.config.xaxis.title.text,textAnchor:"middle",fontSize:o.config.xaxis.title.style.fontSize,fontFamily:o.config.xaxis.title.style.fontFamily,fontWeight:o.config.xaxis.title.style.fontWeight,foreColor:o.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+o.config.xaxis.title.style.cssClass});u.add(c),n.add(u)}}},{key:"yAxisTitleRotate",value:function(n,o){var i=this.w,u=new m(this.ctx),c={width:0,height:0},d={width:0,height:0},h=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g"));h!==null&&(c=h.getBoundingClientRect());var x=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-title text"));if(x!==null&&(d=x.getBoundingClientRect()),x!==null){var k=this.xPaddingForYAxisTitle(n,c,d,o);x.setAttribute("x",k.xPos-(o?10:0))}if(x!==null){var E=u.rotateAroundCenter(x);x.setAttribute("transform","rotate(".concat(o?-1*i.config.yaxis[n].title.rotate:i.config.yaxis[n].title.rotate," ").concat(E.x," ").concat(E.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(n,o,i,u){var c=this.w,d=0,h=0,x=10;return c.config.yaxis[n].title.text===void 0||n<0?{xPos:h,padd:0}:(u?(h=o.width+c.config.yaxis[n].title.offsetX+i.width/2+x/2,(d+=1)===0&&(h-=x/2)):(h=-1*o.width+c.config.yaxis[n].title.offsetX+x/2+i.width/2,c.globals.isBarHorizontal&&(x=25,h=-1*o.width-c.config.yaxis[n].title.offsetX-x)),{xPos:h,padd:x})}},{key:"setYAxisXPosition",value:function(n,o){var i=this.w,u=0,c=0,d=18,h=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(x,k){var E=i.globals.ignoreYAxisIndexes.indexOf(k)>-1||!x.show||x.floating||n[k].width===0,N=n[k].width+o[k].width;x.opposite?i.globals.isBarHorizontal?(c=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[k]=c-x.labels.offsetX):(c=i.globals.gridWidth+i.globals.translateX+h,E||(h=h+N+20),i.globals.translateYAxisX[k]=c-x.labels.offsetX+20):(u=i.globals.translateX-d,E||(d=d+N+20),i.globals.translateYAxisX[k]=u+x.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var n=this.w,o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(o=p.listToArray(o)).forEach(function(i,u){var c=n.config.yaxis[u];if(c&&!c.floating&&c.labels.align!==void 0){var d=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(u,"'] .apexcharts-yaxis-texts-g")),h=n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(u,"'] .apexcharts-yaxis-label"));h=p.listToArray(h);var x=d.getBoundingClientRect();c.labels.align==="left"?(h.forEach(function(k,E){k.setAttribute("text-anchor","start")}),c.opposite||d.setAttribute("transform","translate(-".concat(x.width,", 0)"))):c.labels.align==="center"?(h.forEach(function(k,E){k.setAttribute("text-anchor","middle")}),d.setAttribute("transform","translate(".concat(x.width/2*(c.opposite?1:-1),", 0)"))):c.labels.align==="right"&&(h.forEach(function(k,E){k.setAttribute("text-anchor","end")}),c.opposite&&d.setAttribute("transform","translate(".concat(x.width,", 0)")))}})}}]),J}(),qe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.documentEvent=p.bind(this.documentEvent,this)}return b(J,[{key:"addEventListener",value:function(n,o){var i=this.w;i.globals.events.hasOwnProperty(n)?i.globals.events[n].push(o):i.globals.events[n]=[o]}},{key:"removeEventListener",value:function(n,o){var i=this.w;if(i.globals.events.hasOwnProperty(n)){var u=i.globals.events[n].indexOf(o);u!==-1&&i.globals.events[n].splice(u,1)}}},{key:"fireEvent",value:function(n,o){var i=this.w;if(i.globals.events.hasOwnProperty(n)){o&&o.length||(o=[]);for(var u=i.globals.events[n],c=u.length,d=0;d<c;d++)u[d].apply(null,o)}}},{key:"setupEventHandlers",value:function(){var n=this,o=this.w,i=this.ctx,u=o.globals.dom.baseEl.querySelector(o.globals.chartClass);this.ctx.eventList.forEach(function(c){u.addEventListener(c,function(d){var h=Object.assign({},o,{seriesIndex:o.globals.capturedSeriesIndex,dataPointIndex:o.globals.capturedDataPointIndex});d.type==="mousemove"||d.type==="touchmove"?typeof o.config.chart.events.mouseMove=="function"&&o.config.chart.events.mouseMove(d,i,h):d.type==="mouseleave"||d.type==="touchleave"?typeof o.config.chart.events.mouseLeave=="function"&&o.config.chart.events.mouseLeave(d,i,h):(d.type==="mouseup"&&d.which===1||d.type==="touchend")&&(typeof o.config.chart.events.click=="function"&&o.config.chart.events.click(d,i,h),i.ctx.events.fireEvent("click",[d,i,h]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(c){o.globals.dom.baseEl.addEventListener(c,n.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(n){var o=this.w,i=n.target.className;if(n.type==="click"){var u=o.globals.dom.baseEl.querySelector(".apexcharts-menu");u&&u.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&u.classList.remove("apexcharts-menu-open")}o.globals.clientX=n.type==="touchmove"?n.touches[0].clientX:n.clientX,o.globals.clientY=n.type==="touchmove"?n.touches[0].clientY:n.clientY}}]),J}(),st=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"setCurrentLocaleValues",value:function(n){var o=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(o=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=o.filter(function(c){return c.name===n})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var u=p.extend(U,i);this.w.globals.locale=u.options}}]),J}(),wt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawAxis",value:function(n,o){var i,u,c=this,d=this.w.globals,h=this.w.config,x=new He(this.ctx,o),k=new Qe(this.ctx,o);d.axisCharts&&n!=="radar"&&(d.isBarHorizontal?(u=k.drawYaxisInversed(0),i=x.drawXaxisInversed(0),d.dom.elGraphical.add(i),d.dom.elGraphical.add(u)):(i=x.drawXaxis(),d.dom.elGraphical.add(i),h.yaxis.map(function(E,N){if(d.ignoreYAxisIndexes.indexOf(N)===-1&&(u=k.drawYaxis(N),d.dom.Paper.add(u),c.w.config.grid.position==="back")){var L=d.dom.Paper.children()[1];L.remove(),d.dom.Paper.add(L)}})))}}]),J}(),kt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawXCrosshairs",value:function(){var n=this.w,o=new m(this.ctx),i=new g(this.ctx),u=n.config.xaxis.crosshairs.fill.gradient,c=n.config.xaxis.crosshairs.dropShadow,d=n.config.xaxis.crosshairs.fill.type,h=u.colorFrom,x=u.colorTo,k=u.opacityFrom,E=u.opacityTo,N=u.stops,L=c.enabled,W=c.left,G=c.top,q=c.blur,Q=c.color,re=c.opacity,ie=n.config.xaxis.crosshairs.fill.color;if(n.config.xaxis.crosshairs.show){d==="gradient"&&(ie=o.drawGradient("vertical",h,x,k,E,null,N,null));var C=o.drawRect();n.config.xaxis.crosshairs.width===1&&(C=o.drawLine());var I=n.globals.gridHeight;(!p.isNumber(I)||I<0)&&(I=0);var $=n.config.xaxis.crosshairs.width;(!p.isNumber($)||$<0)&&($=0),C.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:I,width:$,height:I,fill:ie,filter:"none","fill-opacity":n.config.xaxis.crosshairs.opacity,stroke:n.config.xaxis.crosshairs.stroke.color,"stroke-width":n.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":n.config.xaxis.crosshairs.stroke.dashArray}),L&&(C=i.dropShadow(C,{left:W,top:G,blur:q,color:Q,opacity:re})),n.globals.dom.elGraphical.add(C)}}},{key:"drawYCrosshairs",value:function(){var n=this.w,o=new m(this.ctx),i=n.config.yaxis[0].crosshairs,u=n.globals.barPadForNumericAxis;if(n.config.yaxis[0].crosshairs.show){var c=o.drawLine(-u,0,n.globals.gridWidth+u,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);c.attr({class:"apexcharts-ycrosshairs"}),n.globals.dom.elGraphical.add(c)}var d=o.drawLine(-u,0,n.globals.gridWidth+u,0,i.stroke.color,0,0);d.attr({class:"apexcharts-ycrosshairs-hidden"}),n.globals.dom.elGraphical.add(d)}}]),J}(),Lt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"checkResponsiveConfig",value:function(n){var o=this,i=this.w,u=i.config;if(u.responsive.length!==0){var c=u.responsive.slice();c.sort(function(k,E){return k.breakpoint>E.breakpoint?1:E.breakpoint>k.breakpoint?-1:0}).reverse();var d=new ue({}),h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=c[0].breakpoint,N=window.innerWidth>0?window.innerWidth:screen.width;if(N>E){var L=_.extendArrayProps(d,i.globals.initialConfig,i);k=p.extend(L,k),k=p.extend(i.config,k),o.overrideResponsiveOptions(k)}else for(var W=0;W<c.length;W++)N<c[W].breakpoint&&(k=_.extendArrayProps(d,c[W].options,i),k=p.extend(i.config,k),o.overrideResponsiveOptions(k))};if(n){var x=_.extendArrayProps(d,n,i);x=p.extend(i.config,x),h(x=p.extend(x,n))}else h({})}}},{key:"overrideResponsiveOptions",value:function(n){var o=new ue(n).init({responsiveOverride:!0});this.w.config=o}}]),J}(),At=function(){function J(n){l(this,J),this.ctx=n,this.colors=[],this.w=n.w;var o=this.w;this.isColorFn=!1,this.isHeatmapDistributed=o.config.chart.type==="treemap"&&o.config.plotOptions.treemap.distributed||o.config.chart.type==="heatmap"&&o.config.plotOptions.heatmap.distributed,this.isBarDistributed=o.config.plotOptions.bar.distributed&&(o.config.chart.type==="bar"||o.config.chart.type==="rangeBar")}return b(J,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var n,o=this,i=this.w,u=new p;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),i.config.colors===void 0||((n=i.config.colors)===null||n===void 0?void 0:n.length)===0?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(G,q){var Q=i.config.colors[q];return Q||(Q=i.config.colors[0]),typeof Q=="function"?(o.isColorFn=!0,Q({value:i.globals.axisCharts?i.globals.series[q][0]?i.globals.series[q][0]:0:i.globals.series[q],seriesIndex:q,dataPointIndex:q,w:i})):Q}))),i.globals.seriesColors.map(function(G,q){G&&(i.globals.colors[q]=G)}),i.config.theme.monochrome.enabled){var c=[],d=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(d=i.globals.series[0].length*i.globals.series.length);for(var h=i.config.theme.monochrome.color,x=1/(d/i.config.theme.monochrome.shadeIntensity),k=i.config.theme.monochrome.shadeTo,E=0,N=0;N<d;N++){var L=void 0;k==="dark"?(L=u.shadeColor(-1*E,h),E+=x):(L=u.shadeColor(E,h),E+=x),c.push(L)}i.globals.colors=c.slice()}var W=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(G){i.config[G].colors===void 0?i.globals[G].colors=o.isColorFn?i.config.colors:W:i.globals[G].colors=i.config[G].colors.slice(),o.pushExtraColors(i.globals[G].colors)}),i.config.dataLabels.style.colors===void 0?i.globals.dataLabels.style.colors=W:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),i.config.plotOptions.radar.polygons.fill.colors===void 0?i.globals.radarPolygons.fill.colors=[i.config.theme.mode==="dark"?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),i.config.markers.colors===void 0?i.globals.markers.colors=W:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.w,c=o||u.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||u.config.chart.type==="heatmap"&&u.config.plotOptions.heatmap.colorScale.inverse),i&&u.globals.series.length&&(c=u.globals.series[u.globals.maxValsInArrayIndex].length*u.globals.series.length),n.length<c)for(var d=c-n.length,h=0;h<d;h++)n.push(n[h])}},{key:"updateThemeOptions",value:function(n){n.chart=n.chart||{},n.tooltip=n.tooltip||{};var o=n.theme.mode||"light",i=n.theme.palette?n.theme.palette:o==="dark"?"palette4":"palette1",u=n.chart.foreColor?n.chart.foreColor:o==="dark"?"#f6f7f8":"#373d3f";return n.tooltip.theme=o,n.chart.foreColor=u,n.theme.palette=i,n}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),J}(),jt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(n){var o=this.w,i=n==="title"?o.config.title:o.config.subtitle,u=o.globals.svgWidth/2,c=i.offsetY,d="middle";if(i.align==="left"?(u=10,d="start"):i.align==="right"&&(u=o.globals.svgWidth-10,d="end"),u+=i.offsetX,c=c+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var h=new m(this.ctx).drawText({x:u,y:c,text:i.text,textAnchor:d,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});h.node.setAttribute("class","apexcharts-".concat(n,"-text")),o.globals.dom.Paper.add(h)}}}]),J}(),Fe=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getTitleSubtitleCoords",value:function(n){var o=this.w,i=0,u=0,c=n==="title"?o.config.title.floating:o.config.subtitle.floating,d=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-text"));if(d!==null&&!c){var h=d.getBoundingClientRect();i=h.width,u=o.globals.axisCharts?h.height+5:h.height}return{width:i,height:u}}},{key:"getLegendsRect",value:function(){var n=this.w,o=n.globals.dom.elLegendWrap;n.config.legend.height||n.config.legend.position!=="top"&&n.config.legend.position!=="bottom"||(o.style.maxHeight=n.globals.svgHeight/2+"px");var i=Object.assign({},p.getBoundingClientRect(o));return o!==null&&!n.config.legend.floating&&n.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:i.height===0?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},n.config.legend.position!=="left"&&n.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>n.globals.svgWidth&&(this.dCtx.lgRect.width=n.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(n,o){var i=n;if(this.w.globals.isMultiLineX){var u=o.map(function(d,h){return Array.isArray(d)?d.length:1}),c=Math.max.apply(Math,R(u));i=o[u.indexOf(c)]}return i}}]),J}(),Ye=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getxAxisLabelsCoords",value:function(){var n,o=this.w,i=o.globals.labels.slice();if(o.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=o.globals.categoryLabels),o.globals.timescaleLabels.length>0){var u=this.getxAxisTimeScaleLabelsCoords();n={width:u.width,height:u.height},o.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=o.config.legend.position!=="left"&&o.config.legend.position!=="right"||o.config.legend.floating?0:this.dCtx.lgRect.width;var c=o.globals.xLabelFormatter,d=p.getLargestStringFromArr(i),h=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,i);o.globals.isBarHorizontal&&(h=d=o.globals.yAxisScale[0].result.reduce(function(G,q){return G.length>q.length?G:q},0));var x=new fe(this.dCtx.ctx),k=d;d=x.xLabelFormat(c,d,k,{i:void 0,dateFormatter:new ne(this.dCtx.ctx).formatDate,w:o}),h=x.xLabelFormat(c,h,k,{i:void 0,dateFormatter:new ne(this.dCtx.ctx).formatDate,w:o}),(o.config.xaxis.convertedCatToNumeric&&d===void 0||String(d).trim()==="")&&(h=d="1");var E=new m(this.dCtx.ctx),N=E.getTextRects(d,o.config.xaxis.labels.style.fontSize),L=N;if(d!==h&&(L=E.getTextRects(h,o.config.xaxis.labels.style.fontSize)),(n={width:N.width>=L.width?N.width:L.width,height:N.height>=L.height?N.height:L.height}).width*i.length>o.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&o.config.xaxis.labels.rotate!==0||o.config.xaxis.labels.rotateAlways){if(!o.globals.isBarHorizontal){o.globals.rotateXLabels=!0;var W=function(G){return E.getTextRects(G,o.config.xaxis.labels.style.fontSize,o.config.xaxis.labels.style.fontFamily,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1)};N=W(d),d!==h&&(L=W(h)),n.height=(N.height>L.height?N.height:L.height)/1.5,n.width=N.width>L.width?N.width:L.width}}else o.globals.rotateXLabels=!1}return o.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var n,o=this.w;if(!o.globals.hasXaxisGroups)return{width:0,height:0};var i,u=((n=o.config.xaxis.group.style)===null||n===void 0?void 0:n.fontSize)||o.config.xaxis.labels.style.fontSize,c=o.globals.groups.map(function(N){return N.title}),d=p.getLargestStringFromArr(c),h=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,c),x=new m(this.dCtx.ctx),k=x.getTextRects(d,u),E=k;return d!==h&&(E=x.getTextRects(h,u)),i={width:k.width>=E.width?k.width:E.width,height:k.height>=E.height?k.height:E.height},o.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var n=this.w,o=0,i=0;if(n.config.xaxis.title.text!==void 0){var u=new m(this.dCtx.ctx).getTextRects(n.config.xaxis.title.text,n.config.xaxis.title.style.fontSize);o=u.width,i=u.height}return{width:o,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var n,o=this.w;this.dCtx.timescaleLabels=o.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(c){return c.value}),u=i.reduce(function(c,d){return c===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):c.length>d.length?c:d},0);return 1.05*(n=new m(this.dCtx.ctx).getTextRects(u,o.config.xaxis.labels.style.fontSize)).width*i.length>o.globals.gridWidth&&o.config.xaxis.labels.rotate!==0&&(o.globals.overlappingXLabels=!0),n}},{key:"additionalPaddingXLabels",value:function(n){var o=this,i=this.w,u=i.globals,c=i.config,d=c.xaxis.type,h=n.width;u.skipLastTimelinelabel=!1,u.skipFirstTimelinelabel=!1;var x=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,k=function(E,N){c.yaxis.length>1&&function(L){return u.collapsedSeriesIndices.indexOf(L)!==-1}(N)||function(L){if(o.dCtx.timescaleLabels&&o.dCtx.timescaleLabels.length){var W=o.dCtx.timescaleLabels[0],G=o.dCtx.timescaleLabels[o.dCtx.timescaleLabels.length-1].position+h/1.75-o.dCtx.yAxisWidthRight,q=W.position-h/1.75+o.dCtx.yAxisWidthLeft,Q=i.config.legend.position==="right"&&o.dCtx.lgRect.width>0?o.dCtx.lgRect.width:0;G>u.svgWidth-u.translateX-Q&&(u.skipLastTimelinelabel=!0),q<-(L.show&&!L.floating||c.chart.type!=="bar"&&c.chart.type!=="candlestick"&&c.chart.type!=="rangeBar"&&c.chart.type!=="boxPlot"?10:h/1.75)&&(u.skipFirstTimelinelabel=!0)}else d==="datetime"?o.dCtx.gridPad.right<h&&!u.rotateXLabels&&(u.skipLastTimelinelabel=!0):d!=="datetime"&&o.dCtx.gridPad.right<h/2-o.dCtx.yAxisWidthRight&&!u.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(o.dCtx.xPadRight=h/2+1)}(E)};c.yaxis.forEach(function(E,N){x?(o.dCtx.gridPad.left<h&&(o.dCtx.xPadLeft=h/2+1),o.dCtx.xPadRight=h/2+1):k(E,N)})}}]),J}(),et=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getyAxisLabelsCoords",value:function(){var n=this,o=this.w,i=[],u=10,c=new Ve(this.dCtx.ctx);return o.config.yaxis.map(function(d,h){var x={seriesIndex:h,dataPointIndex:-1,w:o},k=o.globals.yAxisScale[h],E=0;if(!c.isYAxisHidden(h)&&d.labels.show&&d.labels.minWidth!==void 0&&(E=d.labels.minWidth),!c.isYAxisHidden(h)&&d.labels.show&&k.result.length){var N=o.globals.yLabelFormatters[h],L=k.niceMin===Number.MIN_VALUE?0:k.niceMin,W=k.result.reduce(function(I,$){var te,ce;return((te=String(N(I,x)))===null||te===void 0?void 0:te.length)>((ce=String(N($,x)))===null||ce===void 0?void 0:ce.length)?I:$},L),G=W=N(W,x);if(W!==void 0&&W.length!==0||(W=k.niceMax),o.globals.isBarHorizontal){u=0;var q=o.globals.labels.slice();W=p.getLargestStringFromArr(q),W=N(W,{seriesIndex:h,dataPointIndex:-1,w:o}),G=n.dCtx.dimHelpers.getLargestStringFromMultiArr(W,q)}var Q=new m(n.dCtx.ctx),re="rotate(".concat(d.labels.rotate," 0 0)"),ie=Q.getTextRects(W,d.labels.style.fontSize,d.labels.style.fontFamily,re,!1),C=ie;W!==G&&(C=Q.getTextRects(G,d.labels.style.fontSize,d.labels.style.fontFamily,re,!1)),i.push({width:(E>C.width||E>ie.width?E:C.width>ie.width?C.width:ie.width)+u,height:C.height>ie.height?C.height:ie.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var n=this,o=this.w,i=[];return o.config.yaxis.map(function(u,c){if(u.show&&u.title.text!==void 0){var d=new m(n.dCtx.ctx),h="rotate(".concat(u.title.rotate," 0 0)"),x=d.getTextRects(u.title.text,u.title.style.fontSize,u.title.style.fontFamily,h,!1);i.push({width:x.width,height:x.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var n=this.w,o=0,i=0,u=0,c=n.globals.yAxisScale.length>1?10:0,d=new Ve(this.dCtx.ctx),h=function(x,k){var E=n.config.yaxis[k].floating,N=0;x.width>0&&!E?(N=x.width+c,function(L){return n.globals.ignoreYAxisIndexes.indexOf(L)>-1}(k)&&(N=N-x.width-c)):N=E||d.isYAxisHidden(k)?0:5,n.config.yaxis[k].opposite?u+=N:i+=N,o+=N};return n.globals.yLabelsCoords.map(function(x,k){h(x,k)}),n.globals.yTitleCoords.map(function(x,k){h(x,k)}),n.globals.isBarHorizontal&&!n.config.yaxis[0].floating&&(o=n.globals.yLabelsCoords[0].width+n.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=u,o}}]),J}(),dt=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"gridPadForColumnsInNumericAxis",value:function(n){var o=this.w;if(o.globals.noData||o.globals.allSeriesCollapsed)return 0;var i=function(E){return E==="bar"||E==="rangeBar"||E==="candlestick"||E==="boxPlot"},u=o.config.chart.type,c=0,d=i(u)?o.config.series.length:1;if(o.globals.comboBarCount>0&&(d=o.globals.comboBarCount),o.globals.collapsedSeries.forEach(function(E){i(E.type)&&(d-=1)}),o.config.chart.stacked&&(d=1),(i(u)||o.globals.comboBarCount>0)&&o.globals.isXNumeric&&!o.globals.isBarHorizontal&&d>0){var h,x,k=Math.abs(o.globals.initialMaxX-o.globals.initialMinX);k<=3&&(k=o.globals.dataPoints),h=k/n,o.globals.minXDiff&&o.globals.minXDiff/h>0&&(x=o.globals.minXDiff/h),x>n/2&&(x/=2),(c=x/d*parseInt(o.config.plotOptions.bar.columnWidth,10)/100)<1&&(c=1),c=c/(d>1?1:1.5)+5,o.globals.barPadForNumericAxis=c}return c}},{key:"gridPadFortitleSubtitle",value:function(){var n=this,o=this.w,i=o.globals,u=this.dCtx.isSparkline||!o.globals.axisCharts?0:10;["title","subtitle"].forEach(function(h){o.config[h].text!==void 0?u+=o.config[h].margin:u+=n.dCtx.isSparkline||!o.globals.axisCharts?0:5}),!o.config.legend.show||o.config.legend.position!=="bottom"||o.config.legend.floating||o.globals.axisCharts||(u+=10);var c=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),d=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-c.height-d.height-u,i.translateY=i.translateY+c.height+d.height+u}},{key:"setGridXPosForDualYAxis",value:function(n,o){var i=this.w,u=new Ve(this.dCtx.ctx);i.config.yaxis.map(function(c,d){i.globals.ignoreYAxisIndexes.indexOf(d)!==-1||c.floating||u.isYAxisHidden(d)||(c.opposite&&(i.globals.translateX=i.globals.translateX-(o[d].width+n[d].width)-parseInt(i.config.yaxis[d].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),J}(),St=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new Fe(this),this.dimYAxis=new et(this),this.dimXAxis=new Ye(this),this.dimGrid=new dt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return b(J,[{key:"plotCoords",value:function(){var n=this,o=this.w,i=o.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((o.config.markers.discrete.length>0||o.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(c){var d=D(c,2),h=d[0],x=d[1];n.gridPad[h]=Math.max(x,n.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(o.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(o.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var u=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*u,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(u>0?u+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var n=this,o=this.w,i=o.globals,u=this.dimYAxis.getyAxisLabelsCoords(),c=this.dimYAxis.getyAxisTitleCoords();o.globals.yLabelsCoords=[],o.globals.yTitleCoords=[],o.config.yaxis.map(function(W,G){o.globals.yLabelsCoords.push({width:u[G].width,index:G}),o.globals.yTitleCoords.push({width:c[G].width,index:G})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var d=this.dimXAxis.getxAxisLabelsCoords(),h=this.dimXAxis.getxAxisGroupLabelsCoords(),x=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(d,x,h),i.translateXAxisY=o.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=o.globals.rotateXLabels&&o.globals.isXNumeric&&o.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,o.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(o.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+o.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+o.config.xaxis.labels.offsetX;var k=this.yAxisWidth,E=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-x.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-d.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var N=10;(o.config.chart.type==="radar"||this.isSparkline)&&(k=0,E=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||o.config.chart.type==="treemap")&&(k=0,E=0,N=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(d);var L=function(){i.translateX=k,i.gridHeight=i.svgHeight-n.lgRect.height-E-(n.isSparkline||o.config.chart.type==="treemap"?0:o.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-k};switch(o.config.xaxis.position==="top"&&(N=i.xAxisHeight-o.config.xaxis.axisTicks.height-5),o.config.legend.position){case"bottom":i.translateY=N,L();break;case"top":i.translateY=this.lgRect.height+N,L();break;case"left":i.translateY=N,i.translateX=this.lgRect.width+k,i.gridHeight=i.svgHeight-E-12,i.gridWidth=i.svgWidth-this.lgRect.width-k;break;case"right":i.translateY=N,i.translateX=k,i.gridHeight=i.svgHeight-E-12,i.gridWidth=i.svgWidth-this.lgRect.width-k-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(c,u),new Qe(this.ctx).setYAxisXPosition(u,c)}},{key:"setDimensionsForNonAxisCharts",value:function(){var n=this.w,o=n.globals,i=n.config,u=0;n.config.legend.show&&!n.config.legend.floating&&(u=20);var c=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",d=i.plotOptions[c].offsetY,h=i.plotOptions[c].offsetX;if(!i.legend.show||i.legend.floating)return o.gridHeight=o.svgHeight-i.grid.padding.left+i.grid.padding.right,o.gridWidth=o.gridHeight,o.translateY=d,void(o.translateX=h+(o.svgWidth-o.gridWidth)/2);switch(i.legend.position){case"bottom":o.gridHeight=o.svgHeight-this.lgRect.height-o.goldenPadding,o.gridWidth=o.svgWidth,o.translateY=d-10,o.translateX=h+(o.svgWidth-o.gridWidth)/2;break;case"top":o.gridHeight=o.svgHeight-this.lgRect.height-o.goldenPadding,o.gridWidth=o.svgWidth,o.translateY=this.lgRect.height+d+10,o.translateX=h+(o.svgWidth-o.gridWidth)/2;break;case"left":o.gridWidth=o.svgWidth-this.lgRect.width-u,o.gridHeight=i.chart.height!=="auto"?o.svgHeight:o.gridWidth,o.translateY=d,o.translateX=h+this.lgRect.width+u;break;case"right":o.gridWidth=o.svgWidth-this.lgRect.width-u-5,o.gridHeight=i.chart.height!=="auto"?o.svgHeight:o.gridWidth,o.translateY=d,o.translateX=h+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(n,o,i){var u=this.w,c=u.globals.hasXaxisGroups?2:1,d=i.height+n.height+o.height,h=u.globals.isMultiLineX?1.2:u.globals.LINE_HEIGHT_RATIO,x=u.globals.rotateXLabels?22:10,k=u.globals.rotateXLabels&&u.config.legend.position==="bottom"?10:0;this.xAxisHeight=d*h+c*x+k,this.xAxisWidth=n.width,this.xAxisHeight-o.height>u.config.xaxis.labels.maxHeight&&(this.xAxisHeight=u.config.xaxis.labels.maxHeight),u.config.xaxis.labels.minHeight&&this.xAxisHeight<u.config.xaxis.labels.minHeight&&(this.xAxisHeight=u.config.xaxis.labels.minHeight),u.config.xaxis.floating&&(this.xAxisHeight=0);var E=0,N=0;u.config.yaxis.forEach(function(L){E+=L.labels.minWidth,N+=L.labels.maxWidth}),this.yAxisWidth<E&&(this.yAxisWidth=E),this.yAxisWidth>N&&(this.yAxisWidth=N)}}]),J}(),Et=function(){function J(n){l(this,J),this.w=n.w,this.lgCtx=n}return b(J,[{key:"getLegendStyles",value:function(){var n=document.createElement("style");n.setAttribute("type","text/css");var o=document.createTextNode(`
.apexcharts-legend {
display: flex;
overflow: auto;
padding: 0 10px;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
flex-direction: column;
bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
justify-content: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
justify-content: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
justify-content: flex-end;
}
.apexcharts-legend-series {
cursor: pointer;
line-height: normal;
}
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
display: flex;
align-items: center;
}
.apexcharts-legend-text {
position: relative;
font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
pointer-events: none;
}
.apexcharts-legend-marker {
position: relative;
display: inline-block;
cursor: pointer;
margin-right: 3px;
border-style: solid;
}
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
display: inline-block;
}
.apexcharts-legend-series.apexcharts-no-click {
cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
display: none !important;
}
.apexcharts-inactive-legend {
opacity: 0.45;
}`);return n.appendChild(o),n}},{key:"getLegendBBox",value:function(){var n=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),o=n.width;return{clwh:n.height,clww:o}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(n,o){var i=this,u=this.w;if(u.globals.axisCharts||u.config.chart.type==="radialBar"){u.globals.resized=!0;var c=null,d=null;u.globals.risingSeries=[],u.globals.axisCharts?(c=u.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),d=parseInt(c.getAttribute("data:realIndex"),10)):(c=u.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']")),d=parseInt(c.getAttribute("rel"),10)-1),o?[{cs:u.globals.collapsedSeries,csi:u.globals.collapsedSeriesIndices},{cs:u.globals.ancillaryCollapsedSeries,csi:u.globals.ancillaryCollapsedSeriesIndices}].forEach(function(E){i.riseCollapsedSeries(E.cs,E.csi,d)}):this.hideSeries({seriesEl:c,realIndex:d})}else{var h=u.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(n+1,"'] path")),x=u.config.chart.type;if(x==="pie"||x==="polarArea"||x==="donut"){var k=u.config.plotOptions.pie.donut.labels;new m(this.lgCtx.ctx).pathMouseDown(h.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(h.members[0].node,k)}h.fire("click")}}},{key:"hideSeries",value:function(n){var o=n.seriesEl,i=n.realIndex,u=this.w,c=p.clone(u.config.series);if(u.globals.axisCharts){var d=!1;if(u.config.yaxis[i]&&u.config.yaxis[i].show&&u.config.yaxis[i].showAlways&&(d=!0,u.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(u.globals.ancillaryCollapsedSeries.push({index:i,data:c[i].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),u.globals.ancillaryCollapsedSeriesIndices.push(i))),!d){u.globals.collapsedSeries.push({index:i,data:c[i].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),u.globals.collapsedSeriesIndices.push(i);var h=u.globals.risingSeries.indexOf(i);u.globals.risingSeries.splice(h,1)}}else u.globals.collapsedSeries.push({index:i,data:c[i]}),u.globals.collapsedSeriesIndices.push(i);for(var x=o.childNodes,k=0;k<x.length;k++)x[k].classList.contains("apexcharts-series-markers-wrap")&&(x[k].classList.contains("apexcharts-hide")?x[k].classList.remove("apexcharts-hide"):x[k].classList.add("apexcharts-hide"));u.globals.allSeriesCollapsed=u.globals.collapsedSeries.length===u.config.series.length,c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(n,o,i){var u=this.w,c=p.clone(u.config.series);if(n.length>0){for(var d=0;d<n.length;d++)n[d].index===i&&(u.globals.axisCharts?(c[i].data=n[d].data.slice(),n.splice(d,1),o.splice(d,1),u.globals.risingSeries.push(i)):(c[i]=n[d].data,n.splice(d,1),o.splice(d,1),u.globals.risingSeries.push(i)));c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(n){var o=this.w;return o.globals.axisCharts?n.forEach(function(i,u){o.globals.collapsedSeriesIndices.indexOf(u)>-1&&(n[u].data=[])}):n.forEach(function(i,u){o.globals.collapsedSeriesIndices.indexOf(u)>-1&&(n[u]=0)}),n}}]),J}(),gt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Et(this)}return b(J,[{key:"init",value:function(){var n=this.w,o=n.globals,i=n.config;if((i.legend.showForSingleSeries&&o.series.length===1||this.isBarsDistributed||o.series.length>1||!o.axisCharts)&&i.legend.show){for(;o.dom.elLegendWrap.firstChild;)o.dom.elLegendWrap.removeChild(o.dom.elLegendWrap.firstChild);this.drawLegends(),p.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var n=this,o=this.w,i=o.config.legend.fontFamily,u=o.globals.seriesNames,c=o.globals.colors.slice();if(o.config.chart.type==="heatmap"){var d=o.config.plotOptions.heatmap.colorScale.ranges;u=d.map(function(ze){return ze.name?ze.name:ze.from+" - "+ze.to}),c=d.map(function(ze){return ze.color})}else this.isBarsDistributed&&(u=o.globals.labels.slice());o.config.legend.customLegendItems.length&&(u=o.config.legend.customLegendItems);for(var h=o.globals.legendFormatter,x=o.config.legend.inverseOrder,k=x?u.length-1:0;x?k>=0:k<=u.length-1;x?k--:k++){var E,N=h(u[k],{seriesIndex:k,w:o}),L=!1,W=!1;if(o.globals.collapsedSeries.length>0)for(var G=0;G<o.globals.collapsedSeries.length;G++)o.globals.collapsedSeries[G].index===k&&(L=!0);if(o.globals.ancillaryCollapsedSeriesIndices.length>0)for(var q=0;q<o.globals.ancillaryCollapsedSeriesIndices.length;q++)o.globals.ancillaryCollapsedSeriesIndices[q]===k&&(W=!0);var Q=document.createElement("span");Q.classList.add("apexcharts-legend-marker");var re=o.config.legend.markers.offsetX,ie=o.config.legend.markers.offsetY,C=o.config.legend.markers.height,I=o.config.legend.markers.width,$=o.config.legend.markers.strokeWidth,te=o.config.legend.markers.strokeColor,ce=o.config.legend.markers.radius,de=Q.style;de.background=c[k],de.color=c[k],de.setProperty("background",c[k],"important"),o.config.legend.markers.fillColors&&o.config.legend.markers.fillColors[k]&&(de.background=o.config.legend.markers.fillColors[k]),o.globals.seriesColors[k]!==void 0&&(de.background=o.globals.seriesColors[k],de.color=o.globals.seriesColors[k]),de.height=Array.isArray(C)?parseFloat(C[k])+"px":parseFloat(C)+"px",de.width=Array.isArray(I)?parseFloat(I[k])+"px":parseFloat(I)+"px",de.left=(Array.isArray(re)?parseFloat(re[k]):parseFloat(re))+"px",de.top=(Array.isArray(ie)?parseFloat(ie[k]):parseFloat(ie))+"px",de.borderWidth=Array.isArray($)?$[k]:$,de.borderColor=Array.isArray(te)?te[k]:te,de.borderRadius=Array.isArray(ce)?parseFloat(ce[k])+"px":parseFloat(ce)+"px",o.config.legend.markers.customHTML&&(Array.isArray(o.config.legend.markers.customHTML)?o.config.legend.markers.customHTML[k]&&(Q.innerHTML=o.config.legend.markers.customHTML[k]()):Q.innerHTML=o.config.legend.markers.customHTML()),m.setAttrs(Q,{rel:k+1,"data:collapsed":L||W}),(L||W)&&Q.classList.add("apexcharts-inactive-legend");var we=document.createElement("div"),Ce=document.createElement("span");Ce.classList.add("apexcharts-legend-text"),Ce.innerHTML=Array.isArray(N)?N.join(" "):N;var Me=o.config.legend.labels.useSeriesColors?o.globals.colors[k]:Array.isArray(o.config.legend.labels.colors)?(E=o.config.legend.labels.colors)===null||E===void 0?void 0:E[k]:o.config.legend.labels.colors;Me||(Me=o.config.chart.foreColor),Ce.style.color=Me,Ce.style.fontSize=parseFloat(o.config.legend.fontSize)+"px",Ce.style.fontWeight=o.config.legend.fontWeight,Ce.style.fontFamily=i||o.config.chart.fontFamily,m.setAttrs(Ce,{rel:k+1,i:k,"data:default-text":encodeURIComponent(N),"data:collapsed":L||W}),we.appendChild(Q),we.appendChild(Ce);var Be=new _(this.ctx);o.config.legend.showForZeroSeries||Be.getSeriesTotalByIndex(k)===0&&Be.seriesHaveSameValues(k)&&!Be.isSeriesNull(k)&&o.globals.collapsedSeriesIndices.indexOf(k)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(k)===-1&&we.classList.add("apexcharts-hidden-zero-series"),o.config.legend.showForNullSeries||Be.isSeriesNull(k)&&o.globals.collapsedSeriesIndices.indexOf(k)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(k)===-1&&we.classList.add("apexcharts-hidden-null-series"),o.globals.dom.elLegendWrap.appendChild(we),o.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(o.config.legend.horizontalAlign)),o.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+o.config.legend.position),we.classList.add("apexcharts-legend-series"),we.style.margin="".concat(o.config.legend.itemMargin.vertical,"px ").concat(o.config.legend.itemMargin.horizontal,"px"),o.globals.dom.elLegendWrap.style.width=o.config.legend.width?o.config.legend.width+"px":"",o.globals.dom.elLegendWrap.style.height=o.config.legend.height?o.config.legend.height+"px":"",m.setAttrs(we,{rel:k+1,seriesName:p.escapeString(u[k]),"data:collapsed":L||W}),(L||W)&&we.classList.add("apexcharts-inactive-legend"),o.config.legend.onItemClick.toggleDataSeries||we.classList.add("apexcharts-no-click")}o.globals.dom.elWrap.addEventListener("click",n.onLegendClick,!0),o.config.legend.onItemHover.highlightDataSeries&&o.config.legend.customLegendItems.length===0&&(o.globals.dom.elWrap.addEventListener("mousemove",n.onLegendHovered,!0),o.globals.dom.elWrap.addEventListener("mouseout",n.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(n,o){var i=this.w,u=i.globals.dom.elLegendWrap,c=u.getBoundingClientRect(),d=0,h=0;if(i.config.legend.position==="bottom")h+=i.globals.svgHeight-c.height/2;else if(i.config.legend.position==="top"){var x=new St(this.ctx),k=x.dimHelpers.getTitleSubtitleCoords("title").height,E=x.dimHelpers.getTitleSubtitleCoords("subtitle").height;h=h+(k>0?k-10:0)+(E>0?E-10:0)}u.style.position="absolute",d=d+n+i.config.legend.offsetX,h=h+o+i.config.legend.offsetY,u.style.left=d+"px",u.style.top=h+"px",i.config.legend.position==="bottom"?(u.style.top="auto",u.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(u.style.left="auto",u.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(N){u.style[N]&&(u.style[N]=parseInt(i.config.legend[N],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var n=this.w;n.globals.dom.elLegendWrap.style.right=0;var o=this.legendHelpers.getLegendBBox(),i=new St(this.ctx),u=i.dimHelpers.getTitleSubtitleCoords("title"),c=i.dimHelpers.getTitleSubtitleCoords("subtitle"),d=0;n.config.legend.position==="bottom"?d=-o.clwh/1.8:n.config.legend.position==="top"&&(d=u.height+c.height+n.config.title.margin+n.config.subtitle.margin-10),this.setLegendWrapXY(20,d)}},{key:"legendAlignVertical",value:function(){var n=this.w,o=this.legendHelpers.getLegendBBox(),i=0;n.config.legend.position==="left"&&(i=20),n.config.legend.position==="right"&&(i=n.globals.svgWidth-o.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(n){var o=this.w,i=n.target.classList.contains("apexcharts-legend-series")||n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker");if(o.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var u=parseInt(n.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,u,this.w]),new Pe(this.ctx).highlightRangeInSeries(n,n.target)}}else!n.target.classList.contains("apexcharts-inactive-legend")&&i&&new Pe(this.ctx).toggleSeriesOnHover(n,n.target)}},{key:"onLegendClick",value:function(n){var o=this.w;if(!o.config.legend.customLegendItems.length&&(n.target.classList.contains("apexcharts-legend-series")||n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(n.target.getAttribute("rel"),10)-1,u=n.target.getAttribute("data:collapsed")==="true",c=this.w.config.chart.events.legendClick;typeof c=="function"&&c(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var d=this.w.config.legend.markers.onClick;typeof d=="function"&&n.target.classList.contains("apexcharts-legend-marker")&&(d(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),o.config.chart.type!=="treemap"&&o.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&o.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,u)}}}]),J}(),Gt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=o.globals.minX,this.maxX=o.globals.maxX}return b(J,[{key:"createToolbar",value:function(){var n=this,o=this.w,i=function(){return document.createElement("div")},u=i();if(u.setAttribute("class","apexcharts-toolbar"),u.style.top=o.config.chart.toolbar.offsetY+"px",u.style.right=3-o.config.chart.toolbar.offsetX+"px",o.globals.dom.elWrap.appendChild(u),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=o.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var c=0;c<this.t.customIcons.length;c++)this.elCustomIcons.push(i());var d=[],h=function(N,L,W){var G=N.toLowerCase();n.t[G]&&o.config.chart.zoom.enabled&&d.push({el:L,icon:typeof n.t[G]=="string"?n.t[G]:W,title:n.localeValues[N],class:"apexcharts-".concat(G,"-icon")})};h("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),h("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var x=function(N){n.t[N]&&o.config.chart[N].enabled&&d.push({el:N==="zoom"?n.elZoom:n.elSelection,icon:typeof n.t[N]=="string"?n.t[N]:N==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:n.localeValues[N==="zoom"?"selectionZoom":"selection"],class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(N,"-icon")})};x("zoom"),x("selection"),this.t.pan&&o.config.chart.zoom.enabled&&d.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<defs>
<path d="M0 0h24v24H0z" id="a"/>
</defs>
<clipPath id="b">
<use overflow="visible" xlink:href="#a"/>
</clipPath>
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),h("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&d.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var k=0;k<this.elCustomIcons.length;k++)d.push({el:this.elCustomIcons[k],icon:this.t.customIcons[k].icon,title:this.t.customIcons[k].title,index:this.t.customIcons[k].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[k].class});d.forEach(function(N,L){N.index&&p.moveIndexInArray(d,L,N.index)});for(var E=0;E<d.length;E++)m.setAttrs(d[E].el,{class:d[E].class,title:d[E].title}),d[E].el.innerHTML=d[E].icon,u.appendChild(d[E].el);this._createHamburgerMenu(u),o.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):o.globals.panEnabled?this.elPan.classList.add(this.selectedClass):o.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(n){this.elMenuItems=[],n.appendChild(this.elMenu),m.setAttrs(this.elMenu,{class:"apexcharts-menu"});var o=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||o.splice(2,1);for(var i=0;i<o.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=o[i].title,m.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(o[i].name),title:o[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var n=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",n.handleDownload.bind(n,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",n.handleDownload.bind(n,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",n.handleDownload.bind(n,"csv"))});for(var o=0;o<this.t.customIcons.length;o++)this.elCustomIcons[o].addEventListener("click",this.t.customIcons[o].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(n){this.ctx.getSyncedCharts().forEach(function(o){o.ctx.toolbar.toggleOtherControls();var i=n==="selection"?o.ctx.toolbar.elSelection:o.ctx.toolbar.elZoom,u=n==="selection"?"selectionEnabled":"zoomEnabled";o.w.globals[u]=!o.w.globals[u],i.classList.contains(o.ctx.toolbar.selectedClass)?i.classList.remove(o.ctx.toolbar.selectedClass):i.classList.add(o.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var n=this.w;this.elZoom||(this.elZoom=n.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=n.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=n.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(n){this.toggleOtherControls(),n==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var o=n==="pan"?this.elPan:this.elZoom,i=n==="pan"?this.elZoom:this.elPan;o&&o.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(n){n.ctx.toolbar.toggleOtherControls(),n.w.globals.panEnabled=!n.w.globals.panEnabled,n.ctx.toolbar.elPan.classList.contains(n.ctx.toolbar.selectedClass)?n.ctx.toolbar.elPan.classList.remove(n.ctx.toolbar.selectedClass):n.ctx.toolbar.elPan.classList.add(n.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var n=this,o=this.w;o.globals.panEnabled=!1,o.globals.zoomEnabled=!1,o.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(n.selectedClass)})}},{key:"handleZoomIn",value:function(){var n=this.w;n.globals.isRangeBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY);var o=(this.minX+this.maxX)/2,i=(this.minX+o)/2,u=(this.maxX+o)/2,c=this._getNewMinXMaxX(i,u);n.globals.disableZoomIn||this.zoomUpdateOptions(c.minX,c.maxX)}},{key:"handleZoomOut",value:function(){var n=this.w;if(n.globals.isRangeBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY),!(n.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var o=(this.minX+this.maxX)/2,i=this.minX-(o-this.minX),u=this.maxX-(o-this.maxX),c=this._getNewMinXMaxX(i,u);n.globals.disableZoomOut||this.zoomUpdateOptions(c.minX,c.maxX)}}},{key:"_getNewMinXMaxX",value:function(n,o){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(n):n,maxX:i?Math.floor(o):o}}},{key:"zoomUpdateOptions",value:function(n,o){var i=this.w;if(n!==void 0||o!==void 0){if(!(i.config.xaxis.convertedCatToNumeric&&(n<1&&(n=1,o=i.globals.dataPoints),o-n<2))){var u={min:n,max:o},c=this.getBeforeZoomRange(u);c&&(u=c.xaxis);var d={xaxis:u},h=p.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(h=new Ke(this.ctx).autoScaleY(this.ctx,h,{xaxis:u})),i.config.chart.group||(d.yaxis=h),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(d,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(u,h)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(n,o){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:n,yaxis:o})}},{key:"getBeforeZoomRange",value:function(n,o){var i=null;return typeof this.ev.beforeZoom=="function"&&(i=this.ev.beforeZoom(this,{xaxis:n,yaxis:o})),i}},{key:"toggleMenu",value:function(){var n=this;window.setTimeout(function(){n.elMenu.classList.contains("apexcharts-menu-open")?n.elMenu.classList.remove("apexcharts-menu-open"):n.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(n){var o=this.w,i=new Re(this.ctx);switch(n){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:o.config.series,columnDelimiter:o.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(n){this.ctx.getSyncedCharts().forEach(function(o){var i=o.w;if(i.globals.lastXAxis.min=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,o.updateHelpers.revertDefaultAxisMinMax(),typeof i.config.chart.events.beforeResetZoom=="function"){var u=i.config.chart.events.beforeResetZoom(o,i);u&&o.updateHelpers.revertDefaultAxisMinMax(u)}typeof i.config.chart.events.zoomed=="function"&&o.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var c=o.ctx.series.emptyCollapsedSeries(p.clone(i.globals.initialSeries));o.updateHelpers._updateSeries(c,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),J}(),Sr=function(J){T(o,Gt);var n=z(o);function o(i){var u;return l(this,o),(u=n.call(this,i)).ctx=i,u.w=i.w,u.dragged=!1,u.graphics=new m(u.ctx),u.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],u.clientX=0,u.clientY=0,u.startX=0,u.endX=0,u.dragX=0,u.startY=0,u.endY=0,u.dragY=0,u.moveDirection="none",u}return b(o,[{key:"init",value:function(i){var u=this,c=i.xyRatios,d=this.w,h=this;this.xyRatios=c,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=d.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),d.globals.dom.elGraphical.add(this.zoomRect),d.globals.dom.elGraphical.add(this.selectionRect),d.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:d.globals.gridWidth,maxY:d.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):d.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:d.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=d.globals.dom.baseEl.querySelector("".concat(d.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(x){u.hoverArea.addEventListener(x,h.svgMouseEvents.bind(h,c),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,u){var c=this.w,d=this,h=this.ctx.toolbar,x=c.globals.zoomEnabled?c.config.chart.zoom.type:c.config.chart.selection.type,k=c.config.chart.toolbar.autoSelected;if(u.shiftKey?(this.shiftWasPressed=!0,h.enableZoomPanFromToolbar(k==="pan"?"zoom":"pan")):this.shiftWasPressed&&(h.enableZoomPanFromToolbar(k),this.shiftWasPressed=!1),u.target){var E,N=u.target.classList;if(u.target.parentNode&&u.target.parentNode!==null&&(E=u.target.parentNode.classList),!(N.contains("apexcharts-selection-rect")||N.contains("apexcharts-legend-marker")||N.contains("apexcharts-legend-text")||E&&E.contains("apexcharts-toolbar"))){if(d.clientX=u.type==="touchmove"||u.type==="touchstart"?u.touches[0].clientX:u.type==="touchend"?u.changedTouches[0].clientX:u.clientX,d.clientY=u.type==="touchmove"||u.type==="touchstart"?u.touches[0].clientY:u.type==="touchend"?u.changedTouches[0].clientY:u.clientY,u.type==="mousedown"&&u.which===1){var L=d.gridRect.getBoundingClientRect();d.startX=d.clientX-L.left,d.startY=d.clientY-L.top,d.dragged=!1,d.w.globals.mousedown=!0}if((u.type==="mousemove"&&u.which===1||u.type==="touchmove")&&(d.dragged=!0,c.globals.panEnabled?(c.globals.selection=null,d.w.globals.mousedown&&d.panDragging({context:d,zoomtype:x,xyRatios:i})):(d.w.globals.mousedown&&c.globals.zoomEnabled||d.w.globals.mousedown&&c.globals.selectionEnabled)&&(d.selection=d.selectionDrawing({context:d,zoomtype:x}))),u.type==="mouseup"||u.type==="touchend"||u.type==="mouseleave"){var W=d.gridRect.getBoundingClientRect();d.w.globals.mousedown&&(d.endX=d.clientX-W.left,d.endY=d.clientY-W.top,d.dragX=Math.abs(d.endX-d.startX),d.dragY=Math.abs(d.endY-d.startY),(c.globals.zoomEnabled||c.globals.selectionEnabled)&&d.selectionDrawn({context:d,zoomtype:x}),c.globals.panEnabled&&c.config.xaxis.convertedCatToNumeric&&d.delayedPanScrolled()),c.globals.zoomEnabled&&d.hideSelectionRect(this.selectionRect),d.dragged=!1,d.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var u=this.selectionRect.node.getBoundingClientRect();u.width>0&&u.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,u=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var c=(i.config.chart.selection.xaxis.min-i.globals.minX)/u.xRatio,d={x:c,y:0,width:i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/u.xRatio-c,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(d),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var u=i.x,c=i.y,d=i.width,h=i.height,x=i.translateX,k=x===void 0?0:x,E=i.translateY,N=E===void 0?0:E,L=this.w,W=this.zoomRect,G=this.selectionRect;if(this.dragged||L.globals.selection!==null){var q={transform:"translate("+k+", "+N+")"};L.globals.zoomEnabled&&this.dragged&&(d<0&&(d=1),W.attr({x:u,y:c,width:d,height:h,fill:L.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":L.config.chart.zoom.zoomedArea.fill.opacity,stroke:L.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":L.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":L.config.chart.zoom.zoomedArea.stroke.opacity}),m.setAttrs(W.node,q)),L.globals.selectionEnabled&&(G.attr({x:u,y:c,width:d>0?d:0,height:h>0?h:0,fill:L.config.chart.selection.fill.color,"fill-opacity":L.config.chart.selection.fill.opacity,stroke:L.config.chart.selection.stroke.color,"stroke-width":L.config.chart.selection.stroke.width,"stroke-dasharray":L.config.chart.selection.stroke.dashArray,"stroke-opacity":L.config.chart.selection.stroke.opacity}),m.setAttrs(G.node,q))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var u=i.context,c=i.zoomtype,d=this.w,h=u,x=this.gridRect.getBoundingClientRect(),k=h.startX-1,E=h.startY,N=!1,L=!1,W=h.clientX-x.left-k,G=h.clientY-x.top-E,q={};return Math.abs(W+k)>d.globals.gridWidth?W=d.globals.gridWidth-k:h.clientX-x.left<0&&(W=k),k>h.clientX-x.left&&(N=!0,W=Math.abs(W)),E>h.clientY-x.top&&(L=!0,G=Math.abs(G)),q=c==="x"?{x:N?k-W:k,y:0,width:W,height:d.globals.gridHeight}:c==="y"?{x:0,y:L?E-G:E,width:d.globals.gridWidth,height:G}:{x:N?k-W:k,y:L?E-G:E,width:W,height:G},h.drawSelectionRect(q),h.selectionDragging("resizing"),q}},{key:"selectionDragging",value:function(i,u){var c=this,d=this.w,h=this.xyRatios,x=this.selectionRect,k=0;i==="resizing"&&(k=30);var E=function(L){return parseFloat(x.node.getAttribute(L))},N={x:E("x"),y:E("y"),width:E("width"),height:E("height")};d.globals.selection=N,typeof d.config.chart.events.selection=="function"&&d.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var L=c.gridRect.getBoundingClientRect(),W=x.node.getBoundingClientRect(),G={xaxis:{min:d.globals.xAxisScale.niceMin+(W.left-L.left)*h.xRatio,max:d.globals.xAxisScale.niceMin+(W.right-L.left)*h.xRatio},yaxis:{min:d.globals.yAxisScale[0].niceMin+(L.bottom-W.bottom)*h.yRatio[0],max:d.globals.yAxisScale[0].niceMax-(W.top-L.top)*h.yRatio[0]}};d.config.chart.events.selection(c.ctx,G),d.config.chart.brush.enabled&&d.config.chart.events.brushScrolled!==void 0&&d.config.chart.events.brushScrolled(c.ctx,G)},k))}},{key:"selectionDrawn",value:function(i){var u=i.context,c=i.zoomtype,d=this.w,h=u,x=this.xyRatios,k=this.ctx.toolbar;if(h.startX>h.endX){var E=h.startX;h.startX=h.endX,h.endX=E}if(h.startY>h.endY){var N=h.startY;h.startY=h.endY,h.endY=N}var L=void 0,W=void 0;d.globals.isRangeBar?(L=d.globals.yAxisScale[0].niceMin+h.startX*x.invertedYRatio,W=d.globals.yAxisScale[0].niceMin+h.endX*x.invertedYRatio):(L=d.globals.xAxisScale.niceMin+h.startX*x.xRatio,W=d.globals.xAxisScale.niceMin+h.endX*x.xRatio);var G=[],q=[];if(d.config.yaxis.forEach(function(ce,de){G.push(d.globals.yAxisScale[de].niceMax-x.yRatio[de]*h.startY),q.push(d.globals.yAxisScale[de].niceMax-x.yRatio[de]*h.endY)}),h.dragged&&(h.dragX>10||h.dragY>10)&&L!==W){if(d.globals.zoomEnabled){var Q=p.clone(d.globals.initialConfig.yaxis),re=p.clone(d.globals.initialConfig.xaxis);if(d.globals.zoomed=!0,d.config.xaxis.convertedCatToNumeric&&(L=Math.floor(L),W=Math.floor(W),L<1&&(L=1,W=d.globals.dataPoints),W-L<2&&(W=L+1)),c!=="xy"&&c!=="x"||(re={min:L,max:W}),c!=="xy"&&c!=="y"||Q.forEach(function(ce,de){Q[de].min=q[de],Q[de].max=G[de]}),d.config.chart.zoom.autoScaleYaxis){var ie=new Ke(h.ctx);Q=ie.autoScaleY(h.ctx,Q,{xaxis:re})}if(k){var C=k.getBeforeZoomRange(re,Q);C&&(re=C.xaxis?C.xaxis:re,Q=C.yaxis?C.yaxis:Q)}var I={xaxis:re};d.config.chart.group||(I.yaxis=Q),h.ctx.updateHelpers._updateOptions(I,!1,h.w.config.chart.animations.dynamicAnimation.enabled),typeof d.config.chart.events.zoomed=="function"&&k.zoomCallback(re,Q)}else if(d.globals.selectionEnabled){var $,te=null;$={min:L,max:W},c!=="xy"&&c!=="y"||(te=p.clone(d.config.yaxis)).forEach(function(ce,de){te[de].min=q[de],te[de].max=G[de]}),d.globals.selection=h.selection,typeof d.config.chart.events.selection=="function"&&d.config.chart.events.selection(h.ctx,{xaxis:$,yaxis:te})}}}},{key:"panDragging",value:function(i){var u=i.context,c=this.w,d=u;if(c.globals.lastClientPosition.x!==void 0){var h=c.globals.lastClientPosition.x-d.clientX,x=c.globals.lastClientPosition.y-d.clientY;Math.abs(h)>Math.abs(x)&&h>0?this.moveDirection="left":Math.abs(h)>Math.abs(x)&&h<0?this.moveDirection="right":Math.abs(x)>Math.abs(h)&&x>0?this.moveDirection="up":Math.abs(x)>Math.abs(h)&&x<0&&(this.moveDirection="down")}c.globals.lastClientPosition={x:d.clientX,y:d.clientY};var k=c.globals.isRangeBar?c.globals.minY:c.globals.minX,E=c.globals.isRangeBar?c.globals.maxY:c.globals.maxX;c.config.xaxis.convertedCatToNumeric||d.panScrolled(k,E)}},{key:"delayedPanScrolled",value:function(){var i=this.w,u=i.globals.minX,c=i.globals.maxX,d=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(u=i.globals.minX+d,c=i.globals.maxX+d):this.moveDirection==="right"&&(u=i.globals.minX-d,c=i.globals.maxX-d),u=Math.floor(u),c=Math.floor(c),this.updateScrolledChart({xaxis:{min:u,max:c}},u,c)}},{key:"panScrolled",value:function(i,u){var c=this.w,d=this.xyRatios,h=p.clone(c.globals.initialConfig.yaxis),x=d.xRatio,k=c.globals.minX,E=c.globals.maxX;c.globals.isRangeBar&&(x=d.invertedYRatio,k=c.globals.minY,E=c.globals.maxY),this.moveDirection==="left"?(i=k+c.globals.gridWidth/15*x,u=E+c.globals.gridWidth/15*x):this.moveDirection==="right"&&(i=k-c.globals.gridWidth/15*x,u=E-c.globals.gridWidth/15*x),c.globals.isRangeBar||(i<c.globals.initialMinX||u>c.globals.initialMaxX)&&(i=k,u=E);var N={min:i,max:u};c.config.chart.zoom.autoScaleYaxis&&(h=new Ke(this.ctx).autoScaleY(this.ctx,h,{xaxis:N}));var L={xaxis:{min:i,max:u}};c.config.chart.group||(L.yaxis=h),this.updateScrolledChart(L,i,u)}},{key:"updateScrolledChart",value:function(i,u,c){var d=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof d.config.chart.events.scrolled=="function"&&d.config.chart.events.scrolled(this.ctx,{xaxis:{min:u,max:c}})}}]),o}(),nr=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n,this.ctx=n.ctx}return b(J,[{key:"getNearestValues",value:function(n){var o=n.hoverArea,i=n.elGrid,u=n.clientX,c=n.clientY,d=this.w,h=i.getBoundingClientRect(),x=h.width,k=h.height,E=x/(d.globals.dataPoints-1),N=k/d.globals.dataPoints,L=this.hasBars();!d.globals.comboCharts&&!L||d.config.xaxis.convertedCatToNumeric||(E=x/d.globals.dataPoints);var W=u-h.left-d.globals.barPadForNumericAxis,G=c-h.top;W<0||G<0||W>x||G>k?(o.classList.remove("hovering-zoom"),o.classList.remove("hovering-pan")):d.globals.zoomEnabled?(o.classList.remove("hovering-pan"),o.classList.add("hovering-zoom")):d.globals.panEnabled&&(o.classList.remove("hovering-zoom"),o.classList.add("hovering-pan"));var q=Math.round(W/E),Q=Math.floor(G/N);L&&!d.config.xaxis.convertedCatToNumeric&&(q=Math.ceil(W/E),q-=1);var re=null,ie=null,C=d.globals.seriesXvalues.map(function(de){return de.filter(function(we){return p.isNumber(we)})}),I=d.globals.seriesYvalues.map(function(de){return de.filter(function(we){return p.isNumber(we)})});if(d.globals.isXNumeric){var $=this.ttCtx.getElGrid().getBoundingClientRect(),te=W*($.width/x),ce=G*($.height/k);re=(ie=this.closestInMultiArray(te,ce,C,I)).index,q=ie.j,re!==null&&(C=d.globals.seriesXvalues[re],q=(ie=this.closestInArray(te,C)).index)}return d.globals.capturedSeriesIndex=re===null?-1:re,(!q||q<1)&&(q=0),d.globals.isBarHorizontal?d.globals.capturedDataPointIndex=Q:d.globals.capturedDataPointIndex=q,{capturedSeries:re,j:d.globals.isBarHorizontal?Q:q,hoverX:W,hoverY:G}}},{key:"closestInMultiArray",value:function(n,o,i,u){var c=this.w,d=0,h=null,x=-1;c.globals.series.length>1?d=this.getFirstActiveXArray(i):h=0;var k=i[d][0],E=Math.abs(n-k);if(i.forEach(function(W){W.forEach(function(G,q){var Q=Math.abs(n-G);Q<=E&&(E=Q,x=q)})}),x!==-1){var N=u[d][x],L=Math.abs(o-N);h=d,u.forEach(function(W,G){var q=Math.abs(o-W[x]);q<=L&&(L=q,h=G)})}return{index:h,j:x}}},{key:"getFirstActiveXArray",value:function(n){for(var o=this.w,i=0,u=n.map(function(d,h){return d.length>0?h:-1}),c=0;c<u.length;c++)if(u[c]!==-1&&o.globals.collapsedSeriesIndices.indexOf(c)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(c)===-1){i=u[c];break}return i}},{key:"closestInArray",value:function(n,o){for(var i=o[0],u=null,c=Math.abs(n-i),d=0;d<o.length;d++){var h=Math.abs(n-o[d]);h<c&&(c=h,u=d)}return{index:u}}},{key:"isXoverlap",value:function(n){var o=[],i=this.w.globals.seriesX.filter(function(c){return c[0]!==void 0});if(i.length>0)for(var u=0;u<i.length-1;u++)i[u][n]!==void 0&&i[u+1][n]!==void 0&&i[u][n]!==i[u+1][n]&&o.push("unEqual");return o.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var n=!0,o=this.w.globals.initialSeries,i=0;i<o.length-1;i++)if(o[i].data.length!==o[i+1].data.length){n=!1;break}return n}},{key:"getBarsHeight",value:function(n){return R(n).reduce(function(o,i){return o+i.getBBox().height},0)}},{key:"getElMarkers",value:function(n){return typeof n=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(n,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(n=R(n)).sort(function(i,u){var c=Number(i.getAttribute("data:realIndex")),d=Number(u.getAttribute("data:realIndex"));return d<c?1:d>c?-1:0});var o=[];return n.forEach(function(i){o.push(i.querySelector(".apexcharts-marker"))}),o}},{key:"hasMarkers",value:function(n){return this.getElMarkers(n).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(n){var o=this.w,i=o.config.markers.hover.size;return i===void 0&&(i=o.globals.markers.size[n]+o.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(n){var o=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=o.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var u=i.allTooltipSeriesGroups,c=0;c<u.length;c++)n==="enable"?(u[c].classList.add("apexcharts-active"),u[c].style.display=o.config.tooltip.items.display):(u[c].classList.remove("apexcharts-active"),u[c].style.display="none")}}]),J}(),Pn=function(){function J(n){l(this,J),this.w=n.w,this.ctx=n.ctx,this.ttCtx=n,this.tooltipUtil=new nr(n)}return b(J,[{key:"drawSeriesTexts",value:function(n){var o=n.shared,i=o===void 0||o,u=n.ttItems,c=n.i,d=c===void 0?0:c,h=n.j,x=h===void 0?null:h,k=n.y1,E=n.y2,N=n.e,L=this.w;L.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:d,j:x,y1:k,y2:E,w:L}):this.toggleActiveInactiveSeries(i);var W=this.getValuesToPrint({i:d,j:x});this.printLabels({i:d,j:x,values:W,ttItems:u,shared:i,e:N});var G=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=G.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=G.getBoundingClientRect().height}},{key:"printLabels",value:function(n){var o,i=this,u=n.i,c=n.j,d=n.values,h=n.ttItems,x=n.shared,k=n.e,E=this.w,N=[],L=function($){return E.globals.seriesGoals[$]&&E.globals.seriesGoals[$][c]&&Array.isArray(E.globals.seriesGoals[$][c])},W=d.xVal,G=d.zVal,q=d.xAxisTTVal,Q="",re=E.globals.colors[u];c!==null&&E.config.plotOptions.bar.distributed&&(re=E.globals.colors[c]);for(var ie=function($,te){var ce=i.getFormatters(u);Q=i.getSeriesName({fn:ce.yLbTitleFormatter,index:u,seriesIndex:u,j:c}),E.config.chart.type==="treemap"&&(Q=ce.yLbTitleFormatter(String(E.config.series[u].data[c].x),{series:E.globals.series,seriesIndex:u,dataPointIndex:c,w:E}));var de=E.config.tooltip.inverseOrder?te:$;if(E.globals.axisCharts){var we=function(Be){var ze,$e,Ze,ct;return E.globals.isRangeData?ce.yLbFormatter((ze=E.globals.seriesRangeStart)===null||ze===void 0||($e=ze[Be])===null||$e===void 0?void 0:$e[c],{series:E.globals.seriesRangeStart,seriesIndex:Be,dataPointIndex:c,w:E})+" - "+ce.yLbFormatter((Ze=E.globals.seriesRangeEnd)===null||Ze===void 0||(ct=Ze[Be])===null||ct===void 0?void 0:ct[c],{series:E.globals.seriesRangeEnd,seriesIndex:Be,dataPointIndex:c,w:E}):ce.yLbFormatter(E.globals.series[Be][c],{series:E.globals.series,seriesIndex:Be,dataPointIndex:c,w:E})};if(x)ce=i.getFormatters(de),Q=i.getSeriesName({fn:ce.yLbTitleFormatter,index:de,seriesIndex:u,j:c}),re=E.globals.colors[de],o=we(de),L(de)&&(N=E.globals.seriesGoals[de][c].map(function(Be){return{attrs:Be,val:ce.yLbFormatter(Be.value,{seriesIndex:de,dataPointIndex:c,w:E})}}));else{var Ce,Me=k==null||(Ce=k.target)===null||Ce===void 0?void 0:Ce.getAttribute("fill");Me&&(re=Me.indexOf("url")!==-1?document.querySelector(Me.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):Me),o=we(u),L(u)&&Array.isArray(E.globals.seriesGoals[u][c])&&(N=E.globals.seriesGoals[u][c].map(function(Be){return{attrs:Be,val:ce.yLbFormatter(Be.value,{seriesIndex:u,dataPointIndex:c,w:E})}}))}}c===null&&(o=ce.yLbFormatter(E.globals.series[u],a(a({},E),{},{seriesIndex:u,dataPointIndex:u}))),i.DOMHandling({i:u,t:de,j:c,ttItems:h,values:{val:o,goalVals:N,xVal:W,xAxisTTVal:q,zVal:G},seriesName:Q,shared:x,pColor:re})},C=0,I=E.globals.series.length-1;C<E.globals.series.length;C++,I--)ie(C,I)}},{key:"getFormatters",value:function(n){var o,i=this.w,u=i.globals.yLabelFormatters[n];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(u=i.globals.ttVal[n]&&i.globals.ttVal[n].formatter,o=i.globals.ttVal[n]&&i.globals.ttVal[n].title&&i.globals.ttVal[n].title.formatter):(u=i.globals.ttVal.formatter,typeof i.globals.ttVal.title.formatter=="function"&&(o=i.globals.ttVal.title.formatter)):o=i.config.tooltip.y.title.formatter,typeof u!="function"&&(u=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(c){return c}),typeof o!="function"&&(o=function(c){return c}),{yLbFormatter:u,yLbTitleFormatter:o}}},{key:"getSeriesName",value:function(n){var o=n.fn,i=n.index,u=n.seriesIndex,c=n.j,d=this.w;return o(String(d.globals.seriesNames[i]),{series:d.globals.series,seriesIndex:u,dataPointIndex:c,w:d})}},{key:"DOMHandling",value:function(n){n.i;var o=n.t,i=n.j,u=n.ttItems,c=n.values,d=n.seriesName,h=n.shared,x=n.pColor,k=this.w,E=this.ttCtx,N=c.val,L=c.goalVals,W=c.xVal,G=c.xAxisTTVal,q=c.zVal,Q=null;Q=u[o].children,k.config.tooltip.fillSeriesColor&&(u[o].style.backgroundColor=x,Q[0].style.display="none"),E.showTooltipTitle&&(E.tooltipTitle===null&&(E.tooltipTitle=k.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),E.tooltipTitle.innerHTML=W),E.isXAxisTooltipEnabled&&(E.xaxisTooltipText.innerHTML=G!==""?G:W);var re=u[o].querySelector(".apexcharts-tooltip-text-y-label");re&&(re.innerHTML=d||"");var ie=u[o].querySelector(".apexcharts-tooltip-text-y-value");ie&&(ie.innerHTML=N!==void 0?N:""),Q[0]&&Q[0].classList.contains("apexcharts-tooltip-marker")&&(k.config.tooltip.marker.fillColors&&Array.isArray(k.config.tooltip.marker.fillColors)&&(x=k.config.tooltip.marker.fillColors[o]),Q[0].style.backgroundColor=x),k.config.tooltip.marker.show||(Q[0].style.display="none");var C=u[o].querySelector(".apexcharts-tooltip-text-goals-label"),I=u[o].querySelector(".apexcharts-tooltip-text-goals-value");if(L.length&&k.globals.seriesGoals[o]){var $=function(){var te="<div >",ce="<div>";L.forEach(function(de,we){te+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(de.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(de.attrs.name,"</div>"),ce+="<div>".concat(de.val,"</div>")}),C.innerHTML=te+"</div>",I.innerHTML=ce+"</div>"};h?k.globals.seriesGoals[o][i]&&Array.isArray(k.globals.seriesGoals[o][i])?$():(C.innerHTML="",I.innerHTML=""):$()}else C.innerHTML="",I.innerHTML="";q!==null&&(u[o].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=k.config.tooltip.z.title,u[o].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=q!==void 0?q:""),h&&Q[0]&&(N==null||k.globals.ancillaryCollapsedSeriesIndices.indexOf(o)>-1||k.globals.collapsedSeriesIndices.indexOf(o)>-1?Q[0].parentNode.style.display="none":Q[0].parentNode.style.display=k.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(n){var o=this.w;if(n)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=o.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(n){var o=n.i,i=n.j,u=this.w,c=this.ctx.series.filteredSeriesX(),d="",h="",x=null,k=null,E={series:u.globals.series,seriesIndex:o,dataPointIndex:i,w:u},N=u.globals.ttZFormatter;i===null?k=u.globals.series[o]:u.globals.isXNumeric&&u.config.chart.type!=="treemap"?(d=c[o][i],c[o].length===0&&(d=c[this.tooltipUtil.getFirstActiveXArray(c)][i])):d=u.globals.labels[i]!==void 0?u.globals.labels[i]:"";var L=d;return u.globals.isXNumeric&&u.config.xaxis.type==="datetime"?d=new fe(this.ctx).xLabelFormat(u.globals.ttKeyFormatter,L,L,{i:void 0,dateFormatter:new ne(this.ctx).formatDate,w:this.w}):d=u.globals.isBarHorizontal?u.globals.yLabelFormatters[0](L,E):u.globals.xLabelFormatter(L,E),u.config.tooltip.x.formatter!==void 0&&(d=u.globals.ttKeyFormatter(L,E)),u.globals.seriesZ.length>0&&u.globals.seriesZ[o].length>0&&(x=N(u.globals.seriesZ[o][i],u)),h=typeof u.config.xaxis.tooltip.formatter=="function"?u.globals.xaxisTooltipFormatter(L,E):d,{val:Array.isArray(k)?k.join(" "):k,xVal:Array.isArray(d)?d.join(" "):d,xAxisTTVal:Array.isArray(h)?h.join(" "):h,zVal:x}}},{key:"handleCustomTooltip",value:function(n){var o=n.i,i=n.j,u=n.y1,c=n.y2,d=n.w,h=this.ttCtx.getElTooltip(),x=d.config.tooltip.custom;Array.isArray(x)&&x[o]&&(x=x[o]),h.innerHTML=x({ctx:this.ctx,series:d.globals.series,seriesIndex:o,dataPointIndex:i,y1:u,y2:c,w:d})}}]),J}(),Fr=function(){function J(n){l(this,J),this.ttCtx=n,this.ctx=n.ctx,this.w=n.w}return b(J,[{key:"moveXCrosshairs",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,u=this.w,c=i.getElXCrosshairs(),d=n-i.xcrosshairsWidth/2,h=u.globals.labels.slice().length;if(o!==null&&(d=u.globals.gridWidth/h*o),c===null||u.globals.isBarHorizontal||(c.setAttribute("x",d),c.setAttribute("x1",d),c.setAttribute("x2",d),c.setAttribute("y2",u.globals.gridHeight),c.classList.add("apexcharts-active")),d<0&&(d=0),d>u.globals.gridWidth&&(d=u.globals.gridWidth),i.isXAxisTooltipEnabled){var x=d;u.config.xaxis.crosshairs.width!=="tickWidth"&&u.config.xaxis.crosshairs.width!=="barWidth"||(x=d+i.xcrosshairsWidth/2),this.moveXAxisTooltip(x)}}},{key:"moveYCrosshairs",value:function(n){var o=this.ttCtx;o.ycrosshairs!==null&&m.setAttrs(o.ycrosshairs,{y1:n,y2:n}),o.ycrosshairsHidden!==null&&m.setAttrs(o.ycrosshairsHidden,{y1:n,y2:n})}},{key:"moveXAxisTooltip",value:function(n){var o=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var u=i.xaxisOffY+o.config.xaxis.tooltip.offsetY+o.globals.translateY+1+o.config.xaxis.offsetY;if(n-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(n)){n+=o.globals.translateX;var c;c=new m(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=c.width+"px",i.xaxisTooltip.style.left=n+"px",i.xaxisTooltip.style.top=u+"px"}}}},{key:"moveYAxisTooltip",value:function(n){var o=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var u=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),c=o.globals.translateY+u,d=i.yaxisTTEls[n].getBoundingClientRect().height,h=o.globals.translateYAxisX[n]-2;o.config.yaxis[n].opposite&&(h-=26),c-=d/2,o.globals.ignoreYAxisIndexes.indexOf(n)===-1?(i.yaxisTTEls[n].classList.add("apexcharts-active"),i.yaxisTTEls[n].style.top=c+"px",i.yaxisTTEls[n].style.left=h+o.config.yaxis[n].tooltip.offsetX+"px"):i.yaxisTTEls[n].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.w,c=this.ttCtx,d=c.getElTooltip(),h=c.tooltipRect,x=i!==null?parseFloat(i):1,k=parseFloat(n)+x+5,E=parseFloat(o)+x/2;if(k>u.globals.gridWidth/2&&(k=k-h.ttWidth-x-10),k>u.globals.gridWidth-h.ttWidth-10&&(k=u.globals.gridWidth-h.ttWidth),k<-20&&(k=-20),u.config.tooltip.followCursor){var N=c.getElGrid().getBoundingClientRect();(k=c.e.clientX-N.left)>u.globals.gridWidth/2&&(k-=c.tooltipRect.ttWidth),(E=c.e.clientY+u.globals.translateY-N.top)>u.globals.gridHeight/2&&(E-=c.tooltipRect.ttHeight)}else u.globals.isBarHorizontal||h.ttHeight/2+E>u.globals.gridHeight&&(E=u.globals.gridHeight-h.ttHeight+u.globals.translateY);isNaN(k)||(k+=u.globals.translateX,d.style.left=k+"px",d.style.top=E+"px")}},{key:"moveMarkers",value:function(n,o){var i=this.w,u=this.ttCtx;if(i.globals.markers.size[n]>0)for(var c=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(n,"'] .apexcharts-marker")),d=0;d<c.length;d++)parseInt(c[d].getAttribute("rel"),10)===o&&(u.marker.resetPointsSize(),u.marker.enlargeCurrentPoint(o,c[d]));else u.marker.resetPointsSize(),this.moveDynamicPointOnHover(o,n)}},{key:"moveDynamicPointOnHover",value:function(n,o){var i,u,c=this.w,d=this.ttCtx,h=c.globals.pointsArray,x=d.tooltipUtil.getHoverMarkerSize(o),k=c.config.series[o].type;if(!k||k!=="column"&&k!=="candlestick"&&k!=="boxPlot"){i=h[o][n][0],u=h[o][n][1]?h[o][n][1]:0;var E=c.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(o,"'] .apexcharts-series-markers circle"));E&&u<c.globals.gridHeight&&u>0&&(E.setAttribute("r",x),E.setAttribute("cx",i),E.setAttribute("cy",u)),this.moveXCrosshairs(i),d.fixedTooltip||this.moveTooltip(i,u,x)}}},{key:"moveDynamicPointsOnHover",value:function(n){var o,i=this.ttCtx,u=i.w,c=0,d=0,h=u.globals.pointsArray;o=new Pe(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var x=i.tooltipUtil.getHoverMarkerSize(o);h[o]&&(c=h[o][n][0],d=h[o][n][1]);var k=i.tooltipUtil.getAllMarkers();if(k!==null)for(var E=0;E<u.globals.series.length;E++){var N=h[E];if(u.globals.comboCharts&&N===void 0&&k.splice(E,0,null),N&&N.length){var L=h[E][n][1],W=void 0;if(k[E].setAttribute("cx",c),u.config.chart.type==="rangeArea"&&!u.globals.comboCharts){var G=n+u.globals.series[E].length;W=h[E][G][1],L-=Math.abs(L-W)/2}L!==null&&!isNaN(L)&&L<u.globals.gridHeight+x&&L+x>0?(k[E]&&k[E].setAttribute("r",x),k[E]&&k[E].setAttribute("cy",L)):k[E]&&k[E].setAttribute("r",0)}}this.moveXCrosshairs(c),i.fixedTooltip||this.moveTooltip(c,d||u.globals.gridHeight,x)}},{key:"moveStickyTooltipOverBars",value:function(n,o){var i=this.w,u=this.ttCtx,c=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,d=c>=2&&c%2==0?Math.floor(c/2):Math.floor(c/2)+1;i.globals.isBarHorizontal&&(d=new Pe(this.ctx).getActiveConfigSeriesIndex("desc")+1);var h=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(d,"'] path[j='").concat(n,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"']"));h||typeof o!="number"||(h=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(o,"'] path[j='").concat(n,`'],
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,`'],
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,`'],
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,"']")));var x=h?parseFloat(h.getAttribute("cx")):0,k=h?parseFloat(h.getAttribute("cy")):0,E=h?parseFloat(h.getAttribute("barWidth")):0,N=u.getElGrid().getBoundingClientRect(),L=h&&(h.classList.contains("apexcharts-candlestick-area")||h.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(h&&!L&&(x-=c%2!=0?E/2:0),h&&L&&i.globals.comboCharts&&(x-=E/2)):i.globals.isBarHorizontal||(x=u.xAxisTicksPositions[n-1]+u.dataPointsDividedWidth/2,isNaN(x)&&(x=u.xAxisTicksPositions[n]-u.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?k-=u.tooltipRect.ttHeight:i.config.tooltip.followCursor?k=u.e.clientY-N.top-u.tooltipRect.ttHeight/2:k+u.tooltipRect.ttHeight+15>i.globals.gridHeight&&(k=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(x),u.fixedTooltip||this.moveTooltip(x,k||i.globals.gridHeight)}}]),J}(),Vr=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n,this.ctx=n.ctx,this.tooltipPosition=new Fr(n)}return b(J,[{key:"drawDynamicPoints",value:function(){var n=this.w,o=new m(this.ctx),i=new Ee(this.ctx),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series");u=R(u),n.config.chart.stacked&&u.sort(function(N,L){return parseFloat(N.getAttribute("data:realIndex"))-parseFloat(L.getAttribute("data:realIndex"))});for(var c=0;c<u.length;c++){var d=u[c].querySelector(".apexcharts-series-markers-wrap");if(d!==null){var h=void 0,x="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));n.config.chart.type!=="line"&&n.config.chart.type!=="area"||n.globals.comboCharts||n.config.tooltip.intersect||(x+=" no-pointer-events");var k=i.getMarkerConfig({cssClass:x,seriesIndex:Number(d.getAttribute("data:realIndex"))});(h=o.drawMarker(0,0,k)).node.setAttribute("default-marker-size",0);var E=document.createElementNS(n.globals.SVGNS,"g");E.classList.add("apexcharts-series-markers"),E.appendChild(h.node),d.appendChild(E)}}}},{key:"enlargeCurrentPoint",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=this.w;c.config.chart.type!=="bubble"&&this.newPointSize(n,o);var d=o.getAttribute("cx"),h=o.getAttribute("cy");if(i!==null&&u!==null&&(d=i,h=u),this.tooltipPosition.moveXCrosshairs(d),!this.fixedTooltip){if(c.config.chart.type==="radar"){var x=this.ttCtx.getElGrid().getBoundingClientRect();d=this.ttCtx.e.clientX-x.left}this.tooltipPosition.moveTooltip(d,h,c.config.markers.hover.size)}}},{key:"enlargePoints",value:function(n){for(var o=this.w,i=this,u=this.ttCtx,c=n,d=o.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),h=o.config.markers.hover.size,x=0;x<d.length;x++){var k=d[x].getAttribute("rel"),E=d[x].getAttribute("index");if(h===void 0&&(h=o.globals.markers.size[E]+o.config.markers.hover.sizeOffset),c===parseInt(k,10)){i.newPointSize(c,d[x]);var N=d[x].getAttribute("cx"),L=d[x].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(N),u.fixedTooltip||i.tooltipPosition.moveTooltip(N,L,h)}else i.oldPointSize(d[x])}}},{key:"newPointSize",value:function(n,o){var i=this.w,u=i.config.markers.hover.size,c=n===0?o.parentNode.firstChild:o.parentNode.lastChild;if(c.getAttribute("default-marker-size")!=="0"){var d=parseInt(c.getAttribute("index"),10);u===void 0&&(u=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),u<0&&(u=0),c.setAttribute("r",u)}}},{key:"oldPointSize",value:function(n){var o=parseFloat(n.getAttribute("default-marker-size"));n.setAttribute("r",o)}},{key:"resetPointsSize",value:function(){for(var n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=0;o<n.length;o++){var i=parseFloat(n[o].getAttribute("default-marker-size"));p.isNumber(i)&&i>=0?n[o].setAttribute("r",i):n[o].setAttribute("r",0)}}}]),J}(),Kt=function(){function J(n){l(this,J),this.w=n.w;var o=this.w;this.ttCtx=n,this.isVerticalGroupedRangeBar=!o.globals.isBarHorizontal&&o.config.chart.type==="rangeBar"&&o.config.plotOptions.bar.rangeBarGroupRows}return b(J,[{key:"getAttr",value:function(n,o){return parseFloat(n.target.getAttribute(o))}},{key:"handleHeatTreeTooltip",value:function(n){var o=n.e,i=n.opt,u=n.x,c=n.y,d=n.type,h=this.ttCtx,x=this.w;if(o.target.classList.contains("apexcharts-".concat(d,"-rect"))){var k=this.getAttr(o,"i"),E=this.getAttr(o,"j"),N=this.getAttr(o,"cx"),L=this.getAttr(o,"cy"),W=this.getAttr(o,"width"),G=this.getAttr(o,"height");if(h.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:k,j:E,shared:!1,e:o}),x.globals.capturedSeriesIndex=k,x.globals.capturedDataPointIndex=E,u=N+h.tooltipRect.ttWidth/2+W,c=L+h.tooltipRect.ttHeight/2-G/2,h.tooltipPosition.moveXCrosshairs(N+W/2),u>x.globals.gridWidth/2&&(u=N-h.tooltipRect.ttWidth/2+W),h.w.config.tooltip.followCursor){var q=x.globals.dom.elWrap.getBoundingClientRect();u=x.globals.clientX-q.left-(u>x.globals.gridWidth/2?h.tooltipRect.ttWidth:0),c=x.globals.clientY-q.top-(c>x.globals.gridHeight/2?h.tooltipRect.ttHeight:0)}}return{x:u,y:c}}},{key:"handleMarkerTooltip",value:function(n){var o,i,u=n.e,c=n.opt,d=n.x,h=n.y,x=this.w,k=this.ttCtx;if(u.target.classList.contains("apexcharts-marker")){var E=parseInt(c.paths.getAttribute("cx"),10),N=parseInt(c.paths.getAttribute("cy"),10),L=parseFloat(c.paths.getAttribute("val"));if(i=parseInt(c.paths.getAttribute("rel"),10),o=parseInt(c.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,k.intersect){var W=p.findAncestor(c.paths,"apexcharts-series");W&&(o=parseInt(W.getAttribute("data:realIndex"),10))}if(k.tooltipLabels.drawSeriesTexts({ttItems:c.ttItems,i:o,j:i,shared:!k.showOnIntersect&&x.config.tooltip.shared,e:u}),u.type==="mouseup"&&k.markerClick(u,o,i),x.globals.capturedSeriesIndex=o,x.globals.capturedDataPointIndex=i,d=E,h=N+x.globals.translateY-1.4*k.tooltipRect.ttHeight,k.w.config.tooltip.followCursor){var G=k.getElGrid().getBoundingClientRect();h=k.e.clientY+x.globals.translateY-G.top}L<0&&(h=N),k.marker.enlargeCurrentPoint(i,c.paths,d,h)}return{x:d,y:h}}},{key:"handleBarTooltip",value:function(n){var o,i,u=n.e,c=n.opt,d=this.w,h=this.ttCtx,x=h.getElTooltip(),k=0,E=0,N=0,L=this.getBarTooltipXY({e:u,opt:c});o=L.i;var W=L.barHeight,G=L.j;d.globals.capturedSeriesIndex=o,d.globals.capturedDataPointIndex=G,d.globals.isBarHorizontal&&h.tooltipUtil.hasBars()||!d.config.tooltip.shared?(E=L.x,N=L.y,i=Array.isArray(d.config.stroke.width)?d.config.stroke.width[o]:d.config.stroke.width,k=E):d.globals.comboCharts||d.config.tooltip.shared||(k/=2),isNaN(N)&&(N=d.globals.svgHeight-h.tooltipRect.ttHeight);var q=parseInt(c.paths.parentNode.getAttribute("data:realIndex"),10),Q=d.globals.isMultipleYAxis?d.config.yaxis[q]&&d.config.yaxis[q].reversed:d.config.yaxis[0].reversed;if(E+h.tooltipRect.ttWidth>d.globals.gridWidth&&!Q?E-=h.tooltipRect.ttWidth:E<0&&(E=0),h.w.config.tooltip.followCursor){var re=h.getElGrid().getBoundingClientRect();N=h.e.clientY-re.top}h.tooltip===null&&(h.tooltip=d.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),d.config.tooltip.shared||(d.globals.comboBarCount>0?h.tooltipPosition.moveXCrosshairs(k+i/2):h.tooltipPosition.moveXCrosshairs(k)),!h.fixedTooltip&&(!d.config.tooltip.shared||d.globals.isBarHorizontal&&h.tooltipUtil.hasBars())&&(Q&&(E-=h.tooltipRect.ttWidth)<0&&(E=0),!Q||d.globals.isBarHorizontal&&h.tooltipUtil.hasBars()||(N=N+W-2*(d.globals.series[o][G]<0?W:0)),N=N+d.globals.translateY-h.tooltipRect.ttHeight/2,x.style.left=E+d.globals.translateX+"px",x.style.top=N+"px")}},{key:"getBarTooltipXY",value:function(n){var o=this,i=n.e,u=n.opt,c=this.w,d=null,h=this.ttCtx,x=0,k=0,E=0,N=0,L=0,W=i.target.classList;if(W.contains("apexcharts-bar-area")||W.contains("apexcharts-candlestick-area")||W.contains("apexcharts-boxPlot-area")||W.contains("apexcharts-rangebar-area")){var G=i.target,q=G.getBoundingClientRect(),Q=u.elGrid.getBoundingClientRect(),re=q.height;L=q.height;var ie=q.width,C=parseInt(G.getAttribute("cx"),10),I=parseInt(G.getAttribute("cy"),10);N=parseFloat(G.getAttribute("barWidth"));var $=i.type==="touchmove"?i.touches[0].clientX:i.clientX;d=parseInt(G.getAttribute("j"),10),x=parseInt(G.parentNode.getAttribute("rel"),10)-1;var te=G.getAttribute("data-range-y1"),ce=G.getAttribute("data-range-y2");c.globals.comboCharts&&(x=parseInt(G.parentNode.getAttribute("data:realIndex"),10));var de=function(Ce){return c.globals.isXNumeric?C-ie/2:o.isVerticalGroupedRangeBar?C+ie/2:C-h.dataPointsDividedWidth+ie/2},we=function(){return I-h.dataPointsDividedHeight+re/2-h.tooltipRect.ttHeight/2};h.tooltipLabels.drawSeriesTexts({ttItems:u.ttItems,i:x,j:d,y1:te?parseInt(te,10):null,y2:ce?parseInt(ce,10):null,shared:!h.showOnIntersect&&c.config.tooltip.shared,e:i}),c.config.tooltip.followCursor?c.globals.isBarHorizontal?(k=$-Q.left+15,E=we()):(k=de(),E=i.clientY-Q.top-h.tooltipRect.ttHeight/2-15):c.globals.isBarHorizontal?((k=C)<h.xyRatios.baseLineInvertedY&&(k=C-h.tooltipRect.ttWidth),E=we()):(k=de(),E=I)}return{x:k,y:E,barHeight:L,barWidth:N,i:x,j:d}}}]),J}(),ri=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n}return b(J,[{key:"drawXaxisTooltip",value:function(){var n=this.w,o=this.ttCtx,i=n.config.xaxis.position==="bottom";o.xaxisOffY=i?n.globals.gridHeight+1:-n.globals.xAxisHeight-n.config.xaxis.axisTicks.height+3;var u=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",c=n.globals.dom.elWrap;o.isXAxisTooltipEnabled&&n.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(o.xaxisTooltip=document.createElement("div"),o.xaxisTooltip.setAttribute("class",u+" apexcharts-theme-"+n.config.tooltip.theme),c.appendChild(o.xaxisTooltip),o.xaxisTooltipText=document.createElement("div"),o.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),o.xaxisTooltipText.style.fontFamily=n.config.xaxis.tooltip.style.fontFamily||n.config.chart.fontFamily,o.xaxisTooltipText.style.fontSize=n.config.xaxis.tooltip.style.fontSize,o.xaxisTooltip.appendChild(o.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var n=this.w,o=this.ttCtx,i=function(c){var d=n.config.yaxis[c].opposite||n.config.yaxis[c].crosshairs.opposite;o.yaxisOffX=d?n.globals.gridWidth+1:1;var h="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(c,d?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");n.globals.yAxisSameScaleIndices.map(function(k,E){k.map(function(N,L){L===c&&(h+=n.config.yaxis[L].show?" ":" apexcharts-yaxistooltip-hidden")})});var x=n.globals.dom.elWrap;n.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(c))===null&&(o.yaxisTooltip=document.createElement("div"),o.yaxisTooltip.setAttribute("class",h+" apexcharts-theme-"+n.config.tooltip.theme),x.appendChild(o.yaxisTooltip),c===0&&(o.yaxisTooltipText=[]),o.yaxisTooltipText[c]=document.createElement("div"),o.yaxisTooltipText[c].classList.add("apexcharts-yaxistooltip-text"),o.yaxisTooltip.appendChild(o.yaxisTooltipText[c]))},u=0;u<n.config.yaxis.length;u++)i(u)}},{key:"setXCrosshairWidth",value:function(){var n=this.w,o=this.ttCtx,i=o.getElXCrosshairs();if(o.xcrosshairsWidth=parseInt(n.config.xaxis.crosshairs.width,10),n.globals.comboCharts){var u=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(u!==null&&n.config.xaxis.crosshairs.width==="barWidth"){var c=parseFloat(u.getAttribute("barWidth"));o.xcrosshairsWidth=c}else if(n.config.xaxis.crosshairs.width==="tickWidth"){var d=n.globals.labels.length;o.xcrosshairsWidth=n.globals.gridWidth/d}}else if(n.config.xaxis.crosshairs.width==="tickWidth"){var h=n.globals.labels.length;o.xcrosshairsWidth=n.globals.gridWidth/h}else if(n.config.xaxis.crosshairs.width==="barWidth"){var x=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(x!==null){var k=parseFloat(x.getAttribute("barWidth"));o.xcrosshairsWidth=k}else o.xcrosshairsWidth=1}n.globals.isBarHorizontal&&(o.xcrosshairsWidth=0),i!==null&&o.xcrosshairsWidth>0&&i.setAttribute("width",o.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var n=this.w,o=this.ttCtx;o.ycrosshairs=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),o.ycrosshairsHidden=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(n,o,i){var u=this.ttCtx,c=this.w,d=c.globals.yLabelFormatters[n];if(u.yaxisTooltips[n]){var h=u.getElGrid().getBoundingClientRect(),x=(o-h.top)*i.yRatio[n],k=c.globals.maxYArr[n]-c.globals.minYArr[n],E=c.globals.minYArr[n]+(k-x);u.tooltipPosition.moveYCrosshairs(o-h.top),u.yaxisTooltipText[n].innerHTML=d(E),u.tooltipPosition.moveYAxisTooltip(n)}}}]),J}(),ba=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.tConfig=o.config.tooltip,this.tooltipUtil=new nr(this),this.tooltipLabels=new Pn(this),this.tooltipPosition=new Fr(this),this.marker=new Vr(this),this.intersect=new Kt(this),this.axesTooltip=new ri(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!o.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return b(J,[{key:"getElTooltip",value:function(n){return n||(n=this),n.w.globals.dom.baseEl?n.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(n){var o=this.w;this.xyRatios=n,this.isXAxisTooltipEnabled=o.config.xaxis.tooltip.enabled&&o.globals.axisCharts,this.yaxisTooltips=o.config.yaxis.map(function(d,h){return!!(d.show&&d.tooltip.enabled&&o.globals.axisCharts)}),this.allTooltipSeriesGroups=[],o.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),o.config.tooltip.cssClass&&i.classList.add(o.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),o.globals.dom.elWrap.appendChild(i),o.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var u=new He(this.ctx);this.xAxisTicksPositions=u.getXAxisTicksPositions()}if(!o.globals.comboCharts&&!this.tConfig.intersect&&o.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),o.config.markers.size!==0&&o.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),o.globals.collapsedSeries.length!==o.globals.series.length){this.dataPointsDividedHeight=o.globals.gridHeight/o.globals.dataPoints,this.dataPointsDividedWidth=o.globals.gridWidth/o.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||o.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var c=o.globals.series.length;(o.globals.xyCharts||o.globals.comboCharts)&&this.tConfig.shared&&(c=this.showOnIntersect?1:o.globals.series.length),this.legendLabels=o.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(c),this.addSVGEvents()}}},{key:"createTTElements",value:function(n){for(var o=this,i=this.w,u=[],c=this.getElTooltip(),d=function(x){var k=document.createElement("div");k.classList.add("apexcharts-tooltip-series-group"),k.style.order=i.config.tooltip.inverseOrder?n-x:x+1,o.tConfig.shared&&o.tConfig.enabledOnSeries&&Array.isArray(o.tConfig.enabledOnSeries)&&o.tConfig.enabledOnSeries.indexOf(x)<0&&k.classList.add("apexcharts-tooltip-series-group-hidden");var E=document.createElement("span");E.classList.add("apexcharts-tooltip-marker"),E.style.backgroundColor=i.globals.colors[x],k.appendChild(E);var N=document.createElement("div");N.classList.add("apexcharts-tooltip-text"),N.style.fontFamily=o.tConfig.style.fontFamily||i.config.chart.fontFamily,N.style.fontSize=o.tConfig.style.fontSize,["y","goals","z"].forEach(function(L){var W=document.createElement("div");W.classList.add("apexcharts-tooltip-".concat(L,"-group"));var G=document.createElement("span");G.classList.add("apexcharts-tooltip-text-".concat(L,"-label")),W.appendChild(G);var q=document.createElement("span");q.classList.add("apexcharts-tooltip-text-".concat(L,"-value")),W.appendChild(q),N.appendChild(W)}),k.appendChild(N),c.appendChild(k),u.push(k)},h=0;h<n;h++)d(h);return u}},{key:"addSVGEvents",value:function(){var n=this.w,o=n.config.chart.type,i=this.getElTooltip(),u=!(o!=="bar"&&o!=="candlestick"&&o!=="boxPlot"&&o!=="rangeBar"),c=o==="area"||o==="line"||o==="scatter"||o==="bubble"||o==="radar",d=n.globals.dom.Paper.node,h=this.getElGrid();h&&(this.seriesBound=h.getBoundingClientRect());var x,k=[],E=[],N={hoverArea:d,elGrid:h,tooltipEl:i,tooltipY:k,tooltipX:E,ttItems:this.ttItems};if(n.globals.axisCharts&&(c?x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):u?x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):o!=="heatmap"&&o!=="treemap"||(x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),x&&x.length))for(var L=0;L<x.length;L++)k.push(x[L].getAttribute("cy")),E.push(x[L].getAttribute("cx"));if(n.globals.xyCharts&&!this.showOnIntersect||n.globals.comboCharts&&!this.showOnIntersect||u&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([d],N);else if(u&&!n.globals.comboCharts||c&&this.showOnIntersect)this.addDatapointEventsListeners(N);else if(!n.globals.axisCharts||o==="heatmap"||o==="treemap"){var W=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(W,N)}if(this.showOnIntersect){var G=n.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");G.length>0&&this.addPathsEventListeners(G,N),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(N)}}},{key:"drawFixedTooltipRect",value:function(){var n=this.w,o=this.getElTooltip(),i=o.getBoundingClientRect(),u=i.width+10,c=i.height+10,d=this.tConfig.fixed.offsetX,h=this.tConfig.fixed.offsetY,x=this.tConfig.fixed.position.toLowerCase();return x.indexOf("right")>-1&&(d=d+n.globals.svgWidth-u+10),x.indexOf("bottom")>-1&&(h=h+n.globals.svgHeight-c-10),o.style.left=d+"px",o.style.top=h+"px",{x:d,y:h,ttWidth:u,ttHeight:c}}},{key:"addDatapointEventsListeners",value:function(n){var o=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(o,n)}},{key:"addPathsEventListeners",value:function(n,o){for(var i=this,u=function(d){var h={paths:n[d],tooltipEl:o.tooltipEl,tooltipY:o.tooltipY,tooltipX:o.tooltipX,elGrid:o.elGrid,hoverArea:o.hoverArea,ttItems:o.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(x){return n[d].addEventListener(x,i.onSeriesHover.bind(i,h),{capture:!1,passive:!0})})},c=0;c<n.length;c++)u(c)}},{key:"onSeriesHover",value:function(n,o){var i=this,u=Date.now()-this.lastHoverTime;u>=100?this.seriesHover(n,o):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(n,o)},100-u))}},{key:"seriesHover",value:function(n,o){var i=this;this.lastHoverTime=Date.now();var u=[],c=this.w;c.config.chart.group&&(u=this.ctx.getGroupedCharts()),c.globals.axisCharts&&(c.globals.minX===-1/0&&c.globals.maxX===1/0||c.globals.dataPoints===0)||(u.length?u.forEach(function(d){var h=i.getElTooltip(d),x={paths:n.paths,tooltipEl:h,tooltipY:n.tooltipY,tooltipX:n.tooltipX,elGrid:n.elGrid,hoverArea:n.hoverArea,ttItems:d.w.globals.tooltip.ttItems};d.w.globals.minX===i.w.globals.minX&&d.w.globals.maxX===i.w.globals.maxX&&d.w.globals.tooltip.seriesHoverByContext({chartCtx:d,ttCtx:d.w.globals.tooltip,opt:x,e:o})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:n,e:o}))}},{key:"seriesHoverByContext",value:function(n){var o=n.chartCtx,i=n.ttCtx,u=n.opt,c=n.e,d=o.w,h=this.getElTooltip();h&&(i.tooltipRect={x:0,y:0,ttWidth:h.getBoundingClientRect().width,ttHeight:h.getBoundingClientRect().height},i.e=c,i.tooltipUtil.hasBars()&&!d.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Pe(o).toggleSeriesOnHover(c,c.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),d.globals.axisCharts?i.axisChartsTooltips({e:c,opt:u,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:c,opt:u,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(n){var o,i,u=n.e,c=n.opt,d=this.w,h=c.elGrid.getBoundingClientRect(),x=u.type==="touchmove"?u.touches[0].clientX:u.clientX,k=u.type==="touchmove"?u.touches[0].clientY:u.clientY;if(this.clientY=k,this.clientX=x,d.globals.capturedSeriesIndex=-1,d.globals.capturedDataPointIndex=-1,k<h.top||k>h.top+h.height)this.handleMouseOut(c);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!d.config.tooltip.shared){var E=parseInt(c.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(E)<0)return void this.handleMouseOut(c)}var N=this.getElTooltip(),L=this.getElXCrosshairs(),W=d.globals.xyCharts||d.config.chart.type==="bar"&&!d.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||d.globals.comboCharts&&this.tooltipUtil.hasBars();if(u.type==="mousemove"||u.type==="touchmove"||u.type==="mouseup"){if(d.globals.collapsedSeries.length+d.globals.ancillaryCollapsedSeries.length===d.globals.series.length)return;L!==null&&L.classList.add("apexcharts-active");var G=this.yaxisTooltips.filter(function(re){return re===!0});if(this.ycrosshairs!==null&&G.length&&this.ycrosshairs.classList.add("apexcharts-active"),W&&!this.showOnIntersect)this.handleStickyTooltip(u,x,k,c);else if(d.config.chart.type==="heatmap"||d.config.chart.type==="treemap"){var q=this.intersect.handleHeatTreeTooltip({e:u,opt:c,x:o,y:i,type:d.config.chart.type});o=q.x,i=q.y,N.style.left=o+"px",N.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:u,opt:c}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:u,opt:c,x:o,y:i});if(this.yaxisTooltips.length)for(var Q=0;Q<d.config.yaxis.length;Q++)this.axesTooltip.drawYaxisTooltipText(Q,k,this.xyRatios);c.tooltipEl.classList.add("apexcharts-active")}else u.type!=="mouseout"&&u.type!=="touchend"||this.handleMouseOut(c)}}},{key:"nonAxisChartsTooltips",value:function(n){var o=n.e,i=n.opt,u=n.tooltipRect,c=this.w,d=i.paths.getAttribute("rel"),h=this.getElTooltip(),x=c.globals.dom.elWrap.getBoundingClientRect();if(o.type==="mousemove"||o.type==="touchmove"){h.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(d,10)-1,shared:!1});var k=c.globals.clientX-x.left-u.ttWidth/2,E=c.globals.clientY-x.top-u.ttHeight-10;if(h.style.left=k+"px",h.style.top=E+"px",c.config.legend.tooltipHoverFormatter){var N=d-1,L=(0,c.config.legend.tooltipHoverFormatter)(this.legendLabels[N].getAttribute("data:default-text"),{seriesIndex:N,dataPointIndex:N,w:c});this.legendLabels[N].innerHTML=L}}else o.type!=="mouseout"&&o.type!=="touchend"||(h.classList.remove("apexcharts-active"),c.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(W){var G=W.getAttribute("data:default-text");W.innerHTML=decodeURIComponent(G)}))}},{key:"handleStickyTooltip",value:function(n,o,i,u){var c=this.w,d=this.tooltipUtil.getNearestValues({context:this,hoverArea:u.hoverArea,elGrid:u.elGrid,clientX:o,clientY:i}),h=d.j,x=d.capturedSeries;c.globals.collapsedSeriesIndices.includes(x)&&(x=null);var k=u.elGrid.getBoundingClientRect();if(d.hoverX<0||d.hoverX>k.width)this.handleMouseOut(u);else if(x!==null)this.handleStickyCapturedSeries(n,x,u,h);else if(this.tooltipUtil.isXoverlap(h)||c.globals.isBarHorizontal){var E=c.globals.series.findIndex(function(N,L){return!c.globals.collapsedSeriesIndices.includes(L)});this.create(n,this,E,h,u.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(n,o,i,u){var c=this.w;if(!this.tConfig.shared&&c.globals.series[o][u]===null)return void this.handleMouseOut(i);if(c.globals.series[o][u]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(u)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(n,this,o,u,i.ttItems):this.create(n,this,o,u,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(u)){var d=c.globals.series.findIndex(function(h,x){return!c.globals.collapsedSeriesIndices.includes(x)});this.create(n,this,d,u,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var n=this.w,o=new m(this.ctx),i=n.globals.dom.Paper.select(".apexcharts-bar-area"),u=0;u<i.length;u++)o.pathMouseLeave(i[u])}},{key:"handleMouseOut",value:function(n){var o=this.w,i=this.getElXCrosshairs();if(n.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),o.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var u=0;u<this.yaxisTTEls.length;u++)this.yaxisTTEls[u].classList.remove("apexcharts-active")}o.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(c){var d=c.getAttribute("data:default-text");c.innerHTML=decodeURIComponent(d)})}},{key:"markerClick",value:function(n,o,i){var u=this.w;typeof u.config.chart.events.markerClick=="function"&&u.config.chart.events.markerClick(n,this.ctx,{seriesIndex:o,dataPointIndex:i,w:u}),this.ctx.events.fireEvent("markerClick",[n,this.ctx,{seriesIndex:o,dataPointIndex:i,w:u}])}},{key:"create",value:function(n,o,i,u,c){var d,h,x,k,E,N,L,W,G,q,Q,re,ie,C,I,$,te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,ce=this.w,de=o;n.type==="mouseup"&&this.markerClick(n,i,u),te===null&&(te=this.tConfig.shared);var we=this.tooltipUtil.hasMarkers(i),Ce=this.tooltipUtil.getElBars();if(ce.config.legend.tooltipHoverFormatter){var Me=ce.config.legend.tooltipHoverFormatter,Be=Array.from(this.legendLabels);Be.forEach(function(Rr){var Qn=Rr.getAttribute("data:default-text");Rr.innerHTML=decodeURIComponent(Qn)});for(var ze=0;ze<Be.length;ze++){var $e=Be[ze],Ze=parseInt($e.getAttribute("i"),10),ct=decodeURIComponent($e.getAttribute("data:default-text")),mt=Me(ct,{seriesIndex:te?Ze:i,dataPointIndex:u,w:ce});if(te)$e.innerHTML=ce.globals.collapsedSeriesIndices.indexOf(Ze)<0?mt:ct;else if($e.innerHTML=Ze===i?mt:ct,i===Ze)break}}var Pt=a(a({ttItems:c,i,j:u},((d=ce.globals.seriesRange)===null||d===void 0||(h=d[i])===null||h===void 0||(x=h[u])===null||x===void 0||(k=x.y[0])===null||k===void 0?void 0:k.y1)!==void 0&&{y1:(E=ce.globals.seriesRange)===null||E===void 0||(N=E[i])===null||N===void 0||(L=N[u])===null||L===void 0||(W=L.y[0])===null||W===void 0?void 0:W.y1}),((G=ce.globals.seriesRange)===null||G===void 0||(q=G[i])===null||q===void 0||(Q=q[u])===null||Q===void 0||(re=Q.y[0])===null||re===void 0?void 0:re.y2)!==void 0&&{y2:(ie=ce.globals.seriesRange)===null||ie===void 0||(C=ie[i])===null||C===void 0||(I=C[u])===null||I===void 0||($=I.y[0])===null||$===void 0?void 0:$.y2});if(te){if(de.tooltipLabels.drawSeriesTexts(a(a({},Pt),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),we)ce.globals.markers.largestSize>0?de.marker.enlargePoints(u):de.tooltipPosition.moveDynamicPointsOnHover(u);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(Ce),this.barSeriesHeight>0)){var zt=new m(this.ctx),Rt=ce.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(u,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(u,i);for(var Wt=0;Wt<Rt.length;Wt++)zt.pathMouseEnter(Rt[Wt])}}else de.tooltipLabels.drawSeriesTexts(a({shared:!1},Pt)),this.tooltipUtil.hasBars()&&de.tooltipPosition.moveStickyTooltipOverBars(u,i),we&&de.tooltipPosition.moveMarkers(i,u)}}]),J}(),Mr=function(){function J(n){l(this,J),this.w=n.w,this.barCtx=n,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return b(J,[{key:"handleBarDataLabels",value:function(n){var o=n.x,i=n.y,u=n.y1,c=n.y2,d=n.i,h=n.j,x=n.realIndex,k=n.groupIndex,E=n.series,N=n.barHeight,L=n.barWidth,W=n.barXPosition,G=n.barYPosition,q=n.visibleSeries,Q=n.renderedPath,re=this.w,ie=new m(this.barCtx.ctx),C=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[x]:this.barCtx.strokeWidth,I=o+parseFloat(L*q),$=i+parseFloat(N*q);re.globals.isXNumeric&&!re.globals.isBarHorizontal&&(I=o+parseFloat(L*(q+1)),$=i+parseFloat(N*(q+1))-C);var te,ce=null,de=o,we=i,Ce={},Me=re.config.dataLabels,Be=this.barCtx.barOptions.dataLabels,ze=this.barCtx.barOptions.dataLabels.total;G!==void 0&&this.barCtx.isRangeBar&&($=G,we=G),W!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(I=W,de=W);var $e=Me.offsetX,Ze=Me.offsetY,ct={width:0,height:0};if(re.config.dataLabels.enabled){var mt=this.barCtx.series[d][h];ct=ie.getTextRects(re.globals.yLabelFormatters[0](mt),parseFloat(Me.style.fontSize))}var Pt={x:o,y:i,i:d,j:h,realIndex:x,groupIndex:k||-1,renderedPath:Q,bcx:I,bcy:$,barHeight:N,barWidth:L,textRects:ct,strokeWidth:C,dataLabelsX:de,dataLabelsY:we,dataLabelsConfig:Me,barDataLabelsConfig:Be,barTotalDataLabelsConfig:ze,offX:$e,offY:Ze};return Ce=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(Pt):this.calculateColumnsDataLabelsPosition(Pt),Q.attr({cy:Ce.bcy,cx:Ce.bcx,j:h,val:E[d][h],barHeight:N,barWidth:L}),te=this.drawCalculatedDataLabels({x:Ce.dataLabelsX,y:Ce.dataLabelsY,val:this.barCtx.isRangeBar?[u,c]:E[d][h],i:x,j:h,barWidth:L,barHeight:N,textRects:ct,dataLabelsConfig:Me}),re.config.chart.stacked&&ze.enabled&&(ce=this.drawTotalDataLabels({x:Ce.totalDataLabelsX,y:Ce.totalDataLabelsY,realIndex:x,textAnchor:Ce.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:x,j:h}),dataLabelsConfig:Me,barTotalDataLabelsConfig:ze})),{dataLabels:te,totalDataLabels:ce}}},{key:"getStackedTotalDataLabel",value:function(n){var o=n.realIndex,i=n.j,u=this.w,c=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(c=this.totalFormatter(c,a(a({},u),{},{seriesIndex:o,dataPointIndex:i,w:u}))),c}},{key:"calculateColumnsDataLabelsPosition",value:function(n){var o,i,u=this.w,c=n.i,d=n.j,h=n.realIndex,x=n.groupIndex,k=n.y,E=n.bcx,N=n.barWidth,L=n.barHeight,W=n.textRects,G=n.dataLabelsX,q=n.dataLabelsY,Q=n.dataLabelsConfig,re=n.barDataLabelsConfig,ie=n.barTotalDataLabelsConfig,C=n.strokeWidth,I=n.offX,$=n.offY;L=Math.abs(L);var te=u.config.plotOptions.bar.dataLabels.orientation==="vertical",ce=this.barCtx.barHelpers.getZeroValueEncounters({i:c,j:d}).zeroEncounters;E=E-C/2+(x!==-1?x*N:0);var de=u.globals.gridWidth/u.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?G+=N/2:(G=u.globals.isXNumeric?E-N/2+I:E-de+N/2+I,ce>0&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(G-=N*ce)),te&&(G=G+W.height/2-C/2-2);var we=this.barCtx.series[c][d]<0,Ce=k;switch(this.barCtx.isReversed&&(Ce=k-L+(we?2*L:0),k-=L),re.position){case"center":q=te?we?Ce-L/2+$:Ce+L/2-$:we?Ce-L/2+W.height/2+$:Ce+L/2+W.height/2-$;break;case"bottom":q=te?we?Ce-L+$:Ce+L-$:we?Ce-L+W.height+C+$:Ce+L-W.height/2+C-$;break;case"top":q=te?we?Ce+$:Ce-$:we?Ce-W.height/2-$:Ce+W.height+$}if(this.barCtx.lastActiveBarSerieIndex===h&&ie.enabled){var Me=new m(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:h,j:d}),Q.fontSize);o=we?Ce-Me.height/2-$-ie.offsetY+18:Ce+Me.height+$+ie.offsetY-18,i=G+ie.offsetX}return u.config.chart.stacked||(q<0?q=0+C:q+W.height/3>u.globals.gridHeight&&(q=u.globals.gridHeight-C)),{bcx:E,bcy:k,dataLabelsX:G,dataLabelsY:q,totalDataLabelsX:i,totalDataLabelsY:o,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(n){var o=this.w,i=n.x,u=n.i,c=n.j,d=n.realIndex,h=n.groupIndex,x=n.bcy,k=n.barHeight,E=n.barWidth,N=n.textRects,L=n.dataLabelsX,W=n.strokeWidth,G=n.dataLabelsConfig,q=n.barDataLabelsConfig,Q=n.barTotalDataLabelsConfig,re=n.offX,ie=n.offY,C=o.globals.gridHeight/o.globals.dataPoints;E=Math.abs(E);var I,$,te=(x+=h!==-1?h*k:0)-(this.barCtx.isRangeBar?0:C)+k/2+N.height/2+ie-3,ce="start",de=this.barCtx.series[u][c]<0,we=i;switch(this.barCtx.isReversed&&(we=i+E-(de?2*E:0),i=o.globals.gridWidth-E),q.position){case"center":L=de?we+E/2-re:Math.max(N.width/2,we-E/2)+re;break;case"bottom":L=de?we+E-W-Math.round(N.width/2)-re:we-E+W+Math.round(N.width/2)+re;break;case"top":L=de?we-W+Math.round(N.width/2)-re:we-W-Math.round(N.width/2)+re}if(this.barCtx.lastActiveBarSerieIndex===d&&Q.enabled){var Ce=new m(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:d,j:c}),G.fontSize);de?(I=we-W+Math.round(Ce.width/2)-re-Q.offsetX-15,ce="end"):I=we-W-Math.round(Ce.width/2)+re+Q.offsetX+15,$=te+Q.offsetY}return o.config.chart.stacked||(L<0?L=L+N.width+W:L+N.width/2>o.globals.gridWidth&&(L=o.globals.gridWidth-N.width-W)),{bcx:i,bcy:x,dataLabelsX:L,dataLabelsY:te,totalDataLabelsX:I,totalDataLabelsY:$,totalDataLabelsAnchor:ce}}},{key:"drawCalculatedDataLabels",value:function(n){var o=n.x,i=n.y,u=n.val,c=n.i,d=n.j,h=n.textRects,x=n.barHeight,k=n.barWidth,E=n.dataLabelsConfig,N=this.w,L="rotate(0)";N.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(L="rotate(-90, ".concat(o,", ").concat(i,")"));var W=new Le(this.barCtx.ctx),G=new m(this.barCtx.ctx),q=E.formatter,Q=null,re=N.globals.collapsedSeriesIndices.indexOf(c)>-1;if(E.enabled&&!re){Q=G.group({class:"apexcharts-data-labels",transform:L});var ie="";u!==void 0&&(ie=q(u,a(a({},N),{},{seriesIndex:c,dataPointIndex:d,w:N}))),!u&&N.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(ie="");var C=N.globals.series[c][d]<0,I=N.config.plotOptions.bar.dataLabels.position;N.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(I==="top"&&(E.textAnchor=C?"end":"start"),I==="center"&&(E.textAnchor="middle"),I==="bottom"&&(E.textAnchor=C?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&k<G.getTextRects(ie,parseFloat(E.style.fontSize)).width&&(ie=""),N.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?h.width/1.6>Math.abs(k)&&(ie=""):h.height/1.6>Math.abs(x)&&(ie=""));var $=a({},E);this.barCtx.isHorizontal&&u<0&&(E.textAnchor==="start"?$.textAnchor="end":E.textAnchor==="end"&&($.textAnchor="start")),W.plotDataLabelsText({x:o,y:i,text:ie,i:c,j:d,parent:Q,dataLabelsConfig:$,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return Q}},{key:"drawTotalDataLabels",value:function(n){var o,i=n.x,u=n.y,c=n.val,d=n.realIndex,h=n.textAnchor,x=n.barTotalDataLabelsConfig,k=new m(this.barCtx.ctx);return x.enabled&&i!==void 0&&u!==void 0&&this.barCtx.lastActiveBarSerieIndex===d&&(o=k.drawText({x:i,y:u,foreColor:x.style.color,text:c,textAnchor:h,fontFamily:x.style.fontFamily,fontSize:x.style.fontSize,fontWeight:x.style.fontWeight})),o}}]),J}(),va=function(){function J(n){l(this,J),this.w=n.w,this.barCtx=n}return b(J,[{key:"initVariables",value:function(n){var o=this.w;this.barCtx.series=n,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<n.length;i++)if(n[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=n[i].length),o.globals.isXNumeric)for(var u=0;u<n[i].length;u++)o.globals.seriesX[i][u]>o.globals.minX&&o.globals.seriesX[i][u]<o.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=o.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],o.globals.comboCharts||this.checkZeroSeries({series:n})}},{key:"initialPositions",value:function(){var n,o,i,u,c,d,h,x,k=this.w,E=k.globals.dataPoints;this.barCtx.isRangeBar&&(E=k.globals.labels.length);var N=this.barCtx.seriesLen;if(k.config.plotOptions.bar.rangeBarGroupRows&&(N=1),this.barCtx.isHorizontal)c=(i=k.globals.gridHeight/E)/N,k.globals.isXNumeric&&(c=(i=k.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),c=c*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(c=parseInt(this.barCtx.barOptions.barHeight,10)),x=this.barCtx.baseLineInvertedY+k.globals.padHorizontal+(this.barCtx.isReversed?k.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(x=k.globals.gridWidth/2),o=(i-c*this.barCtx.seriesLen)/2;else{if(u=k.globals.gridWidth/this.barCtx.visibleItems,k.config.xaxis.convertedCatToNumeric&&(u=k.globals.gridWidth/k.globals.dataPoints),d=u/N*parseInt(this.barCtx.barOptions.columnWidth,10)/100,k.globals.isXNumeric){var L=this.barCtx.xRatio;k.config.xaxis.convertedCatToNumeric&&(L=this.barCtx.initialXRatio),k.globals.minXDiff&&k.globals.minXDiff!==.5&&k.globals.minXDiff/L>0&&(u=k.globals.minXDiff/L),(d=u/N*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(d=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(d=parseInt(this.barCtx.barOptions.columnWidth,10)),h=k.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?k.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),n=k.globals.padHorizontal+(u-d*this.barCtx.seriesLen)/2}return{x:n,y:o,yDivision:i,xDivision:u,barHeight:c,barWidth:d,zeroH:h,zeroW:x}}},{key:"initializeStackedPrevVars",value:function(n){var o=n.w;o.globals.hasSeriesGroups?o.globals.seriesGroups.forEach(function(i){n[i]||(n[i]={}),n[i].prevY=[],n[i].prevX=[],n[i].prevYF=[],n[i].prevXF=[],n[i].prevYVal=[],n[i].prevXVal=[]}):(n.prevY=[],n.prevX=[],n.prevYF=[],n.prevXF=[],n.prevYVal=[],n.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(n){var o=n.w;o.globals.hasSeriesGroups?o.globals.seriesGroups.forEach(function(i){n[i]||(n[i]={}),n[i].xArrj=[],n[i].xArrjF=[],n[i].xArrjVal=[],n[i].yArrj=[],n[i].yArrjF=[],n[i].yArrjVal=[]}):(n.xArrj=[],n.xArrjF=[],n.xArrjVal=[],n.yArrj=[],n.yArrjF=[],n.yArrjVal=[])}},{key:"getPathFillColor",value:function(n,o,i,u){var c,d,h,x,k=this.w,E=new _e(this.barCtx.ctx),N=null,L=this.barCtx.barOptions.distributed?i:o;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(W){n[o][i]>=W.from&&n[o][i]<=W.to&&(N=W.color)}),k.config.series[o].data[i]&&k.config.series[o].data[i].fillColor&&(N=k.config.series[o].data[i].fillColor),E.fillPath({seriesNumber:this.barCtx.barOptions.distributed?L:u,dataPointIndex:i,color:N,value:n[o][i],fillConfig:(c=k.config.series[o].data[i])===null||c===void 0?void 0:c.fill,fillType:(d=k.config.series[o].data[i])!==null&&d!==void 0&&(h=d.fill)!==null&&h!==void 0&&h.type?(x=k.config.series[o].data[i])===null||x===void 0?void 0:x.fill.type:k.config.fill.type})}},{key:"getStrokeWidth",value:function(n,o,i){var u=0,c=this.w;return this.barCtx.series[n][o]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,c.config.stroke.show&&(this.barCtx.isNullValue||(u=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),u}},{key:"shouldApplyRadius",value:function(n){var o=this.w,i=!1;return o.config.plotOptions.bar.borderRadius>0&&(o.config.chart.stacked&&o.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===n&&(i=!0):i=!0),i}},{key:"barBackground",value:function(n){var o=n.j,i=n.i,u=n.x1,c=n.x2,d=n.y1,h=n.y2,x=n.elSeries,k=this.w,E=new m(this.barCtx.ctx),N=new Pe(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&N===i){o>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(o%=this.barCtx.barOptions.colors.backgroundBarColors.length);var L=this.barCtx.barOptions.colors.backgroundBarColors[o],W=E.drawRect(u!==void 0?u:0,d!==void 0?d:0,c!==void 0?c:k.globals.gridWidth,h!==void 0?h:k.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,L,this.barCtx.barOptions.colors.backgroundBarOpacity);x.add(W),W.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(n){var o,i=n.barWidth,u=n.barXPosition,c=n.y1,d=n.y2,h=n.strokeWidth,x=n.seriesGroup,k=n.realIndex,E=n.i,N=n.j,L=n.w,W=new m(this.barCtx.ctx);(h=Array.isArray(h)?h[k]:h)||(h=0);var G=i,q=u;(o=L.config.series[k].data[N])!==null&&o!==void 0&&o.columnWidthOffset&&(q=u-L.config.series[k].data[N].columnWidthOffset/2,G=i+L.config.series[k].data[N].columnWidthOffset);var Q=q,re=q+G;c+=.001,d+=.001;var ie=W.move(Q,c),C=W.move(Q,c),I=W.line(re-h,c);if(L.globals.previousPaths.length>0&&(C=this.barCtx.getPreviousPath(k,N,!1)),ie=ie+W.line(Q,d)+W.line(re-h,d)+W.line(re-h,c)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),C=C+W.line(Q,c)+I+I+I+I+I+W.line(Q,c)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(k)&&(ie=W.roundPathCorners(ie,L.config.plotOptions.bar.borderRadius)),L.config.chart.stacked){var $=this.barCtx;L.globals.hasSeriesGroups&&x&&($=this.barCtx[x]),$.yArrj.push(d),$.yArrjF.push(Math.abs(c-d)),$.yArrjVal.push(this.barCtx.series[E][N])}return{pathTo:ie,pathFrom:C}}},{key:"getBarpaths",value:function(n){var o,i=n.barYPosition,u=n.barHeight,c=n.x1,d=n.x2,h=n.strokeWidth,x=n.seriesGroup,k=n.realIndex,E=n.i,N=n.j,L=n.w,W=new m(this.barCtx.ctx);(h=Array.isArray(h)?h[k]:h)||(h=0);var G=i,q=u;(o=L.config.series[k].data[N])!==null&&o!==void 0&&o.barHeightOffset&&(G=i-L.config.series[k].data[N].barHeightOffset/2,q=u+L.config.series[k].data[N].barHeightOffset);var Q=G,re=G+q;c+=.001,d+=.001;var ie=W.move(c,Q),C=W.move(c,Q);L.globals.previousPaths.length>0&&(C=this.barCtx.getPreviousPath(k,N,!1));var I=W.line(c,re-h);if(ie=ie+W.line(d,Q)+W.line(d,re-h)+I+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),C=C+W.line(c,Q)+I+I+I+I+I+W.line(c,Q)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(k)&&(ie=W.roundPathCorners(ie,L.config.plotOptions.bar.borderRadius)),L.config.chart.stacked){var $=this.barCtx;L.globals.hasSeriesGroups&&x&&($=this.barCtx[x]),$.xArrj.push(d),$.xArrjF.push(Math.abs(c-d)),$.xArrjVal.push(this.barCtx.series[E][N])}return{pathTo:ie,pathFrom:C}}},{key:"checkZeroSeries",value:function(n){for(var o=n.series,i=this.w,u=0;u<o.length;u++){for(var c=0,d=0;d<o[i.globals.maxValsInArrayIndex].length;d++)c+=o[u][d];c===0&&this.barCtx.zeroSerieses.push(u)}}},{key:"getXForValue",value:function(n,o){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?o:null;return n!=null&&(i=o+n/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?n/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(n,o){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?o:null;return n!=null&&(i=o-n/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?n/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(n,o,i,u,c){var d=this,h=this.w,x=[],k=function(L,W){var G;x.push((S(G={},n,n==="x"?d.getXForValue(L,o,!1):d.getYForValue(L,i,!1)),S(G,"attrs",W),G))};if(h.globals.seriesGoals[u]&&h.globals.seriesGoals[u][c]&&Array.isArray(h.globals.seriesGoals[u][c])&&h.globals.seriesGoals[u][c].forEach(function(L){k(L.value,L)}),this.barCtx.barOptions.isDumbbell&&h.globals.seriesRange.length){var E=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:h.globals.colors,N={strokeHeight:n==="x"?0:h.globals.markers.size[u],strokeWidth:n==="x"?h.globals.markers.size[u]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(E[u])?E[u][0]:E[u]};k(h.globals.seriesRangeStart[u][c],N),k(h.globals.seriesRangeEnd[u][c],a(a({},N),{},{strokeColor:Array.isArray(E[u])?E[u][1]:E[u]}))}return x}},{key:"drawGoalLine",value:function(n){var o=n.barXPosition,i=n.barYPosition,u=n.goalX,c=n.goalY,d=n.barWidth,h=n.barHeight,x=new m(this.barCtx.ctx),k=x.group({className:"apexcharts-bar-goals-groups"});k.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:k.node}),k.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var E=null;return this.barCtx.isHorizontal?Array.isArray(u)&&u.forEach(function(N){var L=N.attrs.strokeHeight!==void 0?N.attrs.strokeHeight:h/2,W=i+L+h/2;E=x.drawLine(N.x,W-2*L,N.x,W,N.attrs.strokeColor?N.attrs.strokeColor:void 0,N.attrs.strokeDashArray,N.attrs.strokeWidth?N.attrs.strokeWidth:2,N.attrs.strokeLineCap),k.add(E)}):Array.isArray(c)&&c.forEach(function(N){var L=N.attrs.strokeWidth!==void 0?N.attrs.strokeWidth:d/2,W=o+L+d/2;E=x.drawLine(W-2*L,N.y,W,N.y,N.attrs.strokeColor?N.attrs.strokeColor:void 0,N.attrs.strokeDashArray,N.attrs.strokeHeight?N.attrs.strokeHeight:2,N.attrs.strokeLineCap),k.add(E)}),k}},{key:"drawBarShadow",value:function(n){var o=n.prevPaths,i=n.currPaths,u=n.color,c=this.w,d=o.x,h=o.x1,x=o.barYPosition,k=i.x,E=i.x1,N=i.barYPosition,L=x+i.barHeight,W=new m(this.barCtx.ctx),G=new p,q=W.move(h,L)+W.line(d,L)+W.line(k,N)+W.line(E,N)+W.line(h,L)+(c.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return W.drawPath({d:q,fill:G.shadeColor(.5,p.rgb2hex(u)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(n){var o=n.i,i=n.j,u=this.w,c=0,d=0;return u.globals.seriesPercent.forEach(function(h,x){h[i]&&c++,x<o&&h[i]===0&&d++}),{nonZeroColumns:c,zeroEncounters:d}}}]),J}(),_n=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=o,this.xyRatios!==null&&(this.xRatio=o.xRatio,this.initialXRatio=o.initialXRatio,this.yRatio=o.yRatio,this.invertedXRatio=o.invertedXRatio,this.invertedYRatio=o.invertedYRatio,this.baseLineY=o.baseLineY,this.baseLineInvertedY=o.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var u=new Pe(this.ctx);this.lastActiveBarSerieIndex=u.getActiveConfigSeriesIndex("desc",["bar","column"]);var c=u.getBarSeriesIndices(),d=new _(this.ctx);this.stackedSeriesTotals=d.getStackedSeriesTotals(this.w.config.series.map(function(h,x){return c.indexOf(x)===-1?x:-1}).filter(function(h){return h!==-1})),this.barHelpers=new va(this)}return b(J,[{key:"draw",value:function(n,o){var i=this.w,u=new m(this.ctx),c=new _(this.ctx,i);n=c.getLogSeries(n),this.series=n,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n);var d=u.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var h=0,x=0;h<n.length;h++,x++){var k,E,N,L,W=void 0,G=void 0,q=[],Q=[],re=i.globals.comboCharts?o[h]:h,ie=u.group({class:"apexcharts-series",rel:h+1,seriesName:p.escapeString(i.globals.seriesNames[re]),"data:realIndex":re});this.ctx.series.addCollapsedClassToSeries(ie,re),n[h].length>0&&(this.visibleI=this.visibleI+1);var C=0,I=0;this.yRatio.length>1&&(this.yaxisIndex=re),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var $=this.barHelpers.initialPositions();G=$.y,C=$.barHeight,E=$.yDivision,L=$.zeroW,W=$.x,I=$.barWidth,k=$.xDivision,N=$.zeroH,this.horizontal||Q.push(W+I/2);var te=u.group({class:"apexcharts-datalabels","data:realIndex":re});i.globals.delayedElements.push({el:te.node}),te.node.classList.add("apexcharts-element-hidden");var ce=u.group({class:"apexcharts-bar-goals-markers"}),de=u.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:de.node}),de.node.classList.add("apexcharts-element-hidden");for(var we=0;we<i.globals.dataPoints;we++){var Ce=this.barHelpers.getStrokeWidth(h,we,re),Me=null,Be={indexes:{i:h,j:we,realIndex:re,bc:x},x:W,y:G,strokeWidth:Ce,elSeries:ie};this.isHorizontal?(Me=this.drawBarPaths(a(a({},Be),{},{barHeight:C,zeroW:L,yDivision:E})),I=this.series[h][we]/this.invertedYRatio):(Me=this.drawColumnPaths(a(a({},Be),{},{xDivision:k,barWidth:I,zeroH:N})),C=this.series[h][we]/this.yRatio[this.yaxisIndex]);var ze=this.barHelpers.getPathFillColor(n,h,we,re);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&we>0){var $e=this.barHelpers.drawBarShadow({color:typeof ze=="string"&&(ze==null?void 0:ze.indexOf("url"))===-1?ze:p.hexToRgba(i.globals.colors[h]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:Me});$e&&de.add($e)}this.pathArr.push(Me);var Ze=this.barHelpers.drawGoalLine({barXPosition:Me.barXPosition,barYPosition:Me.barYPosition,goalX:Me.goalX,goalY:Me.goalY,barHeight:C,barWidth:I});Ze&&ce.add(Ze),G=Me.y,W=Me.x,we>0&&Q.push(W+I/2),q.push(G),this.renderSeries({realIndex:re,pathFill:ze,j:we,i:h,pathFrom:Me.pathFrom,pathTo:Me.pathTo,strokeWidth:Ce,elSeries:ie,x:W,y:G,series:n,barHeight:Me.barHeight?Me.barHeight:C,barWidth:Me.barWidth?Me.barWidth:I,elDataLabelsWrap:te,elGoalsMarkers:ce,elBarShadows:de,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[re]=Q,i.globals.seriesYvalues[re]=q,d.add(ie)}return d}},{key:"renderSeries",value:function(n){var o=n.realIndex,i=n.pathFill,u=n.lineFill,c=n.j,d=n.i,h=n.groupIndex,x=n.pathFrom,k=n.pathTo,E=n.strokeWidth,N=n.elSeries,L=n.x,W=n.y,G=n.y1,q=n.y2,Q=n.series,re=n.barHeight,ie=n.barWidth,C=n.barXPosition,I=n.barYPosition,$=n.elDataLabelsWrap,te=n.elGoalsMarkers,ce=n.elBarShadows,de=n.visibleSeries,we=n.type,Ce=this.w,Me=new m(this.ctx);u||(u=this.barOptions.distributed?Ce.globals.stroke.colors[c]:Ce.globals.stroke.colors[o]),Ce.config.series[d].data[c]&&Ce.config.series[d].data[c].strokeColor&&(u=Ce.config.series[d].data[c].strokeColor),this.isNullValue&&(i="none");var Be=c/Ce.config.chart.animations.animateGradually.delay*(Ce.config.chart.animations.speed/Ce.globals.dataPoints)/2.4,ze=Me.renderPaths({i:d,j:c,realIndex:o,pathFrom:x,pathTo:k,stroke:u,strokeWidth:E,strokeLineCap:Ce.config.stroke.lineCap,fill:i,animationDelay:Be,initialSpeed:Ce.config.chart.animations.speed,dataChangeSpeed:Ce.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(we,"-area")});ze.attr("clip-path","url(#gridRectMask".concat(Ce.globals.cuid,")"));var $e=Ce.config.forecastDataPoints;$e.count>0&&c>=Ce.globals.dataPoints-$e.count&&(ze.node.setAttribute("stroke-dasharray",$e.dashArray),ze.node.setAttribute("stroke-width",$e.strokeWidth),ze.node.setAttribute("fill-opacity",$e.fillOpacity)),G!==void 0&&q!==void 0&&(ze.attr("data-range-y1",G),ze.attr("data-range-y2",q)),new g(this.ctx).setSelectionFilter(ze,o,c),N.add(ze);var Ze=new Mr(this).handleBarDataLabels({x:L,y:W,y1:G,y2:q,i:d,j:c,series:Q,realIndex:o,groupIndex:h,barHeight:re,barWidth:ie,barXPosition:C,barYPosition:I,renderedPath:ze,visibleSeries:de});return Ze.dataLabels!==null&&$.add(Ze.dataLabels),Ze.totalDataLabels&&$.add(Ze.totalDataLabels),N.add($),te&&N.add(te),ce&&N.add(ce),N}},{key:"drawBarPaths",value:function(n){var o,i=n.indexes,u=n.barHeight,c=n.strokeWidth,d=n.zeroW,h=n.x,x=n.y,k=n.yDivision,E=n.elSeries,N=this.w,L=i.i,W=i.j;if(N.globals.isXNumeric)o=(x=(N.globals.seriesX[L][W]-N.globals.minX)/this.invertedXRatio-u)+u*this.visibleI;else if(N.config.plotOptions.bar.hideZeroBarsWhenGrouped){var G=0,q=0;N.globals.seriesPercent.forEach(function(re,ie){re[W]&&G++,ie<L&&re[W]===0&&q++}),G>0&&(u=this.seriesLen*u/G),o=x+u*this.visibleI,o-=u*q}else o=x+u*this.visibleI;this.isFunnel&&(d-=(this.barHelpers.getXForValue(this.series[L][W],d)-d)/2),h=this.barHelpers.getXForValue(this.series[L][W],d);var Q=this.barHelpers.getBarpaths({barYPosition:o,barHeight:u,x1:d,x2:h,strokeWidth:c,series:this.series,realIndex:i.realIndex,i:L,j:W,w:N});return N.globals.isXNumeric||(x+=k),this.barHelpers.barBackground({j:W,i:L,y1:o-u*this.visibleI,y2:u*this.seriesLen,elSeries:E}),{pathTo:Q.pathTo,pathFrom:Q.pathFrom,x1:d,x:h,y:x,goalX:this.barHelpers.getGoalValues("x",d,null,L,W),barYPosition:o,barHeight:u}}},{key:"drawColumnPaths",value:function(n){var o,i=n.indexes,u=n.x,c=n.y,d=n.xDivision,h=n.barWidth,x=n.zeroH,k=n.strokeWidth,E=n.elSeries,N=this.w,L=i.realIndex,W=i.i,G=i.j,q=i.bc;if(N.globals.isXNumeric){var Q=this.getBarXForNumericXAxis({x:u,j:G,realIndex:L,barWidth:h});u=Q.x,o=Q.barXPosition}else if(N.config.plotOptions.bar.hideZeroBarsWhenGrouped){var re=this.barHelpers.getZeroValueEncounters({i:W,j:G}),ie=re.nonZeroColumns,C=re.zeroEncounters;ie>0&&(h=this.seriesLen*h/ie),o=u+h*this.visibleI,o-=h*C}else o=u+h*this.visibleI;c=this.barHelpers.getYForValue(this.series[W][G],x);var I=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:h,y1:x,y2:c,strokeWidth:k,series:this.series,realIndex:i.realIndex,i:W,j:G,w:N});return N.globals.isXNumeric||(u+=d),this.barHelpers.barBackground({bc:q,j:G,i:W,x1:o-k/2-h*this.visibleI,x2:h*this.seriesLen+k/2,elSeries:E}),{pathTo:I.pathTo,pathFrom:I.pathFrom,x:u,y:c,goalY:this.barHelpers.getGoalValues("y",null,x,W,G),barXPosition:o,barWidth:h}}},{key:"getBarXForNumericXAxis",value:function(n){var o=n.x,i=n.barWidth,u=n.realIndex,c=n.j,d=this.w,h=u;return d.globals.seriesX[u].length||(h=d.globals.maxValsInArrayIndex),d.globals.seriesX[h][c]&&(o=(d.globals.seriesX[h][c]-d.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:o+i*this.visibleI,x:o}}},{key:"getPreviousPath",value:function(n,o){for(var i,u=this.w,c=0;c<u.globals.previousPaths.length;c++){var d=u.globals.previousPaths[c];d.paths&&d.paths.length>0&&parseInt(d.realIndex,10)===parseInt(n,10)&&u.globals.previousPaths[c].paths[o]!==void 0&&(i=u.globals.previousPaths[c].paths[o].d)}return i}}]),J}(),Wr=function(J){T(o,_n);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u){var c=this,d=this.w;this.graphics=new m(this.ctx),this.bar=new _n(this.ctx,this.xyRatios);var h=new _(this.ctx,d);i=h.getLogSeries(i),this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),d.config.chart.stackType==="100%"&&(i=d.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var x=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),k=0,E=0,N=function(G,q){var Q=void 0,re=void 0,ie=void 0,C=void 0,I=-1;c.groupCtx=c,d.globals.seriesGroups.forEach(function(Rt,Wt){Rt.indexOf(d.config.series[G].name)>-1&&(I=Wt)}),I!==-1&&(c.groupCtx=c[d.globals.seriesGroups[I]]);var $=[],te=[],ce=d.globals.comboCharts?u[G]:G;c.yRatio.length>1&&(c.yaxisIndex=ce),c.isReversed=d.config.yaxis[c.yaxisIndex]&&d.config.yaxis[c.yaxisIndex].reversed;var de=c.graphics.group({class:"apexcharts-series",seriesName:p.escapeString(d.globals.seriesNames[ce]),rel:G+1,"data:realIndex":ce});c.ctx.series.addCollapsedClassToSeries(de,ce);var we=c.graphics.group({class:"apexcharts-datalabels","data:realIndex":ce}),Ce=c.graphics.group({class:"apexcharts-bar-goals-markers"}),Me=0,Be=0,ze=c.initialPositions(k,E,Q,re,ie,C);E=ze.y,Me=ze.barHeight,re=ze.yDivision,C=ze.zeroW,k=ze.x,Be=ze.barWidth,Q=ze.xDivision,ie=ze.zeroH,c.barHelpers.initializeStackedXYVars(c),c.groupCtx.prevY.length===1&&c.groupCtx.prevY[0].every(function(Rt){return isNaN(Rt)})&&(c.groupCtx.prevY[0]=c.groupCtx.prevY[0].map(function(Rt){return ie}),c.groupCtx.prevYF[0]=c.groupCtx.prevYF[0].map(function(Rt){return 0}));for(var $e=0;$e<d.globals.dataPoints;$e++){var Ze=c.barHelpers.getStrokeWidth(G,$e,ce),ct={indexes:{i:G,j:$e,realIndex:ce,bc:q},strokeWidth:Ze,x:k,y:E,elSeries:de,groupIndex:I,seriesGroup:d.globals.seriesGroups[I]},mt=null;c.isHorizontal?(mt=c.drawStackedBarPaths(a(a({},ct),{},{zeroW:C,barHeight:Me,yDivision:re})),Be=c.series[G][$e]/c.invertedYRatio):(mt=c.drawStackedColumnPaths(a(a({},ct),{},{xDivision:Q,barWidth:Be,zeroH:ie})),Me=c.series[G][$e]/c.yRatio[c.yaxisIndex]);var Pt=c.barHelpers.drawGoalLine({barXPosition:mt.barXPosition,barYPosition:mt.barYPosition,goalX:mt.goalX,goalY:mt.goalY,barHeight:Me,barWidth:Be});Pt&&Ce.add(Pt),E=mt.y,k=mt.x,$.push(k),te.push(E);var zt=c.barHelpers.getPathFillColor(i,G,$e,ce);de=c.renderSeries({realIndex:ce,pathFill:zt,j:$e,i:G,groupIndex:I,pathFrom:mt.pathFrom,pathTo:mt.pathTo,strokeWidth:Ze,elSeries:de,x:k,y:E,series:i,barHeight:Me,barWidth:Be,elDataLabelsWrap:we,elGoalsMarkers:Ce,type:"bar",visibleSeries:0})}d.globals.seriesXvalues[ce]=$,d.globals.seriesYvalues[ce]=te,c.groupCtx.prevY.push(c.groupCtx.yArrj),c.groupCtx.prevYF.push(c.groupCtx.yArrjF),c.groupCtx.prevYVal.push(c.groupCtx.yArrjVal),c.groupCtx.prevX.push(c.groupCtx.xArrj),c.groupCtx.prevXF.push(c.groupCtx.xArrjF),c.groupCtx.prevXVal.push(c.groupCtx.xArrjVal),x.add(de)},L=0,W=0;L<i.length;L++,W++)N(L,W);return x}},{key:"initialPositions",value:function(i,u,c,d,h,x){var k,E,N,L,W=this.w;return this.isHorizontal?(N=(N=d=W.globals.gridHeight/W.globals.dataPoints)*parseInt(W.config.plotOptions.bar.barHeight,10)/100,String(W.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(N=parseInt(W.config.plotOptions.bar.barHeight,10)),x=this.baseLineInvertedY+W.globals.padHorizontal+(this.isReversed?W.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),u=(d-N)/2):(L=c=W.globals.gridWidth/W.globals.dataPoints,L=W.globals.isXNumeric&&W.globals.dataPoints>1?(c=W.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:L*parseInt(W.config.plotOptions.bar.columnWidth,10)/100,String(W.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(L=parseInt(W.config.plotOptions.bar.columnWidth,10)),h=W.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?W.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=W.globals.padHorizontal+(c-L)/2),{x:i,y:u,yDivision:d,xDivision:c,barHeight:(k=W.globals.seriesGroups)!==null&&k!==void 0&&k.length?N/W.globals.seriesGroups.length:N,barWidth:(E=W.globals.seriesGroups)!==null&&E!==void 0&&E.length?L/W.globals.seriesGroups.length:L,zeroH:h,zeroW:x}}},{key:"drawStackedBarPaths",value:function(i){for(var u,c=i.indexes,d=i.barHeight,h=i.strokeWidth,x=i.zeroW,k=i.x,E=i.y,N=i.groupIndex,L=i.seriesGroup,W=i.yDivision,G=i.elSeries,q=this.w,Q=E+(N!==-1?N*d:0),re=c.i,ie=c.j,C=0,I=0;I<this.groupCtx.prevXF.length;I++)C+=this.groupCtx.prevXF[I][ie];var $=re;if(L&&($=L.indexOf(q.config.series[re].name)),$>0){var te=x;this.groupCtx.prevXVal[$-1][ie]<0?te=this.series[re][ie]>=0?this.groupCtx.prevX[$-1][ie]+C-2*(this.isReversed?C:0):this.groupCtx.prevX[$-1][ie]:this.groupCtx.prevXVal[$-1][ie]>=0&&(te=this.series[re][ie]>=0?this.groupCtx.prevX[$-1][ie]:this.groupCtx.prevX[$-1][ie]-C+2*(this.isReversed?C:0)),u=te}else u=x;k=this.series[re][ie]===null?u:u+this.series[re][ie]/this.invertedYRatio-2*(this.isReversed?this.series[re][ie]/this.invertedYRatio:0);var ce=this.barHelpers.getBarpaths({barYPosition:Q,barHeight:d,x1:u,x2:k,strokeWidth:h,series:this.series,realIndex:c.realIndex,seriesGroup:L,i:re,j:ie,w:q});return this.barHelpers.barBackground({j:ie,i:re,y1:Q,y2:d,elSeries:G}),E+=W,{pathTo:ce.pathTo,pathFrom:ce.pathFrom,goalX:this.barHelpers.getGoalValues("x",x,null,re,ie),barYPosition:Q,x:k,y:E}}},{key:"drawStackedColumnPaths",value:function(i){var u=i.indexes,c=i.x,d=i.y,h=i.xDivision,x=i.barWidth,k=i.zeroH,E=i.groupIndex,N=i.seriesGroup,L=i.elSeries,W=this.w,G=u.i,q=u.j,Q=u.bc;if(W.globals.isXNumeric){var re=W.globals.seriesX[G][q];re||(re=0),c=(re-W.globals.minX)/this.xRatio-x/2,W.globals.seriesGroups.length&&(c=(re-W.globals.minX)/this.xRatio-x/2*W.globals.seriesGroups.length)}for(var ie,C=c+(E!==-1?E*x:0),I=0,$=0;$<this.groupCtx.prevYF.length;$++)I+=isNaN(this.groupCtx.prevYF[$][q])?0:this.groupCtx.prevYF[$][q];var te=G;if(N&&(te=N.indexOf(W.config.series[G].name)),te>0&&!W.globals.isXNumeric||te>0&&W.globals.isXNumeric&&W.globals.seriesX[G-1][q]===W.globals.seriesX[G][q]){var ce,de,we,Ce=Math.min(this.yRatio.length+1,G+1);if(this.groupCtx.prevY[te-1]!==void 0&&this.groupCtx.prevY[te-1].length)for(var Me=1;Me<Ce;Me++){var Be;if(!isNaN((Be=this.groupCtx.prevY[te-Me])===null||Be===void 0?void 0:Be[q])){we=this.groupCtx.prevY[te-Me][q];break}}for(var ze=1;ze<Ce;ze++){var $e,Ze;if((($e=this.groupCtx.prevYVal[te-ze])===null||$e===void 0?void 0:$e[q])<0){de=this.series[G][q]>=0?we-I+2*(this.isReversed?I:0):we;break}if(((Ze=this.groupCtx.prevYVal[te-ze])===null||Ze===void 0?void 0:Ze[q])>=0){de=this.series[G][q]>=0?we:we+I-2*(this.isReversed?I:0);break}}de===void 0&&(de=W.globals.gridHeight),ie=(ce=this.groupCtx.prevYF[0])!==null&&ce!==void 0&&ce.every(function(mt){return mt===0})&&this.groupCtx.prevYF.slice(1,te).every(function(mt){return mt.every(function(Pt){return isNaN(Pt)})})?k:de}else ie=k;d=this.series[G][q]?ie-this.series[G][q]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[G][q]/this.yRatio[this.yaxisIndex]:0):ie;var ct=this.barHelpers.getColumnPaths({barXPosition:C,barWidth:x,y1:ie,y2:d,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:N,realIndex:u.realIndex,i:G,j:q,w:W});return this.barHelpers.barBackground({bc:Q,j:q,i:G,x1:C,x2:x,elSeries:L}),c+=h,{pathTo:ct.pathTo,pathFrom:ct.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,k,G,q),barXPosition:C,x:W.globals.isXNumeric?c-h:c,y:d}}}]),o}(),Un=function(J){T(o,_n);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u,c){var d=this,h=this.w,x=new m(this.ctx),k=h.globals.comboCharts?u:h.config.chart.type,E=new _e(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=h.config.plotOptions.bar.horizontal;var N=new _(this.ctx,h);i=N.getLogSeries(i),this.series=i,this.yRatio=N.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var L=x.group({class:"apexcharts-".concat(k,"-series apexcharts-plot-series")}),W=function(q){d.isBoxPlot=h.config.chart.type==="boxPlot"||h.config.series[q].type==="boxPlot";var Q,re,ie,C,I=void 0,$=void 0,te=[],ce=[],de=h.globals.comboCharts?c[q]:q,we=x.group({class:"apexcharts-series",seriesName:p.escapeString(h.globals.seriesNames[de]),rel:q+1,"data:realIndex":de});d.ctx.series.addCollapsedClassToSeries(we,de),i[q].length>0&&(d.visibleI=d.visibleI+1);var Ce,Me;d.yRatio.length>1&&(d.yaxisIndex=de);var Be=d.barHelpers.initialPositions();$=Be.y,Ce=Be.barHeight,re=Be.yDivision,C=Be.zeroW,I=Be.x,Me=Be.barWidth,Q=Be.xDivision,ie=Be.zeroH,ce.push(I+Me/2);for(var ze=x.group({class:"apexcharts-datalabels","data:realIndex":de}),$e=function(ct){var mt=d.barHelpers.getStrokeWidth(q,ct,de),Pt=null,zt={indexes:{i:q,j:ct,realIndex:de},x:I,y:$,strokeWidth:mt,elSeries:we};Pt=d.isHorizontal?d.drawHorizontalBoxPaths(a(a({},zt),{},{yDivision:re,barHeight:Ce,zeroW:C})):d.drawVerticalBoxPaths(a(a({},zt),{},{xDivision:Q,barWidth:Me,zeroH:ie})),$=Pt.y,I=Pt.x,ct>0&&ce.push(I+Me/2),te.push($),Pt.pathTo.forEach(function(Rt,Wt){var Rr=!d.isBoxPlot&&d.candlestickOptions.wick.useFillColor?Pt.color[Wt]:h.globals.stroke.colors[q],Qn=E.fillPath({seriesNumber:de,dataPointIndex:ct,color:Pt.color[Wt],value:i[q][ct]});d.renderSeries({realIndex:de,pathFill:Qn,lineFill:Rr,j:ct,i:q,pathFrom:Pt.pathFrom,pathTo:Rt,strokeWidth:mt,elSeries:we,x:I,y:$,series:i,barHeight:Ce,barWidth:Me,elDataLabelsWrap:ze,visibleSeries:d.visibleI,type:h.config.chart.type})})},Ze=0;Ze<h.globals.dataPoints;Ze++)$e(Ze);h.globals.seriesXvalues[de]=ce,h.globals.seriesYvalues[de]=te,L.add(we)},G=0;G<i.length;G++)W(G);return L}},{key:"drawVerticalBoxPaths",value:function(i){var u=i.indexes,c=i.x;i.y;var d=i.xDivision,h=i.barWidth,x=i.zeroH,k=i.strokeWidth,E=this.w,N=new m(this.ctx),L=u.i,W=u.j,G=!0,q=E.config.plotOptions.candlestick.colors.upward,Q=E.config.plotOptions.candlestick.colors.downward,re="";this.isBoxPlot&&(re=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var ie=this.yRatio[this.yaxisIndex],C=u.realIndex,I=this.getOHLCValue(C,W),$=x,te=x;I.o>I.c&&(G=!1);var ce=Math.min(I.o,I.c),de=Math.max(I.o,I.c),we=I.m;E.globals.isXNumeric&&(c=(E.globals.seriesX[C][W]-E.globals.minX)/this.xRatio-h/2);var Ce=c+h*this.visibleI;this.series[L][W]===void 0||this.series[L][W]===null?(ce=x,de=x):(ce=x-ce/ie,de=x-de/ie,$=x-I.h/ie,te=x-I.l/ie,we=x-I.m/ie);var Me=N.move(Ce,x),Be=N.move(Ce+h/2,ce);return E.globals.previousPaths.length>0&&(Be=this.getPreviousPath(C,W,!0)),Me=this.isBoxPlot?[N.move(Ce,ce)+N.line(Ce+h/2,ce)+N.line(Ce+h/2,$)+N.line(Ce+h/4,$)+N.line(Ce+h-h/4,$)+N.line(Ce+h/2,$)+N.line(Ce+h/2,ce)+N.line(Ce+h,ce)+N.line(Ce+h,we)+N.line(Ce,we)+N.line(Ce,ce+k/2),N.move(Ce,we)+N.line(Ce+h,we)+N.line(Ce+h,de)+N.line(Ce+h/2,de)+N.line(Ce+h/2,te)+N.line(Ce+h-h/4,te)+N.line(Ce+h/4,te)+N.line(Ce+h/2,te)+N.line(Ce+h/2,de)+N.line(Ce,de)+N.line(Ce,we)+"z"]:[N.move(Ce,de)+N.line(Ce+h/2,de)+N.line(Ce+h/2,$)+N.line(Ce+h/2,de)+N.line(Ce+h,de)+N.line(Ce+h,ce)+N.line(Ce+h/2,ce)+N.line(Ce+h/2,te)+N.line(Ce+h/2,ce)+N.line(Ce,ce)+N.line(Ce,de-k/2)],Be+=N.move(Ce,ce),E.globals.isXNumeric||(c+=d),{pathTo:Me,pathFrom:Be,x:c,y:de,barXPosition:Ce,color:this.isBoxPlot?re:G?[q]:[Q]}}},{key:"drawHorizontalBoxPaths",value:function(i){var u=i.indexes;i.x;var c=i.y,d=i.yDivision,h=i.barHeight,x=i.zeroW,k=i.strokeWidth,E=this.w,N=new m(this.ctx),L=u.i,W=u.j,G=this.boxOptions.colors.lower;this.isBoxPlot&&(G=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var q=this.invertedYRatio,Q=u.realIndex,re=this.getOHLCValue(Q,W),ie=x,C=x,I=Math.min(re.o,re.c),$=Math.max(re.o,re.c),te=re.m;E.globals.isXNumeric&&(c=(E.globals.seriesX[Q][W]-E.globals.minX)/this.invertedXRatio-h/2);var ce=c+h*this.visibleI;this.series[L][W]===void 0||this.series[L][W]===null?(I=x,$=x):(I=x+I/q,$=x+$/q,ie=x+re.h/q,C=x+re.l/q,te=x+re.m/q);var de=N.move(x,ce),we=N.move(I,ce+h/2);return E.globals.previousPaths.length>0&&(we=this.getPreviousPath(Q,W,!0)),de=[N.move(I,ce)+N.line(I,ce+h/2)+N.line(ie,ce+h/2)+N.line(ie,ce+h/2-h/4)+N.line(ie,ce+h/2+h/4)+N.line(ie,ce+h/2)+N.line(I,ce+h/2)+N.line(I,ce+h)+N.line(te,ce+h)+N.line(te,ce)+N.line(I+k/2,ce),N.move(te,ce)+N.line(te,ce+h)+N.line($,ce+h)+N.line($,ce+h/2)+N.line(C,ce+h/2)+N.line(C,ce+h-h/4)+N.line(C,ce+h/4)+N.line(C,ce+h/2)+N.line($,ce+h/2)+N.line($,ce)+N.line(te,ce)+"z"],we+=N.move(I,ce),E.globals.isXNumeric||(c+=d),{pathTo:de,pathFrom:we,x:$,y:c,barYPosition:ce,color:G}}},{key:"getOHLCValue",value:function(i,u){var c=this.w;return{o:this.isBoxPlot?c.globals.seriesCandleH[i][u]:c.globals.seriesCandleO[i][u],h:this.isBoxPlot?c.globals.seriesCandleO[i][u]:c.globals.seriesCandleH[i][u],m:c.globals.seriesCandleM[i][u],l:this.isBoxPlot?c.globals.seriesCandleC[i][u]:c.globals.seriesCandleL[i][u],c:this.isBoxPlot?c.globals.seriesCandleL[i][u]:c.globals.seriesCandleC[i][u]}}}]),o}(),uo=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"checkColorRange",value:function(){var n=this.w,o=!1,i=n.config.plotOptions[n.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(u,c){u.from<=0&&(o=!0)}),o}},{key:"getShadeColor",value:function(n,o,i,u){var c=this.w,d=1,h=c.config.plotOptions[n].shadeIntensity,x=this.determineColor(n,o,i);c.globals.hasNegs||u?d=c.config.plotOptions[n].reverseNegativeShade?x.percent<0?x.percent/100*(1.25*h):(1-x.percent/100)*(1.25*h):x.percent<=0?1-(1+x.percent/100)*h:(1-x.percent/100)*h:(d=1-x.percent/100,n==="treemap"&&(d=(1-x.percent/100)*(1.25*h)));var k=x.color,E=new p;return c.config.plotOptions[n].enableShades&&(k=this.w.config.theme.mode==="dark"?p.hexToRgba(E.shadeColor(-1*d,x.color),c.config.fill.opacity):p.hexToRgba(E.shadeColor(d,x.color),c.config.fill.opacity)),{color:k,colorProps:x}}},{key:"determineColor",value:function(n,o,i){var u=this.w,c=u.globals.series[o][i],d=u.config.plotOptions[n],h=d.colorScale.inverse?i:o;d.distributed&&u.config.chart.type==="treemap"&&(h=i);var x=u.globals.colors[h],k=null,E=Math.min.apply(Math,R(u.globals.series[o])),N=Math.max.apply(Math,R(u.globals.series[o]));d.distributed||n!=="heatmap"||(E=u.globals.minY,N=u.globals.maxY),d.colorScale.min!==void 0&&(E=d.colorScale.min<u.globals.minY?d.colorScale.min:u.globals.minY,N=d.colorScale.max>u.globals.maxY?d.colorScale.max:u.globals.maxY);var L=Math.abs(N)+Math.abs(E),W=100*c/(L===0?L-1e-6:L);return d.colorScale.ranges.length>0&&d.colorScale.ranges.map(function(G,q){if(c>=G.from&&c<=G.to){x=G.color,k=G.foreColor?G.foreColor:null,E=G.from,N=G.to;var Q=Math.abs(N)+Math.abs(E);W=100*c/(Q===0?Q-1e-6:Q)}}),{color:x,foreColor:k,percent:W}}},{key:"calculateDataLabels",value:function(n){var o=n.text,i=n.x,u=n.y,c=n.i,d=n.j,h=n.colorProps,x=n.fontSize,k=this.w.config.dataLabels,E=new m(this.ctx),N=new Le(this.ctx),L=null;if(k.enabled){L=E.group({class:"apexcharts-data-labels"});var W=k.offsetX,G=k.offsetY,q=i+W,Q=u+parseFloat(k.style.fontSize)/3+G;N.plotDataLabelsText({x:q,y:Q,text:o,i:c,j:d,color:h.foreColor,parent:L,fontSize:x,dataLabelsConfig:k})}return L}},{key:"addListeners",value:function(n){var o=new m(this.ctx);n.node.addEventListener("mouseenter",o.pathMouseEnter.bind(this,n)),n.node.addEventListener("mouseleave",o.pathMouseLeave.bind(this,n)),n.node.addEventListener("mousedown",o.pathMouseDown.bind(this,n))}}]),J}(),mr=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w,this.xRatio=o.xRatio,this.yRatio=o.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new uo(n),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return b(J,[{key:"draw",value:function(n){var o=this.w,i=new m(this.ctx),u=i.group({class:"apexcharts-heatmap"});u.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")"));var c=o.globals.gridWidth/o.globals.dataPoints,d=o.globals.gridHeight/o.globals.series.length,h=0,x=!1;this.negRange=this.helpers.checkColorRange();var k=n.slice();o.config.yaxis[0].reversed&&(x=!0,k.reverse());for(var E=x?0:k.length-1;x?E<k.length:E>=0;x?E++:E--){var N=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:p.escapeString(o.globals.seriesNames[E]),rel:E+1,"data:realIndex":E});if(this.ctx.series.addCollapsedClassToSeries(N,E),o.config.chart.dropShadow.enabled){var L=o.config.chart.dropShadow;new g(this.ctx).dropShadow(N,L,E)}for(var W=0,G=o.config.plotOptions.heatmap.shadeIntensity,q=0;q<k[E].length;q++){var Q=this.helpers.getShadeColor(o.config.chart.type,E,q,this.negRange),re=Q.color,ie=Q.colorProps;o.config.fill.type==="image"&&(re=new _e(this.ctx).fillPath({seriesNumber:E,dataPointIndex:q,opacity:o.globals.hasNegs?ie.percent<0?1-(1+ie.percent/100):G+ie.percent/100:ie.percent/100,patternID:p.randomId(),width:o.config.fill.image.width?o.config.fill.image.width:c,height:o.config.fill.image.height?o.config.fill.image.height:d}));var C=this.rectRadius,I=i.drawRect(W,h,c,d,C);if(I.attr({cx:W,cy:h}),I.node.classList.add("apexcharts-heatmap-rect"),N.add(I),I.attr({fill:re,i:E,index:E,j:q,val:k[E][q],"stroke-width":this.strokeWidth,stroke:o.config.plotOptions.heatmap.useFillColorAsStroke?re:o.globals.stroke.colors[0],color:re}),this.helpers.addListeners(I),o.config.chart.animations.enabled&&!o.globals.dataChanged){var $=1;o.globals.resized||($=o.config.chart.animations.speed),this.animateHeatMap(I,W,h,c,d,$)}if(o.globals.dataChanged){var te=1;if(this.dynamicAnim.enabled&&o.globals.shouldAnimate){te=this.dynamicAnim.speed;var ce=o.globals.previousPaths[E]&&o.globals.previousPaths[E][q]&&o.globals.previousPaths[E][q].color;ce||(ce="rgba(255, 255, 255, 0)"),this.animateHeatColor(I,p.isColorHex(ce)?ce:p.rgb2hex(ce),p.isColorHex(re)?re:p.rgb2hex(re),te)}}var de=(0,o.config.dataLabels.formatter)(o.globals.series[E][q],{value:o.globals.series[E][q],seriesIndex:E,dataPointIndex:q,w:o}),we=this.helpers.calculateDataLabels({text:de,x:W+c/2,y:h+d/2,i:E,j:q,colorProps:ie,series:k});we!==null&&N.add(we),W+=c}h+=d,u.add(N)}var Ce=o.globals.yAxisScale[0].result.slice();return o.config.yaxis[0].reversed?Ce.unshift(""):Ce.push(""),o.globals.yAxisScale[0].result=Ce,u}},{key:"animateHeatMap",value:function(n,o,i,u,c,d){var h=new v(this.ctx);h.animateRect(n,{x:o+u/2,y:i+c/2,width:0,height:0},{x:o,y:i,width:u,height:c},d,function(){h.animationCompleted(n)})}},{key:"animateHeatColor",value:function(n,o,i,u){n.attr({fill:o}).animate(u).attr({fill:i})}}]),J}(),co=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawYAxisTexts",value:function(n,o,i,u){var c=this.w,d=c.config.yaxis[0],h=c.globals.yLabelFormatters[0];return new m(this.ctx).drawText({x:n+d.labels.offsetX,y:o+d.labels.offsetY,text:h(u,i),textAnchor:"middle",fontSize:d.labels.style.fontSize,fontFamily:d.labels.style.fontFamily,foreColor:Array.isArray(d.labels.style.colors)?d.labels.style.colors[i]:d.labels.style.colors})}}]),J}(),ma=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=o.globals.stroke.colors!==void 0?o.globals.stroke.colors:o.globals.colors,this.defaultSize=Math.min(o.globals.gridWidth,o.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=o.globals.gridWidth/2,o.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(o.config.plotOptions.pie.endAngle-o.config.plotOptions.pie.startAngle),this.initialAngle=o.config.plotOptions.pie.startAngle%this.fullAngle,o.globals.radialSize=this.defaultSize/2.05-o.config.stroke.width-(o.config.chart.sparkline.enabled?0:o.config.chart.dropShadow.blur),this.donutSize=o.globals.radialSize*parseInt(o.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new m(this.ctx);if(this.ret=u.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var c=0,d=0;d<n.length;d++)c+=p.negToZero(n[d]);var h=[],x=u.group();c===0&&(c=1e-5),n.forEach(function(ce){o.maxY=Math.max(o.maxY,ce)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var k=0;k<n.length;k++){var E=this.fullAngle*p.negToZero(n[k])/c;h.push(E),this.chartType==="polarArea"?(h[k]=this.fullAngle/n.length,this.sliceSizes.push(i.globals.radialSize*n[k]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var N,L=0,W=0;W<i.globals.previousPaths.length;W++)L+=p.negToZero(i.globals.previousPaths[W]);for(var G=0;G<i.globals.previousPaths.length;G++)N=this.fullAngle*p.negToZero(i.globals.previousPaths[G])/L,this.prevSectorAngleArr.push(N)}this.donutSize<0&&(this.donutSize=0);var q=i.config.plotOptions.pie.customScale,Q=i.globals.gridWidth/2,re=i.globals.gridHeight/2,ie=Q-i.globals.gridWidth/2*q,C=re-i.globals.gridHeight/2*q;if(this.chartType==="donut"){var I=u.drawCircle(this.donutSize);I.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),x.add(I)}var $=this.drawArcs(h,n);if(this.sliceLabels.forEach(function(ce){$.add(ce)}),x.attr({transform:"translate(".concat(ie,", ").concat(C,") scale(").concat(q,")")}),x.add($),this.ret.add(x),this.donutDataLabels.show){var te=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:ie,translateY:C});this.ret.add(te)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(n,o){var i=this.w,u=new g(this.ctx),c=new m(this.ctx),d=new _e(this.ctx),h=c.group({class:"apexcharts-slices"}),x=this.initialAngle,k=this.initialAngle,E=this.initialAngle,N=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var L=0;L<n.length;L++){var W=c.group({class:"apexcharts-series apexcharts-pie-series",seriesName:p.escapeString(i.globals.seriesNames[L]),rel:L+1,"data:realIndex":L});h.add(W),k=N,E=(x=E)+n[L],N=k+this.prevSectorAngleArr[L];var G=E<x?this.fullAngle+E-x:E-x,q=d.fillPath({seriesNumber:L,size:this.sliceSizes[L],value:o[L]}),Q=this.getChangedPath(k,N),re=c.drawPath({d:Q,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[L]:this.lineColorArr,strokeWidth:0,fill:q,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(L)});if(re.attr({index:0,j:L}),u.setSelectionFilter(re,0,L),i.config.chart.dropShadow.enabled){var ie=i.config.chart.dropShadow;u.dropShadow(re,ie,L)}this.addListeners(re,this.donutDataLabels),m.setAttrs(re.node,{"data:angle":G,"data:startAngle":x,"data:strokeWidth":this.strokeWidth,"data:value":o[L]});var C={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?C=p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(x+G/2)%this.fullAngle):this.chartType==="donut"&&(C=p.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(x+G/2)%this.fullAngle)),W.add(re);var I=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((I=G/this.fullAngle*i.config.chart.animations.speed)===0&&(I=1),this.animDur=I+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(re,{size:this.sliceSizes[L],endAngle:E,startAngle:x,prevStartAngle:k,prevEndAngle:N,animateStartingPos:!0,i:L,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(re,{size:this.sliceSizes[L],endAngle:E,startAngle:x,i:L,totalItems:n.length-1,animBeginArr:this.animBeginArr,dur:I}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&re.click(this.pieClicked.bind(this,L)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(L)>-1&&this.pieClicked(L),i.config.dataLabels.enabled){var $=C.x,te=C.y,ce=100*G/this.fullAngle+"%";if(G!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<n[L]){var de=i.config.dataLabels.formatter;de!==void 0&&(ce=de(i.globals.seriesPercent[L][0],{seriesIndex:L,w:i}));var we=i.globals.dataLabels.style.colors[L],Ce=c.group({class:"apexcharts-datalabels"}),Me=c.drawText({x:$,y:te,text:ce,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:we});if(Ce.add(Me),i.config.dataLabels.dropShadow.enabled){var Be=i.config.dataLabels.dropShadow;u.dropShadow(Me,Be)}Me.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(Me.node.classList.add("apexcharts-pie-label-delay"),Me.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(Ce)}}}return h}},{key:"addListeners",value:function(n,o){var i=new m(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,n)),n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,n)),n.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,n.node,o)),n.node.addEventListener("mousedown",i.pathMouseDown.bind(this,n)),this.donutDataLabels.total.showAlways||(n.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,n.node,o)),n.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,n.node,o)))}},{key:"animatePaths",value:function(n,o){var i=this.w,u=o.endAngle<o.startAngle?this.fullAngle+o.endAngle-o.startAngle:o.endAngle-o.startAngle,c=u,d=o.startAngle,h=o.startAngle;o.prevStartAngle!==void 0&&o.prevEndAngle!==void 0&&(d=o.prevEndAngle,c=o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle),o.i===i.config.series.length-1&&(u+h>this.fullAngle?o.endAngle=o.endAngle-(u+h):u+h<this.fullAngle&&(o.endAngle=o.endAngle+(this.fullAngle-(u+h)))),u===this.fullAngle&&(u=this.fullAngle-.01),this.animateArc(n,d,h,u,c,o)}},{key:"animateArc",value:function(n,o,i,u,c,d){var h,x=this,k=this.w,E=new v(this.ctx),N=d.size;(isNaN(o)||isNaN(c))&&(o=i,c=u,d.dur=0);var L=u,W=i,G=o<i?this.fullAngle+o-i:o-i;k.globals.dataChanged&&d.shouldSetPrevPaths&&d.prevEndAngle&&(h=x.getPiePath({me:x,startAngle:d.prevStartAngle,angle:d.prevEndAngle<d.prevStartAngle?this.fullAngle+d.prevEndAngle-d.prevStartAngle:d.prevEndAngle-d.prevStartAngle,size:N}),n.attr({d:h})),d.dur!==0?n.animate(d.dur,k.globals.easing,d.animBeginArr[d.i]).afterAll(function(){x.chartType!=="pie"&&x.chartType!=="donut"&&x.chartType!=="polarArea"||this.animate(k.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":x.strokeWidth}),d.i===k.config.series.length-1&&E.animationCompleted(n)}).during(function(q){L=G+(u-G)*q,d.animateStartingPos&&(L=c+(u-c)*q,W=o-c+(i-(o-c))*q),h=x.getPiePath({me:x,startAngle:W,angle:L,size:N}),n.node.setAttribute("data:pathOrig",h),n.attr({d:h})}):(h=x.getPiePath({me:x,startAngle:W,angle:u,size:N}),d.isTrack||(k.globals.animationEnded=!0),n.node.setAttribute("data:pathOrig",h),n.attr({d:h,"stroke-width":x.strokeWidth}))}},{key:"pieClicked",value:function(n){var o,i=this.w,u=this,c=u.sliceSizes[n]+(i.config.plotOptions.pie.expandOnClick?4:0),d=i.globals.dom.Paper.select(".apexcharts-".concat(u.chartType.toLowerCase(),"-slice-").concat(n)).members[0];if(d.attr("data:pieClicked")!=="true"){var h=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(h,function(N){N.setAttribute("data:pieClicked","false");var L=N.getAttribute("data:pathOrig");L&&N.setAttribute("d",L)}),d.attr("data:pieClicked","true");var x=parseInt(d.attr("data:startAngle"),10),k=parseInt(d.attr("data:angle"),10);o=u.getPiePath({me:u,startAngle:x,angle:k,size:c}),k!==360&&d.plot(o)}else{d.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(d.node,this.donutDataLabels);var E=d.attr("data:pathOrig");d.attr({d:E})}}},{key:"getChangedPath",value:function(n,o){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:n,angle:o-n,size:this.size})),i}},{key:"getPiePath",value:function(n){var o=n.me,i=n.startAngle,u=n.angle,c=n.size,d=i,h=Math.PI*(d-90)/180,x=u+i;Math.ceil(x)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(x=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(x)>this.fullAngle&&(x-=this.fullAngle);var k=Math.PI*(x-90)/180,E=o.centerX+c*Math.cos(h),N=o.centerY+c*Math.sin(h),L=o.centerX+c*Math.cos(k),W=o.centerY+c*Math.sin(k),G=p.polarToCartesian(o.centerX,o.centerY,o.donutSize,x),q=p.polarToCartesian(o.centerX,o.centerY,o.donutSize,d),Q=u>180?1:0,re=["M",E,N,"A",c,c,0,Q,1,L,W];return o.chartType==="donut"?[].concat(re,["L",G.x,G.y,"A",o.donutSize,o.donutSize,0,Q,0,q.x,q.y,"L",E,N,"z"]).join(" "):o.chartType==="pie"||o.chartType==="polarArea"?[].concat(re,["L",o.centerX,o.centerY,"L",E,N]).join(" "):[].concat(re).join(" ")}},{key:"drawPolarElements",value:function(n){var o=this.w,i=new Ke(this.ctx),u=new m(this.ctx),c=new co(this.ctx),d=u.group(),h=u.group(),x=i.niceScale(0,Math.ceil(this.maxY),o.config.yaxis[0].tickAmount,0,!0),k=x.result.reverse(),E=x.result.length;this.maxY=x.niceMax;for(var N=o.globals.radialSize,L=N/(E-1),W=0;W<E-1;W++){var G=u.drawCircle(N);if(G.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":o.config.plotOptions.polarArea.rings.strokeWidth,stroke:o.config.plotOptions.polarArea.rings.strokeColor}),o.config.yaxis[0].show){var q=c.drawYAxisTexts(this.centerX,this.centerY-N+parseInt(o.config.yaxis[0].labels.style.fontSize,10)/2,W,k[W]);h.add(q)}d.add(G),N-=L}this.drawSpokes(n),n.add(d),n.add(h)}},{key:"renderInnerDataLabels",value:function(n,o){var i=this.w,u=new m(this.ctx),c=u.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(o.translateX?o.translateX:0,", ").concat(o.translateY?o.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),d=n.total.show;c.node.style.opacity=o.opacity;var h,x,k=o.centerX,E=o.centerY;h=n.name.color===void 0?i.globals.colors[0]:n.name.color;var N=n.name.fontSize,L=n.name.fontFamily,W=n.name.fontWeight;x=n.value.color===void 0?i.config.chart.foreColor:n.value.color;var G=n.value.formatter,q="",Q="";if(d?(h=n.total.color,N=n.total.fontSize,L=n.total.fontFamily,W=n.total.fontWeight,Q=n.total.label,q=n.total.formatter(i)):i.globals.series.length===1&&(q=G(i.globals.series[0],i),Q=i.globals.seriesNames[0]),Q&&(Q=n.name.formatter(Q,n.total.show,i)),n.name.show){var re=u.drawText({x:k,y:E+parseFloat(n.name.offsetY),text:Q,textAnchor:"middle",foreColor:h,fontSize:N,fontWeight:W,fontFamily:L});re.node.classList.add("apexcharts-datalabel-label"),c.add(re)}if(n.value.show){var ie=n.name.show?parseFloat(n.value.offsetY)+16:n.value.offsetY,C=u.drawText({x:k,y:E+ie,text:q,textAnchor:"middle",foreColor:x,fontWeight:n.value.fontWeight,fontSize:n.value.fontSize,fontFamily:n.value.fontFamily});C.node.classList.add("apexcharts-datalabel-value"),c.add(C)}return c}},{key:"printInnerLabels",value:function(n,o,i,u){var c,d=this.w;u?c=n.name.color===void 0?d.globals.colors[parseInt(u.parentNode.getAttribute("rel"),10)-1]:n.name.color:d.globals.series.length>1&&n.total.show&&(c=n.total.color);var h=d.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),x=d.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,n.value.formatter)(i,d),u||typeof n.total.formatter!="function"||(i=n.total.formatter(d));var k=o===n.total.label;o=n.name.formatter(o,k,d),h!==null&&(h.textContent=o),x!==null&&(x.textContent=i),h!==null&&(h.style.fill=c)}},{key:"printDataLabelsInner",value:function(n,o){var i=this.w,u=n.getAttribute("data:value"),c=i.globals.seriesNames[parseInt(n.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(o,c,u,n);var d=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");d!==null&&(d.style.opacity=1)}},{key:"drawSpokes",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=i.config.plotOptions.polarArea.spokes;if(c.strokeWidth!==0){for(var d=[],h=360/i.globals.series.length,x=0;x<i.globals.series.length;x++)d.push(p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+h*x));d.forEach(function(k,E){var N=u.drawLine(k.x,k.y,o.centerX,o.centerY,Array.isArray(c.connectorColors)?c.connectorColors[E]:c.connectorColors);n.add(N)})}}},{key:"revertDataLabelsInner",value:function(n,o,i){var u=this,c=this.w,d=c.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),h=!1,x=c.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),k=function(L){var W=L.makeSliceOut,G=L.printLabel;Array.prototype.forEach.call(x,function(q){q.getAttribute("data:pieClicked")==="true"&&(W&&(h=!0),G&&u.printDataLabelsInner(q,o))})};if(k({makeSliceOut:!0,printLabel:!1}),o.total.show&&c.globals.series.length>1)h&&!o.total.showAlways?k({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(o,o.total.label,o.total.formatter(c));else if(k({makeSliceOut:!1,printLabel:!0}),!h)if(c.globals.selectedDataPoints.length&&c.globals.series.length>1)if(c.globals.selectedDataPoints[0].length>0){var E=c.globals.selectedDataPoints[0],N=c.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(E));this.printDataLabelsInner(N,o)}else d&&c.globals.selectedDataPoints.length&&c.globals.selectedDataPoints[0].length===0&&(d.style.opacity=0);else d&&c.globals.series.length>1&&(d.style.opacity=0)}}]),J}(),ni=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var o=this.w;this.graphics=new m(this.ctx),this.lineColorArr=o.globals.stroke.colors!==void 0?o.globals.stroke.colors:o.globals.colors,this.defaultSize=o.globals.svgHeight<o.globals.svgWidth?o.globals.gridHeight+1.5*o.globals.goldenPadding:o.globals.gridWidth,this.isLog=o.config.yaxis[0].logarithmic,this.coreUtils=new _(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(o.globals.maxY,0):o.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):o.globals.minY,this.polygons=o.config.plotOptions.radar.polygons,this.strokeWidth=o.config.stroke.show?o.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-o.config.chart.dropShadow.blur,o.config.xaxis.labels.show&&(this.size=this.size-o.globals.xAxisLabelsWidth/1.75),o.config.plotOptions.radar.size!==void 0&&(this.size=o.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new _e(this.ctx),c=[],d=new Le(this.ctx);n.length&&(this.dataPointsLen=n[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var h=i.globals.gridWidth/2,x=i.globals.gridHeight/2,k=h+i.config.plotOptions.radar.offsetX,E=x+i.config.plotOptions.radar.offsetY,N=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(k||0,", ").concat(E||0,")")}),L=[],W=null,G=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),n.forEach(function(Q,re){var ie=Q.length===i.globals.dataPoints,C=o.graphics.group().attr({class:"apexcharts-series","data:longestSeries":ie,seriesName:p.escapeString(i.globals.seriesNames[re]),rel:re+1,"data:realIndex":re});o.dataRadiusOfPercent[re]=[],o.dataRadius[re]=[],o.angleArr[re]=[],Q.forEach(function(ze,$e){var Ze=Math.abs(o.maxValue-o.minValue);ze+=Math.abs(o.minValue),o.isLog&&(ze=o.coreUtils.getLogVal(ze,0)),o.dataRadiusOfPercent[re][$e]=ze/Ze,o.dataRadius[re][$e]=o.dataRadiusOfPercent[re][$e]*o.size,o.angleArr[re][$e]=$e*o.disAngle}),L=o.getDataPointsPos(o.dataRadius[re],o.angleArr[re]);var I=o.createPaths(L,{x:0,y:0});W=o.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),G=o.graphics.group({class:"apexcharts-datalabels","data:realIndex":re}),i.globals.delayedElements.push({el:W.node,index:re});var $={i:re,realIndex:re,animationDelay:re,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[re],strokeLineCap:i.config.stroke.lineCap},te=null;i.globals.previousPaths.length>0&&(te=o.getPreviousPath(re));for(var ce=0;ce<I.linePathsTo.length;ce++){var de=o.graphics.renderPaths(a(a({},$),{},{pathFrom:te===null?I.linePathsFrom[ce]:te,pathTo:I.linePathsTo[ce],strokeWidth:Array.isArray(o.strokeWidth)?o.strokeWidth[re]:o.strokeWidth,fill:"none",drawShadow:!1}));C.add(de);var we=u.fillPath({seriesNumber:re}),Ce=o.graphics.renderPaths(a(a({},$),{},{pathFrom:te===null?I.areaPathsFrom[ce]:te,pathTo:I.areaPathsTo[ce],strokeWidth:0,fill:we,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var Me=new g(o.ctx),Be=i.config.chart.dropShadow;Me.dropShadow(Ce,Object.assign({},Be,{noUserSpaceOnUse:!0}),re)}C.add(Ce)}Q.forEach(function(ze,$e){var Ze=new Ee(o.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:re,dataPointIndex:$e}),ct=o.graphics.drawMarker(L[$e].x,L[$e].y,Ze);ct.attr("rel",$e),ct.attr("j",$e),ct.attr("index",re),ct.node.setAttribute("default-marker-size",Ze.pSize);var mt=o.graphics.group({class:"apexcharts-series-markers"});mt&&mt.add(ct),W.add(mt),C.add(W);var Pt=i.config.dataLabels;if(Pt.enabled){var zt=Pt.formatter(i.globals.series[re][$e],{seriesIndex:re,dataPointIndex:$e,w:i});d.plotDataLabelsText({x:L[$e].x,y:L[$e].y,text:zt,textAnchor:"middle",i:re,j:re,parent:G,offsetCorrection:!1,dataLabelsConfig:a({},Pt)})}C.add(G)}),c.push(C)}),this.drawPolygons({parent:N}),i.config.xaxis.labels.show){var q=this.drawXAxisTexts();N.add(q)}return c.forEach(function(Q){N.add(Q)}),N.add(this.yaxisLabels),N}},{key:"drawPolygons",value:function(n){for(var o=this,i=this.w,u=n.parent,c=new co(this.ctx),d=i.globals.yAxisScale[0].result.reverse(),h=d.length,x=[],k=this.size/(h-1),E=0;E<h;E++)x[E]=k*E;x.reverse();var N=[],L=[];x.forEach(function(W,G){var q=p.getPolygonPos(W,o.dataPointsLen),Q="";q.forEach(function(re,ie){if(G===0){var C=o.graphics.drawLine(re.x,re.y,0,0,Array.isArray(o.polygons.connectorColors)?o.polygons.connectorColors[ie]:o.polygons.connectorColors);L.push(C)}ie===0&&o.yaxisLabelsTextsPos.push({x:re.x,y:re.y}),Q+=re.x+","+re.y+" "}),N.push(Q)}),N.forEach(function(W,G){var q=o.polygons.strokeColors,Q=o.polygons.strokeWidth,re=o.graphics.drawPolygon(W,Array.isArray(q)?q[G]:q,Array.isArray(Q)?Q[G]:Q,i.globals.radarPolygons.fill.colors[G]);u.add(re)}),L.forEach(function(W){u.add(W)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(W,G){var q=c.drawYAxisTexts(W.x,W.y,G,d[G]);o.yaxisLabels.add(q)})}},{key:"drawXAxisTexts",value:function(){var n=this,o=this.w,i=o.config.xaxis.labels,u=this.graphics.group({class:"apexcharts-xaxis"}),c=p.getPolygonPos(this.size,this.dataPointsLen);return o.globals.labels.forEach(function(d,h){var x=o.config.xaxis.labels.formatter,k=new Le(n.ctx);if(c[h]){var E=n.getTextPos(c[h],n.size),N=x(d,{seriesIndex:-1,dataPointIndex:h,w:o});k.plotDataLabelsText({x:E.newX,y:E.newY,text:N,textAnchor:E.textAnchor,i:h,j:h,parent:u,color:Array.isArray(i.style.colors)&&i.style.colors[h]?i.style.colors[h]:"#a8a8a8",dataLabelsConfig:a({textAnchor:E.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),u}},{key:"createPaths",value:function(n,o){var i=this,u=[],c=[],d=[],h=[];if(n.length){c=[this.graphics.move(o.x,o.y)],h=[this.graphics.move(o.x,o.y)];var x=this.graphics.move(n[0].x,n[0].y),k=this.graphics.move(n[0].x,n[0].y);n.forEach(function(E,N){x+=i.graphics.line(E.x,E.y),k+=i.graphics.line(E.x,E.y),N===n.length-1&&(x+="Z",k+="Z")}),u.push(x),d.push(k)}return{linePathsFrom:c,linePathsTo:u,areaPathsFrom:h,areaPathsTo:d}}},{key:"getTextPos",value:function(n,o){var i="middle",u=n.x,c=n.y;return Math.abs(n.x)>=10?n.x>0?(i="start",u+=10):n.x<0&&(i="end",u-=10):i="middle",Math.abs(n.y)>=o-10&&(n.y<0?c-=10:n.y>0&&(c+=10)),{textAnchor:i,newX:u,newY:c}}},{key:"getPreviousPath",value:function(n){for(var o=this.w,i=null,u=0;u<o.globals.previousPaths.length;u++){var c=o.globals.previousPaths[u];c.paths.length>0&&parseInt(c.realIndex,10)===parseInt(n,10)&&o.globals.previousPaths[u].paths[0]!==void 0&&(i=o.globals.previousPaths[u].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;n=n||[],o=o||[];for(var u=[],c=0;c<i;c++){var d={};d.x=n[c]*Math.sin(o[c]),d.y=-n[c]*Math.cos(o[c]),u.push(d)}return u}}]),J}(),$n=function(J){T(o,ma);var n=z(o);function o(i){var u;l(this,o),(u=n.call(this,i)).ctx=i,u.w=i.w,u.animBeginArr=[0],u.animDur=0;var c=u.w;return u.startAngle=c.config.plotOptions.radialBar.startAngle,u.endAngle=c.config.plotOptions.radialBar.endAngle,u.totalAngle=Math.abs(c.config.plotOptions.radialBar.endAngle-c.config.plotOptions.radialBar.startAngle),u.trackStartAngle=c.config.plotOptions.radialBar.track.startAngle,u.trackEndAngle=c.config.plotOptions.radialBar.track.endAngle,u.donutDataLabels=u.w.config.plotOptions.radialBar.dataLabels,u.radialDataLabels=u.donutDataLabels,u.trackStartAngle||(u.trackStartAngle=u.startAngle),u.trackEndAngle||(u.trackEndAngle=u.endAngle),u.endAngle===360&&(u.endAngle=359.99),u.margin=parseInt(c.config.plotOptions.radialBar.track.margin,10),u}return b(o,[{key:"draw",value:function(i){var u=this.w,c=new m(this.ctx),d=c.group({class:"apexcharts-radialbar"});if(u.globals.noData)return d;var h=c.group(),x=this.defaultSize/2,k=u.globals.gridWidth/2,E=this.defaultSize/2.05;u.config.chart.sparkline.enabled||(E=E-u.config.stroke.width-u.config.chart.dropShadow.blur);var N=u.globals.fill.colors;if(u.config.plotOptions.radialBar.track.show){var L=this.drawTracks({size:E,centerX:k,centerY:x,colorArr:N,series:i});h.add(L)}var W=this.drawArcs({size:E,centerX:k,centerY:x,colorArr:N,series:i}),G=360;u.config.plotOptions.radialBar.startAngle<0&&(G=this.totalAngle);var q=(360-G)/360;if(u.globals.radialSize=E-E*q,this.radialDataLabels.value.show){var Q=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);u.globals.radialSize+=Q*q}return h.add(W.g),u.config.plotOptions.radialBar.hollow.position==="front"&&(W.g.add(W.elHollow),W.dataLabels&&W.g.add(W.dataLabels)),d.add(h),d}},{key:"drawTracks",value:function(i){var u=this.w,c=new m(this.ctx),d=c.group({class:"apexcharts-tracks"}),h=new g(this.ctx),x=new _e(this.ctx),k=this.getStrokeWidth(i);i.size=i.size-k/2;for(var E=0;E<i.series.length;E++){var N=c.group({class:"apexcharts-radialbar-track apexcharts-track"});d.add(N),N.attr({rel:E+1}),i.size=i.size-k-this.margin;var L=u.config.plotOptions.radialBar.track,W=x.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(L.background)?L.background[E]:L.background,solid:!0}),G=this.trackStartAngle,q=this.trackEndAngle;Math.abs(q)+Math.abs(G)>=360&&(q=360-Math.abs(this.startAngle)-.1);var Q=c.drawPath({d:"",stroke:W,strokeWidth:k*parseInt(L.strokeWidth,10)/100,fill:"none",strokeOpacity:L.opacity,classes:"apexcharts-radialbar-area"});if(L.dropShadow.enabled){var re=L.dropShadow;h.dropShadow(Q,re)}N.add(Q),Q.attr("id","apexcharts-radialbarTrack-"+E),this.animatePaths(Q,{centerX:i.centerX,centerY:i.centerY,endAngle:q,startAngle:G,size:i.size,i:E,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:u.globals.easing})}return d}},{key:"drawArcs",value:function(i){var u=this.w,c=new m(this.ctx),d=new _e(this.ctx),h=new g(this.ctx),x=c.group(),k=this.getStrokeWidth(i);i.size=i.size-k/2;var E=u.config.plotOptions.radialBar.hollow.background,N=i.size-k*i.series.length-this.margin*i.series.length-k*parseInt(u.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,L=N-u.config.plotOptions.radialBar.hollow.margin;u.config.plotOptions.radialBar.hollow.image!==void 0&&(E=this.drawHollowImage(i,x,N,E));var W=this.drawHollow({size:L,centerX:i.centerX,centerY:i.centerY,fill:E||"transparent"});if(u.config.plotOptions.radialBar.hollow.dropShadow.enabled){var G=u.config.plotOptions.radialBar.hollow.dropShadow;h.dropShadow(W,G)}var q=1;!this.radialDataLabels.total.show&&u.globals.series.length>1&&(q=0);var Q=null;this.radialDataLabels.show&&(Q=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:N,centerX:i.centerX,centerY:i.centerY,opacity:q})),u.config.plotOptions.radialBar.hollow.position==="back"&&(x.add(W),Q&&x.add(Q));var re=!1;u.config.plotOptions.radialBar.inverseOrder&&(re=!0);for(var ie=re?i.series.length-1:0;re?ie>=0:ie<i.series.length;re?ie--:ie++){var C=c.group({class:"apexcharts-series apexcharts-radial-series",seriesName:p.escapeString(u.globals.seriesNames[ie])});x.add(C),C.attr({rel:ie+1,"data:realIndex":ie}),this.ctx.series.addCollapsedClassToSeries(C,ie),i.size=i.size-k-this.margin;var I=d.fillPath({seriesNumber:ie,size:i.size,value:i.series[ie]}),$=this.startAngle,te=void 0,ce=p.negToZero(i.series[ie]>100?100:i.series[ie])/100,de=Math.round(this.totalAngle*ce)+this.startAngle,we=void 0;u.globals.dataChanged&&(te=this.startAngle,we=Math.round(this.totalAngle*p.negToZero(u.globals.previousPaths[ie])/100)+te),Math.abs(de)+Math.abs($)>=360&&(de-=.01),Math.abs(we)+Math.abs(te)>=360&&(we-=.01);var Ce=de-$,Me=Array.isArray(u.config.stroke.dashArray)?u.config.stroke.dashArray[ie]:u.config.stroke.dashArray,Be=c.drawPath({d:"",stroke:I,strokeWidth:k,fill:"none",fillOpacity:u.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+ie,strokeDashArray:Me});if(m.setAttrs(Be.node,{"data:angle":Ce,"data:value":i.series[ie]}),u.config.chart.dropShadow.enabled){var ze=u.config.chart.dropShadow;h.dropShadow(Be,ze,ie)}h.setSelectionFilter(Be,0,ie),this.addListeners(Be,this.radialDataLabels),C.add(Be),Be.attr({index:0,j:ie});var $e=0;!this.initialAnim||u.globals.resized||u.globals.dataChanged||($e=u.config.chart.animations.speed),u.globals.dataChanged&&($e=u.config.chart.animations.dynamicAnimation.speed),this.animDur=$e/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(Be,{centerX:i.centerX,centerY:i.centerY,endAngle:de,startAngle:$,prevEndAngle:we,prevStartAngle:te,size:i.size,i:ie,totalItems:2,animBeginArr:this.animBeginArr,dur:$e,shouldSetPrevPaths:!0,easing:u.globals.easing})}return{g:x,elHollow:W,dataLabels:Q}}},{key:"drawHollow",value:function(i){var u=new m(this.ctx).drawCircle(2*i.size);return u.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),u}},{key:"drawHollowImage",value:function(i,u,c,d){var h=this.w,x=new _e(this.ctx),k=p.randomId(),E=h.config.plotOptions.radialBar.hollow.image;if(h.config.plotOptions.radialBar.hollow.imageClipped)x.clippedImgArea({width:c,height:c,image:E,patternID:"pattern".concat(h.globals.cuid).concat(k)}),d="url(#pattern".concat(h.globals.cuid).concat(k,")");else{var N=h.config.plotOptions.radialBar.hollow.imageWidth,L=h.config.plotOptions.radialBar.hollow.imageHeight;if(N===void 0&&L===void 0){var W=h.globals.dom.Paper.image(E).loaded(function(q){this.move(i.centerX-q.width/2+h.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-q.height/2+h.config.plotOptions.radialBar.hollow.imageOffsetY)});u.add(W)}else{var G=h.globals.dom.Paper.image(E).loaded(function(q){this.move(i.centerX-N/2+h.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-L/2+h.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(N,L)});u.add(G)}}return d}},{key:"getStrokeWidth",value:function(i){var u=this.w;return i.size*(100-parseInt(u.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}}]),o}(),ya=function(J){T(o,_n);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u){var c=this.w,d=new m(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=c.globals.seriesRangeStart,this.seriesRangeEnd=c.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var h=d.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),x=0;x<i.length;x++){var k,E,N,L,W=void 0,G=void 0,q=c.globals.comboCharts?u[x]:x,Q=d.group({class:"apexcharts-series",seriesName:p.escapeString(c.globals.seriesNames[q]),rel:x+1,"data:realIndex":q});this.ctx.series.addCollapsedClassToSeries(Q,q),i[x].length>0&&(this.visibleI=this.visibleI+1);var re=0,ie=0;this.yRatio.length>1&&(this.yaxisIndex=q);var C=this.barHelpers.initialPositions();G=C.y,L=C.zeroW,W=C.x,ie=C.barWidth,re=C.barHeight,k=C.xDivision,E=C.yDivision,N=C.zeroH;for(var I=d.group({class:"apexcharts-datalabels","data:realIndex":q}),$=d.group({class:"apexcharts-rangebar-goals-markers"}),te=0;te<c.globals.dataPoints;te++){var ce,de=this.barHelpers.getStrokeWidth(x,te,q),we=this.seriesRangeStart[x][te],Ce=this.seriesRangeEnd[x][te],Me=null,Be=null,ze=null,$e={x:W,y:G,strokeWidth:de,elSeries:Q},Ze=this.seriesLen;if(c.config.plotOptions.bar.rangeBarGroupRows&&(Ze=1),c.config.series[x].data[te]===void 0)break;if(this.isHorizontal){ze=G+re*this.visibleI;var ct=(E-re*Ze)/2;if(c.config.series[x].data[te].x){var mt=this.detectOverlappingBars({i:x,j:te,barYPosition:ze,srty:ct,barHeight:re,yDivision:E,initPositions:C});re=mt.barHeight,ze=mt.barYPosition}ie=(Me=this.drawRangeBarPaths(a({indexes:{i:x,j:te,realIndex:q},barHeight:re,barYPosition:ze,zeroW:L,yDivision:E,y1:we,y2:Ce},$e))).barWidth}else{c.globals.isXNumeric&&(W=(c.globals.seriesX[x][te]-c.globals.minX)/this.xRatio-ie/2),Be=W+ie*this.visibleI;var Pt=(k-ie*Ze)/2;if(c.config.series[x].data[te].x){var zt=this.detectOverlappingBars({i:x,j:te,barXPosition:Be,srtx:Pt,barWidth:ie,xDivision:k,initPositions:C});ie=zt.barWidth,Be=zt.barXPosition}re=(Me=this.drawRangeColumnPaths(a({indexes:{i:x,j:te,realIndex:q},barWidth:ie,barXPosition:Be,zeroH:N,xDivision:k},$e))).barHeight}var Rt=this.barHelpers.drawGoalLine({barXPosition:Me.barXPosition,barYPosition:ze,goalX:Me.goalX,goalY:Me.goalY,barHeight:re,barWidth:ie});Rt&&$.add(Rt),G=Me.y,W=Me.x;var Wt=this.barHelpers.getPathFillColor(i,x,te,q),Rr=c.globals.stroke.colors[q];this.renderSeries((S(ce={realIndex:q,pathFill:Wt,lineFill:Rr,j:te,i:x,x:W,y:G,y1:we,y2:Ce,pathFrom:Me.pathFrom,pathTo:Me.pathTo,strokeWidth:de,elSeries:Q,series:i,barHeight:re,barWidth:ie,barXPosition:Be,barYPosition:ze},"barWidth",ie),S(ce,"elDataLabelsWrap",I),S(ce,"elGoalsMarkers",$),S(ce,"visibleSeries",this.visibleI),S(ce,"type","rangebar"),ce))}h.add(Q)}return h}},{key:"detectOverlappingBars",value:function(i){var u=i.i,c=i.j,d=i.barYPosition,h=i.barXPosition,x=i.srty,k=i.srtx,E=i.barHeight,N=i.barWidth,L=i.yDivision,W=i.xDivision,G=i.initPositions,q=this.w,Q=[],re=q.config.series[u].data[c].rangeName,ie=q.config.series[u].data[c].x,C=Array.isArray(ie)?ie.join(" "):ie,I=q.globals.labels.map(function(te){return Array.isArray(te)?te.join(" "):te}).indexOf(C),$=q.globals.seriesRange[u].findIndex(function(te){return te.x===C&&te.overlaps.length>0});return this.isHorizontal?(d=q.config.plotOptions.bar.rangeBarGroupRows?x+L*I:x+E*this.visibleI+L*I,$>-1&&!q.config.plotOptions.bar.rangeBarOverlap&&(Q=q.globals.seriesRange[u][$].overlaps).indexOf(re)>-1&&(d=(E=G.barHeight/Q.length)*this.visibleI+L*(100-parseInt(this.barOptions.barHeight,10))/100/2+E*(this.visibleI+Q.indexOf(re))+L*I)):(I>-1&&(h=q.config.plotOptions.bar.rangeBarGroupRows?k+W*I:k+N*this.visibleI+W*I),$>-1&&!q.config.plotOptions.bar.rangeBarOverlap&&(Q=q.globals.seriesRange[u][$].overlaps).indexOf(re)>-1&&(h=(N=G.barWidth/Q.length)*this.visibleI+W*(100-parseInt(this.barOptions.barWidth,10))/100/2+N*(this.visibleI+Q.indexOf(re))+W*I)),{barYPosition:d,barXPosition:h,barHeight:E,barWidth:N}}},{key:"drawRangeColumnPaths",value:function(i){var u=i.indexes,c=i.x,d=i.xDivision,h=i.barWidth,x=i.barXPosition,k=i.zeroH,E=this.w,N=u.i,L=u.j,W=this.yRatio[this.yaxisIndex],G=u.realIndex,q=this.getRangeValue(G,L),Q=Math.min(q.start,q.end),re=Math.max(q.start,q.end);this.series[N][L]===void 0||this.series[N][L]===null?Q=k:(Q=k-Q/W,re=k-re/W);var ie=Math.abs(re-Q),C=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:h,y1:Q,y2:re,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u.realIndex,i:G,j:L,w:E});if(E.globals.isXNumeric){var I=this.getBarXForNumericXAxis({x:c,j:L,realIndex:G,barWidth:h});c=I.x,x=I.barXPosition}else c+=d;return{pathTo:C.pathTo,pathFrom:C.pathFrom,barHeight:ie,x:c,y:re,goalY:this.barHelpers.getGoalValues("y",null,k,N,L),barXPosition:x}}},{key:"drawRangeBarPaths",value:function(i){var u=i.indexes,c=i.y,d=i.y1,h=i.y2,x=i.yDivision,k=i.barHeight,E=i.barYPosition,N=i.zeroW,L=this.w,W=N+d/this.invertedYRatio,G=N+h/this.invertedYRatio,q=Math.abs(G-W),Q=this.barHelpers.getBarpaths({barYPosition:E,barHeight:k,x1:W,x2:G,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u.realIndex,realIndex:u.realIndex,j:u.j,w:L});return L.globals.isXNumeric||(c+=x),{pathTo:Q.pathTo,pathFrom:Q.pathFrom,barWidth:q,x:G,goalX:this.barHelpers.getGoalValues("x",N,null,u.realIndex,u.j),y:c}}},{key:"getRangeValue",value:function(i,u){var c=this.w;return{start:c.globals.seriesRangeStart[i][u],end:c.globals.seriesRangeEnd[i][u]}}}]),o}(),Jr=function(){function J(n){l(this,J),this.w=n.w,this.lineCtx=n}return b(J,[{key:"sameValueSeriesFix",value:function(n,o){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[n]==="gradient")&&new _(this.lineCtx.ctx,i).seriesHaveSameValues(n)){var u=o[n].slice();u[u.length-1]=u[u.length-1]+1e-6,o[n]=u}return o}},{key:"calculatePoints",value:function(n){var o=n.series,i=n.realIndex,u=n.x,c=n.y,d=n.i,h=n.j,x=n.prevY,k=this.w,E=[],N=[];if(h===0){var L=this.lineCtx.categoryAxisCorrection+k.config.markers.offsetX;k.globals.isXNumeric&&(L=(k.globals.seriesX[i][0]-k.globals.minX)/this.lineCtx.xRatio+k.config.markers.offsetX),E.push(L),N.push(p.isNumber(o[d][0])?x+k.config.markers.offsetY:null),E.push(u+k.config.markers.offsetX),N.push(p.isNumber(o[d][h+1])?c+k.config.markers.offsetY:null)}else E.push(u+k.config.markers.offsetX),N.push(p.isNumber(o[d][h+1])?c+k.config.markers.offsetY:null);return{x:E,y:N}}},{key:"checkPreviousPaths",value:function(n){for(var o=n.pathFromLine,i=n.pathFromArea,u=n.realIndex,c=this.w,d=0;d<c.globals.previousPaths.length;d++){var h=c.globals.previousPaths[d];(h.type==="line"||h.type==="area")&&h.paths.length>0&&parseInt(h.realIndex,10)===parseInt(u,10)&&(h.type==="line"?(this.lineCtx.appendPathFrom=!1,o=c.globals.previousPaths[d].paths[0].d):h.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=c.globals.previousPaths[d].paths[0].d,c.config.stroke.show&&c.globals.previousPaths[d].paths[1]&&(o=c.globals.previousPaths[d].paths[1].d)))}return{pathFromLine:o,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(n){var o,i=n.i,u=n.series,c=n.prevY,d=n.lineYPosition,h=this.w;if(((o=u[i])===null||o===void 0?void 0:o[0])!==void 0)c=(d=h.config.chart.stacked&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-u[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?u[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(h.config.chart.stacked&&i>0&&u[i][0]===void 0){for(var x=i-1;x>=0;x--)if(u[x][0]!==null&&u[x][0]!==void 0){c=d=this.lineCtx.prevSeriesY[x][0];break}}return{prevY:c,lineYPosition:d}}}]),J}(),Mo=function(J){for(var n,o,i,u,c=function(E){for(var N=[],L=E[0],W=E[1],G=N[0]=Kn(L,W),q=1,Q=E.length-1;q<Q;q++)L=W,W=E[q+1],N[q]=.5*(G+(G=Kn(L,W)));return N[q]=G,N}(J),d=J.length-1,h=[],x=0;x<d;x++)i=Kn(J[x],J[x+1]),Math.abs(i)<1e-6?c[x]=c[x+1]=0:(u=(n=c[x]/i)*n+(o=c[x+1]/i)*o)>9&&(u=3*i/Math.sqrt(u),c[x]=u*n,c[x+1]=u*o);for(var k=0;k<=d;k++)u=(J[Math.min(d,k+1)][0]-J[Math.max(0,k-1)][0])/(6*(1+c[k]*c[k])),h.push([u||0,c[k]*u||0]);return h},qn=function(J){for(var n="",o=0;o<J.length;o++){var i=J[o],u=J[o-1],c=i.length,d=u==null?void 0:u.length;o>1&&Math.abs(i[c-2]-u[d-2])<30?(n+="Q".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3])):c>4?(n+="C".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3]),n+=", ".concat(i[4],", ").concat(i[5])):c>2&&(n+="S".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3]))}return n},xa=function(J){var n=Mo(J),o=J[1],i=J[0],u=[],c=n[1],d=n[0];u.push(i,[i[0]+d[0],i[1]+d[1],o[0]-c[0],o[1]-c[1],o[0],o[1]]);for(var h=2,x=n.length;h<x;h++){var k=J[h],E=n[h];u.push([k[0]-E[0],k[1]-E[1],k[0],k[1]])}return u};function Kn(J,n){return(n[1]-J[1])/(n[0]-J[0])}var Br=function(){function J(n,o,i){l(this,J),this.ctx=n,this.w=n.w,this.xyRatios=o,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new Ne(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Jr(this),this.markers=new Ee(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return b(J,[{key:"draw",value:function(n,o,i,u){var c,d=this.w,h=new m(this.ctx),x=d.globals.comboCharts?o:d.config.chart.type,k=h.group({class:"apexcharts-".concat(x,"-series apexcharts-plot-series")}),E=new _(this.ctx,d);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,n=E.getLogSeries(n),this.yRatio=E.getLogYRatios(this.yRatio);for(var N=[],L=0;L<n.length;L++){n=this.lineHelpers.sameValueSeriesFix(L,n);var W=d.globals.comboCharts?i[L]:L;this._initSerieVariables(n,L,W);var G=[],q=[],Q=[],re=d.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,W),d.globals.isXNumeric&&d.globals.seriesX.length>0&&(re=(d.globals.seriesX[W][0]-d.globals.minX)/this.xRatio),Q.push(re);var ie=re,C=this.zeroY,I=this.zeroY;C=this.lineHelpers.determineFirstPrevY({i:L,series:n,prevY:C,lineYPosition:0}).prevY,d.config.stroke.curve==="smooth"&&n[L][0]===null?G.push(null):G.push(C),x==="rangeArea"&&(I=this.lineHelpers.determineFirstPrevY({i:L,series:u,prevY:I,lineYPosition:0}).prevY,q.push(I));var $={type:x,series:n,realIndex:W,i:L,x:re,y:1,pathsFrom:this._calculatePathsFrom({type:x,series:n,i:L,realIndex:W,prevX:ie,prevY:C,prevY2:I}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:Q,yArrj:G,y2Arrj:q,seriesRangeEnd:u},te=this._iterateOverDataPoints(a(a({},$),{},{iterations:x==="rangeArea"?n[L].length-1:void 0,isRangeStart:!0}));if(x==="rangeArea"){var ce=this._calculatePathsFrom({series:u,i:L,realIndex:W,prevX:ie,prevY:I}),de=this._iterateOverDataPoints(a(a({},$),{},{series:u,pathsFrom:ce,iterations:u[L].length-1,isRangeStart:!1}));te.linePaths[0]=de.linePath+te.linePath,te.pathFromLine=de.pathFromLine+te.pathFromLine}this._handlePaths({type:x,realIndex:W,i:L,paths:te}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),N.push(this.elSeries)}if(((c=d.config.series[0])===null||c===void 0?void 0:c.zIndex)!==void 0&&N.sort(function(Me,Be){return Number(Me.node.getAttribute("zIndex"))-Number(Be.node.getAttribute("zIndex"))}),d.config.chart.stacked)for(var we=N.length;we>0;we--)k.add(N[we-1]);else for(var Ce=0;Ce<N.length;Ce++)k.add(N[Ce]);return k}},{key:"_initSerieVariables",value:function(n,o,i){var u=this.w,c=new m(this.ctx);this.xDivision=u.globals.gridWidth/(u.globals.dataPoints-(u.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(u.config.stroke.width)?u.config.stroke.width[i]:u.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=u.config.yaxis[this.yaxisIndex]&&u.config.yaxis[this.yaxisIndex].reversed,this.zeroY=u.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?u.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>u.globals.gridHeight||u.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=u.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=c.group({class:"apexcharts-series",zIndex:u.config.series[i].zIndex!==void 0?u.config.series[i].zIndex:i,seriesName:p.escapeString(u.globals.seriesNames[i])}),this.elPointsMain=c.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=c.group({class:"apexcharts-datalabels","data:realIndex":i});var d=n[o].length===u.globals.dataPoints;this.elSeries.attr({"data:longestSeries":d,rel:o+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(n){var o,i,u,c,d=n.type,h=n.series,x=n.i,k=n.realIndex,E=n.prevX,N=n.prevY,L=n.prevY2,W=this.w,G=new m(this.ctx);if(h[x][0]===null){for(var q=0;q<h[x].length;q++)if(h[x][q]!==null){E=this.xDivision*q,N=this.zeroY-h[x][q]/this.yRatio[this.yaxisIndex],o=G.move(E,N),i=G.move(E,this.areaBottomY);break}}else o=G.move(E,N),d==="rangeArea"&&(o=G.move(E,L)+G.line(E,N)),i=G.move(E,this.areaBottomY)+G.line(E,N);if(u=G.move(-1,this.zeroY)+G.line(-1,this.zeroY),c=G.move(-1,this.zeroY)+G.line(-1,this.zeroY),W.globals.previousPaths.length>0){var Q=this.lineHelpers.checkPreviousPaths({pathFromLine:u,pathFromArea:c,realIndex:k});u=Q.pathFromLine,c=Q.pathFromArea}return{prevX:E,prevY:N,linePath:o,areaPath:i,pathFromLine:u,pathFromArea:c}}},{key:"_handlePaths",value:function(n){var o=n.type,i=n.realIndex,u=n.i,c=n.paths,d=this.w,h=new m(this.ctx),x=new _e(this.ctx);this.prevSeriesY.push(c.yArrj),d.globals.seriesXvalues[i]=c.xArrj,d.globals.seriesYvalues[i]=c.yArrj;var k=d.config.forecastDataPoints;if(k.count>0&&o!=="rangeArea"){var E=d.globals.seriesXvalues[i][d.globals.seriesXvalues[i].length-k.count-1],N=h.drawRect(E,0,d.globals.gridWidth,d.globals.gridHeight,0);d.globals.dom.elForecastMask.appendChild(N.node);var L=h.drawRect(0,0,E,d.globals.gridHeight,0);d.globals.dom.elNonForecastMask.appendChild(L.node)}this.pointsChart||d.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var W={i:u,realIndex:i,animationDelay:u,initialSpeed:d.config.chart.animations.speed,dataChangeSpeed:d.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(o)};if(o==="area")for(var G=x.fillPath({seriesNumber:i}),q=0;q<c.areaPaths.length;q++){var Q=h.renderPaths(a(a({},W),{},{pathFrom:c.pathFromArea,pathTo:c.areaPaths[q],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:G}));this.elSeries.add(Q)}if(d.config.stroke.show&&!this.pointsChart){var re=null;if(o==="line")re=x.fillPath({seriesNumber:i,i:u});else if(d.config.stroke.fill.type==="solid")re=d.globals.stroke.colors[i];else{var ie=d.config.fill;d.config.fill=d.config.stroke.fill,re=x.fillPath({seriesNumber:i,i:u}),d.config.fill=ie}for(var C=0;C<c.linePaths.length;C++){var I=re;o==="rangeArea"&&(I=x.fillPath({seriesNumber:i}));var $=a(a({},W),{},{pathFrom:c.pathFromLine,pathTo:c.linePaths[C],stroke:re,strokeWidth:this.strokeWidth,strokeLineCap:d.config.stroke.lineCap,fill:o==="rangeArea"?I:"none"}),te=h.renderPaths($);if(this.elSeries.add(te),te.attr("fill-rule","evenodd"),k.count>0&&o!=="rangeArea"){var ce=h.renderPaths($);ce.node.setAttribute("stroke-dasharray",k.dashArray),k.strokeWidth&&ce.node.setAttribute("stroke-width",k.strokeWidth),this.elSeries.add(ce),ce.attr("clip-path","url(#forecastMask".concat(d.globals.cuid,")")),te.attr("clip-path","url(#nonForecastMask".concat(d.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(n){var o=this,i=n.type,u=n.series,c=n.iterations,d=n.realIndex,h=n.i,x=n.x,k=n.y,E=n.pathsFrom,N=n.linePaths,L=n.areaPaths,W=n.seriesIndex,G=n.lineYPosition,q=n.xArrj,Q=n.yArrj,re=n.y2Arrj,ie=n.isRangeStart,C=n.seriesRangeEnd,I=this.w,$=new m(this.ctx),te=this.yRatio,ce=E.prevY,de=E.linePath,we=E.areaPath,Ce=E.pathFromLine,Me=E.pathFromArea,Be=p.isNumber(I.globals.minYArr[d])?I.globals.minYArr[d]:I.globals.minY;c||(c=I.globals.dataPoints>1?I.globals.dataPoints-1:I.globals.dataPoints);for(var ze=function(Rt,Wt){return Wt-Rt/te[o.yaxisIndex]+2*(o.isReversed?Rt/te[o.yaxisIndex]:0)},$e=k,Ze=0;Ze<c;Ze++){var ct=u[h][Ze+1]===void 0||u[h][Ze+1]===null;if(I.globals.isXNumeric){var mt=I.globals.seriesX[d][Ze+1];I.globals.seriesX[d][Ze+1]===void 0&&(mt=I.globals.seriesX[d][c-1]),x=(mt-I.globals.minX)/this.xRatio}else x+=this.xDivision;I.config.chart.stacked?h>0&&I.globals.collapsedSeries.length<I.config.series.length-1?G=this.prevSeriesY[function(Rt){for(var Wt=Rt,Rr=0;Rr<I.globals.series.length;Rr++)if(I.globals.collapsedSeriesIndices.indexOf(Rt)>-1){Wt--;break}return Wt>=0?Wt:0}(h-1)][Ze+1]:G=this.zeroY:G=this.zeroY,ct?k=ze(Be,G):(k=ze(u[h][Ze+1],G),i==="rangeArea"&&($e=ze(C[h][Ze+1],G))),q.push(x),ct&&I.config.stroke.curve==="smooth"?Q.push(null):Q.push(k),re.push($e);var Pt=this.lineHelpers.calculatePoints({series:u,x,y:k,realIndex:d,i:h,j:Ze,prevY:ce}),zt=this._createPaths({type:i,series:u,i:h,realIndex:d,j:Ze,x,y:k,y2:$e,xArrj:q,yArrj:Q,y2Arrj:re,linePath:de,areaPath:we,linePaths:N,areaPaths:L,seriesIndex:W,isRangeStart:ie});L=zt.areaPaths,N=zt.linePaths,we=zt.areaPath,de=zt.linePath,!this.appendPathFrom||I.config.stroke.curve==="smooth"&&i==="rangeArea"||(Ce+=$.line(x,this.zeroY),Me+=$.line(x,this.zeroY)),this.handleNullDataPoints(u,Pt,h,Ze,d),this._handleMarkersAndLabels({type:i,pointsPos:Pt,i:h,j:Ze,realIndex:d,isRangeStart:ie})}return{yArrj:Q,xArrj:q,pathFromArea:Me,areaPaths:L,pathFromLine:Ce,linePaths:N,linePath:de,areaPath:we}}},{key:"_handleMarkersAndLabels",value:function(n){var o=n.type,i=n.pointsPos,u=n.isRangeStart,c=n.i,d=n.j,h=n.realIndex,x=this.w,k=new Le(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,d,{realIndex:h,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{x.globals.series[c].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var E=this.markers.plotChartMarkers(i,h,d+1);E!==null&&this.elPointsMain.add(E)}var N=k.drawDataLabel({type:o,isRangeStart:u,pos:i,i:h,j:d+1});N!==null&&this.elDataLabelsWrap.add(N)}},{key:"_createPaths",value:function(n){var o=n.type,i=n.series,u=n.i,c=n.realIndex,d=n.j,h=n.x,x=n.y,k=n.xArrj,E=n.yArrj,N=n.y2,L=n.y2Arrj,W=n.linePath,G=n.areaPath,q=n.linePaths,Q=n.areaPaths,re=n.seriesIndex,ie=n.isRangeStart,C=this.w,I=new m(this.ctx),$=C.config.stroke.curve,te=this.areaBottomY;if(Array.isArray(C.config.stroke.curve)&&($=Array.isArray(re)?C.config.stroke.curve[re[u]]:C.config.stroke.curve[u]),o==="rangeArea"&&(C.globals.hasNullValues||C.config.forecastDataPoints.count>0)&&$==="smooth"&&($="straight"),$==="smooth"){var ce=o==="rangeArea"?k.length===C.globals.dataPoints:d===i[u].length-2,de=k.map(function(Ze,ct){return[k[ct],E[ct]]}).filter(function(Ze){return Ze[1]!==null});if(ce&&de.length>1){var we=xa(de);if(W+=qn(we),i[u][0]===null?G=W:G+=qn(we),o==="rangeArea"&&ie){W+=I.line(k[k.length-1],L[L.length-1]);var Ce=k.slice().reverse(),Me=L.slice().reverse(),Be=Ce.map(function(Ze,ct){return[Ce[ct],Me[ct]]}),ze=xa(Be);G=W+=qn(ze)}else G+=I.line(de[de.length-1][0],te)+I.line(de[0][0],te)+I.move(de[0][0],de[0][1])+"z";q.push(W),Q.push(G)}}else{if(i[u][d+1]===null){W+=I.move(h,x);var $e=C.globals.isXNumeric?(C.globals.seriesX[c][d]-C.globals.minX)/this.xRatio:h-this.xDivision;G=G+I.line($e,te)+I.move(h,x)+"z"}i[u][d]===null&&(W+=I.move(h,x),G+=I.move(h,te)),$==="stepline"?(W=W+I.line(h,null,"H")+I.line(null,x,"V"),G=G+I.line(h,null,"H")+I.line(null,x,"V")):$==="straight"&&(W+=I.line(h,x),G+=I.line(h,x)),d===i[u].length-2&&(G=G+I.line(h,te)+I.move(h,x)+"z",o==="rangeArea"&&ie?W=W+I.line(h,N)+I.move(h,N)+"z":(q.push(W),Q.push(G)))}return{linePaths:q,areaPaths:Q,linePath:W,areaPath:G}}},{key:"handleNullDataPoints",value:function(n,o,i,u,c){var d=this.w;if(n[i][u]===null&&d.config.markers.showNullDataPoints||n[i].length===1){var h=this.markers.plotChartMarkers(o,c,u+1,this.strokeWidth-d.config.markers.strokeWidth/2,!0);h!==null&&this.elPointsMain.add(h)}}}]),J}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function J(h,x,k,E){this.xoffset=h,this.yoffset=x,this.height=E,this.width=k,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(N){var L,W=[],G=this.xoffset,q=this.yoffset,Q=c(N)/this.height,re=c(N)/this.width;if(this.width>=this.height)for(L=0;L<N.length;L++)W.push([G,q,G+Q,q+N[L]/Q]),q+=N[L]/Q;else for(L=0;L<N.length;L++)W.push([G,q,G+N[L]/re,q+re]),G+=N[L]/re;return W},this.cutArea=function(N){var L;if(this.width>=this.height){var W=N/this.height,G=this.width-W;L=new J(this.xoffset+W,this.yoffset,G,this.height)}else{var q=N/this.width,Q=this.height-q;L=new J(this.xoffset,this.yoffset+q,this.width,Q)}return L}}function n(h,x,k,E,N){E=E===void 0?0:E,N=N===void 0?0:N;var L=o(function(W,G){var q,Q=[],re=G/c(W);for(q=0;q<W.length;q++)Q[q]=W[q]*re;return Q}(h,x*k),[],new J(E,N,x,k),[]);return function(W){var G,q,Q=[];for(G=0;G<W.length;G++)for(q=0;q<W[G].length;q++)Q.push(W[G][q]);return Q}(L)}function o(h,x,k,E){var N,L,W;if(h.length!==0)return N=k.shortestEdge(),function(G,q,Q){var re;if(G.length===0)return!0;(re=G.slice()).push(q);var ie=i(G,Q),C=i(re,Q);return ie>=C}(x,L=h[0],N)?(x.push(L),o(h.slice(1),x,k,E)):(W=k.cutArea(c(x),E),E.push(k.getCoordinates(x)),o(h,[],W,E)),E;E.push(k.getCoordinates(x))}function i(h,x){var k=Math.min.apply(Math,h),E=Math.max.apply(Math,h),N=c(h);return Math.max(Math.pow(x,2)*E/Math.pow(N,2),Math.pow(N,2)/(Math.pow(x,2)*k))}function u(h){return h&&h.constructor===Array}function c(h){var x,k=0;for(x=0;x<h.length;x++)k+=h[x];return k}function d(h){var x,k=0;if(u(h[0]))for(x=0;x<h.length;x++)k+=d(h[x]);else k=c(h);return k}return function h(x,k,E,N,L){N=N===void 0?0:N,L=L===void 0?0:L;var W,G,q=[],Q=[];if(u(x[0])){for(G=0;G<x.length;G++)q[G]=d(x[G]);for(W=n(q,k,E,N,L),G=0;G<x.length;G++)Q.push(h(x[G],W[G][2]-W[G][0],W[G][3]-W[G][1],W[G][0],W[G][1]))}else Q=n(x,k,E,N,L);return Q}}();var On,Zn,bs=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new uo(n),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=new _e(this.ctx),d=u.group({class:"apexcharts-treemap"});if(i.globals.noData)return d;var h=[];return n.forEach(function(x){var k=x.map(function(E){return Math.abs(E)});h.push(k)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(x,k){x.data.forEach(function(E){Array.isArray(o.labels[k])||(o.labels[k]=[]),o.labels[k].push(E.x)})}),window.TreemapSquared.generate(h,i.globals.gridWidth,i.globals.gridHeight).forEach(function(x,k){var E=u.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:p.escapeString(i.globals.seriesNames[k]),rel:k+1,"data:realIndex":k});if(i.config.chart.dropShadow.enabled){var N=i.config.chart.dropShadow;new g(o.ctx).dropShadow(d,N,k)}var L=u.group({class:"apexcharts-data-labels"});x.forEach(function(W,G){var q=W[0],Q=W[1],re=W[2],ie=W[3],C=u.drawRect(q,Q,re-q,ie-Q,0,"#fff",1,o.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?$:i.globals.stroke.colors[k]);C.attr({cx:q,cy:Q,index:k,i:k,j:G,width:re-q,height:ie-Q});var I=o.helpers.getShadeColor(i.config.chart.type,k,G,o.negRange),$=I.color;i.config.series[k].data[G]!==void 0&&i.config.series[k].data[G].fillColor&&($=i.config.series[k].data[G].fillColor);var te=c.fillPath({color:$,seriesNumber:k,dataPointIndex:G});C.node.classList.add("apexcharts-treemap-rect"),C.attr({fill:te}),o.helpers.addListeners(C);var ce={x:q+(re-q)/2,y:Q+(ie-Q)/2,width:0,height:0},de={x:q,y:Q,width:re-q,height:ie-Q};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var we=1;i.globals.resized||(we=i.config.chart.animations.speed),o.animateTreemap(C,ce,de,we)}if(i.globals.dataChanged){var Ce=1;o.dynamicAnim.enabled&&i.globals.shouldAnimate&&(Ce=o.dynamicAnim.speed,i.globals.previousPaths[k]&&i.globals.previousPaths[k][G]&&i.globals.previousPaths[k][G].rect&&(ce=i.globals.previousPaths[k][G].rect),o.animateTreemap(C,ce,de,Ce))}var Me=o.getFontSize(W),Be=i.config.dataLabels.formatter(o.labels[k][G],{value:i.globals.series[k][G],seriesIndex:k,dataPointIndex:G,w:i});i.config.plotOptions.treemap.dataLabels.format==="truncate"&&(Me=parseInt(i.config.dataLabels.style.fontSize,10),Be=o.truncateLabels(Be,Me,q,Q,re,ie));var ze=o.helpers.calculateDataLabels({text:Be,x:(q+re)/2,y:(Q+ie)/2+o.strokeWidth/2+Me/3,i:k,j:G,colorProps:I,fontSize:Me,series:n});i.config.dataLabels.enabled&&ze&&o.rotateToFitLabel(ze,Me,Be,q,Q,re,ie),E.add(C),ze!==null&&E.add(ze)}),E.add(L),d.add(E)}),d}},{key:"getFontSize",value:function(n){var o=this.w,i,u,c,d,h=function x(k){var E,N=0;if(Array.isArray(k[0]))for(E=0;E<k.length;E++)N+=x(k[E]);else for(E=0;E<k.length;E++)N+=k[E].length;return N}(this.labels)/function x(k){var E,N=0;if(Array.isArray(k[0]))for(E=0;E<k.length;E++)N+=x(k[E]);else for(E=0;E<k.length;E++)N+=1;return N}(this.labels);return i=n[2]-n[0],u=n[3]-n[1],c=i*u,d=Math.pow(c,.5),Math.min(d/h,parseInt(o.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(n,o,i,u,c,d,h){var x=new m(this.ctx),k=x.getTextRects(i,o);if(k.width+this.w.config.stroke.width+5>d-u&&k.width<=h-c){var E=x.rotateAroundCenter(n.node);n.node.setAttribute("transform","rotate(-90 ".concat(E.x," ").concat(E.y,") translate(").concat(k.height/3,")"))}}},{key:"truncateLabels",value:function(n,o,i,u,c,d){var h=new m(this.ctx),x=h.getTextRects(n,o).width+this.w.config.stroke.width+5>c-i&&d-u>c-i?d-u:c-i,k=h.getTextBasedOnMaxWidth({text:n,maxWidth:x,fontSize:o});return n.length!==k.length&&x/o<5?"":k}},{key:"animateTreemap",value:function(n,o,i,u){var c=new v(this.ctx);c.animateRect(n,{x:o.x,y:o.y,width:o.width,height:o.height},{x:i.x,y:i.y,width:i.width,height:i.height},u,function(){c.animationCompleted(n)})}}]),J}(),wa=86400,Ca=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return b(J,[{key:"calculateTimeScaleTicks",value:function(n,o){var i=this,u=this.w;if(u.globals.allSeriesCollapsed)return u.globals.labels=[],u.globals.timescaleLabels=[],[];var c=new ne(this.ctx),d=(o-n)/864e5;this.determineInterval(d),u.globals.disableZoomIn=!1,u.globals.disableZoomOut=!1,d<.00011574074074074075?u.globals.disableZoomIn=!0:d>5e4&&(u.globals.disableZoomOut=!0);var h=c.getTimeUnitsfromTimestamp(n,o,this.utc),x=u.globals.gridWidth/d,k=x/24,E=k/60,N=E/60,L=Math.floor(24*d),W=Math.floor(1440*d),G=Math.floor(d*wa),q=Math.floor(d),Q=Math.floor(d/30),re=Math.floor(d/365),ie={minMillisecond:h.minMillisecond,minSecond:h.minSecond,minMinute:h.minMinute,minHour:h.minHour,minDate:h.minDate,minMonth:h.minMonth,minYear:h.minYear},C={firstVal:ie,currentMillisecond:ie.minMillisecond,currentSecond:ie.minSecond,currentMinute:ie.minMinute,currentHour:ie.minHour,currentMonthDate:ie.minDate,currentDate:ie.minDate,currentMonth:ie.minMonth,currentYear:ie.minYear,daysWidthOnXAxis:x,hoursWidthOnXAxis:k,minutesWidthOnXAxis:E,secondsWidthOnXAxis:N,numberOfSeconds:G,numberOfMinutes:W,numberOfHours:L,numberOfDays:q,numberOfMonths:Q,numberOfYears:re};switch(this.tickInterval){case"years":this.generateYearScale(C);break;case"months":case"half_year":this.generateMonthScale(C);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(C);break;case"hours":this.generateHourScale(C);break;case"minutes_fives":case"minutes":this.generateMinuteScale(C);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(C)}var I=this.timeScaleArray.map(function($){var te={position:$.position,unit:$.unit,year:$.year,day:$.day?$.day:1,hour:$.hour?$.hour:0,month:$.month+1};return $.unit==="month"?a(a({},te),{},{day:1,value:$.value+1}):$.unit==="day"||$.unit==="hour"?a(a({},te),{},{value:$.value}):$.unit==="minute"?a(a({},te),{},{value:$.value,minute:$.value}):$.unit==="second"?a(a({},te),{},{value:$.value,minute:$.minute,second:$.second}):$});return I.filter(function($){var te=1,ce=Math.ceil(u.globals.gridWidth/120),de=$.value;u.config.xaxis.tickAmount!==void 0&&(ce=u.config.xaxis.tickAmount),I.length>ce&&(te=Math.floor(I.length/ce));var we=!1,Ce=!1;switch(i.tickInterval){case"years":$.unit==="year"&&(we=!0);break;case"half_year":te=7,$.unit==="year"&&(we=!0);break;case"months":te=1,$.unit==="year"&&(we=!0);break;case"months_fortnight":te=15,$.unit!=="year"&&$.unit!=="month"||(we=!0),de===30&&(Ce=!0);break;case"months_days":te=10,$.unit==="month"&&(we=!0),de===30&&(Ce=!0);break;case"week_days":te=8,$.unit==="month"&&(we=!0);break;case"days":te=1,$.unit==="month"&&(we=!0);break;case"hours":$.unit==="day"&&(we=!0);break;case"minutes_fives":case"seconds_fives":de%5!=0&&(Ce=!0);break;case"seconds_tens":de%10!=0&&(Ce=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!Ce)return!0}else if((de%te==0||we)&&!Ce)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(n,o){var i=this.w,u=this.formatDates(n),c=this.removeOverlappingTS(u);i.globals.timescaleLabels=c.slice(),new St(this.ctx).plotCoords()}},{key:"determineInterval",value:function(n){var o=24*n,i=60*o;switch(!0){case n/365>5:this.tickInterval="years";break;case n>800:this.tickInterval="half_year";break;case n>180:this.tickInterval="months";break;case n>90:this.tickInterval="months_fortnight";break;case n>60:this.tickInterval="months_days";break;case n>30:this.tickInterval="week_days";break;case n>2:this.tickInterval="days";break;case o>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(n){var o=n.firstVal,i=n.currentMonth,u=n.currentYear,c=n.daysWidthOnXAxis,d=n.numberOfYears,h=o.minYear,x=0,k=new ne(this.ctx),E="year";if(o.minDate>1||o.minMonth>0){var N=k.determineRemainingDaysOfYear(o.minYear,o.minMonth,o.minDate);x=(k.determineDaysOfYear(o.minYear)-N+1)*c,h=o.minYear+1,this.timeScaleArray.push({position:x,value:h,unit:E,year:h,month:p.monthMod(i+1)})}else o.minDate===1&&o.minMonth===0&&this.timeScaleArray.push({position:x,value:h,unit:E,year:u,month:p.monthMod(i+1)});for(var L=h,W=x,G=0;G<d;G++)L++,W=k.determineDaysOfYear(L-1)*c+W,this.timeScaleArray.push({position:W,value:L,unit:E,year:L,month:1})}},{key:"generateMonthScale",value:function(n){var o=n.firstVal,i=n.currentMonthDate,u=n.currentMonth,c=n.currentYear,d=n.daysWidthOnXAxis,h=n.numberOfMonths,x=u,k=0,E=new ne(this.ctx),N="month",L=0;if(o.minDate>1){k=(E.determineDaysOfMonths(u+1,o.minYear)-i+1)*d,x=p.monthMod(u+1);var W=c+L,G=p.monthMod(x),q=x;x===0&&(N="year",q=W,G=1,W+=L+=1),this.timeScaleArray.push({position:k,value:q,unit:N,year:W,month:G})}else this.timeScaleArray.push({position:k,value:x,unit:N,year:c,month:p.monthMod(u)});for(var Q=x+1,re=k,ie=0,C=1;ie<h;ie++,C++){(Q=p.monthMod(Q))===0?(N="year",L+=1):N="month";var I=this._getYear(c,Q,L);re=E.determineDaysOfMonths(Q,I)*d+re;var $=Q===0?I:Q;this.timeScaleArray.push({position:re,value:$,unit:N,year:I,month:Q===0?1:Q}),Q++}}},{key:"generateDayScale",value:function(n){var o=n.firstVal,i=n.currentMonth,u=n.currentYear,c=n.hoursWidthOnXAxis,d=n.numberOfDays,h=new ne(this.ctx),x="day",k=o.minDate+1,E=k,N=function(C,I,$){return C>h.determineDaysOfMonths(I+1,$)&&(E=1,x="month",W=I+=1),I},L=(24-o.minHour)*c,W=k,G=N(E,i,u);o.minHour===0&&o.minDate===1?(L=0,W=p.monthMod(o.minMonth),x="month",E=o.minDate):o.minDate!==1&&o.minHour===0&&o.minMinute===0&&(L=0,k=o.minDate,W=k,G=N(E=k,i,u)),this.timeScaleArray.push({position:L,value:W,unit:x,year:this._getYear(u,G,0),month:p.monthMod(G),day:E});for(var q=L,Q=0;Q<d;Q++){x="day",G=N(E+=1,G,this._getYear(u,G,0));var re=this._getYear(u,G,0);q=24*c+q;var ie=E===1?p.monthMod(G):E;this.timeScaleArray.push({position:q,value:ie,unit:x,year:re,month:p.monthMod(G),day:ie})}}},{key:"generateHourScale",value:function(n){var o=n.firstVal,i=n.currentDate,u=n.currentMonth,c=n.currentYear,d=n.minutesWidthOnXAxis,h=n.numberOfHours,x=new ne(this.ctx),k="hour",E=function(te,ce){return te>x.determineDaysOfMonths(ce+1,c)&&(Q=1,ce+=1),{month:ce,date:Q}},N=function(te,ce){return te>x.determineDaysOfMonths(ce+1,c)?ce+=1:ce},L=60-(o.minMinute+o.minSecond/60),W=L*d,G=o.minHour+1,q=G;L===60&&(W=0,q=(G=o.minHour)+1);var Q=i;q>=24&&(q=0,Q+=1,k="day");var re=E(Q,u).month;re=N(Q,re),this.timeScaleArray.push({position:W,value:G,unit:k,day:Q,hour:q,year:c,month:p.monthMod(re)}),q++;for(var ie=W,C=0;C<h;C++){k="hour",q>=24&&(q=0,k="day",re=E(Q+=1,re).month,re=N(Q,re));var I=this._getYear(c,re,0);ie=60*d+ie;var $=q===0?Q:q;this.timeScaleArray.push({position:ie,value:$,unit:k,hour:q,day:Q,year:I,month:p.monthMod(re)}),q++}}},{key:"generateMinuteScale",value:function(n){for(var o=n.currentMillisecond,i=n.currentSecond,u=n.currentMinute,c=n.currentHour,d=n.currentDate,h=n.currentMonth,x=n.currentYear,k=n.minutesWidthOnXAxis,E=n.secondsWidthOnXAxis,N=n.numberOfMinutes,L=u+1,W=d,G=h,q=x,Q=c,re=(60-i-o/1e3)*E,ie=0;ie<N;ie++)L>=60&&(L=0,(Q+=1)===24&&(Q=0)),this.timeScaleArray.push({position:re,value:L,unit:"minute",hour:Q,minute:L,day:W,year:this._getYear(q,G,0),month:p.monthMod(G)}),re+=k,L++}},{key:"generateSecondScale",value:function(n){for(var o=n.currentMillisecond,i=n.currentSecond,u=n.currentMinute,c=n.currentHour,d=n.currentDate,h=n.currentMonth,x=n.currentYear,k=n.secondsWidthOnXAxis,E=n.numberOfSeconds,N=i+1,L=u,W=d,G=h,q=x,Q=c,re=(1e3-o)/1e3*k,ie=0;ie<E;ie++)N>=60&&(N=0,++L>=60&&(L=0,++Q===24&&(Q=0))),this.timeScaleArray.push({position:re,value:N,unit:"second",hour:Q,minute:L,second:N,day:W,year:this._getYear(q,G,0),month:p.monthMod(G)}),re+=k,N++}},{key:"createRawDateString",value:function(n,o){var i=n.year;return n.month===0&&(n.month=1),i+="-"+("0"+n.month.toString()).slice(-2),n.unit==="day"?i+=n.unit==="day"?"-"+("0"+o).slice(-2):"-01":i+="-"+("0"+(n.day?n.day:"1")).slice(-2),n.unit==="hour"?i+=n.unit==="hour"?"T"+("0"+o).slice(-2):"T00":i+="T"+("0"+(n.hour?n.hour:"0")).slice(-2),n.unit==="minute"?i+=":"+("0"+o).slice(-2):i+=":"+(n.minute?("0"+n.minute).slice(-2):"00"),n.unit==="second"?i+=":"+("0"+o).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(n){var o=this,i=this.w;return n.map(function(u){var c=u.value.toString(),d=new ne(o.ctx),h=o.createRawDateString(u,c),x=d.getDate(d.parseDate(h));if(o.utc||(x=d.getDate(d.parseDateWithTimezone(h))),i.config.xaxis.labels.format===void 0){var k="dd MMM",E=i.config.xaxis.labels.datetimeFormatter;u.unit==="year"&&(k=E.year),u.unit==="month"&&(k=E.month),u.unit==="day"&&(k=E.day),u.unit==="hour"&&(k=E.hour),u.unit==="minute"&&(k=E.minute),u.unit==="second"&&(k=E.second),c=d.formatDate(x,k)}else c=d.formatDate(x,i.config.xaxis.labels.format);return{dateString:h,position:u.position,value:c,unit:u.unit,year:u.year,month:u.month}})}},{key:"removeOverlappingTS",value:function(n){var o,i=this,u=new m(this.ctx),c=!1;n.length>0&&n[0].value&&n.every(function(x){return x.value.length===n[0].value.length})&&(c=!0,o=u.getTextRects(n[0].value).width);var d=0,h=n.map(function(x,k){if(k>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var E=c?o:u.getTextRects(n[d].value).width,N=n[d].position;return x.position>N+E+10?(d=k,x):null}return x});return h=h.filter(function(x){return x!==null})}},{key:"_getYear",value:function(n,o,i){return n+Math.floor(o/12)+i}}]),J}(),vs=function(){function J(n,o){l(this,J),this.ctx=o,this.w=o.w,this.el=n}return b(J,[{key:"setupElements",value:function(){var n=this.w.globals,o=this.w.config,i=o.chart.type;n.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,n.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,n.isBarHorizontal=(o.chart.type==="bar"||o.chart.type==="rangeBar"||o.chart.type==="boxPlot")&&o.plotOptions.bar.horizontal,n.chartClass=".apexcharts"+n.chartID,n.dom.baseEl=this.el,n.dom.elWrap=document.createElement("div"),m.setAttrs(n.dom.elWrap,{id:n.chartClass.substring(1),class:"apexcharts-canvas "+n.chartClass.substring(1)}),this.el.appendChild(n.dom.elWrap),n.dom.Paper=new window.SVG.Doc(n.dom.elWrap),n.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(o.chart.offsetX,", ").concat(o.chart.offsetY,")")}),n.dom.Paper.node.style.background=o.theme.mode!=="dark"||o.chart.background?o.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),n.dom.elLegendForeign=document.createElementNS(n.SVGNS,"foreignObject"),m.setAttrs(n.dom.elLegendForeign,{x:0,y:0,width:n.svgWidth,height:n.svgHeight}),n.dom.elLegendWrap=document.createElement("div"),n.dom.elLegendWrap.classList.add("apexcharts-legend"),n.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),n.dom.elLegendForeign.appendChild(n.dom.elLegendWrap),n.dom.Paper.node.appendChild(n.dom.elLegendForeign),n.dom.elGraphical=n.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),n.dom.elDefs=n.dom.Paper.defs(),n.dom.Paper.add(n.dom.elGraphical),n.dom.elGraphical.add(n.dom.elDefs)}},{key:"plotChartType",value:function(n,o){var i=this.w,u=i.config,c=i.globals,d={series:[],i:[]},h={series:[],i:[]},x={series:[],i:[]},k={series:[],i:[]},E={series:[],i:[]},N={series:[],i:[]},L={series:[],i:[]},W={series:[],i:[]},G={series:[],seriesRangeEnd:[],i:[]};c.series.map(function(ce,de){var we=0;n[de].type!==void 0?(n[de].type==="column"||n[de].type==="bar"?(c.series.length>1&&u.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),E.series.push(ce),E.i.push(de),we++,i.globals.columnSeries=E.series):n[de].type==="area"?(h.series.push(ce),h.i.push(de),we++):n[de].type==="line"?(d.series.push(ce),d.i.push(de),we++):n[de].type==="scatter"?(x.series.push(ce),x.i.push(de)):n[de].type==="bubble"?(k.series.push(ce),k.i.push(de),we++):n[de].type==="candlestick"?(N.series.push(ce),N.i.push(de),we++):n[de].type==="boxPlot"?(L.series.push(ce),L.i.push(de),we++):n[de].type==="rangeBar"?(W.series.push(ce),W.i.push(de),we++):n[de].type==="rangeArea"?(G.series.push(c.seriesRangeStart[de]),G.seriesRangeEnd.push(c.seriesRangeEnd[de]),G.i.push(de),we++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),we>1&&(c.comboCharts=!0)):(d.series.push(ce),d.i.push(de))});var q=new Br(this.ctx,o),Q=new Un(this.ctx,o);this.ctx.pie=new ma(this.ctx);var re=new $n(this.ctx);this.ctx.rangeBar=new ya(this.ctx,o);var ie=new ni(this.ctx),C=[];if(c.comboCharts){if(h.series.length>0&&C.push(q.draw(h.series,"area",h.i)),E.series.length>0)if(i.config.chart.stacked){var I=new Wr(this.ctx,o);C.push(I.draw(E.series,E.i))}else this.ctx.bar=new _n(this.ctx,o),C.push(this.ctx.bar.draw(E.series,E.i));if(G.series.length>0&&C.push(q.draw(G.series,"rangeArea",G.i,G.seriesRangeEnd)),d.series.length>0&&C.push(q.draw(d.series,"line",d.i)),N.series.length>0&&C.push(Q.draw(N.series,"candlestick",N.i)),L.series.length>0&&C.push(Q.draw(L.series,"boxPlot",L.i)),W.series.length>0&&C.push(this.ctx.rangeBar.draw(W.series,W.i)),x.series.length>0){var $=new Br(this.ctx,o,!0);C.push($.draw(x.series,"scatter",x.i))}if(k.series.length>0){var te=new Br(this.ctx,o,!0);C.push(te.draw(k.series,"bubble",k.i))}}else switch(u.chart.type){case"line":C=q.draw(c.series,"line");break;case"area":C=q.draw(c.series,"area");break;case"bar":u.chart.stacked?C=new Wr(this.ctx,o).draw(c.series):(this.ctx.bar=new _n(this.ctx,o),C=this.ctx.bar.draw(c.series));break;case"candlestick":C=new Un(this.ctx,o).draw(c.series,"candlestick");break;case"boxPlot":C=new Un(this.ctx,o).draw(c.series,u.chart.type);break;case"rangeBar":C=this.ctx.rangeBar.draw(c.series);break;case"rangeArea":C=q.draw(c.seriesRangeStart,"rangeArea",void 0,c.seriesRangeEnd);break;case"heatmap":C=new mr(this.ctx,o).draw(c.series);break;case"treemap":C=new bs(this.ctx,o).draw(c.series);break;case"pie":case"donut":case"polarArea":C=this.ctx.pie.draw(c.series);break;case"radialBar":C=re.draw(c.series);break;case"radar":C=ie.draw(c.series);break;default:C=q.draw(c.series)}return C}},{key:"setSVGDimensions",value:function(){var n=this.w.globals,o=this.w.config;n.svgWidth=o.chart.width,n.svgHeight=o.chart.height;var i=p.getDimensions(this.el),u=o.chart.width.toString().split(/[0-9]+/g).pop();u==="%"?p.isNumber(i[0])&&(i[0].width===0&&(i=p.getDimensions(this.el.parentNode)),n.svgWidth=i[0]*parseInt(o.chart.width,10)/100):u!=="px"&&u!==""||(n.svgWidth=parseInt(o.chart.width,10));var c=o.chart.height.toString().split(/[0-9]+/g).pop();if(n.svgHeight!=="auto"&&n.svgHeight!=="")if(c==="%"){var d=p.getDimensions(this.el.parentNode);n.svgHeight=d[1]*parseInt(o.chart.height,10)/100}else n.svgHeight=parseInt(o.chart.height,10);else n.axisCharts?n.svgHeight=n.svgWidth/1.61:n.svgHeight=n.svgWidth/1.2;if(n.svgWidth<0&&(n.svgWidth=0),n.svgHeight<0&&(n.svgHeight=0),m.setAttrs(n.dom.Paper.node,{width:n.svgWidth,height:n.svgHeight}),c!=="%"){var h=o.chart.sparkline.enabled?0:n.axisCharts?o.chart.parentHeightOffset:0;n.dom.Paper.node.parentNode.parentNode.style.minHeight=n.svgHeight+h+"px"}n.dom.elWrap.style.width=n.svgWidth+"px",n.dom.elWrap.style.height=n.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var n=this.w.globals,o=n.translateY,i={transform:"translate("+n.translateX+", "+o+")"};m.setAttrs(n.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var n=this.w,o=n.globals,i=0,u=n.config.chart.sparkline.enabled?1:15;u+=n.config.grid.padding.bottom,n.config.legend.position!=="top"&&n.config.legend.position!=="bottom"||!n.config.legend.show||n.config.legend.floating||(i=new gt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var c=n.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),d=2.05*n.globals.radialSize;if(c&&!n.config.chart.sparkline.enabled&&n.config.plotOptions.radialBar.startAngle!==0){var h=p.getBoundingClientRect(c);d=h.bottom;var x=h.bottom-h.top;d=Math.max(2.05*n.globals.radialSize,x)}var k=d+o.translateY+i+u;o.dom.elLegendForeign&&o.dom.elLegendForeign.setAttribute("height",k),n.config.chart.height&&String(n.config.chart.height).indexOf("%")>0||(o.dom.elWrap.style.height=k+"px",m.setAttrs(o.dom.Paper.node,{height:k}),o.dom.Paper.node.parentNode.parentNode.style.minHeight=k+"px")}},{key:"coreCalculations",value:function(){new ot(this.ctx).init()}},{key:"resetGlobals",value:function(){var n=this,o=function(){return n.w.config.series.map(function(c){return[]})},i=new ge,u=this.w.globals;i.initGlobalVars(u),u.seriesXvalues=o(),u.seriesYvalues=o()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var n=null,o=this.w;if(o.globals.axisCharts){if(o.config.xaxis.crosshairs.position==="back"&&new kt(this.ctx).drawXCrosshairs(),o.config.yaxis[0].crosshairs.position==="back"&&new kt(this.ctx).drawYCrosshairs(),o.config.xaxis.type==="datetime"&&o.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Ca(this.ctx);var i=[];isFinite(o.globals.minX)&&isFinite(o.globals.maxX)&&!o.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(o.globals.minX,o.globals.maxX):o.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(o.globals.minY,o.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}n=new _(this.ctx).getCalculatedRatios()}return n}},{key:"updateSourceChart",value:function(n){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:n.w.globals.minX,max:n.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var n=this,o=this.w;if(o.config.chart.brush.enabled&&typeof o.config.chart.events.selection!="function"){var i=Array.isArray(o.config.chart.brush.targets)||[o.config.chart.brush.target];i.forEach(function(u){var c=ApexCharts.getChartByID(u);c.w.globals.brushSource=n.ctx,typeof c.w.config.chart.events.zoomed!="function"&&(c.w.config.chart.events.zoomed=function(){n.updateSourceChart(c)}),typeof c.w.config.chart.events.scrolled!="function"&&(c.w.config.chart.events.scrolled=function(){n.updateSourceChart(c)})}),o.config.chart.events.selection=function(u,c){i.forEach(function(d){var h=ApexCharts.getChartByID(d),x=p.clone(o.config.yaxis);if(o.config.chart.brush.autoScaleYaxis&&h.w.globals.series.length===1){var k=new Ke(h);x=k.autoScaleY(h,x,c)}var E=h.w.config.yaxis.reduce(function(N,L,W){return[].concat(R(N),[a(a({},h.w.config.yaxis[W]),{},{min:x[0].min,max:x[0].max})])},[]);h.ctx.updateHelpers._updateOptions({xaxis:{min:c.xaxis.min,max:c.xaxis.max},yaxis:E},!1,!1,!1,!1)})}}}}]),J}(),Hr=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"_updateOptions",value:function(n){var o=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(h){var x=[o.ctx];c&&(x=o.ctx.getSyncedCharts()),o.ctx.w.globals.isExecCalled&&(x=[o.ctx],o.ctx.w.globals.isExecCalled=!1),x.forEach(function(k,E){var N=k.w;if(N.globals.shouldAnimate=u,i||(N.globals.resized=!0,N.globals.dataChanged=!0,u&&k.series.getPreviousPaths()),n&&s(n)==="object"&&(k.config=new ue(n),n=_.extendArrayProps(k.config,n,N),k.w.globals.chartID!==o.ctx.w.globals.chartID&&delete n.series,N.config=p.extend(N.config,n),d&&(N.globals.lastXAxis=n.xaxis?p.clone(n.xaxis):[],N.globals.lastYAxis=n.yaxis?p.clone(n.yaxis):[],N.globals.initialConfig=p.extend({},N.config),N.globals.initialSeries=p.clone(N.config.series),n.series))){for(var L=0;L<N.globals.collapsedSeriesIndices.length;L++){var W=N.config.series[N.globals.collapsedSeriesIndices[L]];N.globals.collapsedSeries[L].data=N.globals.axisCharts?W.data.slice():W}for(var G=0;G<N.globals.ancillaryCollapsedSeriesIndices.length;G++){var q=N.config.series[N.globals.ancillaryCollapsedSeriesIndices[G]];N.globals.ancillaryCollapsedSeries[G].data=N.globals.axisCharts?q.data.slice():q}k.series.emptyCollapsedSeries(N.config.series)}return k.update(n).then(function(){E===x.length-1&&h(k)})})})}},{key:"_updateSeries",value:function(n,o){var i=this,u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(c){var d,h=i.w;return h.globals.shouldAnimate=o,h.globals.dataChanged=!0,o&&i.ctx.series.getPreviousPaths(),h.globals.axisCharts?((d=n.map(function(x,k){return i._extendSeries(x,k)})).length===0&&(d=[{data:[]}]),h.config.series=d):h.config.series=n.slice(),u&&(h.globals.initialConfig.series=p.clone(h.config.series),h.globals.initialSeries=p.clone(h.config.series)),i.ctx.update().then(function(){c(i.ctx)})})}},{key:"_extendSeries",value:function(n,o){var i=this.w,u=i.config.series[o];return a(a({},i.config.series[o]),{},{name:n.name?n.name:u==null?void 0:u.name,color:n.color?n.color:u==null?void 0:u.color,type:n.type?n.type:u==null?void 0:u.type,group:n.group?n.group:u==null?void 0:u.group,data:n.data?n.data:u==null?void 0:u.data,zIndex:n.zIndex!==void 0?n.zIndex:o})}},{key:"toggleDataPointSelection",value:function(n,o){var i=this.w,u=null,c=".apexcharts-series[data\\:realIndex='".concat(n,"']");return i.globals.axisCharts?u=i.globals.dom.Paper.select("".concat(c," path[j='").concat(o,"'], ").concat(c," circle[j='").concat(o,"'], ").concat(c," rect[j='").concat(o,"']")).members[0]:o===void 0&&(u=i.globals.dom.Paper.select("".concat(c," path[j='").concat(n,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(n)),u?(new m(this.ctx).pathMouseDown(u,null),u.node?u.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(n){var o=this.w;if(["min","max"].forEach(function(u){n.xaxis[u]!==void 0&&(o.config.xaxis[u]=n.xaxis[u],o.globals.lastXAxis[u]=n.xaxis[u])}),n.xaxis.categories&&n.xaxis.categories.length&&(o.config.xaxis.categories=n.xaxis.categories),o.config.xaxis.convertedCatToNumeric){var i=new be(n);n=i.convertCatToNumericXaxis(n,this.ctx)}return n}},{key:"forceYAxisUpdate",value:function(n){return n.chart&&n.chart.stacked&&n.chart.stackType==="100%"&&(Array.isArray(n.yaxis)?n.yaxis.forEach(function(o,i){n.yaxis[i].min=0,n.yaxis[i].max=100}):(n.yaxis.min=0,n.yaxis.max=100)),n}},{key:"revertDefaultAxisMinMax",value:function(n){var o=this,i=this.w,u=i.globals.lastXAxis,c=i.globals.lastYAxis;n&&n.xaxis&&(u=n.xaxis),n&&n.yaxis&&(c=n.yaxis),i.config.xaxis.min=u.min,i.config.xaxis.max=u.max;var d=function(h){c[h]!==void 0&&(i.config.yaxis[h].min=c[h].min,i.config.yaxis[h].max=c[h].max)};i.config.yaxis.map(function(h,x){i.globals.zoomed||c[x]!==void 0?d(x):o.ctx.opts.yaxis[x]!==void 0&&(h.min=o.ctx.opts.yaxis[x].min,h.max=o.ctx.opts.yaxis[x].max)})}}]),J}();On=typeof window<"u"?window:void 0,Zn=function(J,n){var o=(this!==void 0?this:J).SVG=function(C){if(o.supported)return C=new o.Doc(C),o.parser.draw||o.prepare(),C};if(o.ns="http://www.w3.org/2000/svg",o.xmlns="http://www.w3.org/2000/xmlns/",o.xlink="http://www.w3.org/1999/xlink",o.svgjs="http://svgjs.dev",o.supported=!0,!o.supported)return!1;o.did=1e3,o.eid=function(C){return"Svgjs"+E(C)+o.did++},o.create=function(C){var I=n.createElementNS(this.ns,C);return I.setAttribute("id",this.eid(C)),I},o.extend=function(){var C,I;I=(C=[].slice.call(arguments)).pop();for(var $=C.length-1;$>=0;$--)if(C[$])for(var te in I)C[$].prototype[te]=I[te];o.Set&&o.Set.inherit&&o.Set.inherit()},o.invent=function(C){var I=typeof C.create=="function"?C.create:function(){this.constructor.call(this,o.create(C.create))};return C.inherit&&(I.prototype=new C.inherit),C.extend&&o.extend(I,C.extend),C.construct&&o.extend(C.parent||o.Container,C.construct),I},o.adopt=function(C){return C?C.instance?C.instance:((I=C.nodeName=="svg"?C.parentNode instanceof J.SVGElement?new o.Nested:new o.Doc:C.nodeName=="linearGradient"?new o.Gradient("linear"):C.nodeName=="radialGradient"?new o.Gradient("radial"):o[E(C.nodeName)]?new o[E(C.nodeName)]:new o.Element(C)).type=C.nodeName,I.node=C,C.instance=I,I instanceof o.Doc&&I.namespace().defs(),I.setData(JSON.parse(C.getAttribute("svgjs:data"))||{}),I):null;var I},o.prepare=function(){var C=n.getElementsByTagName("body")[0],I=(C?new o.Doc(C):o.adopt(n.documentElement).nested()).size(2,0);o.parser={body:C||n.documentElement,draw:I.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:I.polyline().node,path:I.path().node,native:o.create("svg")}},o.parser={native:o.create("svg")},n.addEventListener("DOMContentLoaded",function(){o.parser.draw||o.prepare()},!1),o.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},o.utils={map:function(C,I){for(var $=C.length,te=[],ce=0;ce<$;ce++)te.push(I(C[ce]));return te},filter:function(C,I){for(var $=C.length,te=[],ce=0;ce<$;ce++)I(C[ce])&&te.push(C[ce]);return te},filterSVGElements:function(C){return this.filter(C,function(I){return I instanceof J.SVGElement})}},o.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},o.Color=function(C){var I,$;this.r=0,this.g=0,this.b=0,C&&(typeof C=="string"?o.regex.isRgb.test(C)?(I=o.regex.rgb.exec(C.replace(o.regex.whitespace,"")),this.r=parseInt(I[1]),this.g=parseInt(I[2]),this.b=parseInt(I[3])):o.regex.isHex.test(C)&&(I=o.regex.hex.exec(($=C).length==4?["#",$.substring(1,2),$.substring(1,2),$.substring(2,3),$.substring(2,3),$.substring(3,4),$.substring(3,4)].join(""):$),this.r=parseInt(I[1],16),this.g=parseInt(I[2],16),this.b=parseInt(I[3],16)):s(C)==="object"&&(this.r=C.r,this.g=C.g,this.b=C.b))},o.extend(o.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+N(this.r)+N(this.g)+N(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(C){return this.destination=new o.Color(C),this},at:function(C){return this.destination?(C=C<0?0:C>1?1:C,new o.Color({r:~~(this.r+(this.destination.r-this.r)*C),g:~~(this.g+(this.destination.g-this.g)*C),b:~~(this.b+(this.destination.b-this.b)*C)})):this}}),o.Color.test=function(C){return C+="",o.regex.isHex.test(C)||o.regex.isRgb.test(C)},o.Color.isRgb=function(C){return C&&typeof C.r=="number"&&typeof C.g=="number"&&typeof C.b=="number"},o.Color.isColor=function(C){return o.Color.isRgb(C)||o.Color.test(C)},o.Array=function(C,I){(C=(C||[]).valueOf()).length==0&&I&&(C=I.valueOf()),this.value=this.parse(C)},o.extend(o.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(C){return C=C.valueOf(),Array.isArray(C)?C:this.split(C)}}),o.PointArray=function(C,I){o.Array.call(this,C,I||[[0,0]])},o.PointArray.prototype=new o.Array,o.PointArray.prototype.constructor=o.PointArray;for(var i={M:function(C,I,$){return I.x=$.x=C[0],I.y=$.y=C[1],["M",I.x,I.y]},L:function(C,I){return I.x=C[0],I.y=C[1],["L",C[0],C[1]]},H:function(C,I){return I.x=C[0],["H",C[0]]},V:function(C,I){return I.y=C[0],["V",C[0]]},C:function(C,I){return I.x=C[4],I.y=C[5],["C",C[0],C[1],C[2],C[3],C[4],C[5]]},Q:function(C,I){return I.x=C[2],I.y=C[3],["Q",C[0],C[1],C[2],C[3]]},S:function(C,I){return I.x=C[2],I.y=C[3],["S",C[0],C[1],C[2],C[3]]},Z:function(C,I,$){return I.x=$.x,I.y=$.y,["Z"]}},u="mlhvqtcsaz".split(""),c=0,d=u.length;c<d;++c)i[u[c]]=function(C){return function(I,$,te){if(C=="H")I[0]=I[0]+$.x;else if(C=="V")I[0]=I[0]+$.y;else if(C=="A")I[5]=I[5]+$.x,I[6]=I[6]+$.y;else for(var ce=0,de=I.length;ce<de;++ce)I[ce]=I[ce]+(ce%2?$.y:$.x);if(i&&typeof i[C]=="function")return i[C](I,$,te)}}(u[c].toUpperCase());o.PathArray=function(C,I){o.Array.call(this,C,I||[["M",0,0]])},o.PathArray.prototype=new o.Array,o.PathArray.prototype.constructor=o.PathArray,o.extend(o.PathArray,{toString:function(){return function(C){for(var I=0,$=C.length,te="";I<$;I++)te+=C[I][0],C[I][1]!=null&&(te+=C[I][1],C[I][2]!=null&&(te+=" ",te+=C[I][2],C[I][3]!=null&&(te+=" ",te+=C[I][3],te+=" ",te+=C[I][4],C[I][5]!=null&&(te+=" ",te+=C[I][5],te+=" ",te+=C[I][6],C[I][7]!=null&&(te+=" ",te+=C[I][7])))));return te+" "}(this.value)},move:function(C,I){var $=this.bbox();return $.x,$.y,this},at:function(C){if(!this.destination)return this;for(var I=this.value,$=this.destination.value,te=[],ce=new o.PathArray,de=0,we=I.length;de<we;de++){te[de]=[I[de][0]];for(var Ce=1,Me=I[de].length;Ce<Me;Ce++)te[de][Ce]=I[de][Ce]+($[de][Ce]-I[de][Ce])*C;te[de][0]==="A"&&(te[de][4]=+(te[de][4]!=0),te[de][5]=+(te[de][5]!=0))}return ce.value=te,ce},parse:function(C){if(C instanceof o.PathArray)return C.valueOf();var I,$={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};C=typeof C=="string"?C.replace(o.regex.numbersWithDots,x).replace(o.regex.pathLetters," $& ").replace(o.regex.hyphen,"$1 -").trim().split(o.regex.delimiter):C.reduce(function(Me,Be){return[].concat.call(Me,Be)},[]);var te=[],ce=new o.Point,de=new o.Point,we=0,Ce=C.length;do o.regex.isPathLetter.test(C[we])?(I=C[we],++we):I=="M"?I="L":I=="m"&&(I="l"),te.push(i[I].call(null,C.slice(we,we+=$[I.toUpperCase()]).map(parseFloat),ce,de));while(Ce>we);return te},bbox:function(){return o.parser.draw||o.prepare(),o.parser.path.setAttribute("d",this.toString()),o.parser.path.getBBox()}}),o.Number=o.invent({create:function(C,I){this.value=0,this.unit=I||"",typeof C=="number"?this.value=isNaN(C)?0:isFinite(C)?C:C<0?-34e37:34e37:typeof C=="string"?(I=C.match(o.regex.numberAndUnit))&&(this.value=parseFloat(I[1]),I[5]=="%"?this.value/=100:I[5]=="s"&&(this.value*=1e3),this.unit=I[5]):C instanceof o.Number&&(this.value=C.valueOf(),this.unit=C.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(C){return C=new o.Number(C),new o.Number(this+C,this.unit||C.unit)},minus:function(C){return C=new o.Number(C),new o.Number(this-C,this.unit||C.unit)},times:function(C){return C=new o.Number(C),new o.Number(this*C,this.unit||C.unit)},divide:function(C){return C=new o.Number(C),new o.Number(this/C,this.unit||C.unit)},to:function(C){var I=new o.Number(this);return typeof C=="string"&&(I.unit=C),I},morph:function(C){return this.destination=new o.Number(C),C.relative&&(this.destination.value+=this.value),this},at:function(C){return this.destination?new o.Number(this.destination).minus(this).times(C).plus(this):this}}}),o.Element=o.invent({create:function(C){this._stroke=o.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=C)&&(this.type=C.nodeName,this.node.instance=this,this._stroke=C.getAttribute("stroke")||this._stroke)},extend:{x:function(C){return this.attr("x",C)},y:function(C){return this.attr("y",C)},cx:function(C){return C==null?this.x()+this.width()/2:this.x(C-this.width()/2)},cy:function(C){return C==null?this.y()+this.height()/2:this.y(C-this.height()/2)},move:function(C,I){return this.x(C).y(I)},center:function(C,I){return this.cx(C).cy(I)},width:function(C){return this.attr("width",C)},height:function(C){return this.attr("height",C)},size:function(C,I){var $=L(this,C,I);return this.width(new o.Number($.width)).height(new o.Number($.height))},clone:function(C){this.writeDataToDom();var I=q(this.node.cloneNode(!0));return C?C.add(I):this.after(I),I},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(C){return this.after(C).remove(),C},addTo:function(C){return C.put(this)},putIn:function(C){return C.add(this)},id:function(C){return this.attr("id",C)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var C=this.attr("class");return C==null?[]:C.trim().split(o.regex.delimiter)},hasClass:function(C){return this.classes().indexOf(C)!=-1},addClass:function(C){if(!this.hasClass(C)){var I=this.classes();I.push(C),this.attr("class",I.join(" "))}return this},removeClass:function(C){return this.hasClass(C)&&this.attr("class",this.classes().filter(function(I){return I!=C}).join(" ")),this},toggleClass:function(C){return this.hasClass(C)?this.removeClass(C):this.addClass(C)},reference:function(C){return o.get(this.attr(C))},parent:function(C){var I=this;if(!I.node.parentNode)return null;if(I=o.adopt(I.node.parentNode),!C)return I;for(;I&&I.node instanceof J.SVGElement;){if(typeof C=="string"?I.matches(C):I instanceof C)return I;if(!I.node.parentNode||I.node.parentNode.nodeName=="#document")return null;I=o.adopt(I.node.parentNode)}},doc:function(){return this instanceof o.Doc?this:this.parent(o.Doc)},parents:function(C){var I=[],$=this;do{if(!($=$.parent(C))||!$.node)break;I.push($)}while($.parent);return I},matches:function(C){return function(I,$){return(I.matches||I.matchesSelector||I.msMatchesSelector||I.mozMatchesSelector||I.webkitMatchesSelector||I.oMatchesSelector).call(I,$)}(this.node,C)},native:function(){return this.node},svg:function(C){var I=n.createElement("svg");if(!(C&&this instanceof o.Parent))return I.appendChild(C=n.createElement("svg")),this.writeDataToDom(),C.appendChild(this.node.cloneNode(!0)),I.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");I.innerHTML="<svg>"+C.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var $=0,te=I.firstChild.childNodes.length;$<te;$++)this.node.appendChild(I.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(C){return this.dom=C,this},is:function(C){return function(I,$){return I instanceof $}(this,C)}}}),o.easing={"-":function(C){return C},"<>":function(C){return-Math.cos(C*Math.PI)/2+.5},">":function(C){return Math.sin(C*Math.PI/2)},"<":function(C){return 1-Math.cos(C*Math.PI/2)}},o.morph=function(C){return function(I,$){return new o.MorphObj(I,$).at(C)}},o.Situation=o.invent({create:function(C){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new o.Number(C.duration).valueOf(),this.delay=new o.Number(C.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=C.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),o.FX=o.invent({create:function(C){this._target=C,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(C,I,$){s(C)==="object"&&(I=C.ease,$=C.delay,C=C.duration);var te=new o.Situation({duration:C||1e3,delay:$||0,ease:o.easing[I||"-"]||I});return this.queue(te),this},target:function(C){return C&&C instanceof o.Element?(this._target=C,this):this._target},timeToAbsPos:function(C){return(C-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(C){return this.situation.duration/this._speed*C+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=J.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){J.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(C){return(typeof C=="function"||C instanceof o.Situation)&&this.situations.push(C),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof o.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var C,I=this.situation;if(I.init)return this;for(var $ in I.animations){C=this.target()[$](),Array.isArray(C)||(C=[C]),Array.isArray(I.animations[$])||(I.animations[$]=[I.animations[$]]);for(var te=C.length;te--;)I.animations[$][te]instanceof o.Number&&(C[te]=new o.Number(C[te])),I.animations[$][te]=C[te].morph(I.animations[$][te])}for(var $ in I.attrs)I.attrs[$]=new o.MorphObj(this.target().attr($),I.attrs[$]);for(var $ in I.styles)I.styles[$]=new o.MorphObj(this.target().style($),I.styles[$]);return I.initialTransformation=this.target().matrixify(),I.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(C,I){var $=this.active;return this.active=!1,I&&this.clearQueue(),C&&this.situation&&(!$&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(C){var I=this.last();return this.target().on("finished.fx",function $(te){te.detail.situation==I&&(C.call(this,I),this.off("finished.fx",$))}),this._callStart()},during:function(C){var I=this.last(),$=function(te){te.detail.situation==I&&C.call(this,te.detail.pos,o.morph(te.detail.pos),te.detail.eased,I)};return this.target().off("during.fx",$).on("during.fx",$),this.after(function(){this.off("during.fx",$)}),this._callStart()},afterAll:function(C){var I=function $(te){C.call(this),this.off("allfinished.fx",$)};return this.target().off("allfinished.fx",I).on("allfinished.fx",I),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(C,I,$){return this.last()[$||"animations"][C]=I,this._callStart()},step:function(C){var I,$,te;C||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(I=Math.max(this.absPos,0),$=Math.floor(I),this.situation.loops===!0||$<this.situation.loops?(this.pos=I-$,te=this.situation.loop,this.situation.loop=$):(this.absPos=this.situation.loops,this.pos=1,te=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-te)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var ce=this.situation.ease(this.pos);for(var de in this.situation.once)de>this.lastPos&&de<=ce&&(this.situation.once[de].call(this.target(),this.pos,ce),delete this.situation.once[de]);return this.active&&this.target().fire("during",{pos:this.pos,eased:ce,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=ce,this):this},eachAt:function(){var C,I=this,$=this.target(),te=this.situation;for(var ce in te.animations)C=[].concat(te.animations[ce]).map(function(Ce){return typeof Ce!="string"&&Ce.at?Ce.at(te.ease(I.pos),I.pos):Ce}),$[ce].apply($,C);for(var ce in te.attrs)C=[ce].concat(te.attrs[ce]).map(function(Me){return typeof Me!="string"&&Me.at?Me.at(te.ease(I.pos),I.pos):Me}),$.attr.apply($,C);for(var ce in te.styles)C=[ce].concat(te.styles[ce]).map(function(Me){return typeof Me!="string"&&Me.at?Me.at(te.ease(I.pos),I.pos):Me}),$.style.apply($,C);if(te.transforms.length){C=te.initialTransformation,ce=0;for(var de=te.transforms.length;ce<de;ce++){var we=te.transforms[ce];we instanceof o.Matrix?C=we.relative?C.multiply(new o.Matrix().morph(we).at(te.ease(this.pos))):C.morph(we).at(te.ease(this.pos)):(we.relative||we.undo(C.extract()),C=C.multiply(we.at(te.ease(this.pos))))}$.matrix(C)}return this},once:function(C,I,$){var te=this.last();return $||(C=te.ease(C)),te.once[C]=I,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:o.Element,construct:{animate:function(C,I,$){return(this.fx||(this.fx=new o.FX(this))).animate(C,I,$)},delay:function(C){return(this.fx||(this.fx=new o.FX(this))).delay(C)},stop:function(C,I){return this.fx&&this.fx.stop(C,I),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),o.MorphObj=o.invent({create:function(C,I){return o.Color.isColor(I)?new o.Color(C).morph(I):o.regex.delimiter.test(C)?o.regex.pathLetters.test(C)?new o.PathArray(C).morph(I):new o.Array(C).morph(I):o.regex.numberAndUnit.test(I)?new o.Number(C).morph(I):(this.value=C,void(this.destination=I))},extend:{at:function(C,I){return I<1?this.value:this.destination},valueOf:function(){return this.value}}}),o.extend(o.FX,{attr:function(C,I,$){if(s(C)==="object")for(var te in C)this.attr(te,C[te]);else this.add(C,I,"attrs");return this},plot:function(C,I,$,te){return arguments.length==4?this.plot([C,I,$,te]):this.add("plot",new(this.target()).morphArray(C))}}),o.Box=o.invent({create:function(C,I,$,te){if(!(s(C)!=="object"||C instanceof o.Element))return o.Box.call(this,C.left!=null?C.left:C.x,C.top!=null?C.top:C.y,C.width,C.height);var ce;arguments.length==4&&(this.x=C,this.y=I,this.width=$,this.height=te),(ce=this).x==null&&(ce.x=0,ce.y=0,ce.width=0,ce.height=0),ce.w=ce.width,ce.h=ce.height,ce.x2=ce.x+ce.width,ce.y2=ce.y+ce.height,ce.cx=ce.x+ce.width/2,ce.cy=ce.y+ce.height/2}}),o.BBox=o.invent({create:function(C){if(o.Box.apply(this,[].slice.call(arguments)),C instanceof o.Element){var I;try{if(!n.documentElement.contains){for(var $=C.node;$.parentNode;)$=$.parentNode;if($!=n)throw new Error("Element not in the dom")}I=C.node.getBBox()}catch{if(C instanceof o.Shape){o.parser.draw||o.prepare();var te=C.clone(o.parser.draw.instance).show();te&&te.node&&typeof te.node.getBBox=="function"&&(I=te.node.getBBox()),te&&typeof te.remove=="function"&&te.remove()}else I={x:C.node.clientLeft,y:C.node.clientTop,width:C.node.clientWidth,height:C.node.clientHeight}}o.Box.call(this,I)}},inherit:o.Box,parent:o.Element,construct:{bbox:function(){return new o.BBox(this)}}}),o.BBox.prototype.constructor=o.BBox,o.Matrix=o.invent({create:function(C){var I=G([1,0,0,1,0,0]);C=C===null?I:C instanceof o.Element?C.matrixify():typeof C=="string"?G(C.split(o.regex.delimiter).map(parseFloat)):arguments.length==6?G([].slice.call(arguments)):Array.isArray(C)?G(C):C&&s(C)==="object"?C:I;for(var $=re.length-1;$>=0;--$)this[re[$]]=C[re[$]]!=null?C[re[$]]:I[re[$]]},extend:{extract:function(){var C=W(this,0,1);W(this,1,0);var I=180/Math.PI*Math.atan2(C.y,C.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(I*Math.PI/180)+this.f*Math.sin(I*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(I*Math.PI/180)+this.e*Math.sin(-I*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:I,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new o.Matrix(this)}},clone:function(){return new o.Matrix(this)},morph:function(C){return this.destination=new o.Matrix(C),this},multiply:function(C){return new o.Matrix(this.native().multiply(function(I){return I instanceof o.Matrix||(I=new o.Matrix(I)),I}(C).native()))},inverse:function(){return new o.Matrix(this.native().inverse())},translate:function(C,I){return new o.Matrix(this.native().translate(C||0,I||0))},native:function(){for(var C=o.parser.native.createSVGMatrix(),I=re.length-1;I>=0;I--)C[re[I]]=this[re[I]];return C},toString:function(){return"matrix("+Q(this.a)+","+Q(this.b)+","+Q(this.c)+","+Q(this.d)+","+Q(this.e)+","+Q(this.f)+")"}},parent:o.Element,construct:{ctm:function(){return new o.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof o.Nested){var C=this.rect(1,1),I=C.node.getScreenCTM();return C.remove(),new o.Matrix(I)}return new o.Matrix(this.node.getScreenCTM())}}}),o.Point=o.invent({create:function(C,I){var $;$=Array.isArray(C)?{x:C[0],y:C[1]}:s(C)==="object"?{x:C.x,y:C.y}:C!=null?{x:C,y:I??C}:{x:0,y:0},this.x=$.x,this.y=$.y},extend:{clone:function(){return new o.Point(this)},morph:function(C,I){return this.destination=new o.Point(C,I),this}}}),o.extend(o.Element,{point:function(C,I){return new o.Point(C,I).transform(this.screenCTM().inverse())}}),o.extend(o.Element,{attr:function(C,I,$){if(C==null){for(C={},$=(I=this.node.attributes).length-1;$>=0;$--)C[I[$].nodeName]=o.regex.isNumber.test(I[$].nodeValue)?parseFloat(I[$].nodeValue):I[$].nodeValue;return C}if(s(C)==="object")for(var te in C)this.attr(te,C[te]);else if(I===null)this.node.removeAttribute(C);else{if(I==null)return(I=this.node.getAttribute(C))==null?o.defaults.attrs[C]:o.regex.isNumber.test(I)?parseFloat(I):I;C=="stroke-width"?this.attr("stroke",parseFloat(I)>0?this._stroke:null):C=="stroke"&&(this._stroke=I),C!="fill"&&C!="stroke"||(o.regex.isImage.test(I)&&(I=this.doc().defs().image(I,0,0)),I instanceof o.Image&&(I=this.doc().defs().pattern(0,0,function(){this.add(I)}))),typeof I=="number"?I=new o.Number(I):o.Color.isColor(I)?I=new o.Color(I):Array.isArray(I)&&(I=new o.Array(I)),C=="leading"?this.leading&&this.leading(I):typeof $=="string"?this.node.setAttributeNS($,C,I.toString()):this.node.setAttribute(C,I.toString()),!this.rebuild||C!="font-size"&&C!="x"||this.rebuild(C,I)}return this}}),o.extend(o.Element,{transform:function(C,I){var $;return s(C)!=="object"?($=new o.Matrix(this).extract(),typeof C=="string"?$[C]:$):($=new o.Matrix(this),I=!!I||!!C.relative,C.a!=null&&($=I?$.multiply(new o.Matrix(C)):new o.Matrix(C)),this.attr("transform",$))}}),o.extend(o.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(o.regex.transforms).slice(0,-1).map(function(C){var I=C.trim().split("(");return[I[0],I[1].split(o.regex.delimiter).map(function($){return parseFloat($)})]}).reduce(function(C,I){return I[0]=="matrix"?C.multiply(G(I[1])):C[I[0]].apply(C,I[1])},new o.Matrix)},toParent:function(C){if(this==C)return this;var I=this.screenCTM(),$=C.screenCTM().inverse();return this.addTo(C).untransform().transform($.multiply(I)),this},toDoc:function(){return this.toParent(this.doc())}}),o.Transformation=o.invent({create:function(C,I){if(arguments.length>1&&typeof I!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(C))for(var $=0,te=this.arguments.length;$<te;++$)this[this.arguments[$]]=C[$];else if(C&&s(C)==="object")for($=0,te=this.arguments.length;$<te;++$)this[this.arguments[$]]=C[this.arguments[$]];this.inversed=!1,I===!0&&(this.inversed=!0)}}),o.Translate=o.invent({parent:o.Matrix,inherit:o.Transformation,create:function(C,I){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),o.extend(o.Element,{style:function(C,I){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(s(C)==="object")for(var $ in C)this.style($,C[$]);else{if(!o.regex.isCss.test(C))return this.node.style[k(C)];for(C=C.split(/\s*;\s*/).filter(function(te){return!!te}).map(function(te){return te.split(/\s*:\s*/)});I=C.pop();)this.style(I[0],I[1])}else this.node.style[k(C)]=I===null||o.regex.isBlank.test(I)?"":I;return this}}),o.Parent=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Element,extend:{children:function(){return o.utils.map(o.utils.filterSVGElements(this.node.childNodes),function(C){return o.adopt(C)})},add:function(C,I){return I==null?this.node.appendChild(C.node):C.node!=this.node.childNodes[I]&&this.node.insertBefore(C.node,this.node.childNodes[I]),this},put:function(C,I){return this.add(C,I),C},has:function(C){return this.index(C)>=0},index:function(C){return[].slice.call(this.node.childNodes).indexOf(C.node)},get:function(C){return o.adopt(this.node.childNodes[C])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(C,I){for(var $=this.children(),te=0,ce=$.length;te<ce;te++)$[te]instanceof o.Element&&C.apply($[te],[te,$]),I&&$[te]instanceof o.Container&&$[te].each(C,I);return this},removeElement:function(C){return this.node.removeChild(C.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),o.extend(o.Parent,{ungroup:function(C,I){return I===0||this instanceof o.Defs||this.node==o.parser.draw||(C=C||(this instanceof o.Doc?this:this.parent(o.Parent)),I=I||1/0,this.each(function(){return this instanceof o.Defs?this:this instanceof o.Parent?this.ungroup(C,I-1):this.toParent(C)}),this.node.firstChild||this.remove()),this},flatten:function(C,I){return this.ungroup(C,I)}}),o.Container=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Parent}),o.ViewBox=o.invent({parent:o.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(C){o.Element.prototype[C]=function(I){return o.on(this.node,C,I),this}}),o.listeners=[],o.handlerMap=[],o.listenerId=0,o.on=function(C,I,$,te,ce){var de=$.bind(te||C.instance||C),we=(o.handlerMap.indexOf(C)+1||o.handlerMap.push(C))-1,Ce=I.split(".")[0],Me=I.split(".")[1]||"*";o.listeners[we]=o.listeners[we]||{},o.listeners[we][Ce]=o.listeners[we][Ce]||{},o.listeners[we][Ce][Me]=o.listeners[we][Ce][Me]||{},$._svgjsListenerId||($._svgjsListenerId=++o.listenerId),o.listeners[we][Ce][Me][$._svgjsListenerId]=de,C.addEventListener(Ce,de,ce||{passive:!0})},o.off=function(C,I,$){var te=o.handlerMap.indexOf(C),ce=I&&I.split(".")[0],de=I&&I.split(".")[1],we="";if(te!=-1)if($){if(typeof $=="function"&&($=$._svgjsListenerId),!$)return;o.listeners[te][ce]&&o.listeners[te][ce][de||"*"]&&(C.removeEventListener(ce,o.listeners[te][ce][de||"*"][$],!1),delete o.listeners[te][ce][de||"*"][$])}else if(de&&ce){if(o.listeners[te][ce]&&o.listeners[te][ce][de]){for(var Ce in o.listeners[te][ce][de])o.off(C,[ce,de].join("."),Ce);delete o.listeners[te][ce][de]}}else if(de)for(var Me in o.listeners[te])for(var we in o.listeners[te][Me])de===we&&o.off(C,[Me,de].join("."));else if(ce){if(o.listeners[te][ce]){for(var we in o.listeners[te][ce])o.off(C,[ce,we].join("."));delete o.listeners[te][ce]}}else{for(var Me in o.listeners[te])o.off(C,Me);delete o.listeners[te],delete o.handlerMap[te]}},o.extend(o.Element,{on:function(C,I,$,te){return o.on(this.node,C,I,$,te),this},off:function(C,I){return o.off(this.node,C,I),this},fire:function(C,I){return C instanceof J.Event?this.node.dispatchEvent(C):this.node.dispatchEvent(C=new o.CustomEvent(C,{detail:I,cancelable:!0})),this._event=C,this},event:function(){return this._event}}),o.Defs=o.invent({create:"defs",inherit:o.Container}),o.G=o.invent({create:"g",inherit:o.Container,extend:{x:function(C){return C==null?this.transform("x"):this.transform({x:C-this.x()},!0)}},construct:{group:function(){return this.put(new o.G)}}}),o.Doc=o.invent({create:function(C){C&&((C=typeof C=="string"?n.getElementById(C):C).nodeName=="svg"?this.constructor.call(this,C):(this.constructor.call(this,o.create("svg")),C.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:o.Container,extend:{namespace:function(){return this.attr({xmlns:o.ns,version:"1.1"}).attr("xmlns:xlink",o.xlink,o.xmlns).attr("xmlns:svgjs",o.svgjs,o.xmlns)},defs:function(){var C;return this._defs||((C=this.node.getElementsByTagName("defs")[0])?this._defs=o.adopt(C):this._defs=new o.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,o.parser.draw&&!o.parser.draw.parentNode&&this.node.appendChild(o.parser.draw),this},clone:function(C){this.writeDataToDom();var I=this.node,$=q(I.cloneNode(!0));return C?(C.node||C).appendChild($.node):I.parentNode.insertBefore($.node,I.nextSibling),$}}}),o.extend(o.Element,{}),o.Gradient=o.invent({create:function(C){this.constructor.call(this,o.create(C+"Gradient")),this.type=C},inherit:o.Container,extend:{at:function(C,I,$){return this.put(new o.Stop).update(C,I,$)},update:function(C){return this.clear(),typeof C=="function"&&C.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(C,I,$){return C=="transform"&&(C="gradientTransform"),o.Container.prototype.attr.call(this,C,I,$)}},construct:{gradient:function(C,I){return this.defs().gradient(C,I)}}}),o.extend(o.Gradient,o.FX,{from:function(C,I){return(this._target||this).type=="radial"?this.attr({fx:new o.Number(C),fy:new o.Number(I)}):this.attr({x1:new o.Number(C),y1:new o.Number(I)})},to:function(C,I){return(this._target||this).type=="radial"?this.attr({cx:new o.Number(C),cy:new o.Number(I)}):this.attr({x2:new o.Number(C),y2:new o.Number(I)})}}),o.extend(o.Defs,{gradient:function(C,I){return this.put(new o.Gradient(C)).update(I)}}),o.Stop=o.invent({create:"stop",inherit:o.Element,extend:{update:function(C){return(typeof C=="number"||C instanceof o.Number)&&(C={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),C.opacity!=null&&this.attr("stop-opacity",C.opacity),C.color!=null&&this.attr("stop-color",C.color),C.offset!=null&&this.attr("offset",new o.Number(C.offset)),this}}}),o.Pattern=o.invent({create:"pattern",inherit:o.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(C){return this.clear(),typeof C=="function"&&C.call(this,this),this},toString:function(){return this.fill()},attr:function(C,I,$){return C=="transform"&&(C="patternTransform"),o.Container.prototype.attr.call(this,C,I,$)}},construct:{pattern:function(C,I,$){return this.defs().pattern(C,I,$)}}}),o.extend(o.Defs,{pattern:function(C,I,$){return this.put(new o.Pattern).update($).attr({x:0,y:0,width:C,height:I,patternUnits:"userSpaceOnUse"})}}),o.Shape=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Element}),o.Symbol=o.invent({create:"symbol",inherit:o.Container,construct:{symbol:function(){return this.put(new o.Symbol)}}}),o.Use=o.invent({create:"use",inherit:o.Shape,extend:{element:function(C,I){return this.attr("href",(I||"")+"#"+C,o.xlink)}},construct:{use:function(C,I){return this.put(new o.Use).element(C,I)}}}),o.Rect=o.invent({create:"rect",inherit:o.Shape,construct:{rect:function(C,I){return this.put(new o.Rect).size(C,I)}}}),o.Circle=o.invent({create:"circle",inherit:o.Shape,construct:{circle:function(C){return this.put(new o.Circle).rx(new o.Number(C).divide(2)).move(0,0)}}}),o.extend(o.Circle,o.FX,{rx:function(C){return this.attr("r",C)},ry:function(C){return this.rx(C)}}),o.Ellipse=o.invent({create:"ellipse",inherit:o.Shape,construct:{ellipse:function(C,I){return this.put(new o.Ellipse).size(C,I).move(0,0)}}}),o.extend(o.Ellipse,o.Rect,o.FX,{rx:function(C){return this.attr("rx",C)},ry:function(C){return this.attr("ry",C)}}),o.extend(o.Circle,o.Ellipse,{x:function(C){return C==null?this.cx()-this.rx():this.cx(C+this.rx())},y:function(C){return C==null?this.cy()-this.ry():this.cy(C+this.ry())},cx:function(C){return C==null?this.attr("cx"):this.attr("cx",C)},cy:function(C){return C==null?this.attr("cy"):this.attr("cy",C)},width:function(C){return C==null?2*this.rx():this.rx(new o.Number(C).divide(2))},height:function(C){return C==null?2*this.ry():this.ry(new o.Number(C).divide(2))},size:function(C,I){var $=L(this,C,I);return this.rx(new o.Number($.width).divide(2)).ry(new o.Number($.height).divide(2))}}),o.Line=o.invent({create:"line",inherit:o.Shape,extend:{array:function(){return new o.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(C,I,$,te){return C==null?this.array():(C=I!==void 0?{x1:C,y1:I,x2:$,y2:te}:new o.PointArray(C).toLine(),this.attr(C))},move:function(C,I){return this.attr(this.array().move(C,I).toLine())},size:function(C,I){var $=L(this,C,I);return this.attr(this.array().size($.width,$.height).toLine())}},construct:{line:function(C,I,$,te){return o.Line.prototype.plot.apply(this.put(new o.Line),C!=null?[C,I,$,te]:[0,0,0,0])}}}),o.Polyline=o.invent({create:"polyline",inherit:o.Shape,construct:{polyline:function(C){return this.put(new o.Polyline).plot(C||new o.PointArray)}}}),o.Polygon=o.invent({create:"polygon",inherit:o.Shape,construct:{polygon:function(C){return this.put(new o.Polygon).plot(C||new o.PointArray)}}}),o.extend(o.Polyline,o.Polygon,{array:function(){return this._array||(this._array=new o.PointArray(this.attr("points")))},plot:function(C){return C==null?this.array():this.clear().attr("points",typeof C=="string"?C:this._array=new o.PointArray(C))},clear:function(){return delete this._array,this},move:function(C,I){return this.attr("points",this.array().move(C,I))},size:function(C,I){var $=L(this,C,I);return this.attr("points",this.array().size($.width,$.height))}}),o.extend(o.Line,o.Polyline,o.Polygon,{morphArray:o.PointArray,x:function(C){return C==null?this.bbox().x:this.move(C,this.bbox().y)},y:function(C){return C==null?this.bbox().y:this.move(this.bbox().x,C)},width:function(C){var I=this.bbox();return C==null?I.width:this.size(C,I.height)},height:function(C){var I=this.bbox();return C==null?I.height:this.size(I.width,C)}}),o.Path=o.invent({create:"path",inherit:o.Shape,extend:{morphArray:o.PathArray,array:function(){return this._array||(this._array=new o.PathArray(this.attr("d")))},plot:function(C){return C==null?this.array():this.clear().attr("d",typeof C=="string"?C:this._array=new o.PathArray(C))},clear:function(){return delete this._array,this}},construct:{path:function(C){return this.put(new o.Path).plot(C||new o.PathArray)}}}),o.Image=o.invent({create:"image",inherit:o.Shape,extend:{load:function(C){if(!C)return this;var I=this,$=new J.Image;return o.on($,"load",function(){o.off($);var te=I.parent(o.Pattern);te!==null&&(I.width()==0&&I.height()==0&&I.size($.width,$.height),te&&te.width()==0&&te.height()==0&&te.size(I.width(),I.height()),typeof I._loaded=="function"&&I._loaded.call(I,{width:$.width,height:$.height,ratio:$.width/$.height,url:C}))}),o.on($,"error",function(te){o.off($),typeof I._error=="function"&&I._error.call(I,te)}),this.attr("href",$.src=this.src=C,o.xlink)},loaded:function(C){return this._loaded=C,this},error:function(C){return this._error=C,this}},construct:{image:function(C,I,$){return this.put(new o.Image).load(C).size(I||0,$||I||0)}}}),o.Text=o.invent({create:function(){this.constructor.call(this,o.create("text")),this.dom.leading=new o.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",o.defaults.attrs["font-family"])},inherit:o.Shape,extend:{x:function(C){return C==null?this.attr("x"):this.attr("x",C)},text:function(C){if(C===void 0){C="";for(var I=this.node.childNodes,$=0,te=I.length;$<te;++$)$!=0&&I[$].nodeType!=3&&o.adopt(I[$]).dom.newLined==1&&(C+=`
`),C+=I[$].textContent;return C}if(this.clear().build(!0),typeof C=="function")C.call(this,this);else{$=0;for(var ce=(C=C.split(`
`)).length;$<ce;$++)this.tspan(C[$]).newLine()}return this.build(!1).rebuild()},size:function(C){return this.attr("font-size",C).rebuild()},leading:function(C){return C==null?this.dom.leading:(this.dom.leading=new o.Number(C),this.rebuild())},lines:function(){var C=(this.textPath&&this.textPath()||this).node,I=o.utils.map(o.utils.filterSVGElements(C.childNodes),function($){return o.adopt($)});return new o.Set(I)},rebuild:function(C){if(typeof C=="boolean"&&(this._rebuild=C),this._rebuild){var I=this,$=0,te=this.dom.leading*new o.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(I.textPath()||this.attr("x",I.attr("x")),this.text()==`
`?$+=te:(this.attr("dy",te+$),$=0))}),this.fire("rebuild")}return this},build:function(C){return this._build=!!C,this},setData:function(C){return this.dom=C,this.dom.leading=new o.Number(C.leading||1.3),this}},construct:{text:function(C){return this.put(new o.Text).text(C)},plain:function(C){return this.put(new o.Text).plain(C)}}}),o.Tspan=o.invent({create:"tspan",inherit:o.Shape,extend:{text:function(C){return C==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof C=="function"?C.call(this,this):this.plain(C),this)},dx:function(C){return this.attr("dx",C)},dy:function(C){return this.attr("dy",C)},newLine:function(){var C=this.parent(o.Text);return this.dom.newLined=!0,this.dy(C.dom.leading*C.attr("font-size")).attr("x",C.x())}}}),o.extend(o.Text,o.Tspan,{plain:function(C){return this._build===!1&&this.clear(),this.node.appendChild(n.createTextNode(C)),this},tspan:function(C){var I=(this.textPath&&this.textPath()||this).node,$=new o.Tspan;return this._build===!1&&this.clear(),I.appendChild($.node),$.text(C)},clear:function(){for(var C=(this.textPath&&this.textPath()||this).node;C.hasChildNodes();)C.removeChild(C.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),o.TextPath=o.invent({create:"textPath",inherit:o.Parent,parent:o.Text,construct:{morphArray:o.PathArray,array:function(){var C=this.track();return C?C.array():null},plot:function(C){var I=this.track(),$=null;return I&&($=I.plot(C)),C==null?$:this},track:function(){var C=this.textPath();if(C)return C.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return o.adopt(this.node.firstChild)}}}),o.Nested=o.invent({create:function(){this.constructor.call(this,o.create("svg")),this.style("overflow","visible")},inherit:o.Container,construct:{nested:function(){return this.put(new o.Nested)}}});var h={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(C,I){return I=="color"?C:C+"-"+I}};function x(C,I,$,te){return $+te.replace(o.regex.dots," .")}function k(C){return C.toLowerCase().replace(/-(.)/g,function(I,$){return $.toUpperCase()})}function E(C){return C.charAt(0).toUpperCase()+C.slice(1)}function N(C){var I=C.toString(16);return I.length==1?"0"+I:I}function L(C,I,$){if(I==null||$==null){var te=C.bbox();I==null?I=te.width/te.height*$:$==null&&($=te.height/te.width*I)}return{width:I,height:$}}function W(C,I,$){return{x:I*C.a+$*C.c+0,y:I*C.b+$*C.d+0}}function G(C){return{a:C[0],b:C[1],c:C[2],d:C[3],e:C[4],f:C[5]}}function q(C){for(var I=C.childNodes.length-1;I>=0;I--)C.childNodes[I]instanceof J.SVGElement&&q(C.childNodes[I]);return o.adopt(C).id(o.eid(C.nodeName))}function Q(C){return Math.abs(C)>1e-37?C:0}["fill","stroke"].forEach(function(C){var I={};I[C]=function($){if($===void 0)return this;if(typeof $=="string"||o.Color.isRgb($)||$&&typeof $.fill=="function")this.attr(C,$);else for(var te=h[C].length-1;te>=0;te--)$[h[C][te]]!=null&&this.attr(h.prefix(C,h[C][te]),$[h[C][te]]);return this},o.extend(o.Element,o.FX,I)}),o.extend(o.Element,o.FX,{translate:function(C,I){return this.transform({x:C,y:I})},matrix:function(C){return this.attr("transform",new o.Matrix(arguments.length==6?[].slice.call(arguments):C))},opacity:function(C){return this.attr("opacity",C)},dx:function(C){return this.x(new o.Number(C).plus(this instanceof o.FX?0:this.x()),!0)},dy:function(C){return this.y(new o.Number(C).plus(this instanceof o.FX?0:this.y()),!0)}}),o.extend(o.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(C){return this.node.getPointAtLength(C)}}),o.Set=o.invent({create:function(C){Array.isArray(C)?this.members=C:this.clear()},extend:{add:function(){for(var C=[].slice.call(arguments),I=0,$=C.length;I<$;I++)this.members.push(C[I]);return this},remove:function(C){var I=this.index(C);return I>-1&&this.members.splice(I,1),this},each:function(C){for(var I=0,$=this.members.length;I<$;I++)C.apply(this.members[I],[I,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(C){return this.index(C)>=0},index:function(C){return this.members.indexOf(C)},get:function(C){return this.members[C]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(C){return new o.Set(C)}}}),o.FX.Set=o.invent({create:function(C){this.set=C}}),o.Set.inherit=function(){var C=[];for(var I in o.Shape.prototype)typeof o.Shape.prototype[I]=="function"&&typeof o.Set.prototype[I]!="function"&&C.push(I);for(var I in C.forEach(function(te){o.Set.prototype[te]=function(){for(var ce=0,de=this.members.length;ce<de;ce++)this.members[ce]&&typeof this.members[ce][te]=="function"&&this.members[ce][te].apply(this.members[ce],arguments);return te=="animate"?this.fx||(this.fx=new o.FX.Set(this)):this}}),C=[],o.FX.prototype)typeof o.FX.prototype[I]=="function"&&typeof o.FX.Set.prototype[I]!="function"&&C.push(I);C.forEach(function($){o.FX.Set.prototype[$]=function(){for(var te=0,ce=this.set.members.length;te<ce;te++)this.set.members[te].fx[$].apply(this.set.members[te].fx,arguments);return this}})},o.extend(o.Element,{}),o.extend(o.Element,{remember:function(C,I){if(s(arguments[0])==="object")for(var $ in C)this.remember($,C[$]);else{if(arguments.length==1)return this.memory()[C];this.memory()[C]=I}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var C=arguments.length-1;C>=0;C--)delete this.memory()[arguments[C]];return this},memory:function(){return this._memory||(this._memory={})}}),o.get=function(C){var I=n.getElementById(function($){var te=($||"").toString().match(o.regex.reference);if(te)return te[1]}(C)||C);return o.adopt(I)},o.select=function(C,I){return new o.Set(o.utils.map((I||n).querySelectorAll(C),function($){return o.adopt($)}))},o.extend(o.Parent,{select:function(C){return o.select(C,this.node)}});var re="abcdef".split("");if(typeof J.CustomEvent!="function"){var ie=function(C,I){I=I||{bubbles:!1,cancelable:!1,detail:void 0};var $=n.createEvent("CustomEvent");return $.initCustomEvent(C,I.bubbles,I.cancelable,I.detail),$};ie.prototype=J.Event.prototype,o.CustomEvent=ie}else o.CustomEvent=J.CustomEvent;return o},s(t)==="object"?e.exports=On.document?Zn(On,On.document):function(J){return Zn(J,J.document)}:On.SVG=Zn(On,On.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(d,h){return this.add(d,h),!d.attr("in")&&this.autoSetIn&&d.attr("in",this.source),d.attr("result")||d.attr("result",d),d},blend:function(d,h,x){return this.put(new SVG.BlendEffect(d,h,x))},colorMatrix:function(d,h){return this.put(new SVG.ColorMatrixEffect(d,h))},convolveMatrix:function(d){return this.put(new SVG.ConvolveMatrixEffect(d))},componentTransfer:function(d){return this.put(new SVG.ComponentTransferEffect(d))},composite:function(d,h,x){return this.put(new SVG.CompositeEffect(d,h,x))},flood:function(d,h){return this.put(new SVG.FloodEffect(d,h))},offset:function(d,h){return this.put(new SVG.OffsetEffect(d,h))},image:function(d){return this.put(new SVG.ImageEffect(d))},merge:function(){var d=[void 0];for(var h in arguments)d.push(arguments[h]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,d)))},gaussianBlur:function(d,h){return this.put(new SVG.GaussianBlurEffect(d,h))},morphology:function(d,h){return this.put(new SVG.MorphologyEffect(d,h))},diffuseLighting:function(d,h,x){return this.put(new SVG.DiffuseLightingEffect(d,h,x))},displacementMap:function(d,h,x,k,E){return this.put(new SVG.DisplacementMapEffect(d,h,x,k,E))},specularLighting:function(d,h,x,k){return this.put(new SVG.SpecularLightingEffect(d,h,x,k))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(d,h,x,k,E){return this.put(new SVG.TurbulenceEffect(d,h,x,k,E))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(d){var h=this.put(new SVG.Filter);return typeof d=="function"&&d.call(h,h),h}}),SVG.extend(SVG.Container,{filter:function(d){return this.defs().filter(d)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(d){return this.filterer=d instanceof SVG.Element?d:this.doc().filter(d),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(d){return this.filterer&&d===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",d)},result:function(d){return d==null?this.attr("result"):this.attr("result",d)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",d)},result:function(d){return d==null?this.attr("result"):this.attr("result",d)},toString:function(){return this.result()}}});var J={blend:function(d,h){return this.parent()&&this.parent().blend(this,d,h)},colorMatrix:function(d,h){return this.parent()&&this.parent().colorMatrix(d,h).in(this)},convolveMatrix:function(d){return this.parent()&&this.parent().convolveMatrix(d).in(this)},componentTransfer:function(d){return this.parent()&&this.parent().componentTransfer(d).in(this)},composite:function(d,h){return this.parent()&&this.parent().composite(this,d,h)},flood:function(d,h){return this.parent()&&this.parent().flood(d,h)},offset:function(d,h){return this.parent()&&this.parent().offset(d,h).in(this)},image:function(d){return this.parent()&&this.parent().image(d)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(d,h){return this.parent()&&this.parent().gaussianBlur(d,h).in(this)},morphology:function(d,h){return this.parent()&&this.parent().morphology(d,h).in(this)},diffuseLighting:function(d,h,x){return this.parent()&&this.parent().diffuseLighting(d,h,x).in(this)},displacementMap:function(d,h,x,k){return this.parent()&&this.parent().displacementMap(this,d,h,x,k)},specularLighting:function(d,h,x,k){return this.parent()&&this.parent().specularLighting(d,h,x,k).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(d,h,x,k,E){return this.parent()&&this.parent().turbulence(d,h,x,k,E).in(this)}};SVG.extend(SVG.Effect,J),SVG.extend(SVG.ParentEffect,J),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(d){this.attr("in",d)}}});var n={blend:function(d,h,x){this.attr({in:d,in2:h,mode:x||"normal"})},colorMatrix:function(d,h){d=="matrix"&&(h=u(h)),this.attr({type:d,values:h===void 0?null:h})},convolveMatrix:function(d){d=u(d),this.attr({order:Math.sqrt(d.split(" ").length),kernelMatrix:d})},composite:function(d,h,x){this.attr({in:d,in2:h,operator:x})},flood:function(d,h){this.attr("flood-color",d),h!=null&&this.attr("flood-opacity",h)},offset:function(d,h){this.attr({dx:d,dy:h})},image:function(d){this.attr("href",d,SVG.xlink)},displacementMap:function(d,h,x,k,E){this.attr({in:d,in2:h,scale:x,xChannelSelector:k,yChannelSelector:E})},gaussianBlur:function(d,h){d!=null||h!=null?this.attr("stdDeviation",function(x){if(!Array.isArray(x))return x;for(var k=0,E=x.length,N=[];k<E;k++)N.push(x[k]);return N.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(d,h){this.attr({operator:d,radius:h})},tile:function(){},turbulence:function(d,h,x,k,E){this.attr({numOctaves:h,seed:x,stitchTiles:k,baseFrequency:d,type:E})}},o={merge:function(){var d;if(arguments[0]instanceof SVG.Set){var h=this;arguments[0].each(function(k){this instanceof SVG.MergeNode?h.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&h.put(new SVG.MergeNode(this))})}else{d=Array.isArray(arguments[0])?arguments[0]:arguments;for(var x=0;x<d.length;x++)d[x]instanceof SVG.MergeNode?this.put(d[x]):this.put(new SVG.MergeNode(d[x]))}},componentTransfer:function(d){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(x){this[x]=new SVG["Func"+x.toUpperCase()]("identity"),this.rgb.add(this[x]),this.node.appendChild(this[x].node)}).bind(this)),d)for(var h in d.rgb&&(["r","g","b"].forEach((function(x){this[x].attr(d.rgb)}).bind(this)),delete d.rgb),d)this[h].attr(d[h])},diffuseLighting:function(d,h,x){this.attr({surfaceScale:d,diffuseConstant:h,kernelUnitLength:x})},specularLighting:function(d,h,x,k){this.attr({surfaceScale:d,diffuseConstant:h,specularExponent:x,kernelUnitLength:k})}},i={distantLight:function(d,h){this.attr({azimuth:d,elevation:h})},pointLight:function(d,h,x){this.attr({x:d,y:h,z:x})},spotLight:function(d,h,x,k,E,N){this.attr({x:d,y:h,z:x,pointsAtX:k,pointsAtY:E,pointsAtZ:N})},mergeNode:function(d){this.attr("in",d)}};function u(d){return Array.isArray(d)&&(d=new SVG.Array(d)),d.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function c(){var d=function(){};for(var h in typeof arguments[arguments.length-1]=="function"&&(d=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var x in arguments[h])d(arguments[h][x],x,arguments[h])}["r","g","b","a"].forEach(function(d){i["Func"+d.toUpperCase()]=function(h){switch(this.attr("type",h),h){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),c(n,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),c(o,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),c(i,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(d){return d instanceof SVG.MergeNode?this.add(d,0):this.add(new SVG.MergeNode(d),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",d)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function J(c,d,h,x,k,E,N){for(var L=c.slice(d,h||N),W=x.slice(k,E||N),G=0,q={pos:[0,0],start:[0,0]},Q={pos:[0,0],start:[0,0]};L[G]=n.call(q,L[G]),W[G]=n.call(Q,W[G]),L[G][0]!=W[G][0]||L[G][0]=="M"||L[G][0]=="A"&&(L[G][4]!=W[G][4]||L[G][5]!=W[G][5])?(Array.prototype.splice.apply(L,[G,1].concat(i.call(q,L[G]))),Array.prototype.splice.apply(W,[G,1].concat(i.call(Q,W[G])))):(L[G]=o.call(q,L[G]),W[G]=o.call(Q,W[G])),!(++G==L.length&&G==W.length);)G==L.length&&L.push(["C",q.pos[0],q.pos[1],q.pos[0],q.pos[1],q.pos[0],q.pos[1]]),G==W.length&&W.push(["C",Q.pos[0],Q.pos[1],Q.pos[0],Q.pos[1],Q.pos[0],Q.pos[1]]);return{start:L,dest:W}}function n(c){switch(c[0]){case"z":case"Z":c[0]="L",c[1]=this.start[0],c[2]=this.start[1];break;case"H":c[0]="L",c[2]=this.pos[1];break;case"V":c[0]="L",c[2]=c[1],c[1]=this.pos[0];break;case"T":c[0]="Q",c[3]=c[1],c[4]=c[2],c[1]=this.reflection[1],c[2]=this.reflection[0];break;case"S":c[0]="C",c[6]=c[4],c[5]=c[3],c[4]=c[2],c[3]=c[1],c[2]=this.reflection[1],c[1]=this.reflection[0]}return c}function o(c){var d=c.length;return this.pos=[c[d-2],c[d-1]],"SCQT".indexOf(c[0])!=-1&&(this.reflection=[2*this.pos[0]-c[d-4],2*this.pos[1]-c[d-3]]),c}function i(c){var d=[c];switch(c[0]){case"M":return this.pos=this.start=[c[1],c[2]],d;case"L":c[5]=c[3]=c[1],c[6]=c[4]=c[2],c[1]=this.pos[0],c[2]=this.pos[1];break;case"Q":c[6]=c[4],c[5]=c[3],c[4]=1*c[4]/3+2*c[2]/3,c[3]=1*c[3]/3+2*c[1]/3,c[2]=1*this.pos[1]/3+2*c[2]/3,c[1]=1*this.pos[0]/3+2*c[1]/3;break;case"A":d=function(h,x){var k,E,N,L,W,G,q,Q,re,ie,C,I,$,te,ce,de,we,Ce,Me,Be,ze,$e,Ze,ct,mt,Pt,zt=Math.abs(x[1]),Rt=Math.abs(x[2]),Wt=x[3]%360,Rr=x[4],Qn=x[5],ms=x[6],ai=x[7],sr=new SVG.Point(h),fr=new SVG.Point(ms,ai),ys=[];if(zt===0||Rt===0||sr.x===fr.x&&sr.y===fr.y)return[["C",sr.x,sr.y,fr.x,fr.y,fr.x,fr.y]];for(k=new SVG.Point((sr.x-fr.x)/2,(sr.y-fr.y)/2).transform(new SVG.Matrix().rotate(Wt)),(E=k.x*k.x/(zt*zt)+k.y*k.y/(Rt*Rt))>1&&(zt*=E=Math.sqrt(E),Rt*=E),N=new SVG.Matrix().rotate(Wt).scale(1/zt,1/Rt).rotate(-Wt),sr=sr.transform(N),fr=fr.transform(N),L=[fr.x-sr.x,fr.y-sr.y],G=L[0]*L[0]+L[1]*L[1],W=Math.sqrt(G),L[0]/=W,L[1]/=W,q=G<4?Math.sqrt(1-G/4):0,Rr===Qn&&(q*=-1),Q=new SVG.Point((fr.x+sr.x)/2+q*-L[1],(fr.y+sr.y)/2+q*L[0]),re=new SVG.Point(sr.x-Q.x,sr.y-Q.y),ie=new SVG.Point(fr.x-Q.x,fr.y-Q.y),C=Math.acos(re.x/Math.sqrt(re.x*re.x+re.y*re.y)),re.y<0&&(C*=-1),I=Math.acos(ie.x/Math.sqrt(ie.x*ie.x+ie.y*ie.y)),ie.y<0&&(I*=-1),Qn&&C>I&&(I+=2*Math.PI),!Qn&&C<I&&(I-=2*Math.PI),te=Math.ceil(2*Math.abs(C-I)/Math.PI),de=[],we=C,$=(I-C)/te,ce=4*Math.tan($/4)/3,ze=0;ze<=te;ze++)Me=Math.cos(we),Ce=Math.sin(we),Be=new SVG.Point(Q.x+Me,Q.y+Ce),de[ze]=[new SVG.Point(Be.x+ce*Ce,Be.y-ce*Me),Be,new SVG.Point(Be.x-ce*Ce,Be.y+ce*Me)],we+=$;for(de[0][0]=de[0][1].clone(),de[de.length-1][2]=de[de.length-1][1].clone(),N=new SVG.Matrix().rotate(Wt).scale(zt,Rt).rotate(-Wt),ze=0,$e=de.length;ze<$e;ze++)de[ze][0]=de[ze][0].transform(N),de[ze][1]=de[ze][1].transform(N),de[ze][2]=de[ze][2].transform(N);for(ze=1,$e=de.length;ze<$e;ze++)Ze=(Be=de[ze-1][2]).x,ct=Be.y,mt=(Be=de[ze][0]).x,Pt=Be.y,ms=(Be=de[ze][1]).x,ai=Be.y,ys.push(["C",Ze,ct,mt,Pt,ms,ai]);return ys}(this.pos,c),c=d[0]}return c[0]="C",this.pos=[c[5],c[6]],this.reflection=[2*c[5]-c[3],2*c[6]-c[4]],d}function u(c,d){if(d===!1)return!1;for(var h=d,x=c.length;h<x;++h)if(c[h][0]=="M")return h;return!1}SVG.extend(SVG.PathArray,{morph:function(c){for(var d=this.value,h=this.parse(c),x=0,k=0,E=!1,N=!1;x!==!1||k!==!1;){var L;E=u(d,x!==!1&&x+1),N=u(h,k!==!1&&k+1),x===!1&&(x=(L=new SVG.PathArray(W.start).bbox()).height==0||L.width==0?d.push(d[0])-1:d.push(["M",L.x+L.width/2,L.y+L.height/2])-1),k===!1&&(k=(L=new SVG.PathArray(W.dest).bbox()).height==0||L.width==0?h.push(h[0])-1:h.push(["M",L.x+L.width/2,L.y+L.height/2])-1);var W=J(d,x,E,h,k,N);d=d.slice(0,x).concat(W.start,E===!1?[]:d.slice(E)),h=h.slice(0,k).concat(W.dest,N===!1?[]:h.slice(N)),x=E!==!1&&x+W.start.length,k=N!==!1&&k+W.dest.length}return this.value=d,this.destination=new SVG.PathArray,this.destination.value=h,this}})}(),(function(){function J(n){n.remember("_draggable",this),this.el=n}J.prototype.init=function(n,o){var i=this;this.constraint=n,this.value=o,this.el.on("mousedown.drag",function(u){i.start(u)}),this.el.on("touchstart.drag",function(u){i.start(u)})},J.prototype.transformPoint=function(n,o){var i=(n=n||window.event).changedTouches&&n.changedTouches[0]||n;return this.p.x=i.clientX-(o||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},J.prototype.getBBox=function(){var n=this.el.bbox();return this.el instanceof SVG.Nested&&(n=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(n.x=this.el.x(),n.y=this.el.y()),n},J.prototype.start=function(n){if(n.type!="click"&&n.type!="mousedown"&&n.type!="mousemove"||(n.which||n.buttons)==1){var o=this;if(this.el.fire("beforedrag",{event:n,handler:this}),!this.el.event().defaultPrevented){n.preventDefault(),n.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,u=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(n,i),box:u,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(c){o.drag(c)}),SVG.on(window,"touchmove.drag",function(c){o.drag(c)}),SVG.on(window,"mouseup.drag",function(c){o.end(c)}),SVG.on(window,"touchend.drag",function(c){o.end(c)}),this.el.fire("dragstart",{event:n,p:this.startPoints.point,m:this.m,handler:this})}}},J.prototype.drag=function(n){var o=this.getBBox(),i=this.transformPoint(n),u=this.startPoints.box.x+i.x-this.startPoints.point.x,c=this.startPoints.box.y+i.y-this.startPoints.point.y,d=this.constraint,h=i.x-this.startPoints.point.x,x=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:n,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if(typeof d=="function"){var k=d.call(this.el,u,c,this.m);typeof k=="boolean"&&(k={x:k,y:k}),k.x===!0?this.el.x(u):k.x!==!1&&this.el.x(k.x),k.y===!0?this.el.y(c):k.y!==!1&&this.el.y(k.y)}else typeof d=="object"&&(d.minX!=null&&u<d.minX?h=(u=d.minX)-this.startPoints.box.x:d.maxX!=null&&u>d.maxX-o.width&&(h=(u=d.maxX-o.width)-this.startPoints.box.x),d.minY!=null&&c<d.minY?x=(c=d.minY)-this.startPoints.box.y:d.maxY!=null&&c>d.maxY-o.height&&(x=(c=d.maxY-o.height)-this.startPoints.box.y),d.snapToGrid!=null&&(u-=u%d.snapToGrid,c-=c%d.snapToGrid,h-=h%d.snapToGrid,x-=x%d.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:h,y:x},!0):this.el.move(u,c));return i},J.prototype.end=function(n){var o=this.drag(n);this.el.fire("dragend",{event:n,p:o,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(n,o){typeof n!="function"&&typeof n!="object"||(o=n,n=!0);var i=this.remember("_draggable")||new J(this);return(n=n===void 0||n)?i.init(o||{},n):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function J(n){this.el=n,n.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(o,i,u){var c=typeof o!="string"?o:i[o];return u?c/2:c},this.pointCoords=function(o,i){var u=this.pointsList[o];return{x:this.pointCoord(u[0],i,o==="t"||o==="b"),y:this.pointCoord(u[1],i,o==="r"||o==="l")}}}J.prototype.init=function(n,o){var i=this.el.bbox();this.options={};var u=this.el.selectize.defaults.points;for(var c in this.el.selectize.defaults)this.options[c]=this.el.selectize.defaults[c],o[c]!==void 0&&(this.options[c]=o[c]);var d=["points","pointsExclude"];for(var c in d){var h=this.options[d[c]];typeof h=="string"?h=h.length>0?h.split(/\s*,\s*/i):[]:typeof h=="boolean"&&d[c]==="points"&&(h=h?u:[]),this.options[d[c]]=h}this.options.points=[u,this.options.points].reduce(function(x,k){return x.filter(function(E){return k.indexOf(E)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(x,k){return x.filter(function(E){return k.indexOf(E)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(n):this.selectRect(n),this.observe(),this.cleanup()},J.prototype.selectPoints=function(n){return this.pointSelection.isSelected=n,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},J.prototype.getPointArray=function(){var n=this.el.bbox();return this.el.array().valueOf().map(function(o){return[o[0]-n.x,o[1]-n.y]})},J.prototype.drawPoints=function(){for(var n=this,o=this.getPointArray(),i=0,u=o.length;i<u;++i){var c=function(h){return function(x){(x=x||window.event).preventDefault?x.preventDefault():x.returnValue=!1,x.stopPropagation();var k=x.pageX||x.touches[0].pageX,E=x.pageY||x.touches[0].pageY;n.el.fire("point",{x:k,y:E,i:h,event:x})}}(i),d=this.drawPoint(o[i][0],o[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",c).on("mousedown",c);this.pointSelection.set.add(d)}},J.prototype.drawPoint=function(n,o){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(n,o);case"rect":return this.drawRect(n,o);default:if(typeof i=="function")return i.call(this,n,o);throw new Error("Unknown "+i+" point type!")}},J.prototype.drawCircle=function(n,o){return this.nested.circle(this.options.pointSize).center(n,o)},J.prototype.drawRect=function(n,o){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(n,o)},J.prototype.updatePointSelection=function(){var n=this.getPointArray();this.pointSelection.set.each(function(o){this.cx()===n[o][0]&&this.cy()===n[o][1]||this.center(n[o][0],n[o][1])})},J.prototype.updateRectSelection=function(){var n=this,o=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:o.width,height:o.height}),this.options.points.length&&this.options.points.map(function(u,c){var d=n.pointCoords(u,o);n.rectSelection.set.get(c+1).center(d.x,d.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(o.width/2,20)}},J.prototype.selectRect=function(n){var o=this,i=this.el.bbox();function u(h){return function(x){(x=x||window.event).preventDefault?x.preventDefault():x.returnValue=!1,x.stopPropagation();var k=x.pageX||x.touches[0].pageX,E=x.pageY||x.touches[0].pageY;o.el.fire(h,{x:k,y:E,event:x})}}if(this.rectSelection.isSelected=n,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(h,x){var k=o.pointCoords(h,i),E=o.drawPoint(k.x,k.y).attr("class",o.options.classPoints+"_"+h).on("mousedown",u(h)).on("touchstart",u(h));o.rectSelection.set.add(E)}),this.rectSelection.set.each(function(){this.addClass(o.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var c=function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var x=h.pageX||h.touches[0].pageX,k=h.pageY||h.touches[0].pageY;o.el.fire("rot",{x,y:k,event:h})},d=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",c).on("mousedown",c);this.rectSelection.set.add(d)}},J.prototype.handler=function(){var n=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},J.prototype.observe=function(){var n=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){n.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){n.handler()})},J.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(n,o){return typeof n=="object"&&(o=n,n=!0),(this.remember("_selectHandler")||new J(this)).init(n===void 0||n,o||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function J(n){n.remember("_resizeHandler",this),this.el=n,this.parameters={},this.lastUpdateCall=null,this.p=n.doc().node.createSVGPoint()}J.prototype.transformPoint=function(n,o,i){return this.p.x=n-(this.offset.x-window.pageXOffset),this.p.y=o-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},J.prototype._extractPosition=function(n){return{x:n.clientX!=null?n.clientX:n.touches[0].clientX,y:n.clientY!=null?n.clientY:n.touches[0].clientY}},J.prototype.init=function(n){var o=this;if(this.stop(),n!=="stop"){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],n[i]!==void 0&&(this.options[i]=n[i]);this.el.on("lt.resize",function(u){o.resize(u||window.event)}),this.el.on("rt.resize",function(u){o.resize(u||window.event)}),this.el.on("rb.resize",function(u){o.resize(u||window.event)}),this.el.on("lb.resize",function(u){o.resize(u||window.event)}),this.el.on("t.resize",function(u){o.resize(u||window.event)}),this.el.on("r.resize",function(u){o.resize(u||window.event)}),this.el.on("b.resize",function(u){o.resize(u||window.event)}),this.el.on("l.resize",function(u){o.resize(u||window.event)}),this.el.on("rot.resize",function(u){o.resize(u||window.event)}),this.el.on("point.resize",function(u){o.resize(u||window.event)}),this.update()}},J.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},J.prototype.resize=function(n){var o=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(n.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:n.detail.x,y:n.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),n.detail.i!==void 0){var u=this.el.array().valueOf();this.parameters.i=n.detail.i,this.parameters.pointCoords=[u[n.detail.i][0],u[n.detail.i][1]]}switch(n.type){case"lt":this.calc=function(c,d){var h=this.snapToGrid(c,d);if(this.parameters.box.width-h[0]>0&&this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-h[0]);h=this.checkAspectRatio(h),this.el.move(this.parameters.box.x+h[0],this.parameters.box.y+h[1]).size(this.parameters.box.width-h[0],this.parameters.box.height-h[1])}};break;case"rt":this.calc=function(c,d){var h=this.snapToGrid(c,d,2);if(this.parameters.box.width+h[0]>0&&this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+h[0]);h=this.checkAspectRatio(h,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+h[1]).size(this.parameters.box.width+h[0],this.parameters.box.height-h[1])}};break;case"rb":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.width+h[0]>0&&this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+h[0]);h=this.checkAspectRatio(h),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+h[0],this.parameters.box.height+h[1])}};break;case"lb":this.calc=function(c,d){var h=this.snapToGrid(c,d,1);if(this.parameters.box.width-h[0]>0&&this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-h[0]);h=this.checkAspectRatio(h,!0),this.el.move(this.parameters.box.x+h[0],this.parameters.box.y).size(this.parameters.box.width-h[0],this.parameters.box.height+h[1])}};break;case"t":this.calc=function(c,d){var h=this.snapToGrid(c,d,2);if(this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+h[1]).height(this.parameters.box.height-h[1])}};break;case"r":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.width+h[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+h[0])}};break;case"b":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+h[1])}};break;case"l":this.calc=function(c,d){var h=this.snapToGrid(c,d,1);if(this.parameters.box.width-h[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+h[0],this.parameters.box.y).width(this.parameters.box.width-h[0])}};break;case"rot":this.calc=function(c,d){var h=c+this.parameters.p.x,x=d+this.parameters.p.y,k=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),E=Math.atan2(x-this.parameters.box.y-this.parameters.box.height/2,h-this.parameters.box.x-this.parameters.box.width/2),N=this.parameters.rotation+180*(E-k)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(N-N%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(c,d){var h=this.snapToGrid(c,d,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),x=this.el.array().valueOf();x[this.parameters.i][0]=this.parameters.pointCoords[0]+h[0],x[this.parameters.i][1]=this.parameters.pointCoords[1]+h[1],this.el.plot(x)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:n}),SVG.on(window,"touchmove.resize",function(c){o.update(c||window.event)}),SVG.on(window,"touchend.resize",function(){o.done()}),SVG.on(window,"mousemove.resize",function(c){o.update(c||window.event)}),SVG.on(window,"mouseup.resize",function(){o.done()})},J.prototype.update=function(n){if(n){var o=this._extractPosition(n),i=this.transformPoint(o.x,o.y),u=i.x-this.parameters.p.x,c=i.y-this.parameters.p.y;this.lastUpdateCall=[u,c],this.calc(u,c),this.el.fire("resizing",{dx:u,dy:c,event:n})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},J.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},J.prototype.snapToGrid=function(n,o,i,u){var c;return u!==void 0?c=[(i+n)%this.options.snapToGrid,(u+o)%this.options.snapToGrid]:(i=i??3,c=[(this.parameters.box.x+n+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+o+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),n<0&&(c[0]-=this.options.snapToGrid),o<0&&(c[1]-=this.options.snapToGrid),n-=Math.abs(c[0])<this.options.snapToGrid/2?c[0]:c[0]-(n<0?-this.options.snapToGrid:this.options.snapToGrid),o-=Math.abs(c[1])<this.options.snapToGrid/2?c[1]:c[1]-(o<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(n,o,i,u)},J.prototype.constraintToBox=function(n,o,i,u){var c,d,h=this.options.constraint||{};return u!==void 0?(c=i,d=u):(c=this.parameters.box.x+(1&i?0:this.parameters.box.width),d=this.parameters.box.y+(2&i?0:this.parameters.box.height)),h.minX!==void 0&&c+n<h.minX&&(n=h.minX-c),h.maxX!==void 0&&c+n>h.maxX&&(n=h.maxX-c),h.minY!==void 0&&d+o<h.minY&&(o=h.minY-d),h.maxY!==void 0&&d+o>h.maxY&&(o=h.maxY-d),[n,o]},J.prototype.checkAspectRatio=function(n,o){if(!this.options.saveAspectRatio)return n;var i=n.slice(),u=this.parameters.box.width/this.parameters.box.height,c=this.parameters.box.width+n[0],d=this.parameters.box.height-n[1],h=c/d;return h<u?(i[1]=c/u-this.parameters.box.height,o&&(i[1]=-i[1])):h>u&&(i[0]=this.parameters.box.width-d*u,o&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(n){return(this.remember("_resizeHandler")||new J(this)).init(n||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var fo=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new v(this.ctx),this.ctx.axes=new wt(this.ctx),this.ctx.core=new vs(this.ctx.el,this.ctx),this.ctx.config=new ue({}),this.ctx.data=new Xe(this.ctx),this.ctx.grid=new We(this.ctx),this.ctx.graphics=new m(this.ctx),this.ctx.coreUtils=new _(this.ctx),this.ctx.crosshairs=new kt(this.ctx),this.ctx.events=new qe(this.ctx),this.ctx.exports=new Re(this.ctx),this.ctx.localization=new st(this.ctx),this.ctx.options=new K,this.ctx.responsive=new Lt(this.ctx),this.ctx.series=new Pe(this.ctx),this.ctx.theme=new At(this.ctx),this.ctx.formatters=new fe(this.ctx),this.ctx.titleSubtitle=new jt(this.ctx),this.ctx.legend=new gt(this.ctx),this.ctx.toolbar=new Gt(this.ctx),this.ctx.tooltip=new ba(this.ctx),this.ctx.dimensions=new St(this.ctx),this.ctx.updateHelpers=new Hr(this.ctx),this.ctx.zoomPanSelection=new Sr(this.ctx),this.ctx.w.globals.tooltip=new ba(this.ctx)}}]),J}(),Sa=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"clear",value:function(n){var o=n.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:o})}},{key:"killSVG",value:function(n){n.each(function(o,i){this.removeClass("*"),this.off(),this.stop()},!0),n.ungroup(),n.clear()}},{key:"clearDomElements",value:function(n){var o=this,i=n.isUpdating,u=this.w.globals.dom.Paper.node;u.parentNode&&u.parentNode.parentNode&&!i&&(u.parentNode.parentNode.style.minHeight="unset");var c=this.w.globals.dom.baseEl;c&&this.ctx.eventList.forEach(function(h){c.removeEventListener(h,o.ctx.events.documentEvent)});var d=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(d.Paper),d.Paper.remove(),d.elWrap=null,d.elGraphical=null,d.elLegendWrap=null,d.elLegendForeign=null,d.baseEl=null,d.elGridRect=null,d.elGridRectMask=null,d.elGridRectMarkerMask=null,d.elForecastMask=null,d.elNonForecastMask=null,d.elDefs=null}}]),J}(),po=new WeakMap,oi=function(){function J(n,o){l(this,J),this.opts=o,this.ctx=this,this.w=new ye(o).init(),this.el=n,this.w.globals.cuid=p.randomId(),this.w.globals.chartID=this.w.config.chart.id?p.escapeString(this.w.config.chart.id):this.w.globals.cuid,new fo(this).initModules(),this.create=p.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return b(J,[{key:"render",value:function(){var n=this;return new Promise(function(o,i){if(n.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),n.w.config.chart.id&&Apex._chartInstances.push({id:n.w.globals.chartID,group:n.w.config.chart.group,chart:n}),n.setLocale(n.w.config.chart.defaultLocale);var u=n.w.config.chart.events.beforeMount;if(typeof u=="function"&&u(n,n.w),n.events.fireEvent("beforeMount",[n,n.w]),window.addEventListener("resize",n.windowResizeHandler),function(E,N){var L=!1;if(E.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var W=E.getBoundingClientRect();E.style.display!=="none"&&W.width!==0||(L=!0)}var G=new ResizeObserver(function(q){L&&N.call(E,q),L=!0});E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(E.children).forEach(function(q){return G.observe(q)}):G.observe(E),po.set(N,G)}(n.el.parentNode,n.parentResizeHandler),!n.css){var c=n.el.getRootNode&&n.el.getRootNode(),d=p.is("ShadowRoot",c),h=n.el.ownerDocument,x=h.getElementById("apexcharts-css");!d&&x||(n.css=document.createElement("style"),n.css.id="apexcharts-css",n.css.textContent=`@keyframes opaque {
0% {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes resizeanim {
0%,to {
opacity: 0
}
}
.apexcharts-canvas {
position: relative;
user-select: none
}
.apexcharts-canvas ::-webkit-scrollbar {
-webkit-appearance: none;
width: 6px
}
.apexcharts-canvas ::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
box-shadow: 0 0 1px rgba(255,255,255,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}
.apexcharts-inner {
position: relative
}
.apexcharts-text tspan {
font-family: inherit
}
.legend-mouseover-inactive {
transition: .15s ease all;
opacity: .2
}
.apexcharts-legend-text {
padding-left: 15px;
margin-left: -15px;
}
.apexcharts-series-collapsed {
opacity: 0
}
.apexcharts-tooltip {
border-radius: 5px;
box-shadow: 2px 2px 6px -4px #999;
cursor: default;
font-size: 14px;
left: 62px;
opacity: 0;
pointer-events: none;
position: absolute;
top: 20px;
display: flex;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
z-index: 12;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-theme-light {
border: 1px solid #e3e3e3;
background: rgba(255,255,255,.96)
}
.apexcharts-tooltip.apexcharts-theme-dark {
color: #fff;
background: rgba(30,30,30,.8)
}
.apexcharts-tooltip * {
font-family: inherit
}
.apexcharts-tooltip-title {
padding: 6px;
font-size: 15px;
margin-bottom: 4px
}
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
background: #eceff1;
border-bottom: 1px solid #ddd
}
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
background: rgba(0,0,0,.7);
border-bottom: 1px solid #333
}
.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
display: inline-block;
margin-left: 5px;
font-weight: 600
}
.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
display: none
}
.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
padding: 6px 0 5px
}
.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
display: flex
}
.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
margin-top: -6px
}
.apexcharts-tooltip-marker {
width: 12px;
height: 12px;
position: relative;
top: 0;
margin-right: 10px;
border-radius: 50%
}
.apexcharts-tooltip-series-group {
padding: 0 10px;
display: none;
text-align: left;
justify-content: left;
align-items: center
}
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
opacity: 1
}
.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
padding-bottom: 4px
}
.apexcharts-tooltip-series-group-hidden {
opacity: 0;
height: 0;
line-height: 0;
padding: 0!important
}
.apexcharts-tooltip-y-group {
padding: 6px 0 5px
}
.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
padding: 4px 8px
}
.apexcharts-tooltip-boxPlot {
display: flex;
flex-direction: column-reverse
}
.apexcharts-tooltip-box>div {
margin: 4px 0
}
.apexcharts-tooltip-box span.value {
font-weight: 700
}
.apexcharts-tooltip-rangebar {
padding: 5px 8px
}
.apexcharts-tooltip-rangebar .category {
font-weight: 600;
color: #777
}
.apexcharts-tooltip-rangebar .series-name {
font-weight: 700;
display: block;
margin-bottom: 5px
}
.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
opacity: 0;
pointer-events: none;
color: #373d3f;
font-size: 13px;
text-align: center;
border-radius: 2px;
position: absolute;
z-index: 10;
background: #eceff1;
border: 1px solid #90a4ae
}
.apexcharts-xaxistooltip {
padding: 9px 10px;
transition: .15s ease all
}
.apexcharts-xaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-xaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-left: -6px
}
.apexcharts-xaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-left: -7px
}
.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
bottom: 100%
}
.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
top: 100%
}
.apexcharts-xaxistooltip-bottom:after {
border-bottom-color: #eceff1
}
.apexcharts-xaxistooltip-bottom:before {
border-bottom-color: #90a4ae
}
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
border-bottom-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip-top:after {
border-top-color: #eceff1
}
.apexcharts-xaxistooltip-top:before {
border-top-color: #90a4ae
}
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
border-top-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-yaxistooltip {
padding: 4px 10px
}
.apexcharts-yaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-yaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-top: -6px
}
.apexcharts-yaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-top: -7px
}
.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
left: 100%
}
.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
right: 100%
}
.apexcharts-yaxistooltip-left:after {
border-left-color: #eceff1
}
.apexcharts-yaxistooltip-left:before {
border-left-color: #90a4ae
}
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
border-left-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip-right:after {
border-right-color: #eceff1
}
.apexcharts-yaxistooltip-right:before {
border-right-color: #90a4ae
}
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
border-right-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip.apexcharts-active {
opacity: 1
}
.apexcharts-yaxistooltip-hidden {
display: none
}
.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
pointer-events: none;
opacity: 0;
transition: .15s ease all
}
.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-ycrosshairs-hidden {
opacity: 0
}
.apexcharts-selection-rect {
cursor: move
}
.svg_select_boundingRect,.svg_select_points_rot {
pointer-events: none;
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
cursor: ew-resize;
opacity: 1;
visibility: visible
}
.svg_select_points {
fill: #efefef;
stroke: #333;
rx: 2
}
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
cursor: crosshair
}
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
cursor: move
}
.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
cursor: pointer;
width: 20px;
height: 20px;
line-height: 24px;
color: #6e8192;
text-align: center
}
.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
fill: #6e8192
}
.apexcharts-selection-icon svg {
fill: #444;
transform: scale(.76)
}
.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
fill: #f3f4f5
}
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
fill: #008ffb
}
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
fill: #333
}
.apexcharts-menu-icon,.apexcharts-selection-icon {
position: relative
}
.apexcharts-reset-icon {
margin-left: 5px
}
.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
transform: scale(.85)
}
.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
transform: scale(.7)
}
.apexcharts-zoomout-icon {
margin-right: 3px
}
.apexcharts-pan-icon {
transform: scale(.62);
position: relative;
left: 1px;
top: 0
}
.apexcharts-pan-icon svg {
fill: #fff;
stroke: #6e8192;
stroke-width: 2
}
.apexcharts-pan-icon.apexcharts-selected svg {
stroke: #008ffb
}
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
stroke: #333
}
.apexcharts-toolbar {
position: absolute;
z-index: 11;
max-width: 176px;
text-align: right;
border-radius: 3px;
padding: 0 6px 2px;
display: flex;
justify-content: space-between;
align-items: center
}
.apexcharts-menu {
background: #fff;
position: absolute;
top: 100%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 3px;
right: 10px;
opacity: 0;
min-width: 110px;
transition: .15s ease all;
pointer-events: none
}
.apexcharts-menu.apexcharts-menu-open {
opacity: 1;
pointer-events: all;
transition: .15s ease all
}
.apexcharts-menu-item {
padding: 6px 7px;
font-size: 12px;
cursor: pointer
}
.apexcharts-theme-light .apexcharts-menu-item:hover {
background: #eee
}
.apexcharts-theme-dark .apexcharts-menu {
background: rgba(0,0,0,.7);
color: #fff
}
@media screen and (min-width:768px) {
.apexcharts-canvas:hover .apexcharts-toolbar {
opacity: 1
}
}
.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
opacity: 0
}
.apexcharts-hidden-element-shown {
opacity: 1;
transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
cursor: default;
pointer-events: none
}
.apexcharts-pie-label-delay {
opacity: 0;
animation-name: opaque;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: ease
}
.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
pointer-events: none
}
.apexcharts-marker {
transition: .15s ease all
}
.resize-triggers {
animation: 1ms resizeanim;
visibility: hidden;
opacity: 0;
height: 100%;
width: 100%;
overflow: hidden
}
.contract-trigger:before,.resize-triggers,.resize-triggers>div {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0
}
.resize-triggers>div {
height: 100%;
width: 100%;
background: #eee;
overflow: auto
}
.contract-trigger:before {
overflow: hidden;
width: 200%;
height: 200%
}
.apexcharts-bar-goals-markers{
pointer-events: none
}
.apexcharts-bar-shadows{
pointer-events: none
}
.apexcharts-rangebar-goals-markers{
pointer-events: none
}`,d?c.prepend(n.css):h.head.appendChild(n.css))}var k=n.create(n.w.config.series,{});if(!k)return o(n);n.mount(k).then(function(){typeof n.w.config.chart.events.mounted=="function"&&n.w.config.chart.events.mounted(n,n.w),n.events.fireEvent("mounted",[n,n.w]),o(k)}).catch(function(E){i(E)})}else i(new Error("Element not found"))})}},{key:"create",value:function(n,o){var i=this.w;new fo(this).initModules();var u=this.w.globals;if(u.noData=!1,u.animationEnded=!1,this.responsive.checkResponsiveConfig(o),i.config.xaxis.convertedCatToNumeric&&new be(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),u.svgWidth===0))return u.animationEnded=!0,null;var c=_.checkComboSeries(n);u.comboCharts=c.comboCharts,u.comboBarCount=c.comboBarCount;var d=n.every(function(E){return E.data&&E.data.length===0});(n.length===0||d)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(n),this.theme.init(),new Ee(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),u.noData&&u.collapsedSeries.length!==u.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),u.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new _(this).getLargestMarkerSize(),this.dimensions.plotCoords();var h=this.core.xySettings();this.grid.createGridMask();var x=this.core.plotChartType(n,h),k=new Le(this);return k.bringForward(),i.config.dataLabels.background.enabled&&k.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:x,xyRatios:h,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var n=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,u=i.w;return new Promise(function(c,d){if(i.el===null)return d(new Error("Not enough data to display or target element not found"));(o===null||u.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new We(i);var h,x,k=i.grid.drawGrid();if(i.annotations=new oe(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),u.config.grid.position==="back"&&(k&&u.globals.dom.elGraphical.add(k.el),k!=null&&(h=k.elGridBorders)!==null&&h!==void 0&&h.node&&u.globals.dom.elGraphical.add(k.elGridBorders)),Array.isArray(o.elGraph))for(var E=0;E<o.elGraph.length;E++)u.globals.dom.elGraphical.add(o.elGraph[E]);else u.globals.dom.elGraphical.add(o.elGraph);u.config.grid.position==="front"&&(k&&u.globals.dom.elGraphical.add(k.el),k!=null&&(x=k.elGridBorders)!==null&&x!==void 0&&x.node&&u.globals.dom.elGraphical.add(k.elGridBorders)),u.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),u.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),u.config.chart.type!=="treemap"&&i.axes.drawAxis(u.config.chart.type,k);var N=new He(n.ctx,k),L=new Qe(n.ctx,k);if(k!==null&&(N.xAxisLabelCorrections(k.xAxisTickWidth),L.setYAxisTextAlignments(),u.config.yaxis.map(function(G,q){u.globals.ignoreYAxisIndexes.indexOf(q)===-1&&L.yAxisTitleRotate(q,G.opposite)})),i.annotations.drawAxesAnnotations(),!u.globals.noData){if(u.config.tooltip.enabled&&!u.globals.noData&&i.w.globals.tooltip.drawTooltip(o.xyRatios),u.globals.axisCharts&&(u.globals.isXNumeric||u.config.xaxis.convertedCatToNumeric||u.globals.isRangeBar))(u.config.chart.zoom.enabled||u.config.chart.selection&&u.config.chart.selection.enabled||u.config.chart.pan&&u.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:o.xyRatios});else{var W=u.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(G){W[G]=!1})}u.config.chart.toolbar.show&&!u.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}u.globals.memory.methodsToExec.length>0&&u.globals.memory.methodsToExec.forEach(function(G){G.method(G.params,!1,G.context)}),u.globals.axisCharts||u.globals.noData||i.core.resizeNonAxisCharts(),c(i)})}},{key:"destroy",value:function(){var n,o;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,n=this.parentResizeHandler,(o=po.get(n))&&(o.disconnect(),po.delete(n));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(u,c){u.id===p.escapeString(i)&&Apex._chartInstances.splice(c,1)}),new Sa(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(n){var o=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],h=this.w;return h.globals.selection=void 0,n.series&&(this.series.resetSeries(!1,!0,!1),n.series.length&&n.series[0].data&&(n.series=n.series.map(function(x,k){return o.updateHelpers._extendSeries(x,k)})),this.updateHelpers.revertDefaultAxisMinMax()),n.xaxis&&(n=this.updateHelpers.forceXAxisUpdate(n)),n.yaxis&&(n=this.updateHelpers.forceYAxisUpdate(n)),h.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),n.theme&&(n=this.theme.updateThemeOptions(n)),this.updateHelpers._updateOptions(n,i,u,c,d)}},{key:"updateSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,o,i)}},{key:"appendSeries",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],u=this.w.config.series.slice();return u.push(n),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(u,o,i)}},{key:"appendData",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var u=i.w.config.series.slice(),c=0;c<u.length;c++)if(n[c]!==null&&n[c]!==void 0)for(var d=0;d<n[c].data.length;d++)u[c].data.push(n[c].data[d]);return i.w.config.series=u,o&&(i.w.globals.initialSeries=p.clone(i.w.config.series)),this.update()}},{key:"update",value:function(n){var o=this;return new Promise(function(i,u){new Sa(o.ctx).clear({isUpdating:!0});var c=o.create(o.w.config.series,n);if(!c)return i(o);o.mount(c).then(function(){typeof o.w.config.chart.events.updated=="function"&&o.w.config.chart.events.updated(o,o.w),o.events.fireEvent("updated",[o,o.w]),o.w.globals.isDirty=!0,i(o)}).catch(function(d){u(d)})})}},{key:"getSyncedCharts",value:function(){var n=this.getGroupedCharts(),o=[this];return n.length&&(o=[],n.forEach(function(i){o.push(i)})),o}},{key:"getGroupedCharts",value:function(){var n=this;return Apex._chartInstances.filter(function(o){if(o.group)return!0}).map(function(o){return n.w.config.chart.group===o.group?o.chart:n})}},{key:"toggleSeries",value:function(n){return this.series.toggleSeries(n)}},{key:"highlightSeriesOnLegendHover",value:function(n,o){return this.series.toggleSeriesOnHover(n,o)}},{key:"showSeries",value:function(n){this.series.showSeries(n)}},{key:"hideSeries",value:function(n){this.series.hideSeries(n)}},{key:"isSeriesHidden",value:function(n){this.series.isSeriesHidden(n)}},{key:"resetSeries",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(n,o)}},{key:"addEventListener",value:function(n,o){this.events.addEventListener(n,o)}},{key:"removeEventListener",value:function(n,o){this.events.removeEventListener(n,o)}},{key:"addXaxisAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addXaxisAnnotationExternal(n,o,u)}},{key:"addYaxisAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addYaxisAnnotationExternal(n,o,u)}},{key:"addPointAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addPointAnnotationExternal(n,o,u)}},{key:"clearAnnotations",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,o=this;n&&(o=n),o.annotations.clearAnnotations(o)}},{key:"removeAnnotation",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;o&&(i=o),i.annotations.removeAnnotation(i,n)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(n,o){return this.coreUtils.getSeriesTotalsXRange(n,o)}},{key:"getHighestValueInSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ot(this.ctx).getMinYMaxY(n).highestY}},{key:"getLowestValueInSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ot(this.ctx).getMinYMaxY(n).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(n,o){return this.updateHelpers.toggleDataPointSelection(n,o)}},{key:"zoomX",value:function(n,o){this.ctx.toolbar.zoomUpdateOptions(n,o)}},{key:"setLocale",value:function(n){this.localization.setCurrentLocaleValues(n)}},{key:"dataURI",value:function(n){return new Re(this.ctx).dataURI(n)}},{key:"exportToCSV",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Re(this.ctx).exportToCSV(n)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var n=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){n.w.globals.resized=!0,n.w.globals.dataChanged=!1,n.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var n=this.w.config.chart.redrawOnWindowResize;typeof n=="function"&&(n=n()),n&&this._windowResize()}}],[{key:"getChartByID",value:function(n){var o=p.escapeString(n);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(u){return u.id===o})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var n=document.querySelectorAll("[data-apexcharts]"),o=0;o<n.length;o++)new J(n[o],JSON.parse(n[o].getAttribute("data-options"))).render()}},{key:"exec",value:function(n,o){var i=this.getChartByID(n);if(i){i.w.globals.isExecCalled=!0;var u=null;if(i.publicMethods.indexOf(o)!==-1){for(var c=arguments.length,d=new Array(c>2?c-2:0),h=2;h<c;h++)d[h-2]=arguments[h];u=i[o].apply(i,d)}return u}}},{key:"merge",value:function(n,o){return p.extend(n,o)}}]),J}();e.exports=oi})(eg,eg.exports);var S4=eg.exports,f_;Object.defineProperty(d_,"__esModule",{value:!0});var k4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,a=arguments[t];for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},P4=function(){function e(t,r){for(var a=0;a<r.length;a++){var s=r[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),_4=S4,p_=hb(_4),h_=ee,zs=hb(h_),O4=it,ho=hb(O4);function hb(e){return e&&e.__esModule?e:{default:e}}function A4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e,t){var r,a={};for(r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function M4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R4(e,t){if(e)return!t||typeof t!="object"&&typeof t!="function"?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function N4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}window.ApexCharts=p_.default;var Sx=function(){function e(t){M4(this,e);var r=R4(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return zs.default.createRef?r.chartRef=zs.default.createRef():r.setRef=function(a){return r.chartRef=a},r.chart=null,r}return N4(e,h_.Component),P4(e,[{key:"render",value:function(){var t=E4(this.props,[]);return zs.default.createElement("div",T4({ref:zs.default.createRef?this.chartRef:this.setRef},t))}},{key:"componentDidMount",value:function(){var t=zs.default.createRef?this.chartRef.current:this.chartRef;this.chart=new p_.default(t,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var l=this.props,t=l.type,r=l.height,a=l.width,s=l.series,l=l.options;return this.extend(l,{chart:{type:t,height:r,width:a},series:s})}},{key:"isObject",value:function(t){return t&&(t===void 0?"undefined":k4(t))==="object"&&!Array.isArray(t)&&t!=null}},{key:"extend",value:function(t,r){var a=this,s=(typeof Object.assign!="function"&&(Object.assign=function(l){if(l==null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(l),b=1;b<arguments.length;b++){var S=arguments[b];if(S!=null)for(var T in S)S.hasOwnProperty(T)&&(f[T]=S[T])}return f}),Object.assign({},t));return this.isObject(t)&&this.isObject(r)&&Object.keys(r).forEach(function(l){a.isObject(r[l])&&l in t?s[l]=a.extend(t[l],r[l]):Object.assign(s,A4({},l,r[l]))}),s}},{key:"componentDidUpdate",value:function(t){if(!this.chart)return null;var s=this.props,b=s.options,r=s.series,a=s.height,s=s.width,l=JSON.stringify(t.options),f=JSON.stringify(t.series),b=JSON.stringify(b),S=JSON.stringify(r);l===b&&f===S&&a===t.height&&s===t.width||(f!==S&&l===b&&a===t.height&&s===t.width?this.chart.updateSeries(r):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&typeof this.chart.destroy=="function"&&this.chart.destroy()}}]),e}();(f_=d_.default=Sx).propTypes={type:ho.default.string.isRequired,width:ho.default.oneOfType([ho.default.string,ho.default.number]),height:ho.default.oneOfType([ho.default.string,ho.default.number]),series:ho.default.array.isRequired,options:ho.default.object.isRequired},Sx.defaultProps={type:"line",width:"100%",height:"auto"};function Jd({color:e,chart:t,title:r,description:a,footer:s}){return he.jsxs(De.Card,{className:"border border-blue-gray-100 shadow-sm",children:[he.jsx(De.CardHeader,{variant:"gradient",color:e,floated:!1,shadow:!1,children:he.jsx(f_,{...t})}),he.jsxs(De.CardBody,{className:"px-6 pt-0",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",children:r}),he.jsx(De.Typography,{variant:"small",className:"font-normal text-blue-gray-600",children:a})]}),s&&he.jsx(De.CardFooter,{className:"border-t border-blue-gray-50 px-6 py-5",children:s})]})}Jd.defaultProps={color:"blue",footer:null};Jd.propTypes={color:Vt.oneOf(["white","blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"]),chart:Vt.object.isRequired,title:Vt.node.isRequired,description:Vt.node.isRequired,footer:Vt.node};Jd.displayName="/src/widgets/charts/statistics-chart.jsx";const I4=[{color:"gray",icon:hC,title:"Today's Money",value:"$53k",footer:{color:"text-green-500",value:"+55%",label:"than last week"}},{color:"gray",icon:UN,title:"Today's Users",value:"2,300",footer:{color:"text-green-500",value:"+3%",label:"than last month"}},{color:"gray",icon:XN,title:"New Clients",value:"3,462",footer:{color:"text-red-500",value:"-2%",label:"than yesterday"}},{color:"gray",icon:fN,title:"Sales",value:"$103,430",footer:{color:"text-green-500",value:"+5%",label:"than yesterday"}}],Ji={chart:{toolbar:{show:!1}},title:{show:""},dataLabels:{enabled:!1},xaxis:{axisTicks:{show:!1},axisBorder:{show:!1},labels:{style:{colors:"#37474f",fontSize:"13px",fontFamily:"inherit",fontWeight:300}}},yaxis:{labels:{style:{colors:"#37474f",fontSize:"13px",fontFamily:"inherit",fontWeight:300}}},grid:{show:!0,borderColor:"#dddddd",strokeDashArray:5,xaxis:{lines:{show:!0}},padding:{top:5,right:20}},fill:{opacity:.8},tooltip:{theme:"dark"}},L4={type:"bar",height:220,series:[{name:"Views",data:[50,20,10,22,50,10,40]}],options:{...Ji,colors:"#388e3c",plotOptions:{bar:{columnWidth:"16%",borderRadius:5}},xaxis:{...Ji.xaxis,categories:["M","T","W","T","F","S","S"]}}},j4={type:"line",height:220,series:[{name:"Sales",data:[50,40,300,320,500,350,200,230,500]}],options:{...Ji,colors:["#0288d1"],stroke:{lineCap:"round"},markers:{size:5},xaxis:{...Ji.xaxis,categories:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}}},D4={type:"line",height:220,series:[{name:"Sales",data:[50,40,300,320,500,350,200,230,500]}],options:{...Ji,colors:["#388e3c"],stroke:{lineCap:"round"},markers:{size:5},xaxis:{...Ji.xaxis,categories:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}}},z4={...D4,series:[{name:"Tasks",data:[50,40,300,220,500,250,400,230,500]}]},F4=[{color:"white",title:"Website View",description:"Last Campaign Performance",footer:"campaign sent 2 days ago",chart:L4},{color:"white",title:"Daily Sales",description:"15% increase in today sales",footer:"updated 4 min ago",chart:j4},{color:"white",title:"Completed Tasks",description:"Last Campaign Performance",footer:"just updated",chart:z4}],kx=[{img:"/img/logo-xd.svg",name:"Material XD Version",members:[{img:"/img/team-1.jpeg",name:"Romina Hadid"},{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$14,000",completion:60},{img:"/img/logo-atlassian.svg",name:"Add Progress Track",members:[{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$3,000",completion:10},{img:"/img/logo-slack.svg",name:"Fix Platform Errors",members:[{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-1.jpeg",name:"Romina Hadid"}],budget:"Not set",completion:100},{img:"/img/logo-spotify.svg",name:"Launch our Mobile App",members:[{img:"/img/team-4.jpeg",name:"Alexander Smith"},{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-1.jpeg",name:"Romina Hadid"}],budget:"$20,500",completion:100},{img:"/img/logo-jira.svg",name:"Add the New Pricing Page",members:[{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$500",completion:25},{img:"/img/logo-invision.svg",name:"Redesign New Online Shop",members:[{img:"/img/team-1.jpeg",name:"Romina Hadid"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$2,000",completion:40}],Tx=[{icon:gC,color:"text-blue-gray-300",title:"$2400, Design changes",description:"22 DEC 7:20 PM"},{icon:NN,color:"text-blue-gray-300",title:"New order #1832412",description:"21 DEC 11 PM"},{icon:jN,color:"text-blue-gray-300",title:"Server payments for April",description:"21 DEC 9:34 PM"},{icon:vC,color:"text-blue-gray-300",title:"New card added for order #4395133",description:"20 DEC 2:20 AM"},{icon:EN,color:"text-blue-gray-300",title:"Unlock packages for development",description:"18 DEC 4:54 AM"},{icon:hC,color:"text-blue-gray-300",title:"New order #9583120",description:"17 DEC"}];function V4(){return he.jsxs("div",{className:"mt-12",children:[he.jsx("div",{className:"mb-12 grid gap-y-10 gap-x-6 md:grid-cols-2 xl:grid-cols-4",children:I4.map(({icon:e,title:t,footer:r,...a})=>he.jsx(Qd,{...a,title:t,icon:ln.createElement(e,{className:"w-6 h-6 text-white"}),footer:he.jsxs(De.Typography,{className:"font-normal text-blue-gray-600",children:[he.jsx("strong",{className:r.color,children:r.value})," ",r.label]})},t))}),he.jsx("div",{className:"mb-6 grid grid-cols-1 gap-y-12 gap-x-6 md:grid-cols-2 xl:grid-cols-3",children:F4.map(e=>he.jsx(Jd,{...e,footer:he.jsxs(De.Typography,{variant:"small",className:"flex items-center font-normal text-blue-gray-600",children:[he.jsx(Zu,{strokeWidth:2,className:"h-4 w-4 text-blue-gray-400"})," ",e.footer]})},e.title))}),he.jsxs("div",{className:"mb-4 grid grid-cols-1 gap-6 xl:grid-cols-3",children:[he.jsxs(De.Card,{className:"overflow-hidden xl:col-span-2 border border-blue-gray-100 shadow-sm",children:[he.jsxs(De.CardHeader,{floated:!1,shadow:!1,color:"transparent",className:"m-0 flex items-center justify-between p-6",children:[he.jsxs("div",{children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",className:"mb-1",children:"Projects"}),he.jsxs(De.Typography,{variant:"small",className:"flex items-center gap-1 font-normal text-blue-gray-600",children:[he.jsx(gN,{strokeWidth:3,className:"h-4 w-4 text-blue-gray-200"}),he.jsx("strong",{children:"30 done"})," this month"]})]}),he.jsxs(De.Menu,{placement:"left-start",children:[he.jsx(De.MenuHandler,{children:he.jsx(De.IconButton,{size:"sm",variant:"text",color:"blue-gray",children:he.jsx(p4,{strokeWidth:3,fill:"currenColor",className:"h-6 w-6"})})}),he.jsxs(De.MenuList,{children:[he.jsx(De.MenuItem,{children:"Action"}),he.jsx(De.MenuItem,{children:"Another Action"}),he.jsx(De.MenuItem,{children:"Something else here"})]})]})]}),he.jsx(De.CardBody,{className:"overflow-x-scroll px-0 pt-0 pb-2",children:he.jsxs("table",{className:"w-full min-w-[640px] table-auto",children:[he.jsx("thead",{children:he.jsx("tr",{children:["companies","members","budget","completion"].map(e=>he.jsx("th",{className:"border-b border-blue-gray-50 py-3 px-6 text-left",children:he.jsx(De.Typography,{variant:"small",className:"text-[11px] font-medium uppercase text-blue-gray-400",children:e})},e))})}),he.jsx("tbody",{children:kx.map(({img:e,name:t,members:r,budget:a,completion:s},l)=>{const f=`py-3 px-5 ${l===kx.length-1?"":"border-b border-blue-gray-50"}`;return he.jsxs("tr",{children:[he.jsx("td",{className:f,children:he.jsxs("div",{className:"flex items-center gap-4",children:[he.jsx(De.Avatar,{src:e,alt:t,size:"sm"}),he.jsx(De.Typography,{variant:"small",color:"blue-gray",className:"font-bold",children:t})]})}),he.jsx("td",{className:f,children:r.map(({img:b,name:S},T)=>he.jsx(De.Tooltip,{content:S,children:he.jsx(De.Avatar,{src:b,alt:S,size:"xs",variant:"circular",className:`cursor-pointer border-2 border-white ${T===0?"":"-ml-2.5"}`})},S))}),he.jsx("td",{className:f,children:he.jsx(De.Typography,{variant:"small",className:"text-xs font-medium text-blue-gray-600",children:a})}),he.jsx("td",{className:f,children:he.jsxs("div",{className:"w-10/12",children:[he.jsxs(De.Typography,{variant:"small",className:"mb-1 block text-xs font-medium text-blue-gray-600",children:[s,"%"]}),he.jsx(De.Progress,{value:s,variant:"gradient",color:s===100?"green":"blue",className:"h-1"})]})})]},t)})})]})})]}),he.jsxs(De.Card,{className:"border border-blue-gray-100 shadow-sm",children:[he.jsxs(De.CardHeader,{floated:!1,shadow:!1,color:"transparent",className:"m-0 p-6",children:[he.jsx(De.Typography,{variant:"h6",color:"blue-gray",className:"mb-2",children:"Orders Overview"}),he.jsxs(De.Typography,{variant:"small",className:"flex items-center gap-1 font-normal text-blue-gray-600",children:[he.jsx(c4,{strokeWidth:3,className:"h-3.5 w-3.5 text-green-500"}),he.jsx("strong",{children:"24%"})," this month"]})]}),he.jsx(De.CardBody,{className:"pt-0",children:Tx.map(({icon:e,color:t,title:r,description:a},s)=>he.jsxs("div",{className:"flex items-start gap-4 py-3",children:[he.jsx("div",{className:`relative p-1 after:absolute after:-bottom-6 after:left-2/4 after:w-0.5 after:-translate-x-2/4 after:bg-blue-gray-50 after:content-[''] ${s===Tx.length-1?"after:h-0":"after:h-4/6"}`,children:ln.createElement(e,{className:`!w-5 !h-5 ${t}`})}),he.jsxs("div",{children:[he.jsx(De.Typography,{variant:"small",color:"blue-gray",className:"block font-medium",children:r}),he.jsx(De.Typography,{as:"span",variant:"small",className:"text-xs font-medium text-blue-gray-500",children:a})]})]},r))})]})]})]})}function W4(){const[e,t]=ln.useState({blue:!0,green:!0,orange:!0,red:!0}),[r,a]=ln.useState({blue:!0,green:!0,orange:!0,red:!0}),s=["gray","green","orange","red"];return he.jsxs("div",{className:"mx-auto my-20 flex max-w-screen-lg flex-col gap-8",children:[he.jsxs(De.Card,{children:[he.jsx(De.CardHeader,{color:"transparent",floated:!1,shadow:!1,className:"m-0 p-4",children:he.jsx(De.Typography,{variant:"h5",color:"blue-gray",children:"Alerts"})}),he.jsx(De.CardBody,{className:"flex flex-col gap-4 p-4",children:s.map(l=>he.jsxs(De.Alert,{open:e[l],color:l,onClose:()=>t(f=>({...f,[l]:!1})),children:["A simple ",l," alert with an ",he.jsx("a",{href:"#",children:"example link"}),". Give it a click if you like."]},l))})]}),he.jsxs(De.Card,{children:[he.jsx(De.CardHeader,{color:"transparent",floated:!1,shadow:!1,className:"m-0 p-4",children:he.jsx(De.Typography,{variant:"h5",color:"blue-gray",children:"Alerts with Icon"})}),he.jsx(De.CardBody,{className:"flex flex-col gap-4 p-4",children:s.map(l=>he.jsxs(De.Alert,{open:r[l],color:l,icon:he.jsx(b4,{strokeWidth:2,className:"h-6 w-6"}),onClose:()=>a(f=>({...f,[l]:!1})),children:["A simple ",l," alert with an ",he.jsx("a",{href:"#",children:"example link"}),". Give it a click if you like."]},l))})]})]})}function g_(e,t){return function(){return e.apply(t,arguments)}}const{toString:B4}=Object.prototype,{getPrototypeOf:gb}=Object,ef=(e=>t=>{const r=B4.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>ef(t)===e),tf=e=>t=>typeof t===e,{isArray:hs}=Array,Il=tf("undefined");function H4(e){return e!==null&&!Il(e)&&e.constructor!==null&&!Il(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b_=Gn("ArrayBuffer");function X4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b_(e.buffer),t}const Y4=tf("string"),an=tf("function"),v_=tf("number"),rf=e=>e!==null&&typeof e=="object",G4=e=>e===!0||e===!1,uc=e=>{if(ef(e)!=="object")return!1;const t=gb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},U4=Gn("Date"),$4=Gn("File"),q4=Gn("Blob"),K4=Gn("FileList"),Z4=e=>rf(e)&&an(e.pipe),Q4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=ef(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},J4=Gn("URLSearchParams"),[e3,t3,r3,n3]=["ReadableStream","Request","Response","Headers"].map(Gn),o3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,s;if(typeof e!="object"&&(e=[e]),hs(e))for(a=0,s=e.length;a<s;a++)t.call(null,e[a],a,e);else{const l=r?Object.getOwnPropertyNames(e):Object.keys(e),f=l.length;let b;for(a=0;a<f;a++)b=l[a],t.call(null,e[b],b,e)}}function m_(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,s;for(;a-- >0;)if(s=r[a],t===s.toLowerCase())return s;return null}const Ra=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),y_=e=>!Il(e)&&e!==Ra;function tg(){const{caseless:e}=y_(this)&&this||{},t={},r=(a,s)=>{const l=e&&m_(t,s)||s;uc(t[l])&&uc(a)?t[l]=tg(t[l],a):uc(a)?t[l]=tg({},a):hs(a)?t[l]=a.slice():t[l]=a};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&tu(arguments[a],r);return t}const a3=(e,t,r,{allOwnKeys:a}={})=>(tu(t,(s,l)=>{r&&an(s)?e[l]=g_(s,r):e[l]=s},{allOwnKeys:a}),e),i3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s3=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},l3=(e,t,r,a)=>{let s,l,f;const b={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)f=s[l],(!a||a(f,e,t))&&!b[f]&&(t[f]=e[f],b[f]=!0);e=r!==!1&&gb(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},u3=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},c3=e=>{if(!e)return null;if(hs(e))return e;let t=e.length;if(!v_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},d3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gb(Uint8Array)),f3=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=a.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},p3=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},h3=Gn("HTMLFormElement"),g3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,s){return a.toUpperCase()+s}),Px=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b3=Gn("RegExp"),x_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};tu(r,(s,l)=>{let f;(f=t(s,l,e))!==!1&&(a[l]=f||s)}),Object.defineProperties(e,a)},v3=e=>{x_(e,(t,r)=>{if(an(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(an(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},m3=(e,t)=>{const r={},a=s=>{s.forEach(l=>{r[l]=!0})};return hs(e)?a(e):a(String(e).split(t)),r},y3=()=>{},x3=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ep="abcdefghijklmnopqrstuvwxyz",_x="0123456789",w_={DIGIT:_x,ALPHA:Ep,ALPHA_DIGIT:Ep+Ep.toUpperCase()+_x},w3=(e=16,t=w_.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r};function C3(e){return!!(e&&an(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const S3=e=>{const t=new Array(10),r=(a,s)=>{if(rf(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[s]=a;const l=hs(a)?[]:{};return tu(a,(f,b)=>{const S=r(f,s+1);!Il(S)&&(l[b]=S)}),t[s]=void 0,l}}return a};return r(e,0)},k3=Gn("AsyncFunction"),T3=e=>e&&(rf(e)||an(e))&&an(e.then)&&an(e.catch),C_=((e,t)=>e?setImmediate:t?((r,a)=>(Ra.addEventListener("message",({source:s,data:l})=>{s===Ra&&l===r&&a.length&&a.shift()()},!1),s=>{a.push(s),Ra.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",an(Ra.postMessage)),P3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ra):typeof process<"u"&&process.nextTick||C_,je={isArray:hs,isArrayBuffer:b_,isBuffer:H4,isFormData:Q4,isArrayBufferView:X4,isString:Y4,isNumber:v_,isBoolean:G4,isObject:rf,isPlainObject:uc,isReadableStream:e3,isRequest:t3,isResponse:r3,isHeaders:n3,isUndefined:Il,isDate:U4,isFile:$4,isBlob:q4,isRegExp:b3,isFunction:an,isStream:Z4,isURLSearchParams:J4,isTypedArray:d3,isFileList:K4,forEach:tu,merge:tg,extend:a3,trim:o3,stripBOM:i3,inherits:s3,toFlatObject:l3,kindOf:ef,kindOfTest:Gn,endsWith:u3,toArray:c3,forEachEntry:f3,matchAll:p3,isHTMLForm:h3,hasOwnProperty:Px,hasOwnProp:Px,reduceDescriptors:x_,freezeMethods:v3,toObjectSet:m3,toCamelCase:g3,noop:y3,toFiniteNumber:x3,findKey:m_,global:Ra,isContextDefined:y_,ALPHABET:w_,generateString:w3,isSpecCompliantForm:C3,toJSONObject:S3,isAsyncFn:k3,isThenable:T3,setImmediate:C_,asap:P3};function yt(e,t,r,a,s){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),r&&(this.config=r),a&&(this.request=a),s&&(this.response=s,this.status=s.status?s.status:null)}je.inherits(yt,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:je.toJSONObject(this.config),code:this.code,status:this.status}}});const S_=yt.prototype,k_={};["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=>{k_[e]={value:e}});Object.defineProperties(yt,k_);Object.defineProperty(S_,"isAxiosError",{value:!0});yt.from=(e,t,r,a,s,l)=>{const f=Object.create(S_);return je.toFlatObject(e,f,function(S){return S!==Error.prototype},b=>b!=="isAxiosError"),yt.call(f,e.message,t,r,a,s),f.cause=e,f.name=e.name,l&&Object.assign(f,l),f};const _3=null;function rg(e){return je.isPlainObject(e)||je.isArray(e)}function T_(e){return je.endsWith(e,"[]")?e.slice(0,-2):e}function Ox(e,t,r){return e?e.concat(t).map(function(s,l){return s=T_(s),!r&&l?"["+s+"]":s}).join(r?".":""):t}function O3(e){return je.isArray(e)&&!e.some(rg)}const A3=je.toFlatObject(je,{},null,function(t){return/^is[A-Z]/.test(t)});function nf(e,t,r){if(!je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=je.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,P){return!je.isUndefined(P[R])});const a=r.metaTokens,s=r.visitor||O,l=r.dots,f=r.indexes,S=(r.Blob||typeof Blob<"u"&&Blob)&&je.isSpecCompliantForm(t);if(!je.isFunction(s))throw new TypeError("visitor must be a function");function T(D){if(D===null)return"";if(je.isDate(D))return D.toISOString();if(!S&&je.isBlob(D))throw new yt("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(D)||je.isTypedArray(D)?S&&typeof Blob=="function"?new Blob([D]):Buffer.from(D):D}function O(D,R,P){let y=D;if(D&&!P&&typeof D=="object"){if(je.endsWith(R,"{}"))R=a?R:R.slice(0,-2),D=JSON.stringify(D);else if(je.isArray(D)&&O3(D)||(je.isFileList(D)||je.endsWith(R,"[]"))&&(y=je.toArray(D)))return R=T_(R),y.forEach(function(v,g){!(je.isUndefined(v)||v===null)&&t.append(f===!0?Ox([R],g,l):f===null?R:R+"[]",T(v))}),!1}return rg(D)?!0:(t.append(Ox(P,R,l),T(D)),!1)}const j=[],F=Object.assign(A3,{defaultVisitor:O,convertValue:T,isVisitable:rg});function z(D,R){if(!je.isUndefined(D)){if(j.indexOf(D)!==-1)throw Error("Circular reference detected in "+R.join("."));j.push(D),je.forEach(D,function(y,p){(!(je.isUndefined(y)||y===null)&&s.call(t,y,je.isString(p)?p.trim():p,R,F))===!0&&z(y,R?R.concat(p):[p])}),j.pop()}}if(!je.isObject(e))throw new TypeError("data must be an object");return z(e),t}function Ax(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function bb(e,t){this._pairs=[],e&&nf(e,this,t)}const P_=bb.prototype;P_.append=function(t,r){this._pairs.push([t,r])};P_.toString=function(t){const r=t?function(a){return t.call(this,a,Ax)}:Ax;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function E3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function __(e,t,r){if(!t)return e;const a=r&&r.encode||E3,s=r&&r.serialize;let l;if(s?l=s(t,r):l=je.isURLSearchParams(t)?t.toString():new bb(t,r).toString(a),l){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class M3{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){je.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Ex=M3,O_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R3=typeof URLSearchParams<"u"?URLSearchParams:bb,N3=typeof FormData<"u"?FormData:null,I3=typeof Blob<"u"?Blob:null,L3={isBrowser:!0,classes:{URLSearchParams:R3,FormData:N3,Blob:I3},protocols:["http","https","file","blob","url","data"]},vb=typeof window<"u"&&typeof document<"u",ng=typeof navigator=="object"&&navigator||void 0,j3=vb&&(!ng||["ReactNative","NativeScript","NS"].indexOf(ng.product)<0),D3=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z3=vb&&window.location.href||"http://localhost",F3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vb,hasStandardBrowserEnv:j3,hasStandardBrowserWebWorkerEnv:D3,navigator:ng,origin:z3},Symbol.toStringTag,{value:"Module"})),sn={...F3,...L3};function V3(e,t){return nf(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(r,a,s,l){return sn.isNode&&je.isBuffer(r)?(this.append(a,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function W3(e){return je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B3(e){const t={},r=Object.keys(e);let a;const s=r.length;let l;for(a=0;a<s;a++)l=r[a],t[l]=e[l];return t}function A_(e){function t(r,a,s,l){let f=r[l++];if(f==="__proto__")return!0;const b=Number.isFinite(+f),S=l>=r.length;return f=!f&&je.isArray(s)?s.length:f,S?(je.hasOwnProp(s,f)?s[f]=[s[f],a]:s[f]=a,!b):((!s[f]||!je.isObject(s[f]))&&(s[f]=[]),t(r,a,s[f],l)&&je.isArray(s[f])&&(s[f]=B3(s[f])),!b)}if(je.isFormData(e)&&je.isFunction(e.entries)){const r={};return je.forEachEntry(e,(a,s)=>{t(W3(a),s,r,0)}),r}return null}function H3(e,t,r){if(je.isString(e))try{return(t||JSON.parse)(e),je.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const mb={transitional:O_,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",s=a.indexOf("application/json")>-1,l=je.isObject(t);if(l&&je.isHTMLForm(t)&&(t=new FormData(t)),je.isFormData(t))return s?JSON.stringify(A_(t)):t;if(je.isArrayBuffer(t)||je.isBuffer(t)||je.isStream(t)||je.isFile(t)||je.isBlob(t)||je.isReadableStream(t))return t;if(je.isArrayBufferView(t))return t.buffer;if(je.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let b;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return V3(t,this.formSerializer).toString();if((b=je.isFileList(t))||a.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return nf(b?{"files[]":t}:t,S&&new S,this.formSerializer)}}return l||s?(r.setContentType("application/json",!1),H3(t)):t}],transformResponse:[function(t){const r=this.transitional||mb.transitional,a=r&&r.forcedJSONParsing,s=this.responseType==="json";if(je.isResponse(t)||je.isReadableStream(t))return t;if(t&&je.isString(t)&&(a&&!this.responseType||s)){const f=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(b){if(f)throw b.name==="SyntaxError"?yt.from(b,yt.ERR_BAD_RESPONSE,this,null,this.response):b}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};je.forEach(["delete","get","head","post","put","patch"],e=>{mb.headers[e]={}});const yb=mb,X3=je.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"]),Y3=e=>{const t={};let r,a,s;return e&&e.split(`
`).forEach(function(f){s=f.indexOf(":"),r=f.substring(0,s).trim().toLowerCase(),a=f.substring(s+1).trim(),!(!r||t[r]&&X3[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},Mx=Symbol("internals");function Fs(e){return e&&String(e).trim().toLowerCase()}function cc(e){return e===!1||e==null?e:je.isArray(e)?e.map(cc):String(e)}function G3(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const U3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mp(e,t,r,a,s){if(je.isFunction(a))return a.call(this,t,r);if(s&&(t=r),!!je.isString(t)){if(je.isString(a))return t.indexOf(a)!==-1;if(je.isRegExp(a))return a.test(t)}}function $3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function q3(e,t){const r=je.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(s,l,f){return this[a].call(this,t,s,l,f)},configurable:!0})})}class of{constructor(t){t&&this.set(t)}set(t,r,a){const s=this;function l(b,S,T){const O=Fs(S);if(!O)throw new Error("header name must be a non-empty string");const j=je.findKey(s,O);(!j||s[j]===void 0||T===!0||T===void 0&&s[j]!==!1)&&(s[j||S]=cc(b))}const f=(b,S)=>je.forEach(b,(T,O)=>l(T,O,S));if(je.isPlainObject(t)||t instanceof this.constructor)f(t,r);else if(je.isString(t)&&(t=t.trim())&&!U3(t))f(Y3(t),r);else if(je.isHeaders(t))for(const[b,S]of t.entries())l(S,b,a);else t!=null&&l(r,t,a);return this}get(t,r){if(t=Fs(t),t){const a=je.findKey(this,t);if(a){const s=this[a];if(!r)return s;if(r===!0)return G3(s);if(je.isFunction(r))return r.call(this,s,a);if(je.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fs(t),t){const a=je.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Mp(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let s=!1;function l(f){if(f=Fs(f),f){const b=je.findKey(a,f);b&&(!r||Mp(a,a[b],b,r))&&(delete a[b],s=!0)}}return je.isArray(t)?t.forEach(l):l(t),s}clear(t){const r=Object.keys(this);let a=r.length,s=!1;for(;a--;){const l=r[a];(!t||Mp(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const r=this,a={};return je.forEach(this,(s,l)=>{const f=je.findKey(a,l);if(f){r[f]=cc(s),delete r[l];return}const b=t?$3(l):String(l).trim();b!==l&&delete r[l],r[b]=cc(s),a[b]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return je.forEach(this,(a,s)=>{a!=null&&a!==!1&&(r[s]=t&&je.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(s=>a.set(s)),a}static accessor(t){const a=(this[Mx]=this[Mx]={accessors:{}}).accessors,s=this.prototype;function l(f){const b=Fs(f);a[b]||(q3(s,f),a[b]=!0)}return je.isArray(t)?t.forEach(l):l(t),this}}of.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(of.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});je.freezeMethods(of);const Vn=of;function Rp(e,t){const r=this||yb,a=t||r,s=Vn.from(a.headers);let l=a.data;return je.forEach(e,function(b){l=b.call(r,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function E_(e){return!!(e&&e.__CANCEL__)}function gs(e,t,r){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,r),this.name="CanceledError"}je.inherits(gs,yt,{__CANCEL__:!0});function M_(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new yt("Request failed with status code "+r.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function K3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z3(e,t){e=e||10;const r=new Array(e),a=new Array(e);let s=0,l=0,f;return t=t!==void 0?t:1e3,function(S){const T=Date.now(),O=a[l];f||(f=T),r[s]=S,a[s]=T;let j=l,F=0;for(;j!==s;)F+=r[j++],j=j%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),T-f<t)return;const z=O&&T-O;return z?Math.round(F*1e3/z):void 0}}function Q3(e,t){let r=0,a=1e3/t,s,l;const f=(T,O=Date.now())=>{r=O,s=null,l&&(clearTimeout(l),l=null),e.apply(null,T)};return[(...T)=>{const O=Date.now(),j=O-r;j>=a?f(T,O):(s=T,l||(l=setTimeout(()=>{l=null,f(s)},a-j)))},()=>s&&f(s)]}const id=(e,t,r=3)=>{let a=0;const s=Z3(50,250);return Q3(l=>{const f=l.loaded,b=l.lengthComputable?l.total:void 0,S=f-a,T=s(S),O=f<=b;a=f;const j={loaded:f,total:b,progress:b?f/b:void 0,bytes:S,rate:T||void 0,estimated:T&&b&&O?(b-f)/T:void 0,event:l,lengthComputable:b!=null,[t?"download":"upload"]:!0};e(j)},r)},Rx=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Nx=e=>(...t)=>je.asap(()=>e(...t)),J3=sn.hasStandardBrowserEnv?function(){const t=sn.navigator&&/(msie|trident)/i.test(sn.navigator.userAgent),r=document.createElement("a");let a;function s(l){let f=l;return t&&(r.setAttribute("href",f),f=r.href),r.setAttribute("href",f),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return a=s(window.location.href),function(f){const b=je.isString(f)?s(f):f;return b.protocol===a.protocol&&b.host===a.host}}():function(){return function(){return!0}}(),eV=sn.hasStandardBrowserEnv?{write(e,t,r,a,s,l){const f=[e+"="+encodeURIComponent(t)];je.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),je.isString(a)&&f.push("path="+a),je.isString(s)&&f.push("domain="+s),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function R_(e,t){return e&&!tV(t)?rV(e,t):t}const Ix=e=>e instanceof Vn?{...e}:e;function Ya(e,t){t=t||{};const r={};function a(T,O,j){return je.isPlainObject(T)&&je.isPlainObject(O)?je.merge.call({caseless:j},T,O):je.isPlainObject(O)?je.merge({},O):je.isArray(O)?O.slice():O}function s(T,O,j){if(je.isUndefined(O)){if(!je.isUndefined(T))return a(void 0,T,j)}else return a(T,O,j)}function l(T,O){if(!je.isUndefined(O))return a(void 0,O)}function f(T,O){if(je.isUndefined(O)){if(!je.isUndefined(T))return a(void 0,T)}else return a(void 0,O)}function b(T,O,j){if(j in t)return a(T,O);if(j in e)return a(void 0,T)}const S={url:l,method:l,data:l,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:b,headers:(T,O)=>s(Ix(T),Ix(O),!0)};return je.forEach(Object.keys(Object.assign({},e,t)),function(O){const j=S[O]||s,F=j(e[O],t[O],O);je.isUndefined(F)&&j!==b||(r[O]=F)}),r}const N_=e=>{const t=Ya({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:l,headers:f,auth:b}=t;t.headers=f=Vn.from(f),t.url=__(R_(t.baseURL,t.url),e.params,e.paramsSerializer),b&&f.set("Authorization","Basic "+btoa((b.username||"")+":"+(b.password?unescape(encodeURIComponent(b.password)):"")));let S;if(je.isFormData(r)){if(sn.hasStandardBrowserEnv||sn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((S=f.getContentType())!==!1){const[T,...O]=S?S.split(";").map(j=>j.trim()).filter(Boolean):[];f.setContentType([T||"multipart/form-data",...O].join("; "))}}if(sn.hasStandardBrowserEnv&&(a&&je.isFunction(a)&&(a=a(t)),a||a!==!1&&J3(t.url))){const T=s&&l&&eV.read(l);T&&f.set(s,T)}return t},nV=typeof XMLHttpRequest<"u",oV=nV&&function(e){return new Promise(function(r,a){const s=N_(e);let l=s.data;const f=Vn.from(s.headers).normalize();let{responseType:b,onUploadProgress:S,onDownloadProgress:T}=s,O,j,F,z,D;function R(){z&&z(),D&&D(),s.cancelToken&&s.cancelToken.unsubscribe(O),s.signal&&s.signal.removeEventListener("abort",O)}let P=new XMLHttpRequest;P.open(s.method.toUpperCase(),s.url,!0),P.timeout=s.timeout;function y(){if(!P)return;const v=Vn.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),m={data:!b||b==="text"||b==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:v,config:e,request:P};M_(function(M){r(M),R()},function(M){a(M),R()},m),P=null}"onloadend"in P?P.onloadend=y:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(y)},P.onabort=function(){P&&(a(new yt("Request aborted",yt.ECONNABORTED,e,P)),P=null)},P.onerror=function(){a(new yt("Network Error",yt.ERR_NETWORK,e,P)),P=null},P.ontimeout=function(){let g=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const m=s.transitional||O_;s.timeoutErrorMessage&&(g=s.timeoutErrorMessage),a(new yt(g,m.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,P)),P=null},l===void 0&&f.setContentType(null),"setRequestHeader"in P&&je.forEach(f.toJSON(),function(g,m){P.setRequestHeader(m,g)}),je.isUndefined(s.withCredentials)||(P.withCredentials=!!s.withCredentials),b&&b!=="json"&&(P.responseType=s.responseType),T&&([F,D]=id(T,!0),P.addEventListener("progress",F)),S&&P.upload&&([j,z]=id(S),P.upload.addEventListener("progress",j),P.upload.addEventListener("loadend",z)),(s.cancelToken||s.signal)&&(O=v=>{P&&(a(!v||v.type?new gs(null,e,P):v),P.abort(),P=null)},s.cancelToken&&s.cancelToken.subscribe(O),s.signal&&(s.signal.aborted?O():s.signal.addEventListener("abort",O)));const p=K3(s.url);if(p&&sn.protocols.indexOf(p)===-1){a(new yt("Unsupported protocol "+p+":",yt.ERR_BAD_REQUEST,e));return}P.send(l||null)})},aV=(e,t)=>{let r=new AbortController,a;const s=function(S){if(!a){a=!0,f();const T=S instanceof Error?S:this.reason;r.abort(T instanceof yt?T:new gs(T instanceof Error?T.message:T))}};let l=t&&setTimeout(()=>{s(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const f=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(S=>{S&&(S.removeEventListener?S.removeEventListener("abort",s):S.unsubscribe(s))}),e=null)};e.forEach(S=>S&&S.addEventListener&&S.addEventListener("abort",s));const{signal:b}=r;return b.unsubscribe=f,[b,()=>{l&&clearTimeout(l),l=null}]},iV=aV,sV=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,s;for(;a<r;)s=a+t,yield e.slice(a,s),a=s},lV=async function*(e,t,r){for await(const a of e)yield*sV(ArrayBuffer.isView(a)?a:await r(String(a)),t)},Lx=(e,t,r,a,s)=>{const l=lV(e,t,s);let f=0,b,S=T=>{b||(b=!0,a&&a(T))};return new ReadableStream({async pull(T){try{const{done:O,value:j}=await l.next();if(O){S(),T.close();return}let F=j.byteLength;if(r){let z=f+=F;r(z)}T.enqueue(new Uint8Array(j))}catch(O){throw S(O),O}},cancel(T){return S(T),l.return()}},{highWaterMark:2})},af=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",I_=af&&typeof ReadableStream=="function",og=af&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),L_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uV=I_&&L_(()=>{let e=!1;const t=new Request(sn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),jx=64*1024,ag=I_&&L_(()=>je.isReadableStream(new Response("").body)),sd={stream:ag&&(e=>e.body)};af&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sd[t]&&(sd[t]=je.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,a)})})})(new Response);const cV=async e=>{if(e==null)return 0;if(je.isBlob(e))return e.size;if(je.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(je.isArrayBufferView(e)||je.isArrayBuffer(e))return e.byteLength;if(je.isURLSearchParams(e)&&(e=e+""),je.isString(e))return(await og(e)).byteLength},dV=async(e,t)=>{const r=je.toFiniteNumber(e.getContentLength());return r??cV(t)},fV=af&&(async e=>{let{url:t,method:r,data:a,signal:s,cancelToken:l,timeout:f,onDownloadProgress:b,onUploadProgress:S,responseType:T,headers:O,withCredentials:j="same-origin",fetchOptions:F}=N_(e);T=T?(T+"").toLowerCase():"text";let[z,D]=s||l||f?iV([s,l],f):[],R,P;const y=()=>{!R&&setTimeout(()=>{z&&z.unsubscribe()}),R=!0};let p;try{if(S&&uV&&r!=="get"&&r!=="head"&&(p=await dV(O,a))!==0){let M=new Request(t,{method:"POST",body:a,duplex:"half"}),X;if(je.isFormData(a)&&(X=M.headers.get("content-type"))&&O.setContentType(X),M.body){const[H,B]=Rx(p,id(Nx(S)));a=Lx(M.body,jx,H,B,og)}}je.isString(j)||(j=j?"include":"omit");const v="credentials"in Request.prototype;P=new Request(t,{...F,signal:z,method:r.toUpperCase(),headers:O.normalize().toJSON(),body:a,duplex:"half",credentials:v?j:void 0});let g=await fetch(P);const m=ag&&(T==="stream"||T==="response");if(ag&&(b||m)){const M={};["status","statusText","headers"].forEach(U=>{M[U]=g[U]});const X=je.toFiniteNumber(g.headers.get("content-length")),[H,B]=b&&Rx(X,id(Nx(b),!0))||[];g=new Response(Lx(g.body,jx,H,()=>{B&&B(),m&&y()},og),M)}T=T||"text";let _=await sd[je.findKey(sd,T)||"text"](g,e);return!m&&y(),D&&D(),await new Promise((M,X)=>{M_(M,X,{data:_,headers:Vn.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:P})})}catch(v){throw y(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,P),{cause:v.cause||v}):yt.from(v,v&&v.code,e,P)}}),ig={http:_3,xhr:oV,fetch:fV};je.forEach(ig,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Dx=e=>`- ${e}`,pV=e=>je.isFunction(e)||e===null||e===!1,j_={getAdapter:e=>{e=je.isArray(e)?e:[e];const{length:t}=e;let r,a;const s={};for(let l=0;l<t;l++){r=e[l];let f;if(a=r,!pV(r)&&(a=ig[(f=String(r)).toLowerCase()],a===void 0))throw new yt(`Unknown adapter '${f}'`);if(a)break;s[f||"#"+l]=a}if(!a){const l=Object.entries(s).map(([b,S])=>`adapter ${b} `+(S===!1?"is not supported by the environment":"is not available in the build"));let f=t?l.length>1?`since :
`+l.map(Dx).join(`
`):" "+Dx(l[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a},adapters:ig};function Np(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function zx(e){return Np(e),e.headers=Vn.from(e.headers),e.data=Rp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j_.getAdapter(e.adapter||yb.adapter)(e).then(function(a){return Np(e),a.data=Rp.call(e,e.transformResponse,a),a.headers=Vn.from(a.headers),a},function(a){return E_(a)||(Np(e),a&&a.response&&(a.response.data=Rp.call(e,e.transformResponse,a.response),a.response.headers=Vn.from(a.response.headers))),Promise.reject(a)})}const D_="1.7.5",xb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xb[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const Fx={};xb.transitional=function(t,r,a){function s(l,f){return"[Axios v"+D_+"] Transitional option '"+l+"'"+f+(a?". "+a:"")}return(l,f,b)=>{if(t===!1)throw new yt(s(f," has been removed"+(r?" in "+r:"")),yt.ERR_DEPRECATED);return r&&!Fx[f]&&(Fx[f]=!0,console.warn(s(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,f,b):!0}};function hV(e,t,r){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const l=a[s],f=t[l];if(f){const b=e[l],S=b===void 0||f(b,l,e);if(S!==!0)throw new yt("option "+l+" must be "+S,yt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new yt("Unknown option "+l,yt.ERR_BAD_OPTION)}}const sg={assertOptions:hV,validators:xb},Vo=sg.validators;class ld{constructor(t){this.defaults=t,this.interceptors={request:new Ex,response:new Ex}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+l):a.stack=l}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ya(this.defaults,r);const{transitional:a,paramsSerializer:s,headers:l}=r;a!==void 0&&sg.assertOptions(a,{silentJSONParsing:Vo.transitional(Vo.boolean),forcedJSONParsing:Vo.transitional(Vo.boolean),clarifyTimeoutError:Vo.transitional(Vo.boolean)},!1),s!=null&&(je.isFunction(s)?r.paramsSerializer={serialize:s}:sg.assertOptions(s,{encode:Vo.function,serialize:Vo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=l&&je.merge(l.common,l[r.method]);l&&je.forEach(["delete","get","head","post","put","patch","common"],D=>{delete l[D]}),r.headers=Vn.concat(f,l);const b=[];let S=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(S=S&&R.synchronous,b.unshift(R.fulfilled,R.rejected))});const T=[];this.interceptors.response.forEach(function(R){T.push(R.fulfilled,R.rejected)});let O,j=0,F;if(!S){const D=[zx.bind(this),void 0];for(D.unshift.apply(D,b),D.push.apply(D,T),F=D.length,O=Promise.resolve(r);j<F;)O=O.then(D[j++],D[j++]);return O}F=b.length;let z=r;for(j=0;j<F;){const D=b[j++],R=b[j++];try{z=D(z)}catch(P){R.call(this,P);break}}try{O=zx.call(this,z)}catch(D){return Promise.reject(D)}for(j=0,F=T.length;j<F;)O=O.then(T[j++],T[j++]);return O}getUri(t){t=Ya(this.defaults,t);const r=R_(t.baseURL,t.url);return __(r,t.params,t.paramsSerializer)}}je.forEach(["delete","get","head","options"],function(t){ld.prototype[t]=function(r,a){return this.request(Ya(a||{},{method:t,url:r,data:(a||{}).data}))}});je.forEach(["post","put","patch"],function(t){function r(a){return function(l,f,b){return this.request(Ya(b||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:f}))}}ld.prototype[t]=r(),ld.prototype[t+"Form"]=r(!0)});const dc=ld;class wb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const a=this;this.promise.then(s=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](s);a._listeners=null}),this.promise.then=s=>{let l;const f=new Promise(b=>{a.subscribe(b),l=b}).then(s);return f.cancel=function(){a.unsubscribe(l)},f},t(function(l,f,b){a.reason||(a.reason=new gs(l,f,b),r(a.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new wb(function(s){t=s}),cancel:t}}}const gV=wb;function bV(e){return function(r){return e.apply(null,r)}}function vV(e){return je.isObject(e)&&e.isAxiosError===!0}const lg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lg).forEach(([e,t])=>{lg[t]=e});const mV=lg;function z_(e){const t=new dc(e),r=g_(dc.prototype.request,t);return je.extend(r,dc.prototype,t,{allOwnKeys:!0}),je.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return z_(Ya(e,s))},r}const ir=z_(yb);ir.Axios=dc;ir.CanceledError=gs;ir.CancelToken=gV;ir.isCancel=E_;ir.VERSION=D_;ir.toFormData=nf;ir.AxiosError=yt;ir.Cancel=ir.CanceledError;ir.all=function(t){return Promise.all(t)};ir.spread=bV;ir.isAxiosError=vV;ir.mergeConfig=Ya;ir.AxiosHeaders=Vn;ir.formToJSON=e=>A_(je.isHTMLForm(e)?new FormData(e):e);ir.getAdapter=j_.getAdapter;ir.HttpStatusCode=mV;ir.default=ir;const Vs=ir,yV={success:"text-green-400",warning:"text-yellow-400",error:"text-red-400",started:"text-blue-300"},xV=e=>{if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})},Vx=e=>{if(e)return e.replace("T"," ")},Wx="redeployLogFilters",Wo="__all__",zu="- Alle -",Bx="50",wV=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"},{value:"100",label:"100"},{value:"all",label:"Alle"}],CV=new Set(wV.map(e=>e.value)),Hx={Einzeln:"Einzeln",Alle:"Alle",Auswahl:"Auswahl",single:"Einzeln",all:"Alle",selection:"Auswahl"},SV=e=>!!(e.stacks&&e.stacks.length||e.statuses&&e.statuses.length||e.endpoints&&e.endpoints.length||e.redeployTypes&&e.redeployTypes.length||e.message&&e.message.trim()||e.from&&e.from.trim()||e.to&&e.to.trim());function kV(){const[e,t]=ee.useState([]),[r,a]=ee.useState(0),[s,l]=ee.useState(!0),[f,b]=ee.useState(""),[S,T]=ee.useState(!1),[O,j]=ee.useState([]),[F,z]=ee.useState([]),[D,R]=ee.useState([]),[P,y]=ee.useState([]),[p,v]=ee.useState([]),[g,m]=ee.useState([]),[_,M]=ee.useState([]),[X,H]=ee.useState([]),[B,U]=ee.useState(""),[K,oe]=ee.useState(""),[ne,fe]=ee.useState(""),[me,Se]=ee.useState(!1),[be,ue]=ee.useState(!1),[ge,ye]=ee.useState(!1),[_e,Ee]=ee.useState(0),[Ne,Le]=ee.useState(Bx),[Pe,Xe]=ee.useState(1),Ve=ee.useCallback(Fe=>{const Ye=Array.isArray(Fe)?Fe:(Fe==null?void 0:Fe.items)??[],et=new Map,dt=new Set,St=new Set,Et=new Set;Ye.forEach(gt=>{if(gt.stackId){const Gt=String(gt.stackId),Sr=gt.stackName||`Stack ${Gt}`;et.set(Gt,Sr)}gt.status&&dt.add(gt.status),gt.endpoint!==null&&gt.endpoint!==void 0&&gt.endpoint!==""&&St.add(String(gt.endpoint)),gt.redeployType&&Et.add(gt.redeployType)}),j(Array.from(et.entries()).map(([gt,Gt])=>({value:gt,label:Gt})).sort((gt,Gt)=>gt.label.localeCompare(Gt.label))),z(Array.from(dt).sort()),R(Array.from(St).sort((gt,Gt)=>gt.localeCompare(Gt,void 0,{numeric:!0}))),y(Array.from(Et).sort()),ye(!0)},[]);ee.useMemo(()=>{const Fe=new Map;return O.forEach(Ye=>{Fe.set(Ye.value,Ye.label)}),Fe},[O]),ee.useEffect(()=>{ge&&v(Fe=>{const Ye=Fe.filter(et=>O.some(dt=>dt.value===et));return Ye.length===Fe.length?Fe:Ye})},[ge,O]),ee.useEffect(()=>{ge&&m(Fe=>{const Ye=Fe.filter(et=>F.includes(et));return Ye.length===Fe.length?Fe:Ye})},[ge,F]),ee.useEffect(()=>{ge&&M(Fe=>{const Ye=Fe.filter(et=>D.includes(et));return Ye.length===Fe.length?Fe:Ye})},[ge,D]),ee.useEffect(()=>{ge&&H(Fe=>{const Ye=Fe.filter(et=>P.includes(et));return Ye.length===Fe.length?Fe:Ye})},[ge,P]),ee.useEffect(()=>{if(typeof window>"u"){ue(!0);return}try{const Fe=window.localStorage.getItem(Wx);if(Fe){const Ye=JSON.parse(Fe),et=(Ye==null?void 0:Ye.filters)??Ye??{},dt=(Ye==null?void 0:Ye.pagination)??{};v(et.stacks||[]),m(et.statuses||[]),M(et.endpoints||[]),H(et.redeployTypes||[]),U(et.message||""),oe(et.from||""),fe(et.to||""),Se(SV(et));const St=dt.perPage;if(St!==void 0){const gt=String(St);CV.has(gt)&&Le(gt)}const Et=dt.page;typeof Et=="number"&&Et>0&&Xe(Et)}}catch(Fe){console.error("❌ Fehler beim Laden der gespeicherten Log-Filter:",Fe)}finally{ue(!0)}},[]);const Re=ee.useCallback(()=>{const Fe={};p.length&&(Fe.stackIds=p.join(",")),g.length&&(Fe.statuses=g.join(",")),_.length&&(Fe.endpoints=_.join(",")),X.length&&(Fe.redeployTypes=X.join(",")),B.trim()&&(Fe.message=B.trim());const Ye=Vx(K);Ye&&(Fe.from=Ye);const et=Vx(ne);return et&&(Fe.to=et),Fe},[p,g,_,X,B,K,ne]);ee.useEffect(()=>{if(!be)return;let Fe=!1;return Vs.get("/api/logs",{params:{perPage:"all",page:1}}).then(Ye=>{Fe||Ve(Ye.data)}).catch(Ye=>{Fe||console.error("⚠️ Konnte Filteroptionen nicht aktualisieren:",Ye)}),()=>{Fe=!0}},[be,Ve,_e]);const He=ee.useMemo(()=>({stacks:p,statuses:g,endpoints:_,redeployTypes:X,message:B,from:K,to:ne}),[p,g,_,X,B,K,ne]);ee.useEffect(()=>{if(!be)return;const Fe={...Re()};Ne==="all"?(Fe.perPage="all",Fe.page=1):(Fe.perPage=Ne,Fe.page=Pe);let Ye=!1;return l(!0),b(""),Vs.get("/api/logs",{params:Fe}).then(et=>{if(Ye)return;const dt=et.data||{},St=Array.isArray(dt)?dt:dt.items??[],Et=Array.isArray(dt)?St.length:dt.total??St.length;if(t(St),a(Et),Ne==="all")Pe!==1&&Xe(1);else{const gt=Math.max(1,Math.ceil((Et||0)/Number(Ne))),Gt=Math.min(Math.max(Pe,1),gt);Gt!==Pe&&Xe(Gt)}}).catch(et=>{Ye||(console.error("❌ Fehler beim Laden der Logs:",et),b("Fehler beim Laden der Redeploy-Logs"))}).finally(()=>{Ye||l(!1)}),()=>{Ye=!0}},[be,Re,Ve,_e,Ne,Pe]),ee.useEffect(()=>{if(be&&!(typeof window>"u"))try{window.localStorage.setItem(Wx,JSON.stringify({filters:He,pagination:{perPage:Ne,page:Pe}}))}catch(Fe){console.error("⚠️ Konnte Filter nicht speichern:",Fe)}},[be,He,Ne,Pe]);const We=Fe=>{if(Ne==="all"||Fe<1)return;const Ye=Math.max(1,Math.ceil((r||0)/Number(Ne)));Fe>Ye||Xe(Fe)};ee.useMemo(()=>{const Fe=O.filter(Ye=>Ye.value!==Wo);return[{value:Wo,label:zu},...Fe]},[O]),ee.useMemo(()=>{const Fe=F.filter(Ye=>Ye!==Wo).map(Ye=>({value:Ye,label:Ye}));return[{value:Wo,label:zu},...Fe]},[F]),ee.useMemo(()=>{const Fe=D.filter(Ye=>Ye!==Wo).map(Ye=>({value:Ye,label:Ye}));return[{value:Wo,label:zu},...Fe]},[D]),ee.useMemo(()=>{const Fe=P.filter(Ye=>Ye!==Wo).map(Ye=>({value:Ye,label:Hx[Ye]??Ye}));return[{value:Wo,label:zu},...Fe]},[P]);const Ke=ee.useMemo(()=>{let Fe=0;return p.length&&(Fe+=p.length),g.length&&(Fe+=g.length),_.length&&(Fe+=_.length),X.length&&(Fe+=X.length),B.trim()&&(Fe+=1),K&&(Fe+=1),ne&&(Fe+=1),Fe},[p,g,_,B,K,ne]),ot=ee.useMemo(()=>{if(Ne==="all")return 1;const Fe=Number(Ne)||Number(Bx);return Math.max(1,Math.ceil((r||0)/Fe))},[Ne,r]),Qe=ee.useMemo(()=>r===0?0:Ne==="all"?1:(Pe-1)*Number(Ne)+1,[r,Ne,Pe]),qe=ee.useMemo(()=>r===0?0:Ne==="all"?r:Math.min(r,(Pe-1)*Number(Ne)+e.length),[r,Ne,Pe,e.length]),st=async Fe=>{if(window.confirm("Diesen Log-Eintrag dauerhaft löschen?")){T(!0),b("");try{await Vs.delete(`/api/logs/${Fe}`),Ee(Ye=>Ye+1)}catch(Ye){console.error("❌ Fehler beim Löschen des Logs:",Ye),b("Fehler beim Löschen des Redeploy-Logs")}finally{T(!1)}}},wt=async()=>{if(e.length&&window.confirm("Alle angezeigten Logs (entsprechend Filter) löschen?")){T(!0),b("");try{const Fe={...Re(),ids:e.map(Ye=>Ye.id).join(",")};await Vs.delete("/api/logs",{params:Fe}),Ee(Ye=>Ye+1)}catch(Fe){console.error("❌ Fehler beim Löschen der gefilterten Logs:",Fe),b("Fehler beim Löschen der gefilterten Logs")}finally{T(!1)}}},kt=async Fe=>{T(!0),b("");try{const Ye=await Vs.get("/api/logs/export",{params:{...Re(),format:Fe},responseType:"blob"}),et=Ye.headers["content-type"]||(Fe==="sql"?"application/sql":"text/plain"),St=(Ye.headers["content-disposition"]||"").match(/filename="?([^";]+)"?/i),Et=(St==null?void 0:St[1])||`redeploy-logs.${Fe}`,gt=new Blob([Ye.data],{type:et}),Gt=window.URL.createObjectURL(gt),Sr=document.createElement("a");Sr.href=Gt,Sr.download=Et,document.body.appendChild(Sr),Sr.click(),Sr.remove(),window.URL.revokeObjectURL(Gt)}catch(Ye){console.error("❌ Fehler beim Export der Logs:",Ye),b("Fehler beim Export der Redeploy-Logs")}finally{T(!1)}},[Lt,At]=ln.useState(!1),jt=()=>At(Fe=>!Fe);return he.jsxs("div",{className:"mt-12 mb-8 flex flex-col gap-12",children:[he.jsxs(De.Card,{children:[he.jsx(De.CardHeader,{variant:"gradient",color:"gray",className:"p-6 pt-2 pb-2",children:he.jsx(De.Typography,{variant:"h6",color:"white",children:he.jsx("button",{onClick:jt,children:"Filter und Optionen"})})}),he.jsxs(De.CardBody,{children:[he.jsx("div",{className:"flex flex-wrap mb-2",children:he.jsxs("span",{className:" rounded-full bg-blue-gray-500/80 px-2 py-0.5 text-xs text-white",children:[Ke," aktiv"]})}),he.jsxs(De.Collapse,{open:Lt,children:[he.jsxs("div",{className:"flex flex-wrap gap-2",children:[he.jsx(De.Button,{onClick:()=>kt("txt"),disabled:S||s,className:"w-full md:flex-1",children:"Export TXT"}),he.jsx(De.Button,{onClick:()=>kt("sql"),disabled:S||s,className:"w-full md:flex-1",children:"Export SQL"}),he.jsx(De.Button,{color:"red",onClick:wt,disabled:S||s||e.length===0,className:"w-full md:flex-1",children:"Angezeigte löschen"})]}),he.jsx("div",{className:"flex flex-wrap gap-2 mt-5",children:he.jsxs(De.Select,{multiple:!0,variant:"outlined",label:"Select Version",children:[he.jsx(De.Option,{children:"Material Tailwind HTML"}),he.jsx(De.Option,{children:"Material Tailwind React"}),he.jsx(De.Option,{children:"Material Tailwind Vue"}),he.jsx(De.Option,{children:"Material Tailwind Angular"}),he.jsx(De.Option,{children:"Material Tailwind Svelte"})]})})]})]})]}),he.jsxs(De.Card,{children:[he.jsx(De.CardHeader,{variant:"gradient",color:"gray",className:"mb-8 p-6",children:he.jsx(De.Typography,{variant:"h6",color:"white",children:"Logs"})}),he.jsx(De.CardBody,{className:"overflow-x-scroll px-0 pt-0 pb-2",children:he.jsxs("table",{className:"w-full min-w-[640px] table-auto",children:[he.jsx("thead",{children:he.jsx("tr",{children:["Zeitpunkt","Stack","Art","Status","Nachricht","Endpoint","Aktionen"].map(Fe=>he.jsx("th",{className:"border-b border-blue-gray-50 py-3 px-5 text-left",children:he.jsx(De.Typography,{variant:"small",className:"text-[11px] font-bold uppercase text-blue-gray-400",children:Fe})},Fe))})}),he.jsx("tbody",{children:e.map(Fe=>{const Ye=yV[Fe.status]||"text-blue-300",et="py-3 px-5",dt=Fe.stackName||"Unbekannt",St=dt!=="---"&&Fe.stackId!==void 0&&Fe.stackId!==null,Et=Fe.redeployType?Hx[Fe.redeployType]??Fe.redeployType:"---";return he.jsxs("tr",{children:[he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",className:"mb-1 block text-xs font-medium text-blue-gray-600",children:xV(Fe.timestamp)})}),he.jsx("td",{className:et,children:he.jsxs("div",{className:"flex flex-col",children:[he.jsx("span",{className:"font-medium",children:dt}),he.jsx(De.Typography,{variant:"small",children:St&&he.jsxs("span",{className:"text-xs text-gray-400",children:["ID: ",Fe.stackId]})})]})}),he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",children:Et})}),he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",className:`font-semibold ${Ye}`,children:Fe.status})}),he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",children:Fe.message||"-"})}),he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",children:Fe.endpoint??"-"})}),he.jsx("td",{className:et,children:he.jsx(De.Typography,{variant:"small",children:he.jsx("button",{onClick:()=>st(Fe.id),disabled:S,className:"rounded-md border border-red-600 px-3 py-1 text-xs text-red-300 transition hover:bg-red-600/20 disabled:opacity-60",children:"Löschen"})})})]},Fe.id)})})]})})]}),he.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[he.jsx("span",{children:r===0?"Keine Einträge":Ne==="all"?`Zeige alle ${r} Einträge`:`Zeige ${Qe.toLocaleString()} ${qe.toLocaleString()} von ${r.toLocaleString()} Einträgen`}),Ne!=="all"&&he.jsxs("div",{className:"flex items-center gap-2",children:[he.jsx("button",{onClick:()=>We(Pe-1),disabled:Pe<=1||S,className:"rounded-md border border-slate-300 p-2.5 text-center text-sm transition-all shadow-sm hover:shadow-lg text-slate-600 hover:text-white hover:bg-slate-800 hover:border-slate-800 focus:text-white focus:bg-slate-800 focus:border-slate-800 active:border-slate-800 active:text-white active:bg-slate-800 disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none",children:he.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"w-4 h-4",children:he.jsx("path",{d:"M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z"})})}),he.jsxs("p",{className:"text-slate-600",children:["Seite ",he.jsx("strong",{className:"text-slate-800",children:Pe})," / ",he.jsx("strong",{className:"text-slate-800",children:ot})]}),he.jsx("button",{onClick:()=>We(Pe+1),disabled:Pe>=ot||S,className:"rounded-md border border-slate-300 p-2.5 text-center text-sm transition-all shadow-sm hover:shadow-lg text-slate-600 hover:text-white hover:bg-slate-800 hover:border-slate-800 focus:text-white focus:bg-slate-800 focus:border-slate-800 active:border-slate-800 active:text-white active:bg-slate-800 disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none",type:"button",children:he.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"w-4 h-4",children:he.jsx("path",{d:"M12.97 3.97a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 1 1-1.06-1.06l6.22-6.22H3a.75.75 0 0 1 0-1.5h16.19l-6.22-6.22a.75.75 0 0 1 0-1.06Z"})})})]})]})]})}const Ip={className:"w-5 h-5 text-inherit"},ug=[{layout:"dashboard",pages:[{icon:he.jsx(FN,{...Ip}),name:"stacks",path:"/stacks",element:he.jsx(V4,{})},{icon:he.jsx(KN,{...Ip}),name:"maintenance",path:"/maintenance",element:he.jsx(W4,{})},{icon:he.jsx(_N,{...Ip}),name:"logs",path:"/logs",element:he.jsx(kV,{})}]}];function F_(){const[e,t]=Kd(),{sidenavType:r}=e;return he.jsxs("div",{className:"min-h-screen bg-blue-gray-50/50",children:[he.jsx(Zd,{routes:ug,brandImg:r==="dark"?"/img/logo-ct.png":"/img/logo-ct-dark.png"}),he.jsxs("div",{className:"p-4 xl:ml-80",children:[he.jsx(l_,{}),he.jsx(u_,{}),he.jsx(De.IconButton,{size:"lg",color:"white",className:"fixed bottom-8 right-8 z-40 rounded-full shadow-blue-gray-900/10",ripple:!1,onClick:()=>pb(t,!0),children:he.jsx(bC,{className:"h-5 w-5"})}),he.jsx(l0,{children:ug.map(({layout:a,pages:s})=>a==="dashboard"&&s.map(({path:l,element:f})=>he.jsx(Ni,{exact:!0,path:l,element:f})))}),he.jsx("div",{className:"text-blue-gray-600",children:he.jsx(c_,{})})]})]})}F_.displayName="/src/layout/dashboard.jsx";function V_(){return he.jsx("div",{className:"relative min-h-screen w-full",children:he.jsx(l0,{children:ug.map(({layout:e,pages:t})=>e==="auth"&&t.map(({path:r,element:a})=>he.jsx(Ni,{exact:!0,path:r,element:a})))})})}V_.displayName="/src/layout/Auth.jsx";function TV(){return he.jsxs(l0,{children:[he.jsx(Ni,{path:"/dashboard/*",element:he.jsx(F_,{})}),he.jsx(Ni,{path:"/auth/*",element:he.jsx(V_,{})}),he.jsx(Ni,{path:"*",element:he.jsx(BR,{to:"/dashboard/home",replace:!0})})]})}Lp.createRoot(document.getElementById("root")).render(he.jsx(ln.StrictMode,{children:he.jsx(KR,{children:he.jsx(De.ThemeProvider,{children:he.jsx(fb,{children:he.jsx(TV,{})})})})}));