Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Update react code

Roland Geider3d7a5ed3259f
diff --git a/wger/core/static/react/main.js b/wger/core/static/react/main.js
index 32fc9ba12..8b94692c4 100644
--- a/wger/core/static/react/main.js
+++ b/wger/core/static/react/main.js
@@ -1,4 +1,4 @@
-var _ge=Object.defineProperty;var iH=e=>{throw TypeError(e)};var Lge=(e,t,n)=>t in e?_ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pn=(e,t,n)=>Lge(e,typeof t!="symbol"?t+"":t,n),mA=(e,t,n)=>t.has(e)||iH("Cannot "+n);var ve=(e,t,n)=>(mA(e,t,"read from private field"),n?n.call(e):t.get(e)),jt=(e,t,n)=>t.has(e)?iH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),bt=(e,t,n,r)=>(mA(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),hn=(e,t,n)=>(mA(e,t,"access private method"),n);var G1=(e,t,n,r)=>({set _(o){bt(e,t,o,n)},get _(){return ve(e,t,r)}});function Nge(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var AK={exports:{}},uO={},$K={exports:{}},In={};/**
+var Wye=Object.defineProperty;var qH=e=>{throw TypeError(e)};var Gye=(e,t,n)=>t in e?Wye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tn=(e,t,n)=>Gye(e,typeof t!="symbol"?t+"":t,n),XA=(e,t,n)=>t.has(e)||qH("Cannot "+n);var ve=(e,t,n)=>(XA(e,t,"read from private field"),n?n.call(e):t.get(e)),Bt=(e,t,n)=>t.has(e)?qH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),wt=(e,t,n,r)=>(XA(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pn=(e,t,n)=>(XA(e,t,"access private method"),n);var gC=(e,t,n,r)=>({set _(o){wt(e,t,o,n)},get _(){return ve(e,t,r)}});function qye(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var IY={exports:{}},jO={},kY={exports:{}},Tn={};/**
* @license React
* react.production.min.js
*
@@ -6,7 +6,7 @@ var _ge=Object.defineProperty;var iH=e=>{throw TypeError(e)};var Lge=(e,t,n)=>t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var qx=Symbol.for("react.element"),Fge=Symbol.for("react.portal"),jge=Symbol.for("react.fragment"),Bge=Symbol.for("react.strict_mode"),zge=Symbol.for("react.profiler"),Vge=Symbol.for("react.provider"),Hge=Symbol.for("react.context"),Uge=Symbol.for("react.forward_ref"),Wge=Symbol.for("react.suspense"),Gge=Symbol.for("react.memo"),qge=Symbol.for("react.lazy"),aH=Symbol.iterator;function Kge(e){return e===null||typeof e!="object"?null:(e=aH&&e[aH]||e["@@iterator"],typeof e=="function"?e:null)}var RK={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},DK=Object.assign,_K={};function fv(e,t,n){this.props=e,this.context=t,this.refs=_K,this.updater=n||RK}fv.prototype.isReactComponent={};fv.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")};fv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function LK(){}LK.prototype=fv.prototype;function GL(e,t,n){this.props=e,this.context=t,this.refs=_K,this.updater=n||RK}var qL=GL.prototype=new LK;qL.constructor=GL;DK(qL,fv.prototype);qL.isPureReactComponent=!0;var sH=Array.isArray,NK=Object.prototype.hasOwnProperty,KL={current:null},FK={key:!0,ref:!0,__self:!0,__source:!0};function jK(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)NK.call(t,r)&&!FK.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:qx,type:e,key:i,ref:a,props:o,_owner:KL.current}}function Yge(e,t){return{$$typeof:qx,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function YL(e){return typeof e=="object"&&e!==null&&e.$$typeof===qx}function Xge(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lH=/\/+/g;function gA(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xge(""+e.key):t.toString(36)}function oP(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case qx:case Fge:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+gA(a,0):r,sH(o)?(n="",e!=null&&(n=e.replace(lH,"$&/")+"/"),oP(o,t,n,"",function(c){return c})):o!=null&&(YL(o)&&(o=Yge(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(lH,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",sH(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+gA(i,s);a+=oP(i,t,n,l,o)}else if(l=Kge(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+gA(i,s++),a+=oP(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function q1(e,t,n){if(e==null)return e;var r=[],o=0;return oP(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Qge(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qi={current:null},iP={transition:null},Jge={ReactCurrentDispatcher:qi,ReactCurrentBatchConfig:iP,ReactCurrentOwner:KL};function BK(){throw Error("act(...) is not supported in production builds of React.")}In.Children={map:q1,forEach:function(e,t,n){q1(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return q1(e,function(){t++}),t},toArray:function(e){return q1(e,function(t){return t})||[]},only:function(e){if(!YL(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};In.Component=fv;In.Fragment=jge;In.Profiler=zge;In.PureComponent=GL;In.StrictMode=Bge;In.Suspense=Wge;In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jge;In.act=BK;In.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=DK({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=KL.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)NK.call(t,l)&&!FK.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:qx,type:e.type,key:o,ref:i,props:r,_owner:a}};In.createContext=function(e){return e={$$typeof:Hge,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vge,_context:e},e.Consumer=e};In.createElement=jK;In.createFactory=function(e){var t=jK.bind(null,e);return t.type=e,t};In.createRef=function(){return{current:null}};In.forwardRef=function(e){return{$$typeof:Uge,render:e}};In.isValidElement=YL;In.lazy=function(e){return{$$typeof:qge,_payload:{_status:-1,_result:e},_init:Qge}};In.memo=function(e,t){return{$$typeof:Gge,type:e,compare:t===void 0?null:t}};In.startTransition=function(e){var t=iP.transition;iP.transition={};try{e()}finally{iP.transition=t}};In.unstable_act=BK;In.useCallback=function(e,t){return qi.current.useCallback(e,t)};In.useContext=function(e){return qi.current.useContext(e)};In.useDebugValue=function(){};In.useDeferredValue=function(e){return qi.current.useDeferredValue(e)};In.useEffect=function(e,t){return qi.current.useEffect(e,t)};In.useId=function(){return qi.current.useId()};In.useImperativeHandle=function(e,t,n){return qi.current.useImperativeHandle(e,t,n)};In.useInsertionEffect=function(e,t){return qi.current.useInsertionEffect(e,t)};In.useLayoutEffect=function(e,t){return qi.current.useLayoutEffect(e,t)};In.useMemo=function(e,t){return qi.current.useMemo(e,t)};In.useReducer=function(e,t,n){return qi.current.useReducer(e,t,n)};In.useRef=function(e){return qi.current.useRef(e)};In.useState=function(e){return qi.current.useState(e)};In.useSyncExternalStore=function(e,t,n){return qi.current.useSyncExternalStore(e,t,n)};In.useTransition=function(){return qi.current.useTransition()};In.version="18.3.1";$K.exports=In;var v=$K.exports;const Y=Bn(v),yw=Nge({__proto__:null,default:Y},[v]);/**
+ */var yS=Symbol.for("react.element"),Kye=Symbol.for("react.portal"),Yye=Symbol.for("react.fragment"),Xye=Symbol.for("react.strict_mode"),Qye=Symbol.for("react.profiler"),Jye=Symbol.for("react.provider"),Zye=Symbol.for("react.context"),eve=Symbol.for("react.forward_ref"),tve=Symbol.for("react.suspense"),nve=Symbol.for("react.memo"),rve=Symbol.for("react.lazy"),KH=Symbol.iterator;function ove(e){return e===null||typeof e!="object"?null:(e=KH&&e[KH]||e["@@iterator"],typeof e=="function"?e:null)}var MY={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AY=Object.assign,$Y={};function Dv(e,t,n){this.props=e,this.context=t,this.refs=$Y,this.updater=n||MY}Dv.prototype.isReactComponent={};Dv.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")};Dv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RY(){}RY.prototype=Dv.prototype;function kN(e,t,n){this.props=e,this.context=t,this.refs=$Y,this.updater=n||MY}var MN=kN.prototype=new RY;MN.constructor=kN;AY(MN,Dv.prototype);MN.isPureReactComponent=!0;var YH=Array.isArray,DY=Object.prototype.hasOwnProperty,AN={current:null},_Y={key:!0,ref:!0,__self:!0,__source:!0};function LY(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)DY.call(t,r)&&!_Y.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:yS,type:e,key:i,ref:a,props:o,_owner:AN.current}}function ive(e,t){return{$$typeof:yS,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $N(e){return typeof e=="object"&&e!==null&&e.$$typeof===yS}function ave(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var XH=/\/+/g;function QA(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ave(""+e.key):t.toString(36)}function IP(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case yS:case Kye:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+QA(a,0):r,YH(o)?(n="",e!=null&&(n=e.replace(XH,"$&/")+"/"),IP(o,t,n,"",function(c){return c})):o!=null&&($N(o)&&(o=ive(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(XH,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",YH(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+QA(i,s);a+=IP(i,t,n,l,o)}else if(l=ove(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+QA(i,s++),a+=IP(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function yC(e,t,n){if(e==null)return e;var r=[],o=0;return IP(e,r,"","",function(i){return t.call(n,i,o++)}),r}function sve(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ea={current:null},kP={transition:null},lve={ReactCurrentDispatcher:ea,ReactCurrentBatchConfig:kP,ReactCurrentOwner:AN};function NY(){throw Error("act(...) is not supported in production builds of React.")}Tn.Children={map:yC,forEach:function(e,t,n){yC(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yC(e,function(){t++}),t},toArray:function(e){return yC(e,function(t){return t})||[]},only:function(e){if(!$N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tn.Component=Dv;Tn.Fragment=Yye;Tn.Profiler=Qye;Tn.PureComponent=kN;Tn.StrictMode=Xye;Tn.Suspense=tve;Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lve;Tn.act=NY;Tn.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=AY({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=AN.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)DY.call(t,l)&&!_Y.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:yS,type:e.type,key:o,ref:i,props:r,_owner:a}};Tn.createContext=function(e){return e={$$typeof:Zye,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jye,_context:e},e.Consumer=e};Tn.createElement=LY;Tn.createFactory=function(e){var t=LY.bind(null,e);return t.type=e,t};Tn.createRef=function(){return{current:null}};Tn.forwardRef=function(e){return{$$typeof:eve,render:e}};Tn.isValidElement=$N;Tn.lazy=function(e){return{$$typeof:rve,_payload:{_status:-1,_result:e},_init:sve}};Tn.memo=function(e,t){return{$$typeof:nve,type:e,compare:t===void 0?null:t}};Tn.startTransition=function(e){var t=kP.transition;kP.transition={};try{e()}finally{kP.transition=t}};Tn.unstable_act=NY;Tn.useCallback=function(e,t){return ea.current.useCallback(e,t)};Tn.useContext=function(e){return ea.current.useContext(e)};Tn.useDebugValue=function(){};Tn.useDeferredValue=function(e){return ea.current.useDeferredValue(e)};Tn.useEffect=function(e,t){return ea.current.useEffect(e,t)};Tn.useId=function(){return ea.current.useId()};Tn.useImperativeHandle=function(e,t,n){return ea.current.useImperativeHandle(e,t,n)};Tn.useInsertionEffect=function(e,t){return ea.current.useInsertionEffect(e,t)};Tn.useLayoutEffect=function(e,t){return ea.current.useLayoutEffect(e,t)};Tn.useMemo=function(e,t){return ea.current.useMemo(e,t)};Tn.useReducer=function(e,t,n){return ea.current.useReducer(e,t,n)};Tn.useRef=function(e){return ea.current.useRef(e)};Tn.useState=function(e){return ea.current.useState(e)};Tn.useSyncExternalStore=function(e,t,n){return ea.current.useSyncExternalStore(e,t,n)};Tn.useTransition=function(){return ea.current.useTransition()};Tn.version="18.3.1";kY.exports=Tn;var v=kY.exports;const Y=jn(v),Ry=qye({__proto__:null,default:Y},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
@@ -14,20 +14,20 @@ var _ge=Object.defineProperty;var iH=e=>{throw TypeError(e)};var Lge=(e,t,n)=>t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Zge=v,eye=Symbol.for("react.element"),tye=Symbol.for("react.fragment"),nye=Object.prototype.hasOwnProperty,rye=Zge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oye={key:!0,ref:!0,__self:!0,__source:!0};function zK(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)nye.call(t,r)&&!oye.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:eye,type:e,key:i,ref:a,props:o,_owner:rye.current}}uO.Fragment=tye;uO.jsx=zK;uO.jsxs=zK;AK.exports=uO;var $=AK.exports,iye=!1;function aye(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sye(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lye=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!iye:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sye(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=aye(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),di="-ms-",zP="-moz-",Yn="-webkit-",VK="comm",XL="rule",QL="decl",cye="@import",HK="@keyframes",uye="@layer",dye=Math.abs,dO=String.fromCharCode,fye=Object.assign;function pye(e,t){return Zo(e,0)^45?(((t<<2^Zo(e,0))<<2^Zo(e,1))<<2^Zo(e,2))<<2^Zo(e,3):0}function UK(e){return e.trim()}function hye(e,t){return(e=t.exec(e))?e[0]:e}function Xn(e,t,n){return e.replace(t,n)}function OR(e,t){return e.indexOf(t)}function Zo(e,t){return e.charCodeAt(t)|0}function vw(e,t,n){return e.slice(t,n)}function mc(e){return e.length}function JL(e){return e.length}function K1(e,t){return t.push(e),e}function mye(e,t){return e.map(t).join("")}var fO=1,hy=1,WK=0,va=0,fo=0,pv="";function pO(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fO,column:hy,length:a,return:""}}function Ab(e,t){return fye(pO("",null,null,"",null,null,0),e,{length:-e.length},t)}function gye(){return fo}function yye(){return fo=va>0?Zo(pv,--va):0,hy--,fo===10&&(hy=1,fO--),fo}function Ua(){return fo=va<WK?Zo(pv,va++):0,hy++,fo===10&&(hy=1,fO++),fo}function Pc(){return Zo(pv,va)}function aP(){return va}function Kx(e,t){return vw(pv,e,t)}function bw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function GK(e){return fO=hy=1,WK=mc(pv=e),va=0,[]}function qK(e){return pv="",e}function sP(e){return UK(Kx(va-1,IR(e===91?e+2:e===40?e+1:e)))}function vye(e){for(;(fo=Pc())&&fo<33;)Ua();return bw(e)>2||bw(fo)>3?"":" "}function bye(e,t){for(;--t&&Ua()&&!(fo<48||fo>102||fo>57&&fo<65||fo>70&&fo<97););return Kx(e,aP()+(t<6&&Pc()==32&&Ua()==32))}function IR(e){for(;Ua();)switch(fo){case e:return va;case 34:case 39:e!==34&&e!==39&&IR(fo);break;case 40:e===41&&IR(e);break;case 92:Ua();break}return va}function wye(e,t){for(;Ua()&&e+fo!==57;)if(e+fo===84&&Pc()===47)break;return"/*"+Kx(t,va-1)+"*"+dO(e===47?e:Ua())}function xye(e){for(;!bw(Pc());)Ua();return Kx(e,va)}function Sye(e){return qK(lP("",null,null,null,[""],e=GK(e),0,[0],e))}function lP(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,y=1,b=1,x=0,S="",P=o,E=i,T=r,O=S;y;)switch(m=x,x=Ua()){case 40:if(m!=108&&Zo(O,d-1)==58){OR(O+=Xn(sP(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=sP(x);break;case 9:case 10:case 13:case 32:O+=vye(m);break;case 92:O+=bye(aP()-1,7);continue;case 47:switch(Pc()){case 42:case 47:K1(Cye(wye(Ua(),aP()),t,n),l);break;default:O+="/"}break;case 123*g:s[c++]=mc(O)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+u:b==-1&&(O=Xn(O,/\f/g,"")),p>0&&mc(O)-d&&K1(p>32?uH(O+";",r,n,d-1):uH(Xn(O," ","")+";",r,n,d-2),l);break;case 59:O+=";";default:if(K1(T=cH(O,t,n,c,u,o,s,S,P=[],E=[],d),i),x===123)if(u===0)lP(O,t,T,T,P,i,d,s,E);else switch(f===99&&Zo(O,3)===110?100:f){case 100:case 108:case 109:case 115:lP(e,T,T,r&&K1(cH(e,T,T,0,0,o,s,S,o,P=[],d),E),o,E,d,s,r?P:E);break;default:lP(O,T,T,T,[""],E,0,s,E)}}c=u=p=0,g=b=1,S=O="",d=a;break;case 58:d=1+mc(O),p=m;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&yye()==125)continue}switch(O+=dO(x),x*g){case 38:b=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(mc(O)-1)*b,b=1;break;case 64:Pc()===45&&(O+=sP(Ua())),f=Pc(),u=d=mc(S=O+=xye(aP())),x++;break;case 45:m===45&&mc(O)==2&&(g=0)}}return i}function cH(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],p=JL(f),m=0,g=0,y=0;m<r;++m)for(var b=0,x=vw(e,d+1,d=dye(g=a[m])),S=e;b<p;++b)(S=UK(g>0?f[b]+" "+x:Xn(x,/&\f/g,f[b])))&&(l[y++]=S);return pO(e,t,n,o===0?XL:s,l,c,u)}function Cye(e,t,n){return pO(e,t,n,VK,dO(gye()),vw(e,2,-2),0)}function uH(e,t,n,r){return pO(e,t,n,QL,vw(e,0,r),vw(e,r+1,-1),r)}function Mg(e,t){for(var n="",r=JL(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Pye(e,t,n,r){switch(e.type){case uye:if(e.children.length)break;case cye:case QL:return e.return=e.return||e.value;case VK:return"";case HK:return e.return=e.value+"{"+Mg(e.children,r)+"}";case XL:e.value=e.props.join(",")}return mc(n=Mg(e.children,r))?e.return=e.value+"{"+n+"}":""}function Eye(e){var t=JL(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Tye(e){return function(t){t.root||(t=t.return)&&e(t)}}function KK(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Oye=function(t,n,r){for(var o=0,i=0;o=i,i=Pc(),o===38&&i===12&&(n[r]=1),!bw(i);)Ua();return Kx(t,va)},Iye=function(t,n){var r=-1,o=44;do switch(bw(o)){case 0:o===38&&Pc()===12&&(n[r]=1),t[r]+=Oye(va-1,n,r);break;case 2:t[r]+=sP(o);break;case 4:if(o===44){t[++r]=Pc()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dO(o)}while(o=Ua());return t},kye=function(t,n){return qK(Iye(GK(t),n))},dH=new WeakMap,Mye=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!dH.get(r))&&!o){dH.set(t,!0);for(var i=[],a=kye(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},Aye=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function YK(e,t){switch(pye(e,t)){case 5103:return Yn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yn+e+zP+e+di+e+e;case 6828:case 4268:return Yn+e+di+e+e;case 6165:return Yn+e+di+"flex-"+e+e;case 5187:return Yn+e+Xn(e,/(\w+).+(:[^]+)/,Yn+"box-$1$2"+di+"flex-$1$2")+e;case 5443:return Yn+e+di+"flex-item-"+Xn(e,/flex-|-self/,"")+e;case 4675:return Yn+e+di+"flex-line-pack"+Xn(e,/align-content|flex-|-self/,"")+e;case 5548:return Yn+e+di+Xn(e,"shrink","negative")+e;case 5292:return Yn+e+di+Xn(e,"basis","preferred-size")+e;case 6060:return Yn+"box-"+Xn(e,"-grow","")+Yn+e+di+Xn(e,"grow","positive")+e;case 4554:return Yn+Xn(e,/([^-])(transform)/g,"$1"+Yn+"$2")+e;case 6187:return Xn(Xn(Xn(e,/(zoom-|grab)/,Yn+"$1"),/(image-set)/,Yn+"$1"),e,"")+e;case 5495:case 3959:return Xn(e,/(image-set\([^]*)/,Yn+"$1$`$1");case 4968:return Xn(Xn(e,/(.+:)(flex-)?(.*)/,Yn+"box-pack:$3"+di+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yn+e+e;case 4095:case 3583:case 4068:case 2532:return Xn(e,/(.+)-inline(.+)/,Yn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mc(e)-1-t>6)switch(Zo(e,t+1)){case 109:if(Zo(e,t+4)!==45)break;case 102:return Xn(e,/(.+:)(.+)-([^]+)/,"$1"+Yn+"$2-$3$1"+zP+(Zo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~OR(e,"stretch")?YK(Xn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zo(e,t+1)!==115)break;case 6444:switch(Zo(e,mc(e)-3-(~OR(e,"!important")&&10))){case 107:return Xn(e,":",":"+Yn)+e;case 101:return Xn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yn+(Zo(e,14)===45?"inline-":"")+"box$3$1"+Yn+"$2$3$1"+di+"$2box$3")+e}break;case 5936:switch(Zo(e,t+11)){case 114:return Yn+e+di+Xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yn+e+di+Xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yn+e+di+Xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yn+e+di+e+e}return e}var $ye=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case QL:t.return=YK(t.value,t.length);break;case HK:return Mg([Ab(t,{value:Xn(t.value,"@","@"+Yn)})],o);case XL:if(t.length)return mye(t.props,function(i){switch(hye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mg([Ab(t,{props:[Xn(i,/:(read-\w+)/,":"+zP+"$1")]})],o);case"::placeholder":return Mg([Ab(t,{props:[Xn(i,/:(plac\w+)/,":"+Yn+"input-$1")]}),Ab(t,{props:[Xn(i,/:(plac\w+)/,":"+zP+"$1")]}),Ab(t,{props:[Xn(i,/:(plac\w+)/,di+"input-$1")]})],o)}return""})}},Rye=[$ye],XK=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Rye,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;s.push(g)});var l,c=[Mye,Aye];{var u,d=[Pye,Tye(function(g){u.insert(g)})],f=Eye(c.concat(o,d)),p=function(y){return Mg(Sye(y),f)};l=function(y,b,x,S){u=x,p(y?y+"{"+b.styles+"}":b.styles),S&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new lye({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(s),m};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}var QK={exports:{}},ar={};/** @license React v16.13.1
+ */var cve=v,uve=Symbol.for("react.element"),dve=Symbol.for("react.fragment"),fve=Object.prototype.hasOwnProperty,pve=cve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hve={key:!0,ref:!0,__self:!0,__source:!0};function FY(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)fve.call(t,r)&&!hve.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:uve,type:e,key:i,ref:a,props:o,_owner:pve.current}}jO.Fragment=dve;jO.jsx=FY;jO.jsxs=FY;IY.exports=jO;var $=IY.exports,mve=!1;function gve(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function yve(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vve=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!mve:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(yve(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=gve(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),bi="-ms-",fE="-moz-",Yn="-webkit-",jY="comm",RN="rule",DN="decl",bve="@import",BY="@keyframes",wve="@layer",xve=Math.abs,BO=String.fromCharCode,Sve=Object.assign;function Cve(e,t){return ai(e,0)^45?(((t<<2^ai(e,0))<<2^ai(e,1))<<2^ai(e,2))<<2^ai(e,3):0}function zY(e){return e.trim()}function Pve(e,t){return(e=t.exec(e))?e[0]:e}function Xn(e,t,n){return e.replace(t,n)}function u2(e,t){return e.indexOf(t)}function ai(e,t){return e.charCodeAt(t)|0}function Vw(e,t,n){return e.slice(t,n)}function Ec(e){return e.length}function _N(e){return e.length}function vC(e,t){return t.push(e),e}function Eve(e,t){return e.map(t).join("")}var zO=1,Dy=1,VY=0,Pa=0,vo=0,_v="";function VO(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zO,column:Dy,length:a,return:""}}function t0(e,t){return Sve(VO("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tve(){return vo}function Ove(){return vo=Pa>0?ai(_v,--Pa):0,Dy--,vo===10&&(Dy=1,zO--),vo}function Qa(){return vo=Pa<VY?ai(_v,Pa++):0,Dy++,vo===10&&(Dy=1,zO++),vo}function Dc(){return ai(_v,Pa)}function MP(){return Pa}function vS(e,t){return Vw(_v,e,t)}function Hw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HY(e){return zO=Dy=1,VY=Ec(_v=e),Pa=0,[]}function UY(e){return _v="",e}function AP(e){return zY(vS(Pa-1,d2(e===91?e+2:e===40?e+1:e)))}function Ive(e){for(;(vo=Dc())&&vo<33;)Qa();return Hw(e)>2||Hw(vo)>3?"":" "}function kve(e,t){for(;--t&&Qa()&&!(vo<48||vo>102||vo>57&&vo<65||vo>70&&vo<97););return vS(e,MP()+(t<6&&Dc()==32&&Qa()==32))}function d2(e){for(;Qa();)switch(vo){case e:return Pa;case 34:case 39:e!==34&&e!==39&&d2(vo);break;case 40:e===41&&d2(e);break;case 92:Qa();break}return Pa}function Mve(e,t){for(;Qa()&&e+vo!==57;)if(e+vo===84&&Dc()===47)break;return"/*"+vS(t,Pa-1)+"*"+BO(e===47?e:Qa())}function Ave(e){for(;!Hw(Dc());)Qa();return vS(e,Pa)}function $ve(e){return UY($P("",null,null,null,[""],e=HY(e),0,[0],e))}function $P(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,y=1,b=1,x=0,S="",P=o,E=i,T=r,O=S;y;)switch(m=x,x=Qa()){case 40:if(m!=108&&ai(O,d-1)==58){u2(O+=Xn(AP(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=AP(x);break;case 9:case 10:case 13:case 32:O+=Ive(m);break;case 92:O+=kve(MP()-1,7);continue;case 47:switch(Dc()){case 42:case 47:vC(Rve(Mve(Qa(),MP()),t,n),l);break;default:O+="/"}break;case 123*g:s[c++]=Ec(O)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+u:b==-1&&(O=Xn(O,/\f/g,"")),p>0&&Ec(O)-d&&vC(p>32?JH(O+";",r,n,d-1):JH(Xn(O," ","")+";",r,n,d-2),l);break;case 59:O+=";";default:if(vC(T=QH(O,t,n,c,u,o,s,S,P=[],E=[],d),i),x===123)if(u===0)$P(O,t,T,T,P,i,d,s,E);else switch(f===99&&ai(O,3)===110?100:f){case 100:case 108:case 109:case 115:$P(e,T,T,r&&vC(QH(e,T,T,0,0,o,s,S,o,P=[],d),E),o,E,d,s,r?P:E);break;default:$P(O,T,T,T,[""],E,0,s,E)}}c=u=p=0,g=b=1,S=O="",d=a;break;case 58:d=1+Ec(O),p=m;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Ove()==125)continue}switch(O+=BO(x),x*g){case 38:b=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Ec(O)-1)*b,b=1;break;case 64:Dc()===45&&(O+=AP(Qa())),f=Dc(),u=d=Ec(S=O+=Ave(MP())),x++;break;case 45:m===45&&Ec(O)==2&&(g=0)}}return i}function QH(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],p=_N(f),m=0,g=0,y=0;m<r;++m)for(var b=0,x=Vw(e,d+1,d=xve(g=a[m])),S=e;b<p;++b)(S=zY(g>0?f[b]+" "+x:Xn(x,/&\f/g,f[b])))&&(l[y++]=S);return VO(e,t,n,o===0?RN:s,l,c,u)}function Rve(e,t,n){return VO(e,t,n,jY,BO(Tve()),Vw(e,2,-2),0)}function JH(e,t,n,r){return VO(e,t,n,DN,Vw(e,0,r),Vw(e,r+1,-1),r)}function Kg(e,t){for(var n="",r=_N(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Dve(e,t,n,r){switch(e.type){case wve:if(e.children.length)break;case bve:case DN:return e.return=e.return||e.value;case jY:return"";case BY:return e.return=e.value+"{"+Kg(e.children,r)+"}";case RN:e.value=e.props.join(",")}return Ec(n=Kg(e.children,r))?e.return=e.value+"{"+n+"}":""}function _ve(e){var t=_N(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Lve(e){return function(t){t.root||(t=t.return)&&e(t)}}function WY(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nve=function(t,n,r){for(var o=0,i=0;o=i,i=Dc(),o===38&&i===12&&(n[r]=1),!Hw(i);)Qa();return vS(t,Pa)},Fve=function(t,n){var r=-1,o=44;do switch(Hw(o)){case 0:o===38&&Dc()===12&&(n[r]=1),t[r]+=Nve(Pa-1,n,r);break;case 2:t[r]+=AP(o);break;case 4:if(o===44){t[++r]=Dc()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=BO(o)}while(o=Qa());return t},jve=function(t,n){return UY(Fve(HY(t),n))},ZH=new WeakMap,Bve=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ZH.get(r))&&!o){ZH.set(t,!0);for(var i=[],a=jve(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},zve=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function GY(e,t){switch(Cve(e,t)){case 5103:return Yn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yn+e+fE+e+bi+e+e;case 6828:case 4268:return Yn+e+bi+e+e;case 6165:return Yn+e+bi+"flex-"+e+e;case 5187:return Yn+e+Xn(e,/(\w+).+(:[^]+)/,Yn+"box-$1$2"+bi+"flex-$1$2")+e;case 5443:return Yn+e+bi+"flex-item-"+Xn(e,/flex-|-self/,"")+e;case 4675:return Yn+e+bi+"flex-line-pack"+Xn(e,/align-content|flex-|-self/,"")+e;case 5548:return Yn+e+bi+Xn(e,"shrink","negative")+e;case 5292:return Yn+e+bi+Xn(e,"basis","preferred-size")+e;case 6060:return Yn+"box-"+Xn(e,"-grow","")+Yn+e+bi+Xn(e,"grow","positive")+e;case 4554:return Yn+Xn(e,/([^-])(transform)/g,"$1"+Yn+"$2")+e;case 6187:return Xn(Xn(Xn(e,/(zoom-|grab)/,Yn+"$1"),/(image-set)/,Yn+"$1"),e,"")+e;case 5495:case 3959:return Xn(e,/(image-set\([^]*)/,Yn+"$1$`$1");case 4968:return Xn(Xn(e,/(.+:)(flex-)?(.*)/,Yn+"box-pack:$3"+bi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yn+e+e;case 4095:case 3583:case 4068:case 2532:return Xn(e,/(.+)-inline(.+)/,Yn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ec(e)-1-t>6)switch(ai(e,t+1)){case 109:if(ai(e,t+4)!==45)break;case 102:return Xn(e,/(.+:)(.+)-([^]+)/,"$1"+Yn+"$2-$3$1"+fE+(ai(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~u2(e,"stretch")?GY(Xn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ai(e,t+1)!==115)break;case 6444:switch(ai(e,Ec(e)-3-(~u2(e,"!important")&&10))){case 107:return Xn(e,":",":"+Yn)+e;case 101:return Xn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yn+(ai(e,14)===45?"inline-":"")+"box$3$1"+Yn+"$2$3$1"+bi+"$2box$3")+e}break;case 5936:switch(ai(e,t+11)){case 114:return Yn+e+bi+Xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yn+e+bi+Xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yn+e+bi+Xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yn+e+bi+e+e}return e}var Vve=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case DN:t.return=GY(t.value,t.length);break;case BY:return Kg([t0(t,{value:Xn(t.value,"@","@"+Yn)})],o);case RN:if(t.length)return Eve(t.props,function(i){switch(Pve(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kg([t0(t,{props:[Xn(i,/:(read-\w+)/,":"+fE+"$1")]})],o);case"::placeholder":return Kg([t0(t,{props:[Xn(i,/:(plac\w+)/,":"+Yn+"input-$1")]}),t0(t,{props:[Xn(i,/:(plac\w+)/,":"+fE+"$1")]}),t0(t,{props:[Xn(i,/:(plac\w+)/,bi+"input-$1")]})],o)}return""})}},Hve=[Vve],qY=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Hve,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;s.push(g)});var l,c=[Bve,zve];{var u,d=[Dve,Lve(function(g){u.insert(g)})],f=_ve(c.concat(o,d)),p=function(y){return Kg($ve(y),f)};l=function(y,b,x,S){u=x,p(y?y+"{"+b.styles+"}":b.styles),S&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new vve({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(s),m};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}var KY={exports:{}},or={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Wo=typeof Symbol=="function"&&Symbol.for,ZL=Wo?Symbol.for("react.element"):60103,eN=Wo?Symbol.for("react.portal"):60106,hO=Wo?Symbol.for("react.fragment"):60107,mO=Wo?Symbol.for("react.strict_mode"):60108,gO=Wo?Symbol.for("react.profiler"):60114,yO=Wo?Symbol.for("react.provider"):60109,vO=Wo?Symbol.for("react.context"):60110,tN=Wo?Symbol.for("react.async_mode"):60111,bO=Wo?Symbol.for("react.concurrent_mode"):60111,wO=Wo?Symbol.for("react.forward_ref"):60112,xO=Wo?Symbol.for("react.suspense"):60113,Dye=Wo?Symbol.for("react.suspense_list"):60120,SO=Wo?Symbol.for("react.memo"):60115,CO=Wo?Symbol.for("react.lazy"):60116,_ye=Wo?Symbol.for("react.block"):60121,Lye=Wo?Symbol.for("react.fundamental"):60117,Nye=Wo?Symbol.for("react.responder"):60118,Fye=Wo?Symbol.for("react.scope"):60119;function es(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ZL:switch(e=e.type,e){case tN:case bO:case hO:case gO:case mO:case xO:return e;default:switch(e=e&&e.$$typeof,e){case vO:case wO:case CO:case SO:case yO:return e;default:return t}}case eN:return t}}}function JK(e){return es(e)===bO}ar.AsyncMode=tN;ar.ConcurrentMode=bO;ar.ContextConsumer=vO;ar.ContextProvider=yO;ar.Element=ZL;ar.ForwardRef=wO;ar.Fragment=hO;ar.Lazy=CO;ar.Memo=SO;ar.Portal=eN;ar.Profiler=gO;ar.StrictMode=mO;ar.Suspense=xO;ar.isAsyncMode=function(e){return JK(e)||es(e)===tN};ar.isConcurrentMode=JK;ar.isContextConsumer=function(e){return es(e)===vO};ar.isContextProvider=function(e){return es(e)===yO};ar.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ZL};ar.isForwardRef=function(e){return es(e)===wO};ar.isFragment=function(e){return es(e)===hO};ar.isLazy=function(e){return es(e)===CO};ar.isMemo=function(e){return es(e)===SO};ar.isPortal=function(e){return es(e)===eN};ar.isProfiler=function(e){return es(e)===gO};ar.isStrictMode=function(e){return es(e)===mO};ar.isSuspense=function(e){return es(e)===xO};ar.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hO||e===bO||e===gO||e===mO||e===xO||e===Dye||typeof e=="object"&&e!==null&&(e.$$typeof===CO||e.$$typeof===SO||e.$$typeof===yO||e.$$typeof===vO||e.$$typeof===wO||e.$$typeof===Lye||e.$$typeof===Nye||e.$$typeof===Fye||e.$$typeof===_ye)};ar.typeOf=es;QK.exports=ar;var jye=QK.exports,ZK=jye,Bye={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eY={};eY[ZK.ForwardRef]=Bye;eY[ZK.Memo]=zye;var Vye=!0;function tY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var nN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Vye===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},rN=function(t,n,r){nN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Hye(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Uye={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wye=!1,Gye=/[A-Z]|^ms/g,qye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nY=function(t){return t.charCodeAt(1)===45},fH=function(t){return t!=null&&typeof t!="boolean"},yA=KK(function(e){return nY(e)?e:e.replace(Gye,"-$&").toLowerCase()}),pH=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qye,function(r,o,i){return gc={name:o,styles:i,next:gc},o})}return Uye[t]!==1&&!nY(t)&&typeof n=="number"&&n!==0?n+"px":n},Kye="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ww(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return gc={name:o.name,styles:o.styles,next:gc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)gc={name:a.name,styles:a.styles,next:gc},a=a.next;var s=i.styles+";";return s}return Yye(e,t,n)}case"function":{if(e!==void 0){var l=gc,c=n(e);return gc=l,ww(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Yye(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ww(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":fH(s)&&(r+=yA(i)+":"+pH(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Wye)throw new Error(Kye);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)fH(a[l])&&(r+=yA(i)+":"+pH(i,a[l])+";");else{var c=ww(e,t,a);switch(i){case"animation":case"animationName":{r+=yA(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}}return r}var hH=/label:\s*([^\s;{]+)\s*(;|$)/g,gc;function Yx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";gc=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ww(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=ww(n,t,e[s]),r){var l=i;o+=l[s]}hH.lastIndex=0;for(var c="",u;(u=hH.exec(o))!==null;)c+="-"+u[1];var d=Hye(o)+c;return{name:d,styles:o,next:gc}}var Xye=function(t){return t()},rY=yw.useInsertionEffect?yw.useInsertionEffect:!1,oY=rY||Xye,mH=rY||v.useLayoutEffect,Qye=!1,iY=v.createContext(typeof HTMLElement<"u"?XK({key:"css"}):null),Jye=iY.Provider,oN=function(t){return v.forwardRef(function(n,r){var o=v.useContext(iY);return t(n,o,r)})},Xx=v.createContext({}),Qx={}.hasOwnProperty,kR="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iN=function(t,n){var r={};for(var o in n)Qx.call(n,o)&&(r[o]=n[o]);return r[kR]=t,r},Zye=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return nN(n,r,o),oY(function(){return rN(n,r,o)}),null},eve=oN(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[kR],i=[r],a="";typeof e.className=="string"?a=tY(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Yx(i,void 0,v.useContext(Xx));a+=t.key+"-"+s.name;var l={};for(var c in e)Qx.call(e,c)&&c!=="css"&&c!==kR&&!Qye&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(Zye,{cache:t,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),aN=eve,Mt=$.Fragment;function C(e,t,n){return Qx.call(t,"css")?$.jsx(aN,iN(e,t),n):$.jsx(e,t,n)}function X(e,t,n){return Qx.call(t,"css")?$.jsxs(aN,iN(e,t),n):$.jsxs(e,t,n)}var sN=function(t,n){var r=arguments;if(n==null||!Qx.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=aN,i[1]=iN(t,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)},tve=oN(function(e,t){var n=e.styles,r=Yx([n],void 0,v.useContext(Xx)),o=v.useRef();return mH(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),mH(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&rN(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Ef(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yx(t)}var jc=function(){var t=Ef.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function $u(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Hs="$$material";var nve=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,rve=KK(function(e){return nve.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ove=rve,ive=function(t){return t!=="theme"},gH=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ove:ive},yH=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},ave=!1,sve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return nN(n,r,o),oY(function(){return rN(n,r,o)}),null},lve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=yH(t,n,r),l=s||gH(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=oN(function(g,y,b){var x=c&&g.as||o,S="",P=[],E=g;if(g.theme==null){E={};for(var T in g)E[T]=g[T];E.theme=v.useContext(Xx)}typeof g.className=="string"?S=tY(y.registered,P,g.className):g.className!=null&&(S=g.className+" ");var O=Yx(d.concat(P),y.registered,E);S+=y.key+"-"+O.name,a!==void 0&&(S+=" "+a);var k=c&&s===void 0?gH(x):l,M={};for(var I in g)c&&I==="as"||k(I)&&(M[I]=g[I]);return M.className=S,b&&(M.ref=b),v.createElement(v.Fragment,null,v.createElement(sve,{cache:y,serialized:O,isStringTag:typeof x=="string"}),v.createElement(x,M))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return a===void 0&&ave?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(g,y){return e(g,D({},n,y,{shouldForwardProp:yH(m,y,!0)})).apply(void 0,d)},m}},cve=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],MR=lve.bind();cve.forEach(function(e){MR[e]=MR(e)});var aY={exports:{}},uve="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",dve=uve,fve=dve;function sY(){}function lY(){}lY.resetWarningCache=sY;var pve=function(){function e(r,o,i,a,s,l){if(l!==fve){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:lY,resetWarningCache:sY};return n.PropTypes=n,n};aY.exports=pve();var hve=aY.exports;const j=Bn(hve);function mve(e){return e==null||Object.keys(e).length===0}function cY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(mve(o)?n:o):t;return $.jsx(tve,{styles:r})}/**
- * @mui/styled-engine v6.3.0
+ */var Jo=typeof Symbol=="function"&&Symbol.for,LN=Jo?Symbol.for("react.element"):60103,NN=Jo?Symbol.for("react.portal"):60106,HO=Jo?Symbol.for("react.fragment"):60107,UO=Jo?Symbol.for("react.strict_mode"):60108,WO=Jo?Symbol.for("react.profiler"):60114,GO=Jo?Symbol.for("react.provider"):60109,qO=Jo?Symbol.for("react.context"):60110,FN=Jo?Symbol.for("react.async_mode"):60111,KO=Jo?Symbol.for("react.concurrent_mode"):60111,YO=Jo?Symbol.for("react.forward_ref"):60112,XO=Jo?Symbol.for("react.suspense"):60113,Uve=Jo?Symbol.for("react.suspense_list"):60120,QO=Jo?Symbol.for("react.memo"):60115,JO=Jo?Symbol.for("react.lazy"):60116,Wve=Jo?Symbol.for("react.block"):60121,Gve=Jo?Symbol.for("react.fundamental"):60117,qve=Jo?Symbol.for("react.responder"):60118,Kve=Jo?Symbol.for("react.scope"):60119;function cs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case LN:switch(e=e.type,e){case FN:case KO:case HO:case WO:case UO:case XO:return e;default:switch(e=e&&e.$$typeof,e){case qO:case YO:case JO:case QO:case GO:return e;default:return t}}case NN:return t}}}function YY(e){return cs(e)===KO}or.AsyncMode=FN;or.ConcurrentMode=KO;or.ContextConsumer=qO;or.ContextProvider=GO;or.Element=LN;or.ForwardRef=YO;or.Fragment=HO;or.Lazy=JO;or.Memo=QO;or.Portal=NN;or.Profiler=WO;or.StrictMode=UO;or.Suspense=XO;or.isAsyncMode=function(e){return YY(e)||cs(e)===FN};or.isConcurrentMode=YY;or.isContextConsumer=function(e){return cs(e)===qO};or.isContextProvider=function(e){return cs(e)===GO};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===LN};or.isForwardRef=function(e){return cs(e)===YO};or.isFragment=function(e){return cs(e)===HO};or.isLazy=function(e){return cs(e)===JO};or.isMemo=function(e){return cs(e)===QO};or.isPortal=function(e){return cs(e)===NN};or.isProfiler=function(e){return cs(e)===WO};or.isStrictMode=function(e){return cs(e)===UO};or.isSuspense=function(e){return cs(e)===XO};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===HO||e===KO||e===WO||e===UO||e===XO||e===Uve||typeof e=="object"&&e!==null&&(e.$$typeof===JO||e.$$typeof===QO||e.$$typeof===GO||e.$$typeof===qO||e.$$typeof===YO||e.$$typeof===Gve||e.$$typeof===qve||e.$$typeof===Kve||e.$$typeof===Wve)};or.typeOf=cs;KY.exports=or;var Yve=KY.exports,XY=Yve,Xve={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qve={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QY={};QY[XY.ForwardRef]=Xve;QY[XY.Memo]=Qve;var Jve=!0;function JY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var jN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Jve===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},BN=function(t,n,r){jN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Zve(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ebe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tbe=!1,nbe=/[A-Z]|^ms/g,rbe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZY=function(t){return t.charCodeAt(1)===45},e4=function(t){return t!=null&&typeof t!="boolean"},JA=WY(function(e){return ZY(e)?e:e.replace(nbe,"-$&").toLowerCase()}),t4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rbe,function(r,o,i){return Tc={name:o,styles:i,next:Tc},o})}return ebe[t]!==1&&!ZY(t)&&typeof n=="number"&&n!==0?n+"px":n},obe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Uw(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Tc={name:o.name,styles:o.styles,next:Tc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Tc={name:a.name,styles:a.styles,next:Tc},a=a.next;var s=i.styles+";";return s}return ibe(e,t,n)}case"function":{if(e!==void 0){var l=Tc,c=n(e);return Tc=l,Uw(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function ibe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Uw(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":e4(s)&&(r+=JA(i)+":"+t4(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&tbe)throw new Error(obe);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)e4(a[l])&&(r+=JA(i)+":"+t4(i,a[l])+";");else{var c=Uw(e,t,a);switch(i){case"animation":case"animationName":{r+=JA(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}}return r}var n4=/label:\s*([^\s;{]+)\s*(;|$)/g,Tc;function Lv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Tc=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Uw(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Uw(n,t,e[s]),r){var l=i;o+=l[s]}n4.lastIndex=0;for(var c="",u;(u=n4.exec(o))!==null;)c+="-"+u[1];var d=Zve(o)+c;return{name:d,styles:o,next:Tc}}var abe=function(t){return t()},eX=Ry.useInsertionEffect?Ry.useInsertionEffect:!1,tX=eX||abe,r4=eX||v.useLayoutEffect,sbe=!1,nX=v.createContext(typeof HTMLElement<"u"?qY({key:"css"}):null),lbe=nX.Provider,zN=function(t){return v.forwardRef(function(n,r){var o=v.useContext(nX);return t(n,o,r)})},bS=v.createContext({}),wS={}.hasOwnProperty,f2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",VN=function(t,n){var r={};for(var o in n)wS.call(n,o)&&(r[o]=n[o]);return r[f2]=t,r},cbe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jN(n,r,o),tX(function(){return BN(n,r,o)}),null},ube=zN(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[f2],i=[r],a="";typeof e.className=="string"?a=JY(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Lv(i,void 0,v.useContext(bS));a+=t.key+"-"+s.name;var l={};for(var c in e)wS.call(e,c)&&c!=="css"&&c!==f2&&!sbe&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(cbe,{cache:t,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),HN=ube,At=$.Fragment;function C(e,t,n){return wS.call(t,"css")?$.jsx(HN,VN(e,t),n):$.jsx(e,t,n)}function X(e,t,n){return wS.call(t,"css")?$.jsxs(HN,VN(e,t),n):$.jsxs(e,t,n)}var UN=function(t,n){var r=arguments;if(n==null||!wS.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=HN,i[1]=VN(t,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)},dbe=zN(function(e,t){var n=e.styles,r=Lv([n],void 0,v.useContext(bS)),o=v.useRef();return r4(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),r4(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&BN(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function zf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lv(t)}var Xc=function(){var t=zf.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Wu(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Js="$$material";var fbe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,pbe=WY(function(e){return fbe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hbe=pbe,mbe=function(t){return t!=="theme"},o4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hbe:mbe},i4=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},gbe=!1,ybe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jN(n,r,o),tX(function(){return BN(n,r,o)}),null},vbe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=i4(t,n,r),l=s||o4(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=zN(function(g,y,b){var x=c&&g.as||o,S="",P=[],E=g;if(g.theme==null){E={};for(var T in g)E[T]=g[T];E.theme=v.useContext(bS)}typeof g.className=="string"?S=JY(y.registered,P,g.className):g.className!=null&&(S=g.className+" ");var O=Lv(d.concat(P),y.registered,E);S+=y.key+"-"+O.name,a!==void 0&&(S+=" "+a);var k=c&&s===void 0?o4(x):l,M={};for(var I in g)c&&I==="as"||k(I)&&(M[I]=g[I]);return M.className=S,b&&(M.ref=b),v.createElement(v.Fragment,null,v.createElement(ybe,{cache:y,serialized:O,isStringTag:typeof x=="string"}),v.createElement(x,M))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return a===void 0&&gbe?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(g,y){return e(g,D({},n,y,{shouldForwardProp:i4(m,y,!0)})).apply(void 0,d)},m}},bbe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],pE=vbe.bind();bbe.forEach(function(e){pE[e]=pE(e)});var rX={exports:{}},wbe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xbe=wbe,Sbe=xbe;function oX(){}function iX(){}iX.resetWarningCache=oX;var Cbe=function(){function e(r,o,i,a,s,l){if(l!==Sbe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:iX,resetWarningCache:oX};return n.PropTypes=n,n};rX.exports=Cbe();var Pbe=rX.exports;const B=jn(Pbe);function Ebe(e){return e==null||Object.keys(e).length===0}function aX(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Ebe(o)?n:o):t;return $.jsx(dbe,{styles:r})}/**
+ * @mui/styled-engine v6.3.1
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */function uY(e,t){return MR(e,t)}function gve(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const vH=[];function bH(e){return vH[0]=e,Yx(vH)}function vc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function dY(e){if(v.isValidElement(e)||!vc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dY(e[n])}),t}function mo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return vc(e)&&vc(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:vc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&vc(e[o])?r[o]=mo(e[o],t[o],n):n.clone?r[o]=vc(t[o])?dY(t[o]):t[o]:r[o]=t[o]}),r}const yve=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function vve(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=yve(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,p){const m=a.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:p)-r/100}${n})`}function u(f){return a.indexOf(f)+1<a.length?c(f,a[a.indexOf(f)+1]):s(f)}function d(f){const p=a.indexOf(f);return p===0?s(a[1]):p===a.length-1?l(a[p]):c(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:n,...o}}function bve(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function wve(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function xve(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Sve(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Cve={borderRadius:4};function F0(e,t){return t?mo(e,t,{clone:!1}):e}const PO={xs:0,sm:600,md:900,lg:1200,xl:1536},wH={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${PO[e]}px)`},Pve={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:PO[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||wH;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||wH;return Object.keys(t).reduce((a,s)=>{if(wve(i.keys,s)){const l=xve(r.containerQueries?r:Pve,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||PO).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function fY(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function pY(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Eve(e,...t){const n=fY(e),r=[n,...t].reduce((o,i)=>mo(o,i),{});return pY(Object.keys(n),r)}function Tve(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function vA({values:e,breakpoints:t,base:n}){const r=n||Tve(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Se(e){if(typeof e!="string")throw new Error($u(7));return e.charAt(0).toUpperCase()+e.slice(1)}function EO(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function VP(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=EO(e,n)||r,t&&(o=t(o,r,e)),o}function ao(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=EO(l,r)||{};return Gl(a,s,d=>{let f=VP(c,o,d);return d===f&&typeof d=="string"&&(f=VP(c,o,`${t}${d==="default"?"":Se(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Ove(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ive={m:"margin",p:"padding"},kve={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xH={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mve=Ove(e=>{if(e.length>2)if(xH[e])e=xH[e];else return[e];const[t,n]=e.split(""),r=Ive[t],o=kve[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),lN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lN,...cN];function Jx(e,t,n,r){const o=EO(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function TO(e){return Jx(e,"spacing",8)}function oh(e,t){return typeof t=="string"||t==null?t:e(t)}function Ave(e,t){return n=>e.reduce((r,o)=>(r[o]=oh(t,n),r),{})}function $ve(e,t,n,r){if(!t.includes(n))return null;const o=Mve(n),i=Ave(o,r),a=e[n];return Gl(e,a,i)}function hY(e,t){const n=TO(e.theme);return Object.keys(e).map(r=>$ve(e,t,r,n)).reduce(F0,{})}function qr(e){return hY(e,lN)}qr.propTypes={};qr.filterProps=lN;function Kr(e){return hY(e,cN)}Kr.propTypes={};Kr.filterProps=cN;function mY(e=8,t=TO({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function OO(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?F0(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $s(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return ao({prop:e,themeKey:"borders",transform:t})}const Rve=rl("border",$s),Dve=rl("borderTop",$s),_ve=rl("borderRight",$s),Lve=rl("borderBottom",$s),Nve=rl("borderLeft",$s),Fve=rl("borderColor"),jve=rl("borderTopColor"),Bve=rl("borderRightColor"),zve=rl("borderBottomColor"),Vve=rl("borderLeftColor"),Hve=rl("outline",$s),Uve=rl("outlineColor"),IO=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Jx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:oh(t,r)});return Gl(e,e.borderRadius,n)}return null};IO.propTypes={};IO.filterProps=["borderRadius"];OO(Rve,Dve,_ve,Lve,Nve,Fve,jve,Bve,zve,Vve,IO,Hve,Uve);const kO=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Jx(e.theme,"spacing",8),n=r=>({gap:oh(t,r)});return Gl(e,e.gap,n)}return null};kO.propTypes={};kO.filterProps=["gap"];const MO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Jx(e.theme,"spacing",8),n=r=>({columnGap:oh(t,r)});return Gl(e,e.columnGap,n)}return null};MO.propTypes={};MO.filterProps=["columnGap"];const AO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Jx(e.theme,"spacing",8),n=r=>({rowGap:oh(t,r)});return Gl(e,e.rowGap,n)}return null};AO.propTypes={};AO.filterProps=["rowGap"];const Wve=ao({prop:"gridColumn"}),Gve=ao({prop:"gridRow"}),qve=ao({prop:"gridAutoFlow"}),Kve=ao({prop:"gridAutoColumns"}),Yve=ao({prop:"gridAutoRows"}),Xve=ao({prop:"gridTemplateColumns"}),Qve=ao({prop:"gridTemplateRows"}),Jve=ao({prop:"gridTemplateAreas"}),Zve=ao({prop:"gridArea"});OO(kO,MO,AO,Wve,Gve,qve,Kve,Yve,Xve,Qve,Jve,Zve);function Ag(e,t){return t==="grey"?t:e}const ebe=ao({prop:"color",themeKey:"palette",transform:Ag}),tbe=ao({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ag}),nbe=ao({prop:"backgroundColor",themeKey:"palette",transform:Ag});OO(ebe,tbe,nbe);function Ba(e){return e<=1&&e!==0?`${e*100}%`:e}const rbe=ao({prop:"width",transform:Ba}),uN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||PO[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ba(n)}};return Gl(e,e.maxWidth,t)}return null};uN.filterProps=["maxWidth"];const obe=ao({prop:"minWidth",transform:Ba}),ibe=ao({prop:"height",transform:Ba}),abe=ao({prop:"maxHeight",transform:Ba}),sbe=ao({prop:"minHeight",transform:Ba});ao({prop:"size",cssProperty:"width",transform:Ba});ao({prop:"size",cssProperty:"height",transform:Ba});const lbe=ao({prop:"boxSizing"});OO(rbe,uN,obe,ibe,abe,sbe,lbe);const Zx={border:{themeKey:"borders",transform:$s},borderTop:{themeKey:"borders",transform:$s},borderRight:{themeKey:"borders",transform:$s},borderBottom:{themeKey:"borders",transform:$s},borderLeft:{themeKey:"borders",transform:$s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:IO},color:{themeKey:"palette",transform:Ag},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ag},backgroundColor:{themeKey:"palette",transform:Ag},p:{style:Kr},pt:{style:Kr},pr:{style:Kr},pb:{style:Kr},pl:{style:Kr},px:{style:Kr},py:{style:Kr},padding:{style:Kr},paddingTop:{style:Kr},paddingRight:{style:Kr},paddingBottom:{style:Kr},paddingLeft:{style:Kr},paddingX:{style:Kr},paddingY:{style:Kr},paddingInline:{style:Kr},paddingInlineStart:{style:Kr},paddingInlineEnd:{style:Kr},paddingBlock:{style:Kr},paddingBlockStart:{style:Kr},paddingBlockEnd:{style:Kr},m:{style:qr},mt:{style:qr},mr:{style:qr},mb:{style:qr},ml:{style:qr},mx:{style:qr},my:{style:qr},margin:{style:qr},marginTop:{style:qr},marginRight:{style:qr},marginBottom:{style:qr},marginLeft:{style:qr},marginX:{style:qr},marginY:{style:qr},marginInline:{style:qr},marginInlineStart:{style:qr},marginInlineEnd:{style:qr},marginBlock:{style:qr},marginBlockStart:{style:qr},marginBlockEnd:{style:qr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kO},rowGap:{style:AO},columnGap:{style:MO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ba},maxWidth:{style:uN},minWidth:{transform:Ba},height:{transform:Ba},maxHeight:{transform:Ba},minHeight:{transform:Ba},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function cbe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ube(e,t){return typeof e=="function"?e(t):e}function dbe(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=EO(o,c)||{};return d?d(a):Gl(a,r,m=>{let g=VP(f,u,m);return m===g&&typeof m=="string"&&(g=VP(f,u,`${n}${m==="default"?"":Se(m)}`,m)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Zx;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=fY(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const p=ube(l[f],o);if(p!=null)if(typeof p=="object")if(i[f])d=F0(d,e(f,p,o,i));else{const m=Gl({theme:o},p,g=>({[f]:g}));cbe(m,p)?d[f]=t({sx:p,theme:o}):d=F0(d,m)}else d=F0(d,e(f,p,o,i))}),bve(o,pY(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const mf=dbe();mf.filterProps=["sx"];function fbe(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function hv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=vve(n),l=mY(o);let c=mo({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Cve,...i}},a);return c=Sve(c),c.applyStyles=fbe,c=t.reduce((u,d)=>mo(u,d),c),c.unstable_sxConfig={...Zx,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return mf({sx:d,theme:this})},c}function pbe(e){return Object.keys(e).length===0}function dN(e=null){const t=v.useContext(Xx);return!t||pbe(t)?e:t}const hbe=hv();function eS(e=hbe){return dN(e)}function mbe({styles:e,themeId:t,defaultTheme:n={}}){const r=eS(n),o=typeof e=="function"?e(t&&r[t]||r):e;return $.jsx(cY,{styles:o})}const gbe=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Zx;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function $O(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=gbe(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return vc(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const SH=e=>e,ybe=()=>{let e=SH;return{configure(t){e=t},generate(t){return e(t)},reset(){e=SH}}},gY=ybe();function yY(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yY(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yY(e))&&(r&&(r+=" "),r+=t);return r}function vbe(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=uY("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(mf);return v.forwardRef(function(l,c){const u=eS(n),{className:d,component:f="div",...p}=$O(l);return $.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...p})})}const bbe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _e(e,t,n="Mui"){const r=bbe[t];return r?`${n}-${r}`:`${gY.generate(e)}-${t}`}function Le(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function vY(e){const{variants:t,...n}=e,r={variants:t,style:bH(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=bH(o.style))}),r}const wbe=hv();function cP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xbe(e){return e?(t,n)=>n[e]:null}function Sbe(e,t,n){e.theme=Pbe(e.theme)?n:e.theme[t]||e.theme}function uP(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>uP(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return bY(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function bY(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function wY(e={}){const{themeId:t,defaultTheme:n=wbe,rootShouldForwardProp:r=cP,slotShouldForwardProp:o=cP}=e;function i(s){Sbe(s,t,n)}return(s,l={})=>{gve(s,E=>E.filter(T=>T!==mf));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=xbe(Tbe(u)),...m}=l,g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let b=cP;u==="Root"||u==="root"?b=r:u?b=o:Ebe(s)&&(b=void 0);const x=uY(s,{shouldForwardProp:b,label:Cbe(),...m}),S=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(O){return uP(O,E)};if(vc(E)){const T=vY(E);return T.variants?function(k){return uP(k,T)}:T.style}return E},P=(...E)=>{const T=[],O=E.map(S),k=[];if(T.push(i),c&&p&&k.push(function(_){var F,U;const B=(U=(F=_.theme.components)==null?void 0:F[c])==null?void 0:U.styleOverrides;if(!B)return null;const L={};for(const V in B)L[V]=uP(_,B[V]);return p(_,L)}),c&&!g&&k.push(function(_){var L,F;const N=_.theme,B=(F=(L=N==null?void 0:N.components)==null?void 0:L[c])==null?void 0:F.variants;return B?bY(_,B):null}),y||k.push(mf),Array.isArray(O[0])){const R=O.shift(),_=new Array(T.length).fill(""),N=new Array(k.length).fill("");let B;B=[..._,...R,...N],B.raw=[..._,...R.raw,...N],T.unshift(B)}const M=[...T,...O,...k],I=x(...M);return s.muiName&&(I.muiName=s.muiName),I};return x.withConfig&&(P.withConfig=x.withConfig),P}}function Cbe(e,t){return void 0}function Pbe(e){for(const t in e)return!1;return!0}function Ebe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tbe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Qn=wY();function ih(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=ih(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function xY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ih(t.components[n].defaultProps,r)}function RO({props:e,name:t,defaultTheme:n,themeId:r}){let o=eS(n);return r&&(o=o[r]||o),xY({theme:o,name:t,props:e})}const xn=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Obe(e,t,n,r,o){const[i,a]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return xn(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const Ibe={...yw},SY=Ibe.useSyncExternalStore;function kbe(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),a=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return SY(l,s,a)}function Mbe(e={}){const{themeId:t}=e;return function(r,o={}){let i=dN();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=xY({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(SY!==void 0?kbe:Obe)(d,s,l,c,u)}}function Abe(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function fN(e,t=0,n=1){return Abe(e,t,n)}function $be(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Rc(e){if(e.type)return e;if(e.charAt(0)==="#")return Rc($be(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($u(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error($u(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Rbe=e=>{const t=Rc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},v0=(e,t)=>{try{return Rbe(e)}catch{return e}};function tS(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function CY(e){e=Rc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),tS({type:s,values:l})}function AR(e){e=Rc(e);let t=e.type==="hsl"||e.type==="hsla"?Rc(CY(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dbe(e,t){const n=AR(e),r=AR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vt(e,t){return e=Rc(e),t=fN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tS(e)}function Y1(e,t,n){try{return vt(e,t)}catch{return e}}function Ru(e,t){if(e=Rc(e),t=fN(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return tS(e)}function fr(e,t,n){try{return Ru(e,t)}catch{return e}}function Du(e,t){if(e=Rc(e),t=fN(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return tS(e)}function pr(e,t,n){try{return Du(e,t)}catch{return e}}function PY(e,t=.15){return AR(e)>.5?Ru(e,t):Du(e,t)}function X1(e,t,n){try{return PY(e,t)}catch{return e}}const mv=j.oneOfType([j.func,j.object]);function CH(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function nS(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function $g(e,t){var n,r,o;return v.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function mr(e){return e&&e.ownerDocument||document}function ba(e){return mr(e).defaultView||window}function HP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let PH=0;function _be(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(PH+=1,n(`mui-${PH}`))},[t]),r}const Lbe={...yw},EH=Lbe.useId;function _n(e){if(EH!==void 0){const t=EH();return e??t}return _be(e)}function bi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),s=o?e:i,l=v.useCallback(c=>{o||a(c)},[]);return[s,l]}function Ze(e){const t=v.useRef(e);return xn(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Wt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{HP(n,t)})},e)}const TH={};function Jl(e,t){const n=v.useRef(TH);return n.current===TH&&(n.current=e(t)),n}const Nbe=[];function DO(e){v.useEffect(e,Nbe)}class _O{constructor(){pn(this,"currentId",null);pn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});pn(this,"disposeEffect",()=>this.clear)}static create(){return new _O}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function la(){const e=Jl(_O.create).current;return DO(e.disposeEffect),e}function UP(e){try{return e.matches(":focus-visible")}catch{}return!1}function EY(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const pN=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function TY(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}const Fbe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Te(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[o]=a}return r}function jbe(e){return typeof e=="string"}function OY(e,t,n){return e===void 0||jbe(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function WP(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function OH(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IY(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=WP({...o,...r}),s=OH(r),l=OH(o),c=t(a),u=pe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function _u(e,t,n){return typeof e=="function"?e(t,n):e}function on(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:_u(n,r),{props:s,internalRef:l}=IY({...i,externalSlotProps:a}),c=Wt(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return OY(t,{...s,ref:c},r)}function Tf(e){var t;return parseInt(v.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const kY=v.createContext(null);function LO(){return v.useContext(kY)}const Bbe=typeof Symbol=="function"&&Symbol.for,MY=Bbe?Symbol.for("mui.nested"):"__THEME_NESTED__";function zbe(e,t){return typeof t=="function"?t(e):{...e,...t}}function Vbe(e){const{children:t,theme:n}=e,r=LO(),o=v.useMemo(()=>{const i=r===null?{...n}:zbe(r,n);return i!=null&&(i[MY]=r!==null),i},[n,r]);return $.jsx(kY.Provider,{value:o,children:t})}const AY=v.createContext();function Hbe({value:e,...t}){return $.jsx(AY.Provider,{value:e??!0,...t})}const nr=()=>v.useContext(AY)??!1,$Y=v.createContext(void 0);function Ube({value:e,children:t}){return $.jsx($Y.Provider,{value:e,children:t})}function Wbe(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ih(o.defaultProps,r):!o.styleOverrides&&!o.variants?ih(o,r):r}function Gbe({props:e,name:t}){const n=v.useContext($Y);return Wbe({props:e,name:t,theme:{components:n}})}const IH={};function kH(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function RY(e){const{children:t,theme:n,themeId:r}=e,o=dN(IH),i=LO()||IH,a=kH(r,o,n),s=kH(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return $.jsx(Vbe,{theme:s,children:$.jsx(Xx.Provider,{value:a,children:$.jsx(Hbe,{value:l,children:$.jsx(Ube,{value:r?a[r].components:a.components,children:t})})})})}const MH={theme:void 0};function qbe(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(MH.theme=o.theme,i=vY(e(MH)),t=i,n=o.theme),i}}const hN="mode",mN="color-scheme",Kbe="data-color-scheme";function Ybe(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=hN,colorSchemeStorageKey:i=mN,attribute:a=Kbe,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
+ */function sX(e,t){return pE(e,t)}function Tbe(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const a4=[];function s4(e){return a4[0]=e,Lv(a4)}function Ic(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lX(e){if(v.isValidElement(e)||!Ic(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=lX(e[n])}),t}function Xo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ic(e)&&Ic(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:Ic(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ic(e[o])?r[o]=Xo(e[o],t[o],n):n.clone?r[o]=Ic(t[o])?lX(t[o]):t[o]:r[o]=t[o]}),r}const Obe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ibe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Obe(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,p){const m=a.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:p)-r/100}${n})`}function u(f){return a.indexOf(f)+1<a.length?c(f,a[a.indexOf(f)+1]):s(f)}function d(f){const p=a.indexOf(f);return p===0?s(a[1]):p===a.length-1?l(a[p]):c(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:n,...o}}function kbe(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Mbe(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Abe(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function $be(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Rbe={borderRadius:4};function lw(e,t){return t?Xo(e,t,{clone:!1}):e}const ZO={xs:0,sm:600,md:900,lg:1200,xl:1536},l4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ZO[e]}px)`},Dbe={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ZO[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function oc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||l4;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||l4;return Object.keys(t).reduce((a,s)=>{if(Mbe(i.keys,s)){const l=Abe(r.containerQueries?r:Dbe,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||ZO).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function cX(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function uX(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function _be(e,...t){const n=cX(e),r=[n,...t].reduce((o,i)=>Xo(o,i),{});return uX(Object.keys(n),r)}function Lbe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function ZA({values:e,breakpoints:t,base:n}){const r=n||Lbe(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Ce(e){if(typeof e!="string")throw new Error(Wu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function eI(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function hE(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=eI(e,n)||r,t&&(o=t(o,r,e)),o}function uo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=eI(l,r)||{};return oc(a,s,d=>{let f=hE(c,o,d);return d===f&&typeof d=="string"&&(f=hE(c,o,`${t}${d==="default"?"":Ce(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Nbe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Fbe={m:"margin",p:"padding"},jbe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bbe=Nbe(e=>{if(e.length>2)if(c4[e])e=c4[e];else return[e];const[t,n]=e.split(""),r=Fbe[t],o=jbe[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),WN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],GN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WN,...GN];function xS(e,t,n,r){const o=eI(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function tI(e){return xS(e,"spacing",8)}function xh(e,t){return typeof t=="string"||t==null?t:e(t)}function zbe(e,t){return n=>e.reduce((r,o)=>(r[o]=xh(t,n),r),{})}function Vbe(e,t,n,r){if(!t.includes(n))return null;const o=Bbe(n),i=zbe(o,r),a=e[n];return oc(e,a,i)}function dX(e,t){const n=tI(e.theme);return Object.keys(e).map(r=>Vbe(e,t,r,n)).reduce(lw,{})}function Yr(e){return dX(e,WN)}Yr.propTypes={};Yr.filterProps=WN;function Xr(e){return dX(e,GN)}Xr.propTypes={};Xr.filterProps=GN;function fX(e=8,t=tI({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function nI(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?lw(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Bs(e){return typeof e!="number"?e:`${e}px solid`}function fl(e,t){return uo({prop:e,themeKey:"borders",transform:t})}const Hbe=fl("border",Bs),Ube=fl("borderTop",Bs),Wbe=fl("borderRight",Bs),Gbe=fl("borderBottom",Bs),qbe=fl("borderLeft",Bs),Kbe=fl("borderColor"),Ybe=fl("borderTopColor"),Xbe=fl("borderRightColor"),Qbe=fl("borderBottomColor"),Jbe=fl("borderLeftColor"),Zbe=fl("outline",Bs),e0e=fl("outlineColor"),rI=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:xh(t,r)});return oc(e,e.borderRadius,n)}return null};rI.propTypes={};rI.filterProps=["borderRadius"];nI(Hbe,Ube,Wbe,Gbe,qbe,Kbe,Ybe,Xbe,Qbe,Jbe,rI,Zbe,e0e);const oI=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xS(e.theme,"spacing",8),n=r=>({gap:xh(t,r)});return oc(e,e.gap,n)}return null};oI.propTypes={};oI.filterProps=["gap"];const iI=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xS(e.theme,"spacing",8),n=r=>({columnGap:xh(t,r)});return oc(e,e.columnGap,n)}return null};iI.propTypes={};iI.filterProps=["columnGap"];const aI=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xS(e.theme,"spacing",8),n=r=>({rowGap:xh(t,r)});return oc(e,e.rowGap,n)}return null};aI.propTypes={};aI.filterProps=["rowGap"];const t0e=uo({prop:"gridColumn"}),n0e=uo({prop:"gridRow"}),r0e=uo({prop:"gridAutoFlow"}),o0e=uo({prop:"gridAutoColumns"}),i0e=uo({prop:"gridAutoRows"}),a0e=uo({prop:"gridTemplateColumns"}),s0e=uo({prop:"gridTemplateRows"}),l0e=uo({prop:"gridTemplateAreas"}),c0e=uo({prop:"gridArea"});nI(oI,iI,aI,t0e,n0e,r0e,o0e,i0e,a0e,s0e,l0e,c0e);function Yg(e,t){return t==="grey"?t:e}const u0e=uo({prop:"color",themeKey:"palette",transform:Yg}),d0e=uo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yg}),f0e=uo({prop:"backgroundColor",themeKey:"palette",transform:Yg});nI(u0e,d0e,f0e);function Ga(e){return e<=1&&e!==0?`${e*100}%`:e}const p0e=uo({prop:"width",transform:Ga}),qN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||ZO[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ga(n)}};return oc(e,e.maxWidth,t)}return null};qN.filterProps=["maxWidth"];const h0e=uo({prop:"minWidth",transform:Ga}),m0e=uo({prop:"height",transform:Ga}),g0e=uo({prop:"maxHeight",transform:Ga}),y0e=uo({prop:"minHeight",transform:Ga});uo({prop:"size",cssProperty:"width",transform:Ga});uo({prop:"size",cssProperty:"height",transform:Ga});const v0e=uo({prop:"boxSizing"});nI(p0e,qN,h0e,m0e,g0e,y0e,v0e);const SS={border:{themeKey:"borders",transform:Bs},borderTop:{themeKey:"borders",transform:Bs},borderRight:{themeKey:"borders",transform:Bs},borderBottom:{themeKey:"borders",transform:Bs},borderLeft:{themeKey:"borders",transform:Bs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:rI},color:{themeKey:"palette",transform:Yg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yg},backgroundColor:{themeKey:"palette",transform:Yg},p:{style:Xr},pt:{style:Xr},pr:{style:Xr},pb:{style:Xr},pl:{style:Xr},px:{style:Xr},py:{style:Xr},padding:{style:Xr},paddingTop:{style:Xr},paddingRight:{style:Xr},paddingBottom:{style:Xr},paddingLeft:{style:Xr},paddingX:{style:Xr},paddingY:{style:Xr},paddingInline:{style:Xr},paddingInlineStart:{style:Xr},paddingInlineEnd:{style:Xr},paddingBlock:{style:Xr},paddingBlockStart:{style:Xr},paddingBlockEnd:{style:Xr},m:{style:Yr},mt:{style:Yr},mr:{style:Yr},mb:{style:Yr},ml:{style:Yr},mx:{style:Yr},my:{style:Yr},margin:{style:Yr},marginTop:{style:Yr},marginRight:{style:Yr},marginBottom:{style:Yr},marginLeft:{style:Yr},marginX:{style:Yr},marginY:{style:Yr},marginInline:{style:Yr},marginInlineStart:{style:Yr},marginInlineEnd:{style:Yr},marginBlock:{style:Yr},marginBlockStart:{style:Yr},marginBlockEnd:{style:Yr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oI},rowGap:{style:aI},columnGap:{style:iI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ga},maxWidth:{style:qN},minWidth:{transform:Ga},height:{transform:Ga},maxHeight:{transform:Ga},minHeight:{transform:Ga},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function b0e(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function w0e(e,t){return typeof e=="function"?e(t):e}function x0e(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=eI(o,c)||{};return d?d(a):oc(a,r,m=>{let g=hE(f,u,m);return m===g&&typeof m=="string"&&(g=hE(f,u,`${n}${m==="default"?"":Ce(m)}`,m)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??SS;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=cX(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const p=w0e(l[f],o);if(p!=null)if(typeof p=="object")if(i[f])d=lw(d,e(f,p,o,i));else{const m=oc({theme:o},p,g=>({[f]:g}));b0e(m,p)?d[f]=t({sx:p,theme:o}):d=lw(d,m)}else d=lw(d,e(f,p,o,i))}),kbe(o,uX(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const Mf=x0e();Mf.filterProps=["sx"];function S0e(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Nv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=Ibe(n),l=fX(o);let c=Xo({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Rbe,...i}},a);return c=$be(c),c.applyStyles=S0e,c=t.reduce((u,d)=>Xo(u,d),c),c.unstable_sxConfig={...SS,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return Mf({sx:d,theme:this})},c}function C0e(e){return Object.keys(e).length===0}function KN(e=null){const t=v.useContext(bS);return!t||C0e(t)?e:t}const P0e=Nv();function CS(e=P0e){return KN(e)}function E0e({styles:e,themeId:t,defaultTheme:n={}}){const r=CS(n),o=typeof e=="function"?e(t&&r[t]||r):e;return $.jsx(aX,{styles:o})}const T0e=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??SS;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function sI(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=T0e(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ic(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const u4=e=>e,O0e=()=>{let e=u4;return{configure(t){e=t},generate(t){return e(t)},reset(){e=u4}}},pX=O0e();function hX(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hX(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hX(e))&&(r&&(r+=" "),r+=t);return r}function I0e(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=sX("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Mf);return v.forwardRef(function(l,c){const u=CS(n),{className:d,component:f="div",...p}=sI(l);return $.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...p})})}const k0e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=k0e[t];return r?`${n}-${r}`:`${pX.generate(e)}-${t}`}function tt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}function mX(e){const{variants:t,...n}=e,r={variants:t,style:s4(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=s4(o.style))}),r}const M0e=Nv();function e$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function A0e(e){return e?(t,n)=>n[e]:null}function $0e(e,t,n){e.theme=D0e(e.theme)?n:e.theme[t]||e.theme}function RP(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>RP(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return gX(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function gX(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function yX(e={}){const{themeId:t,defaultTheme:n=M0e,rootShouldForwardProp:r=e$,slotShouldForwardProp:o=e$}=e;function i(s){$0e(s,t,n)}return(s,l={})=>{Tbe(s,E=>E.filter(T=>T!==Mf));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=A0e(L0e(u)),...m}=l,g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let b=e$;u==="Root"||u==="root"?b=r:u?b=o:_0e(s)&&(b=void 0);const x=sX(s,{shouldForwardProp:b,label:R0e(),...m}),S=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(O){return RP(O,E)};if(Ic(E)){const T=mX(E);return T.variants?function(k){return RP(k,T)}:T.style}return E},P=(...E)=>{const T=[],O=E.map(S),k=[];if(T.push(i),c&&p&&k.push(function(_){var F,U;const j=(U=(F=_.theme.components)==null?void 0:F[c])==null?void 0:U.styleOverrides;if(!j)return null;const N={};for(const z in j)N[z]=RP(_,j[z]);return p(_,N)}),c&&!g&&k.push(function(_){var N,F;const L=_.theme,j=(F=(N=L==null?void 0:L.components)==null?void 0:N[c])==null?void 0:F.variants;return j?gX(_,j):null}),y||k.push(Mf),Array.isArray(O[0])){const R=O.shift(),_=new Array(T.length).fill(""),L=new Array(k.length).fill("");let j;j=[..._,...R,...L],j.raw=[..._,...R.raw,...L],T.unshift(j)}const M=[...T,...O,...k],I=x(...M);return s.muiName&&(I.muiName=s.muiName),I};return x.withConfig&&(P.withConfig=x.withConfig),P}}function R0e(e,t){return void 0}function D0e(e){for(const t in e)return!1;return!0}function _0e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function L0e(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const YN=yX();function _y(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=_y(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function vX(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:_y(t.components[n].defaultProps,r)}function lI({props:e,name:t,defaultTheme:n,themeId:r}){let o=CS(n);return r&&(o=o[r]||o),vX({theme:o,name:t,props:e})}const ns=typeof window<"u"?v.useLayoutEffect:v.useEffect;function N0e(e,t,n,r,o){const[i,a]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return ns(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const F0e={...Ry},bX=F0e.useSyncExternalStore;function j0e(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),a=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return bX(l,s,a)}function B0e(e={}){const{themeId:t}=e;return function(r,o={}){let i=KN();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=vX({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(bX!==void 0?j0e:N0e)(d,s,l,c,u)}}function z0e(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function XN(e,t=0,n=1){return z0e(e,t,n)}function V0e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Hc(e){if(e.type)return e;if(e.charAt(0)==="#")return Hc(V0e(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Wu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Wu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const H0e=e=>{const t=Hc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},V0=(e,t)=>{try{return H0e(e)}catch{return e}};function PS(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function wX(e){e=Hc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),PS({type:s,values:l})}function p2(e){e=Hc(e);let t=e.type==="hsl"||e.type==="hsla"?Hc(wX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function U0e(e,t){const n=p2(e),r=p2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vt(e,t){return e=Hc(e),t=XN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,PS(e)}function bC(e,t,n){try{return vt(e,t)}catch{return e}}function Gu(e,t){if(e=Hc(e),t=XN(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return PS(e)}function fr(e,t,n){try{return Gu(e,t)}catch{return e}}function qu(e,t){if(e=Hc(e),t=XN(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return PS(e)}function pr(e,t,n){try{return qu(e,t)}catch{return e}}function xX(e,t=.15){return p2(e)>.5?Gu(e,t):qu(e,t)}function wC(e,t,n){try{return xX(e,t)}catch{return e}}const SX=v.createContext(null);function cI(){return v.useContext(SX)}const W0e=typeof Symbol=="function"&&Symbol.for,CX=W0e?Symbol.for("mui.nested"):"__THEME_NESTED__";function G0e(e,t){return typeof t=="function"?t(e):{...e,...t}}function q0e(e){const{children:t,theme:n}=e,r=cI(),o=v.useMemo(()=>{const i=r===null?{...n}:G0e(r,n);return i!=null&&(i[CX]=r!==null),i},[n,r]);return $.jsx(SX.Provider,{value:o,children:t})}const PX=v.createContext();function K0e({value:e,...t}){return $.jsx(PX.Provider,{value:e??!0,...t})}const ud=()=>v.useContext(PX)??!1,EX=v.createContext(void 0);function Y0e({value:e,children:t}){return $.jsx(EX.Provider,{value:e,children:t})}function X0e(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?_y(o.defaultProps,r):!o.styleOverrides&&!o.variants?_y(o,r):r}function Q0e({props:e,name:t}){const n=v.useContext(EX);return X0e({props:e,name:t,theme:{components:n}})}const d4={};function f4(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function TX(e){const{children:t,theme:n,themeId:r}=e,o=KN(d4),i=cI()||d4,a=f4(r,o,n),s=f4(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return $.jsx(q0e,{theme:s,children:$.jsx(bS.Provider,{value:a,children:$.jsx(K0e,{value:l,children:$.jsx(Y0e,{value:r?a[r].components:a.components,children:t})})})})}const p4={theme:void 0};function J0e(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(p4.theme=o.theme,i=mX(e(p4)),t=i,n=o.theme),i}}const QN="mode",JN="color-scheme",Z0e="data-color-scheme";function ewe(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=QN,colorSchemeStorageKey:i=JN,attribute:a=Z0e,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,p]=d[1].split("=");p||(c+=`${s}.removeAttribute('${f}'.replace('%s', light));
${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=`
${s}.setAttribute('${f}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return $.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -54,15 +54,15 @@ try {
if (colorScheme) {
${c}
}
-} catch(e){}})();`}},"mui-color-scheme-init")}function AH(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function DY(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Xbe(e){return DY(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function bA(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Qbe(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=hN,colorSchemeStorageKey:a=mN,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=v.useState(()=>{const P=bA(i,t),E=bA(`${a}-light`,n),T=bA(`${a}-dark`,r);return{mode:P,systemMode:AH(P),lightColorScheme:E,darkColorScheme:T}}),[p,m]=v.useState(l||!u);v.useEffect(()=>{m(!0)},[]);const g=Xbe(d),y=v.useCallback(P=>{f(E=>{if(P===E.mode)return E;const T=P??t;try{localStorage.setItem(i,T)}catch{}return{...E,mode:T,systemMode:AH(T)}})},[i,t]),b=v.useCallback(P=>{P?typeof P=="string"?P&&!c.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const T={...E};return DY(E,O=>{try{localStorage.setItem(`${a}-${O}`,P)}catch{}O==="light"&&(T.lightColorScheme=P),O==="dark"&&(T.darkColorScheme=P)}),T}):f(E=>{const T={...E},O=P.light===null?n:P.light,k=P.dark===null?r:P.dark;if(O)if(!c.includes(O))console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=O;try{localStorage.setItem(`${a}-light`,O)}catch{}}if(k)if(!c.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=k;try{localStorage.setItem(`${a}-dark`,k)}catch{}}return T}):f(E=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...E,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),x=v.useCallback(P=>{d.mode==="system"&&f(E=>{const T=P!=null&&P.matches?"dark":"light";return E.systemMode===T?E:{...E,systemMode:T}})},[d.mode]),S=v.useRef(x);return S.current=x,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const P=(...T)=>S.current(...T),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(P),P(E),()=>{E.removeListener(P)}},[u]),v.useEffect(()=>{if(s&&u){const P=E=>{const T=E.newValue;typeof E.key=="string"&&E.key.startsWith(a)&&(!T||c.match(T))&&(E.key.endsWith("light")&&b({light:T}),E.key.endsWith("dark")&&b({dark:T})),E.key===i&&(!T||["light","dark","system"].includes(T))&&y(T||t)};return s.addEventListener("storage",P),()=>{s.removeEventListener("storage",P)}}},[b,y,i,a,c,t,s,u]),{...d,mode:p?d.mode:void 0,systemMode:p?d.systemMode:void 0,colorScheme:p?g:void 0,setMode:y,setColorScheme:b}}const Jbe="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Zbe(e){const{themeId:t,theme:n={},modeStorageKey:r=hN,colorSchemeStorageKey:o=mN,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=v.createContext(void 0),u=()=>v.useContext(c)||l,d={},f={};function p(b){var Re,Me,Ae,Ne;const{children:x,theme:S,modeStorageKey:P=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:T=i,storageWindow:O=typeof window>"u"?void 0:window,documentNode:k=typeof document>"u"?void 0:document,colorSchemeNode:M=typeof document>"u"?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:R=!1,defaultMode:_="system",noSsr:N}=b,B=v.useRef(!1),L=LO(),F=v.useContext(c),U=!!F&&!I,V=v.useMemo(()=>S||(typeof n=="function"?n():n),[S]),z=V[t],W=z||V,{colorSchemes:G=d,components:J=f,cssVarPrefix:K}=W,ne=Object.keys(G).filter(Je=>!!G[Je]).join(","),re=v.useMemo(()=>ne.split(","),[ne]),oe=typeof a=="string"?a:a.light,fe=typeof a=="string"?a:a.dark,se=G[oe]&&G[fe]?_:((Me=(Re=G[W.defaultColorScheme])==null?void 0:Re.palette)==null?void 0:Me.mode)||((Ae=W.palette)==null?void 0:Ae.mode),{mode:ee,setMode:ce,systemMode:le,lightColorScheme:Q,darkColorScheme:ue,colorScheme:ge,setColorScheme:xe}=Qbe({supportedColorSchemes:re,defaultLightColorScheme:oe,defaultDarkColorScheme:fe,modeStorageKey:P,colorSchemeStorageKey:E,defaultMode:se,storageWindow:O,noSsr:N});let me=ee,be=ge;U&&(me=F.mode,be=F.colorScheme);const we=v.useMemo(()=>{var $t;const Je=be||W.defaultColorScheme,nt=(($t=W.generateThemeVars)==null?void 0:$t.call(W))||W.vars,st={...W,components:J,colorSchemes:G,cssVarPrefix:K,vars:nt};if(typeof st.generateSpacing=="function"&&(st.spacing=st.generateSpacing()),Je){const ct=G[Je];ct&&typeof ct=="object"&&Object.keys(ct).forEach(_t=>{ct[_t]&&typeof ct[_t]=="object"?st[_t]={...st[_t],...ct[_t]}:st[_t]=ct[_t]})}return s?s(st):st},[W,be,J,G,K]),Oe=W.colorSchemeSelector;v.useEffect(()=>{if(be&&M&&Oe&&Oe!=="media"){const Je=Oe;let nt=Oe;if(Je==="class"&&(nt=".%s"),Je==="data"&&(nt="[data-%s]"),Je!=null&&Je.startsWith("data-")&&!Je.includes("%s")&&(nt=`[${Je}="%s"]`),nt.startsWith("."))M.classList.remove(...re.map(st=>nt.substring(1).replace("%s",st))),M.classList.add(nt.substring(1).replace("%s",be));else{const st=nt.replace("%s",be).match(/\[([^\]]+)\]/);if(st){const[$t,ct]=st[1].split("=");ct||re.forEach(_t=>{M.removeAttribute($t.replace(be,_t))}),M.setAttribute($t,ct?ct.replace(/"|'/g,""):"")}else M.setAttribute(nt,be)}}},[be,Oe,M,re]),v.useEffect(()=>{let Je;if(T&&B.current&&k){const nt=k.createElement("style");nt.appendChild(k.createTextNode(Jbe)),k.head.appendChild(nt),window.getComputedStyle(k.body),Je=setTimeout(()=>{k.head.removeChild(nt)},1)}return()=>{clearTimeout(Je)}},[be,T,k]),v.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const ke=v.useMemo(()=>({allColorSchemes:re,colorScheme:be,darkColorScheme:ue,lightColorScheme:Q,mode:me,setColorScheme:xe,setMode:ce,systemMode:le}),[re,be,ue,Q,me,xe,ce,le,we.colorSchemeSelector]);let je=!0;(R||W.cssVariables===!1||U&&(L==null?void 0:L.cssVarPrefix)===K)&&(je=!1);const de=$.jsxs(v.Fragment,{children:[$.jsx(RY,{themeId:z?t:void 0,theme:we,children:x}),je&&$.jsx(cY,{styles:((Ne=we.generateStyleSheets)==null?void 0:Ne.call(we))||[]})]});return U?de:$.jsx(c.Provider,{value:ke,children:de})}const m=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:b=>Ybe({colorSchemeStorageKey:o,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:r,...b})}}function e0e(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const $H=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},t0e=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},n0e=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function wA(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return t0e(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=n0e(s,l);Object.assign(o,{[u]:d}),$H(i,s,`var(${u})`,c),$H(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function r0e(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=wA(l,t);let f=d;const p={},{[s]:m,...g}=i;if(Object.entries(g||{}).forEach(([S,P])=>{const{vars:E,css:T,varsWithDefaults:O}=wA(P,t);f=mo(f,O),p[S]={css:T,vars:E}}),m){const{css:S,vars:P,varsWithDefaults:E}=wA(m,t);f=mo(f,E),p[s]={css:S,vars:P}}function y(S,P){var T,O;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((O=(T=i[S])==null?void 0:T.palette)==null?void 0:O.mode)||S})`]:{":root":P}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:f,generateThemeVars:()=>{let S={...c};return Object.entries(p).forEach(([,{vars:P}])=>{S=mo(S,P)}),S},generateStyleSheets:()=>{var k,M;const S=[],P=e.defaultColorScheme||"light";function E(I,R){Object.keys(R).length&&S.push(typeof I=="string"?{[I]:{...R}}:I)}E(n(void 0,{...u}),u);const{[P]:T,...O}=p;if(T){const{css:I}=T,R=(M=(k=i[P])==null?void 0:k.palette)==null?void 0:M.mode,_=!r&&R?{colorScheme:R,...I}:{...I};E(n(P,{..._}),_)}return Object.entries(O).forEach(([I,{css:R}])=>{var B,L;const _=(L=(B=i[I])==null?void 0:B.palette)==null?void 0:L.mode,N=!r&&_?{colorScheme:_,...R}:{...R};E(n(I,{...N}),N)}),S}}}function o0e(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const i0e=hv(),a0e=Qn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),s0e=e=>RO({props:e,name:"MuiContainer",defaultTheme:i0e}),l0e=(e,t)=>{const n=l=>_e(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Se(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Te(s,n,r)};function c0e(e={}){const{createStyledComponent:t=a0e,useThemeProps:n=s0e,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return v.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:p=!1,maxWidth:m="lg",classes:g,...y}=c,b={...c,component:d,disableGutters:f,fixed:p,maxWidth:m},x=l0e(b,r);return $.jsx(o,{as:d,ownerState:b,className:pe(x.root,u),ref:l,...y})})}const u0e=(e,t)=>e.filter(n=>t.includes(n)),gv=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:u0e(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function GP(e){return`--Grid-${e}Spacing`}function NO(e){return`--Grid-parent-${e}Spacing`}const RH="--Grid-columns",Rg="--Grid-parent-columns",d0e=({theme:e,ownerState:t})=>{const n={};return gv(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Rg}) - (var(${Rg}) - ${o}) * (var(${NO("column")}) / var(${Rg})))`}),r(n,i)}),n},f0e=({theme:e,ownerState:t})=>{const n={};return gv(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Rg}) + var(${NO("column")}) * ${o} / var(${Rg}))`}),r(n,i)}),n},p0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[RH]:12};return gv(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[RH]:i,"> *":{[Rg]:i}})}),n},h0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gv(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[GP("row")]:i,"> *":{[NO("row")]:i}})}),n},m0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gv(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[GP("column")]:i,"> *":{[NO("column")]:i}})}),n},g0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gv(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},y0e=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${GP("row")}) var(${GP("column")})`}}),v0e=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},b0e=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},w0e=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],x0e=hv(),S0e=Qn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function C0e(e){return RO({props:e,name:"MuiGrid",defaultTheme:x0e})}function P0e(e={}){const{createStyledComponent:t=S0e,useThemeProps:n=C0e,useTheme:r=eS,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:p,wrap:m,size:g}=c,y={root:["root",d&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...w0e(f),...v0e(g),...d?b0e(p,u.breakpoints.keys[0]):[]]};return Te(y,b=>_e(o,b),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((p,m)=>{p!==null&&d(p)&&u.keys[m]&&(f[u.keys[m]]=p)}):typeof c=="object"?Object.keys(c).forEach(p=>{const m=c[p];m!=null&&d(m)&&(f[p]=m)}):f[u.keys[0]]=c),f}const s=t(p0e,m0e,h0e,d0e,g0e,y0e,f0e),l=v.forwardRef(function(u,d){const f=r(),p=n(u),m=$O(p),{className:g,children:y,columns:b=12,container:x=!1,component:S="div",direction:P="row",wrap:E="wrap",size:T={},offset:O={},spacing:k=0,rowSpacing:M=k,columnSpacing:I=k,unstable_level:R=0,..._}=m,N=a(T,f.breakpoints,G=>G!==!1),B=a(O,f.breakpoints),L=u.columns??(R?void 0:b),F=u.spacing??(R?void 0:k),U=u.rowSpacing??u.spacing??(R?void 0:M),V=u.columnSpacing??u.spacing??(R?void 0:I),z={...m,level:R,columns:L,container:x,direction:P,wrap:E,spacing:F,rowSpacing:U,columnSpacing:V,size:N,offset:B},W=i(z,f);return $.jsx(s,{ref:d,as:S,ownerState:z,className:pe(W.root,g),..._,children:v.Children.map(y,G=>{var J;return v.isValidElement(G)&&$g(G,["Grid"])&&x&&G.props.container?v.cloneElement(G,{unstable_level:((J=G.props)==null?void 0:J.unstable_level)??R+1}):G})})});return l.muiName="Grid",l}const E0e=hv(),T0e=Qn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function O0e(e){return RO({props:e,name:"MuiStack",defaultTheme:E0e})}function I0e(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const k0e=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],M0e=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Gl({theme:t},vA({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=TO(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=vA({values:e.direction,base:o}),a=vA({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=mo(n,Gl({theme:t},a,(l,c)=>e.useFlexGap?{gap:oh(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${k0e(c?i[c]:e.direction)}`]:oh(r,l)}}))}return n=Eve(t.breakpoints,n),n};function A0e(e={}){const{createStyledComponent:t=T0e,useThemeProps:n=O0e,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},l=>_e(r,l),{}),i=t(M0e);return v.forwardRef(function(l,c){const u=n(l),d=$O(u),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:y,className:b,useFlexGap:x=!1,...S}=d,P={direction:p,spacing:m,useFlexGap:x},E=o();return $.jsx(i,{as:f,ownerState:P,ref:c,className:pe(E.root,b),...S,children:g?I0e(y,g):y})})}const xw={black:"#000",white:"#fff"},$0e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Sm={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Cm={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Pm={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Em={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tm={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function _Y(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xw.white,default:xw.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const R0e=_Y();function LY(){return{text:{primary:xw.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xw.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const DH=LY();function _H(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Du(e.main,o):t==="dark"&&(e.dark=Ru(e.main,i)))}function D0e(e="light"){return e==="dark"?{main:Pm[200],light:Pm[50],dark:Pm[400]}:{main:Pm[700],light:Pm[400],dark:Pm[800]}}function _0e(e="light"){return e==="dark"?{main:Sm[200],light:Sm[50],dark:Sm[400]}:{main:Sm[500],light:Sm[300],dark:Sm[700]}}function L0e(e="light"){return e==="dark"?{main:Cm[500],light:Cm[300],dark:Cm[700]}:{main:Cm[700],light:Cm[400],dark:Cm[800]}}function N0e(e="light"){return e==="dark"?{main:Em[400],light:Em[300],dark:Em[700]}:{main:Em[700],light:Em[500],dark:Em[900]}}function F0e(e="light"){return e==="dark"?{main:Tm[400],light:Tm[300],dark:Tm[700]}:{main:Tm[800],light:Tm[500],dark:Tm[900]}}function j0e(e="light"){return e==="dark"?{main:$b[400],light:$b[300],dark:$b[700]}:{main:"#ed6c02",light:$b[500],dark:$b[900]}}function gN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||D0e(t),a=e.secondary||_0e(t),s=e.error||L0e(t),l=e.info||N0e(t),c=e.success||F0e(t),u=e.warning||j0e(t);function d(g){return Dbe(g,DH.text.primary)>=n?DH.text.primary:R0e.text.primary}const f=({color:g,name:y,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error($u(11,y?` (${y})`:"",b));if(typeof g.main!="string")throw new Error($u(12,y?` (${y})`:"",JSON.stringify(g.main)));return _H(g,"light",x,r),_H(g,"dark",S,r),g.contrastText||(g.contrastText=d(g.main)),g};let p;return t==="light"?p=_Y():t==="dark"&&(p=LY()),mo({common:{...xw},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:$0e,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function B0e(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function z0e(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function V0e(e){return Math.round(e*1e5)/1e5}const LH={textTransform:"uppercase"},NH='"Roboto", "Helvetica", "Arial", sans-serif';function NY(e,t){const{fontFamily:n=NH,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,p=u||(y=>`${y/l*f}rem`),m=(y,b,x,S,P)=>({fontFamily:n,fontWeight:y,fontSize:p(b),lineHeight:x,...n===NH?{letterSpacing:`${V0e(S/b)}em`}:{},...P,...c}),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,LH),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,LH),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mo({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}const H0e=.2,U0e=.14,W0e=.12;function _r(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${H0e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${U0e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${W0e})`].join(",")}const G0e=["none",_r(0,2,1,-1,0,1,1,0,0,1,3,0),_r(0,3,1,-2,0,2,2,0,0,1,5,0),_r(0,3,3,-2,0,3,4,0,0,1,8,0),_r(0,2,4,-1,0,4,5,0,0,1,10,0),_r(0,3,5,-1,0,5,8,0,0,1,14,0),_r(0,3,5,-1,0,6,10,0,0,1,18,0),_r(0,4,5,-2,0,7,10,1,0,2,16,1),_r(0,5,5,-3,0,8,10,1,0,3,14,2),_r(0,5,6,-3,0,9,12,1,0,3,16,2),_r(0,6,6,-3,0,10,14,1,0,4,18,3),_r(0,6,7,-4,0,11,15,1,0,4,20,3),_r(0,7,8,-4,0,12,17,2,0,5,22,4),_r(0,7,8,-4,0,13,19,2,0,5,24,4),_r(0,7,9,-4,0,14,21,2,0,5,26,4),_r(0,8,9,-5,0,15,22,2,0,6,28,5),_r(0,8,10,-5,0,16,24,2,0,6,30,5),_r(0,8,11,-5,0,17,26,2,0,6,32,5),_r(0,9,11,-5,0,18,28,2,0,7,34,6),_r(0,9,12,-6,0,19,29,2,0,7,36,6),_r(0,10,13,-6,0,20,31,3,0,8,38,7),_r(0,10,13,-6,0,21,33,3,0,8,40,7),_r(0,10,14,-6,0,22,35,3,0,8,42,7),_r(0,11,14,-7,0,23,36,3,0,9,44,8),_r(0,11,15,-7,0,24,38,3,0,9,46,8)],q0e={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},FY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FH(e){return`${Math.round(e)}ms`}function K0e(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Y0e(e){const t={...q0e,...e.easing},n={...FY,...e.duration};return{getAutoHeightDuration:K0e,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:FH(a)} ${s} ${typeof l=="string"?l:FH(l)}`).join(",")},...e,easing:t,duration:n}}const X0e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Q0e(e){return vc(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function jY(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!Q0e(s)||a.startsWith("unstable_")?delete r[a]:vc(s)&&(r[a]={...s},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
+} catch(e){}})();`}},"mui-color-scheme-init")}function h4(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function OX(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function twe(e){return OX(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function t$(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function nwe(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=QN,colorSchemeStorageKey:a=JN,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=v.useState(()=>{const P=t$(i,t),E=t$(`${a}-light`,n),T=t$(`${a}-dark`,r);return{mode:P,systemMode:h4(P),lightColorScheme:E,darkColorScheme:T}}),[p,m]=v.useState(l||!u);v.useEffect(()=>{m(!0)},[]);const g=twe(d),y=v.useCallback(P=>{f(E=>{if(P===E.mode)return E;const T=P??t;try{localStorage.setItem(i,T)}catch{}return{...E,mode:T,systemMode:h4(T)}})},[i,t]),b=v.useCallback(P=>{P?typeof P=="string"?P&&!c.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const T={...E};return OX(E,O=>{try{localStorage.setItem(`${a}-${O}`,P)}catch{}O==="light"&&(T.lightColorScheme=P),O==="dark"&&(T.darkColorScheme=P)}),T}):f(E=>{const T={...E},O=P.light===null?n:P.light,k=P.dark===null?r:P.dark;if(O)if(!c.includes(O))console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=O;try{localStorage.setItem(`${a}-light`,O)}catch{}}if(k)if(!c.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=k;try{localStorage.setItem(`${a}-dark`,k)}catch{}}return T}):f(E=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...E,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),x=v.useCallback(P=>{d.mode==="system"&&f(E=>{const T=P!=null&&P.matches?"dark":"light";return E.systemMode===T?E:{...E,systemMode:T}})},[d.mode]),S=v.useRef(x);return S.current=x,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const P=(...T)=>S.current(...T),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(P),P(E),()=>{E.removeListener(P)}},[u]),v.useEffect(()=>{if(s&&u){const P=E=>{const T=E.newValue;typeof E.key=="string"&&E.key.startsWith(a)&&(!T||c.match(T))&&(E.key.endsWith("light")&&b({light:T}),E.key.endsWith("dark")&&b({dark:T})),E.key===i&&(!T||["light","dark","system"].includes(T))&&y(T||t)};return s.addEventListener("storage",P),()=>{s.removeEventListener("storage",P)}}},[b,y,i,a,c,t,s,u]),{...d,mode:p?d.mode:void 0,systemMode:p?d.systemMode:void 0,colorScheme:p?g:void 0,setMode:y,setColorScheme:b}}const rwe="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function owe(e){const{themeId:t,theme:n={},modeStorageKey:r=QN,colorSchemeStorageKey:o=JN,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=v.createContext(void 0),u=()=>v.useContext(c)||l,d={},f={};function p(b){var $e,ke,Me,De;const{children:x,theme:S,modeStorageKey:P=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:T=i,storageWindow:O=typeof window>"u"?void 0:window,documentNode:k=typeof document>"u"?void 0:document,colorSchemeNode:M=typeof document>"u"?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:R=!1,defaultMode:_="system",noSsr:L}=b,j=v.useRef(!1),N=cI(),F=v.useContext(c),U=!!F&&!I,z=v.useMemo(()=>S||(typeof n=="function"?n():n),[S]),V=z[t],W=V||z,{colorSchemes:G=d,components:J=f,cssVarPrefix:K}=W,ne=Object.keys(G).filter(Ye=>!!G[Ye]).join(","),re=v.useMemo(()=>ne.split(","),[ne]),oe=typeof a=="string"?a:a.light,fe=typeof a=="string"?a:a.dark,se=G[oe]&&G[fe]?_:((ke=($e=G[W.defaultColorScheme])==null?void 0:$e.palette)==null?void 0:ke.mode)||((Me=W.palette)==null?void 0:Me.mode),{mode:ee,setMode:ce,systemMode:le,lightColorScheme:Q,darkColorScheme:ue,colorScheme:ge,setColorScheme:xe}=nwe({supportedColorSchemes:re,defaultLightColorScheme:oe,defaultDarkColorScheme:fe,modeStorageKey:P,colorSchemeStorageKey:E,defaultMode:se,storageWindow:O,noSsr:L});let me=ee,be=ge;U&&(me=F.mode,be=F.colorScheme);const we=v.useMemo(()=>{var Rt;const Ye=be||W.defaultColorScheme,Je=((Rt=W.generateThemeVars)==null?void 0:Rt.call(W))||W.vars,st={...W,components:J,colorSchemes:G,cssVarPrefix:K,vars:Je};if(typeof st.generateSpacing=="function"&&(st.spacing=st.generateSpacing()),Ye){const ct=G[Ye];ct&&typeof ct=="object"&&Object.keys(ct).forEach(Lt=>{ct[Lt]&&typeof ct[Lt]=="object"?st[Lt]={...st[Lt],...ct[Lt]}:st[Lt]=ct[Lt]})}return s?s(st):st},[W,be,J,G,K]),Te=W.colorSchemeSelector;v.useEffect(()=>{if(be&&M&&Te&&Te!=="media"){const Ye=Te;let Je=Te;if(Ye==="class"&&(Je=".%s"),Ye==="data"&&(Je="[data-%s]"),Ye!=null&&Ye.startsWith("data-")&&!Ye.includes("%s")&&(Je=`[${Ye}="%s"]`),Je.startsWith("."))M.classList.remove(...re.map(st=>Je.substring(1).replace("%s",st))),M.classList.add(Je.substring(1).replace("%s",be));else{const st=Je.replace("%s",be).match(/\[([^\]]+)\]/);if(st){const[Rt,ct]=st[1].split("=");ct||re.forEach(Lt=>{M.removeAttribute(Rt.replace(be,Lt))}),M.setAttribute(Rt,ct?ct.replace(/"|'/g,""):"")}else M.setAttribute(Je,be)}}},[be,Te,M,re]),v.useEffect(()=>{let Ye;if(T&&j.current&&k){const Je=k.createElement("style");Je.appendChild(k.createTextNode(rwe)),k.head.appendChild(Je),window.getComputedStyle(k.body),Ye=setTimeout(()=>{k.head.removeChild(Je)},1)}return()=>{clearTimeout(Ye)}},[be,T,k]),v.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Ie=v.useMemo(()=>({allColorSchemes:re,colorScheme:be,darkColorScheme:ue,lightColorScheme:Q,mode:me,setColorScheme:xe,setMode:ce,systemMode:le}),[re,be,ue,Q,me,xe,ce,le,we.colorSchemeSelector]);let Le=!0;(R||W.cssVariables===!1||U&&(N==null?void 0:N.cssVarPrefix)===K)&&(Le=!1);const de=$.jsxs(v.Fragment,{children:[$.jsx(TX,{themeId:V?t:void 0,theme:we,children:x}),Le&&$.jsx(aX,{styles:((De=we.generateStyleSheets)==null?void 0:De.call(we))||[]})]});return U?de:$.jsx(c.Provider,{value:Ie,children:de})}const m=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:b=>ewe({colorSchemeStorageKey:o,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:r,...b})}}function iwe(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const m4=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},awe=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},swe=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function n$(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return awe(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=swe(s,l);Object.assign(o,{[u]:d}),m4(i,s,`var(${u})`,c),m4(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function lwe(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=n$(l,t);let f=d;const p={},{[s]:m,...g}=i;if(Object.entries(g||{}).forEach(([S,P])=>{const{vars:E,css:T,varsWithDefaults:O}=n$(P,t);f=Xo(f,O),p[S]={css:T,vars:E}}),m){const{css:S,vars:P,varsWithDefaults:E}=n$(m,t);f=Xo(f,E),p[s]={css:S,vars:P}}function y(S,P){var T,O;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((O=(T=i[S])==null?void 0:T.palette)==null?void 0:O.mode)||S})`]:{":root":P}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:f,generateThemeVars:()=>{let S={...c};return Object.entries(p).forEach(([,{vars:P}])=>{S=Xo(S,P)}),S},generateStyleSheets:()=>{var k,M;const S=[],P=e.defaultColorScheme||"light";function E(I,R){Object.keys(R).length&&S.push(typeof I=="string"?{[I]:{...R}}:I)}E(n(void 0,{...u}),u);const{[P]:T,...O}=p;if(T){const{css:I}=T,R=(M=(k=i[P])==null?void 0:k.palette)==null?void 0:M.mode,_=!r&&R?{colorScheme:R,...I}:{...I};E(n(P,{..._}),_)}return Object.entries(O).forEach(([I,{css:R}])=>{var j,N;const _=(N=(j=i[I])==null?void 0:j.palette)==null?void 0:N.mode,L=!r&&_?{colorScheme:_,...R}:{...R};E(n(I,{...L}),L)}),S}}}function cwe(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function et(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[o]=a}return r}const uwe=Nv(),dwe=YN("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),fwe=e=>lI({props:e,name:"MuiContainer",defaultTheme:uwe}),pwe=(e,t)=>{const n=l=>Ze(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Ce(String(a))}`,o&&"fixed",i&&"disableGutters"]};return et(s,n,r)};function hwe(e={}){const{createStyledComponent:t=dwe,useThemeProps:n=fwe,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return v.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:p=!1,maxWidth:m="lg",classes:g,...y}=c,b={...c,component:d,disableGutters:f,fixed:p,maxWidth:m},x=pwe(b,r);return $.jsx(o,{as:d,ownerState:b,className:pe(x.root,u),ref:l,...y})})}function Xg(e,t){var n,r,o;return v.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const mwe=(e,t)=>e.filter(n=>t.includes(n)),Fv=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:mwe(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function mE(e){return`--Grid-${e}Spacing`}function uI(e){return`--Grid-parent-${e}Spacing`}const g4="--Grid-columns",Qg="--Grid-parent-columns",gwe=({theme:e,ownerState:t})=>{const n={};return Fv(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Qg}) - (var(${Qg}) - ${o}) * (var(${uI("column")}) / var(${Qg})))`}),r(n,i)}),n},ywe=({theme:e,ownerState:t})=>{const n={};return Fv(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Qg}) + var(${uI("column")}) * ${o} / var(${Qg}))`}),r(n,i)}),n},vwe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[g4]:12};return Fv(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[g4]:i,"> *":{[Qg]:i}})}),n},bwe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fv(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[mE("row")]:i,"> *":{[uI("row")]:i}})}),n},wwe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fv(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[mE("column")]:i,"> *":{[uI("column")]:i}})}),n},xwe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fv(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},Swe=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${mE("row")}) var(${mE("column")})`}}),Cwe=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},Pwe=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},Ewe=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],Twe=Nv(),Owe=YN("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Iwe(e){return lI({props:e,name:"MuiGrid",defaultTheme:Twe})}function kwe(e={}){const{createStyledComponent:t=Owe,useThemeProps:n=Iwe,useTheme:r=CS,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:p,wrap:m,size:g}=c,y={root:["root",d&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...Ewe(f),...Cwe(g),...d?Pwe(p,u.breakpoints.keys[0]):[]]};return et(y,b=>Ze(o,b),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((p,m)=>{p!==null&&d(p)&&u.keys[m]&&(f[u.keys[m]]=p)}):typeof c=="object"?Object.keys(c).forEach(p=>{const m=c[p];m!=null&&d(m)&&(f[p]=m)}):f[u.keys[0]]=c),f}const s=t(vwe,wwe,bwe,gwe,xwe,Swe,ywe),l=v.forwardRef(function(u,d){const f=r(),p=n(u),m=sI(p),{className:g,children:y,columns:b=12,container:x=!1,component:S="div",direction:P="row",wrap:E="wrap",size:T={},offset:O={},spacing:k=0,rowSpacing:M=k,columnSpacing:I=k,unstable_level:R=0,..._}=m,L=a(T,f.breakpoints,G=>G!==!1),j=a(O,f.breakpoints),N=u.columns??(R?void 0:b),F=u.spacing??(R?void 0:k),U=u.rowSpacing??u.spacing??(R?void 0:M),z=u.columnSpacing??u.spacing??(R?void 0:I),V={...m,level:R,columns:N,container:x,direction:P,wrap:E,spacing:F,rowSpacing:U,columnSpacing:z,size:L,offset:j},W=i(V,f);return $.jsx(s,{ref:d,as:S,ownerState:V,className:pe(W.root,g),..._,children:v.Children.map(y,G=>{var J;return v.isValidElement(G)&&Xg(G,["Grid"])&&x&&G.props.container?v.cloneElement(G,{unstable_level:((J=G.props)==null?void 0:J.unstable_level)??R+1}):G})})});return l.muiName="Grid",l}const Mwe=Nv(),Awe=YN("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $we(e){return lI({props:e,name:"MuiStack",defaultTheme:Mwe})}function Rwe(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const Dwe=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_we=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...oc({theme:t},ZA({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=tI(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=ZA({values:e.direction,base:o}),a=ZA({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=Xo(n,oc({theme:t},a,(l,c)=>e.useFlexGap?{gap:xh(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Dwe(c?i[c]:e.direction)}`]:xh(r,l)}}))}return n=_be(t.breakpoints,n),n};function Lwe(e={}){const{createStyledComponent:t=Awe,useThemeProps:n=$we,componentName:r="MuiStack"}=e,o=()=>et({root:["root"]},l=>Ze(r,l),{}),i=t(_we);return v.forwardRef(function(l,c){const u=n(l),d=sI(u),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:y,className:b,useFlexGap:x=!1,...S}=d,P={direction:p,spacing:m,useFlexGap:x},E=o();return $.jsx(i,{as:f,ownerState:P,ref:c,className:pe(E.root,b),...S,children:g?Rwe(y,g):y})})}const Ww={black:"#000",white:"#fff"},Nwe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},jm={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Bm={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},n0={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zm={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Vm={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Hm={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function IX(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ww.white,default:Ww.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Fwe=IX();function kX(){return{text:{primary:Ww.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ww.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const y4=kX();function v4(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qu(e.main,o):t==="dark"&&(e.dark=Gu(e.main,i)))}function jwe(e="light"){return e==="dark"?{main:zm[200],light:zm[50],dark:zm[400]}:{main:zm[700],light:zm[400],dark:zm[800]}}function Bwe(e="light"){return e==="dark"?{main:jm[200],light:jm[50],dark:jm[400]}:{main:jm[500],light:jm[300],dark:jm[700]}}function zwe(e="light"){return e==="dark"?{main:Bm[500],light:Bm[300],dark:Bm[700]}:{main:Bm[700],light:Bm[400],dark:Bm[800]}}function Vwe(e="light"){return e==="dark"?{main:Vm[400],light:Vm[300],dark:Vm[700]}:{main:Vm[700],light:Vm[500],dark:Vm[900]}}function Hwe(e="light"){return e==="dark"?{main:Hm[400],light:Hm[300],dark:Hm[700]}:{main:Hm[800],light:Hm[500],dark:Hm[900]}}function Uwe(e="light"){return e==="dark"?{main:n0[400],light:n0[300],dark:n0[700]}:{main:"#ed6c02",light:n0[500],dark:n0[900]}}function ZN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||jwe(t),a=e.secondary||Bwe(t),s=e.error||zwe(t),l=e.info||Vwe(t),c=e.success||Hwe(t),u=e.warning||Uwe(t);function d(g){return U0e(g,y4.text.primary)>=n?y4.text.primary:Fwe.text.primary}const f=({color:g,name:y,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(Wu(11,y?` (${y})`:"",b));if(typeof g.main!="string")throw new Error(Wu(12,y?` (${y})`:"",JSON.stringify(g.main)));return v4(g,"light",x,r),v4(g,"dark",S,r),g.contrastText||(g.contrastText=d(g.main)),g};let p;return t==="light"?p=IX():t==="dark"&&(p=kX()),Xo({common:{...Ww},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:Nwe,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function Wwe(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Gwe(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function qwe(e){return Math.round(e*1e5)/1e5}const b4={textTransform:"uppercase"},w4='"Roboto", "Helvetica", "Arial", sans-serif';function MX(e,t){const{fontFamily:n=w4,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,p=u||(y=>`${y/l*f}rem`),m=(y,b,x,S,P)=>({fontFamily:n,fontWeight:y,fontSize:p(b),lineHeight:x,...n===w4?{letterSpacing:`${qwe(S/b)}em`}:{},...P,...c}),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,b4),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,b4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xo({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}const Kwe=.2,Ywe=.14,Xwe=.12;function Lr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Kwe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ywe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xwe})`].join(",")}const Qwe=["none",Lr(0,2,1,-1,0,1,1,0,0,1,3,0),Lr(0,3,1,-2,0,2,2,0,0,1,5,0),Lr(0,3,3,-2,0,3,4,0,0,1,8,0),Lr(0,2,4,-1,0,4,5,0,0,1,10,0),Lr(0,3,5,-1,0,5,8,0,0,1,14,0),Lr(0,3,5,-1,0,6,10,0,0,1,18,0),Lr(0,4,5,-2,0,7,10,1,0,2,16,1),Lr(0,5,5,-3,0,8,10,1,0,3,14,2),Lr(0,5,6,-3,0,9,12,1,0,3,16,2),Lr(0,6,6,-3,0,10,14,1,0,4,18,3),Lr(0,6,7,-4,0,11,15,1,0,4,20,3),Lr(0,7,8,-4,0,12,17,2,0,5,22,4),Lr(0,7,8,-4,0,13,19,2,0,5,24,4),Lr(0,7,9,-4,0,14,21,2,0,5,26,4),Lr(0,8,9,-5,0,15,22,2,0,6,28,5),Lr(0,8,10,-5,0,16,24,2,0,6,30,5),Lr(0,8,11,-5,0,17,26,2,0,6,32,5),Lr(0,9,11,-5,0,18,28,2,0,7,34,6),Lr(0,9,12,-6,0,19,29,2,0,7,36,6),Lr(0,10,13,-6,0,20,31,3,0,8,38,7),Lr(0,10,13,-6,0,21,33,3,0,8,40,7),Lr(0,10,14,-6,0,22,35,3,0,8,42,7),Lr(0,11,14,-7,0,23,36,3,0,9,44,8),Lr(0,11,15,-7,0,24,38,3,0,9,46,8)],Jwe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},AX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function x4(e){return`${Math.round(e)}ms`}function Zwe(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function exe(e){const t={...Jwe,...e.easing},n={...AX,...e.duration};return{getAutoHeightDuration:Zwe,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:x4(a)} ${s} ${typeof l=="string"?l:x4(l)}`).join(",")},...e,easing:t,duration:n}}const txe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nxe(e){return Ic(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $X(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!nxe(s)||a.startsWith("unstable_")?delete r[a]:Ic(s)&&(r[a]={...s},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(t,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
-export default theme;`}function $R(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error($u(20));const u=gN(i),d=hv(e);let f=mo(d,{mixins:z0e(d.breakpoints,r),palette:u,shadows:G0e.slice(),typography:NY(u,s),transitions:Y0e(a),zIndex:{...X0e}});return f=mo(f,c),f=t.reduce((p,m)=>mo(p,m),f),f.unstable_sxConfig={...Zx,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return mf({sx:m,theme:this})},f.toRuntimeSource=jY,f}function RR(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const J0e=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=RR(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function BY(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function zY(e){return e==="dark"?J0e:[]}function Z0e(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=gN(t);return{palette:i,opacity:{...BY(i.mode),...n},overlays:r||zY(i.mode),...o}}function ewe(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const twe=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],nwe=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return twe(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function rwe(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ze(e,t,n){!e[t]&&n&&(e[t]=n)}function b0(e){return typeof e!="string"||!e.startsWith("hsl")?e:CY(e)}function ru(e,t){`${t}Channel`in e||(e[`${t}Channel`]=v0(b0(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
-To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function owe(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ac=e=>{try{return e()}catch{}},iwe=(e="mui")=>e0e(e);function xA(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Z0e({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=$R({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...BY(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||zY(o)},a}function awe(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=ewe,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=iwe(i),{[d]:p,light:m,dark:g,...y}=n,b={...y};let x=p;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(x=!0),!x)throw new Error($u(21,d));const S=xA(b,x,c,d);m&&!b.light&&xA(b,m,void 0,"light"),g&&!b.dark&&xA(b,g,void 0,"dark");let P={defaultColorScheme:d,...S,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:b,font:{...B0e(S.typography),...S.font},spacing:owe(c.spacing)};Object.keys(P.colorSchemes).forEach(M=>{const I=P.colorSchemes[M].palette,R=_=>{const N=_.split("-"),B=N[1],L=N[2];return f(_,I[B][L])};if(I.mode==="light"&&(ze(I.common,"background","#fff"),ze(I.common,"onBackground","#000")),I.mode==="dark"&&(ze(I.common,"background","#000"),ze(I.common,"onBackground","#fff")),rwe(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){ze(I.Alert,"errorColor",fr(I.error.light,.6)),ze(I.Alert,"infoColor",fr(I.info.light,.6)),ze(I.Alert,"successColor",fr(I.success.light,.6)),ze(I.Alert,"warningColor",fr(I.warning.light,.6)),ze(I.Alert,"errorFilledBg",R("palette-error-main")),ze(I.Alert,"infoFilledBg",R("palette-info-main")),ze(I.Alert,"successFilledBg",R("palette-success-main")),ze(I.Alert,"warningFilledBg",R("palette-warning-main")),ze(I.Alert,"errorFilledColor",ac(()=>I.getContrastText(I.error.main))),ze(I.Alert,"infoFilledColor",ac(()=>I.getContrastText(I.info.main))),ze(I.Alert,"successFilledColor",ac(()=>I.getContrastText(I.success.main))),ze(I.Alert,"warningFilledColor",ac(()=>I.getContrastText(I.warning.main))),ze(I.Alert,"errorStandardBg",pr(I.error.light,.9)),ze(I.Alert,"infoStandardBg",pr(I.info.light,.9)),ze(I.Alert,"successStandardBg",pr(I.success.light,.9)),ze(I.Alert,"warningStandardBg",pr(I.warning.light,.9)),ze(I.Alert,"errorIconColor",R("palette-error-main")),ze(I.Alert,"infoIconColor",R("palette-info-main")),ze(I.Alert,"successIconColor",R("palette-success-main")),ze(I.Alert,"warningIconColor",R("palette-warning-main")),ze(I.AppBar,"defaultBg",R("palette-grey-100")),ze(I.Avatar,"defaultBg",R("palette-grey-400")),ze(I.Button,"inheritContainedBg",R("palette-grey-300")),ze(I.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ze(I.Chip,"defaultBorder",R("palette-grey-400")),ze(I.Chip,"defaultAvatarColor",R("palette-grey-700")),ze(I.Chip,"defaultIconColor",R("palette-grey-700")),ze(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ze(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ze(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ze(I.LinearProgress,"primaryBg",pr(I.primary.main,.62)),ze(I.LinearProgress,"secondaryBg",pr(I.secondary.main,.62)),ze(I.LinearProgress,"errorBg",pr(I.error.main,.62)),ze(I.LinearProgress,"infoBg",pr(I.info.main,.62)),ze(I.LinearProgress,"successBg",pr(I.success.main,.62)),ze(I.LinearProgress,"warningBg",pr(I.warning.main,.62)),ze(I.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ze(I.Slider,"primaryTrack",pr(I.primary.main,.62)),ze(I.Slider,"secondaryTrack",pr(I.secondary.main,.62)),ze(I.Slider,"errorTrack",pr(I.error.main,.62)),ze(I.Slider,"infoTrack",pr(I.info.main,.62)),ze(I.Slider,"successTrack",pr(I.success.main,.62)),ze(I.Slider,"warningTrack",pr(I.warning.main,.62));const _=X1(I.background.default,.8);ze(I.SnackbarContent,"bg",_),ze(I.SnackbarContent,"color",ac(()=>I.getContrastText(_))),ze(I.SpeedDialAction,"fabHoverBg",X1(I.background.paper,.15)),ze(I.StepConnector,"border",R("palette-grey-400")),ze(I.StepContent,"border",R("palette-grey-400")),ze(I.Switch,"defaultColor",R("palette-common-white")),ze(I.Switch,"defaultDisabledColor",R("palette-grey-100")),ze(I.Switch,"primaryDisabledColor",pr(I.primary.main,.62)),ze(I.Switch,"secondaryDisabledColor",pr(I.secondary.main,.62)),ze(I.Switch,"errorDisabledColor",pr(I.error.main,.62)),ze(I.Switch,"infoDisabledColor",pr(I.info.main,.62)),ze(I.Switch,"successDisabledColor",pr(I.success.main,.62)),ze(I.Switch,"warningDisabledColor",pr(I.warning.main,.62)),ze(I.TableCell,"border",pr(Y1(I.divider,1),.88)),ze(I.Tooltip,"bg",Y1(I.grey[700],.92))}if(I.mode==="dark"){ze(I.Alert,"errorColor",pr(I.error.light,.6)),ze(I.Alert,"infoColor",pr(I.info.light,.6)),ze(I.Alert,"successColor",pr(I.success.light,.6)),ze(I.Alert,"warningColor",pr(I.warning.light,.6)),ze(I.Alert,"errorFilledBg",R("palette-error-dark")),ze(I.Alert,"infoFilledBg",R("palette-info-dark")),ze(I.Alert,"successFilledBg",R("palette-success-dark")),ze(I.Alert,"warningFilledBg",R("palette-warning-dark")),ze(I.Alert,"errorFilledColor",ac(()=>I.getContrastText(I.error.dark))),ze(I.Alert,"infoFilledColor",ac(()=>I.getContrastText(I.info.dark))),ze(I.Alert,"successFilledColor",ac(()=>I.getContrastText(I.success.dark))),ze(I.Alert,"warningFilledColor",ac(()=>I.getContrastText(I.warning.dark))),ze(I.Alert,"errorStandardBg",fr(I.error.light,.9)),ze(I.Alert,"infoStandardBg",fr(I.info.light,.9)),ze(I.Alert,"successStandardBg",fr(I.success.light,.9)),ze(I.Alert,"warningStandardBg",fr(I.warning.light,.9)),ze(I.Alert,"errorIconColor",R("palette-error-main")),ze(I.Alert,"infoIconColor",R("palette-info-main")),ze(I.Alert,"successIconColor",R("palette-success-main")),ze(I.Alert,"warningIconColor",R("palette-warning-main")),ze(I.AppBar,"defaultBg",R("palette-grey-900")),ze(I.AppBar,"darkBg",R("palette-background-paper")),ze(I.AppBar,"darkColor",R("palette-text-primary")),ze(I.Avatar,"defaultBg",R("palette-grey-600")),ze(I.Button,"inheritContainedBg",R("palette-grey-800")),ze(I.Button,"inheritContainedHoverBg",R("palette-grey-700")),ze(I.Chip,"defaultBorder",R("palette-grey-700")),ze(I.Chip,"defaultAvatarColor",R("palette-grey-300")),ze(I.Chip,"defaultIconColor",R("palette-grey-300")),ze(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ze(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ze(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ze(I.LinearProgress,"primaryBg",fr(I.primary.main,.5)),ze(I.LinearProgress,"secondaryBg",fr(I.secondary.main,.5)),ze(I.LinearProgress,"errorBg",fr(I.error.main,.5)),ze(I.LinearProgress,"infoBg",fr(I.info.main,.5)),ze(I.LinearProgress,"successBg",fr(I.success.main,.5)),ze(I.LinearProgress,"warningBg",fr(I.warning.main,.5)),ze(I.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ze(I.Slider,"primaryTrack",fr(I.primary.main,.5)),ze(I.Slider,"secondaryTrack",fr(I.secondary.main,.5)),ze(I.Slider,"errorTrack",fr(I.error.main,.5)),ze(I.Slider,"infoTrack",fr(I.info.main,.5)),ze(I.Slider,"successTrack",fr(I.success.main,.5)),ze(I.Slider,"warningTrack",fr(I.warning.main,.5));const _=X1(I.background.default,.98);ze(I.SnackbarContent,"bg",_),ze(I.SnackbarContent,"color",ac(()=>I.getContrastText(_))),ze(I.SpeedDialAction,"fabHoverBg",X1(I.background.paper,.15)),ze(I.StepConnector,"border",R("palette-grey-600")),ze(I.StepContent,"border",R("palette-grey-600")),ze(I.Switch,"defaultColor",R("palette-grey-300")),ze(I.Switch,"defaultDisabledColor",R("palette-grey-600")),ze(I.Switch,"primaryDisabledColor",fr(I.primary.main,.55)),ze(I.Switch,"secondaryDisabledColor",fr(I.secondary.main,.55)),ze(I.Switch,"errorDisabledColor",fr(I.error.main,.55)),ze(I.Switch,"infoDisabledColor",fr(I.info.main,.55)),ze(I.Switch,"successDisabledColor",fr(I.success.main,.55)),ze(I.Switch,"warningDisabledColor",fr(I.warning.main,.55)),ze(I.TableCell,"border",fr(Y1(I.divider,1),.68)),ze(I.Tooltip,"bg",Y1(I.grey[700],.92))}ru(I.background,"default"),ru(I.background,"paper"),ru(I.common,"background"),ru(I.common,"onBackground"),ru(I,"divider"),Object.keys(I).forEach(_=>{const N=I[_];_!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&ze(I[_],"mainChannel",v0(b0(N.main))),N.light&&ze(I[_],"lightChannel",v0(b0(N.light))),N.dark&&ze(I[_],"darkChannel",v0(b0(N.dark))),N.contrastText&&ze(I[_],"contrastTextChannel",v0(b0(N.contrastText))),_==="text"&&(ru(I[_],"primary"),ru(I[_],"secondary")),_==="action"&&(N.active&&ru(I[_],"active"),N.selected&&ru(I[_],"selected")))})}),P=t.reduce((M,I)=>mo(M,I),P);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:nwe(P)},{vars:T,generateThemeVars:O,generateStyleSheets:k}=r0e(P,E);return P.vars=T,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([M,I])=>{P[M]=I}),P.generateThemeVars=O,P.generateStyleSheets=k,P.generateSpacing=function(){return mY(c.spacing,TO(this))},P.getColorSchemeSelector=o0e(s),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=a,P.unstable_sxConfig={...Zx,...c==null?void 0:c.unstable_sxConfig},P.unstable_sx=function(I){return mf({sx:I,theme:this})},P.toRuntimeSource=jY,P}function jH(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gN({...n===!0?{}:n.palette,mode:t})})}function rS(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return $R(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=$R({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},jH(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},jH(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),awe({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function swe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lwe(e){return parseFloat(e)}const FO=rS();function Ao(){const e=eS(FO);return e[Hs]||e}function Jt({props:e,name:t}){return RO({props:e,name:t,defaultTheme:FO,themeId:Hs})}function VY(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ii=e=>VY(e)&&e!=="classes",ie=wY({themeId:Hs,defaultTheme:FO,rootShouldForwardProp:ii});function BH({theme:e,...t}){const n=Hs in e?e[Hs]:void 0;return $.jsx(RY,{...t,themeId:n?Hs:void 0,theme:n||e})}const Q1={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:cwe,useColorScheme:j$t,getInitColorSchemeScript:B$t}=Zbe({themeId:Hs,theme:()=>rS({cssVariables:!0}),colorSchemeStorageKey:Q1.colorSchemeStorageKey,modeStorageKey:Q1.modeStorageKey,defaultColorScheme:{light:Q1.defaultLightColorScheme,dark:Q1.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:NY(e.palette,e.typography)};return t.unstable_sx=function(r){return mf({sx:r,theme:this})},t}}),uwe=cwe;function Of({theme:e,...t}){return typeof e=="function"?$.jsx(BH,{theme:e,...t}):"colorSchemes"in(Hs in e?e[Hs]:e)?$.jsx(uwe,{theme:e,...t}):$.jsx(BH,{theme:e,...t})}var yv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ah=typeof window>"u"||"Deno"in globalThis;function Is(){}function dwe(e,t){return typeof e=="function"?e(t):e}function DR(e){return typeof e=="number"&&e>=0&&e!==1/0}function HY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dg(e,t){return typeof e=="function"?e(t):e}function $l(e,t){return typeof e=="function"?e(t):e}function zH(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==yN(a,t.options))return!1}else if(!Sw(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function VH(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(sh(t.options.mutationKey)!==sh(i))return!1}else if(!Sw(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function yN(e,t){return((t==null?void 0:t.queryKeyHashFn)||sh)(e)}function sh(e){return JSON.stringify(e,(t,n)=>_R(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Sw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Sw(e[n],t[n])):!1}function UY(e,t){if(e===t)return e;const n=HH(e)&&HH(t);if(n||_R(e)&&_R(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:i[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=UY(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:s}return t}function qP(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function HH(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _R(e){if(!UH(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!UH(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function UH(e){return Object.prototype.toString.call(e)==="[object Object]"}function fwe(e){return new Promise(t=>{setTimeout(t,e)})}function LR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?UY(e,t):t}function pwe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hwe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vN=Symbol();function WY(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vN?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Bp,Nd,ty,xK,mwe=(xK=class extends yv{constructor(){super();jt(this,Bp);jt(this,Nd);jt(this,ty);bt(this,ty,t=>{if(!ah&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ve(this,Nd)||this.setEventListener(ve(this,ty))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,Nd))==null||t.call(this),bt(this,Nd,void 0))}setEventListener(t){var n;bt(this,ty,t),(n=ve(this,Nd))==null||n.call(this),bt(this,Nd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ve(this,Bp)!==t&&(bt(this,Bp,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ve(this,Bp)=="boolean"?ve(this,Bp):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Bp=new WeakMap,Nd=new WeakMap,ty=new WeakMap,xK),bN=new mwe,ny,Fd,ry,SK,gwe=(SK=class extends yv{constructor(){super();jt(this,ny,!0);jt(this,Fd);jt(this,ry);bt(this,ry,t=>{if(!ah&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ve(this,Fd)||this.setEventListener(ve(this,ry))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,Fd))==null||t.call(this),bt(this,Fd,void 0))}setEventListener(t){var n;bt(this,ry,t),(n=ve(this,Fd))==null||n.call(this),bt(this,Fd,t(this.setOnline.bind(this)))}setOnline(t){ve(this,ny)!==t&&(bt(this,ny,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ve(this,ny)}},ny=new WeakMap,Fd=new WeakMap,ry=new WeakMap,SK),KP=new gwe;function NR(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function ywe(e){return Math.min(1e3*2**e,3e4)}function GY(e){return(e??"online")==="online"?KP.isOnline():!0}var qY=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function SA(e){return e instanceof qY}function KY(e){let t=!1,n=0,r=!1,o;const i=NR(),a=g=>{var y;r||(f(new qY(g)),(y=e.abort)==null||y.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>bN.isFocused()&&(e.networkMode==="always"||KP.isOnline())&&e.canRun(),u=()=>GY(e.networkMode)&&e.canRun(),d=g=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,g),o==null||o(),i.resolve(g))},f=g=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,g),o==null||o(),i.reject(g))},p=()=>new Promise(g=>{var y;o=b=>{(r||c())&&g(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var T;if(r)return;const x=e.retry??(ah?0:3),S=e.retryDelay??ywe,P=typeof S=="function"?S(n,b):S,E=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!E){f(b);return}n++,(T=e.onFail)==null||T.call(e,n,b),fwe(P).then(()=>c()?void 0:p()).then(()=>{t?f(b):m()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}function vwe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var Io=vwe(),zp,CK,YY=(CK=class{constructor(){jt(this,zp)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),DR(this.gcTime)&&bt(this,zp,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ah?1/0:5*60*1e3))}clearGcTimeout(){ve(this,zp)&&(clearTimeout(ve(this,zp)),bt(this,zp,void 0))}},zp=new WeakMap,CK),oy,iy,Os,fi,Hx,Vp,Ol,su,PK,bwe=(PK=class extends YY{constructor(t){super();jt(this,Ol);jt(this,oy);jt(this,iy);jt(this,Os);jt(this,fi);jt(this,Hx);jt(this,Vp);bt(this,Vp,!1),bt(this,Hx,t.defaultOptions),this.setOptions(t.options),this.observers=[],bt(this,Os,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,bt(this,oy,wwe(this.options)),this.state=t.state??ve(this,oy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ve(this,fi))==null?void 0:t.promise}setOptions(t){this.options={...ve(this,Hx),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ve(this,Os).remove(this)}setData(t,n){const r=LR(this.state.data,t,this.options);return hn(this,Ol,su).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){hn(this,Ol,su).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=ve(this,fi))==null?void 0:r.promise;return(o=ve(this,fi))==null||o.cancel(t),n?n.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ve(this,oy))}isActive(){return this.observers.some(t=>$l(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HY(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ve(this,fi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ve(this,fi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ve(this,Os).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ve(this,fi)&&(ve(this,Vp)?ve(this,fi).cancel({revert:!0}):ve(this,fi).cancelRetry()),this.scheduleGc()),ve(this,Os).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||hn(this,Ol,su).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ve(this,fi))return ve(this,fi).continueRetry(),ve(this,fi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(bt(this,Vp,!0),r.signal)})},i=()=>{const d=WY(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return o(f),bt(this,Vp,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),bt(this,iy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&hn(this,Ol,su).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var f,p,m,g;SA(d)&&d.silent||hn(this,Ol,su).call(this,{type:"error",error:d}),SA(d)||((p=(f=ve(this,Os).config).onError)==null||p.call(f,d,this),(g=(m=ve(this,Os).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return bt(this,fi,KY({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){s(y);return}(p=(f=ve(this,Os).config).onSuccess)==null||p.call(f,d,this),(g=(m=ve(this,Os).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{hn(this,Ol,su).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{hn(this,Ol,su).call(this,{type:"pause"})},onContinue:()=>{hn(this,Ol,su).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ve(this,fi).start()}},oy=new WeakMap,iy=new WeakMap,Os=new WeakMap,fi=new WeakMap,Hx=new WeakMap,Vp=new WeakMap,Ol=new WeakSet,su=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...XY(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return SA(o)&&o.revert&&ve(this,iy)?{...ve(this,iy),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Io.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ve(this,Os).notify({query:this,type:"updated",action:t})})},PK);function XY(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:GY(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wwe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dc,EK,xwe=(EK=class extends yv{constructor(t={}){super();jt(this,dc);this.config=t,bt(this,dc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??yN(o,n);let a=this.get(i);return a||(a=new bwe({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){ve(this,dc).has(t.queryHash)||(ve(this,dc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ve(this,dc).get(t.queryHash);n&&(t.destroy(),n===t&&ve(this,dc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Io.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ve(this,dc).get(t)}getAll(){return[...ve(this,dc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zH(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>zH(t,r)):n}notify(t){Io.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Io.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Io.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},dc=new WeakMap,EK),fc,Ai,Hp,pc,xd,TK,Swe=(TK=class extends YY{constructor(t){super();jt(this,pc);jt(this,fc);jt(this,Ai);jt(this,Hp);this.mutationId=t.mutationId,bt(this,Ai,t.mutationCache),bt(this,fc,[]),this.state=t.state||QY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ve(this,fc).includes(t)||(ve(this,fc).push(t),this.clearGcTimeout(),ve(this,Ai).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){bt(this,fc,ve(this,fc).filter(n=>n!==t)),this.scheduleGc(),ve(this,Ai).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ve(this,fc).length||(this.state.status==="pending"?this.scheduleGc():ve(this,Ai).remove(this))}continue(){var t;return((t=ve(this,Hp))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,d,f,p,m,g,y,b,x,S,P,E,T,O;bt(this,Hp,KY({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,M)=>{hn(this,pc,xd).call(this,{type:"failed",failureCount:k,error:M})},onPause:()=>{hn(this,pc,xd).call(this,{type:"pause"})},onContinue:()=>{hn(this,pc,xd).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ve(this,Ai).canRun(this)}));const n=this.state.status==="pending",r=!ve(this,Hp).canStart();try{if(!n){hn(this,pc,xd).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=ve(this,Ai).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&hn(this,pc,xd).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const k=await ve(this,Hp).start();return await((c=(l=ve(this,Ai).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context)),await((p=(f=ve(this,Ai).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),hn(this,pc,xd).call(this,{type:"success",data:k}),k}catch(k){try{throw await((b=(y=ve(this,Ai).config).onError)==null?void 0:b.call(y,k,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,k,t,this.state.context)),await((E=(P=ve(this,Ai).config).onSettled)==null?void 0:E.call(P,void 0,k,this.state.variables,this.state.context,this)),await((O=(T=this.options).onSettled)==null?void 0:O.call(T,void 0,k,t,this.state.context)),k}finally{hn(this,pc,xd).call(this,{type:"error",error:k})}}finally{ve(this,Ai).runNext(this)}}},fc=new WeakMap,Ai=new WeakMap,Hp=new WeakMap,pc=new WeakSet,xd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Io.batch(()=>{ve(this,fc).forEach(r=>{r.onMutationUpdate(t)}),ve(this,Ai).notify({mutation:this,type:"updated",action:t})})},TK);function QY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Ux,OK,Cwe=(OK=class extends yv{constructor(t={}){super();jt(this,Ra);jt(this,Ux);this.config=t,bt(this,Ra,new Map),bt(this,Ux,Date.now())}build(t,n,r){const o=new Swe({mutationCache:this,mutationId:++G1(this,Ux)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=J1(t),r=ve(this,Ra).get(n)??[];r.push(t),ve(this,Ra).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=J1(t);if(ve(this,Ra).has(n)){const o=(r=ve(this,Ra).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?ve(this,Ra).delete(n):ve(this,Ra).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=ve(this,Ra).get(J1(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=ve(this,Ra).get(J1(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Io.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...ve(this,Ra).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>VH(n,r))}findAll(t={}){return this.getAll().filter(n=>VH(t,n))}notify(t){Io.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Io.batch(()=>Promise.all(t.map(n=>n.continue().catch(Is))))}},Ra=new WeakMap,Ux=new WeakMap,OK);function J1(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function WH(e){return{onFetch:(t,n)=>{var u,d,f,p,m;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=WY(t.options,t.fetchOptions),x=async(S,P,E)=>{if(g)return Promise.reject();if(P==null&&S.pages.length)return Promise.resolve(S);const T={queryKey:t.queryKey,pageParam:P,direction:E?"backward":"forward",meta:t.options.meta};y(T);const O=await b(T),{maxPages:k}=t.options,M=E?hwe:pwe;return{pages:M(S.pages,O,k),pageParams:M(S.pageParams,P,k)}};if(o&&i.length){const S=o==="backward",P=S?Pwe:GH,E={pages:i,pageParams:a},T=P(r,E);s=await x(E,T,S)}else{const S=e??i.length;do{const P=l===0?a[0]??r.initialPageParam:GH(r,s);if(l>0&&P==null)break;s=await x(s,P),l++}while(l<S)}return s};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function GH(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pwe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Yr,jd,Bd,ay,sy,zd,ly,cy,IK,Ewe=(IK=class{constructor(e={}){jt(this,Yr);jt(this,jd);jt(this,Bd);jt(this,ay);jt(this,sy);jt(this,zd);jt(this,ly);jt(this,cy);bt(this,Yr,e.queryCache||new xwe),bt(this,jd,e.mutationCache||new Cwe),bt(this,Bd,e.defaultOptions||{}),bt(this,ay,new Map),bt(this,sy,new Map),bt(this,zd,0)}mount(){G1(this,zd)._++,ve(this,zd)===1&&(bt(this,ly,bN.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,Yr).onFocus())})),bt(this,cy,KP.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,Yr).onOnline())})))}unmount(){var e,t;G1(this,zd)._--,ve(this,zd)===0&&((e=ve(this,ly))==null||e.call(this),bt(this,ly,void 0),(t=ve(this,cy))==null||t.call(this),bt(this,cy,void 0))}isFetching(e){return ve(this,Yr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ve(this,jd).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ve(this,Yr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=ve(this,Yr).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Dg(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return ve(this,Yr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=ve(this,Yr).get(r.queryHash),i=o==null?void 0:o.state.data,a=dwe(t,i);if(a!==void 0)return ve(this,Yr).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Io.batch(()=>ve(this,Yr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ve(this,Yr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ve(this,Yr);Io.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ve(this,Yr),r={type:"active",...e};return Io.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Io.batch(()=>ve(this,Yr).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Io.batch(()=>{if(ve(this,Yr).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Io.batch(()=>ve(this,Yr).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Is)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ve(this,Yr).build(this,t);return n.isStaleByTime(Dg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=WH(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}ensureInfiniteQueryData(e){return e.behavior=WH(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return KP.isOnline()?ve(this,jd).resumePausedMutations():Promise.resolve()}getQueryCache(){return ve(this,Yr)}getMutationCache(){return ve(this,jd)}getDefaultOptions(){return ve(this,Bd)}setDefaultOptions(e){bt(this,Bd,e)}setQueryDefaults(e,t){ve(this,ay).set(sh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ve(this,ay).values()];let n={};return t.forEach(r=>{Sw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ve(this,sy).set(sh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ve(this,sy).values()];let n={};return t.forEach(r=>{Sw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ve(this,Bd).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yN(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===vN&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ve(this,Bd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ve(this,Yr).clear(),ve(this,jd).clear()}},Yr=new WeakMap,jd=new WeakMap,Bd=new WeakMap,ay=new WeakMap,sy=new WeakMap,zd=new WeakMap,ly=new WeakMap,cy=new WeakMap,IK),ta,Dn,Wx,$i,Up,uy,Vd,hc,Gx,dy,fy,Wp,Gp,Hd,py,tr,w0,FR,jR,BR,zR,VR,HR,UR,JY,kK,Twe=(kK=class extends yv{constructor(t,n){super();jt(this,tr);jt(this,ta);jt(this,Dn);jt(this,Wx);jt(this,$i);jt(this,Up);jt(this,uy);jt(this,Vd);jt(this,hc);jt(this,Gx);jt(this,dy);jt(this,fy);jt(this,Wp);jt(this,Gp);jt(this,Hd);jt(this,py,new Set);this.options=n,bt(this,ta,t),bt(this,hc,null),bt(this,Vd,NR()),this.options.experimental_prefetchInRender||ve(this,Vd).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ve(this,Dn).addObserver(this),qH(ve(this,Dn),this.options)?hn(this,tr,w0).call(this):this.updateResult(),hn(this,tr,zR).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return WR(ve(this,Dn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return WR(ve(this,Dn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,hn(this,tr,VR).call(this),hn(this,tr,HR).call(this),ve(this,Dn).removeObserver(this)}setOptions(t,n){const r=this.options,o=ve(this,Dn);if(this.options=ve(this,ta).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $l(this.options.enabled,ve(this,Dn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");hn(this,tr,UR).call(this),ve(this,Dn).setOptions(this.options),r._defaulted&&!qP(this.options,r)&&ve(this,ta).getQueryCache().notify({type:"observerOptionsUpdated",query:ve(this,Dn),observer:this});const i=this.hasListeners();i&&KH(ve(this,Dn),o,this.options,r)&&hn(this,tr,w0).call(this),this.updateResult(n),i&&(ve(this,Dn)!==o||$l(this.options.enabled,ve(this,Dn))!==$l(r.enabled,ve(this,Dn))||Dg(this.options.staleTime,ve(this,Dn))!==Dg(r.staleTime,ve(this,Dn)))&&hn(this,tr,FR).call(this);const a=hn(this,tr,jR).call(this);i&&(ve(this,Dn)!==o||$l(this.options.enabled,ve(this,Dn))!==$l(r.enabled,ve(this,Dn))||a!==ve(this,Hd))&&hn(this,tr,BR).call(this,a)}getOptimisticResult(t){const n=ve(this,ta).getQueryCache().build(ve(this,ta),t),r=this.createResult(n,t);return Iwe(this,r)&&(bt(this,$i,r),bt(this,uy,this.options),bt(this,Up,ve(this,Dn).state)),r}getCurrentResult(){return ve(this,$i)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){ve(this,py).add(t)}getCurrentQuery(){return ve(this,Dn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ve(this,ta).defaultQueryOptions(t),r=ve(this,ta).getQueryCache().build(ve(this,ta),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return hn(this,tr,w0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ve(this,$i)))}createResult(t,n){var k;const r=ve(this,Dn),o=this.options,i=ve(this,$i),a=ve(this,Up),s=ve(this,uy),c=t!==r?t.state:ve(this,Wx),{state:u}=t;let d={...u},f=!1,p;if(n._optimisticResults){const M=this.hasListeners(),I=!M&&qH(t,n),R=M&&KH(t,r,n,o);(I||R)&&(d={...d,...XY(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(a==null?void 0:a.data)&&n.select===ve(this,Gx))p=ve(this,dy);else try{bt(this,Gx,n.select),p=n.select(d.data),p=LR(i==null?void 0:i.data,p,n),bt(this,dy,p),bt(this,hc,null)}catch(M){bt(this,hc,M)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&y==="pending"){let M;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=i.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((k=ve(this,fy))==null?void 0:k.state.data,ve(this,fy)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),bt(this,hc,null)}catch(I){bt(this,hc,I)}M!==void 0&&(y="success",p=LR(i==null?void 0:i.data,M,n),f=!0)}ve(this,hc)&&(m=ve(this,hc),p=ve(this,dy),g=Date.now(),y="error");const b=d.fetchStatus==="fetching",x=y==="pending",S=y==="error",P=x&&b,E=p!==void 0,O={status:y,fetchStatus:d.fetchStatus,isPending:x,isSuccess:y==="success",isError:S,isInitialLoading:P,isLoading:P,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:S&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&E,isStale:wN(t,n),refetch:this.refetch,promise:ve(this,Vd)};if(this.options.experimental_prefetchInRender){const M=_=>{O.status==="error"?_.reject(O.error):O.data!==void 0&&_.resolve(O.data)},I=()=>{const _=bt(this,Vd,O.promise=NR());M(_)},R=ve(this,Vd);switch(R.status){case"pending":t.queryHash===r.queryHash&&M(R);break;case"fulfilled":(O.status==="error"||O.data!==R.value)&&I();break;case"rejected":(O.status!=="error"||O.error!==R.reason)&&I();break}}return O}updateResult(t){const n=ve(this,$i),r=this.createResult(ve(this,Dn),this.options);if(bt(this,Up,ve(this,Dn).state),bt(this,uy,this.options),ve(this,Up).data!==void 0&&bt(this,fy,ve(this,Dn)),qP(r,n))return;bt(this,$i,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ve(this,py).size)return!0;const l=new Set(s??ve(this,py));return this.options.throwOnError&&l.add("error"),Object.keys(ve(this,$i)).some(c=>{const u=c;return ve(this,$i)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),hn(this,tr,JY).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&hn(this,tr,zR).call(this)}},ta=new WeakMap,Dn=new WeakMap,Wx=new WeakMap,$i=new WeakMap,Up=new WeakMap,uy=new WeakMap,Vd=new WeakMap,hc=new WeakMap,Gx=new WeakMap,dy=new WeakMap,fy=new WeakMap,Wp=new WeakMap,Gp=new WeakMap,Hd=new WeakMap,py=new WeakMap,tr=new WeakSet,w0=function(t){hn(this,tr,UR).call(this);let n=ve(this,Dn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},FR=function(){hn(this,tr,VR).call(this);const t=Dg(this.options.staleTime,ve(this,Dn));if(ah||ve(this,$i).isStale||!DR(t))return;const r=HY(ve(this,$i).dataUpdatedAt,t)+1;bt(this,Wp,setTimeout(()=>{ve(this,$i).isStale||this.updateResult()},r))},jR=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ve(this,Dn)):this.options.refetchInterval)??!1},BR=function(t){hn(this,tr,HR).call(this),bt(this,Hd,t),!(ah||$l(this.options.enabled,ve(this,Dn))===!1||!DR(ve(this,Hd))||ve(this,Hd)===0)&&bt(this,Gp,setInterval(()=>{(this.options.refetchIntervalInBackground||bN.isFocused())&&hn(this,tr,w0).call(this)},ve(this,Hd)))},zR=function(){hn(this,tr,FR).call(this),hn(this,tr,BR).call(this,hn(this,tr,jR).call(this))},VR=function(){ve(this,Wp)&&(clearTimeout(ve(this,Wp)),bt(this,Wp,void 0))},HR=function(){ve(this,Gp)&&(clearInterval(ve(this,Gp)),bt(this,Gp,void 0))},UR=function(){const t=ve(this,ta).getQueryCache().build(ve(this,ta),this.options);if(t===ve(this,Dn))return;const n=ve(this,Dn);bt(this,Dn,t),bt(this,Wx,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},JY=function(t){Io.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ve(this,$i))}),ve(this,ta).getQueryCache().notify({query:ve(this,Dn),type:"observerResultsUpdated"})})},kK);function Owe(e,t){return $l(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qH(e,t){return Owe(e,t)||e.state.data!==void 0&&WR(e,t,t.refetchOnMount)}function WR(e,t,n){if($l(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&wN(e,t)}return!1}function KH(e,t,n,r){return(e!==t||$l(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&wN(e,n)}function wN(e,t){return $l(t.enabled,e)!==!1&&e.isStaleByTime(Dg(t.staleTime,e))}function Iwe(e,t){return!qP(e.getCurrentResult(),t)}var Ud,Wd,na,mu,Au,dP,GR,MK,kwe=(MK=class extends yv{constructor(n,r){super();jt(this,Au);jt(this,Ud);jt(this,Wd);jt(this,na);jt(this,mu);bt(this,Ud,n),this.setOptions(r),this.bindMethods(),hn(this,Au,dP).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=ve(this,Ud).defaultMutationOptions(n),qP(this.options,r)||ve(this,Ud).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ve(this,na),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&sh(r.mutationKey)!==sh(this.options.mutationKey)?this.reset():((o=ve(this,na))==null?void 0:o.state.status)==="pending"&&ve(this,na).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ve(this,na))==null||n.removeObserver(this)}onMutationUpdate(n){hn(this,Au,dP).call(this),hn(this,Au,GR).call(this,n)}getCurrentResult(){return ve(this,Wd)}reset(){var n;(n=ve(this,na))==null||n.removeObserver(this),bt(this,na,void 0),hn(this,Au,dP).call(this),hn(this,Au,GR).call(this)}mutate(n,r){var o;return bt(this,mu,r),(o=ve(this,na))==null||o.removeObserver(this),bt(this,na,ve(this,Ud).getMutationCache().build(ve(this,Ud),this.options)),ve(this,na).addObserver(this),ve(this,na).execute(n)}},Ud=new WeakMap,Wd=new WeakMap,na=new WeakMap,mu=new WeakMap,Au=new WeakSet,dP=function(){var r;const n=((r=ve(this,na))==null?void 0:r.state)??QY();bt(this,Wd,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},GR=function(n){Io.batch(()=>{var r,o,i,a,s,l,c,u;if(ve(this,mu)&&this.hasListeners()){const d=ve(this,Wd).variables,f=ve(this,Wd).context;(n==null?void 0:n.type)==="success"?((o=(r=ve(this,mu)).onSuccess)==null||o.call(r,n.data,d,f),(a=(i=ve(this,mu)).onSettled)==null||a.call(i,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((l=(s=ve(this,mu)).onError)==null||l.call(s,n.error,d,f),(u=(c=ve(this,mu)).onSettled)==null||u.call(c,void 0,n.error,d,f))}this.listeners.forEach(d=>{d(ve(this,Wd))})})},MK),ZY=v.createContext(void 0),gr=e=>{const t=v.useContext(ZY);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mh=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(ZY.Provider,{value:e,children:t})),eX=v.createContext(!1),Mwe=()=>v.useContext(eX);eX.Provider;function Awe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $we=v.createContext(Awe()),Rwe=()=>v.useContext($we);function tX(e,t){return typeof e=="function"?e(...t):!!e}function nX(){}var Dwe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},_we=e=>{v.useEffect(()=>{e.clearReset()},[e])},Lwe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&tX(n,[e.error,r]),Nwe=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Fwe=(e,t)=>e.isLoading&&e.isFetching&&!t,jwe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,YH=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Bwe(e,t,n){var u,d,f,p,m;const r=gr(),o=Mwe(),i=Rwe(),a=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,a),a._optimisticResults=o?"isRestoring":"optimistic",Nwe(a),Dwe(a,i),_we(i);const s=!r.getQueryCache().get(a.queryHash),[l]=v.useState(()=>new t(r,a)),c=l.getOptimisticResult(a);if(v.useSyncExternalStore(v.useCallback(g=>{const y=o?()=>{}:l.subscribe(Io.batchCalls(g));return l.updateResult(),y},[l,o]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),v.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),jwe(a,c))throw YH(a,l,i);if(Lwe({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw c.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,a,c),a.experimental_prefetchInRender&&!ah&&Fwe(c,o)){const g=s?YH(a,l,i):(m=r.getQueryCache().get(a.queryHash))==null?void 0:m.promise;g==null||g.catch(nX).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function oo(e,t){return Bwe(e,Twe)}function $r(e,t){const n=gr(),[r]=v.useState(()=>new kwe(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const o=v.useSyncExternalStore(v.useCallback(a=>r.subscribe(Io.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=v.useCallback((a,s)=>{r.mutate(a,s).catch(nX)},[r]);if(o.error&&tX(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const zwe="modulepreload",Vwe=function(e){return"/"+e},XH={},Hwe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=Vwe(s),s in XH)return;XH[s]=!0;const l=s.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":zwe,l||(u.as="script",u.crossOrigin=""),u.href=s,a&&u.setAttribute("nonce",a),document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var Uwe=function(){return null};function Wwe(e){return $.jsx(mbe,{...e,defaultTheme:FO,themeId:Hs})}function Gwe(e){return function(n){return $.jsx(Wwe,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function qwe(){return $O}const tt=qbe;function rt(e){return Gbe(e)}function Kwe(e){return _e("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ywe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(n)}`]};return Te(o,Kwe,r)},Xwe=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Se(n.color)}`],t[`fontSize${Se(n.fontSize)}`]]}})(tt(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var y,b;return{props:{color:g},style:{color:(b=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),YP=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,m=v.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},y={};u||(y.viewBox=f);const b=Ywe(g);return $.jsxs(Xwe,{as:s,className:pe(b.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...y,...p,...m&&o.props,ownerState:g,children:[m?o.props.children:o,d?$.jsx("title",{children:d}):null]})});YP.muiName="SvgIcon";function lt(e,t){function n(r,o){return $.jsx(YP,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=YP.muiName,v.memo(v.forwardRef(n))}function Ue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function qR(e,t){return qR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qR(e,t)}function oS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qR(e,t)}function Qwe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Jwe(e,t){e.classList?e.classList.add(t):Qwe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function QH(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Zwe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=QH(e.className,t):e.setAttribute("class",QH(e.className&&e.className.baseVal||"",t))}var rX={exports:{}},ts={},oX={exports:{}},iX={};/**
+export default theme;`}function h2(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error(Wu(20));const u=ZN(i),d=Nv(e);let f=Xo(d,{mixins:Gwe(d.breakpoints,r),palette:u,shadows:Qwe.slice(),typography:MX(u,s),transitions:exe(a),zIndex:{...txe}});return f=Xo(f,c),f=t.reduce((p,m)=>Xo(p,m),f),f.unstable_sxConfig={...SS,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return Mf({sx:m,theme:this})},f.toRuntimeSource=$X,f}function m2(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rxe=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=m2(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function RX(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function DX(e){return e==="dark"?rxe:[]}function oxe(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=ZN(t);return{palette:i,opacity:{...RX(i.mode),...n},overlays:r||DX(i.mode),...o}}function ixe(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const axe=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],sxe=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return axe(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function lxe(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Fe(e,t,n){!e[t]&&n&&(e[t]=n)}function H0(e){return typeof e!="string"||!e.startsWith("hsl")?e:wX(e)}function mu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=V0(H0(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
+To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function cxe(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gc=e=>{try{return e()}catch{}},uxe=(e="mui")=>iwe(e);function r$(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=oxe({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=h2({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...RX(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||DX(o)},a}function dxe(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=ixe,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=uxe(i),{[d]:p,light:m,dark:g,...y}=n,b={...y};let x=p;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(Wu(21,d));const S=r$(b,x,c,d);m&&!b.light&&r$(b,m,void 0,"light"),g&&!b.dark&&r$(b,g,void 0,"dark");let P={defaultColorScheme:d,...S,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:b,font:{...Wwe(S.typography),...S.font},spacing:cxe(c.spacing)};Object.keys(P.colorSchemes).forEach(M=>{const I=P.colorSchemes[M].palette,R=_=>{const L=_.split("-"),j=L[1],N=L[2];return f(_,I[j][N])};if(I.mode==="light"&&(Fe(I.common,"background","#fff"),Fe(I.common,"onBackground","#000")),I.mode==="dark"&&(Fe(I.common,"background","#000"),Fe(I.common,"onBackground","#fff")),lxe(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){Fe(I.Alert,"errorColor",fr(I.error.light,.6)),Fe(I.Alert,"infoColor",fr(I.info.light,.6)),Fe(I.Alert,"successColor",fr(I.success.light,.6)),Fe(I.Alert,"warningColor",fr(I.warning.light,.6)),Fe(I.Alert,"errorFilledBg",R("palette-error-main")),Fe(I.Alert,"infoFilledBg",R("palette-info-main")),Fe(I.Alert,"successFilledBg",R("palette-success-main")),Fe(I.Alert,"warningFilledBg",R("palette-warning-main")),Fe(I.Alert,"errorFilledColor",gc(()=>I.getContrastText(I.error.main))),Fe(I.Alert,"infoFilledColor",gc(()=>I.getContrastText(I.info.main))),Fe(I.Alert,"successFilledColor",gc(()=>I.getContrastText(I.success.main))),Fe(I.Alert,"warningFilledColor",gc(()=>I.getContrastText(I.warning.main))),Fe(I.Alert,"errorStandardBg",pr(I.error.light,.9)),Fe(I.Alert,"infoStandardBg",pr(I.info.light,.9)),Fe(I.Alert,"successStandardBg",pr(I.success.light,.9)),Fe(I.Alert,"warningStandardBg",pr(I.warning.light,.9)),Fe(I.Alert,"errorIconColor",R("palette-error-main")),Fe(I.Alert,"infoIconColor",R("palette-info-main")),Fe(I.Alert,"successIconColor",R("palette-success-main")),Fe(I.Alert,"warningIconColor",R("palette-warning-main")),Fe(I.AppBar,"defaultBg",R("palette-grey-100")),Fe(I.Avatar,"defaultBg",R("palette-grey-400")),Fe(I.Button,"inheritContainedBg",R("palette-grey-300")),Fe(I.Button,"inheritContainedHoverBg",R("palette-grey-A100")),Fe(I.Chip,"defaultBorder",R("palette-grey-400")),Fe(I.Chip,"defaultAvatarColor",R("palette-grey-700")),Fe(I.Chip,"defaultIconColor",R("palette-grey-700")),Fe(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Fe(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Fe(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Fe(I.LinearProgress,"primaryBg",pr(I.primary.main,.62)),Fe(I.LinearProgress,"secondaryBg",pr(I.secondary.main,.62)),Fe(I.LinearProgress,"errorBg",pr(I.error.main,.62)),Fe(I.LinearProgress,"infoBg",pr(I.info.main,.62)),Fe(I.LinearProgress,"successBg",pr(I.success.main,.62)),Fe(I.LinearProgress,"warningBg",pr(I.warning.main,.62)),Fe(I.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),Fe(I.Slider,"primaryTrack",pr(I.primary.main,.62)),Fe(I.Slider,"secondaryTrack",pr(I.secondary.main,.62)),Fe(I.Slider,"errorTrack",pr(I.error.main,.62)),Fe(I.Slider,"infoTrack",pr(I.info.main,.62)),Fe(I.Slider,"successTrack",pr(I.success.main,.62)),Fe(I.Slider,"warningTrack",pr(I.warning.main,.62));const _=wC(I.background.default,.8);Fe(I.SnackbarContent,"bg",_),Fe(I.SnackbarContent,"color",gc(()=>I.getContrastText(_))),Fe(I.SpeedDialAction,"fabHoverBg",wC(I.background.paper,.15)),Fe(I.StepConnector,"border",R("palette-grey-400")),Fe(I.StepContent,"border",R("palette-grey-400")),Fe(I.Switch,"defaultColor",R("palette-common-white")),Fe(I.Switch,"defaultDisabledColor",R("palette-grey-100")),Fe(I.Switch,"primaryDisabledColor",pr(I.primary.main,.62)),Fe(I.Switch,"secondaryDisabledColor",pr(I.secondary.main,.62)),Fe(I.Switch,"errorDisabledColor",pr(I.error.main,.62)),Fe(I.Switch,"infoDisabledColor",pr(I.info.main,.62)),Fe(I.Switch,"successDisabledColor",pr(I.success.main,.62)),Fe(I.Switch,"warningDisabledColor",pr(I.warning.main,.62)),Fe(I.TableCell,"border",pr(bC(I.divider,1),.88)),Fe(I.Tooltip,"bg",bC(I.grey[700],.92))}if(I.mode==="dark"){Fe(I.Alert,"errorColor",pr(I.error.light,.6)),Fe(I.Alert,"infoColor",pr(I.info.light,.6)),Fe(I.Alert,"successColor",pr(I.success.light,.6)),Fe(I.Alert,"warningColor",pr(I.warning.light,.6)),Fe(I.Alert,"errorFilledBg",R("palette-error-dark")),Fe(I.Alert,"infoFilledBg",R("palette-info-dark")),Fe(I.Alert,"successFilledBg",R("palette-success-dark")),Fe(I.Alert,"warningFilledBg",R("palette-warning-dark")),Fe(I.Alert,"errorFilledColor",gc(()=>I.getContrastText(I.error.dark))),Fe(I.Alert,"infoFilledColor",gc(()=>I.getContrastText(I.info.dark))),Fe(I.Alert,"successFilledColor",gc(()=>I.getContrastText(I.success.dark))),Fe(I.Alert,"warningFilledColor",gc(()=>I.getContrastText(I.warning.dark))),Fe(I.Alert,"errorStandardBg",fr(I.error.light,.9)),Fe(I.Alert,"infoStandardBg",fr(I.info.light,.9)),Fe(I.Alert,"successStandardBg",fr(I.success.light,.9)),Fe(I.Alert,"warningStandardBg",fr(I.warning.light,.9)),Fe(I.Alert,"errorIconColor",R("palette-error-main")),Fe(I.Alert,"infoIconColor",R("palette-info-main")),Fe(I.Alert,"successIconColor",R("palette-success-main")),Fe(I.Alert,"warningIconColor",R("palette-warning-main")),Fe(I.AppBar,"defaultBg",R("palette-grey-900")),Fe(I.AppBar,"darkBg",R("palette-background-paper")),Fe(I.AppBar,"darkColor",R("palette-text-primary")),Fe(I.Avatar,"defaultBg",R("palette-grey-600")),Fe(I.Button,"inheritContainedBg",R("palette-grey-800")),Fe(I.Button,"inheritContainedHoverBg",R("palette-grey-700")),Fe(I.Chip,"defaultBorder",R("palette-grey-700")),Fe(I.Chip,"defaultAvatarColor",R("palette-grey-300")),Fe(I.Chip,"defaultIconColor",R("palette-grey-300")),Fe(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Fe(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Fe(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Fe(I.LinearProgress,"primaryBg",fr(I.primary.main,.5)),Fe(I.LinearProgress,"secondaryBg",fr(I.secondary.main,.5)),Fe(I.LinearProgress,"errorBg",fr(I.error.main,.5)),Fe(I.LinearProgress,"infoBg",fr(I.info.main,.5)),Fe(I.LinearProgress,"successBg",fr(I.success.main,.5)),Fe(I.LinearProgress,"warningBg",fr(I.warning.main,.5)),Fe(I.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),Fe(I.Slider,"primaryTrack",fr(I.primary.main,.5)),Fe(I.Slider,"secondaryTrack",fr(I.secondary.main,.5)),Fe(I.Slider,"errorTrack",fr(I.error.main,.5)),Fe(I.Slider,"infoTrack",fr(I.info.main,.5)),Fe(I.Slider,"successTrack",fr(I.success.main,.5)),Fe(I.Slider,"warningTrack",fr(I.warning.main,.5));const _=wC(I.background.default,.98);Fe(I.SnackbarContent,"bg",_),Fe(I.SnackbarContent,"color",gc(()=>I.getContrastText(_))),Fe(I.SpeedDialAction,"fabHoverBg",wC(I.background.paper,.15)),Fe(I.StepConnector,"border",R("palette-grey-600")),Fe(I.StepContent,"border",R("palette-grey-600")),Fe(I.Switch,"defaultColor",R("palette-grey-300")),Fe(I.Switch,"defaultDisabledColor",R("palette-grey-600")),Fe(I.Switch,"primaryDisabledColor",fr(I.primary.main,.55)),Fe(I.Switch,"secondaryDisabledColor",fr(I.secondary.main,.55)),Fe(I.Switch,"errorDisabledColor",fr(I.error.main,.55)),Fe(I.Switch,"infoDisabledColor",fr(I.info.main,.55)),Fe(I.Switch,"successDisabledColor",fr(I.success.main,.55)),Fe(I.Switch,"warningDisabledColor",fr(I.warning.main,.55)),Fe(I.TableCell,"border",fr(bC(I.divider,1),.68)),Fe(I.Tooltip,"bg",bC(I.grey[700],.92))}mu(I.background,"default"),mu(I.background,"paper"),mu(I.common,"background"),mu(I.common,"onBackground"),mu(I,"divider"),Object.keys(I).forEach(_=>{const L=I[_];_!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&Fe(I[_],"mainChannel",V0(H0(L.main))),L.light&&Fe(I[_],"lightChannel",V0(H0(L.light))),L.dark&&Fe(I[_],"darkChannel",V0(H0(L.dark))),L.contrastText&&Fe(I[_],"contrastTextChannel",V0(H0(L.contrastText))),_==="text"&&(mu(I[_],"primary"),mu(I[_],"secondary")),_==="action"&&(L.active&&mu(I[_],"active"),L.selected&&mu(I[_],"selected")))})}),P=t.reduce((M,I)=>Xo(M,I),P);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:sxe(P)},{vars:T,generateThemeVars:O,generateStyleSheets:k}=lwe(P,E);return P.vars=T,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([M,I])=>{P[M]=I}),P.generateThemeVars=O,P.generateStyleSheets=k,P.generateSpacing=function(){return fX(c.spacing,tI(this))},P.getColorSchemeSelector=cwe(s),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=a,P.unstable_sxConfig={...SS,...c==null?void 0:c.unstable_sxConfig},P.unstable_sx=function(I){return Mf({sx:I,theme:this})},P.toRuntimeSource=$X,P}function S4(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ZN({...n===!0?{}:n.palette,mode:t})})}function ES(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return h2(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=h2({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},S4(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},S4(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),dxe({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function fxe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function pxe(e){return parseFloat(e)}const dI=ES();function Lo(){const e=CS(dI);return e[Js]||e}function Jt({props:e,name:t}){return lI({props:e,name:t,defaultTheme:dI,themeId:Js})}function _X(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pi=e=>_X(e)&&e!=="classes",ie=yX({themeId:Js,defaultTheme:dI,rootShouldForwardProp:pi});function C4({theme:e,...t}){const n=Js in e?e[Js]:void 0;return $.jsx(TX,{...t,themeId:n?Js:void 0,theme:n||e})}const xC={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:hxe,useColorScheme:wDt,getInitColorSchemeScript:xDt}=owe({themeId:Js,theme:()=>ES({cssVariables:!0}),colorSchemeStorageKey:xC.colorSchemeStorageKey,modeStorageKey:xC.modeStorageKey,defaultColorScheme:{light:xC.defaultLightColorScheme,dark:xC.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:MX(e.palette,e.typography)};return t.unstable_sx=function(r){return Mf({sx:r,theme:this})},t}}),mxe=hxe;function Vf({theme:e,...t}){return typeof e=="function"?$.jsx(C4,{theme:e,...t}):"colorSchemes"in(Js in e?e[Js]:e)?$.jsx(mxe,{theme:e,...t}):$.jsx(C4,{theme:e,...t})}var jv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sh=typeof window>"u"||"Deno"in globalThis;function Ls(){}function gxe(e,t){return typeof e=="function"?e(t):e}function g2(e){return typeof e=="number"&&e>=0&&e!==1/0}function LX(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jg(e,t){return typeof e=="function"?e(t):e}function Hl(e,t){return typeof e=="function"?e(t):e}function P4(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==eF(a,t.options))return!1}else if(!Gw(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function E4(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ch(t.options.mutationKey)!==Ch(i))return!1}else if(!Gw(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function eF(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ch)(e)}function Ch(e){return JSON.stringify(e,(t,n)=>y2(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Gw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gw(e[n],t[n])):!1}function NX(e,t){if(e===t)return e;const n=T4(e)&&T4(t);if(n||y2(e)&&y2(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:i[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=NX(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:s}return t}function gE(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function T4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y2(e){if(!O4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!O4(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function O4(e){return Object.prototype.toString.call(e)==="[object Object]"}function yxe(e){return new Promise(t=>{setTimeout(t,e)})}function v2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NX(e,t):t}function vxe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bxe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tF=Symbol();function FX(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tF?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rh,Qd,wy,vY,wxe=(vY=class extends jv{constructor(){super();Bt(this,rh);Bt(this,Qd);Bt(this,wy);wt(this,wy,t=>{if(!Sh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ve(this,Qd)||this.setEventListener(ve(this,wy))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,Qd))==null||t.call(this),wt(this,Qd,void 0))}setEventListener(t){var n;wt(this,wy,t),(n=ve(this,Qd))==null||n.call(this),wt(this,Qd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ve(this,rh)!==t&&(wt(this,rh,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ve(this,rh)=="boolean"?ve(this,rh):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rh=new WeakMap,Qd=new WeakMap,wy=new WeakMap,vY),nF=new wxe,xy,Jd,Sy,bY,xxe=(bY=class extends jv{constructor(){super();Bt(this,xy,!0);Bt(this,Jd);Bt(this,Sy);wt(this,Sy,t=>{if(!Sh&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ve(this,Jd)||this.setEventListener(ve(this,Sy))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,Jd))==null||t.call(this),wt(this,Jd,void 0))}setEventListener(t){var n;wt(this,Sy,t),(n=ve(this,Jd))==null||n.call(this),wt(this,Jd,t(this.setOnline.bind(this)))}setOnline(t){ve(this,xy)!==t&&(wt(this,xy,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ve(this,xy)}},xy=new WeakMap,Jd=new WeakMap,Sy=new WeakMap,bY),yE=new xxe;function b2(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Sxe(e){return Math.min(1e3*2**e,3e4)}function jX(e){return(e??"online")==="online"?yE.isOnline():!0}var BX=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function o$(e){return e instanceof BX}function zX(e){let t=!1,n=0,r=!1,o;const i=b2(),a=g=>{var y;r||(f(new BX(g)),(y=e.abort)==null||y.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>nF.isFocused()&&(e.networkMode==="always"||yE.isOnline())&&e.canRun(),u=()=>jX(e.networkMode)&&e.canRun(),d=g=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,g),o==null||o(),i.resolve(g))},f=g=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,g),o==null||o(),i.reject(g))},p=()=>new Promise(g=>{var y;o=b=>{(r||c())&&g(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var T;if(r)return;const x=e.retry??(Sh?0:3),S=e.retryDelay??Sxe,P=typeof S=="function"?S(n,b):S,E=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!E){f(b);return}n++,(T=e.onFail)==null||T.call(e,n,b),yxe(P).then(()=>c()?void 0:p()).then(()=>{t?f(b):m()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}function Cxe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var Ro=Cxe(),oh,wY,VX=(wY=class{constructor(){Bt(this,oh)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),g2(this.gcTime)&&wt(this,oh,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sh?1/0:5*60*1e3))}clearGcTimeout(){ve(this,oh)&&(clearTimeout(ve(this,oh)),wt(this,oh,void 0))}},oh=new WeakMap,wY),Cy,Py,_s,wi,pS,ih,Fl,bu,xY,Pxe=(xY=class extends VX{constructor(t){super();Bt(this,Fl);Bt(this,Cy);Bt(this,Py);Bt(this,_s);Bt(this,wi);Bt(this,pS);Bt(this,ih);wt(this,ih,!1),wt(this,pS,t.defaultOptions),this.setOptions(t.options),this.observers=[],wt(this,_s,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,wt(this,Cy,Exe(this.options)),this.state=t.state??ve(this,Cy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ve(this,wi))==null?void 0:t.promise}setOptions(t){this.options={...ve(this,pS),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ve(this,_s).remove(this)}setData(t,n){const r=v2(this.state.data,t,this.options);return pn(this,Fl,bu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pn(this,Fl,bu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=ve(this,wi))==null?void 0:r.promise;return(o=ve(this,wi))==null||o.cancel(t),n?n.then(Ls).catch(Ls):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ve(this,Cy))}isActive(){return this.observers.some(t=>Hl(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tF||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!LX(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ve(this,wi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ve(this,wi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ve(this,_s).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ve(this,wi)&&(ve(this,ih)?ve(this,wi).cancel({revert:!0}):ve(this,wi).cancelRetry()),this.scheduleGc()),ve(this,_s).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pn(this,Fl,bu).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ve(this,wi))return ve(this,wi).continueRetry(),ve(this,wi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(wt(this,ih,!0),r.signal)})},i=()=>{const d=FX(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return o(f),wt(this,ih,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),wt(this,Py,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&pn(this,Fl,bu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var f,p,m,g;o$(d)&&d.silent||pn(this,Fl,bu).call(this,{type:"error",error:d}),o$(d)||((p=(f=ve(this,_s).config).onError)==null||p.call(f,d,this),(g=(m=ve(this,_s).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return wt(this,wi,zX({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){s(y);return}(p=(f=ve(this,_s).config).onSuccess)==null||p.call(f,d,this),(g=(m=ve(this,_s).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{pn(this,Fl,bu).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pn(this,Fl,bu).call(this,{type:"pause"})},onContinue:()=>{pn(this,Fl,bu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ve(this,wi).start()}},Cy=new WeakMap,Py=new WeakMap,_s=new WeakMap,wi=new WeakMap,pS=new WeakMap,ih=new WeakMap,Fl=new WeakSet,bu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...HX(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return o$(o)&&o.revert&&ve(this,Py)?{...ve(this,Py),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ro.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ve(this,_s).notify({query:this,type:"updated",action:t})})},xY);function HX(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jX(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Exe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xc,SY,Txe=(SY=class extends jv{constructor(t={}){super();Bt(this,xc);this.config=t,wt(this,xc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??eF(o,n);let a=this.get(i);return a||(a=new Pxe({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){ve(this,xc).has(t.queryHash)||(ve(this,xc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ve(this,xc).get(t.queryHash);n&&(t.destroy(),n===t&&ve(this,xc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ro.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ve(this,xc).get(t)}getAll(){return[...ve(this,xc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>P4(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>P4(t,r)):n}notify(t){Ro.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ro.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ro.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xc=new WeakMap,SY),Sc,Fi,ah,Cc,_d,CY,Oxe=(CY=class extends VX{constructor(t){super();Bt(this,Cc);Bt(this,Sc);Bt(this,Fi);Bt(this,ah);this.mutationId=t.mutationId,wt(this,Fi,t.mutationCache),wt(this,Sc,[]),this.state=t.state||UX(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ve(this,Sc).includes(t)||(ve(this,Sc).push(t),this.clearGcTimeout(),ve(this,Fi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){wt(this,Sc,ve(this,Sc).filter(n=>n!==t)),this.scheduleGc(),ve(this,Fi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ve(this,Sc).length||(this.state.status==="pending"?this.scheduleGc():ve(this,Fi).remove(this))}continue(){var t;return((t=ve(this,ah))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,d,f,p,m,g,y,b,x,S,P,E,T,O;wt(this,ah,zX({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,M)=>{pn(this,Cc,_d).call(this,{type:"failed",failureCount:k,error:M})},onPause:()=>{pn(this,Cc,_d).call(this,{type:"pause"})},onContinue:()=>{pn(this,Cc,_d).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ve(this,Fi).canRun(this)}));const n=this.state.status==="pending",r=!ve(this,ah).canStart();try{if(!n){pn(this,Cc,_d).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=ve(this,Fi).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&pn(this,Cc,_d).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const k=await ve(this,ah).start();return await((c=(l=ve(this,Fi).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context)),await((p=(f=ve(this,Fi).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),pn(this,Cc,_d).call(this,{type:"success",data:k}),k}catch(k){try{throw await((b=(y=ve(this,Fi).config).onError)==null?void 0:b.call(y,k,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,k,t,this.state.context)),await((E=(P=ve(this,Fi).config).onSettled)==null?void 0:E.call(P,void 0,k,this.state.variables,this.state.context,this)),await((O=(T=this.options).onSettled)==null?void 0:O.call(T,void 0,k,t,this.state.context)),k}finally{pn(this,Cc,_d).call(this,{type:"error",error:k})}}finally{ve(this,Fi).runNext(this)}}},Sc=new WeakMap,Fi=new WeakMap,ah=new WeakMap,Cc=new WeakSet,_d=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ro.batch(()=>{ve(this,Sc).forEach(r=>{r.onMutationUpdate(t)}),ve(this,Fi).notify({mutation:this,type:"updated",action:t})})},CY);function UX(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ja,hS,PY,Ixe=(PY=class extends jv{constructor(t={}){super();Bt(this,ja);Bt(this,hS);this.config=t,wt(this,ja,new Map),wt(this,hS,Date.now())}build(t,n,r){const o=new Oxe({mutationCache:this,mutationId:++gC(this,hS)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=SC(t),r=ve(this,ja).get(n)??[];r.push(t),ve(this,ja).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=SC(t);if(ve(this,ja).has(n)){const o=(r=ve(this,ja).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?ve(this,ja).delete(n):ve(this,ja).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=ve(this,ja).get(SC(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=ve(this,ja).get(SC(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ro.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...ve(this,ja).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>E4(n,r))}findAll(t={}){return this.getAll().filter(n=>E4(t,n))}notify(t){Ro.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ro.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ls))))}},ja=new WeakMap,hS=new WeakMap,PY);function SC(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function I4(e){return{onFetch:(t,n)=>{var u,d,f,p,m;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=FX(t.options,t.fetchOptions),x=async(S,P,E)=>{if(g)return Promise.reject();if(P==null&&S.pages.length)return Promise.resolve(S);const T={queryKey:t.queryKey,pageParam:P,direction:E?"backward":"forward",meta:t.options.meta};y(T);const O=await b(T),{maxPages:k}=t.options,M=E?bxe:vxe;return{pages:M(S.pages,O,k),pageParams:M(S.pageParams,P,k)}};if(o&&i.length){const S=o==="backward",P=S?kxe:k4,E={pages:i,pageParams:a},T=P(r,E);s=await x(E,T,S)}else{const S=e??i.length;do{const P=l===0?a[0]??r.initialPageParam:k4(r,s);if(l>0&&P==null)break;s=await x(s,P),l++}while(l<S)}return s};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function k4(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kxe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Zr,Zd,ef,Ey,Ty,tf,Oy,Iy,EY,Mxe=(EY=class{constructor(e={}){Bt(this,Zr);Bt(this,Zd);Bt(this,ef);Bt(this,Ey);Bt(this,Ty);Bt(this,tf);Bt(this,Oy);Bt(this,Iy);wt(this,Zr,e.queryCache||new Txe),wt(this,Zd,e.mutationCache||new Ixe),wt(this,ef,e.defaultOptions||{}),wt(this,Ey,new Map),wt(this,Ty,new Map),wt(this,tf,0)}mount(){gC(this,tf)._++,ve(this,tf)===1&&(wt(this,Oy,nF.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,Zr).onFocus())})),wt(this,Iy,yE.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,Zr).onOnline())})))}unmount(){var e,t;gC(this,tf)._--,ve(this,tf)===0&&((e=ve(this,Oy))==null||e.call(this),wt(this,Oy,void 0),(t=ve(this,Iy))==null||t.call(this),wt(this,Iy,void 0))}isFetching(e){return ve(this,Zr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ve(this,Zd).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ve(this,Zr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=ve(this,Zr).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Jg(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return ve(this,Zr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=ve(this,Zr).get(r.queryHash),i=o==null?void 0:o.state.data,a=gxe(t,i);if(a!==void 0)return ve(this,Zr).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ro.batch(()=>ve(this,Zr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ve(this,Zr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ve(this,Zr);Ro.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ve(this,Zr),r={type:"active",...e};return Ro.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ro.batch(()=>ve(this,Zr).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ls).catch(Ls)}invalidateQueries(e={},t={}){return Ro.batch(()=>{if(ve(this,Zr).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ro.batch(()=>ve(this,Zr).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ls)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ls)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ve(this,Zr).build(this,t);return n.isStaleByTime(Jg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ls).catch(Ls)}fetchInfiniteQuery(e){return e.behavior=I4(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ls).catch(Ls)}ensureInfiniteQueryData(e){return e.behavior=I4(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yE.isOnline()?ve(this,Zd).resumePausedMutations():Promise.resolve()}getQueryCache(){return ve(this,Zr)}getMutationCache(){return ve(this,Zd)}getDefaultOptions(){return ve(this,ef)}setDefaultOptions(e){wt(this,ef,e)}setQueryDefaults(e,t){ve(this,Ey).set(Ch(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ve(this,Ey).values()];let n={};return t.forEach(r=>{Gw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ve(this,Ty).set(Ch(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ve(this,Ty).values()];let n={};return t.forEach(r=>{Gw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ve(this,ef).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eF(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===tF&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ve(this,ef).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ve(this,Zr).clear(),ve(this,Zd).clear()}},Zr=new WeakMap,Zd=new WeakMap,ef=new WeakMap,Ey=new WeakMap,Ty=new WeakMap,tf=new WeakMap,Oy=new WeakMap,Iy=new WeakMap,EY),la,An,mS,ji,sh,ky,nf,Pc,gS,My,Ay,lh,ch,rf,$y,er,U0,w2,x2,S2,C2,P2,E2,T2,WX,TY,Axe=(TY=class extends jv{constructor(t,n){super();Bt(this,er);Bt(this,la);Bt(this,An);Bt(this,mS);Bt(this,ji);Bt(this,sh);Bt(this,ky);Bt(this,nf);Bt(this,Pc);Bt(this,gS);Bt(this,My);Bt(this,Ay);Bt(this,lh);Bt(this,ch);Bt(this,rf);Bt(this,$y,new Set);this.options=n,wt(this,la,t),wt(this,Pc,null),wt(this,nf,b2()),this.options.experimental_prefetchInRender||ve(this,nf).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ve(this,An).addObserver(this),M4(ve(this,An),this.options)?pn(this,er,U0).call(this):this.updateResult(),pn(this,er,C2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return O2(ve(this,An),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return O2(ve(this,An),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pn(this,er,P2).call(this),pn(this,er,E2).call(this),ve(this,An).removeObserver(this)}setOptions(t,n){const r=this.options,o=ve(this,An);if(this.options=ve(this,la).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hl(this.options.enabled,ve(this,An))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pn(this,er,T2).call(this),ve(this,An).setOptions(this.options),r._defaulted&&!gE(this.options,r)&&ve(this,la).getQueryCache().notify({type:"observerOptionsUpdated",query:ve(this,An),observer:this});const i=this.hasListeners();i&&A4(ve(this,An),o,this.options,r)&&pn(this,er,U0).call(this),this.updateResult(n),i&&(ve(this,An)!==o||Hl(this.options.enabled,ve(this,An))!==Hl(r.enabled,ve(this,An))||Jg(this.options.staleTime,ve(this,An))!==Jg(r.staleTime,ve(this,An)))&&pn(this,er,w2).call(this);const a=pn(this,er,x2).call(this);i&&(ve(this,An)!==o||Hl(this.options.enabled,ve(this,An))!==Hl(r.enabled,ve(this,An))||a!==ve(this,rf))&&pn(this,er,S2).call(this,a)}getOptimisticResult(t){const n=ve(this,la).getQueryCache().build(ve(this,la),t),r=this.createResult(n,t);return Rxe(this,r)&&(wt(this,ji,r),wt(this,ky,this.options),wt(this,sh,ve(this,An).state)),r}getCurrentResult(){return ve(this,ji)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){ve(this,$y).add(t)}getCurrentQuery(){return ve(this,An)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ve(this,la).defaultQueryOptions(t),r=ve(this,la).getQueryCache().build(ve(this,la),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pn(this,er,U0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ve(this,ji)))}createResult(t,n){var k;const r=ve(this,An),o=this.options,i=ve(this,ji),a=ve(this,sh),s=ve(this,ky),c=t!==r?t.state:ve(this,mS),{state:u}=t;let d={...u},f=!1,p;if(n._optimisticResults){const M=this.hasListeners(),I=!M&&M4(t,n),R=M&&A4(t,r,n,o);(I||R)&&(d={...d,...HX(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(a==null?void 0:a.data)&&n.select===ve(this,gS))p=ve(this,My);else try{wt(this,gS,n.select),p=n.select(d.data),p=v2(i==null?void 0:i.data,p,n),wt(this,My,p),wt(this,Pc,null)}catch(M){wt(this,Pc,M)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&y==="pending"){let M;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=i.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((k=ve(this,Ay))==null?void 0:k.state.data,ve(this,Ay)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),wt(this,Pc,null)}catch(I){wt(this,Pc,I)}M!==void 0&&(y="success",p=v2(i==null?void 0:i.data,M,n),f=!0)}ve(this,Pc)&&(m=ve(this,Pc),p=ve(this,My),g=Date.now(),y="error");const b=d.fetchStatus==="fetching",x=y==="pending",S=y==="error",P=x&&b,E=p!==void 0,O={status:y,fetchStatus:d.fetchStatus,isPending:x,isSuccess:y==="success",isError:S,isInitialLoading:P,isLoading:P,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:S&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&E,isStale:rF(t,n),refetch:this.refetch,promise:ve(this,nf)};if(this.options.experimental_prefetchInRender){const M=_=>{O.status==="error"?_.reject(O.error):O.data!==void 0&&_.resolve(O.data)},I=()=>{const _=wt(this,nf,O.promise=b2());M(_)},R=ve(this,nf);switch(R.status){case"pending":t.queryHash===r.queryHash&&M(R);break;case"fulfilled":(O.status==="error"||O.data!==R.value)&&I();break;case"rejected":(O.status!=="error"||O.error!==R.reason)&&I();break}}return O}updateResult(t){const n=ve(this,ji),r=this.createResult(ve(this,An),this.options);if(wt(this,sh,ve(this,An).state),wt(this,ky,this.options),ve(this,sh).data!==void 0&&wt(this,Ay,ve(this,An)),gE(r,n))return;wt(this,ji,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ve(this,$y).size)return!0;const l=new Set(s??ve(this,$y));return this.options.throwOnError&&l.add("error"),Object.keys(ve(this,ji)).some(c=>{const u=c;return ve(this,ji)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),pn(this,er,WX).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pn(this,er,C2).call(this)}},la=new WeakMap,An=new WeakMap,mS=new WeakMap,ji=new WeakMap,sh=new WeakMap,ky=new WeakMap,nf=new WeakMap,Pc=new WeakMap,gS=new WeakMap,My=new WeakMap,Ay=new WeakMap,lh=new WeakMap,ch=new WeakMap,rf=new WeakMap,$y=new WeakMap,er=new WeakSet,U0=function(t){pn(this,er,T2).call(this);let n=ve(this,An).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ls)),n},w2=function(){pn(this,er,P2).call(this);const t=Jg(this.options.staleTime,ve(this,An));if(Sh||ve(this,ji).isStale||!g2(t))return;const r=LX(ve(this,ji).dataUpdatedAt,t)+1;wt(this,lh,setTimeout(()=>{ve(this,ji).isStale||this.updateResult()},r))},x2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ve(this,An)):this.options.refetchInterval)??!1},S2=function(t){pn(this,er,E2).call(this),wt(this,rf,t),!(Sh||Hl(this.options.enabled,ve(this,An))===!1||!g2(ve(this,rf))||ve(this,rf)===0)&&wt(this,ch,setInterval(()=>{(this.options.refetchIntervalInBackground||nF.isFocused())&&pn(this,er,U0).call(this)},ve(this,rf)))},C2=function(){pn(this,er,w2).call(this),pn(this,er,S2).call(this,pn(this,er,x2).call(this))},P2=function(){ve(this,lh)&&(clearTimeout(ve(this,lh)),wt(this,lh,void 0))},E2=function(){ve(this,ch)&&(clearInterval(ve(this,ch)),wt(this,ch,void 0))},T2=function(){const t=ve(this,la).getQueryCache().build(ve(this,la),this.options);if(t===ve(this,An))return;const n=ve(this,An);wt(this,An,t),wt(this,mS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},WX=function(t){Ro.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ve(this,ji))}),ve(this,la).getQueryCache().notify({query:ve(this,An),type:"observerResultsUpdated"})})},TY);function $xe(e,t){return Hl(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function M4(e,t){return $xe(e,t)||e.state.data!==void 0&&O2(e,t,t.refetchOnMount)}function O2(e,t,n){if(Hl(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&rF(e,t)}return!1}function A4(e,t,n,r){return(e!==t||Hl(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&rF(e,n)}function rF(e,t){return Hl(t.enabled,e)!==!1&&e.isStaleByTime(Jg(t.staleTime,e))}function Rxe(e,t){return!gE(e.getCurrentResult(),t)}var of,af,ca,Ou,Uu,DP,I2,OY,Dxe=(OY=class extends jv{constructor(n,r){super();Bt(this,Uu);Bt(this,of);Bt(this,af);Bt(this,ca);Bt(this,Ou);wt(this,of,n),this.setOptions(r),this.bindMethods(),pn(this,Uu,DP).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=ve(this,of).defaultMutationOptions(n),gE(this.options,r)||ve(this,of).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ve(this,ca),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ch(r.mutationKey)!==Ch(this.options.mutationKey)?this.reset():((o=ve(this,ca))==null?void 0:o.state.status)==="pending"&&ve(this,ca).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ve(this,ca))==null||n.removeObserver(this)}onMutationUpdate(n){pn(this,Uu,DP).call(this),pn(this,Uu,I2).call(this,n)}getCurrentResult(){return ve(this,af)}reset(){var n;(n=ve(this,ca))==null||n.removeObserver(this),wt(this,ca,void 0),pn(this,Uu,DP).call(this),pn(this,Uu,I2).call(this)}mutate(n,r){var o;return wt(this,Ou,r),(o=ve(this,ca))==null||o.removeObserver(this),wt(this,ca,ve(this,of).getMutationCache().build(ve(this,of),this.options)),ve(this,ca).addObserver(this),ve(this,ca).execute(n)}},of=new WeakMap,af=new WeakMap,ca=new WeakMap,Ou=new WeakMap,Uu=new WeakSet,DP=function(){var r;const n=((r=ve(this,ca))==null?void 0:r.state)??UX();wt(this,af,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},I2=function(n){Ro.batch(()=>{var r,o,i,a,s,l,c,u;if(ve(this,Ou)&&this.hasListeners()){const d=ve(this,af).variables,f=ve(this,af).context;(n==null?void 0:n.type)==="success"?((o=(r=ve(this,Ou)).onSuccess)==null||o.call(r,n.data,d,f),(a=(i=ve(this,Ou)).onSettled)==null||a.call(i,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((l=(s=ve(this,Ou)).onError)==null||l.call(s,n.error,d,f),(u=(c=ve(this,Ou)).onSettled)==null||u.call(c,void 0,n.error,d,f))}this.listeners.forEach(d=>{d(ve(this,af))})})},OY),GX=v.createContext(void 0),gr=e=>{const t=v.useContext(GX);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kh=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(GX.Provider,{value:e,children:t})),qX=v.createContext(!1),_xe=()=>v.useContext(qX);qX.Provider;function Lxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Nxe=v.createContext(Lxe()),Fxe=()=>v.useContext(Nxe);function KX(e,t){return typeof e=="function"?e(...t):!!e}function YX(){}var jxe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Bxe=e=>{v.useEffect(()=>{e.clearReset()},[e])},zxe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&KX(n,[e.error,r]),Vxe=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Hxe=(e,t)=>e.isLoading&&e.isFetching&&!t,Uxe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$4=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Wxe(e,t,n){var u,d,f,p,m;const r=gr(),o=_xe(),i=Fxe(),a=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,a),a._optimisticResults=o?"isRestoring":"optimistic",Vxe(a),jxe(a,i),Bxe(i);const s=!r.getQueryCache().get(a.queryHash),[l]=v.useState(()=>new t(r,a)),c=l.getOptimisticResult(a);if(v.useSyncExternalStore(v.useCallback(g=>{const y=o?()=>{}:l.subscribe(Ro.batchCalls(g));return l.updateResult(),y},[l,o]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),v.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),Uxe(a,c))throw $4(a,l,i);if(zxe({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw c.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,a,c),a.experimental_prefetchInRender&&!Sh&&Hxe(c,o)){const g=s?$4(a,l,i):(m=r.getQueryCache().get(a.queryHash))==null?void 0:m.promise;g==null||g.catch(YX).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function lo(e,t){return Wxe(e,Axe)}function Rr(e,t){const n=gr(),[r]=v.useState(()=>new Dxe(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const o=v.useSyncExternalStore(v.useCallback(a=>r.subscribe(Ro.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=v.useCallback((a,s)=>{r.mutate(a,s).catch(YX)},[r]);if(o.error&&KX(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Gxe="modulepreload",qxe=function(e){return"/"+e},R4={},Kxe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=qxe(s),s in R4)return;R4[s]=!0;const l=s.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":Gxe,l||(u.as="script",u.crossOrigin=""),u.href=s,a&&u.setAttribute("nonce",a),document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var Yxe=function(){return null};function D4(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function TS(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function ui(e){return e&&e.ownerDocument||document}function rs(e){return ui(e).defaultView||window}function vE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let _4=0;function Xxe(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(_4+=1,n(`mui-${_4}`))},[t]),r}const Qxe={...Ry},L4=Qxe.useId;function Ph(e){if(L4!==void 0){const t=L4();return e??t}return Xxe(e)}function Du({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),s=o?e:i,l=v.useCallback(c=>{o||a(c)},[]);return[s,l]}function Ko(e){const t=v.useRef(e);return ns(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Cr(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{vE(n,t)})},e)}const N4={};function XX(e,t){const n=v.useRef(N4);return n.current===N4&&(n.current=e(t)),n}const Jxe=[];function Zxe(e){v.useEffect(e,Jxe)}let QX=class JX{constructor(){tn(this,"currentId",null);tn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});tn(this,"disposeEffect",()=>this.clear)}static create(){return new JX}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function sf(){const e=XX(QX.create).current;return Zxe(e.disposeEffect),e}function bE(e){try{return e.matches(":focus-visible")}catch{}return!1}function ZX(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const oF=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function eQ(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}function eSe(e){return typeof e=="string"}function tQ(e,t,n){return e===void 0||eSe(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function wE(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function F4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function nQ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=wE({...o,...r}),s=F4(r),l=F4(o),c=t(a),u=pe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function rQ(e,t,n){return typeof e=="function"?e(t,n):e}function Uc(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:rQ(n,r),{props:s,internalRef:l}=nQ({...i,externalSlotProps:a}),c=Cr(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return tQ(t,{...s,ref:c},r)}function Hf(e){var t;return parseInt(v.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function tSe(e){return $.jsx(E0e,{...e,defaultTheme:dI,themeId:Js})}function nSe(e){return function(n){return $.jsx(tSe,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function rSe(){return sI}const Qe=J0e;function nt(e){return Q0e(e)}function oSe(e){return Ze("MuiSvgIcon",e)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iSe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ce(t)}`,`fontSize${Ce(n)}`]};return et(o,oSe,r)},aSe=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ce(n.color)}`],t[`fontSize${Ce(n.fontSize)}`]]}})(Qe(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var y,b;return{props:{color:g},style:{color:(b=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),xE=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,m=v.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},y={};u||(y.viewBox=f);const b=iSe(g);return $.jsxs(aSe,{as:s,className:pe(b.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...y,...p,...m&&o.props,ownerState:g,children:[m?o.props.children:o,d?$.jsx("title",{children:d}):null]})});xE.muiName="SvgIcon";function lt(e,t){function n(r,o){return $.jsx(xE,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=xE.muiName,v.memo(v.forwardRef(n))}function ze(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function k2(e,t){return k2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},k2(e,t)}function OS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k2(e,t)}function sSe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function lSe(e,t){e.classList?e.classList.add(t):sSe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function j4(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function cSe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=j4(e.className,t):e.setAttribute("class",j4(e.className&&e.className.baseVal||"",t))}var oQ={exports:{}},us={},iQ={exports:{}},aQ={};/**
* @license React
* scheduler.production.min.js
*
@@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
*
* 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(V,z){var W=V.length;V.push(z);e:for(;0<W;){var G=W-1>>>1,J=V[G];if(0<o(J,z))V[G]=z,V[W]=J,W=G;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var z=V[0],W=V.pop();if(W!==z){V[0]=W;e:for(var G=0,J=V.length,K=J>>>1;G<K;){var ne=2*(G+1)-1,re=V[ne],oe=ne+1,fe=V[oe];if(0>o(re,W))oe<J&&0>o(fe,re)?(V[G]=fe,V[oe]=W,G=oe):(V[G]=re,V[ne]=W,G=ne);else if(oe<J&&0>o(fe,W))V[G]=fe,V[oe]=W,G=oe;else break e}}return z}function o(V,z){var W=V.sortIndex-z.sortIndex;return W!==0?W:V.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(V){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=V)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function P(V){if(g=!1,S(V),!m)if(n(l)!==null)m=!0,F(E);else{var z=n(c);z!==null&&U(P,z.startTime-V)}}function E(V,z){m=!1,g&&(g=!1,b(k),k=-1),p=!0;var W=f;try{for(S(z),d=n(l);d!==null&&(!(d.expirationTime>z)||V&&!R());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var J=G(d.expirationTime<=z);z=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(l)&&r(l),S(z)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var ne=n(c);ne!==null&&U(P,ne.startTime-z),K=!1}return K}finally{d=null,f=W,p=!1}}var T=!1,O=null,k=-1,M=5,I=-1;function R(){return!(e.unstable_now()-I<M)}function _(){if(O!==null){var V=e.unstable_now();I=V;var z=!0;try{z=O(!0,V)}finally{z?N():(T=!1,O=null)}}else T=!1}var N;if(typeof x=="function")N=function(){x(_)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=_,N=function(){L.postMessage(null)}}else N=function(){y(_,0)};function F(V){O=V,T||(T=!0,N())}function U(V,z){k=y(function(){V(e.unstable_now())},z)}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(V){V.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,F(E))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(V){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var W=f;f=z;try{return V()}finally{f=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,z){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=f;f=V;try{return z()}finally{f=W}},e.unstable_scheduleCallback=function(V,z,W){var G=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?G+W:G):W=G,V){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=W+J,V={id:u++,callback:z,priorityLevel:V,startTime:W,expirationTime:J,sortIndex:-1},W>G?(V.sortIndex=W,t(c,V),n(l)===null&&V===n(c)&&(g?(b(k),k=-1):g=!0,U(P,W-G))):(V.sortIndex=J,t(l,V),m||p||(m=!0,F(E))),V},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(V){var z=f;return function(){var W=f;f=z;try{return V.apply(this,arguments)}finally{f=W}}}})(iX);oX.exports=iX;var exe=oX.exports;/**
+ */(function(e){function t(z,V){var W=z.length;z.push(V);e:for(;0<W;){var G=W-1>>>1,J=z[G];if(0<o(J,V))z[G]=V,z[W]=J,W=G;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var V=z[0],W=z.pop();if(W!==V){z[0]=W;e:for(var G=0,J=z.length,K=J>>>1;G<K;){var ne=2*(G+1)-1,re=z[ne],oe=ne+1,fe=z[oe];if(0>o(re,W))oe<J&&0>o(fe,re)?(z[G]=fe,z[oe]=W,G=oe):(z[G]=re,z[ne]=W,G=ne);else if(oe<J&&0>o(fe,W))z[G]=fe,z[oe]=W,G=oe;else break e}}return V}function o(z,V){var W=z.sortIndex-V.sortIndex;return W!==0?W:z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(z){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=z)r(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(c)}}function P(z){if(g=!1,S(z),!m)if(n(l)!==null)m=!0,F(E);else{var V=n(c);V!==null&&U(P,V.startTime-z)}}function E(z,V){m=!1,g&&(g=!1,b(k),k=-1),p=!0;var W=f;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||z&&!R());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var J=G(d.expirationTime<=V);V=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var ne=n(c);ne!==null&&U(P,ne.startTime-V),K=!1}return K}finally{d=null,f=W,p=!1}}var T=!1,O=null,k=-1,M=5,I=-1;function R(){return!(e.unstable_now()-I<M)}function _(){if(O!==null){var z=e.unstable_now();I=z;var V=!0;try{V=O(!0,z)}finally{V?L():(T=!1,O=null)}}else T=!1}var L;if(typeof x=="function")L=function(){x(_)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,N=j.port2;j.port1.onmessage=_,L=function(){N.postMessage(null)}}else L=function(){y(_,0)};function F(z){O=z,T||(T=!0,L())}function U(z,V){k=y(function(){z(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,F(E))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(z){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var W=f;f=V;try{return z()}finally{f=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,V){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=f;f=z;try{return V()}finally{f=W}},e.unstable_scheduleCallback=function(z,V,W){var G=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?G+W:G):W=G,z){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=W+J,z={id:u++,callback:V,priorityLevel:z,startTime:W,expirationTime:J,sortIndex:-1},W>G?(z.sortIndex=W,t(c,z),n(l)===null&&z===n(c)&&(g?(b(k),k=-1):g=!0,U(P,W-G))):(z.sortIndex=J,t(l,z),m||p||(m=!0,F(E))),z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(z){var V=f;return function(){var W=f;f=V;try{return z.apply(this,arguments)}finally{f=W}}}})(aQ);iQ.exports=aQ;var uSe=iQ.exports;/**
* @license React
* react-dom.production.min.js
*
@@ -78,14 +78,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var txe=v,Ya=exe;function it(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var aX=new Set,Cw={};function Ah(e,t){my(e,t),my(e+"Capture",t)}function my(e,t){for(Cw[e]=t,e=0;e<t.length;e++)aX.add(t[e])}var Lu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KR=Object.prototype.hasOwnProperty,nxe=/^[: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]*$/,JH={},ZH={};function rxe(e){return KR.call(ZH,e)?!0:KR.call(JH,e)?!1:nxe.test(e)?ZH[e]=!0:(JH[e]=!0,!1)}function oxe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ixe(e,t,n,r){if(t===null||typeof t>"u"||oxe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ki(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var oi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oi[e]=new Ki(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oi[t]=new Ki(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oi[e]=new Ki(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oi[e]=new Ki(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){oi[e]=new Ki(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oi[e]=new Ki(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oi[e]=new Ki(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oi[e]=new Ki(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oi[e]=new Ki(e,5,!1,e.toLowerCase(),null,!1,!1)});var xN=/[\-:]([a-z])/g;function SN(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(xN,SN);oi[t]=new Ki(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(xN,SN);oi[t]=new Ki(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(xN,SN);oi[t]=new Ki(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oi[e]=new Ki(e,1,!1,e.toLowerCase(),null,!1,!1)});oi.xlinkHref=new Ki("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oi[e]=new Ki(e,1,!1,e.toLowerCase(),null,!0,!0)});function CN(e,t,n,r){var o=oi.hasOwnProperty(t)?oi[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ixe(t,n,o,r)&&(n=null),r||o===null?rxe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Qu=txe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z1=Symbol.for("react.element"),og=Symbol.for("react.portal"),ig=Symbol.for("react.fragment"),PN=Symbol.for("react.strict_mode"),YR=Symbol.for("react.profiler"),sX=Symbol.for("react.provider"),lX=Symbol.for("react.context"),EN=Symbol.for("react.forward_ref"),XR=Symbol.for("react.suspense"),QR=Symbol.for("react.suspense_list"),TN=Symbol.for("react.memo"),Td=Symbol.for("react.lazy"),cX=Symbol.for("react.offscreen"),e4=Symbol.iterator;function Rb(e){return e===null||typeof e!="object"?null:(e=e4&&e[e4]||e["@@iterator"],typeof e=="function"?e:null)}var Ur=Object.assign,CA;function x0(e){if(CA===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);CA=t&&t[1]||""}return`
-`+CA+e}var PA=!1;function EA(e,t){if(!e||PA)return"";PA=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
+ */var dSe=v,os=uSe;function it(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sQ=new Set,qw={};function Yh(e,t){Ly(e,t),Ly(e+"Capture",t)}function Ly(e,t){for(qw[e]=t,e=0;e<t.length;e++)sQ.add(t[e])}var Ku=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M2=Object.prototype.hasOwnProperty,fSe=/^[: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]*$/,B4={},z4={};function pSe(e){return M2.call(z4,e)?!0:M2.call(B4,e)?!1:fSe.test(e)?z4[e]=!0:(B4[e]=!0,!1)}function hSe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mSe(e,t,n,r){if(t===null||typeof t>"u"||hSe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ta(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fi[e]=new ta(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fi[t]=new ta(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fi[e]=new ta(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fi[e]=new ta(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){fi[e]=new ta(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fi[e]=new ta(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fi[e]=new ta(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fi[e]=new ta(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fi[e]=new ta(e,5,!1,e.toLowerCase(),null,!1,!1)});var iF=/[\-:]([a-z])/g;function aF(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(iF,aF);fi[t]=new ta(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(iF,aF);fi[t]=new ta(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(iF,aF);fi[t]=new ta(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fi[e]=new ta(e,1,!1,e.toLowerCase(),null,!1,!1)});fi.xlinkHref=new ta("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fi[e]=new ta(e,1,!1,e.toLowerCase(),null,!0,!0)});function sF(e,t,n,r){var o=fi.hasOwnProperty(t)?fi[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(mSe(t,n,o,r)&&(n=null),r||o===null?pSe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var dd=dSe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,CC=Symbol.for("react.element"),Sg=Symbol.for("react.portal"),Cg=Symbol.for("react.fragment"),lF=Symbol.for("react.strict_mode"),A2=Symbol.for("react.profiler"),lQ=Symbol.for("react.provider"),cQ=Symbol.for("react.context"),cF=Symbol.for("react.forward_ref"),$2=Symbol.for("react.suspense"),R2=Symbol.for("react.suspense_list"),uF=Symbol.for("react.memo"),Bd=Symbol.for("react.lazy"),uQ=Symbol.for("react.offscreen"),V4=Symbol.iterator;function r0(e){return e===null||typeof e!="object"?null:(e=V4&&e[V4]||e["@@iterator"],typeof e=="function"?e:null)}var Wr=Object.assign,i$;function W0(e){if(i$===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);i$=t&&t[1]||""}return`
+`+i$+e}var a$=!1;function s$(e,t){if(!e||a$)return"";a$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
-`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{PA=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?x0(e):""}function axe(e){switch(e.tag){case 5:return x0(e.type);case 16:return x0("Lazy");case 13:return x0("Suspense");case 19:return x0("SuspenseList");case 0:case 2:case 15:return e=EA(e.type,!1),e;case 11:return e=EA(e.type.render,!1),e;case 1:return e=EA(e.type,!0),e;default:return""}}function JR(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 ig:return"Fragment";case og:return"Portal";case YR:return"Profiler";case PN:return"StrictMode";case XR:return"Suspense";case QR:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lX:return(e.displayName||"Context")+".Consumer";case sX:return(e._context.displayName||"Context")+".Provider";case EN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TN:return t=e.displayName||null,t!==null?t:JR(e.type)||"Memo";case Td:t=e._payload,e=e._init;try{return JR(e(t))}catch{}}return null}function sxe(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 JR(t);case 8:return t===PN?"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 gf(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uX(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lxe(e){var t=uX(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eC(e){e._valueTracker||(e._valueTracker=lxe(e))}function dX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uX(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function XP(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 ZR(e,t){var n=t.checked;return Ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gf(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fX(e,t){t=t.checked,t!=null&&CN(e,"checked",t,!1)}function e2(e,t){fX(e,t);var n=gf(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?t2(e,t.type,n):t.hasOwnProperty("defaultValue")&&t2(e,t.type,gf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n4(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function t2(e,t,n){(t!=="number"||XP(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var S0=Array.isArray;function _g(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gf(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function n2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(it(91));return Ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function r4(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(it(92));if(S0(n)){if(1<n.length)throw Error(it(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gf(n)}}function pX(e,t){var n=gf(t.value),r=gf(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function o4(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hX(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 r2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hX(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tC,mX=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(tC=tC||document.createElement("div"),tC.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var j0={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},cxe=["Webkit","ms","Moz","O"];Object.keys(j0).forEach(function(e){cxe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),j0[t]=j0[e]})});function gX(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||j0.hasOwnProperty(e)&&j0[e]?(""+t).trim():t+"px"}function yX(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gX(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var uxe=Ur({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 o2(e,t){if(t){if(uxe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(it(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(it(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(it(61))}if(t.style!=null&&typeof t.style!="object")throw Error(it(62))}}function i2(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 a2=null;function ON(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var s2=null,Lg=null,Ng=null;function i4(e){if(e=sS(e)){if(typeof s2!="function")throw Error(it(280));var t=e.stateNode;t&&(t=HO(t),s2(e.stateNode,e.type,t))}}function vX(e){Lg?Ng?Ng.push(e):Ng=[e]:Lg=e}function bX(){if(Lg){var e=Lg,t=Ng;if(Ng=Lg=null,i4(e),t)for(e=0;e<t.length;e++)i4(t[e])}}function wX(e,t){return e(t)}function xX(){}var TA=!1;function SX(e,t,n){if(TA)return e(t,n);TA=!0;try{return wX(e,t,n)}finally{TA=!1,(Lg!==null||Ng!==null)&&(xX(),bX())}}function Ew(e,t){var n=e.stateNode;if(n===null)return null;var r=HO(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(it(231,t,typeof n));return n}var l2=!1;if(Lu)try{var Db={};Object.defineProperty(Db,"passive",{get:function(){l2=!0}}),window.addEventListener("test",Db,Db),window.removeEventListener("test",Db,Db)}catch{l2=!1}function dxe(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var B0=!1,QP=null,JP=!1,c2=null,fxe={onError:function(e){B0=!0,QP=e}};function pxe(e,t,n,r,o,i,a,s,l){B0=!1,QP=null,dxe.apply(fxe,arguments)}function hxe(e,t,n,r,o,i,a,s,l){if(pxe.apply(this,arguments),B0){if(B0){var c=QP;B0=!1,QP=null}else throw Error(it(198));JP||(JP=!0,c2=c)}}function $h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function CX(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 a4(e){if($h(e)!==e)throw Error(it(188))}function mxe(e){var t=e.alternate;if(!t){if(t=$h(e),t===null)throw Error(it(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return a4(o),e;if(i===r)return a4(o),t;i=i.sibling}throw Error(it(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(it(189))}}if(n.alternate!==r)throw Error(it(190))}if(n.tag!==3)throw Error(it(188));return n.stateNode.current===n?e:t}function PX(e){return e=mxe(e),e!==null?EX(e):null}function EX(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=EX(e);if(t!==null)return t;e=e.sibling}return null}var TX=Ya.unstable_scheduleCallback,s4=Ya.unstable_cancelCallback,gxe=Ya.unstable_shouldYield,yxe=Ya.unstable_requestPaint,ro=Ya.unstable_now,vxe=Ya.unstable_getCurrentPriorityLevel,IN=Ya.unstable_ImmediatePriority,OX=Ya.unstable_UserBlockingPriority,ZP=Ya.unstable_NormalPriority,bxe=Ya.unstable_LowPriority,IX=Ya.unstable_IdlePriority,jO=null,Ec=null;function wxe(e){if(Ec&&typeof Ec.onCommitFiberRoot=="function")try{Ec.onCommitFiberRoot(jO,e,void 0,(e.current.flags&128)===128)}catch{}}var Bl=Math.clz32?Math.clz32:Cxe,xxe=Math.log,Sxe=Math.LN2;function Cxe(e){return e>>>=0,e===0?32:31-(xxe(e)/Sxe|0)|0}var nC=64,rC=4194304;function C0(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 eE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=C0(s):(i&=a,i!==0&&(r=C0(i)))}else a=n&~o,a!==0?r=C0(a):i!==0&&(r=C0(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bl(t),o=1<<n,r|=e[n],t&=~o;return r}function Pxe(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 Exe(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Bl(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=Pxe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function u2(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kX(){var e=nC;return nC<<=1,!(nC&4194240)&&(nC=64),e}function OA(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function iS(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bl(t),e[t]=n}function Txe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Bl(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function kN(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bl(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ir=0;function MX(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var AX,MN,$X,RX,DX,d2=!1,oC=[],ef=null,tf=null,nf=null,Tw=new Map,Ow=new Map,Ad=[],Oxe="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 l4(e,t){switch(e){case"focusin":case"focusout":ef=null;break;case"dragenter":case"dragleave":tf=null;break;case"mouseover":case"mouseout":nf=null;break;case"pointerover":case"pointerout":Tw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ow.delete(t.pointerId)}}function _b(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=sS(t),t!==null&&MN(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ixe(e,t,n,r,o){switch(t){case"focusin":return ef=_b(ef,e,t,n,r,o),!0;case"dragenter":return tf=_b(tf,e,t,n,r,o),!0;case"mouseover":return nf=_b(nf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tw.set(i,_b(Tw.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ow.set(i,_b(Ow.get(i)||null,e,t,n,r,o)),!0}return!1}function _X(e){var t=Ip(e.target);if(t!==null){var n=$h(t);if(n!==null){if(t=n.tag,t===13){if(t=CX(n),t!==null){e.blockedOn=t,DX(e.priority,function(){$X(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fP(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=f2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);a2=r,n.target.dispatchEvent(r),a2=null}else return t=sS(n),t!==null&&MN(t),e.blockedOn=n,!1;t.shift()}return!0}function c4(e,t,n){fP(e)&&n.delete(t)}function kxe(){d2=!1,ef!==null&&fP(ef)&&(ef=null),tf!==null&&fP(tf)&&(tf=null),nf!==null&&fP(nf)&&(nf=null),Tw.forEach(c4),Ow.forEach(c4)}function Lb(e,t){e.blockedOn===t&&(e.blockedOn=null,d2||(d2=!0,Ya.unstable_scheduleCallback(Ya.unstable_NormalPriority,kxe)))}function Iw(e){function t(o){return Lb(o,e)}if(0<oC.length){Lb(oC[0],e);for(var n=1;n<oC.length;n++){var r=oC[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ef!==null&&Lb(ef,e),tf!==null&&Lb(tf,e),nf!==null&&Lb(nf,e),Tw.forEach(t),Ow.forEach(t),n=0;n<Ad.length;n++)r=Ad[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ad.length&&(n=Ad[0],n.blockedOn===null);)_X(n),n.blockedOn===null&&Ad.shift()}var Fg=Qu.ReactCurrentBatchConfig,tE=!0;function Mxe(e,t,n,r){var o=ir,i=Fg.transition;Fg.transition=null;try{ir=1,AN(e,t,n,r)}finally{ir=o,Fg.transition=i}}function Axe(e,t,n,r){var o=ir,i=Fg.transition;Fg.transition=null;try{ir=4,AN(e,t,n,r)}finally{ir=o,Fg.transition=i}}function AN(e,t,n,r){if(tE){var o=f2(e,t,n,r);if(o===null)NA(e,t,r,nE,n),l4(e,r);else if(Ixe(o,e,t,n,r))r.stopPropagation();else if(l4(e,r),t&4&&-1<Oxe.indexOf(e)){for(;o!==null;){var i=sS(o);if(i!==null&&AX(i),i=f2(e,t,n,r),i===null&&NA(e,t,r,nE,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else NA(e,t,r,null,n)}}var nE=null;function f2(e,t,n,r){if(nE=null,e=ON(r),e=Ip(e),e!==null)if(t=$h(e),t===null)e=null;else if(n=t.tag,n===13){if(e=CX(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return nE=e,null}function LX(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(vxe()){case IN:return 1;case OX:return 4;case ZP:case bxe:return 16;case IX:return 536870912;default:return 16}default:return 16}}var Gd=null,$N=null,pP=null;function NX(){if(pP)return pP;var e,t=$N,n=t.length,r,o="value"in Gd?Gd.value:Gd.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return pP=o.slice(e,1<r?1-r:void 0)}function hP(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 iC(){return!0}function u4(){return!1}function ns(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?iC:u4,this.isPropagationStopped=u4,this}return Ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=iC)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=iC)},persist:function(){},isPersistent:iC}),t}var vv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RN=ns(vv),aS=Ur({},vv,{view:0,detail:0}),$xe=ns(aS),IA,kA,Nb,BO=Ur({},aS,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DN,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!==Nb&&(Nb&&e.type==="mousemove"?(IA=e.screenX-Nb.screenX,kA=e.screenY-Nb.screenY):kA=IA=0,Nb=e),IA)},movementY:function(e){return"movementY"in e?e.movementY:kA}}),d4=ns(BO),Rxe=Ur({},BO,{dataTransfer:0}),Dxe=ns(Rxe),_xe=Ur({},aS,{relatedTarget:0}),MA=ns(_xe),Lxe=Ur({},vv,{animationName:0,elapsedTime:0,pseudoElement:0}),Nxe=ns(Lxe),Fxe=Ur({},vv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jxe=ns(Fxe),Bxe=Ur({},vv,{data:0}),f4=ns(Bxe),zxe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vxe={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"},Hxe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uxe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hxe[e])?!!t[e]:!1}function DN(){return Uxe}var Wxe=Ur({},aS,{key:function(e){if(e.key){var t=zxe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hP(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vxe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DN,charCode:function(e){return e.type==="keypress"?hP(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hP(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gxe=ns(Wxe),qxe=Ur({},BO,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p4=ns(qxe),Kxe=Ur({},aS,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DN}),Yxe=ns(Kxe),Xxe=Ur({},vv,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qxe=ns(Xxe),Jxe=Ur({},BO,{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}),Zxe=ns(Jxe),eSe=[9,13,27,32],_N=Lu&&"CompositionEvent"in window,z0=null;Lu&&"documentMode"in document&&(z0=document.documentMode);var tSe=Lu&&"TextEvent"in window&&!z0,FX=Lu&&(!_N||z0&&8<z0&&11>=z0),h4=" ",m4=!1;function jX(e,t){switch(e){case"keyup":return eSe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BX(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ag=!1;function nSe(e,t){switch(e){case"compositionend":return BX(t);case"keypress":return t.which!==32?null:(m4=!0,h4);case"textInput":return e=t.data,e===h4&&m4?null:e;default:return null}}function rSe(e,t){if(ag)return e==="compositionend"||!_N&&jX(e,t)?(e=NX(),pP=$N=Gd=null,ag=!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 FX&&t.locale!=="ko"?null:t.data;default:return null}}var oSe={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 g4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oSe[e.type]:t==="textarea"}function zX(e,t,n,r){vX(r),t=rE(t,"onChange"),0<t.length&&(n=new RN("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var V0=null,kw=null;function iSe(e){JX(e,0)}function zO(e){var t=cg(e);if(dX(t))return e}function aSe(e,t){if(e==="change")return t}var VX=!1;if(Lu){var AA;if(Lu){var $A="oninput"in document;if(!$A){var y4=document.createElement("div");y4.setAttribute("oninput","return;"),$A=typeof y4.oninput=="function"}AA=$A}else AA=!1;VX=AA&&(!document.documentMode||9<document.documentMode)}function v4(){V0&&(V0.detachEvent("onpropertychange",HX),kw=V0=null)}function HX(e){if(e.propertyName==="value"&&zO(kw)){var t=[];zX(t,kw,e,ON(e)),SX(iSe,t)}}function sSe(e,t,n){e==="focusin"?(v4(),V0=t,kw=n,V0.attachEvent("onpropertychange",HX)):e==="focusout"&&v4()}function lSe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zO(kw)}function cSe(e,t){if(e==="click")return zO(t)}function uSe(e,t){if(e==="input"||e==="change")return zO(t)}function dSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ql=typeof Object.is=="function"?Object.is:dSe;function Mw(e,t){if(ql(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!KR.call(t,o)||!ql(e[o],t[o]))return!1}return!0}function b4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function w4(e,t){var n=b4(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=b4(n)}}function UX(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UX(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function WX(){for(var e=window,t=XP();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=XP(e.document)}return t}function LN(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 fSe(e){var t=WX(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&UX(n.ownerDocument.documentElement,n)){if(r!==null&&LN(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=w4(n,i);var a=w4(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pSe=Lu&&"documentMode"in document&&11>=document.documentMode,sg=null,p2=null,H0=null,h2=!1;function x4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;h2||sg==null||sg!==XP(r)||(r=sg,"selectionStart"in r&&LN(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),H0&&Mw(H0,r)||(H0=r,r=rE(p2,"onSelect"),0<r.length&&(t=new RN("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sg)))}function aC(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lg={animationend:aC("Animation","AnimationEnd"),animationiteration:aC("Animation","AnimationIteration"),animationstart:aC("Animation","AnimationStart"),transitionend:aC("Transition","TransitionEnd")},RA={},GX={};Lu&&(GX=document.createElement("div").style,"AnimationEvent"in window||(delete lg.animationend.animation,delete lg.animationiteration.animation,delete lg.animationstart.animation),"TransitionEvent"in window||delete lg.transitionend.transition);function VO(e){if(RA[e])return RA[e];if(!lg[e])return e;var t=lg[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in GX)return RA[e]=t[n];return e}var qX=VO("animationend"),KX=VO("animationiteration"),YX=VO("animationstart"),XX=VO("transitionend"),QX=new Map,S4="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 If(e,t){QX.set(e,t),Ah(t,[e])}for(var DA=0;DA<S4.length;DA++){var _A=S4[DA],hSe=_A.toLowerCase(),mSe=_A[0].toUpperCase()+_A.slice(1);If(hSe,"on"+mSe)}If(qX,"onAnimationEnd");If(KX,"onAnimationIteration");If(YX,"onAnimationStart");If("dblclick","onDoubleClick");If("focusin","onFocus");If("focusout","onBlur");If(XX,"onTransitionEnd");my("onMouseEnter",["mouseout","mouseover"]);my("onMouseLeave",["mouseout","mouseover"]);my("onPointerEnter",["pointerout","pointerover"]);my("onPointerLeave",["pointerout","pointerover"]);Ah("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ah("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ah("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ah("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ah("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ah("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var P0="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(" "),gSe=new Set("cancel close invalid load scroll toggle".split(" ").concat(P0));function C4(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hxe(r,t,void 0,e),e.currentTarget=null}function JX(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;C4(o,s,c),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;C4(o,s,c),i=l}}}if(JP)throw e=c2,JP=!1,c2=null,e}function Er(e,t){var n=t[b2];n===void 0&&(n=t[b2]=new Set);var r=e+"__bubble";n.has(r)||(ZX(t,e,2,!1),n.add(r))}function LA(e,t,n){var r=0;t&&(r|=4),ZX(n,e,r,t)}var sC="_reactListening"+Math.random().toString(36).slice(2);function Aw(e){if(!e[sC]){e[sC]=!0,aX.forEach(function(n){n!=="selectionchange"&&(gSe.has(n)||LA(n,!1,e),LA(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sC]||(t[sC]=!0,LA("selectionchange",!1,t))}}function ZX(e,t,n,r){switch(LX(t)){case 1:var o=Mxe;break;case 4:o=Axe;break;default:o=AN}n=o.bind(null,t,n,e),o=void 0,!l2||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function NA(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Ip(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}SX(function(){var c=i,u=ON(n),d=[];e:{var f=QX.get(e);if(f!==void 0){var p=RN,m=e;switch(e){case"keypress":if(hP(n)===0)break e;case"keydown":case"keyup":p=Gxe;break;case"focusin":m="focus",p=MA;break;case"focusout":m="blur",p=MA;break;case"beforeblur":case"afterblur":p=MA;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=d4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Dxe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Yxe;break;case qX:case KX:case YX:p=Nxe;break;case XX:p=Qxe;break;case"scroll":p=$xe;break;case"wheel":p=Zxe;break;case"copy":case"cut":case"paste":p=jxe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=p4}var g=(t&4)!==0,y=!g&&e==="scroll",b=g?f!==null?f+"Capture":null:f;g=[];for(var x=c,S;x!==null;){S=x;var P=S.stateNode;if(S.tag===5&&P!==null&&(S=P,b!==null&&(P=Ew(x,b),P!=null&&g.push($w(x,P,S)))),y)break;x=x.return}0<g.length&&(f=new p(f,m,null,n,u),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==a2&&(m=n.relatedTarget||n.fromElement)&&(Ip(m)||m[Nu]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?Ip(m):null,m!==null&&(y=$h(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=d4,P="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=p4,P="onPointerLeave",b="onPointerEnter",x="pointer"),y=p==null?f:cg(p),S=m==null?f:cg(m),f=new g(P,x+"leave",p,n,u),f.target=y,f.relatedTarget=S,P=null,Ip(u)===c&&(g=new g(b,x+"enter",m,n,u),g.target=S,g.relatedTarget=y,P=g),y=P,p&&m)t:{for(g=p,b=m,x=0,S=g;S;S=Om(S))x++;for(S=0,P=b;P;P=Om(P))S++;for(;0<x-S;)g=Om(g),x--;for(;0<S-x;)b=Om(b),S--;for(;x--;){if(g===b||b!==null&&g===b.alternate)break t;g=Om(g),b=Om(b)}g=null}else g=null;p!==null&&P4(d,f,p,g,!1),m!==null&&y!==null&&P4(d,y,m,g,!0)}}e:{if(f=c?cg(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var E=aSe;else if(g4(f))if(VX)E=uSe;else{E=lSe;var T=sSe}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=cSe);if(E&&(E=E(e,c))){zX(d,E,n,u);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&t2(f,"number",f.value)}switch(T=c?cg(c):window,e){case"focusin":(g4(T)||T.contentEditable==="true")&&(sg=T,p2=c,H0=null);break;case"focusout":H0=p2=sg=null;break;case"mousedown":h2=!0;break;case"contextmenu":case"mouseup":case"dragend":h2=!1,x4(d,n,u);break;case"selectionchange":if(pSe)break;case"keydown":case"keyup":x4(d,n,u)}var O;if(_N)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ag?jX(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(FX&&n.locale!=="ko"&&(ag||k!=="onCompositionStart"?k==="onCompositionEnd"&&ag&&(O=NX()):(Gd=u,$N="value"in Gd?Gd.value:Gd.textContent,ag=!0)),T=rE(c,k),0<T.length&&(k=new f4(k,e,null,n,u),d.push({event:k,listeners:T}),O?k.data=O:(O=BX(n),O!==null&&(k.data=O)))),(O=tSe?nSe(e,n):rSe(e,n))&&(c=rE(c,"onBeforeInput"),0<c.length&&(u=new f4("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=O))}JX(d,t)})}function $w(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rE(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ew(e,n),i!=null&&r.unshift($w(e,i,o)),i=Ew(e,t),i!=null&&r.push($w(e,i,o))),e=e.return}return r}function Om(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function P4(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,o?(l=Ew(n,i),l!=null&&a.unshift($w(n,l,s))):o||(l=Ew(n,i),l!=null&&a.push($w(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var ySe=/\r\n?/g,vSe=/\u0000|\uFFFD/g;function E4(e){return(typeof e=="string"?e:""+e).replace(ySe,`
-`).replace(vSe,"")}function lC(e,t,n){if(t=E4(t),E4(e)!==t&&n)throw Error(it(425))}function oE(){}var m2=null,g2=null;function y2(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 v2=typeof setTimeout=="function"?setTimeout:void 0,bSe=typeof clearTimeout=="function"?clearTimeout:void 0,T4=typeof Promise=="function"?Promise:void 0,wSe=typeof queueMicrotask=="function"?queueMicrotask:typeof T4<"u"?function(e){return T4.resolve(null).then(e).catch(xSe)}:v2;function xSe(e){setTimeout(function(){throw e})}function FA(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Iw(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Iw(t)}function rf(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 O4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bv=Math.random().toString(36).slice(2),bc="__reactFiber$"+bv,Rw="__reactProps$"+bv,Nu="__reactContainer$"+bv,b2="__reactEvents$"+bv,SSe="__reactListeners$"+bv,CSe="__reactHandles$"+bv;function Ip(e){var t=e[bc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nu]||n[bc]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=O4(e);e!==null;){if(n=e[bc])return n;e=O4(e)}return t}e=n,n=e.parentNode}return null}function sS(e){return e=e[bc]||e[Nu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cg(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(it(33))}function HO(e){return e[Rw]||null}var w2=[],ug=-1;function kf(e){return{current:e}}function Mr(e){0>ug||(e.current=w2[ug],w2[ug]=null,ug--)}function xr(e,t){ug++,w2[ug]=e.current,e.current=t}var yf={},xi=kf(yf),da=kf(!1),lh=yf;function gy(e,t){var n=e.type.contextTypes;if(!n)return yf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function fa(e){return e=e.childContextTypes,e!=null}function iE(){Mr(da),Mr(xi)}function I4(e,t,n){if(xi.current!==yf)throw Error(it(168));xr(xi,t),xr(da,n)}function eQ(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(it(108,sxe(e)||"Unknown",o));return Ur({},n,r)}function aE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yf,lh=xi.current,xr(xi,e),xr(da,da.current),!0}function k4(e,t,n){var r=e.stateNode;if(!r)throw Error(it(169));n?(e=eQ(e,t,lh),r.__reactInternalMemoizedMergedChildContext=e,Mr(da),Mr(xi),xr(xi,e)):Mr(da),xr(da,n)}var fu=null,UO=!1,jA=!1;function tQ(e){fu===null?fu=[e]:fu.push(e)}function PSe(e){UO=!0,tQ(e)}function Mf(){if(!jA&&fu!==null){jA=!0;var e=0,t=ir;try{var n=fu;for(ir=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fu=null,UO=!1}catch(o){throw fu!==null&&(fu=fu.slice(e+1)),TX(IN,Mf),o}finally{ir=t,jA=!1}}return null}var dg=[],fg=0,sE=null,lE=0,Rs=[],Ds=0,ch=null,yu=1,vu="";function yp(e,t){dg[fg++]=lE,dg[fg++]=sE,sE=e,lE=t}function nQ(e,t,n){Rs[Ds++]=yu,Rs[Ds++]=vu,Rs[Ds++]=ch,ch=e;var r=yu;e=vu;var o=32-Bl(r)-1;r&=~(1<<o),n+=1;var i=32-Bl(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,yu=1<<32-Bl(t)+o|n<<o|r,vu=i+e}else yu=1<<i|n<<o|r,vu=e}function NN(e){e.return!==null&&(yp(e,1),nQ(e,1,0))}function FN(e){for(;e===sE;)sE=dg[--fg],dg[fg]=null,lE=dg[--fg],dg[fg]=null;for(;e===ch;)ch=Rs[--Ds],Rs[Ds]=null,vu=Rs[--Ds],Rs[Ds]=null,yu=Rs[--Ds],Rs[Ds]=null}var Wa=null,Ha=null,Lr=!1,Rl=null;function rQ(e,t){var n=Ns(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function M4(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Wa=e,Ha=rf(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wa=e,Ha=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ch!==null?{id:yu,overflow:vu}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ns(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Wa=e,Ha=null,!0):!1;default:return!1}}function x2(e){return(e.mode&1)!==0&&(e.flags&128)===0}function S2(e){if(Lr){var t=Ha;if(t){var n=t;if(!M4(e,t)){if(x2(e))throw Error(it(418));t=rf(n.nextSibling);var r=Wa;t&&M4(e,t)?rQ(r,n):(e.flags=e.flags&-4097|2,Lr=!1,Wa=e)}}else{if(x2(e))throw Error(it(418));e.flags=e.flags&-4097|2,Lr=!1,Wa=e}}}function A4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wa=e}function cC(e){if(e!==Wa)return!1;if(!Lr)return A4(e),Lr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!y2(e.type,e.memoizedProps)),t&&(t=Ha)){if(x2(e))throw oQ(),Error(it(418));for(;t;)rQ(e,t),t=rf(t.nextSibling)}if(A4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(it(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ha=rf(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ha=null}}else Ha=Wa?rf(e.stateNode.nextSibling):null;return!0}function oQ(){for(var e=Ha;e;)e=rf(e.nextSibling)}function yy(){Ha=Wa=null,Lr=!1}function jN(e){Rl===null?Rl=[e]:Rl.push(e)}var ESe=Qu.ReactCurrentBatchConfig;function Fb(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(it(309));var r=n.stateNode}if(!r)throw Error(it(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(it(284));if(!n._owner)throw Error(it(290,e))}return e}function uC(e,t){throw e=Object.prototype.toString.call(t),Error(it(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $4(e){var t=e._init;return t(e._payload)}function iQ(e){function t(b,x){if(e){var S=b.deletions;S===null?(b.deletions=[x],b.flags|=16):S.push(x)}}function n(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function r(b,x){for(b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function o(b,x){return b=lf(b,x),b.index=0,b.sibling=null,b}function i(b,x,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<x?(b.flags|=2,x):S):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,x,S,P){return x===null||x.tag!==6?(x=GA(S,b.mode,P),x.return=b,x):(x=o(x,S),x.return=b,x)}function l(b,x,S,P){var E=S.type;return E===ig?u(b,x,S.props.children,P,S.key):x!==null&&(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Td&&$4(E)===x.type)?(P=o(x,S.props),P.ref=Fb(b,x,S),P.return=b,P):(P=xP(S.type,S.key,S.props,null,b.mode,P),P.ref=Fb(b,x,S),P.return=b,P)}function c(b,x,S,P){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=qA(S,b.mode,P),x.return=b,x):(x=o(x,S.children||[]),x.return=b,x)}function u(b,x,S,P,E){return x===null||x.tag!==7?(x=Kp(S,b.mode,P,E),x.return=b,x):(x=o(x,S),x.return=b,x)}function d(b,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return x=GA(""+x,b.mode,S),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Z1:return S=xP(x.type,x.key,x.props,null,b.mode,S),S.ref=Fb(b,null,x),S.return=b,S;case og:return x=qA(x,b.mode,S),x.return=b,x;case Td:var P=x._init;return d(b,P(x._payload),S)}if(S0(x)||Rb(x))return x=Kp(x,b.mode,S,null),x.return=b,x;uC(b,x)}return null}function f(b,x,S,P){var E=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return E!==null?null:s(b,x,""+S,P);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Z1:return S.key===E?l(b,x,S,P):null;case og:return S.key===E?c(b,x,S,P):null;case Td:return E=S._init,f(b,x,E(S._payload),P)}if(S0(S)||Rb(S))return E!==null?null:u(b,x,S,P,null);uC(b,S)}return null}function p(b,x,S,P,E){if(typeof P=="string"&&P!==""||typeof P=="number")return b=b.get(S)||null,s(x,b,""+P,E);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Z1:return b=b.get(P.key===null?S:P.key)||null,l(x,b,P,E);case og:return b=b.get(P.key===null?S:P.key)||null,c(x,b,P,E);case Td:var T=P._init;return p(b,x,S,T(P._payload),E)}if(S0(P)||Rb(P))return b=b.get(S)||null,u(x,b,P,E,null);uC(x,P)}return null}function m(b,x,S,P){for(var E=null,T=null,O=x,k=x=0,M=null;O!==null&&k<S.length;k++){O.index>k?(M=O,O=null):M=O.sibling;var I=f(b,O,S[k],P);if(I===null){O===null&&(O=M);break}e&&O&&I.alternate===null&&t(b,O),x=i(I,x,k),T===null?E=I:T.sibling=I,T=I,O=M}if(k===S.length)return n(b,O),Lr&&yp(b,k),E;if(O===null){for(;k<S.length;k++)O=d(b,S[k],P),O!==null&&(x=i(O,x,k),T===null?E=O:T.sibling=O,T=O);return Lr&&yp(b,k),E}for(O=r(b,O);k<S.length;k++)M=p(O,b,k,S[k],P),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?k:M.key),x=i(M,x,k),T===null?E=M:T.sibling=M,T=M);return e&&O.forEach(function(R){return t(b,R)}),Lr&&yp(b,k),E}function g(b,x,S,P){var E=Rb(S);if(typeof E!="function")throw Error(it(150));if(S=E.call(S),S==null)throw Error(it(151));for(var T=E=null,O=x,k=x=0,M=null,I=S.next();O!==null&&!I.done;k++,I=S.next()){O.index>k?(M=O,O=null):M=O.sibling;var R=f(b,O,I.value,P);if(R===null){O===null&&(O=M);break}e&&O&&R.alternate===null&&t(b,O),x=i(R,x,k),T===null?E=R:T.sibling=R,T=R,O=M}if(I.done)return n(b,O),Lr&&yp(b,k),E;if(O===null){for(;!I.done;k++,I=S.next())I=d(b,I.value,P),I!==null&&(x=i(I,x,k),T===null?E=I:T.sibling=I,T=I);return Lr&&yp(b,k),E}for(O=r(b,O);!I.done;k++,I=S.next())I=p(O,b,k,I.value,P),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?k:I.key),x=i(I,x,k),T===null?E=I:T.sibling=I,T=I);return e&&O.forEach(function(_){return t(b,_)}),Lr&&yp(b,k),E}function y(b,x,S,P){if(typeof S=="object"&&S!==null&&S.type===ig&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Z1:e:{for(var E=S.key,T=x;T!==null;){if(T.key===E){if(E=S.type,E===ig){if(T.tag===7){n(b,T.sibling),x=o(T,S.props.children),x.return=b,b=x;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Td&&$4(E)===T.type){n(b,T.sibling),x=o(T,S.props),x.ref=Fb(b,T,S),x.return=b,b=x;break e}n(b,T);break}else t(b,T);T=T.sibling}S.type===ig?(x=Kp(S.props.children,b.mode,P,S.key),x.return=b,b=x):(P=xP(S.type,S.key,S.props,null,b.mode,P),P.ref=Fb(b,x,S),P.return=b,b=P)}return a(b);case og:e:{for(T=S.key;x!==null;){if(x.key===T)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(b,x.sibling),x=o(x,S.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=qA(S,b.mode,P),x.return=b,b=x}return a(b);case Td:return T=S._init,y(b,x,T(S._payload),P)}if(S0(S))return m(b,x,S,P);if(Rb(S))return g(b,x,S,P);uC(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,S),x.return=b,b=x):(n(b,x),x=GA(S,b.mode,P),x.return=b,b=x),a(b)):n(b,x)}return y}var vy=iQ(!0),aQ=iQ(!1),cE=kf(null),uE=null,pg=null,BN=null;function zN(){BN=pg=uE=null}function VN(e){var t=cE.current;Mr(cE),e._currentValue=t}function C2(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jg(e,t){uE=e,BN=pg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ca=!0),e.firstContext=null)}function Qs(e){var t=e._currentValue;if(BN!==e)if(e={context:e,memoizedValue:t,next:null},pg===null){if(uE===null)throw Error(it(308));pg=e,uE.dependencies={lanes:0,firstContext:e}}else pg=pg.next=e;return t}var kp=null;function HN(e){kp===null?kp=[e]:kp.push(e)}function sQ(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,HN(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fu(e,r)}function Fu(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Od=!1;function UN(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lQ(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 Su(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function of(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jn&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fu(e,n)}return o=r.interleaved,o===null?(t.next=t,HN(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fu(e,n)}function mP(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kN(e,n)}}function R4(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dE(e,t,n,r){var o=e.updateQueue;Od=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(f=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=Ur({},d,f);break e;case 2:Od=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);dh|=a,e.lanes=a,e.memoizedState=d}}function D4(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(it(191,o));o.call(r)}}}var lS={},Tc=kf(lS),Dw=kf(lS),_w=kf(lS);function Mp(e){if(e===lS)throw Error(it(174));return e}function WN(e,t){switch(xr(_w,t),xr(Dw,e),xr(Tc,lS),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:r2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=r2(t,e)}Mr(Tc),xr(Tc,t)}function by(){Mr(Tc),Mr(Dw),Mr(_w)}function cQ(e){Mp(_w.current);var t=Mp(Tc.current),n=r2(t,e.type);t!==n&&(xr(Dw,e),xr(Tc,n))}function GN(e){Dw.current===e&&(Mr(Tc),Mr(Dw))}var zr=kf(0);function fE(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var BA=[];function qN(){for(var e=0;e<BA.length;e++)BA[e]._workInProgressVersionPrimary=null;BA.length=0}var gP=Qu.ReactCurrentDispatcher,zA=Qu.ReactCurrentBatchConfig,uh=0,Hr=null,Oo=null,Bo=null,pE=!1,U0=!1,Lw=0,TSe=0;function ci(){throw Error(it(321))}function KN(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ql(e[n],t[n]))return!1;return!0}function YN(e,t,n,r,o,i){if(uh=i,Hr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gP.current=e===null||e.memoizedState===null?MSe:ASe,e=n(r,o),U0){i=0;do{if(U0=!1,Lw=0,25<=i)throw Error(it(301));i+=1,Bo=Oo=null,t.updateQueue=null,gP.current=$Se,e=n(r,o)}while(U0)}if(gP.current=hE,t=Oo!==null&&Oo.next!==null,uh=0,Bo=Oo=Hr=null,pE=!1,t)throw Error(it(300));return e}function XN(){var e=Lw!==0;return Lw=0,e}function cc(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Hr.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function Js(){if(Oo===null){var e=Hr.alternate;e=e!==null?e.memoizedState:null}else e=Oo.next;var t=Bo===null?Hr.memoizedState:Bo.next;if(t!==null)Bo=t,Oo=e;else{if(e===null)throw Error(it(310));Oo=e,e={memoizedState:Oo.memoizedState,baseState:Oo.baseState,baseQueue:Oo.baseQueue,queue:Oo.queue,next:null},Bo===null?Hr.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function Nw(e,t){return typeof t=="function"?t(e):t}function VA(e){var t=Js(),n=t.queue;if(n===null)throw Error(it(311));n.lastRenderedReducer=e;var r=Oo,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((uh&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Hr.lanes|=u,dh|=u}c=c.next}while(c!==null&&c!==i);l===null?a=r:l.next=s,ql(r,t.memoizedState)||(ca=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Hr.lanes|=i,dh|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function HA(e){var t=Js(),n=t.queue;if(n===null)throw Error(it(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ql(i,t.memoizedState)||(ca=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function uQ(){}function dQ(e,t){var n=Hr,r=Js(),o=t(),i=!ql(r.memoizedState,o);if(i&&(r.memoizedState=o,ca=!0),r=r.queue,QN(hQ.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Bo!==null&&Bo.memoizedState.tag&1){if(n.flags|=2048,Fw(9,pQ.bind(null,n,r,o,t),void 0,null),Uo===null)throw Error(it(349));uh&30||fQ(n,t,o)}return o}function fQ(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Hr.updateQueue,t===null?(t={lastEffect:null,stores:null},Hr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pQ(e,t,n,r){t.value=n,t.getSnapshot=r,mQ(t)&&gQ(e)}function hQ(e,t,n){return n(function(){mQ(t)&&gQ(e)})}function mQ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ql(e,n)}catch{return!0}}function gQ(e){var t=Fu(e,1);t!==null&&zl(t,e,1,-1)}function _4(e){var t=cc();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nw,lastRenderedState:e},t.queue=e,e=e.dispatch=kSe.bind(null,Hr,e),[t.memoizedState,e]}function Fw(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Hr.updateQueue,t===null?(t={lastEffect:null,stores:null},Hr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function yQ(){return Js().memoizedState}function yP(e,t,n,r){var o=cc();Hr.flags|=e,o.memoizedState=Fw(1|t,n,void 0,r===void 0?null:r)}function WO(e,t,n,r){var o=Js();r=r===void 0?null:r;var i=void 0;if(Oo!==null){var a=Oo.memoizedState;if(i=a.destroy,r!==null&&KN(r,a.deps)){o.memoizedState=Fw(t,n,i,r);return}}Hr.flags|=e,o.memoizedState=Fw(1|t,n,i,r)}function L4(e,t){return yP(8390656,8,e,t)}function QN(e,t){return WO(2048,8,e,t)}function vQ(e,t){return WO(4,2,e,t)}function bQ(e,t){return WO(4,4,e,t)}function wQ(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 xQ(e,t,n){return n=n!=null?n.concat([e]):null,WO(4,4,wQ.bind(null,t,e),n)}function JN(){}function SQ(e,t){var n=Js();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KN(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function CQ(e,t){var n=Js();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KN(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function PQ(e,t,n){return uh&21?(ql(n,t)||(n=kX(),Hr.lanes|=n,dh|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ca=!0),e.memoizedState=n)}function OSe(e,t){var n=ir;ir=n!==0&&4>n?n:4,e(!0);var r=zA.transition;zA.transition={};try{e(!1),t()}finally{ir=n,zA.transition=r}}function EQ(){return Js().memoizedState}function ISe(e,t,n){var r=sf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},TQ(e))OQ(t,n);else if(n=sQ(e,t,n,r),n!==null){var o=Bi();zl(n,e,r,o),IQ(n,t,r)}}function kSe(e,t,n){var r=sf(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(TQ(e))OQ(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,ql(s,a)){var l=t.interleaved;l===null?(o.next=o,HN(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=sQ(e,t,o,r),n!==null&&(o=Bi(),zl(n,e,r,o),IQ(n,t,r))}}function TQ(e){var t=e.alternate;return e===Hr||t!==null&&t===Hr}function OQ(e,t){U0=pE=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function IQ(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kN(e,n)}}var hE={readContext:Qs,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useInsertionEffect:ci,useLayoutEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useMutableSource:ci,useSyncExternalStore:ci,useId:ci,unstable_isNewReconciler:!1},MSe={readContext:Qs,useCallback:function(e,t){return cc().memoizedState=[e,t===void 0?null:t],e},useContext:Qs,useEffect:L4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yP(4194308,4,wQ.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yP(4194308,4,e,t)},useInsertionEffect:function(e,t){return yP(4,2,e,t)},useMemo:function(e,t){var n=cc();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=cc();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ISe.bind(null,Hr,e),[r.memoizedState,e]},useRef:function(e){var t=cc();return e={current:e},t.memoizedState=e},useState:_4,useDebugValue:JN,useDeferredValue:function(e){return cc().memoizedState=e},useTransition:function(){var e=_4(!1),t=e[0];return e=OSe.bind(null,e[1]),cc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Hr,o=cc();if(Lr){if(n===void 0)throw Error(it(407));n=n()}else{if(n=t(),Uo===null)throw Error(it(349));uh&30||fQ(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,L4(hQ.bind(null,r,i,e),[e]),r.flags|=2048,Fw(9,pQ.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=cc(),t=Uo.identifierPrefix;if(Lr){var n=vu,r=yu;n=(r&~(1<<32-Bl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Lw++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=TSe++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ASe={readContext:Qs,useCallback:SQ,useContext:Qs,useEffect:QN,useImperativeHandle:xQ,useInsertionEffect:vQ,useLayoutEffect:bQ,useMemo:CQ,useReducer:VA,useRef:yQ,useState:function(){return VA(Nw)},useDebugValue:JN,useDeferredValue:function(e){var t=Js();return PQ(t,Oo.memoizedState,e)},useTransition:function(){var e=VA(Nw)[0],t=Js().memoizedState;return[e,t]},useMutableSource:uQ,useSyncExternalStore:dQ,useId:EQ,unstable_isNewReconciler:!1},$Se={readContext:Qs,useCallback:SQ,useContext:Qs,useEffect:QN,useImperativeHandle:xQ,useInsertionEffect:vQ,useLayoutEffect:bQ,useMemo:CQ,useReducer:HA,useRef:yQ,useState:function(){return HA(Nw)},useDebugValue:JN,useDeferredValue:function(e){var t=Js();return Oo===null?t.memoizedState=e:PQ(t,Oo.memoizedState,e)},useTransition:function(){var e=HA(Nw)[0],t=Js().memoizedState;return[e,t]},useMutableSource:uQ,useSyncExternalStore:dQ,useId:EQ,unstable_isNewReconciler:!1};function El(e,t){if(e&&e.defaultProps){t=Ur({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function P2(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ur({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var GO={isMounted:function(e){return(e=e._reactInternals)?$h(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Bi(),o=sf(e),i=Su(r,o);i.payload=t,n!=null&&(i.callback=n),t=of(e,i,o),t!==null&&(zl(t,e,o,r),mP(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Bi(),o=sf(e),i=Su(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=of(e,i,o),t!==null&&(zl(t,e,o,r),mP(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bi(),r=sf(e),o=Su(n,r);o.tag=2,t!=null&&(o.callback=t),t=of(e,o,r),t!==null&&(zl(t,e,r,n),mP(t,e,r))}};function N4(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Mw(n,r)||!Mw(o,i):!0}function kQ(e,t,n){var r=!1,o=yf,i=t.contextType;return typeof i=="object"&&i!==null?i=Qs(i):(o=fa(t)?lh:xi.current,r=t.contextTypes,i=(r=r!=null)?gy(e,o):yf),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=GO,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function F4(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&GO.enqueueReplaceState(t,t.state,null)}function E2(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},UN(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Qs(i):(i=fa(t)?lh:xi.current,o.context=gy(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(P2(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&GO.enqueueReplaceState(o,o.state,null),dE(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function wy(e,t){try{var n="",r=t;do n+=axe(r),r=r.return;while(r);var o=n}catch(i){o=`
+`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{a$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W0(e):""}function gSe(e){switch(e.tag){case 5:return W0(e.type);case 16:return W0("Lazy");case 13:return W0("Suspense");case 19:return W0("SuspenseList");case 0:case 2:case 15:return e=s$(e.type,!1),e;case 11:return e=s$(e.type.render,!1),e;case 1:return e=s$(e.type,!0),e;default:return""}}function D2(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 Cg:return"Fragment";case Sg:return"Portal";case A2:return"Profiler";case lF:return"StrictMode";case $2:return"Suspense";case R2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cQ:return(e.displayName||"Context")+".Consumer";case lQ:return(e._context.displayName||"Context")+".Provider";case cF:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uF:return t=e.displayName||null,t!==null?t:D2(e.type)||"Memo";case Bd:t=e._payload,e=e._init;try{return D2(e(t))}catch{}}return null}function ySe(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 D2(t);case 8:return t===lF?"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 Af(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dQ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vSe(e){var t=dQ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function PC(e){e._valueTracker||(e._valueTracker=vSe(e))}function fQ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dQ(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function SE(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 _2(e,t){var n=t.checked;return Wr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Af(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pQ(e,t){t=t.checked,t!=null&&sF(e,"checked",t,!1)}function L2(e,t){pQ(e,t);var n=Af(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?N2(e,t.type,n):t.hasOwnProperty("defaultValue")&&N2(e,t.type,Af(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function U4(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function N2(e,t,n){(t!=="number"||SE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var G0=Array.isArray;function Zg(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Af(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function F2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(it(91));return Wr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function W4(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(it(92));if(G0(n)){if(1<n.length)throw Error(it(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Af(n)}}function hQ(e,t){var n=Af(t.value),r=Af(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function G4(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mQ(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 j2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mQ(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var EC,gQ=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(EC=EC||document.createElement("div"),EC.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=EC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cw={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},bSe=["Webkit","ms","Moz","O"];Object.keys(cw).forEach(function(e){bSe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cw[t]=cw[e]})});function yQ(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cw.hasOwnProperty(e)&&cw[e]?(""+t).trim():t+"px"}function vQ(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=yQ(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wSe=Wr({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 B2(e,t){if(t){if(wSe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(it(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(it(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(it(61))}if(t.style!=null&&typeof t.style!="object")throw Error(it(62))}}function z2(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 V2=null;function dF(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var H2=null,ey=null,ty=null;function q4(e){if(e=MS(e)){if(typeof H2!="function")throw Error(it(280));var t=e.stateNode;t&&(t=gI(t),H2(e.stateNode,e.type,t))}}function bQ(e){ey?ty?ty.push(e):ty=[e]:ey=e}function wQ(){if(ey){var e=ey,t=ty;if(ty=ey=null,q4(e),t)for(e=0;e<t.length;e++)q4(t[e])}}function xQ(e,t){return e(t)}function SQ(){}var l$=!1;function CQ(e,t,n){if(l$)return e(t,n);l$=!0;try{return xQ(e,t,n)}finally{l$=!1,(ey!==null||ty!==null)&&(SQ(),wQ())}}function Yw(e,t){var n=e.stateNode;if(n===null)return null;var r=gI(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(it(231,t,typeof n));return n}var U2=!1;if(Ku)try{var o0={};Object.defineProperty(o0,"passive",{get:function(){U2=!0}}),window.addEventListener("test",o0,o0),window.removeEventListener("test",o0,o0)}catch{U2=!1}function xSe(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var uw=!1,CE=null,PE=!1,W2=null,SSe={onError:function(e){uw=!0,CE=e}};function CSe(e,t,n,r,o,i,a,s,l){uw=!1,CE=null,xSe.apply(SSe,arguments)}function PSe(e,t,n,r,o,i,a,s,l){if(CSe.apply(this,arguments),uw){if(uw){var c=CE;uw=!1,CE=null}else throw Error(it(198));PE||(PE=!0,W2=c)}}function Xh(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function PQ(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 K4(e){if(Xh(e)!==e)throw Error(it(188))}function ESe(e){var t=e.alternate;if(!t){if(t=Xh(e),t===null)throw Error(it(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return K4(o),e;if(i===r)return K4(o),t;i=i.sibling}throw Error(it(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(it(189))}}if(n.alternate!==r)throw Error(it(190))}if(n.tag!==3)throw Error(it(188));return n.stateNode.current===n?e:t}function EQ(e){return e=ESe(e),e!==null?TQ(e):null}function TQ(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=TQ(e);if(t!==null)return t;e=e.sibling}return null}var OQ=os.unstable_scheduleCallback,Y4=os.unstable_cancelCallback,TSe=os.unstable_shouldYield,OSe=os.unstable_requestPaint,so=os.unstable_now,ISe=os.unstable_getCurrentPriorityLevel,fF=os.unstable_ImmediatePriority,IQ=os.unstable_UserBlockingPriority,EE=os.unstable_NormalPriority,kSe=os.unstable_LowPriority,kQ=os.unstable_IdlePriority,fI=null,_c=null;function MSe(e){if(_c&&typeof _c.onCommitFiberRoot=="function")try{_c.onCommitFiberRoot(fI,e,void 0,(e.current.flags&128)===128)}catch{}}var Ql=Math.clz32?Math.clz32:RSe,ASe=Math.log,$Se=Math.LN2;function RSe(e){return e>>>=0,e===0?32:31-(ASe(e)/$Se|0)|0}var TC=64,OC=4194304;function q0(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 TE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=q0(s):(i&=a,i!==0&&(r=q0(i)))}else a=n&~o,a!==0?r=q0(a):i!==0&&(r=q0(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ql(t),o=1<<n,r|=e[n],t&=~o;return r}function DSe(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 _Se(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Ql(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=DSe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function G2(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function MQ(){var e=TC;return TC<<=1,!(TC&4194240)&&(TC=64),e}function c$(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function IS(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ql(t),e[t]=n}function LSe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ql(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function pF(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ql(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var rr=0;function AQ(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $Q,hF,RQ,DQ,_Q,q2=!1,IC=[],gf=null,yf=null,vf=null,Xw=new Map,Qw=new Map,Wd=[],NSe="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 X4(e,t){switch(e){case"focusin":case"focusout":gf=null;break;case"dragenter":case"dragleave":yf=null;break;case"mouseover":case"mouseout":vf=null;break;case"pointerover":case"pointerout":Xw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qw.delete(t.pointerId)}}function i0(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=MS(t),t!==null&&hF(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function FSe(e,t,n,r,o){switch(t){case"focusin":return gf=i0(gf,e,t,n,r,o),!0;case"dragenter":return yf=i0(yf,e,t,n,r,o),!0;case"mouseover":return vf=i0(vf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Xw.set(i,i0(Xw.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Qw.set(i,i0(Qw.get(i)||null,e,t,n,r,o)),!0}return!1}function LQ(e){var t=Wp(e.target);if(t!==null){var n=Xh(t);if(n!==null){if(t=n.tag,t===13){if(t=PQ(n),t!==null){e.blockedOn=t,_Q(e.priority,function(){RQ(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _P(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=K2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);V2=r,n.target.dispatchEvent(r),V2=null}else return t=MS(n),t!==null&&hF(t),e.blockedOn=n,!1;t.shift()}return!0}function Q4(e,t,n){_P(e)&&n.delete(t)}function jSe(){q2=!1,gf!==null&&_P(gf)&&(gf=null),yf!==null&&_P(yf)&&(yf=null),vf!==null&&_P(vf)&&(vf=null),Xw.forEach(Q4),Qw.forEach(Q4)}function a0(e,t){e.blockedOn===t&&(e.blockedOn=null,q2||(q2=!0,os.unstable_scheduleCallback(os.unstable_NormalPriority,jSe)))}function Jw(e){function t(o){return a0(o,e)}if(0<IC.length){a0(IC[0],e);for(var n=1;n<IC.length;n++){var r=IC[n];r.blockedOn===e&&(r.blockedOn=null)}}for(gf!==null&&a0(gf,e),yf!==null&&a0(yf,e),vf!==null&&a0(vf,e),Xw.forEach(t),Qw.forEach(t),n=0;n<Wd.length;n++)r=Wd[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wd.length&&(n=Wd[0],n.blockedOn===null);)LQ(n),n.blockedOn===null&&Wd.shift()}var ny=dd.ReactCurrentBatchConfig,OE=!0;function BSe(e,t,n,r){var o=rr,i=ny.transition;ny.transition=null;try{rr=1,mF(e,t,n,r)}finally{rr=o,ny.transition=i}}function zSe(e,t,n,r){var o=rr,i=ny.transition;ny.transition=null;try{rr=4,mF(e,t,n,r)}finally{rr=o,ny.transition=i}}function mF(e,t,n,r){if(OE){var o=K2(e,t,n,r);if(o===null)b$(e,t,r,IE,n),X4(e,r);else if(FSe(o,e,t,n,r))r.stopPropagation();else if(X4(e,r),t&4&&-1<NSe.indexOf(e)){for(;o!==null;){var i=MS(o);if(i!==null&&$Q(i),i=K2(e,t,n,r),i===null&&b$(e,t,r,IE,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else b$(e,t,r,null,n)}}var IE=null;function K2(e,t,n,r){if(IE=null,e=dF(r),e=Wp(e),e!==null)if(t=Xh(e),t===null)e=null;else if(n=t.tag,n===13){if(e=PQ(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return IE=e,null}function NQ(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(ISe()){case fF:return 1;case IQ:return 4;case EE:case kSe:return 16;case kQ:return 536870912;default:return 16}default:return 16}}var lf=null,gF=null,LP=null;function FQ(){if(LP)return LP;var e,t=gF,n=t.length,r,o="value"in lf?lf.value:lf.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return LP=o.slice(e,1<r?1-r:void 0)}function NP(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 kC(){return!0}function J4(){return!1}function ds(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?kC:J4,this.isPropagationStopped=J4,this}return Wr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=kC)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kC)},persist:function(){},isPersistent:kC}),t}var Bv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yF=ds(Bv),kS=Wr({},Bv,{view:0,detail:0}),VSe=ds(kS),u$,d$,s0,pI=Wr({},kS,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vF,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!==s0&&(s0&&e.type==="mousemove"?(u$=e.screenX-s0.screenX,d$=e.screenY-s0.screenY):d$=u$=0,s0=e),u$)},movementY:function(e){return"movementY"in e?e.movementY:d$}}),Z4=ds(pI),HSe=Wr({},pI,{dataTransfer:0}),USe=ds(HSe),WSe=Wr({},kS,{relatedTarget:0}),f$=ds(WSe),GSe=Wr({},Bv,{animationName:0,elapsedTime:0,pseudoElement:0}),qSe=ds(GSe),KSe=Wr({},Bv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),YSe=ds(KSe),XSe=Wr({},Bv,{data:0}),e3=ds(XSe),QSe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JSe={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"},ZSe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e1e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZSe[e])?!!t[e]:!1}function vF(){return e1e}var t1e=Wr({},kS,{key:function(e){if(e.key){var t=QSe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=NP(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JSe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vF,charCode:function(e){return e.type==="keypress"?NP(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?NP(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n1e=ds(t1e),r1e=Wr({},pI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),t3=ds(r1e),o1e=Wr({},kS,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vF}),i1e=ds(o1e),a1e=Wr({},Bv,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1e=ds(a1e),l1e=Wr({},pI,{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}),c1e=ds(l1e),u1e=[9,13,27,32],bF=Ku&&"CompositionEvent"in window,dw=null;Ku&&"documentMode"in document&&(dw=document.documentMode);var d1e=Ku&&"TextEvent"in window&&!dw,jQ=Ku&&(!bF||dw&&8<dw&&11>=dw),n3=" ",r3=!1;function BQ(e,t){switch(e){case"keyup":return u1e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zQ(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pg=!1;function f1e(e,t){switch(e){case"compositionend":return zQ(t);case"keypress":return t.which!==32?null:(r3=!0,n3);case"textInput":return e=t.data,e===n3&&r3?null:e;default:return null}}function p1e(e,t){if(Pg)return e==="compositionend"||!bF&&BQ(e,t)?(e=FQ(),LP=gF=lf=null,Pg=!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 jQ&&t.locale!=="ko"?null:t.data;default:return null}}var h1e={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 o3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!h1e[e.type]:t==="textarea"}function VQ(e,t,n,r){bQ(r),t=kE(t,"onChange"),0<t.length&&(n=new yF("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fw=null,Zw=null;function m1e(e){ZQ(e,0)}function hI(e){var t=Og(e);if(fQ(t))return e}function g1e(e,t){if(e==="change")return t}var HQ=!1;if(Ku){var p$;if(Ku){var h$="oninput"in document;if(!h$){var i3=document.createElement("div");i3.setAttribute("oninput","return;"),h$=typeof i3.oninput=="function"}p$=h$}else p$=!1;HQ=p$&&(!document.documentMode||9<document.documentMode)}function a3(){fw&&(fw.detachEvent("onpropertychange",UQ),Zw=fw=null)}function UQ(e){if(e.propertyName==="value"&&hI(Zw)){var t=[];VQ(t,Zw,e,dF(e)),CQ(m1e,t)}}function y1e(e,t,n){e==="focusin"?(a3(),fw=t,Zw=n,fw.attachEvent("onpropertychange",UQ)):e==="focusout"&&a3()}function v1e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hI(Zw)}function b1e(e,t){if(e==="click")return hI(t)}function w1e(e,t){if(e==="input"||e==="change")return hI(t)}function x1e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ic=typeof Object.is=="function"?Object.is:x1e;function ex(e,t){if(ic(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!M2.call(t,o)||!ic(e[o],t[o]))return!1}return!0}function s3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function l3(e,t){var n=s3(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=s3(n)}}function WQ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WQ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GQ(){for(var e=window,t=SE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=SE(e.document)}return t}function wF(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 S1e(e){var t=GQ(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WQ(n.ownerDocument.documentElement,n)){if(r!==null&&wF(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=l3(n,i);var a=l3(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var C1e=Ku&&"documentMode"in document&&11>=document.documentMode,Eg=null,Y2=null,pw=null,X2=!1;function c3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;X2||Eg==null||Eg!==SE(r)||(r=Eg,"selectionStart"in r&&wF(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pw&&ex(pw,r)||(pw=r,r=kE(Y2,"onSelect"),0<r.length&&(t=new yF("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Eg)))}function MC(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tg={animationend:MC("Animation","AnimationEnd"),animationiteration:MC("Animation","AnimationIteration"),animationstart:MC("Animation","AnimationStart"),transitionend:MC("Transition","TransitionEnd")},m$={},qQ={};Ku&&(qQ=document.createElement("div").style,"AnimationEvent"in window||(delete Tg.animationend.animation,delete Tg.animationiteration.animation,delete Tg.animationstart.animation),"TransitionEvent"in window||delete Tg.transitionend.transition);function mI(e){if(m$[e])return m$[e];if(!Tg[e])return e;var t=Tg[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qQ)return m$[e]=t[n];return e}var KQ=mI("animationend"),YQ=mI("animationiteration"),XQ=mI("animationstart"),QQ=mI("transitionend"),JQ=new Map,u3="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 Uf(e,t){JQ.set(e,t),Yh(t,[e])}for(var g$=0;g$<u3.length;g$++){var y$=u3[g$],P1e=y$.toLowerCase(),E1e=y$[0].toUpperCase()+y$.slice(1);Uf(P1e,"on"+E1e)}Uf(KQ,"onAnimationEnd");Uf(YQ,"onAnimationIteration");Uf(XQ,"onAnimationStart");Uf("dblclick","onDoubleClick");Uf("focusin","onFocus");Uf("focusout","onBlur");Uf(QQ,"onTransitionEnd");Ly("onMouseEnter",["mouseout","mouseover"]);Ly("onMouseLeave",["mouseout","mouseover"]);Ly("onPointerEnter",["pointerout","pointerover"]);Ly("onPointerLeave",["pointerout","pointerover"]);Yh("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yh("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yh("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yh("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yh("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yh("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var K0="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(" "),T1e=new Set("cancel close invalid load scroll toggle".split(" ").concat(K0));function d3(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,PSe(r,t,void 0,e),e.currentTarget=null}function ZQ(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;d3(o,s,c),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;d3(o,s,c),i=l}}}if(PE)throw e=W2,PE=!1,W2=null,e}function Tr(e,t){var n=t[tD];n===void 0&&(n=t[tD]=new Set);var r=e+"__bubble";n.has(r)||(eJ(t,e,2,!1),n.add(r))}function v$(e,t,n){var r=0;t&&(r|=4),eJ(n,e,r,t)}var AC="_reactListening"+Math.random().toString(36).slice(2);function tx(e){if(!e[AC]){e[AC]=!0,sQ.forEach(function(n){n!=="selectionchange"&&(T1e.has(n)||v$(n,!1,e),v$(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[AC]||(t[AC]=!0,v$("selectionchange",!1,t))}}function eJ(e,t,n,r){switch(NQ(t)){case 1:var o=BSe;break;case 4:o=zSe;break;default:o=mF}n=o.bind(null,t,n,e),o=void 0,!U2||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function b$(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Wp(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}CQ(function(){var c=i,u=dF(n),d=[];e:{var f=JQ.get(e);if(f!==void 0){var p=yF,m=e;switch(e){case"keypress":if(NP(n)===0)break e;case"keydown":case"keyup":p=n1e;break;case"focusin":m="focus",p=f$;break;case"focusout":m="blur",p=f$;break;case"beforeblur":case"afterblur":p=f$;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Z4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=USe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=i1e;break;case KQ:case YQ:case XQ:p=qSe;break;case QQ:p=s1e;break;case"scroll":p=VSe;break;case"wheel":p=c1e;break;case"copy":case"cut":case"paste":p=YSe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=t3}var g=(t&4)!==0,y=!g&&e==="scroll",b=g?f!==null?f+"Capture":null:f;g=[];for(var x=c,S;x!==null;){S=x;var P=S.stateNode;if(S.tag===5&&P!==null&&(S=P,b!==null&&(P=Yw(x,b),P!=null&&g.push(nx(x,P,S)))),y)break;x=x.return}0<g.length&&(f=new p(f,m,null,n,u),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==V2&&(m=n.relatedTarget||n.fromElement)&&(Wp(m)||m[Yu]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?Wp(m):null,m!==null&&(y=Xh(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=Z4,P="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=t3,P="onPointerLeave",b="onPointerEnter",x="pointer"),y=p==null?f:Og(p),S=m==null?f:Og(m),f=new g(P,x+"leave",p,n,u),f.target=y,f.relatedTarget=S,P=null,Wp(u)===c&&(g=new g(b,x+"enter",m,n,u),g.target=S,g.relatedTarget=y,P=g),y=P,p&&m)t:{for(g=p,b=m,x=0,S=g;S;S=Um(S))x++;for(S=0,P=b;P;P=Um(P))S++;for(;0<x-S;)g=Um(g),x--;for(;0<S-x;)b=Um(b),S--;for(;x--;){if(g===b||b!==null&&g===b.alternate)break t;g=Um(g),b=Um(b)}g=null}else g=null;p!==null&&f3(d,f,p,g,!1),m!==null&&y!==null&&f3(d,y,m,g,!0)}}e:{if(f=c?Og(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var E=g1e;else if(o3(f))if(HQ)E=w1e;else{E=v1e;var T=y1e}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=b1e);if(E&&(E=E(e,c))){VQ(d,E,n,u);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&N2(f,"number",f.value)}switch(T=c?Og(c):window,e){case"focusin":(o3(T)||T.contentEditable==="true")&&(Eg=T,Y2=c,pw=null);break;case"focusout":pw=Y2=Eg=null;break;case"mousedown":X2=!0;break;case"contextmenu":case"mouseup":case"dragend":X2=!1,c3(d,n,u);break;case"selectionchange":if(C1e)break;case"keydown":case"keyup":c3(d,n,u)}var O;if(bF)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Pg?BQ(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(jQ&&n.locale!=="ko"&&(Pg||k!=="onCompositionStart"?k==="onCompositionEnd"&&Pg&&(O=FQ()):(lf=u,gF="value"in lf?lf.value:lf.textContent,Pg=!0)),T=kE(c,k),0<T.length&&(k=new e3(k,e,null,n,u),d.push({event:k,listeners:T}),O?k.data=O:(O=zQ(n),O!==null&&(k.data=O)))),(O=d1e?f1e(e,n):p1e(e,n))&&(c=kE(c,"onBeforeInput"),0<c.length&&(u=new e3("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=O))}ZQ(d,t)})}function nx(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kE(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Yw(e,n),i!=null&&r.unshift(nx(e,i,o)),i=Yw(e,t),i!=null&&r.push(nx(e,i,o))),e=e.return}return r}function Um(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function f3(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,o?(l=Yw(n,i),l!=null&&a.unshift(nx(n,l,s))):o||(l=Yw(n,i),l!=null&&a.push(nx(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var O1e=/\r\n?/g,I1e=/\u0000|\uFFFD/g;function p3(e){return(typeof e=="string"?e:""+e).replace(O1e,`
+`).replace(I1e,"")}function $C(e,t,n){if(t=p3(t),p3(e)!==t&&n)throw Error(it(425))}function ME(){}var Q2=null,J2=null;function Z2(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 eD=typeof setTimeout=="function"?setTimeout:void 0,k1e=typeof clearTimeout=="function"?clearTimeout:void 0,h3=typeof Promise=="function"?Promise:void 0,M1e=typeof queueMicrotask=="function"?queueMicrotask:typeof h3<"u"?function(e){return h3.resolve(null).then(e).catch(A1e)}:eD;function A1e(e){setTimeout(function(){throw e})}function w$(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Jw(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Jw(t)}function bf(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 m3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zv=Math.random().toString(36).slice(2),kc="__reactFiber$"+zv,rx="__reactProps$"+zv,Yu="__reactContainer$"+zv,tD="__reactEvents$"+zv,$1e="__reactListeners$"+zv,R1e="__reactHandles$"+zv;function Wp(e){var t=e[kc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yu]||n[kc]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=m3(e);e!==null;){if(n=e[kc])return n;e=m3(e)}return t}e=n,n=e.parentNode}return null}function MS(e){return e=e[kc]||e[Yu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Og(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(it(33))}function gI(e){return e[rx]||null}var nD=[],Ig=-1;function Wf(e){return{current:e}}function Ar(e){0>Ig||(e.current=nD[Ig],nD[Ig]=null,Ig--)}function xr(e,t){Ig++,nD[Ig]=e.current,e.current=t}var $f={},Ii=Wf($f),ya=Wf(!1),Eh=$f;function Ny(e,t){var n=e.type.contextTypes;if(!n)return $f;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function va(e){return e=e.childContextTypes,e!=null}function AE(){Ar(ya),Ar(Ii)}function g3(e,t,n){if(Ii.current!==$f)throw Error(it(168));xr(Ii,t),xr(ya,n)}function tJ(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(it(108,ySe(e)||"Unknown",o));return Wr({},n,r)}function $E(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$f,Eh=Ii.current,xr(Ii,e),xr(ya,ya.current),!0}function y3(e,t,n){var r=e.stateNode;if(!r)throw Error(it(169));n?(e=tJ(e,t,Eh),r.__reactInternalMemoizedMergedChildContext=e,Ar(ya),Ar(Ii),xr(Ii,e)):Ar(ya),xr(ya,n)}var Pu=null,yI=!1,x$=!1;function nJ(e){Pu===null?Pu=[e]:Pu.push(e)}function D1e(e){yI=!0,nJ(e)}function Gf(){if(!x$&&Pu!==null){x$=!0;var e=0,t=rr;try{var n=Pu;for(rr=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pu=null,yI=!1}catch(o){throw Pu!==null&&(Pu=Pu.slice(e+1)),OQ(fF,Gf),o}finally{rr=t,x$=!1}}return null}var kg=[],Mg=0,RE=null,DE=0,zs=[],Vs=0,Th=null,ku=1,Mu="";function Rp(e,t){kg[Mg++]=DE,kg[Mg++]=RE,RE=e,DE=t}function rJ(e,t,n){zs[Vs++]=ku,zs[Vs++]=Mu,zs[Vs++]=Th,Th=e;var r=ku;e=Mu;var o=32-Ql(r)-1;r&=~(1<<o),n+=1;var i=32-Ql(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ku=1<<32-Ql(t)+o|n<<o|r,Mu=i+e}else ku=1<<i|n<<o|r,Mu=e}function xF(e){e.return!==null&&(Rp(e,1),rJ(e,1,0))}function SF(e){for(;e===RE;)RE=kg[--Mg],kg[Mg]=null,DE=kg[--Mg],kg[Mg]=null;for(;e===Th;)Th=zs[--Vs],zs[Vs]=null,Mu=zs[--Vs],zs[Vs]=null,ku=zs[--Vs],zs[Vs]=null}var Ja=null,Xa=null,Nr=!1,Ul=null;function oJ(e,t){var n=Gs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function v3(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ja=e,Xa=bf(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ja=e,Xa=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Th!==null?{id:ku,overflow:Mu}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gs(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ja=e,Xa=null,!0):!1;default:return!1}}function rD(e){return(e.mode&1)!==0&&(e.flags&128)===0}function oD(e){if(Nr){var t=Xa;if(t){var n=t;if(!v3(e,t)){if(rD(e))throw Error(it(418));t=bf(n.nextSibling);var r=Ja;t&&v3(e,t)?oJ(r,n):(e.flags=e.flags&-4097|2,Nr=!1,Ja=e)}}else{if(rD(e))throw Error(it(418));e.flags=e.flags&-4097|2,Nr=!1,Ja=e}}}function b3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ja=e}function RC(e){if(e!==Ja)return!1;if(!Nr)return b3(e),Nr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Z2(e.type,e.memoizedProps)),t&&(t=Xa)){if(rD(e))throw iJ(),Error(it(418));for(;t;)oJ(e,t),t=bf(t.nextSibling)}if(b3(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(it(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xa=bf(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xa=null}}else Xa=Ja?bf(e.stateNode.nextSibling):null;return!0}function iJ(){for(var e=Xa;e;)e=bf(e.nextSibling)}function Fy(){Xa=Ja=null,Nr=!1}function CF(e){Ul===null?Ul=[e]:Ul.push(e)}var _1e=dd.ReactCurrentBatchConfig;function l0(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(it(309));var r=n.stateNode}if(!r)throw Error(it(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(it(284));if(!n._owner)throw Error(it(290,e))}return e}function DC(e,t){throw e=Object.prototype.toString.call(t),Error(it(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function w3(e){var t=e._init;return t(e._payload)}function aJ(e){function t(b,x){if(e){var S=b.deletions;S===null?(b.deletions=[x],b.flags|=16):S.push(x)}}function n(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function r(b,x){for(b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function o(b,x){return b=Cf(b,x),b.index=0,b.sibling=null,b}function i(b,x,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<x?(b.flags|=2,x):S):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,x,S,P){return x===null||x.tag!==6?(x=I$(S,b.mode,P),x.return=b,x):(x=o(x,S),x.return=b,x)}function l(b,x,S,P){var E=S.type;return E===Cg?u(b,x,S.props.children,P,S.key):x!==null&&(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Bd&&w3(E)===x.type)?(P=o(x,S.props),P.ref=l0(b,x,S),P.return=b,P):(P=UP(S.type,S.key,S.props,null,b.mode,P),P.ref=l0(b,x,S),P.return=b,P)}function c(b,x,S,P){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=k$(S,b.mode,P),x.return=b,x):(x=o(x,S.children||[]),x.return=b,x)}function u(b,x,S,P,E){return x===null||x.tag!==7?(x=dh(S,b.mode,P,E),x.return=b,x):(x=o(x,S),x.return=b,x)}function d(b,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return x=I$(""+x,b.mode,S),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case CC:return S=UP(x.type,x.key,x.props,null,b.mode,S),S.ref=l0(b,null,x),S.return=b,S;case Sg:return x=k$(x,b.mode,S),x.return=b,x;case Bd:var P=x._init;return d(b,P(x._payload),S)}if(G0(x)||r0(x))return x=dh(x,b.mode,S,null),x.return=b,x;DC(b,x)}return null}function f(b,x,S,P){var E=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return E!==null?null:s(b,x,""+S,P);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case CC:return S.key===E?l(b,x,S,P):null;case Sg:return S.key===E?c(b,x,S,P):null;case Bd:return E=S._init,f(b,x,E(S._payload),P)}if(G0(S)||r0(S))return E!==null?null:u(b,x,S,P,null);DC(b,S)}return null}function p(b,x,S,P,E){if(typeof P=="string"&&P!==""||typeof P=="number")return b=b.get(S)||null,s(x,b,""+P,E);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case CC:return b=b.get(P.key===null?S:P.key)||null,l(x,b,P,E);case Sg:return b=b.get(P.key===null?S:P.key)||null,c(x,b,P,E);case Bd:var T=P._init;return p(b,x,S,T(P._payload),E)}if(G0(P)||r0(P))return b=b.get(S)||null,u(x,b,P,E,null);DC(x,P)}return null}function m(b,x,S,P){for(var E=null,T=null,O=x,k=x=0,M=null;O!==null&&k<S.length;k++){O.index>k?(M=O,O=null):M=O.sibling;var I=f(b,O,S[k],P);if(I===null){O===null&&(O=M);break}e&&O&&I.alternate===null&&t(b,O),x=i(I,x,k),T===null?E=I:T.sibling=I,T=I,O=M}if(k===S.length)return n(b,O),Nr&&Rp(b,k),E;if(O===null){for(;k<S.length;k++)O=d(b,S[k],P),O!==null&&(x=i(O,x,k),T===null?E=O:T.sibling=O,T=O);return Nr&&Rp(b,k),E}for(O=r(b,O);k<S.length;k++)M=p(O,b,k,S[k],P),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?k:M.key),x=i(M,x,k),T===null?E=M:T.sibling=M,T=M);return e&&O.forEach(function(R){return t(b,R)}),Nr&&Rp(b,k),E}function g(b,x,S,P){var E=r0(S);if(typeof E!="function")throw Error(it(150));if(S=E.call(S),S==null)throw Error(it(151));for(var T=E=null,O=x,k=x=0,M=null,I=S.next();O!==null&&!I.done;k++,I=S.next()){O.index>k?(M=O,O=null):M=O.sibling;var R=f(b,O,I.value,P);if(R===null){O===null&&(O=M);break}e&&O&&R.alternate===null&&t(b,O),x=i(R,x,k),T===null?E=R:T.sibling=R,T=R,O=M}if(I.done)return n(b,O),Nr&&Rp(b,k),E;if(O===null){for(;!I.done;k++,I=S.next())I=d(b,I.value,P),I!==null&&(x=i(I,x,k),T===null?E=I:T.sibling=I,T=I);return Nr&&Rp(b,k),E}for(O=r(b,O);!I.done;k++,I=S.next())I=p(O,b,k,I.value,P),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?k:I.key),x=i(I,x,k),T===null?E=I:T.sibling=I,T=I);return e&&O.forEach(function(_){return t(b,_)}),Nr&&Rp(b,k),E}function y(b,x,S,P){if(typeof S=="object"&&S!==null&&S.type===Cg&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case CC:e:{for(var E=S.key,T=x;T!==null;){if(T.key===E){if(E=S.type,E===Cg){if(T.tag===7){n(b,T.sibling),x=o(T,S.props.children),x.return=b,b=x;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Bd&&w3(E)===T.type){n(b,T.sibling),x=o(T,S.props),x.ref=l0(b,T,S),x.return=b,b=x;break e}n(b,T);break}else t(b,T);T=T.sibling}S.type===Cg?(x=dh(S.props.children,b.mode,P,S.key),x.return=b,b=x):(P=UP(S.type,S.key,S.props,null,b.mode,P),P.ref=l0(b,x,S),P.return=b,b=P)}return a(b);case Sg:e:{for(T=S.key;x!==null;){if(x.key===T)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(b,x.sibling),x=o(x,S.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=k$(S,b.mode,P),x.return=b,b=x}return a(b);case Bd:return T=S._init,y(b,x,T(S._payload),P)}if(G0(S))return m(b,x,S,P);if(r0(S))return g(b,x,S,P);DC(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,S),x.return=b,b=x):(n(b,x),x=I$(S,b.mode,P),x.return=b,b=x),a(b)):n(b,x)}return y}var jy=aJ(!0),sJ=aJ(!1),_E=Wf(null),LE=null,Ag=null,PF=null;function EF(){PF=Ag=LE=null}function TF(e){var t=_E.current;Ar(_E),e._currentValue=t}function iD(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ry(e,t){LE=e,PF=Ag=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ma=!0),e.firstContext=null)}function al(e){var t=e._currentValue;if(PF!==e)if(e={context:e,memoizedValue:t,next:null},Ag===null){if(LE===null)throw Error(it(308));Ag=e,LE.dependencies={lanes:0,firstContext:e}}else Ag=Ag.next=e;return t}var Gp=null;function OF(e){Gp===null?Gp=[e]:Gp.push(e)}function lJ(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,OF(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xu(e,r)}function Xu(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zd=!1;function IF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cJ(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 _u(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wf(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fn&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xu(e,n)}return o=r.interleaved,o===null?(t.next=t,OF(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xu(e,n)}function FP(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pF(e,n)}}function x3(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function NE(e,t,n,r){var o=e.updateQueue;zd=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(f=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=Wr({},d,f);break e;case 2:zd=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ih|=a,e.lanes=a,e.memoizedState=d}}function S3(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(it(191,o));o.call(r)}}}var AS={},Lc=Wf(AS),ox=Wf(AS),ix=Wf(AS);function qp(e){if(e===AS)throw Error(it(174));return e}function kF(e,t){switch(xr(ix,t),xr(ox,e),xr(Lc,AS),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j2(t,e)}Ar(Lc),xr(Lc,t)}function By(){Ar(Lc),Ar(ox),Ar(ix)}function uJ(e){qp(ix.current);var t=qp(Lc.current),n=j2(t,e.type);t!==n&&(xr(ox,e),xr(Lc,n))}function MF(e){ox.current===e&&(Ar(Lc),Ar(ox))}var Vr=Wf(0);function FE(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var S$=[];function AF(){for(var e=0;e<S$.length;e++)S$[e]._workInProgressVersionPrimary=null;S$.length=0}var jP=dd.ReactCurrentDispatcher,C$=dd.ReactCurrentBatchConfig,Oh=0,Ur=null,$o=null,Wo=null,jE=!1,hw=!1,ax=0,L1e=0;function yi(){throw Error(it(321))}function $F(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ic(e[n],t[n]))return!1;return!0}function RF(e,t,n,r,o,i){if(Oh=i,Ur=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,jP.current=e===null||e.memoizedState===null?B1e:z1e,e=n(r,o),hw){i=0;do{if(hw=!1,ax=0,25<=i)throw Error(it(301));i+=1,Wo=$o=null,t.updateQueue=null,jP.current=V1e,e=n(r,o)}while(hw)}if(jP.current=BE,t=$o!==null&&$o.next!==null,Oh=0,Wo=$o=Ur=null,jE=!1,t)throw Error(it(300));return e}function DF(){var e=ax!==0;return ax=0,e}function bc(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wo===null?Ur.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function sl(){if($o===null){var e=Ur.alternate;e=e!==null?e.memoizedState:null}else e=$o.next;var t=Wo===null?Ur.memoizedState:Wo.next;if(t!==null)Wo=t,$o=e;else{if(e===null)throw Error(it(310));$o=e,e={memoizedState:$o.memoizedState,baseState:$o.baseState,baseQueue:$o.baseQueue,queue:$o.queue,next:null},Wo===null?Ur.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function sx(e,t){return typeof t=="function"?t(e):t}function P$(e){var t=sl(),n=t.queue;if(n===null)throw Error(it(311));n.lastRenderedReducer=e;var r=$o,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((Oh&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Ur.lanes|=u,Ih|=u}c=c.next}while(c!==null&&c!==i);l===null?a=r:l.next=s,ic(r,t.memoizedState)||(ma=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ur.lanes|=i,Ih|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function E$(e){var t=sl(),n=t.queue;if(n===null)throw Error(it(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ic(i,t.memoizedState)||(ma=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function dJ(){}function fJ(e,t){var n=Ur,r=sl(),o=t(),i=!ic(r.memoizedState,o);if(i&&(r.memoizedState=o,ma=!0),r=r.queue,_F(mJ.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Wo!==null&&Wo.memoizedState.tag&1){if(n.flags|=2048,lx(9,hJ.bind(null,n,r,o,t),void 0,null),Qo===null)throw Error(it(349));Oh&30||pJ(n,t,o)}return o}function pJ(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ur.updateQueue,t===null?(t={lastEffect:null,stores:null},Ur.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hJ(e,t,n,r){t.value=n,t.getSnapshot=r,gJ(t)&&yJ(e)}function mJ(e,t,n){return n(function(){gJ(t)&&yJ(e)})}function gJ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ic(e,n)}catch{return!0}}function yJ(e){var t=Xu(e,1);t!==null&&Jl(t,e,1,-1)}function C3(e){var t=bc();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sx,lastRenderedState:e},t.queue=e,e=e.dispatch=j1e.bind(null,Ur,e),[t.memoizedState,e]}function lx(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ur.updateQueue,t===null?(t={lastEffect:null,stores:null},Ur.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function vJ(){return sl().memoizedState}function BP(e,t,n,r){var o=bc();Ur.flags|=e,o.memoizedState=lx(1|t,n,void 0,r===void 0?null:r)}function vI(e,t,n,r){var o=sl();r=r===void 0?null:r;var i=void 0;if($o!==null){var a=$o.memoizedState;if(i=a.destroy,r!==null&&$F(r,a.deps)){o.memoizedState=lx(t,n,i,r);return}}Ur.flags|=e,o.memoizedState=lx(1|t,n,i,r)}function P3(e,t){return BP(8390656,8,e,t)}function _F(e,t){return vI(2048,8,e,t)}function bJ(e,t){return vI(4,2,e,t)}function wJ(e,t){return vI(4,4,e,t)}function xJ(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 SJ(e,t,n){return n=n!=null?n.concat([e]):null,vI(4,4,xJ.bind(null,t,e),n)}function LF(){}function CJ(e,t){var n=sl();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$F(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function PJ(e,t){var n=sl();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$F(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function EJ(e,t,n){return Oh&21?(ic(n,t)||(n=MQ(),Ur.lanes|=n,Ih|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ma=!0),e.memoizedState=n)}function N1e(e,t){var n=rr;rr=n!==0&&4>n?n:4,e(!0);var r=C$.transition;C$.transition={};try{e(!1),t()}finally{rr=n,C$.transition=r}}function TJ(){return sl().memoizedState}function F1e(e,t,n){var r=Sf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},OJ(e))IJ(t,n);else if(n=lJ(e,t,n,r),n!==null){var o=qi();Jl(n,e,r,o),kJ(n,t,r)}}function j1e(e,t,n){var r=Sf(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(OJ(e))IJ(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,ic(s,a)){var l=t.interleaved;l===null?(o.next=o,OF(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=lJ(e,t,o,r),n!==null&&(o=qi(),Jl(n,e,r,o),kJ(n,t,r))}}function OJ(e){var t=e.alternate;return e===Ur||t!==null&&t===Ur}function IJ(e,t){hw=jE=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kJ(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pF(e,n)}}var BE={readContext:al,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useInsertionEffect:yi,useLayoutEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useMutableSource:yi,useSyncExternalStore:yi,useId:yi,unstable_isNewReconciler:!1},B1e={readContext:al,useCallback:function(e,t){return bc().memoizedState=[e,t===void 0?null:t],e},useContext:al,useEffect:P3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,BP(4194308,4,xJ.bind(null,t,e),n)},useLayoutEffect:function(e,t){return BP(4194308,4,e,t)},useInsertionEffect:function(e,t){return BP(4,2,e,t)},useMemo:function(e,t){var n=bc();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bc();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F1e.bind(null,Ur,e),[r.memoizedState,e]},useRef:function(e){var t=bc();return e={current:e},t.memoizedState=e},useState:C3,useDebugValue:LF,useDeferredValue:function(e){return bc().memoizedState=e},useTransition:function(){var e=C3(!1),t=e[0];return e=N1e.bind(null,e[1]),bc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ur,o=bc();if(Nr){if(n===void 0)throw Error(it(407));n=n()}else{if(n=t(),Qo===null)throw Error(it(349));Oh&30||pJ(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,P3(mJ.bind(null,r,i,e),[e]),r.flags|=2048,lx(9,hJ.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bc(),t=Qo.identifierPrefix;if(Nr){var n=Mu,r=ku;n=(r&~(1<<32-Ql(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ax++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=L1e++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},z1e={readContext:al,useCallback:CJ,useContext:al,useEffect:_F,useImperativeHandle:SJ,useInsertionEffect:bJ,useLayoutEffect:wJ,useMemo:PJ,useReducer:P$,useRef:vJ,useState:function(){return P$(sx)},useDebugValue:LF,useDeferredValue:function(e){var t=sl();return EJ(t,$o.memoizedState,e)},useTransition:function(){var e=P$(sx)[0],t=sl().memoizedState;return[e,t]},useMutableSource:dJ,useSyncExternalStore:fJ,useId:TJ,unstable_isNewReconciler:!1},V1e={readContext:al,useCallback:CJ,useContext:al,useEffect:_F,useImperativeHandle:SJ,useInsertionEffect:bJ,useLayoutEffect:wJ,useMemo:PJ,useReducer:E$,useRef:vJ,useState:function(){return E$(sx)},useDebugValue:LF,useDeferredValue:function(e){var t=sl();return $o===null?t.memoizedState=e:EJ(t,$o.memoizedState,e)},useTransition:function(){var e=E$(sx)[0],t=sl().memoizedState;return[e,t]},useMutableSource:dJ,useSyncExternalStore:fJ,useId:TJ,unstable_isNewReconciler:!1};function Ll(e,t){if(e&&e.defaultProps){t=Wr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function aD(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Wr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bI={isMounted:function(e){return(e=e._reactInternals)?Xh(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qi(),o=Sf(e),i=_u(r,o);i.payload=t,n!=null&&(i.callback=n),t=wf(e,i,o),t!==null&&(Jl(t,e,o,r),FP(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qi(),o=Sf(e),i=_u(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=wf(e,i,o),t!==null&&(Jl(t,e,o,r),FP(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qi(),r=Sf(e),o=_u(n,r);o.tag=2,t!=null&&(o.callback=t),t=wf(e,o,r),t!==null&&(Jl(t,e,r,n),FP(t,e,r))}};function E3(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!ex(n,r)||!ex(o,i):!0}function MJ(e,t,n){var r=!1,o=$f,i=t.contextType;return typeof i=="object"&&i!==null?i=al(i):(o=va(t)?Eh:Ii.current,r=t.contextTypes,i=(r=r!=null)?Ny(e,o):$f),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bI,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function T3(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bI.enqueueReplaceState(t,t.state,null)}function sD(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},IF(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=al(i):(i=va(t)?Eh:Ii.current,o.context=Ny(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(aD(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&bI.enqueueReplaceState(o,o.state,null),NE(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function zy(e,t){try{var n="",r=t;do n+=gSe(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
-`+i.stack}return{value:e,source:t,stack:o,digest:null}}function UA(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function T2(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var RSe=typeof WeakMap=="function"?WeakMap:Map;function MQ(e,t,n){n=Su(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gE||(gE=!0,L2=r),T2(e,t)},n}function AQ(e,t,n){n=Su(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){T2(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){T2(e,t),typeof r!="function"&&(af===null?af=new Set([this]):af.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function j4(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new RSe;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=qSe.bind(null,e,t,n),t.then(e,e))}function B4(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 z4(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Su(-1,1),t.tag=2,of(n,t,1))),n.lanes|=1),e)}var DSe=Qu.ReactCurrentOwner,ca=!1;function Ri(e,t,n,r){t.child=e===null?aQ(t,null,n,r):vy(t,e.child,n,r)}function V4(e,t,n,r,o){n=n.render;var i=t.ref;return jg(t,o),r=YN(e,t,n,r,i,o),n=XN(),e!==null&&!ca?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ju(e,t,o)):(Lr&&n&&NN(t),t.flags|=1,Ri(e,t,r,o),t.child)}function H4(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!aF(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,$Q(e,t,i,r,o)):(e=xP(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Mw,n(a,r)&&e.ref===t.ref)return ju(e,t,o)}return t.flags|=1,e=lf(i,r),e.ref=t.ref,e.return=t,t.child=e}function $Q(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Mw(i,r)&&e.ref===t.ref)if(ca=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ca=!0);else return t.lanes=e.lanes,ju(e,t,o)}return O2(e,t,n,r,o)}function RQ(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(mg,_a),_a|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xr(mg,_a),_a|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,xr(mg,_a),_a|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,xr(mg,_a),_a|=r;return Ri(e,t,o,n),t.child}function DQ(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function O2(e,t,n,r,o){var i=fa(n)?lh:xi.current;return i=gy(t,i),jg(t,o),n=YN(e,t,n,r,i,o),r=XN(),e!==null&&!ca?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ju(e,t,o)):(Lr&&r&&NN(t),t.flags|=1,Ri(e,t,n,o),t.child)}function U4(e,t,n,r,o){if(fa(n)){var i=!0;aE(t)}else i=!1;if(jg(t,o),t.stateNode===null)vP(e,t),kQ(t,n,r),E2(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Qs(c):(c=fa(n)?lh:xi.current,c=gy(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&F4(t,a,r,c),Od=!1;var f=t.memoizedState;a.state=f,dE(t,r,a,o),l=t.memoizedState,s!==r||f!==l||da.current||Od?(typeof u=="function"&&(P2(t,n,u,r),l=t.memoizedState),(s=Od||N4(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lQ(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:El(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Qs(l):(l=fa(n)?lh:xi.current,l=gy(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&F4(t,a,r,l),Od=!1,f=t.memoizedState,a.state=f,dE(t,r,a,o);var m=t.memoizedState;s!==d||f!==m||da.current||Od?(typeof p=="function"&&(P2(t,n,p,r),m=t.memoizedState),(c=Od||N4(t,n,c,r,f,m,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return I2(e,t,n,r,i,o)}function I2(e,t,n,r,o,i){DQ(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&k4(t,n,!1),ju(e,t,i);r=t.stateNode,DSe.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=vy(t,e.child,null,i),t.child=vy(t,null,s,i)):Ri(e,t,s,i),t.memoizedState=r.state,o&&k4(t,n,!0),t.child}function _Q(e){var t=e.stateNode;t.pendingContext?I4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&I4(e,t.context,!1),WN(e,t.containerInfo)}function W4(e,t,n,r,o){return yy(),jN(o),t.flags|=256,Ri(e,t,n,r),t.child}var k2={dehydrated:null,treeContext:null,retryLane:0};function M2(e){return{baseLanes:e,cachePool:null,transitions:null}}function LQ(e,t,n){var r=t.pendingProps,o=zr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xr(zr,o&1),e===null)return S2(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=YO(a,r,0,null),e=Kp(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=M2(n),t.memoizedState=k2,e):ZN(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return _Se(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=lf(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=lf(s,i):(i=Kp(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?M2(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=k2,r}return i=e.child,e=i.sibling,r=lf(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ZN(e,t){return t=YO({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function dC(e,t,n,r){return r!==null&&jN(r),vy(t,e.child,null,n),e=ZN(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _Se(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=UA(Error(it(422))),dC(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=YO({mode:"visible",children:r.children},o,0,null),i=Kp(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&vy(t,e.child,null,a),t.child.memoizedState=M2(a),t.memoizedState=k2,i);if(!(t.mode&1))return dC(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(it(419)),r=UA(i,r,void 0),dC(e,t,a,r)}if(s=(a&e.childLanes)!==0,ca||s){if(r=Uo,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Fu(e,o),zl(r,e,o,-1))}return iF(),r=UA(Error(it(421))),dC(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=KSe.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ha=rf(o.nextSibling),Wa=t,Lr=!0,Rl=null,e!==null&&(Rs[Ds++]=yu,Rs[Ds++]=vu,Rs[Ds++]=ch,yu=e.id,vu=e.overflow,ch=t),t=ZN(t,r.children),t.flags|=4096,t)}function G4(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),C2(e.return,t,n)}function WA(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function NQ(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ri(e,t,r.children,n),r=zr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&G4(e,n,t);else if(e.tag===19)G4(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xr(zr,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&fE(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),WA(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&fE(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}WA(t,!0,n,null,i);break;case"together":WA(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vP(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ju(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dh|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(it(153));if(t.child!==null){for(e=t.child,n=lf(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lf(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function LSe(e,t,n){switch(t.tag){case 3:_Q(t),yy();break;case 5:cQ(t);break;case 1:fa(t.type)&&aE(t);break;case 4:WN(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xr(cE,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xr(zr,zr.current&1),t.flags|=128,null):n&t.child.childLanes?LQ(e,t,n):(xr(zr,zr.current&1),e=ju(e,t,n),e!==null?e.sibling:null);xr(zr,zr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return NQ(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xr(zr,zr.current),r)break;return null;case 22:case 23:return t.lanes=0,RQ(e,t,n)}return ju(e,t,n)}var FQ,A2,jQ,BQ;FQ=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};A2=function(){};jQ=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mp(Tc.current);var i=null;switch(n){case"input":o=ZR(e,o),r=ZR(e,r),i=[];break;case"select":o=Ur({},o,{value:void 0}),r=Ur({},r,{value:void 0}),i=[];break;case"textarea":o=n2(e,o),r=n2(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=oE)}o2(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Cw.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Cw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Er("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};BQ=function(e,t,n,r){n!==r&&(t.flags|=4)};function jb(e,t){if(!Lr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ui(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function NSe(e,t,n){var r=t.pendingProps;switch(FN(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ui(t),null;case 1:return fa(t.type)&&iE(),ui(t),null;case 3:return r=t.stateNode,by(),Mr(da),Mr(xi),qN(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(cC(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rl!==null&&(j2(Rl),Rl=null))),A2(e,t),ui(t),null;case 5:GN(t);var o=Mp(_w.current);if(n=t.type,e!==null&&t.stateNode!=null)jQ(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(it(166));return ui(t),null}if(e=Mp(Tc.current),cC(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[bc]=t,r[Rw]=i,e=(t.mode&1)!==0,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(o=0;o<P0.length;o++)Er(P0[o],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":t4(r,i),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Er("invalid",r);break;case"textarea":r4(r,i),Er("invalid",r)}o2(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&lC(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&lC(r.textContent,s,e),o=["children",""+s]):Cw.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Er("scroll",r)}switch(n){case"input":eC(r),n4(r,i,!0);break;case"textarea":eC(r),o4(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=oE)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=hX(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[bc]=t,e[Rw]=r,FQ(e,t,!1,!1),t.stateNode=e;e:{switch(a=i2(n,r),n){case"dialog":Er("cancel",e),Er("close",e),o=r;break;case"iframe":case"object":case"embed":Er("load",e),o=r;break;case"video":case"audio":for(o=0;o<P0.length;o++)Er(P0[o],e);o=r;break;case"source":Er("error",e),o=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),o=r;break;case"details":Er("toggle",e),o=r;break;case"input":t4(e,r),o=ZR(e,r),Er("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ur({},r,{value:void 0}),Er("invalid",e);break;case"textarea":r4(e,r),o=n2(e,r),Er("invalid",e);break;default:o=r}o2(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?yX(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&mX(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Pw(e,l):typeof l=="number"&&Pw(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Cw.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Er("scroll",e):l!=null&&CN(e,i,l,a))}switch(n){case"input":eC(e),n4(e,r,!1);break;case"textarea":eC(e),o4(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gf(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_g(e,!!r.multiple,i,!1):r.defaultValue!=null&&_g(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=oE)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ui(t),null;case 6:if(e&&t.stateNode!=null)BQ(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(it(166));if(n=Mp(_w.current),Mp(Tc.current),cC(t)){if(r=t.stateNode,n=t.memoizedProps,r[bc]=t,(i=r.nodeValue!==n)&&(e=Wa,e!==null))switch(e.tag){case 3:lC(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lC(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bc]=t,t.stateNode=r}return ui(t),null;case 13:if(Mr(zr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Lr&&Ha!==null&&t.mode&1&&!(t.flags&128))oQ(),yy(),t.flags|=98560,i=!1;else if(i=cC(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(it(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(it(317));i[bc]=t}else yy(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ui(t),i=!1}else Rl!==null&&(j2(Rl),Rl=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||zr.current&1?ko===0&&(ko=3):iF())),t.updateQueue!==null&&(t.flags|=4),ui(t),null);case 4:return by(),A2(e,t),e===null&&Aw(t.stateNode.containerInfo),ui(t),null;case 10:return VN(t.type._context),ui(t),null;case 17:return fa(t.type)&&iE(),ui(t),null;case 19:if(Mr(zr),i=t.memoizedState,i===null)return ui(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)jb(i,!1);else{if(ko!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=fE(e),a!==null){for(t.flags|=128,jb(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xr(zr,zr.current&1|2),t.child}e=e.sibling}i.tail!==null&&ro()>xy&&(t.flags|=128,r=!0,jb(i,!1),t.lanes=4194304)}else{if(!r)if(e=fE(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jb(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Lr)return ui(t),null}else 2*ro()-i.renderingStartTime>xy&&n!==1073741824&&(t.flags|=128,r=!0,jb(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ro(),t.sibling=null,n=zr.current,xr(zr,r?n&1|2:n&1),t):(ui(t),null);case 22:case 23:return oF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_a&1073741824&&(ui(t),t.subtreeFlags&6&&(t.flags|=8192)):ui(t),null;case 24:return null;case 25:return null}throw Error(it(156,t.tag))}function FSe(e,t){switch(FN(t),t.tag){case 1:return fa(t.type)&&iE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return by(),Mr(da),Mr(xi),qN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return GN(t),null;case 13:if(Mr(zr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(it(340));yy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mr(zr),null;case 4:return by(),null;case 10:return VN(t.type._context),null;case 22:case 23:return oF(),null;case 24:return null;default:return null}}var fC=!1,mi=!1,jSe=typeof WeakSet=="function"?WeakSet:Set,Et=null;function hg(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qr(e,t,r)}else n.current=null}function $2(e,t,n){try{n()}catch(r){Qr(e,t,r)}}var q4=!1;function BSe(e,t){if(m2=tE,e=WX(),LN(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(g2={focusedElem:e,selectionRange:n},tE=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){t=Et;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:El(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(it(163))}}catch(P){Qr(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}return m=q4,q4=!1,m}function W0(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$2(t,n,i)}o=o.next}while(o!==r)}}function qO(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function R2(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zQ(e){var t=e.alternate;t!==null&&(e.alternate=null,zQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bc],delete t[Rw],delete t[b2],delete t[SSe],delete t[CSe])),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 VQ(e){return e.tag===5||e.tag===3||e.tag===4}function K4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VQ(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 D2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oE));else if(r!==4&&(e=e.child,e!==null))for(D2(e,t,n),e=e.sibling;e!==null;)D2(e,t,n),e=e.sibling}function _2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_2(e,t,n),e=e.sibling;e!==null;)_2(e,t,n),e=e.sibling}var Xo=null,Il=!1;function gd(e,t,n){for(n=n.child;n!==null;)HQ(e,t,n),n=n.sibling}function HQ(e,t,n){if(Ec&&typeof Ec.onCommitFiberUnmount=="function")try{Ec.onCommitFiberUnmount(jO,n)}catch{}switch(n.tag){case 5:mi||hg(n,t);case 6:var r=Xo,o=Il;Xo=null,gd(e,t,n),Xo=r,Il=o,Xo!==null&&(Il?(e=Xo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xo.removeChild(n.stateNode));break;case 18:Xo!==null&&(Il?(e=Xo,n=n.stateNode,e.nodeType===8?FA(e.parentNode,n):e.nodeType===1&&FA(e,n),Iw(e)):FA(Xo,n.stateNode));break;case 4:r=Xo,o=Il,Xo=n.stateNode.containerInfo,Il=!0,gd(e,t,n),Xo=r,Il=o;break;case 0:case 11:case 14:case 15:if(!mi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&$2(n,t,a),o=o.next}while(o!==r)}gd(e,t,n);break;case 1:if(!mi&&(hg(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Qr(n,t,s)}gd(e,t,n);break;case 21:gd(e,t,n);break;case 22:n.mode&1?(mi=(r=mi)||n.memoizedState!==null,gd(e,t,n),mi=r):gd(e,t,n);break;default:gd(e,t,n)}}function Y4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jSe),t.forEach(function(r){var o=YSe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xo=s.stateNode,Il=!1;break e;case 3:Xo=s.stateNode.containerInfo,Il=!0;break e;case 4:Xo=s.stateNode.containerInfo,Il=!0;break e}s=s.return}if(Xo===null)throw Error(it(160));HQ(i,a,o),Xo=null,Il=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Qr(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)UQ(t,e),t=t.sibling}function UQ(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bl(t,e),sc(e),r&4){try{W0(3,e,e.return),qO(3,e)}catch(g){Qr(e,e.return,g)}try{W0(5,e,e.return)}catch(g){Qr(e,e.return,g)}}break;case 1:bl(t,e),sc(e),r&512&&n!==null&&hg(n,n.return);break;case 5:if(bl(t,e),sc(e),r&512&&n!==null&&hg(n,n.return),e.flags&32){var o=e.stateNode;try{Pw(o,"")}catch(g){Qr(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&fX(o,i),i2(s,a);var c=i2(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?yX(o,d):u==="dangerouslySetInnerHTML"?mX(o,d):u==="children"?Pw(o,d):CN(o,u,d,c)}switch(s){case"input":e2(o,i);break;case"textarea":pX(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?_g(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?_g(o,!!i.multiple,i.defaultValue,!0):_g(o,!!i.multiple,i.multiple?[]:"",!1))}o[Rw]=i}catch(g){Qr(e,e.return,g)}}break;case 6:if(bl(t,e),sc(e),r&4){if(e.stateNode===null)throw Error(it(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Qr(e,e.return,g)}}break;case 3:if(bl(t,e),sc(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Iw(t.containerInfo)}catch(g){Qr(e,e.return,g)}break;case 4:bl(t,e),sc(e);break;case 13:bl(t,e),sc(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(nF=ro())),r&4&&Y4(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(mi=(c=mi)||u,bl(t,e),mi=c):bl(t,e),sc(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Et=e,u=e.child;u!==null;){for(d=Et=u;Et!==null;){switch(f=Et,p=f.child,f.tag){case 0:case 11:case 14:case 15:W0(4,f,f.return);break;case 1:hg(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Qr(r,n,g)}}break;case 5:hg(f,f.return);break;case 22:if(f.memoizedState!==null){Q4(d);continue}}p!==null?(p.return=f,Et=p):Q4(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=gX("display",a))}catch(g){Qr(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){Qr(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:bl(t,e),sc(e),r&4&&Y4(e);break;case 21:break;default:bl(t,e),sc(e)}}function sc(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(VQ(n)){var r=n;break e}n=n.return}throw Error(it(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Pw(o,""),r.flags&=-33);var i=K4(e);_2(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=K4(e);D2(e,s,a);break;default:throw Error(it(161))}}catch(l){Qr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zSe(e,t,n){Et=e,WQ(e)}function WQ(e,t,n){for(var r=(e.mode&1)!==0;Et!==null;){var o=Et,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||fC;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||mi;s=fC;var c=mi;if(fC=a,(mi=l)&&!c)for(Et=o;Et!==null;)a=Et,l=a.child,a.tag===22&&a.memoizedState!==null?J4(o):l!==null?(l.return=a,Et=l):J4(o);for(;i!==null;)Et=i,WQ(i),i=i.sibling;Et=o,fC=s,mi=c}X4(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Et=i):X4(e)}}function X4(e){for(;Et!==null;){var t=Et;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mi||qO(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mi)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:El(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&D4(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}D4(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Iw(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(it(163))}mi||t.flags&512&&R2(t)}catch(f){Qr(t,t.return,f)}}if(t===e){Et=null;break}if(n=t.sibling,n!==null){n.return=t.return,Et=n;break}Et=t.return}}function Q4(e){for(;Et!==null;){var t=Et;if(t===e){Et=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Et=n;break}Et=t.return}}function J4(e){for(;Et!==null;){var t=Et;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qO(4,t)}catch(l){Qr(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Qr(t,o,l)}}var i=t.return;try{R2(t)}catch(l){Qr(t,i,l)}break;case 5:var a=t.return;try{R2(t)}catch(l){Qr(t,a,l)}}}catch(l){Qr(t,t.return,l)}if(t===e){Et=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Et=s;break}Et=t.return}}var VSe=Math.ceil,mE=Qu.ReactCurrentDispatcher,eF=Qu.ReactCurrentOwner,Us=Qu.ReactCurrentBatchConfig,jn=0,Uo=null,po=null,ri=0,_a=0,mg=kf(0),ko=0,jw=null,dh=0,KO=0,tF=0,G0=null,ra=null,nF=0,xy=1/0,cu=null,gE=!1,L2=null,af=null,pC=!1,qd=null,yE=0,q0=0,N2=null,bP=-1,wP=0;function Bi(){return jn&6?ro():bP!==-1?bP:bP=ro()}function sf(e){return e.mode&1?jn&2&&ri!==0?ri&-ri:ESe.transition!==null?(wP===0&&(wP=kX()),wP):(e=ir,e!==0||(e=window.event,e=e===void 0?16:LX(e.type)),e):1}function zl(e,t,n,r){if(50<q0)throw q0=0,N2=null,Error(it(185));iS(e,n,r),(!(jn&2)||e!==Uo)&&(e===Uo&&(!(jn&2)&&(KO|=n),ko===4&&$d(e,ri)),pa(e,r),n===1&&jn===0&&!(t.mode&1)&&(xy=ro()+500,UO&&Mf()))}function pa(e,t){var n=e.callbackNode;Exe(e,t);var r=eE(e,e===Uo?ri:0);if(r===0)n!==null&&s4(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&s4(n),t===1)e.tag===0?PSe(Z4.bind(null,e)):tQ(Z4.bind(null,e)),wSe(function(){!(jn&6)&&Mf()}),n=null;else{switch(MX(r)){case 1:n=IN;break;case 4:n=OX;break;case 16:n=ZP;break;case 536870912:n=IX;break;default:n=ZP}n=ZQ(n,GQ.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function GQ(e,t){if(bP=-1,wP=0,jn&6)throw Error(it(327));var n=e.callbackNode;if(Bg()&&e.callbackNode!==n)return null;var r=eE(e,e===Uo?ri:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=vE(e,r);else{t=r;var o=jn;jn|=2;var i=KQ();(Uo!==e||ri!==t)&&(cu=null,xy=ro()+500,qp(e,t));do try{WSe();break}catch(s){qQ(e,s)}while(!0);zN(),mE.current=i,jn=o,po!==null?t=0:(Uo=null,ri=0,t=ko)}if(t!==0){if(t===2&&(o=u2(e),o!==0&&(r=o,t=F2(e,o))),t===1)throw n=jw,qp(e,0),$d(e,r),pa(e,ro()),n;if(t===6)$d(e,r);else{if(o=e.current.alternate,!(r&30)&&!HSe(o)&&(t=vE(e,r),t===2&&(i=u2(e),i!==0&&(r=i,t=F2(e,i))),t===1))throw n=jw,qp(e,0),$d(e,r),pa(e,ro()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(it(345));case 2:vp(e,ra,cu);break;case 3:if($d(e,r),(r&130023424)===r&&(t=nF+500-ro(),10<t)){if(eE(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Bi(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=v2(vp.bind(null,e,ra,cu),t);break}vp(e,ra,cu);break;case 4:if($d(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Bl(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=ro()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VSe(r/1960))-r,10<r){e.timeoutHandle=v2(vp.bind(null,e,ra,cu),r);break}vp(e,ra,cu);break;case 5:vp(e,ra,cu);break;default:throw Error(it(329))}}}return pa(e,ro()),e.callbackNode===n?GQ.bind(null,e):null}function F2(e,t){var n=G0;return e.current.memoizedState.isDehydrated&&(qp(e,t).flags|=256),e=vE(e,t),e!==2&&(t=ra,ra=n,t!==null&&j2(t)),e}function j2(e){ra===null?ra=e:ra.push.apply(ra,e)}function HSe(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ql(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $d(e,t){for(t&=~tF,t&=~KO,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bl(t),r=1<<n;e[n]=-1,t&=~r}}function Z4(e){if(jn&6)throw Error(it(327));Bg();var t=eE(e,0);if(!(t&1))return pa(e,ro()),null;var n=vE(e,t);if(e.tag!==0&&n===2){var r=u2(e);r!==0&&(t=r,n=F2(e,r))}if(n===1)throw n=jw,qp(e,0),$d(e,t),pa(e,ro()),n;if(n===6)throw Error(it(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vp(e,ra,cu),pa(e,ro()),null}function rF(e,t){var n=jn;jn|=1;try{return e(t)}finally{jn=n,jn===0&&(xy=ro()+500,UO&&Mf())}}function fh(e){qd!==null&&qd.tag===0&&!(jn&6)&&Bg();var t=jn;jn|=1;var n=Us.transition,r=ir;try{if(Us.transition=null,ir=1,e)return e()}finally{ir=r,Us.transition=n,jn=t,!(jn&6)&&Mf()}}function oF(){_a=mg.current,Mr(mg)}function qp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bSe(n)),po!==null)for(n=po.return;n!==null;){var r=n;switch(FN(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&iE();break;case 3:by(),Mr(da),Mr(xi),qN();break;case 5:GN(r);break;case 4:by();break;case 13:Mr(zr);break;case 19:Mr(zr);break;case 10:VN(r.type._context);break;case 22:case 23:oF()}n=n.return}if(Uo=e,po=e=lf(e.current,null),ri=_a=t,ko=0,jw=null,tF=KO=dh=0,ra=G0=null,kp!==null){for(t=0;t<kp.length;t++)if(n=kp[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}kp=null}return e}function qQ(e,t){do{var n=po;try{if(zN(),gP.current=hE,pE){for(var r=Hr.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}pE=!1}if(uh=0,Bo=Oo=Hr=null,U0=!1,Lw=0,eF.current=null,n===null||n.return===null){ko=1,jw=t,po=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=ri,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=B4(a);if(p!==null){p.flags&=-257,z4(p,a,s,i,t),p.mode&1&&j4(i,c,t),t=p,l=c;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){j4(i,c,t),iF();break e}l=Error(it(426))}}else if(Lr&&s.mode&1){var y=B4(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),z4(y,a,s,i,t),jN(wy(l,s));break e}}i=l=wy(l,s),ko!==4&&(ko=2),G0===null?G0=[i]:G0.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=MQ(i,l,t);R4(i,b);break e;case 1:s=l;var x=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(af===null||!af.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=AQ(i,s,t);R4(i,P);break e}}i=i.return}while(i!==null)}XQ(n)}catch(E){t=E,po===n&&n!==null&&(po=n=n.return);continue}break}while(!0)}function KQ(){var e=mE.current;return mE.current=hE,e===null?hE:e}function iF(){(ko===0||ko===3||ko===2)&&(ko=4),Uo===null||!(dh&268435455)&&!(KO&268435455)||$d(Uo,ri)}function vE(e,t){var n=jn;jn|=2;var r=KQ();(Uo!==e||ri!==t)&&(cu=null,qp(e,t));do try{USe();break}catch(o){qQ(e,o)}while(!0);if(zN(),jn=n,mE.current=r,po!==null)throw Error(it(261));return Uo=null,ri=0,ko}function USe(){for(;po!==null;)YQ(po)}function WSe(){for(;po!==null&&!gxe();)YQ(po)}function YQ(e){var t=JQ(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?XQ(e):po=t,eF.current=null}function XQ(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FSe(n,t),n!==null){n.flags&=32767,po=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ko=6,po=null;return}}else if(n=NSe(n,t,_a),n!==null){po=n;return}if(t=t.sibling,t!==null){po=t;return}po=t=e}while(t!==null);ko===0&&(ko=5)}function vp(e,t,n){var r=ir,o=Us.transition;try{Us.transition=null,ir=1,GSe(e,t,n,r)}finally{Us.transition=o,ir=r}return null}function GSe(e,t,n,r){do Bg();while(qd!==null);if(jn&6)throw Error(it(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(it(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Txe(e,i),e===Uo&&(po=Uo=null,ri=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pC||(pC=!0,ZQ(ZP,function(){return Bg(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Us.transition,Us.transition=null;var a=ir;ir=1;var s=jn;jn|=4,eF.current=null,BSe(e,n),UQ(n,e),fSe(g2),tE=!!m2,g2=m2=null,e.current=n,zSe(n),yxe(),jn=s,ir=a,Us.transition=i}else e.current=n;if(pC&&(pC=!1,qd=e,yE=o),i=e.pendingLanes,i===0&&(af=null),wxe(n.stateNode),pa(e,ro()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(gE)throw gE=!1,e=L2,L2=null,e;return yE&1&&e.tag!==0&&Bg(),i=e.pendingLanes,i&1?e===N2?q0++:(q0=0,N2=e):q0=0,Mf(),null}function Bg(){if(qd!==null){var e=MX(yE),t=Us.transition,n=ir;try{if(Us.transition=null,ir=16>e?16:e,qd===null)var r=!1;else{if(e=qd,qd=null,yE=0,jn&6)throw Error(it(331));var o=jn;for(jn|=4,Et=e.current;Et!==null;){var i=Et,a=i.child;if(Et.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Et=c;Et!==null;){var u=Et;switch(u.tag){case 0:case 11:case 15:W0(8,u,i)}var d=u.child;if(d!==null)d.return=u,Et=d;else for(;Et!==null;){u=Et;var f=u.sibling,p=u.return;if(zQ(u),u===c){Et=null;break}if(f!==null){f.return=p,Et=f;break}Et=p}}}var m=i.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}Et=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Et=a;else e:for(;Et!==null;){if(i=Et,i.flags&2048)switch(i.tag){case 0:case 11:case 15:W0(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,Et=b;break e}Et=i.return}}var x=e.current;for(Et=x;Et!==null;){a=Et;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,Et=S;else e:for(a=x;Et!==null;){if(s=Et,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:qO(9,s)}}catch(E){Qr(s,s.return,E)}if(s===a){Et=null;break e}var P=s.sibling;if(P!==null){P.return=s.return,Et=P;break e}Et=s.return}}if(jn=o,Mf(),Ec&&typeof Ec.onPostCommitFiberRoot=="function")try{Ec.onPostCommitFiberRoot(jO,e)}catch{}r=!0}return r}finally{ir=n,Us.transition=t}}return!1}function e3(e,t,n){t=wy(n,t),t=MQ(e,t,1),e=of(e,t,1),t=Bi(),e!==null&&(iS(e,1,t),pa(e,t))}function Qr(e,t,n){if(e.tag===3)e3(e,e,n);else for(;t!==null;){if(t.tag===3){e3(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(af===null||!af.has(r))){e=wy(n,e),e=AQ(t,e,1),t=of(t,e,1),e=Bi(),t!==null&&(iS(t,1,e),pa(t,e));break}}t=t.return}}function qSe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Bi(),e.pingedLanes|=e.suspendedLanes&n,Uo===e&&(ri&n)===n&&(ko===4||ko===3&&(ri&130023424)===ri&&500>ro()-nF?qp(e,0):tF|=n),pa(e,t)}function QQ(e,t){t===0&&(e.mode&1?(t=rC,rC<<=1,!(rC&130023424)&&(rC=4194304)):t=1);var n=Bi();e=Fu(e,t),e!==null&&(iS(e,t,n),pa(e,n))}function KSe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QQ(e,n)}function YSe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(it(314))}r!==null&&r.delete(t),QQ(e,n)}var JQ;JQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||da.current)ca=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ca=!1,LSe(e,t,n);ca=!!(e.flags&131072)}else ca=!1,Lr&&t.flags&1048576&&nQ(t,lE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vP(e,t),e=t.pendingProps;var o=gy(t,xi.current);jg(t,n),o=YN(null,t,r,e,o,n);var i=XN();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fa(r)?(i=!0,aE(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,UN(t),o.updater=GO,t.stateNode=o,o._reactInternals=t,E2(t,r,e,n),t=I2(null,t,r,!0,i,n)):(t.tag=0,Lr&&i&&NN(t),Ri(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vP(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=QSe(r),e=El(r,e),o){case 0:t=O2(null,t,r,e,n);break e;case 1:t=U4(null,t,r,e,n);break e;case 11:t=V4(null,t,r,e,n);break e;case 14:t=H4(null,t,r,El(r.type,e),n);break e}throw Error(it(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:El(r,o),O2(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:El(r,o),U4(e,t,r,o,n);case 3:e:{if(_Q(t),e===null)throw Error(it(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lQ(e,t),dE(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wy(Error(it(423)),t),t=W4(e,t,r,n,o);break e}else if(r!==o){o=wy(Error(it(424)),t),t=W4(e,t,r,n,o);break e}else for(Ha=rf(t.stateNode.containerInfo.firstChild),Wa=t,Lr=!0,Rl=null,n=aQ(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yy(),r===o){t=ju(e,t,n);break e}Ri(e,t,r,n)}t=t.child}return t;case 5:return cQ(t),e===null&&S2(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,y2(r,o)?a=null:i!==null&&y2(r,i)&&(t.flags|=32),DQ(e,t),Ri(e,t,a,n),t.child;case 6:return e===null&&S2(t),null;case 13:return LQ(e,t,n);case 4:return WN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vy(t,null,r,n):Ri(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:El(r,o),V4(e,t,r,o,n);case 7:return Ri(e,t,t.pendingProps,n),t.child;case 8:return Ri(e,t,t.pendingProps.children,n),t.child;case 12:return Ri(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xr(cE,r._currentValue),r._currentValue=a,i!==null)if(ql(i.value,a)){if(i.children===o.children&&!da.current){t=ju(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Su(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),C2(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(it(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),C2(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ri(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jg(t,n),o=Qs(o),r=r(o),t.flags|=1,Ri(e,t,r,n),t.child;case 14:return r=t.type,o=El(r,t.pendingProps),o=El(r.type,o),H4(e,t,r,o,n);case 15:return $Q(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:El(r,o),vP(e,t),t.tag=1,fa(r)?(e=!0,aE(t)):e=!1,jg(t,n),kQ(t,r,o),E2(t,r,o,n),I2(null,t,r,!0,e,n);case 19:return NQ(e,t,n);case 22:return RQ(e,t,n)}throw Error(it(156,t.tag))};function ZQ(e,t){return TX(e,t)}function XSe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ns(e,t,n,r){return new XSe(e,t,n,r)}function aF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QSe(e){if(typeof e=="function")return aF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EN)return 11;if(e===TN)return 14}return 2}function lf(e,t){var n=e.alternate;return n===null?(n=Ns(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xP(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")aF(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ig:return Kp(n.children,o,i,t);case PN:a=8,o|=8;break;case YR:return e=Ns(12,n,t,o|2),e.elementType=YR,e.lanes=i,e;case XR:return e=Ns(13,n,t,o),e.elementType=XR,e.lanes=i,e;case QR:return e=Ns(19,n,t,o),e.elementType=QR,e.lanes=i,e;case cX:return YO(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sX:a=10;break e;case lX:a=9;break e;case EN:a=11;break e;case TN:a=14;break e;case Td:a=16,r=null;break e}throw Error(it(130,e==null?e:typeof e,""))}return t=Ns(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kp(e,t,n,r){return e=Ns(7,e,r,t),e.lanes=n,e}function YO(e,t,n,r){return e=Ns(22,e,r,t),e.elementType=cX,e.lanes=n,e.stateNode={isHidden:!1},e}function GA(e,t,n){return e=Ns(6,e,null,t),e.lanes=n,e}function qA(e,t,n){return t=Ns(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JSe(e,t,n,r,o){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=OA(0),this.expirationTimes=OA(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OA(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sF(e,t,n,r,o,i,a,s,l){return e=new JSe(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ns(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},UN(i),e}function ZSe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:og,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function eJ(e){if(!e)return yf;e=e._reactInternals;e:{if($h(e)!==e||e.tag!==1)throw Error(it(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(it(171))}if(e.tag===1){var n=e.type;if(fa(n))return eQ(e,n,t)}return t}function tJ(e,t,n,r,o,i,a,s,l){return e=sF(n,r,!0,e,o,i,a,s,l),e.context=eJ(null),n=e.current,r=Bi(),o=sf(n),i=Su(r,o),i.callback=t??null,of(n,i,o),e.current.lanes=o,iS(e,o,r),pa(e,r),e}function XO(e,t,n,r){var o=t.current,i=Bi(),a=sf(o);return n=eJ(n),t.context===null?t.context=n:t.pendingContext=n,t=Su(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=of(o,t,a),e!==null&&(zl(e,o,a,i),mP(e,o,a)),a}function bE(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 t3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lF(e,t){t3(e,t),(e=e.alternate)&&t3(e,t)}function e1e(){return null}var nJ=typeof reportError=="function"?reportError:function(e){console.error(e)};function cF(e){this._internalRoot=e}QO.prototype.render=cF.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(it(409));XO(e,t,null,null)};QO.prototype.unmount=cF.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(function(){XO(null,e,null,null)}),t[Nu]=null}};function QO(e){this._internalRoot=e}QO.prototype.unstable_scheduleHydration=function(e){if(e){var t=RX();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ad.length&&t!==0&&t<Ad[n].priority;n++);Ad.splice(n,0,e),n===0&&_X(e)}};function uF(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function JO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function n3(){}function t1e(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=bE(a);i.call(c)}}var a=tJ(t,r,e,0,null,!1,!1,"",n3);return e._reactRootContainer=a,e[Nu]=a.current,Aw(e.nodeType===8?e.parentNode:e),fh(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var c=bE(l);s.call(c)}}var l=sF(e,0,!1,null,null,!1,!1,"",n3);return e._reactRootContainer=l,e[Nu]=l.current,Aw(e.nodeType===8?e.parentNode:e),fh(function(){XO(t,l,n,r)}),l}function ZO(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=bE(a);s.call(l)}}XO(t,a,e,o)}else a=t1e(n,t,e,o,r);return bE(a)}AX=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=C0(t.pendingLanes);n!==0&&(kN(t,n|1),pa(t,ro()),!(jn&6)&&(xy=ro()+500,Mf()))}break;case 13:fh(function(){var r=Fu(e,1);if(r!==null){var o=Bi();zl(r,e,1,o)}}),lF(e,1)}};MN=function(e){if(e.tag===13){var t=Fu(e,134217728);if(t!==null){var n=Bi();zl(t,e,134217728,n)}lF(e,134217728)}};$X=function(e){if(e.tag===13){var t=sf(e),n=Fu(e,t);if(n!==null){var r=Bi();zl(n,e,t,r)}lF(e,t)}};RX=function(){return ir};DX=function(e,t){var n=ir;try{return ir=e,t()}finally{ir=n}};s2=function(e,t,n){switch(t){case"input":if(e2(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=HO(r);if(!o)throw Error(it(90));dX(r),e2(r,o)}}}break;case"textarea":pX(e,n);break;case"select":t=n.value,t!=null&&_g(e,!!n.multiple,t,!1)}};wX=rF;xX=fh;var n1e={usingClientEntryPoint:!1,Events:[sS,cg,HO,vX,bX,rF]},Bb={findFiberByHostInstance:Ip,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r1e={bundleType:Bb.bundleType,version:Bb.version,rendererPackageName:Bb.rendererPackageName,rendererConfig:Bb.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qu.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=PX(e),e===null?null:e.stateNode},findFiberByHostInstance:Bb.findFiberByHostInstance||e1e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hC=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hC.isDisabled&&hC.supportsFiber)try{jO=hC.inject(r1e),Ec=hC}catch{}}ts.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n1e;ts.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uF(t))throw Error(it(200));return ZSe(e,t,null,n)};ts.createRoot=function(e,t){if(!uF(e))throw Error(it(299));var n=!1,r="",o=nJ;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=sF(e,1,!1,null,null,n,!1,r,o),e[Nu]=t.current,Aw(e.nodeType===8?e.parentNode:e),new cF(t)};ts.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(it(188)):(e=Object.keys(e).join(","),Error(it(268,e)));return e=PX(t),e=e===null?null:e.stateNode,e};ts.flushSync=function(e){return fh(e)};ts.hydrate=function(e,t,n){if(!JO(t))throw Error(it(200));return ZO(null,e,t,!0,n)};ts.hydrateRoot=function(e,t,n){if(!uF(e))throw Error(it(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=nJ;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=tJ(t,null,e,1,n??null,o,!1,i,a),e[Nu]=t.current,Aw(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new QO(t)};ts.render=function(e,t,n){if(!JO(t))throw Error(it(200));return ZO(null,e,t,!1,n)};ts.unmountComponentAtNode=function(e){if(!JO(e))throw Error(it(40));return e._reactRootContainer?(fh(function(){ZO(null,null,e,!1,function(){e._reactRootContainer=null,e[Nu]=null})}),!0):!1};ts.unstable_batchedUpdates=rF;ts.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!JO(n))throw Error(it(200));if(e==null||e._reactInternals===void 0)throw Error(it(38));return ZO(e,t,n,!1,r)};ts.version="18.3.1-next-f1338f8080-20240426";function rJ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rJ)}catch(e){console.error(e)}}rJ(),rX.exports=ts;var eI=rX.exports;const mC=Bn(eI),r3={disabled:!1},wE=Y.createContext(null);var oJ=function(t){return t.scrollTop},E0="unmounted",bp="exited",wp="entering",Xm="entered",B2="exiting",rs=function(e){oS(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=bp,i.appearStatus=wp):l=Xm:r.unmountOnExit||r.mountOnEnter?l=E0:l=bp,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===E0?{status:bp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==wp&&a!==Xm&&(i=wp):(a===wp||a===Xm)&&(i=B2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===wp){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:mC.findDOMNode(this);a&&oJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bp&&this.setState({status:E0})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[mC.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||r3.disabled){this.safeSetState({status:Xm},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:wp},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Xm},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:mC.findDOMNode(this);if(!i||r3.disabled){this.safeSetState({status:bp},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:B2},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:bp},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:mC.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===E0)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ue(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(wE.Provider,{value:null},typeof a=="function"?a(o,s):Y.cloneElement(Y.Children.only(a),s))},t}(Y.Component);rs.contextType=wE;rs.propTypes={};function Im(){}rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Im,onEntering:Im,onEntered:Im,onExit:Im,onExiting:Im,onExited:Im};rs.UNMOUNTED=E0;rs.EXITED=bp;rs.ENTERING=wp;rs.ENTERED=Xm;rs.EXITING=B2;var o1e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Jwe(t,r)})},KA=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Zwe(t,r)})},dF=function(e){oS(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";r.addClass(u,f,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";r.removeClasses(u,f),r.addClass(u,f,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+s:l[s],f=c?d+"-active":l[s+"Active"],p=c?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=t.prototype;return n.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&oJ(o),s&&(this.appliedClasses[i][a]=s,o1e(o,s))},n.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,l=a.active,c=a.done;this.appliedClasses[i]={},s&&KA(o,s),l&&KA(o,l),c&&KA(o,c)},n.render=function(){var o=this.props;o.classNames;var i=Ue(o,["classNames"]);return Y.createElement(rs,D({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Y.Component);dF.defaultProps={classNames:""};dF.propTypes={};function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fF(e,t){var n=function(i){return t&&v.isValidElement(i)?t(i):i},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function i1e(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function Ap(e,t,n){return n[t]!=null?n[t]:e.props[t]}function a1e(e,t){return fF(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ap(n,"appear",e),enter:Ap(n,"enter",e),exit:Ap(n,"exit",e)})})}function s1e(e,t,n){var r=fF(e.children),o=i1e(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(v.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=v.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ap(a,"exit",e),enter:Ap(a,"enter",e)}):!l&&s&&!u?o[i]=v.cloneElement(a,{in:!1}):l&&s&&v.isValidElement(c)&&(o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ap(a,"exit",e),enter:Ap(a,"enter",e)}))}}),o}var l1e=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},c1e={component:"div",childFactory:function(t){return t}},cS=function(e){oS(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(z2(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?a1e(o,s):s1e(o,a,s),firstRender:!1}},n.handleExited=function(o,i){var a=fF(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=D({},s.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=Ue(o,["component","childFactory"]),l=this.state.contextValue,c=l1e(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Y.createElement(wE.Provider,{value:l},c):Y.createElement(wE.Provider,{value:l},Y.createElement(i,s,c))},t}(Y.Component);cS.propTypes={};cS.defaultProps=c1e;const pF=e=>e.scrollTop;function vf(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function u1e(e){return _e("MuiCollapse",e)}Le("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const d1e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,u1e,n)},f1e=ie("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(tt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),p1e=ie("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),h1e=ie("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ws=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:y,orientation:b="vertical",style:x,timeout:S=FY.standard,TransitionComponent:P=rs,...E}=r,T={...r,orientation:b,collapsedSize:s},O=d1e(T),k=Ao(),M=la(),I=v.useRef(null),R=v.useRef(),_=typeof s=="number"?`${s}px`:s,N=b==="horizontal",B=N?"width":"height",L=v.useRef(null),F=Wt(n,L),U=oe=>fe=>{if(oe){const se=L.current;fe===void 0?oe(se):oe(se,fe)}},V=()=>I.current?I.current[N?"clientWidth":"clientHeight"]:0,z=U((oe,fe)=>{I.current&&N&&(I.current.style.position="absolute"),oe.style[B]=_,d&&d(oe,fe)}),W=U((oe,fe)=>{const se=V();I.current&&N&&(I.current.style.position="");const{duration:ee,easing:ce}=vf({style:x,timeout:S,easing:c},{mode:"enter"});if(S==="auto"){const le=k.transitions.getAutoHeightDuration(se);oe.style.transitionDuration=`${le}ms`,R.current=le}else oe.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;oe.style[B]=`${se}px`,oe.style.transitionTimingFunction=ce,p&&p(oe,fe)}),G=U((oe,fe)=>{oe.style[B]="auto",f&&f(oe,fe)}),J=U(oe=>{oe.style[B]=`${V()}px`,m&&m(oe)}),K=U(g),ne=U(oe=>{const fe=V(),{duration:se,easing:ee}=vf({style:x,timeout:S,easing:c},{mode:"exit"});if(S==="auto"){const ce=k.transitions.getAutoHeightDuration(fe);oe.style.transitionDuration=`${ce}ms`,R.current=ce}else oe.style.transitionDuration=typeof se=="string"?se:`${se}ms`;oe.style[B]=_,oe.style.transitionTimingFunction=ee,y&&y(oe)}),re=oe=>{S==="auto"&&M.start(R.current||0,oe),o&&o(L.current,oe)};return $.jsx(P,{in:u,onEnter:z,onEntered:G,onEntering:W,onExit:J,onExited:K,onExiting:ne,addEndListener:re,nodeRef:L,timeout:S==="auto"?null:S,...E,children:(oe,{ownerState:fe,...se})=>$.jsx(f1e,{as:l,className:pe(O.root,a,{entered:O.entered,exited:!u&&_==="0px"&&O.hidden}[oe]),style:{[N?"minWidth":"minHeight"]:_,...x},ref:F,ownerState:{...T,state:oe},...se,children:$.jsx(p1e,{ownerState:{...T,state:oe},className:O.wrapper,ref:I,children:$.jsx(h1e,{ownerState:{...T,state:oe},className:O.wrapperInner,children:i})})})})});Ws&&(Ws.muiSupportAuto=!0);function m1e(e){return _e("MuiPaper",e)}Le("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const g1e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(i,m1e,o)},y1e=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(tt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),so=v.forwardRef(function(t,n){var p;const r=rt({props:t,name:"MuiPaper"}),o=Ao(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=g1e(d);return $.jsx(y1e,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(p=o.vars.overlays)==null?void 0:p[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${vt("#fff",RR(s))}, ${vt("#fff",RR(s))})`}},...u.style}})}),iJ=v.createContext({});function dn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,p=_u(u[e],o),{props:{component:m,...g},internalRef:y}=IY({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:p}),b=Wt(y,p==null?void 0:p.ref,t.ref),x=e==="root"?m||l:m,S=OY(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...g,...x&&{as:x},ref:b},o);return[f,S]}function v1e(e){return _e("MuiAccordion",e)}const gC=Le("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),b1e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return Te({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},v1e,t)},w1e=ie(so,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(tt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${gC.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${gC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),tt(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${gC.expanded}`]:{margin:"16px 0"}}}]}))),x1e=ie("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),hF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:f={},slotProps:p={},TransitionComponent:m,TransitionProps:g,...y}=r,[b,x]=bi({controlled:c,default:a,name:"Accordion",state:"expanded"}),S=v.useCallback(F=>{x(!b),u&&u(F,!b)},[b,u,x]),[P,...E]=v.Children.toArray(o),T=v.useMemo(()=>({expanded:b,disabled:s,disableGutters:l,toggle:S}),[b,s,l,S]),O={...r,square:d,disabled:s,disableGutters:l,expanded:b},k=b1e(O),M={transition:m,...f},I={transition:g,...p},R={slots:M,slotProps:I},[_,N]=dn("heading",{elementType:x1e,externalForwardedProps:R,className:k.heading,ownerState:O}),[B,L]=dn("transition",{elementType:Ws,externalForwardedProps:R,ownerState:O});return $.jsxs(w1e,{className:pe(k.root,i),ref:n,ownerState:O,square:d,...y,children:[$.jsx(_,{...N,children:$.jsx(iJ.Provider,{value:T,children:P})}),$.jsx(B,{in:b,timeout:"auto",...L,children:$.jsx("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region",className:k.region,children:E})})]})});function S1e(e){return _e("MuiAccordionDetails",e)}Le("MuiAccordionDetails",["root"]);const C1e=e=>{const{classes:t}=e;return Te({root:["root"]},S1e,t)},P1e=ie("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>({padding:e.spacing(1,2,2)}))),mF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordionDetails"}),{className:o,...i}=r,a=r,s=C1e(a);return $.jsx(P1e,{className:pe(s.root,o),ref:n,ownerState:a,...i})});class xE{constructor(){pn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xE}static use(){const t=Jl(xE.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=T1e(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function E1e(){return xE.use()}function T1e(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function O1e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),v.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),$.jsx("span",{className:f,style:p,children:$.jsx("span",{className:m})})}const As=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),V2=550,I1e=80,k1e=jc`
+`+i.stack}return{value:e,source:t,stack:o,digest:null}}function T$(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lD(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var H1e=typeof WeakMap=="function"?WeakMap:Map;function AJ(e,t,n){n=_u(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VE||(VE=!0,vD=r),lD(e,t)},n}function $J(e,t,n){n=_u(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){lD(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){lD(e,t),typeof r!="function"&&(xf===null?xf=new Set([this]):xf.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function O3(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new H1e;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=rCe.bind(null,e,t,n),t.then(e,e))}function I3(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 k3(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_u(-1,1),t.tag=2,wf(n,t,1))),n.lanes|=1),e)}var U1e=dd.ReactCurrentOwner,ma=!1;function Bi(e,t,n,r){t.child=e===null?sJ(t,null,n,r):jy(t,e.child,n,r)}function M3(e,t,n,r,o){n=n.render;var i=t.ref;return ry(t,o),r=RF(e,t,n,r,i,o),n=DF(),e!==null&&!ma?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qu(e,t,o)):(Nr&&n&&xF(t),t.flags|=1,Bi(e,t,r,o),t.child)}function A3(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!UF(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,RJ(e,t,i,r,o)):(e=UP(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ex,n(a,r)&&e.ref===t.ref)return Qu(e,t,o)}return t.flags|=1,e=Cf(i,r),e.ref=t.ref,e.return=t,t.child=e}function RJ(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ex(i,r)&&e.ref===t.ref)if(ma=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ma=!0);else return t.lanes=e.lanes,Qu(e,t,o)}return cD(e,t,n,r,o)}function DJ(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(Rg,za),za|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xr(Rg,za),za|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,xr(Rg,za),za|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,xr(Rg,za),za|=r;return Bi(e,t,o,n),t.child}function _J(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cD(e,t,n,r,o){var i=va(n)?Eh:Ii.current;return i=Ny(t,i),ry(t,o),n=RF(e,t,n,r,i,o),r=DF(),e!==null&&!ma?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qu(e,t,o)):(Nr&&r&&xF(t),t.flags|=1,Bi(e,t,n,o),t.child)}function $3(e,t,n,r,o){if(va(n)){var i=!0;$E(t)}else i=!1;if(ry(t,o),t.stateNode===null)zP(e,t),MJ(t,n,r),sD(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=al(c):(c=va(n)?Eh:Ii.current,c=Ny(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&T3(t,a,r,c),zd=!1;var f=t.memoizedState;a.state=f,NE(t,r,a,o),l=t.memoizedState,s!==r||f!==l||ya.current||zd?(typeof u=="function"&&(aD(t,n,u,r),l=t.memoizedState),(s=zd||E3(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,cJ(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ll(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=al(l):(l=va(n)?Eh:Ii.current,l=Ny(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&T3(t,a,r,l),zd=!1,f=t.memoizedState,a.state=f,NE(t,r,a,o);var m=t.memoizedState;s!==d||f!==m||ya.current||zd?(typeof p=="function"&&(aD(t,n,p,r),m=t.memoizedState),(c=zd||E3(t,n,c,r,f,m,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return uD(e,t,n,r,i,o)}function uD(e,t,n,r,o,i){_J(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&y3(t,n,!1),Qu(e,t,i);r=t.stateNode,U1e.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=jy(t,e.child,null,i),t.child=jy(t,null,s,i)):Bi(e,t,s,i),t.memoizedState=r.state,o&&y3(t,n,!0),t.child}function LJ(e){var t=e.stateNode;t.pendingContext?g3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&g3(e,t.context,!1),kF(e,t.containerInfo)}function R3(e,t,n,r,o){return Fy(),CF(o),t.flags|=256,Bi(e,t,n,r),t.child}var dD={dehydrated:null,treeContext:null,retryLane:0};function fD(e){return{baseLanes:e,cachePool:null,transitions:null}}function NJ(e,t,n){var r=t.pendingProps,o=Vr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xr(Vr,o&1),e===null)return oD(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=SI(a,r,0,null),e=dh(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=fD(n),t.memoizedState=dD,e):NF(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return W1e(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Cf(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Cf(s,i):(i=dh(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?fD(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=dD,r}return i=e.child,e=i.sibling,r=Cf(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function NF(e,t){return t=SI({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _C(e,t,n,r){return r!==null&&CF(r),jy(t,e.child,null,n),e=NF(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function W1e(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=T$(Error(it(422))),_C(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=SI({mode:"visible",children:r.children},o,0,null),i=dh(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&jy(t,e.child,null,a),t.child.memoizedState=fD(a),t.memoizedState=dD,i);if(!(t.mode&1))return _C(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(it(419)),r=T$(i,r,void 0),_C(e,t,a,r)}if(s=(a&e.childLanes)!==0,ma||s){if(r=Qo,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Xu(e,o),Jl(r,e,o,-1))}return HF(),r=T$(Error(it(421))),_C(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=oCe.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xa=bf(o.nextSibling),Ja=t,Nr=!0,Ul=null,e!==null&&(zs[Vs++]=ku,zs[Vs++]=Mu,zs[Vs++]=Th,ku=e.id,Mu=e.overflow,Th=t),t=NF(t,r.children),t.flags|=4096,t)}function D3(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),iD(e.return,t,n)}function O$(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function FJ(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Bi(e,t,r.children,n),r=Vr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&D3(e,n,t);else if(e.tag===19)D3(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xr(Vr,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&FE(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),O$(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&FE(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}O$(t,!0,n,null,i);break;case"together":O$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zP(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qu(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ih|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(it(153));if(t.child!==null){for(e=t.child,n=Cf(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cf(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function G1e(e,t,n){switch(t.tag){case 3:LJ(t),Fy();break;case 5:uJ(t);break;case 1:va(t.type)&&$E(t);break;case 4:kF(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xr(_E,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xr(Vr,Vr.current&1),t.flags|=128,null):n&t.child.childLanes?NJ(e,t,n):(xr(Vr,Vr.current&1),e=Qu(e,t,n),e!==null?e.sibling:null);xr(Vr,Vr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return FJ(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xr(Vr,Vr.current),r)break;return null;case 22:case 23:return t.lanes=0,DJ(e,t,n)}return Qu(e,t,n)}var jJ,pD,BJ,zJ;jJ=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};pD=function(){};BJ=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qp(Lc.current);var i=null;switch(n){case"input":o=_2(e,o),r=_2(e,r),i=[];break;case"select":o=Wr({},o,{value:void 0}),r=Wr({},r,{value:void 0}),i=[];break;case"textarea":o=F2(e,o),r=F2(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ME)}B2(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(qw.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(qw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Tr("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};zJ=function(e,t,n,r){n!==r&&(t.flags|=4)};function c0(e,t){if(!Nr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vi(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function q1e(e,t,n){var r=t.pendingProps;switch(SF(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vi(t),null;case 1:return va(t.type)&&AE(),vi(t),null;case 3:return r=t.stateNode,By(),Ar(ya),Ar(Ii),AF(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(RC(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ul!==null&&(xD(Ul),Ul=null))),pD(e,t),vi(t),null;case 5:MF(t);var o=qp(ix.current);if(n=t.type,e!==null&&t.stateNode!=null)BJ(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(it(166));return vi(t),null}if(e=qp(Lc.current),RC(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kc]=t,r[rx]=i,e=(t.mode&1)!==0,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(o=0;o<K0.length;o++)Tr(K0[o],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":H4(r,i),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Tr("invalid",r);break;case"textarea":W4(r,i),Tr("invalid",r)}B2(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&$C(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&$C(r.textContent,s,e),o=["children",""+s]):qw.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Tr("scroll",r)}switch(n){case"input":PC(r),U4(r,i,!0);break;case"textarea":PC(r),G4(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ME)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mQ(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[kc]=t,e[rx]=r,jJ(e,t,!1,!1),t.stateNode=e;e:{switch(a=z2(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;o<K0.length;o++)Tr(K0[o],e);o=r;break;case"source":Tr("error",e),o=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),o=r;break;case"details":Tr("toggle",e),o=r;break;case"input":H4(e,r),o=_2(e,r),Tr("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Wr({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":W4(e,r),o=F2(e,r),Tr("invalid",e);break;default:o=r}B2(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?vQ(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gQ(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Kw(e,l):typeof l=="number"&&Kw(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qw.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Tr("scroll",e):l!=null&&sF(e,i,l,a))}switch(n){case"input":PC(e),U4(e,r,!1);break;case"textarea":PC(e),G4(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Af(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Zg(e,!!r.multiple,i,!1):r.defaultValue!=null&&Zg(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ME)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return vi(t),null;case 6:if(e&&t.stateNode!=null)zJ(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(it(166));if(n=qp(ix.current),qp(Lc.current),RC(t)){if(r=t.stateNode,n=t.memoizedProps,r[kc]=t,(i=r.nodeValue!==n)&&(e=Ja,e!==null))switch(e.tag){case 3:$C(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$C(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kc]=t,t.stateNode=r}return vi(t),null;case 13:if(Ar(Vr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Nr&&Xa!==null&&t.mode&1&&!(t.flags&128))iJ(),Fy(),t.flags|=98560,i=!1;else if(i=RC(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(it(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(it(317));i[kc]=t}else Fy(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vi(t),i=!1}else Ul!==null&&(xD(Ul),Ul=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Vr.current&1?Do===0&&(Do=3):HF())),t.updateQueue!==null&&(t.flags|=4),vi(t),null);case 4:return By(),pD(e,t),e===null&&tx(t.stateNode.containerInfo),vi(t),null;case 10:return TF(t.type._context),vi(t),null;case 17:return va(t.type)&&AE(),vi(t),null;case 19:if(Ar(Vr),i=t.memoizedState,i===null)return vi(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)c0(i,!1);else{if(Do!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=FE(e),a!==null){for(t.flags|=128,c0(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xr(Vr,Vr.current&1|2),t.child}e=e.sibling}i.tail!==null&&so()>Vy&&(t.flags|=128,r=!0,c0(i,!1),t.lanes=4194304)}else{if(!r)if(e=FE(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),c0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Nr)return vi(t),null}else 2*so()-i.renderingStartTime>Vy&&n!==1073741824&&(t.flags|=128,r=!0,c0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=so(),t.sibling=null,n=Vr.current,xr(Vr,r?n&1|2:n&1),t):(vi(t),null);case 22:case 23:return VF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?za&1073741824&&(vi(t),t.subtreeFlags&6&&(t.flags|=8192)):vi(t),null;case 24:return null;case 25:return null}throw Error(it(156,t.tag))}function K1e(e,t){switch(SF(t),t.tag){case 1:return va(t.type)&&AE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return By(),Ar(ya),Ar(Ii),AF(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return MF(t),null;case 13:if(Ar(Vr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(it(340));Fy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ar(Vr),null;case 4:return By(),null;case 10:return TF(t.type._context),null;case 22:case 23:return VF(),null;case 24:return null;default:return null}}var LC=!1,Ci=!1,Y1e=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function $g(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){to(e,t,r)}else n.current=null}function hD(e,t,n){try{n()}catch(r){to(e,t,r)}}var _3=!1;function X1e(e,t){if(Q2=OE,e=GQ(),wF(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(J2={focusedElem:e,selectionRange:n},OE=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ll(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(it(163))}}catch(P){to(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}return m=_3,_3=!1,m}function mw(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&hD(t,n,i)}o=o.next}while(o!==r)}}function wI(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mD(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function VJ(e){var t=e.alternate;t!==null&&(e.alternate=null,VJ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kc],delete t[rx],delete t[tD],delete t[$1e],delete t[R1e])),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 HJ(e){return e.tag===5||e.tag===3||e.tag===4}function L3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||HJ(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 gD(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ME));else if(r!==4&&(e=e.child,e!==null))for(gD(e,t,n),e=e.sibling;e!==null;)gD(e,t,n),e=e.sibling}function yD(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(yD(e,t,n),e=e.sibling;e!==null;)yD(e,t,n),e=e.sibling}var ri=null,jl=!1;function Md(e,t,n){for(n=n.child;n!==null;)UJ(e,t,n),n=n.sibling}function UJ(e,t,n){if(_c&&typeof _c.onCommitFiberUnmount=="function")try{_c.onCommitFiberUnmount(fI,n)}catch{}switch(n.tag){case 5:Ci||$g(n,t);case 6:var r=ri,o=jl;ri=null,Md(e,t,n),ri=r,jl=o,ri!==null&&(jl?(e=ri,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ri.removeChild(n.stateNode));break;case 18:ri!==null&&(jl?(e=ri,n=n.stateNode,e.nodeType===8?w$(e.parentNode,n):e.nodeType===1&&w$(e,n),Jw(e)):w$(ri,n.stateNode));break;case 4:r=ri,o=jl,ri=n.stateNode.containerInfo,jl=!0,Md(e,t,n),ri=r,jl=o;break;case 0:case 11:case 14:case 15:if(!Ci&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&hD(n,t,a),o=o.next}while(o!==r)}Md(e,t,n);break;case 1:if(!Ci&&($g(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){to(n,t,s)}Md(e,t,n);break;case 21:Md(e,t,n);break;case 22:n.mode&1?(Ci=(r=Ci)||n.memoizedState!==null,Md(e,t,n),Ci=r):Md(e,t,n);break;default:Md(e,t,n)}}function N3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y1e),t.forEach(function(r){var o=iCe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:ri=s.stateNode,jl=!1;break e;case 3:ri=s.stateNode.containerInfo,jl=!0;break e;case 4:ri=s.stateNode.containerInfo,jl=!0;break e}s=s.return}if(ri===null)throw Error(it(160));UJ(i,a,o),ri=null,jl=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){to(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)WJ(t,e),t=t.sibling}function WJ(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ml(t,e),yc(e),r&4){try{mw(3,e,e.return),wI(3,e)}catch(g){to(e,e.return,g)}try{mw(5,e,e.return)}catch(g){to(e,e.return,g)}}break;case 1:Ml(t,e),yc(e),r&512&&n!==null&&$g(n,n.return);break;case 5:if(Ml(t,e),yc(e),r&512&&n!==null&&$g(n,n.return),e.flags&32){var o=e.stateNode;try{Kw(o,"")}catch(g){to(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&pQ(o,i),z2(s,a);var c=z2(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?vQ(o,d):u==="dangerouslySetInnerHTML"?gQ(o,d):u==="children"?Kw(o,d):sF(o,u,d,c)}switch(s){case"input":L2(o,i);break;case"textarea":hQ(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Zg(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Zg(o,!!i.multiple,i.defaultValue,!0):Zg(o,!!i.multiple,i.multiple?[]:"",!1))}o[rx]=i}catch(g){to(e,e.return,g)}}break;case 6:if(Ml(t,e),yc(e),r&4){if(e.stateNode===null)throw Error(it(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){to(e,e.return,g)}}break;case 3:if(Ml(t,e),yc(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Jw(t.containerInfo)}catch(g){to(e,e.return,g)}break;case 4:Ml(t,e),yc(e);break;case 13:Ml(t,e),yc(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(BF=so())),r&4&&N3(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ci=(c=Ci)||u,Ml(t,e),Ci=c):Ml(t,e),yc(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Tt=e,u=e.child;u!==null;){for(d=Tt=u;Tt!==null;){switch(f=Tt,p=f.child,f.tag){case 0:case 11:case 14:case 15:mw(4,f,f.return);break;case 1:$g(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){to(r,n,g)}}break;case 5:$g(f,f.return);break;case 22:if(f.memoizedState!==null){j3(d);continue}}p!==null?(p.return=f,Tt=p):j3(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=yQ("display",a))}catch(g){to(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){to(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ml(t,e),yc(e),r&4&&N3(e);break;case 21:break;default:Ml(t,e),yc(e)}}function yc(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(HJ(n)){var r=n;break e}n=n.return}throw Error(it(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Kw(o,""),r.flags&=-33);var i=L3(e);yD(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=L3(e);gD(e,s,a);break;default:throw Error(it(161))}}catch(l){to(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Q1e(e,t,n){Tt=e,GJ(e)}function GJ(e,t,n){for(var r=(e.mode&1)!==0;Tt!==null;){var o=Tt,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||LC;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Ci;s=LC;var c=Ci;if(LC=a,(Ci=l)&&!c)for(Tt=o;Tt!==null;)a=Tt,l=a.child,a.tag===22&&a.memoizedState!==null?B3(o):l!==null?(l.return=a,Tt=l):B3(o);for(;i!==null;)Tt=i,GJ(i),i=i.sibling;Tt=o,LC=s,Ci=c}F3(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Tt=i):F3(e)}}function F3(e){for(;Tt!==null;){var t=Tt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ci||wI(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ci)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ll(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&S3(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}S3(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Jw(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(it(163))}Ci||t.flags&512&&mD(t)}catch(f){to(t,t.return,f)}}if(t===e){Tt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Tt=n;break}Tt=t.return}}function j3(e){for(;Tt!==null;){var t=Tt;if(t===e){Tt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Tt=n;break}Tt=t.return}}function B3(e){for(;Tt!==null;){var t=Tt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wI(4,t)}catch(l){to(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){to(t,o,l)}}var i=t.return;try{mD(t)}catch(l){to(t,i,l)}break;case 5:var a=t.return;try{mD(t)}catch(l){to(t,a,l)}}}catch(l){to(t,t.return,l)}if(t===e){Tt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Tt=s;break}Tt=t.return}}var J1e=Math.ceil,zE=dd.ReactCurrentDispatcher,FF=dd.ReactCurrentOwner,Zs=dd.ReactCurrentBatchConfig,Fn=0,Qo=null,bo=null,di=0,za=0,Rg=Wf(0),Do=0,cx=null,Ih=0,xI=0,jF=0,gw=null,ua=null,BF=0,Vy=1/0,xu=null,VE=!1,vD=null,xf=null,NC=!1,cf=null,HE=0,yw=0,bD=null,VP=-1,HP=0;function qi(){return Fn&6?so():VP!==-1?VP:VP=so()}function Sf(e){return e.mode&1?Fn&2&&di!==0?di&-di:_1e.transition!==null?(HP===0&&(HP=MQ()),HP):(e=rr,e!==0||(e=window.event,e=e===void 0?16:NQ(e.type)),e):1}function Jl(e,t,n,r){if(50<yw)throw yw=0,bD=null,Error(it(185));IS(e,n,r),(!(Fn&2)||e!==Qo)&&(e===Qo&&(!(Fn&2)&&(xI|=n),Do===4&&Gd(e,di)),ba(e,r),n===1&&Fn===0&&!(t.mode&1)&&(Vy=so()+500,yI&&Gf()))}function ba(e,t){var n=e.callbackNode;_Se(e,t);var r=TE(e,e===Qo?di:0);if(r===0)n!==null&&Y4(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Y4(n),t===1)e.tag===0?D1e(z3.bind(null,e)):nJ(z3.bind(null,e)),M1e(function(){!(Fn&6)&&Gf()}),n=null;else{switch(AQ(r)){case 1:n=fF;break;case 4:n=IQ;break;case 16:n=EE;break;case 536870912:n=kQ;break;default:n=EE}n=eZ(n,qJ.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qJ(e,t){if(VP=-1,HP=0,Fn&6)throw Error(it(327));var n=e.callbackNode;if(oy()&&e.callbackNode!==n)return null;var r=TE(e,e===Qo?di:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=UE(e,r);else{t=r;var o=Fn;Fn|=2;var i=YJ();(Qo!==e||di!==t)&&(xu=null,Vy=so()+500,uh(e,t));do try{tCe();break}catch(s){KJ(e,s)}while(!0);EF(),zE.current=i,Fn=o,bo!==null?t=0:(Qo=null,di=0,t=Do)}if(t!==0){if(t===2&&(o=G2(e),o!==0&&(r=o,t=wD(e,o))),t===1)throw n=cx,uh(e,0),Gd(e,r),ba(e,so()),n;if(t===6)Gd(e,r);else{if(o=e.current.alternate,!(r&30)&&!Z1e(o)&&(t=UE(e,r),t===2&&(i=G2(e),i!==0&&(r=i,t=wD(e,i))),t===1))throw n=cx,uh(e,0),Gd(e,r),ba(e,so()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(it(345));case 2:Dp(e,ua,xu);break;case 3:if(Gd(e,r),(r&130023424)===r&&(t=BF+500-so(),10<t)){if(TE(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){qi(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=eD(Dp.bind(null,e,ua,xu),t);break}Dp(e,ua,xu);break;case 4:if(Gd(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ql(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=so()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*J1e(r/1960))-r,10<r){e.timeoutHandle=eD(Dp.bind(null,e,ua,xu),r);break}Dp(e,ua,xu);break;case 5:Dp(e,ua,xu);break;default:throw Error(it(329))}}}return ba(e,so()),e.callbackNode===n?qJ.bind(null,e):null}function wD(e,t){var n=gw;return e.current.memoizedState.isDehydrated&&(uh(e,t).flags|=256),e=UE(e,t),e!==2&&(t=ua,ua=n,t!==null&&xD(t)),e}function xD(e){ua===null?ua=e:ua.push.apply(ua,e)}function Z1e(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ic(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gd(e,t){for(t&=~jF,t&=~xI,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ql(t),r=1<<n;e[n]=-1,t&=~r}}function z3(e){if(Fn&6)throw Error(it(327));oy();var t=TE(e,0);if(!(t&1))return ba(e,so()),null;var n=UE(e,t);if(e.tag!==0&&n===2){var r=G2(e);r!==0&&(t=r,n=wD(e,r))}if(n===1)throw n=cx,uh(e,0),Gd(e,t),ba(e,so()),n;if(n===6)throw Error(it(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dp(e,ua,xu),ba(e,so()),null}function zF(e,t){var n=Fn;Fn|=1;try{return e(t)}finally{Fn=n,Fn===0&&(Vy=so()+500,yI&&Gf())}}function kh(e){cf!==null&&cf.tag===0&&!(Fn&6)&&oy();var t=Fn;Fn|=1;var n=Zs.transition,r=rr;try{if(Zs.transition=null,rr=1,e)return e()}finally{rr=r,Zs.transition=n,Fn=t,!(Fn&6)&&Gf()}}function VF(){za=Rg.current,Ar(Rg)}function uh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,k1e(n)),bo!==null)for(n=bo.return;n!==null;){var r=n;switch(SF(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&AE();break;case 3:By(),Ar(ya),Ar(Ii),AF();break;case 5:MF(r);break;case 4:By();break;case 13:Ar(Vr);break;case 19:Ar(Vr);break;case 10:TF(r.type._context);break;case 22:case 23:VF()}n=n.return}if(Qo=e,bo=e=Cf(e.current,null),di=za=t,Do=0,cx=null,jF=xI=Ih=0,ua=gw=null,Gp!==null){for(t=0;t<Gp.length;t++)if(n=Gp[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Gp=null}return e}function KJ(e,t){do{var n=bo;try{if(EF(),jP.current=BE,jE){for(var r=Ur.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jE=!1}if(Oh=0,Wo=$o=Ur=null,hw=!1,ax=0,FF.current=null,n===null||n.return===null){Do=1,cx=t,bo=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=di,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=I3(a);if(p!==null){p.flags&=-257,k3(p,a,s,i,t),p.mode&1&&O3(i,c,t),t=p,l=c;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){O3(i,c,t),HF();break e}l=Error(it(426))}}else if(Nr&&s.mode&1){var y=I3(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),k3(y,a,s,i,t),CF(zy(l,s));break e}}i=l=zy(l,s),Do!==4&&(Do=2),gw===null?gw=[i]:gw.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=AJ(i,l,t);x3(i,b);break e;case 1:s=l;var x=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(xf===null||!xf.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=$J(i,s,t);x3(i,P);break e}}i=i.return}while(i!==null)}QJ(n)}catch(E){t=E,bo===n&&n!==null&&(bo=n=n.return);continue}break}while(!0)}function YJ(){var e=zE.current;return zE.current=BE,e===null?BE:e}function HF(){(Do===0||Do===3||Do===2)&&(Do=4),Qo===null||!(Ih&268435455)&&!(xI&268435455)||Gd(Qo,di)}function UE(e,t){var n=Fn;Fn|=2;var r=YJ();(Qo!==e||di!==t)&&(xu=null,uh(e,t));do try{eCe();break}catch(o){KJ(e,o)}while(!0);if(EF(),Fn=n,zE.current=r,bo!==null)throw Error(it(261));return Qo=null,di=0,Do}function eCe(){for(;bo!==null;)XJ(bo)}function tCe(){for(;bo!==null&&!TSe();)XJ(bo)}function XJ(e){var t=ZJ(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?QJ(e):bo=t,FF.current=null}function QJ(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=K1e(n,t),n!==null){n.flags&=32767,bo=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Do=6,bo=null;return}}else if(n=q1e(n,t,za),n!==null){bo=n;return}if(t=t.sibling,t!==null){bo=t;return}bo=t=e}while(t!==null);Do===0&&(Do=5)}function Dp(e,t,n){var r=rr,o=Zs.transition;try{Zs.transition=null,rr=1,nCe(e,t,n,r)}finally{Zs.transition=o,rr=r}return null}function nCe(e,t,n,r){do oy();while(cf!==null);if(Fn&6)throw Error(it(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(it(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(LSe(e,i),e===Qo&&(bo=Qo=null,di=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||NC||(NC=!0,eZ(EE,function(){return oy(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Zs.transition,Zs.transition=null;var a=rr;rr=1;var s=Fn;Fn|=4,FF.current=null,X1e(e,n),WJ(n,e),S1e(J2),OE=!!Q2,J2=Q2=null,e.current=n,Q1e(n),OSe(),Fn=s,rr=a,Zs.transition=i}else e.current=n;if(NC&&(NC=!1,cf=e,HE=o),i=e.pendingLanes,i===0&&(xf=null),MSe(n.stateNode),ba(e,so()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(VE)throw VE=!1,e=vD,vD=null,e;return HE&1&&e.tag!==0&&oy(),i=e.pendingLanes,i&1?e===bD?yw++:(yw=0,bD=e):yw=0,Gf(),null}function oy(){if(cf!==null){var e=AQ(HE),t=Zs.transition,n=rr;try{if(Zs.transition=null,rr=16>e?16:e,cf===null)var r=!1;else{if(e=cf,cf=null,HE=0,Fn&6)throw Error(it(331));var o=Fn;for(Fn|=4,Tt=e.current;Tt!==null;){var i=Tt,a=i.child;if(Tt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Tt=c;Tt!==null;){var u=Tt;switch(u.tag){case 0:case 11:case 15:mw(8,u,i)}var d=u.child;if(d!==null)d.return=u,Tt=d;else for(;Tt!==null;){u=Tt;var f=u.sibling,p=u.return;if(VJ(u),u===c){Tt=null;break}if(f!==null){f.return=p,Tt=f;break}Tt=p}}}var m=i.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}Tt=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Tt=a;else e:for(;Tt!==null;){if(i=Tt,i.flags&2048)switch(i.tag){case 0:case 11:case 15:mw(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,Tt=b;break e}Tt=i.return}}var x=e.current;for(Tt=x;Tt!==null;){a=Tt;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,Tt=S;else e:for(a=x;Tt!==null;){if(s=Tt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:wI(9,s)}}catch(E){to(s,s.return,E)}if(s===a){Tt=null;break e}var P=s.sibling;if(P!==null){P.return=s.return,Tt=P;break e}Tt=s.return}}if(Fn=o,Gf(),_c&&typeof _c.onPostCommitFiberRoot=="function")try{_c.onPostCommitFiberRoot(fI,e)}catch{}r=!0}return r}finally{rr=n,Zs.transition=t}}return!1}function V3(e,t,n){t=zy(n,t),t=AJ(e,t,1),e=wf(e,t,1),t=qi(),e!==null&&(IS(e,1,t),ba(e,t))}function to(e,t,n){if(e.tag===3)V3(e,e,n);else for(;t!==null;){if(t.tag===3){V3(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xf===null||!xf.has(r))){e=zy(n,e),e=$J(t,e,1),t=wf(t,e,1),e=qi(),t!==null&&(IS(t,1,e),ba(t,e));break}}t=t.return}}function rCe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qi(),e.pingedLanes|=e.suspendedLanes&n,Qo===e&&(di&n)===n&&(Do===4||Do===3&&(di&130023424)===di&&500>so()-BF?uh(e,0):jF|=n),ba(e,t)}function JJ(e,t){t===0&&(e.mode&1?(t=OC,OC<<=1,!(OC&130023424)&&(OC=4194304)):t=1);var n=qi();e=Xu(e,t),e!==null&&(IS(e,t,n),ba(e,n))}function oCe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JJ(e,n)}function iCe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(it(314))}r!==null&&r.delete(t),JJ(e,n)}var ZJ;ZJ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ya.current)ma=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ma=!1,G1e(e,t,n);ma=!!(e.flags&131072)}else ma=!1,Nr&&t.flags&1048576&&rJ(t,DE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zP(e,t),e=t.pendingProps;var o=Ny(t,Ii.current);ry(t,n),o=RF(null,t,r,e,o,n);var i=DF();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,va(r)?(i=!0,$E(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,IF(t),o.updater=bI,t.stateNode=o,o._reactInternals=t,sD(t,r,e,n),t=uD(null,t,r,!0,i,n)):(t.tag=0,Nr&&i&&xF(t),Bi(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zP(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sCe(r),e=Ll(r,e),o){case 0:t=cD(null,t,r,e,n);break e;case 1:t=$3(null,t,r,e,n);break e;case 11:t=M3(null,t,r,e,n);break e;case 14:t=A3(null,t,r,Ll(r.type,e),n);break e}throw Error(it(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ll(r,o),cD(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ll(r,o),$3(e,t,r,o,n);case 3:e:{if(LJ(t),e===null)throw Error(it(387));r=t.pendingProps,i=t.memoizedState,o=i.element,cJ(e,t),NE(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zy(Error(it(423)),t),t=R3(e,t,r,n,o);break e}else if(r!==o){o=zy(Error(it(424)),t),t=R3(e,t,r,n,o);break e}else for(Xa=bf(t.stateNode.containerInfo.firstChild),Ja=t,Nr=!0,Ul=null,n=sJ(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fy(),r===o){t=Qu(e,t,n);break e}Bi(e,t,r,n)}t=t.child}return t;case 5:return uJ(t),e===null&&oD(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Z2(r,o)?a=null:i!==null&&Z2(r,i)&&(t.flags|=32),_J(e,t),Bi(e,t,a,n),t.child;case 6:return e===null&&oD(t),null;case 13:return NJ(e,t,n);case 4:return kF(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jy(t,null,r,n):Bi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ll(r,o),M3(e,t,r,o,n);case 7:return Bi(e,t,t.pendingProps,n),t.child;case 8:return Bi(e,t,t.pendingProps.children,n),t.child;case 12:return Bi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xr(_E,r._currentValue),r._currentValue=a,i!==null)if(ic(i.value,a)){if(i.children===o.children&&!ya.current){t=Qu(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=_u(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),iD(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(it(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),iD(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Bi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ry(t,n),o=al(o),r=r(o),t.flags|=1,Bi(e,t,r,n),t.child;case 14:return r=t.type,o=Ll(r,t.pendingProps),o=Ll(r.type,o),A3(e,t,r,o,n);case 15:return RJ(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ll(r,o),zP(e,t),t.tag=1,va(r)?(e=!0,$E(t)):e=!1,ry(t,n),MJ(t,r,o),sD(t,r,o,n),uD(null,t,r,!0,e,n);case 19:return FJ(e,t,n);case 22:return DJ(e,t,n)}throw Error(it(156,t.tag))};function eZ(e,t){return OQ(e,t)}function aCe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gs(e,t,n,r){return new aCe(e,t,n,r)}function UF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sCe(e){if(typeof e=="function")return UF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cF)return 11;if(e===uF)return 14}return 2}function Cf(e,t){var n=e.alternate;return n===null?(n=Gs(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function UP(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")UF(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cg:return dh(n.children,o,i,t);case lF:a=8,o|=8;break;case A2:return e=Gs(12,n,t,o|2),e.elementType=A2,e.lanes=i,e;case $2:return e=Gs(13,n,t,o),e.elementType=$2,e.lanes=i,e;case R2:return e=Gs(19,n,t,o),e.elementType=R2,e.lanes=i,e;case uQ:return SI(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lQ:a=10;break e;case cQ:a=9;break e;case cF:a=11;break e;case uF:a=14;break e;case Bd:a=16,r=null;break e}throw Error(it(130,e==null?e:typeof e,""))}return t=Gs(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function dh(e,t,n,r){return e=Gs(7,e,r,t),e.lanes=n,e}function SI(e,t,n,r){return e=Gs(22,e,r,t),e.elementType=uQ,e.lanes=n,e.stateNode={isHidden:!1},e}function I$(e,t,n){return e=Gs(6,e,null,t),e.lanes=n,e}function k$(e,t,n){return t=Gs(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lCe(e,t,n,r,o){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=c$(0),this.expirationTimes=c$(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=c$(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function WF(e,t,n,r,o,i,a,s,l){return e=new lCe(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Gs(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},IF(i),e}function cCe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sg,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tZ(e){if(!e)return $f;e=e._reactInternals;e:{if(Xh(e)!==e||e.tag!==1)throw Error(it(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(va(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(it(171))}if(e.tag===1){var n=e.type;if(va(n))return tJ(e,n,t)}return t}function nZ(e,t,n,r,o,i,a,s,l){return e=WF(n,r,!0,e,o,i,a,s,l),e.context=tZ(null),n=e.current,r=qi(),o=Sf(n),i=_u(r,o),i.callback=t??null,wf(n,i,o),e.current.lanes=o,IS(e,o,r),ba(e,r),e}function CI(e,t,n,r){var o=t.current,i=qi(),a=Sf(o);return n=tZ(n),t.context===null?t.context=n:t.pendingContext=n,t=_u(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=wf(o,t,a),e!==null&&(Jl(e,o,a,i),FP(e,o,a)),a}function WE(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 H3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function GF(e,t){H3(e,t),(e=e.alternate)&&H3(e,t)}function uCe(){return null}var rZ=typeof reportError=="function"?reportError:function(e){console.error(e)};function qF(e){this._internalRoot=e}PI.prototype.render=qF.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(it(409));CI(e,t,null,null)};PI.prototype.unmount=qF.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kh(function(){CI(null,e,null,null)}),t[Yu]=null}};function PI(e){this._internalRoot=e}PI.prototype.unstable_scheduleHydration=function(e){if(e){var t=DQ();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wd.length&&t!==0&&t<Wd[n].priority;n++);Wd.splice(n,0,e),n===0&&LQ(e)}};function KF(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function EI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function U3(){}function dCe(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=WE(a);i.call(c)}}var a=nZ(t,r,e,0,null,!1,!1,"",U3);return e._reactRootContainer=a,e[Yu]=a.current,tx(e.nodeType===8?e.parentNode:e),kh(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var c=WE(l);s.call(c)}}var l=WF(e,0,!1,null,null,!1,!1,"",U3);return e._reactRootContainer=l,e[Yu]=l.current,tx(e.nodeType===8?e.parentNode:e),kh(function(){CI(t,l,n,r)}),l}function TI(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=WE(a);s.call(l)}}CI(t,a,e,o)}else a=dCe(n,t,e,o,r);return WE(a)}$Q=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=q0(t.pendingLanes);n!==0&&(pF(t,n|1),ba(t,so()),!(Fn&6)&&(Vy=so()+500,Gf()))}break;case 13:kh(function(){var r=Xu(e,1);if(r!==null){var o=qi();Jl(r,e,1,o)}}),GF(e,1)}};hF=function(e){if(e.tag===13){var t=Xu(e,134217728);if(t!==null){var n=qi();Jl(t,e,134217728,n)}GF(e,134217728)}};RQ=function(e){if(e.tag===13){var t=Sf(e),n=Xu(e,t);if(n!==null){var r=qi();Jl(n,e,t,r)}GF(e,t)}};DQ=function(){return rr};_Q=function(e,t){var n=rr;try{return rr=e,t()}finally{rr=n}};H2=function(e,t,n){switch(t){case"input":if(L2(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=gI(r);if(!o)throw Error(it(90));fQ(r),L2(r,o)}}}break;case"textarea":hQ(e,n);break;case"select":t=n.value,t!=null&&Zg(e,!!n.multiple,t,!1)}};xQ=zF;SQ=kh;var fCe={usingClientEntryPoint:!1,Events:[MS,Og,gI,bQ,wQ,zF]},u0={findFiberByHostInstance:Wp,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pCe={bundleType:u0.bundleType,version:u0.version,rendererPackageName:u0.rendererPackageName,rendererConfig:u0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=EQ(e),e===null?null:e.stateNode},findFiberByHostInstance:u0.findFiberByHostInstance||uCe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var FC=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!FC.isDisabled&&FC.supportsFiber)try{fI=FC.inject(pCe),_c=FC}catch{}}us.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fCe;us.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!KF(t))throw Error(it(200));return cCe(e,t,null,n)};us.createRoot=function(e,t){if(!KF(e))throw Error(it(299));var n=!1,r="",o=rZ;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=WF(e,1,!1,null,null,n,!1,r,o),e[Yu]=t.current,tx(e.nodeType===8?e.parentNode:e),new qF(t)};us.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(it(188)):(e=Object.keys(e).join(","),Error(it(268,e)));return e=EQ(t),e=e===null?null:e.stateNode,e};us.flushSync=function(e){return kh(e)};us.hydrate=function(e,t,n){if(!EI(t))throw Error(it(200));return TI(null,e,t,!0,n)};us.hydrateRoot=function(e,t,n){if(!KF(e))throw Error(it(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=rZ;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=nZ(t,null,e,1,n??null,o,!1,i,a),e[Yu]=t.current,tx(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new PI(t)};us.render=function(e,t,n){if(!EI(t))throw Error(it(200));return TI(null,e,t,!1,n)};us.unmountComponentAtNode=function(e){if(!EI(e))throw Error(it(40));return e._reactRootContainer?(kh(function(){TI(null,null,e,!1,function(){e._reactRootContainer=null,e[Yu]=null})}),!0):!1};us.unstable_batchedUpdates=zF;us.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!EI(n))throw Error(it(200));if(e==null||e._reactInternals===void 0)throw Error(it(38));return TI(e,t,n,!1,r)};us.version="18.3.1-next-f1338f8080-20240426";function oZ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oZ)}catch(e){console.error(e)}}oZ(),oQ.exports=us;var OI=oQ.exports;const jC=jn(OI),W3={disabled:!1},GE=Y.createContext(null);var iZ=function(t){return t.scrollTop},Y0="unmounted",_p="exited",Lp="entering",pg="entered",SD="exiting",fs=function(e){OS(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=_p,i.appearStatus=Lp):l=pg:r.unmountOnExit||r.mountOnEnter?l=Y0:l=_p,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Y0?{status:_p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Lp&&a!==pg&&(i=Lp):(a===Lp||a===pg)&&(i=SD)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Lp){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:jC.findDOMNode(this);a&&iZ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_p&&this.setState({status:Y0})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[jC.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||W3.disabled){this.safeSetState({status:pg},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Lp},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:pg},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:jC.findDOMNode(this);if(!i||W3.disabled){this.safeSetState({status:_p},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:SD},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:_p},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:jC.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Y0)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ze(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(GE.Provider,{value:null},typeof a=="function"?a(o,s):Y.cloneElement(Y.Children.only(a),s))},t}(Y.Component);fs.contextType=GE;fs.propTypes={};function Wm(){}fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wm,onEntering:Wm,onEntered:Wm,onExit:Wm,onExiting:Wm,onExited:Wm};fs.UNMOUNTED=Y0;fs.EXITED=_p;fs.ENTERING=Lp;fs.ENTERED=pg;fs.EXITING=SD;var hCe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return lSe(t,r)})},M$=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return cSe(t,r)})},YF=function(e){OS(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";r.addClass(u,f,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],f=d?"appear":"enter";r.removeClasses(u,f),r.addClass(u,f,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+s:l[s],f=c?d+"-active":l[s+"Active"],p=c?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=t.prototype;return n.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&iZ(o),s&&(this.appliedClasses[i][a]=s,hCe(o,s))},n.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,l=a.active,c=a.done;this.appliedClasses[i]={},s&&M$(o,s),l&&M$(o,l),c&&M$(o,c)},n.render=function(){var o=this.props;o.classNames;var i=ze(o,["classNames"]);return Y.createElement(fs,D({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Y.Component);YF.defaultProps={classNames:""};YF.propTypes={};function CD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XF(e,t){var n=function(i){return t&&v.isValidElement(i)?t(i):i},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function mCe(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function Kp(e,t,n){return n[t]!=null?n[t]:e.props[t]}function gCe(e,t){return XF(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Kp(n,"appear",e),enter:Kp(n,"enter",e),exit:Kp(n,"exit",e)})})}function yCe(e,t,n){var r=XF(e.children),o=mCe(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(v.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=v.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Kp(a,"exit",e),enter:Kp(a,"enter",e)}):!l&&s&&!u?o[i]=v.cloneElement(a,{in:!1}):l&&s&&v.isValidElement(c)&&(o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Kp(a,"exit",e),enter:Kp(a,"enter",e)}))}}),o}var vCe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},bCe={component:"div",childFactory:function(t){return t}},$S=function(e){OS(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(CD(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?gCe(o,s):yCe(o,a,s),firstRender:!1}},n.handleExited=function(o,i){var a=XF(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=D({},s.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=ze(o,["component","childFactory"]),l=this.state.contextValue,c=vCe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Y.createElement(GE.Provider,{value:l},c):Y.createElement(GE.Provider,{value:l},Y.createElement(i,s,c))},t}(Y.Component);$S.propTypes={};$S.defaultProps=bCe;const QF=e=>e.scrollTop;function Rf(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function wCe(e){return Ze("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xCe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return et(r,wCe,n)},SCe=ie("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Qe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),CCe=ie("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),PCe=ie("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),el=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:y,orientation:b="vertical",style:x,timeout:S=AX.standard,TransitionComponent:P=fs,...E}=r,T={...r,orientation:b,collapsedSize:s},O=xCe(T),k=Lo(),M=sf(),I=v.useRef(null),R=v.useRef(),_=typeof s=="number"?`${s}px`:s,L=b==="horizontal",j=L?"width":"height",N=v.useRef(null),F=Cr(n,N),U=oe=>fe=>{if(oe){const se=N.current;fe===void 0?oe(se):oe(se,fe)}},z=()=>I.current?I.current[L?"clientWidth":"clientHeight"]:0,V=U((oe,fe)=>{I.current&&L&&(I.current.style.position="absolute"),oe.style[j]=_,d&&d(oe,fe)}),W=U((oe,fe)=>{const se=z();I.current&&L&&(I.current.style.position="");const{duration:ee,easing:ce}=Rf({style:x,timeout:S,easing:c},{mode:"enter"});if(S==="auto"){const le=k.transitions.getAutoHeightDuration(se);oe.style.transitionDuration=`${le}ms`,R.current=le}else oe.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;oe.style[j]=`${se}px`,oe.style.transitionTimingFunction=ce,p&&p(oe,fe)}),G=U((oe,fe)=>{oe.style[j]="auto",f&&f(oe,fe)}),J=U(oe=>{oe.style[j]=`${z()}px`,m&&m(oe)}),K=U(g),ne=U(oe=>{const fe=z(),{duration:se,easing:ee}=Rf({style:x,timeout:S,easing:c},{mode:"exit"});if(S==="auto"){const ce=k.transitions.getAutoHeightDuration(fe);oe.style.transitionDuration=`${ce}ms`,R.current=ce}else oe.style.transitionDuration=typeof se=="string"?se:`${se}ms`;oe.style[j]=_,oe.style.transitionTimingFunction=ee,y&&y(oe)}),re=oe=>{S==="auto"&&M.start(R.current||0,oe),o&&o(N.current,oe)};return $.jsx(P,{in:u,onEnter:V,onEntered:G,onEntering:W,onExit:J,onExited:K,onExiting:ne,addEndListener:re,nodeRef:N,timeout:S==="auto"?null:S,...E,children:(oe,{ownerState:fe,...se})=>$.jsx(SCe,{as:l,className:pe(O.root,a,{entered:O.entered,exited:!u&&_==="0px"&&O.hidden}[oe]),style:{[L?"minWidth":"minHeight"]:_,...x},ref:F,ownerState:{...T,state:oe},...se,children:$.jsx(CCe,{ownerState:{...T,state:oe},className:O.wrapper,ref:I,children:$.jsx(PCe,{ownerState:{...T,state:oe},className:O.wrapperInner,children:i})})})})});el&&(el.muiSupportAuto=!0);function ECe(e){return Ze("MuiPaper",e)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const TCe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return et(i,ECe,o)},OCe=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fo=v.forwardRef(function(t,n){var p;const r=nt({props:t,name:"MuiPaper"}),o=Lo(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=TCe(d);return $.jsx(OCe,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(p=o.vars.overlays)==null?void 0:p[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${vt("#fff",m2(s))}, ${vt("#fff",m2(s))})`}},...u.style}})}),aZ=v.createContext({});function dn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,p=rQ(u[e],o),{props:{component:m,...g},internalRef:y}=nQ({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:p}),b=Cr(y,p==null?void 0:p.ref,t.ref),x=e==="root"?m||l:m,S=tQ(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...g,...x&&{as:x},ref:b},o);return[f,S]}function ICe(e){return Ze("MuiAccordion",e)}const BC=tt("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),kCe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return et({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},ICe,t)},MCe=ie(fo,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Qe(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${BC.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${BC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Qe(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${BC.expanded}`]:{margin:"16px 0"}}}]}))),ACe=ie("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),JF=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:f={},slotProps:p={},TransitionComponent:m,TransitionProps:g,...y}=r,[b,x]=Du({controlled:c,default:a,name:"Accordion",state:"expanded"}),S=v.useCallback(F=>{x(!b),u&&u(F,!b)},[b,u,x]),[P,...E]=v.Children.toArray(o),T=v.useMemo(()=>({expanded:b,disabled:s,disableGutters:l,toggle:S}),[b,s,l,S]),O={...r,square:d,disabled:s,disableGutters:l,expanded:b},k=kCe(O),M={transition:m,...f},I={transition:g,...p},R={slots:M,slotProps:I},[_,L]=dn("heading",{elementType:ACe,externalForwardedProps:R,className:k.heading,ownerState:O}),[j,N]=dn("transition",{elementType:el,externalForwardedProps:R,ownerState:O});return $.jsxs(MCe,{className:pe(k.root,i),ref:n,ownerState:O,square:d,...y,children:[$.jsx(_,{...L,children:$.jsx(aZ.Provider,{value:T,children:P})}),$.jsx(j,{in:b,timeout:"auto",...N,children:$.jsx("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region",className:k.region,children:E})})]})});function $Ce(e){return Ze("MuiAccordionDetails",e)}tt("MuiAccordionDetails",["root"]);const RCe=e=>{const{classes:t}=e;return et({root:["root"]},$Ce,t)},DCe=ie("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({padding:e.spacing(1,2,2)}))),ZF=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordionDetails"}),{className:o,...i}=r,a=r,s=RCe(a);return $.jsx(DCe,{className:pe(s.root,o),ref:n,ownerState:a,...i})});class qE{constructor(){tn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new qE}static use(){const t=XX(qE.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=LCe(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function _Ce(){return qE.use()}function LCe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function NCe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),v.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),$.jsx("span",{className:f,style:p,children:$.jsx("span",{className:m})})}const js=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),PD=550,FCe=80,jCe=Xc`
0% {
transform: scale(0);
opacity: 0.1;
@@ -95,7 +95,7 @@ Error generating stack: `+i.message+`
transform: scale(1);
opacity: 0.3;
}
-`,M1e=jc`
+`,BCe=Xc`
0% {
opacity: 1;
}
@@ -103,7 +103,7 @@ Error generating stack: `+i.message+`
100% {
opacity: 0;
}
-`,A1e=jc`
+`,zCe=Xc`
0% {
transform: scale(1);
}
@@ -115,23 +115,23 @@ Error generating stack: `+i.message+`
100% {
transform: scale(1);
}
-`,$1e=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R1e=ie(O1e,{name:"MuiTouchRipple",slot:"Ripple"})`
+`,VCe=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HCe=ie(NCe,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
- &.${As.rippleVisible} {
+ &.${js.rippleVisible} {
opacity: 0.3;
transform: scale(1);
- animation-name: ${k1e};
- animation-duration: ${V2}ms;
+ animation-name: ${jCe};
+ animation-duration: ${PD}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
- &.${As.ripplePulsate} {
+ &.${js.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
- & .${As.child} {
+ & .${js.child} {
opacity: 1;
display: block;
width: 100%;
@@ -140,26 +140,26 @@ Error generating stack: `+i.message+`
background-color: currentColor;
}
- & .${As.childLeaving} {
+ & .${js.childLeaving} {
opacity: 0;
- animation-name: ${M1e};
- animation-duration: ${V2}ms;
+ animation-name: ${BCe};
+ animation-duration: ${PD}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
- & .${As.childPulsate} {
+ & .${js.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
- animation-name: ${A1e};
+ animation-name: ${zCe};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
-`,D1e=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=v.useRef(!1),p=la(),m=v.useRef(null),g=v.useRef(null),y=v.useCallback(P=>{const{pulsate:E,rippleX:T,rippleY:O,rippleSize:k,cb:M}=P;c(I=>[...I,$.jsx(R1e,{classes:{ripple:pe(i.ripple,As.ripple),rippleVisible:pe(i.rippleVisible,As.rippleVisible),ripplePulsate:pe(i.ripplePulsate,As.ripplePulsate),child:pe(i.child,As.child),childLeaving:pe(i.childLeaving,As.childLeaving),childPulsate:pe(i.childPulsate,As.childPulsate)},timeout:V2,pulsate:E,rippleX:T,rippleY:O,rippleSize:k},u.current)]),u.current+=1,d.current=M},[i]),b=v.useCallback((P={},E={},T=()=>{})=>{const{pulsate:O=!1,center:k=o||E.pulsate,fakeElement:M=!1}=E;if((P==null?void 0:P.type)==="mousedown"&&f.current){f.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(f.current=!0);const I=M?null:g.current,R=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,N,B;if(k||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)_=Math.round(R.width/2),N=Math.round(R.height/2);else{const{clientX:L,clientY:F}=P.touches&&P.touches.length>0?P.touches[0]:P;_=Math.round(L-R.left),N=Math.round(F-R.top)}if(k)B=Math.sqrt((2*R.width**2+R.height**2)/3),B%2===0&&(B+=1);else{const L=Math.max(Math.abs((I?I.clientWidth:0)-_),_)*2+2,F=Math.max(Math.abs((I?I.clientHeight:0)-N),N)*2+2;B=Math.sqrt(L**2+F**2)}P!=null&&P.touches?m.current===null&&(m.current=()=>{y({pulsate:O,rippleX:_,rippleY:N,rippleSize:B,cb:T})},p.start(I1e,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:O,rippleX:_,rippleY:N,rippleSize:B,cb:T})},[o,y,p]),x=v.useCallback(()=>{b({},{pulsate:!0})},[b]),S=v.useCallback((P,E)=>{if(p.clear(),(P==null?void 0:P.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{S(P,E)});return}m.current=null,c(T=>T.length>0?T.slice(1):T),d.current=E},[p]);return v.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:S}),[x,b,S]),$.jsx($1e,{className:pe(As.root,i.root,a),ref:g,...s,children:$.jsx(cS,{component:null,exit:!0,children:l})})});function _1e(e){return _e("MuiButtonBase",e)}const L1e=Le("MuiButtonBase",["root","disabled","focusVisible"]),N1e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Te({root:["root",t&&"disabled",n&&"focusVisible"]},_1e,o);return n&&r&&(a.root+=` ${r}`),a},F1e=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${L1e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hi=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:x,onFocus:S,onFocusVisible:P,onKeyDown:E,onKeyUp:T,onMouseDown:O,onMouseLeave:k,onMouseUp:M,onTouchEnd:I,onTouchMove:R,onTouchStart:_,tabIndex:N=0,TouchRippleProps:B,touchRippleRef:L,type:F,...U}=r,V=v.useRef(null),z=E1e(),W=Wt(z.ref,L),[G,J]=v.useState(!1);c&&G&&J(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),V.current.focus()}}),[]);const K=z.shouldMount&&!u&&!c;v.useEffect(()=>{G&&f&&!u&&z.pulsate()},[u,f,G,z]);const ne=ou(z,"start",O,d),re=ou(z,"stop",b,d),oe=ou(z,"stop",x,d),fe=ou(z,"stop",M,d),se=ou(z,"stop",de=>{G&&de.preventDefault(),k&&k(de)},d),ee=ou(z,"start",_,d),ce=ou(z,"stop",I,d),le=ou(z,"stop",R,d),Q=ou(z,"stop",de=>{UP(de.target)||J(!1),g&&g(de)},!1),ue=Ze(de=>{V.current||(V.current=de.currentTarget),UP(de.target)&&(J(!0),P&&P(de)),S&&S(de)}),ge=()=>{const de=V.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},xe=Ze(de=>{f&&!de.repeat&&G&&de.key===" "&&z.stop(de,()=>{z.start(de)}),de.target===de.currentTarget&&ge()&&de.key===" "&&de.preventDefault(),E&&E(de),de.target===de.currentTarget&&ge()&&de.key==="Enter"&&!c&&(de.preventDefault(),y&&y(de))}),me=Ze(de=>{f&&de.key===" "&&G&&!de.defaultPrevented&&z.stop(de,()=>{z.pulsate(de)}),T&&T(de),y&&de.target===de.currentTarget&&ge()&&de.key===" "&&!de.defaultPrevented&&y(de)});let be=l;be==="button"&&(U.href||U.to)&&(be=m);const we={};be==="button"?(we.type=F===void 0?"button":F,we.disabled=c):(!U.href&&!U.to&&(we.role="button"),c&&(we["aria-disabled"]=c));const Oe=Wt(n,V),ke={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:G},je=N1e(ke);return $.jsxs(F1e,{as:be,className:pe(je.root,s),ownerState:ke,onBlur:Q,onClick:y,onContextMenu:re,onFocus:ue,onKeyDown:xe,onKeyUp:me,onMouseDown:ne,onMouseLeave:se,onMouseUp:fe,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ee,ref:Oe,tabIndex:c?-1:N,type:F,...we,...U,children:[a,K?$.jsx(D1e,{ref:W,center:i,...B}):null]})});function ou(e,t,n,r=!1){return Ze(o=>(n&&n(o),r||e[t](o),!0))}function j1e(e){return _e("MuiAccordionSummary",e)}const gg=Le("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),B1e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Te({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},j1e,t)},z1e=ie(Hi,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${gg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${gg.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${gg.expanded}`]:{minHeight:64}}}]}})),V1e=ie("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(tt(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${gg.expanded}`]:{margin:"20px 0"}}}]}))),H1e=ie("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(tt(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${gg.expanded}`]:{transform:"rotate(180deg)"}}))),gF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:l,...c}=r,{disabled:u=!1,disableGutters:d,expanded:f,toggle:p}=v.useContext(iJ),m=b=>{p&&p(b),l&&l(b)},g={...r,expanded:f,disabled:u,disableGutters:d},y=B1e(g);return $.jsxs(z1e,{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":f,className:pe(y.root,i),focusVisibleClassName:pe(y.focusVisible,s),onClick:m,ref:n,ownerState:g,...c,children:[$.jsx(V1e,{className:y.content,ownerState:g,children:o}),a&&$.jsx(H1e,{className:y.expandIconWrapper,ownerState:g,children:a})]})});function U1e(e){return typeof e.main=="string"}function W1e(e,t=[]){if(!U1e(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Hn(e=[]){return([,t])=>t&&W1e(t,e)}function G1e(e){return _e("MuiAlert",e)}const o3=Le("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function q1e(e){return _e("MuiIconButton",e)}const K1e=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Y1e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Se(r)}`,o&&`edge${Se(o)}`,`size${Se(i)}`]};return Te(a,q1e,t)},X1e=ie(Hi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Se(n.color)}`],n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})(tt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),tt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${K1e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),An=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},p=Y1e(f);return $.jsx(X1e,{className:pe(p.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),Q1e=lt($.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),J1e=lt($.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Z1e=lt($.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),eCe=lt($.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),aJ=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tCe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Se(n||r)}`,`${t}${Se(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Te(i,G1e,o)},nCe=ie(so,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color||n.severity)}`]]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?Ru:Du,n=e.palette.mode==="light"?Du:Ru;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${o3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${o3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Hn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),rCe=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),oCe=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),i3=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),a3={success:$.jsx(Q1e,{fontSize:"inherit"}),warning:$.jsx(J1e,{fontSize:"inherit"}),error:$.jsx(Z1e,{fontSize:"inherit"}),info:$.jsx(eCe,{fontSize:"inherit"})},Bu=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=a3,onClose:p,role:m="alert",severity:g="success",slotProps:y={},slots:b={},variant:x="standard",...S}=r,P={...r,color:l,severity:g,variant:x,colorSeverity:l||g},E=tCe(P),T={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...b},slotProps:{...u,...y}},[O,k]=dn("closeButton",{elementType:An,externalForwardedProps:T,ownerState:P}),[M,I]=dn("closeIcon",{elementType:aJ,externalForwardedProps:T,ownerState:P});return $.jsxs(nCe,{role:m,elevation:0,ownerState:P,className:pe(E.root,a),ref:n,...S,children:[d!==!1?$.jsx(rCe,{ownerState:P,className:E.icon,children:d||f[g]||a3[g]}):null,$.jsx(oCe,{ownerState:P,className:E.message,children:i}),o!=null?$.jsx(i3,{ownerState:P,className:E.action,children:o}):null,o==null&&p?$.jsx(i3,{ownerState:P,className:E.action,children:$.jsx(O,{size:"small","aria-label":s,title:s,color:"inherit",onClick:p,...k,children:$.jsx(M,{fontSize:"small",...I})})}):null]})});function iCe(e){return _e("MuiTypography",e)}const SE=Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),aCe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sCe=qwe(),lCe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Se(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Te(s,iCe,a)},cCe=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(tt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Se(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),s3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ut=v.forwardRef(function(t,n){const{color:r,...o}=rt({props:t,name:"MuiTypography"}),i=!aCe[r],a=sCe({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=s3,...g}=a,y={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:m},b=c||(f?"p":m[p]||s3[p])||"span",x=lCe(y);return $.jsx(cCe,{as:b,ref:n,className:pe(x.root,l),...g,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...g.style}})});function uCe(e){return _e("MuiAlertTitle",e)}Le("MuiAlertTitle",["root"]);const dCe=e=>{const{classes:t}=e;return Te({root:["root"]},uCe,t)},fCe=ie(ut,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),CE=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAlertTitle"}),{className:o,...i}=r,a=r,s=dCe(a);return $.jsx(fCe,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:pe(s.root,o),...i})});function pCe(e){return _e("MuiAppBar",e)}Le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hCe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Se(t)}`,`position${Se(n)}`]};return Te(o,pCe,r)},l3=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mCe=ie(so,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Hn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?l3(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?l3(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),gCe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=hCe(c);return $.jsx(mCe,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});function c3(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function sJ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=c3(u));const d=u?s.filter(f=>{let p=(i||c)(f);return n&&(p=p.toLowerCase()),t&&(p=c3(p)),o==="start"?p.startsWith(u):p.includes(u)}):s;return typeof r=="number"?d.slice(0,r):d}}const yCe=sJ(),u3=5,vCe=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},bCe=[];function wCe(e){const{unstable_isActiveElementInListbox:t=vCe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?bCe:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:y=yCe,filterSelectedOptions:b=!1,freeSolo:x=!1,getOptionDisabled:S,getOptionKey:P,getOptionLabel:E=Ke=>Ke.label??Ke,groupBy:T,handleHomeEndKeys:O=!e.freeSolo,id:k,includeInputInList:M=!1,inputValue:I,isOptionEqualToValue:R=(Ke,Be)=>Ke===Be,multiple:_=!1,onChange:N,onClose:B,onHighlightChange:L,onInputChange:F,onOpen:U,open:V,openOnFocus:z=!1,options:W,readOnly:G=!1,selectOnFocus:J=!e.freeSolo,value:K}=e,ne=_n(k);let re=E;re=Ke=>{const Be=E(Ke);return typeof Be!="string"?String(Be):Be};const oe=v.useRef(!1),fe=v.useRef(!0),se=v.useRef(null),ee=v.useRef(null),[ce,le]=v.useState(null),[Q,ue]=v.useState(-1),ge=o?0:-1,xe=v.useRef(ge),[me,be]=bi({controlled:K,default:u,name:c}),[we,Oe]=bi({controlled:I,default:"",name:c,state:"inputValue"}),[ke,je]=v.useState(!1),de=v.useCallback((Ke,Be,St)=>{if(!(_?me.length<Be.length:Be!==null)&&!s)return;let ln;if(_)ln="";else if(Be==null)ln="";else{const Rr=re(Be);ln=typeof Rr=="string"?Rr:""}we!==ln&&(Oe(ln),F&&F(Ke,ln,St))},[re,we,_,F,Oe,s,me]),[Re,Me]=bi({controlled:V,default:!1,name:c,state:"open"}),[Ae,Ne]=v.useState(!0),Je=!_&&me!=null&&we===re(me),nt=Re&&!G,st=nt?y(W.filter(Ke=>!(b&&(_?me:[me]).some(Be=>Be!==null&&R(Ke,Be)))),{inputValue:Je&&Ae?"":we,getOptionLabel:re}):[],$t=pN({filteredOptions:st,value:me,inputValue:we});v.useEffect(()=>{const Ke=me!==$t.value;ke&&!Ke||x&&!Ke||de(null,me,"reset")},[me,de,ke,$t.value,x]);const ct=Re&&st.length>0&&!G,_t=Ze(Ke=>{Ke===-1?se.current.focus():ce.querySelector(`[data-tag-index="${Ke}"]`).focus()});v.useEffect(()=>{_&&Q>me.length-1&&(ue(-1),_t(-1))},[me,_,Q,_t]);function pt(Ke,Be){if(!ee.current||Ke<0||Ke>=st.length)return-1;let St=Ke;for(;;){const Zt=ee.current.querySelector(`[data-option-index="${St}"]`),ln=m?!1:!Zt||Zt.disabled||Zt.getAttribute("aria-disabled")==="true";if(Zt&&Zt.hasAttribute("tabindex")&&!ln)return St;if(Be==="next"?St=(St+1)%st.length:St=(St-1+st.length)%st.length,St===Ke)return-1}}const ot=Ze(({event:Ke,index:Be,reason:St="auto"})=>{if(xe.current=Be,Be===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${Be}`),L&&L(Ke,Be===-1?null:st[Be],St),!ee.current)return;const Zt=ee.current.querySelector(`[role="option"].${n}-focused`);Zt&&(Zt.classList.remove(`${n}-focused`),Zt.classList.remove(`${n}-focusVisible`));let ln=ee.current;if(ee.current.getAttribute("role")!=="listbox"&&(ln=ee.current.parentElement.querySelector('[role="listbox"]')),!ln)return;if(Be===-1){ln.scrollTop=0;return}const Rr=ee.current.querySelector(`[data-option-index="${Be}"]`);if(Rr&&(Rr.classList.add(`${n}-focused`),St==="keyboard"&&Rr.classList.add(`${n}-focusVisible`),ln.scrollHeight>ln.clientHeight&&St!=="mouse"&&St!=="touch")){const Gn=Rr,Ca=ln.clientHeight+ln.scrollTop,qc=Gn.offsetTop+Gn.offsetHeight;qc>Ca?ln.scrollTop=qc-ln.clientHeight:Gn.offsetTop-Gn.offsetHeight*(T?1.3:0)<ln.scrollTop&&(ln.scrollTop=Gn.offsetTop-Gn.offsetHeight*(T?1.3:0))}}),Pe=Ze(({event:Ke,diff:Be,direction:St="next",reason:Zt="auto"})=>{if(!nt)return;const Rr=pt((()=>{const Gn=st.length-1;if(Be==="reset")return ge;if(Be==="start")return 0;if(Be==="end")return Gn;const Ca=xe.current+Be;return Ca<0?Ca===-1&&M?-1:g&&xe.current!==-1||Math.abs(Be)>1?0:Gn:Ca>Gn?Ca===Gn+1&&M?-1:g||Math.abs(Be)>1?Gn:0:Ca})(),St);if(ot({index:Rr,reason:Zt,event:Ke}),r&&Be!=="reset")if(Rr===-1)se.current.value=we;else{const Gn=re(st[Rr]);se.current.value=Gn,Gn.toLowerCase().indexOf(we.toLowerCase())===0&&we.length>0&&se.current.setSelectionRange(we.length,Gn.length)}}),We=()=>{const Ke=(Be,St)=>{const Zt=Be?re(Be):"",ln=St?re(St):"";return Zt===ln};if(xe.current!==-1&&$t.filteredOptions&&$t.filteredOptions.length!==st.length&&$t.inputValue===we&&(_?me.length===$t.value.length&&$t.value.every((Be,St)=>re(me[St])===re(Be)):Ke($t.value,me))){const Be=$t.filteredOptions[xe.current];if(Be)return st.findIndex(St=>re(St)===re(Be))}return-1},ft=v.useCallback(()=>{if(!nt)return;const Ke=We();if(Ke!==-1){xe.current=Ke;return}const Be=_?me[0]:me;if(st.length===0||Be==null){Pe({diff:"reset"});return}if(ee.current){if(Be!=null){const St=st[xe.current];if(_&&St&&me.findIndex(ln=>R(St,ln))!==-1)return;const Zt=st.findIndex(ln=>R(ln,Be));Zt===-1?Pe({diff:"reset"}):ot({index:Zt});return}if(xe.current>=st.length-1){ot({index:st.length-1});return}ot({index:xe.current})}},[st.length,_?!1:me,b,Pe,ot,nt,we,_]),Ot=Ze(Ke=>{HP(ee,Ke),Ke&&ft()});v.useEffect(()=>{ft()},[ft]);const xt=Ke=>{Re||(Me(!0),Ne(!0),U&&U(Ke))},vn=(Ke,Be)=>{Re&&(Me(!1),B&&B(Ke,Be))},zn=(Ke,Be,St,Zt)=>{if(_){if(me.length===Be.length&&me.every((ln,Rr)=>ln===Be[Rr]))return}else if(me===Be)return;N&&N(Ke,Be,St,Zt),be(Be)},Wn=v.useRef(!1),xo=(Ke,Be,St="selectOption",Zt="options")=>{let ln=St,Rr=Be;if(_){Rr=Array.isArray(me)?me.slice():[];const Gn=Rr.findIndex(Ca=>R(Be,Ca));Gn===-1?Rr.push(Be):Zt!=="freeSolo"&&(Rr.splice(Gn,1),ln="removeOption")}de(Ke,Rr,ln),zn(Ke,Rr,ln,{option:Be}),!f&&(!Ke||!Ke.ctrlKey&&!Ke.metaKey)&&vn(Ke,ln),(a===!0||a==="touch"&&Wn.current||a==="mouse"&&!Wn.current)&&se.current.blur()};function So(Ke,Be){if(Ke===-1)return-1;let St=Ke;for(;;){if(Be==="next"&&St===me.length||Be==="previous"&&St===-1)return-1;const Zt=ce.querySelector(`[data-tag-index="${St}"]`);if(!Zt||!Zt.hasAttribute("tabindex")||Zt.disabled||Zt.getAttribute("aria-disabled")==="true")St+=Be==="next"?1:-1;else return St}}const ai=(Ke,Be)=>{if(!_)return;we===""&&vn(Ke,"toggleInput");let St=Q;Q===-1?we===""&&Be==="previous"&&(St=me.length-1):(St+=Be==="next"?1:-1,St<0&&(St=0),St===me.length&&(St=-1)),St=So(St,Be),ue(St),_t(St)},Sa=Ke=>{oe.current=!0,Oe(""),F&&F(Ke,"","clear"),zn(Ke,_?[]:null,"clear")},Nt=Ke=>Be=>{if(Ke.onKeyDown&&Ke.onKeyDown(Be),!Be.defaultMuiPrevented&&(Q!==-1&&!["ArrowLeft","ArrowRight"].includes(Be.key)&&(ue(-1),_t(-1)),Be.which!==229))switch(Be.key){case"Home":nt&&O&&(Be.preventDefault(),Pe({diff:"start",direction:"next",reason:"keyboard",event:Be}));break;case"End":nt&&O&&(Be.preventDefault(),Pe({diff:"end",direction:"previous",reason:"keyboard",event:Be}));break;case"PageUp":Be.preventDefault(),Pe({diff:-u3,direction:"previous",reason:"keyboard",event:Be}),xt(Be);break;case"PageDown":Be.preventDefault(),Pe({diff:u3,direction:"next",reason:"keyboard",event:Be}),xt(Be);break;case"ArrowDown":Be.preventDefault(),Pe({diff:1,direction:"next",reason:"keyboard",event:Be}),xt(Be);break;case"ArrowUp":Be.preventDefault(),Pe({diff:-1,direction:"previous",reason:"keyboard",event:Be}),xt(Be);break;case"ArrowLeft":ai(Be,"previous");break;case"ArrowRight":ai(Be,"next");break;case"Enter":if(xe.current!==-1&&nt){const St=st[xe.current],Zt=S?S(St):!1;if(Be.preventDefault(),Zt)return;xo(Be,St,"selectOption"),r&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else x&&we!==""&&Je===!1&&(_&&Be.preventDefault(),xo(Be,we,"createOption","freeSolo"));break;case"Escape":nt?(Be.preventDefault(),Be.stopPropagation(),vn(Be,"escape")):l&&(we!==""||_&&me.length>0)&&(Be.preventDefault(),Be.stopPropagation(),Sa(Be));break;case"Backspace":if(_&&!G&&we===""&&me.length>0){const St=Q===-1?me.length-1:Q,Zt=me.slice();Zt.splice(St,1),zn(Be,Zt,"removeOption",{option:me[St]})}break;case"Delete":if(_&&!G&&we===""&&me.length>0&&Q!==-1){const St=Q,Zt=me.slice();Zt.splice(St,1),zn(Be,Zt,"removeOption",{option:me[St]})}break}},Co=Ke=>{je(!0),z&&!oe.current&&xt(Ke)},ss=Ke=>{if(t(ee)){se.current.focus();return}je(!1),fe.current=!0,oe.current=!1,i&&xe.current!==-1&&nt?xo(Ke,st[xe.current],"blur"):i&&x&&we!==""?xo(Ke,we,"blur","freeSolo"):s&&de(Ke,me,"blur"),vn(Ke,"blur")},ad=Ke=>{const Be=Ke.target.value;we!==Be&&(Oe(Be),Ne(!1),F&&F(Ke,Be,"input")),Be===""?!d&&!_&&zn(Ke,null,"clear"):xt(Ke)},Gc=Ke=>{const Be=Number(Ke.currentTarget.getAttribute("data-option-index"));xe.current!==Be&&ot({event:Ke,index:Be,reason:"mouse"})},Kf=Ke=>{ot({event:Ke,index:Number(Ke.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Wn.current=!0},Yf=Ke=>{const Be=Number(Ke.currentTarget.getAttribute("data-option-index"));xo(Ke,st[Be],"selectOption"),Wn.current=!1},mb=Ke=>Be=>{const St=me.slice();St.splice(Ke,1),zn(Be,St,"removeOption",{option:me[Ke]})},rm=Ke=>{Re?vn(Ke,"toggleInput"):xt(Ke)},o1=Ke=>{Ke.currentTarget.contains(Ke.target)&&Ke.target.getAttribute("id")!==ne&&Ke.preventDefault()},Xf=Ke=>{Ke.currentTarget.contains(Ke.target)&&(se.current.focus(),J&&fe.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),fe.current=!1)},Do=Ke=>{!p&&(we===""||!Re)&&rm(Ke)};let Wr=x&&we.length>0;Wr=Wr||(_?me.length>0:me!==null);let hl=st;return T&&(hl=st.reduce((Ke,Be,St)=>{const Zt=T(Be);return Ke.length>0&&Ke[Ke.length-1].group===Zt?Ke[Ke.length-1].options.push(Be):Ke.push({key:St,index:St,group:Zt,options:[Be]}),Ke},[])),p&&ke&&ss(),{getRootProps:(Ke={})=>({"aria-owns":ct?`${ne}-listbox`:null,...Ke,onKeyDown:Nt(Ke),onMouseDown:o1,onClick:Xf}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:we,onBlur:ss,onFocus:Co,onChange:ad,onMouseDown:Do,"aria-activedescendant":nt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ct?`${ne}-listbox`:void 0,"aria-expanded":ct,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Sa}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:rm}),getTagProps:({index:Ke})=>({key:Ke,"data-tag-index":Ke,tabIndex:-1,...!G&&{onDelete:mb(Ke)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:Ot,onMouseDown:Ke=>{Ke.preventDefault()}}),getOptionProps:({index:Ke,option:Be})=>{const St=(_?me:[me]).some(ln=>ln!=null&&R(Be,ln)),Zt=S?S(Be):!1;return{key:(P==null?void 0:P(Be))??re(Be),tabIndex:-1,role:"option",id:`${ne}-option-${Ke}`,onMouseMove:Gc,onClick:Yf,onTouchStart:Kf,"data-option-index":Ke,"aria-disabled":Zt,"aria-selected":St}},id:ne,inputValue:we,value:me,dirty:Wr,expanded:nt&&ce,popupOpen:nt,focused:ke||Q!==-1,anchorEl:ce,setAnchorEl:le,focusedTag:Q,groupedOptions:hl}}var ha="top",Zs="bottom",el="right",ma="left",yF="auto",uS=[ha,Zs,el,ma],Sy="start",Bw="end",xCe="clippingParents",lJ="viewport",zb="popper",SCe="reference",d3=uS.reduce(function(e,t){return e.concat([t+"-"+Sy,t+"-"+Bw])},[]),cJ=[].concat(uS,[yF]).reduce(function(e,t){return e.concat([t,t+"-"+Sy,t+"-"+Bw])},[]),CCe="beforeRead",PCe="read",ECe="afterRead",TCe="beforeMain",OCe="main",ICe="afterMain",kCe="beforeWrite",MCe="write",ACe="afterWrite",$Ce=[CCe,PCe,ECe,TCe,OCe,ICe,kCe,MCe,ACe];function Dc(e){return e?(e.nodeName||"").toLowerCase():null}function Xa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ph(e){var t=Xa(e).Element;return e instanceof t||e instanceof Element}function Gs(e){var t=Xa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vF(e){if(typeof ShadowRoot>"u")return!1;var t=Xa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function RCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Gs(i)||!Dc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function DCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Gs(o)||!Dc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const _Ce={name:"applyStyles",enabled:!0,phase:"write",fn:RCe,effect:DCe,requires:["computeStyles"]};function Oc(e){return e.split("-")[0]}var Yp=Math.max,PE=Math.min,Cy=Math.round;function H2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function uJ(){return!/^((?!chrome|android).)*safari/i.test(H2())}function Py(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Gs(e)&&(o=e.offsetWidth>0&&Cy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cy(r.height)/e.offsetHeight||1);var a=ph(e)?Xa(e):window,s=a.visualViewport,l=!uJ()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function bF(e){var t=Py(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dJ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zu(e){return Xa(e).getComputedStyle(e)}function LCe(e){return["table","td","th"].indexOf(Dc(e))>=0}function Af(e){return((ph(e)?e.ownerDocument:e.document)||window.document).documentElement}function tI(e){return Dc(e)==="html"?e:e.assignedSlot||e.parentNode||(vF(e)?e.host:null)||Af(e)}function f3(e){return!Gs(e)||zu(e).position==="fixed"?null:e.offsetParent}function NCe(e){var t=/firefox/i.test(H2()),n=/Trident/i.test(H2());if(n&&Gs(e)){var r=zu(e);if(r.position==="fixed")return null}var o=tI(e);for(vF(o)&&(o=o.host);Gs(o)&&["html","body"].indexOf(Dc(o))<0;){var i=zu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function dS(e){for(var t=Xa(e),n=f3(e);n&&LCe(n)&&zu(n).position==="static";)n=f3(n);return n&&(Dc(n)==="html"||Dc(n)==="body"&&zu(n).position==="static")?t:n||NCe(e)||t}function wF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K0(e,t,n){return Yp(e,PE(t,n))}function FCe(e,t,n){var r=K0(e,t,n);return r>n?n:r}function fJ(){return{top:0,right:0,bottom:0,left:0}}function pJ(e){return Object.assign({},fJ(),e)}function hJ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jCe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pJ(typeof t!="number"?t:hJ(t,uS))};function BCe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Oc(n.placement),l=wF(s),c=[ma,el].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=jCe(o.padding,n),f=bF(i),p=l==="y"?ha:ma,m=l==="y"?Zs:el,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],y=a[l]-n.rects.reference[l],b=dS(i),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=g/2-y/2,P=d[p],E=x-f[u]-d[m],T=x/2-f[u]/2+S,O=K0(P,T,E),k=l;n.modifiersData[r]=(t={},t[k]=O,t.centerOffset=O-T,t)}}function zCe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||dJ(t.elements.popper,o)&&(t.elements.arrow=o))}const VCe={name:"arrow",enabled:!0,phase:"main",fn:BCe,effect:zCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ey(e){return e.split("-")[1]}var HCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UCe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cy(n*o)/o||0,y:Cy(r*o)/o||0}}function p3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,m=a.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),S=ma,P=ha,E=window;if(c){var T=dS(n),O="clientHeight",k="clientWidth";if(T===Xa(n)&&(T=Af(n),zu(T).position!=="static"&&s==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,o===ha||(o===ma||o===el)&&i===Bw){P=Zs;var M=d&&T===E&&E.visualViewport?E.visualViewport.height:T[O];g-=M-r.height,g*=l?1:-1}if(o===ma||(o===ha||o===Zs)&&i===Bw){S=el;var I=d&&T===E&&E.visualViewport?E.visualViewport.width:T[k];p-=I-r.width,p*=l?1:-1}}var R=Object.assign({position:s},c&&HCe),_=u===!0?UCe({x:p,y:g},Xa(n)):{x:p,y:g};if(p=_.x,g=_.y,l){var N;return Object.assign({},R,(N={},N[P]=x?"0":"",N[S]=b?"0":"",N.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",N))}return Object.assign({},R,(t={},t[P]=x?g+"px":"",t[S]=b?p+"px":"",t.transform="",t))}function WCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Oc(t.placement),variation:Ey(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p3(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p3(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const GCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WCe,data:{}};var yC={passive:!0};function qCe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Xa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,yC)}),s&&l.addEventListener("resize",n.update,yC),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,yC)}),s&&l.removeEventListener("resize",n.update,yC)}}const KCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qCe,data:{}};var YCe={left:"right",right:"left",bottom:"top",top:"bottom"};function SP(e){return e.replace(/left|right|bottom|top/g,function(t){return YCe[t]})}var XCe={start:"end",end:"start"};function h3(e){return e.replace(/start|end/g,function(t){return XCe[t]})}function xF(e){var t=Xa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function SF(e){return Py(Af(e)).left+xF(e).scrollLeft}function QCe(e,t){var n=Xa(e),r=Af(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=uJ();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+SF(e),y:l}}function JCe(e){var t,n=Af(e),r=xF(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Yp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Yp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+SF(e),l=-r.scrollTop;return zu(o||n).direction==="rtl"&&(s+=Yp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function CF(e){var t=zu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function mJ(e){return["html","body","#document"].indexOf(Dc(e))>=0?e.ownerDocument.body:Gs(e)&&CF(e)?e:mJ(tI(e))}function Y0(e,t){var n;t===void 0&&(t=[]);var r=mJ(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Xa(r),a=o?[i].concat(i.visualViewport||[],CF(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Y0(tI(a)))}function U2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZCe(e,t){var n=Py(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function m3(e,t,n){return t===lJ?U2(QCe(e,n)):ph(t)?ZCe(t,n):U2(JCe(Af(e)))}function ePe(e){var t=Y0(tI(e)),n=["absolute","fixed"].indexOf(zu(e).position)>=0,r=n&&Gs(e)?dS(e):e;return ph(r)?t.filter(function(o){return ph(o)&&dJ(o,r)&&Dc(o)!=="body"}):[]}function tPe(e,t,n,r){var o=t==="clippingParents"?ePe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=m3(e,c,r);return l.top=Yp(u.top,l.top),l.right=PE(u.right,l.right),l.bottom=PE(u.bottom,l.bottom),l.left=Yp(u.left,l.left),l},m3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function gJ(e){var t=e.reference,n=e.element,r=e.placement,o=r?Oc(r):null,i=r?Ey(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case ha:l={x:a,y:t.y-n.height};break;case Zs:l={x:a,y:t.y+t.height};break;case el:l={x:t.x+t.width,y:s};break;case ma:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?wF(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Sy:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Bw:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function zw(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?xCe:s,c=n.rootBoundary,u=c===void 0?lJ:c,d=n.elementContext,f=d===void 0?zb:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,y=g===void 0?0:g,b=pJ(typeof y!="number"?y:hJ(y,uS)),x=f===zb?SCe:zb,S=e.rects.popper,P=e.elements[m?x:f],E=tPe(ph(P)?P:P.contextElement||Af(e.elements.popper),l,u,a),T=Py(e.elements.reference),O=gJ({reference:T,element:S,strategy:"absolute",placement:o}),k=U2(Object.assign({},S,O)),M=f===zb?k:T,I={top:E.top-M.top+b.top,bottom:M.bottom-E.bottom+b.bottom,left:E.left-M.left+b.left,right:M.right-E.right+b.right},R=e.modifiersData.offset;if(f===zb&&R){var _=R[o];Object.keys(I).forEach(function(N){var B=[el,Zs].indexOf(N)>=0?1:-1,L=[ha,Zs].indexOf(N)>=0?"y":"x";I[N]+=_[L]*B})}return I}function nPe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?cJ:l,u=Ey(r),d=u?s?d3:d3.filter(function(m){return Ey(m)===u}):uS,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=zw(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Oc(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function rPe(e){if(Oc(e)===yF)return[];var t=SP(e);return[h3(e),t,h3(t)]}function oPe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,y=t.options.placement,b=Oc(y),x=b===y,S=l||(x||!m?[SP(y)]:rPe(y)),P=[y].concat(S).reduce(function(ne,re){return ne.concat(Oc(re)===yF?nPe(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):re)},[]),E=t.rects.reference,T=t.rects.popper,O=new Map,k=!0,M=P[0],I=0;I<P.length;I++){var R=P[I],_=Oc(R),N=Ey(R)===Sy,B=[ha,Zs].indexOf(_)>=0,L=B?"width":"height",F=zw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),U=B?N?el:ma:N?Zs:ha;E[L]>T[L]&&(U=SP(U));var V=SP(U),z=[];if(i&&z.push(F[_]<=0),s&&z.push(F[U]<=0,F[V]<=0),z.every(function(ne){return ne})){M=R,k=!1;break}O.set(R,z)}if(k)for(var W=m?3:1,G=function(re){var oe=P.find(function(fe){var se=O.get(fe);if(se)return se.slice(0,re).every(function(ee){return ee})});if(oe)return M=oe,"break"},J=W;J>0;J--){var K=G(J);if(K==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const iPe={name:"flip",enabled:!0,phase:"main",fn:oPe,requiresIfExists:["offset"],data:{_skip:!1}};function g3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function y3(e){return[ha,el,Zs,ma].some(function(t){return e[t]>=0})}function aPe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zw(t,{elementContext:"reference"}),s=zw(t,{altBoundary:!0}),l=g3(a,r),c=g3(s,o,i),u=y3(l),d=y3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const sPe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aPe};function lPe(e,t,n){var r=Oc(e),o=[ma,ha].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ma,el].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function cPe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=cJ.reduce(function(u,d){return u[d]=lPe(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const uPe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cPe};function dPe(e){var t=e.state,n=e.name;t.modifiersData[n]=gJ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const fPe={name:"popperOffsets",enabled:!0,phase:"read",fn:dPe,data:{}};function pPe(e){return e==="x"?"y":"x"}function hPe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,y=zw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Oc(t.placement),x=Ey(t.placement),S=!x,P=wF(b),E=pPe(P),T=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(T){if(i){var N,B=P==="y"?ha:ma,L=P==="y"?Zs:el,F=P==="y"?"height":"width",U=T[P],V=U+y[B],z=U-y[L],W=p?-k[F]/2:0,G=x===Sy?O[F]:k[F],J=x===Sy?-k[F]:-O[F],K=t.elements.arrow,ne=p&&K?bF(K):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fJ(),oe=re[B],fe=re[L],se=K0(0,O[F],ne[F]),ee=S?O[F]/2-W-se-oe-I.mainAxis:G-se-oe-I.mainAxis,ce=S?-O[F]/2+W+se+fe+I.mainAxis:J+se+fe+I.mainAxis,le=t.elements.arrow&&dS(t.elements.arrow),Q=le?P==="y"?le.clientTop||0:le.clientLeft||0:0,ue=(N=R==null?void 0:R[P])!=null?N:0,ge=U+ee-ue-Q,xe=U+ce-ue,me=K0(p?PE(V,ge):V,U,p?Yp(z,xe):z);T[P]=me,_[P]=me-U}if(s){var be,we=P==="x"?ha:ma,Oe=P==="x"?Zs:el,ke=T[E],je=E==="y"?"height":"width",de=ke+y[we],Re=ke-y[Oe],Me=[ha,ma].indexOf(b)!==-1,Ae=(be=R==null?void 0:R[E])!=null?be:0,Ne=Me?de:ke-O[je]-k[je]-Ae+I.altAxis,Je=Me?ke+O[je]+k[je]-Ae-I.altAxis:Re,nt=p&&Me?FCe(Ne,ke,Je):K0(p?Ne:de,ke,p?Je:Re);T[E]=nt,_[E]=nt-ke}t.modifiersData[r]=_}}const mPe={name:"preventOverflow",enabled:!0,phase:"main",fn:hPe,requiresIfExists:["offset"]};function gPe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yPe(e){return e===Xa(e)||!Gs(e)?xF(e):gPe(e)}function vPe(e){var t=e.getBoundingClientRect(),n=Cy(t.width)/e.offsetWidth||1,r=Cy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bPe(e,t,n){n===void 0&&(n=!1);var r=Gs(t),o=Gs(t)&&vPe(t),i=Af(t),a=Py(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dc(t)!=="body"||CF(i))&&(s=yPe(t)),Gs(t)?(l=Py(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=SF(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wPe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function xPe(e){var t=wPe(e);return $Ce.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function SPe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function CPe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var v3={placement:"bottom",modifiers:[],strategy:"absolute"};function b3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function PPe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?v3:o;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},v3,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(b){var x=typeof b=="function"?b(u.options):b;g(),u.options=Object.assign({},i,u.options,x),u.scrollParents={reference:ph(s)?Y0(s):s.contextElement?Y0(s.contextElement):[],popper:Y0(l)};var S=xPe(CPe([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(P){return P.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var b=u.elements,x=b.reference,S=b.popper;if(b3(x,S)){u.rects={reference:bPe(x,dS(S),u.options.strategy==="fixed"),popper:bF(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var E=u.orderedModifiers[P],T=E.fn,O=E.options,k=O===void 0?{}:O,M=E.name;typeof T=="function"&&(u=T({state:u,options:k,name:M,instance:p})||u)}}}},update:SPe(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){g(),f=!0}};if(!b3(s,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var b=y.name,x=y.options,S=x===void 0?{}:x,P=y.effect;if(typeof P=="function"){var E=P({state:u,name:b,instance:p,options:S}),T=function(){};d.push(E||T)}})}function g(){d.forEach(function(y){return y()}),d=[]}return p}}var EPe=[KCe,fPe,GCe,_Ce,uPe,iPe,mPe,VCe,sPe],TPe=PPe({defaultModifiers:EPe});function OPe(e){return typeof e=="function"?e():e}const yJ=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=v.useState(null),l=Wt(v.isValidElement(r)?Tf(r):null,n);if(xn(()=>{i||s(OPe(o)||document.body)},[o,i]),xn(()=>{if(a&&!i)return HP(n,a),()=>{HP(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return a&&eI.createPortal(r,a)});function IPe(e){return _e("MuiPopper",e)}Le("MuiPopper",["root"]);function kPe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function W2(e){return typeof e=="function"?e():e}function MPe(e){return e.nodeType!==void 0}const APe=e=>{const{classes:t}=e;return Te({root:["root"]},IPe,t)},$Pe={},RPe=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:m,ownerState:g,...y}=t,b=v.useRef(null),x=Wt(b,n),S=v.useRef(null),P=Wt(S,d),E=v.useRef(P);xn(()=>{E.current=P},[P]),v.useImperativeHandle(d,()=>S.current,[]);const T=kPe(c,i),[O,k]=v.useState(T),[M,I]=v.useState(W2(r));v.useEffect(()=>{S.current&&S.current.forceUpdate()}),v.useEffect(()=>{r&&I(W2(r))},[r]),xn(()=>{if(!M||!l)return;const L=V=>{k(V.placement)};let F=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{L(V)}}];s!=null&&(F=F.concat(s)),u&&u.modifiers!=null&&(F=F.concat(u.modifiers));const U=TPe(M,b.current,{placement:T,...u,modifiers:F});return E.current(U),()=>{U.destroy(),E.current(null)}},[M,a,s,l,u,T]);const R={placement:O};m!==null&&(R.TransitionProps=m);const _=APe(t),N=p.root??"div",B=on({elementType:N,externalSlotProps:f.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:_.root});return $.jsx(N,{...B,children:typeof o=="function"?o(R):o})}),DPe=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=$Pe,popperRef:p,style:m,transition:g=!1,slotProps:y={},slots:b={},...x}=t,[S,P]=v.useState(!0),E=()=>{P(!1)},T=()=>{P(!0)};if(!l&&!u&&(!g||S))return null;let O;if(i)O=i;else if(r){const I=W2(r);O=I&&MPe(I)?mr(I).body:mr(null).body}const k=!u&&l&&(!g||S)?"none":void 0,M=g?{in:u,onEnter:E,onExited:T}:void 0;return $.jsx(yJ,{disablePortal:s,container:O,children:$.jsx(RPe,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:g?!S:u,placement:d,popperOptions:f,popperRef:p,slotProps:y,slots:b,...x,style:{position:"fixed",top:0,left:0,display:k,...m},TransitionProps:M,children:o})})}),_Pe=ie(DPe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$f=v.forwardRef(function(t,n){const r=nr(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:y,transition:b,slots:x,slotProps:S,...P}=o,E=(x==null?void 0:x.root)??(s==null?void 0:s.Root),T={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:y,transition:b,...P};return $.jsx(_Pe,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:S??l,...T,ref:n})});function LPe(e){return _e("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const NPe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Se(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Te(a,LPe,t)},FPe=ie("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Se(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(tt(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),G2=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},f=NPe(d);return $.jsx(FPe,{as:a,className:pe(f.root,o),ref:n,ownerState:d,...u})});G2&&(G2.muiSkipListHighlight=!0);const jPe=lt($.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function BPe(e){return _e("MuiChip",e)}const On=Le("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),zPe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Se(r)}`,`color${Se(o)}`,s&&"clickable",s&&`clickableColor${Se(o)}`,a&&"deletable",a&&`deletableColor${Se(o)}`,`${l}${Se(o)}`],label:["label",`label${Se(r)}`],avatar:["avatar",`avatar${Se(r)}`,`avatarColor${Se(o)}`],icon:["icon",`icon${Se(r)}`,`iconColor${Se(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Se(r)}`,`deleteIconColor${Se(o)}`,`deleteIcon${Se(l)}Color${Se(o)}`]};return Te(c,BPe,t)},VPe=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${On.avatar}`]:t.avatar},{[`& .${On.avatar}`]:t[`avatar${Se(s)}`]},{[`& .${On.avatar}`]:t[`avatarColor${Se(r)}`]},{[`& .${On.icon}`]:t.icon},{[`& .${On.icon}`]:t[`icon${Se(s)}`]},{[`& .${On.icon}`]:t[`iconColor${Se(o)}`]},{[`& .${On.deleteIcon}`]:t.deleteIcon},{[`& .${On.deleteIcon}`]:t[`deleteIcon${Se(s)}`]},{[`& .${On.deleteIcon}`]:t[`deleteIconColor${Se(r)}`]},{[`& .${On.deleteIcon}`]:t[`deleteIcon${Se(l)}Color${Se(r)}`]},t.root,t[`size${Se(s)}`],t[`color${Se(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Se(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Se(r)}`],t[l],t[`${l}${Se(r)}`]]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${On.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${On.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${On.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${On.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${On.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${On.icon}`]:{marginLeft:5,marginRight:-6},[`& .${On.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:vt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:vt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${On.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${On.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Hn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${On.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:vt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${On.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${On.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${On.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${On.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${On.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${On.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${On.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${On.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${On.avatar}`]:{marginLeft:4},[`& .${On.avatarSmall}`]:{marginLeft:2},[`& .${On.icon}`]:{marginLeft:4},[`& .${On.iconSmall}`]:{marginLeft:2},[`& .${On.deleteIcon}`]:{marginRight:5},[`& .${On.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Hn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:vt(e.palette[n].main,.7)}`,[`&.${On.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${On.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${On.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:vt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),HPe=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Se(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function w3(e){return e.key==="Backspace"||e.key==="Delete"}const hh=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:y,size:b="medium",variant:x="filled",tabIndex:S,skipFocusWhenDisabled:P=!1,...E}=r,T=v.useRef(null),O=Wt(T,n),k=z=>{z.stopPropagation(),m&&m(z)},M=z=>{z.currentTarget===z.target&&w3(z)&&z.preventDefault(),g&&g(z)},I=z=>{z.currentTarget===z.target&&m&&w3(z)&&m(z),y&&y(z)},R=a!==!1&&p?!0:a,_=R||m?Hi:l||"div",N={...r,component:_,disabled:u,size:b,color:s,iconColor:v.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:R,variant:x},B=zPe(N),L=_===Hi?{component:l||"div",focusVisibleClassName:B.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=c&&v.isValidElement(c)?v.cloneElement(c,{className:pe(c.props.className,B.deleteIcon),onClick:k}):$.jsx(jPe,{className:pe(B.deleteIcon),onClick:k}));let U=null;o&&v.isValidElement(o)&&(U=v.cloneElement(o,{className:pe(B.avatar,o.props.className)}));let V=null;return d&&v.isValidElement(d)&&(V=v.cloneElement(d,{className:pe(B.icon,d.props.className)})),$.jsxs(VPe,{as:_,className:pe(B.root,i),disabled:R&&u?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:I,ref:O,tabIndex:P&&u?-1:S,ownerState:N,...L,...E,children:[U||V,$.jsx(HPe,{className:pe(B.label),ownerState:N,children:f}),F]})});function vC(e){return parseInt(e,10)||0}const UPe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function WPe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const GPe=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=v.useRef(s!=null),u=v.useRef(null),d=Wt(n,u),f=v.useRef(null),p=v.useRef(null),m=v.useCallback(()=>{const b=u.current,S=ba(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=p.current;P.style.width=S.width,P.value=b.value||t.placeholder||"x",P.value.slice(-1)===`
-`&&(P.value+=" ");const E=S.boxSizing,T=vC(S.paddingBottom)+vC(S.paddingTop),O=vC(S.borderBottomWidth)+vC(S.borderTopWidth),k=P.scrollHeight;P.value="x";const M=P.scrollHeight;let I=k;i&&(I=Math.max(Number(i)*M,I)),o&&(I=Math.min(Number(o)*M,I)),I=Math.max(I,M);const R=I+(E==="border-box"?T+O:0),_=Math.abs(I-k)<=1;return{outerHeightStyle:R,overflowing:_}},[o,i,t.placeholder]),g=v.useCallback(()=>{const b=m();if(WPe(b))return;const x=b.outerHeightStyle,S=u.current;f.current!==x&&(f.current=x,S.style.height=`${x}px`),S.style.overflow=b.overflowing?"hidden":""},[m]);xn(()=>{const b=()=>{g()};let x;const S=nS(b),P=u.current,E=ba(P);E.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(b),T.observe(P)),()=>{S.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",S),T&&T.disconnect()}},[m,g]),xn(()=>{g()});const y=b=>{c||g(),r&&r(b)};return $.jsxs(v.Fragment,{children:[$.jsx("textarea",{value:s,onChange:y,ref:d,rows:i,style:a,...l}),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...UPe.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Vw(e){return typeof e=="string"}function Rf({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const nI=v.createContext(void 0);function wa(){return v.useContext(nI)}function x3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function EE(e,t=!1){return e&&(x3(e.value)&&e.value!==""||t&&x3(e.defaultValue)&&e.defaultValue!=="")}function qPe(e){return e.startAdornment}function KPe(e){return _e("MuiInputBase",e)}const zo=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var S3;const rI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Se(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},oI=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},YPe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e,g={root:["root",`color${Se(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${Se(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return Te(g,KPe,t)},iI=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rI})(tt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),aI=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:oI})(tt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${zo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),C3=Gwe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),wv=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,error:g,fullWidth:y=!1,id:b,inputComponent:x="input",inputProps:S={},inputRef:P,margin:E,maxRows:T,minRows:O,multiline:k=!1,name:M,onBlur:I,onChange:R,onClick:_,onFocus:N,onKeyDown:B,onKeyUp:L,placeholder:F,readOnly:U,renderSuffix:V,rows:z,size:W,slotProps:G={},slots:J={},startAdornment:K,type:ne="text",value:re,...oe}=r,fe=S.value!=null?S.value:re,{current:se}=v.useRef(fe!=null),ee=v.useRef(),ce=v.useCallback(ct=>{},[]),le=Wt(ee,P,S.ref,ce),[Q,ue]=v.useState(!1),ge=wa(),xe=Rf({props:r,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=ge?ge.focused:Q,v.useEffect(()=>{!ge&&f&&Q&&(ue(!1),I&&I())},[ge,f,Q,I]);const me=ge&&ge.onFilled,be=ge&&ge.onEmpty,we=v.useCallback(ct=>{EE(ct)?me&&me():be&&be()},[me,be]);xn(()=>{se&&we({value:fe})},[fe,we,se]);const Oe=ct=>{N&&N(ct),S.onFocus&&S.onFocus(ct),ge&&ge.onFocus?ge.onFocus(ct):ue(!0)},ke=ct=>{I&&I(ct),S.onBlur&&S.onBlur(ct),ge&&ge.onBlur?ge.onBlur(ct):ue(!1)},je=(ct,..._t)=>{if(!se){const pt=ct.target||ee.current;if(pt==null)throw new Error($u(1));we({value:pt.value})}S.onChange&&S.onChange(ct,..._t),R&&R(ct,..._t)};v.useEffect(()=>{we(ee.current)},[]);const de=ct=>{ee.current&&ct.currentTarget===ct.target&&ee.current.focus(),_&&_(ct)};let Re=x,Me=S;k&&Re==="input"&&(z?Me={type:void 0,minRows:z,maxRows:z,...Me}:Me={type:void 0,maxRows:T,minRows:O,...Me},Re=GPe);const Ae=ct=>{we(ct.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};v.useEffect(()=>{ge&&ge.setAdornedStart(!!K)},[ge,K]);const Ne={...r,color:xe.color||"primary",disabled:xe.disabled,endAdornment:m,error:xe.error,focused:xe.focused,formControl:ge,fullWidth:y,hiddenLabel:xe.hiddenLabel,multiline:k,size:xe.size,startAdornment:K,type:ne},Je=YPe(Ne),nt=J.root||c.Root||iI,st=G.root||u.root||{},$t=J.input||c.Input||aI;return Me={...Me,...G.input??u.input},$.jsxs(v.Fragment,{children:[!p&&typeof C3=="function"&&(S3||(S3=$.jsx(C3,{}))),$.jsxs(nt,{...st,ref:n,onClick:de,...oe,...!Vw(nt)&&{ownerState:{...Ne,...st.ownerState}},className:pe(Je.root,st.className,s,U&&"MuiInputBase-readOnly"),children:[K,$.jsx(nI.Provider,{value:null,children:$.jsx($t,{"aria-invalid":xe.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:xe.disabled,id:b,onAnimationStart:Ae,name:M,placeholder:F,readOnly:U,required:xe.required,rows:z,value:fe,onKeyDown:B,onKeyUp:L,type:ne,...Me,...!Vw($t)&&{as:Re,ownerState:{...Ne,...Me.ownerState}},ref:le,className:pe(Je.input,Me.className,U&&"MuiInputBase-readOnly"),onBlur:ke,onChange:je,onFocus:Oe})}),m,V?V({...xe,startAdornment:K}):null]})]})});function XPe(e){return _e("MuiInput",e)}const Rd={...zo,...Le("MuiInput",["root","underline","input"])};function QPe(e){return _e("MuiOutlinedInput",e)}const Ps={...zo,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function JPe(e){return _e("MuiFilledInput",e)}const Fa={...zo,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},vJ=lt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ZPe(e){return _e("MuiAutocomplete",e)}const mn=Le("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var P3,E3;const eEe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Se(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Te(d,ZPe,t)},tEe=ie("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${mn.tag}`]:t.tag},{[`& .${mn.tag}`]:t[`tagSize${Se(s)}`]},{[`& .${mn.inputRoot}`]:t.inputRoot},{[`& .${mn.input}`]:t.input},{[`& .${mn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${mn.focused} .${mn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${mn.clearIndicator}`]:{visibility:"visible"}},[`& .${mn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${mn.inputRoot}`]:{[`.${mn.hasPopupIcon}&, .${mn.hasClearIcon}&`]:{paddingRight:30},[`.${mn.hasPopupIcon}.${mn.hasClearIcon}&`]:{paddingRight:56},[`& .${mn.input}`]:{width:0,minWidth:30}},[`& .${Rd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Rd.root}.${zo.sizeSmall}`]:{[`& .${Rd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ps.root}`]:{padding:9,[`.${mn.hasPopupIcon}&, .${mn.hasClearIcon}&`]:{paddingRight:39},[`.${mn.hasPopupIcon}.${mn.hasClearIcon}&`]:{paddingRight:65},[`& .${mn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${mn.endAdornment}`]:{right:9}},[`& .${Ps.root}.${zo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${mn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fa.root}`]:{paddingTop:19,paddingLeft:8,[`.${mn.hasPopupIcon}&, .${mn.hasClearIcon}&`]:{paddingRight:39},[`.${mn.hasPopupIcon}.${mn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fa.input}`]:{padding:"7px 4px"},[`& .${mn.endAdornment}`]:{right:9}},[`& .${Fa.root}.${zo.sizeSmall}`]:{paddingBottom:1,[`& .${Fa.input}`]:{padding:"2.5px 4px"}},[`& .${zo.hiddenLabel}`]:{paddingTop:8},[`& .${Fa.root}.${zo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${mn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fa.root}.${zo.hiddenLabel}.${zo.sizeSmall}`]:{[`& .${mn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${mn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${mn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${mn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${mn.inputRoot}`]:{flexWrap:"wrap"}}}]}),nEe=ie("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),rEe=ie(An,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),oEe=ie(An,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),iEe=ie($f,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),aEe=ie(so,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(tt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),sEe=ie("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),lEe=ie("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),cEe=ie("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(tt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${mn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${mn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),uEe=ie(G2,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(tt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),dEe=ie("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${mn.option}`]:{paddingLeft:24}}),Kl=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=P3||(P3=$.jsx(aJ,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:p="Clear",closeText:m="Close",componentsProps:g,defaultValue:y=r.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:x=!1,disabled:S=!1,disabledItemsFocusable:P=!1,disableListWrap:E=!1,disablePortal:T=!1,filterOptions:O,filterSelectedOptions:k=!1,forcePopupIcon:M="auto",freeSolo:I=!1,fullWidth:R=!1,getLimitTagsText:_=kn=>`+${kn}`,getOptionDisabled:N,getOptionKey:B,getOptionLabel:L,isOptionEqualToValue:F,groupBy:U,handleHomeEndKeys:V=!r.freeSolo,id:z,includeInputInList:W=!1,inputValue:G,limitTags:J=-1,ListboxComponent:K,ListboxProps:ne,loading:re=!1,loadingText:oe="Loading…",multiple:fe=!1,noOptionsText:se="No options",onChange:ee,onClose:ce,onHighlightChange:le,onInputChange:Q,onOpen:ue,open:ge,openOnFocus:xe=!1,openText:me="Open",options:be,PaperComponent:we,PopperComponent:Oe,popupIcon:ke=E3||(E3=$.jsx(vJ,{})),readOnly:je=!1,renderGroup:de,renderInput:Re,renderOption:Me,renderTags:Ae,selectOnFocus:Ne=!r.freeSolo,size:Je="medium",slots:nt={},slotProps:st={},value:$t,...ct}=r,{getRootProps:_t,getInputProps:pt,getInputLabelProps:ot,getPopupIndicatorProps:Pe,getClearProps:We,getTagProps:ft,getListboxProps:Ot,getOptionProps:xt,value:vn,dirty:zn,expanded:Wn,id:xo,popupOpen:So,focused:ai,focusedTag:Sa,anchorEl:Nt,setAnchorEl:Co,inputValue:ss,groupedOptions:ad}=wCe({...r,componentName:"Autocomplete"}),Gc=!b&&!S&&zn&&!je,Kf=(!I||M===!0)&&M!==!1,{onMouseDown:Yf}=pt(),{ref:mb,...rm}=Ot(),Xf=L||(kn=>kn.label??kn),Do={...r,disablePortal:T,expanded:Wn,focused:ai,fullWidth:R,getOptionLabel:Xf,hasClearIcon:Gc,hasPopupIcon:Kf,inputFocused:Sa===-1,popupOpen:So,size:Je},Wr=eEe(Do),hl={slots:{paper:we,popper:Oe,...nt},slotProps:{chip:l,listbox:ne,...g,...st}},[Ke,Be]=dn("listbox",{elementType:cEe,externalForwardedProps:hl,ownerState:Do,className:Wr.listbox,additionalProps:rm,ref:mb}),[St,Zt]=dn("paper",{elementType:so,externalForwardedProps:hl,ownerState:Do,className:Wr.paper}),[ln,Rr]=dn("popper",{elementType:$f,externalForwardedProps:hl,ownerState:Do,className:Wr.popper,additionalProps:{disablePortal:T,style:{width:Nt?Nt.clientWidth:null},role:"presentation",anchorEl:Nt,open:So}});let Gn;if(fe&&vn.length>0){const kn=ls=>({className:Wr.tag,disabled:S,...ft(ls)});Ae?Gn=Ae(vn,kn,Do):Gn=vn.map((ls,nc)=>{const{key:Jf,...oM}=kn({index:nc});return $.jsx(hh,{label:Xf(ls),size:Je,...oM,...hl.slotProps.chip},Jf)})}if(J>-1&&Array.isArray(Gn)){const kn=Gn.length-J;!ai&&kn>0&&(Gn=Gn.splice(0,J),Gn.push($.jsx("span",{className:Wr.tag,children:_(kn)},Gn.length)))}const qc=de||(kn=>$.jsxs("li",{children:[$.jsx(uEe,{className:Wr.groupLabel,ownerState:Do,component:"div",children:kn.group}),$.jsx(dEe,{className:Wr.groupUl,ownerState:Do,children:kn.children})]},kn.key)),om=Me||((kn,ls)=>{const{key:nc,...Jf}=kn;return $.jsx("li",{...Jf,children:Xf(ls)},nc)}),i1=(kn,ls)=>{const nc=xt({option:kn,index:ls});return om({...nc,className:Wr.option},kn,{selected:nc["aria-selected"],index:ls,inputValue:ss},Do)},im=hl.slotProps.clearIndicator,am=hl.slotProps.popupIndicator,sm=kn=>$.jsx(iEe,{as:ln,...Rr,children:$.jsx(aEe,{as:St,...Zt,children:kn})});let Qf=null;return ad.length>0?Qf=sm($.jsx(Ke,{as:K,...Be,children:ad.map((kn,ls)=>U?qc({key:kn.key,group:kn.group,children:kn.options.map((nc,Jf)=>i1(nc,kn.index+Jf))}):i1(kn,ls))})):re&&ad.length===0?Qf=sm($.jsx(sEe,{className:Wr.loading,ownerState:Do,children:oe})):ad.length===0&&!I&&!re&&(Qf=sm($.jsx(lEe,{className:Wr.noOptions,ownerState:Do,role:"presentation",onMouseDown:kn=>{kn.preventDefault()},children:se}))),$.jsxs(v.Fragment,{children:[$.jsx(tEe,{ref:n,className:pe(Wr.root,c),ownerState:Do,..._t(ct),children:Re({id:xo,disabled:S,fullWidth:!0,size:Je==="small"?"small":void 0,InputLabelProps:ot(),InputProps:{ref:Co,className:Wr.inputRoot,startAdornment:Gn,onMouseDown:kn=>{kn.target===kn.currentTarget&&Yf(kn)},...(Gc||Kf)&&{endAdornment:$.jsxs(nEe,{className:Wr.endAdornment,ownerState:Do,children:[Gc?$.jsx(rEe,{...We(),"aria-label":p,title:p,ownerState:Do,...im,className:pe(Wr.clearIndicator,im==null?void 0:im.className),children:u}):null,Kf?$.jsx(oEe,{...Pe(),disabled:S,"aria-label":So?m:me,title:So?m:me,ownerState:Do,...am,className:pe(Wr.popupIndicator,am==null?void 0:am.className),children:ke}):null]})}},inputProps:{className:Wr.input,disabled:S,readOnly:je,...pt()}})}),Nt?Qf:null]})}),fEe=lt($.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function pEe(e){return _e("MuiAvatar",e)}const hEe=Le("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),mEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Te({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},pEe,t)},gEe=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(tt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),yEe=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),vEe=ie(fEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function bEe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Yl=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:p,variant:m="circular",...g}=r;let y=null;const b={...r,component:s,variant:m},x=bEe({...u,...typeof c.img=="function"?c.img(b):c.img,src:f,srcSet:p}),S=f||p,P=S&&x!=="error";b.colorDefault=!P,delete b.ownerState;const E=mEe(b),[T,O]=dn("img",{className:E.img,elementType:yEe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:p,sizes:d},ownerState:b});return P?y=$.jsx(T,{...O}):i||i===0?y=i:S&&o?y=o[0]:y=$.jsx(vEe,{ownerState:b,className:E.fallback}),$.jsx(gEe,{as:s,className:pe(E.root,a),ref:n,...g,ownerState:b,children:y})});function wEe(e){return _e("MuiAvatarGroup",e)}const xEe=Le("MuiAvatarGroup",["root","avatar"]),T3={small:-16,medium:-8},SEe=e=>{const{classes:t}=e;return Te({root:["root"],avatar:["avatar"]},wEe,t)},CEe=ie("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${xEe.avatar}`]:t.avatar},t.root]})(tt(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${hEe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),PEe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAvatarGroup"}),{children:o,className:i,component:a="div",componentsProps:s,max:l=5,renderSurplus:c,slotProps:u={},slots:d={},spacing:f="medium",total:p,variant:m="circular",...g}=r;let y=l<2?2:l;const b={...r,max:l,spacing:f,component:a,variant:m},x=SEe(b),S=v.Children.toArray(o).filter(_=>v.isValidElement(_)),P=p||S.length;P===y&&(y+=1),y=Math.min(P+1,y);const E=Math.min(S.length,y-1),T=Math.max(P-y,P-E,0),O=c?c(T):`+${T}`,k=b.spacing&&T3[b.spacing]!==void 0?T3[b.spacing]:-b.spacing||-8,M={slots:d,slotProps:{surplus:u.additionalAvatar??(s==null?void 0:s.additionalAvatar),...s,...u}},[I,R]=dn("surplus",{elementType:Yl,externalForwardedProps:M,className:x.avatar,ownerState:b,additionalProps:{variant:m}});return $.jsxs(CEe,{as:a,ownerState:b,className:pe(x.root,i),ref:n,...g,style:{"--AvatarGroup-spacing":k?`${k}px`:void 0,...g.style},children:[T?$.jsx(I,{...R,children:O}):null,S.slice(0,E).reverse().map(_=>v.cloneElement(_,{className:pe(_.props.className,x.avatar),variant:_.props.variant||m}))]})}),EEe={entering:{opacity:1},entered:{opacity:1}},xv=v.forwardRef(function(t,n){const r=Ao(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:g,style:y,timeout:b=o,TransitionComponent:x=rs,...S}=t,P=v.useRef(null),E=Wt(P,Tf(s),n),T=B=>L=>{if(B){const F=P.current;L===void 0?B(F):B(F,L)}},O=T(f),k=T((B,L)=>{pF(B);const F=vf({style:y,timeout:b,easing:l},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",F),B.style.transition=r.transitions.create("opacity",F),u&&u(B,L)}),M=T(d),I=T(g),R=T(B=>{const L=vf({style:y,timeout:b,easing:l},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",L),B.style.transition=r.transitions.create("opacity",L),p&&p(B)}),_=T(m),N=B=>{i&&i(P.current,B)};return $.jsx(x,{appear:a,in:c,nodeRef:P,onEnter:k,onEntered:M,onEntering:O,onExit:R,onExited:_,onExiting:I,addEndListener:N,timeout:b,...S,children:(B,{ownerState:L,...F})=>v.cloneElement(s,{style:{opacity:0,visibility:B==="exited"&&!c?"hidden":void 0,...EEe[B],...y,...s.props.style},ref:E,...F})})});function TEe(e){return _e("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const OEe=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},TEe,t)},IEe=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),bJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:p,transitionDuration:m,...g}=r,y={...r,component:a,invisible:s},b=OEe(y),x={transition:p,root:c.Root,...f},S={...u,...d},P={slots:x,slotProps:S},[E,T]=dn("root",{elementType:IEe,externalForwardedProps:P,className:pe(b.root,i),ownerState:y}),[O,k]=dn("transition",{elementType:xv,externalForwardedProps:P,ownerState:y});return $.jsx(O,{in:l,timeout:m,...g,...k,children:$.jsx(E,{"aria-hidden":!0,...T,classes:b,ref:n,children:o})})});function kEe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=pN({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function MEe(e){return _e("MuiBadge",e)}const yd=Le("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),YA=10,XA=4,AEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}`,`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}${Se(o)}`,`overlap${Se(o)}`,t!=="default"&&`color${Se(t)}`]};return Te(s,MEe,a)},$Ee=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),REe=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Se(n.anchorOrigin.vertical)}${Se(n.anchorOrigin.horizontal)}${Se(n.overlap)}`],n.color!=="default"&&t[`color${Se(n.color)}`],n.invisible&&t.invisible]}})(tt(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:YA*2,lineHeight:1,padding:"0 6px",height:YA*2,borderRadius:YA,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Hn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:XA,height:XA*2,minWidth:XA*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${yd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function O3(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const DEe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:p=!1,max:m=99,badgeContent:g,slots:y,slotProps:b,showZero:x=!1,variant:S="standard",...P}=r,{badgeContent:E,invisible:T,max:O,displayValue:k}=kEe({max:m,invisible:p,badgeContent:g,showZero:x}),M=pN({anchorOrigin:O3(o),color:f,overlap:d,variant:S,badgeContent:g}),I=T||E==null&&S!=="dot",{color:R=f,overlap:_=d,anchorOrigin:N,variant:B=S}=I?M:r,L=O3(N),F=B!=="dot"?k:void 0,U={...r,badgeContent:E,invisible:I,max:O,displayValue:F,showZero:x,anchorOrigin:L,color:R,overlap:_,variant:B},V=AEe(U),z=(y==null?void 0:y.root)??l.Root??$Ee,W=(y==null?void 0:y.badge)??l.Badge??REe,G=(b==null?void 0:b.root)??c.root,J=(b==null?void 0:b.badge)??c.badge,K=on({elementType:z,externalSlotProps:G,externalForwardedProps:P,additionalProps:{ref:n,as:s},ownerState:U,className:pe(G==null?void 0:G.className,V.root,i)}),ne=on({elementType:W,externalSlotProps:J,ownerState:U,className:pe(V.badge,J==null?void 0:J.className)});return $.jsxs(z,{...K,children:[u,$.jsx(W,{...ne,children:F})]})}),_Ee=Le("MuiBox",["root"]),LEe=rS(),Ln=vbe({themeId:Hs,defaultTheme:LEe,defaultClassName:_Ee.root,generateClassName:gY.generate});function NEe(e){return _e("MuiButton",e)}const km=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wJ=v.createContext({}),xJ=v.createContext(void 0),FEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Se(t)}`,`size${Se(o)}`,`${i}Size${Se(o)}`,`color${Se(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Se(o)}`],endIcon:["icon","endIcon",`iconSize${Se(o)}`]},l=Te(s,NEe,a);return{...a,...l}},SJ=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],jEe=ie(Hi,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color)}`],t[`size${Se(n.size)}`],t[`${n.variant}Size${Se(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${km.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${km.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${km.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${km.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Hn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:vt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${km.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${km.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),BEe=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Se(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...SJ]}),zEe=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Se(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...SJ]}),yt=v.forwardRef(function(t,n){const r=v.useContext(wJ),o=v.useContext(xJ),i=ih(r,t),a=rt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,size:b="medium",startIcon:x,type:S,variant:P="text",...E}=a,T={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:y,size:b,type:S,variant:P},O=FEe(T),k=x&&$.jsx(BEe,{className:O.startIcon,ownerState:T,children:x}),M=m&&$.jsx(zEe,{className:O.endIcon,ownerState:T,children:m}),I=o||"";return $.jsxs(jEe,{ownerState:T,className:pe(r.className,O.root,u,I),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:pe(O.focusVisible,g),ref:n,type:S,...E,classes:O,children:[k,s,M]})});function VEe(e){return _e("MuiButtonGroup",e)}const un=Le("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),HEe=(e,t)=>{const{ownerState:n}=e;return[{[`& .${un.grouped}`]:t.grouped},{[`& .${un.grouped}`]:t[`grouped${Se(n.orientation)}`]},{[`& .${un.grouped}`]:t[`grouped${Se(n.variant)}`]},{[`& .${un.grouped}`]:t[`grouped${Se(n.variant)}${Se(n.orientation)}`]},{[`& .${un.grouped}`]:t[`grouped${Se(n.variant)}${Se(n.color)}`]},{[`& .${un.firstButton}`]:t.firstButton},{[`& .${un.lastButton}`]:t.lastButton},{[`& .${un.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},UEe=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${Se(n)}`],grouped:["grouped",`grouped${Se(a)}`,`grouped${Se(s)}`,`grouped${Se(s)}${Se(a)}`,`grouped${Se(s)}${Se(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Te(l,VEe,t)},WEe=ie("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:HEe})(tt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${un.lastButton},& .${un.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${un.lastButton},& .${un.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${un.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${un.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Hn()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:vt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${un.lastButton},& .${un.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${un.lastButton},& .${un.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${un.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${un.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Hn(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${un.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),GEe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiButtonGroup"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:f=!1,orientation:p="horizontal",size:m="medium",variant:g="outlined",...y}=r,b={...r,color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,orientation:p,size:m,variant:g},x=UEe(b),S=v.useMemo(()=>({className:x.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,size:m,variant:g}),[a,l,c,u,d,f,m,g,x.grouped]),P=TY(o),E=P.length,T=O=>{const k=O===0,M=O===E-1;return k&&M?"":k?x.firstButton:M?x.lastButton:x.middleButton};return $.jsx(WEe,{as:s,role:"group",className:pe(x.root,i),ref:n,ownerState:b,...y,children:$.jsx(wJ.Provider,{value:S,children:P.map((O,k)=>$.jsx(xJ.Provider,{value:T(k),children:O},k))})})});function qEe(e){return _e("MuiCard",e)}Le("MuiCard",["root"]);const KEe=e=>{const{classes:t}=e;return Te({root:["root"]},qEe,t)},YEe=ie(so,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),io=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=KEe(s);return $.jsx(YEe,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function XEe(e){return _e("MuiCardActionArea",e)}const QA=Le("MuiCardActionArea",["root","focusVisible","focusHighlight"]),QEe=e=>{const{classes:t}=e;return Te({root:["root"],focusHighlight:["focusHighlight"]},XEe,t)},JEe=ie(Hi,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${QA.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${QA.focusVisible} .${QA.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),ZEe=ie("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(tt(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),eTe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:a,...s}=r,l=r,c=QEe(l);return $.jsxs(JEe,{className:pe(c.root,i),focusVisibleClassName:pe(a,c.focusVisible),ref:n,ownerState:l,...s,children:[o,$.jsx(ZEe,{className:c.focusHighlight,ownerState:l})]})});function tTe(e){return _e("MuiCardActions",e)}Le("MuiCardActions",["root","spacing"]);const nTe=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},tTe,t)},rTe=ie("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),os=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...a}=r,s={...r,disableSpacing:o},l=nTe(s);return $.jsx(rTe,{className:pe(l.root,i),ownerState:s,ref:n,...a})});function oTe(e){return _e("MuiCardContent",e)}Le("MuiCardContent",["root"]);const iTe=e=>{const{classes:t}=e;return Te({root:["root"]},oTe,t)},aTe=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),wi=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=iTe(s);return $.jsx(aTe,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function sTe(e){return _e("MuiCardHeader",e)}const TE=Le("MuiCardHeader",["root","avatar","action","content","title","subheader"]),lTe=e=>{const{classes:t}=e;return Te({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},sTe,t)},cTe=ie("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${TE.title}`]:t.title},{[`& .${TE.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),uTe=ie("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),dTe=ie("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),fTe=ie("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${SE.root}:where(& .${TE.title})`]:{display:"block"},[`.${SE.root}:where(& .${TE.subheader})`]:{display:"block"}}),Zl=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,...p}=r,m={...r,component:s,disableTypography:l},g=lTe(m);let y=d;y!=null&&y.type!==ut&&!l&&(y=$.jsx(ut,{variant:i?"body2":"h5",className:g.title,component:"span",...f,children:y}));let b=c;return b!=null&&b.type!==ut&&!l&&(b=$.jsx(ut,{variant:i?"body2":"body1",className:g.subheader,color:"textSecondary",component:"span",...u,children:b})),$.jsxs(cTe,{className:pe(g.root,a),as:s,ref:n,ownerState:m,...p,children:[i&&$.jsx(uTe,{className:g.avatar,ownerState:m,children:i}),$.jsxs(fTe,{className:g.content,ownerState:m,children:[y,b]}),o&&$.jsx(dTe,{className:g.action,ownerState:m,children:o})]})});function pTe(e){return _e("MuiCardMedia",e)}Le("MuiCardMedia",["root","media","img"]);const hTe=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Te({root:["root",n&&"media",r&&"img"]},pTe,t)},mTe=ie("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),gTe=["video","audio","picture","iframe","img"],yTe=["picture","img"],_c=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=gTe.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,p={...r,component:a,isMediaComponent:d,isImageComponent:yTe.includes(a)},m=hTe(p);return $.jsx(mTe,{className:pe(m.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:p,src:d?s||l:void 0,...u,children:o})});function vTe(e){return _e("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bTe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Se(o)}`],input:["input"]};return Te(i,vTe,t)},wTe=ie(Hi)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),xTe=ie("input",{shouldForwardProp:ii})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CJ=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:p,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:x,readOnly:S,required:P=!1,tabIndex:E,type:T,value:O,...k}=t,[M,I]=bi({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),R=wa(),_=z=>{x&&x(z),R&&R.onFocus&&R.onFocus(z)},N=z=>{y&&y(z),R&&R.onBlur&&R.onBlur(z)},B=z=>{if(z.nativeEvent.defaultPrevented)return;const W=z.target.checked;I(W),b&&b(z,W)};let L=l;R&&typeof L>"u"&&(L=R.disabled);const F=T==="checkbox"||T==="radio",U={...t,checked:M,disabled:L,disableFocusRipple:c,edge:u},V=bTe(U);return $.jsxs(wTe,{component:"span",className:pe(V.root,a),centerRipple:!0,focusRipple:!c,disabled:L,tabIndex:null,role:void 0,onFocus:_,onBlur:N,ownerState:U,ref:n,...k,children:[$.jsx(xTe,{autoFocus:r,checked:o,defaultChecked:s,className:V.input,disabled:L,id:F?f:void 0,name:g,onChange:B,readOnly:S,ref:m,required:P,ownerState:U,tabIndex:E,type:T,...T==="checkbox"&&O===void 0?{}:{value:O},...p}),M?i:d]})}),STe=lt($.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),CTe=lt($.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),PTe=lt($.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ETe(e){return _e("MuiCheckbox",e)}const JA=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),TTe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Se(r)}`,`size${Se(o)}`]},a=Te(i,ETe,t);return{...t,...a}},OTe=ie(CJ,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Se(n.size)}`],n.color!=="default"&&t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{[`&.${JA.checked}, &.${JA.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${JA.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ITe=$.jsx(CTe,{}),kTe=$.jsx(STe,{}),MTe=$.jsx(PTe,{}),ATe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=ITe,color:i="primary",icon:a=kTe,indeterminate:s=!1,indeterminateIcon:l=MTe,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...p}=r,m=s?l:a,g=s?l:o,y={...r,disableRipple:d,color:i,indeterminate:s,size:u},b=TTe(y);return $.jsx(OTe,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:v.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:v.cloneElement(g,{fontSize:g.props.fontSize??u}),ownerState:y,ref:n,className:pe(b.root,f),disableRipple:d,...p,classes:b})});function $Te(e){return _e("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vd=44,q2=jc`
+`,UCe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=v.useRef(!1),p=sf(),m=v.useRef(null),g=v.useRef(null),y=v.useCallback(P=>{const{pulsate:E,rippleX:T,rippleY:O,rippleSize:k,cb:M}=P;c(I=>[...I,$.jsx(HCe,{classes:{ripple:pe(i.ripple,js.ripple),rippleVisible:pe(i.rippleVisible,js.rippleVisible),ripplePulsate:pe(i.ripplePulsate,js.ripplePulsate),child:pe(i.child,js.child),childLeaving:pe(i.childLeaving,js.childLeaving),childPulsate:pe(i.childPulsate,js.childPulsate)},timeout:PD,pulsate:E,rippleX:T,rippleY:O,rippleSize:k},u.current)]),u.current+=1,d.current=M},[i]),b=v.useCallback((P={},E={},T=()=>{})=>{const{pulsate:O=!1,center:k=o||E.pulsate,fakeElement:M=!1}=E;if((P==null?void 0:P.type)==="mousedown"&&f.current){f.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(f.current=!0);const I=M?null:g.current,R=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,L,j;if(k||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)_=Math.round(R.width/2),L=Math.round(R.height/2);else{const{clientX:N,clientY:F}=P.touches&&P.touches.length>0?P.touches[0]:P;_=Math.round(N-R.left),L=Math.round(F-R.top)}if(k)j=Math.sqrt((2*R.width**2+R.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((I?I.clientWidth:0)-_),_)*2+2,F=Math.max(Math.abs((I?I.clientHeight:0)-L),L)*2+2;j=Math.sqrt(N**2+F**2)}P!=null&&P.touches?m.current===null&&(m.current=()=>{y({pulsate:O,rippleX:_,rippleY:L,rippleSize:j,cb:T})},p.start(FCe,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:O,rippleX:_,rippleY:L,rippleSize:j,cb:T})},[o,y,p]),x=v.useCallback(()=>{b({},{pulsate:!0})},[b]),S=v.useCallback((P,E)=>{if(p.clear(),(P==null?void 0:P.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{S(P,E)});return}m.current=null,c(T=>T.length>0?T.slice(1):T),d.current=E},[p]);return v.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:S}),[x,b,S]),$.jsx(VCe,{className:pe(js.root,i.root,a),ref:g,...s,children:$.jsx($S,{component:null,exit:!0,children:l})})});function WCe(e){return Ze("MuiButtonBase",e)}const GCe=tt("MuiButtonBase",["root","disabled","focusVisible"]),qCe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=et({root:["root",t&&"disabled",n&&"focusVisible"]},WCe,o);return n&&r&&(a.root+=` ${r}`),a},KCe=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GCe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xi=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:x,onFocus:S,onFocusVisible:P,onKeyDown:E,onKeyUp:T,onMouseDown:O,onMouseLeave:k,onMouseUp:M,onTouchEnd:I,onTouchMove:R,onTouchStart:_,tabIndex:L=0,TouchRippleProps:j,touchRippleRef:N,type:F,...U}=r,z=v.useRef(null),V=_Ce(),W=Cr(V.ref,N),[G,J]=v.useState(!1);c&&G&&J(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),z.current.focus()}}),[]);const K=V.shouldMount&&!u&&!c;v.useEffect(()=>{G&&f&&!u&&V.pulsate()},[u,f,G,V]);const ne=gu(V,"start",O,d),re=gu(V,"stop",b,d),oe=gu(V,"stop",x,d),fe=gu(V,"stop",M,d),se=gu(V,"stop",de=>{G&&de.preventDefault(),k&&k(de)},d),ee=gu(V,"start",_,d),ce=gu(V,"stop",I,d),le=gu(V,"stop",R,d),Q=gu(V,"stop",de=>{bE(de.target)||J(!1),g&&g(de)},!1),ue=Ko(de=>{z.current||(z.current=de.currentTarget),bE(de.target)&&(J(!0),P&&P(de)),S&&S(de)}),ge=()=>{const de=z.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},xe=Ko(de=>{f&&!de.repeat&&G&&de.key===" "&&V.stop(de,()=>{V.start(de)}),de.target===de.currentTarget&&ge()&&de.key===" "&&de.preventDefault(),E&&E(de),de.target===de.currentTarget&&ge()&&de.key==="Enter"&&!c&&(de.preventDefault(),y&&y(de))}),me=Ko(de=>{f&&de.key===" "&&G&&!de.defaultPrevented&&V.stop(de,()=>{V.pulsate(de)}),T&&T(de),y&&de.target===de.currentTarget&&ge()&&de.key===" "&&!de.defaultPrevented&&y(de)});let be=l;be==="button"&&(U.href||U.to)&&(be=m);const we={};be==="button"?(we.type=F===void 0?"button":F,we.disabled=c):(!U.href&&!U.to&&(we.role="button"),c&&(we["aria-disabled"]=c));const Te=Cr(n,z),Ie={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:L,focusVisible:G},Le=qCe(Ie);return $.jsxs(KCe,{as:be,className:pe(Le.root,s),ownerState:Ie,onBlur:Q,onClick:y,onContextMenu:re,onFocus:ue,onKeyDown:xe,onKeyUp:me,onMouseDown:ne,onMouseLeave:se,onMouseUp:fe,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ee,ref:Te,tabIndex:c?-1:L,type:F,...we,...U,children:[a,K?$.jsx(UCe,{ref:W,center:i,...j}):null]})});function gu(e,t,n,r=!1){return Ko(o=>(n&&n(o),r||e[t](o),!0))}function YCe(e){return Ze("MuiAccordionSummary",e)}const Dg=tt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),XCe=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return et({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},YCe,t)},QCe=ie(Xi,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Dg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Dg.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${Dg.expanded}`]:{minHeight:64}}}]}})),JCe=ie("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(Qe(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Dg.expanded}`]:{margin:"20px 0"}}}]}))),ZCe=ie("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(Qe(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Dg.expanded}`]:{transform:"rotate(180deg)"}}))),ej=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:l,...c}=r,{disabled:u=!1,disableGutters:d,expanded:f,toggle:p}=v.useContext(aZ),m=b=>{p&&p(b),l&&l(b)},g={...r,expanded:f,disabled:u,disableGutters:d},y=XCe(g);return $.jsxs(QCe,{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":f,className:pe(y.root,i),focusVisibleClassName:pe(y.focusVisible,s),onClick:m,ref:n,ownerState:g,...c,children:[$.jsx(JCe,{className:y.content,ownerState:g,children:o}),a&&$.jsx(ZCe,{className:y.expandIconWrapper,ownerState:g,children:a})]})});function ePe(e){return typeof e.main=="string"}function tPe(e,t=[]){if(!ePe(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Vn(e=[]){return([,t])=>t&&tPe(t,e)}function nPe(e){return Ze("MuiAlert",e)}const G3=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function rPe(e){return Ze("MuiIconButton",e)}const oPe=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iPe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ce(r)}`,o&&`edge${Ce(o)}`,`size${Ce(i)}`]};return et(a,rPe,t)},aPe=ie(Xi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ce(n.color)}`],n.edge&&t[`edge${Ce(n.edge)}`],t[`size${Ce(n.size)}`]]}})(Qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${oPe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),In=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},p=iPe(f);return $.jsx(aPe,{className:pe(p.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),sPe=lt($.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),lPe=lt($.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cPe=lt($.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),uPe=lt($.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),sZ=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dPe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Ce(n||r)}`,`${t}${Ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(i,nPe,o)},fPe=ie(fo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ce(n.color||n.severity)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?Gu:qu,n=e.palette.mode==="light"?qu:Gu;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Vn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${G3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Vn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${G3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Vn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),pPe=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hPe=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),q3=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),K3={success:$.jsx(sPe,{fontSize:"inherit"}),warning:$.jsx(lPe,{fontSize:"inherit"}),error:$.jsx(cPe,{fontSize:"inherit"}),info:$.jsx(uPe,{fontSize:"inherit"})},Ju=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=K3,onClose:p,role:m="alert",severity:g="success",slotProps:y={},slots:b={},variant:x="standard",...S}=r,P={...r,color:l,severity:g,variant:x,colorSeverity:l||g},E=dPe(P),T={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...b},slotProps:{...u,...y}},[O,k]=dn("closeButton",{elementType:In,externalForwardedProps:T,ownerState:P}),[M,I]=dn("closeIcon",{elementType:sZ,externalForwardedProps:T,ownerState:P});return $.jsxs(fPe,{role:m,elevation:0,ownerState:P,className:pe(E.root,a),ref:n,...S,children:[d!==!1?$.jsx(pPe,{ownerState:P,className:E.icon,children:d||f[g]||K3[g]}):null,$.jsx(hPe,{ownerState:P,className:E.message,children:i}),o!=null?$.jsx(q3,{ownerState:P,className:E.action,children:o}):null,o==null&&p?$.jsx(q3,{ownerState:P,className:E.action,children:$.jsx(O,{size:"small","aria-label":s,title:s,color:"inherit",onClick:p,...k,children:$.jsx(M,{fontSize:"small",...I})})}):null]})});function mPe(e){return Ze("MuiTypography",e)}const KE=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gPe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},yPe=rSe(),vPe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return et(s,mPe,a)},bPe=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Vn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Ce(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Y3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ut=v.forwardRef(function(t,n){const{color:r,...o}=nt({props:t,name:"MuiTypography"}),i=!gPe[r],a=yPe({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=Y3,...g}=a,y={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:m},b=c||(f?"p":m[p]||Y3[p])||"span",x=vPe(y);return $.jsx(bPe,{as:b,ref:n,className:pe(x.root,l),...g,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...g.style}})});function wPe(e){return Ze("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const xPe=e=>{const{classes:t}=e;return et({root:["root"]},wPe,t)},SPe=ie(ut,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),YE=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAlertTitle"}),{className:o,...i}=r,a=r,s=xPe(a);return $.jsx(SPe,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:pe(s.root,o),...i})});function CPe(e){return Ze("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const PPe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Ce(t)}`,`position${Ce(n)}`]};return et(o,CPe,r)},X3=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,EPe=ie(fo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ce(n.position)}`],t[`color${Ce(n.color)}`]]}})(Qe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Vn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?X3(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?X3(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),TPe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=PPe(c);return $.jsx(EPe,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});function Q3(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function lZ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Q3(u));const d=u?s.filter(f=>{let p=(i||c)(f);return n&&(p=p.toLowerCase()),t&&(p=Q3(p)),o==="start"?p.startsWith(u):p.includes(u)}):s;return typeof r=="number"?d.slice(0,r):d}}const OPe=lZ(),J3=5,IPe=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},kPe=[];function MPe(e){const{unstable_isActiveElementInListbox:t=IPe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?kPe:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:y=OPe,filterSelectedOptions:b=!1,freeSolo:x=!1,getOptionDisabled:S,getOptionKey:P,getOptionLabel:E=We=>We.label??We,groupBy:T,handleHomeEndKeys:O=!e.freeSolo,id:k,includeInputInList:M=!1,inputValue:I,isOptionEqualToValue:R=(We,Ne)=>We===Ne,multiple:_=!1,onChange:L,onClose:j,onHighlightChange:N,onInputChange:F,onOpen:U,open:z,openOnFocus:V=!1,options:W,readOnly:G=!1,selectOnFocus:J=!e.freeSolo,value:K}=e,ne=Ph(k);let re=E;re=We=>{const Ne=E(We);return typeof Ne!="string"?String(Ne):Ne};const oe=v.useRef(!1),fe=v.useRef(!0),se=v.useRef(null),ee=v.useRef(null),[ce,le]=v.useState(null),[Q,ue]=v.useState(-1),ge=o?0:-1,xe=v.useRef(ge),[me,be]=Du({controlled:K,default:u,name:c}),[we,Te]=Du({controlled:I,default:"",name:c,state:"inputValue"}),[Ie,Le]=v.useState(!1),de=v.useCallback((We,Ne,Ct)=>{if(!(_?me.length<Ne.length:Ne!==null)&&!s)return;let ln;if(_)ln="";else if(Ne==null)ln="";else{const Dr=re(Ne);ln=typeof Dr=="string"?Dr:""}we!==ln&&(Te(ln),F&&F(We,ln,Ct))},[re,we,_,F,Te,s,me]),[$e,ke]=Du({controlled:z,default:!1,name:c,state:"open"}),[Me,De]=v.useState(!0),Ye=!_&&me!=null&&we===re(me),Je=$e&&!G,st=Je?y(W.filter(We=>!(b&&(_?me:[me]).some(Ne=>Ne!==null&&R(We,Ne)))),{inputValue:Ye&&Me?"":we,getOptionLabel:re}):[],Rt=oF({filteredOptions:st,value:me,inputValue:we});v.useEffect(()=>{const We=me!==Rt.value;Ie&&!We||x&&!We||de(null,me,"reset")},[me,de,Ie,Rt.value,x]);const ct=$e&&st.length>0&&!G,Lt=Ko(We=>{We===-1?se.current.focus():ce.querySelector(`[data-tag-index="${We}"]`).focus()});v.useEffect(()=>{_&&Q>me.length-1&&(ue(-1),Lt(-1))},[me,_,Q,Lt]);function pt(We,Ne){if(!ee.current||We<0||We>=st.length)return-1;let Ct=We;for(;;){const Zt=ee.current.querySelector(`[data-option-index="${Ct}"]`),ln=m?!1:!Zt||Zt.disabled||Zt.getAttribute("aria-disabled")==="true";if(Zt&&Zt.hasAttribute("tabindex")&&!ln)return Ct;if(Ne==="next"?Ct=(Ct+1)%st.length:Ct=(Ct-1+st.length)%st.length,Ct===We)return-1}}const rt=Ko(({event:We,index:Ne,reason:Ct="auto"})=>{if(xe.current=Ne,Ne===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${Ne}`),N&&N(We,Ne===-1?null:st[Ne],Ct),!ee.current)return;const Zt=ee.current.querySelector(`[role="option"].${n}-focused`);Zt&&(Zt.classList.remove(`${n}-focused`),Zt.classList.remove(`${n}-focusVisible`));let ln=ee.current;if(ee.current.getAttribute("role")!=="listbox"&&(ln=ee.current.parentElement.querySelector('[role="listbox"]')),!ln)return;if(Ne===-1){ln.scrollTop=0;return}const Dr=ee.current.querySelector(`[data-option-index="${Ne}"]`);if(Dr&&(Dr.classList.add(`${n}-focused`),Ct==="keyboard"&&Dr.classList.add(`${n}-focusVisible`),ln.scrollHeight>ln.clientHeight&&Ct!=="mouse"&&Ct!=="touch")){const Gn=Dr,Ia=ln.clientHeight+ln.scrollTop,iu=Gn.offsetTop+Gn.offsetHeight;iu>Ia?ln.scrollTop=iu-ln.clientHeight:Gn.offsetTop-Gn.offsetHeight*(T?1.3:0)<ln.scrollTop&&(ln.scrollTop=Gn.offsetTop-Gn.offsetHeight*(T?1.3:0))}}),Pe=Ko(({event:We,diff:Ne,direction:Ct="next",reason:Zt="auto"})=>{if(!Je)return;const Dr=pt((()=>{const Gn=st.length-1;if(Ne==="reset")return ge;if(Ne==="start")return 0;if(Ne==="end")return Gn;const Ia=xe.current+Ne;return Ia<0?Ia===-1&&M?-1:g&&xe.current!==-1||Math.abs(Ne)>1?0:Gn:Ia>Gn?Ia===Gn+1&&M?-1:g||Math.abs(Ne)>1?Gn:0:Ia})(),Ct);if(rt({index:Dr,reason:Zt,event:We}),r&&Ne!=="reset")if(Dr===-1)se.current.value=we;else{const Gn=re(st[Dr]);se.current.value=Gn,Gn.toLowerCase().indexOf(we.toLowerCase())===0&&we.length>0&&se.current.setSelectionRange(we.length,Gn.length)}}),Ve=()=>{const We=(Ne,Ct)=>{const Zt=Ne?re(Ne):"",ln=Ct?re(Ct):"";return Zt===ln};if(xe.current!==-1&&Rt.filteredOptions&&Rt.filteredOptions.length!==st.length&&Rt.inputValue===we&&(_?me.length===Rt.value.length&&Rt.value.every((Ne,Ct)=>re(me[Ct])===re(Ne)):We(Rt.value,me))){const Ne=Rt.filteredOptions[xe.current];if(Ne)return st.findIndex(Ct=>re(Ct)===re(Ne))}return-1},ft=v.useCallback(()=>{if(!Je)return;const We=Ve();if(We!==-1){xe.current=We;return}const Ne=_?me[0]:me;if(st.length===0||Ne==null){Pe({diff:"reset"});return}if(ee.current){if(Ne!=null){const Ct=st[xe.current];if(_&&Ct&&me.findIndex(ln=>R(Ct,ln))!==-1)return;const Zt=st.findIndex(ln=>R(ln,Ne));Zt===-1?Pe({diff:"reset"}):rt({index:Zt});return}if(xe.current>=st.length-1){rt({index:st.length-1});return}rt({index:xe.current})}},[st.length,_?!1:me,b,Pe,rt,Je,we,_]),It=Ko(We=>{vE(ee,We),We&&ft()});v.useEffect(()=>{ft()},[ft]);const St=We=>{$e||(ke(!0),De(!0),U&&U(We))},yn=(We,Ne)=>{$e&&(ke(!1),j&&j(We,Ne))},Bn=(We,Ne,Ct,Zt)=>{if(_){if(me.length===Ne.length&&me.every((ln,Dr)=>ln===Ne[Dr]))return}else if(me===Ne)return;L&&L(We,Ne,Ct,Zt),be(Ne)},Wn=v.useRef(!1),To=(We,Ne,Ct="selectOption",Zt="options")=>{let ln=Ct,Dr=Ne;if(_){Dr=Array.isArray(me)?me.slice():[];const Gn=Dr.findIndex(Ia=>R(Ne,Ia));Gn===-1?Dr.push(Ne):Zt!=="freeSolo"&&(Dr.splice(Gn,1),ln="removeOption")}de(We,Dr,ln),Bn(We,Dr,ln,{option:Ne}),!f&&(!We||!We.ctrlKey&&!We.metaKey)&&yn(We,ln),(a===!0||a==="touch"&&Wn.current||a==="mouse"&&!Wn.current)&&se.current.blur()};function Oo(We,Ne){if(We===-1)return-1;let Ct=We;for(;;){if(Ne==="next"&&Ct===me.length||Ne==="previous"&&Ct===-1)return-1;const Zt=ce.querySelector(`[data-tag-index="${Ct}"]`);if(!Zt||!Zt.hasAttribute("tabindex")||Zt.disabled||Zt.getAttribute("aria-disabled")==="true")Ct+=Ne==="next"?1:-1;else return Ct}}const hi=(We,Ne)=>{if(!_)return;we===""&&yn(We,"toggleInput");let Ct=Q;Q===-1?we===""&&Ne==="previous"&&(Ct=me.length-1):(Ct+=Ne==="next"?1:-1,Ct<0&&(Ct=0),Ct===me.length&&(Ct=-1)),Ct=Oo(Ct,Ne),ue(Ct),Lt(Ct)},Oa=We=>{oe.current=!0,Te(""),F&&F(We,"","clear"),Bn(We,_?[]:null,"clear")},Ft=We=>Ne=>{if(We.onKeyDown&&We.onKeyDown(Ne),!Ne.defaultMuiPrevented&&(Q!==-1&&!["ArrowLeft","ArrowRight"].includes(Ne.key)&&(ue(-1),Lt(-1)),Ne.which!==229))switch(Ne.key){case"Home":Je&&O&&(Ne.preventDefault(),Pe({diff:"start",direction:"next",reason:"keyboard",event:Ne}));break;case"End":Je&&O&&(Ne.preventDefault(),Pe({diff:"end",direction:"previous",reason:"keyboard",event:Ne}));break;case"PageUp":Ne.preventDefault(),Pe({diff:-J3,direction:"previous",reason:"keyboard",event:Ne}),St(Ne);break;case"PageDown":Ne.preventDefault(),Pe({diff:J3,direction:"next",reason:"keyboard",event:Ne}),St(Ne);break;case"ArrowDown":Ne.preventDefault(),Pe({diff:1,direction:"next",reason:"keyboard",event:Ne}),St(Ne);break;case"ArrowUp":Ne.preventDefault(),Pe({diff:-1,direction:"previous",reason:"keyboard",event:Ne}),St(Ne);break;case"ArrowLeft":hi(Ne,"previous");break;case"ArrowRight":hi(Ne,"next");break;case"Enter":if(xe.current!==-1&&Je){const Ct=st[xe.current],Zt=S?S(Ct):!1;if(Ne.preventDefault(),Zt)return;To(Ne,Ct,"selectOption"),r&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else x&&we!==""&&Ye===!1&&(_&&Ne.preventDefault(),To(Ne,we,"createOption","freeSolo"));break;case"Escape":Je?(Ne.preventDefault(),Ne.stopPropagation(),yn(Ne,"escape")):l&&(we!==""||_&&me.length>0)&&(Ne.preventDefault(),Ne.stopPropagation(),Oa(Ne));break;case"Backspace":if(_&&!G&&we===""&&me.length>0){const Ct=Q===-1?me.length-1:Q,Zt=me.slice();Zt.splice(Ct,1),Bn(Ne,Zt,"removeOption",{option:me[Ct]})}break;case"Delete":if(_&&!G&&we===""&&me.length>0&&Q!==-1){const Ct=Q,Zt=me.slice();Zt.splice(Ct,1),Bn(Ne,Zt,"removeOption",{option:me[Ct]})}break}},Io=We=>{Le(!0),V&&!oe.current&&St(We)},gs=We=>{if(t(ee)){se.current.focus();return}Le(!1),fe.current=!0,oe.current=!1,i&&xe.current!==-1&&Je?To(We,st[xe.current],"blur"):i&&x&&we!==""?To(We,we,"blur","freeSolo"):s&&de(We,me,"blur"),yn(We,"blur")},wd=We=>{const Ne=We.target.value;we!==Ne&&(Te(Ne),De(!1),F&&F(We,Ne,"input")),Ne===""?!d&&!_&&Bn(We,null,"clear"):St(We)},ou=We=>{const Ne=Number(We.currentTarget.getAttribute("data-option-index"));xe.current!==Ne&&rt({event:We,index:Ne,reason:"mouse"})},dp=We=>{rt({event:We,index:Number(We.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Wn.current=!0},fp=We=>{const Ne=Number(We.currentTarget.getAttribute("data-option-index"));To(We,st[Ne],"selectOption"),Wn.current=!1},jb=We=>Ne=>{const Ct=me.slice();Ct.splice(We,1),Bn(Ne,Ct,"removeOption",{option:me[We]})},xm=We=>{$e?yn(We,"toggleInput"):St(We)},I1=We=>{We.currentTarget.contains(We.target)&&We.target.getAttribute("id")!==ne&&We.preventDefault()},pp=We=>{We.currentTarget.contains(We.target)&&(se.current.focus(),J&&fe.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),fe.current=!1)},jo=We=>{!p&&(we===""||!$e)&&xm(We)};let qr=x&&we.length>0;qr=qr||(_?me.length>0:me!==null);let Pl=st;return T&&(Pl=st.reduce((We,Ne,Ct)=>{const Zt=T(Ne);return We.length>0&&We[We.length-1].group===Zt?We[We.length-1].options.push(Ne):We.push({key:Ct,index:Ct,group:Zt,options:[Ne]}),We},[])),p&&Ie&&gs(),{getRootProps:(We={})=>({"aria-owns":ct?`${ne}-listbox`:null,...We,onKeyDown:Ft(We),onMouseDown:I1,onClick:pp}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:we,onBlur:gs,onFocus:Io,onChange:wd,onMouseDown:jo,"aria-activedescendant":Je?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ct?`${ne}-listbox`:void 0,"aria-expanded":ct,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Oa}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:xm}),getTagProps:({index:We})=>({key:We,"data-tag-index":We,tabIndex:-1,...!G&&{onDelete:jb(We)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:It,onMouseDown:We=>{We.preventDefault()}}),getOptionProps:({index:We,option:Ne})=>{const Ct=(_?me:[me]).some(ln=>ln!=null&&R(Ne,ln)),Zt=S?S(Ne):!1;return{key:(P==null?void 0:P(Ne))??re(Ne),tabIndex:-1,role:"option",id:`${ne}-option-${We}`,onMouseMove:ou,onClick:fp,onTouchStart:dp,"data-option-index":We,"aria-disabled":Zt,"aria-selected":Ct}},id:ne,inputValue:we,value:me,dirty:qr,expanded:Je&&ce,popupOpen:Je,focused:Ie||Q!==-1,anchorEl:ce,setAnchorEl:le,focusedTag:Q,groupedOptions:Pl}}var wa="top",ll="bottom",cl="right",xa="left",tj="auto",RS=[wa,ll,cl,xa],Hy="start",ux="end",APe="clippingParents",cZ="viewport",d0="popper",$Pe="reference",Z3=RS.reduce(function(e,t){return e.concat([t+"-"+Hy,t+"-"+ux])},[]),uZ=[].concat(RS,[tj]).reduce(function(e,t){return e.concat([t,t+"-"+Hy,t+"-"+ux])},[]),RPe="beforeRead",DPe="read",_Pe="afterRead",LPe="beforeMain",NPe="main",FPe="afterMain",jPe="beforeWrite",BPe="write",zPe="afterWrite",VPe=[RPe,DPe,_Pe,LPe,NPe,FPe,jPe,BPe,zPe];function Wc(e){return e?(e.nodeName||"").toLowerCase():null}function is(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mh(e){var t=is(e).Element;return e instanceof t||e instanceof Element}function tl(e){var t=is(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nj(e){if(typeof ShadowRoot>"u")return!1;var t=is(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HPe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!tl(i)||!Wc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function UPe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!tl(o)||!Wc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const WPe={name:"applyStyles",enabled:!0,phase:"write",fn:HPe,effect:UPe,requires:["computeStyles"]};function Nc(e){return e.split("-")[0]}var fh=Math.max,XE=Math.min,Uy=Math.round;function ED(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dZ(){return!/^((?!chrome|android).)*safari/i.test(ED())}function Wy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&tl(e)&&(o=e.offsetWidth>0&&Uy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Uy(r.height)/e.offsetHeight||1);var a=Mh(e)?is(e):window,s=a.visualViewport,l=!dZ()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function rj(e){var t=Wy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fZ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nj(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zu(e){return is(e).getComputedStyle(e)}function GPe(e){return["table","td","th"].indexOf(Wc(e))>=0}function qf(e){return((Mh(e)?e.ownerDocument:e.document)||window.document).documentElement}function II(e){return Wc(e)==="html"?e:e.assignedSlot||e.parentNode||(nj(e)?e.host:null)||qf(e)}function eU(e){return!tl(e)||Zu(e).position==="fixed"?null:e.offsetParent}function qPe(e){var t=/firefox/i.test(ED()),n=/Trident/i.test(ED());if(n&&tl(e)){var r=Zu(e);if(r.position==="fixed")return null}var o=II(e);for(nj(o)&&(o=o.host);tl(o)&&["html","body"].indexOf(Wc(o))<0;){var i=Zu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function DS(e){for(var t=is(e),n=eU(e);n&&GPe(n)&&Zu(n).position==="static";)n=eU(n);return n&&(Wc(n)==="html"||Wc(n)==="body"&&Zu(n).position==="static")?t:n||qPe(e)||t}function oj(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vw(e,t,n){return fh(e,XE(t,n))}function KPe(e,t,n){var r=vw(e,t,n);return r>n?n:r}function pZ(){return{top:0,right:0,bottom:0,left:0}}function hZ(e){return Object.assign({},pZ(),e)}function mZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var YPe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hZ(typeof t!="number"?t:mZ(t,RS))};function XPe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nc(n.placement),l=oj(s),c=[xa,cl].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=YPe(o.padding,n),f=rj(i),p=l==="y"?wa:xa,m=l==="y"?ll:cl,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],y=a[l]-n.rects.reference[l],b=DS(i),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=g/2-y/2,P=d[p],E=x-f[u]-d[m],T=x/2-f[u]/2+S,O=vw(P,T,E),k=l;n.modifiersData[r]=(t={},t[k]=O,t.centerOffset=O-T,t)}}function QPe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||fZ(t.elements.popper,o)&&(t.elements.arrow=o))}const JPe={name:"arrow",enabled:!0,phase:"main",fn:XPe,effect:QPe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gy(e){return e.split("-")[1]}var ZPe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eEe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Uy(n*o)/o||0,y:Uy(r*o)/o||0}}function tU(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,m=a.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),S=xa,P=wa,E=window;if(c){var T=DS(n),O="clientHeight",k="clientWidth";if(T===is(n)&&(T=qf(n),Zu(T).position!=="static"&&s==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,o===wa||(o===xa||o===cl)&&i===ux){P=ll;var M=d&&T===E&&E.visualViewport?E.visualViewport.height:T[O];g-=M-r.height,g*=l?1:-1}if(o===xa||(o===wa||o===ll)&&i===ux){S=cl;var I=d&&T===E&&E.visualViewport?E.visualViewport.width:T[k];p-=I-r.width,p*=l?1:-1}}var R=Object.assign({position:s},c&&ZPe),_=u===!0?eEe({x:p,y:g},is(n)):{x:p,y:g};if(p=_.x,g=_.y,l){var L;return Object.assign({},R,(L={},L[P]=x?"0":"",L[S]=b?"0":"",L.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",L))}return Object.assign({},R,(t={},t[P]=x?g+"px":"",t[S]=b?p+"px":"",t.transform="",t))}function tEe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Nc(t.placement),variation:Gy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,tU(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tU(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nEe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tEe,data:{}};var zC={passive:!0};function rEe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=is(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,zC)}),s&&l.addEventListener("resize",n.update,zC),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,zC)}),s&&l.removeEventListener("resize",n.update,zC)}}const oEe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rEe,data:{}};var iEe={left:"right",right:"left",bottom:"top",top:"bottom"};function WP(e){return e.replace(/left|right|bottom|top/g,function(t){return iEe[t]})}var aEe={start:"end",end:"start"};function nU(e){return e.replace(/start|end/g,function(t){return aEe[t]})}function ij(e){var t=is(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function aj(e){return Wy(qf(e)).left+ij(e).scrollLeft}function sEe(e,t){var n=is(e),r=qf(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=dZ();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+aj(e),y:l}}function lEe(e){var t,n=qf(e),r=ij(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=fh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=fh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+aj(e),l=-r.scrollTop;return Zu(o||n).direction==="rtl"&&(s+=fh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function sj(e){var t=Zu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gZ(e){return["html","body","#document"].indexOf(Wc(e))>=0?e.ownerDocument.body:tl(e)&&sj(e)?e:gZ(II(e))}function bw(e,t){var n;t===void 0&&(t=[]);var r=gZ(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=is(r),a=o?[i].concat(i.visualViewport||[],sj(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(bw(II(a)))}function TD(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cEe(e,t){var n=Wy(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rU(e,t,n){return t===cZ?TD(sEe(e,n)):Mh(t)?cEe(t,n):TD(lEe(qf(e)))}function uEe(e){var t=bw(II(e)),n=["absolute","fixed"].indexOf(Zu(e).position)>=0,r=n&&tl(e)?DS(e):e;return Mh(r)?t.filter(function(o){return Mh(o)&&fZ(o,r)&&Wc(o)!=="body"}):[]}function dEe(e,t,n,r){var o=t==="clippingParents"?uEe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=rU(e,c,r);return l.top=fh(u.top,l.top),l.right=XE(u.right,l.right),l.bottom=XE(u.bottom,l.bottom),l.left=fh(u.left,l.left),l},rU(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function yZ(e){var t=e.reference,n=e.element,r=e.placement,o=r?Nc(r):null,i=r?Gy(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case wa:l={x:a,y:t.y-n.height};break;case ll:l={x:a,y:t.y+t.height};break;case cl:l={x:t.x+t.width,y:s};break;case xa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?oj(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Hy:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ux:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function dx(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?APe:s,c=n.rootBoundary,u=c===void 0?cZ:c,d=n.elementContext,f=d===void 0?d0:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,y=g===void 0?0:g,b=hZ(typeof y!="number"?y:mZ(y,RS)),x=f===d0?$Pe:d0,S=e.rects.popper,P=e.elements[m?x:f],E=dEe(Mh(P)?P:P.contextElement||qf(e.elements.popper),l,u,a),T=Wy(e.elements.reference),O=yZ({reference:T,element:S,strategy:"absolute",placement:o}),k=TD(Object.assign({},S,O)),M=f===d0?k:T,I={top:E.top-M.top+b.top,bottom:M.bottom-E.bottom+b.bottom,left:E.left-M.left+b.left,right:M.right-E.right+b.right},R=e.modifiersData.offset;if(f===d0&&R){var _=R[o];Object.keys(I).forEach(function(L){var j=[cl,ll].indexOf(L)>=0?1:-1,N=[wa,ll].indexOf(L)>=0?"y":"x";I[L]+=_[N]*j})}return I}function fEe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?uZ:l,u=Gy(r),d=u?s?Z3:Z3.filter(function(m){return Gy(m)===u}):RS,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=dx(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Nc(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function pEe(e){if(Nc(e)===tj)return[];var t=WP(e);return[nU(e),t,nU(t)]}function hEe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,y=t.options.placement,b=Nc(y),x=b===y,S=l||(x||!m?[WP(y)]:pEe(y)),P=[y].concat(S).reduce(function(ne,re){return ne.concat(Nc(re)===tj?fEe(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):re)},[]),E=t.rects.reference,T=t.rects.popper,O=new Map,k=!0,M=P[0],I=0;I<P.length;I++){var R=P[I],_=Nc(R),L=Gy(R)===Hy,j=[wa,ll].indexOf(_)>=0,N=j?"width":"height",F=dx(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),U=j?L?cl:xa:L?ll:wa;E[N]>T[N]&&(U=WP(U));var z=WP(U),V=[];if(i&&V.push(F[_]<=0),s&&V.push(F[U]<=0,F[z]<=0),V.every(function(ne){return ne})){M=R,k=!1;break}O.set(R,V)}if(k)for(var W=m?3:1,G=function(re){var oe=P.find(function(fe){var se=O.get(fe);if(se)return se.slice(0,re).every(function(ee){return ee})});if(oe)return M=oe,"break"},J=W;J>0;J--){var K=G(J);if(K==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const mEe={name:"flip",enabled:!0,phase:"main",fn:hEe,requiresIfExists:["offset"],data:{_skip:!1}};function oU(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iU(e){return[wa,cl,ll,xa].some(function(t){return e[t]>=0})}function gEe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=dx(t,{elementContext:"reference"}),s=dx(t,{altBoundary:!0}),l=oU(a,r),c=oU(s,o,i),u=iU(l),d=iU(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const yEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gEe};function vEe(e,t,n){var r=Nc(e),o=[xa,wa].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[xa,cl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function bEe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=uZ.reduce(function(u,d){return u[d]=vEe(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const wEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bEe};function xEe(e){var t=e.state,n=e.name;t.modifiersData[n]=yZ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const SEe={name:"popperOffsets",enabled:!0,phase:"read",fn:xEe,data:{}};function CEe(e){return e==="x"?"y":"x"}function PEe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,y=dx(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Nc(t.placement),x=Gy(t.placement),S=!x,P=oj(b),E=CEe(P),T=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(T){if(i){var L,j=P==="y"?wa:xa,N=P==="y"?ll:cl,F=P==="y"?"height":"width",U=T[P],z=U+y[j],V=U-y[N],W=p?-k[F]/2:0,G=x===Hy?O[F]:k[F],J=x===Hy?-k[F]:-O[F],K=t.elements.arrow,ne=p&&K?rj(K):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pZ(),oe=re[j],fe=re[N],se=vw(0,O[F],ne[F]),ee=S?O[F]/2-W-se-oe-I.mainAxis:G-se-oe-I.mainAxis,ce=S?-O[F]/2+W+se+fe+I.mainAxis:J+se+fe+I.mainAxis,le=t.elements.arrow&&DS(t.elements.arrow),Q=le?P==="y"?le.clientTop||0:le.clientLeft||0:0,ue=(L=R==null?void 0:R[P])!=null?L:0,ge=U+ee-ue-Q,xe=U+ce-ue,me=vw(p?XE(z,ge):z,U,p?fh(V,xe):V);T[P]=me,_[P]=me-U}if(s){var be,we=P==="x"?wa:xa,Te=P==="x"?ll:cl,Ie=T[E],Le=E==="y"?"height":"width",de=Ie+y[we],$e=Ie-y[Te],ke=[wa,xa].indexOf(b)!==-1,Me=(be=R==null?void 0:R[E])!=null?be:0,De=ke?de:Ie-O[Le]-k[Le]-Me+I.altAxis,Ye=ke?Ie+O[Le]+k[Le]-Me-I.altAxis:$e,Je=p&&ke?KPe(De,Ie,Ye):vw(p?De:de,Ie,p?Ye:$e);T[E]=Je,_[E]=Je-Ie}t.modifiersData[r]=_}}const EEe={name:"preventOverflow",enabled:!0,phase:"main",fn:PEe,requiresIfExists:["offset"]};function TEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OEe(e){return e===is(e)||!tl(e)?ij(e):TEe(e)}function IEe(e){var t=e.getBoundingClientRect(),n=Uy(t.width)/e.offsetWidth||1,r=Uy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kEe(e,t,n){n===void 0&&(n=!1);var r=tl(t),o=tl(t)&&IEe(t),i=qf(t),a=Wy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wc(t)!=="body"||sj(i))&&(s=OEe(t)),tl(t)?(l=Wy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=aj(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function MEe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function AEe(e){var t=MEe(e);return VPe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function $Ee(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function REe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var aU={placement:"bottom",modifiers:[],strategy:"absolute"};function sU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function DEe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?aU:o;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},aU,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(b){var x=typeof b=="function"?b(u.options):b;g(),u.options=Object.assign({},i,u.options,x),u.scrollParents={reference:Mh(s)?bw(s):s.contextElement?bw(s.contextElement):[],popper:bw(l)};var S=AEe(REe([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(P){return P.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var b=u.elements,x=b.reference,S=b.popper;if(sU(x,S)){u.rects={reference:kEe(x,DS(S),u.options.strategy==="fixed"),popper:rj(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var E=u.orderedModifiers[P],T=E.fn,O=E.options,k=O===void 0?{}:O,M=E.name;typeof T=="function"&&(u=T({state:u,options:k,name:M,instance:p})||u)}}}},update:$Ee(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){g(),f=!0}};if(!sU(s,l))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var b=y.name,x=y.options,S=x===void 0?{}:x,P=y.effect;if(typeof P=="function"){var E=P({state:u,name:b,instance:p,options:S}),T=function(){};d.push(E||T)}})}function g(){d.forEach(function(y){return y()}),d=[]}return p}}var _Ee=[oEe,SEe,nEe,WPe,wEe,mEe,EEe,JPe,yEe],LEe=DEe({defaultModifiers:_Ee});function NEe(e){return typeof e=="function"?e():e}const vZ=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=v.useState(null),l=Cr(v.isValidElement(r)?Hf(r):null,n);if(ns(()=>{i||s(NEe(o)||document.body)},[o,i]),ns(()=>{if(a&&!i)return vE(n,a),()=>{vE(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return a&&OI.createPortal(r,a)});function FEe(e){return Ze("MuiPopper",e)}tt("MuiPopper",["root"]);function jEe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function OD(e){return typeof e=="function"?e():e}function BEe(e){return e.nodeType!==void 0}const zEe=e=>{const{classes:t}=e;return et({root:["root"]},FEe,t)},VEe={},HEe=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:m,ownerState:g,...y}=t,b=v.useRef(null),x=Cr(b,n),S=v.useRef(null),P=Cr(S,d),E=v.useRef(P);ns(()=>{E.current=P},[P]),v.useImperativeHandle(d,()=>S.current,[]);const T=jEe(c,i),[O,k]=v.useState(T),[M,I]=v.useState(OD(r));v.useEffect(()=>{S.current&&S.current.forceUpdate()}),v.useEffect(()=>{r&&I(OD(r))},[r]),ns(()=>{if(!M||!l)return;const N=z=>{k(z.placement)};let F=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{N(z)}}];s!=null&&(F=F.concat(s)),u&&u.modifiers!=null&&(F=F.concat(u.modifiers));const U=LEe(M,b.current,{placement:T,...u,modifiers:F});return E.current(U),()=>{U.destroy(),E.current(null)}},[M,a,s,l,u,T]);const R={placement:O};m!==null&&(R.TransitionProps=m);const _=zEe(t),L=p.root??"div",j=Uc({elementType:L,externalSlotProps:f.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:_.root});return $.jsx(L,{...j,children:typeof o=="function"?o(R):o})}),UEe=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=VEe,popperRef:p,style:m,transition:g=!1,slotProps:y={},slots:b={},...x}=t,[S,P]=v.useState(!0),E=()=>{P(!1)},T=()=>{P(!0)};if(!l&&!u&&(!g||S))return null;let O;if(i)O=i;else if(r){const I=OD(r);O=I&&BEe(I)?ui(I).body:ui(null).body}const k=!u&&l&&(!g||S)?"none":void 0,M=g?{in:u,onEnter:E,onExited:T}:void 0;return $.jsx(vZ,{disablePortal:s,container:O,children:$.jsx(HEe,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:g?!S:u,placement:d,popperOptions:f,popperRef:p,slotProps:y,slots:b,...x,style:{position:"fixed",top:0,left:0,display:k,...m},TransitionProps:M,children:o})})}),WEe=ie(UEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kf=v.forwardRef(function(t,n){const r=ud(),o=nt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:y,transition:b,slots:x,slotProps:S,...P}=o,E=(x==null?void 0:x.root)??(s==null?void 0:s.Root),T={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:y,transition:b,...P};return $.jsx(WEe,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:S??l,...T,ref:n})});function GEe(e){return Ze("MuiListSubheader",e)}tt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const qEe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Ce(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return et(a,GEe,t)},KEe=ie("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ce(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Qe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),ID=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},f=qEe(d);return $.jsx(KEe,{as:a,className:pe(f.root,o),ref:n,ownerState:d,...u})});ID&&(ID.muiSkipListHighlight=!0);const YEe=lt($.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function XEe(e){return Ze("MuiChip",e)}const En=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),QEe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Ce(r)}`,`color${Ce(o)}`,s&&"clickable",s&&`clickableColor${Ce(o)}`,a&&"deletable",a&&`deletableColor${Ce(o)}`,`${l}${Ce(o)}`],label:["label",`label${Ce(r)}`],avatar:["avatar",`avatar${Ce(r)}`,`avatarColor${Ce(o)}`],icon:["icon",`icon${Ce(r)}`,`iconColor${Ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ce(r)}`,`deleteIconColor${Ce(o)}`,`deleteIcon${Ce(l)}Color${Ce(o)}`]};return et(c,XEe,t)},JEe=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${En.avatar}`]:t.avatar},{[`& .${En.avatar}`]:t[`avatar${Ce(s)}`]},{[`& .${En.avatar}`]:t[`avatarColor${Ce(r)}`]},{[`& .${En.icon}`]:t.icon},{[`& .${En.icon}`]:t[`icon${Ce(s)}`]},{[`& .${En.icon}`]:t[`iconColor${Ce(o)}`]},{[`& .${En.deleteIcon}`]:t.deleteIcon},{[`& .${En.deleteIcon}`]:t[`deleteIcon${Ce(s)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIconColor${Ce(r)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIcon${Ce(l)}Color${Ce(r)}`]},t.root,t[`size${Ce(s)}`],t[`color${Ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Ce(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Ce(r)}`],t[l],t[`${l}${Ce(r)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${En.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${En.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${En.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${En.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${En.icon}`]:{marginLeft:5,marginRight:-6},[`& .${En.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:vt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:vt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${En.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${En.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Vn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${En.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:vt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${En.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${En.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${En.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Vn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${En.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Vn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${En.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${En.avatar}`]:{marginLeft:4},[`& .${En.avatarSmall}`]:{marginLeft:2},[`& .${En.icon}`]:{marginLeft:4},[`& .${En.iconSmall}`]:{marginLeft:2},[`& .${En.deleteIcon}`]:{marginRight:5},[`& .${En.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Vn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:vt(e.palette[n].main,.7)}`,[`&.${En.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${En.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:vt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),ZEe=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ce(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lU(e){return e.key==="Backspace"||e.key==="Delete"}const Ah=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:y,size:b="medium",variant:x="filled",tabIndex:S,skipFocusWhenDisabled:P=!1,...E}=r,T=v.useRef(null),O=Cr(T,n),k=V=>{V.stopPropagation(),m&&m(V)},M=V=>{V.currentTarget===V.target&&lU(V)&&V.preventDefault(),g&&g(V)},I=V=>{V.currentTarget===V.target&&m&&lU(V)&&m(V),y&&y(V)},R=a!==!1&&p?!0:a,_=R||m?Xi:l||"div",L={...r,component:_,disabled:u,size:b,color:s,iconColor:v.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:R,variant:x},j=QEe(L),N=_===Xi?{component:l||"div",focusVisibleClassName:j.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=c&&v.isValidElement(c)?v.cloneElement(c,{className:pe(c.props.className,j.deleteIcon),onClick:k}):$.jsx(YEe,{className:pe(j.deleteIcon),onClick:k}));let U=null;o&&v.isValidElement(o)&&(U=v.cloneElement(o,{className:pe(j.avatar,o.props.className)}));let z=null;return d&&v.isValidElement(d)&&(z=v.cloneElement(d,{className:pe(j.icon,d.props.className)})),$.jsxs(JEe,{as:_,className:pe(j.root,i),disabled:R&&u?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:I,ref:O,tabIndex:P&&u?-1:S,ownerState:L,...N,...E,children:[U||z,$.jsx(ZEe,{className:pe(j.label),ownerState:L,children:f}),F]})});function VC(e){return parseInt(e,10)||0}const eTe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tTe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const nTe=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=v.useRef(s!=null),u=v.useRef(null),d=Cr(n,u),f=v.useRef(null),p=v.useRef(null),m=v.useCallback(()=>{const b=u.current,S=rs(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=p.current;P.style.width=S.width,P.value=b.value||t.placeholder||"x",P.value.slice(-1)===`
+`&&(P.value+=" ");const E=S.boxSizing,T=VC(S.paddingBottom)+VC(S.paddingTop),O=VC(S.borderBottomWidth)+VC(S.borderTopWidth),k=P.scrollHeight;P.value="x";const M=P.scrollHeight;let I=k;i&&(I=Math.max(Number(i)*M,I)),o&&(I=Math.min(Number(o)*M,I)),I=Math.max(I,M);const R=I+(E==="border-box"?T+O:0),_=Math.abs(I-k)<=1;return{outerHeightStyle:R,overflowing:_}},[o,i,t.placeholder]),g=v.useCallback(()=>{const b=m();if(tTe(b))return;const x=b.outerHeightStyle,S=u.current;f.current!==x&&(f.current=x,S.style.height=`${x}px`),S.style.overflow=b.overflowing?"hidden":""},[m]);ns(()=>{const b=()=>{g()};let x;const S=TS(b),P=u.current,E=rs(P);E.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(b),T.observe(P)),()=>{S.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",S),T&&T.disconnect()}},[m,g]),ns(()=>{g()});const y=b=>{c||g(),r&&r(b)};return $.jsxs(v.Fragment,{children:[$.jsx("textarea",{value:s,onChange:y,ref:d,rows:i,style:a,...l}),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...eTe.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function fx(e){return typeof e=="string"}function Yf({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const kI=v.createContext(void 0);function Ea(){return v.useContext(kI)}function cU(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function QE(e,t=!1){return e&&(cU(e.value)&&e.value!==""||t&&cU(e.defaultValue)&&e.defaultValue!=="")}function rTe(e){return e.startAdornment}function oTe(e){return Ze("MuiInputBase",e)}const Go=tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var uU;const MI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},AI=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},iTe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e,g={root:["root",`color${Ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${Ce(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return et(g,oTe,t)},$I=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:MI})(Qe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Go.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),RI=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:AI})(Qe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Go.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Go.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),dU=nSe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Vv=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,error:g,fullWidth:y=!1,id:b,inputComponent:x="input",inputProps:S={},inputRef:P,margin:E,maxRows:T,minRows:O,multiline:k=!1,name:M,onBlur:I,onChange:R,onClick:_,onFocus:L,onKeyDown:j,onKeyUp:N,placeholder:F,readOnly:U,renderSuffix:z,rows:V,size:W,slotProps:G={},slots:J={},startAdornment:K,type:ne="text",value:re,...oe}=r,fe=S.value!=null?S.value:re,{current:se}=v.useRef(fe!=null),ee=v.useRef(),ce=v.useCallback(ct=>{},[]),le=Cr(ee,P,S.ref,ce),[Q,ue]=v.useState(!1),ge=Ea(),xe=Yf({props:r,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=ge?ge.focused:Q,v.useEffect(()=>{!ge&&f&&Q&&(ue(!1),I&&I())},[ge,f,Q,I]);const me=ge&&ge.onFilled,be=ge&&ge.onEmpty,we=v.useCallback(ct=>{QE(ct)?me&&me():be&&be()},[me,be]);ns(()=>{se&&we({value:fe})},[fe,we,se]);const Te=ct=>{L&&L(ct),S.onFocus&&S.onFocus(ct),ge&&ge.onFocus?ge.onFocus(ct):ue(!0)},Ie=ct=>{I&&I(ct),S.onBlur&&S.onBlur(ct),ge&&ge.onBlur?ge.onBlur(ct):ue(!1)},Le=(ct,...Lt)=>{if(!se){const pt=ct.target||ee.current;if(pt==null)throw new Error(Wu(1));we({value:pt.value})}S.onChange&&S.onChange(ct,...Lt),R&&R(ct,...Lt)};v.useEffect(()=>{we(ee.current)},[]);const de=ct=>{ee.current&&ct.currentTarget===ct.target&&ee.current.focus(),_&&_(ct)};let $e=x,ke=S;k&&$e==="input"&&(V?ke={type:void 0,minRows:V,maxRows:V,...ke}:ke={type:void 0,maxRows:T,minRows:O,...ke},$e=nTe);const Me=ct=>{we(ct.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};v.useEffect(()=>{ge&&ge.setAdornedStart(!!K)},[ge,K]);const De={...r,color:xe.color||"primary",disabled:xe.disabled,endAdornment:m,error:xe.error,focused:xe.focused,formControl:ge,fullWidth:y,hiddenLabel:xe.hiddenLabel,multiline:k,size:xe.size,startAdornment:K,type:ne},Ye=iTe(De),Je=J.root||c.Root||$I,st=G.root||u.root||{},Rt=J.input||c.Input||RI;return ke={...ke,...G.input??u.input},$.jsxs(v.Fragment,{children:[!p&&typeof dU=="function"&&(uU||(uU=$.jsx(dU,{}))),$.jsxs(Je,{...st,ref:n,onClick:de,...oe,...!fx(Je)&&{ownerState:{...De,...st.ownerState}},className:pe(Ye.root,st.className,s,U&&"MuiInputBase-readOnly"),children:[K,$.jsx(kI.Provider,{value:null,children:$.jsx(Rt,{"aria-invalid":xe.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:xe.disabled,id:b,onAnimationStart:Me,name:M,placeholder:F,readOnly:U,required:xe.required,rows:V,value:fe,onKeyDown:j,onKeyUp:N,type:ne,...ke,...!fx(Rt)&&{as:$e,ownerState:{...De,...ke.ownerState}},ref:le,className:pe(Ye.input,ke.className,U&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:Le,onFocus:Te})}),m,z?z({...xe,startAdornment:K}):null]})]})});function aTe(e){return Ze("MuiInput",e)}const qd={...Go,...tt("MuiInput",["root","underline","input"])};function sTe(e){return Ze("MuiOutlinedInput",e)}const $s={...Go,...tt("MuiOutlinedInput",["root","notchedOutline","input"])};function lTe(e){return Ze("MuiFilledInput",e)}const Ua={...Go,...tt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},bZ=lt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function cTe(e){return Ze("MuiAutocomplete",e)}const hn=tt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var fU,pU;const uTe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Ce(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return et(d,cTe,t)},dTe=ie("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${hn.tag}`]:t.tag},{[`& .${hn.tag}`]:t[`tagSize${Ce(s)}`]},{[`& .${hn.inputRoot}`]:t.inputRoot},{[`& .${hn.input}`]:t.input},{[`& .${hn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${hn.focused} .${hn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${hn.clearIndicator}`]:{visibility:"visible"}},[`& .${hn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${hn.inputRoot}`]:{[`.${hn.hasPopupIcon}&, .${hn.hasClearIcon}&`]:{paddingRight:30},[`.${hn.hasPopupIcon}.${hn.hasClearIcon}&`]:{paddingRight:56},[`& .${hn.input}`]:{width:0,minWidth:30}},[`& .${qd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${qd.root}.${Go.sizeSmall}`]:{[`& .${qd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$s.root}`]:{padding:9,[`.${hn.hasPopupIcon}&, .${hn.hasClearIcon}&`]:{paddingRight:39},[`.${hn.hasPopupIcon}.${hn.hasClearIcon}&`]:{paddingRight:65},[`& .${hn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${hn.endAdornment}`]:{right:9}},[`& .${$s.root}.${Go.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${hn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ua.root}`]:{paddingTop:19,paddingLeft:8,[`.${hn.hasPopupIcon}&, .${hn.hasClearIcon}&`]:{paddingRight:39},[`.${hn.hasPopupIcon}.${hn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ua.input}`]:{padding:"7px 4px"},[`& .${hn.endAdornment}`]:{right:9}},[`& .${Ua.root}.${Go.sizeSmall}`]:{paddingBottom:1,[`& .${Ua.input}`]:{padding:"2.5px 4px"}},[`& .${Go.hiddenLabel}`]:{paddingTop:8},[`& .${Ua.root}.${Go.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${hn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ua.root}.${Go.hiddenLabel}.${Go.sizeSmall}`]:{[`& .${hn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${hn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${hn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${hn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${hn.inputRoot}`]:{flexWrap:"wrap"}}}]}),fTe=ie("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),pTe=ie(In,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),hTe=ie(In,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),mTe=ie(Kf,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),gTe=ie(fo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Qe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),yTe=ie("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),vTe=ie("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),bTe=ie("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Qe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${hn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${hn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${hn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${hn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),wTe=ie(ID,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),xTe=ie("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${hn.option}`]:{paddingLeft:24}}),ac=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=fU||(fU=$.jsx(sZ,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:p="Clear",closeText:m="Close",componentsProps:g,defaultValue:y=r.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:x=!1,disabled:S=!1,disabledItemsFocusable:P=!1,disableListWrap:E=!1,disablePortal:T=!1,filterOptions:O,filterSelectedOptions:k=!1,forcePopupIcon:M="auto",freeSolo:I=!1,fullWidth:R=!1,getLimitTagsText:_=Rn=>`+${Rn}`,getOptionDisabled:L,getOptionKey:j,getOptionLabel:N,isOptionEqualToValue:F,groupBy:U,handleHomeEndKeys:z=!r.freeSolo,id:V,includeInputInList:W=!1,inputValue:G,limitTags:J=-1,ListboxComponent:K,ListboxProps:ne,loading:re=!1,loadingText:oe="Loading…",multiple:fe=!1,noOptionsText:se="No options",onChange:ee,onClose:ce,onHighlightChange:le,onInputChange:Q,onOpen:ue,open:ge,openOnFocus:xe=!1,openText:me="Open",options:be,PaperComponent:we,PopperComponent:Te,popupIcon:Ie=pU||(pU=$.jsx(bZ,{})),readOnly:Le=!1,renderGroup:de,renderInput:$e,renderOption:ke,renderTags:Me,selectOnFocus:De=!r.freeSolo,size:Ye="medium",slots:Je={},slotProps:st={},value:Rt,...ct}=r,{getRootProps:Lt,getInputProps:pt,getInputLabelProps:rt,getPopupIndicatorProps:Pe,getClearProps:Ve,getTagProps:ft,getListboxProps:It,getOptionProps:St,value:yn,dirty:Bn,expanded:Wn,id:To,popupOpen:Oo,focused:hi,focusedTag:Oa,anchorEl:Ft,setAnchorEl:Io,inputValue:gs,groupedOptions:wd}=MPe({...r,componentName:"Autocomplete"}),ou=!b&&!S&&Bn&&!Le,dp=(!I||M===!0)&&M!==!1,{onMouseDown:fp}=pt(),{ref:jb,...xm}=It(),pp=N||(Rn=>Rn.label??Rn),jo={...r,disablePortal:T,expanded:Wn,focused:hi,fullWidth:R,getOptionLabel:pp,hasClearIcon:ou,hasPopupIcon:dp,inputFocused:Oa===-1,popupOpen:Oo,size:Ye},qr=uTe(jo),Pl={slots:{paper:we,popper:Te,...Je},slotProps:{chip:l,listbox:ne,...g,...st}},[We,Ne]=dn("listbox",{elementType:bTe,externalForwardedProps:Pl,ownerState:jo,className:qr.listbox,additionalProps:xm,ref:jb}),[Ct,Zt]=dn("paper",{elementType:fo,externalForwardedProps:Pl,ownerState:jo,className:qr.paper}),[ln,Dr]=dn("popper",{elementType:Kf,externalForwardedProps:Pl,ownerState:jo,className:qr.popper,additionalProps:{disablePortal:T,style:{width:Ft?Ft.clientWidth:null},role:"presentation",anchorEl:Ft,open:Oo}});let Gn;if(fe&&yn.length>0){const Rn=ka=>({className:qr.tag,disabled:S,...ft(ka)});Me?Gn=Me(yn,Rn,jo):Gn=yn.map((ka,El)=>{const{key:hp,...jM}=Rn({index:El});return $.jsx(Ah,{label:pp(ka),size:Ye,...jM,...Pl.slotProps.chip},hp)})}if(J>-1&&Array.isArray(Gn)){const Rn=Gn.length-J;!hi&&Rn>0&&(Gn=Gn.splice(0,J),Gn.push($.jsx("span",{className:qr.tag,children:_(Rn)},Gn.length)))}const iu=de||(Rn=>$.jsxs("li",{children:[$.jsx(wTe,{className:qr.groupLabel,ownerState:jo,component:"div",children:Rn.group}),$.jsx(xTe,{className:qr.groupUl,ownerState:jo,children:Rn.children})]},Rn.key)),Sm=ke||((Rn,ka)=>{const{key:El,...hp}=Rn;return $.jsx("li",{...hp,children:pp(ka)},El)}),k1=(Rn,ka)=>{const El=St({option:Rn,index:ka});return Sm({...El,className:qr.option},Rn,{selected:El["aria-selected"],index:ka,inputValue:gs},jo)},Cm=Pl.slotProps.clearIndicator,Pm=Pl.slotProps.popupIndicator;return $.jsxs(v.Fragment,{children:[$.jsx(dTe,{ref:n,className:pe(qr.root,c),ownerState:jo,...Lt(ct),children:$e({id:To,disabled:S,fullWidth:!0,size:Ye==="small"?"small":void 0,InputLabelProps:rt(),InputProps:{ref:Io,className:qr.inputRoot,startAdornment:Gn,onMouseDown:Rn=>{Rn.target===Rn.currentTarget&&fp(Rn)},...(ou||dp)&&{endAdornment:$.jsxs(fTe,{className:qr.endAdornment,ownerState:jo,children:[ou?$.jsx(pTe,{...Ve(),"aria-label":p,title:p,ownerState:jo,...Cm,className:pe(qr.clearIndicator,Cm==null?void 0:Cm.className),children:u}):null,dp?$.jsx(hTe,{...Pe(),disabled:S,"aria-label":Oo?m:me,title:Oo?m:me,ownerState:jo,...Pm,className:pe(qr.popupIndicator,Pm==null?void 0:Pm.className),children:Ie}):null]})}},inputProps:{className:qr.input,disabled:S,readOnly:Le,...pt()}})}),Ft?$.jsx(mTe,{as:ln,...Dr,children:$.jsxs(gTe,{as:Ct,...Zt,children:[re&&wd.length===0?$.jsx(yTe,{className:qr.loading,ownerState:jo,children:oe}):null,wd.length===0&&!I&&!re?$.jsx(vTe,{className:qr.noOptions,ownerState:jo,role:"presentation",onMouseDown:Rn=>{Rn.preventDefault()},children:se}):null,wd.length>0?$.jsx(We,{as:K,...Ne,children:wd.map((Rn,ka)=>U?iu({key:Rn.key,group:Rn.group,children:Rn.options.map((El,hp)=>k1(El,Rn.index+hp))}):k1(Rn,ka))}):null]})}):null]})}),STe=lt($.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CTe(e){return Ze("MuiAvatar",e)}const PTe=tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),ETe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CTe,t)},TTe=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Qe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),OTe=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ITe=ie(STe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function kTe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const sc=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:p,variant:m="circular",...g}=r;let y=null;const b={...r,component:s,variant:m},x=kTe({...u,...typeof c.img=="function"?c.img(b):c.img,src:f,srcSet:p}),S=f||p,P=S&&x!=="error";b.colorDefault=!P,delete b.ownerState;const E=ETe(b),[T,O]=dn("img",{className:E.img,elementType:OTe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:p,sizes:d},ownerState:b});return P?y=$.jsx(T,{...O}):i||i===0?y=i:S&&o?y=o[0]:y=$.jsx(ITe,{ownerState:b,className:E.fallback}),$.jsx(TTe,{as:s,className:pe(E.root,a),ref:n,...g,ownerState:b,children:y})});function MTe(e){return Ze("MuiAvatarGroup",e)}const ATe=tt("MuiAvatarGroup",["root","avatar"]),hU={small:-16,medium:-8},$Te=e=>{const{classes:t}=e;return et({root:["root"],avatar:["avatar"]},MTe,t)},RTe=ie("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${ATe.avatar}`]:t.avatar},t.root]})(Qe(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${PTe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),DTe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAvatarGroup"}),{children:o,className:i,component:a="div",componentsProps:s,max:l=5,renderSurplus:c,slotProps:u={},slots:d={},spacing:f="medium",total:p,variant:m="circular",...g}=r;let y=l<2?2:l;const b={...r,max:l,spacing:f,component:a,variant:m},x=$Te(b),S=v.Children.toArray(o).filter(_=>v.isValidElement(_)),P=p||S.length;P===y&&(y+=1),y=Math.min(P+1,y);const E=Math.min(S.length,y-1),T=Math.max(P-y,P-E,0),O=c?c(T):`+${T}`,k=b.spacing&&hU[b.spacing]!==void 0?hU[b.spacing]:-b.spacing||-8,M={slots:d,slotProps:{surplus:u.additionalAvatar??(s==null?void 0:s.additionalAvatar),...s,...u}},[I,R]=dn("surplus",{elementType:sc,externalForwardedProps:M,className:x.avatar,ownerState:b,additionalProps:{variant:m}});return $.jsxs(RTe,{as:a,ownerState:b,className:pe(x.root,i),ref:n,...g,style:{"--AvatarGroup-spacing":k?`${k}px`:void 0,...g.style},children:[T?$.jsx(I,{...R,children:O}):null,S.slice(0,E).reverse().map(_=>v.cloneElement(_,{className:pe(_.props.className,x.avatar),variant:_.props.variant||m}))]})}),_Te={entering:{opacity:1},entered:{opacity:1}},Hv=v.forwardRef(function(t,n){const r=Lo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:g,style:y,timeout:b=o,TransitionComponent:x=fs,...S}=t,P=v.useRef(null),E=Cr(P,Hf(s),n),T=j=>N=>{if(j){const F=P.current;N===void 0?j(F):j(F,N)}},O=T(f),k=T((j,N)=>{QF(j);const F=Rf({style:y,timeout:b,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",F),j.style.transition=r.transitions.create("opacity",F),u&&u(j,N)}),M=T(d),I=T(g),R=T(j=>{const N=Rf({style:y,timeout:b,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",N),j.style.transition=r.transitions.create("opacity",N),p&&p(j)}),_=T(m),L=j=>{i&&i(P.current,j)};return $.jsx(x,{appear:a,in:c,nodeRef:P,onEnter:k,onEntered:M,onEntering:O,onExit:R,onExited:_,onExiting:I,addEndListener:L,timeout:b,...S,children:(j,{ownerState:N,...F})=>v.cloneElement(s,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,..._Te[j],...y,...s.props.style},ref:E,...F})})});function LTe(e){return Ze("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const NTe=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},LTe,t)},FTe=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),wZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:p,transitionDuration:m,...g}=r,y={...r,component:a,invisible:s},b=NTe(y),x={transition:p,root:c.Root,...f},S={...u,...d},P={slots:x,slotProps:S},[E,T]=dn("root",{elementType:FTe,externalForwardedProps:P,className:pe(b.root,i),ownerState:y}),[O,k]=dn("transition",{elementType:Hv,externalForwardedProps:P,ownerState:y});return $.jsx(O,{in:l,timeout:m,...g,...k,children:$.jsx(E,{"aria-hidden":!0,...T,classes:b,ref:n,children:o})})});function jTe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=oF({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function BTe(e){return Ze("MuiBadge",e)}const Ad=tt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),A$=10,$$=4,zTe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Ce(n.vertical)}${Ce(n.horizontal)}`,`anchorOrigin${Ce(n.vertical)}${Ce(n.horizontal)}${Ce(o)}`,`overlap${Ce(o)}`,t!=="default"&&`color${Ce(t)}`]};return et(s,BTe,a)},VTe=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),HTe=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Ce(n.anchorOrigin.vertical)}${Ce(n.anchorOrigin.horizontal)}${Ce(n.overlap)}`],n.color!=="default"&&t[`color${Ce(n.color)}`],n.invisible&&t.invisible]}})(Qe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:A$*2,lineHeight:1,padding:"0 6px",height:A$*2,borderRadius:A$,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Vn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:$$,height:$$*2,minWidth:$$*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ad.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function mU(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const UTe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:p=!1,max:m=99,badgeContent:g,slots:y,slotProps:b,showZero:x=!1,variant:S="standard",...P}=r,{badgeContent:E,invisible:T,max:O,displayValue:k}=jTe({max:m,invisible:p,badgeContent:g,showZero:x}),M=oF({anchorOrigin:mU(o),color:f,overlap:d,variant:S,badgeContent:g}),I=T||E==null&&S!=="dot",{color:R=f,overlap:_=d,anchorOrigin:L,variant:j=S}=I?M:r,N=mU(L),F=j!=="dot"?k:void 0,U={...r,badgeContent:E,invisible:I,max:O,displayValue:F,showZero:x,anchorOrigin:N,color:R,overlap:_,variant:j},z=zTe(U),V=(y==null?void 0:y.root)??l.Root??VTe,W=(y==null?void 0:y.badge)??l.Badge??HTe,G=(b==null?void 0:b.root)??c.root,J=(b==null?void 0:b.badge)??c.badge,K=Uc({elementType:V,externalSlotProps:G,externalForwardedProps:P,additionalProps:{ref:n,as:s},ownerState:U,className:pe(G==null?void 0:G.className,z.root,i)}),ne=Uc({elementType:W,externalSlotProps:J,ownerState:U,className:pe(z.badge,J==null?void 0:J.className)});return $.jsxs(V,{...K,children:[u,$.jsx(W,{...ne,children:F})]})}),WTe=tt("MuiBox",["root"]),GTe=ES(),$n=I0e({themeId:Js,defaultTheme:GTe,defaultClassName:WTe.root,generateClassName:pX.generate});function qTe(e){return Ze("MuiButton",e)}const Gm=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xZ=v.createContext({}),SZ=v.createContext(void 0),KTe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Ce(t)}`,`size${Ce(o)}`,`${i}Size${Ce(o)}`,`color${Ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ce(o)}`],endIcon:["icon","endIcon",`iconSize${Ce(o)}`]},l=et(s,qTe,a);return{...a,...l}},CZ=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],YTe=ie(Xi,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ce(n.color)}`],t[`size${Ce(n.size)}`],t[`${n.variant}Size${Ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Gm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Gm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Gm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Gm.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Vn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:vt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gm.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),XTe=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...CZ]}),QTe=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...CZ]}),yt=v.forwardRef(function(t,n){const r=v.useContext(xZ),o=v.useContext(SZ),i=_y(r,t),a=nt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,size:b="medium",startIcon:x,type:S,variant:P="text",...E}=a,T={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:y,size:b,type:S,variant:P},O=KTe(T),k=x&&$.jsx(XTe,{className:O.startIcon,ownerState:T,children:x}),M=m&&$.jsx(QTe,{className:O.endIcon,ownerState:T,children:m}),I=o||"";return $.jsxs(YTe,{ownerState:T,className:pe(r.className,O.root,u,I),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:pe(O.focusVisible,g),ref:n,type:S,...E,classes:O,children:[k,s,M]})});function JTe(e){return Ze("MuiButtonGroup",e)}const un=tt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),ZTe=(e,t)=>{const{ownerState:n}=e;return[{[`& .${un.grouped}`]:t.grouped},{[`& .${un.grouped}`]:t[`grouped${Ce(n.orientation)}`]},{[`& .${un.grouped}`]:t[`grouped${Ce(n.variant)}`]},{[`& .${un.grouped}`]:t[`grouped${Ce(n.variant)}${Ce(n.orientation)}`]},{[`& .${un.grouped}`]:t[`grouped${Ce(n.variant)}${Ce(n.color)}`]},{[`& .${un.firstButton}`]:t.firstButton},{[`& .${un.lastButton}`]:t.lastButton},{[`& .${un.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},eOe=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${Ce(n)}`],grouped:["grouped",`grouped${Ce(a)}`,`grouped${Ce(s)}`,`grouped${Ce(s)}${Ce(a)}`,`grouped${Ce(s)}${Ce(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return et(l,JTe,t)},tOe=ie("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:ZTe})(Qe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${un.lastButton},& .${un.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${un.lastButton},& .${un.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${un.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${un.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Vn()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:vt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${un.lastButton},& .${un.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${un.lastButton},& .${un.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${un.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${un.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Vn(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${un.firstButton},& .${un.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${un.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),nOe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonGroup"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:f=!1,orientation:p="horizontal",size:m="medium",variant:g="outlined",...y}=r,b={...r,color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,orientation:p,size:m,variant:g},x=eOe(b),S=v.useMemo(()=>({className:x.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,size:m,variant:g}),[a,l,c,u,d,f,m,g,x.grouped]),P=eQ(o),E=P.length,T=O=>{const k=O===0,M=O===E-1;return k&&M?"":k?x.firstButton:M?x.lastButton:x.middleButton};return $.jsx(tOe,{as:s,role:"group",className:pe(x.root,i),ref:n,ownerState:b,...y,children:$.jsx(xZ.Provider,{value:S,children:P.map((O,k)=>$.jsx(SZ.Provider,{value:T(k),children:O},k))})})});function rOe(e){return Ze("MuiCard",e)}tt("MuiCard",["root"]);const oOe=e=>{const{classes:t}=e;return et({root:["root"]},rOe,t)},iOe=ie(fo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),co=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=oOe(s);return $.jsx(iOe,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function aOe(e){return Ze("MuiCardActionArea",e)}const R$=tt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),sOe=e=>{const{classes:t}=e;return et({root:["root"],focusHighlight:["focusHighlight"]},aOe,t)},lOe=ie(Xi,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${R$.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${R$.focusVisible} .${R$.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),cOe=ie("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(Qe(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),uOe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:a,...s}=r,l=r,c=sOe(l);return $.jsxs(lOe,{className:pe(c.root,i),focusVisibleClassName:pe(a,c.focusVisible),ref:n,ownerState:l,...s,children:[o,$.jsx(cOe,{className:c.focusHighlight,ownerState:l})]})});function dOe(e){return Ze("MuiCardActions",e)}tt("MuiCardActions",["root","spacing"]);const fOe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},dOe,t)},pOe=ie("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ps=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...a}=r,s={...r,disableSpacing:o},l=fOe(s);return $.jsx(pOe,{className:pe(l.root,i),ownerState:s,ref:n,...a})});function hOe(e){return Ze("MuiCardContent",e)}tt("MuiCardContent",["root"]);const mOe=e=>{const{classes:t}=e;return et({root:["root"]},hOe,t)},gOe=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Oi=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=mOe(s);return $.jsx(gOe,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function yOe(e){return Ze("MuiCardHeader",e)}const JE=tt("MuiCardHeader",["root","avatar","action","content","title","subheader"]),vOe=e=>{const{classes:t}=e;return et({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},yOe,t)},bOe=ie("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${JE.title}`]:t.title},{[`& .${JE.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),wOe=ie("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),xOe=ie("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),SOe=ie("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${KE.root}:where(& .${JE.title})`]:{display:"block"},[`.${KE.root}:where(& .${JE.subheader})`]:{display:"block"}}),uc=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,...p}=r,m={...r,component:s,disableTypography:l},g=vOe(m);let y=d;y!=null&&y.type!==ut&&!l&&(y=$.jsx(ut,{variant:i?"body2":"h5",className:g.title,component:"span",...f,children:y}));let b=c;return b!=null&&b.type!==ut&&!l&&(b=$.jsx(ut,{variant:i?"body2":"body1",className:g.subheader,color:"textSecondary",component:"span",...u,children:b})),$.jsxs(bOe,{className:pe(g.root,a),as:s,ref:n,ownerState:m,...p,children:[i&&$.jsx(wOe,{className:g.avatar,ownerState:m,children:i}),$.jsxs(SOe,{className:g.content,ownerState:m,children:[y,b]}),o&&$.jsx(xOe,{className:g.action,ownerState:m,children:o})]})});function COe(e){return Ze("MuiCardMedia",e)}tt("MuiCardMedia",["root","media","img"]);const POe=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return et({root:["root",n&&"media",r&&"img"]},COe,t)},EOe=ie("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),TOe=["video","audio","picture","iframe","img"],OOe=["picture","img"],Gc=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=TOe.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,p={...r,component:a,isMediaComponent:d,isImageComponent:OOe.includes(a)},m=POe(p);return $.jsx(EOe,{className:pe(m.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:p,src:d?s||l:void 0,...u,children:o})});function IOe(e){return Ze("PrivateSwitchBase",e)}tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kOe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ce(o)}`],input:["input"]};return et(i,IOe,t)},MOe=ie(Xi)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),AOe=ie("input",{shouldForwardProp:pi})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),PZ=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:p,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:x,readOnly:S,required:P=!1,tabIndex:E,type:T,value:O,...k}=t,[M,I]=Du({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),R=Ea(),_=V=>{x&&x(V),R&&R.onFocus&&R.onFocus(V)},L=V=>{y&&y(V),R&&R.onBlur&&R.onBlur(V)},j=V=>{if(V.nativeEvent.defaultPrevented)return;const W=V.target.checked;I(W),b&&b(V,W)};let N=l;R&&typeof N>"u"&&(N=R.disabled);const F=T==="checkbox"||T==="radio",U={...t,checked:M,disabled:N,disableFocusRipple:c,edge:u},z=kOe(U);return $.jsxs(MOe,{component:"span",className:pe(z.root,a),centerRipple:!0,focusRipple:!c,disabled:N,tabIndex:null,role:void 0,onFocus:_,onBlur:L,ownerState:U,ref:n,...k,children:[$.jsx(AOe,{autoFocus:r,checked:o,defaultChecked:s,className:z.input,disabled:N,id:F?f:void 0,name:g,onChange:j,readOnly:S,ref:m,required:P,ownerState:U,tabIndex:E,type:T,...T==="checkbox"&&O===void 0?{}:{value:O},...p}),M?i:d]})}),$Oe=lt($.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ROe=lt($.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),DOe=lt($.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _Oe(e){return Ze("MuiCheckbox",e)}const D$=tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),LOe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Ce(r)}`,`size${Ce(o)}`]},a=et(i,_Oe,t);return{...t,...a}},NOe=ie(PZ,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ce(n.size)}`],n.color!=="default"&&t[`color${Ce(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{[`&.${D$.checked}, &.${D$.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${D$.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),FOe=$.jsx(ROe,{}),jOe=$.jsx($Oe,{}),BOe=$.jsx(DOe,{}),zOe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=FOe,color:i="primary",icon:a=jOe,indeterminate:s=!1,indeterminateIcon:l=BOe,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...p}=r,m=s?l:a,g=s?l:o,y={...r,disableRipple:d,color:i,indeterminate:s,size:u},b=LOe(y);return $.jsx(NOe,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:v.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:v.cloneElement(g,{fontSize:g.props.fontSize??u}),ownerState:y,ref:n,className:pe(b.root,f),disableRipple:d,...p,classes:b})});function VOe(e){return Ze("MuiCircularProgress",e)}tt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $d=44,kD=Xc`
0% {
transform: rotate(0deg);
}
@@ -167,7 +167,7 @@ Error generating stack: `+i.message+`
100% {
transform: rotate(360deg);
}
-`,K2=jc`
+`,MD=Xc`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
@@ -182,11 +182,11 @@ Error generating stack: `+i.message+`
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
-`,RTe=typeof q2!="string"?Ef`
- animation: ${q2} 1.4s linear infinite;
- `:null,DTe=typeof K2!="string"?Ef`
- animation: ${K2} 1.4s ease-in-out infinite;
- `:null,_Te=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Se(r)}`],svg:["svg"],circle:["circle",`circle${Se(n)}`,o&&"circleDisableShrink"]};return Te(i,$Te,t)},LTe=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RTe||{animation:`${q2} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),NTe=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),FTe=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Se(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(tt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:DTe||{animation:`${K2} 1.4s ease-in-out infinite`}}]}))),PJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,p={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},m=_Te(p),g={},y={},b={};if(d==="determinate"){const x=2*Math.PI*((vd-c)/2);g.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*x).toFixed(3)}px`,y.transform="rotate(-90deg)"}return $.jsx(LTe,{className:pe(m.root,o),style:{width:s,height:s,...y,...l},ownerState:p,ref:n,role:"progressbar",...b,...f,children:$.jsx(NTe,{className:m.svg,ownerState:p,viewBox:`${vd/2} ${vd/2} ${vd} ${vd}`,children:$.jsx(FTe,{className:m.circle,style:g,ownerState:p,cx:vd,cy:vd,r:(vd-c)/2,fill:"none",strokeWidth:c})})})});function I3(e){return e.substring(2).toLowerCase()}function jTe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function PF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=v.useRef(!1),s=v.useRef(null),l=v.useRef(!1),c=v.useRef(!1);v.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Wt(Tf(t),s),d=Ze(m=>{const g=c.current;c.current=!1;const y=mr(s.current);if(!l.current||!s.current||"clientX"in m&&jTe(m,y))return;if(a.current){a.current=!1;return}let b;m.composedPath?b=m.composedPath().includes(s.current):b=!y.documentElement.contains(m.target)||s.current.contains(m.target),!b&&(n||!g)&&o(m)}),f=m=>g=>{c.current=!0;const y=t.props[m];y&&y(g)},p={ref:u};return i!==!1&&(p[i]=f(i)),v.useEffect(()=>{if(i!==!1){const m=I3(i),g=mr(s.current),y=()=>{a.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",y),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",y)}}},[d,i]),r!==!1&&(p[r]=f(r)),v.useEffect(()=>{if(r!==!1){const m=I3(r),g=mr(s.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,r]),v.cloneElement(t,p)}const Vu=c0e({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})});function BTe(e){const t=mr(e);return t.body===e?ba(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function X0(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function k3(e){return parseInt(ba(e).getComputedStyle(e).paddingRight,10)||0}function zTe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function M3(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!zTe(a);s&&l&&X0(a,o)})}function ZA(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function VTe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BTe(r)){const a=EY(ba(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${k3(r)+a}px`;const s=mr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${k3(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=mr(r).body;else{const a=r.parentElement,s=ba(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function HTe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UTe{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&X0(t.modalRef,!1);const o=HTe(n);M3(n,t.mount,t.modalRef,o,!0);const i=ZA(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ZA(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=VTe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ZA(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&X0(t.modalRef,n),M3(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&X0(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const WTe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GTe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function qTe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function KTe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||qTe(e))}function YTe(e){const t=[],n=[];return Array.from(e.querySelectorAll(WTe)).forEach((r,o)=>{const i=GTe(r);i===-1||!KTe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function XTe(){return!0}function EF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YTe,isEnabled:a=XTe,open:s}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),p=v.useRef(!1),m=v.useRef(null),g=Wt(Tf(t),m),y=v.useRef(null);v.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!m.current)return;const S=mr(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),v.useEffect(()=>{if(!s||!m.current)return;const S=mr(m.current),P=O=>{y.current=O,!(r||!a()||O.key!=="Tab")&&S.activeElement===m.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{var M,I;const O=m.current;if(O===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(O.contains(S.activeElement)||r&&S.activeElement!==c.current&&S.activeElement!==u.current)return;if(S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((S.activeElement===c.current||S.activeElement===u.current)&&(k=i(m.current)),k.length>0){const R=!!((M=y.current)!=null&&M.shiftKey&&((I=y.current)==null?void 0:I.key)==="Tab"),_=k[0],N=k[k.length-1];typeof _!="string"&&typeof N!="string"&&(R?N.focus():_.focus())}else O.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",P,!0);const T=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),S.removeEventListener("focusin",E),S.removeEventListener("keydown",P,!0)}},[n,r,o,a,s,i]);const b=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0,f.current=S.target;const P=t.props.onFocus;P&&P(S)},x=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0};return $.jsxs(v.Fragment,{children:[$.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:g,onFocus:b}),$.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelEnd"})]})}function QTe(e){return typeof e=="function"?e():e}function JTe(e){return e?e.props.hasOwnProperty("in"):!1}const A3=()=>{},bC=new UTe;function ZTe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),f=v.useRef(null),p=v.useRef(null),m=Wt(p,u),[g,y]=v.useState(!c),b=JTe(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>mr(f.current),P=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),E=()=>{bC.mount(P(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},T=Ze(()=>{const L=QTe(t)||S().body;bC.add(P(),L),p.current&&E()}),O=()=>bC.isTopModal(P()),k=Ze(L=>{f.current=L,L&&(c&&O()?E():p.current&&X0(p.current,x))}),M=v.useCallback(()=>{bC.remove(P(),x)},[x]);v.useEffect(()=>()=>{M()},[M]),v.useEffect(()=>{c?T():(!b||!o)&&M()},[c,M,b,o,T]);const I=L=>F=>{var U;(U=L.onKeyDown)==null||U.call(L,F),!(F.key!=="Escape"||F.which===229||!O())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},R=L=>F=>{var U;(U=L.onClick)==null||U.call(L,F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:(L={})=>{const F=WP(e);delete F.onTransitionEnter,delete F.onTransitionExited;const U={...F,...L};return{role:"presentation",...U,onKeyDown:I(U),ref:m}},getBackdropProps:(L={})=>{const F=L;return{"aria-hidden":!0,...F,onClick:R(F),open:c}},getTransitionProps:()=>{const L=()=>{y(!1),i&&i()},F=()=>{y(!0),a&&a(),o&&M()};return{onEnter:CH(L,(s==null?void 0:s.props.onEnter)??A3),onExited:CH(F,(s==null?void 0:s.props.onExited)??A3)}},rootRef:m,portalRef:k,isTopModal:O,exited:g,hasTransition:b}}function eOe(e){return _e("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const tOe=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},eOe,r)},nOe=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(tt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),rOe=ie(bJ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Sv=v.forwardRef(function(t,n){const r=rt({name:"MuiModal",props:t}),{BackdropComponent:o=rOe,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:x=!1,disableScrollLock:S=!1,hideBackdrop:P=!1,keepMounted:E=!1,onBackdropClick:T,onClose:O,onTransitionEnter:k,onTransitionExited:M,open:I,slotProps:R={},slots:_={},theme:N,...B}=r,L={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:x,disableScrollLock:S,hideBackdrop:P,keepMounted:E},{getRootProps:F,getBackdropProps:U,getTransitionProps:V,portalRef:z,isTopModal:W,exited:G,hasTransition:J}=ZTe({...L,rootRef:n}),K={...L,exited:G},ne=tOe(K),re={};if(c.props.tabIndex===void 0&&(re.tabIndex="-1"),J){const{onEnter:Q,onExited:ue}=V();re.onEnter=Q,re.onExited=ue}const oe={...B,slots:{root:f.Root,backdrop:f.Backdrop,..._},slotProps:{...p,...R}},[fe,se]=dn("root",{elementType:nOe,externalForwardedProps:oe,getSlotProps:F,additionalProps:{ref:n,as:d},ownerState:K,className:pe(s,ne==null?void 0:ne.root,!K.open&&K.exited&&(ne==null?void 0:ne.hidden))}),[ee,ce]=dn("backdrop",{elementType:o,externalForwardedProps:oe,additionalProps:i,getSlotProps:Q=>U({...Q,onClick:ue=>{T&&T(ue),Q!=null&&Q.onClick&&Q.onClick(ue)}}),className:pe(i==null?void 0:i.className,ne==null?void 0:ne.backdrop),ownerState:K}),le=Wt(i==null?void 0:i.ref,ce.ref);return!E&&!I&&(!J||G)?null:$.jsx(yJ,{ref:z,container:u,disablePortal:b,children:$.jsxs(fe,{...se,children:[!P&&o?$.jsx(ee,{...ce,ref:le}):null,$.jsx(EF,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:x,isEnabled:W,open:I,children:v.cloneElement(c,re)})]})})});function oOe(e){return _e("MuiDialog",e)}const Q0=Le("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),EJ=v.createContext({}),iOe=ie(bJ,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),aOe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Se(n)}`],paper:["paper",`paperScroll${Se(n)}`,`paperWidth${Se(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Te(a,oOe,t)},sOe=ie(Sv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),lOe=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Se(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cOe=ie(so,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Se(n.scroll)}`],t[`paperWidth${Se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(tt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Q0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Q0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Q0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),TJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialog"}),o=Ao(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:b,onClick:x,onClose:S,open:P,PaperComponent:E=so,PaperProps:T={},scroll:O="paper",TransitionComponent:k=xv,transitionDuration:M=i,TransitionProps:I,...R}=r,_={...r,disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:y,scroll:O},N=aOe(_),B=v.useRef(),L=z=>{B.current=z.target===z.currentTarget},F=z=>{x&&x(z),B.current&&(B.current=null,b&&b(z),S&&S(z,"backdropClick"))},U=_n(s),V=v.useMemo(()=>({titleId:U}),[U]);return $.jsx(sOe,{className:pe(N.root,f),closeAfterTransition:!0,components:{Backdrop:iOe},componentsProps:{backdrop:{transitionDuration:M,as:c,...u}},disableEscapeKeyDown:p,onClose:S,open:P,ref:n,onClick:F,ownerState:_,...R,children:$.jsx(k,{appear:!0,in:P,timeout:M,role:"presentation",...I,children:$.jsx(lOe,{className:pe(N.container),onMouseDown:L,ownerState:_,children:$.jsx(cOe,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":U,"aria-modal":l,...T,className:pe(N.paper,T.className),ownerState:_,children:$.jsx(EJ.Provider,{value:V,children:d})})})})})});function uOe(e){return _e("MuiDialogActions",e)}Le("MuiDialogActions",["root","spacing"]);const dOe=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},uOe,t)},fOe=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),OJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=dOe(s);return $.jsx(fOe,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function pOe(e){return _e("MuiDialogContent",e)}Le("MuiDialogContent",["root","dividers"]);function hOe(e){return _e("MuiDialogTitle",e)}const mOe=Le("MuiDialogTitle",["root"]),gOe=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},pOe,t)},yOe=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(tt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${mOe.root} + &`]:{paddingTop:0}}}]}))),IJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=gOe(s);return $.jsx(yOe,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),vOe=e=>{const{classes:t}=e;return Te({root:["root"]},hOe,t)},bOe=ie(ut,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wOe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=vOe(s),{titleId:c=i}=v.useContext(EJ);return $.jsx(bOe,{component:"h2",className:pe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})});function xOe(e){return _e("MuiDivider",e)}const $3=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),SOe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Te({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},xOe,r)},COe=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(tt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:vt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),POe=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(tt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Qa=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth",...m}=r,g={...r,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:f,variant:p},y=SOe(g);return $.jsx(COe,{as:l,className:pe(y.root,a),role:d,ref:n,ownerState:g,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...m,children:i?$.jsx(POe,{className:y.wrapper,ownerState:g,children:i}):null})});Qa&&(Qa.muiSkipListHighlight=!0);function EOe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ba(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function TOe(e){return typeof e=="function"?e():e}function wC(e,t,n){const r=TOe(n),o=EOe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const OOe=v.forwardRef(function(t,n){const r=Ao(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:y,onExited:b,onExiting:x,style:S,timeout:P=i,TransitionComponent:E=rs,...T}=t,O=v.useRef(null),k=Wt(Tf(l),O,n),M=V=>z=>{V&&(z===void 0?V(O.current):V(O.current,z))},I=M((V,z)=>{wC(u,V,c),pF(V),p&&p(V,z)}),R=M((V,z)=>{const W=vf({timeout:P,style:S,easing:d},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",{...W}),V.style.transition=r.transitions.create("transform",{...W}),V.style.webkitTransform="none",V.style.transform="none",g&&g(V,z)}),_=M(m),N=M(x),B=M(V=>{const z=vf({timeout:P,style:S,easing:d},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",z),V.style.transition=r.transitions.create("transform",z),wC(u,V,c),y&&y(V)}),L=M(V=>{V.style.webkitTransition="",V.style.transition="",b&&b(V)}),F=V=>{a&&a(O.current,V)},U=v.useCallback(()=>{O.current&&wC(u,O.current,c)},[u,c]);return v.useEffect(()=>{if(f||u==="down"||u==="right")return;const V=nS(()=>{O.current&&wC(u,O.current,c)}),z=ba(O.current);return z.addEventListener("resize",V),()=>{V.clear(),z.removeEventListener("resize",V)}},[u,f,c]),v.useEffect(()=>{f||U()},[f,U]),$.jsx(E,{nodeRef:O,onEnter:I,onEntered:_,onEntering:R,onExit:B,onExited:L,onExiting:N,addEndListener:F,appear:s,in:f,timeout:P,...T,children:(V,{ownerState:z,...W})=>v.cloneElement(l,{ref:k,style:{visibility:V==="exited"&&!f?"hidden":void 0,...S,...l.props.style},...W})})});function IOe(e){return _e("MuiDrawer",e)}Le("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const kJ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},kOe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Se(n)}`,r!=="temporary"&&`paperAnchorDocked${Se(n)}`]};return Te(o,IOe,t)},MOe=ie(Sv,{name:"MuiDrawer",slot:"Root",overridesResolver:kJ})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),R3=ie("div",{shouldForwardProp:ii,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:kJ})({flex:"0 0 auto"}),AOe=ie(so,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Se(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Se(n.anchor)}`]]}})(tt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),MJ={left:"right",right:"left",top:"down",bottom:"up"};function $Oe(e){return["left","right"].includes(e)}function ROe({direction:e},t){return e==="rtl"&&$Oe(t)?MJ[t]:t}const DOe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDrawer"}),o=Ao(),i=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p,...m}={},onClose:g,open:y=!1,PaperProps:b={},SlideProps:x,TransitionComponent:S=OOe,transitionDuration:P=a,variant:E="temporary",...T}=r,O=v.useRef(!1);v.useEffect(()=>{O.current=!0},[]);const k=ROe({direction:i?"rtl":"ltr"},s),I={...r,anchor:s,elevation:d,open:y,variant:E,...T},R=kOe(I),_=$.jsx(AOe,{elevation:E==="temporary"?d:0,square:!0,...b,className:pe(R.paper,b.className),ownerState:I,children:c});if(E==="permanent")return $.jsx(R3,{className:pe(R.root,R.docked,u),ownerState:I,ref:n,...T,children:_});const N=$.jsx(S,{in:y,direction:MJ[k],timeout:P,appear:O.current,...x,children:_});return E==="persistent"?$.jsx(R3,{className:pe(R.root,R.docked,u),ownerState:I,ref:n,...T,children:N}):$.jsx(MOe,{BackdropProps:{...l,...p,transitionDuration:P},className:pe(R.root,R.modal,u),open:y,ownerState:I,onClose:g,hideBackdrop:f,ref:n,...T,...m,children:N})});function _Oe(e){return _e("MuiFab",e)}const D3=Le("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),LOe=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Se(o)}`,t==="inherit"?"colorInherit":t]},a=Te(i,_Oe,r);return{...r,...a}},NOe=ie(Hi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ii(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Se(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Se(n.size)],t[n.color]]}})(tt(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${D3.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),tt(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Hn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),tt(({theme:e})=>({[`&.${D3.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Rh=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFab"}),{children:o,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:f="circular",...p}=r,m={...r,color:a,component:s,disabled:l,disableFocusRipple:c,size:d,variant:f},g=LOe(m);return $.jsx(NOe,{className:pe(g.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:pe(g.focusVisible,u),ownerState:m,ref:n,...p,classes:g,children:o})}),FOe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Se(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Te(l,JPe,t);return{...t,...c}},jOe=ie(iI,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...rI(e,t),!n.disableUnderline&&t.underline]}})(tt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Fa.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Fa.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fa.disabled}, .${Fa.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Hn()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),BOe=ie(aI,{name:"MuiFilledInput",slot:"Input",overridesResolver:oI})(tt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),TF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...m}=r,g={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:p},y=FOe(r),b={root:{ownerState:g},input:{ownerState:g}},x=d??a?mo(b,d??a):b,S=f.root??i.Root??jOe,P=f.input??i.Input??BOe;return $.jsx(wv,{slots:{root:S,input:P},slotProps:x,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:p,...m,classes:y})});TF.muiName="Input";function zOe(e){return _e("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const VOe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Se(n)}`,r&&"fullWidth"]};return Te(o,zOe,t)},HOe=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Se(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Cv=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:y="outlined",...b}=r,x={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:g,variant:y},S=VOe(x),[P,E]=v.useState(()=>{let N=!1;return o&&v.Children.forEach(o,B=>{if(!$g(B,["Input","Select"]))return;const L=$g(B,["Select"])?B.props.input:B;L&&qPe(L.props)&&(N=!0)}),N}),[T,O]=v.useState(()=>{let N=!1;return o&&v.Children.forEach(o,B=>{$g(B,["Input","Select"])&&(EE(B.props,!0)||EE(B.props.inputProps,!0))&&(N=!0)}),N}),[k,M]=v.useState(!1);l&&k&&M(!1);const I=u!==void 0&&!l?u:k;let R;v.useRef(!1);const _=v.useMemo(()=>({adornedStart:P,setAdornedStart:E,color:a,disabled:l,error:c,filled:T,focused:I,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{M(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{M(!0)},registerEffect:R,required:m,variant:y}),[P,a,l,c,T,I,d,f,R,m,g,y]);return $.jsx(nI.Provider,{value:_,children:$.jsx(HOe,{as:s,ownerState:x,className:pe(S.root,i),ref:n,...b,children:o})})});function UOe(e){return _e("MuiFormControlLabel",e)}const T0=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),WOe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Se(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Te(a,UOe,t)},GOe=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${T0.label}`]:t.label},t.root,t[`labelPlacement${Se(n.labelPlacement)}`]]}})(tt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${T0.disabled}`]:{cursor:"default"},[`& .${T0.label}`]:{[`&.${T0.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),qOe=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(tt(({theme:e})=>({[`&.${T0.error}`]:{color:(e.vars||e).palette.error.main}}))),mh=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:p,onChange:m,required:g,slots:y={},slotProps:b={},value:x,...S}=r,P=wa(),E=l??s.props.disabled??(P==null?void 0:P.disabled),T=g??s.props.required,O={disabled:E,required:T};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof s.props[L]>"u"&&typeof r[L]<"u"&&(O[L]=r[L])});const k=Rf({props:r,muiFormControl:P,states:["error"]}),M={...r,disabled:E,labelPlacement:f,required:T,error:k.error},I=WOe(M),R={slots:y,slotProps:{...a,...b}},[_,N]=dn("typography",{elementType:ut,externalForwardedProps:R,ownerState:M});let B=d;return B!=null&&B.type!==ut&&!c&&(B=$.jsx(_,{component:"span",...N,className:pe(I.label,N==null?void 0:N.className),children:B})),$.jsxs(GOe,{className:pe(I.root,i),ownerState:M,ref:n,...S,children:[v.cloneElement(s,O),T?$.jsxs("div",{children:[B,$.jsxs(qOe,{ownerState:M,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):B]})});function KOe(e){return _e("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const YOe=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},KOe,t)},XOe=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Hw=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,s=wa(),l=Rf({props:r,muiFormControl:s,states:["error"]}),c={...r,row:i,error:l.error},u=YOe(c);return $.jsx(XOe,{className:pe(u.root,o),ownerState:c,ref:n,...a})});function QOe(e){return _e("MuiFormHelperText",e)}const _3=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var L3;const JOe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Se(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Te(c,QOe,t)},ZOe=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Se(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${_3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_3.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),fS=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:p,...m}=r,g=wa(),y=Rf({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete b.ownerState;const x=JOe(b);return $.jsx(ZOe,{as:a,className:pe(x.root,i),ref:n,...m,ownerState:b,children:o===" "?L3||(L3=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function eIe(e){return _e("MuiFormLabel",e)}const J0=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tIe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Se(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Te(l,eIe,t)},nIe=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{[`&.${J0.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${J0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),rIe=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(tt(({theme:e})=>({[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}}))),oIe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...p}=r,m=wa(),g=Rf({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:g.color||"primary",component:s,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},b=tIe(y);return $.jsxs(nIe,{as:s,ownerState:y,className:pe(b.root,i),ref:n,...p,children:[o,g.required&&$.jsxs(rIe,{ownerState:y,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})}),Fe=P0e({createStyledComponent:ie("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>rt({props:e,name:"MuiGrid2"}),useTheme:Ao});function Y2(e){return`scale(${e}, ${e**2})`}const iIe={entering:{opacity:1,transform:Y2(1)},entered:{opacity:1,transform:"none"}},e$=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gh=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:y=rs,...b}=t,x=la(),S=v.useRef(),P=Ao(),E=v.useRef(null),T=Wt(E,Tf(i),n),O=L=>F=>{if(L){const U=E.current;F===void 0?L(U):L(U,F)}},k=O(u),M=O((L,F)=>{pF(L);const{duration:U,delay:V,easing:z}=vf({style:m,timeout:g,easing:a},{mode:"enter"});let W;g==="auto"?(W=P.transitions.getAutoHeightDuration(L.clientHeight),S.current=W):W=U,L.style.transition=[P.transitions.create("opacity",{duration:W,delay:V}),P.transitions.create("transform",{duration:e$?W:W*.666,delay:V,easing:z})].join(","),l&&l(L,F)}),I=O(c),R=O(p),_=O(L=>{const{duration:F,delay:U,easing:V}=vf({style:m,timeout:g,easing:a},{mode:"exit"});let z;g==="auto"?(z=P.transitions.getAutoHeightDuration(L.clientHeight),S.current=z):z=F,L.style.transition=[P.transitions.create("opacity",{duration:z,delay:U}),P.transitions.create("transform",{duration:e$?z:z*.666,delay:e$?U:U||z*.333,easing:V})].join(","),L.style.opacity=0,L.style.transform=Y2(.75),d&&d(L)}),N=O(f),B=L=>{g==="auto"&&x.start(S.current||0,L),r&&r(E.current,L)};return $.jsx(y,{appear:o,in:s,nodeRef:E,onEnter:M,onEntered:I,onEntering:k,onExit:_,onExited:N,onExiting:R,addEndListener:B,timeout:g==="auto"?null:g,...b,children:(L,{ownerState:F,...U})=>v.cloneElement(i,{style:{opacity:0,transform:Y2(.75),visibility:L==="exited"&&!s?"hidden":void 0,...iIe[L],...m,...i.props.style},ref:T,...U})})});gh&&(gh.muiSupportAuto=!0);const bf=Mbe({themeId:Hs});function aIe(e){return _e("MuiImageList",e)}Le("MuiImageList",["root","masonry","quilted","standard","woven"]);const AJ=v.createContext({}),sIe=e=>{const{classes:t,variant:n}=e;return Te({root:["root",n]},aIe,t)},lIe=ie("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),$J=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiImageList"}),{children:o,className:i,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:u,variant:d="standard",...f}=r,p=v.useMemo(()=>({rowHeight:l,gap:c,variant:d}),[l,c,d]),m=d==="masonry"?{columnCount:a,columnGap:c,...u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c,...u},g={...r,component:s,gap:c,rowHeight:l,variant:d},y=sIe(g);return $.jsx(lIe,{as:s,className:pe(y.root,y[d],i),ref:n,style:m,ownerState:g,...f,children:$.jsx(AJ.Provider,{value:p,children:o})})});function cIe(e){return _e("MuiImageListItem",e)}const t$=Le("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),uIe=e=>{const{classes:t,variant:n}=e;return Te({root:["root",n],img:["img"]},cIe,t)},dIe=ie("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${t$.img}`]:t.img},t.root,t[n.variant]]}})({display:"block",position:"relative",[`& .${t$.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${t$.img}`]:{height:"auto",flexGrow:1}}}]}),RJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiImageListItem"}),{children:o,className:i,cols:a=1,component:s="li",rows:l=1,style:c,...u}=r,{rowHeight:d="auto",gap:f,variant:p}=v.useContext(AJ);let m="auto";p==="woven"?m=void 0:d!=="auto"&&(m=d*l+f*(l-1));const g={...r,cols:a,component:s,gap:f,rowHeight:d,rows:l,variant:p},y=uIe(g);return $.jsx(dIe,{as:s,className:pe(y.root,y[p],i),ref:n,style:{height:m,gridColumnEnd:p!=="masonry"?`span ${a}`:void 0,gridRowEnd:p!=="masonry"?`span ${l}`:void 0,marginBottom:p==="masonry"?f:void 0,breakInside:p==="masonry"?"avoid":void 0,...c},ownerState:g,...u,children:v.Children.map(o,b=>v.isValidElement(b)?b.type==="img"||$g(b,["Image"])?v.cloneElement(b,{className:pe(y.img,b.props.className)}):b:null)})});function fIe(e){return _e("MuiImageListItemBar",e)}Le("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","actionPositionLeft","actionPositionRight","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const pIe=e=>{const{classes:t,position:n,actionIcon:r,actionPosition:o}=e,i={root:["root",`position${Se(n)}`,`actionPosition${Se(o)}`],titleWrap:["titleWrap",`titleWrap${Se(n)}`,r&&`titleWrapActionPos${Se(o)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${Se(o)}`]};return Te(i,fIe,t)},hIe=ie("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`]]}})(tt(({theme:e})=>({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily,variants:[{props:{position:"bottom"},style:{bottom:0}},{props:{position:"top"},style:{top:0}},{props:{position:"below"},style:{position:"relative",background:"transparent",alignItems:"normal"}}]}))),mIe=ie("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.titleWrap,t[`titleWrap${Se(n.position)}`],n.actionIcon&&t[`titleWrapActionPos${Se(n.actionPosition)}`]]}})(tt(({theme:e})=>({flexGrow:1,padding:"12px 16px",color:(e.vars||e).palette.common.white,overflow:"hidden",variants:[{props:{position:"below"},style:{padding:"6px 0 12px",color:"inherit"}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="left",style:{paddingLeft:0}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="right",style:{paddingRight:0}}]}))),gIe=ie("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(tt(({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),yIe=ie("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(tt(({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),vIe=ie("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actionIcon,t[`actionIconActionPos${Se(n.actionPosition)}`]]}})({variants:[{props:{actionPosition:"left"},style:{order:-1}}]}),bIe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:i="right",className:a,subtitle:s,title:l,position:c="bottom",...u}=r,d={...r,position:c,actionPosition:i},f=pIe(d);return $.jsxs(hIe,{ownerState:d,className:pe(f.root,a),ref:n,...u,children:[$.jsxs(mIe,{ownerState:d,className:f.titleWrap,children:[$.jsx(gIe,{className:f.title,children:l}),s?$.jsx(yIe,{className:f.subtitle,children:s}):null]}),o?$.jsx(vIe,{ownerState:d,className:f.actionIcon,children:o}):null]})}),wIe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},XPe,t);return{...t,...o}},xIe=ie(iI,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...rI(e,t),!n.disableUnderline&&t.underline]}})(tt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Rd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Rd.disabled}, .${Rd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Rd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Hn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),SIe=ie(aI,{name:"MuiInput",slot:"Input",overridesResolver:oI})({}),OF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...p}=r,m=wIe(r),y={root:{ownerState:{disableUnderline:o}}},b=u??a?mo(u??a,y):y,x=d.root??i.Root??xIe,S=d.input??i.Input??SIe;return $.jsx(wv,{slots:{root:x,input:S},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...p,classes:m})});OF.muiName="Input";function CIe(e){return _e("MuiInputAdornment",e)}const N3=Le("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var F3;const PIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},EIe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Se(o)}`,a,r&&"hiddenLabel",i&&`size${Se(i)}`]};return Te(s,CIe,t)},TIe=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:PIe})(tt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${N3.positionStart}&:not(.${N3.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),co=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=wa()||{};let p=u;u&&f.variant,f&&!p&&(p=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:p},g=EIe(m);return $.jsx(nI.Provider,{value:null,children:$.jsx(TIe,{as:a,ownerState:m,className:pe(g.root,i),ref:n,...d,children:typeof o=="string"&&!l?$.jsx(ut,{color:"textSecondary",children:o}):$.jsxs(v.Fragment,{children:[c==="start"?F3||(F3=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function OIe(e){return _e("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const IIe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Se(r)}`,a],asterisk:[s&&"asterisk"]},c=Te(l,OIe,t);return{...t,...c}},kIe=ie(oIe,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J0.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(tt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Pv=v.forwardRef(function(t,n){const r=rt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=wa();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Rf({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),p={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=IIe(p);return $.jsx(kIe,{"data-shrink":d,ref:n,className:pe(m.root,l),...c,ownerState:p,classes:m})});function MIe(e){return _e("MuiLinearProgress",e)}Le("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const X2=4,Q2=jc`
+`,HOe=typeof kD!="string"?zf`
+ animation: ${kD} 1.4s linear infinite;
+ `:null,UOe=typeof MD!="string"?zf`
+ animation: ${MD} 1.4s ease-in-out infinite;
+ `:null,WOe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Ce(r)}`],svg:["svg"],circle:["circle",`circle${Ce(n)}`,o&&"circleDisableShrink"]};return et(i,VOe,t)},GOe=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ce(n.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:HOe||{animation:`${kD} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),qOe=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),KOe=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:UOe||{animation:`${MD} 1.4s ease-in-out infinite`}}]}))),EZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,p={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},m=WOe(p),g={},y={},b={};if(d==="determinate"){const x=2*Math.PI*(($d-c)/2);g.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*x).toFixed(3)}px`,y.transform="rotate(-90deg)"}return $.jsx(GOe,{className:pe(m.root,o),style:{width:s,height:s,...y,...l},ownerState:p,ref:n,role:"progressbar",...b,...f,children:$.jsx(qOe,{className:m.svg,ownerState:p,viewBox:`${$d/2} ${$d/2} ${$d} ${$d}`,children:$.jsx(KOe,{className:m.circle,style:g,ownerState:p,cx:$d,cy:$d,r:($d-c)/2,fill:"none",strokeWidth:c})})})});function gU(e){return e.substring(2).toLowerCase()}function YOe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lj(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=v.useRef(!1),s=v.useRef(null),l=v.useRef(!1),c=v.useRef(!1);v.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Cr(Hf(t),s),d=Ko(m=>{const g=c.current;c.current=!1;const y=ui(s.current);if(!l.current||!s.current||"clientX"in m&&YOe(m,y))return;if(a.current){a.current=!1;return}let b;m.composedPath?b=m.composedPath().includes(s.current):b=!y.documentElement.contains(m.target)||s.current.contains(m.target),!b&&(n||!g)&&o(m)}),f=m=>g=>{c.current=!0;const y=t.props[m];y&&y(g)},p={ref:u};return i!==!1&&(p[i]=f(i)),v.useEffect(()=>{if(i!==!1){const m=gU(i),g=ui(s.current),y=()=>{a.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",y),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",y)}}},[d,i]),r!==!1&&(p[r]=f(r)),v.useEffect(()=>{if(r!==!1){const m=gU(r),g=ui(s.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,r]),v.cloneElement(t,p)}const ed=hwe({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>nt({props:e,name:"MuiContainer"})});function XOe(e){const t=ui(e);return t.body===e?rs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ww(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yU(e){return parseInt(rs(e).getComputedStyle(e).paddingRight,10)||0}function QOe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vU(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!QOe(a);s&&l&&ww(a,o)})}function _$(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function JOe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(XOe(r)){const a=ZX(rs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yU(r)+a}px`;const s=ui(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${yU(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ui(r).body;else{const a=r.parentElement,s=rs(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function ZOe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class eIe{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ww(t.modalRef,!1);const o=ZOe(n);vU(n,t.mount,t.modalRef,o,!0);const i=_$(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=_$(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=JOe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=_$(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ww(t.modalRef,n),vU(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&ww(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const tIe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nIe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function rIe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function oIe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rIe(e))}function iIe(e){const t=[],n=[];return Array.from(e.querySelectorAll(tIe)).forEach((r,o)=>{const i=nIe(r);i===-1||!oIe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function aIe(){return!0}function cj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=iIe,isEnabled:a=aIe,open:s}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),p=v.useRef(!1),m=v.useRef(null),g=Cr(Hf(t),m),y=v.useRef(null);v.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!m.current)return;const S=ui(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),v.useEffect(()=>{if(!s||!m.current)return;const S=ui(m.current),P=O=>{y.current=O,!(r||!a()||O.key!=="Tab")&&S.activeElement===m.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{var M,I;const O=m.current;if(O===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(O.contains(S.activeElement)||r&&S.activeElement!==c.current&&S.activeElement!==u.current)return;if(S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((S.activeElement===c.current||S.activeElement===u.current)&&(k=i(m.current)),k.length>0){const R=!!((M=y.current)!=null&&M.shiftKey&&((I=y.current)==null?void 0:I.key)==="Tab"),_=k[0],L=k[k.length-1];typeof _!="string"&&typeof L!="string"&&(R?L.focus():_.focus())}else O.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",P,!0);const T=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),S.removeEventListener("focusin",E),S.removeEventListener("keydown",P,!0)}},[n,r,o,a,s,i]);const b=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0,f.current=S.target;const P=t.props.onFocus;P&&P(S)},x=S=>{d.current===null&&(d.current=S.relatedTarget),p.current=!0};return $.jsxs(v.Fragment,{children:[$.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:g,onFocus:b}),$.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelEnd"})]})}function sIe(e){return typeof e=="function"?e():e}function lIe(e){return e?e.props.hasOwnProperty("in"):!1}const bU=()=>{},HC=new eIe;function cIe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),f=v.useRef(null),p=v.useRef(null),m=Cr(p,u),[g,y]=v.useState(!c),b=lIe(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>ui(f.current),P=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),E=()=>{HC.mount(P(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},T=Ko(()=>{const N=sIe(t)||S().body;HC.add(P(),N),p.current&&E()}),O=()=>HC.isTopModal(P()),k=Ko(N=>{f.current=N,N&&(c&&O()?E():p.current&&ww(p.current,x))}),M=v.useCallback(()=>{HC.remove(P(),x)},[x]);v.useEffect(()=>()=>{M()},[M]),v.useEffect(()=>{c?T():(!b||!o)&&M()},[c,M,b,o,T]);const I=N=>F=>{var U;(U=N.onKeyDown)==null||U.call(N,F),!(F.key!=="Escape"||F.which===229||!O())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},R=N=>F=>{var U;(U=N.onClick)==null||U.call(N,F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:(N={})=>{const F=wE(e);delete F.onTransitionEnter,delete F.onTransitionExited;const U={...F,...N};return{role:"presentation",...U,onKeyDown:I(U),ref:m}},getBackdropProps:(N={})=>{const F=N;return{"aria-hidden":!0,...F,onClick:R(F),open:c}},getTransitionProps:()=>{const N=()=>{y(!1),i&&i()},F=()=>{y(!0),a&&a(),o&&M()};return{onEnter:D4(N,(s==null?void 0:s.props.onEnter)??bU),onExited:D4(F,(s==null?void 0:s.props.onExited)??bU)}},rootRef:m,portalRef:k,isTopModal:O,exited:g,hasTransition:b}}function uIe(e){return Ze("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const dIe=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uIe,r)},fIe=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),pIe=ie(wZ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uv=v.forwardRef(function(t,n){const r=nt({name:"MuiModal",props:t}),{BackdropComponent:o=pIe,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:x=!1,disableScrollLock:S=!1,hideBackdrop:P=!1,keepMounted:E=!1,onBackdropClick:T,onClose:O,onTransitionEnter:k,onTransitionExited:M,open:I,slotProps:R={},slots:_={},theme:L,...j}=r,N={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:x,disableScrollLock:S,hideBackdrop:P,keepMounted:E},{getRootProps:F,getBackdropProps:U,getTransitionProps:z,portalRef:V,isTopModal:W,exited:G,hasTransition:J}=cIe({...N,rootRef:n}),K={...N,exited:G},ne=dIe(K),re={};if(c.props.tabIndex===void 0&&(re.tabIndex="-1"),J){const{onEnter:Q,onExited:ue}=z();re.onEnter=Q,re.onExited=ue}const oe={...j,slots:{root:f.Root,backdrop:f.Backdrop,..._},slotProps:{...p,...R}},[fe,se]=dn("root",{elementType:fIe,externalForwardedProps:oe,getSlotProps:F,additionalProps:{ref:n,as:d},ownerState:K,className:pe(s,ne==null?void 0:ne.root,!K.open&&K.exited&&(ne==null?void 0:ne.hidden))}),[ee,ce]=dn("backdrop",{elementType:o,externalForwardedProps:oe,additionalProps:i,getSlotProps:Q=>U({...Q,onClick:ue=>{T&&T(ue),Q!=null&&Q.onClick&&Q.onClick(ue)}}),className:pe(i==null?void 0:i.className,ne==null?void 0:ne.backdrop),ownerState:K}),le=Cr(i==null?void 0:i.ref,ce.ref);return!E&&!I&&(!J||G)?null:$.jsx(vZ,{ref:V,container:u,disablePortal:b,children:$.jsxs(fe,{...se,children:[!P&&o?$.jsx(ee,{...ce,ref:le}):null,$.jsx(cj,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:x,isEnabled:W,open:I,children:v.cloneElement(c,re)})]})})});function hIe(e){return Ze("MuiDialog",e)}const xw=tt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),TZ=v.createContext({}),mIe=ie(wZ,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gIe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ce(n)}`],paper:["paper",`paperScroll${Ce(n)}`,`paperWidth${Ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return et(a,hIe,t)},yIe=ie(Uv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vIe=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),bIe=ie(fo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ce(n.scroll)}`],t[`paperWidth${Ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Qe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${xw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),OZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialog"}),o=Lo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:b,onClick:x,onClose:S,open:P,PaperComponent:E=fo,PaperProps:T={},scroll:O="paper",TransitionComponent:k=Hv,transitionDuration:M=i,TransitionProps:I,...R}=r,_={...r,disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:y,scroll:O},L=gIe(_),j=v.useRef(),N=V=>{j.current=V.target===V.currentTarget},F=V=>{x&&x(V),j.current&&(j.current=null,b&&b(V),S&&S(V,"backdropClick"))},U=Ph(s),z=v.useMemo(()=>({titleId:U}),[U]);return $.jsx(yIe,{className:pe(L.root,f),closeAfterTransition:!0,components:{Backdrop:mIe},componentsProps:{backdrop:{transitionDuration:M,as:c,...u}},disableEscapeKeyDown:p,onClose:S,open:P,ref:n,onClick:F,ownerState:_,...R,children:$.jsx(k,{appear:!0,in:P,timeout:M,role:"presentation",...I,children:$.jsx(vIe,{className:pe(L.container),onMouseDown:N,ownerState:_,children:$.jsx(bIe,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":U,"aria-modal":l,...T,className:pe(L.paper,T.className),ownerState:_,children:$.jsx(TZ.Provider,{value:z,children:d})})})})})});function wIe(e){return Ze("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const xIe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},wIe,t)},SIe=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),IZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=xIe(s);return $.jsx(SIe,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function CIe(e){return Ze("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function PIe(e){return Ze("MuiDialogTitle",e)}const EIe=tt("MuiDialogTitle",["root"]),TIe=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},CIe,t)},OIe=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Qe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${EIe.root} + &`]:{paddingTop:0}}}]}))),kZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=TIe(s);return $.jsx(OIe,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),IIe=e=>{const{classes:t}=e;return et({root:["root"]},PIe,t)},kIe=ie(ut,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),MIe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=IIe(s),{titleId:c=i}=v.useContext(TZ);return $.jsx(kIe,{component:"h2",className:pe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})});function AIe(e){return Ze("MuiDivider",e)}const wU=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$Ie=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return et({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},AIe,r)},RIe=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Qe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:vt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),DIe=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),as=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth",...m}=r,g={...r,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:f,variant:p},y=$Ie(g);return $.jsx(RIe,{as:l,className:pe(y.root,a),role:d,ref:n,ownerState:g,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...m,children:i?$.jsx(DIe,{className:y.wrapper,ownerState:g,children:i}):null})});as&&(as.muiSkipListHighlight=!0);function _Ie(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=rs(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function LIe(e){return typeof e=="function"?e():e}function UC(e,t,n){const r=LIe(n),o=_Ie(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const NIe=v.forwardRef(function(t,n){const r=Lo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:y,onExited:b,onExiting:x,style:S,timeout:P=i,TransitionComponent:E=fs,...T}=t,O=v.useRef(null),k=Cr(Hf(l),O,n),M=z=>V=>{z&&(V===void 0?z(O.current):z(O.current,V))},I=M((z,V)=>{UC(u,z,c),QF(z),p&&p(z,V)}),R=M((z,V)=>{const W=Rf({timeout:P,style:S,easing:d},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",{...W}),z.style.transition=r.transitions.create("transform",{...W}),z.style.webkitTransform="none",z.style.transform="none",g&&g(z,V)}),_=M(m),L=M(x),j=M(z=>{const V=Rf({timeout:P,style:S,easing:d},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",V),z.style.transition=r.transitions.create("transform",V),UC(u,z,c),y&&y(z)}),N=M(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),F=z=>{a&&a(O.current,z)},U=v.useCallback(()=>{O.current&&UC(u,O.current,c)},[u,c]);return v.useEffect(()=>{if(f||u==="down"||u==="right")return;const z=TS(()=>{O.current&&UC(u,O.current,c)}),V=rs(O.current);return V.addEventListener("resize",z),()=>{z.clear(),V.removeEventListener("resize",z)}},[u,f,c]),v.useEffect(()=>{f||U()},[f,U]),$.jsx(E,{nodeRef:O,onEnter:I,onEntered:_,onEntering:R,onExit:j,onExited:N,onExiting:L,addEndListener:F,appear:s,in:f,timeout:P,...T,children:(z,{ownerState:V,...W})=>v.cloneElement(l,{ref:k,style:{visibility:z==="exited"&&!f?"hidden":void 0,...S,...l.props.style},...W})})});function FIe(e){return Ze("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const MZ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},jIe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ce(n)}`,r!=="temporary"&&`paperAnchorDocked${Ce(n)}`]};return et(o,FIe,t)},BIe=ie(Uv,{name:"MuiDrawer",slot:"Root",overridesResolver:MZ})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),xU=ie("div",{shouldForwardProp:pi,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:MZ})({flex:"0 0 auto"}),zIe=ie(fo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Ce(n.anchor)}`]]}})(Qe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),AZ={left:"right",right:"left",top:"down",bottom:"up"};function VIe(e){return["left","right"].includes(e)}function HIe({direction:e},t){return e==="rtl"&&VIe(t)?AZ[t]:t}const UIe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),o=Lo(),i=ud(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p,...m}={},onClose:g,open:y=!1,PaperProps:b={},SlideProps:x,TransitionComponent:S=NIe,transitionDuration:P=a,variant:E="temporary",...T}=r,O=v.useRef(!1);v.useEffect(()=>{O.current=!0},[]);const k=HIe({direction:i?"rtl":"ltr"},s),I={...r,anchor:s,elevation:d,open:y,variant:E,...T},R=jIe(I),_=$.jsx(zIe,{elevation:E==="temporary"?d:0,square:!0,...b,className:pe(R.paper,b.className),ownerState:I,children:c});if(E==="permanent")return $.jsx(xU,{className:pe(R.root,R.docked,u),ownerState:I,ref:n,...T,children:_});const L=$.jsx(S,{in:y,direction:AZ[k],timeout:P,appear:O.current,...x,children:_});return E==="persistent"?$.jsx(xU,{className:pe(R.root,R.docked,u),ownerState:I,ref:n,...T,children:L}):$.jsx(BIe,{BackdropProps:{...l,...p,transitionDuration:P},className:pe(R.root,R.modal,u),open:y,ownerState:I,onClose:g,hideBackdrop:f,ref:n,...T,...m,children:L})});function WIe(e){return Ze("MuiFab",e)}const SU=tt("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),GIe=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Ce(o)}`,t==="inherit"?"colorInherit":t]},a=et(i,WIe,r);return{...r,...a}},qIe=ie(Xi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>pi(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ce(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Ce(n.size)],t[n.color]]}})(Qe(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${SU.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),Qe(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Vn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Qe(({theme:e})=>({[`&.${SU.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Qh=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFab"}),{children:o,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:f="circular",...p}=r,m={...r,color:a,component:s,disabled:l,disableFocusRipple:c,size:d,variant:f},g=GIe(m);return $.jsx(qIe,{className:pe(g.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:pe(g.focusVisible,u),ownerState:m,ref:n,...p,classes:g,children:o})}),KIe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=et(l,lTe,t);return{...t,...c}},YIe=ie($I,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...MI(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ua.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ua.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ua.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ua.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ua.disabled}, .${Ua.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ua.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Vn()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),XIe=ie(RI,{name:"MuiFilledInput",slot:"Input",overridesResolver:AI})(Qe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),uj=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...m}=r,g={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:p},y=KIe(r),b={root:{ownerState:g},input:{ownerState:g}},x=d??a?Xo(b,d??a):b,S=f.root??i.Root??YIe,P=f.input??i.Input??XIe;return $.jsx(Vv,{slots:{root:S,input:P},slotProps:x,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:p,...m,classes:y})});uj.muiName="Input";function QIe(e){return Ze("MuiFormControl",e)}tt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const JIe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ce(n)}`,r&&"fullWidth"]};return et(o,QIe,t)},ZIe=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Wv=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:y="outlined",...b}=r,x={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:g,variant:y},S=JIe(x),[P,E]=v.useState(()=>{let L=!1;return o&&v.Children.forEach(o,j=>{if(!Xg(j,["Input","Select"]))return;const N=Xg(j,["Select"])?j.props.input:j;N&&rTe(N.props)&&(L=!0)}),L}),[T,O]=v.useState(()=>{let L=!1;return o&&v.Children.forEach(o,j=>{Xg(j,["Input","Select"])&&(QE(j.props,!0)||QE(j.props.inputProps,!0))&&(L=!0)}),L}),[k,M]=v.useState(!1);l&&k&&M(!1);const I=u!==void 0&&!l?u:k;let R;v.useRef(!1);const _=v.useMemo(()=>({adornedStart:P,setAdornedStart:E,color:a,disabled:l,error:c,filled:T,focused:I,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{M(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{M(!0)},registerEffect:R,required:m,variant:y}),[P,a,l,c,T,I,d,f,R,m,g,y]);return $.jsx(kI.Provider,{value:_,children:$.jsx(ZIe,{as:s,ownerState:x,className:pe(S.root,i),ref:n,...b,children:o})})});function eke(e){return Ze("MuiFormControlLabel",e)}const X0=tt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tke=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return et(a,eke,t)},nke=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${X0.label}`]:t.label},t.root,t[`labelPlacement${Ce(n.labelPlacement)}`]]}})(Qe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${X0.disabled}`]:{cursor:"default"},[`& .${X0.label}`]:{[`&.${X0.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),rke=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${X0.error}`]:{color:(e.vars||e).palette.error.main}}))),$h=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:p,onChange:m,required:g,slots:y={},slotProps:b={},value:x,...S}=r,P=Ea(),E=l??s.props.disabled??(P==null?void 0:P.disabled),T=g??s.props.required,O={disabled:E,required:T};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof s.props[N]>"u"&&typeof r[N]<"u"&&(O[N]=r[N])});const k=Yf({props:r,muiFormControl:P,states:["error"]}),M={...r,disabled:E,labelPlacement:f,required:T,error:k.error},I=tke(M),R={slots:y,slotProps:{...a,...b}},[_,L]=dn("typography",{elementType:ut,externalForwardedProps:R,ownerState:M});let j=d;return j!=null&&j.type!==ut&&!c&&(j=$.jsx(_,{component:"span",...L,className:pe(I.label,L==null?void 0:L.className),children:j})),$.jsxs(nke,{className:pe(I.root,i),ownerState:M,ref:n,...S,children:[v.cloneElement(s,O),T?$.jsxs("div",{children:[j,$.jsxs(rke,{ownerState:M,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):j]})});function oke(e){return Ze("MuiFormGroup",e)}tt("MuiFormGroup",["root","row","error"]);const ike=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},oke,t)},ake=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),px=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,s=Ea(),l=Yf({props:r,muiFormControl:s,states:["error"]}),c={...r,row:i,error:l.error},u=ike(c);return $.jsx(ake,{className:pe(u.root,o),ownerState:c,ref:n,...a})});function ske(e){return Ze("MuiFormHelperText",e)}const CU=tt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var PU;const lke=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return et(c,ske,t)},cke=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${CU.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${CU.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),_S=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:p,...m}=r,g=Ea(),y=Yf({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete b.ownerState;const x=lke(b);return $.jsx(cke,{as:a,className:pe(x.root,i),ref:n,...m,ownerState:b,children:o===" "?PU||(PU=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function uke(e){return Ze("MuiFormLabel",e)}const Sw=tt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dke=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return et(l,uke,t)},fke=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{[`&.${Sw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Sw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),pke=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${Sw.error}`]:{color:(e.vars||e).palette.error.main}}))),hke=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...p}=r,m=Ea(),g=Yf({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:g.color||"primary",component:s,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},b=dke(y);return $.jsxs(fke,{as:s,ownerState:y,className:pe(b.root,i),ref:n,...p,children:[o,g.required&&$.jsxs(pke,{ownerState:y,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})}),_e=kwe({createStyledComponent:ie("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>nt({props:e,name:"MuiGrid2"}),useTheme:Lo});function AD(e){return`scale(${e}, ${e**2})`}const mke={entering:{opacity:1,transform:AD(1)},entered:{opacity:1,transform:"none"}},L$=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rh=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:y=fs,...b}=t,x=sf(),S=v.useRef(),P=Lo(),E=v.useRef(null),T=Cr(E,Hf(i),n),O=N=>F=>{if(N){const U=E.current;F===void 0?N(U):N(U,F)}},k=O(u),M=O((N,F)=>{QF(N);const{duration:U,delay:z,easing:V}=Rf({style:m,timeout:g,easing:a},{mode:"enter"});let W;g==="auto"?(W=P.transitions.getAutoHeightDuration(N.clientHeight),S.current=W):W=U,N.style.transition=[P.transitions.create("opacity",{duration:W,delay:z}),P.transitions.create("transform",{duration:L$?W:W*.666,delay:z,easing:V})].join(","),l&&l(N,F)}),I=O(c),R=O(p),_=O(N=>{const{duration:F,delay:U,easing:z}=Rf({style:m,timeout:g,easing:a},{mode:"exit"});let V;g==="auto"?(V=P.transitions.getAutoHeightDuration(N.clientHeight),S.current=V):V=F,N.style.transition=[P.transitions.create("opacity",{duration:V,delay:U}),P.transitions.create("transform",{duration:L$?V:V*.666,delay:L$?U:U||V*.333,easing:z})].join(","),N.style.opacity=0,N.style.transform=AD(.75),d&&d(N)}),L=O(f),j=N=>{g==="auto"&&x.start(S.current||0,N),r&&r(E.current,N)};return $.jsx(y,{appear:o,in:s,nodeRef:E,onEnter:M,onEntered:I,onEntering:k,onExit:_,onExited:L,onExiting:R,addEndListener:j,timeout:g==="auto"?null:g,...b,children:(N,{ownerState:F,...U})=>v.cloneElement(i,{style:{opacity:0,transform:AD(.75),visibility:N==="exited"&&!s?"hidden":void 0,...mke[N],...m,...i.props.style},ref:T,...U})})});Rh&&(Rh.muiSupportAuto=!0);const Df=B0e({themeId:Js});function gke(e){return Ze("MuiImageList",e)}tt("MuiImageList",["root","masonry","quilted","standard","woven"]);const $Z=v.createContext({}),yke=e=>{const{classes:t,variant:n}=e;return et({root:["root",n]},gke,t)},vke=ie("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),RZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiImageList"}),{children:o,className:i,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:u,variant:d="standard",...f}=r,p=v.useMemo(()=>({rowHeight:l,gap:c,variant:d}),[l,c,d]),m=d==="masonry"?{columnCount:a,columnGap:c,...u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c,...u},g={...r,component:s,gap:c,rowHeight:l,variant:d},y=yke(g);return $.jsx(vke,{as:s,className:pe(y.root,y[d],i),ref:n,style:m,ownerState:g,...f,children:$.jsx($Z.Provider,{value:p,children:o})})});function bke(e){return Ze("MuiImageListItem",e)}const N$=tt("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),wke=e=>{const{classes:t,variant:n}=e;return et({root:["root",n],img:["img"]},bke,t)},xke=ie("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${N$.img}`]:t.img},t.root,t[n.variant]]}})({display:"block",position:"relative",[`& .${N$.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${N$.img}`]:{height:"auto",flexGrow:1}}}]}),DZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiImageListItem"}),{children:o,className:i,cols:a=1,component:s="li",rows:l=1,style:c,...u}=r,{rowHeight:d="auto",gap:f,variant:p}=v.useContext($Z);let m="auto";p==="woven"?m=void 0:d!=="auto"&&(m=d*l+f*(l-1));const g={...r,cols:a,component:s,gap:f,rowHeight:d,rows:l,variant:p},y=wke(g);return $.jsx(xke,{as:s,className:pe(y.root,y[p],i),ref:n,style:{height:m,gridColumnEnd:p!=="masonry"?`span ${a}`:void 0,gridRowEnd:p!=="masonry"?`span ${l}`:void 0,marginBottom:p==="masonry"?f:void 0,breakInside:p==="masonry"?"avoid":void 0,...c},ownerState:g,...u,children:v.Children.map(o,b=>v.isValidElement(b)?b.type==="img"||Xg(b,["Image"])?v.cloneElement(b,{className:pe(y.img,b.props.className)}):b:null)})});function Ske(e){return Ze("MuiImageListItemBar",e)}tt("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","actionPositionLeft","actionPositionRight","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const Cke=e=>{const{classes:t,position:n,actionIcon:r,actionPosition:o}=e,i={root:["root",`position${Ce(n)}`,`actionPosition${Ce(o)}`],titleWrap:["titleWrap",`titleWrap${Ce(n)}`,r&&`titleWrapActionPos${Ce(o)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${Ce(o)}`]};return et(i,Ske,t)},Pke=ie("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ce(n.position)}`]]}})(Qe(({theme:e})=>({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily,variants:[{props:{position:"bottom"},style:{bottom:0}},{props:{position:"top"},style:{top:0}},{props:{position:"below"},style:{position:"relative",background:"transparent",alignItems:"normal"}}]}))),Eke=ie("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.titleWrap,t[`titleWrap${Ce(n.position)}`],n.actionIcon&&t[`titleWrapActionPos${Ce(n.actionPosition)}`]]}})(Qe(({theme:e})=>({flexGrow:1,padding:"12px 16px",color:(e.vars||e).palette.common.white,overflow:"hidden",variants:[{props:{position:"below"},style:{padding:"6px 0 12px",color:"inherit"}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="left",style:{paddingLeft:0}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="right",style:{paddingRight:0}}]}))),Tke=ie("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(Qe(({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Oke=ie("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(Qe(({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Ike=ie("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actionIcon,t[`actionIconActionPos${Ce(n.actionPosition)}`]]}})({variants:[{props:{actionPosition:"left"},style:{order:-1}}]}),kke=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:i="right",className:a,subtitle:s,title:l,position:c="bottom",...u}=r,d={...r,position:c,actionPosition:i},f=Cke(d);return $.jsxs(Pke,{ownerState:d,className:pe(f.root,a),ref:n,...u,children:[$.jsxs(Eke,{ownerState:d,className:f.titleWrap,children:[$.jsx(Tke,{className:f.title,children:l}),s?$.jsx(Oke,{className:f.subtitle,children:s}):null]}),o?$.jsx(Ike,{ownerState:d,className:f.actionIcon,children:o}):null]})}),Mke=e=>{const{classes:t,disableUnderline:n}=e,o=et({root:["root",!n&&"underline"],input:["input"]},aTe,t);return{...t,...o}},Ake=ie($I,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...MI(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qd.disabled}, .${qd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${qd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Vn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),$ke=ie(RI,{name:"MuiInput",slot:"Input",overridesResolver:AI})({}),dj=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...p}=r,m=Mke(r),y={root:{ownerState:{disableUnderline:o}}},b=u??a?Xo(u??a,y):y,x=d.root??i.Root??Ake,S=d.input??i.Input??$ke;return $.jsx(Vv,{slots:{root:x,input:S},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...p,classes:m})});dj.muiName="Input";function Rke(e){return Ze("MuiInputAdornment",e)}const EU=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var TU;const Dke=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},_ke=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Ce(o)}`,a,r&&"hiddenLabel",i&&`size${Ce(i)}`]};return et(s,Rke,t)},Lke=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Dke})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${EU.positionStart}&:not(.${EU.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),go=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=Ea()||{};let p=u;u&&f.variant,f&&!p&&(p=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:p},g=_ke(m);return $.jsx(kI.Provider,{value:null,children:$.jsx(Lke,{as:a,ownerState:m,className:pe(g.root,i),ref:n,...d,children:typeof o=="string"&&!l?$.jsx(ut,{color:"textSecondary",children:o}):$.jsxs(v.Fragment,{children:[c==="start"?TU||(TU=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function Nke(e){return Ze("MuiInputLabel",e)}tt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fke=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Ce(r)}`,a],asterisk:[s&&"asterisk"]},c=et(l,Nke,t);return{...t,...c}},jke=ie(hke,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sw.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Qe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Gv=v.forwardRef(function(t,n){const r=nt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=Ea();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Yf({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),p={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=Fke(p);return $.jsx(jke,{"data-shrink":d,ref:n,className:pe(m.root,l),...c,ownerState:p,classes:m})});function Bke(e){return Ze("MuiLinearProgress",e)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const $D=4,RD=Xc`
0% {
left: -35%;
right: 100%;
@@ -201,9 +201,9 @@ Error generating stack: `+i.message+`
left: 100%;
right: -90%;
}
-`,AIe=typeof Q2!="string"?Ef`
- animation: ${Q2} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
- `:null,J2=jc`
+`,zke=typeof RD!="string"?zf`
+ animation: ${RD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
+ `:null,DD=Xc`
0% {
left: -200%;
right: 100%;
@@ -218,9 +218,9 @@ Error generating stack: `+i.message+`
left: 107%;
right: -8%;
}
-`,$Ie=typeof J2!="string"?Ef`
- animation: ${J2} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
- `:null,Z2=jc`
+`,Vke=typeof DD!="string"?zf`
+ animation: ${DD} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
+ `:null,_D=Xc`
0% {
opacity: 1;
background-position: 0 -23px;
@@ -235,9 +235,9 @@ Error generating stack: `+i.message+`
opacity: 1;
background-position: -200px -23px;
}
-`,RIe=typeof Z2!="string"?Ef`
- animation: ${Z2} 3s infinite linear;
- `:null,DIe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Se(r)}`,n],dashed:["dashed",`dashedColor${Se(r)}`],bar1:["bar",`barColor${Se(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Se(r)}`,n==="buffer"&&`color${Se(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Te(o,MIe,t)},IF=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Du(e.palette[t].main,.62):Ru(e.palette[t].main,.5),_Ie=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Se(n.color)}`],t[n.variant]]}})(tt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{backgroundColor:IF(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),LIe=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Se(n.color)}`]]}})(tt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Hn()).map(([t])=>{const n=IF(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),RIe||{animation:`${Z2} 3s infinite linear`}),NIe=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Se(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(tt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${X2}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${X2}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:AIe||{animation:`${Q2} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),FIe=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Se(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(tt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:IF(e,t),transition:`transform .${X2}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$Ie||{animation:`${J2} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),DJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},d=DIe(u),f=nr(),p={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=a-100;f&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(l==="buffer"&&s!==void 0){let g=(s||0)-100;f&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return $.jsxs(_Ie,{className:pe(d.root,o),ownerState:u,role:"progressbar",...p,ref:n,...c,children:[l==="buffer"?$.jsx(LIe,{className:d.dashed,ownerState:u}):null,$.jsx(NIe,{className:d.bar1,ownerState:u,style:m.bar1}),l==="determinate"?null:$.jsx(FIe,{className:d.bar2,ownerState:u,style:m.bar2})]})}),qs=v.createContext({});function jIe(e){return _e("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const BIe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jIe,t)},zIe=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ol=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},p=BIe(f);return $.jsx(qs.Provider,{value:d,children:$.jsxs(zIe,{as:a,className:pe(p.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function VIe(e){return _e("MuiListItem",e)}Le("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function HIe(e){return _e("MuiListItemButton",e)}const Qm=Le("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),UIe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},WIe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,c=Te({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},HIe,n);return{...n,...c}},GIe=ie(Hi,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:UIe})(tt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Df=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:p,...m}=r,g=v.useContext(qs),y=v.useMemo(()=>({dense:l||g.dense||!1,alignItems:o,disableGutters:c}),[o,g.dense,l,c]),b=v.useRef(null);xn(()=>{i&&b.current&&b.current.focus()},[i]);const x={...r,alignItems:o,dense:y.dense,disableGutters:c,divider:u,selected:f},S=WIe(x),P=Wt(b,n);return $.jsx(qs.Provider,{value:y,children:$.jsx(GIe,{ref:P,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:pe(S.focusVisible,d),ownerState:x,className:pe(S.root,p),...m,classes:S,children:s})})});function qIe(e){return _e("MuiListItemSecondaryAction",e)}Le("MuiListItemSecondaryAction",["root","disableGutters"]);const KIe=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},qIe,n)},YIe=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_J=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(qs),s={...r,disableGutters:a.disableGutters},l=KIe(s);return $.jsx(YIe,{className:pe(l.root,o),ownerState:s,ref:n,...i})});_J.muiName="ListItemSecondaryAction";const XIe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},QIe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Te({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},VIe,n)},JIe=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:XIe})(tt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Qm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),ZIe=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ja=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:p=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:b,slotProps:x={},slots:S={},...P}=r,E=v.useContext(qs),T=v.useMemo(()=>({dense:p||E.dense||!1,alignItems:o,disableGutters:m}),[o,E.dense,p,m]),O=v.useRef(null),k=v.Children.toArray(i),M=k.length&&$g(k[k.length-1],["ListItemSecondaryAction"]),I={...r,alignItems:o,dense:T.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:M},R=QIe(I),_=Wt(O,n),N=S.root||l.Root||JIe,B=x.root||c.root||{},L={className:pe(R.root,B.className,a),...P};let F=s||"li";return M?(F=!L.component&&!s?"div":F,u==="li"&&(F==="li"?F="div":L.component==="li"&&(L.component="div")),$.jsx(qs.Provider,{value:T,children:$.jsxs(ZIe,{as:u,className:pe(R.container,d),ref:_,ownerState:I,...f,children:[$.jsx(N,{...B,...!Vw(N)&&{as:F,ownerState:{...I,...B.ownerState}},...L,children:k}),k.pop()]})})):$.jsx(qs.Provider,{value:T,children:$.jsxs(N,{...B,as:F,ref:_,...!Vw(N)&&{ownerState:{...I,...B.ownerState}},...L,children:[k,b&&$.jsx(_J,{children:b})]})})});function eke(e){return _e("MuiListItemAvatar",e)}Le("MuiListItemAvatar",["root","alignItemsFlexStart"]);const tke=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},eke,n)},nke=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),kF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemAvatar"}),{className:o,...i}=r,a=v.useContext(qs),s={...r,alignItems:a.alignItems},l=tke(s);return $.jsx(nke,{className:pe(l.root,o),ownerState:s,ref:n,...i})});function rke(e){return _e("MuiListItemIcon",e)}const j3=Le("MuiListItemIcon",["root","alignItemsFlexStart"]),oke=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},rke,n)},ike=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(tt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),zi=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(qs),s={...r,alignItems:a.alignItems},l=oke(s);return $.jsx(ike,{className:pe(l.root,o),ownerState:s,ref:n,...i})});function ake(e){return _e("MuiListItemText",e)}const yg=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ske=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Te({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},ake,t)},lke=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yg.primary}`]:t.primary},{[`& .${yg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${SE.root}:where(& .${yg.primary})`]:{display:"block"},[`.${SE.root}:where(& .${yg.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),go=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:f={},slotProps:p={},...m}=r,{dense:g}=v.useContext(qs);let y=l??o,b=u;const x={...r,disableTypography:a,inset:s,primary:!!y,secondary:!!b,dense:g},S=ske(x),P={slots:f,slotProps:{primary:c,secondary:d,...p}},[E,T]=dn("primary",{className:S.primary,elementType:ut,externalForwardedProps:P,ownerState:x}),[O,k]=dn("secondary",{className:S.secondary,elementType:ut,externalForwardedProps:P,ownerState:x});return y!=null&&y.type!==ut&&!a&&(y=$.jsx(E,{variant:g?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:y})),b!=null&&b.type!==ut&&!a&&(b=$.jsx(O,{variant:"body2",color:"textSecondary",...k,children:b})),$.jsxs(lke,{className:pe(S.root,i),ownerState:x,ref:n,...m,children:[y,b]})});function n$(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function B3(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function LJ(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Vb(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!LJ(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Ev=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,p=v.useRef(null),m=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xn(()=>{o&&p.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const E=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&E){const T=`${EY(ba(S))}px`;p.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=T,p.current.style.width=`calc(100% + ${T})`}return p.current}}),[]);const g=S=>{const P=p.current,E=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=mr(P).activeElement;if(E==="ArrowDown")S.preventDefault(),Vb(P,O,c,l,n$);else if(E==="ArrowUp")S.preventDefault(),Vb(P,O,c,l,B3);else if(E==="Home")S.preventDefault(),Vb(P,null,c,l,n$);else if(E==="End")S.preventDefault(),Vb(P,null,c,l,B3);else if(E.length===1){const k=m.current,M=E.toLowerCase(),I=performance.now();k.keys.length>0&&(I-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=I,k.keys.push(M);const R=O&&!k.repeating&&LJ(O,k);k.previousKeyMatched&&(R||Vb(P,O,!1,l,n$,k))?S.preventDefault():k.previousKeyMatched=!1}u&&u(S)},y=Wt(p,n);let b=-1;v.Children.forEach(a,(S,P)=>{if(!v.isValidElement(S)){b===P&&(b+=1,b>=a.length&&(b=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||b===-1)&&(b=P),b===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const x=v.Children.map(a,(S,P)=>{if(P===b){const E={};return i&&(E.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),v.cloneElement(S,E)}return S});return $.jsx(ol,{role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:o?0:-1,...f,children:x})});function cke(e){return _e("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function z3(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function V3(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function H3(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function r$(e){return typeof e=="function"?e():e}const uke=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},cke,t)},dke=ie(Sv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NJ=ie(so,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fke=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:p=16,open:m,PaperProps:g={},slots:y={},slotProps:b={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=gh,transitionDuration:P="auto",TransitionProps:{onEntering:E,...T}={},disableScrollLock:O=!1,...k}=r,M=(b==null?void 0:b.paper)??g,I=v.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:S,transitionDuration:P,TransitionProps:T},_=uke(R),N=v.useCallback(()=>{if(l==="anchorPosition")return s;const ce=r$(i),Q=(ce&&ce.nodeType===1?ce:mr(I.current).body).getBoundingClientRect();return{top:Q.top+z3(Q,a.vertical),left:Q.left+V3(Q,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),B=v.useCallback(ce=>({vertical:z3(ce,x.vertical),horizontal:V3(ce,x.horizontal)}),[x.horizontal,x.vertical]),L=v.useCallback(ce=>{const le={width:ce.offsetWidth,height:ce.offsetHeight},Q=B(le);if(l==="none")return{top:null,left:null,transformOrigin:H3(Q)};const ue=N();let ge=ue.top-Q.vertical,xe=ue.left-Q.horizontal;const me=ge+le.height,be=xe+le.width,we=ba(r$(i)),Oe=we.innerHeight-p,ke=we.innerWidth-p;if(p!==null&&ge<p){const je=ge-p;ge-=je,Q.vertical+=je}else if(p!==null&&me>Oe){const je=me-Oe;ge-=je,Q.vertical+=je}if(p!==null&&xe<p){const je=xe-p;xe-=je,Q.horizontal+=je}else if(be>ke){const je=be-ke;xe-=je,Q.horizontal+=je}return{top:`${Math.round(ge)}px`,left:`${Math.round(xe)}px`,transformOrigin:H3(Q)}},[i,l,N,B,p]),[F,U]=v.useState(m),V=v.useCallback(()=>{const ce=I.current;if(!ce)return;const le=L(ce);le.top!==null&&ce.style.setProperty("top",le.top),le.left!==null&&(ce.style.left=le.left),ce.style.transformOrigin=le.transformOrigin,U(!0)},[L]);v.useEffect(()=>(O&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[i,O,V]);const z=(ce,le)=>{E&&E(ce,le),V()},W=()=>{U(!1)};v.useEffect(()=>{m&&V()}),v.useImperativeHandle(o,()=>m?{updatePosition:()=>{V()}}:null,[m,V]),v.useEffect(()=>{if(!m)return;const ce=nS(()=>{V()}),le=ba(i);return le.addEventListener("resize",ce),()=>{ce.clear(),le.removeEventListener("resize",ce)}},[i,m,V]);let G=P;P==="auto"&&!S.muiSupportAuto&&(G=void 0);const J=d||(i?mr(r$(i)).body:void 0),K={slots:y,slotProps:{...b,paper:M}},[ne,re]=dn("paper",{elementType:NJ,externalForwardedProps:K,additionalProps:{elevation:f,className:pe(_.paper,M==null?void 0:M.className),style:F?M.style:{...M.style,opacity:0}},ownerState:R}),[oe,{slotProps:fe,...se}]=dn("root",{elementType:dke,externalForwardedProps:K,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:J,open:m},ownerState:R,className:pe(_.root,u)}),ee=Wt(I,re.ref);return $.jsx(oe,{...se,...!Vw(oe)&&{slotProps:fe,disableScrollLock:O},...k,ref:n,children:$.jsx(S,{appear:!0,in:m,onEntering:z,onExited:W,timeout:G,...T,children:$.jsx(ne,{...re,ref:ee,children:c})})})});function pke(e){return _e("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const hke={vertical:"top",horizontal:"right"},mke={vertical:"top",horizontal:"left"},gke=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},pke,t)},yke=ie(fke,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vke=ie(NJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bke=ie(Ev,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),is=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:b={},slotProps:x={},...S}=r,P=nr(),E={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:p,TransitionProps:g,variant:y},T=gke(E),O=o&&!s&&u,k=v.useRef(null),M=(F,U)=>{k.current&&k.current.adjustStyleForScrollbar(F,{direction:P?"rtl":"ltr"}),m&&m(F,U)},I=F=>{F.key==="Tab"&&(F.preventDefault(),c&&c(F,"tabKeyDown"))};let R=-1;v.Children.map(i,(F,U)=>{v.isValidElement(F)&&(F.props.disabled||(y==="selectedMenu"&&F.props.selected||R===-1)&&(R=U))});const _=b.paper??vke,N=x.paper??d,B=on({elementType:b.root,externalSlotProps:x.root,ownerState:E,className:[T.root,a]}),L=on({elementType:_,externalSlotProps:N,ownerState:E,className:T.paper});return $.jsx(yke,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?hke:mke,slots:{paper:_,root:b.root},slotProps:{root:B,paper:L},open:u,ref:n,transitionDuration:p,TransitionProps:{onEntering:M,...g},ownerState:E,...S,classes:f,children:$.jsx(bke,{onKeyDown:I,actions:k,autoFocus:o&&(R===-1||s),autoFocusItem:O,variant:y,...l,className:pe(T.list,l.className),children:i})})});function wke(e){return _e("MuiMenuItem",e)}const Hb=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Ske=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Te({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},wke,a);return{...a,...l}},Cke=ie(Hi,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xke})(tt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$3.inset}`]:{marginLeft:52},[`& .${yg.root}`]:{marginTop:0,marginBottom:0},[`& .${yg.inset}`]:{paddingLeft:36},[`& .${j3.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${j3.root} svg`]:{fontSize:"1.25rem"}}}]}))),tn=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...p}=r,m=v.useContext(qs),g=v.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),y=v.useRef(null);xn(()=>{o&&y.current&&y.current.focus()},[o]);const b={...r,dense:g.dense,divider:s,disableGutters:l},x=Ske(r),S=Wt(y,n);let P;return r.disabled||(P=d!==void 0?d:-1),$.jsx(qs.Provider,{value:g,children:$.jsx(Cke,{ref:S,role:u,tabIndex:P,component:i,focusVisibleClassName:pe(x.focusVisible,c),className:pe(x.root,f),...p,ownerState:b,classes:x})})});function Pke(e){return _e("MuiNativeSelect",e)}const MF=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eke=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Se(n)}`,i&&"iconOpen",r&&"disabled"]};return Te(s,Pke,t)},FJ=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${MF.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Tke=ie(FJ,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ii,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${MF.multiple}`]:t.multiple}]}})({}),jJ=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${MF.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Oke=ie(jJ,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),Ike=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=Eke(u);return $.jsxs(v.Fragment,{children:[$.jsx(Tke,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:$.jsx(Oke,{as:a,ownerState:u,className:d.icon})]})});var U3;const kke=ie("fieldset",{shouldForwardProp:ii})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Mke=ie("legend",{shouldForwardProp:ii})(tt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ake(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return $.jsx(kke,{"aria-hidden":!0,className:r,ownerState:l,...a,children:$.jsx(Mke,{ownerState:l,children:s?$.jsx("span",{children:o}):U3||(U3=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const $ke=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},QPe,t);return{...t,...r}},Rke=ie(iI,{shouldForwardProp:e=>ii(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rI})(tt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ps.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ps.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ps.focused} .${Ps.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{[`&.${Ps.focused} .${Ps.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ps.error} .${Ps.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ps.disabled} .${Ps.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Dke=ie(Ake,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(tt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),_ke=ie(aI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:oI})(tt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),AF=v.forwardRef(function(t,n){var r;const o=rt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...p}=o,m=$ke(o),g=wa(),y=Rf({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:a,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:f},x=d.root??i.Root??Rke,S=d.input??i.Input??_ke;return $.jsx(wv,{slots:{root:x,input:S},renderSuffix:P=>$.jsx(Dke,{ownerState:b,className:m.notchedOutline,label:l!=null&&l!==""&&y.required?r||(r=$.jsxs(v.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...p,classes:{...m,notchedOutline:null}})});AF.muiName="Input";function Lke(e){return _e("MuiPagination",e)}Le("MuiPagination",["root","ul","outlined","text"]);function Nke(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[m,g]=bi({controlled:c,default:o,name:n,state:"page"}),y=(M,I)=>{c||g(I),l&&l(M,I)},b=(M,I)=>{const R=I-M+1;return Array.from({length:R},(_,N)=>M+N)},x=b(1,Math.min(t,r)),S=b(Math.max(r-t+1,t+1),r),P=Math.max(Math.min(m-f,r-t-f*2-1),t+2),E=Math.min(Math.max(m+f,t+f*2+2),r-t-1),T=[...u?["first"]:[],...s?[]:["previous"],...x,...P>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...b(P,E),...E<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...a?[]:["next"],...d?["last"]:[]],O=M=>{switch(M){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}};return{items:T.map(M=>typeof M=="number"?{onClick:I=>{y(I,M)},type:"page",page:M,selected:M===m,disabled:i,"aria-current":M===m?"page":void 0}:{onClick:I=>{y(I,O(M))},type:M,page:O(M),selected:!1,disabled:i||!M.includes("ellipsis")&&(M==="next"||M==="last"?m>=r:m<=1)}),...p}}function Fke(e){return _e("MuiPaginationItem",e)}const ki=Le("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),BJ=lt($.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),zJ=lt($.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),jke=lt($.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Bke=lt($.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),VJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Se(n.size)}`],n.variant==="text"&&t[`text${Se(n.color)}`],n.variant==="outlined"&&t[`outlined${Se(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},zke=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${Se(i)}`,l,a,n!=="standard"&&`color${Se(n)}`,n!=="standard"&&`${l}${Se(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Te(c,Fke,t)},Vke=ie("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:VJ})(tt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${ki.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),Hke=ie(Hi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:VJ})(tt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${ki.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ki.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ki.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ki.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${ki.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ki.selected}`]:{[`&.${ki.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${ki.selected}`]:{[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Hn(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${ki.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${ki.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Hn(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${ki.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:vt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:vt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ki.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),Uke=ie("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(tt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Wke=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:f="medium",slots:p={},slotProps:m={},type:g="page",variant:y="text",...b}=r,x={...r,color:i,disabled:l,selected:u,shape:d,size:f,type:g,variant:y},S=nr(),P=zke(x),E={slots:{previous:p.previous??s.previous,next:p.next??s.next,first:p.first??s.first,last:p.last??s.last},slotProps:m},[T,O]=dn("previous",{elementType:jke,externalForwardedProps:E,ownerState:x}),[k,M]=dn("next",{elementType:Bke,externalForwardedProps:E,ownerState:x}),[I,R]=dn("first",{elementType:BJ,externalForwardedProps:E,ownerState:x}),[_,N]=dn("last",{elementType:zJ,externalForwardedProps:E,ownerState:x}),B=S?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,L={previous:T,next:k,first:I,last:_}[B],F={previous:O,next:M,first:R,last:N}[B];return g==="start-ellipsis"||g==="end-ellipsis"?$.jsx(Vke,{ref:n,ownerState:x,className:pe(P.root,o),children:"…"}):$.jsxs(Hke,{ref:n,ownerState:x,component:a,disabled:l,className:pe(P.root,o),...b,children:[g==="page"&&c,L?$.jsx(Uke,{...F,className:P.icon,as:L}):null]})}),Gke=e=>{const{classes:t,variant:n}=e;return Te({root:["root",n],ul:["ul"]},Lke,t)},qke=ie("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Kke=ie("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Yke(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Xke=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=Yke,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:p,page:m,renderItem:g=I=>$.jsx(Wke,{...I}),shape:y="circular",showFirstButton:b=!1,showLastButton:x=!1,siblingCount:S=1,size:P="medium",variant:E="text",...T}=r,{items:O}=Nke({...r,componentName:"Pagination"}),k={...r,boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:f,renderItem:g,shape:y,showFirstButton:b,showLastButton:x,siblingCount:S,size:P,variant:E},M=Gke(k);return $.jsx(qke,{"aria-label":"pagination navigation",className:pe(M.root,i),ownerState:k,ref:n,...T,children:$.jsx(Kke,{className:M.ul,ownerState:k,children:O.map((I,R)=>$.jsx("li",{children:g({...I,color:a,"aria-label":u(I.type,I.page,I.selected),shape:y,size:P,variant:E})},R))})})});function Qke(e){return _e("MuiSelect",e)}const Ub=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var W3;const Jke=ie(FJ,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ub.select}`]:t.select},{[`&.${Ub.select}`]:t[n.variant]},{[`&.${Ub.error}`]:t.error},{[`&.${Ub.multiple}`]:t.multiple}]}})({[`&.${Ub.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Zke=ie(jJ,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),eMe=ie("input",{shouldForwardProp:e=>VY(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function G3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tMe(e){return e==null||typeof e=="string"&&!e.trim()}const nMe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Se(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(s,Qke,t)},rMe=v.forwardRef(function(t,n){var ot;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:b={},multiple:x,name:S,onBlur:P,onChange:E,onClose:T,onFocus:O,onOpen:k,open:M,readOnly:I,renderValue:R,required:_,SelectDisplayProps:N={},tabIndex:B,type:L,value:F,variant:U="standard",...V}=t,[z,W]=bi({controlled:F,default:u,name:"Select"}),[G,J]=bi({controlled:M,default:c,name:"Select"}),K=v.useRef(null),ne=v.useRef(null),[re,oe]=v.useState(null),{current:fe}=v.useRef(M!=null),[se,ee]=v.useState(),ce=Wt(n,g),le=v.useCallback(Pe=>{ne.current=Pe,Pe&&oe(Pe)},[]),Q=re==null?void 0:re.parentNode;v.useImperativeHandle(ce,()=>({focus:()=>{ne.current.focus()},node:K.current,value:z}),[z]),v.useEffect(()=>{c&&G&&re&&!fe&&(ee(a?null:Q.clientWidth),ne.current.focus())},[re,a]),v.useEffect(()=>{i&&ne.current.focus()},[i]),v.useEffect(()=>{if(!y)return;const Pe=mr(ne.current).getElementById(y);if(Pe){const We=()=>{getSelection().isCollapsed&&ne.current.focus()};return Pe.addEventListener("click",We),()=>{Pe.removeEventListener("click",We)}}},[y]);const ue=(Pe,We)=>{Pe?k&&k(We):T&&T(We),fe||(ee(a?null:Q.clientWidth),J(Pe))},ge=Pe=>{Pe.button===0&&(Pe.preventDefault(),ne.current.focus(),ue(!0,Pe))},xe=Pe=>{ue(!1,Pe)},me=v.Children.toArray(s),be=Pe=>{const We=me.find(ft=>ft.props.value===Pe.target.value);We!==void 0&&(W(We.props.value),E&&E(Pe,We))},we=Pe=>We=>{let ft;if(We.currentTarget.hasAttribute("tabindex")){if(x){ft=Array.isArray(z)?z.slice():[];const Ot=z.indexOf(Pe.props.value);Ot===-1?ft.push(Pe.props.value):ft.splice(Ot,1)}else ft=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(We),z!==ft&&(W(ft),E)){const Ot=We.nativeEvent||We,xt=new Ot.constructor(Ot.type,Ot);Object.defineProperty(xt,"target",{writable:!0,value:{value:ft,name:S}}),E(xt,Pe)}x||ue(!1,We)}},Oe=Pe=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(Pe.key)&&(Pe.preventDefault(),ue(!0,Pe))},ke=re!==null&&G,je=Pe=>{!ke&&P&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:z,name:S}}),P(Pe))};delete V["aria-invalid"];let de,Re;const Me=[];let Ae=!1;(EE({value:z})||f)&&(R?de=R(z):Ae=!0);const Ne=me.map(Pe=>{if(!v.isValidElement(Pe))return null;let We;if(x){if(!Array.isArray(z))throw new Error($u(2));We=z.some(ft=>G3(ft,Pe.props.value)),We&&Ae&&Me.push(Pe.props.children)}else We=G3(z,Pe.props.value),We&&Ae&&(Re=Pe.props.children);return v.cloneElement(Pe,{"aria-selected":We?"true":"false",onClick:we(Pe),onKeyUp:ft=>{ft.key===" "&&ft.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(ft)},role:"option",selected:We,value:void 0,"data-value":Pe.props.value})});Ae&&(x?Me.length===0?de=null:de=Me.reduce((Pe,We,ft)=>(Pe.push(We),ft<Me.length-1&&Pe.push(", "),Pe),[]):de=Re);let Je=se;!a&&fe&&re&&(Je=Q.clientWidth);let nt;typeof B<"u"?nt=B:nt=d?null:0;const st=N.id||(S?`mui-component-select-${S}`:void 0),$t={...t,variant:U,value:z,open:ke,error:p},ct=nMe($t),_t={...b.PaperProps,...(ot=b.slotProps)==null?void 0:ot.paper},pt=_n();return $.jsxs(v.Fragment,{children:[$.jsx(Jke,{as:"div",ref:le,tabIndex:nt,role:"combobox","aria-controls":pt,"aria-disabled":d?"true":void 0,"aria-expanded":ke?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,st].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:Oe,onMouseDown:d||I?null:ge,onBlur:je,onFocus:O,...N,ownerState:$t,className:pe(N.className,ct.select,l),id:st,children:tMe(de)?W3||(W3=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):de}),$.jsx(eMe,{"aria-invalid":p,value:Array.isArray(z)?z.join(","):z,name:S,ref:K,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:d,className:ct.nativeInput,autoFocus:i,required:_,...V,ownerState:$t}),$.jsx(Zke,{as:m,className:ct.icon,ownerState:$t}),$.jsx(is,{id:`menu-${S||""}`,anchorEl:Q,open:ke,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,MenuListProps:{"aria-labelledby":y,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:pt,...b.MenuListProps},slotProps:{...b.slotProps,paper:{..._t,style:{minWidth:Je,..._t!=null?_t.style:null}}},children:Ne})]})}),oMe=e=>{const{classes:t}=e;return t},$F={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ii(e)&&e!=="variant",slot:"Root"},iMe=ie(OF,$F)(""),aMe=ie(AF,$F)(""),sMe=ie(TF,$F)(""),Dh=v.forwardRef(function(t,n){const r=rt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=vJ,id:d,input:f,inputProps:p,label:m,labelId:g,MenuProps:y,multiple:b=!1,native:x=!1,onClose:S,onOpen:P,open:E,renderValue:T,SelectDisplayProps:O,variant:k="outlined",...M}=r,I=x?Ike:rMe,R=wa(),_=Rf({props:r,muiFormControl:R,states:["variant","error"]}),N=_.variant||k,B={...r,variant:N,classes:a},L=oMe(B),{root:F,...U}=L,V=f||{standard:$.jsx(iMe,{ownerState:B}),outlined:$.jsx(aMe,{label:m,ownerState:B}),filled:$.jsx(sMe,{ownerState:B})}[N],z=Wt(n,Tf(V));return $.jsx(v.Fragment,{children:v.cloneElement(V,{inputComponent:I,inputProps:{children:i,error:_.error,IconComponent:u,variant:N,type:void 0,multiple:b,...x?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:y,onClose:S,onOpen:P,open:E,renderValue:T,SelectDisplayProps:{id:d,...O}},...p,classes:p?mo(U,p.classes):U,...f?f.props.inputProps:{}},...(b&&x||c)&&N==="outlined"?{notched:!0}:{},ref:z,className:pe(V.props.className,s,L.root),...!f&&{variant:N},...M})})});Dh.muiName="Select";function lMe(e){return _e("MuiSkeleton",e)}Le("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const cMe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Te({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},lMe,t)},eD=jc`
+`,Hke=typeof _D!="string"?zf`
+ animation: ${_D} 3s infinite linear;
+ `:null,Uke=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Ce(r)}`,n],dashed:["dashed",`dashedColor${Ce(r)}`],bar1:["bar",`barColor${Ce(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Ce(r)}`,n==="buffer"&&`color${Ce(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return et(o,Bke,t)},fj=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?qu(e.palette[t].main,.62):Gu(e.palette[t].main,.5),Wke=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ce(n.color)}`],t[n.variant]]}})(Qe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{backgroundColor:fj(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Gke=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Ce(n.color)}`]]}})(Qe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Vn()).map(([t])=>{const n=fj(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Hke||{animation:`${_D} 3s infinite linear`}),qke=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Qe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${$D}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${$D}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zke||{animation:`${RD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Kke=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Qe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:fj(e,t),transition:`transform .${$D}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Vke||{animation:`${DD} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),_Z=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},d=Uke(u),f=ud(),p={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=a-100;f&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(l==="buffer"&&s!==void 0){let g=(s||0)-100;f&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return $.jsxs(Wke,{className:pe(d.root,o),ownerState:u,role:"progressbar",...p,ref:n,...c,children:[l==="buffer"?$.jsx(Gke,{className:d.dashed,ownerState:u}):null,$.jsx(qke,{className:d.bar1,ownerState:u,style:m.bar1}),l==="determinate"?null:$.jsx(Kke,{className:d.bar2,ownerState:u,style:m.bar2})]})}),nl=v.createContext({});function Yke(e){return Ze("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const Xke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return et({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Yke,t)},Qke=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),pl=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},p=Xke(f);return $.jsx(nl.Provider,{value:d,children:$.jsxs(Qke,{as:a,className:pe(p.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function Jke(e){return Ze("MuiListItem",e)}tt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function Zke(e){return Ze("MuiListItemButton",e)}const hg=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),eMe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tMe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,c=et({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},Zke,n);return{...n,...c}},nMe=ie(Xi,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:eMe})(Qe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Xf=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:p,...m}=r,g=v.useContext(nl),y=v.useMemo(()=>({dense:l||g.dense||!1,alignItems:o,disableGutters:c}),[o,g.dense,l,c]),b=v.useRef(null);ns(()=>{i&&b.current&&b.current.focus()},[i]);const x={...r,alignItems:o,dense:y.dense,disableGutters:c,divider:u,selected:f},S=tMe(x),P=Cr(b,n);return $.jsx(nl.Provider,{value:y,children:$.jsx(nMe,{ref:P,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:pe(S.focusVisible,d),ownerState:x,className:pe(S.root,p),...m,classes:S,children:s})})});function rMe(e){return Ze("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const oMe=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},rMe,n)},iMe=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),LZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(nl),s={...r,disableGutters:a.disableGutters},l=oMe(s);return $.jsx(iMe,{className:pe(l.root,o),ownerState:s,ref:n,...i})});LZ.muiName="ListItemSecondaryAction";const aMe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},sMe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return et({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Jke,n)},lMe=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:aMe})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${hg.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),cMe=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ss=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:p=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:b,slotProps:x={},slots:S={},...P}=r,E=v.useContext(nl),T=v.useMemo(()=>({dense:p||E.dense||!1,alignItems:o,disableGutters:m}),[o,E.dense,p,m]),O=v.useRef(null),k=v.Children.toArray(i),M=k.length&&Xg(k[k.length-1],["ListItemSecondaryAction"]),I={...r,alignItems:o,dense:T.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:M},R=sMe(I),_=Cr(O,n),L=S.root||l.Root||lMe,j=x.root||c.root||{},N={className:pe(R.root,j.className,a),...P};let F=s||"li";return M?(F=!N.component&&!s?"div":F,u==="li"&&(F==="li"?F="div":N.component==="li"&&(N.component="div")),$.jsx(nl.Provider,{value:T,children:$.jsxs(cMe,{as:u,className:pe(R.container,d),ref:_,ownerState:I,...f,children:[$.jsx(L,{...j,...!fx(L)&&{as:F,ownerState:{...I,...j.ownerState}},...N,children:k}),k.pop()]})})):$.jsx(nl.Provider,{value:T,children:$.jsxs(L,{...j,as:F,ref:_,...!fx(L)&&{ownerState:{...I,...j.ownerState}},...N,children:[k,b&&$.jsx(LZ,{children:b})]})})});function uMe(e){return Ze("MuiListItemAvatar",e)}tt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const dMe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},uMe,n)},fMe=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),pj=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemAvatar"}),{className:o,...i}=r,a=v.useContext(nl),s={...r,alignItems:a.alignItems},l=dMe(s);return $.jsx(fMe,{className:pe(l.root,o),ownerState:s,ref:n,...i})});function pMe(e){return Ze("MuiListItemIcon",e)}const OU=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),hMe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pMe,n)},mMe=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Qe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ki=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(nl),s={...r,alignItems:a.alignItems},l=hMe(s);return $.jsx(mMe,{className:pe(l.root,o),ownerState:s,ref:n,...i})});function gMe(e){return Ze("MuiListItemText",e)}const _g=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yMe=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return et({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},gMe,t)},vMe=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_g.primary}`]:t.primary},{[`& .${_g.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${KE.root}:where(& .${_g.primary})`]:{display:"block"},[`.${KE.root}:where(& .${_g.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),xo=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:f={},slotProps:p={},...m}=r,{dense:g}=v.useContext(nl);let y=l??o,b=u;const x={...r,disableTypography:a,inset:s,primary:!!y,secondary:!!b,dense:g},S=yMe(x),P={slots:f,slotProps:{primary:c,secondary:d,...p}},[E,T]=dn("primary",{className:S.primary,elementType:ut,externalForwardedProps:P,ownerState:x}),[O,k]=dn("secondary",{className:S.secondary,elementType:ut,externalForwardedProps:P,ownerState:x});return y!=null&&y.type!==ut&&!a&&(y=$.jsx(E,{variant:g?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:y})),b!=null&&b.type!==ut&&!a&&(b=$.jsx(O,{variant:"body2",color:"textSecondary",...k,children:b})),$.jsxs(vMe,{className:pe(S.root,i),ownerState:x,ref:n,...m,children:[y,b]})});function F$(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function IU(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NZ(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function f0(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!NZ(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const qv=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,p=v.useRef(null),m=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ns(()=>{o&&p.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const E=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&E){const T=`${ZX(rs(S))}px`;p.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=T,p.current.style.width=`calc(100% + ${T})`}return p.current}}),[]);const g=S=>{const P=p.current,E=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=ui(P).activeElement;if(E==="ArrowDown")S.preventDefault(),f0(P,O,c,l,F$);else if(E==="ArrowUp")S.preventDefault(),f0(P,O,c,l,IU);else if(E==="Home")S.preventDefault(),f0(P,null,c,l,F$);else if(E==="End")S.preventDefault(),f0(P,null,c,l,IU);else if(E.length===1){const k=m.current,M=E.toLowerCase(),I=performance.now();k.keys.length>0&&(I-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=I,k.keys.push(M);const R=O&&!k.repeating&&NZ(O,k);k.previousKeyMatched&&(R||f0(P,O,!1,l,F$,k))?S.preventDefault():k.previousKeyMatched=!1}u&&u(S)},y=Cr(p,n);let b=-1;v.Children.forEach(a,(S,P)=>{if(!v.isValidElement(S)){b===P&&(b+=1,b>=a.length&&(b=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||b===-1)&&(b=P),b===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const x=v.Children.map(a,(S,P)=>{if(P===b){const E={};return i&&(E.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),v.cloneElement(S,E)}return S});return $.jsx(pl,{role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:o?0:-1,...f,children:x})});function bMe(e){return Ze("MuiPopover",e)}tt("MuiPopover",["root","paper"]);function kU(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function MU(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function AU(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function j$(e){return typeof e=="function"?e():e}const wMe=e=>{const{classes:t}=e;return et({root:["root"],paper:["paper"]},bMe,t)},xMe=ie(Uv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FZ=ie(fo,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),SMe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:p=16,open:m,PaperProps:g={},slots:y={},slotProps:b={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Rh,transitionDuration:P="auto",TransitionProps:{onEntering:E,...T}={},disableScrollLock:O=!1,...k}=r,M=(b==null?void 0:b.paper)??g,I=v.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:S,transitionDuration:P,TransitionProps:T},_=wMe(R),L=v.useCallback(()=>{if(l==="anchorPosition")return s;const ce=j$(i),Q=(ce&&ce.nodeType===1?ce:ui(I.current).body).getBoundingClientRect();return{top:Q.top+kU(Q,a.vertical),left:Q.left+MU(Q,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),j=v.useCallback(ce=>({vertical:kU(ce,x.vertical),horizontal:MU(ce,x.horizontal)}),[x.horizontal,x.vertical]),N=v.useCallback(ce=>{const le={width:ce.offsetWidth,height:ce.offsetHeight},Q=j(le);if(l==="none")return{top:null,left:null,transformOrigin:AU(Q)};const ue=L();let ge=ue.top-Q.vertical,xe=ue.left-Q.horizontal;const me=ge+le.height,be=xe+le.width,we=rs(j$(i)),Te=we.innerHeight-p,Ie=we.innerWidth-p;if(p!==null&&ge<p){const Le=ge-p;ge-=Le,Q.vertical+=Le}else if(p!==null&&me>Te){const Le=me-Te;ge-=Le,Q.vertical+=Le}if(p!==null&&xe<p){const Le=xe-p;xe-=Le,Q.horizontal+=Le}else if(be>Ie){const Le=be-Ie;xe-=Le,Q.horizontal+=Le}return{top:`${Math.round(ge)}px`,left:`${Math.round(xe)}px`,transformOrigin:AU(Q)}},[i,l,L,j,p]),[F,U]=v.useState(m),z=v.useCallback(()=>{const ce=I.current;if(!ce)return;const le=N(ce);le.top!==null&&ce.style.setProperty("top",le.top),le.left!==null&&(ce.style.left=le.left),ce.style.transformOrigin=le.transformOrigin,U(!0)},[N]);v.useEffect(()=>(O&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[i,O,z]);const V=(ce,le)=>{E&&E(ce,le),z()},W=()=>{U(!1)};v.useEffect(()=>{m&&z()}),v.useImperativeHandle(o,()=>m?{updatePosition:()=>{z()}}:null,[m,z]),v.useEffect(()=>{if(!m)return;const ce=TS(()=>{z()}),le=rs(i);return le.addEventListener("resize",ce),()=>{ce.clear(),le.removeEventListener("resize",ce)}},[i,m,z]);let G=P;P==="auto"&&!S.muiSupportAuto&&(G=void 0);const J=d||(i?ui(j$(i)).body:void 0),K={slots:y,slotProps:{...b,paper:M}},[ne,re]=dn("paper",{elementType:FZ,externalForwardedProps:K,additionalProps:{elevation:f,className:pe(_.paper,M==null?void 0:M.className),style:F?M.style:{...M.style,opacity:0}},ownerState:R}),[oe,{slotProps:fe,...se}]=dn("root",{elementType:xMe,externalForwardedProps:K,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:J,open:m},ownerState:R,className:pe(_.root,u)}),ee=Cr(I,re.ref);return $.jsx(oe,{...se,...!fx(oe)&&{slotProps:fe,disableScrollLock:O},...k,ref:n,children:$.jsx(S,{appear:!0,in:m,onEntering:V,onExited:W,timeout:G,...T,children:$.jsx(ne,{...re,ref:ee,children:c})})})});function CMe(e){return Ze("MuiMenu",e)}tt("MuiMenu",["root","paper","list"]);const PMe={vertical:"top",horizontal:"right"},EMe={vertical:"top",horizontal:"left"},TMe=e=>{const{classes:t}=e;return et({root:["root"],paper:["paper"],list:["list"]},CMe,t)},OMe=ie(SMe,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IMe=ie(FZ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kMe=ie(qv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hs=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:b={},slotProps:x={},...S}=r,P=ud(),E={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:p,TransitionProps:g,variant:y},T=TMe(E),O=o&&!s&&u,k=v.useRef(null),M=(F,U)=>{k.current&&k.current.adjustStyleForScrollbar(F,{direction:P?"rtl":"ltr"}),m&&m(F,U)},I=F=>{F.key==="Tab"&&(F.preventDefault(),c&&c(F,"tabKeyDown"))};let R=-1;v.Children.map(i,(F,U)=>{v.isValidElement(F)&&(F.props.disabled||(y==="selectedMenu"&&F.props.selected||R===-1)&&(R=U))});const _=b.paper??IMe,L=x.paper??d,j=Uc({elementType:b.root,externalSlotProps:x.root,ownerState:E,className:[T.root,a]}),N=Uc({elementType:_,externalSlotProps:L,ownerState:E,className:T.paper});return $.jsx(OMe,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?PMe:EMe,slots:{paper:_,root:b.root},slotProps:{root:j,paper:N},open:u,ref:n,transitionDuration:p,TransitionProps:{onEntering:M,...g},ownerState:E,...S,classes:f,children:$.jsx(kMe,{onKeyDown:I,actions:k,autoFocus:o&&(R===-1||s),autoFocusItem:O,variant:y,...l,className:pe(T.list,l.className),children:i})})});function MMe(e){return Ze("MuiMenuItem",e)}const p0=tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),AMe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},$Me=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=et({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},MMe,a);return{...a,...l}},RMe=ie(Xi,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:AMe})(Qe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${p0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${p0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${p0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${p0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${p0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wU.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wU.inset}`]:{marginLeft:52},[`& .${_g.root}`]:{marginTop:0,marginBottom:0},[`& .${_g.inset}`]:{paddingLeft:36},[`& .${OU.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${OU.root} svg`]:{fontSize:"1.25rem"}}}]}))),nn=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...p}=r,m=v.useContext(nl),g=v.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),y=v.useRef(null);ns(()=>{o&&y.current&&y.current.focus()},[o]);const b={...r,dense:g.dense,divider:s,disableGutters:l},x=$Me(r),S=Cr(y,n);let P;return r.disabled||(P=d!==void 0?d:-1),$.jsx(nl.Provider,{value:g,children:$.jsx(RMe,{ref:S,role:u,tabIndex:P,component:i,focusVisibleClassName:pe(x.focusVisible,c),className:pe(x.root,f),...p,ownerState:b,classes:x})})});function DMe(e){return Ze("MuiNativeSelect",e)}const hj=tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_Me=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ce(n)}`,i&&"iconOpen",r&&"disabled"]};return et(s,DMe,t)},jZ=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hj.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),LMe=ie(jZ,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pi,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hj.multiple}`]:t.multiple}]}})({}),BZ=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hj.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),NMe=ie(BZ,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ce(n.variant)}`],n.open&&t.iconOpen]}})({}),FMe=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=_Me(u);return $.jsxs(v.Fragment,{children:[$.jsx(LMe,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:$.jsx(NMe,{as:a,ownerState:u,className:d.icon})]})});var $U;const jMe=ie("fieldset",{shouldForwardProp:pi})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BMe=ie("legend",{shouldForwardProp:pi})(Qe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function zMe(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return $.jsx(jMe,{"aria-hidden":!0,className:r,ownerState:l,...a,children:$.jsx(BMe,{ownerState:l,children:s?$.jsx("span",{children:o}):$U||($U=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const VMe=e=>{const{classes:t}=e,r=et({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sTe,t);return{...t,...r}},HMe=ie($I,{shouldForwardProp:e=>pi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:MI})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$s.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$s.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$s.focused} .${$s.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Vn()).map(([n])=>({props:{color:n},style:{[`&.${$s.focused} .${$s.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$s.error} .${$s.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$s.disabled} .${$s.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),UMe=ie(zMe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),WMe=ie(RI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:AI})(Qe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),mj=v.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...p}=o,m=VMe(o),g=Ea(),y=Yf({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:a,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:f},x=d.root??i.Root??HMe,S=d.input??i.Input??WMe;return $.jsx(Vv,{slots:{root:x,input:S},renderSuffix:P=>$.jsx(UMe,{ownerState:b,className:m.notchedOutline,label:l!=null&&l!==""&&y.required?r||(r=$.jsxs(v.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...p,classes:{...m,notchedOutline:null}})});mj.muiName="Input";function GMe(e){return Ze("MuiPagination",e)}tt("MuiPagination",["root","ul","outlined","text"]);function qMe(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[m,g]=Du({controlled:c,default:o,name:n,state:"page"}),y=(M,I)=>{c||g(I),l&&l(M,I)},b=(M,I)=>{const R=I-M+1;return Array.from({length:R},(_,L)=>M+L)},x=b(1,Math.min(t,r)),S=b(Math.max(r-t+1,t+1),r),P=Math.max(Math.min(m-f,r-t-f*2-1),t+2),E=Math.min(Math.max(m+f,t+f*2+2),r-t-1),T=[...u?["first"]:[],...s?[]:["previous"],...x,...P>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...b(P,E),...E<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...a?[]:["next"],...d?["last"]:[]],O=M=>{switch(M){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}};return{items:T.map(M=>typeof M=="number"?{onClick:I=>{y(I,M)},type:"page",page:M,selected:M===m,disabled:i,"aria-current":M===m?"page":void 0}:{onClick:I=>{y(I,O(M))},type:M,page:O(M),selected:!1,disabled:i||!M.includes("ellipsis")&&(M==="next"||M==="last"?m>=r:m<=1)}),...p}}function KMe(e){return Ze("MuiPaginationItem",e)}const Li=tt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),zZ=lt($.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),VZ=lt($.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),YMe=lt($.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),XMe=lt($.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),HZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ce(n.size)}`],n.variant==="text"&&t[`text${Ce(n.color)}`],n.variant==="outlined"&&t[`outlined${Ce(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},QMe=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${Ce(i)}`,l,a,n!=="standard"&&`color${Ce(n)}`,n!=="standard"&&`${l}${Ce(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return et(c,KMe,t)},JMe=ie("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:HZ})(Qe(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),ZMe=ie(Xi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:HZ})(Qe(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Li.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Li.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Li.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Li.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Li.selected}`]:{[`&.${Li.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Li.selected}`]:{[`&.${Li.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Vn(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Li.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Li.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Li.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Vn(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Li.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:vt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:vt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Li.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),eAe=ie("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(Qe(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),tAe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:f="medium",slots:p={},slotProps:m={},type:g="page",variant:y="text",...b}=r,x={...r,color:i,disabled:l,selected:u,shape:d,size:f,type:g,variant:y},S=ud(),P=QMe(x),E={slots:{previous:p.previous??s.previous,next:p.next??s.next,first:p.first??s.first,last:p.last??s.last},slotProps:m},[T,O]=dn("previous",{elementType:YMe,externalForwardedProps:E,ownerState:x}),[k,M]=dn("next",{elementType:XMe,externalForwardedProps:E,ownerState:x}),[I,R]=dn("first",{elementType:zZ,externalForwardedProps:E,ownerState:x}),[_,L]=dn("last",{elementType:VZ,externalForwardedProps:E,ownerState:x}),j=S?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,N={previous:T,next:k,first:I,last:_}[j],F={previous:O,next:M,first:R,last:L}[j];return g==="start-ellipsis"||g==="end-ellipsis"?$.jsx(JMe,{ref:n,ownerState:x,className:pe(P.root,o),children:"…"}):$.jsxs(ZMe,{ref:n,ownerState:x,component:a,disabled:l,className:pe(P.root,o),...b,children:[g==="page"&&c,N?$.jsx(eAe,{...F,className:P.icon,as:N}):null]})}),nAe=e=>{const{classes:t,variant:n}=e;return et({root:["root",n],ul:["ul"]},GMe,t)},rAe=ie("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),oAe=ie("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function iAe(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const aAe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=iAe,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:p,page:m,renderItem:g=I=>$.jsx(tAe,{...I}),shape:y="circular",showFirstButton:b=!1,showLastButton:x=!1,siblingCount:S=1,size:P="medium",variant:E="text",...T}=r,{items:O}=qMe({...r,componentName:"Pagination"}),k={...r,boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:f,renderItem:g,shape:y,showFirstButton:b,showLastButton:x,siblingCount:S,size:P,variant:E},M=nAe(k);return $.jsx(rAe,{"aria-label":"pagination navigation",className:pe(M.root,i),ownerState:k,ref:n,...T,children:$.jsx(oAe,{className:M.ul,ownerState:k,children:O.map((I,R)=>$.jsx("li",{children:g({...I,color:a,"aria-label":u(I.type,I.page,I.selected),shape:y,size:P,variant:E})},R))})})});function sAe(e){return Ze("MuiSelect",e)}const h0=tt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RU;const lAe=ie(jZ,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${h0.select}`]:t.select},{[`&.${h0.select}`]:t[n.variant]},{[`&.${h0.error}`]:t.error},{[`&.${h0.multiple}`]:t.multiple}]}})({[`&.${h0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cAe=ie(BZ,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ce(n.variant)}`],n.open&&t.iconOpen]}})({}),uAe=ie("input",{shouldForwardProp:e=>_X(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DU(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dAe(e){return e==null||typeof e=="string"&&!e.trim()}const fAe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return et(s,sAe,t)},pAe=v.forwardRef(function(t,n){var rt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:b={},multiple:x,name:S,onBlur:P,onChange:E,onClose:T,onFocus:O,onOpen:k,open:M,readOnly:I,renderValue:R,required:_,SelectDisplayProps:L={},tabIndex:j,type:N,value:F,variant:U="standard",...z}=t,[V,W]=Du({controlled:F,default:u,name:"Select"}),[G,J]=Du({controlled:M,default:c,name:"Select"}),K=v.useRef(null),ne=v.useRef(null),[re,oe]=v.useState(null),{current:fe}=v.useRef(M!=null),[se,ee]=v.useState(),ce=Cr(n,g),le=v.useCallback(Pe=>{ne.current=Pe,Pe&&oe(Pe)},[]),Q=re==null?void 0:re.parentNode;v.useImperativeHandle(ce,()=>({focus:()=>{ne.current.focus()},node:K.current,value:V}),[V]),v.useEffect(()=>{c&&G&&re&&!fe&&(ee(a?null:Q.clientWidth),ne.current.focus())},[re,a]),v.useEffect(()=>{i&&ne.current.focus()},[i]),v.useEffect(()=>{if(!y)return;const Pe=ui(ne.current).getElementById(y);if(Pe){const Ve=()=>{getSelection().isCollapsed&&ne.current.focus()};return Pe.addEventListener("click",Ve),()=>{Pe.removeEventListener("click",Ve)}}},[y]);const ue=(Pe,Ve)=>{Pe?k&&k(Ve):T&&T(Ve),fe||(ee(a?null:Q.clientWidth),J(Pe))},ge=Pe=>{Pe.button===0&&(Pe.preventDefault(),ne.current.focus(),ue(!0,Pe))},xe=Pe=>{ue(!1,Pe)},me=v.Children.toArray(s),be=Pe=>{const Ve=me.find(ft=>ft.props.value===Pe.target.value);Ve!==void 0&&(W(Ve.props.value),E&&E(Pe,Ve))},we=Pe=>Ve=>{let ft;if(Ve.currentTarget.hasAttribute("tabindex")){if(x){ft=Array.isArray(V)?V.slice():[];const It=V.indexOf(Pe.props.value);It===-1?ft.push(Pe.props.value):ft.splice(It,1)}else ft=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(Ve),V!==ft&&(W(ft),E)){const It=Ve.nativeEvent||Ve,St=new It.constructor(It.type,It);Object.defineProperty(St,"target",{writable:!0,value:{value:ft,name:S}}),E(St,Pe)}x||ue(!1,Ve)}},Te=Pe=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(Pe.key)&&(Pe.preventDefault(),ue(!0,Pe))},Ie=re!==null&&G,Le=Pe=>{!Ie&&P&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:V,name:S}}),P(Pe))};delete z["aria-invalid"];let de,$e;const ke=[];let Me=!1;(QE({value:V})||f)&&(R?de=R(V):Me=!0);const De=me.map(Pe=>{if(!v.isValidElement(Pe))return null;let Ve;if(x){if(!Array.isArray(V))throw new Error(Wu(2));Ve=V.some(ft=>DU(ft,Pe.props.value)),Ve&&Me&&ke.push(Pe.props.children)}else Ve=DU(V,Pe.props.value),Ve&&Me&&($e=Pe.props.children);return v.cloneElement(Pe,{"aria-selected":Ve?"true":"false",onClick:we(Pe),onKeyUp:ft=>{ft.key===" "&&ft.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(ft)},role:"option",selected:Ve,value:void 0,"data-value":Pe.props.value})});Me&&(x?ke.length===0?de=null:de=ke.reduce((Pe,Ve,ft)=>(Pe.push(Ve),ft<ke.length-1&&Pe.push(", "),Pe),[]):de=$e);let Ye=se;!a&&fe&&re&&(Ye=Q.clientWidth);let Je;typeof j<"u"?Je=j:Je=d?null:0;const st=L.id||(S?`mui-component-select-${S}`:void 0),Rt={...t,variant:U,value:V,open:Ie,error:p},ct=fAe(Rt),Lt={...b.PaperProps,...(rt=b.slotProps)==null?void 0:rt.paper},pt=Ph();return $.jsxs(v.Fragment,{children:[$.jsx(lAe,{as:"div",ref:le,tabIndex:Je,role:"combobox","aria-controls":pt,"aria-disabled":d?"true":void 0,"aria-expanded":Ie?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,st].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:Te,onMouseDown:d||I?null:ge,onBlur:Le,onFocus:O,...L,ownerState:Rt,className:pe(L.className,ct.select,l),id:st,children:dAe(de)?RU||(RU=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):de}),$.jsx(uAe,{"aria-invalid":p,value:Array.isArray(V)?V.join(","):V,name:S,ref:K,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:d,className:ct.nativeInput,autoFocus:i,required:_,...z,ownerState:Rt}),$.jsx(cAe,{as:m,className:ct.icon,ownerState:Rt}),$.jsx(hs,{id:`menu-${S||""}`,anchorEl:Q,open:Ie,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,MenuListProps:{"aria-labelledby":y,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:pt,...b.MenuListProps},slotProps:{...b.slotProps,paper:{...Lt,style:{minWidth:Ye,...Lt!=null?Lt.style:null}}},children:De})]})}),hAe=e=>{const{classes:t}=e;return t},gj={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pi(e)&&e!=="variant",slot:"Root"},mAe=ie(dj,gj)(""),gAe=ie(mj,gj)(""),yAe=ie(uj,gj)(""),Jh=v.forwardRef(function(t,n){const r=nt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=bZ,id:d,input:f,inputProps:p,label:m,labelId:g,MenuProps:y,multiple:b=!1,native:x=!1,onClose:S,onOpen:P,open:E,renderValue:T,SelectDisplayProps:O,variant:k="outlined",...M}=r,I=x?FMe:pAe,R=Ea(),_=Yf({props:r,muiFormControl:R,states:["variant","error"]}),L=_.variant||k,j={...r,variant:L,classes:a},N=hAe(j),{root:F,...U}=N,z=f||{standard:$.jsx(mAe,{ownerState:j}),outlined:$.jsx(gAe,{label:m,ownerState:j}),filled:$.jsx(yAe,{ownerState:j})}[L],V=Cr(n,Hf(z));return $.jsx(v.Fragment,{children:v.cloneElement(z,{inputComponent:I,inputProps:{children:i,error:_.error,IconComponent:u,variant:L,type:void 0,multiple:b,...x?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:y,onClose:S,onOpen:P,open:E,renderValue:T,SelectDisplayProps:{id:d,...O}},...p,classes:p?Xo(U,p.classes):U,...f?f.props.inputProps:{}},...(b&&x||c)&&L==="outlined"?{notched:!0}:{},ref:V,className:pe(z.props.className,s,N.root),...!f&&{variant:L},...M})})});Jh.muiName="Select";function vAe(e){return Ze("MuiSkeleton",e)}tt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const bAe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return et({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},vAe,t)},LD=Xc`
0% {
opacity: 1;
}
@@ -249,7 +249,7 @@ Error generating stack: `+i.message+`
100% {
opacity: 1;
}
-`,tD=jc`
+`,ND=Xc`
0% {
transform: translateX(-100%);
}
@@ -262,24 +262,24 @@ Error generating stack: `+i.message+`
100% {
transform: translateX(100%);
}
-`,uMe=typeof eD!="string"?Ef`
- animation: ${eD} 2s ease-in-out 0.5s infinite;
- `:null,dMe=typeof tD!="string"?Ef`
+`,wAe=typeof LD!="string"?zf`
+ animation: ${LD} 2s ease-in-out 0.5s infinite;
+ `:null,xAe=typeof ND!="string"?zf`
&::after {
- animation: ${tD} 2s linear 0.5s infinite;
+ animation: ${ND} 2s linear 0.5s infinite;
}
- `:null,fMe=ie("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(tt(({theme:e})=>{const t=swe(e.shape.borderRadius)||"px",n=lwe(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:vt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:uMe||{animation:`${eD} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
+ `:null,SAe=ie("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Qe(({theme:e})=>{const t=fxe(e.shape.borderRadius)||"px",n=pxe(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:vt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:wAe||{animation:`${LD} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
90deg,
transparent,
${(e.vars||e).palette.action.hover},
transparent
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:dMe||{"&::after":{animation:`${tD} 2s linear 0.5s infinite`}}}]}})),CP=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:a,variant:c,hasChildren:!!d.children},p=cMe(f);return $.jsx(fMe,{as:a,ref:n,className:pe(p.root,i),ownerState:f,...d,style:{width:u,height:s,...l}})});function pMe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=la();v.useEffect(()=>{if(!o)return;function b(x){x.defaultPrevented||x.key==="Escape"&&(r==null||r(x,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,r]);const s=Ze((b,x)=>{r==null||r(b,x)}),l=Ze(b=>{!r||b==null||a.start(b,()=>{s(null,"timeout")})});v.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=b=>{r==null||r(b,"clickaway")},u=a.clear,d=v.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=b=>x=>{const S=b.onBlur;S==null||S(x),d()},p=b=>x=>{const S=b.onFocus;S==null||S(x),u()},m=b=>x=>{const S=b.onMouseEnter;S==null||S(x),u()},g=b=>x=>{const S=b.onMouseLeave;S==null||S(x),d()};return v.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(b={})=>{const x={...WP(e),...WP(b)};return{role:"presentation",...b,...x,onBlur:f(x),onFocus:p(x),onMouseEnter:m(x),onMouseLeave:g(x)}},onClickAway:c}}function hMe(e){return _e("MuiSnackbarContent",e)}Le("MuiSnackbarContent",["root","message","action"]);const mMe=e=>{const{classes:t}=e;return Te({root:["root"],action:["action"],message:["message"]},hMe,t)},gMe=ie(so,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=PY(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),yMe=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),vMe=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bMe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=mMe(c);return $.jsxs(gMe,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[$.jsx(yMe,{className:u.message,ownerState:c,children:a}),o?$.jsx(vMe,{className:u.action,ownerState:c,children:o}):null]})});function wMe(e){return _e("MuiSnackbar",e)}Le("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const xMe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}`]};return Te(r,wMe,t)},q3=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Se(n.anchorOrigin.vertical)}${Se(n.anchorOrigin.horizontal)}`]]}})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),HJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSnackbar"}),o=Ao(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:p,disableWindowBlurListener:m=!1,message:g,onBlur:y,onClose:b,onFocus:x,onMouseEnter:S,onMouseLeave:P,open:E,resumeHideDuration:T,TransitionComponent:O=gh,transitionDuration:k=i,TransitionProps:{onEnter:M,onExited:I,...R}={},..._}=r,N={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:O,transitionDuration:k},B=xMe(N),{getRootProps:L,onClickAway:F}=pMe({...N}),[U,V]=v.useState(!0),z=on({elementType:q3,getSlotProps:L,externalForwardedProps:_,ownerState:N,additionalProps:{ref:n},className:[B.root,d]}),W=J=>{V(!0),I&&I(J)},G=(J,K)=>{V(!1),M&&M(J,K)};return!E&&U?null:$.jsx(PF,{onClickAway:F,...f,children:$.jsx(q3,{...z,children:$.jsx(O,{appear:!0,in:E,timeout:k,direction:s==="top"?"down":"up",onEnter:G,onExited:W,...R,children:u||$.jsx(bMe,{message:g,action:a,...p})})})})});function SMe(e){return _e("MuiTooltip",e)}const jr=Le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function CMe(e){return Math.round(e*1e5)/1e5}const PMe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Se(i.split("-")[0])}`],arrow:["arrow"]};return Te(a,SMe,t)},EMe=ie($f,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),TMe=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Se(n.placement.split("-")[0])}`]]}})(tt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:vt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${jr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${CMe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${jr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${jr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${jr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${jr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),OMe=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(tt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:vt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xC=!1;const K3=new _O;let Wb={x:0,y:0};function SC(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xl=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:x,leaveDelay:S=0,leaveTouchDelay:P=1500,onClose:E,onOpen:T,open:O,placement:k="bottom",PopperComponent:M,PopperProps:I={},slotProps:R={},slots:_={},title:N,TransitionComponent:B,TransitionProps:L,...F}=r,U=v.isValidElement(i)?i:$.jsx("span",{children:i}),V=Ao(),z=nr(),[W,G]=v.useState(),[J,K]=v.useState(null),ne=v.useRef(!1),re=f||b,oe=la(),fe=la(),se=la(),ee=la(),[ce,le]=bi({controlled:O,default:!1,name:"Tooltip",state:"open"});let Q=ce;const ue=_n(x),ge=v.useRef(),xe=Ze(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),ee.clear()});v.useEffect(()=>xe,[xe]);const me=Nt=>{K3.clear(),xC=!0,le(!0),T&&!Q&&T(Nt)},be=Ze(Nt=>{K3.start(800+S,()=>{xC=!1}),le(!1),E&&Q&&E(Nt),oe.start(V.transitions.duration.shortest,()=>{ne.current=!1})}),we=Nt=>{ne.current&&Nt.type!=="touchstart"||(W&&W.removeAttribute("title"),fe.clear(),se.clear(),m||xC&&g?fe.start(xC?g:m,()=>{me(Nt)}):me(Nt))},Oe=Nt=>{fe.clear(),se.start(S,()=>{be(Nt)})},[,ke]=v.useState(!1),je=Nt=>{UP(Nt.target)||(ke(!1),Oe(Nt))},de=Nt=>{W||G(Nt.currentTarget),UP(Nt.target)&&(ke(!0),we(Nt))},Re=Nt=>{ne.current=!0;const Co=U.props;Co.onTouchStart&&Co.onTouchStart(Nt)},Me=Nt=>{Re(Nt),se.clear(),oe.clear(),xe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ee.start(y,()=>{document.body.style.WebkitUserSelect=ge.current,we(Nt)})},Ae=Nt=>{U.props.onTouchEnd&&U.props.onTouchEnd(Nt),xe(),se.start(P,()=>{be(Nt)})};v.useEffect(()=>{if(!Q)return;function Nt(Co){Co.key==="Escape"&&be(Co)}return document.addEventListener("keydown",Nt),()=>{document.removeEventListener("keydown",Nt)}},[be,Q]);const Ne=Wt(Tf(U),G,n);!N&&N!==0&&(Q=!1);const Je=v.useRef(),nt=Nt=>{const Co=U.props;Co.onMouseMove&&Co.onMouseMove(Nt),Wb={x:Nt.clientX,y:Nt.clientY},Je.current&&Je.current.update()},st={},$t=typeof N=="string";c?(st.title=!Q&&$t&&!d?N:null,st["aria-describedby"]=Q?ue:null):(st["aria-label"]=$t?N:null,st["aria-labelledby"]=Q&&!$t?ue:null);const ct={...st,...F,...U.props,className:pe(F.className,U.props.className),onTouchStart:Re,ref:Ne,...b?{onMouseMove:nt}:{}},_t={};p||(ct.onTouchStart=Me,ct.onTouchEnd=Ae),d||(ct.onMouseOver=SC(we,ct.onMouseOver),ct.onMouseLeave=SC(Oe,ct.onMouseLeave),re||(_t.onMouseOver=we,_t.onMouseLeave=Oe)),u||(ct.onFocus=SC(de,ct.onFocus),ct.onBlur=SC(je,ct.onBlur),re||(_t.onFocus=de,_t.onBlur=je));const pt={...r,isRtl:z,arrow:o,disableInteractive:re,placement:k,PopperComponentProp:M,touch:ne.current},ot=typeof R.popper=="function"?R.popper(pt):R.popper,Pe=v.useMemo(()=>{var Co,ss;let Nt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(Co=I.popperOptions)!=null&&Co.modifiers&&(Nt=Nt.concat(I.popperOptions.modifiers)),(ss=ot==null?void 0:ot.popperOptions)!=null&&ss.modifiers&&(Nt=Nt.concat(ot.popperOptions.modifiers)),{...I.popperOptions,...ot==null?void 0:ot.popperOptions,modifiers:Nt}},[J,I.popperOptions,ot==null?void 0:ot.popperOptions]),We=PMe(pt),ft=typeof R.transition=="function"?R.transition(pt):R.transition,Ot={slots:{popper:s.Popper,transition:s.Transition??B,tooltip:s.Tooltip,arrow:s.Arrow,..._},slotProps:{arrow:R.arrow??l.arrow,popper:{...I,...ot??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...L,...ft??l.transition}}},[xt,vn]=dn("popper",{elementType:EMe,externalForwardedProps:Ot,ownerState:pt,className:pe(We.popper,I==null?void 0:I.className)}),[zn,Wn]=dn("transition",{elementType:gh,externalForwardedProps:Ot,ownerState:pt}),[xo,So]=dn("tooltip",{elementType:TMe,className:We.tooltip,externalForwardedProps:Ot,ownerState:pt}),[ai,Sa]=dn("arrow",{elementType:OMe,className:We.arrow,externalForwardedProps:Ot,ownerState:pt,ref:K});return $.jsxs(v.Fragment,{children:[v.cloneElement(U,ct),$.jsx(xt,{as:M??$f,placement:k,anchorEl:b?{getBoundingClientRect:()=>({top:Wb.y,left:Wb.x,right:Wb.x,bottom:Wb.y,width:0,height:0})}:W,popperRef:Je,open:W?Q:!1,id:ue,transition:!0,..._t,...vn,popperOptions:Pe,children:({TransitionProps:Nt})=>$.jsx(zn,{timeout:V.transitions.duration.shorter,...Nt,...Wn,children:$.jsxs(xo,{...So,children:[N,o?$.jsx(ai,{...Sa}):null]})})})]})}),Gt=A0e({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rt({props:e,name:"MuiStack"})}),pS=v.createContext({}),sI=v.createContext({});function IMe(e){return _e("MuiStep",e)}Le("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const kMe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Te({root:["root",n,r&&"alternativeLabel",o&&"completed"]},IMe,t)},MMe=ie("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),Mm=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:d,last:f,...p}=r,{activeStep:m,connector:g,alternativeLabel:y,orientation:b,nonLinear:x}=v.useContext(pS);let[S=!1,P=!1,E=!1]=[o,l,c];m===d?S=o!==void 0?o:!0:!x&&m>d?P=l!==void 0?l:!0:!x&&m<d&&(E=c!==void 0?c:!0);const T=v.useMemo(()=>({index:d,last:f,expanded:u,icon:d+1,active:S,completed:P,disabled:E}),[d,f,u,S,P,E]),O={...r,active:S,orientation:b,alternativeLabel:y,completed:P,disabled:E,expanded:u,component:s},k=kMe(O),M=$.jsxs(MMe,{as:s,className:pe(k.root,a),ref:n,ownerState:O,...p,children:[g&&y&&d!==0?g:null,i]});return $.jsx(sI.Provider,{value:T,children:g&&!y&&d!==0?$.jsxs(v.Fragment,{children:[g,M]}):M})}),AMe=lt($.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),$Me=lt($.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function RMe(e){return _e("MuiStepIcon",e)}const o$=Le("MuiStepIcon",["root","active","completed","error","text"]);var Y3;const DMe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Te({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},RMe,t)},i$=ie(YP,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${o$.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${o$.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${o$.error}`]:{color:(e.vars||e).palette.error.main}}))),_Me=ie("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(tt(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),LMe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=r,u={...r,active:o,completed:a,error:s},d=DMe(u);if(typeof l=="number"||typeof l=="string"){const f=pe(i,d.root);return s?$.jsx(i$,{as:$Me,className:f,ref:n,ownerState:u,...c}):a?$.jsx(i$,{as:AMe,className:f,ref:n,ownerState:u,...c}):$.jsxs(i$,{className:f,ref:n,ownerState:u,...c,children:[Y3||(Y3=$.jsx("circle",{cx:"12",cy:"12",r:"12"})),$.jsx(_Me,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function NMe(e){return _e("MuiStepLabel",e)}const Kd=Le("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),FMe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:s}=e;return Te({root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},NMe,t)},jMe=ie("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${Kd.alternativeLabel}`]:{flexDirection:"column"},[`&.${Kd.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),BMe=ie("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(tt(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Kd.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Kd.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Kd.alternativeLabel}`]:{marginTop:16},[`&.${Kd.error}`]:{color:(e.vars||e).palette.error.main}}))),zMe=ie("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${Kd.alternativeLabel}`]:{paddingRight:0}}),VMe=ie("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(tt(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Kd.alternativeLabel}`]:{textAlign:"center"}}))),xp=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:a={},error:s=!1,icon:l,optional:c,slots:u={},slotProps:d={},StepIconComponent:f,StepIconProps:p,...m}=r,{alternativeLabel:g,orientation:y}=v.useContext(pS),{active:b,disabled:x,completed:S,icon:P}=v.useContext(sI),E=l||P;let T=f;E&&!T&&(T=LMe);const O={...r,active:b,alternativeLabel:g,completed:S,disabled:x,error:s,orientation:y},k=FMe(O),M={slots:u,slotProps:{stepIcon:p,...a,...d}},[I,R]=dn("label",{elementType:BMe,externalForwardedProps:M,ownerState:O}),[_,N]=dn("stepIcon",{elementType:T,externalForwardedProps:M,ownerState:O});return $.jsxs(jMe,{className:pe(k.root,i),ref:n,ownerState:O,...m,children:[E||_?$.jsx(zMe,{className:k.iconContainer,ownerState:O,children:$.jsx(_,{completed:S,active:b,error:s,icon:E,...N})}):null,$.jsxs(VMe,{className:k.labelContainer,ownerState:O,children:[o?$.jsx(I,{...R,className:pe(k.label,R==null?void 0:R.className),children:o}):null,c]})]})});xp.muiName="StepLabel";function HMe(e){return _e("MuiStepConnector",e)}Le("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const UMe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Se(n)}`]};return Te(s,HMe,t)},WMe=ie("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),GMe=ie("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Se(n.orientation)}`]]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),qMe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:a,orientation:s="horizontal"}=v.useContext(pS),{active:l,disabled:c,completed:u}=v.useContext(sI),d={...r,alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c},f=UMe(d);return $.jsx(WMe,{className:pe(f.root,o),ref:n,ownerState:d,...i,children:$.jsx(GMe,{className:f.line,ownerState:d})})});function KMe(e){return _e("MuiStepContent",e)}Le("MuiStepContent",["root","last","transition"]);const YMe=e=>{const{classes:t,last:n}=e;return Te({root:["root",n&&"last"],transition:["transition"]},KMe,t)},XMe=ie("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(tt(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),QMe=ie(Ws,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Am=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStepContent"}),{children:o,className:i,TransitionComponent:a=Ws,transitionDuration:s="auto",TransitionProps:l,slots:c={},slotProps:u={},...d}=r;v.useContext(pS);const{active:f,last:p,expanded:m}=v.useContext(sI),g={...r,last:p},y=YMe(g);let b=s;s==="auto"&&!a.muiSupportAuto&&(b=void 0);const x={slots:c,slotProps:{transition:l,...u}},[S,P]=dn("transition",{elementType:QMe,externalForwardedProps:x,ownerState:g,className:y.transition,additionalProps:{in:f||m,timeout:b,unmountOnExit:!0}});return $.jsx(XMe,{className:pe(y.root,i),ref:n,ownerState:g,...d,children:$.jsx(S,{as:a,...P,children:o})})});function JMe(e){return _e("MuiStepper",e)}Le("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const ZMe=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return Te({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},JMe,o)},eAe=ie("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),tAe=$.jsx(qMe,{}),nAe=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:s,component:l="div",connector:c=tAe,nonLinear:u=!1,orientation:d="horizontal",...f}=r,p={...r,nonLinear:u,alternativeLabel:i,orientation:d,component:l},m=ZMe(p),g=v.Children.toArray(a).filter(Boolean),y=g.map((x,S)=>v.cloneElement(x,{index:S,last:S+1===g.length,...x.props})),b=v.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:d}),[o,i,c,u,d]);return $.jsx(pS.Provider,{value:b,children:$.jsx(eAe,{as:l,ownerState:p,className:pe(m.root,s),ref:n,...f,children:y})})});function rAe(e){return _e("MuiSwitch",e)}const Mi=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),oAe=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Se(n)}`,`size${Se(r)}`],switchBase:["switchBase",`color${Se(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Te(s,rAe,t);return{...t,...l}},iAe=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Mi.thumb}`]:{width:16,height:16},[`& .${Mi.switchBase}`]:{padding:4,[`&.${Mi.checked}`]:{transform:"translateX(16px)"}}}}]}),aAe=ie(CJ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Mi.input}`]:t.input},n.color!=="default"&&t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Mi.checked}`]:{transform:"translateX(20px)"},[`&.${Mi.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Mi.checked} + .${Mi.track}`]:{opacity:.5},[`&.${Mi.disabled} + .${Mi.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Mi.input}`]:{left:"-100%",width:"300%"}})),tt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Hn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Mi.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mi.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Du(e.palette[t].main,.62):Ru(e.palette[t].main,.55)}`}},[`&.${Mi.checked} + .${Mi.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),sAe=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(tt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),lAe=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(tt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Hu=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,...c}=r,u={...r,color:i,edge:a,size:s},d=oAe(u),f=$.jsx(lAe,{className:d.thumb,ownerState:u});return $.jsxs(iAe,{className:pe(d.root,o),sx:l,ownerState:u,children:[$.jsx(aAe,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),$.jsx(sAe,{className:d.track,ownerState:u})]})});function cAe(e){return _e("MuiTab",e)}const ys=Le("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),uAe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Se(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Te(c,cAe,t)},dAe=ie(Hi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Se(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ys.iconWrapper}`]:t.iconWrapper},{[`& .${ys.icon}`]:t.icon}]}})(tt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${ys.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ys.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ys.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ys.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ys.selected}`]:{opacity:1},[`&.${ys.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ys.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ys.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ys.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ys.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),X3=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:y,textColor:b="inherit",value:x,wrapped:S=!1,...P}=r,E={...r,disabled:i,disableFocusRipple:a,selected:g,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:b,wrapped:S},T=uAe(E),O=l&&d&&v.isValidElement(l)?v.cloneElement(l,{className:pe(T.icon,l.props.className)}):l,k=I=>{!g&&f&&f(I,x),p&&p(I)},M=I=>{y&&!g&&f&&f(I,x),m&&m(I)};return $.jsxs(dAe,{focusRipple:!a,className:pe(T.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:M,ownerState:E,tabIndex:g?0:-1,...P,children:[c==="top"||c==="start"?$.jsxs(v.Fragment,{children:[O,d]}):$.jsxs(v.Fragment,{children:[d,O]}),u]})}),UJ=v.createContext();function fAe(e){return _e("MuiTable",e)}Le("MuiTable",["root","stickyHeader"]);const pAe=e=>{const{classes:t,stickyHeader:n}=e;return Te({root:["root",n&&"stickyHeader"]},fAe,t)},hAe=ie("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(tt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Q3="table",Uu=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTable"}),{className:o,component:i=Q3,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=pAe(u),f=v.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return $.jsx(UJ.Provider,{value:f,children:$.jsx(hAe,{as:i,role:i===Q3?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),lI=v.createContext();function mAe(e){return _e("MuiTableBody",e)}Le("MuiTableBody",["root"]);const gAe=e=>{const{classes:t}=e;return Te({root:["root"]},mAe,t)},yAe=ie("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),vAe={variant:"body"},J3="tbody",Wu=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableBody"}),{className:o,component:i=J3,...a}=r,s={...r,component:i},l=gAe(s);return $.jsx(lI.Provider,{value:vAe,children:$.jsx(yAe,{className:pe(l.root,o),as:i,ref:n,role:i===J3?null:"rowgroup",ownerState:s,...a})})});function bAe(e){return _e("MuiTableCell",e)}const wAe=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xAe=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Se(r)}`,o!=="normal"&&`padding${Se(o)}`,`size${Se(i)}`]};return Te(s,bAe,t)},SAe=ie("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Se(n.size)}`],n.padding!=="normal"&&t[`padding${Se(n.padding)}`],n.align!=="inherit"&&t[`align${Se(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(tt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
- ${e.palette.mode==="light"?Du(vt(e.palette.divider,1),.88):Ru(vt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${wAe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Ie=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,p=v.useContext(UJ),m=v.useContext(lI),g=m&&m.variant==="head";let y;a?y=a:y=g?"th":"td";let b=l;y==="td"?b=void 0:!b&&g&&(b="col");const x=d||m&&m.variant,S={...r,align:o,component:y,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:x==="head"&&p&&p.stickyHeader,variant:x},P=xAe(S);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),$.jsx(SAe,{as:y,ref:n,className:pe(P.root,i),"aria-sort":E,scope:b,ownerState:S,...f})});function CAe(e){return _e("MuiTableContainer",e)}Le("MuiTableContainer",["root"]);const PAe=e=>{const{classes:t}=e;return Te({root:["root"]},CAe,t)},EAe=ie("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Gu=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=PAe(s);return $.jsx(EAe,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function TAe(e){return _e("MuiTableHead",e)}Le("MuiTableHead",["root"]);const OAe=e=>{const{classes:t}=e;return Te({root:["root"]},TAe,t)},IAe=ie("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),kAe={variant:"head"},Z3="thead",_h=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableHead"}),{className:o,component:i=Z3,...a}=r,s={...r,component:i},l=OAe(s);return $.jsx(lI.Provider,{value:kAe,children:$.jsx(IAe,{as:i,className:pe(l.root,o),ref:n,role:i===Z3?null:"rowgroup",ownerState:s,...a})})});function MAe(e){return _e("MuiToolbar",e)}Le("MuiToolbar",["root","gutters","regular","dense"]);const AAe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},MAe,t)},$Ae=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(tt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),WJ=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=AAe(c);return $.jsx($Ae,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})}),GJ=lt($.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qJ=lt($.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),RAe=v.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:p={},slotProps:m={},...g}=t,y=nr(),b=G=>{l(G,0)},x=G=>{l(G,c-1)},S=G=>{l(G,c+1)},P=G=>{l(G,Math.max(0,Math.ceil(o/u)-1))},E=p.firstButton??An,T=p.lastButton??An,O=p.nextButton??An,k=p.previousButton??An,M=p.firstButtonIcon??BJ,I=p.lastButtonIcon??zJ,R=p.nextButtonIcon??qJ,_=p.previousButtonIcon??GJ,N=y?T:E,B=y?O:k,L=y?k:O,F=y?E:T,U=y?m.lastButton:m.firstButton,V=y?m.nextButton:m.previousButton,z=y?m.previousButton:m.nextButton,W=y?m.firstButton:m.lastButton;return $.jsxs("div",{ref:n,...g,children:[d&&$.jsx(N,{onClick:b,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...U,children:y?$.jsx(I,{...m.lastButtonIcon}):$.jsx(M,{...m.firstButtonIcon})}),$.jsx(B,{onClick:x,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...V??r,children:y?$.jsx(R,{...m.nextButtonIcon}):$.jsx(_,{...m.previousButtonIcon})}),$.jsx(L,{onClick:S,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...z??s,children:y?$.jsx(_,{...m.previousButtonIcon}):$.jsx(R,{...m.nextButtonIcon})}),f&&$.jsx(F,{onClick:P,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...W,children:y?$.jsx(M,{...m.firstButtonIcon}):$.jsx(I,{...m.lastButtonIcon})})]})});function DAe(e){return _e("MuiTablePagination",e)}const Xp=Le("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var eU;const _Ae=ie(Ie,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(tt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),LAe=ie(WJ,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Xp.actions}`]:t.actions,...t.toolbar})})(tt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Xp.actions}`]:{flexShrink:0,marginLeft:20}}))),NAe=ie("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),FAe=ie("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(tt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),jAe=ie(Dh,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Xp.selectIcon}`]:t.selectIcon,[`& .${Xp.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Xp.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),BAe=ie(tn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),zAe=ie("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(tt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function VAe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function HAe(e){return`Go to ${e} page`}const UAe=e=>{const{classes:t}=e;return Te({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},DAe,t)},RF=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=RAe,backIconButtonProps:i,colSpan:a,component:s=Ie,count:l,disabled:c=!1,getItemAriaLabel:u=HAe,labelDisplayedRows:d=VAe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:y,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:S={},showFirstButton:P=!1,showLastButton:E=!1,slotProps:T={},slots:O={},...k}=r,M=r,I=UAe(M),R=(T==null?void 0:T.select)??S,_=R.native?"option":BAe;let N;(s===Ie||s==="td")&&(N=a||1e3);const B=_n(R.id),L=_n(R.labelId),F=()=>l===-1?(y+1)*b:b===-1?l:Math.min(l,(y+1)*b),U={slots:O,slotProps:T},[V,z]=dn("root",{ref:n,className:I.root,elementType:_Ae,externalForwardedProps:{...U,component:s,...k},ownerState:M,additionalProps:{colSpan:N}}),[W,G]=dn("toolbar",{className:I.toolbar,elementType:LAe,externalForwardedProps:U,ownerState:M}),[J,K]=dn("spacer",{className:I.spacer,elementType:NAe,externalForwardedProps:U,ownerState:M}),[ne,re]=dn("selectLabel",{className:I.selectLabel,elementType:FAe,externalForwardedProps:U,ownerState:M,additionalProps:{id:L}}),[oe,fe]=dn("select",{className:I.select,elementType:jAe,externalForwardedProps:U,ownerState:M}),[se,ee]=dn("menuItem",{className:I.menuItem,elementType:_,externalForwardedProps:U,ownerState:M}),[ce,le]=dn("displayedRows",{className:I.displayedRows,elementType:zAe,externalForwardedProps:U,ownerState:M});return $.jsx(V,{...z,children:$.jsxs(W,{...G,children:[$.jsx(J,{...K}),x.length>1&&$.jsx(ne,{...re,children:f}),x.length>1&&$.jsx(oe,{variant:"standard",...!R.variant&&{input:eU||(eU=$.jsx(wv,{}))},value:b,onChange:g,id:B,labelId:L,...R,classes:{...R.classes,root:pe(I.input,I.selectRoot,(R.classes||{}).root),select:pe(I.select,(R.classes||{}).select),icon:pe(I.selectIcon,(R.classes||{}).icon)},disabled:c,...fe,children:x.map(Q=>v.createElement(se,{...ee,key:Q.label?Q.label:Q,value:Q.value?Q.value:Q},Q.label?Q.label:Q))}),$.jsx(ce,{...le,children:d({from:l===0?0:y*b+1,to:F(),count:l===-1?-1:l,page:y})}),$.jsx(o,{className:I.actions,backIconButtonProps:i,count:l,nextIconButtonProps:p,onPageChange:m,page:y,rowsPerPage:b,showFirstButton:P,showLastButton:E,slotProps:T.actions,slots:O.actions,getItemAriaLabel:u,disabled:c})]})})});function WAe(e){return _e("MuiTableRow",e)}const tU=Le("MuiTableRow",["root","selected","hover","head","footer"]),GAe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Te({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},WAe,t)},qAe=ie("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(tt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tU.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tU.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),nU="tr",Yt=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableRow"}),{className:o,component:i=nU,hover:a=!1,selected:s=!1,...l}=r,c=v.useContext(lI),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=GAe(u);return $.jsx(qAe,{as:i,ref:n,className:pe(d.root,o),role:i===nU?null:"row",ownerState:u,...l})});function KAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function YAe(e,t,n,r={},o=()=>{}){const{ease:i=KAe,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/a);if(t[e]=i(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const XAe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function QAe(e){const{onChange:t,...n}=e,r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return xn(()=>{const a=nS(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ba(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),$.jsx("div",{style:XAe,...n,ref:o})}function JAe(e){return _e("MuiTabScrollButton",e)}const ZAe=Le("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),e$e=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},JAe,t)},t$e=ie(Hi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${ZAe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),n$e=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,d=nr(),f={isRtl:d,...r},p=e$e(f),m=i.StartScrollButtonIcon??GJ,g=i.EndScrollButtonIcon??qJ,y=on({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),b=on({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return $.jsx(t$e,{component:"div",className:pe(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?$.jsx(m,{...y}):$.jsx(g,{...b})})});function r$e(e){return _e("MuiTabs",e)}const PP=Le("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rU=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,oU=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,CC=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},o$e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Te({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},r$e,l)},i$e=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PP.scrollButtons}`]:t.scrollButtons},{[`& .${PP.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(tt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${PP.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),a$e=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),s$e=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),l$e=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(tt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),c$e=ie(QAe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),iU={},u$e=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTabs"}),o=Ao(),i=nr(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:b=n$e,scrollButtons:x="auto",selectionFollowsFocus:S,slots:P={},slotProps:E={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:k="primary",value:M,variant:I="standard",visibleScrollbar:R=!1,..._}=r,N=I==="scrollable",B=y==="vertical",L=B?"scrollTop":"scrollLeft",F=B?"top":"left",U=B?"bottom":"right",V=B?"clientHeight":"clientWidth",z=B?"height":"width",W={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:y,vertical:B,scrollButtons:x,textColor:k,variant:I,visibleScrollbar:R,fixed:!N,hideScrollbar:N&&!R,scrollableX:N&&!B,scrollableY:N&&B,centered:c&&!N,scrollButtonsHideMobile:!p},G=o$e(W),J=on({elementType:P.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:W}),K=on({elementType:P.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:W}),[ne,re]=v.useState(!1),[oe,fe]=v.useState(iU),[se,ee]=v.useState(!1),[ce,le]=v.useState(!1),[Q,ue]=v.useState(!1),[ge,xe]=v.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,be=v.useRef(null),we=v.useRef(null),Oe=()=>{const Pe=be.current;let We;if(Pe){const Ot=Pe.getBoundingClientRect();We={clientWidth:Pe.clientWidth,scrollLeft:Pe.scrollLeft,scrollTop:Pe.scrollTop,scrollWidth:Pe.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let ft;if(Pe&&M!==!1){const Ot=we.current.children;if(Ot.length>0){const xt=Ot[me.get(M)];ft=xt?xt.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:ft}},ke=Ze(()=>{const{tabsMeta:Pe,tabMeta:We}=Oe();let ft=0,Ot;B?(Ot="top",We&&Pe&&(ft=We.top-Pe.top+Pe.scrollTop)):(Ot=i?"right":"left",We&&Pe&&(ft=(i?-1:1)*(We[Ot]-Pe[Ot]+Pe.scrollLeft)));const xt={[Ot]:ft,[z]:We?We[z]:0};if(typeof oe[Ot]!="number"||typeof oe[z]!="number")fe(xt);else{const vn=Math.abs(oe[Ot]-xt[Ot]),zn=Math.abs(oe[z]-xt[z]);(vn>=1||zn>=1)&&fe(xt)}}),je=(Pe,{animation:We=!0}={})=>{We?YAe(L,be.current,Pe,{duration:o.transitions.duration.standard}):be.current[L]=Pe},de=Pe=>{let We=be.current[L];B?We+=Pe:We+=Pe*(i?-1:1),je(We)},Re=()=>{const Pe=be.current[V];let We=0;const ft=Array.from(we.current.children);for(let Ot=0;Ot<ft.length;Ot+=1){const xt=ft[Ot];if(We+xt[V]>Pe){Ot===0&&(We=Pe);break}We+=xt[V]}return We},Me=()=>{de(-1*Re())},Ae=()=>{de(Re())},Ne=v.useCallback(Pe=>{xe({overflow:null,scrollbarWidth:Pe})},[]),Je=()=>{const Pe={};Pe.scrollbarSizeListener=N?$.jsx(c$e,{onChange:Ne,className:pe(G.scrollableX,G.hideScrollbar)}):null;const ft=N&&(x==="auto"&&(se||ce)||x===!0);return Pe.scrollButtonStart=ft?$.jsx(b,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:y,direction:i?"right":"left",onClick:Me,disabled:!se,...O,className:pe(G.scrollButtons,O.className)}):null,Pe.scrollButtonEnd=ft?$.jsx(b,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:K},orientation:y,direction:i?"left":"right",onClick:Ae,disabled:!ce,...O,className:pe(G.scrollButtons,O.className)}):null,Pe},nt=Ze(Pe=>{const{tabsMeta:We,tabMeta:ft}=Oe();if(!(!ft||!We)){if(ft[F]<We[F]){const Ot=We[L]+(ft[F]-We[F]);je(Ot,{animation:Pe})}else if(ft[U]>We[U]){const Ot=We[L]+(ft[U]-We[U]);je(Ot,{animation:Pe})}}}),st=Ze(()=>{N&&x!==!1&&ue(!Q)});v.useEffect(()=>{const Pe=nS(()=>{be.current&&ke()});let We;const ft=vn=>{vn.forEach(zn=>{zn.removedNodes.forEach(Wn=>{We==null||We.unobserve(Wn)}),zn.addedNodes.forEach(Wn=>{We==null||We.observe(Wn)})}),Pe(),st()},Ot=ba(be.current);Ot.addEventListener("resize",Pe);let xt;return typeof ResizeObserver<"u"&&(We=new ResizeObserver(Pe),Array.from(we.current.children).forEach(vn=>{We.observe(vn)})),typeof MutationObserver<"u"&&(xt=new MutationObserver(ft),xt.observe(we.current,{childList:!0})),()=>{Pe.clear(),Ot.removeEventListener("resize",Pe),xt==null||xt.disconnect(),We==null||We.disconnect()}},[ke,st]),v.useEffect(()=>{const Pe=Array.from(we.current.children),We=Pe.length;if(typeof IntersectionObserver<"u"&&We>0&&N&&x!==!1){const ft=Pe[0],Ot=Pe[We-1],xt={root:be.current,threshold:.99},vn=So=>{ee(!So[0].isIntersecting)},zn=new IntersectionObserver(vn,xt);zn.observe(ft);const Wn=So=>{le(!So[0].isIntersecting)},xo=new IntersectionObserver(Wn,xt);return xo.observe(Ot),()=>{zn.disconnect(),xo.disconnect()}}},[N,x,Q,u==null?void 0:u.length]),v.useEffect(()=>{re(!0)},[]),v.useEffect(()=>{ke()}),v.useEffect(()=>{nt(iU!==oe)},[nt,oe]),v.useImperativeHandle(l,()=>({updateIndicator:ke,updateScrollButtons:st}),[ke,st]);const $t=$.jsx(l$e,{...T,className:pe(G.indicator,T.className),ownerState:W,style:{...oe,...T.style}});let ct=0;const _t=v.Children.map(u,Pe=>{if(!v.isValidElement(Pe))return null;const We=Pe.props.value===void 0?ct:Pe.props.value;me.set(We,ct);const ft=We===M;return ct+=1,v.cloneElement(Pe,{fullWidth:I==="fullWidth",indicator:ft&&!ne&&$t,selected:ft,selectionFollowsFocus:S,onChange:g,textColor:k,value:We,...ct===1&&M===!1&&!Pe.props.tabIndex?{tabIndex:0}:{}})}),pt=Pe=>{const We=we.current,ft=mr(We).activeElement;if(ft.getAttribute("role")!=="tab")return;let xt=y==="horizontal"?"ArrowLeft":"ArrowUp",vn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(xt="ArrowRight",vn="ArrowLeft"),Pe.key){case xt:Pe.preventDefault(),CC(We,ft,oU);break;case vn:Pe.preventDefault(),CC(We,ft,rU);break;case"Home":Pe.preventDefault(),CC(We,null,rU);break;case"End":Pe.preventDefault(),CC(We,null,oU);break}},ot=Je();return $.jsxs(i$e,{className:pe(G.root,d),ownerState:W,ref:n,as:f,..._,children:[ot.scrollButtonStart,ot.scrollbarSizeListener,$.jsxs(a$e,{className:G.scroller,ownerState:W,style:{overflow:ge.overflow,[B?`margin${i?"Left":"Right"}`:"marginBottom"]:R?void 0:-ge.scrollbarWidth},ref:be,children:[$.jsx(s$e,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:G.flexContainer,ownerState:W,onKeyDown:pt,ref:we,role:"tablist",children:_t}),ne&&$t]}),ot.scrollButtonEnd]})});function d$e(e){return _e("MuiTextField",e)}Le("MuiTextField",["root"]);const f$e={standard:OF,filled:TF,outlined:AF},p$e=e=>{const{classes:t}=e;return Te({root:["root"]},d$e,t)},h$e=ie(Cv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gn=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:y,inputProps:b,InputProps:x,inputRef:S,label:P,maxRows:E,minRows:T,multiline:O=!1,name:k,onBlur:M,onChange:I,onFocus:R,placeholder:_,required:N=!1,rows:B,select:L=!1,SelectProps:F,slots:U={},slotProps:V={},type:z,value:W,variant:G="outlined",...J}=r,K={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:p,multiline:O,required:N,select:L,variant:G},ne=p$e(K),re=_n(g),oe=m&&re?`${re}-helper-text`:void 0,fe=P&&re?`${re}-label`:void 0,se=f$e[G],ee={slots:U,slotProps:{input:x,inputLabel:y,htmlInput:b,formHelperText:f,select:F,...V}},ce={},le=ee.slotProps.inputLabel;G==="outlined"&&(le&&typeof le.shrink<"u"&&(ce.notched=le.shrink),ce.label=P),L&&((!F||!F.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const[Q,ue]=dn("input",{elementType:se,externalForwardedProps:ee,additionalProps:ce,ownerState:K}),[ge,xe]=dn("inputLabel",{elementType:Pv,externalForwardedProps:ee,ownerState:K}),[me,be]=dn("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:K}),[we,Oe]=dn("formHelperText",{elementType:fS,externalForwardedProps:ee,ownerState:K}),[ke,je]=dn("select",{elementType:Dh,externalForwardedProps:ee,ownerState:K}),de=$.jsx(Q,{"aria-describedby":oe,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:p,multiline:O,name:k,rows:B,maxRows:E,minRows:T,type:z,value:W,id:re,inputRef:S,onBlur:M,onChange:I,onFocus:R,placeholder:_,inputProps:be,slots:{input:U.htmlInput?me:void 0},...ue});return $.jsxs(h$e,{className:pe(ne.root,s),disabled:u,error:d,fullWidth:p,ref:n,required:N,color:l,variant:G,ownerState:K,...J,children:[P!=null&&P!==""&&$.jsx(ge,{htmlFor:re,id:fe,...xe,children:P}),L?$.jsx(ke,{"aria-describedby":oe,id:re,labelId:fe,value:W,input:de,...je,children:a}):de,m&&$.jsx(we,{id:oe,...Oe,children:m})]})});function m$e(e){return _e("MuiToggleButton",e)}const $p=Le("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),KJ=v.createContext({}),YJ=v.createContext(void 0);function g$e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const y$e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Se(i)}`,a]};return Te(s,m$e,t)},v$e=ie(Hi,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Se(n.size)}`]]}})(tt(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${$p.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${$p.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Hn()).map(([t])=>({props:{color:t},style:{[`&.${$p.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Gb=v.forwardRef(function(t,n){const{value:r,...o}=v.useContext(KJ),i=v.useContext(YJ),a=ih({...o,selected:g$e(t.value,r)},t),s=rt({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:f=!1,fullWidth:p=!1,onChange:m,onClick:g,selected:y,size:b="medium",value:x,...S}=s,P={...s,color:u,disabled:d,disableFocusRipple:f,fullWidth:p,size:b},E=y$e(P),T=k=>{g&&(g(k,x),k.defaultPrevented)||m&&m(k,x)},O=i||"";return $.jsx(v$e,{className:pe(o.className,E.root,c,O),disabled:d,focusRipple:!f,ref:n,onClick:T,onChange:m,value:x,ownerState:P,"aria-pressed":y,...S,children:l})});function b$e(e){return _e("MuiToggleButtonGroup",e)}const Pr=Le("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w$e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Se(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Te(i,b$e,t)},x$e=ie("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pr.grouped}`]:t.grouped},{[`& .${Pr.grouped}`]:t[`grouped${Se(n.orientation)}`]},{[`& .${Pr.firstButton}`]:t.firstButton},{[`& .${Pr.lastButton}`]:t.lastButton},{[`& .${Pr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(tt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Pr.grouped}`]:{[`&.${Pr.selected} + .${Pr.grouped}.${Pr.selected}`]:{borderTop:0,marginTop:0}},[`& .${Pr.firstButton},& .${Pr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Pr.lastButton},& .${Pr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Pr.lastButton}.${$p.disabled},& .${Pr.middleButton}.${$p.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Pr.grouped}`]:{[`&.${Pr.selected} + .${Pr.grouped}.${Pr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Pr.firstButton},& .${Pr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Pr.lastButton},& .${Pr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Pr.lastButton}.${$p.disabled},& .${Pr.middleButton}.${$p.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),S$e=v.forwardRef(function(t,n){const r=rt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:p,...m}=r,g={...r,disabled:s,fullWidth:c,orientation:d,size:f},y=w$e(g),b=v.useCallback((O,k)=>{if(!u)return;const M=p&&p.indexOf(k);let I;p&&M>=0?(I=p.slice(),I.splice(M,1)):I=p?p.concat(k):[k],u(O,I)},[u,p]),x=v.useCallback((O,k)=>{u&&u(O,p===k?null:k)},[u,p]),S=v.useMemo(()=>({className:y.grouped,onChange:l?x:b,value:p,size:f,fullWidth:c,color:a,disabled:s}),[y.grouped,l,x,b,p,f,c,a,s]),P=TY(o),E=P.length,T=O=>{const k=O===0,M=O===E-1;return k&&M?"":k?y.firstButton:M?y.lastButton:y.middleButton};return $.jsx(x$e,{role:"group",className:pe(y.root,i),ref:n,ownerState:g,...m,children:$.jsx(KJ.Provider,{value:S,children:P.map((O,k)=>$.jsx(YJ.Provider,{value:T(k),children:O},k))})})}),C$e=(...e)=>{console!=null&&console.warn&&(Qp(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},aU={},nD=(...e)=>{Qp(e[0])&&aU[e[0]]||(Qp(e[0])&&(aU[e[0]]=new Date),C$e(...e))},XJ=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},rD=(e,t,n)=>{e.loadNamespaces(t,XJ(e,n))},sU=(e,t,n,r)=>{if(Qp(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return rD(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,XJ(e,r))},P$e=(e,t,n={})=>!t.languages||!t.languages.length?(nD("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Qp=e=>typeof e=="string",E$e=e=>typeof e=="object"&&e!==null,T$e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,O$e={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},I$e=e=>O$e[e],k$e=e=>e.replace(T$e,I$e);let oD={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:k$e};const M$e=(e={})=>{oD={...oD,...e}},A$e=()=>oD;let QJ;const $$e=e=>{QJ=e},R$e=()=>QJ,D$e={type:"3rdParty",init(e){M$e(e.options.react),$$e(e)}},_$e=v.createContext();class L$e{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const N$e=(e,t)=>{const n=v.useRef();return v.useEffect(()=>{n.current=e},[e,t]),n.current},JJ=(e,t,n,r)=>e.getFixedT(t,n,r),F$e=(e,t,n,r)=>v.useCallback(JJ(e,t,n,r),[e,t,n,r]),qe=(e,t={})=>{var P,E,T,O;const{i18n:n}=t,{i18n:r,defaultNS:o}=v.useContext(_$e)||{},i=n||r||R$e();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new L$e),!i){nD("You will need to pass in an i18next instance by using initReactI18next");const k=(I,R)=>Qp(R)?R:E$e(R)&&Qp(R.defaultValue)?R.defaultValue:Array.isArray(I)?I[I.length-1]:I,M=[k,{},!1];return M.t=k,M.i18n={},M.ready=!1,M}(P=i.options.react)!=null&&P.wait&&nD("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...A$e(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=o||((E=i.options)==null?void 0:E.defaultNS);c=Qp(c)?[c]:c||["translation"],(O=(T=i.reportNamespaces).addUsedNamespaces)==null||O.call(T,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(k=>P$e(k,i,a)),d=F$e(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),f=()=>d,p=()=>JJ(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[m,g]=v.useState(f);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const b=N$e(y),x=v.useRef(!0);v.useEffect(()=>{const{bindI18n:k,bindI18nStore:M}=a;x.current=!0,!u&&!s&&(t.lng?sU(i,t.lng,c,()=>{x.current&&g(p)}):rD(i,c,()=>{x.current&&g(p)})),u&&b&&b!==y&&x.current&&g(p);const I=()=>{x.current&&g(p)};return k&&(i==null||i.on(k,I)),M&&(i==null||i.store.on(M,I)),()=>{x.current=!1,i&&(k==null||k.split(" ").forEach(R=>i.off(R,I))),M&&i&&M.split(" ").forEach(R=>i.store.off(R,I))}},[i,y]),v.useEffect(()=>{x.current&&u&&g(f)},[i,l,u]);const S=[m,i,u];if(S.t=m,S.i18n=i,S.ready=u,u||!u&&!s)return S;throw new Promise(k=>{t.lng?sU(i,t.lng,c,()=>k()):rD(i,c,()=>k())})},ga=()=>{const[e]=qe();return C(Ln,{sx:{textAlign:"center"},children:e("loading")})},bo=()=>C(Ln,{sx:{height:200,alignItems:"center",mt:2},component:Gt,direction:"column",justifyContent:"center",children:C(PJ,{})}),ZJ=lt($.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Tv=lt($.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),hS=lt($.jsx("path",{d:"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z"}),"HistoryEdu"),Ju=lt($.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Photo"),mS=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Yi=({title:e,subtitle:t,isOpen:n,closeFn:r,children:o})=>C(Sv,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X(io,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[C(Zl,{title:e,subheader:t,action:C(mS,{onClick:r})}),C(wi,{children:o}),C(os,{})]})}),cI=e=>{const[t]=qe(),n=e.height?e.height:"50vh";return C(Mt,{children:X(Ln,{sx:{height:n,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"},children:[C(ut,{variant:"h6",mr:3,children:t("nothingHereYet")}),C(ut,{mr:3,children:t("nothingHereYetAction")})]})})},DF=e=>{const[t]=qe(),[n,r]=Y.useState(!1),o=()=>r(!0),i=()=>r(!1),a=e.link!==void 0?C(yt,{size:"small",variant:"contained",href:e.link,children:t("add")}):C(yt,{size:"small",variant:"contained",onClick:o,children:t("add")});return X(Mt,{children:[X(io,{children:[C(Zl,{title:e.title,subheader:".",sx:{paddingBottom:0}}),C(wi,{sx:{paddingTop:0,height:"500px"},children:C(cI,{})}),C(os,{children:a})]}),C(Yi,{title:t("add"),isOpen:n,closeFn:i,children:e.modalContent})]})};function eZ(e,t){return function(){return e.apply(t,arguments)}}const{toString:j$e}=Object.prototype,{getPrototypeOf:_F}=Object,uI=(e=>t=>{const n=j$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ec=e=>(e=e.toLowerCase(),t=>uI(t)===e),dI=e=>t=>typeof t===e,{isArray:Ov}=Array,Uw=dI("undefined");function B$e(e){return e!==null&&!Uw(e)&&e.constructor!==null&&!Uw(e.constructor)&&Ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tZ=ec("ArrayBuffer");function z$e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tZ(e.buffer),t}const V$e=dI("string"),Ga=dI("function"),nZ=dI("number"),fI=e=>e!==null&&typeof e=="object",H$e=e=>e===!0||e===!1,EP=e=>{if(uI(e)!=="object")return!1;const t=_F(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},U$e=ec("Date"),W$e=ec("File"),G$e=ec("Blob"),q$e=ec("FileList"),K$e=e=>fI(e)&&Ga(e.pipe),Y$e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ga(e.append)&&((t=uI(e))==="formdata"||t==="object"&&Ga(e.toString)&&e.toString()==="[object FormData]"))},X$e=ec("URLSearchParams"),[Q$e,J$e,Z$e,eRe]=["ReadableStream","Request","Response","Headers"].map(ec),tRe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ov(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function rZ(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Rp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,oZ=e=>!Uw(e)&&e!==Rp;function iD(){const{caseless:e}=oZ(this)&&this||{},t={},n=(r,o)=>{const i=e&&rZ(t,o)||o;EP(t[i])&&EP(r)?t[i]=iD(t[i],r):EP(r)?t[i]=iD({},r):Ov(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&gS(arguments[r],n);return t}const nRe=(e,t,n,{allOwnKeys:r}={})=>(gS(t,(o,i)=>{n&&Ga(o)?e[i]=eZ(o,n):e[i]=o},{allOwnKeys:r}),e),rRe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oRe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},iRe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&_F(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aRe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sRe=e=>{if(!e)return null;if(Ov(e))return e;let t=e.length;if(!nZ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lRe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_F(Uint8Array)),cRe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},uRe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dRe=ec("HTMLFormElement"),fRe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),lU=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pRe=ec("RegExp"),iZ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gS(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},hRe=e=>{iZ(e,(t,n)=>{if(Ga(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ga(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mRe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ov(e)?r(e):r(String(e).split(t)),n},gRe=()=>{},yRe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,a$="abcdefghijklmnopqrstuvwxyz",cU="0123456789",aZ={DIGIT:cU,ALPHA:a$,ALPHA_DIGIT:a$+a$.toUpperCase()+cU},vRe=(e=16,t=aZ.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function bRe(e){return!!(e&&Ga(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wRe=e=>{const t=new Array(10),n=(r,o)=>{if(fI(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Ov(r)?[]:{};return gS(r,(a,s)=>{const l=n(a,o+1);!Uw(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},xRe=ec("AsyncFunction"),SRe=e=>e&&(fI(e)||Ga(e))&&Ga(e.then)&&Ga(e.catch),sZ=((e,t)=>e?setImmediate:t?((n,r)=>(Rp.addEventListener("message",({source:o,data:i})=>{o===Rp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Rp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ga(Rp.postMessage)),CRe=typeof queueMicrotask<"u"?queueMicrotask.bind(Rp):typeof process<"u"&&process.nextTick||sZ,De={isArray:Ov,isArrayBuffer:tZ,isBuffer:B$e,isFormData:Y$e,isArrayBufferView:z$e,isString:V$e,isNumber:nZ,isBoolean:H$e,isObject:fI,isPlainObject:EP,isReadableStream:Q$e,isRequest:J$e,isResponse:Z$e,isHeaders:eRe,isUndefined:Uw,isDate:U$e,isFile:W$e,isBlob:G$e,isRegExp:pRe,isFunction:Ga,isStream:K$e,isURLSearchParams:X$e,isTypedArray:lRe,isFileList:q$e,forEach:gS,merge:iD,extend:nRe,trim:tRe,stripBOM:rRe,inherits:oRe,toFlatObject:iRe,kindOf:uI,kindOfTest:ec,endsWith:aRe,toArray:sRe,forEachEntry:cRe,matchAll:uRe,isHTMLForm:dRe,hasOwnProperty:lU,hasOwnProp:lU,reduceDescriptors:iZ,freezeMethods:hRe,toObjectSet:mRe,toCamelCase:fRe,noop:gRe,toFiniteNumber:yRe,findKey:rZ,global:Rp,isContextDefined:oZ,ALPHABET:aZ,generateString:vRe,isSpecCompliantForm:bRe,toJSONObject:wRe,isAsyncFn:xRe,isThenable:SRe,setImmediate:sZ,asap:CRe};function nn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}De.inherits(nn,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:De.toJSONObject(this.config),code:this.code,status:this.status}}});const lZ=nn.prototype,cZ={};["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=>{cZ[e]={value:e}});Object.defineProperties(nn,cZ);Object.defineProperty(lZ,"isAxiosError",{value:!0});nn.from=(e,t,n,r,o,i)=>{const a=Object.create(lZ);return De.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const PRe=null;function aD(e){return De.isPlainObject(e)||De.isArray(e)}function uZ(e){return De.endsWith(e,"[]")?e.slice(0,-2):e}function uU(e,t,n){return e?e.concat(t).map(function(o,i){return o=uZ(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ERe(e){return De.isArray(e)&&!e.some(aD)}const TRe=De.toFlatObject(De,{},null,function(t){return/^is[A-Z]/.test(t)});function pI(e,t,n){if(!De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=De.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!De.isUndefined(y[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(t);if(!De.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(De.isDate(m))return m.toISOString();if(!l&&De.isBlob(m))throw new nn("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(m)||De.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(De.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(De.isArray(m)&&ERe(m)||(De.isFileList(m)||De.endsWith(g,"[]"))&&(b=De.toArray(m)))return g=uZ(g),b.forEach(function(S,P){!(De.isUndefined(S)||S===null)&&t.append(a===!0?uU([g],P,i):a===null?g:g+"[]",c(S))}),!1}return aD(m)?!0:(t.append(uU(y,g,i),c(m)),!1)}const d=[],f=Object.assign(TRe,{defaultVisitor:u,convertValue:c,isVisitable:aD});function p(m,g){if(!De.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),De.forEach(m,function(b,x){(!(De.isUndefined(b)||b===null)&&o.call(t,b,De.isString(x)?x.trim():x,g,f))===!0&&p(b,g?g.concat(x):[x])}),d.pop()}}if(!De.isObject(e))throw new TypeError("data must be an object");return p(e),t}function dU(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function LF(e,t){this._pairs=[],e&&pI(e,this,t)}const dZ=LF.prototype;dZ.append=function(t,n){this._pairs.push([t,n])};dZ.toString=function(t){const n=t?function(r){return t.call(this,r,dU)}:dU;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ORe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fZ(e,t,n){if(!t)return e;const r=n&&n.encode||ORe;De.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=De.isURLSearchParams(t)?t.toString():new LF(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class fU{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){De.forEach(this.handlers,function(r){r!==null&&t(r)})}}const pZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IRe=typeof URLSearchParams<"u"?URLSearchParams:LF,kRe=typeof FormData<"u"?FormData:null,MRe=typeof Blob<"u"?Blob:null,ARe={isBrowser:!0,classes:{URLSearchParams:IRe,FormData:kRe,Blob:MRe},protocols:["http","https","file","blob","url","data"]},NF=typeof window<"u"&&typeof document<"u",sD=typeof navigator=="object"&&navigator||void 0,$Re=NF&&(!sD||["ReactNative","NativeScript","NS"].indexOf(sD.product)<0),RRe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",DRe=NF&&window.location.href||"http://localhost",_Re=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:NF,hasStandardBrowserEnv:$Re,hasStandardBrowserWebWorkerEnv:RRe,navigator:sD,origin:DRe},Symbol.toStringTag,{value:"Module"})),vi={..._Re,...ARe};function LRe(e,t){return pI(e,new vi.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return vi.isNode&&De.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function NRe(e){return De.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FRe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function hZ(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&De.isArray(o)?o.length:a,l?(De.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!De.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&De.isArray(o[a])&&(o[a]=FRe(o[a])),!s)}if(De.isFormData(e)&&De.isFunction(e.entries)){const n={};return De.forEachEntry(e,(r,o)=>{t(NRe(r),o,n,0)}),n}return null}function jRe(e,t,n){if(De.isString(e))try{return(t||JSON.parse)(e),De.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const yS={transitional:pZ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=De.isObject(t);if(i&&De.isHTMLForm(t)&&(t=new FormData(t)),De.isFormData(t))return o?JSON.stringify(hZ(t)):t;if(De.isArrayBuffer(t)||De.isBuffer(t)||De.isStream(t)||De.isFile(t)||De.isBlob(t)||De.isReadableStream(t))return t;if(De.isArrayBufferView(t))return t.buffer;if(De.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LRe(t,this.formSerializer).toString();if((s=De.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return pI(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),jRe(t)):t}],transformResponse:[function(t){const n=this.transitional||yS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(De.isResponse(t)||De.isReadableStream(t))return t;if(t&&De.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?nn.from(s,nn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vi.classes.FormData,Blob:vi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],e=>{yS.headers[e]={}});const BRe=De.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"]),zRe=e=>{const t={};let n,r,o;return e&&e.split(`
-`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&BRe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},pU=Symbol("internals");function qb(e){return e&&String(e).trim().toLowerCase()}function TP(e){return e===!1||e==null?e:De.isArray(e)?e.map(TP):String(e)}function VRe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const HRe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function s$(e,t,n,r,o){if(De.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!De.isString(t)){if(De.isString(r))return t.indexOf(r)!==-1;if(De.isRegExp(r))return r.test(t)}}function URe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function WRe(e,t){const n=De.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ya{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=qb(l);if(!u)throw new Error("header name must be a non-empty string");const d=De.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=TP(s))}const a=(s,l)=>De.forEach(s,(c,u)=>i(c,u,l));if(De.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(De.isString(t)&&(t=t.trim())&&!HRe(t))a(zRe(t),n);else if(De.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=qb(t),t){const r=De.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return VRe(o);if(De.isFunction(n))return n.call(this,o,r);if(De.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qb(t),t){const r=De.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||s$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=qb(a),a){const s=De.findKey(r,a);s&&(!n||s$(r,r[s],s,n))&&(delete r[s],o=!0)}}return De.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||s$(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return De.forEach(this,(o,i)=>{const a=De.findKey(r,i);if(a){n[a]=TP(o),delete n[i];return}const s=t?URe(i):String(i).trim();s!==i&&delete n[i],n[s]=TP(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return De.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&De.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[pU]=this[pU]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=qb(a);r[s]||(WRe(o,a),r[s]=!0)}return De.isArray(t)?t.forEach(i):i(t),this}}ya.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);De.reduceDescriptors(ya.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});De.freezeMethods(ya);function l$(e,t){const n=this||yS,r=t||n,o=ya.from(r.headers);let i=r.data;return De.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function mZ(e){return!!(e&&e.__CANCEL__)}function Iv(e,t,n){nn.call(this,e??"canceled",nn.ERR_CANCELED,t,n),this.name="CanceledError"}De.inherits(Iv,nn,{__CANCEL__:!0});function gZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nn("Request failed with status code "+n.status,[nn.ERR_BAD_REQUEST,nn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function GRe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qRe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function KRe(e,t){let n=0,r=1e3/t,o,i;const a=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const OE=(e,t,n=3)=>{let r=0;const o=qRe(50,250);return KRe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},hU=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mU=e=>(...t)=>De.asap(()=>e(...t)),YRe=vi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,vi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(vi.origin),vi.navigator&&/(msie|trident)/i.test(vi.navigator.userAgent)):()=>!0,XRe=vi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];De.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),De.isString(r)&&a.push("path="+r),De.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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 QRe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JRe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yZ(e,t){return e&&!QRe(t)?JRe(e,t):t}const gU=e=>e instanceof ya?{...e}:e;function yh(e,t){t=t||{};const n={};function r(c,u,d,f){return De.isPlainObject(c)&&De.isPlainObject(u)?De.merge.call({caseless:f},c,u):De.isPlainObject(u)?De.merge({},u):De.isArray(u)?u.slice():u}function o(c,u,d,f){if(De.isUndefined(u)){if(!De.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function i(c,u){if(!De.isUndefined(u))return r(void 0,u)}function a(c,u){if(De.isUndefined(u)){if(!De.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>o(gU(c),gU(u),d,!0)};return De.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);De.isUndefined(f)&&d!==s||(n[u]=f)}),n}const vZ=e=>{const t=yh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ya.from(a),t.url=fZ(yZ(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(De.isFormData(n)){if(vi.hasStandardBrowserEnv||vi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(vi.hasStandardBrowserEnv&&(r&&De.isFunction(r)&&(r=r(t)),r||r!==!1&&YRe(t.url))){const c=o&&i&&XRe.read(i);c&&a.set(o,c)}return t},ZRe=typeof XMLHttpRequest<"u",e2e=ZRe&&function(e){return new Promise(function(n,r){const o=vZ(e);let i=o.data;const a=ya.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,p,m;function g(){p&&p(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const S=ya.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};gZ(function(O){n(O),g()},function(O){r(O),g()},E),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new nn("Request aborted",nn.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new nn("Network Error",nn.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||pZ;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),r(new nn(P,E.clarifyTimeoutError?nn.ETIMEDOUT:nn.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&De.forEach(a.toJSON(),function(P,E){y.setRequestHeader(E,P)}),De.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),c&&([f,m]=OE(c,!0),y.addEventListener("progress",f)),l&&y.upload&&([d,p]=OE(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=S=>{y&&(r(!S||S.type?new Iv(null,e,y):S),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=GRe(o.url);if(x&&vi.protocols.indexOf(x)===-1){r(new nn("Unsupported protocol "+x+":",nn.ERR_BAD_REQUEST,e));return}y.send(i||null)})},t2e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof nn?u:new Iv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new nn(`timeout ${t} of ms exceeded`,nn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>De.asap(s),l}},n2e=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},r2e=async function*(e,t){for await(const n of o2e(e))yield*n2e(n,t)},o2e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},yU=(e,t,n,r)=>{const o=r2e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},hI=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bZ=hI&&typeof ReadableStream=="function",i2e=hI&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wZ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},a2e=bZ&&wZ(()=>{let e=!1;const t=new Request(vi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),vU=64*1024,lD=bZ&&wZ(()=>De.isReadableStream(new Response("").body)),IE={stream:lD&&(e=>e.body)};hI&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!IE[t]&&(IE[t]=De.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nn(`Response type '${t}' is not supported`,nn.ERR_NOT_SUPPORT,r)})})})(new Response);const s2e=async e=>{if(e==null)return 0;if(De.isBlob(e))return e.size;if(De.isSpecCompliantForm(e))return(await new Request(vi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(De.isArrayBufferView(e)||De.isArrayBuffer(e))return e.byteLength;if(De.isURLSearchParams(e)&&(e=e+""),De.isString(e))return(await i2e(e)).byteLength},l2e=async(e,t)=>{const n=De.toFiniteNumber(e.getContentLength());return n??s2e(t)},c2e=hI&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=vZ(e);c=c?(c+"").toLowerCase():"text";let p=t2e([o,i&&i.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&a2e&&n!=="get"&&n!=="head"&&(y=await l2e(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(De.isFormData(r)&&(T=E.headers.get("content-type"))&&u.setContentType(T),E.body){const[O,k]=hU(y,OE(mU(l)));r=yU(E.body,vU,O,k)}}De.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(m);const S=lD&&(c==="stream"||c==="response");if(lD&&(s||S&&g)){const E={};["status","statusText","headers"].forEach(M=>{E[M]=x[M]});const T=De.toFiniteNumber(x.headers.get("content-length")),[O,k]=s&&hU(T,OE(mU(s),!0))||[];x=new Response(yU(x.body,vU,O,()=>{k&&k(),g&&g()}),E)}c=c||"text";let P=await IE[De.findKey(IE,c)||"text"](x,e);return!S&&g&&g(),await new Promise((E,T)=>{gZ(E,T,{data:P,headers:ya.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:m})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new nn("Network Error",nn.ERR_NETWORK,e,m),{cause:b.cause||b}):nn.from(b,b&&b.code,e,m)}}),cD={http:PRe,xhr:e2e,fetch:c2e};De.forEach(cD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bU=e=>`- ${e}`,u2e=e=>De.isFunction(e)||e===null||e===!1,xZ={getAdapter:e=>{e=De.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!u2e(n)&&(r=cD[(a=String(n)).toLowerCase()],r===void 0))throw new nn(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
-`+i.map(bU).join(`
-`):" "+bU(i[0]):"as no adapter specified";throw new nn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:cD};function c$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Iv(null,e)}function wU(e){return c$(e),e.headers=ya.from(e.headers),e.data=l$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xZ.getAdapter(e.adapter||yS.adapter)(e).then(function(r){return c$(e),r.data=l$.call(e,e.transformResponse,r),r.headers=ya.from(r.headers),r},function(r){return mZ(r)||(c$(e),r&&r.response&&(r.response.data=l$.call(e,e.transformResponse,r.response),r.response.headers=ya.from(r.response.headers))),Promise.reject(r)})}const SZ="1.7.9",mI={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mI[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xU={};mI.transitional=function(t,n,r){function o(i,a){return"[Axios v"+SZ+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new nn(o(a," has been removed"+(n?" in "+n:"")),nn.ERR_DEPRECATED);return n&&!xU[a]&&(xU[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};mI.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function d2e(e,t,n){if(typeof e!="object")throw new nn("options must be an object",nn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new nn("option "+i+" must be "+l,nn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nn("Unknown option "+i,nn.ERR_BAD_OPTION)}}const OP={assertOptions:d2e,validators:mI},lc=OP.validators;class Jp{constructor(t){this.defaults=t,this.interceptors={request:new fU,response:new fU}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
-`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&OP.assertOptions(r,{silentJSONParsing:lc.transitional(lc.boolean),forcedJSONParsing:lc.transitional(lc.boolean),clarifyTimeoutError:lc.transitional(lc.boolean)},!1),o!=null&&(De.isFunction(o)?n.paramsSerializer={serialize:o}:OP.assertOptions(o,{encode:lc.function,serialize:lc.function},!0)),OP.assertOptions(n,{baseUrl:lc.spelling("baseURL"),withXsrfToken:lc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&De.merge(i.common,i[n.method]);i&&De.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ya.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const m=[wU.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{p=m(p)}catch(y){g.call(this,y);break}}try{u=wU.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=yh(this.defaults,t);const n=yZ(t.baseURL,t.url);return fZ(n,t.params,t.paramsSerializer)}}De.forEach(["delete","get","head","options"],function(t){Jp.prototype[t]=function(n,r){return this.request(yh(r||{},{method:t,url:n,data:(r||{}).data}))}});De.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(yh(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Jp.prototype[t]=n(),Jp.prototype[t+"Form"]=n(!0)});class FF{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Iv(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new FF(function(o){t=o}),cancel:t}}}function f2e(e){return function(n){return e.apply(null,n)}}function p2e(e){return De.isObject(e)&&e.isAxiosError===!0}const uD={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(uD).forEach(([e,t])=>{uD[t]=e});function CZ(e){const t=new Jp(e),n=eZ(Jp.prototype.request,t);return De.extend(n,Jp.prototype,t,{allOwnKeys:!0}),De.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return CZ(yh(e,o))},n}const dt=CZ(yS);dt.Axios=Jp;dt.CanceledError=Iv;dt.CancelToken=FF;dt.isCancel=mZ;dt.VERSION=SZ;dt.toFormData=pI;dt.AxiosError=nn;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=f2e;dt.isAxiosError=p2e;dt.mergeConfig=yh;dt.AxiosHeaders=ya;dt.formToJSON=e=>hZ(De.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=xZ.getAdapter;dt.HttpStatusCode=uD;dt.default=dt;const zg={protein:4,carbohydrates:4,fat:9};class za{constructor(t){pn(this,"bodyWeight",0);pn(this,"energy",0);pn(this,"protein",0);pn(this,"carbohydrates",0);pn(this,"carbohydratesSugar",0);pn(this,"fat",0);pn(this,"fatSaturated",0);pn(this,"fiber",0);pn(this,"sodium",0);this.energy=(t==null?void 0:t.energy)??0,this.protein=(t==null?void 0:t.protein)??0,this.carbohydrates=(t==null?void 0:t.carbohydrates)??0,this.carbohydratesSugar=(t==null?void 0:t.carbohydratesSugar)??0,this.fat=(t==null?void 0:t.fat)??0,this.fatSaturated=(t==null?void 0:t.fatSaturated)??0,this.fiber=(t==null?void 0:t.fiber)??0,this.sodium=(t==null?void 0:t.sodium)??0,this.bodyWeight=(t==null?void 0:t.bodyWeight)??0}get energyKj(){return this.energy*4.184}get isEmpty(){return this.energy===0&&this.protein===0&&this.carbohydrates===0&&this.fat===0}get percent(){return{protein:this.protein>0?this.protein*zg.protein/this.energy*100:0,carbohydrates:this.carbohydrates>0?this.carbohydrates*zg.carbohydrates/this.energy*100:0,fat:this.fat>0?this.fat*zg.fat/this.energy*100:0}}get perBodyKg(){return{protein:this.bodyWeight>0?this.protein/this.bodyWeight:0,carbohydrates:this.bodyWeight>0?this.carbohydrates/this.bodyWeight:0,fat:this.bodyWeight>0?this.fat/this.bodyWeight:0}}static fromIngredient(t,n,r){const o=new za,i=r===null?n:n*r.amount*r.grams;return o.energy=t.energy*i/100,o.protein=t.protein*i/100,o.carbohydrates=t.carbohydrates*i/100,o.carbohydratesSugar=t.carbohydratesSugar?t.carbohydratesSugar*i/100:0,o.fat=t.fat*i/100,o.fatSaturated=t.fatSaturated?t.fatSaturated*i/100:0,o.fiber=t.fiber?t.fiber*i/100:0,o.sodium=t.sodium?t.sodium*i/100:0,o}add(t){return this.energy+=t.energy,this.protein+=t.protein,this.carbohydrates+=t.carbohydrates,this.carbohydratesSugar+=t.carbohydratesSugar,this.fat+=t.fat,this.fatSaturated+=t.fatSaturated,this.fiber+=t.fiber,this.sodium+=t.sodium,this}toString(){return`e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`}equals(t){return this.energy===t.energy&&this.protein===t.protein&&this.carbohydrates===t.carbohydrates&&this.carbohydratesSugar===t.carbohydratesSugar&&this.fat===t.fat&&this.fatSaturated===t.fatSaturated&&this.fiber===t.fiber&&this.sodium===t.sodium}}function ni(e){return e.toISOString().split("T")[0]}const PZ=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];function cf(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function kE(e,t){return e==null?null:e.toLocaleTimeString(t?[t]:[],{hour:"2-digit",minute:"2-digit"})}function h2e(e){if(e==null)return null;const[t,n]=e.toTimeString().split(":");return`${t}:${n}`}function m2e(e){if(e==null)return null;const[t,n]=e.split(":"),r=new Date;return r.setHours(parseInt(t)),r.setMinutes(parseInt(n)),r}function g2e(e,t=new Date){const r={lastWeek:()=>t.setDate(t.getDate()-7),lastMonth:()=>t.setMonth(t.getMonth()-1),lastHalfYear:()=>t.setMonth(t.getMonth()-6),lastYear:()=>t.setFullYear(t.getFullYear()-1),"":void 0}[e];if(r)r();else return;return ni(t)}class EZ{constructor(t,n,r,o){pn(this,"items",[]);pn(this,"diaryEntries",[]);this.id=t,this.order=n,this.time=r,this.name=o}get timeHHMMLocale(){return kE(this.time)}get displayName(){return this.name?this.name:this.timeHHMMLocale}get diaryEntriesToday(){return this.diaryEntries.filter(t=>cf(t.datetime,new Date))}get plannedNutritionalValues(){const t=new za;for(const n of this.items)t.add(n.nutritionalValues);return t}get loggedNutritionalValuesToday(){const t=new za;for(const n of this.diaryEntriesToday)t.add(n.nutritionalValues);return t}}class jF{fromJson(t){return new EZ(t.id,t.order,m2e(t.time),t.name)}toJson(t){return{name:t.name,order:t.order,time:kE(t.time)}}}const IP=-1;class y2e{constructor(t,n,r,o=!1,i=null,a=null,s=null,l=null,c=null,u=null,d=null){pn(this,"meals",[]);pn(this,"diaryEntries",[]);this.id=t,this.creationDate=n,this.description=r,this.onlyLogging=o,this.goalEnergy=i,this.goalProtein=a,this.goalCarbohydrates=s,this.goalFiber=l,this.goalSodium=c,this.goalFat=u,this.goalFatsSaturated=d}get hasAnyGoals(){return this.goalEnergy!==null||this.goalProtein!==null||this.goalCarbohydrates!==null||this.goalFat!==null}get hasAnyAdvancedGoals(){return this.goalFiber!==null||this.goalSodium!==null||this.goalFatsSaturated!==null}get hasAnyPlanned(){return this.hasAnyGoals||this.plannedNutritionalValues.energy>0}get plannedNutritionalValues(){if(this.hasAnyGoals)return new za({energy:this.goalEnergy,carbohydrates:this.goalCarbohydrates,protein:this.goalProtein,fat:this.goalFat});const t=new za;for(const n of this.meals)t.add(n.plannedNutritionalValues);return t}get loggedNutritionalValues7DayAvg(){const t=new Date,n=new Date(t.getTime()-7*24*60*60*1e3),r=this.diaryEntries.filter(o=>o.datetime>=n);return this.getAverageNutritionalValuesFromDiaryEntries(r)}get loggedNutritionalValuesToday(){const t=this.diaryEntries.filter(n=>cf(n.datetime,new Date));return this.getNutritionalValuesFromDiaryEntries(t)}get groupDiaryEntries(){return this.diaryEntries.reduce((t,n)=>{const r=n.datetime.toISOString().split("T")[0],o=t.get(r)||{entries:[],nutritionalValues:new za};return o.entries.push(n),o.nutritionalValues.add(n.nutritionalValues),t.set(r,o),t},new Map)}get percentageValuesLoggedToday(){return new za({protein:this.loggedNutritionalValuesToday.protein/this.plannedNutritionalValues.protein*100,carbohydrates:this.loggedNutritionalValuesToday.carbohydrates/this.plannedNutritionalValues.carbohydrates*100,fat:this.loggedNutritionalValuesToday.fat/this.plannedNutritionalValues.fat*100})}pseudoMealOthers(t){const n=new EZ(IP,-1,null,t);return n.diaryEntries=this.diaryEntries.filter(r=>r.mealId===null),n}loggedNutritionalValuesDate(t){return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(t))}loggedEntriesDate(t){return this.diaryEntries.filter(n=>cf(n.datetime,t))}getAverageNutritionalValuesFromDiaryEntries(t){const n=t.length,r=this.getNutritionalValuesFromDiaryEntries(t);return n===0||(r.energy=r.energy/n,r.protein=r.protein/n,r.carbohydrates=r.carbohydrates/n,r.carbohydratesSugar=r.carbohydratesSugar/n,r.fat=r.fat/n,r.fatSaturated=r.fatSaturated/n,r.fiber=r.fiber/n,r.sodium=r.sodium/n),r}getNutritionalValuesFromDiaryEntries(t){return t.reduce((n,r)=>n.add(r.nutritionalValues),new za)}}class gI{fromJson(t){return new y2e(t.id,new Date(t.creation_date),t.description,t.only_logging,t.goal_energy,t.goal_protein,t.goal_carbohydrates,t.goal_fiber,t.goal_fat)}toJson(t){return{description:t.description}}}class v2e{constructor(t,n,r,o,i,a,s,l){this.id=t,this.uuid=n,this.url=r,this.created=o,this.lastUpdate=i,this.size=a,this.width=s,this.height=l}}class b2e{fromJson(t){return new v2e(t.id,t.uuid,t.image,new Date(t.created),new Date(t.last_update),t.size,t.width,t.height)}}class w2e{constructor(t,n,r,o,i,a,s,l,c,u,d,f,p=null){this.id=t,this.uuid=n,this.code=r,this.name=o,this.energy=i,this.protein=a,this.carbohydrates=s,this.carbohydratesSugar=l,this.fat=c,this.fatSaturated=u,this.fiber=d,this.sodium=f,this.image=p}}class x2e{fromJson(t){return new w2e(t.id,t.uuid,t.code,t.name,t.energy,parseFloat(t.protein),parseFloat(t.carbohydrates),t.carbohydrates_sugar===null?null:parseFloat(t.carbohydrates_sugar),parseFloat(t.fat),t.fat_saturated===null?null:parseFloat(t.fat_saturated),t.fiber===null?null:parseFloat(t.fiber),t.sodium===null?null:parseFloat(t.sodium),t.image===null?null:new b2e().fromJson(t.image))}}class BF{constructor(t,n,r){this.id=t,this.nameShort=n,this.nameLong=r}}class S2e{fromJson(t){return new BF(t.id,t.short_name,t.full_name)}toJson(t){return{}}}var yI={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_SERVER:""};const C2e="/static/react",zF="",P2e=yI.TIME_ZONE,E2e=yI.MIN_ACCOUNT_AGE_TO_TRUST,T2e="",O2e=yI.VITE_API_KEY;console.log(yI);const vh=2,TZ="en",I2e=new BF(vh,TZ,"English"),k2e=E2e||21,OZ=1,M2e=2,A2e=1,$2e=2,R2e="variations",D2e="detail",_2e="permission",L2e="profile",N2e="routine",F2e="routines-shallow",j2e="routines-active",B2e="routines-logs",kv="measurements",Mv="measurements-categories";var En=(e=>(e.NUTRITIONAL_PLANS="nutritional-plans",e.NUTRITIONAL_PLAN="nutritional-plan",e.NUTRITIONAL_PLAN_LAST="nutritional-plan-last",e.INGREDIENT="ingredient",e.BODY_WEIGHT="body-weight",e.EXERCISES="exercises",e.EXERCISE_VARIATIONS="variations",e.EXERCISE_DETAIL="detail",e.LANGUAGES="languages",e.CATEGORIES="categories",e.EQUIPMENT="equipment",e.MUSCLES="muscles",e.QUERY_NOTES="notes",e))(En||{}),Ui=(e=>(e.MEAL="meal",e.MEAL_ITEM="mealitem",e.NUTRITIONAL_DIARY="nutritiondiary",e.INGREDIENT_PATH="ingredientinfo",e.INGREDIENT_SEARCH_PATH="ingredient/search",e.INGREDIENT_WEIGHT_UNIT="ingredientweightunit",e))(Ui||{});const IZ="999",z2e=["#2a4c7d","#5b5291","#8e5298","#bf5092","#e7537e","#ff6461","#ff813d","#ffa600"],V2e=["#2a4c7d","#825298","#d45089","#ff6a59","#ffa600"],H2e=["#2a4c7d","#d45089","#ffa600"],SU={pageSizeOptions:[5,10,25,50,100],pageSize:10},U2e=P2e||"Europe/Berlin",Ty="en",kZ=3e3;var MZ={exports:{}};(function(e){(function(t){let n;function r(u,d){const f=u.charCodeAt(d);if(isNaN(f))throw new RangeError("Index "+d+' out of range for string "'+u+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(f<55296||f>57343)return[u.charAt(d),d];if(f>=55296&&f<=56319){if(u.length<=d+1)return[" ",d];const m=u.charCodeAt(d+1);return m<56320||m>57343?[" ",d]:[u.charAt(d)+u.charAt(d+1),d+1]}if(d===0)return[" ",d];const p=u.charCodeAt(d-1);if(p<55296||p>56319)return[" ",d];throw new Error('String "'+u+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}typeof window<"u"?window.btoa?n=function(u){return btoa(unescape(encodeURIComponent(u)))}:n=function(u){const d=unescape(encodeURIComponent(u+""));let f="";for(let p,m,g=0,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.charAt(g|0)||(y="=",g%1);f+=y.charAt(63&p>>8-g%1*8)){if(m=d.charCodeAt(g+=3/4),m>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");p=p<<8|m}return f}:n=function(u){return Buffer.from(u).toString("base64")};function o(u,d){let f=s(u,d);if((d&&d.fallback!==void 0?d.fallback:o.defaults.fallback)===!0&&f===""){let m="";for(let g=0;g<u.length;g++){const y=r(u,g);g=y[1],m+=y[0]}f=s(n(m),d)}return f}const i={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}};let a={};function s(u,d){if(typeof u!="string")throw new Error("slug() requires a string argument, received "+typeof u);typeof d=="string"&&(d={replacement:d}),d=d?Object.assign({},d):{},d.mode=d.mode||o.defaults.mode;const f=o.defaults.modes[d.mode],p=["replacement","multicharmap","charmap","remove","lower","trim"];for(let x,S=0,P=p.length;S<P;S++)x=p[S],d[x]=x in d?d[x]:f[x];const m=i[d.locale]||a;let g=[];for(const x in d.multicharmap){if(!Object.prototype.hasOwnProperty.call(d.multicharmap,x))continue;const S=x.length;g.indexOf(S)===-1&&g.push(S)}g=g.sort(function(x,S){return S-x});const y=d.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/;let b="";for(let x,S=0,P=u.length;S<P;S++){x=u[S];let E=!1;for(let T=0;T<g.length;T++){const O=g[T],k=u.substr(S,O);if(d.multicharmap[k]){S+=O-1,x=d.multicharmap[k],E=!0;break}}E||(m[x]?x=m[x]:d.charmap[x]?x=d.charmap[x].replace(d.replacement," "):x.includes(d.replacement)?x=x.replace(d.replacement," "):x=x.replace(y,"")),b+=x}return d.remove&&(b=b.replace(d.remove,"")),d.trim&&(b=b.trim()),b=b.replace(/\s+/g,d.replacement),d.lower&&(b=b.toLowerCase()),b}const l={फ़:"Fi",ग़:"Ghi",ख़:"Khi",क़:"Qi",ड़:"ugDha",ढ़:"ugDhha",य़:"Yi",ज़:"Za",בִי:"i",בֵ:"e",בֵי:"e",בֶ:"e",בַ:"a",בָ:"a",בֹ:"o",וֹ:"o",בֻ:"u",וּ:"u",בּ:"b",כּ:"k",ךּ:"k",פּ:"p",שׁ:"sh",שׂ:"s",בְ:"e",חֱ:"e",חֲ:"a",חֳ:"o",בִ:"i"},c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ő:"O",Ø:"O",Ō:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ő:"o",ø:"o",ō:"o",Œ:"OE",œ:"oe",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"w",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"h",ώ:"w",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"H",Θ:"Th",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"3",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"W",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"H",Ώ:"W",Ϊ:"I",Ϋ:"Y",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"u",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"U",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"K",Ļ:"L",Ņ:"N",Ū:"U",أ:"a",إ:"i",ب:"b",ت:"t",ث:"th",ج:"g",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"d",ط:"t",ظ:"th",ع:"aa",غ:"gh",ف:"f",ق:"k",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"o",ي:"y",ء:"aa",ة:"a",آ:"a",ا:"a",پ:"p",ژ:"zh",گ:"g",چ:"ch",ک:"k",ی:"i",ė:"e",į:"i",ų:"u",Ė:"E",Į:"I",Ų:"U",ț:"t",Ț:"T",ţ:"t",Ţ:"T",ș:"s",Ș:"S",ă:"a",Ă:"A",Ạ:"A",Ả:"A",Ầ:"A",Ấ:"A",Ậ:"A",Ẩ:"A",Ẫ:"A",Ằ:"A",Ắ:"A",Ặ:"A",Ẳ:"A",Ẵ:"A",Ẹ:"E",Ẻ:"E",Ẽ:"E",Ề:"E",Ế:"E",Ệ:"E",Ể:"E",Ễ:"E",Ị:"I",Ỉ:"I",Ĩ:"I",Ọ:"O",Ỏ:"O",Ồ:"O",Ố:"O",Ộ:"O",Ổ:"O",Ỗ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ợ:"O",Ở:"O",Ỡ:"O",Ụ:"U",Ủ:"U",Ũ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ự:"U",Ử:"U",Ữ:"U",Ỳ:"Y",Ỵ:"Y",Ỷ:"Y",Ỹ:"Y",Đ:"D",ạ:"a",ả:"a",ầ:"a",ấ:"a",ậ:"a",ẩ:"a",ẫ:"a",ằ:"a",ắ:"a",ặ:"a",ẳ:"a",ẵ:"a",ẹ:"e",ẻ:"e",ẽ:"e",ề:"e",ế:"e",ệ:"e",ể:"e",ễ:"e",ị:"i",ỉ:"i",ĩ:"i",ọ:"o",ỏ:"o",ồ:"o",ố:"o",ộ:"o",ổ:"o",ỗ:"o",ơ:"o",ờ:"o",ớ:"o",ợ:"o",ở:"o",ỡ:"o",ụ:"u",ủ:"u",ũ:"u",ư:"u",ừ:"u",ứ:"u",ự:"u",ử:"u",ữ:"u",ỳ:"y",ỵ:"y",ỷ:"y",ỹ:"y",đ:"d",Ә:"AE",ә:"ae",Ғ:"GH",ғ:"gh",Қ:"KH",қ:"kh",Ң:"NG",ң:"ng",Ү:"UE",ү:"ue",Ұ:"U",ұ:"u",Һ:"H",һ:"h",Ө:"OE",ө:"oe",ђ:"dj",ј:"j",љ:"lj",њ:"nj",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Љ:"Lj",Њ:"Nj",Ћ:"C",Џ:"Dz",nj:"nj",lj:"lj",Nj:"NJ",Lj:"LJ",अ:"a",आ:"aa",ए:"e",ई:"ii",ऍ:"ei",ऎ:"ae",ऐ:"ai",इ:"i",ओ:"o",ऑ:"oi",ऒ:"oii",ऊ:"uu",औ:"ou",उ:"u",ब:"B",भ:"Bha",च:"Ca",छ:"Chha",ड:"Da",ढ:"Dha",फ:"Fa",ग:"Ga",घ:"Gha",ग़:"Ghi",ह:"Ha",ज:"Ja",झ:"Jha",क:"Ka",ख:"Kha",ख़:"Khi",ल:"L",ळ:"Li",ऌ:"Li",ऴ:"Lii",ॡ:"Lii",म:"Ma",न:"Na",ङ:"Na",ञ:"Nia",ण:"Nae",ऩ:"Ni",ॐ:"oms",प:"Pa",क़:"Qi",र:"Ra",ऋ:"Ri",ॠ:"Ri",ऱ:"Ri",स:"Sa",श:"Sha",ष:"Shha",ट:"Ta",त:"Ta",ठ:"Tha",द:"Tha",थ:"Tha",ध:"Thha",ड़:"ugDha",ढ़:"ugDhha",व:"Va",य:"Ya",य़:"Yi",ज़:"Za",ə:"e",Ə:"E",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",ב:"v",גּ:"g",ג:"g",ד:"d",דּ:"d",ה:"h",ו:"v",ז:"z",ח:"h",ט:"t",י:"y",כ:"kh",ך:"kh",ל:"l",מ:"m",ם:"m",נ:"n",ן:"n",ס:"s",פ:"f",ף:"f",ץ:"ts",צ:"ts",ק:"k",ר:"r",תּ:"t",ת:"t"};o.charmap=Object.assign({},c),o.multicharmap=Object.assign({},l),o.defaults={charmap:o.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0}},multicharmap:o.multicharmap,fallback:!0},o.reset=function(){o.defaults.modes.rfc3986.charmap=o.defaults.modes.pretty.charmap=o.charmap=o.defaults.charmap=Object.assign({},c),o.defaults.modes.rfc3986.multicharmap=o.defaults.modes.pretty.multicharmap=o.multicharmap=o.defaults.multicharmap=Object.assign({},l),a=""},o.extend=function(u){const d=Object.keys(u),f={},p={};for(let m=0;m<d.length;m++)d[m].length>1?f[d[m]]=u[d[m]]:p[d[m]]=u[d[m]];Object.assign(o.charmap,p),Object.assign(o.multicharmap,f)},o.setLocale=function(u){a=i[u]||{}},e.exports?e.exports=o:t.slug=o})(yc)})(MZ);var W2e=MZ.exports;const AZ=Bn(W2e);function Pt(e,t){t=t||{};const r=[t.server||T2e,"api","v2",e];if(t.objectMethod&&r.push(t.objectMethod),t.id&&r.push(t.id.toString()),r.push(""),t.query){const o=[];for(const i in t.query)t.query.hasOwnProperty(i)&&o.push(`${encodeURIComponent(i)}=${encodeURIComponent(t.query[i])}`);r.pop(),r.push(`?${o.join("&")}`)}return r.join("/")}var wn=(e=>(e[e.DASHBOARD=0]="DASHBOARD",e[e.ROUTINE_OVERVIEW=1]="ROUTINE_OVERVIEW",e[e.ROUTINE_DETAIL=2]="ROUTINE_DETAIL",e[e.ROUTINE_ADD=3]="ROUTINE_ADD",e[e.ROUTINE_DELETE=4]="ROUTINE_DELETE",e[e.ROUTINE_ADD_LOG=5]="ROUTINE_ADD_LOG",e[e.ROUTINE_EDIT_LOG=6]="ROUTINE_EDIT_LOG",e[e.ROUTINE_DELETE_LOG=7]="ROUTINE_DELETE_LOG",e[e.ROUTINE_EDIT_DAY=8]="ROUTINE_EDIT_DAY",e[e.ROUTINE_ADD_DAY=9]="ROUTINE_ADD_DAY",e[e.ROUTINE_DELETE_DAY=10]="ROUTINE_DELETE_DAY",e[e.ROUTINE_ADD_SET=11]="ROUTINE_ADD_SET",e[e.ROUTINE_EDIT_SET=12]="ROUTINE_EDIT_SET",e[e.ROUTINE_DELETE_SET=13]="ROUTINE_DELETE_SET",e[e.EXERCISE_DETAIL=14]="EXERCISE_DETAIL",e[e.EXERCISE_OVERVIEW=15]="EXERCISE_OVERVIEW",e[e.EXERCISE_CONTRIBUTE=16]="EXERCISE_CONTRIBUTE",e[e.WEIGHT_OVERVIEW=17]="WEIGHT_OVERVIEW",e[e.WEIGHT_ADD=18]="WEIGHT_ADD",e[e.MEASUREMENT_OVERVIEW=19]="MEASUREMENT_OVERVIEW",e[e.MEASUREMENT_DETAIL=20]="MEASUREMENT_DETAIL",e[e.NUTRITION_OVERVIEW=21]="NUTRITION_OVERVIEW",e[e.NUTRITION_DETAIL=22]="NUTRITION_DETAIL",e[e.NUTRITION_PLAN_PDF=23]="NUTRITION_PLAN_PDF",e[e.NUTRITION_PLAN_COPY=24]="NUTRITION_PLAN_COPY",e[e.NUTRITION_DIARY=25]="NUTRITION_DIARY",e[e.INGREDIENT_DETAIL=26]="INGREDIENT_DETAIL",e[e.CALENDAR=27]="CALENDAR",e))(wn||{});function Pn(e,t,n){t=t||"en-us";const r=t.split("-")[0];switch(e){case 1:return`/${r}/routine/overview`;case 2:return`/${r}/routine/${n.id}/view`;case 3:return`/${r}/routine/add`;case 9:return`/${r}/routine/day/${n.id}/add`;case 5:return`/${r}/routine/day/${n.id}/log/add`;case 6:return`/${r}/routine/log/${n.id}/edit`;case 7:return`/${r}/routine/log/${n.id}/delete`;case 8:return`/${r}/routine/day/${n.id}/edit`;case 10:return`/${r}/routine/day/${n.id}/delete`;case 11:return`/${r}/routine/set/${n.id}/add`;case 12:return`/${r}/routine/set/${n.id}/edit`;case 13:return`/${r}/routine/set/${n.id}/delete`;case 27:return`/${r}/routine/calendar`;case 16:return`/${r}/exercise/contribute`;case 14:return n.slug?`/${r}/exercise/${n.id}/view-base/${AZ(n.slug)}`:`/${r}/exercise/${n.id}/view-base`;case 15:return`/${r}/exercise/overview`;case 17:return`/${r}/weight/overview`;case 18:return`/${r}/weight/add`;case 19:return`/${r}/measurement/overview`;case 20:return`/${r}/measurement/category/${n.id}`;case 21:return`/${r}/nutrition/overview`;case 22:return`/${r}/nutrition/${n.id}/view`;case 25:return`/${r}/nutrition/${n.id}/${n.date}`;case 23:return`/${r}/nutrition/${n.id}/pdf`;case 24:return`/${r}/nutrition/${n.id}/copy`;case 26:return`/${r}/nutrition/ingredient/${n.id}/view`;case 0:default:return"/"}}function G2e(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}function kt(e){e=e||O2e;const t="csrftoken";let n={};n["Content-Type"]="application/json",e&&(n.Authorization=`Token ${e}`);const r=G2e(t);return r!=null&&(n["X-CSRFToken"]=r),n}async function*vS(e,t){for(t==null&&(t=kt());;){const r=(await dt.get(e,{headers:t})).data;if(yield r.results,e=r.next,!e)break}}const $Z=async e=>{if(e.length===0)return[];const t=Pt(Ui.INGREDIENT_PATH,{query:{id__in:e.join(",")}}),n=new x2e,r=[];for await(const o of vS(t,kt()))for(const i of o)r.push(n.fromJson(i));return r},q2e=async(e,t,n=!0)=>{const r=[t];t!==Ty&&n&&r.push(Ty);const o=Pt(Ui.INGREDIENT_SEARCH_PATH,{query:{term:e,language:r.join(",")}}),{data:i}=await dt.get(o);return i.suggestions};class K2e{constructor(t,n,r,o,i,a,s){pn(this,"ingredient",null);pn(this,"weightUnit",null);this.id=t,this.ingredientId=n,this.weightUnitId=r,this.amount=o,this.order=i,a&&(this.ingredient=a),s&&(this.weightUnit=s)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?za.fromIngredient(this.ingredient,this.amount,this.weightUnit):new za}}class VF{fromJson(t){return new K2e(t.id,t.ingredient,t.weight_unit,parseFloat(t.amount),t.order)}toJson(t){return{ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),order:t.order}}}class Y2e{constructor(t,n,r,o=""){this.id=t,this.amount=n,this.grams=r,this.name=o}}class X2e{fromJson(t){return new Y2e(t.id,parseFloat(t.amount),t.gram)}}const RZ=async e=>{if(e===null)return null;const{data:t}=await dt.get(Pt(Ui.INGREDIENT_WEIGHT_UNIT,{id:e}),{headers:kt()});return new X2e().fromJson(t)},Q2e=async e=>{const t=await dt.post(Pt(Ui.MEAL),e,{headers:kt()});return new jF().fromJson(t.data)},J2e=async e=>{const t=await dt.patch(Pt(Ui.MEAL,{id:e.id}),e,{headers:kt()});return new jF().fromJson(t.data)},Z2e=async e=>{await dt.delete(Pt(Ui.MEAL,{id:e}),{headers:kt()})},eDe=async e=>{let t=[];const n=new jF,r=new VF,{data:o}=await dt.get(Pt(Ui.MEAL,{query:{plan:e}}),{headers:kt()}),i=o.results.map(a=>n.fromJson(a));for(const a of i){t=[];const{data:s}=await dt.get(Pt(Ui.MEAL_ITEM,{query:{meal:a.id}}),{headers:kt()}),l=s.results.map(u=>r.fromJson(u));for(const u of l)t.push(u.ingredientId);const c=await $Z(t);for(const u of l)u.weightUnit=await RZ(u.weightUnitId),u.ingredient=c.find(d=>d.id===u.ingredientId);a.items=l}return i};class tDe{constructor(t,n,r,o,i,a,s,l,c){pn(this,"ingredient",null);pn(this,"weightUnit",null);this.id=t,this.planId=n,this.mealId=r,this.ingredientId=o,this.weightUnitId=i,this.amount=a,this.datetime=s,l&&(this.ingredient=l),c&&(this.weightUnit=c)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?za.fromIngredient(this.ingredient,this.amount,this.weightUnit):(console.log("Diary entry has no ingredient, returning empty NutritionalValues object"),new za)}}class HF{fromJson(t){return new tDe(t.id,t.plan,t.meal,t.ingredient,t.weight_unit,parseFloat(t.amount),new Date(t.datetime))}toJson(t){return{plan:t.planId,meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),datetime:t.datetime.toISOString()}}}const nDe=async(e,t)=>{const n=new HF,r={plan:e,limit:IZ};t&&(r.datetime__date=ni(t));const o=Pt(Ui.NUTRITIONAL_DIARY,{query:r}),i=[];for await(const a of vS(o,kt()))for(const s of a){let l=n.fromJson(s);l.weightUnit=await RZ(l.weightUnitId),i.push(l)}return i},DZ=async e=>{const t=await dt.post(Pt(Ui.NUTRITIONAL_DIARY),e,{headers:kt()});return new HF().fromJson(t.data)},rDe=async e=>{const t=await dt.patch(Pt(Ui.NUTRITIONAL_DIARY,{id:e.id}),e,{headers:kt()});return new HF().fromJson(t.data)},Av="nutritionplan",oDe=async()=>{const{data:e}=await dt.get(Pt(Av),{headers:kt()}),t=new gI;return e.results.map(n=>t.fromJson(n))},iDe=async()=>{const{data:e}=await dt.get(Pt(Av,{query:{limit:"1"}}),{headers:kt()});return e.count===0?null:await UF(e.results[0].id)},UF=async(e,t)=>{if(e===null)return null;const{data:n}=await dt.get(Pt(Av,{id:e}),{headers:kt()}),r=[],i=new gI().fromJson(n),a=await Promise.all([eDe(e),nDe(e,t)]);i.meals=a[0],i.diaryEntries=a[1],i.diaryEntries.forEach(l=>{r.includes(l.ingredientId)||r.push(l.ingredientId)});const s=await $Z(r);return i.diaryEntries.forEach(l=>{l.ingredient=s.find(c=>c.id===l.ingredientId)}),i.meals.forEach(l=>{l.diaryEntries=i.diaryEntries.filter(c=>c.mealId===l.id)}),i},aDe=async e=>{const t=await dt.post(Pt(Av),e,{headers:kt()});return new gI().fromJson(t.data)},sDe=async e=>{const t=await dt.patch(Pt(Av,{id:e.id}),e,{headers:kt()});return new gI().fromJson(t.data)},lDe=async e=>{await dt.delete(Pt(Av,{id:e}),{headers:kt()})};function cDe(){return oo({queryKey:[En.NUTRITIONAL_PLANS],queryFn:()=>oDe()})}function uDe(){return oo({queryKey:[En.NUTRITIONAL_PLAN,"last"],queryFn:()=>iDe()})}function dDe(e){return oo({queryKey:[En.NUTRITIONAL_PLAN,e],queryFn:()=>UF(e)})}function fDe(e,t,n=!0){return oo({queryKey:[En.NUTRITIONAL_PLAN,e,t],queryFn:()=>UF(e,new Date(t)),enabled:n})}const pDe=()=>{const e=gr();return $r({mutationFn:t=>aDe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[En.NUTRITIONAL_PLANS]}),e.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN]})}})},hDe=e=>{const t=gr();return $r({mutationFn:n=>lDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLANS]}),t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},mDe=e=>{const t=gr();return $r({mutationFn:n=>sDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]}),t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLANS]})}})},gDe=e=>{const t=gr();return $r({mutationFn:n=>DZ(n),onSuccess:()=>t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})})},_Z=e=>{const t=gr();return $r({mutationFn:n=>Promise.all(n.map(r=>DZ(r))),onSuccess:()=>t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})})},yDe=e=>{const t=gr();return $r({mutationFn:n=>rDe(n),onSuccess:()=>t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})})},vDe=e=>{const t=gr();return $r({mutationFn:n=>Q2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},bDe=e=>{const t=gr();return $r({mutationFn:n=>Z2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},wDe=e=>{const t=gr();return $r({mutationFn:n=>J2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},xDe=async e=>{const t=await dt.post(Pt(Ui.MEAL_ITEM),e,{headers:kt()});return new VF().fromJson(t.data)},SDe=async e=>{const t=await dt.patch(Pt(Ui.MEAL_ITEM,{id:e.id}),e,{headers:kt()});return new VF().fromJson(t.data)},CDe=async e=>{await dt.delete(Pt(Ui.MEAL_ITEM,{id:e}),{headers:kt()})},PDe=e=>{const t=gr();return $r({mutationFn:n=>xDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},EDe=e=>{const t=gr();return $r({mutationFn:n=>SDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})},TDe=e=>{const t=gr();return $r({mutationFn:n=>CDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.NUTRITIONAL_PLAN,e]})}})};class LZ{constructor(t,n,r){this.date=t,this.weight=n,this.id=r}}class WF{fromJson(t){return new LZ(new Date(t.date),parseFloat(t.weight),t.id)}toJson(t){return{id:t.id,date:ni(t.date),weight:t.weight}}}const vI="weightentry",ODe=async(e="")=>{const t=g2e(e),n=Pt(vI,{query:{ordering:"-date",limit:900,...t&&{date__gte:t}}}),{data:r}=await dt.get(n,{headers:kt()}),o=new WF;return r.results.map(i=>o.fromJson(i))},IDe=async e=>(await dt.delete(Pt(vI,{id:e}),{headers:kt()})).status,kDe=async e=>{const t=new WF,n=await dt.patch(Pt(vI,{id:e.id}),t.toJson(e),{headers:kt()});return t.fromJson(n)},MDe=async e=>{const t=new WF,n=await dt.post(Pt(vI),t.toJson(e),{headers:kt()});return t.fromJson(n.data)},ADe=22;function $De(e,t=ADe){return e.length>t?e.slice(0,t)+"…":e}function RDe(e){return e.toLowerCase().replace(/\s/g,"_").replace("(","_").replace(")","_").replace("-","_")}function Wi(e){return`server.${RDe(e)}`}class DDe{constructor(t,n,r,o){this.id=t,this.name=n,this.nameEn=r,this.isFront=o}getName(t){return this.nameEn?`${this.name} (${t(Wi(this.nameEn))})`:this.name}}class NZ{fromJson(t){return new DDe(t.id,t.name,t.name_en,t.is_front)}toJson(t){return{}}}const _De="muscle",LDe=async()=>{const e=Pt(_De),{data:t}=await dt.get(e,{headers:kt()}),n=new NZ;return t.results.map(r=>n.fromJson(r))};class NDe{constructor(t,n){this.id=t,this.name=n}}class FZ{fromJson(t){return new NDe(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const FDe="equipment",jDe=async()=>{const e=Pt(FDe),{data:t}=await dt.get(e,{headers:kt()}),n=new FZ;return t.results.map(r=>n.fromJson(r))};class BDe{constructor(t,n){this.id=t,this.name=n}}class jZ{fromJson(t){return new BDe(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const zDe="exercisecategory",VDe=async()=>{const e=Pt(zDe),{data:t}=await dt.get(e,{headers:kt()}),n=new jZ;return t.results.map(r=>n.fromJson(r))};var pu=(e=>(e[e.LINE_ART=1]="LINE_ART",e[e.THREE_D=2]="THREE_D",e[e.LOW_POLY=3]="LOW_POLY",e[e.PHOTO=4]="PHOTO",e[e.OTHER=5]="OTHER",e))(pu||{});class HDe{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class dD{fromJson(t){return new HDe(t.id,t.uuid,t.image,t.is_main)}toJson(t){return{id:t.id,image:t.url,is_front:t.isMain}}}class UDe{constructor(t,n,r){this.id=t,this.uuid=n,this.alias=r}}class BZ{fromJson(t){return new UDe(t.id,t.uuid,t.alias)}toJson(t){return{id:t.id,name:t.alias}}}class fD{constructor(t,n,r){this.id=t,this.exercise=n,this.note=r}}class zZ{fromJson(t){return new fD(t.id,t.exercise,t.comment)}toJson(t){return{id:t.id,comment:t.note,exercise:t.exercise}}}class VZ{constructor(t,n,r,o,i,a,s,l){pn(this,"notes",[]);pn(this,"aliases",[]);pn(this,"authors",[]);this.id=t,this.uuid=n,this.name=r,this.description=o,this.language=i,a&&(this.notes=a),s&&(this.aliases=s),l&&(this.authors=l)}get nameLong(){return $De(this.name)}get nameSlug(){return AZ(this.name)}}class GF{fromJson(t){var n,r;return new VZ(t.id,t.uuid,t.name,t.description,t.language,(n=t.notes)==null?void 0:n.map(o=>new zZ().fromJson(o)),(r=t.aliases)==null?void 0:r.map(o=>new BZ().fromJson(o)),t.author_history)}toJson(t){return{id:t.id,uuid:t.uuid,name:t.name,description:t.description,language:t.language}}}class WDe{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class HZ{fromJson(t){return new WDe(t.id,t.uuid,t.video,t.is_main)}toJson(t){return{id:t.id,video:t.url}}}class GDe{constructor(t,n,r,o,i,a,s,l,c,u,d){pn(this,"translations",[]);pn(this,"videos",[]);pn(this,"authors",[]);this.id=t,this.uuid=n,this.category=r,this.equipment=o,this.muscles=i,this.musclesSecondary=a,this.images=s,this.variationId=l,c&&(this.translations=c),u&&(this.videos=u),d&&(this.authors=d)}getTranslation(t){const n=t!=null?t.id:vh;let r=this.translations.find(o=>o.language===n);return r||(r=this.translations.find(o=>o.language===vh)),r||this.translations[0]}get availableLanguages(){return this.translations.map(t=>t.language)}get mainImage(){return this.images.find(t=>t.isMain)}get sideImages(){return this.images.filter(t=>!t.isMain)}}class UZ{fromJson(t){const n=new jZ,r=new FZ,o=new NZ,i=new dD,a=new GF,s=new HZ,l=new GDe(t.id,t.uuid,n.fromJson(t.category),t.equipment.map(c=>r.fromJson(c)),t.muscles.map(c=>o.fromJson(c)),t.muscles_secondary.map(c=>o.fromJson(c)),t.images.map(c=>i.fromJson(c)),t.variations,t.exercises.map(c=>a.fromJson(c)),t.videos.map(c=>s.fromJson(c)),t.author_history);if(l.translations.some(c=>c.language===vh)||console.info(`No english translation found for exercise base ${l.uuid}!`),l.translations.length===0)throw new Error(`No translations found for exercise base ${l.uuid}!`);return l}toJson(t){return{id:t.id,uuid:t.uuid,category:t.category.id,equipment:t.equipment.map(n=>n.id),muscles:t.muscles.map(n=>n.id),muscles_secondary:t.musclesSecondary.map(n=>n.id),images:t.images.map(n=>new dD().toJson(n))}}}const qF="exercisebaseinfo",KF="exercise-base";function WZ(e){const t=new UZ,n=[];for(const r of e.results)try{n.push(t.fromJson(r))}catch(o){console.error("An error happened, skipping base:",o)}return n}const qDe=async()=>{const e=Pt(qF,{query:{limit:900}}),t=await dt.get(e,{headers:kt()});return WZ(t.data)},bS=async e=>{const t=new UZ,n=Pt(qF,{id:e}),r=await dt.get(n,{headers:kt()});return t.fromJson(r.data)},KDe=async e=>{if(!e)return[];const t=Pt(qF,{query:{variations:e}}),n=await dt.get(t,{headers:kt()});return WZ(n.data)},YDe=async(e,t,n,r,o,i)=>{const a=Pt(KF),s={category:e,equipment:t,muscles:n,muscles_secondary:r,variation_id:o,license_author:i};return(await dt.post(a,s,{headers:kt()})).data.id},YF=async(e,t)=>{const n=Pt(KF,{id:e});return(await dt.patch(n,t,{headers:kt()})).status},CU=async(e,t)=>{const r=Pt(KF,t===void 0?{id:e}:{id:e,query:{replaced_by:t}});return(await dt.delete(r,{headers:kt()})).status},XF="exercise-translation",XDe="exercise/search",QDe=async(e,t=TZ,n=!0)=>{const r=[t];t!==Ty&&n&&r.push(Ty);const o=Pt(XDe,{query:{term:e,language:r.join(",")}}),{data:i}=await dt.get(o);return i.suggestions},pD=async e=>{const{exerciseId:t,languageId:n,name:r,description:o,author:i}=e,a=Pt(XF),s={exercise_base:t,language:n,name:r,description:o,license_author:i},l=await dt.post(a,s,{headers:kt()});return new GF().fromJson(l.data)},JDe=async e=>{const{id:t,exerciseId:n,languageId:r,name:o,description:i}=e,a=Pt(XF,{id:t}),s={exercise_base:n,language:r,name:o,description:i},l=await dt.patch(a,s,{headers:kt()});return new GF().fromJson(l.data)},ZDe=async e=>{const t=Pt(XF,{id:e});return(await dt.delete(t,{headers:kt()})).status},e_e="language",t_e=async()=>{const e=Pt(e_e),{data:t}=await dt.get(e,{headers:kt()}),n=new S2e;return t.results.map(r=>n.fromJson(r))},hD=(e,t)=>{const n=e.split("-")[0],r=t.find(o=>o.nameShort===n);if(r)return r},GZ="exerciseimage",qZ=async e=>{const t=Pt(GZ),n=kt();n["Content-Type"]="multipart/form-data";const r=await dt.post(t,{exercise_base:e.exerciseId,image:e.image,license_title:e.imageData.title,license_object_url:e.imageData.objectUrl,license_author:e.imageData.author,license_author_url:e.imageData.authorUrl,license_derivative_source_url:e.imageData.derivativeSourceUrl,style:e.imageData.style},{headers:n});return new dD().fromJson(r.data)},n_e=async e=>{const t=Pt(GZ,{id:e}),n=kt();return(await dt.delete(t,{headers:n})).status},KZ="exercisealias",mD=async(e,t)=>{const n=Pt(KZ),r=await dt.post(n,{exercise:e,alias:t},{headers:kt()});return new BZ().fromJson(r.data)},r_e=async e=>(await dt.delete(Pt(KZ,{id:e}),{headers:kt()})).status,YZ="video",o_e=async(e,t,n)=>{const r=Pt(YZ),o=kt();o["Content-Type"]="multipart/form-data";const i=await dt.post(r,{exercise_base:e,license_author:t,video:n},{headers:o});return new HZ().fromJson(i.data)},i_e=async e=>{const t=Pt(YZ,{id:e}),n=kt();return(await dt.delete(t,{headers:n})).status};class a_e{constructor(t,n,r,o){pn(this,"sets",[]);this.id=t,this.description=n,this.daysOfWeek=r,o&&(this.sets=o)}}class s_e{fromJson(t){return new a_e(t.id,t.description,t.day)}toJson(t){return{id:t.id,description:t.description,day:t.daysOfWeek}}}class l_e{constructor(t,n,r,o,i,a,s,l,c,u,d){this.id=t,this.date=n,this.exerciseId=r,this.repetitionUnit=o,this.reps=i,this.weight=a,this.weightUnit=s,this.rir=l,this.repetitionUnitObj=c,this.weightUnitObj=u,this.baseObj=d,c&&(this.repetitionUnitObj=c),u&&(this.weightUnitObj=u),d&&(this.baseObj=d)}get rirString(){return this.rir===null||this.rir===""?"-/-":this.rir}}class c_e{fromJson(t){return new l_e(t.id,new Date(t.date),t.exercise_base,t.repetition_unit,t.reps,t.weight===null?null:Number.parseFloat(t.weight),t.weight_unit,t.rir)}toJson(t){return{id:t.id,exercise_base:t.exerciseId,repetition_unit:t.repetitionUnit,reps:t.reps,weight:t.weight,weight_unit:t.weightUnit,rir:t.rir}}}class u_e{constructor(t,n,r,o,i){pn(this,"days",[]);this.id=t,this.name=n,this.description=r,this.date=o,i&&(this.days=i)}}class XZ{fromJson(t){return new u_e(t.id,t.name,t.description,new Date(t.creation_date))}toJson(t){return{id:t.id,name:t.name,description:t.description,creation_date:ni(t.date)}}}function d_e(e,t,n){n=n||(s=>s);const r=s=>s.rir?`${s.rir} ${n("routines.rir")}`:"",o=s=>{if(s.repetitionUnit===M2e)return"∞";const l=s.repetitionUnit!==OZ?n(Wi(s.repetitionUnitObj.name)):"";return`${s.reps} ${l}`},i=s=>s===null?"":Number.isInteger(s)?s.toString():s.toFixed(2).toString(),a=(s,l=!1)=>{const c=o(s),u=s.weightUnitObj.name,d=i(s.weight),f=r(s);let p=l?c:`${e} × ${c}`.trim();if(d){const m=f?`, ${f}`:"";p+=` (${d} ${u}${m})`}else p+=f?` (${f})`:"";return p};return t.length===1?a(t[0]):t.map(s=>a(s,!0)).join(" – ")}class f_e{constructor(t,n,r,o,i,a){pn(this,"settings",[]);pn(this,"settingsComputed",[]);this.id=t,this.sets=n,this.order=r,this.comment=o,i&&(this.settings=i),a&&(this.settingsComputed=a)}get exercises(){return this.settingsFiltered.map(t=>t.base)}get settingsFiltered(){const t=[];for(const n of this.settings)t.filter(o=>o.exerciseId===n.exerciseId).length===0&&t.push(n);return t}filterSettingsByExercise(t){return this.settings.filter(n=>n.exerciseId===t.id)}getSettingsTextRepresentation(t,n){return n=n||(r=>r),d_e(this.sets,this.filterSettingsByExercise(t),n)}}class p_e{fromJson(t){return new f_e(t.id,t.sets,t.order,t.comment)}toJson(t){return{id:t.id,sets:t.sets,order:t.order,comment:t.order}}}class h_e{constructor(t,n,r,o,i,a,s,l,c,u,d,f){pn(this,"base");this.id=t,this.date=n,this.exerciseId=r,this.repetitionUnit=o,this.reps=i,this.weight=a,this.weightUnit=s,this.rir=l,this.order=c,this.comment=u,this.repetitionUnitObj=d,this.weightUnitObj=f,d&&(this.repetitionUnitObj=d),f&&(this.weightUnitObj=f)}}class m_e{fromJson(t){return new h_e(t.id,new Date(t.date),t.exercise_base,t.repetition_unit,t.reps,t.weight===null?null:Number.parseFloat(t.weight),t.weight_unit,t.rir,t.order,t.comment)}toJson(t){return{id:t.id,exercise_base:t.exerciseId,repetition_unit:t.repetitionUnit,reps:t.reps,weight:t.weight,weight_unit:t.weightUnit,rir:t.rir,order:t.order,comment:t.comment}}}class g_e{constructor(t,n){pn(this,"id");pn(this,"name");this.id=t,this.name=n}}class y_e{fromJson(t){return new g_e(t.id,t.name)}toJson(t){return{}}}class v_e{constructor(t,n){pn(this,"id");pn(this,"name");this.id=t,this.name=n}}class b_e{fromJson(t){return new v_e(t.id,t.name)}toJson(t){return{}}}const w_e="setting-repetitionunit",x_e="setting-weightunit",QZ=async()=>{const e=Pt(w_e),{data:t}=await dt.get(e,{headers:kt()}),n=new y_e;return t.results.map(r=>n.fromJson(r))},JZ=async()=>{const e=Pt(x_e),{data:t}=await dt.get(e,{headers:kt()}),n=new b_e;return t.results.map(r=>n.fromJson(r))},QF="workout",S_e="workoutlog",C_e="day",P_e="set",E_e="setting",T_e=e=>new XZ().fromJson(e),ZZ=async e=>{const t=new XZ,n=new s_e,r=new p_e,o=new m_e,i=await dt.get(Pt(QF,{id:e}),{headers:kt()}),a=t.fromJson(i.data),s=await dt.get(Pt(C_e,{query:{training:a.id.toString()}}),{headers:kt()}),l=await Promise.all([QZ(),JZ()]),c=l[0],u=l[1];for(const d of s.data.results){const f=n.fromJson(d),p=await dt.get(Pt(P_e,{query:{exerciseday:f.id.toString()}}),{headers:kt()});for(const y of p.data.results){const b=r.fromJson(y);f.sets.push(b)}const m=p.data.results.map(y=>dt.get(Pt(E_e,{query:{set:y.id}}),{headers:kt()})),g=await Promise.all(m);for(const y of g)for(const b of y.data.results){const x=f.sets.find(O=>O.id===b.set),S=o.fromJson(b),P=u.find(O=>O.id===S.weightUnit),E=c.find(O=>O.id===S.repetitionUnit),T=x.settings.find(O=>O.exerciseId===S.exerciseId);S.base=T!==void 0?T.base:await bS(S.exerciseId),S.weightUnitObj=P,S.repetitionUnitObj=E,x.settings.push(S)}a.days.push(f)}return a},O_e=async()=>{const e=Pt(QF,{query:{limit:"1"}}),t=await dt.get(e,{headers:kt()});return t.data.count===0?null:await ZZ(t.data.results[0].id)},I_e=async e=>await ZZ(e),k_e=async()=>{const e=Pt(QF),t=await dt.get(e,{headers:kt()}),n=[];for(const r of t.data.results)n.push(await T_e(r));return n},M_e=async(e,t=!1)=>{const n=new c_e,r=Pt(S_e,{query:{workout:e.toString(),limit:IZ,ordering:"-date"}}),o=await Promise.all([QZ(),JZ()]),i=o[0],a=o[1],s=new Map,l=[];for await(const c of vS(r))for(const u of c){const d=n.fromJson(u);d.repetitionUnitObj=i.find(f=>f.id===d.repetitionUnit),d.weightUnitObj=a.find(f=>f.id===d.weightUnit),t&&(s.get(d.exerciseId)===void 0&&s.set(d.exerciseId,await bS(d.exerciseId)),d.baseObj=s.get(d.exerciseId)),l.push(d)}return l};class A_e{constructor(t,n,r,o){pn(this,"entries",[]);this.id=t,this.name=n,this.unit=r,o&&(this.entries=o)}}class bI{fromJson(t){return new A_e(t.id,t.name,t.unit)}toJson(t){return{id:t.id,name:t.name,unit:t.unit}}}class $_e{constructor(t,n,r,o,i){this.id=t,this.category=n,this.date=r,this.value=o,this.notes=i}}class wI{fromJson(t){return new $_e(t.id,t.category,new Date(t.date),t.value,t.notes)}toJson(t){return{id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes}}}const wS="measurement-category",xS="measurement",R_e=async()=>{const e=new bI,t=new wI,{data:n}=await dt.get(Pt(wS),{headers:kt()}),r=n.results.map(s=>e.fromJson(s)),o=r.map(async s=>{const l=[],c=Pt(xS,{query:{category:s.id}});for await(const u of vS(c,kt()))for(const d of u)l.push(t.fromJson(d));return l}),i=await Promise.all(o);let a;return i.forEach(s=>{s.length>0&&(a=s[0].category,r.findLast(l=>l.id===a).entries=s)}),r},D_e=async e=>{const{data:t}=await dt.get(Pt(wS,{id:e}),{headers:kt()}),n=new bI().fromJson(t),r=new wI,o=[],i=Pt(xS,{query:{category:n.id}});for await(const a of vS(i,kt()))for(const s of a)o.push(r.fromJson(s));return n.entries=o,n},__e=async e=>{const t=await dt.post(Pt(wS),{name:e.name,unit:e.unit},{headers:kt()});return new bI().fromJson(t.data)},L_e=async e=>{const t=await dt.patch(Pt(wS,{id:e.id}),{name:e.name,unit:e.unit},{headers:kt()});return new bI().fromJson(t.data)},N_e=async e=>{await dt.delete(Pt(wS,{id:e}),{headers:kt()})},F_e=async e=>{await dt.delete(Pt(xS,{id:e}),{headers:kt()})},j_e=async e=>{const t=await dt.patch(Pt(xS,{id:e.id}),{date:ni(e.date),value:e.value,notes:e.notes},{headers:kt()});return new wI().fromJson(t.data)},B_e=async e=>{const t=await dt.post(Pt(xS),{category:e.categoryId,date:ni(e.date),value:e.value,notes:e.notes},{headers:kt()});return new wI().fromJson(t.data)};function gi(e,t){return e.toLocaleString(t,{maximumFractionDigits:0})}function eee(e,t,n){return e.toLocaleString(t,{maximumFractionDigits:0,unit:n.valueOf(),style:"unit"})}function Cn(e,t){return eee(e,t,"gram")}function u$(e,t){return eee(e,t,"percent")}const Vg=e=>{const{i18n:t}=qe(),n=e.planned>0;return X(Mt,{children:[C(DJ,{variant:"determinate",value:e.percentage<100?e.percentage:100}),X(ut,{variant:"caption",children:[e.title," — ",Cn(e.logged,t.language),n&&X(Mt,{children:[" / ",Cn(e.planned,t.language)]})]})]})};var z_e=Array.isArray,xa=z_e,V_e=typeof yc=="object"&&yc&&yc.Object===Object&&yc,tee=V_e,H_e=tee,U_e=typeof self=="object"&&self&&self.Object===Object&&self,W_e=H_e||U_e||Function("return this")(),Bc=W_e,G_e=Bc,q_e=G_e.Symbol,SS=q_e,PU=SS,nee=Object.prototype,K_e=nee.hasOwnProperty,Y_e=nee.toString,Kb=PU?PU.toStringTag:void 0;function X_e(e){var t=K_e.call(e,Kb),n=e[Kb];try{e[Kb]=void 0;var r=!0}catch{}var o=Y_e.call(e);return r&&(t?e[Kb]=n:delete e[Kb]),o}var Q_e=X_e,J_e=Object.prototype,Z_e=J_e.toString;function eLe(e){return Z_e.call(e)}var tLe=eLe,EU=SS,nLe=Q_e,rLe=tLe,oLe="[object Null]",iLe="[object Undefined]",TU=EU?EU.toStringTag:void 0;function aLe(e){return e==null?e===void 0?iLe:oLe:TU&&TU in Object(e)?nLe(e):rLe(e)}var Zu=aLe;function sLe(e){return e!=null&&typeof e=="object"}var ed=sLe,lLe=Zu,cLe=ed,uLe="[object Symbol]";function dLe(e){return typeof e=="symbol"||cLe(e)&&lLe(e)==uLe}var $v=dLe,fLe=xa,pLe=$v,hLe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mLe=/^\w*$/;function gLe(e,t){if(fLe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pLe(e)?!0:mLe.test(e)||!hLe.test(e)||t!=null&&e in Object(t)}var JF=gLe;function yLe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _f=yLe;const Rv=Bn(_f);var vLe=Zu,bLe=_f,wLe="[object AsyncFunction]",xLe="[object Function]",SLe="[object GeneratorFunction]",CLe="[object Proxy]";function PLe(e){if(!bLe(e))return!1;var t=vLe(e);return t==xLe||t==SLe||t==wLe||t==CLe}var ZF=PLe;const Ht=Bn(ZF);var ELe=Bc,TLe=ELe["__core-js_shared__"],OLe=TLe,d$=OLe,OU=function(){var e=/[^.]+$/.exec(d$&&d$.keys&&d$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ILe(e){return!!OU&&OU in e}var kLe=ILe,MLe=Function.prototype,ALe=MLe.toString;function $Le(e){if(e!=null){try{return ALe.call(e)}catch{}try{return e+""}catch{}}return""}var ree=$Le,RLe=ZF,DLe=kLe,_Le=_f,LLe=ree,NLe=/[\\^$.*+?()[\]{}|]/g,FLe=/^\[object .+?Constructor\]$/,jLe=Function.prototype,BLe=Object.prototype,zLe=jLe.toString,VLe=BLe.hasOwnProperty,HLe=RegExp("^"+zLe.call(VLe).replace(NLe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ULe(e){if(!_Le(e)||DLe(e))return!1;var t=RLe(e)?HLe:FLe;return t.test(LLe(e))}var WLe=ULe;function GLe(e,t){return e==null?void 0:e[t]}var qLe=GLe,KLe=WLe,YLe=qLe;function XLe(e,t){var n=YLe(e,t);return KLe(n)?n:void 0}var Lh=XLe,QLe=Lh,JLe=QLe(Object,"create"),xI=JLe,IU=xI;function ZLe(){this.__data__=IU?IU(null):{},this.size=0}var eNe=ZLe;function tNe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nNe=tNe,rNe=xI,oNe="__lodash_hash_undefined__",iNe=Object.prototype,aNe=iNe.hasOwnProperty;function sNe(e){var t=this.__data__;if(rNe){var n=t[e];return n===oNe?void 0:n}return aNe.call(t,e)?t[e]:void 0}var lNe=sNe,cNe=xI,uNe=Object.prototype,dNe=uNe.hasOwnProperty;function fNe(e){var t=this.__data__;return cNe?t[e]!==void 0:dNe.call(t,e)}var pNe=fNe,hNe=xI,mNe="__lodash_hash_undefined__";function gNe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hNe&&t===void 0?mNe:t,this}var yNe=gNe,vNe=eNe,bNe=nNe,wNe=lNe,xNe=pNe,SNe=yNe;function Dv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dv.prototype.clear=vNe;Dv.prototype.delete=bNe;Dv.prototype.get=wNe;Dv.prototype.has=xNe;Dv.prototype.set=SNe;var CNe=Dv;function PNe(){this.__data__=[],this.size=0}var ENe=PNe;function TNe(e,t){return e===t||e!==e&&t!==t}var ej=TNe,ONe=ej;function INe(e,t){for(var n=e.length;n--;)if(ONe(e[n][0],t))return n;return-1}var SI=INe,kNe=SI,MNe=Array.prototype,ANe=MNe.splice;function $Ne(e){var t=this.__data__,n=kNe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ANe.call(t,n,1),--this.size,!0}var RNe=$Ne,DNe=SI;function _Ne(e){var t=this.__data__,n=DNe(t,e);return n<0?void 0:t[n][1]}var LNe=_Ne,NNe=SI;function FNe(e){return NNe(this.__data__,e)>-1}var jNe=FNe,BNe=SI;function zNe(e,t){var n=this.__data__,r=BNe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var VNe=zNe,HNe=ENe,UNe=RNe,WNe=LNe,GNe=jNe,qNe=VNe;function _v(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_v.prototype.clear=HNe;_v.prototype.delete=UNe;_v.prototype.get=WNe;_v.prototype.has=GNe;_v.prototype.set=qNe;var CI=_v,KNe=Lh,YNe=Bc,XNe=KNe(YNe,"Map"),tj=XNe,kU=CNe,QNe=CI,JNe=tj;function ZNe(){this.size=0,this.__data__={hash:new kU,map:new(JNe||QNe),string:new kU}}var eFe=ZNe;function tFe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var nFe=tFe,rFe=nFe;function oFe(e,t){var n=e.__data__;return rFe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var PI=oFe,iFe=PI;function aFe(e){var t=iFe(this,e).delete(e);return this.size-=t?1:0,t}var sFe=aFe,lFe=PI;function cFe(e){return lFe(this,e).get(e)}var uFe=cFe,dFe=PI;function fFe(e){return dFe(this,e).has(e)}var pFe=fFe,hFe=PI;function mFe(e,t){var n=hFe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var gFe=mFe,yFe=eFe,vFe=sFe,bFe=uFe,wFe=pFe,xFe=gFe;function Lv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lv.prototype.clear=yFe;Lv.prototype.delete=vFe;Lv.prototype.get=bFe;Lv.prototype.has=wFe;Lv.prototype.set=xFe;var nj=Lv,oee=nj,SFe="Expected a function";function rj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SFe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(rj.Cache||oee),n}rj.Cache=oee;var iee=rj;const CFe=Bn(iee);var PFe=iee,EFe=500;function TFe(e){var t=PFe(e,function(r){return n.size===EFe&&n.clear(),r}),n=t.cache;return t}var OFe=TFe,IFe=OFe,kFe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MFe=/\\(\\)?/g,AFe=IFe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kFe,function(n,r,o,i){t.push(o?i.replace(MFe,"$1"):r||n)}),t}),$Fe=AFe;function RFe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var oj=RFe,MU=SS,DFe=oj,_Fe=xa,LFe=$v,NFe=1/0,AU=MU?MU.prototype:void 0,$U=AU?AU.toString:void 0;function aee(e){if(typeof e=="string")return e;if(_Fe(e))return DFe(e,aee)+"";if(LFe(e))return $U?$U.call(e):"";var t=e+"";return t=="0"&&1/e==-NFe?"-0":t}var FFe=aee,jFe=FFe;function BFe(e){return e==null?"":jFe(e)}var see=BFe,zFe=xa,VFe=JF,HFe=$Fe,UFe=see;function WFe(e,t){return zFe(e)?e:VFe(e,t)?[e]:HFe(UFe(e))}var lee=WFe,GFe=$v,qFe=1/0;function KFe(e){if(typeof e=="string"||GFe(e))return e;var t=e+"";return t=="0"&&1/e==-qFe?"-0":t}var EI=KFe,YFe=lee,XFe=EI;function QFe(e,t){t=YFe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[XFe(t[n++])];return n&&n==r?e:void 0}var ij=QFe,JFe=ij;function ZFe(e,t,n){var r=e==null?void 0:JFe(e,t);return r===void 0?n:r}var cee=ZFe;const qa=Bn(cee);function eje(e){return e==null}var tje=eje;const Bt=Bn(tje);var nje=Zu,rje=xa,oje=ed,ije="[object String]";function aje(e){return typeof e=="string"||!rje(e)&&oje(e)&&nje(e)==ije}var sje=aje;const CS=Bn(sje);var uee={exports:{}},sr={};/**
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:xAe||{"&::after":{animation:`${ND} 2s linear 0.5s infinite`}}}]}})),GP=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:a,variant:c,hasChildren:!!d.children},p=bAe(f);return $.jsx(SAe,{as:a,ref:n,className:pe(p.root,i),ownerState:f,...d,style:{width:u,height:s,...l}})});function CAe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=sf();v.useEffect(()=>{if(!o)return;function b(x){x.defaultPrevented||x.key==="Escape"&&(r==null||r(x,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,r]);const s=Ko((b,x)=>{r==null||r(b,x)}),l=Ko(b=>{!r||b==null||a.start(b,()=>{s(null,"timeout")})});v.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=b=>{r==null||r(b,"clickaway")},u=a.clear,d=v.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=b=>x=>{const S=b.onBlur;S==null||S(x),d()},p=b=>x=>{const S=b.onFocus;S==null||S(x),u()},m=b=>x=>{const S=b.onMouseEnter;S==null||S(x),u()},g=b=>x=>{const S=b.onMouseLeave;S==null||S(x),d()};return v.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(b={})=>{const x={...wE(e),...wE(b)};return{role:"presentation",...b,...x,onBlur:f(x),onFocus:p(x),onMouseEnter:m(x),onMouseLeave:g(x)}},onClickAway:c}}function PAe(e){return Ze("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const EAe=e=>{const{classes:t}=e;return et({root:["root"],action:["action"],message:["message"]},PAe,t)},TAe=ie(fo,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=xX(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),OAe=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),IAe=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),kAe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=EAe(c);return $.jsxs(TAe,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[$.jsx(OAe,{className:u.message,ownerState:c,children:a}),o?$.jsx(IAe,{className:u.action,ownerState:c,children:o}):null]})});function MAe(e){return Ze("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const AAe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Ce(n.vertical)}${Ce(n.horizontal)}`]};return et(r,MAe,t)},_U=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Ce(n.anchorOrigin.vertical)}${Ce(n.anchorOrigin.horizontal)}`]]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),UZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSnackbar"}),o=Lo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:p,disableWindowBlurListener:m=!1,message:g,onBlur:y,onClose:b,onFocus:x,onMouseEnter:S,onMouseLeave:P,open:E,resumeHideDuration:T,TransitionComponent:O=Rh,transitionDuration:k=i,TransitionProps:{onEnter:M,onExited:I,...R}={},..._}=r,L={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:O,transitionDuration:k},j=AAe(L),{getRootProps:N,onClickAway:F}=CAe({...L}),[U,z]=v.useState(!0),V=Uc({elementType:_U,getSlotProps:N,externalForwardedProps:_,ownerState:L,additionalProps:{ref:n},className:[j.root,d]}),W=J=>{z(!0),I&&I(J)},G=(J,K)=>{z(!1),M&&M(J,K)};return!E&&U?null:$.jsx(lj,{onClickAway:F,...f,children:$.jsx(_U,{...V,children:$.jsx(O,{appear:!0,in:E,timeout:k,direction:s==="top"?"down":"up",onEnter:G,onExited:W,...R,children:u||$.jsx(kAe,{message:g,action:a,...p})})})})});function $Ae(e){return Ze("MuiTooltip",e)}const Br=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function RAe(e){return Math.round(e*1e5)/1e5}const DAe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ce(i.split("-")[0])}`],arrow:["arrow"]};return et(a,$Ae,t)},_Ae=ie(Kf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Br.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Br.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),LAe=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ce(n.placement.split("-")[0])}`]]}})(Qe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:vt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Br.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Br.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${RAe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Br.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),NAe=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Qe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:vt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let WC=!1;const LU=new QX;let m0={x:0,y:0};function GC(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const lc=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:x,leaveDelay:S=0,leaveTouchDelay:P=1500,onClose:E,onOpen:T,open:O,placement:k="bottom",PopperComponent:M,PopperProps:I={},slotProps:R={},slots:_={},title:L,TransitionComponent:j,TransitionProps:N,...F}=r,U=v.isValidElement(i)?i:$.jsx("span",{children:i}),z=Lo(),V=ud(),[W,G]=v.useState(),[J,K]=v.useState(null),ne=v.useRef(!1),re=f||b,oe=sf(),fe=sf(),se=sf(),ee=sf(),[ce,le]=Du({controlled:O,default:!1,name:"Tooltip",state:"open"});let Q=ce;const ue=Ph(x),ge=v.useRef(),xe=Ko(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),ee.clear()});v.useEffect(()=>xe,[xe]);const me=Ft=>{LU.clear(),WC=!0,le(!0),T&&!Q&&T(Ft)},be=Ko(Ft=>{LU.start(800+S,()=>{WC=!1}),le(!1),E&&Q&&E(Ft),oe.start(z.transitions.duration.shortest,()=>{ne.current=!1})}),we=Ft=>{ne.current&&Ft.type!=="touchstart"||(W&&W.removeAttribute("title"),fe.clear(),se.clear(),m||WC&&g?fe.start(WC?g:m,()=>{me(Ft)}):me(Ft))},Te=Ft=>{fe.clear(),se.start(S,()=>{be(Ft)})},[,Ie]=v.useState(!1),Le=Ft=>{bE(Ft.target)||(Ie(!1),Te(Ft))},de=Ft=>{W||G(Ft.currentTarget),bE(Ft.target)&&(Ie(!0),we(Ft))},$e=Ft=>{ne.current=!0;const Io=U.props;Io.onTouchStart&&Io.onTouchStart(Ft)},ke=Ft=>{$e(Ft),se.clear(),oe.clear(),xe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ee.start(y,()=>{document.body.style.WebkitUserSelect=ge.current,we(Ft)})},Me=Ft=>{U.props.onTouchEnd&&U.props.onTouchEnd(Ft),xe(),se.start(P,()=>{be(Ft)})};v.useEffect(()=>{if(!Q)return;function Ft(Io){Io.key==="Escape"&&be(Io)}return document.addEventListener("keydown",Ft),()=>{document.removeEventListener("keydown",Ft)}},[be,Q]);const De=Cr(Hf(U),G,n);!L&&L!==0&&(Q=!1);const Ye=v.useRef(),Je=Ft=>{const Io=U.props;Io.onMouseMove&&Io.onMouseMove(Ft),m0={x:Ft.clientX,y:Ft.clientY},Ye.current&&Ye.current.update()},st={},Rt=typeof L=="string";c?(st.title=!Q&&Rt&&!d?L:null,st["aria-describedby"]=Q?ue:null):(st["aria-label"]=Rt?L:null,st["aria-labelledby"]=Q&&!Rt?ue:null);const ct={...st,...F,...U.props,className:pe(F.className,U.props.className),onTouchStart:$e,ref:De,...b?{onMouseMove:Je}:{}},Lt={};p||(ct.onTouchStart=ke,ct.onTouchEnd=Me),d||(ct.onMouseOver=GC(we,ct.onMouseOver),ct.onMouseLeave=GC(Te,ct.onMouseLeave),re||(Lt.onMouseOver=we,Lt.onMouseLeave=Te)),u||(ct.onFocus=GC(de,ct.onFocus),ct.onBlur=GC(Le,ct.onBlur),re||(Lt.onFocus=de,Lt.onBlur=Le));const pt={...r,isRtl:V,arrow:o,disableInteractive:re,placement:k,PopperComponentProp:M,touch:ne.current},rt=typeof R.popper=="function"?R.popper(pt):R.popper,Pe=v.useMemo(()=>{var Io,gs;let Ft=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(Io=I.popperOptions)!=null&&Io.modifiers&&(Ft=Ft.concat(I.popperOptions.modifiers)),(gs=rt==null?void 0:rt.popperOptions)!=null&&gs.modifiers&&(Ft=Ft.concat(rt.popperOptions.modifiers)),{...I.popperOptions,...rt==null?void 0:rt.popperOptions,modifiers:Ft}},[J,I.popperOptions,rt==null?void 0:rt.popperOptions]),Ve=DAe(pt),ft=typeof R.transition=="function"?R.transition(pt):R.transition,It={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,..._},slotProps:{arrow:R.arrow??l.arrow,popper:{...I,...rt??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...N,...ft??l.transition}}},[St,yn]=dn("popper",{elementType:_Ae,externalForwardedProps:It,ownerState:pt,className:pe(Ve.popper,I==null?void 0:I.className)}),[Bn,Wn]=dn("transition",{elementType:Rh,externalForwardedProps:It,ownerState:pt}),[To,Oo]=dn("tooltip",{elementType:LAe,className:Ve.tooltip,externalForwardedProps:It,ownerState:pt}),[hi,Oa]=dn("arrow",{elementType:NAe,className:Ve.arrow,externalForwardedProps:It,ownerState:pt,ref:K});return $.jsxs(v.Fragment,{children:[v.cloneElement(U,ct),$.jsx(St,{as:M??Kf,placement:k,anchorEl:b?{getBoundingClientRect:()=>({top:m0.y,left:m0.x,right:m0.x,bottom:m0.y,width:0,height:0})}:W,popperRef:Ye,open:W?Q:!1,id:ue,transition:!0,...Lt,...yn,popperOptions:Pe,children:({TransitionProps:Ft})=>$.jsx(Bn,{timeout:z.transitions.duration.shorter,...Ft,...Wn,children:$.jsxs(To,{...Oo,children:[L,o?$.jsx(hi,{...Oa}):null]})})})]})}),Gt=Lwe({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>nt({props:e,name:"MuiStack"})}),LS=v.createContext({}),DI=v.createContext({});function FAe(e){return Ze("MuiStep",e)}tt("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const jAe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return et({root:["root",n,r&&"alternativeLabel",o&&"completed"]},FAe,t)},BAe=ie("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),qm=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:d,last:f,...p}=r,{activeStep:m,connector:g,alternativeLabel:y,orientation:b,nonLinear:x}=v.useContext(LS);let[S=!1,P=!1,E=!1]=[o,l,c];m===d?S=o!==void 0?o:!0:!x&&m>d?P=l!==void 0?l:!0:!x&&m<d&&(E=c!==void 0?c:!0);const T=v.useMemo(()=>({index:d,last:f,expanded:u,icon:d+1,active:S,completed:P,disabled:E}),[d,f,u,S,P,E]),O={...r,active:S,orientation:b,alternativeLabel:y,completed:P,disabled:E,expanded:u,component:s},k=jAe(O),M=$.jsxs(BAe,{as:s,className:pe(k.root,a),ref:n,ownerState:O,...p,children:[g&&y&&d!==0?g:null,i]});return $.jsx(DI.Provider,{value:T,children:g&&!y&&d!==0?$.jsxs(v.Fragment,{children:[g,M]}):M})}),zAe=lt($.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),VAe=lt($.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function HAe(e){return Ze("MuiStepIcon",e)}const B$=tt("MuiStepIcon",["root","active","completed","error","text"]);var NU;const UAe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return et({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},HAe,t)},z$=ie(xE,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${B$.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${B$.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${B$.error}`]:{color:(e.vars||e).palette.error.main}}))),WAe=ie("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(Qe(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),GAe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=r,u={...r,active:o,completed:a,error:s},d=UAe(u);if(typeof l=="number"||typeof l=="string"){const f=pe(i,d.root);return s?$.jsx(z$,{as:VAe,className:f,ref:n,ownerState:u,...c}):a?$.jsx(z$,{as:zAe,className:f,ref:n,ownerState:u,...c}):$.jsxs(z$,{className:f,ref:n,ownerState:u,...c,children:[NU||(NU=$.jsx("circle",{cx:"12",cy:"12",r:"12"})),$.jsx(WAe,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function qAe(e){return Ze("MuiStepLabel",e)}const uf=tt("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),KAe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:s}=e;return et({root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},qAe,t)},YAe=ie("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${uf.alternativeLabel}`]:{flexDirection:"column"},[`&.${uf.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),XAe=ie("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(Qe(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${uf.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${uf.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${uf.alternativeLabel}`]:{marginTop:16},[`&.${uf.error}`]:{color:(e.vars||e).palette.error.main}}))),QAe=ie("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${uf.alternativeLabel}`]:{paddingRight:0}}),JAe=ie("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(Qe(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${uf.alternativeLabel}`]:{textAlign:"center"}}))),Np=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:a={},error:s=!1,icon:l,optional:c,slots:u={},slotProps:d={},StepIconComponent:f,StepIconProps:p,...m}=r,{alternativeLabel:g,orientation:y}=v.useContext(LS),{active:b,disabled:x,completed:S,icon:P}=v.useContext(DI),E=l||P;let T=f;E&&!T&&(T=GAe);const O={...r,active:b,alternativeLabel:g,completed:S,disabled:x,error:s,orientation:y},k=KAe(O),M={slots:u,slotProps:{stepIcon:p,...a,...d}},[I,R]=dn("label",{elementType:XAe,externalForwardedProps:M,ownerState:O}),[_,L]=dn("stepIcon",{elementType:T,externalForwardedProps:M,ownerState:O});return $.jsxs(YAe,{className:pe(k.root,i),ref:n,ownerState:O,...m,children:[E||_?$.jsx(QAe,{className:k.iconContainer,ownerState:O,children:$.jsx(_,{completed:S,active:b,error:s,icon:E,...L})}):null,$.jsxs(JAe,{className:k.labelContainer,ownerState:O,children:[o?$.jsx(I,{...R,className:pe(k.label,R==null?void 0:R.className),children:o}):null,c]})]})});Np.muiName="StepLabel";function ZAe(e){return Ze("MuiStepConnector",e)}tt("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const e$e=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Ce(n)}`]};return et(s,ZAe,t)},t$e=ie("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),n$e=ie("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Ce(n.orientation)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),r$e=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:a,orientation:s="horizontal"}=v.useContext(LS),{active:l,disabled:c,completed:u}=v.useContext(DI),d={...r,alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c},f=e$e(d);return $.jsx(t$e,{className:pe(f.root,o),ref:n,ownerState:d,...i,children:$.jsx(n$e,{className:f.line,ownerState:d})})});function o$e(e){return Ze("MuiStepContent",e)}tt("MuiStepContent",["root","last","transition"]);const i$e=e=>{const{classes:t,last:n}=e;return et({root:["root",n&&"last"],transition:["transition"]},o$e,t)},a$e=ie("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(Qe(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),s$e=ie(el,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Km=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStepContent"}),{children:o,className:i,TransitionComponent:a=el,transitionDuration:s="auto",TransitionProps:l,slots:c={},slotProps:u={},...d}=r;v.useContext(LS);const{active:f,last:p,expanded:m}=v.useContext(DI),g={...r,last:p},y=i$e(g);let b=s;s==="auto"&&!a.muiSupportAuto&&(b=void 0);const x={slots:c,slotProps:{transition:l,...u}},[S,P]=dn("transition",{elementType:s$e,externalForwardedProps:x,ownerState:g,className:y.transition,additionalProps:{in:f||m,timeout:b,unmountOnExit:!0}});return $.jsx(a$e,{className:pe(y.root,i),ref:n,ownerState:g,...d,children:$.jsx(S,{as:a,...P,children:o})})});function l$e(e){return Ze("MuiStepper",e)}tt("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const c$e=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return et({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},l$e,o)},u$e=ie("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),d$e=$.jsx(r$e,{}),f$e=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:s,component:l="div",connector:c=d$e,nonLinear:u=!1,orientation:d="horizontal",...f}=r,p={...r,nonLinear:u,alternativeLabel:i,orientation:d,component:l},m=c$e(p),g=v.Children.toArray(a).filter(Boolean),y=g.map((x,S)=>v.cloneElement(x,{index:S,last:S+1===g.length,...x.props})),b=v.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:d}),[o,i,c,u,d]);return $.jsx(LS.Provider,{value:b,children:$.jsx(u$e,{as:l,ownerState:p,className:pe(m.root,s),ref:n,...f,children:y})})});function p$e(e){return Ze("MuiSwitch",e)}const Ni=tt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),h$e=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Ce(n)}`,`size${Ce(r)}`],switchBase:["switchBase",`color${Ce(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=et(s,p$e,t);return{...t,...l}},m$e=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ce(n.edge)}`],t[`size${Ce(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Ni.thumb}`]:{width:16,height:16},[`& .${Ni.switchBase}`]:{padding:4,[`&.${Ni.checked}`]:{transform:"translateX(16px)"}}}}]}),g$e=ie(PZ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ni.input}`]:t.input},n.color!=="default"&&t[`color${Ce(n.color)}`]]}})(Qe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Ni.checked}`]:{transform:"translateX(20px)"},[`&.${Ni.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ni.checked} + .${Ni.track}`]:{opacity:.5},[`&.${Ni.disabled} + .${Ni.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ni.input}`]:{left:"-100%",width:"300%"}})),Qe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Vn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Ni.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ni.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?qu(e.palette[t].main,.62):Gu(e.palette[t].main,.55)}`}},[`&.${Ni.checked} + .${Ni.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),y$e=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Qe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),v$e=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Qe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),td=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,...c}=r,u={...r,color:i,edge:a,size:s},d=h$e(u),f=$.jsx(v$e,{className:d.thumb,ownerState:u});return $.jsxs(m$e,{className:pe(d.root,o),sx:l,ownerState:u,children:[$.jsx(g$e,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),$.jsx(y$e,{className:d.track,ownerState:u})]})});function b$e(e){return Ze("MuiTab",e)}const Es=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),w$e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Ce(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return et(c,b$e,t)},x$e=ie(Xi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ce(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Es.iconWrapper}`]:t.iconWrapper},{[`& .${Es.icon}`]:t.icon}]}})(Qe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Es.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Es.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Es.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Es.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Es.selected}`]:{opacity:1},[`&.${Es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),FU=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:y,textColor:b="inherit",value:x,wrapped:S=!1,...P}=r,E={...r,disabled:i,disableFocusRipple:a,selected:g,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:b,wrapped:S},T=w$e(E),O=l&&d&&v.isValidElement(l)?v.cloneElement(l,{className:pe(T.icon,l.props.className)}):l,k=I=>{!g&&f&&f(I,x),p&&p(I)},M=I=>{y&&!g&&f&&f(I,x),m&&m(I)};return $.jsxs(x$e,{focusRipple:!a,className:pe(T.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:M,ownerState:E,tabIndex:g?0:-1,...P,children:[c==="top"||c==="start"?$.jsxs(v.Fragment,{children:[O,d]}):$.jsxs(v.Fragment,{children:[d,O]}),u]})}),WZ=v.createContext();function S$e(e){return Ze("MuiTable",e)}tt("MuiTable",["root","stickyHeader"]);const C$e=e=>{const{classes:t,stickyHeader:n}=e;return et({root:["root",n&&"stickyHeader"]},S$e,t)},P$e=ie("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),jU="table",nd=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTable"}),{className:o,component:i=jU,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=C$e(u),f=v.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return $.jsx(WZ.Provider,{value:f,children:$.jsx(P$e,{as:i,role:i===jU?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),_I=v.createContext();function E$e(e){return Ze("MuiTableBody",e)}tt("MuiTableBody",["root"]);const T$e=e=>{const{classes:t}=e;return et({root:["root"]},E$e,t)},O$e=ie("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),I$e={variant:"body"},BU="tbody",rd=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableBody"}),{className:o,component:i=BU,...a}=r,s={...r,component:i},l=T$e(s);return $.jsx(_I.Provider,{value:I$e,children:$.jsx(O$e,{className:pe(l.root,o),as:i,ref:n,role:i===BU?null:"rowgroup",ownerState:s,...a})})});function k$e(e){return Ze("MuiTableCell",e)}const M$e=tt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),A$e=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Ce(r)}`,o!=="normal"&&`padding${Ce(o)}`,`size${Ce(i)}`]};return et(s,k$e,t)},$$e=ie("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ce(n.size)}`],n.padding!=="normal"&&t[`padding${Ce(n.padding)}`],n.align!=="inherit"&&t[`align${Ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
+ ${e.palette.mode==="light"?qu(vt(e.palette.divider,1),.88):Gu(vt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${M$e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Oe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,p=v.useContext(WZ),m=v.useContext(_I),g=m&&m.variant==="head";let y;a?y=a:y=g?"th":"td";let b=l;y==="td"?b=void 0:!b&&g&&(b="col");const x=d||m&&m.variant,S={...r,align:o,component:y,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:x==="head"&&p&&p.stickyHeader,variant:x},P=A$e(S);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),$.jsx($$e,{as:y,ref:n,className:pe(P.root,i),"aria-sort":E,scope:b,ownerState:S,...f})});function R$e(e){return Ze("MuiTableContainer",e)}tt("MuiTableContainer",["root"]);const D$e=e=>{const{classes:t}=e;return et({root:["root"]},R$e,t)},_$e=ie("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),od=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=D$e(s);return $.jsx(_$e,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function L$e(e){return Ze("MuiTableHead",e)}tt("MuiTableHead",["root"]);const N$e=e=>{const{classes:t}=e;return et({root:["root"]},L$e,t)},F$e=ie("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),j$e={variant:"head"},zU="thead",Zh=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableHead"}),{className:o,component:i=zU,...a}=r,s={...r,component:i},l=N$e(s);return $.jsx(_I.Provider,{value:j$e,children:$.jsx(F$e,{as:i,className:pe(l.root,o),ref:n,role:i===zU?null:"rowgroup",ownerState:s,...a})})});function B$e(e){return Ze("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const z$e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return et({root:["root",!n&&"gutters",r]},B$e,t)},V$e=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Qe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),GZ=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=z$e(c);return $.jsx(V$e,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})}),qZ=lt($.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),KZ=lt($.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),H$e=v.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:p={},slotProps:m={},...g}=t,y=ud(),b=G=>{l(G,0)},x=G=>{l(G,c-1)},S=G=>{l(G,c+1)},P=G=>{l(G,Math.max(0,Math.ceil(o/u)-1))},E=p.firstButton??In,T=p.lastButton??In,O=p.nextButton??In,k=p.previousButton??In,M=p.firstButtonIcon??zZ,I=p.lastButtonIcon??VZ,R=p.nextButtonIcon??KZ,_=p.previousButtonIcon??qZ,L=y?T:E,j=y?O:k,N=y?k:O,F=y?E:T,U=y?m.lastButton:m.firstButton,z=y?m.nextButton:m.previousButton,V=y?m.previousButton:m.nextButton,W=y?m.firstButton:m.lastButton;return $.jsxs("div",{ref:n,...g,children:[d&&$.jsx(L,{onClick:b,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...U,children:y?$.jsx(I,{...m.lastButtonIcon}):$.jsx(M,{...m.firstButtonIcon})}),$.jsx(j,{onClick:x,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...z??r,children:y?$.jsx(R,{...m.nextButtonIcon}):$.jsx(_,{...m.previousButtonIcon})}),$.jsx(N,{onClick:S,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...V??s,children:y?$.jsx(_,{...m.previousButtonIcon}):$.jsx(R,{...m.nextButtonIcon})}),f&&$.jsx(F,{onClick:P,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...W,children:y?$.jsx(M,{...m.firstButtonIcon}):$.jsx(I,{...m.lastButtonIcon})})]})});function U$e(e){return Ze("MuiTablePagination",e)}const ph=tt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var VU;const W$e=ie(Oe,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),G$e=ie(GZ,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${ph.actions}`]:t.actions,...t.toolbar})})(Qe(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ph.actions}`]:{flexShrink:0,marginLeft:20}}))),q$e=ie("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),K$e=ie("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Y$e=ie(Jh,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${ph.selectIcon}`]:t.selectIcon,[`& .${ph.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ph.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),X$e=ie(nn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Q$e=ie("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0})));function J$e({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Z$e(e){return`Go to ${e} page`}const eRe=e=>{const{classes:t}=e;return et({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},U$e,t)},yj=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=H$e,backIconButtonProps:i,colSpan:a,component:s=Oe,count:l,disabled:c=!1,getItemAriaLabel:u=Z$e,labelDisplayedRows:d=J$e,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:y,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:S={},showFirstButton:P=!1,showLastButton:E=!1,slotProps:T={},slots:O={},...k}=r,M=r,I=eRe(M),R=(T==null?void 0:T.select)??S,_=R.native?"option":X$e;let L;(s===Oe||s==="td")&&(L=a||1e3);const j=Ph(R.id),N=Ph(R.labelId),F=()=>l===-1?(y+1)*b:b===-1?l:Math.min(l,(y+1)*b),U={slots:O,slotProps:T},[z,V]=dn("root",{ref:n,className:I.root,elementType:W$e,externalForwardedProps:{...U,component:s,...k},ownerState:M,additionalProps:{colSpan:L}}),[W,G]=dn("toolbar",{className:I.toolbar,elementType:G$e,externalForwardedProps:U,ownerState:M}),[J,K]=dn("spacer",{className:I.spacer,elementType:q$e,externalForwardedProps:U,ownerState:M}),[ne,re]=dn("selectLabel",{className:I.selectLabel,elementType:K$e,externalForwardedProps:U,ownerState:M,additionalProps:{id:N}}),[oe,fe]=dn("select",{className:I.select,elementType:Y$e,externalForwardedProps:U,ownerState:M}),[se,ee]=dn("menuItem",{className:I.menuItem,elementType:_,externalForwardedProps:U,ownerState:M}),[ce,le]=dn("displayedRows",{className:I.displayedRows,elementType:Q$e,externalForwardedProps:U,ownerState:M});return $.jsx(z,{...V,children:$.jsxs(W,{...G,children:[$.jsx(J,{...K}),x.length>1&&$.jsx(ne,{...re,children:f}),x.length>1&&$.jsx(oe,{variant:"standard",...!R.variant&&{input:VU||(VU=$.jsx(Vv,{}))},value:b,onChange:g,id:j,labelId:N,...R,classes:{...R.classes,root:pe(I.input,I.selectRoot,(R.classes||{}).root),select:pe(I.select,(R.classes||{}).select),icon:pe(I.selectIcon,(R.classes||{}).icon)},disabled:c,...fe,children:x.map(Q=>v.createElement(se,{...ee,key:Q.label?Q.label:Q,value:Q.value?Q.value:Q},Q.label?Q.label:Q))}),$.jsx(ce,{...le,children:d({from:l===0?0:y*b+1,to:F(),count:l===-1?-1:l,page:y})}),$.jsx(o,{className:I.actions,backIconButtonProps:i,count:l,nextIconButtonProps:p,onPageChange:m,page:y,rowsPerPage:b,showFirstButton:P,showLastButton:E,slotProps:T.actions,slots:O.actions,getItemAriaLabel:u,disabled:c})]})})});function tRe(e){return Ze("MuiTableRow",e)}const HU=tt("MuiTableRow",["root","selected","hover","head","footer"]),nRe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return et({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},tRe,t)},rRe=ie("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Qe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HU.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HU.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),UU="tr",Yt=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableRow"}),{className:o,component:i=UU,hover:a=!1,selected:s=!1,...l}=r,c=v.useContext(_I),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=nRe(u);return $.jsx(rRe,{as:i,ref:n,className:pe(d.root,o),role:i===UU?null:"row",ownerState:u,...l})});function oRe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function iRe(e,t,n,r={},o=()=>{}){const{ease:i=oRe,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/a);if(t[e]=i(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const aRe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function sRe(e){const{onChange:t,...n}=e,r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return ns(()=>{const a=TS(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=rs(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),$.jsx("div",{style:aRe,...n,ref:o})}function lRe(e){return Ze("MuiTabScrollButton",e)}const cRe=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uRe=e=>{const{classes:t,orientation:n,disabled:r}=e;return et({root:["root",n,r&&"disabled"]},lRe,t)},dRe=ie(Xi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${cRe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),fRe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,d=ud(),f={isRtl:d,...r},p=uRe(f),m=i.StartScrollButtonIcon??qZ,g=i.EndScrollButtonIcon??KZ,y=Uc({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),b=Uc({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return $.jsx(dRe,{component:"div",className:pe(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?$.jsx(m,{...y}):$.jsx(g,{...b})})});function pRe(e){return Ze("MuiTabs",e)}const qP=tt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),WU=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,GU=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qC=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},hRe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return et({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},pRe,l)},mRe=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qP.scrollButtons}`]:t.scrollButtons},{[`& .${qP.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Qe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${qP.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),gRe=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),yRe=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),vRe=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Qe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),bRe=ie(sRe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),qU={},wRe=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabs"}),o=Lo(),i=ud(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:b=fRe,scrollButtons:x="auto",selectionFollowsFocus:S,slots:P={},slotProps:E={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:k="primary",value:M,variant:I="standard",visibleScrollbar:R=!1,..._}=r,L=I==="scrollable",j=y==="vertical",N=j?"scrollTop":"scrollLeft",F=j?"top":"left",U=j?"bottom":"right",z=j?"clientHeight":"clientWidth",V=j?"height":"width",W={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:y,vertical:j,scrollButtons:x,textColor:k,variant:I,visibleScrollbar:R,fixed:!L,hideScrollbar:L&&!R,scrollableX:L&&!j,scrollableY:L&&j,centered:c&&!L,scrollButtonsHideMobile:!p},G=hRe(W),J=Uc({elementType:P.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:W}),K=Uc({elementType:P.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:W}),[ne,re]=v.useState(!1),[oe,fe]=v.useState(qU),[se,ee]=v.useState(!1),[ce,le]=v.useState(!1),[Q,ue]=v.useState(!1),[ge,xe]=v.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,be=v.useRef(null),we=v.useRef(null),Te=()=>{const Pe=be.current;let Ve;if(Pe){const It=Pe.getBoundingClientRect();Ve={clientWidth:Pe.clientWidth,scrollLeft:Pe.scrollLeft,scrollTop:Pe.scrollTop,scrollWidth:Pe.scrollWidth,top:It.top,bottom:It.bottom,left:It.left,right:It.right}}let ft;if(Pe&&M!==!1){const It=we.current.children;if(It.length>0){const St=It[me.get(M)];ft=St?St.getBoundingClientRect():null}}return{tabsMeta:Ve,tabMeta:ft}},Ie=Ko(()=>{const{tabsMeta:Pe,tabMeta:Ve}=Te();let ft=0,It;j?(It="top",Ve&&Pe&&(ft=Ve.top-Pe.top+Pe.scrollTop)):(It=i?"right":"left",Ve&&Pe&&(ft=(i?-1:1)*(Ve[It]-Pe[It]+Pe.scrollLeft)));const St={[It]:ft,[V]:Ve?Ve[V]:0};if(typeof oe[It]!="number"||typeof oe[V]!="number")fe(St);else{const yn=Math.abs(oe[It]-St[It]),Bn=Math.abs(oe[V]-St[V]);(yn>=1||Bn>=1)&&fe(St)}}),Le=(Pe,{animation:Ve=!0}={})=>{Ve?iRe(N,be.current,Pe,{duration:o.transitions.duration.standard}):be.current[N]=Pe},de=Pe=>{let Ve=be.current[N];j?Ve+=Pe:Ve+=Pe*(i?-1:1),Le(Ve)},$e=()=>{const Pe=be.current[z];let Ve=0;const ft=Array.from(we.current.children);for(let It=0;It<ft.length;It+=1){const St=ft[It];if(Ve+St[z]>Pe){It===0&&(Ve=Pe);break}Ve+=St[z]}return Ve},ke=()=>{de(-1*$e())},Me=()=>{de($e())},De=v.useCallback(Pe=>{xe({overflow:null,scrollbarWidth:Pe})},[]),Ye=()=>{const Pe={};Pe.scrollbarSizeListener=L?$.jsx(bRe,{onChange:De,className:pe(G.scrollableX,G.hideScrollbar)}):null;const ft=L&&(x==="auto"&&(se||ce)||x===!0);return Pe.scrollButtonStart=ft?$.jsx(b,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:y,direction:i?"right":"left",onClick:ke,disabled:!se,...O,className:pe(G.scrollButtons,O.className)}):null,Pe.scrollButtonEnd=ft?$.jsx(b,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:K},orientation:y,direction:i?"left":"right",onClick:Me,disabled:!ce,...O,className:pe(G.scrollButtons,O.className)}):null,Pe},Je=Ko(Pe=>{const{tabsMeta:Ve,tabMeta:ft}=Te();if(!(!ft||!Ve)){if(ft[F]<Ve[F]){const It=Ve[N]+(ft[F]-Ve[F]);Le(It,{animation:Pe})}else if(ft[U]>Ve[U]){const It=Ve[N]+(ft[U]-Ve[U]);Le(It,{animation:Pe})}}}),st=Ko(()=>{L&&x!==!1&&ue(!Q)});v.useEffect(()=>{const Pe=TS(()=>{be.current&&Ie()});let Ve;const ft=yn=>{yn.forEach(Bn=>{Bn.removedNodes.forEach(Wn=>{Ve==null||Ve.unobserve(Wn)}),Bn.addedNodes.forEach(Wn=>{Ve==null||Ve.observe(Wn)})}),Pe(),st()},It=rs(be.current);It.addEventListener("resize",Pe);let St;return typeof ResizeObserver<"u"&&(Ve=new ResizeObserver(Pe),Array.from(we.current.children).forEach(yn=>{Ve.observe(yn)})),typeof MutationObserver<"u"&&(St=new MutationObserver(ft),St.observe(we.current,{childList:!0})),()=>{Pe.clear(),It.removeEventListener("resize",Pe),St==null||St.disconnect(),Ve==null||Ve.disconnect()}},[Ie,st]),v.useEffect(()=>{const Pe=Array.from(we.current.children),Ve=Pe.length;if(typeof IntersectionObserver<"u"&&Ve>0&&L&&x!==!1){const ft=Pe[0],It=Pe[Ve-1],St={root:be.current,threshold:.99},yn=Oo=>{ee(!Oo[0].isIntersecting)},Bn=new IntersectionObserver(yn,St);Bn.observe(ft);const Wn=Oo=>{le(!Oo[0].isIntersecting)},To=new IntersectionObserver(Wn,St);return To.observe(It),()=>{Bn.disconnect(),To.disconnect()}}},[L,x,Q,u==null?void 0:u.length]),v.useEffect(()=>{re(!0)},[]),v.useEffect(()=>{Ie()}),v.useEffect(()=>{Je(qU!==oe)},[Je,oe]),v.useImperativeHandle(l,()=>({updateIndicator:Ie,updateScrollButtons:st}),[Ie,st]);const Rt=$.jsx(vRe,{...T,className:pe(G.indicator,T.className),ownerState:W,style:{...oe,...T.style}});let ct=0;const Lt=v.Children.map(u,Pe=>{if(!v.isValidElement(Pe))return null;const Ve=Pe.props.value===void 0?ct:Pe.props.value;me.set(Ve,ct);const ft=Ve===M;return ct+=1,v.cloneElement(Pe,{fullWidth:I==="fullWidth",indicator:ft&&!ne&&Rt,selected:ft,selectionFollowsFocus:S,onChange:g,textColor:k,value:Ve,...ct===1&&M===!1&&!Pe.props.tabIndex?{tabIndex:0}:{}})}),pt=Pe=>{const Ve=we.current,ft=ui(Ve).activeElement;if(ft.getAttribute("role")!=="tab")return;let St=y==="horizontal"?"ArrowLeft":"ArrowUp",yn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(St="ArrowRight",yn="ArrowLeft"),Pe.key){case St:Pe.preventDefault(),qC(Ve,ft,GU);break;case yn:Pe.preventDefault(),qC(Ve,ft,WU);break;case"Home":Pe.preventDefault(),qC(Ve,null,WU);break;case"End":Pe.preventDefault(),qC(Ve,null,GU);break}},rt=Ye();return $.jsxs(mRe,{className:pe(G.root,d),ownerState:W,ref:n,as:f,..._,children:[rt.scrollButtonStart,rt.scrollbarSizeListener,$.jsxs(gRe,{className:G.scroller,ownerState:W,style:{overflow:ge.overflow,[j?`margin${i?"Left":"Right"}`:"marginBottom"]:R?void 0:-ge.scrollbarWidth},ref:be,children:[$.jsx(yRe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:G.flexContainer,ownerState:W,onKeyDown:pt,ref:we,role:"tablist",children:Lt}),ne&&Rt]}),rt.scrollButtonEnd]})});function xRe(e){return Ze("MuiTextField",e)}tt("MuiTextField",["root"]);const SRe={standard:dj,filled:uj,outlined:mj},CRe=e=>{const{classes:t}=e;return et({root:["root"]},xRe,t)},PRe=ie(Wv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mn=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:y,inputProps:b,InputProps:x,inputRef:S,label:P,maxRows:E,minRows:T,multiline:O=!1,name:k,onBlur:M,onChange:I,onFocus:R,placeholder:_,required:L=!1,rows:j,select:N=!1,SelectProps:F,slots:U={},slotProps:z={},type:V,value:W,variant:G="outlined",...J}=r,K={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:p,multiline:O,required:L,select:N,variant:G},ne=CRe(K),re=Ph(g),oe=m&&re?`${re}-helper-text`:void 0,fe=P&&re?`${re}-label`:void 0,se=SRe[G],ee={slots:U,slotProps:{input:x,inputLabel:y,htmlInput:b,formHelperText:f,select:F,...z}},ce={},le=ee.slotProps.inputLabel;G==="outlined"&&(le&&typeof le.shrink<"u"&&(ce.notched=le.shrink),ce.label=P),N&&((!F||!F.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const[Q,ue]=dn("input",{elementType:se,externalForwardedProps:ee,additionalProps:ce,ownerState:K}),[ge,xe]=dn("inputLabel",{elementType:Gv,externalForwardedProps:ee,ownerState:K}),[me,be]=dn("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:K}),[we,Te]=dn("formHelperText",{elementType:_S,externalForwardedProps:ee,ownerState:K}),[Ie,Le]=dn("select",{elementType:Jh,externalForwardedProps:ee,ownerState:K}),de=$.jsx(Q,{"aria-describedby":oe,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:p,multiline:O,name:k,rows:j,maxRows:E,minRows:T,type:V,value:W,id:re,inputRef:S,onBlur:M,onChange:I,onFocus:R,placeholder:_,inputProps:be,slots:{input:U.htmlInput?me:void 0},...ue});return $.jsxs(PRe,{className:pe(ne.root,s),disabled:u,error:d,fullWidth:p,ref:n,required:L,color:l,variant:G,ownerState:K,...J,children:[P!=null&&P!==""&&$.jsx(ge,{htmlFor:re,id:fe,...xe,children:P}),N?$.jsx(Ie,{"aria-describedby":oe,id:re,labelId:fe,value:W,input:de,...Le,children:a}):de,m&&$.jsx(we,{id:oe,...Te,children:m})]})});function ERe(e){return Ze("MuiToggleButton",e)}const Yp=tt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),YZ=v.createContext({}),XZ=v.createContext(void 0);function TRe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const ORe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Ce(i)}`,a]};return et(s,ERe,t)},IRe=ie(Xi,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Ce(n.size)}`]]}})(Qe(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Yp.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Yp.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Vn()).map(([t])=>({props:{color:t},style:{[`&.${Yp.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),g0=v.forwardRef(function(t,n){const{value:r,...o}=v.useContext(YZ),i=v.useContext(XZ),a=_y({...o,selected:TRe(t.value,r)},t),s=nt({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:f=!1,fullWidth:p=!1,onChange:m,onClick:g,selected:y,size:b="medium",value:x,...S}=s,P={...s,color:u,disabled:d,disableFocusRipple:f,fullWidth:p,size:b},E=ORe(P),T=k=>{g&&(g(k,x),k.defaultPrevented)||m&&m(k,x)},O=i||"";return $.jsx(IRe,{className:pe(o.className,E.root,c,O),disabled:d,focusRipple:!f,ref:n,onClick:T,onChange:m,value:x,ownerState:P,"aria-pressed":y,...S,children:l})});function kRe(e){return Ze("MuiToggleButtonGroup",e)}const Er=tt("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),MRe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Ce(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return et(i,kRe,t)},ARe=ie("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Er.grouped}`]:t.grouped},{[`& .${Er.grouped}`]:t[`grouped${Ce(n.orientation)}`]},{[`& .${Er.firstButton}`]:t.firstButton},{[`& .${Er.lastButton}`]:t.lastButton},{[`& .${Er.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(Qe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Er.grouped}`]:{[`&.${Er.selected} + .${Er.grouped}.${Er.selected}`]:{borderTop:0,marginTop:0}},[`& .${Er.firstButton},& .${Er.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Er.lastButton},& .${Er.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Er.lastButton}.${Yp.disabled},& .${Er.middleButton}.${Yp.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Er.grouped}`]:{[`&.${Er.selected} + .${Er.grouped}.${Er.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Er.firstButton},& .${Er.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Er.lastButton},& .${Er.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Er.lastButton}.${Yp.disabled},& .${Er.middleButton}.${Yp.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),$Re=v.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:p,...m}=r,g={...r,disabled:s,fullWidth:c,orientation:d,size:f},y=MRe(g),b=v.useCallback((O,k)=>{if(!u)return;const M=p&&p.indexOf(k);let I;p&&M>=0?(I=p.slice(),I.splice(M,1)):I=p?p.concat(k):[k],u(O,I)},[u,p]),x=v.useCallback((O,k)=>{u&&u(O,p===k?null:k)},[u,p]),S=v.useMemo(()=>({className:y.grouped,onChange:l?x:b,value:p,size:f,fullWidth:c,color:a,disabled:s}),[y.grouped,l,x,b,p,f,c,a,s]),P=eQ(o),E=P.length,T=O=>{const k=O===0,M=O===E-1;return k&&M?"":k?y.firstButton:M?y.lastButton:y.middleButton};return $.jsx(ARe,{role:"group",className:pe(y.root,i),ref:n,ownerState:g,...m,children:$.jsx(YZ.Provider,{value:S,children:P.map((O,k)=>$.jsx(XZ.Provider,{value:T(k),children:O},k))})})}),RRe=(...e)=>{console!=null&&console.warn&&(hh(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},KU={},FD=(...e)=>{hh(e[0])&&KU[e[0]]||(hh(e[0])&&(KU[e[0]]=new Date),RRe(...e))},QZ=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},jD=(e,t,n)=>{e.loadNamespaces(t,QZ(e,n))},YU=(e,t,n,r)=>{if(hh(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return jD(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,QZ(e,r))},DRe=(e,t,n={})=>!t.languages||!t.languages.length?(FD("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),hh=e=>typeof e=="string",_Re=e=>typeof e=="object"&&e!==null,LRe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NRe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},FRe=e=>NRe[e],jRe=e=>e.replace(LRe,FRe);let BD={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:jRe};const BRe=(e={})=>{BD={...BD,...e}},zRe=()=>BD;let JZ;const VRe=e=>{JZ=e},HRe=()=>JZ,URe={type:"3rdParty",init(e){BRe(e.options.react),VRe(e)}},WRe=v.createContext();class GRe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const qRe=(e,t)=>{const n=v.useRef();return v.useEffect(()=>{n.current=e},[e,t]),n.current},ZZ=(e,t,n,r)=>e.getFixedT(t,n,r),KRe=(e,t,n,r)=>v.useCallback(ZZ(e,t,n,r),[e,t,n,r]),Ue=(e,t={})=>{var P,E,T,O;const{i18n:n}=t,{i18n:r,defaultNS:o}=v.useContext(WRe)||{},i=n||r||HRe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new GRe),!i){FD("You will need to pass in an i18next instance by using initReactI18next");const k=(I,R)=>hh(R)?R:_Re(R)&&hh(R.defaultValue)?R.defaultValue:Array.isArray(I)?I[I.length-1]:I,M=[k,{},!1];return M.t=k,M.i18n={},M.ready=!1,M}(P=i.options.react)!=null&&P.wait&&FD("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...zRe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=o||((E=i.options)==null?void 0:E.defaultNS);c=hh(c)?[c]:c||["translation"],(O=(T=i.reportNamespaces).addUsedNamespaces)==null||O.call(T,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(k=>DRe(k,i,a)),d=KRe(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),f=()=>d,p=()=>ZZ(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[m,g]=v.useState(f);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const b=qRe(y),x=v.useRef(!0);v.useEffect(()=>{const{bindI18n:k,bindI18nStore:M}=a;x.current=!0,!u&&!s&&(t.lng?YU(i,t.lng,c,()=>{x.current&&g(p)}):jD(i,c,()=>{x.current&&g(p)})),u&&b&&b!==y&&x.current&&g(p);const I=()=>{x.current&&g(p)};return k&&(i==null||i.on(k,I)),M&&(i==null||i.store.on(M,I)),()=>{x.current=!1,i&&(k==null||k.split(" ").forEach(R=>i.off(R,I))),M&&i&&M.split(" ").forEach(R=>i.store.off(R,I))}},[i,y]),v.useEffect(()=>{x.current&&u&&g(f)},[i,l,u]);const S=[m,i,u];if(S.t=m,S.i18n=i,S.ready=u,u||!u&&!s)return S;throw new Promise(k=>{t.lng?YU(i,t.lng,c,()=>k()):jD(i,c,()=>k())})},Sa=()=>{const[e]=Ue();return C($n,{sx:{textAlign:"center"},children:e("loading")})},Po=()=>C($n,{sx:{height:200,alignItems:"center",mt:2},component:Gt,direction:"column",justifyContent:"center",children:C(EZ,{})}),eee=lt($.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Kv=lt($.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),NS=lt($.jsx("path",{d:"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z"}),"HistoryEdu"),fd=lt($.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Photo"),FS=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),na=({title:e,subtitle:t,isOpen:n,closeFn:r,children:o})=>C(Uv,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X(co,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[C(uc,{title:e,subheader:t,action:C(FS,{onClick:r})}),C(Oi,{children:o}),C(ps,{})]})}),LI=e=>{const[t]=Ue(),n=e.height?e.height:"50vh";return C(At,{children:X($n,{sx:{height:n,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"},children:[C(ut,{variant:"h6",mr:3,children:t("nothingHereYet")}),C(ut,{mr:3,children:t("nothingHereYetAction")})]})})},vj=e=>{const[t]=Ue(),[n,r]=Y.useState(!1),o=()=>r(!0),i=()=>r(!1),a=e.link!==void 0?C(yt,{size:"small",variant:"contained",href:e.link,children:t("add")}):C(yt,{size:"small",variant:"contained",onClick:o,children:t("add")});return X(At,{children:[X(co,{children:[C(uc,{title:e.title,subheader:".",sx:{paddingBottom:0}}),C(Oi,{sx:{paddingTop:0,height:"500px"},children:C(LI,{})}),C(ps,{children:a})]}),C(na,{title:t("add"),isOpen:n,closeFn:i,children:e.modalContent})]})};function tee(e,t){return function(){return e.apply(t,arguments)}}const{toString:YRe}=Object.prototype,{getPrototypeOf:bj}=Object,NI=(e=>t=>{const n=YRe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dc=e=>(e=e.toLowerCase(),t=>NI(t)===e),FI=e=>t=>typeof t===e,{isArray:Yv}=Array,hx=FI("undefined");function XRe(e){return e!==null&&!hx(e)&&e.constructor!==null&&!hx(e.constructor)&&Za(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nee=dc("ArrayBuffer");function QRe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nee(e.buffer),t}const JRe=FI("string"),Za=FI("function"),ree=FI("number"),jI=e=>e!==null&&typeof e=="object",ZRe=e=>e===!0||e===!1,KP=e=>{if(NI(e)!=="object")return!1;const t=bj(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},e2e=dc("Date"),t2e=dc("File"),n2e=dc("Blob"),r2e=dc("FileList"),o2e=e=>jI(e)&&Za(e.pipe),i2e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Za(e.append)&&((t=NI(e))==="formdata"||t==="object"&&Za(e.toString)&&e.toString()==="[object FormData]"))},a2e=dc("URLSearchParams"),[s2e,l2e,c2e,u2e]=["ReadableStream","Request","Response","Headers"].map(dc),d2e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Yv(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function oee(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iee=e=>!hx(e)&&e!==Xp;function zD(){const{caseless:e}=iee(this)&&this||{},t={},n=(r,o)=>{const i=e&&oee(t,o)||o;KP(t[i])&&KP(r)?t[i]=zD(t[i],r):KP(r)?t[i]=zD({},r):Yv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&jS(arguments[r],n);return t}const f2e=(e,t,n,{allOwnKeys:r}={})=>(jS(t,(o,i)=>{n&&Za(o)?e[i]=tee(o,n):e[i]=o},{allOwnKeys:r}),e),p2e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),h2e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},m2e=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&bj(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g2e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y2e=e=>{if(!e)return null;if(Yv(e))return e;let t=e.length;if(!ree(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},v2e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bj(Uint8Array)),b2e=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},w2e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},x2e=dc("HTMLFormElement"),S2e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),XU=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),C2e=dc("RegExp"),aee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jS(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},P2e=e=>{aee(e,(t,n)=>{if(Za(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Za(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},E2e=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Yv(e)?r(e):r(String(e).split(t)),n},T2e=()=>{},O2e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,V$="abcdefghijklmnopqrstuvwxyz",QU="0123456789",see={DIGIT:QU,ALPHA:V$,ALPHA_DIGIT:V$+V$.toUpperCase()+QU},I2e=(e=16,t=see.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function k2e(e){return!!(e&&Za(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const M2e=e=>{const t=new Array(10),n=(r,o)=>{if(jI(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Yv(r)?[]:{};return jS(r,(a,s)=>{const l=n(a,o+1);!hx(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},A2e=dc("AsyncFunction"),$2e=e=>e&&(jI(e)||Za(e))&&Za(e.then)&&Za(e.catch),lee=((e,t)=>e?setImmediate:t?((n,r)=>(Xp.addEventListener("message",({source:o,data:i})=>{o===Xp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Xp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Za(Xp.postMessage)),R2e=typeof queueMicrotask<"u"?queueMicrotask.bind(Xp):typeof process<"u"&&process.nextTick||lee,Re={isArray:Yv,isArrayBuffer:nee,isBuffer:XRe,isFormData:i2e,isArrayBufferView:QRe,isString:JRe,isNumber:ree,isBoolean:ZRe,isObject:jI,isPlainObject:KP,isReadableStream:s2e,isRequest:l2e,isResponse:c2e,isHeaders:u2e,isUndefined:hx,isDate:e2e,isFile:t2e,isBlob:n2e,isRegExp:C2e,isFunction:Za,isStream:o2e,isURLSearchParams:a2e,isTypedArray:v2e,isFileList:r2e,forEach:jS,merge:zD,extend:f2e,trim:d2e,stripBOM:p2e,inherits:h2e,toFlatObject:m2e,kindOf:NI,kindOfTest:dc,endsWith:g2e,toArray:y2e,forEachEntry:b2e,matchAll:w2e,isHTMLForm:x2e,hasOwnProperty:XU,hasOwnProp:XU,reduceDescriptors:aee,freezeMethods:P2e,toObjectSet:E2e,toCamelCase:S2e,noop:T2e,toFiniteNumber:O2e,findKey:oee,global:Xp,isContextDefined:iee,ALPHABET:see,generateString:I2e,isSpecCompliantForm:k2e,toJSONObject:M2e,isAsyncFn:A2e,isThenable:$2e,setImmediate:lee,asap:R2e};function rn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Re.inherits(rn,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:Re.toJSONObject(this.config),code:this.code,status:this.status}}});const cee=rn.prototype,uee={};["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=>{uee[e]={value:e}});Object.defineProperties(rn,uee);Object.defineProperty(cee,"isAxiosError",{value:!0});rn.from=(e,t,n,r,o,i)=>{const a=Object.create(cee);return Re.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),rn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const D2e=null;function VD(e){return Re.isPlainObject(e)||Re.isArray(e)}function dee(e){return Re.endsWith(e,"[]")?e.slice(0,-2):e}function JU(e,t,n){return e?e.concat(t).map(function(o,i){return o=dee(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _2e(e){return Re.isArray(e)&&!e.some(VD)}const L2e=Re.toFlatObject(Re,{},null,function(t){return/^is[A-Z]/.test(t)});function BI(e,t,n){if(!Re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!Re.isUndefined(y[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(t);if(!Re.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(Re.isDate(m))return m.toISOString();if(!l&&Re.isBlob(m))throw new rn("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(m)||Re.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(Re.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(Re.isArray(m)&&_2e(m)||(Re.isFileList(m)||Re.endsWith(g,"[]"))&&(b=Re.toArray(m)))return g=dee(g),b.forEach(function(S,P){!(Re.isUndefined(S)||S===null)&&t.append(a===!0?JU([g],P,i):a===null?g:g+"[]",c(S))}),!1}return VD(m)?!0:(t.append(JU(y,g,i),c(m)),!1)}const d=[],f=Object.assign(L2e,{defaultVisitor:u,convertValue:c,isVisitable:VD});function p(m,g){if(!Re.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),Re.forEach(m,function(b,x){(!(Re.isUndefined(b)||b===null)&&o.call(t,b,Re.isString(x)?x.trim():x,g,f))===!0&&p(b,g?g.concat(x):[x])}),d.pop()}}if(!Re.isObject(e))throw new TypeError("data must be an object");return p(e),t}function ZU(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wj(e,t){this._pairs=[],e&&BI(e,this,t)}const fee=wj.prototype;fee.append=function(t,n){this._pairs.push([t,n])};fee.toString=function(t){const n=t?function(r){return t.call(this,r,ZU)}:ZU;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function N2e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pee(e,t,n){if(!t)return e;const r=n&&n.encode||N2e;Re.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Re.isURLSearchParams(t)?t.toString():new wj(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class eW{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Re.forEach(this.handlers,function(r){r!==null&&t(r)})}}const hee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F2e=typeof URLSearchParams<"u"?URLSearchParams:wj,j2e=typeof FormData<"u"?FormData:null,B2e=typeof Blob<"u"?Blob:null,z2e={isBrowser:!0,classes:{URLSearchParams:F2e,FormData:j2e,Blob:B2e},protocols:["http","https","file","blob","url","data"]},xj=typeof window<"u"&&typeof document<"u",HD=typeof navigator=="object"&&navigator||void 0,V2e=xj&&(!HD||["ReactNative","NativeScript","NS"].indexOf(HD.product)<0),H2e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",U2e=xj&&window.location.href||"http://localhost",W2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xj,hasStandardBrowserEnv:V2e,hasStandardBrowserWebWorkerEnv:H2e,navigator:HD,origin:U2e},Symbol.toStringTag,{value:"Module"})),Ti={...W2e,...z2e};function G2e(e,t){return BI(e,new Ti.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ti.isNode&&Re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function q2e(e){return Re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K2e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function mee(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Re.isArray(o)?o.length:a,l?(Re.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Re.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Re.isArray(o[a])&&(o[a]=K2e(o[a])),!s)}if(Re.isFormData(e)&&Re.isFunction(e.entries)){const n={};return Re.forEachEntry(e,(r,o)=>{t(q2e(r),o,n,0)}),n}return null}function Y2e(e,t,n){if(Re.isString(e))try{return(t||JSON.parse)(e),Re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const BS={transitional:hee,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Re.isObject(t);if(i&&Re.isHTMLForm(t)&&(t=new FormData(t)),Re.isFormData(t))return o?JSON.stringify(mee(t)):t;if(Re.isArrayBuffer(t)||Re.isBuffer(t)||Re.isStream(t)||Re.isFile(t)||Re.isBlob(t)||Re.isReadableStream(t))return t;if(Re.isArrayBufferView(t))return t.buffer;if(Re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return G2e(t,this.formSerializer).toString();if((s=Re.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return BI(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Y2e(t)):t}],transformResponse:[function(t){const n=this.transitional||BS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Re.isResponse(t)||Re.isReadableStream(t))return t;if(t&&Re.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?rn.from(s,rn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ti.classes.FormData,Blob:Ti.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Re.forEach(["delete","get","head","post","put","patch"],e=>{BS.headers[e]={}});const X2e=Re.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"]),Q2e=e=>{const t={};let n,r,o;return e&&e.split(`
+`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&X2e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tW=Symbol("internals");function y0(e){return e&&String(e).trim().toLowerCase()}function YP(e){return e===!1||e==null?e:Re.isArray(e)?e.map(YP):String(e)}function J2e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Z2e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function H$(e,t,n,r,o){if(Re.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Re.isString(t)){if(Re.isString(r))return t.indexOf(r)!==-1;if(Re.isRegExp(r))return r.test(t)}}function eDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tDe(e,t){const n=Re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Ca{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=y0(l);if(!u)throw new Error("header name must be a non-empty string");const d=Re.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=YP(s))}const a=(s,l)=>Re.forEach(s,(c,u)=>i(c,u,l));if(Re.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Re.isString(t)&&(t=t.trim())&&!Z2e(t))a(Q2e(t),n);else if(Re.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=y0(t),t){const r=Re.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return J2e(o);if(Re.isFunction(n))return n.call(this,o,r);if(Re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=y0(t),t){const r=Re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||H$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=y0(a),a){const s=Re.findKey(r,a);s&&(!n||H$(r,r[s],s,n))&&(delete r[s],o=!0)}}return Re.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||H$(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Re.forEach(this,(o,i)=>{const a=Re.findKey(r,i);if(a){n[a]=YP(o),delete n[i];return}const s=t?eDe(i):String(i).trim();s!==i&&delete n[i],n[s]=YP(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Re.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[tW]=this[tW]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=y0(a);r[s]||(tDe(o,a),r[s]=!0)}return Re.isArray(t)?t.forEach(i):i(t),this}}Ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.reduceDescriptors(Ca.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Re.freezeMethods(Ca);function U$(e,t){const n=this||BS,r=t||n,o=Ca.from(r.headers);let i=r.data;return Re.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function gee(e){return!!(e&&e.__CANCEL__)}function Xv(e,t,n){rn.call(this,e??"canceled",rn.ERR_CANCELED,t,n),this.name="CanceledError"}Re.inherits(Xv,rn,{__CANCEL__:!0});function yee(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rn("Request failed with status code "+n.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nDe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rDe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function oDe(e,t){let n=0,r=1e3/t,o,i;const a=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const ZE=(e,t,n=3)=>{let r=0;const o=rDe(50,250);return oDe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},nW=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rW=e=>(...t)=>Re.asap(()=>e(...t)),iDe=Ti.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ti.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ti.origin),Ti.navigator&&/(msie|trident)/i.test(Ti.navigator.userAgent)):()=>!0,aDe=Ti.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Re.isString(r)&&a.push("path="+r),Re.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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 sDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lDe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vee(e,t){return e&&!sDe(t)?lDe(e,t):t}const oW=e=>e instanceof Ca?{...e}:e;function Dh(e,t){t=t||{};const n={};function r(c,u,d,f){return Re.isPlainObject(c)&&Re.isPlainObject(u)?Re.merge.call({caseless:f},c,u):Re.isPlainObject(u)?Re.merge({},u):Re.isArray(u)?u.slice():u}function o(c,u,d,f){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function i(c,u){if(!Re.isUndefined(u))return r(void 0,u)}function a(c,u){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>o(oW(c),oW(u),d,!0)};return Re.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);Re.isUndefined(f)&&d!==s||(n[u]=f)}),n}const bee=e=>{const t=Dh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Ca.from(a),t.url=pee(vee(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Re.isFormData(n)){if(Ti.hasStandardBrowserEnv||Ti.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ti.hasStandardBrowserEnv&&(r&&Re.isFunction(r)&&(r=r(t)),r||r!==!1&&iDe(t.url))){const c=o&&i&&aDe.read(i);c&&a.set(o,c)}return t},cDe=typeof XMLHttpRequest<"u",uDe=cDe&&function(e){return new Promise(function(n,r){const o=bee(e);let i=o.data;const a=Ca.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,p,m;function g(){p&&p(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const S=Ca.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};yee(function(O){n(O),g()},function(O){r(O),g()},E),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new rn("Request aborted",rn.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new rn("Network Error",rn.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||hee;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),r(new rn(P,E.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&Re.forEach(a.toJSON(),function(P,E){y.setRequestHeader(E,P)}),Re.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),c&&([f,m]=ZE(c,!0),y.addEventListener("progress",f)),l&&y.upload&&([d,p]=ZE(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=S=>{y&&(r(!S||S.type?new Xv(null,e,y):S),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=nDe(o.url);if(x&&Ti.protocols.indexOf(x)===-1){r(new rn("Unsupported protocol "+x+":",rn.ERR_BAD_REQUEST,e));return}y.send(i||null)})},dDe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof rn?u:new Xv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new rn(`timeout ${t} of ms exceeded`,rn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Re.asap(s),l}},fDe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},pDe=async function*(e,t){for await(const n of hDe(e))yield*fDe(n,t)},hDe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},iW=(e,t,n,r)=>{const o=pDe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},zI=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wee=zI&&typeof ReadableStream=="function",mDe=zI&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xee=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gDe=wee&&xee(()=>{let e=!1;const t=new Request(Ti.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),aW=64*1024,UD=wee&&xee(()=>Re.isReadableStream(new Response("").body)),eT={stream:UD&&(e=>e.body)};zI&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!eT[t]&&(eT[t]=Re.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new rn(`Response type '${t}' is not supported`,rn.ERR_NOT_SUPPORT,r)})})})(new Response);const yDe=async e=>{if(e==null)return 0;if(Re.isBlob(e))return e.size;if(Re.isSpecCompliantForm(e))return(await new Request(Ti.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Re.isArrayBufferView(e)||Re.isArrayBuffer(e))return e.byteLength;if(Re.isURLSearchParams(e)&&(e=e+""),Re.isString(e))return(await mDe(e)).byteLength},vDe=async(e,t)=>{const n=Re.toFiniteNumber(e.getContentLength());return n??yDe(t)},bDe=zI&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=bee(e);c=c?(c+"").toLowerCase():"text";let p=dDe([o,i&&i.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&gDe&&n!=="get"&&n!=="head"&&(y=await vDe(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(Re.isFormData(r)&&(T=E.headers.get("content-type"))&&u.setContentType(T),E.body){const[O,k]=nW(y,ZE(rW(l)));r=iW(E.body,aW,O,k)}}Re.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(m);const S=UD&&(c==="stream"||c==="response");if(UD&&(s||S&&g)){const E={};["status","statusText","headers"].forEach(M=>{E[M]=x[M]});const T=Re.toFiniteNumber(x.headers.get("content-length")),[O,k]=s&&nW(T,ZE(rW(s),!0))||[];x=new Response(iW(x.body,aW,O,()=>{k&&k(),g&&g()}),E)}c=c||"text";let P=await eT[Re.findKey(eT,c)||"text"](x,e);return!S&&g&&g(),await new Promise((E,T)=>{yee(E,T,{data:P,headers:Ca.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:m})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new rn("Network Error",rn.ERR_NETWORK,e,m),{cause:b.cause||b}):rn.from(b,b&&b.code,e,m)}}),WD={http:D2e,xhr:uDe,fetch:bDe};Re.forEach(WD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sW=e=>`- ${e}`,wDe=e=>Re.isFunction(e)||e===null||e===!1,See={getAdapter:e=>{e=Re.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!wDe(n)&&(r=WD[(a=String(n)).toLowerCase()],r===void 0))throw new rn(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
+`+i.map(sW).join(`
+`):" "+sW(i[0]):"as no adapter specified";throw new rn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:WD};function W$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xv(null,e)}function lW(e){return W$(e),e.headers=Ca.from(e.headers),e.data=U$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),See.getAdapter(e.adapter||BS.adapter)(e).then(function(r){return W$(e),r.data=U$.call(e,e.transformResponse,r),r.headers=Ca.from(r.headers),r},function(r){return gee(r)||(W$(e),r&&r.response&&(r.response.data=U$.call(e,e.transformResponse,r.response),r.response.headers=Ca.from(r.response.headers))),Promise.reject(r)})}const Cee="1.7.9",VI={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{VI[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cW={};VI.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Cee+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new rn(o(a," has been removed"+(n?" in "+n:"")),rn.ERR_DEPRECATED);return n&&!cW[a]&&(cW[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};VI.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xDe(e,t,n){if(typeof e!="object")throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new rn("option "+i+" must be "+l,rn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rn("Unknown option "+i,rn.ERR_BAD_OPTION)}}const XP={assertOptions:xDe,validators:VI},vc=XP.validators;class mh{constructor(t){this.defaults=t,this.interceptors={request:new eW,response:new eW}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
+`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&XP.assertOptions(r,{silentJSONParsing:vc.transitional(vc.boolean),forcedJSONParsing:vc.transitional(vc.boolean),clarifyTimeoutError:vc.transitional(vc.boolean)},!1),o!=null&&(Re.isFunction(o)?n.paramsSerializer={serialize:o}:XP.assertOptions(o,{encode:vc.function,serialize:vc.function},!0)),XP.assertOptions(n,{baseUrl:vc.spelling("baseURL"),withXsrfToken:vc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Re.merge(i.common,i[n.method]);i&&Re.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Ca.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const m=[lW.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{p=m(p)}catch(y){g.call(this,y);break}}try{u=lW.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Dh(this.defaults,t);const n=vee(t.baseURL,t.url);return pee(n,t.params,t.paramsSerializer)}}Re.forEach(["delete","get","head","options"],function(t){mh.prototype[t]=function(n,r){return this.request(Dh(r||{},{method:t,url:n,data:(r||{}).data}))}});Re.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Dh(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}mh.prototype[t]=n(),mh.prototype[t+"Form"]=n(!0)});class Sj{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Xv(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sj(function(o){t=o}),cancel:t}}}function SDe(e){return function(n){return e.apply(null,n)}}function CDe(e){return Re.isObject(e)&&e.isAxiosError===!0}const GD={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(GD).forEach(([e,t])=>{GD[t]=e});function Pee(e){const t=new mh(e),n=tee(mh.prototype.request,t);return Re.extend(n,mh.prototype,t,{allOwnKeys:!0}),Re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Pee(Dh(e,o))},n}const dt=Pee(BS);dt.Axios=mh;dt.CanceledError=Xv;dt.CancelToken=Sj;dt.isCancel=gee;dt.VERSION=Cee;dt.toFormData=BI;dt.AxiosError=rn;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=SDe;dt.isAxiosError=CDe;dt.mergeConfig=Dh;dt.AxiosHeaders=Ca;dt.formToJSON=e=>mee(Re.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=See.getAdapter;dt.HttpStatusCode=GD;dt.default=dt;const iy={protein:4,carbohydrates:4,fat:9};class qa{constructor(t){tn(this,"bodyWeight",0);tn(this,"energy",0);tn(this,"protein",0);tn(this,"carbohydrates",0);tn(this,"carbohydratesSugar",0);tn(this,"fat",0);tn(this,"fatSaturated",0);tn(this,"fiber",0);tn(this,"sodium",0);this.energy=(t==null?void 0:t.energy)??0,this.protein=(t==null?void 0:t.protein)??0,this.carbohydrates=(t==null?void 0:t.carbohydrates)??0,this.carbohydratesSugar=(t==null?void 0:t.carbohydratesSugar)??0,this.fat=(t==null?void 0:t.fat)??0,this.fatSaturated=(t==null?void 0:t.fatSaturated)??0,this.fiber=(t==null?void 0:t.fiber)??0,this.sodium=(t==null?void 0:t.sodium)??0,this.bodyWeight=(t==null?void 0:t.bodyWeight)??0}get energyKj(){return this.energy*4.184}get isEmpty(){return this.energy===0&&this.protein===0&&this.carbohydrates===0&&this.fat===0}get percent(){return{protein:this.protein>0?this.protein*iy.protein/this.energy*100:0,carbohydrates:this.carbohydrates>0?this.carbohydrates*iy.carbohydrates/this.energy*100:0,fat:this.fat>0?this.fat*iy.fat/this.energy*100:0}}get perBodyKg(){return{protein:this.bodyWeight>0?this.protein/this.bodyWeight:0,carbohydrates:this.bodyWeight>0?this.carbohydrates/this.bodyWeight:0,fat:this.bodyWeight>0?this.fat/this.bodyWeight:0}}static fromIngredient(t,n,r){const o=new qa,i=r===null?n:n*r.amount*r.grams;return o.energy=t.energy*i/100,o.protein=t.protein*i/100,o.carbohydrates=t.carbohydrates*i/100,o.carbohydratesSugar=t.carbohydratesSugar?t.carbohydratesSugar*i/100:0,o.fat=t.fat*i/100,o.fatSaturated=t.fatSaturated?t.fatSaturated*i/100:0,o.fiber=t.fiber?t.fiber*i/100:0,o.sodium=t.sodium?t.sodium*i/100:0,o}add(t){return this.energy+=t.energy,this.protein+=t.protein,this.carbohydrates+=t.carbohydrates,this.carbohydratesSugar+=t.carbohydratesSugar,this.fat+=t.fat,this.fatSaturated+=t.fatSaturated,this.fiber+=t.fiber,this.sodium+=t.sodium,this}toString(){return`e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`}equals(t){return this.energy===t.energy&&this.protein===t.protein&&this.carbohydrates===t.carbohydrates&&this.carbohydratesSugar===t.carbohydratesSugar&&this.fat===t.fat&&this.fatSaturated===t.fatSaturated&&this.fiber===t.fiber&&this.sodium===t.sodium}}function ci(e){return e.toISOString().split("T")[0]}const Eee=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];function Pf(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function tT(e,t){return e==null?null:e.toLocaleTimeString(t?[t]:[],{hour:"2-digit",minute:"2-digit"})}function PDe(e){if(e==null)return null;const[t,n]=e.toTimeString().split(":");return`${t}:${n}`}function EDe(e){if(e==null)return null;const[t,n]=e.split(":"),r=new Date;return r.setHours(parseInt(t)),r.setMinutes(parseInt(n)),r}function TDe(e,t=new Date){const r={lastWeek:()=>t.setDate(t.getDate()-7),lastMonth:()=>t.setMonth(t.getMonth()-1),lastHalfYear:()=>t.setMonth(t.getMonth()-6),lastYear:()=>t.setFullYear(t.getFullYear()-1),"":void 0}[e];if(r)r();else return;return ci(t)}class Tee{constructor(t,n,r,o){tn(this,"items",[]);tn(this,"diaryEntries",[]);this.id=t,this.order=n,this.time=r,this.name=o}get timeHHMMLocale(){return tT(this.time)}get displayName(){return this.name?this.name:this.timeHHMMLocale}get diaryEntriesToday(){return this.diaryEntries.filter(t=>Pf(t.datetime,new Date))}get plannedNutritionalValues(){const t=new qa;for(const n of this.items)t.add(n.nutritionalValues);return t}get loggedNutritionalValuesToday(){const t=new qa;for(const n of this.diaryEntriesToday)t.add(n.nutritionalValues);return t}}class Cj{fromJson(t){return new Tee(t.id,t.order,EDe(t.time),t.name)}toJson(t){return{name:t.name,order:t.order,time:tT(t.time)}}}const QP=-1;class ODe{constructor(t,n,r,o=!1,i=null,a=null,s=null,l=null,c=null,u=null,d=null){tn(this,"meals",[]);tn(this,"diaryEntries",[]);this.id=t,this.creationDate=n,this.description=r,this.onlyLogging=o,this.goalEnergy=i,this.goalProtein=a,this.goalCarbohydrates=s,this.goalFiber=l,this.goalSodium=c,this.goalFat=u,this.goalFatsSaturated=d}get hasAnyGoals(){return this.goalEnergy!==null||this.goalProtein!==null||this.goalCarbohydrates!==null||this.goalFat!==null}get hasAnyAdvancedGoals(){return this.goalFiber!==null||this.goalSodium!==null||this.goalFatsSaturated!==null}get hasAnyPlanned(){return this.hasAnyGoals||this.plannedNutritionalValues.energy>0}get plannedNutritionalValues(){if(this.hasAnyGoals)return new qa({energy:this.goalEnergy,carbohydrates:this.goalCarbohydrates,protein:this.goalProtein,fat:this.goalFat});const t=new qa;for(const n of this.meals)t.add(n.plannedNutritionalValues);return t}get loggedNutritionalValues7DayAvg(){const t=new Date,n=new Date(t.getTime()-7*24*60*60*1e3),r=this.diaryEntries.filter(o=>o.datetime>=n);return this.getAverageNutritionalValuesFromDiaryEntries(r)}get loggedNutritionalValuesToday(){const t=this.diaryEntries.filter(n=>Pf(n.datetime,new Date));return this.getNutritionalValuesFromDiaryEntries(t)}get groupDiaryEntries(){return this.diaryEntries.reduce((t,n)=>{const r=n.datetime.toISOString().split("T")[0],o=t.get(r)||{entries:[],nutritionalValues:new qa};return o.entries.push(n),o.nutritionalValues.add(n.nutritionalValues),t.set(r,o),t},new Map)}get percentageValuesLoggedToday(){return new qa({protein:this.loggedNutritionalValuesToday.protein/this.plannedNutritionalValues.protein*100,carbohydrates:this.loggedNutritionalValuesToday.carbohydrates/this.plannedNutritionalValues.carbohydrates*100,fat:this.loggedNutritionalValuesToday.fat/this.plannedNutritionalValues.fat*100})}pseudoMealOthers(t){const n=new Tee(QP,-1,null,t);return n.diaryEntries=this.diaryEntries.filter(r=>r.mealId===null),n}loggedNutritionalValuesDate(t){return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(t))}loggedEntriesDate(t){return this.diaryEntries.filter(n=>Pf(n.datetime,t))}getAverageNutritionalValuesFromDiaryEntries(t){const n=t.length,r=this.getNutritionalValuesFromDiaryEntries(t);return n===0||(r.energy=r.energy/n,r.protein=r.protein/n,r.carbohydrates=r.carbohydrates/n,r.carbohydratesSugar=r.carbohydratesSugar/n,r.fat=r.fat/n,r.fatSaturated=r.fatSaturated/n,r.fiber=r.fiber/n,r.sodium=r.sodium/n),r}getNutritionalValuesFromDiaryEntries(t){return t.reduce((n,r)=>n.add(r.nutritionalValues),new qa)}}class HI{fromJson(t){return new ODe(t.id,new Date(t.creation_date),t.description,t.only_logging,t.goal_energy,t.goal_protein,t.goal_carbohydrates,t.goal_fiber,t.goal_fat)}toJson(t){return{description:t.description}}}class IDe{constructor(t,n,r,o,i,a,s,l){this.id=t,this.uuid=n,this.url=r,this.created=o,this.lastUpdate=i,this.size=a,this.width=s,this.height=l}}class kDe{fromJson(t){return new IDe(t.id,t.uuid,t.image,new Date(t.created),new Date(t.last_update),t.size,t.width,t.height)}}class MDe{constructor(t,n,r,o,i,a,s,l,c,u,d,f,p=null){this.id=t,this.uuid=n,this.code=r,this.name=o,this.energy=i,this.protein=a,this.carbohydrates=s,this.carbohydratesSugar=l,this.fat=c,this.fatSaturated=u,this.fiber=d,this.sodium=f,this.image=p}}class ADe{fromJson(t){return new MDe(t.id,t.uuid,t.code,t.name,t.energy,parseFloat(t.protein),parseFloat(t.carbohydrates),t.carbohydrates_sugar===null?null:parseFloat(t.carbohydrates_sugar),parseFloat(t.fat),t.fat_saturated===null?null:parseFloat(t.fat_saturated),t.fiber===null?null:parseFloat(t.fiber),t.sodium===null?null:parseFloat(t.sodium),t.image===null?null:new kDe().fromJson(t.image))}}class Pj{constructor(t,n,r){this.id=t,this.nameShort=n,this.nameLong=r}}class $De{fromJson(t){return new Pj(t.id,t.short_name,t.full_name)}toJson(t){return{}}}var UI={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_SERVER:""};const RDe="/static/react",Ej="",DDe=UI.TIME_ZONE,_De=UI.MIN_ACCOUNT_AGE_TO_TRUST,LDe="",NDe=UI.VITE_API_KEY;console.log(UI);const _h=2,Oee="en",FDe=new Pj(_h,Oee,"English"),jDe=_De||21,Iee=1,BDe=2,zDe=1,VDe=2,HDe="variations",UDe="detail",WDe="permission",GDe="profile",qDe="routine",KDe="routines-shallow",YDe="routines-active",XDe="routines-logs",Qv="measurements",Jv="measurements-categories";var Cn=(e=>(e.NUTRITIONAL_PLANS="nutritional-plans",e.NUTRITIONAL_PLAN="nutritional-plan",e.NUTRITIONAL_PLAN_LAST="nutritional-plan-last",e.INGREDIENT="ingredient",e.BODY_WEIGHT="body-weight",e.EXERCISES="exercises",e.EXERCISE_VARIATIONS="variations",e.EXERCISE_DETAIL="detail",e.LANGUAGES="languages",e.CATEGORIES="categories",e.EQUIPMENT="equipment",e.MUSCLES="muscles",e.QUERY_NOTES="notes",e))(Cn||{}),Qi=(e=>(e.MEAL="meal",e.MEAL_ITEM="mealitem",e.NUTRITIONAL_DIARY="nutritiondiary",e.INGREDIENT_PATH="ingredientinfo",e.INGREDIENT_SEARCH_PATH="ingredient/search",e.INGREDIENT_WEIGHT_UNIT="ingredientweightunit",e))(Qi||{});const kee="999",QDe=["#2a4c7d","#5b5291","#8e5298","#bf5092","#e7537e","#ff6461","#ff813d","#ffa600"],JDe=["#2a4c7d","#825298","#d45089","#ff6a59","#ffa600"],ZDe=["#2a4c7d","#d45089","#ffa600"],uW={pageSizeOptions:[5,10,25,50,100],pageSize:10},e_e=DDe||"Europe/Berlin",qy="en",Mee=3e3;var Aee={exports:{}};(function(e){(function(t){let n;function r(u,d){const f=u.charCodeAt(d);if(isNaN(f))throw new RangeError("Index "+d+' out of range for string "'+u+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(f<55296||f>57343)return[u.charAt(d),d];if(f>=55296&&f<=56319){if(u.length<=d+1)return[" ",d];const m=u.charCodeAt(d+1);return m<56320||m>57343?[" ",d]:[u.charAt(d)+u.charAt(d+1),d+1]}if(d===0)return[" ",d];const p=u.charCodeAt(d-1);if(p<55296||p>56319)return[" ",d];throw new Error('String "'+u+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}typeof window<"u"?window.btoa?n=function(u){return btoa(unescape(encodeURIComponent(u)))}:n=function(u){const d=unescape(encodeURIComponent(u+""));let f="";for(let p,m,g=0,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.charAt(g|0)||(y="=",g%1);f+=y.charAt(63&p>>8-g%1*8)){if(m=d.charCodeAt(g+=3/4),m>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");p=p<<8|m}return f}:n=function(u){return Buffer.from(u).toString("base64")};function o(u,d){let f=s(u,d);if((d&&d.fallback!==void 0?d.fallback:o.defaults.fallback)===!0&&f===""){let m="";for(let g=0;g<u.length;g++){const y=r(u,g);g=y[1],m+=y[0]}f=s(n(m),d)}return f}const i={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}};let a={};function s(u,d){if(typeof u!="string")throw new Error("slug() requires a string argument, received "+typeof u);typeof d=="string"&&(d={replacement:d}),d=d?Object.assign({},d):{},d.mode=d.mode||o.defaults.mode;const f=o.defaults.modes[d.mode],p=["replacement","multicharmap","charmap","remove","lower","trim"];for(let x,S=0,P=p.length;S<P;S++)x=p[S],d[x]=x in d?d[x]:f[x];const m=i[d.locale]||a;let g=[];for(const x in d.multicharmap){if(!Object.prototype.hasOwnProperty.call(d.multicharmap,x))continue;const S=x.length;g.indexOf(S)===-1&&g.push(S)}g=g.sort(function(x,S){return S-x});const y=d.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/;let b="";for(let x,S=0,P=u.length;S<P;S++){x=u[S];let E=!1;for(let T=0;T<g.length;T++){const O=g[T],k=u.substr(S,O);if(d.multicharmap[k]){S+=O-1,x=d.multicharmap[k],E=!0;break}}E||(m[x]?x=m[x]:d.charmap[x]?x=d.charmap[x].replace(d.replacement," "):x.includes(d.replacement)?x=x.replace(d.replacement," "):x=x.replace(y,"")),b+=x}return d.remove&&(b=b.replace(d.remove,"")),d.trim&&(b=b.trim()),b=b.replace(/\s+/g,d.replacement),d.lower&&(b=b.toLowerCase()),b}const l={फ़:"Fi",ग़:"Ghi",ख़:"Khi",क़:"Qi",ड़:"ugDha",ढ़:"ugDhha",य़:"Yi",ज़:"Za",בִי:"i",בֵ:"e",בֵי:"e",בֶ:"e",בַ:"a",בָ:"a",בֹ:"o",וֹ:"o",בֻ:"u",וּ:"u",בּ:"b",כּ:"k",ךּ:"k",פּ:"p",שׁ:"sh",שׂ:"s",בְ:"e",חֱ:"e",חֲ:"a",חֳ:"o",בִ:"i"},c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ő:"O",Ø:"O",Ō:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ő:"o",ø:"o",ō:"o",Œ:"OE",œ:"oe",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"w",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"h",ώ:"w",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"H",Θ:"Th",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"3",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"W",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"H",Ώ:"W",Ϊ:"I",Ϋ:"Y",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"u",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"U",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"K",Ļ:"L",Ņ:"N",Ū:"U",أ:"a",إ:"i",ب:"b",ت:"t",ث:"th",ج:"g",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"d",ط:"t",ظ:"th",ع:"aa",غ:"gh",ف:"f",ق:"k",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"o",ي:"y",ء:"aa",ة:"a",آ:"a",ا:"a",پ:"p",ژ:"zh",گ:"g",چ:"ch",ک:"k",ی:"i",ė:"e",į:"i",ų:"u",Ė:"E",Į:"I",Ų:"U",ț:"t",Ț:"T",ţ:"t",Ţ:"T",ș:"s",Ș:"S",ă:"a",Ă:"A",Ạ:"A",Ả:"A",Ầ:"A",Ấ:"A",Ậ:"A",Ẩ:"A",Ẫ:"A",Ằ:"A",Ắ:"A",Ặ:"A",Ẳ:"A",Ẵ:"A",Ẹ:"E",Ẻ:"E",Ẽ:"E",Ề:"E",Ế:"E",Ệ:"E",Ể:"E",Ễ:"E",Ị:"I",Ỉ:"I",Ĩ:"I",Ọ:"O",Ỏ:"O",Ồ:"O",Ố:"O",Ộ:"O",Ổ:"O",Ỗ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ợ:"O",Ở:"O",Ỡ:"O",Ụ:"U",Ủ:"U",Ũ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ự:"U",Ử:"U",Ữ:"U",Ỳ:"Y",Ỵ:"Y",Ỷ:"Y",Ỹ:"Y",Đ:"D",ạ:"a",ả:"a",ầ:"a",ấ:"a",ậ:"a",ẩ:"a",ẫ:"a",ằ:"a",ắ:"a",ặ:"a",ẳ:"a",ẵ:"a",ẹ:"e",ẻ:"e",ẽ:"e",ề:"e",ế:"e",ệ:"e",ể:"e",ễ:"e",ị:"i",ỉ:"i",ĩ:"i",ọ:"o",ỏ:"o",ồ:"o",ố:"o",ộ:"o",ổ:"o",ỗ:"o",ơ:"o",ờ:"o",ớ:"o",ợ:"o",ở:"o",ỡ:"o",ụ:"u",ủ:"u",ũ:"u",ư:"u",ừ:"u",ứ:"u",ự:"u",ử:"u",ữ:"u",ỳ:"y",ỵ:"y",ỷ:"y",ỹ:"y",đ:"d",Ә:"AE",ә:"ae",Ғ:"GH",ғ:"gh",Қ:"KH",қ:"kh",Ң:"NG",ң:"ng",Ү:"UE",ү:"ue",Ұ:"U",ұ:"u",Һ:"H",һ:"h",Ө:"OE",ө:"oe",ђ:"dj",ј:"j",љ:"lj",њ:"nj",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Љ:"Lj",Њ:"Nj",Ћ:"C",Џ:"Dz",nj:"nj",lj:"lj",Nj:"NJ",Lj:"LJ",अ:"a",आ:"aa",ए:"e",ई:"ii",ऍ:"ei",ऎ:"ae",ऐ:"ai",इ:"i",ओ:"o",ऑ:"oi",ऒ:"oii",ऊ:"uu",औ:"ou",उ:"u",ब:"B",भ:"Bha",च:"Ca",छ:"Chha",ड:"Da",ढ:"Dha",फ:"Fa",ग:"Ga",घ:"Gha",ग़:"Ghi",ह:"Ha",ज:"Ja",झ:"Jha",क:"Ka",ख:"Kha",ख़:"Khi",ल:"L",ळ:"Li",ऌ:"Li",ऴ:"Lii",ॡ:"Lii",म:"Ma",न:"Na",ङ:"Na",ञ:"Nia",ण:"Nae",ऩ:"Ni",ॐ:"oms",प:"Pa",क़:"Qi",र:"Ra",ऋ:"Ri",ॠ:"Ri",ऱ:"Ri",स:"Sa",श:"Sha",ष:"Shha",ट:"Ta",त:"Ta",ठ:"Tha",द:"Tha",थ:"Tha",ध:"Thha",ड़:"ugDha",ढ़:"ugDhha",व:"Va",य:"Ya",य़:"Yi",ज़:"Za",ə:"e",Ə:"E",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",ב:"v",גּ:"g",ג:"g",ד:"d",דּ:"d",ה:"h",ו:"v",ז:"z",ח:"h",ט:"t",י:"y",כ:"kh",ך:"kh",ל:"l",מ:"m",ם:"m",נ:"n",ן:"n",ס:"s",פ:"f",ף:"f",ץ:"ts",צ:"ts",ק:"k",ר:"r",תּ:"t",ת:"t"};o.charmap=Object.assign({},c),o.multicharmap=Object.assign({},l),o.defaults={charmap:o.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0}},multicharmap:o.multicharmap,fallback:!0},o.reset=function(){o.defaults.modes.rfc3986.charmap=o.defaults.modes.pretty.charmap=o.charmap=o.defaults.charmap=Object.assign({},c),o.defaults.modes.rfc3986.multicharmap=o.defaults.modes.pretty.multicharmap=o.multicharmap=o.defaults.multicharmap=Object.assign({},l),a=""},o.extend=function(u){const d=Object.keys(u),f={},p={};for(let m=0;m<d.length;m++)d[m].length>1?f[d[m]]=u[d[m]]:p[d[m]]=u[d[m]];Object.assign(o.charmap,p),Object.assign(o.multicharmap,f)},o.setLocale=function(u){a=i[u]||{}},e.exports?e.exports=o:t.slug=o})(Oc)})(Aee);var t_e=Aee.exports;const $ee=jn(t_e);function Et(e,t){t=t||{};const r=[t.server||LDe,"api","v2",e];if(t.objectMethod&&r.push(t.objectMethod),t.id&&r.push(t.id.toString()),r.push(""),t.query){const o=[];for(const i in t.query)t.query.hasOwnProperty(i)&&o.push(`${encodeURIComponent(i)}=${encodeURIComponent(t.query[i])}`);r.pop(),r.push(`?${o.join("&")}`)}return r.join("/")}var bn=(e=>(e[e.DASHBOARD=0]="DASHBOARD",e[e.ROUTINE_OVERVIEW=1]="ROUTINE_OVERVIEW",e[e.ROUTINE_DETAIL=2]="ROUTINE_DETAIL",e[e.ROUTINE_ADD=3]="ROUTINE_ADD",e[e.ROUTINE_DELETE=4]="ROUTINE_DELETE",e[e.ROUTINE_ADD_LOG=5]="ROUTINE_ADD_LOG",e[e.ROUTINE_EDIT_LOG=6]="ROUTINE_EDIT_LOG",e[e.ROUTINE_DELETE_LOG=7]="ROUTINE_DELETE_LOG",e[e.ROUTINE_EDIT_DAY=8]="ROUTINE_EDIT_DAY",e[e.ROUTINE_ADD_DAY=9]="ROUTINE_ADD_DAY",e[e.ROUTINE_DELETE_DAY=10]="ROUTINE_DELETE_DAY",e[e.ROUTINE_ADD_SET=11]="ROUTINE_ADD_SET",e[e.ROUTINE_EDIT_SET=12]="ROUTINE_EDIT_SET",e[e.ROUTINE_DELETE_SET=13]="ROUTINE_DELETE_SET",e[e.EXERCISE_DETAIL=14]="EXERCISE_DETAIL",e[e.EXERCISE_OVERVIEW=15]="EXERCISE_OVERVIEW",e[e.EXERCISE_CONTRIBUTE=16]="EXERCISE_CONTRIBUTE",e[e.WEIGHT_OVERVIEW=17]="WEIGHT_OVERVIEW",e[e.WEIGHT_ADD=18]="WEIGHT_ADD",e[e.MEASUREMENT_OVERVIEW=19]="MEASUREMENT_OVERVIEW",e[e.MEASUREMENT_DETAIL=20]="MEASUREMENT_DETAIL",e[e.NUTRITION_OVERVIEW=21]="NUTRITION_OVERVIEW",e[e.NUTRITION_DETAIL=22]="NUTRITION_DETAIL",e[e.NUTRITION_PLAN_PDF=23]="NUTRITION_PLAN_PDF",e[e.NUTRITION_PLAN_COPY=24]="NUTRITION_PLAN_COPY",e[e.NUTRITION_DIARY=25]="NUTRITION_DIARY",e[e.INGREDIENT_DETAIL=26]="INGREDIENT_DETAIL",e[e.CALENDAR=27]="CALENDAR",e))(bn||{});function Sn(e,t,n){t=t||"en-us";const r=t.split("-")[0];switch(e){case 1:return`/${r}/routine/overview`;case 2:return`/${r}/routine/${n.id}/view`;case 3:return`/${r}/routine/add`;case 9:return`/${r}/routine/day/${n.id}/add`;case 5:return`/${r}/routine/day/${n.id}/log/add`;case 6:return`/${r}/routine/log/${n.id}/edit`;case 7:return`/${r}/routine/log/${n.id}/delete`;case 8:return`/${r}/routine/day/${n.id}/edit`;case 10:return`/${r}/routine/day/${n.id}/delete`;case 11:return`/${r}/routine/set/${n.id}/add`;case 12:return`/${r}/routine/set/${n.id}/edit`;case 13:return`/${r}/routine/set/${n.id}/delete`;case 27:return`/${r}/routine/calendar`;case 16:return`/${r}/exercise/contribute`;case 14:return n.slug?`/${r}/exercise/${n.id}/view-base/${$ee(n.slug)}`:`/${r}/exercise/${n.id}/view-base`;case 15:return`/${r}/exercise/overview`;case 17:return`/${r}/weight/overview`;case 18:return`/${r}/weight/add`;case 19:return`/${r}/measurement/overview`;case 20:return`/${r}/measurement/category/${n.id}`;case 21:return`/${r}/nutrition/overview`;case 22:return`/${r}/nutrition/${n.id}/view`;case 25:return`/${r}/nutrition/${n.id}/${n.date}`;case 23:return`/${r}/nutrition/${n.id}/pdf`;case 24:return`/${r}/nutrition/${n.id}/copy`;case 26:return`/${r}/nutrition/ingredient/${n.id}/view`;case 0:default:return"/"}}function n_e(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}function Mt(e){e=e||NDe;const t="csrftoken";let n={};n["Content-Type"]="application/json",e&&(n.Authorization=`Token ${e}`);const r=n_e(t);return r!=null&&(n["X-CSRFToken"]=r),n}async function*Ky(e,t){for(t==null&&(t=Mt());;){const r=(await dt.get(e,{headers:t})).data;if(yield r.results,e=r.next,!e)break}}const Ree=async e=>{if(e.length===0)return[];const t=Et(Qi.INGREDIENT_PATH,{query:{id__in:e.join(",")}}),n=new ADe,r=[];for await(const o of Ky(t,Mt()))for(const i of o)r.push(n.fromJson(i));return r},r_e=async(e,t,n=!0)=>{const r=[t];t!==qy&&n&&r.push(qy);const o=Et(Qi.INGREDIENT_SEARCH_PATH,{query:{term:e,language:r.join(",")}}),{data:i}=await dt.get(o);return i.suggestions};class o_e{constructor(t,n,r,o,i,a,s){tn(this,"ingredient",null);tn(this,"weightUnit",null);this.id=t,this.ingredientId=n,this.weightUnitId=r,this.amount=o,this.order=i,a&&(this.ingredient=a),s&&(this.weightUnit=s)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):new qa}}class Tj{fromJson(t){return new o_e(t.id,t.ingredient,t.weight_unit,parseFloat(t.amount),t.order)}toJson(t){return{ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),order:t.order}}}class i_e{constructor(t,n,r,o=""){this.id=t,this.amount=n,this.grams=r,this.name=o}}class a_e{fromJson(t){return new i_e(t.id,parseFloat(t.amount),t.gram)}}const Dee=async e=>{if(e===null)return null;const{data:t}=await dt.get(Et(Qi.INGREDIENT_WEIGHT_UNIT,{id:e}),{headers:Mt()});return new a_e().fromJson(t)},s_e=async e=>{const t=await dt.post(Et(Qi.MEAL),e,{headers:Mt()});return new Cj().fromJson(t.data)},l_e=async e=>{const t=await dt.patch(Et(Qi.MEAL,{id:e.id}),e,{headers:Mt()});return new Cj().fromJson(t.data)},c_e=async e=>{await dt.delete(Et(Qi.MEAL,{id:e}),{headers:Mt()})},u_e=async e=>{let t=[];const n=new Cj,r=new Tj,{data:o}=await dt.get(Et(Qi.MEAL,{query:{plan:e}}),{headers:Mt()}),i=o.results.map(a=>n.fromJson(a));for(const a of i){t=[];const{data:s}=await dt.get(Et(Qi.MEAL_ITEM,{query:{meal:a.id}}),{headers:Mt()}),l=s.results.map(u=>r.fromJson(u));for(const u of l)t.push(u.ingredientId);const c=await Ree(t);for(const u of l)u.weightUnit=await Dee(u.weightUnitId),u.ingredient=c.find(d=>d.id===u.ingredientId);a.items=l}return i};class d_e{constructor(t,n,r,o,i,a,s,l,c){tn(this,"ingredient",null);tn(this,"weightUnit",null);this.id=t,this.planId=n,this.mealId=r,this.ingredientId=o,this.weightUnitId=i,this.amount=a,this.datetime=s,l&&(this.ingredient=l),c&&(this.weightUnit=c)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):(console.log("Diary entry has no ingredient, returning empty NutritionalValues object"),new qa)}}class Oj{fromJson(t){return new d_e(t.id,t.plan,t.meal,t.ingredient,t.weight_unit,parseFloat(t.amount),new Date(t.datetime))}toJson(t){return{plan:t.planId,meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),datetime:t.datetime.toISOString()}}}const f_e=async(e,t)=>{const n=new Oj,r={plan:e,limit:kee};t&&(r.datetime__date=ci(t));const o=Et(Qi.NUTRITIONAL_DIARY,{query:r}),i=[];for await(const a of Ky(o,Mt()))for(const s of a){let l=n.fromJson(s);l.weightUnit=await Dee(l.weightUnitId),i.push(l)}return i},_ee=async e=>{const t=await dt.post(Et(Qi.NUTRITIONAL_DIARY),e,{headers:Mt()});return new Oj().fromJson(t.data)},p_e=async e=>{const t=await dt.patch(Et(Qi.NUTRITIONAL_DIARY,{id:e.id}),e,{headers:Mt()});return new Oj().fromJson(t.data)},Zv="nutritionplan",h_e=async()=>{const{data:e}=await dt.get(Et(Zv),{headers:Mt()}),t=new HI;return e.results.map(n=>t.fromJson(n))},m_e=async()=>{const{data:e}=await dt.get(Et(Zv,{query:{limit:"1"}}),{headers:Mt()});return e.count===0?null:await Ij(e.results[0].id)},Ij=async(e,t)=>{if(e===null)return null;const{data:n}=await dt.get(Et(Zv,{id:e}),{headers:Mt()}),r=[],i=new HI().fromJson(n),a=await Promise.all([u_e(e),f_e(e,t)]);i.meals=a[0],i.diaryEntries=a[1],i.diaryEntries.forEach(l=>{r.includes(l.ingredientId)||r.push(l.ingredientId)});const s=await Ree(r);return i.diaryEntries.forEach(l=>{l.ingredient=s.find(c=>c.id===l.ingredientId)}),i.meals.forEach(l=>{l.diaryEntries=i.diaryEntries.filter(c=>c.mealId===l.id)}),i},g_e=async e=>{const t=await dt.post(Et(Zv),e,{headers:Mt()});return new HI().fromJson(t.data)},y_e=async e=>{const t=await dt.patch(Et(Zv,{id:e.id}),e,{headers:Mt()});return new HI().fromJson(t.data)},v_e=async e=>{await dt.delete(Et(Zv,{id:e}),{headers:Mt()})};function b_e(){return lo({queryKey:[Cn.NUTRITIONAL_PLANS],queryFn:()=>h_e()})}function w_e(){return lo({queryKey:[Cn.NUTRITIONAL_PLAN,"last"],queryFn:()=>m_e()})}function x_e(e){return lo({queryKey:[Cn.NUTRITIONAL_PLAN,e],queryFn:()=>Ij(e)})}function S_e(e,t,n=!0){return lo({queryKey:[Cn.NUTRITIONAL_PLAN,e,t],queryFn:()=>Ij(e,new Date(t)),enabled:n})}const C_e=()=>{const e=gr();return Rr({mutationFn:t=>g_e(t),onSuccess:()=>{e.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLANS]}),e.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN]})}})},P_e=e=>{const t=gr();return Rr({mutationFn:n=>v_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLANS]}),t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},E_e=e=>{const t=gr();return Rr({mutationFn:n=>y_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]}),t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLANS]})}})},T_e=e=>{const t=gr();return Rr({mutationFn:n=>_ee(n),onSuccess:()=>t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})})},Lee=e=>{const t=gr();return Rr({mutationFn:n=>Promise.all(n.map(r=>_ee(r))),onSuccess:()=>t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})})},O_e=e=>{const t=gr();return Rr({mutationFn:n=>p_e(n),onSuccess:()=>t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})})},I_e=e=>{const t=gr();return Rr({mutationFn:n=>s_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},k_e=e=>{const t=gr();return Rr({mutationFn:n=>c_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},M_e=e=>{const t=gr();return Rr({mutationFn:n=>l_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},A_e=async e=>{const t=await dt.post(Et(Qi.MEAL_ITEM),e,{headers:Mt()});return new Tj().fromJson(t.data)},$_e=async e=>{const t=await dt.patch(Et(Qi.MEAL_ITEM,{id:e.id}),e,{headers:Mt()});return new Tj().fromJson(t.data)},R_e=async e=>{await dt.delete(Et(Qi.MEAL_ITEM,{id:e}),{headers:Mt()})},D_e=e=>{const t=gr();return Rr({mutationFn:n=>A_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},__e=e=>{const t=gr();return Rr({mutationFn:n=>$_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})},L_e=e=>{const t=gr();return Rr({mutationFn:n=>R_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.NUTRITIONAL_PLAN,e]})}})};class Nee{constructor(t,n,r){this.date=t,this.weight=n,this.id=r}}class kj{fromJson(t){return new Nee(new Date(t.date),parseFloat(t.weight),t.id)}toJson(t){return{id:t.id,date:ci(t.date),weight:t.weight}}}const WI="weightentry",N_e=async(e="")=>{const t=TDe(e),n=Et(WI,{query:{ordering:"-date",limit:900,...t&&{date__gte:t}}}),{data:r}=await dt.get(n,{headers:Mt()}),o=new kj;return r.results.map(i=>o.fromJson(i))},F_e=async e=>(await dt.delete(Et(WI,{id:e}),{headers:Mt()})).status,j_e=async e=>{const t=new kj,n=await dt.patch(Et(WI,{id:e.id}),t.toJson(e),{headers:Mt()});return t.fromJson(n)},B_e=async e=>{const t=new kj,n=await dt.post(Et(WI),t.toJson(e),{headers:Mt()});return t.fromJson(n.data)},z_e=22;function V_e(e,t=z_e){return e.length>t?e.slice(0,t)+"…":e}function H_e(e){return e.toLowerCase().replace(/\s/g,"_").replace("(","_").replace(")","_").replace("-","_")}function Ji(e){return`server.${H_e(e)}`}class U_e{constructor(t,n,r,o){this.id=t,this.name=n,this.nameEn=r,this.isFront=o}getName(t){return this.nameEn?`${this.name} (${t(Ji(this.nameEn))})`:this.name}}class Fee{fromJson(t){return new U_e(t.id,t.name,t.name_en,t.is_front)}toJson(t){return{}}}const W_e="muscle",G_e=async()=>{const e=Et(W_e),{data:t}=await dt.get(e,{headers:Mt()}),n=new Fee;return t.results.map(r=>n.fromJson(r))};class q_e{constructor(t,n){this.id=t,this.name=n}}class jee{fromJson(t){return new q_e(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const K_e="equipment",Y_e=async()=>{const e=Et(K_e),{data:t}=await dt.get(e,{headers:Mt()}),n=new jee;return t.results.map(r=>n.fromJson(r))};class X_e{constructor(t,n){this.id=t,this.name=n}}class Bee{fromJson(t){return new X_e(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const Q_e="exercisecategory",J_e=async()=>{const e=Et(Q_e),{data:t}=await dt.get(e,{headers:Mt()}),n=new Bee;return t.results.map(r=>n.fromJson(r))};var Eu=(e=>(e[e.LINE_ART=1]="LINE_ART",e[e.THREE_D=2]="THREE_D",e[e.LOW_POLY=3]="LOW_POLY",e[e.PHOTO=4]="PHOTO",e[e.OTHER=5]="OTHER",e))(Eu||{});class Z_e{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class qD{fromJson(t){return new Z_e(t.id,t.uuid,t.image,t.is_main)}toJson(t){return{id:t.id,image:t.url,is_front:t.isMain}}}class eLe{constructor(t,n,r){this.id=t,this.uuid=n,this.alias=r}}class zee{fromJson(t){return new eLe(t.id,t.uuid,t.alias)}toJson(t){return{id:t.id,name:t.alias}}}class KD{constructor(t,n,r){this.id=t,this.exercise=n,this.note=r}}class Vee{fromJson(t){return new KD(t.id,t.exercise,t.comment)}toJson(t){return{id:t.id,comment:t.note,exercise:t.exercise}}}class Hee{constructor(t,n,r,o,i,a,s,l){tn(this,"notes",[]);tn(this,"aliases",[]);tn(this,"authors",[]);this.id=t,this.uuid=n,this.name=r,this.description=o,this.language=i,a&&(this.notes=a),s&&(this.aliases=s),l&&(this.authors=l)}get nameLong(){return V_e(this.name)}get nameSlug(){return $ee(this.name)}}class Mj{fromJson(t){var n,r;return new Hee(t.id,t.uuid,t.name,t.description,t.language,(n=t.notes)==null?void 0:n.map(o=>new Vee().fromJson(o)),(r=t.aliases)==null?void 0:r.map(o=>new zee().fromJson(o)),t.author_history)}toJson(t){return{id:t.id,uuid:t.uuid,name:t.name,description:t.description,language:t.language}}}class tLe{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class Uee{fromJson(t){return new tLe(t.id,t.uuid,t.video,t.is_main)}toJson(t){return{id:t.id,video:t.url}}}class nLe{constructor(t,n,r,o,i,a,s,l,c,u,d){tn(this,"translations",[]);tn(this,"videos",[]);tn(this,"authors",[]);this.id=t,this.uuid=n,this.category=r,this.equipment=o,this.muscles=i,this.musclesSecondary=a,this.images=s,this.variationId=l,c&&(this.translations=c),u&&(this.videos=u),d&&(this.authors=d)}getTranslation(t){const n=t!=null?t.id:_h;let r=this.translations.find(o=>o.language===n);return r||(r=this.translations.find(o=>o.language===_h)),r||this.translations[0]}get availableLanguages(){return this.translations.map(t=>t.language)}get mainImage(){return this.images.find(t=>t.isMain)}get sideImages(){return this.images.filter(t=>!t.isMain)}}class Wee{fromJson(t){const n=new Bee,r=new jee,o=new Fee,i=new qD,a=new Mj,s=new Uee,l=new nLe(t.id,t.uuid,n.fromJson(t.category),t.equipment.map(c=>r.fromJson(c)),t.muscles.map(c=>o.fromJson(c)),t.muscles_secondary.map(c=>o.fromJson(c)),t.images.map(c=>i.fromJson(c)),t.variations,t.exercises.map(c=>a.fromJson(c)),t.videos.map(c=>s.fromJson(c)),t.author_history);if(l.translations.some(c=>c.language===_h)||console.info(`No english translation found for exercise base ${l.uuid}!`),l.translations.length===0)throw new Error(`No translations found for exercise base ${l.uuid}!`);return l}toJson(t){return{id:t.id,uuid:t.uuid,category:t.category.id,equipment:t.equipment.map(n=>n.id),muscles:t.muscles.map(n=>n.id),muscles_secondary:t.musclesSecondary.map(n=>n.id),images:t.images.map(n=>new qD().toJson(n))}}}const Aj="exercisebaseinfo",$j="exercise-base";function Gee(e){const t=new Wee,n=[];for(const r of e.results)try{n.push(t.fromJson(r))}catch(o){console.error("An error happened, skipping base:",o)}return n}const rLe=async()=>{const e=Et(Aj,{query:{limit:900}}),t=await dt.get(e,{headers:Mt()});return Gee(t.data)},zS=async e=>{const t=new Wee,n=Et(Aj,{id:e}),r=await dt.get(n,{headers:Mt()});return t.fromJson(r.data)},oLe=async e=>{if(!e)return[];const t=Et(Aj,{query:{variations:e}}),n=await dt.get(t,{headers:Mt()});return Gee(n.data)},iLe=async(e,t,n,r,o,i)=>{const a=Et($j),s={category:e,equipment:t,muscles:n,muscles_secondary:r,variation_id:o,license_author:i};return(await dt.post(a,s,{headers:Mt()})).data.id},Rj=async(e,t)=>{const n=Et($j,{id:e});return(await dt.patch(n,t,{headers:Mt()})).status},dW=async(e,t)=>{const r=Et($j,t===void 0?{id:e}:{id:e,query:{replaced_by:t}});return(await dt.delete(r,{headers:Mt()})).status},Dj="exercise-translation",aLe="exercise/search",sLe=async(e,t=Oee,n=!0)=>{const r=[t];t!==qy&&n&&r.push(qy);const o=Et(aLe,{query:{term:e,language:r.join(",")}}),{data:i}=await dt.get(o);return i.suggestions},YD=async e=>{const{exerciseId:t,languageId:n,name:r,description:o,author:i}=e,a=Et(Dj),s={exercise_base:t,language:n,name:r,description:o,license_author:i},l=await dt.post(a,s,{headers:Mt()});return new Mj().fromJson(l.data)},lLe=async e=>{const{id:t,exerciseId:n,languageId:r,name:o,description:i}=e,a=Et(Dj,{id:t}),s={exercise_base:n,language:r,name:o,description:i},l=await dt.patch(a,s,{headers:Mt()});return new Mj().fromJson(l.data)},cLe=async e=>{const t=Et(Dj,{id:e});return(await dt.delete(t,{headers:Mt()})).status},uLe="language",dLe=async()=>{const e=Et(uLe),{data:t}=await dt.get(e,{headers:Mt()}),n=new $De;return t.results.map(r=>n.fromJson(r))},XD=(e,t)=>{const n=e.split("-")[0],r=t.find(o=>o.nameShort===n);if(r)return r},qee="exerciseimage",Kee=async e=>{const t=Et(qee),n=Mt();n["Content-Type"]="multipart/form-data";const r=await dt.post(t,{exercise_base:e.exerciseId,image:e.image,license_title:e.imageData.title,license_object_url:e.imageData.objectUrl,license_author:e.imageData.author,license_author_url:e.imageData.authorUrl,license_derivative_source_url:e.imageData.derivativeSourceUrl,style:e.imageData.style},{headers:n});return new qD().fromJson(r.data)},fLe=async e=>{const t=Et(qee,{id:e}),n=Mt();return(await dt.delete(t,{headers:n})).status},Yee="exercisealias",QD=async(e,t)=>{const n=Et(Yee),r=await dt.post(n,{exercise:e,alias:t},{headers:Mt()});return new zee().fromJson(r.data)},pLe=async e=>(await dt.delete(Et(Yee,{id:e}),{headers:Mt()})).status,Xee="video",hLe=async(e,t,n)=>{const r=Et(Xee),o=Mt();o["Content-Type"]="multipart/form-data";const i=await dt.post(r,{exercise_base:e,license_author:t,video:n},{headers:o});return new Uee().fromJson(i.data)},mLe=async e=>{const t=Et(Xee,{id:e}),n=Mt();return(await dt.delete(t,{headers:n})).status};class gLe{constructor(t,n,r,o){tn(this,"sets",[]);this.id=t,this.description=n,this.daysOfWeek=r,o&&(this.sets=o)}}class yLe{fromJson(t){return new gLe(t.id,t.description,t.day)}toJson(t){return{id:t.id,description:t.description,day:t.daysOfWeek}}}class vLe{constructor(t,n,r,o,i,a,s,l,c,u,d){this.id=t,this.date=n,this.exerciseId=r,this.repetitionUnit=o,this.reps=i,this.weight=a,this.weightUnit=s,this.rir=l,this.repetitionUnitObj=c,this.weightUnitObj=u,this.baseObj=d,c&&(this.repetitionUnitObj=c),u&&(this.weightUnitObj=u),d&&(this.baseObj=d)}get rirString(){return this.rir===null||this.rir===""?"-/-":this.rir}}class bLe{fromJson(t){return new vLe(t.id,new Date(t.date),t.exercise_base,t.repetition_unit,t.reps,t.weight===null?null:Number.parseFloat(t.weight),t.weight_unit,t.rir)}toJson(t){return{id:t.id,exercise_base:t.exerciseId,repetition_unit:t.repetitionUnit,reps:t.reps,weight:t.weight,weight_unit:t.weightUnit,rir:t.rir}}}class wLe{constructor(t,n,r,o,i){tn(this,"days",[]);this.id=t,this.name=n,this.description=r,this.date=o,i&&(this.days=i)}}class Qee{fromJson(t){return new wLe(t.id,t.name,t.description,new Date(t.creation_date))}toJson(t){return{id:t.id,name:t.name,description:t.description,creation_date:ci(t.date)}}}function xLe(e,t,n){n=n||(s=>s);const r=s=>s.rir?`${s.rir} ${n("routines.rir")}`:"",o=s=>{if(s.repetitionUnit===BDe)return"∞";const l=s.repetitionUnit!==Iee?n(Ji(s.repetitionUnitObj.name)):"";return`${s.reps} ${l}`},i=s=>s===null?"":Number.isInteger(s)?s.toString():s.toFixed(2).toString(),a=(s,l=!1)=>{const c=o(s),u=s.weightUnitObj.name,d=i(s.weight),f=r(s);let p=l?c:`${e} × ${c}`.trim();if(d){const m=f?`, ${f}`:"";p+=` (${d} ${u}${m})`}else p+=f?` (${f})`:"";return p};return t.length===1?a(t[0]):t.map(s=>a(s,!0)).join(" – ")}class SLe{constructor(t,n,r,o,i,a){tn(this,"settings",[]);tn(this,"settingsComputed",[]);this.id=t,this.sets=n,this.order=r,this.comment=o,i&&(this.settings=i),a&&(this.settingsComputed=a)}get exercises(){return this.settingsFiltered.map(t=>t.base)}get settingsFiltered(){const t=[];for(const n of this.settings)t.filter(o=>o.exerciseId===n.exerciseId).length===0&&t.push(n);return t}filterSettingsByExercise(t){return this.settings.filter(n=>n.exerciseId===t.id)}getSettingsTextRepresentation(t,n){return n=n||(r=>r),xLe(this.sets,this.filterSettingsByExercise(t),n)}}class CLe{fromJson(t){return new SLe(t.id,t.sets,t.order,t.comment)}toJson(t){return{id:t.id,sets:t.sets,order:t.order,comment:t.order}}}class PLe{constructor(t,n,r,o,i,a,s,l,c,u,d,f){tn(this,"base");this.id=t,this.date=n,this.exerciseId=r,this.repetitionUnit=o,this.reps=i,this.weight=a,this.weightUnit=s,this.rir=l,this.order=c,this.comment=u,this.repetitionUnitObj=d,this.weightUnitObj=f,d&&(this.repetitionUnitObj=d),f&&(this.weightUnitObj=f)}}class ELe{fromJson(t){return new PLe(t.id,new Date(t.date),t.exercise_base,t.repetition_unit,t.reps,t.weight===null?null:Number.parseFloat(t.weight),t.weight_unit,t.rir,t.order,t.comment)}toJson(t){return{id:t.id,exercise_base:t.exerciseId,repetition_unit:t.repetitionUnit,reps:t.reps,weight:t.weight,weight_unit:t.weightUnit,rir:t.rir,order:t.order,comment:t.comment}}}class TLe{constructor(t,n){tn(this,"id");tn(this,"name");this.id=t,this.name=n}}class OLe{fromJson(t){return new TLe(t.id,t.name)}toJson(t){return{}}}class ILe{constructor(t,n){tn(this,"id");tn(this,"name");this.id=t,this.name=n}}class kLe{fromJson(t){return new ILe(t.id,t.name)}toJson(t){return{}}}const MLe="setting-repetitionunit",ALe="setting-weightunit",Jee=async()=>{const e=Et(MLe),{data:t}=await dt.get(e,{headers:Mt()}),n=new OLe;return t.results.map(r=>n.fromJson(r))},Zee=async()=>{const e=Et(ALe),{data:t}=await dt.get(e,{headers:Mt()}),n=new kLe;return t.results.map(r=>n.fromJson(r))},_j="workout",$Le="workoutlog",RLe="day",DLe="set",_Le="setting",LLe=e=>new Qee().fromJson(e),ete=async e=>{const t=new Qee,n=new yLe,r=new CLe,o=new ELe,i=await dt.get(Et(_j,{id:e}),{headers:Mt()}),a=t.fromJson(i.data),s=await dt.get(Et(RLe,{query:{training:a.id.toString()}}),{headers:Mt()}),l=await Promise.all([Jee(),Zee()]),c=l[0],u=l[1];for(const d of s.data.results){const f=n.fromJson(d),p=await dt.get(Et(DLe,{query:{exerciseday:f.id.toString()}}),{headers:Mt()});for(const y of p.data.results){const b=r.fromJson(y);f.sets.push(b)}const m=p.data.results.map(y=>dt.get(Et(_Le,{query:{set:y.id}}),{headers:Mt()})),g=await Promise.all(m);for(const y of g)for(const b of y.data.results){const x=f.sets.find(O=>O.id===b.set),S=o.fromJson(b),P=u.find(O=>O.id===S.weightUnit),E=c.find(O=>O.id===S.repetitionUnit),T=x.settings.find(O=>O.exerciseId===S.exerciseId);S.base=T!==void 0?T.base:await zS(S.exerciseId),S.weightUnitObj=P,S.repetitionUnitObj=E,x.settings.push(S)}a.days.push(f)}return a},NLe=async()=>{const e=Et(_j,{query:{limit:"1"}}),t=await dt.get(e,{headers:Mt()});return t.data.count===0?null:await ete(t.data.results[0].id)},FLe=async e=>await ete(e),jLe=async()=>{const e=Et(_j),t=await dt.get(e,{headers:Mt()}),n=[];for(const r of t.data.results)n.push(await LLe(r));return n},BLe=async(e,t=!1)=>{const n=new bLe,r=Et($Le,{query:{workout:e.toString(),limit:kee,ordering:"-date"}}),o=await Promise.all([Jee(),Zee()]),i=o[0],a=o[1],s=new Map,l=[];for await(const c of Ky(r))for(const u of c){const d=n.fromJson(u);d.repetitionUnitObj=i.find(f=>f.id===d.repetitionUnit),d.weightUnitObj=a.find(f=>f.id===d.weightUnit),t&&(s.get(d.exerciseId)===void 0&&s.set(d.exerciseId,await zS(d.exerciseId)),d.baseObj=s.get(d.exerciseId)),l.push(d)}return l};class zLe{constructor(t,n,r,o){tn(this,"entries",[]);this.id=t,this.name=n,this.unit=r,o&&(this.entries=o)}}class GI{fromJson(t){return new zLe(t.id,t.name,t.unit)}toJson(t){return{id:t.id,name:t.name,unit:t.unit}}}class VLe{constructor(t,n,r,o,i){this.id=t,this.category=n,this.date=r,this.value=o,this.notes=i}}class qI{fromJson(t){return new VLe(t.id,t.category,new Date(t.date),t.value,t.notes)}toJson(t){return{id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes}}}const VS="measurement-category",HS="measurement",HLe=async()=>{const e=new GI,t=new qI,n=[];for await(const a of Ky(Et(VS),Mt()))for(const s of a)n.push(e.fromJson(s));const r=n.map(async a=>{const s=[],l=Et(HS,{query:{category:a.id}});for await(const c of Ky(l,Mt()))for(const u of c)s.push(t.fromJson(u));return s}),o=await Promise.all(r);let i;return o.forEach(a=>{a.length>0&&(i=a[0].category,n.findLast(s=>s.id===i).entries=a)}),n},ULe=async e=>{const{data:t}=await dt.get(Et(VS,{id:e}),{headers:Mt()}),n=new GI().fromJson(t),r=new qI,o=[],i=Et(HS,{query:{category:n.id}});for await(const a of Ky(i,Mt()))for(const s of a)o.push(r.fromJson(s));return n.entries=o,n},WLe=async e=>{const t=await dt.post(Et(VS),{name:e.name,unit:e.unit},{headers:Mt()});return new GI().fromJson(t.data)},GLe=async e=>{const t=await dt.patch(Et(VS,{id:e.id}),{name:e.name,unit:e.unit},{headers:Mt()});return new GI().fromJson(t.data)},qLe=async e=>{await dt.delete(Et(VS,{id:e}),{headers:Mt()})},KLe=async e=>{await dt.delete(Et(HS,{id:e}),{headers:Mt()})},YLe=async e=>{const t=await dt.patch(Et(HS,{id:e.id}),{date:ci(e.date),value:e.value,notes:e.notes},{headers:Mt()});return new qI().fromJson(t.data)},XLe=async e=>{const t=await dt.post(Et(HS),{category:e.categoryId,date:ci(e.date),value:e.value,notes:e.notes},{headers:Mt()});return new qI().fromJson(t.data)};function Pi(e,t){return e.toLocaleString(t,{maximumFractionDigits:0})}function tte(e,t,n){return e.toLocaleString(t,{maximumFractionDigits:0,unit:n.valueOf(),style:"unit"})}function xn(e,t){return tte(e,t,"gram")}function G$(e,t){return tte(e,t,"percent")}const ay=e=>{const{i18n:t}=Ue(),n=e.planned>0;return X(At,{children:[C(_Z,{variant:"determinate",value:e.percentage<100?e.percentage:100}),X(ut,{variant:"caption",children:[e.title," — ",xn(e.logged,t.language),n&&X(At,{children:[" / ",xn(e.planned,t.language)]})]})]})};var QLe=Array.isArray,Ta=QLe,JLe=typeof Oc=="object"&&Oc&&Oc.Object===Object&&Oc,nte=JLe,ZLe=nte,eNe=typeof self=="object"&&self&&self.Object===Object&&self,tNe=ZLe||eNe||Function("return this")(),Qc=tNe,nNe=Qc,rNe=nNe.Symbol,US=rNe,fW=US,rte=Object.prototype,oNe=rte.hasOwnProperty,iNe=rte.toString,v0=fW?fW.toStringTag:void 0;function aNe(e){var t=oNe.call(e,v0),n=e[v0];try{e[v0]=void 0;var r=!0}catch{}var o=iNe.call(e);return r&&(t?e[v0]=n:delete e[v0]),o}var sNe=aNe,lNe=Object.prototype,cNe=lNe.toString;function uNe(e){return cNe.call(e)}var dNe=uNe,pW=US,fNe=sNe,pNe=dNe,hNe="[object Null]",mNe="[object Undefined]",hW=pW?pW.toStringTag:void 0;function gNe(e){return e==null?e===void 0?mNe:hNe:hW&&hW in Object(e)?fNe(e):pNe(e)}var pd=gNe;function yNe(e){return e!=null&&typeof e=="object"}var hd=yNe,vNe=pd,bNe=hd,wNe="[object Symbol]";function xNe(e){return typeof e=="symbol"||bNe(e)&&vNe(e)==wNe}var eb=xNe,SNe=Ta,CNe=eb,PNe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ENe=/^\w*$/;function TNe(e,t){if(SNe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||CNe(e)?!0:ENe.test(e)||!PNe.test(e)||t!=null&&e in Object(t)}var Lj=TNe;function ONe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qf=ONe;const tb=jn(Qf);var INe=pd,kNe=Qf,MNe="[object AsyncFunction]",ANe="[object Function]",$Ne="[object GeneratorFunction]",RNe="[object Proxy]";function DNe(e){if(!kNe(e))return!1;var t=INe(e);return t==ANe||t==$Ne||t==MNe||t==RNe}var Nj=DNe;const Ut=jn(Nj);var _Ne=Qc,LNe=_Ne["__core-js_shared__"],NNe=LNe,q$=NNe,mW=function(){var e=/[^.]+$/.exec(q$&&q$.keys&&q$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function FNe(e){return!!mW&&mW in e}var jNe=FNe,BNe=Function.prototype,zNe=BNe.toString;function VNe(e){if(e!=null){try{return zNe.call(e)}catch{}try{return e+""}catch{}}return""}var ote=VNe,HNe=Nj,UNe=jNe,WNe=Qf,GNe=ote,qNe=/[\\^$.*+?()[\]{}|]/g,KNe=/^\[object .+?Constructor\]$/,YNe=Function.prototype,XNe=Object.prototype,QNe=YNe.toString,JNe=XNe.hasOwnProperty,ZNe=RegExp("^"+QNe.call(JNe).replace(qNe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eFe(e){if(!WNe(e)||UNe(e))return!1;var t=HNe(e)?ZNe:KNe;return t.test(GNe(e))}var tFe=eFe;function nFe(e,t){return e==null?void 0:e[t]}var rFe=nFe,oFe=tFe,iFe=rFe;function aFe(e,t){var n=iFe(e,t);return oFe(n)?n:void 0}var em=aFe,sFe=em,lFe=sFe(Object,"create"),KI=lFe,gW=KI;function cFe(){this.__data__=gW?gW(null):{},this.size=0}var uFe=cFe;function dFe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fFe=dFe,pFe=KI,hFe="__lodash_hash_undefined__",mFe=Object.prototype,gFe=mFe.hasOwnProperty;function yFe(e){var t=this.__data__;if(pFe){var n=t[e];return n===hFe?void 0:n}return gFe.call(t,e)?t[e]:void 0}var vFe=yFe,bFe=KI,wFe=Object.prototype,xFe=wFe.hasOwnProperty;function SFe(e){var t=this.__data__;return bFe?t[e]!==void 0:xFe.call(t,e)}var CFe=SFe,PFe=KI,EFe="__lodash_hash_undefined__";function TFe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=PFe&&t===void 0?EFe:t,this}var OFe=TFe,IFe=uFe,kFe=fFe,MFe=vFe,AFe=CFe,$Fe=OFe;function nb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nb.prototype.clear=IFe;nb.prototype.delete=kFe;nb.prototype.get=MFe;nb.prototype.has=AFe;nb.prototype.set=$Fe;var RFe=nb;function DFe(){this.__data__=[],this.size=0}var _Fe=DFe;function LFe(e,t){return e===t||e!==e&&t!==t}var Fj=LFe,NFe=Fj;function FFe(e,t){for(var n=e.length;n--;)if(NFe(e[n][0],t))return n;return-1}var YI=FFe,jFe=YI,BFe=Array.prototype,zFe=BFe.splice;function VFe(e){var t=this.__data__,n=jFe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zFe.call(t,n,1),--this.size,!0}var HFe=VFe,UFe=YI;function WFe(e){var t=this.__data__,n=UFe(t,e);return n<0?void 0:t[n][1]}var GFe=WFe,qFe=YI;function KFe(e){return qFe(this.__data__,e)>-1}var YFe=KFe,XFe=YI;function QFe(e,t){var n=this.__data__,r=XFe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JFe=QFe,ZFe=_Fe,eje=HFe,tje=GFe,nje=YFe,rje=JFe;function rb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rb.prototype.clear=ZFe;rb.prototype.delete=eje;rb.prototype.get=tje;rb.prototype.has=nje;rb.prototype.set=rje;var XI=rb,oje=em,ije=Qc,aje=oje(ije,"Map"),jj=aje,yW=RFe,sje=XI,lje=jj;function cje(){this.size=0,this.__data__={hash:new yW,map:new(lje||sje),string:new yW}}var uje=cje;function dje(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fje=dje,pje=fje;function hje(e,t){var n=e.__data__;return pje(t)?n[typeof t=="string"?"string":"hash"]:n.map}var QI=hje,mje=QI;function gje(e){var t=mje(this,e).delete(e);return this.size-=t?1:0,t}var yje=gje,vje=QI;function bje(e){return vje(this,e).get(e)}var wje=bje,xje=QI;function Sje(e){return xje(this,e).has(e)}var Cje=Sje,Pje=QI;function Eje(e,t){var n=Pje(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Tje=Eje,Oje=uje,Ije=yje,kje=wje,Mje=Cje,Aje=Tje;function ob(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ob.prototype.clear=Oje;ob.prototype.delete=Ije;ob.prototype.get=kje;ob.prototype.has=Mje;ob.prototype.set=Aje;var Bj=ob,ite=Bj,$je="Expected a function";function zj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($je);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zj.Cache||ite),n}zj.Cache=ite;var ate=zj;const Rje=jn(ate);var Dje=ate,_je=500;function Lje(e){var t=Dje(e,function(r){return n.size===_je&&n.clear(),r}),n=t.cache;return t}var Nje=Lje,Fje=Nje,jje=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bje=/\\(\\)?/g,zje=Fje(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jje,function(n,r,o,i){t.push(o?i.replace(Bje,"$1"):r||n)}),t}),Vje=zje;function Hje(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Vj=Hje,vW=US,Uje=Vj,Wje=Ta,Gje=eb,qje=1/0,bW=vW?vW.prototype:void 0,wW=bW?bW.toString:void 0;function ste(e){if(typeof e=="string")return e;if(Wje(e))return Uje(e,ste)+"";if(Gje(e))return wW?wW.call(e):"";var t=e+"";return t=="0"&&1/e==-qje?"-0":t}var Kje=ste,Yje=Kje;function Xje(e){return e==null?"":Yje(e)}var lte=Xje,Qje=Ta,Jje=Lj,Zje=Vje,eBe=lte;function tBe(e,t){return Qje(e)?e:Jje(e,t)?[e]:Zje(eBe(e))}var cte=tBe,nBe=eb,rBe=1/0;function oBe(e){if(typeof e=="string"||nBe(e))return e;var t=e+"";return t=="0"&&1/e==-rBe?"-0":t}var JI=oBe,iBe=cte,aBe=JI;function sBe(e,t){t=iBe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[aBe(t[n++])];return n&&n==r?e:void 0}var Hj=sBe,lBe=Hj;function cBe(e,t,n){var r=e==null?void 0:lBe(e,t);return r===void 0?n:r}var ute=cBe;const es=jn(ute);function uBe(e){return e==null}var dBe=uBe;const zt=jn(dBe);var fBe=pd,pBe=Ta,hBe=hd,mBe="[object String]";function gBe(e){return typeof e=="string"||!pBe(e)&&hBe(e)&&fBe(e)==mBe}var yBe=gBe;const WS=jn(yBe);var dte={exports:{}},ir={};/**
* @license React
* react-is.production.min.js
*
@@ -287,52 +287,52 @@ Error generating stack: `+i.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var aj=Symbol.for("react.element"),sj=Symbol.for("react.portal"),TI=Symbol.for("react.fragment"),OI=Symbol.for("react.strict_mode"),II=Symbol.for("react.profiler"),kI=Symbol.for("react.provider"),MI=Symbol.for("react.context"),lje=Symbol.for("react.server_context"),AI=Symbol.for("react.forward_ref"),$I=Symbol.for("react.suspense"),RI=Symbol.for("react.suspense_list"),DI=Symbol.for("react.memo"),_I=Symbol.for("react.lazy"),cje=Symbol.for("react.offscreen"),dee;dee=Symbol.for("react.module.reference");function il(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case aj:switch(e=e.type,e){case TI:case II:case OI:case $I:case RI:return e;default:switch(e=e&&e.$$typeof,e){case lje:case MI:case AI:case _I:case DI:case kI:return e;default:return t}}case sj:return t}}}sr.ContextConsumer=MI;sr.ContextProvider=kI;sr.Element=aj;sr.ForwardRef=AI;sr.Fragment=TI;sr.Lazy=_I;sr.Memo=DI;sr.Portal=sj;sr.Profiler=II;sr.StrictMode=OI;sr.Suspense=$I;sr.SuspenseList=RI;sr.isAsyncMode=function(){return!1};sr.isConcurrentMode=function(){return!1};sr.isContextConsumer=function(e){return il(e)===MI};sr.isContextProvider=function(e){return il(e)===kI};sr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===aj};sr.isForwardRef=function(e){return il(e)===AI};sr.isFragment=function(e){return il(e)===TI};sr.isLazy=function(e){return il(e)===_I};sr.isMemo=function(e){return il(e)===DI};sr.isPortal=function(e){return il(e)===sj};sr.isProfiler=function(e){return il(e)===II};sr.isStrictMode=function(e){return il(e)===OI};sr.isSuspense=function(e){return il(e)===$I};sr.isSuspenseList=function(e){return il(e)===RI};sr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===TI||e===II||e===OI||e===$I||e===RI||e===cje||typeof e=="object"&&e!==null&&(e.$$typeof===_I||e.$$typeof===DI||e.$$typeof===kI||e.$$typeof===MI||e.$$typeof===AI||e.$$typeof===dee||e.getModuleId!==void 0)};sr.typeOf=il;uee.exports=sr;var uje=uee.exports,dje=Zu,fje=ed,pje="[object Number]";function hje(e){return typeof e=="number"||fje(e)&&dje(e)==pje}var fee=hje;const mje=Bn(fee);var gje=fee;function yje(e){return gje(e)&&e!=+e}var vje=yje;const Nv=Bn(vje);var Li=function(t){return t===0?0:t>0?1:-1},Dp=function(t){return CS(t)&&t.indexOf("%")===t.length-1},at=function(t){return mje(t)&&!Nv(t)},Mo=function(t){return at(t)||CS(t)},bje=0,Lf=function(t){var n=++bje;return"".concat(t||"").concat(n)},Ni=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!at(t)&&!CS(t))return r;var i;if(Dp(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return Nv(i)&&(i=r),o&&i>n&&(i=n),i},Dd=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},wje=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},Vr=function(t,n){return at(t)&&at(n)?function(r){return t+r*(n-t)}:function(){return n}};function ME(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):qa(r,t))===n})}var xje=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,o=0,i=0,a=0,s=1/0,l=-1/0,c=0,u=0,d=0;d<n;d++)c=t[d].cx||0,u=t[d].cy||0,r+=c,o+=u,i+=c*u,a+=c*c,s=Math.min(s,c),l=Math.max(l,c);var f=n*a!==r*r?(n*i-r*o)/(n*a-r*r):0;return{xmin:s,xmax:l,a:f,b:(o-f*r)/n}};function Hg(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function gD(e){"@babel/helpers - typeof";return gD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gD(e)}var Sje=["viewBox","children"],Cje=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],RU=["points","pathLength"],f$={svg:Sje,polygon:RU,polyline:RU},lj=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],AE=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(v.isValidElement(t)&&(r=t.props),!Rv(r))return null;var o={};return Object.keys(r).forEach(function(i){lj.includes(i)&&(o[i]=n||function(a){return r[i](r,a)})}),o},Pje=function(t,n,r){return function(o){return t(n,r,o),null}},wf=function(t,n,r){if(!Rv(t)||gD(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(i){var a=t[i];lj.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=Pje(a,n,r))}),o},Eje=["children"],Tje=["children"];function DU(e,t){if(e==null)return{};var n=Oje(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yD(e){"@babel/helpers - typeof";return yD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yD(e)}var _U={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Cu=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},LU=null,p$=null,cj=function e(t){if(t===LU&&Array.isArray(p$))return p$;var n=[];return v.Children.forEach(t,function(r){Bt(r)||(uje.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),p$=n,LU=t,n};function Vi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Cu(o)}):r=[Cu(t)],cj(e).forEach(function(o){var i=qa(o,"type.displayName")||qa(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function La(e,t){var n=Vi(e,t);return n&&n[0]}var NU=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!at(r)||r<=0||!at(o)||o<=0)},Ije=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],kje=function(t){return t&&t.type&&CS(t.type)&&Ije.indexOf(t.type)>=0},pee=function(t){return t&&yD(t)==="object"&&"clipDot"in t},Mje=function(t,n,r,o){var i,a=(i=f$==null?void 0:f$[o])!==null&&i!==void 0?i:[];return!Ht(t)&&(o&&a.includes(n)||Cje.includes(n))||r&&lj.includes(n)},At=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(v.isValidElement(t)&&(o=t.props),!Rv(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;Mje((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},vD=function e(t,n){if(t===n)return!0;var r=v.Children.count(t);if(r!==v.Children.count(n))return!1;if(r===0)return!0;if(r===1)return FU(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!FU(i,a))return!1}return!0},FU=function(t,n){if(Bt(t)&&Bt(n))return!0;if(!Bt(t)&&!Bt(n)){var r=t.props||{},o=r.children,i=DU(r,Eje),a=n.props||{},s=a.children,l=DU(a,Tje);return o&&s?Hg(i,l)&&vD(o,s):!o&&!s?Hg(i,l):!1}return!1},jU=function(t,n){var r=[],o={};return cj(t).forEach(function(i,a){if(kje(i))r.push(i);else if(i){var s=Cu(i.type),l=n[s]||{},c=l.handler,u=l.once;if(c&&(!u||!o[s])){var d=c(i,s,a);r.push(d),o[s]=!0}}}),r},Aje=function(t){var n=t&&t.type;return n&&_U[n]?_U[n]:null},$je=function(t,n){return cj(n).indexOf(t)},Rje=["children","width","height","viewBox","className","style","title","desc"];function bD(){return bD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bD.apply(this,arguments)}function Dje(e,t){if(e==null)return{};var n=_je(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _je(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wD(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,c=Dje(e,Rje),u=o||{width:n,height:r,x:0,y:0},d=pe("recharts-surface",i);return Y.createElement("svg",bD({},At(c,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var Lje=["children","className"];function xD(){return xD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xD.apply(this,arguments)}function Nje(e,t){if(e==null)return{};var n=Fje(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var rn=Y.forwardRef(function(e,t){var n=e.children,r=e.className,o=Nje(e,Lje),i=pe("recharts-layer",r);return Y.createElement("g",xD({className:i},At(o,!0),{ref:t}),n)}),Vl=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i]};function jje(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}var Bje=jje,zje=Bje;function Vje(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:zje(e,t,n)}var Hje=Vje,Uje="\\ud800-\\udfff",Wje="\\u0300-\\u036f",Gje="\\ufe20-\\ufe2f",qje="\\u20d0-\\u20ff",Kje=Wje+Gje+qje,Yje="\\ufe0e\\ufe0f",Xje="\\u200d",Qje=RegExp("["+Xje+Uje+Kje+Yje+"]");function Jje(e){return Qje.test(e)}var hee=Jje;function Zje(e){return e.split("")}var eBe=Zje,mee="\\ud800-\\udfff",tBe="\\u0300-\\u036f",nBe="\\ufe20-\\ufe2f",rBe="\\u20d0-\\u20ff",oBe=tBe+nBe+rBe,iBe="\\ufe0e\\ufe0f",aBe="["+mee+"]",SD="["+oBe+"]",CD="\\ud83c[\\udffb-\\udfff]",sBe="(?:"+SD+"|"+CD+")",gee="[^"+mee+"]",yee="(?:\\ud83c[\\udde6-\\uddff]){2}",vee="[\\ud800-\\udbff][\\udc00-\\udfff]",lBe="\\u200d",bee=sBe+"?",wee="["+iBe+"]?",cBe="(?:"+lBe+"(?:"+[gee,yee,vee].join("|")+")"+wee+bee+")*",uBe=wee+bee+cBe,dBe="(?:"+[gee+SD+"?",SD,yee,vee,aBe].join("|")+")",fBe=RegExp(CD+"(?="+CD+")|"+dBe+uBe,"g");function pBe(e){return e.match(fBe)||[]}var hBe=pBe,mBe=eBe,gBe=hee,yBe=hBe;function vBe(e){return gBe(e)?yBe(e):mBe(e)}var bBe=vBe,wBe=Hje,xBe=hee,SBe=bBe,CBe=see;function PBe(e){return function(t){t=CBe(t);var n=xBe(t)?SBe(t):void 0,r=n?n[0]:t.charAt(0),o=n?wBe(n,1).join(""):t.slice(1);return r[e]()+o}}var EBe=PBe,TBe=EBe,OBe=TBe("toUpperCase"),IBe=OBe;const LI=Bn(IBe);function wr(e){return function(){return e}}const xee=Math.cos,$E=Math.sin,tc=Math.sqrt,RE=Math.PI,NI=2*RE,PD=Math.PI,ED=2*PD,Sp=1e-6,kBe=ED-Sp;function See(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function MBe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return See;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class ABe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?See:MBe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-t,c=o-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Sp)if(!(Math.abs(d*l-c*u)>Sp)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,m=o-s,g=l*l+c*c,y=p*p+m*m,b=Math.sqrt(g),x=Math.sqrt(f),S=i*Math.tan((PD-Math.acos((g+f-y)/(2*b*x)))/2),P=S/x,E=S/b;Math.abs(P-1)>Sp&&this._append`L${t+P*u},${n+P*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=t+E*l},${this._y1=n+E*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,d=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Sp||Math.abs(this._y1-u)>Sp)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%ED+ED),f>kBe?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Sp&&this._append`A${r},${r},0,${+(f>=PD)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function uj(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new ABe(t)}function dj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Cee(e){this._context=e}Cee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function FI(e){return new Cee(e)}function Pee(e){return e[0]}function Eee(e){return e[1]}function Tee(e,t){var n=wr(!0),r=null,o=FI,i=null,a=uj(s);e=typeof e=="function"?e:e===void 0?Pee:wr(e),t=typeof t=="function"?t:t===void 0?Eee:wr(t);function s(l){var c,u=(l=dj(l)).length,d,f=!1,p;for(r==null&&(i=o(p=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,l),+t(d,c,l));if(p)return i=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:wr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:wr(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:wr(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(i=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=i=null:i=o(r=l),s):r},s}function PC(e,t,n){var r=null,o=wr(!0),i=null,a=FI,s=null,l=uj(c);e=typeof e=="function"?e:e===void 0?Pee:wr(+e),t=typeof t=="function"?t:wr(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Eee:wr(+n);function c(d){var f,p,m,g=(d=dj(d)).length,y,b=!1,x,S=new Array(g),P=new Array(g);for(i==null&&(s=a(x=l())),f=0;f<=g;++f){if(!(f<g&&o(y=d[f],f,d))===b)if(b=!b)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=p;--m)s.point(S[m],P[m]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(y,f,d),P[f]=+t(y,f,d),s.point(r?+r(y,f,d):S[f],n?+n(y,f,d):P[f]))}if(x)return s=null,x+""||null}function u(){return Tee().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:wr(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:wr(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:wr(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:wr(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:wr(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:wr(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:wr(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class Oee{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function $Be(e){return new Oee(e,!0)}function RBe(e){return new Oee(e,!1)}const fj={draw(e,t){const n=tc(t/RE);e.moveTo(n,0),e.arc(0,0,n,0,NI)}},DBe={draw(e,t){const n=tc(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Iee=tc(1/3),_Be=Iee*2,LBe={draw(e,t){const n=tc(t/_Be),r=n*Iee;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},NBe={draw(e,t){const n=tc(t),r=-n/2;e.rect(r,r,n,n)}},FBe=.8908130915292852,kee=$E(RE/10)/$E(7*RE/10),jBe=$E(NI/10)*kee,BBe=-xee(NI/10)*kee,zBe={draw(e,t){const n=tc(t*FBe),r=jBe*n,o=BBe*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=NI*i/5,s=xee(a),l=$E(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},h$=tc(3),VBe={draw(e,t){const n=-tc(t/(h$*3));e.moveTo(0,n*2),e.lineTo(-h$*n,-n),e.lineTo(h$*n,-n),e.closePath()}},vs=-.5,bs=tc(3)/2,TD=1/tc(12),HBe=(TD/2+1)*3,UBe={draw(e,t){const n=tc(t/HBe),r=n/2,o=n*TD,i=r,a=n*TD+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(vs*r-bs*o,bs*r+vs*o),e.lineTo(vs*i-bs*a,bs*i+vs*a),e.lineTo(vs*s-bs*l,bs*s+vs*l),e.lineTo(vs*r+bs*o,vs*o-bs*r),e.lineTo(vs*i+bs*a,vs*a-bs*i),e.lineTo(vs*s+bs*l,vs*l-bs*s),e.closePath()}};function WBe(e,t){let n=null,r=uj(o);e=typeof e=="function"?e:wr(e||fj),t=typeof t=="function"?t:wr(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:wr(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:wr(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function DE(){}function _E(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mee(e){this._context=e}Mee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_E(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_E(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GBe(e){return new Mee(e)}function Aee(e){this._context=e}Aee.prototype={areaStart:DE,areaEnd:DE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:_E(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qBe(e){return new Aee(e)}function $ee(e){this._context=e}$ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_E(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KBe(e){return new $ee(e)}function Ree(e){this._context=e}Ree.prototype={areaStart:DE,areaEnd:DE,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function YBe(e){return new Ree(e)}function BU(e){return e<0?-1:1}function zU(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(BU(i)+BU(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function VU(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function m$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function LE(e){this._context=e}LE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:m$(this,this._t0,VU(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,m$(this,VU(this,n=zU(this,e,t)),n);break;default:m$(this,this._t0,n=zU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Dee(e){this._context=new _ee(e)}(Dee.prototype=Object.create(LE.prototype)).point=function(e,t){LE.prototype.point.call(this,t,e)};function _ee(e){this._context=e}_ee.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function XBe(e){return new LE(e)}function QBe(e){return new Dee(e)}function Lee(e){this._context=e}Lee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=HU(e),o=HU(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function HU(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function JBe(e){return new Lee(e)}function jI(e,t){this._context=e,this._t=t}jI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function ZBe(e){return new jI(e,.5)}function eze(e){return new jI(e,0)}function tze(e){return new jI(e,1)}function Oy(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function OD(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nze(e,t){return e[t]}function rze(e){const t=[];return t.key=e,t}function oze(){var e=wr([]),t=OD,n=Oy,r=nze;function o(i){var a=Array.from(e.apply(this,arguments),rze),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,i)]).data=d;for(s=0,u=dj(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:wr(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:wr(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?OD:typeof i=="function"?i:wr(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Oy,o):n},o}function ize(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Oy(e,t)}}function aze(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Oy(e,t)}}function sze(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,p=(d-f)/2,m=0;m<s;++m){var g=e[t[m]],y=g[r][1]||0,b=g[r-1][1]||0;p+=y-b}l+=d,c+=p*d}o[r-1][1]+=o[r-1][0]=n,l&&(n-=c/l)}o[r-1][1]+=o[r-1][0]=n,Oy(e,t)}}function Ww(e){"@babel/helpers - typeof";return Ww=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ww(e)}var lze=["type","size","sizeType"];function ID(){return ID=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ID.apply(this,arguments)}function UU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function WU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UU(Object(n),!0).forEach(function(r){cze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cze(e,t,n){return t=uze(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uze(e){var t=dze(e,"string");return Ww(t)=="symbol"?t:t+""}function dze(e,t){if(Ww(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ww(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fze(e,t){if(e==null)return{};var n=pze(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pze(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nee={symbolCircle:fj,symbolCross:DBe,symbolDiamond:LBe,symbolSquare:NBe,symbolStar:zBe,symbolTriangle:VBe,symbolWye:UBe},hze=Math.PI/180,mze=function(t){var n="symbol".concat(LI(t));return Nee[n]||fj},gze=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*hze;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},yze=function(t,n){Nee["symbol".concat(LI(t))]=n},BI=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,l=fze(t,lze),c=WU(WU({},l),{},{type:r,size:i,sizeType:s}),u=function(){var y=mze(r),b=WBe().type(y).size(gze(i,s,r));return b()},d=c.className,f=c.cx,p=c.cy,m=At(c,!0);return f===+f&&p===+p&&i===+i?Y.createElement("path",ID({},m,{className:pe("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:u()})):null};BI.registerSymbol=yze;function Iy(e){"@babel/helpers - typeof";return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iy(e)}function kD(){return kD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kD.apply(this,arguments)}function GU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GU(Object(n),!0).forEach(function(r){Gw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jee(r.key),r)}}function xze(e,t,n){return t&&wze(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sze(e,t,n){return t=NE(t),Cze(e,Fee()?Reflect.construct(t,n||[],NE(e).constructor):t.apply(e,n))}function Cze(e,t){if(t&&(Iy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pze(e)}function Pze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fee=function(){return!!e})()}function NE(e){return NE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},NE(e)}function Eze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MD(e,t)}function MD(e,t){return MD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},MD(e,t)}function Gw(e,t,n){return t=jee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jee(e){var t=Tze(e,"string");return Iy(t)=="symbol"?t:t+""}function Tze(e,t){if(Iy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Iy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ws=32,pj=function(e){function t(){return bze(this,t),Sze(this,t,arguments)}return Eze(t,e),xze(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=ws/2,a=ws/6,s=ws/3,l=r.inactive?o:r.color;if(r.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:ws,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
+ */var Uj=Symbol.for("react.element"),Wj=Symbol.for("react.portal"),ZI=Symbol.for("react.fragment"),ek=Symbol.for("react.strict_mode"),tk=Symbol.for("react.profiler"),nk=Symbol.for("react.provider"),rk=Symbol.for("react.context"),vBe=Symbol.for("react.server_context"),ok=Symbol.for("react.forward_ref"),ik=Symbol.for("react.suspense"),ak=Symbol.for("react.suspense_list"),sk=Symbol.for("react.memo"),lk=Symbol.for("react.lazy"),bBe=Symbol.for("react.offscreen"),fte;fte=Symbol.for("react.module.reference");function hl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uj:switch(e=e.type,e){case ZI:case tk:case ek:case ik:case ak:return e;default:switch(e=e&&e.$$typeof,e){case vBe:case rk:case ok:case lk:case sk:case nk:return e;default:return t}}case Wj:return t}}}ir.ContextConsumer=rk;ir.ContextProvider=nk;ir.Element=Uj;ir.ForwardRef=ok;ir.Fragment=ZI;ir.Lazy=lk;ir.Memo=sk;ir.Portal=Wj;ir.Profiler=tk;ir.StrictMode=ek;ir.Suspense=ik;ir.SuspenseList=ak;ir.isAsyncMode=function(){return!1};ir.isConcurrentMode=function(){return!1};ir.isContextConsumer=function(e){return hl(e)===rk};ir.isContextProvider=function(e){return hl(e)===nk};ir.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uj};ir.isForwardRef=function(e){return hl(e)===ok};ir.isFragment=function(e){return hl(e)===ZI};ir.isLazy=function(e){return hl(e)===lk};ir.isMemo=function(e){return hl(e)===sk};ir.isPortal=function(e){return hl(e)===Wj};ir.isProfiler=function(e){return hl(e)===tk};ir.isStrictMode=function(e){return hl(e)===ek};ir.isSuspense=function(e){return hl(e)===ik};ir.isSuspenseList=function(e){return hl(e)===ak};ir.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ZI||e===tk||e===ek||e===ik||e===ak||e===bBe||typeof e=="object"&&e!==null&&(e.$$typeof===lk||e.$$typeof===sk||e.$$typeof===nk||e.$$typeof===rk||e.$$typeof===ok||e.$$typeof===fte||e.getModuleId!==void 0)};ir.typeOf=hl;dte.exports=ir;var wBe=dte.exports,xBe=pd,SBe=hd,CBe="[object Number]";function PBe(e){return typeof e=="number"||SBe(e)&&xBe(e)==CBe}var pte=PBe;const EBe=jn(pte);var TBe=pte;function OBe(e){return TBe(e)&&e!=+e}var IBe=OBe;const ib=jn(IBe);var Hi=function(t){return t===0?0:t>0?1:-1},Qp=function(t){return WS(t)&&t.indexOf("%")===t.length-1},at=function(t){return EBe(t)&&!ib(t)},_o=function(t){return at(t)||WS(t)},kBe=0,Jf=function(t){var n=++kBe;return"".concat(t||"").concat(n)},Ui=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!at(t)&&!WS(t))return r;var i;if(Qp(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return ib(i)&&(i=r),o&&i>n&&(i=n),i},Kd=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},MBe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},Hr=function(t,n){return at(t)&&at(n)?function(r){return t+r*(n-t)}:function(){return n}};function nT(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):es(r,t))===n})}var ABe=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,o=0,i=0,a=0,s=1/0,l=-1/0,c=0,u=0,d=0;d<n;d++)c=t[d].cx||0,u=t[d].cy||0,r+=c,o+=u,i+=c*u,a+=c*c,s=Math.min(s,c),l=Math.max(l,c);var f=n*a!==r*r?(n*i-r*o)/(n*a-r*r):0;return{xmin:s,xmax:l,a:f,b:(o-f*r)/n}};function sy(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function JD(e){"@babel/helpers - typeof";return JD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JD(e)}var $Be=["viewBox","children"],RBe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],xW=["points","pathLength"],K$={svg:$Be,polygon:xW,polyline:xW},Gj=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],rT=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(v.isValidElement(t)&&(r=t.props),!tb(r))return null;var o={};return Object.keys(r).forEach(function(i){Gj.includes(i)&&(o[i]=n||function(a){return r[i](r,a)})}),o},DBe=function(t,n,r){return function(o){return t(n,r,o),null}},_f=function(t,n,r){if(!tb(t)||JD(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(i){var a=t[i];Gj.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=DBe(a,n,r))}),o},_Be=["children"],LBe=["children"];function SW(e,t){if(e==null)return{};var n=NBe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ZD(e){"@babel/helpers - typeof";return ZD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZD(e)}var CW={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Lu=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},PW=null,Y$=null,qj=function e(t){if(t===PW&&Array.isArray(Y$))return Y$;var n=[];return v.Children.forEach(t,function(r){zt(r)||(wBe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Y$=n,PW=t,n};function Yi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Lu(o)}):r=[Lu(t)],qj(e).forEach(function(o){var i=es(o,"type.displayName")||es(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function Va(e,t){var n=Yi(e,t);return n&&n[0]}var EW=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!at(r)||r<=0||!at(o)||o<=0)},FBe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],jBe=function(t){return t&&t.type&&WS(t.type)&&FBe.indexOf(t.type)>=0},hte=function(t){return t&&ZD(t)==="object"&&"clipDot"in t},BBe=function(t,n,r,o){var i,a=(i=K$==null?void 0:K$[o])!==null&&i!==void 0?i:[];return!Ut(t)&&(o&&a.includes(n)||RBe.includes(n))||r&&Gj.includes(n)},$t=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(v.isValidElement(t)&&(o=t.props),!tb(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;BBe((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},e_=function e(t,n){if(t===n)return!0;var r=v.Children.count(t);if(r!==v.Children.count(n))return!1;if(r===0)return!0;if(r===1)return TW(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!TW(i,a))return!1}return!0},TW=function(t,n){if(zt(t)&&zt(n))return!0;if(!zt(t)&&!zt(n)){var r=t.props||{},o=r.children,i=SW(r,_Be),a=n.props||{},s=a.children,l=SW(a,LBe);return o&&s?sy(i,l)&&e_(o,s):!o&&!s?sy(i,l):!1}return!1},OW=function(t,n){var r=[],o={};return qj(t).forEach(function(i,a){if(jBe(i))r.push(i);else if(i){var s=Lu(i.type),l=n[s]||{},c=l.handler,u=l.once;if(c&&(!u||!o[s])){var d=c(i,s,a);r.push(d),o[s]=!0}}}),r},zBe=function(t){var n=t&&t.type;return n&&CW[n]?CW[n]:null},VBe=function(t,n){return qj(n).indexOf(t)},HBe=["children","width","height","viewBox","className","style","title","desc"];function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t_.apply(this,arguments)}function UBe(e,t){if(e==null)return{};var n=WBe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function n_(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,c=UBe(e,HBe),u=o||{width:n,height:r,x:0,y:0},d=pe("recharts-surface",i);return Y.createElement("svg",t_({},$t(c,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var GBe=["children","className"];function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r_.apply(this,arguments)}function qBe(e,t){if(e==null)return{};var n=KBe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var on=Y.forwardRef(function(e,t){var n=e.children,r=e.className,o=qBe(e,GBe),i=pe("recharts-layer",r);return Y.createElement("g",r_({className:i},$t(o,!0),{ref:t}),n)}),Zl=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i]};function YBe(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}var XBe=YBe,QBe=XBe;function JBe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:QBe(e,t,n)}var ZBe=JBe,eze="\\ud800-\\udfff",tze="\\u0300-\\u036f",nze="\\ufe20-\\ufe2f",rze="\\u20d0-\\u20ff",oze=tze+nze+rze,ize="\\ufe0e\\ufe0f",aze="\\u200d",sze=RegExp("["+aze+eze+oze+ize+"]");function lze(e){return sze.test(e)}var mte=lze;function cze(e){return e.split("")}var uze=cze,gte="\\ud800-\\udfff",dze="\\u0300-\\u036f",fze="\\ufe20-\\ufe2f",pze="\\u20d0-\\u20ff",hze=dze+fze+pze,mze="\\ufe0e\\ufe0f",gze="["+gte+"]",o_="["+hze+"]",i_="\\ud83c[\\udffb-\\udfff]",yze="(?:"+o_+"|"+i_+")",yte="[^"+gte+"]",vte="(?:\\ud83c[\\udde6-\\uddff]){2}",bte="[\\ud800-\\udbff][\\udc00-\\udfff]",vze="\\u200d",wte=yze+"?",xte="["+mze+"]?",bze="(?:"+vze+"(?:"+[yte,vte,bte].join("|")+")"+xte+wte+")*",wze=xte+wte+bze,xze="(?:"+[yte+o_+"?",o_,vte,bte,gze].join("|")+")",Sze=RegExp(i_+"(?="+i_+")|"+xze+wze,"g");function Cze(e){return e.match(Sze)||[]}var Pze=Cze,Eze=uze,Tze=mte,Oze=Pze;function Ize(e){return Tze(e)?Oze(e):Eze(e)}var kze=Ize,Mze=ZBe,Aze=mte,$ze=kze,Rze=lte;function Dze(e){return function(t){t=Rze(t);var n=Aze(t)?$ze(t):void 0,r=n?n[0]:t.charAt(0),o=n?Mze(n,1).join(""):t.slice(1);return r[e]()+o}}var _ze=Dze,Lze=_ze,Nze=Lze("toUpperCase"),Fze=Nze;const ck=jn(Fze);function wr(e){return function(){return e}}const Ste=Math.cos,oT=Math.sin,fc=Math.sqrt,iT=Math.PI,uk=2*iT,a_=Math.PI,s_=2*a_,Fp=1e-6,jze=s_-Fp;function Cte(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Bze(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Cte;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class zze{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Cte:Bze(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-t,c=o-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Fp)if(!(Math.abs(d*l-c*u)>Fp)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,m=o-s,g=l*l+c*c,y=p*p+m*m,b=Math.sqrt(g),x=Math.sqrt(f),S=i*Math.tan((a_-Math.acos((g+f-y)/(2*b*x)))/2),P=S/x,E=S/b;Math.abs(P-1)>Fp&&this._append`L${t+P*u},${n+P*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=t+E*l},${this._y1=n+E*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,d=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Fp||Math.abs(this._y1-u)>Fp)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%s_+s_),f>jze?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Fp&&this._append`A${r},${r},0,${+(f>=a_)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Kj(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new zze(t)}function Yj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Pte(e){this._context=e}Pte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function dk(e){return new Pte(e)}function Ete(e){return e[0]}function Tte(e){return e[1]}function Ote(e,t){var n=wr(!0),r=null,o=dk,i=null,a=Kj(s);e=typeof e=="function"?e:e===void 0?Ete:wr(e),t=typeof t=="function"?t:t===void 0?Tte:wr(t);function s(l){var c,u=(l=Yj(l)).length,d,f=!1,p;for(r==null&&(i=o(p=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,l),+t(d,c,l));if(p)return i=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:wr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:wr(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:wr(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(i=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=i=null:i=o(r=l),s):r},s}function KC(e,t,n){var r=null,o=wr(!0),i=null,a=dk,s=null,l=Kj(c);e=typeof e=="function"?e:e===void 0?Ete:wr(+e),t=typeof t=="function"?t:wr(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Tte:wr(+n);function c(d){var f,p,m,g=(d=Yj(d)).length,y,b=!1,x,S=new Array(g),P=new Array(g);for(i==null&&(s=a(x=l())),f=0;f<=g;++f){if(!(f<g&&o(y=d[f],f,d))===b)if(b=!b)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=p;--m)s.point(S[m],P[m]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(y,f,d),P[f]=+t(y,f,d),s.point(r?+r(y,f,d):S[f],n?+n(y,f,d):P[f]))}if(x)return s=null,x+""||null}function u(){return Ote().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:wr(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:wr(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:wr(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:wr(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:wr(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:wr(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:wr(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class Ite{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Vze(e){return new Ite(e,!0)}function Hze(e){return new Ite(e,!1)}const Xj={draw(e,t){const n=fc(t/iT);e.moveTo(n,0),e.arc(0,0,n,0,uk)}},Uze={draw(e,t){const n=fc(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},kte=fc(1/3),Wze=kte*2,Gze={draw(e,t){const n=fc(t/Wze),r=n*kte;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qze={draw(e,t){const n=fc(t),r=-n/2;e.rect(r,r,n,n)}},Kze=.8908130915292852,Mte=oT(iT/10)/oT(7*iT/10),Yze=oT(uk/10)*Mte,Xze=-Ste(uk/10)*Mte,Qze={draw(e,t){const n=fc(t*Kze),r=Yze*n,o=Xze*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=uk*i/5,s=Ste(a),l=oT(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},X$=fc(3),Jze={draw(e,t){const n=-fc(t/(X$*3));e.moveTo(0,n*2),e.lineTo(-X$*n,-n),e.lineTo(X$*n,-n),e.closePath()}},Ts=-.5,Os=fc(3)/2,l_=1/fc(12),Zze=(l_/2+1)*3,eVe={draw(e,t){const n=fc(t/Zze),r=n/2,o=n*l_,i=r,a=n*l_+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Ts*r-Os*o,Os*r+Ts*o),e.lineTo(Ts*i-Os*a,Os*i+Ts*a),e.lineTo(Ts*s-Os*l,Os*s+Ts*l),e.lineTo(Ts*r+Os*o,Ts*o-Os*r),e.lineTo(Ts*i+Os*a,Ts*a-Os*i),e.lineTo(Ts*s+Os*l,Ts*l-Os*s),e.closePath()}};function tVe(e,t){let n=null,r=Kj(o);e=typeof e=="function"?e:wr(e||Xj),t=typeof t=="function"?t:wr(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:wr(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:wr(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function aT(){}function sT(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ate(e){this._context=e}Ate.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sT(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nVe(e){return new Ate(e)}function $te(e){this._context=e}$te.prototype={areaStart:aT,areaEnd:aT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:sT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rVe(e){return new $te(e)}function Rte(e){this._context=e}Rte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:sT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oVe(e){return new Rte(e)}function Dte(e){this._context=e}Dte.prototype={areaStart:aT,areaEnd:aT,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function iVe(e){return new Dte(e)}function IW(e){return e<0?-1:1}function kW(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(IW(i)+IW(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function MW(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Q$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function lT(e){this._context=e}lT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Q$(this,this._t0,MW(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Q$(this,MW(this,n=kW(this,e,t)),n);break;default:Q$(this,this._t0,n=kW(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _te(e){this._context=new Lte(e)}(_te.prototype=Object.create(lT.prototype)).point=function(e,t){lT.prototype.point.call(this,t,e)};function Lte(e){this._context=e}Lte.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function aVe(e){return new lT(e)}function sVe(e){return new _te(e)}function Nte(e){this._context=e}Nte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=AW(e),o=AW(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function AW(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function lVe(e){return new Nte(e)}function fk(e,t){this._context=e,this._t=t}fk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function cVe(e){return new fk(e,.5)}function uVe(e){return new fk(e,0)}function dVe(e){return new fk(e,1)}function Yy(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function c_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function fVe(e,t){return e[t]}function pVe(e){const t=[];return t.key=e,t}function hVe(){var e=wr([]),t=c_,n=Yy,r=fVe;function o(i){var a=Array.from(e.apply(this,arguments),pVe),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,i)]).data=d;for(s=0,u=Yj(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:wr(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:wr(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?c_:typeof i=="function"?i:wr(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Yy,o):n},o}function mVe(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Yy(e,t)}}function gVe(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Yy(e,t)}}function yVe(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,p=(d-f)/2,m=0;m<s;++m){var g=e[t[m]],y=g[r][1]||0,b=g[r-1][1]||0;p+=y-b}l+=d,c+=p*d}o[r-1][1]+=o[r-1][0]=n,l&&(n-=c/l)}o[r-1][1]+=o[r-1][0]=n,Yy(e,t)}}function mx(e){"@babel/helpers - typeof";return mx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mx(e)}var vVe=["type","size","sizeType"];function u_(){return u_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u_.apply(this,arguments)}function $W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$W(Object(n),!0).forEach(function(r){bVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$W(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bVe(e,t,n){return t=wVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wVe(e){var t=xVe(e,"string");return mx(t)=="symbol"?t:t+""}function xVe(e,t){if(mx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SVe(e,t){if(e==null)return{};var n=CVe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CVe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Fte={symbolCircle:Xj,symbolCross:Uze,symbolDiamond:Gze,symbolSquare:qze,symbolStar:Qze,symbolTriangle:Jze,symbolWye:eVe},PVe=Math.PI/180,EVe=function(t){var n="symbol".concat(ck(t));return Fte[n]||Xj},TVe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*PVe;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},OVe=function(t,n){Fte["symbol".concat(ck(t))]=n},pk=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,l=SVe(t,vVe),c=RW(RW({},l),{},{type:r,size:i,sizeType:s}),u=function(){var y=EVe(r),b=tVe().type(y).size(TVe(i,s,r));return b()},d=c.className,f=c.cx,p=c.cy,m=$t(c,!0);return f===+f&&p===+p&&i===+i?Y.createElement("path",u_({},m,{className:pe("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:u()})):null};pk.registerSymbol=OVe;function Xy(e){"@babel/helpers - typeof";return Xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xy(e)}function d_(){return d_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d_.apply(this,arguments)}function DW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function IVe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DW(Object(n),!0).forEach(function(r){gx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kVe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bte(r.key),r)}}function AVe(e,t,n){return t&&MVe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Ve(e,t,n){return t=cT(t),RVe(e,jte()?Reflect.construct(t,n||[],cT(e).constructor):t.apply(e,n))}function RVe(e,t){if(t&&(Xy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DVe(e)}function DVe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jte=function(){return!!e})()}function cT(e){return cT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cT(e)}function _Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f_(e,t)}function f_(e,t){return f_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},f_(e,t)}function gx(e,t,n){return t=Bte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bte(e){var t=LVe(e,"string");return Xy(t)=="symbol"?t:t+""}function LVe(e,t){if(Xy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Is=32,Qj=function(e){function t(){return kVe(this,t),$Ve(this,t,arguments)}return _Ve(t,e),AVe(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=Is/2,a=Is/6,s=Is/3,l=r.inactive?o:r.color;if(r.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Is,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
- H`).concat(ws,"M").concat(2*s,",").concat(i,`
- A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return Y.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ws/8,"h").concat(ws,"v").concat(ws*3/4,"h").concat(-ws,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(r.legendIcon)){var c=vze({},r);return delete c.legendIcon,Y.cloneElement(r.legendIcon,c)}return Y.createElement(BI,{fill:l,cx:i,cy:i,size:ws,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,u={x:0,y:0,width:ws,height:ws},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,y=pe(Gw(Gw({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Ht(p.value)?null:p.value;Vl(!Ht(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return Y.createElement("li",kD({className:y,style:d,key:"legend-item-".concat(m)},wf(r.props,p,m)),Y.createElement(wD,{width:a,height:a,viewBox:u,style:f},r.renderIcon(p)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(b,p,m):b))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(v.PureComponent);Gw(pj,"displayName","Legend");Gw(pj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Oze=CI;function Ize(){this.__data__=new Oze,this.size=0}var kze=Ize;function Mze(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Aze=Mze;function $ze(e){return this.__data__.get(e)}var Rze=$ze;function Dze(e){return this.__data__.has(e)}var _ze=Dze,Lze=CI,Nze=tj,Fze=nj,jze=200;function Bze(e,t){var n=this.__data__;if(n instanceof Lze){var r=n.__data__;if(!Nze||r.length<jze-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fze(r)}return n.set(e,t),this.size=n.size,this}var zze=Bze,Vze=CI,Hze=kze,Uze=Aze,Wze=Rze,Gze=_ze,qze=zze;function Fv(e){var t=this.__data__=new Vze(e);this.size=t.size}Fv.prototype.clear=Hze;Fv.prototype.delete=Uze;Fv.prototype.get=Wze;Fv.prototype.has=Gze;Fv.prototype.set=qze;var Bee=Fv,Kze="__lodash_hash_undefined__";function Yze(e){return this.__data__.set(e,Kze),this}var Xze=Yze;function Qze(e){return this.__data__.has(e)}var Jze=Qze,Zze=nj,eVe=Xze,tVe=Jze;function FE(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Zze;++t<n;)this.add(e[t])}FE.prototype.add=FE.prototype.push=eVe;FE.prototype.has=tVe;var zee=FE;function nVe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Vee=nVe;function rVe(e,t){return e.has(t)}var Hee=rVe,oVe=zee,iVe=Vee,aVe=Hee,sVe=1,lVe=2;function cVe(e,t,n,r,o,i){var a=n&sVe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&lVe?new oVe:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var y=a?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!iVe(t,function(b,x){if(!aVe(p,x)&&(m===b||o(m,b,n,r,i)))return p.push(x)})){f=!1;break}}else if(!(m===g||o(m,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Uee=cVe,uVe=Bc,dVe=uVe.Uint8Array,fVe=dVe;function pVe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var hVe=pVe;function mVe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var hj=mVe,qU=SS,KU=fVe,gVe=ej,yVe=Uee,vVe=hVe,bVe=hj,wVe=1,xVe=2,SVe="[object Boolean]",CVe="[object Date]",PVe="[object Error]",EVe="[object Map]",TVe="[object Number]",OVe="[object RegExp]",IVe="[object Set]",kVe="[object String]",MVe="[object Symbol]",AVe="[object ArrayBuffer]",$Ve="[object DataView]",YU=qU?qU.prototype:void 0,g$=YU?YU.valueOf:void 0;function RVe(e,t,n,r,o,i,a){switch(n){case $Ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case AVe:return!(e.byteLength!=t.byteLength||!i(new KU(e),new KU(t)));case SVe:case CVe:case TVe:return gVe(+e,+t);case PVe:return e.name==t.name&&e.message==t.message;case OVe:case kVe:return e==t+"";case EVe:var s=vVe;case IVe:var l=r&wVe;if(s||(s=bVe),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=xVe,a.set(e,t);var u=yVe(s(e),s(t),r,o,i,a);return a.delete(e),u;case MVe:if(g$)return g$.call(e)==g$.call(t)}return!1}var DVe=RVe;function _Ve(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Wee=_Ve,LVe=Wee,NVe=xa;function FVe(e,t,n){var r=t(e);return NVe(e)?r:LVe(r,n(e))}var jVe=FVe;function BVe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var zVe=BVe;function VVe(){return[]}var HVe=VVe,UVe=zVe,WVe=HVe,GVe=Object.prototype,qVe=GVe.propertyIsEnumerable,XU=Object.getOwnPropertySymbols,KVe=XU?function(e){return e==null?[]:(e=Object(e),UVe(XU(e),function(t){return qVe.call(e,t)}))}:WVe,YVe=KVe;function XVe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var QVe=XVe,JVe=Zu,ZVe=ed,e5e="[object Arguments]";function t5e(e){return ZVe(e)&&JVe(e)==e5e}var n5e=t5e,QU=n5e,r5e=ed,Gee=Object.prototype,o5e=Gee.hasOwnProperty,i5e=Gee.propertyIsEnumerable,a5e=QU(function(){return arguments}())?QU:function(e){return r5e(e)&&o5e.call(e,"callee")&&!i5e.call(e,"callee")},mj=a5e,jE={exports:{}};function s5e(){return!1}var l5e=s5e;jE.exports;(function(e,t){var n=Bc,r=l5e,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(jE,jE.exports);var qee=jE.exports,c5e=9007199254740991,u5e=/^(?:0|[1-9]\d*)$/;function d5e(e,t){var n=typeof e;return t=t??c5e,!!t&&(n=="number"||n!="symbol"&&u5e.test(e))&&e>-1&&e%1==0&&e<t}var gj=d5e,f5e=9007199254740991;function p5e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f5e}var yj=p5e,h5e=Zu,m5e=yj,g5e=ed,y5e="[object Arguments]",v5e="[object Array]",b5e="[object Boolean]",w5e="[object Date]",x5e="[object Error]",S5e="[object Function]",C5e="[object Map]",P5e="[object Number]",E5e="[object Object]",T5e="[object RegExp]",O5e="[object Set]",I5e="[object String]",k5e="[object WeakMap]",M5e="[object ArrayBuffer]",A5e="[object DataView]",$5e="[object Float32Array]",R5e="[object Float64Array]",D5e="[object Int8Array]",_5e="[object Int16Array]",L5e="[object Int32Array]",N5e="[object Uint8Array]",F5e="[object Uint8ClampedArray]",j5e="[object Uint16Array]",B5e="[object Uint32Array]",Tr={};Tr[$5e]=Tr[R5e]=Tr[D5e]=Tr[_5e]=Tr[L5e]=Tr[N5e]=Tr[F5e]=Tr[j5e]=Tr[B5e]=!0;Tr[y5e]=Tr[v5e]=Tr[M5e]=Tr[b5e]=Tr[A5e]=Tr[w5e]=Tr[x5e]=Tr[S5e]=Tr[C5e]=Tr[P5e]=Tr[E5e]=Tr[T5e]=Tr[O5e]=Tr[I5e]=Tr[k5e]=!1;function z5e(e){return g5e(e)&&m5e(e.length)&&!!Tr[h5e(e)]}var V5e=z5e;function H5e(e){return function(t){return e(t)}}var Kee=H5e,BE={exports:{}};BE.exports;(function(e,t){var n=tee,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(BE,BE.exports);var U5e=BE.exports,W5e=V5e,G5e=Kee,JU=U5e,ZU=JU&&JU.isTypedArray,q5e=ZU?G5e(ZU):W5e,Yee=q5e,K5e=QVe,Y5e=mj,X5e=xa,Q5e=qee,J5e=gj,Z5e=Yee,eHe=Object.prototype,tHe=eHe.hasOwnProperty;function nHe(e,t){var n=X5e(e),r=!n&&Y5e(e),o=!n&&!r&&Q5e(e),i=!n&&!r&&!o&&Z5e(e),a=n||r||o||i,s=a?K5e(e.length,String):[],l=s.length;for(var c in e)(t||tHe.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||J5e(c,l)))&&s.push(c);return s}var rHe=nHe,oHe=Object.prototype;function iHe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oHe;return e===n}var aHe=iHe;function sHe(e,t){return function(n){return e(t(n))}}var Xee=sHe,lHe=Xee,cHe=lHe(Object.keys,Object),uHe=cHe,dHe=aHe,fHe=uHe,pHe=Object.prototype,hHe=pHe.hasOwnProperty;function mHe(e){if(!dHe(e))return fHe(e);var t=[];for(var n in Object(e))hHe.call(e,n)&&n!="constructor"&&t.push(n);return t}var gHe=mHe,yHe=ZF,vHe=yj;function bHe(e){return e!=null&&vHe(e.length)&&!yHe(e)}var PS=bHe,wHe=rHe,xHe=gHe,SHe=PS;function CHe(e){return SHe(e)?wHe(e):xHe(e)}var zI=CHe,PHe=jVe,EHe=YVe,THe=zI;function OHe(e){return PHe(e,THe,EHe)}var IHe=OHe,eW=IHe,kHe=1,MHe=Object.prototype,AHe=MHe.hasOwnProperty;function $He(e,t,n,r,o,i){var a=n&kHe,s=eW(e),l=s.length,c=eW(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:AHe.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,i):r(b,x,f,e,t,i);if(!(S===void 0?b===x||o(b,x,n,r,i):S)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var P=e.constructor,E=t.constructor;P!=E&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(e),i.delete(t),g}var RHe=$He,DHe=Lh,_He=Bc,LHe=DHe(_He,"DataView"),NHe=LHe,FHe=Lh,jHe=Bc,BHe=FHe(jHe,"Promise"),zHe=BHe,VHe=Lh,HHe=Bc,UHe=VHe(HHe,"Set"),Qee=UHe,WHe=Lh,GHe=Bc,qHe=WHe(GHe,"WeakMap"),KHe=qHe,AD=NHe,$D=tj,RD=zHe,DD=Qee,_D=KHe,Jee=Zu,jv=ree,tW="[object Map]",YHe="[object Object]",nW="[object Promise]",rW="[object Set]",oW="[object WeakMap]",iW="[object DataView]",XHe=jv(AD),QHe=jv($D),JHe=jv(RD),ZHe=jv(DD),e4e=jv(_D),Cp=Jee;(AD&&Cp(new AD(new ArrayBuffer(1)))!=iW||$D&&Cp(new $D)!=tW||RD&&Cp(RD.resolve())!=nW||DD&&Cp(new DD)!=rW||_D&&Cp(new _D)!=oW)&&(Cp=function(e){var t=Jee(e),n=t==YHe?e.constructor:void 0,r=n?jv(n):"";if(r)switch(r){case XHe:return iW;case QHe:return tW;case JHe:return nW;case ZHe:return rW;case e4e:return oW}return t});var t4e=Cp,y$=Bee,n4e=Uee,r4e=DVe,o4e=RHe,aW=t4e,sW=xa,lW=qee,i4e=Yee,a4e=1,cW="[object Arguments]",uW="[object Array]",EC="[object Object]",s4e=Object.prototype,dW=s4e.hasOwnProperty;function l4e(e,t,n,r,o,i){var a=sW(e),s=sW(t),l=a?uW:aW(e),c=s?uW:aW(t);l=l==cW?EC:l,c=c==cW?EC:c;var u=l==EC,d=c==EC,f=l==c;if(f&&lW(e)){if(!lW(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new y$),a||i4e(e)?n4e(e,t,n,r,o,i):r4e(e,t,l,n,r,o,i);if(!(n&a4e)){var p=u&&dW.call(e,"__wrapped__"),m=d&&dW.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,y=m?t.value():t;return i||(i=new y$),o(g,y,n,r,i)}}return f?(i||(i=new y$),o4e(e,t,n,r,o,i)):!1}var c4e=l4e,u4e=c4e,fW=ed;function Zee(e,t,n,r,o){return e===t?!0:e==null||t==null||!fW(e)&&!fW(t)?e!==e&&t!==t:u4e(e,t,n,r,Zee,o)}var vj=Zee,d4e=Bee,f4e=vj,p4e=1,h4e=2;function m4e(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new d4e;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?f4e(u,c,p4e|h4e,r,d):f))return!1}}return!0}var g4e=m4e,y4e=_f;function v4e(e){return e===e&&!y4e(e)}var ete=v4e,b4e=ete,w4e=zI;function x4e(e){for(var t=w4e(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,b4e(o)]}return t}var S4e=x4e;function C4e(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var tte=C4e,P4e=g4e,E4e=S4e,T4e=tte;function O4e(e){var t=E4e(e);return t.length==1&&t[0][2]?T4e(t[0][0],t[0][1]):function(n){return n===e||P4e(n,e,t)}}var I4e=O4e;function k4e(e,t){return e!=null&&t in Object(e)}var M4e=k4e,A4e=lee,$4e=mj,R4e=xa,D4e=gj,_4e=yj,L4e=EI;function N4e(e,t,n){t=A4e(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=L4e(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&_4e(o)&&D4e(a,o)&&(R4e(e)||$4e(e)))}var F4e=N4e,j4e=M4e,B4e=F4e;function z4e(e,t){return e!=null&&B4e(e,t,j4e)}var V4e=z4e,H4e=vj,U4e=cee,W4e=V4e,G4e=JF,q4e=ete,K4e=tte,Y4e=EI,X4e=1,Q4e=2;function J4e(e,t){return G4e(e)&&q4e(t)?K4e(Y4e(e),t):function(n){var r=U4e(n,e);return r===void 0&&r===t?W4e(n,e):H4e(t,r,X4e|Q4e)}}var Z4e=J4e;function e3e(e){return e}var Bv=e3e;function t3e(e){return function(t){return t==null?void 0:t[e]}}var n3e=t3e,r3e=ij;function o3e(e){return function(t){return r3e(t,e)}}var i3e=o3e,a3e=n3e,s3e=i3e,l3e=JF,c3e=EI;function u3e(e){return l3e(e)?a3e(c3e(e)):s3e(e)}var d3e=u3e,f3e=I4e,p3e=Z4e,h3e=Bv,m3e=xa,g3e=d3e;function y3e(e){return typeof e=="function"?e:e==null?h3e:typeof e=="object"?m3e(e)?p3e(e[0],e[1]):f3e(e):g3e(e)}var zc=y3e;function v3e(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var nte=v3e;function b3e(e){return e!==e}var w3e=b3e;function x3e(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var S3e=x3e,C3e=nte,P3e=w3e,E3e=S3e;function T3e(e,t,n){return t===t?E3e(e,t,n):C3e(e,P3e,n)}var O3e=T3e,I3e=O3e;function k3e(e,t){var n=e==null?0:e.length;return!!n&&I3e(e,t,0)>-1}var M3e=k3e;function A3e(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var $3e=A3e;function R3e(){}var D3e=R3e,v$=Qee,_3e=D3e,L3e=hj,N3e=1/0,F3e=v$&&1/L3e(new v$([,-0]))[1]==N3e?function(e){return new v$(e)}:_3e,j3e=F3e,B3e=zee,z3e=M3e,V3e=$3e,H3e=Hee,U3e=j3e,W3e=hj,G3e=200;function q3e(e,t,n){var r=-1,o=z3e,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=V3e;else if(i>=G3e){var c=t?null:U3e(e);if(c)return W3e(c);a=!1,o=H3e,l=new B3e}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var K3e=q3e,Y3e=zc,X3e=K3e;function Q3e(e,t){return e&&e.length?X3e(e,Y3e(t)):[]}var J3e=Q3e;const pW=Bn(J3e);function rte(e,t,n){return t===!0?pW(e,n):Ht(t)?pW(e,t):e}function ky(e){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ky(e)}var Z3e=["ref"];function hW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hW(Object(n),!0).forEach(function(r){VI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ite(r.key),r)}}function tUe(e,t,n){return t&&mW(e.prototype,t),n&&mW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nUe(e,t,n){return t=zE(t),rUe(e,ote()?Reflect.construct(t,n||[],zE(e).constructor):t.apply(e,n))}function rUe(e,t){if(t&&(ky(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oUe(e)}function oUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ote(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ote=function(){return!!e})()}function zE(e){return zE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zE(e)}function iUe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LD(e,t)}function LD(e,t){return LD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},LD(e,t)}function VI(e,t,n){return t=ite(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ite(e){var t=aUe(e,"string");return ky(t)=="symbol"?t:t+""}function aUe(e,t){if(ky(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sUe(e,t){if(e==null)return{};var n=lUe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lUe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cUe(e){return e.value}function uUe(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=sUe(t,Z3e);return Y.createElement(pj,n)}var gW=1,Pu=function(e){function t(){var n;eUe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=nUe(this,t,[].concat(o)),VI(n,"lastBoundingBox",{width:-1,height:-1}),n}return iUe(t,e),tUe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>gW||Math.abs(o.height-this.lastBoundingBox.height)>gW)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?iu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,u=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();d={left:((c||0)-p.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();f={top:((u||0)-m.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return iu(iu({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,u=o.payload,d=iu(iu({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return Y.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},uUe(i,iu(iu({},this.props),{},{payload:rte(u,c,cUe)})))}}],[{key:"getWithHeight",value:function(r,o){var i=iu(iu({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&at(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(v.PureComponent);VI(Pu,"displayName","Legend");VI(Pu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var yW=SS,dUe=mj,fUe=xa,vW=yW?yW.isConcatSpreadable:void 0;function pUe(e){return fUe(e)||dUe(e)||!!(vW&&e&&e[vW])}var hUe=pUe,mUe=Wee,gUe=hUe;function ate(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gUe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?ate(s,t-1,n,r,o):mUe(o,s):r||(o[o.length]=s)}return o}var ste=ate;function yUe(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var vUe=yUe,bUe=vUe,wUe=bUe(),xUe=wUe,SUe=xUe,CUe=zI;function PUe(e,t){return e&&SUe(e,t,CUe)}var lte=PUe,EUe=PS;function TUe(e,t){return function(n,r){if(n==null)return n;if(!EUe(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var OUe=TUe,IUe=lte,kUe=OUe,MUe=kUe(IUe),bj=MUe,AUe=bj,$Ue=PS;function RUe(e,t){var n=-1,r=$Ue(e)?Array(e.length):[];return AUe(e,function(o,i,a){r[++n]=t(o,i,a)}),r}var cte=RUe;function DUe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _Ue=DUe,bW=$v;function LUe(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=bW(e),a=t!==void 0,s=t===null,l=t===t,c=bW(t);if(!s&&!c&&!i&&e>t||i&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}var NUe=LUe,FUe=NUe;function jUe(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=FUe(o[r],i[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var BUe=jUe,b$=oj,zUe=ij,VUe=zc,HUe=cte,UUe=_Ue,WUe=Kee,GUe=BUe,qUe=Bv,KUe=xa;function YUe(e,t,n){t.length?t=b$(t,function(i){return KUe(i)?function(a){return zUe(a,i.length===1?i[0]:i)}:i}):t=[qUe];var r=-1;t=b$(t,WUe(VUe));var o=HUe(e,function(i,a,s){var l=b$(t,function(c){return c(i)});return{criteria:l,index:++r,value:i}});return UUe(o,function(i,a){return GUe(i,a,n)})}var XUe=YUe;function QUe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var JUe=QUe,ZUe=JUe,wW=Math.max;function eWe(e,t,n){return t=wW(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=wW(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ZUe(e,this,s)}}var tWe=eWe;function nWe(e){return function(){return e}}var rWe=nWe,oWe=Lh,iWe=function(){try{var e=oWe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ute=iWe,aWe=rWe,xW=ute,sWe=Bv,lWe=xW?function(e,t){return xW(e,"toString",{configurable:!0,enumerable:!1,value:aWe(t),writable:!0})}:sWe,cWe=lWe,uWe=800,dWe=16,fWe=Date.now;function pWe(e){var t=0,n=0;return function(){var r=fWe(),o=dWe-(r-n);if(n=r,o>0){if(++t>=uWe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hWe=pWe,mWe=cWe,gWe=hWe,yWe=gWe(mWe),vWe=yWe,bWe=Bv,wWe=tWe,xWe=vWe;function SWe(e,t){return xWe(wWe(e,t,bWe),e+"")}var CWe=SWe,PWe=ej,EWe=PS,TWe=gj,OWe=_f;function IWe(e,t,n){if(!OWe(n))return!1;var r=typeof t;return(r=="number"?EWe(n)&&TWe(t,n.length):r=="string"&&t in n)?PWe(n[t],e):!1}var HI=IWe,kWe=ste,MWe=XUe,AWe=CWe,SW=HI,$We=AWe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&SW(e,t[0],t[1])?t=[]:n>2&&SW(t[0],t[1],t[2])&&(t=[t[0]]),MWe(e,kWe(t,1),[])}),RWe=$We;const wj=Bn(RWe);function qw(e){"@babel/helpers - typeof";return qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qw(e)}function ND(){return ND=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ND.apply(this,arguments)}function DWe(e,t){return FWe(e)||NWe(e,t)||LWe(e,t)||_We()}function _We(){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 LWe(e,t){if(e){if(typeof e=="string")return CW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CW(e,t)}}function CW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NWe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function FWe(e){if(Array.isArray(e))return e}function PW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PW(Object(n),!0).forEach(function(r){jWe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jWe(e,t,n){return t=BWe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BWe(e){var t=zWe(e,"string");return qw(t)=="symbol"?t:t+""}function zWe(e,t){if(qw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VWe(e){return Array.isArray(e)&&Mo(e[0])&&Mo(e[1])?e.join(" ~ "):e}var HWe=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,i=o===void 0?{}:o,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,d=t.formatter,f=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,y=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,S=function(){if(u&&u.length){var _={padding:0,margin:0},N=(f?wj(u,f):u).map(function(B,L){if(B.type==="none")return null;var F=w$({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},s),U=B.formatter||d||VWe,V=B.value,z=B.name,W=V,G=z;if(U&&W!=null&&G!=null){var J=U(V,z,B,L,u);if(Array.isArray(J)){var K=DWe(J,2);W=K[0],G=K[1]}else W=J}return Y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:F},Mo(G)?Y.createElement("span",{className:"recharts-tooltip-item-name"},G):null,Mo(G)?Y.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Y.createElement("span",{className:"recharts-tooltip-item-value"},W),Y.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return Y.createElement("ul",{className:"recharts-tooltip-item-list",style:_},N)}return null},P=w$({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=w$({margin:0},c),T=!Bt(g),O=T?g:"",k=pe("recharts-default-tooltip",p),M=pe("recharts-tooltip-label",m);T&&y&&u!==void 0&&u!==null&&(O=y(g,u));var I=x?{role:"status","aria-live":"assertive"}:{};return Y.createElement("div",ND({className:k,style:P},I),Y.createElement("p",{className:M,style:E},Y.isValidElement(O)?O:"".concat(O)),S())};function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kw(e)}function TC(e,t,n){return t=UWe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UWe(e){var t=WWe(e,"string");return Kw(t)=="symbol"?t:t+""}function WWe(e,t){if(Kw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yb="recharts-tooltip-wrapper",GWe={visibility:"hidden"};function qWe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return pe(Yb,TC(TC(TC(TC({},"".concat(Yb,"-right"),at(n)&&t&&at(t.x)&&n>=t.x),"".concat(Yb,"-left"),at(n)&&t&&at(t.x)&&n<t.x),"".concat(Yb,"-bottom"),at(r)&&t&&at(t.y)&&r>=t.y),"".concat(Yb,"-top"),at(r)&&t&&at(t.y)&&r<t.y))}function EW(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&at(i[r]))return i[r];var u=n[r]-s-o,d=n[r]+o;if(t[r])return a[r]?u:d;if(a[r]){var f=u,p=l[r];return f<p?Math.max(d,l[r]):Math.max(u,l[r])}var m=d+s,g=l[r]+c;return m>g?Math.max(u,l[r]):Math.max(d,l[r])}function KWe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function YWe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,d;return a.height>0&&a.width>0&&n?(u=EW({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=EW({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=KWe({translateX:u,translateY:d,useTranslate3d:s})):c=GWe,{cssProperties:c,cssClasses:qWe({translateX:u,translateY:d,coordinate:n})}}function My(e){"@babel/helpers - typeof";return My=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},My(e)}function TW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TW(Object(n),!0).forEach(function(r){jD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XWe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QWe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fte(r.key),r)}}function JWe(e,t,n){return t&&QWe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZWe(e,t,n){return t=VE(t),e6e(e,dte()?Reflect.construct(t,n||[],VE(e).constructor):t.apply(e,n))}function e6e(e,t){if(t&&(My(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t6e(e)}function t6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dte=function(){return!!e})()}function VE(e){return VE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},VE(e)}function n6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FD(e,t)}function FD(e,t){return FD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},FD(e,t)}function jD(e,t,n){return t=fte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e){var t=r6e(e,"string");return My(t)=="symbol"?t:t+""}function r6e(e,t){if(My(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(My(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IW=1,o6e=function(e){function t(){var n;XWe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=ZWe(this,t,[].concat(o)),jD(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),jD(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,c,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),n}return n6e(t,e),JWe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>IW||Math.abs(r.height-this.state.lastBoundingBox.height)>IW)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,u=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,p=o.offset,m=o.position,g=o.reverseDirection,y=o.useTranslate3d,b=o.viewBox,x=o.wrapperStyle,S=YWe({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}),P=S.cssClasses,E=S.cssProperties,T=OW(OW({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return Y.createElement("div",{tabIndex:-1,className:P,style:T,ref:function(k){r.wrapperNode=k}},c)}}])}(v.PureComponent),i6e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ks={isSsr:i6e(),get:function(t){return Ks[t]},set:function(t,n){if(typeof t=="string")Ks[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(o){Ks[o]=t[o]})}}};function Ay(e){"@babel/helpers - typeof";return Ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ay(e)}function kW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kW(Object(n),!0).forEach(function(r){xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s6e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hte(r.key),r)}}function l6e(e,t,n){return t&&s6e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c6e(e,t,n){return t=HE(t),u6e(e,pte()?Reflect.construct(t,n||[],HE(e).constructor):t.apply(e,n))}function u6e(e,t){if(t&&(Ay(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d6e(e)}function d6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pte=function(){return!!e})()}function HE(e){return HE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},HE(e)}function f6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BD(e,t)}function BD(e,t){return BD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BD(e,t)}function xj(e,t,n){return t=hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hte(e){var t=p6e(e,"string");return Ay(t)=="symbol"?t:t+""}function p6e(e,t){if(Ay(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ay(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h6e(e){return e.dataKey}function m6e(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(HWe,t)}var ja=function(e){function t(){return a6e(this,t),c6e(this,t,arguments)}return f6e(t,e),l6e(t,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.content,u=o.coordinate,d=o.filterNull,f=o.isAnimationActive,p=o.offset,m=o.payload,g=o.payloadUniqBy,y=o.position,b=o.reverseDirection,x=o.useTranslate3d,S=o.viewBox,P=o.wrapperStyle,E=m??[];d&&E.length&&(E=rte(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),g,h6e));var T=E.length>0;return Y.createElement(o6e,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:u,hasPayload:T,offset:p,position:y,reverseDirection:b,useTranslate3d:x,viewBox:S,wrapperStyle:P},m6e(c,MW(MW({},this.props),{},{payload:E})))}}])}(v.PureComponent);xj(ja,"displayName","Tooltip");xj(ja,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ks.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var g6e=Bc,y6e=function(){return g6e.Date.now()},v6e=y6e,b6e=/\s/;function w6e(e){for(var t=e.length;t--&&b6e.test(e.charAt(t)););return t}var x6e=w6e,S6e=x6e,C6e=/^\s+/;function P6e(e){return e&&e.slice(0,S6e(e)+1).replace(C6e,"")}var E6e=P6e,T6e=E6e,AW=_f,O6e=$v,$W=NaN,I6e=/^[-+]0x[0-9a-f]+$/i,k6e=/^0b[01]+$/i,M6e=/^0o[0-7]+$/i,A6e=parseInt;function $6e(e){if(typeof e=="number")return e;if(O6e(e))return $W;if(AW(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=AW(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=T6e(e);var n=k6e.test(e);return n||M6e.test(e)?A6e(e.slice(2),n?2:8):I6e.test(e)?$W:+e}var mte=$6e,R6e=_f,x$=v6e,RW=mte,D6e="Expected a function",_6e=Math.max,L6e=Math.min;function N6e(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(D6e);t=RW(t)||0,R6e(n)&&(u=!!n.leading,d="maxWait"in n,i=d?_6e(RW(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(T){var O=r,k=o;return r=o=void 0,c=T,a=e.apply(k,O),a}function m(T){return c=T,s=setTimeout(b,t),u?p(T):a}function g(T){var O=T-l,k=T-c,M=t-O;return d?L6e(M,i-k):M}function y(T){var O=T-l,k=T-c;return l===void 0||O>=t||O<0||d&&k>=i}function b(){var T=x$();if(y(T))return x(T);s=setTimeout(b,g(T))}function x(T){return s=void 0,f&&r?p(T):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function P(){return s===void 0?a:x(x$())}function E(){var T=x$(),O=y(T);if(r=arguments,o=this,l=T,O){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=S,E.flush=P,E}var F6e=N6e,j6e=F6e,B6e=_f,z6e="Expected a function";function V6e(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(z6e);return B6e(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),j6e(e,t,{leading:r,maxWait:t,trailing:o})}var H6e=V6e;const UI=Bn(H6e);function Yw(e){"@babel/helpers - typeof";return Yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yw(e)}function DW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DW(Object(n),!0).forEach(function(r){U6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U6e(e,t,n){return t=W6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W6e(e){var t=G6e(e,"string");return Yw(t)=="symbol"?t:t+""}function G6e(e,t){if(Yw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q6e(e,t){return Q6e(e)||X6e(e,t)||Y6e(e,t)||K6e()}function K6e(){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 Y6e(e,t){if(e){if(typeof e=="string")return _W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _W(e,t)}}function _W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Q6e(e){if(Array.isArray(e))return e}var Nf=v.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=e.width,a=i===void 0?"100%":i,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,y=e.id,b=e.className,x=e.onResize,S=e.style,P=S===void 0?{}:S,E=v.useRef(null),T=v.useRef();T.current=x,v.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var O=v.useState({containerWidth:o.width,containerHeight:o.height}),k=q6e(O,2),M=k[0],I=k[1],R=v.useCallback(function(N,B){I(function(L){var F=Math.round(N),U=Math.round(B);return L.containerWidth===F&&L.containerHeight===U?L:{containerWidth:F,containerHeight:U}})},[]);v.useEffect(function(){var N=function(z){var W,G=z[0].contentRect,J=G.width,K=G.height;R(J,K),(W=T.current)===null||W===void 0||W.call(T,J,K)};g>0&&(N=UI(N,g,{trailing:!0,leading:!1}));var B=new ResizeObserver(N),L=E.current.getBoundingClientRect(),F=L.width,U=L.height;return R(F,U),B.observe(E.current),function(){B.disconnect()}},[R,g]);var _=v.useMemo(function(){var N=M.containerWidth,B=M.containerHeight;if(N<0||B<0)return null;Vl(Dp(a)||Dp(l),`The width(%s) and height(%s) are both fixed numbers,
- maybe you don't need to use a ResponsiveContainer.`,a,l),Vl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var L=Dp(a)?N:a,F=Dp(l)?B:l;n&&n>0&&(L?F=L/n:F&&(L=F*n),f&&F>f&&(F=f)),Vl(L>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0,
+ H`).concat(Is,"M").concat(2*s,",").concat(i,`
+ A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return Y.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Is/8,"h").concat(Is,"v").concat(Is*3/4,"h").concat(-Is,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(r.legendIcon)){var c=IVe({},r);return delete c.legendIcon,Y.cloneElement(r.legendIcon,c)}return Y.createElement(pk,{fill:l,cx:i,cy:i,size:Is,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,u={x:0,y:0,width:Is,height:Is},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,y=pe(gx(gx({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Ut(p.value)?null:p.value;Zl(!Ut(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return Y.createElement("li",d_({className:y,style:d,key:"legend-item-".concat(m)},_f(r.props,p,m)),Y.createElement(n_,{width:a,height:a,viewBox:u,style:f},r.renderIcon(p)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(b,p,m):b))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(v.PureComponent);gx(Qj,"displayName","Legend");gx(Qj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var NVe=XI;function FVe(){this.__data__=new NVe,this.size=0}var jVe=FVe;function BVe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var zVe=BVe;function VVe(e){return this.__data__.get(e)}var HVe=VVe;function UVe(e){return this.__data__.has(e)}var WVe=UVe,GVe=XI,qVe=jj,KVe=Bj,YVe=200;function XVe(e,t){var n=this.__data__;if(n instanceof GVe){var r=n.__data__;if(!qVe||r.length<YVe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new KVe(r)}return n.set(e,t),this.size=n.size,this}var QVe=XVe,JVe=XI,ZVe=jVe,e5e=zVe,t5e=HVe,n5e=WVe,r5e=QVe;function ab(e){var t=this.__data__=new JVe(e);this.size=t.size}ab.prototype.clear=ZVe;ab.prototype.delete=e5e;ab.prototype.get=t5e;ab.prototype.has=n5e;ab.prototype.set=r5e;var zte=ab,o5e="__lodash_hash_undefined__";function i5e(e){return this.__data__.set(e,o5e),this}var a5e=i5e;function s5e(e){return this.__data__.has(e)}var l5e=s5e,c5e=Bj,u5e=a5e,d5e=l5e;function uT(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new c5e;++t<n;)this.add(e[t])}uT.prototype.add=uT.prototype.push=u5e;uT.prototype.has=d5e;var Vte=uT;function f5e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Hte=f5e;function p5e(e,t){return e.has(t)}var Ute=p5e,h5e=Vte,m5e=Hte,g5e=Ute,y5e=1,v5e=2;function b5e(e,t,n,r,o,i){var a=n&y5e,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&v5e?new h5e:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var y=a?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!m5e(t,function(b,x){if(!g5e(p,x)&&(m===b||o(m,b,n,r,i)))return p.push(x)})){f=!1;break}}else if(!(m===g||o(m,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Wte=b5e,w5e=Qc,x5e=w5e.Uint8Array,S5e=x5e;function C5e(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var P5e=C5e;function E5e(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Jj=E5e,_W=US,LW=S5e,T5e=Fj,O5e=Wte,I5e=P5e,k5e=Jj,M5e=1,A5e=2,$5e="[object Boolean]",R5e="[object Date]",D5e="[object Error]",_5e="[object Map]",L5e="[object Number]",N5e="[object RegExp]",F5e="[object Set]",j5e="[object String]",B5e="[object Symbol]",z5e="[object ArrayBuffer]",V5e="[object DataView]",NW=_W?_W.prototype:void 0,J$=NW?NW.valueOf:void 0;function H5e(e,t,n,r,o,i,a){switch(n){case V5e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z5e:return!(e.byteLength!=t.byteLength||!i(new LW(e),new LW(t)));case $5e:case R5e:case L5e:return T5e(+e,+t);case D5e:return e.name==t.name&&e.message==t.message;case N5e:case j5e:return e==t+"";case _5e:var s=I5e;case F5e:var l=r&M5e;if(s||(s=k5e),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=A5e,a.set(e,t);var u=O5e(s(e),s(t),r,o,i,a);return a.delete(e),u;case B5e:if(J$)return J$.call(e)==J$.call(t)}return!1}var U5e=H5e;function W5e(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Gte=W5e,G5e=Gte,q5e=Ta;function K5e(e,t,n){var r=t(e);return q5e(e)?r:G5e(r,n(e))}var Y5e=K5e;function X5e(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var Q5e=X5e;function J5e(){return[]}var Z5e=J5e,eHe=Q5e,tHe=Z5e,nHe=Object.prototype,rHe=nHe.propertyIsEnumerable,FW=Object.getOwnPropertySymbols,oHe=FW?function(e){return e==null?[]:(e=Object(e),eHe(FW(e),function(t){return rHe.call(e,t)}))}:tHe,iHe=oHe;function aHe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sHe=aHe,lHe=pd,cHe=hd,uHe="[object Arguments]";function dHe(e){return cHe(e)&&lHe(e)==uHe}var fHe=dHe,jW=fHe,pHe=hd,qte=Object.prototype,hHe=qte.hasOwnProperty,mHe=qte.propertyIsEnumerable,gHe=jW(function(){return arguments}())?jW:function(e){return pHe(e)&&hHe.call(e,"callee")&&!mHe.call(e,"callee")},Zj=gHe,dT={exports:{}};function yHe(){return!1}var vHe=yHe;dT.exports;(function(e,t){var n=Qc,r=vHe,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(dT,dT.exports);var Kte=dT.exports,bHe=9007199254740991,wHe=/^(?:0|[1-9]\d*)$/;function xHe(e,t){var n=typeof e;return t=t??bHe,!!t&&(n=="number"||n!="symbol"&&wHe.test(e))&&e>-1&&e%1==0&&e<t}var eB=xHe,SHe=9007199254740991;function CHe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SHe}var tB=CHe,PHe=pd,EHe=tB,THe=hd,OHe="[object Arguments]",IHe="[object Array]",kHe="[object Boolean]",MHe="[object Date]",AHe="[object Error]",$He="[object Function]",RHe="[object Map]",DHe="[object Number]",_He="[object Object]",LHe="[object RegExp]",NHe="[object Set]",FHe="[object String]",jHe="[object WeakMap]",BHe="[object ArrayBuffer]",zHe="[object DataView]",VHe="[object Float32Array]",HHe="[object Float64Array]",UHe="[object Int8Array]",WHe="[object Int16Array]",GHe="[object Int32Array]",qHe="[object Uint8Array]",KHe="[object Uint8ClampedArray]",YHe="[object Uint16Array]",XHe="[object Uint32Array]",Or={};Or[VHe]=Or[HHe]=Or[UHe]=Or[WHe]=Or[GHe]=Or[qHe]=Or[KHe]=Or[YHe]=Or[XHe]=!0;Or[OHe]=Or[IHe]=Or[BHe]=Or[kHe]=Or[zHe]=Or[MHe]=Or[AHe]=Or[$He]=Or[RHe]=Or[DHe]=Or[_He]=Or[LHe]=Or[NHe]=Or[FHe]=Or[jHe]=!1;function QHe(e){return THe(e)&&EHe(e.length)&&!!Or[PHe(e)]}var JHe=QHe;function ZHe(e){return function(t){return e(t)}}var Yte=ZHe,fT={exports:{}};fT.exports;(function(e,t){var n=nte,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(fT,fT.exports);var e4e=fT.exports,t4e=JHe,n4e=Yte,BW=e4e,zW=BW&&BW.isTypedArray,r4e=zW?n4e(zW):t4e,Xte=r4e,o4e=sHe,i4e=Zj,a4e=Ta,s4e=Kte,l4e=eB,c4e=Xte,u4e=Object.prototype,d4e=u4e.hasOwnProperty;function f4e(e,t){var n=a4e(e),r=!n&&i4e(e),o=!n&&!r&&s4e(e),i=!n&&!r&&!o&&c4e(e),a=n||r||o||i,s=a?o4e(e.length,String):[],l=s.length;for(var c in e)(t||d4e.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||l4e(c,l)))&&s.push(c);return s}var p4e=f4e,h4e=Object.prototype;function m4e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||h4e;return e===n}var g4e=m4e;function y4e(e,t){return function(n){return e(t(n))}}var Qte=y4e,v4e=Qte,b4e=v4e(Object.keys,Object),w4e=b4e,x4e=g4e,S4e=w4e,C4e=Object.prototype,P4e=C4e.hasOwnProperty;function E4e(e){if(!x4e(e))return S4e(e);var t=[];for(var n in Object(e))P4e.call(e,n)&&n!="constructor"&&t.push(n);return t}var T4e=E4e,O4e=Nj,I4e=tB;function k4e(e){return e!=null&&I4e(e.length)&&!O4e(e)}var GS=k4e,M4e=p4e,A4e=T4e,$4e=GS;function R4e(e){return $4e(e)?M4e(e):A4e(e)}var hk=R4e,D4e=Y5e,_4e=iHe,L4e=hk;function N4e(e){return D4e(e,L4e,_4e)}var F4e=N4e,VW=F4e,j4e=1,B4e=Object.prototype,z4e=B4e.hasOwnProperty;function V4e(e,t,n,r,o,i){var a=n&j4e,s=VW(e),l=s.length,c=VW(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:z4e.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,i):r(b,x,f,e,t,i);if(!(S===void 0?b===x||o(b,x,n,r,i):S)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var P=e.constructor,E=t.constructor;P!=E&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(e),i.delete(t),g}var H4e=V4e,U4e=em,W4e=Qc,G4e=U4e(W4e,"DataView"),q4e=G4e,K4e=em,Y4e=Qc,X4e=K4e(Y4e,"Promise"),Q4e=X4e,J4e=em,Z4e=Qc,e3e=J4e(Z4e,"Set"),Jte=e3e,t3e=em,n3e=Qc,r3e=t3e(n3e,"WeakMap"),o3e=r3e,p_=q4e,h_=jj,m_=Q4e,g_=Jte,y_=o3e,Zte=pd,sb=ote,HW="[object Map]",i3e="[object Object]",UW="[object Promise]",WW="[object Set]",GW="[object WeakMap]",qW="[object DataView]",a3e=sb(p_),s3e=sb(h_),l3e=sb(m_),c3e=sb(g_),u3e=sb(y_),jp=Zte;(p_&&jp(new p_(new ArrayBuffer(1)))!=qW||h_&&jp(new h_)!=HW||m_&&jp(m_.resolve())!=UW||g_&&jp(new g_)!=WW||y_&&jp(new y_)!=GW)&&(jp=function(e){var t=Zte(e),n=t==i3e?e.constructor:void 0,r=n?sb(n):"";if(r)switch(r){case a3e:return qW;case s3e:return HW;case l3e:return UW;case c3e:return WW;case u3e:return GW}return t});var d3e=jp,Z$=zte,f3e=Wte,p3e=U5e,h3e=H4e,KW=d3e,YW=Ta,XW=Kte,m3e=Xte,g3e=1,QW="[object Arguments]",JW="[object Array]",YC="[object Object]",y3e=Object.prototype,ZW=y3e.hasOwnProperty;function v3e(e,t,n,r,o,i){var a=YW(e),s=YW(t),l=a?JW:KW(e),c=s?JW:KW(t);l=l==QW?YC:l,c=c==QW?YC:c;var u=l==YC,d=c==YC,f=l==c;if(f&&XW(e)){if(!XW(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Z$),a||m3e(e)?f3e(e,t,n,r,o,i):p3e(e,t,l,n,r,o,i);if(!(n&g3e)){var p=u&&ZW.call(e,"__wrapped__"),m=d&&ZW.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,y=m?t.value():t;return i||(i=new Z$),o(g,y,n,r,i)}}return f?(i||(i=new Z$),h3e(e,t,n,r,o,i)):!1}var b3e=v3e,w3e=b3e,e6=hd;function ene(e,t,n,r,o){return e===t?!0:e==null||t==null||!e6(e)&&!e6(t)?e!==e&&t!==t:w3e(e,t,n,r,ene,o)}var nB=ene,x3e=zte,S3e=nB,C3e=1,P3e=2;function E3e(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new x3e;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?S3e(u,c,C3e|P3e,r,d):f))return!1}}return!0}var T3e=E3e,O3e=Qf;function I3e(e){return e===e&&!O3e(e)}var tne=I3e,k3e=tne,M3e=hk;function A3e(e){for(var t=M3e(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,k3e(o)]}return t}var $3e=A3e;function R3e(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var nne=R3e,D3e=T3e,_3e=$3e,L3e=nne;function N3e(e){var t=_3e(e);return t.length==1&&t[0][2]?L3e(t[0][0],t[0][1]):function(n){return n===e||D3e(n,e,t)}}var F3e=N3e;function j3e(e,t){return e!=null&&t in Object(e)}var B3e=j3e,z3e=cte,V3e=Zj,H3e=Ta,U3e=eB,W3e=tB,G3e=JI;function q3e(e,t,n){t=z3e(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=G3e(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&W3e(o)&&U3e(a,o)&&(H3e(e)||V3e(e)))}var K3e=q3e,Y3e=B3e,X3e=K3e;function Q3e(e,t){return e!=null&&X3e(e,t,Y3e)}var J3e=Q3e,Z3e=nB,eUe=ute,tUe=J3e,nUe=Lj,rUe=tne,oUe=nne,iUe=JI,aUe=1,sUe=2;function lUe(e,t){return nUe(e)&&rUe(t)?oUe(iUe(e),t):function(n){var r=eUe(n,e);return r===void 0&&r===t?tUe(n,e):Z3e(t,r,aUe|sUe)}}var cUe=lUe;function uUe(e){return e}var lb=uUe;function dUe(e){return function(t){return t==null?void 0:t[e]}}var fUe=dUe,pUe=Hj;function hUe(e){return function(t){return pUe(t,e)}}var mUe=hUe,gUe=fUe,yUe=mUe,vUe=Lj,bUe=JI;function wUe(e){return vUe(e)?gUe(bUe(e)):yUe(e)}var xUe=wUe,SUe=F3e,CUe=cUe,PUe=lb,EUe=Ta,TUe=xUe;function OUe(e){return typeof e=="function"?e:e==null?PUe:typeof e=="object"?EUe(e)?CUe(e[0],e[1]):SUe(e):TUe(e)}var Jc=OUe;function IUe(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var rne=IUe;function kUe(e){return e!==e}var MUe=kUe;function AUe(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var $Ue=AUe,RUe=rne,DUe=MUe,_Ue=$Ue;function LUe(e,t,n){return t===t?_Ue(e,t,n):RUe(e,DUe,n)}var NUe=LUe,FUe=NUe;function jUe(e,t){var n=e==null?0:e.length;return!!n&&FUe(e,t,0)>-1}var BUe=jUe;function zUe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var VUe=zUe;function HUe(){}var UUe=HUe,eR=Jte,WUe=UUe,GUe=Jj,qUe=1/0,KUe=eR&&1/GUe(new eR([,-0]))[1]==qUe?function(e){return new eR(e)}:WUe,YUe=KUe,XUe=Vte,QUe=BUe,JUe=VUe,ZUe=Ute,eWe=YUe,tWe=Jj,nWe=200;function rWe(e,t,n){var r=-1,o=QUe,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=JUe;else if(i>=nWe){var c=t?null:eWe(e);if(c)return tWe(c);a=!1,o=ZUe,l=new XUe}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var oWe=rWe,iWe=Jc,aWe=oWe;function sWe(e,t){return e&&e.length?aWe(e,iWe(t)):[]}var lWe=sWe;const t6=jn(lWe);function one(e,t,n){return t===!0?t6(e,n):Ut(t)?t6(e,t):e}function Qy(e){"@babel/helpers - typeof";return Qy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qy(e)}var cWe=["ref"];function n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n6(Object(n),!0).forEach(function(r){mk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uWe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ane(r.key),r)}}function dWe(e,t,n){return t&&r6(e.prototype,t),n&&r6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fWe(e,t,n){return t=pT(t),pWe(e,ine()?Reflect.construct(t,n||[],pT(e).constructor):t.apply(e,n))}function pWe(e,t){if(t&&(Qy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hWe(e)}function hWe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ine(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ine=function(){return!!e})()}function pT(e){return pT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pT(e)}function mWe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v_(e,t)}function v_(e,t){return v_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v_(e,t)}function mk(e,t,n){return t=ane(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ane(e){var t=gWe(e,"string");return Qy(t)=="symbol"?t:t+""}function gWe(e,t){if(Qy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yWe(e,t){if(e==null)return{};var n=vWe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vWe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bWe(e){return e.value}function wWe(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=yWe(t,cWe);return Y.createElement(Qj,n)}var o6=1,Nu=function(e){function t(){var n;uWe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=fWe(this,t,[].concat(o)),mk(n,"lastBoundingBox",{width:-1,height:-1}),n}return mWe(t,e),dWe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>o6||Math.abs(o.height-this.lastBoundingBox.height)>o6)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,u=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();d={left:((c||0)-p.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();f={top:((u||0)-m.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return yu(yu({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,u=o.payload,d=yu(yu({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return Y.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},wWe(i,yu(yu({},this.props),{},{payload:one(u,c,bWe)})))}}],[{key:"getWithHeight",value:function(r,o){var i=yu(yu({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&at(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(v.PureComponent);mk(Nu,"displayName","Legend");mk(Nu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var i6=US,xWe=Zj,SWe=Ta,a6=i6?i6.isConcatSpreadable:void 0;function CWe(e){return SWe(e)||xWe(e)||!!(a6&&e&&e[a6])}var PWe=CWe,EWe=Gte,TWe=PWe;function sne(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=TWe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?sne(s,t-1,n,r,o):EWe(o,s):r||(o[o.length]=s)}return o}var lne=sne;function OWe(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var IWe=OWe,kWe=IWe,MWe=kWe(),AWe=MWe,$We=AWe,RWe=hk;function DWe(e,t){return e&&$We(e,t,RWe)}var cne=DWe,_We=GS;function LWe(e,t){return function(n,r){if(n==null)return n;if(!_We(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var NWe=LWe,FWe=cne,jWe=NWe,BWe=jWe(FWe),rB=BWe,zWe=rB,VWe=GS;function HWe(e,t){var n=-1,r=VWe(e)?Array(e.length):[];return zWe(e,function(o,i,a){r[++n]=t(o,i,a)}),r}var une=HWe;function UWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var WWe=UWe,s6=eb;function GWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=s6(e),a=t!==void 0,s=t===null,l=t===t,c=s6(t);if(!s&&!c&&!i&&e>t||i&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}var qWe=GWe,KWe=qWe;function YWe(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=KWe(o[r],i[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var XWe=YWe,tR=Vj,QWe=Hj,JWe=Jc,ZWe=une,e6e=WWe,t6e=Yte,n6e=XWe,r6e=lb,o6e=Ta;function i6e(e,t,n){t.length?t=tR(t,function(i){return o6e(i)?function(a){return QWe(a,i.length===1?i[0]:i)}:i}):t=[r6e];var r=-1;t=tR(t,t6e(JWe));var o=ZWe(e,function(i,a,s){var l=tR(t,function(c){return c(i)});return{criteria:l,index:++r,value:i}});return e6e(o,function(i,a){return n6e(i,a,n)})}var a6e=i6e;function s6e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var l6e=s6e,c6e=l6e,l6=Math.max;function u6e(e,t,n){return t=l6(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=l6(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),c6e(e,this,s)}}var d6e=u6e;function f6e(e){return function(){return e}}var p6e=f6e,h6e=em,m6e=function(){try{var e=h6e(Object,"defineProperty");return e({},"",{}),e}catch{}}(),dne=m6e,g6e=p6e,c6=dne,y6e=lb,v6e=c6?function(e,t){return c6(e,"toString",{configurable:!0,enumerable:!1,value:g6e(t),writable:!0})}:y6e,b6e=v6e,w6e=800,x6e=16,S6e=Date.now;function C6e(e){var t=0,n=0;return function(){var r=S6e(),o=x6e-(r-n);if(n=r,o>0){if(++t>=w6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var P6e=C6e,E6e=b6e,T6e=P6e,O6e=T6e(E6e),I6e=O6e,k6e=lb,M6e=d6e,A6e=I6e;function $6e(e,t){return A6e(M6e(e,t,k6e),e+"")}var R6e=$6e,D6e=Fj,_6e=GS,L6e=eB,N6e=Qf;function F6e(e,t,n){if(!N6e(n))return!1;var r=typeof t;return(r=="number"?_6e(n)&&L6e(t,n.length):r=="string"&&t in n)?D6e(n[t],e):!1}var gk=F6e,j6e=lne,B6e=a6e,z6e=R6e,u6=gk,V6e=z6e(function(e,t){if(e==null)return[];var n=t.length;return n>1&&u6(e,t[0],t[1])?t=[]:n>2&&u6(t[0],t[1],t[2])&&(t=[t[0]]),B6e(e,j6e(t,1),[])}),H6e=V6e;const oB=jn(H6e);function yx(e){"@babel/helpers - typeof";return yx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yx(e)}function b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b_.apply(this,arguments)}function U6e(e,t){return K6e(e)||q6e(e,t)||G6e(e,t)||W6e()}function W6e(){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 G6e(e,t){if(e){if(typeof e=="string")return d6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d6(e,t)}}function d6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function K6e(e){if(Array.isArray(e))return e}function f6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f6(Object(n),!0).forEach(function(r){Y6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y6e(e,t,n){return t=X6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X6e(e){var t=Q6e(e,"string");return yx(t)=="symbol"?t:t+""}function Q6e(e,t){if(yx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J6e(e){return Array.isArray(e)&&_o(e[0])&&_o(e[1])?e.join(" ~ "):e}var Z6e=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,i=o===void 0?{}:o,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,d=t.formatter,f=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,y=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,S=function(){if(u&&u.length){var _={padding:0,margin:0},L=(f?oB(u,f):u).map(function(j,N){if(j.type==="none")return null;var F=nR({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),U=j.formatter||d||J6e,z=j.value,V=j.name,W=z,G=V;if(U&&W!=null&&G!=null){var J=U(z,V,j,N,u);if(Array.isArray(J)){var K=U6e(J,2);W=K[0],G=K[1]}else W=J}return Y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:F},_o(G)?Y.createElement("span",{className:"recharts-tooltip-item-name"},G):null,_o(G)?Y.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Y.createElement("span",{className:"recharts-tooltip-item-value"},W),Y.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return Y.createElement("ul",{className:"recharts-tooltip-item-list",style:_},L)}return null},P=nR({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=nR({margin:0},c),T=!zt(g),O=T?g:"",k=pe("recharts-default-tooltip",p),M=pe("recharts-tooltip-label",m);T&&y&&u!==void 0&&u!==null&&(O=y(g,u));var I=x?{role:"status","aria-live":"assertive"}:{};return Y.createElement("div",b_({className:k,style:P},I),Y.createElement("p",{className:M,style:E},Y.isValidElement(O)?O:"".concat(O)),S())};function vx(e){"@babel/helpers - typeof";return vx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vx(e)}function XC(e,t,n){return t=eGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eGe(e){var t=tGe(e,"string");return vx(t)=="symbol"?t:t+""}function tGe(e,t){if(vx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b0="recharts-tooltip-wrapper",nGe={visibility:"hidden"};function rGe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return pe(b0,XC(XC(XC(XC({},"".concat(b0,"-right"),at(n)&&t&&at(t.x)&&n>=t.x),"".concat(b0,"-left"),at(n)&&t&&at(t.x)&&n<t.x),"".concat(b0,"-bottom"),at(r)&&t&&at(t.y)&&r>=t.y),"".concat(b0,"-top"),at(r)&&t&&at(t.y)&&r<t.y))}function p6(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&at(i[r]))return i[r];var u=n[r]-s-o,d=n[r]+o;if(t[r])return a[r]?u:d;if(a[r]){var f=u,p=l[r];return f<p?Math.max(d,l[r]):Math.max(u,l[r])}var m=d+s,g=l[r]+c;return m>g?Math.max(u,l[r]):Math.max(d,l[r])}function oGe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function iGe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,d;return a.height>0&&a.width>0&&n?(u=p6({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=p6({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=oGe({translateX:u,translateY:d,useTranslate3d:s})):c=nGe,{cssProperties:c,cssClasses:rGe({translateX:u,translateY:d,coordinate:n})}}function Jy(e){"@babel/helpers - typeof";return Jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jy(e)}function h6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function m6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h6(Object(n),!0).forEach(function(r){x_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aGe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sGe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pne(r.key),r)}}function lGe(e,t,n){return t&&sGe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cGe(e,t,n){return t=hT(t),uGe(e,fne()?Reflect.construct(t,n||[],hT(e).constructor):t.apply(e,n))}function uGe(e,t){if(t&&(Jy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dGe(e)}function dGe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fne=function(){return!!e})()}function hT(e){return hT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hT(e)}function fGe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w_(e,t)}function w_(e,t){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},w_(e,t)}function x_(e,t,n){return t=pne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pne(e){var t=pGe(e,"string");return Jy(t)=="symbol"?t:t+""}function pGe(e,t){if(Jy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g6=1,hGe=function(e){function t(){var n;aGe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=cGe(this,t,[].concat(o)),x_(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),x_(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,c,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),n}return fGe(t,e),lGe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>g6||Math.abs(r.height-this.state.lastBoundingBox.height)>g6)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,u=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,p=o.offset,m=o.position,g=o.reverseDirection,y=o.useTranslate3d,b=o.viewBox,x=o.wrapperStyle,S=iGe({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}),P=S.cssClasses,E=S.cssProperties,T=m6(m6({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return Y.createElement("div",{tabIndex:-1,className:P,style:T,ref:function(k){r.wrapperNode=k}},c)}}])}(v.PureComponent),mGe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},rl={isSsr:mGe(),get:function(t){return rl[t]},set:function(t,n){if(typeof t=="string")rl[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(o){rl[o]=t[o]})}}};function Zy(e){"@babel/helpers - typeof";return Zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zy(e)}function y6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function v6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y6(Object(n),!0).forEach(function(r){iB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gGe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yGe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mne(r.key),r)}}function vGe(e,t,n){return t&&yGe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bGe(e,t,n){return t=mT(t),wGe(e,hne()?Reflect.construct(t,n||[],mT(e).constructor):t.apply(e,n))}function wGe(e,t){if(t&&(Zy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xGe(e)}function xGe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hne=function(){return!!e})()}function mT(e){return mT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mT(e)}function SGe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S_(e,t)}function S_(e,t){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},S_(e,t)}function iB(e,t,n){return t=mne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mne(e){var t=CGe(e,"string");return Zy(t)=="symbol"?t:t+""}function CGe(e,t){if(Zy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PGe(e){return e.dataKey}function EGe(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(Z6e,t)}var Wa=function(e){function t(){return gGe(this,t),bGe(this,t,arguments)}return SGe(t,e),vGe(t,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.content,u=o.coordinate,d=o.filterNull,f=o.isAnimationActive,p=o.offset,m=o.payload,g=o.payloadUniqBy,y=o.position,b=o.reverseDirection,x=o.useTranslate3d,S=o.viewBox,P=o.wrapperStyle,E=m??[];d&&E.length&&(E=one(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),g,PGe));var T=E.length>0;return Y.createElement(hGe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:u,hasPayload:T,offset:p,position:y,reverseDirection:b,useTranslate3d:x,viewBox:S,wrapperStyle:P},EGe(c,v6(v6({},this.props),{},{payload:E})))}}])}(v.PureComponent);iB(Wa,"displayName","Tooltip");iB(Wa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!rl.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var TGe=Qc,OGe=function(){return TGe.Date.now()},IGe=OGe,kGe=/\s/;function MGe(e){for(var t=e.length;t--&&kGe.test(e.charAt(t)););return t}var AGe=MGe,$Ge=AGe,RGe=/^\s+/;function DGe(e){return e&&e.slice(0,$Ge(e)+1).replace(RGe,"")}var _Ge=DGe,LGe=_Ge,b6=Qf,NGe=eb,w6=NaN,FGe=/^[-+]0x[0-9a-f]+$/i,jGe=/^0b[01]+$/i,BGe=/^0o[0-7]+$/i,zGe=parseInt;function VGe(e){if(typeof e=="number")return e;if(NGe(e))return w6;if(b6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=b6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LGe(e);var n=jGe.test(e);return n||BGe.test(e)?zGe(e.slice(2),n?2:8):FGe.test(e)?w6:+e}var gne=VGe,HGe=Qf,rR=IGe,x6=gne,UGe="Expected a function",WGe=Math.max,GGe=Math.min;function qGe(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(UGe);t=x6(t)||0,HGe(n)&&(u=!!n.leading,d="maxWait"in n,i=d?WGe(x6(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(T){var O=r,k=o;return r=o=void 0,c=T,a=e.apply(k,O),a}function m(T){return c=T,s=setTimeout(b,t),u?p(T):a}function g(T){var O=T-l,k=T-c,M=t-O;return d?GGe(M,i-k):M}function y(T){var O=T-l,k=T-c;return l===void 0||O>=t||O<0||d&&k>=i}function b(){var T=rR();if(y(T))return x(T);s=setTimeout(b,g(T))}function x(T){return s=void 0,f&&r?p(T):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function P(){return s===void 0?a:x(rR())}function E(){var T=rR(),O=y(T);if(r=arguments,o=this,l=T,O){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=S,E.flush=P,E}var KGe=qGe,YGe=KGe,XGe=Qf,QGe="Expected a function";function JGe(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(QGe);return XGe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),YGe(e,t,{leading:r,maxWait:t,trailing:o})}var ZGe=JGe;const yk=jn(ZGe);function bx(e){"@babel/helpers - typeof";return bx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bx(e)}function S6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(n),!0).forEach(function(r){e8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e8e(e,t,n){return t=t8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t8e(e){var t=n8e(e,"string");return bx(t)=="symbol"?t:t+""}function n8e(e,t){if(bx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r8e(e,t){return s8e(e)||a8e(e,t)||i8e(e,t)||o8e()}function o8e(){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 i8e(e,t){if(e){if(typeof e=="string")return C6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C6(e,t)}}function C6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function s8e(e){if(Array.isArray(e))return e}var Zf=v.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=e.width,a=i===void 0?"100%":i,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,y=e.id,b=e.className,x=e.onResize,S=e.style,P=S===void 0?{}:S,E=v.useRef(null),T=v.useRef();T.current=x,v.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var O=v.useState({containerWidth:o.width,containerHeight:o.height}),k=r8e(O,2),M=k[0],I=k[1],R=v.useCallback(function(L,j){I(function(N){var F=Math.round(L),U=Math.round(j);return N.containerWidth===F&&N.containerHeight===U?N:{containerWidth:F,containerHeight:U}})},[]);v.useEffect(function(){var L=function(V){var W,G=V[0].contentRect,J=G.width,K=G.height;R(J,K),(W=T.current)===null||W===void 0||W.call(T,J,K)};g>0&&(L=yk(L,g,{trailing:!0,leading:!1}));var j=new ResizeObserver(L),N=E.current.getBoundingClientRect(),F=N.width,U=N.height;return R(F,U),j.observe(E.current),function(){j.disconnect()}},[R,g]);var _=v.useMemo(function(){var L=M.containerWidth,j=M.containerHeight;if(L<0||j<0)return null;Zl(Qp(a)||Qp(l),`The width(%s) and height(%s) are both fixed numbers,
+ maybe you don't need to use a ResponsiveContainer.`,a,l),Zl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var N=Qp(a)?L:a,F=Qp(l)?j:l;n&&n>0&&(N?F=N/n:F&&(N=F*n),f&&F>f&&(F=f)),Zl(N>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,L,F,a,l,u,d,n);var U=!Array.isArray(p)&&Cu(p.type).endsWith("Chart");return Y.Children.map(p,function(V){return Y.isValidElement(V)?v.cloneElement(V,OC({width:L,height:F},U?{style:OC({height:"100%",width:"100%",maxHeight:F,maxWidth:L},V.props.style)}:{})):V})},[n,p,l,f,d,u,M,a]);return Y.createElement("div",{id:y?"".concat(y):void 0,className:pe("recharts-responsive-container",b),style:OC(OC({},P),{},{width:a,height:l,minWidth:u,minHeight:d,maxHeight:f}),ref:E},_)}),zv=function(t){return null};zv.displayName="Cell";function Xw(e){"@babel/helpers - typeof";return Xw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xw(e)}function LW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function zD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LW(Object(n),!0).forEach(function(r){J6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J6e(e,t,n){return t=Z6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6e(e){var t=eGe(e,"string");return Xw(t)=="symbol"?t:t+""}function eGe(e,t){if(Xw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $m={widthCache:{},cacheCount:0},tGe=2e3,nGe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},NW="recharts_measurement_span";function rGe(e){var t=zD({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Z0=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ks.isSsr)return{width:0,height:0};var r=rGe(n),o=JSON.stringify({text:t,copyStyle:r});if($m.widthCache[o])return $m.widthCache[o];try{var i=document.getElementById(NW);i||(i=document.createElement("span"),i.setAttribute("id",NW),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=zD(zD({},nGe),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return $m.widthCache[o]=l,++$m.cacheCount>tGe&&($m.cacheCount=0,$m.widthCache={}),l}catch{return{width:0,height:0}}},oGe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Qw(e){"@babel/helpers - typeof";return Qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qw(e)}function UE(e,t){return lGe(e)||sGe(e,t)||aGe(e,t)||iGe()}function iGe(){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 aGe(e,t){if(e){if(typeof e=="string")return FW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FW(e,t)}}function FW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sGe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function lGe(e){if(Array.isArray(e))return e}function cGe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dGe(r.key),r)}}function uGe(e,t,n){return t&&jW(e.prototype,t),n&&jW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dGe(e){var t=fGe(e,"string");return Qw(t)=="symbol"?t:t+""}function fGe(e,t){if(Qw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BW=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zW=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pGe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hGe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,gte={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mGe=Object.keys(gte),vg="NaN";function gGe(e,t){return e*gte[t]}var IC=function(){function e(t,n){cGe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!pGe.test(n)&&(this.num=NaN,this.unit=""),mGe.includes(n)&&(this.num=gGe(t,n),this.unit="px")}return uGe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,o=(r=hGe.exec(n))!==null&&r!==void 0?r:[],i=UE(o,3),a=i[1],s=i[2];return new e(parseFloat(a),s??"")}}])}();function yte(e){if(e.includes(vg))return vg;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=BW.exec(t))!==null&&n!==void 0?n:[],o=UE(r,4),i=o[1],a=o[2],s=o[3],l=IC.parse(i??""),c=IC.parse(s??""),u=a==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return vg;t=t.replace(BW,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,f=(d=zW.exec(t))!==null&&d!==void 0?d:[],p=UE(f,4),m=p[1],g=p[2],y=p[3],b=IC.parse(m??""),x=IC.parse(y??""),S=g==="+"?b.add(x):b.subtract(x);if(S.isNaN())return vg;t=t.replace(zW,S.toString())}return t}var VW=/\(([^()]*)\)/;function yGe(e){for(var t=e;t.includes("(");){var n=VW.exec(t),r=UE(n,2),o=r[1];t=t.replace(VW,yte(o))}return t}function vGe(e){var t=e.replace(/\s+/g,"");return t=yGe(t),t=yte(t),t}function bGe(e){try{return vGe(e)}catch{return vg}}function S$(e){var t=bGe(e.slice(5,-1));return t===vg?"":t}var wGe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],xGe=["dx","dy","angle","className","breakAll"];function VD(){return VD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VD.apply(this,arguments)}function HW(e,t){if(e==null)return{};var n=SGe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SGe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UW(e,t){return TGe(e)||EGe(e,t)||PGe(e,t)||CGe()}function CGe(){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 PGe(e,t){if(e){if(typeof e=="string")return WW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WW(e,t)}}function WW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EGe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function TGe(e){if(Array.isArray(e))return e}var vte=/[ \f\n\r\t\v\u2028\u2029]+/,bte=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var i=[];Bt(n)||(r?i=n.toString().split(""):i=n.toString().split(vte));var a=i.map(function(l){return{word:l,width:Z0(l,o).width}}),s=r?0:Z0(" ",o).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},OGe=function(t,n,r,o,i){var a=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=at(a),d=s,f=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return L.reduce(function(F,U){var V=U.word,z=U.width,W=F[F.length-1];if(W&&(o==null||i||W.width+z+r<Number(o)))W.words.push(V),W.width+=z+r;else{var G={words:[V],width:z};F.push(G)}return F},[])},p=f(n),m=function(L){return L.reduce(function(F,U){return F.width>U.width?F:U})};if(!u)return p;for(var g="…",y=function(L){var F=d.slice(0,L),U=bte({breakAll:c,style:l,children:F+g}).wordsWithComputedWidth,V=f(U),z=V.length>a||m(V).width>Number(o);return[z,V]},b=0,x=d.length-1,S=0,P;b<=x&&S<=d.length-1;){var E=Math.floor((b+x)/2),T=E-1,O=y(T),k=UW(O,2),M=k[0],I=k[1],R=y(E),_=UW(R,1),N=_[0];if(!M&&!N&&(b=E+1),M&&N&&(x=E-1),!M&&N){P=I;break}S++}return P||p},GW=function(t){var n=Bt(t)?[]:t.toString().split(vte);return[{words:n}]},IGe=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Ks.isSsr){var l,c,u=bte({breakAll:a,children:o,style:i});if(u){var d=u.wordsWithComputedWidth,f=u.spaceWidth;l=d,c=f}else return GW(o);return OGe({breakAll:a,children:o,maxLines:s,style:i},l,c,n,r)}return GW(o)},qW="#808080",bh=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,d=u===void 0?!1:u,f=t.textAnchor,p=f===void 0?"start":f,m=t.verticalAnchor,g=m===void 0?"end":m,y=t.fill,b=y===void 0?qW:y,x=HW(t,wGe),S=v.useMemo(function(){return IGe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),P=x.dx,E=x.dy,T=x.angle,O=x.className,k=x.breakAll,M=HW(x,xGe);if(!Mo(r)||!Mo(i))return null;var I=r+(at(P)?P:0),R=i+(at(E)?E:0),_;switch(g){case"start":_=S$("calc(".concat(c,")"));break;case"middle":_=S$("calc(".concat((S.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:_=S$("calc(".concat(S.length-1," * -").concat(s,")"));break}var N=[];if(d){var B=S[0].width,L=x.width;N.push("scale(".concat((at(L)?L/B:1)/B,")"))}return T&&N.push("rotate(".concat(T,", ").concat(I,", ").concat(R,")")),N.length&&(M.transform=N.join(" ")),Y.createElement("text",VD({},At(M,!0),{x:I,y:R,className:pe("recharts-text",O),textAnchor:p,fill:b.includes("url")?qW:b}),S.map(function(F,U){var V=F.words.join(k?"":" ");return Y.createElement("tspan",{x:I,dy:U===0?_:s,key:"".concat(V,"-").concat(U)},V)}))};function uf(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kGe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Sj(e){let t,n,r;e.length!==2?(t=uf,n=(s,l)=>uf(e(s),l),r=(s,l)=>e(s)-l):(t=e===uf||e===kGe?e:MGe,n=e,r=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function MGe(){return 0}function wte(e){return e===null?NaN:+e}function*AGe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $Ge=Sj(uf),ES=$Ge.right;Sj(wte).center;class KW extends Map{constructor(t,n=_Ge){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(YW(this,t))}has(t){return super.has(YW(this,t))}set(t,n){return super.set(RGe(this,t),n)}delete(t){return super.delete(DGe(this,t))}}function YW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function RGe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function DGe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _Ge(e){return e!==null&&typeof e=="object"?e.valueOf():e}function LGe(e=uf){if(e===uf)return xte;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function xte(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const NGe=Math.sqrt(50),FGe=Math.sqrt(10),jGe=Math.sqrt(2);function WE(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=NGe?10:i>=FGe?5:i>=jGe?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?WE(e,t,n*2):[s,l,c]}function HD(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?WE(t,e,n):WE(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function UD(e,t,n){return t=+t,e=+e,n=+n,WE(e,t,n)[2]}function WD(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?UD(t,e,n):UD(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function XW(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function QW(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Ste(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?xte:LGe(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+f)),m=Math.min(r,Math.floor(t+(l-c)*d/l+f));Ste(e,t,p,m,o)}const i=e[t];let a=n,s=r;for(Xb(e,n,t),o(e[r],i)>0&&Xb(e,n,r);a<s;){for(Xb(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?Xb(e,n,s):(++s,Xb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Xb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function BGe(e,t,n){if(e=Float64Array.from(AGe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return QW(e);if(t>=1)return XW(e);var r,o=(r-1)*t,i=Math.floor(o),a=XW(Ste(e,i).subarray(0,i+1)),s=QW(e.subarray(i+1));return a+(s-a)*(o-i)}}function zGe(e,t,n=wte){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function VGe(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function al(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function td(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const GD=Symbol("implicit");function Cj(){var e=new KW,t=[],n=[],r=GD;function o(i){let a=e.get(i);if(a===void 0){if(r!==GD)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new KW;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Cj(t,n).unknown(r)},al.apply(o,arguments),o}function Jw(){var e=Cj().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=o<r,m=p?o:r,g=p?r:o;i=(g-m)/Math.max(1,f-l+c*2),s&&(i=Math.floor(i)),m+=(g-m-i*(f-l))*u,a=i*(1-l),s&&(m=Math.round(m),a=Math.round(a));var y=VGe(f).map(function(b){return m+i*b});return n(p?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,o]=f,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(f){return[r,o]=f,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Jw(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},al.apply(d(),arguments)}function Cte(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Cte(t())},e}function ew(){return Cte(Jw.apply(null,arguments).paddingInner(1))}function Pj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pte(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function TS(){}var Zw=.7,GE=1/Zw,Ug="\\s*([+-]?\\d+)\\s*",ex="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ic="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HGe=/^#([0-9a-f]{3,8})$/,UGe=new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`),WGe=new RegExp(`^rgb\\(${Ic},${Ic},${Ic}\\)$`),GGe=new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${ex}\\)$`),qGe=new RegExp(`^rgba\\(${Ic},${Ic},${Ic},${ex}\\)$`),KGe=new RegExp(`^hsl\\(${ex},${Ic},${Ic}\\)$`),YGe=new RegExp(`^hsla\\(${ex},${Ic},${Ic},${ex}\\)$`),JW={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Pj(TS,tx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZW,formatHex:ZW,formatHex8:XGe,formatHsl:QGe,formatRgb:e6,toString:e6});function ZW(){return this.rgb().formatHex()}function XGe(){return this.rgb().formatHex8()}function QGe(){return Ete(this).formatHsl()}function e6(){return this.rgb().formatRgb()}function tx(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=HGe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?t6(t):n===3?new ua(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=UGe.exec(e))?new ua(t[1],t[2],t[3],1):(t=WGe.exec(e))?new ua(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GGe.exec(e))?kC(t[1],t[2],t[3],t[4]):(t=qGe.exec(e))?kC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=KGe.exec(e))?o6(t[1],t[2]/100,t[3]/100,1):(t=YGe.exec(e))?o6(t[1],t[2]/100,t[3]/100,t[4]):JW.hasOwnProperty(e)?t6(JW[e]):e==="transparent"?new ua(NaN,NaN,NaN,0):null}function t6(e){return new ua(e>>16&255,e>>8&255,e&255,1)}function kC(e,t,n,r){return r<=0&&(e=t=n=NaN),new ua(e,t,n,r)}function JGe(e){return e instanceof TS||(e=tx(e)),e?(e=e.rgb(),new ua(e.r,e.g,e.b,e.opacity)):new ua}function qD(e,t,n,r){return arguments.length===1?JGe(e):new ua(e,t,n,r??1)}function ua(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Pj(ua,qD,Pte(TS,{brighter(e){return e=e==null?GE:Math.pow(GE,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zw:Math.pow(Zw,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ua(Zp(this.r),Zp(this.g),Zp(this.b),qE(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:n6,formatHex:n6,formatHex8:ZGe,formatRgb:r6,toString:r6}));function n6(){return`#${_p(this.r)}${_p(this.g)}${_p(this.b)}`}function ZGe(){return`#${_p(this.r)}${_p(this.g)}${_p(this.b)}${_p((isNaN(this.opacity)?1:this.opacity)*255)}`}function r6(){const e=qE(this.opacity);return`${e===1?"rgb(":"rgba("}${Zp(this.r)}, ${Zp(this.g)}, ${Zp(this.b)}${e===1?")":`, ${e})`}`}function qE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _p(e){return e=Zp(e),(e<16?"0":"")+e.toString(16)}function o6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _l(e,t,n,r)}function Ete(e){if(e instanceof _l)return new _l(e.h,e.s,e.l,e.opacity);if(e instanceof TS||(e=tx(e)),!e)return new _l;if(e instanceof _l)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new _l(a,s,l,e.opacity)}function e8e(e,t,n,r){return arguments.length===1?Ete(e):new _l(e,t,n,r??1)}function _l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Pj(_l,e8e,Pte(TS,{brighter(e){return e=e==null?GE:Math.pow(GE,e),new _l(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zw:Math.pow(Zw,e),new _l(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ua(C$(e>=240?e-240:e+120,o,r),C$(e,o,r),C$(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _l(i6(this.h),MC(this.s),MC(this.l),qE(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qE(this.opacity);return`${e===1?"hsl(":"hsla("}${i6(this.h)}, ${MC(this.s)*100}%, ${MC(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i6(e){return e=(e||0)%360,e<0?e+360:e}function MC(e){return Math.max(0,Math.min(1,e||0))}function C$(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ej=e=>()=>e;function t8e(e,t){return function(n){return e+n*t}}function n8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function r8e(e){return(e=+e)==1?Tte:function(t,n){return n-t?n8e(t,n,e):Ej(isNaN(t)?n:t)}}function Tte(e,t){var n=t-e;return n?t8e(e,n):Ej(isNaN(e)?t:e)}const a6=function e(t){var n=r8e(t);function r(o,i){var a=n((o=qD(o)).r,(i=qD(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=Tte(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function o8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function i8e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function a8e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=Vv(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function s8e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function KE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function l8e(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Vv(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var KD=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P$=new RegExp(KD.source,"g");function c8e(e){return function(){return e}}function u8e(e){return function(t){return e(t)+""}}function d8e(e,t){var n=KD.lastIndex=P$.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=KD.exec(e))&&(o=P$.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:KE(r,o)})),n=P$.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?u8e(l[0].x):c8e(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Vv(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ej(t):(n==="number"?KE:n==="string"?(r=tx(t))?(t=r,a6):d8e:t instanceof tx?a6:t instanceof Date?s8e:i8e(t)?o8e:Array.isArray(t)?a8e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?l8e:KE)(e,t)}function Tj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function f8e(e,t){t===void 0&&(t=e,e=Vv);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function p8e(e){return function(){return e}}function YE(e){return+e}var s6=[0,1];function Fi(e){return e}function YD(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:p8e(isNaN(t)?NaN:.5)}function h8e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function m8e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=YD(o,r),i=n(a,i)):(r=YD(r,o),i=n(i,a)),function(s){return i(r(s))}}function g8e(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=YD(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var l=ES(e,s,1,r)-1;return i[l](o[l](s))}}function OS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function WI(){var e=s6,t=s6,n=Vv,r,o,i,a=Fi,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Fi&&(a=h8e(e[0],e[f-1])),s=f>2?g8e:m8e,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((c||(c=s(t,e.map(r),KE)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,YE),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=Tj,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Fi,u()):a!==Fi},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,o=p,u()}}function Oj(){return WI()(Fi,Fi)}function y8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function XE(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $y(e){return e=XE(Math.abs(e)),e?e[1]:NaN}function v8e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function b8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var w8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nx(e){if(!(t=w8e.exec(e)))throw new Error("invalid format: "+e);var t;return new Ij({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}nx.prototype=Ij.prototype;function Ij(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ij.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function x8e(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Ote;function S8e(e,t){var n=XE(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Ote=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+XE(e,Math.max(0,t+i-1))[0]}function l6(e,t){var n=XE(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const c6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:y8e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>l6(e*100,t),r:l6,s:S8e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function u6(e){return e}var d6=Array.prototype.map,f6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function C8e(e){var t=e.grouping===void 0||e.thousands===void 0?u6:v8e(d6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?u6:b8e(d6.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=nx(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,y=d.zero,b=d.width,x=d.comma,S=d.precision,P=d.trim,E=d.type;E==="n"?(x=!0,E="g"):c6[E]||(S===void 0&&(S=12),P=!0,E="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var T=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",O=g==="$"?r:/[%p]/.test(E)?a:"",k=c6[E],M=/[defgprs%]/.test(E);S=S===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(R){var _=T,N=O,B,L,F;if(E==="c")N=k(R)+N,R="";else{R=+R;var U=R<0||1/R<0;if(R=isNaN(R)?l:k(Math.abs(R),S),P&&(R=x8e(R)),U&&+R==0&&m!=="+"&&(U=!1),_=(U?m==="("?m:s:m==="-"||m==="("?"":m)+_,N=(E==="s"?f6[8+Ote/3]:"")+N+(U&&m==="("?")":""),M){for(B=-1,L=R.length;++B<L;)if(F=R.charCodeAt(B),48>F||F>57){N=(F===46?o+R.slice(B+1):R.slice(B))+N,R=R.slice(0,B);break}}}x&&!y&&(R=t(R,1/0));var V=_.length+R.length+N.length,z=V<b?new Array(b-V+1).join(f):"";switch(x&&y&&(R=t(z+R,z.length?b-N.length:1/0),z=""),p){case"<":R=_+R+N+z;break;case"=":R=_+z+R+N;break;case"^":R=z.slice(0,V=z.length>>1)+_+R+N+z.slice(V);break;default:R=z+_+R+N;break}return i(R)}return I.toString=function(){return d+""},I}function u(d,f){var p=c((d=nx(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor($y(f)/3)))*3,g=Math.pow(10,-m),y=f6[8+m/3];return function(b){return p(g*b)+y}}return{format:c,formatPrefix:u}}var AC,kj,Ite;P8e({thousands:",",grouping:[3],currency:["$",""]});function P8e(e){return AC=C8e(e),kj=AC.format,Ite=AC.formatPrefix,AC}function E8e(e){return Math.max(0,-$y(Math.abs(e)))}function T8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($y(t)/3)))*3-$y(Math.abs(e)))}function O8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$y(t)-$y(e))+1}function kte(e,t,n,r){var o=WD(e,t,n),i;switch(r=nx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=T8e(o,a))&&(r.precision=i),Ite(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=O8e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=E8e(o))&&(r.precision=i-(r.type==="%")*2);break}}return kj(r)}function Ff(e){var t=e.domain;return e.ticks=function(n){var r=t();return HD(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return kte(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=UD(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function QE(){var e=Oj();return e.copy=function(){return OS(e,QE())},al.apply(e,arguments),Ff(e)}function Mte(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,YE),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Mte(e).unknown(t)},e=arguments.length?Array.from(e,YE):[0,1],Ff(n)}function Ate(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function p6(e){return Math.log(e)}function h6(e){return Math.exp(e)}function I8e(e){return-Math.log(-e)}function k8e(e){return-Math.exp(-e)}function M8e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function A8e(e){return e===10?M8e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $8e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function m6(e){return(t,n)=>-e(-t,n)}function Mj(e){const t=e(p6,h6),n=t.domain;let r=10,o,i;function a(){return o=$8e(r),i=A8e(r),n()[0]<0?(o=m6(o),i=m6(i),e(I8e,k8e)):e(p6,h6),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=o(c),p=o(u),m,g;const y=s==null?10:+s;let b=[];if(!(r%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<r;++m)if(g=f<0?m/i(-f):m*i(f),!(g<c)){if(g>u)break;b.push(g)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/i(-f):m*i(f),!(g<c)){if(g>u)break;b.push(g)}b.length*2<y&&(b=HD(c,u,y))}else b=HD(f,p,Math.min(p-f,y)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=nx(l)).precision==null&&(l.trim=!0),l=kj(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Ate(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function $te(){const e=Mj(WI()).domain([1,10]);return e.copy=()=>OS(e,$te()).base(e.base()),al.apply(e,arguments),e}function g6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function y6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Aj(e){var t=1,n=e(g6(t),y6(t));return n.constant=function(r){return arguments.length?e(g6(t=+r),y6(t)):t},Ff(n)}function Rte(){var e=Aj(WI());return e.copy=function(){return OS(e,Rte()).constant(e.constant())},al.apply(e,arguments)}function v6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function R8e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function D8e(e){return e<0?-e*e:e*e}function $j(e){var t=e(Fi,Fi),n=1;function r(){return n===1?e(Fi,Fi):n===.5?e(R8e,D8e):e(v6(n),v6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Ff(t)}function Rj(){var e=$j(WI());return e.copy=function(){return OS(e,Rj()).exponent(e.exponent())},al.apply(e,arguments),e}function _8e(){return Rj.apply(null,arguments).exponent(.5)}function b6(e){return Math.sign(e)*e*e}function L8e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Dte(){var e=Oj(),t=[0,1],n=!1,r;function o(i){var a=L8e(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(b6(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,YE)).map(b6)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Dte(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},al.apply(o,arguments),Ff(o)}function _te(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=zGe(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[ES(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(uf),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return _te().domain(e).range(t).unknown(r)},al.apply(i,arguments)}function Lte(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[ES(r,l,0,n)]:i}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Lte().domain([e,t]).range(o).unknown(i)},al.apply(Ff(a),arguments)}function Nte(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[ES(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Nte().domain(e).range(t).unknown(n)},al.apply(o,arguments)}const E$=new Date,T$=new Date;function $o(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>$o(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(E$.setTime(+i),T$.setTime(+a),e(E$),e(T$),Math.floor(n(E$,T$))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const JE=$o(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);JE.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?$o(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):JE);JE.range;const bu=1e3,Fs=bu*60,wu=Fs*60,qu=wu*24,Dj=qu*7,w6=qu*30,O$=qu*365,Lp=$o(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bu)},(e,t)=>(t-e)/bu,e=>e.getUTCSeconds());Lp.range;const _j=$o(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bu)},(e,t)=>{e.setTime(+e+t*Fs)},(e,t)=>(t-e)/Fs,e=>e.getMinutes());_j.range;const Lj=$o(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fs)},(e,t)=>(t-e)/Fs,e=>e.getUTCMinutes());Lj.range;const Nj=$o(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bu-e.getMinutes()*Fs)},(e,t)=>{e.setTime(+e+t*wu)},(e,t)=>(t-e)/wu,e=>e.getHours());Nj.range;const Fj=$o(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*wu)},(e,t)=>(t-e)/wu,e=>e.getUTCHours());Fj.range;const IS=$o(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fs)/qu,e=>e.getDate()-1);IS.range;const GI=$o(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qu,e=>e.getUTCDate()-1);GI.range;const Fte=$o(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qu,e=>Math.floor(e/qu));Fte.range;function Nh(e){return $o(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Fs)/Dj)}const qI=Nh(0),ZE=Nh(1),N8e=Nh(2),F8e=Nh(3),Ry=Nh(4),j8e=Nh(5),B8e=Nh(6);qI.range;ZE.range;N8e.range;F8e.range;Ry.range;j8e.range;B8e.range;function Fh(e){return $o(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Dj)}const KI=Fh(0),eT=Fh(1),z8e=Fh(2),V8e=Fh(3),Dy=Fh(4),H8e=Fh(5),U8e=Fh(6);KI.range;eT.range;z8e.range;V8e.range;Dy.range;H8e.range;U8e.range;const jj=$o(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());jj.range;const Bj=$o(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Bj.range;const Ku=$o(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ku.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$o(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ku.range;const Yu=$o(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Yu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$o(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Yu.range;function jte(e,t,n,r,o,i){const a=[[Lp,1,bu],[Lp,5,5*bu],[Lp,15,15*bu],[Lp,30,30*bu],[i,1,Fs],[i,5,5*Fs],[i,15,15*Fs],[i,30,30*Fs],[o,1,wu],[o,3,3*wu],[o,6,6*wu],[o,12,12*wu],[r,1,qu],[r,2,2*qu],[n,1,Dj],[t,1,w6],[t,3,3*w6],[e,1,O$]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),m=p?p.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,p=Sj(([,,y])=>y).right(a,f);if(p===a.length)return e.every(WD(c/O$,u/O$,d));if(p===0)return JE.every(Math.max(WD(c,u,d),1));const[m,g]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return m.every(g)}return[s,l]}const[W8e,G8e]=jte(Yu,Bj,KI,Fte,Fj,Lj),[q8e,K8e]=jte(Ku,jj,qI,IS,Nj,_j);function I$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function k$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qb(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Y8e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Jb(o),u=Zb(o),d=Jb(i),f=Zb(i),p=Jb(a),m=Zb(a),g=Jb(s),y=Zb(s),b=Jb(l),x=Zb(l),S={a:U,A:V,b:z,B:W,c:null,d:T6,e:T6,f:v9e,g:I9e,G:M9e,H:m9e,I:g9e,j:y9e,L:Bte,m:b9e,M:w9e,p:G,q:J,Q:k6,s:M6,S:x9e,u:S9e,U:C9e,V:P9e,w:E9e,W:T9e,x:null,X:null,y:O9e,Y:k9e,Z:A9e,"%":I6},P={a:K,A:ne,b:re,B:oe,c:null,d:O6,e:O6,f:_9e,g:W9e,G:q9e,H:$9e,I:R9e,j:D9e,L:Vte,m:L9e,M:N9e,p:fe,q:se,Q:k6,s:M6,S:F9e,u:j9e,U:B9e,V:z9e,w:V9e,W:H9e,x:null,X:null,y:U9e,Y:G9e,Z:K9e,"%":I6},E={a:I,A:R,b:_,B:N,c:B,d:P6,e:P6,f:d9e,g:C6,G:S6,H:E6,I:E6,j:s9e,L:u9e,m:a9e,M:l9e,p:M,q:i9e,Q:p9e,s:h9e,S:c9e,u:e9e,U:t9e,V:n9e,w:Z8e,W:r9e,x:L,X:F,y:C6,Y:S6,Z:o9e,"%":f9e};S.x=T(n,S),S.X=T(r,S),S.c=T(t,S),P.x=T(n,P),P.X=T(r,P),P.c=T(t,P);function T(ee,ce){return function(le){var Q=[],ue=-1,ge=0,xe=ee.length,me,be,we;for(le instanceof Date||(le=new Date(+le));++ue<xe;)ee.charCodeAt(ue)===37&&(Q.push(ee.slice(ge,ue)),(be=x6[me=ee.charAt(++ue)])!=null?me=ee.charAt(++ue):be=me==="e"?" ":"0",(we=ce[me])&&(me=we(le,be)),Q.push(me),ge=ue+1);return Q.push(ee.slice(ge,ue)),Q.join("")}}function O(ee,ce){return function(le){var Q=Qb(1900,void 0,1),ue=k(Q,ee,le+="",0),ge,xe;if(ue!=le.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(ce&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(ge=k$(Qb(Q.y,0,1)),xe=ge.getUTCDay(),ge=xe>4||xe===0?eT.ceil(ge):eT(ge),ge=GI.offset(ge,(Q.V-1)*7),Q.y=ge.getUTCFullYear(),Q.m=ge.getUTCMonth(),Q.d=ge.getUTCDate()+(Q.w+6)%7):(ge=I$(Qb(Q.y,0,1)),xe=ge.getDay(),ge=xe>4||xe===0?ZE.ceil(ge):ZE(ge),ge=IS.offset(ge,(Q.V-1)*7),Q.y=ge.getFullYear(),Q.m=ge.getMonth(),Q.d=ge.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),xe="Z"in Q?k$(Qb(Q.y,0,1)).getUTCDay():I$(Qb(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(xe+5)%7:Q.w+Q.U*7-(xe+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,k$(Q)):I$(Q)}}function k(ee,ce,le,Q){for(var ue=0,ge=ce.length,xe=le.length,me,be;ue<ge;){if(Q>=xe)return-1;if(me=ce.charCodeAt(ue++),me===37){if(me=ce.charAt(ue++),be=E[me in x6?ce.charAt(ue++):me],!be||(Q=be(ee,le,Q))<0)return-1}else if(me!=le.charCodeAt(Q++))return-1}return Q}function M(ee,ce,le){var Q=c.exec(ce.slice(le));return Q?(ee.p=u.get(Q[0].toLowerCase()),le+Q[0].length):-1}function I(ee,ce,le){var Q=p.exec(ce.slice(le));return Q?(ee.w=m.get(Q[0].toLowerCase()),le+Q[0].length):-1}function R(ee,ce,le){var Q=d.exec(ce.slice(le));return Q?(ee.w=f.get(Q[0].toLowerCase()),le+Q[0].length):-1}function _(ee,ce,le){var Q=b.exec(ce.slice(le));return Q?(ee.m=x.get(Q[0].toLowerCase()),le+Q[0].length):-1}function N(ee,ce,le){var Q=g.exec(ce.slice(le));return Q?(ee.m=y.get(Q[0].toLowerCase()),le+Q[0].length):-1}function B(ee,ce,le){return k(ee,t,ce,le)}function L(ee,ce,le){return k(ee,n,ce,le)}function F(ee,ce,le){return k(ee,r,ce,le)}function U(ee){return a[ee.getDay()]}function V(ee){return i[ee.getDay()]}function z(ee){return l[ee.getMonth()]}function W(ee){return s[ee.getMonth()]}function G(ee){return o[+(ee.getHours()>=12)]}function J(ee){return 1+~~(ee.getMonth()/3)}function K(ee){return a[ee.getUTCDay()]}function ne(ee){return i[ee.getUTCDay()]}function re(ee){return l[ee.getUTCMonth()]}function oe(ee){return s[ee.getUTCMonth()]}function fe(ee){return o[+(ee.getUTCHours()>=12)]}function se(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var ce=T(ee+="",S);return ce.toString=function(){return ee},ce},parse:function(ee){var ce=O(ee+="",!1);return ce.toString=function(){return ee},ce},utcFormat:function(ee){var ce=T(ee+="",P);return ce.toString=function(){return ee},ce},utcParse:function(ee){var ce=O(ee+="",!0);return ce.toString=function(){return ee},ce}}}var x6={"-":"",_:" ",0:"0"},Go=/^\s*\d+/,X8e=/^%/,Q8e=/[\\^$*+?|[\]().{}]/g;function Un(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function J8e(e){return e.replace(Q8e,"\\$&")}function Jb(e){return new RegExp("^(?:"+e.map(J8e).join("|")+")","i")}function Zb(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Z8e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function e9e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function t9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function n9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function r9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function S6(e,t,n){var r=Go.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function C6(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function o9e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function i9e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function a9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P6(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function s9e(e,t,n){var r=Go.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E6(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function l9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function c9e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function u9e(e,t,n){var r=Go.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function d9e(e,t,n){var r=Go.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function f9e(e,t,n){var r=X8e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function p9e(e,t,n){var r=Go.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function h9e(e,t,n){var r=Go.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function T6(e,t){return Un(e.getDate(),t,2)}function m9e(e,t){return Un(e.getHours(),t,2)}function g9e(e,t){return Un(e.getHours()%12||12,t,2)}function y9e(e,t){return Un(1+IS.count(Ku(e),e),t,3)}function Bte(e,t){return Un(e.getMilliseconds(),t,3)}function v9e(e,t){return Bte(e,t)+"000"}function b9e(e,t){return Un(e.getMonth()+1,t,2)}function w9e(e,t){return Un(e.getMinutes(),t,2)}function x9e(e,t){return Un(e.getSeconds(),t,2)}function S9e(e){var t=e.getDay();return t===0?7:t}function C9e(e,t){return Un(qI.count(Ku(e)-1,e),t,2)}function zte(e){var t=e.getDay();return t>=4||t===0?Ry(e):Ry.ceil(e)}function P9e(e,t){return e=zte(e),Un(Ry.count(Ku(e),e)+(Ku(e).getDay()===4),t,2)}function E9e(e){return e.getDay()}function T9e(e,t){return Un(ZE.count(Ku(e)-1,e),t,2)}function O9e(e,t){return Un(e.getFullYear()%100,t,2)}function I9e(e,t){return e=zte(e),Un(e.getFullYear()%100,t,2)}function k9e(e,t){return Un(e.getFullYear()%1e4,t,4)}function M9e(e,t){var n=e.getDay();return e=n>=4||n===0?Ry(e):Ry.ceil(e),Un(e.getFullYear()%1e4,t,4)}function A9e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Un(t/60|0,"0",2)+Un(t%60,"0",2)}function O6(e,t){return Un(e.getUTCDate(),t,2)}function $9e(e,t){return Un(e.getUTCHours(),t,2)}function R9e(e,t){return Un(e.getUTCHours()%12||12,t,2)}function D9e(e,t){return Un(1+GI.count(Yu(e),e),t,3)}function Vte(e,t){return Un(e.getUTCMilliseconds(),t,3)}function _9e(e,t){return Vte(e,t)+"000"}function L9e(e,t){return Un(e.getUTCMonth()+1,t,2)}function N9e(e,t){return Un(e.getUTCMinutes(),t,2)}function F9e(e,t){return Un(e.getUTCSeconds(),t,2)}function j9e(e){var t=e.getUTCDay();return t===0?7:t}function B9e(e,t){return Un(KI.count(Yu(e)-1,e),t,2)}function Hte(e){var t=e.getUTCDay();return t>=4||t===0?Dy(e):Dy.ceil(e)}function z9e(e,t){return e=Hte(e),Un(Dy.count(Yu(e),e)+(Yu(e).getUTCDay()===4),t,2)}function V9e(e){return e.getUTCDay()}function H9e(e,t){return Un(eT.count(Yu(e)-1,e),t,2)}function U9e(e,t){return Un(e.getUTCFullYear()%100,t,2)}function W9e(e,t){return e=Hte(e),Un(e.getUTCFullYear()%100,t,2)}function G9e(e,t){return Un(e.getUTCFullYear()%1e4,t,4)}function q9e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Dy(e):Dy.ceil(e),Un(e.getUTCFullYear()%1e4,t,4)}function K9e(){return"+0000"}function I6(){return"%"}function k6(e){return+e}function M6(e){return Math.floor(+e/1e3)}var Rm,Ute,Wte;Y9e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Y9e(e){return Rm=Y8e(e),Ute=Rm.format,Rm.parse,Wte=Rm.utcFormat,Rm.utcParse,Rm}function X9e(e){return new Date(e)}function Q9e(e){return e instanceof Date?+e:+new Date(+e)}function zj(e,t,n,r,o,i,a,s,l,c){var u=Oj(),d=u.invert,f=u.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),P=c("%Y");function E(T){return(l(T)<T?p:s(T)<T?m:a(T)<T?g:i(T)<T?y:r(T)<T?o(T)<T?b:x:n(T)<T?S:P)(T)}return u.invert=function(T){return new Date(d(T))},u.domain=function(T){return arguments.length?f(Array.from(T,Q9e)):f().map(X9e)},u.ticks=function(T){var O=f();return e(O[0],O[O.length-1],T??10)},u.tickFormat=function(T,O){return O==null?E:c(O)},u.nice=function(T){var O=f();return(!T||typeof T.range!="function")&&(T=t(O[0],O[O.length-1],T??10)),T?f(Ate(O,T)):u},u.copy=function(){return OS(u,zj(e,t,n,r,o,i,a,s,l,c))},u}function J9e(){return al.apply(zj(q8e,K8e,Ku,jj,qI,IS,Nj,_j,Lp,Ute).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Z9e(){return al.apply(zj(W8e,G8e,Yu,Bj,KI,GI,Fj,Lj,Lp,Wte).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function YI(){var e=0,t=1,n,r,o,i,a=Fi,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var p,m;return arguments.length?([p,m]=f,a=d(p,m),c):[a(0),a(1)]}}return c.range=u(Vv),c.rangeRound=u(Tj),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function jf(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Gte(){var e=Ff(YI()(Fi));return e.copy=function(){return jf(e,Gte())},td.apply(e,arguments)}function qte(){var e=Mj(YI()).domain([1,10]);return e.copy=function(){return jf(e,qte()).base(e.base())},td.apply(e,arguments)}function Kte(){var e=Aj(YI());return e.copy=function(){return jf(e,Kte()).constant(e.constant())},td.apply(e,arguments)}function Vj(){var e=$j(YI());return e.copy=function(){return jf(e,Vj()).exponent(e.exponent())},td.apply(e,arguments)}function e7e(){return Vj.apply(null,arguments).exponent(.5)}function Yte(){var e=[],t=Fi;function n(r){if(r!=null&&!isNaN(r=+r))return t((ES(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(uf),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>BGe(e,i/r))},n.copy=function(){return Yte(t).domain(e)},td.apply(n,arguments)}function XI(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=Fi,u,d=!1,f;function p(g){return isNaN(g=+g)?f:(g=.5+((g=+u(g))-i)*(r*g<r*i?s:l),c(d?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,o=u(e=+e),i=u(t=+t),a=u(n=+n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(d=!!g,p):d},p.interpolator=function(g){return arguments.length?(c=g,p):c};function m(g){return function(y){var b,x,S;return arguments.length?([b,x,S]=y,c=f8e(g,[b,x,S]),p):[c(0),c(.5),c(1)]}}return p.range=m(Vv),p.rangeRound=m(Tj),p.unknown=function(g){return arguments.length?(f=g,p):f},function(g){return u=g,o=g(e),i=g(t),a=g(n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p}}function Xte(){var e=Ff(XI()(Fi));return e.copy=function(){return jf(e,Xte())},td.apply(e,arguments)}function Qte(){var e=Mj(XI()).domain([.1,1,10]);return e.copy=function(){return jf(e,Qte()).base(e.base())},td.apply(e,arguments)}function Jte(){var e=Aj(XI());return e.copy=function(){return jf(e,Jte()).constant(e.constant())},td.apply(e,arguments)}function Hj(){var e=$j(XI());return e.copy=function(){return jf(e,Hj()).exponent(e.exponent())},td.apply(e,arguments)}function t7e(){return Hj.apply(null,arguments).exponent(.5)}const A6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Jw,scaleDiverging:Xte,scaleDivergingLog:Qte,scaleDivergingPow:Hj,scaleDivergingSqrt:t7e,scaleDivergingSymlog:Jte,scaleIdentity:Mte,scaleImplicit:GD,scaleLinear:QE,scaleLog:$te,scaleOrdinal:Cj,scalePoint:ew,scalePow:Rj,scaleQuantile:_te,scaleQuantize:Lte,scaleRadial:Dte,scaleSequential:Gte,scaleSequentialLog:qte,scaleSequentialPow:Vj,scaleSequentialQuantile:Yte,scaleSequentialSqrt:e7e,scaleSequentialSymlog:Kte,scaleSqrt:_8e,scaleSymlog:Rte,scaleThreshold:Nte,scaleTime:J9e,scaleUtc:Z9e,tickFormat:kte},Symbol.toStringTag,{value:"Module"}));var n7e=$v;function r7e(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!n7e(a):n(a,s)))var s=a,l=i}return l}var QI=r7e;function o7e(e,t){return e>t}var Zte=o7e,i7e=QI,a7e=Zte,s7e=Bv;function l7e(e){return e&&e.length?i7e(e,s7e,a7e):void 0}var c7e=l7e;const Yd=Bn(c7e);function u7e(e,t){return e<t}var ene=u7e,d7e=QI,f7e=ene,p7e=Bv;function h7e(e){return e&&e.length?d7e(e,p7e,f7e):void 0}var m7e=h7e;const JI=Bn(m7e);var g7e=oj,y7e=zc,v7e=cte,b7e=xa;function w7e(e,t){var n=b7e(e)?g7e:v7e;return n(e,y7e(t))}var x7e=w7e,S7e=ste,C7e=x7e;function P7e(e,t){return S7e(C7e(e,t),1)}var E7e=P7e;const T7e=Bn(E7e);var O7e=vj;function I7e(e,t){return O7e(e,t)}var k7e=I7e;const xf=Bn(k7e);var Hv=1e9,M7e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Wj,Nr=!0,tl="[DecimalError] ",eh=tl+"Invalid argument: ",Uj=tl+"Exponent out of range: ",Uv=Math.floor,Pp=Math.pow,A7e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Va,Fo=1e7,Ir=7,tne=9007199254740991,tT=Uv(tne/Ir),Tt={};Tt.absoluteValue=Tt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Tt.comparedTo=Tt.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};Tt.decimalPlaces=Tt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ir;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Tt.dividedBy=Tt.div=function(e){return Eu(this,new this.constructor(e))};Tt.dividedToIntegerBy=Tt.idiv=function(e){var t=this,n=t.constructor;return hr(Eu(t,new n(e),0,1),n.precision)};Tt.equals=Tt.eq=function(e){return!this.cmp(e)};Tt.exponent=function(){return yo(this)};Tt.greaterThan=Tt.gt=function(e){return this.cmp(e)>0};Tt.greaterThanOrEqualTo=Tt.gte=function(e){return this.cmp(e)>=0};Tt.isInteger=Tt.isint=function(){return this.e>this.d.length-2};Tt.isNegative=Tt.isneg=function(){return this.s<0};Tt.isPositive=Tt.ispos=function(){return this.s>0};Tt.isZero=function(){return this.s===0};Tt.lessThan=Tt.lt=function(e){return this.cmp(e)<0};Tt.lessThanOrEqualTo=Tt.lte=function(e){return this.cmp(e)<1};Tt.logarithm=Tt.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Va))throw Error(tl+"NaN");if(n.s<1)throw Error(tl+(n.s?"NaN":"-Infinity"));return n.eq(Va)?new r(0):(Nr=!1,t=Eu(rx(n,i),rx(e,i),i),Nr=!0,hr(t,o))};Tt.minus=Tt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?one(t,e):nne(t,(e.s=-e.s,e))};Tt.modulo=Tt.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(tl+"NaN");return n.s?(Nr=!1,t=Eu(n,e,0,1).times(e),Nr=!0,n.minus(t)):hr(new r(n),o)};Tt.naturalExponential=Tt.exp=function(){return rne(this)};Tt.naturalLogarithm=Tt.ln=function(){return rx(this)};Tt.negated=Tt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Tt.plus=Tt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nne(t,e):one(t,(e.s=-e.s,e))};Tt.precision=Tt.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(eh+e);if(t=yo(o)+1,r=o.d.length-1,n=r*Ir+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Tt.squareRoot=Tt.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(tl+"NaN")}for(e=yo(s),Nr=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=xc(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Uv((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(Eu(s,i,a+2)).times(.5),xc(i.d).slice(0,a)===(t=xc(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(hr(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Nr=!0,hr(r,n)};Tt.times=Tt.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=f.length,c=p.length,l<c&&(i=f,f=p,p=i,a=l,l=c,c=a),i=[],a=l+c,r=a;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+p[r]*f[o-r-1]+t,i[o--]=s%Fo|0,t=s/Fo|0;i[o]=(i[o]+t)%Fo|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Nr?hr(e,d.precision):e};Tt.toDecimalPlaces=Tt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Lc(e,0,Hv),t===void 0?t=r.rounding:Lc(t,0,8),hr(n,e+yo(n)+1,t))};Tt.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=wh(r,!0):(Lc(e,0,Hv),t===void 0?t=o.rounding:Lc(t,0,8),r=hr(new o(r),e+1,t),n=wh(r,!0,e+1)),n};Tt.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?wh(o):(Lc(e,0,Hv),t===void 0?t=i.rounding:Lc(t,0,8),r=hr(new i(o),e+yo(o)+1,t),n=wh(r.abs(),!1,e+yo(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Tt.toInteger=Tt.toint=function(){var e=this,t=e.constructor;return hr(new t(e),yo(e)+1,t.rounding)};Tt.toNumber=function(){return+this};Tt.toPower=Tt.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Va);if(s=new l(s),!s.s){if(e.s<1)throw Error(tl+"Infinity");return s}if(s.eq(Va))return s;if(r=l.precision,e.eq(Va))return hr(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=tne){for(o=new l(Va),t=Math.ceil(r/Ir+4),Nr=!1;n%2&&(o=o.times(s),R6(o.d,t)),n=Uv(n/2),n!==0;)s=s.times(s),R6(s.d,t);return Nr=!0,e.s<0?new l(Va).div(o):hr(o,r)}}else if(i<0)throw Error(tl+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Nr=!1,o=e.times(rx(s,r+c)),Nr=!0,o=rne(o),o.s=i,o};Tt.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=yo(o),r=wh(o,n<=i.toExpNeg||n>=i.toExpPos)):(Lc(e,1,Hv),t===void 0?t=i.rounding:Lc(t,0,8),o=hr(new i(o),e,t),n=yo(o),r=wh(o,e<=n||n<=i.toExpNeg,e)),r};Tt.toSignificantDigits=Tt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Lc(e,1,Hv),t===void 0?t=r.rounding:Lc(t,0,8)),hr(new r(n),e,t)};Tt.toString=Tt.valueOf=Tt.val=Tt.toJSON=Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=yo(e),n=e.constructor;return wh(e,t<=n.toExpNeg||t>=n.toExpPos)};function nne(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Nr?hr(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(d/Ir),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/Fo|0,l[i]%=Fo;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Nr?hr(t,d):t}function Lc(e,t,n){if(e!==~~e||e<t||e>n)throw Error(eh+e)}function xc(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=Ir-r.length,n&&(i+=Id(n)),i+=r;a=e[t],r=a+"",n=Ir-r.length,n&&(i+=Id(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var Eu=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%Fo|0,a=i/Fo|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(r[s]!=o[s]){l=r[s]>o[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*Fo+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,l,c,u,d,f,p,m,g,y,b,x,S,P,E,T,O,k,M=r.constructor,I=r.s==o.s?1:-1,R=r.d,_=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(tl+"Division by zero");for(l=r.e-o.e,O=_.length,E=R.length,p=new M(I),m=p.d=[],c=0;_[c]==(R[c]||0);)++c;if(_[c]>(R[c]||0)&&--l,i==null?x=i=M.precision:a?x=i+(yo(r)-yo(o))+1:x=i,x<0)return new M(0);if(x=x/Ir+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)S=u*Fo+(R[c]||0),m[c]=S/_|0,u=S%_|0;else{for(u=Fo/(_[0]+1)|0,u>1&&(_=e(_,u),R=e(R,u),O=_.length,E=R.length),P=O,g=R.slice(0,O),y=g.length;y<O;)g[y++]=0;k=_.slice(),k.unshift(0),T=_[0],_[1]>=Fo/2&&++T;do u=0,s=t(_,g,O,y),s<0?(b=g[0],O!=y&&(b=b*Fo+(g[1]||0)),u=b/T|0,u>1?(u>=Fo&&(u=Fo-1),d=e(_,u),f=d.length,y=g.length,s=t(d,g,f,y),s==1&&(u--,n(d,O<f?k:_,f))):(u==0&&(s=u=1),d=_.slice()),f=d.length,f<y&&d.unshift(0),n(g,d,y),s==-1&&(y=g.length,s=t(_,g,O,y),s<1&&(u++,n(g,O<y?k:_,y))),y=g.length):s===0&&(u++,g=[0]),m[c++]=u,s&&g[0]?g[y++]=R[P]||0:(g=[R[P]],y=1);while((P++<E||g[0]!==void 0)&&x--)}return m[0]||m.shift(),p.e=l,hr(p,a?i+yo(p)+1:i)}}();function rne(e,t){var n,r,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(yo(e)>16)throw Error(Uj+yo(e));if(!e.s)return new u(Va);for(t==null?(Nr=!1,s=d):s=t,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Pp(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(Va),u.precision=s;;){if(o=hr(o.times(e),s),n=n.times(++l),a=i.plus(Eu(o,n,s)),xc(a.d).slice(0,s)===xc(i.d).slice(0,s)){for(;c--;)i=hr(i.times(i),s);return u.precision=d,t==null?(Nr=!0,hr(i,d)):i}i=a}}function yo(e){for(var t=e.e*Ir,n=e.d[0];n>=10;n/=10)t++;return t}function M$(e,t,n){if(t>e.LN10.sd())throw Nr=!0,n&&(e.precision=n),Error(tl+"LN10 precision limit exceeded");return hr(new e(e.LN10),t)}function Id(e){for(var t="";e--;)t+="0";return t}function rx(e,t){var n,r,o,i,a,s,l,c,u,d=1,f=10,p=e,m=p.d,g=p.constructor,y=g.precision;if(p.s<1)throw Error(tl+(p.s?"NaN":"-Infinity"));if(p.eq(Va))return new g(0);if(t==null?(Nr=!1,c=y):c=t,p.eq(10))return t==null&&(Nr=!0),M$(g,c);if(c+=f,g.precision=c,n=xc(m),r=n.charAt(0),i=yo(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=xc(p.d),r=n.charAt(0),d++;i=yo(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return l=M$(g,c+2,y).times(i+""),p=rx(new g(r+"."+n.slice(1)),c-f).plus(l),g.precision=y,t==null?(Nr=!0,hr(p,y)):p;for(s=a=p=Eu(p.minus(Va),p.plus(Va),c),u=hr(p.times(p),c),o=3;;){if(a=hr(a.times(u),c),l=s.plus(Eu(a,new g(o),c)),xc(l.d).slice(0,c)===xc(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(M$(g,c+2,y).times(i+""))),s=Eu(s,new g(d),c),g.precision=y,t==null?(Nr=!0,hr(s,y)):s;s=l,o+=2}}function $6(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Uv(n/Ir),e.d=[],r=(n+1)%Ir,n<0&&(r+=Ir),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Ir;r<o;)e.d.push(+t.slice(r,r+=Ir));t=t.slice(r),r=Ir-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Nr&&(e.e>tT||e.e<-tT))throw Error(Uj+n)}else e.s=0,e.e=0,e.d=[0];return e}function hr(e,t,n){var r,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Ir,o=t,c=d[u=0];else{if(u=Math.ceil((r+1)/Ir),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;r%=Ir,o=r-Ir+a}if(n!==void 0&&(i=Pp(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Pp(10,a-o):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=yo(e),d.length=1,t=t-i-1,d[0]=Pp(10,(Ir-t%Ir)%Ir),e.e=Uv(-t/Ir)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,i=1,u--):(d.length=u+1,i=Pp(10,Ir-r),d[u]=o>0?(c/Pp(10,a-o)%Pp(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Fo&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Fo)break;d[u--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(Nr&&(e.e>tT||e.e<-tT))throw Error(Uj+yo(e));return e}function one(e,t){var n,r,o,i,a,s,l,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Nr?hr(t,p):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),o=Math.max(Math.ceil(p/Ir),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=Fo-1;--l[i],l[o]+=Fo}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Nr?hr(t,p):t):new f(0)}function wh(e,t,n){var r,o=yo(e),i=xc(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Id(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Id(-o-1)+i,n&&(r=n-a)>0&&(i+=Id(r))):o>=a?(i+=Id(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Id(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Id(r))),e.s<0?"-"+i:i}function R6(e,t){if(e.length>t)return e.length=t,!0}function ine(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(eh+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return $6(a,i.toString())}else if(typeof i!="string")throw Error(eh+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,A7e.test(i))$6(a,i);else throw Error(eh+i)}if(o.prototype=Tt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=ine,o.config=o.set=$7e,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function $7e(e){if(!e||typeof e!="object")throw Error(tl+"Object expected");var t,n,r,o=["precision",1,Hv,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(Uv(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(eh+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(eh+n+": "+r);return this}var Wj=ine(M7e);Va=new Wj(1);const cr=Wj;function R7e(e){return N7e(e)||L7e(e)||_7e(e)||D7e()}function D7e(){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 _7e(e,t){if(e){if(typeof e=="string")return XD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XD(e,t)}}function L7e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function N7e(e){if(Array.isArray(e))return XD(e)}function XD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F7e=function(t){return t},ane={"@@functional/placeholder":!0},sne=function(t){return t===ane},D6=function(t){return function n(){return arguments.length===0||arguments.length===1&&sne(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},j7e=function e(t,n){return t===1?n:D6(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter(function(s){return s!==ane}).length;return a>=t?n.apply(void 0,o):e(t-a,D6(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=o.map(function(d){return sne(d)?l.shift():d});return n.apply(void 0,R7e(u).concat(l))}))})},ZI=function(t){return j7e(t.length,t)},QD=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},B7e=ZI(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),z7e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return F7e;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce(function(s,l){return l(s)},i.apply(void 0,arguments))}},JD=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},lne=function(t){var n=null,r=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n&&i.every(function(s,l){return s===n[l]})||(n=i,r=t.apply(void 0,i)),r}};function V7e(e){var t;return e===0?t=1:t=Math.floor(new cr(e).abs().log(10).toNumber())+1,t}function H7e(e,t,n){for(var r=new cr(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var U7e=ZI(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),W7e=ZI(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),G7e=ZI(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const ek={rangeStep:H7e,getDigitCount:V7e,interpolateNumber:U7e,uninterpolateNumber:W7e,uninterpolateTruncation:G7e};function ZD(e){return Y7e(e)||K7e(e)||cne(e)||q7e()}function q7e(){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 K7e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Y7e(e){if(Array.isArray(e))return e_(e)}function ox(e,t){return J7e(e)||Q7e(e,t)||cne(e,t)||X7e()}function X7e(){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 cne(e,t){if(e){if(typeof e=="string")return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}}function e_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q7e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function J7e(e){if(Array.isArray(e))return e}function une(e){var t=ox(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function dne(e,t,n){if(e.lte(0))return new cr(0);var r=ek.getDigitCount(e.toNumber()),o=new cr(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new cr(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?l:new cr(Math.ceil(l))}function Z7e(e,t,n){var r=1,o=new cr(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new cr(10).pow(ek.getDigitCount(e)-1),o=new cr(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new cr(Math.floor(e)))}else e===0?o=new cr(Math.floor((t-1)/2)):n||(o=new cr(Math.floor(e)));var a=Math.floor((t-1)/2),s=z7e(B7e(function(l){return o.add(new cr(l-a).mul(r)).toNumber()}),QD);return s(0,t)}function fne(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new cr(0),tickMin:new cr(0),tickMax:new cr(0)};var i=dne(new cr(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new cr(0):(a=new cr(e).add(t).div(2),a=a.sub(new cr(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new cr(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?fne(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new cr(s).mul(i)),tickMax:a.add(new cr(l).mul(i))})}function eqe(e){var t=ox(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=une([n,r]),l=ox(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(ZD(QD(0,o-1).map(function(){return 1/0}))):[].concat(ZD(QD(0,o-1).map(function(){return-1/0})),[u]);return n>r?JD(d):d}if(c===u)return Z7e(c,o,i);var f=fne(c,u,a,i),p=f.step,m=f.tickMin,g=f.tickMax,y=ek.rangeStep(m,g.add(new cr(.1).mul(p)),p);return n>r?JD(y):y}function tqe(e,t){var n=ox(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=une([r,o]),s=ox(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),d=dne(new cr(c).sub(l).div(u-1),i,0),f=[].concat(ZD(ek.rangeStep(new cr(l),new cr(c).sub(new cr(.99).mul(d)),d)),[c]);return r>o?JD(f):f}var nqe=lne(eqe),rqe=lne(tqe),oqe="Invariant failed";function xh(e,t){throw new Error(oqe)}var iqe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _y(e){"@babel/helpers - typeof";return _y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_y(e)}function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nT.apply(this,arguments)}function aqe(e,t){return uqe(e)||cqe(e,t)||lqe(e,t)||sqe()}function sqe(){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 lqe(e,t){if(e){if(typeof e=="string")return _6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _6(e,t)}}function _6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function uqe(e){if(Array.isArray(e))return e}function dqe(e,t){if(e==null)return{};var n=fqe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hqe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mne(r.key),r)}}function mqe(e,t,n){return t&&hqe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gqe(e,t,n){return t=rT(t),yqe(e,pne()?Reflect.construct(t,n||[],rT(e).constructor):t.apply(e,n))}function yqe(e,t){if(t&&(_y(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vqe(e)}function vqe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pne=function(){return!!e})()}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rT(e)}function bqe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t_(e,t)}function t_(e,t){return t_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},t_(e,t)}function hne(e,t,n){return t=mne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mne(e){var t=wqe(e,"string");return _y(t)=="symbol"?t:t+""}function wqe(e,t){if(_y(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_y(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wv=function(e){function t(){return pqe(this,t),gqe(this,t,arguments)}return bqe(t,e),mqe(t,[{key:"render",value:function(){var r=this.props,o=r.offset,i=r.layout,a=r.width,s=r.dataKey,l=r.data,c=r.dataPointFormatter,u=r.xAxis,d=r.yAxis,f=dqe(r,iqe),p=At(f,!1);this.props.direction==="x"&&u.type!=="number"&&xh();var m=l.map(function(g){var y=c(g,s),b=y.x,x=y.y,S=y.value,P=y.errorVal;if(!P)return null;var E=[],T,O;if(Array.isArray(P)){var k=aqe(P,2);T=k[0],O=k[1]}else T=O=P;if(i==="vertical"){var M=u.scale,I=x+o,R=I+a,_=I-a,N=M(S-T),B=M(S+O);E.push({x1:B,y1:R,x2:B,y2:_}),E.push({x1:N,y1:I,x2:B,y2:I}),E.push({x1:N,y1:R,x2:N,y2:_})}else if(i==="horizontal"){var L=d.scale,F=b+o,U=F-a,V=F+a,z=L(S-T),W=L(S+O);E.push({x1:U,y1:W,x2:V,y2:W}),E.push({x1:F,y1:z,x2:F,y2:W}),E.push({x1:U,y1:z,x2:V,y2:z})}return Y.createElement(rn,nT({className:"recharts-errorBar",key:"bar-".concat(E.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),E.map(function(G){return Y.createElement("line",nT({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return Y.createElement(rn,{className:"recharts-errorBars"},m)}}])}(Y.Component);hne(Wv,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});hne(Wv,"displayName","ErrorBar");function ix(e){"@babel/helpers - typeof";return ix=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ix(e)}function L6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(n),!0).forEach(function(r){xqe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xqe(e,t,n){return t=Sqe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sqe(e){var t=Cqe(e,"string");return ix(t)=="symbol"?t:t+""}function Cqe(e,t){if(ix(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ix(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gne=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=La(n,Pu);if(!a)return null;var s=Pu.defaultProps,l=s!==void 0?lp(lp({},s),a.props):{},c;return a.props&&a.props.payload?c=a.props&&a.props.payload:i==="children"?c=(r||[]).reduce(function(u,d){var f=d.item,p=d.props,m=p.sectors||p.data||[];return u.concat(m.map(function(g){return{type:a.props.iconType||f.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):c=(r||[]).map(function(u){var d=u.item,f=d.type.defaultProps,p=f!==void 0?lp(lp({},f),d.props):{},m=p.dataKey,g=p.name,y=p.legendType,b=p.hide;return{inactive:b,dataKey:m,type:l.iconType||y||"square",color:Gj(d),value:g||m,payload:p}}),lp(lp(lp({},l),Pu.getWithHeight(a,o)),{},{payload:c,item:a})};function ax(e){"@babel/helpers - typeof";return ax=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ax(e)}function N6(e){return Oqe(e)||Tqe(e)||Eqe(e)||Pqe()}function Pqe(){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 Eqe(e,t){if(e){if(typeof e=="string")return n_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n_(e,t)}}function Tqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oqe(e){if(Array.isArray(e))return n_(e)}function n_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F6(Object(n),!0).forEach(function(r){Wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wg(e,t,n){return t=Iqe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iqe(e){var t=kqe(e,"string");return ax(t)=="symbol"?t:t+""}function kqe(e,t){if(ax(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ax(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kr(e,t,n){return Bt(e)||Bt(t)?n:Mo(t)?qa(e,t,n):Ht(t)?t(e):n}function tw(e,t,n,r){var o=T7e(e,function(s){return kr(s,t)});if(n==="number"){var i=o.filter(function(s){return at(s)||parseFloat(s)});return i.length?[JI(i),Yd(i)]:[1/0,-1/0]}var a=r?o.filter(function(s){return!Bt(s)}):o;return a.map(function(s){return Mo(s)||s instanceof Date?s:""})}var Mqe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c<s;c++){var u=c>0?o[c-1].coordinate:o[s-1].coordinate,d=o[c].coordinate,f=c>=s-1?o[0].coordinate:o[c+1].coordinate,p=void 0;if(Li(d-u)!==Li(f-d)){var m=[];if(Li(f-d)===Li(l[1]-l[0])){p=f;var g=d+l[1]-l[0];m[0]=Math.min(g,(g+u)/2),m[1]=Math.max(g,(g+u)/2)}else{p=u;var y=f+l[1]-l[0];m[0]=Math.min(d,(y+d)/2),m[1]=Math.max(d,(y+d)/2)}var b=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>b[0]&&t<=b[1]||t>=m[0]&&t<=m[1]){a=o[c].index;break}}else{var x=Math.min(u,f),S=Math.max(u,f);if(t>(x+d)/2&&t<=(S+d)/2){a=o[c].index;break}}}else for(var P=0;P<s;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){a=r[P].index;break}return a},Gj=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Jr(Jr({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,l;switch(o){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},Aqe=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),l=0,c=s.length;l<c;l++)for(var u=i[s[l]].stackGroups,d=Object.keys(u),f=0,p=d.length;f<p;f++){var m=u[d[f]],g=m.items,y=m.cateAxisId,b=g.filter(function(O){return Cu(O.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,S=x!==void 0?Jr(Jr({},x),b[0].props):b[0].props,P=S.barSize,E=S[y];a[E]||(a[E]=[]);var T=Bt(P)?n:P;a[E].push({item:b[0],stackList:b.slice(1),barSize:Bt(T)?void 0:Ni(T,r,0)})}}return a},$qe=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,l=a.length;if(l<1)return null;var c=Ni(n,o,0,!0),u,d=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/l,m=a.reduce(function(P,E){return P+E.barSize||0},0);m+=(l-1)*c,m>=o&&(m-=(l-1)*c,c=0),m>=o&&p>0&&(f=!0,p*=.9,m=l*p);var g=(o-m)/2>>0,y={offset:g-c,size:0};u=a.reduce(function(P,E){var T={item:E.item,position:{offset:y.offset+y.size+c,size:f?p:E.barSize}},O=[].concat(N6(P),[T]);return y=O[O.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(k){O.push({item:k,position:y})}),O},d)}else{var b=Ni(r,o,0,!0);o-2*b-(l-1)*c<=0&&(c=0);var x=(o-2*b-(l-1)*c)/l;x>1&&(x>>=0);var S=s===+s?Math.min(x,s):x;u=a.reduce(function(P,E,T){var O=[].concat(N6(P),[{item:E.item,position:{offset:b+(x+c)*T+(x-S)/2,size:S}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(k){O.push({item:k,position:O[O.length-1].position})}),O},d)}return u},Rqe=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),c=gne({children:i,legendWidth:l});if(c){var u=o||{},d=u.width,f=u.height,p=c.align,m=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&at(t[p]))return Jr(Jr({},t),{},Wg({},p,t[p]+(d||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&at(t[m]))return Jr(Jr({},t),{},Wg({},m,t[m]+(f||0)))}return t},Dqe=function(t,n,r){return Bt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},yne=function(t,n,r,o,i){var a=n.props.children,s=Vi(a,Wv).filter(function(c){return Dqe(o,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var d=kr(u,r);if(Bt(d))return c;var f=Array.isArray(d)?[JI(d),Yd(d)]:[d,d],p=l.reduce(function(m,g){var y=kr(u,g,0),b=f[0]-Math.abs(Array.isArray(y)?y[0]:y),x=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,m[0]),Math.max(x,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},_qe=function(t,n,r,o,i){var a=n.map(function(s){return yne(t,s,r,i,o)}).filter(function(s){return!Bt(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},vne=function(t,n,r,o,i){var a=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&yne(t,l,c,o)||tw(t,c,r,i)});if(r==="number")return a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,c){for(var u=0,d=c.length;u<d;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},bne=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},wne=function(t,n,r,o){if(o)return t.map(function(l){return l.coordinate});var i,a,s=t.map(function(l){return l.coordinate===n&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate});return i||s.push(n),a||s.push(r),s},xu=function(t,n,r){if(!t)return null;var o=t.scale,i=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,c=(n||r)&&a==="category"&&o.bandwidth?o.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Li(s[0]-s[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(d){var f=i?i.indexOf(d):d;return{coordinate:o(f)+c,value:d,offset:c}});return u.filter(function(d){return!Nv(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,f){return{coordinate:o(d)+c,value:d,index:f,offset:c}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(d){return{coordinate:o(d)+c,value:d,offset:c}}):o.domain().map(function(d,f){return{coordinate:o(d)+c,value:i?i[d]:d,index:f,offset:c}})},A$=new WeakMap,$C=function(t,n){if(typeof n!="function")return t;A$.has(t)||A$.set(t,new WeakMap);var r=A$.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},xne=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Jw(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:QE(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:ew(),realScaleType:"point"}:i==="category"?{scale:Jw(),realScaleType:"band"}:{scale:QE(),realScaleType:"linear"};if(CS(o)){var l="scale".concat(LI(o));return{scale:(A6[l]||ew)(),realScaleType:A6[l]?l:"point"}}return Ht(o)?{scale:o}:{scale:ew(),realScaleType:"point"}},j6=1e-4,Sne=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-j6,a=Math.max(o[0],o[1])+j6,s=t(n[0]),l=t(n[r-1]);(s<i||s>a||l<i||l>a)&&t.domain([n[0],n[r-1]])}},Lqe=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},Nqe=function(t,n){if(!n||n.length!==2||!at(n[0])||!at(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!at(t[0])||t[0]<r)&&(i[0]=r),(!at(t[1])||t[1]>o)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]<r&&(i[1]=r),i},Fqe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0,s=0;s<n;++s){var l=Nv(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},jqe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0;a<n;++a){var s=Nv(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},Bqe={sign:Fqe,expand:ize,none:Oy,silhouette:aze,wiggle:sze,positive:jqe},zqe=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=Bqe[r],a=oze().keys(o).value(function(s,l){return+kr(s,l,0)}).order(OD).offset(i);return a(t)},Vqe=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,l={},c=s.reduce(function(d,f){var p,m=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Jr(Jr({},f.type.defaultProps),f.props):f.props,g=m.stackId,y=m.hide;if(y)return d;var b=m[r],x=d[b]||{hasStack:!1,stackGroups:{}};if(Mo(g)){var S=x.stackGroups[g]||{numericAxisId:r,cateAxisId:o,items:[]};S.items.push(f),x.hasStack=!0,x.stackGroups[g]=S}else x.stackGroups[Lf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[f]};return Jr(Jr({},d),{},Wg({},b,x))},l),u={};return Object.keys(c).reduce(function(d,f){var p=c[f];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,y){var b=p.stackGroups[y];return Jr(Jr({},g),{},Wg({},y,{numericAxisId:r,cateAxisId:o,items:b.items,stackedData:zqe(t,b.items,i)}))},m)}return Jr(Jr({},d),{},Wg({},f,p))},u)},Cne=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=nqe(c,i,s);return t.domain([JI(u),Yd(u)]),{niceTicks:u}}if(i&&o==="number"){var d=t.domain(),f=rqe(d,i,s);return{niceTicks:f}}return null};function Ly(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Bt(o[t.dataKey])){var s=ME(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=kr(o,Bt(a)?t.dataKey:a);return Bt(l)?null:t.scale(l)}var B6=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var l=kr(a,n.dataKey,n.domain[s]);return Bt(l)?null:n.scale(l)-i/2+o},Hqe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},Uqe=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Jr(Jr({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(Mo(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},Wqe=function(t){return t.reduce(function(n,r){return[JI(r.concat([n[0]]).filter(at)),Yd(r.concat([n[1]]).filter(at))]},[1/0,-1/0])},Pne=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,l=s.reduce(function(c,u){var d=Wqe(u.slice(n,r+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},z6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,V6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,r_=function(t,n,r){if(Ht(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(at(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(z6.test(t[0])){var i=+z6.exec(t[0])[1];o[0]=n[0]-i}else Ht(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(at(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(V6.test(t[1])){var a=+V6.exec(t[1])[1];o[1]=n[1]+a}else Ht(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},oT=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=wj(n,function(d){return d.coordinate}),a=1/0,s=1,l=i.length;s<l;s++){var c=i[s],u=i[s-1];a=Math.min((c.coordinate||0)-(u.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},H6=function(t,n,r){return!t||!t.length||xf(t,qa(r,"type.defaultProps.domain"))?n:t},Ene=function(t,n){var r=t.type.defaultProps?Jr(Jr({},t.type.defaultProps),t.props):t.props,o=r.dataKey,i=r.name,a=r.unit,s=r.formatter,l=r.tooltipType,c=r.chartType,u=r.hide;return Jr(Jr({},At(t,!1)),{},{dataKey:o,unit:a,formatter:s,name:i||o,color:Gj(t),value:kr(n,o),type:l,payload:n,chartType:c,hide:u})};function sx(e){"@babel/helpers - typeof";return sx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sx(e)}function U6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U6(Object(n),!0).forEach(function(r){Tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tne(e,t,n){return t=Gqe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gqe(e){var t=qqe(e,"string");return sx(t)=="symbol"?t:t+""}function qqe(e,t){if(sx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kqe(e,t){return Jqe(e)||Qqe(e,t)||Xqe(e,t)||Yqe()}function Yqe(){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 Xqe(e,t){if(e){if(typeof e=="string")return W6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W6(e,t)}}function W6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Jqe(e){if(Array.isArray(e))return e}var iT=Math.PI/180,Zqe=function(t){return t*180/Math.PI},Sr=function(t,n,r,o){return{x:t+Math.cos(-iT*o)*r,y:n+Math.sin(-iT*o)*r}},One=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},eKe=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=Ni(t.cx,a,a/2),d=Ni(t.cy,s,s/2),f=One(a,s,r),p=Ni(t.innerRadius,f,0),m=Ni(t.outerRadius,f,f*.8),g=Object.keys(n);return g.reduce(function(y,b){var x=n[b],S=x.domain,P=x.reversed,E;if(Bt(x.range))o==="angleAxis"?E=[l,c]:o==="radiusAxis"&&(E=[p,m]),P&&(E=[E[1],E[0]]);else{E=x.range;var T=E,O=Kqe(T,2);l=O[0],c=O[1]}var k=xne(x,i),M=k.realScaleType,I=k.scale;I.domain(S).range(E),Sne(I);var R=Cne(I,uu(uu({},x),{},{realScaleType:M})),_=uu(uu(uu({},x),R),{},{range:E,radius:m,realScaleType:M,scale:I,cx:u,cy:d,innerRadius:p,outerRadius:m,startAngle:l,endAngle:c});return uu(uu({},y),{},Tne({},b,_))},{})},tKe=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},nKe=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=tKe({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var l=(r-i)/s,c=Math.acos(l);return o>a&&(c=2*Math.PI-c),{radius:s,angle:Zqe(c),angleInRadian:c}},rKe=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},oKe=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},G6=function(t,n){var r=t.x,o=t.y,i=nKe({x:r,y:o},n),a=i.radius,s=i.angle,l=n.innerRadius,c=n.outerRadius;if(a<l||a>c)return!1;if(a===0)return!0;var u=rKe(n),d=u.startAngle,f=u.endAngle,p=s,m;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}return m?uu(uu({},n),{},{radius:a,angle:oKe(p,n)}):null},Ine=function(t){return!v.isValidElement(t)&&!Ht(t)&&typeof t!="boolean"?t.className:""};function lx(e){"@babel/helpers - typeof";return lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lx(e)}var iKe=["offset"];function aKe(e){return uKe(e)||cKe(e)||lKe(e)||sKe()}function sKe(){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 lKe(e,t){if(e){if(typeof e=="string")return o_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o_(e,t)}}function cKe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uKe(e){if(Array.isArray(e))return o_(e)}function o_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dKe(e,t){if(e==null)return{};var n=fKe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fKe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q6(Object(n),!0).forEach(function(r){pKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pKe(e,t,n){return t=hKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hKe(e){var t=mKe(e,"string");return lx(t)=="symbol"?t:t+""}function mKe(e,t){if(lx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cx.apply(this,arguments)}var gKe=function(t){var n=t.value,r=t.formatter,o=Bt(t.children)?n:t.children;return Ht(r)?r(o):o},yKe=function(t,n){var r=Li(n-t),o=Math.min(Math.abs(n-t),360);return r*o},vKe=function(t,n,r){var o=t.position,i=t.viewBox,a=t.offset,s=t.className,l=i,c=l.cx,u=l.cy,d=l.innerRadius,f=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,y=(d+f)/2,b=yKe(p,m),x=b>=0?1:-1,S,P;o==="insideStart"?(S=p+x*a,P=g):o==="insideEnd"?(S=m-x*a,P=!g):o==="end"&&(S=m+x*a,P=g),P=b<=0?P:!P;var E=Sr(c,u,y,S),T=Sr(c,u,y,S+(P?1:-1)*359),O="M".concat(E.x,",").concat(E.y,`
+ height and width.`,N,F,a,l,u,d,n);var U=!Array.isArray(p)&&Lu(p.type).endsWith("Chart");return Y.Children.map(p,function(z){return Y.isValidElement(z)?v.cloneElement(z,QC({width:N,height:F},U?{style:QC({height:"100%",width:"100%",maxHeight:F,maxWidth:N},z.props.style)}:{})):z})},[n,p,l,f,d,u,M,a]);return Y.createElement("div",{id:y?"".concat(y):void 0,className:pe("recharts-responsive-container",b),style:QC(QC({},P),{},{width:a,height:l,minWidth:u,minHeight:d,maxHeight:f}),ref:E},_)}),cb=function(t){return null};cb.displayName="Cell";function wx(e){"@babel/helpers - typeof";return wx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wx(e)}function P6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function C_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(n),!0).forEach(function(r){l8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l8e(e,t,n){return t=c8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c8e(e){var t=u8e(e,"string");return wx(t)=="symbol"?t:t+""}function u8e(e,t){if(wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ym={widthCache:{},cacheCount:0},d8e=2e3,f8e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},E6="recharts_measurement_span";function p8e(e){var t=C_({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Cw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||rl.isSsr)return{width:0,height:0};var r=p8e(n),o=JSON.stringify({text:t,copyStyle:r});if(Ym.widthCache[o])return Ym.widthCache[o];try{var i=document.getElementById(E6);i||(i=document.createElement("span"),i.setAttribute("id",E6),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=C_(C_({},f8e),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Ym.widthCache[o]=l,++Ym.cacheCount>d8e&&(Ym.cacheCount=0,Ym.widthCache={}),l}catch{return{width:0,height:0}}},h8e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function xx(e){"@babel/helpers - typeof";return xx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xx(e)}function gT(e,t){return v8e(e)||y8e(e,t)||g8e(e,t)||m8e()}function m8e(){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 g8e(e,t){if(e){if(typeof e=="string")return T6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T6(e,t)}}function T6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function v8e(e){if(Array.isArray(e))return e}function b8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x8e(r.key),r)}}function w8e(e,t,n){return t&&O6(e.prototype,t),n&&O6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x8e(e){var t=S8e(e,"string");return xx(t)=="symbol"?t:t+""}function S8e(e,t){if(xx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var I6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,k6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,C8e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,P8e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,yne={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},E8e=Object.keys(yne),Lg="NaN";function T8e(e,t){return e*yne[t]}var JC=function(){function e(t,n){b8e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!C8e.test(n)&&(this.num=NaN,this.unit=""),E8e.includes(n)&&(this.num=T8e(t,n),this.unit="px")}return w8e(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,o=(r=P8e.exec(n))!==null&&r!==void 0?r:[],i=gT(o,3),a=i[1],s=i[2];return new e(parseFloat(a),s??"")}}])}();function vne(e){if(e.includes(Lg))return Lg;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=I6.exec(t))!==null&&n!==void 0?n:[],o=gT(r,4),i=o[1],a=o[2],s=o[3],l=JC.parse(i??""),c=JC.parse(s??""),u=a==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Lg;t=t.replace(I6,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,f=(d=k6.exec(t))!==null&&d!==void 0?d:[],p=gT(f,4),m=p[1],g=p[2],y=p[3],b=JC.parse(m??""),x=JC.parse(y??""),S=g==="+"?b.add(x):b.subtract(x);if(S.isNaN())return Lg;t=t.replace(k6,S.toString())}return t}var M6=/\(([^()]*)\)/;function O8e(e){for(var t=e;t.includes("(");){var n=M6.exec(t),r=gT(n,2),o=r[1];t=t.replace(M6,vne(o))}return t}function I8e(e){var t=e.replace(/\s+/g,"");return t=O8e(t),t=vne(t),t}function k8e(e){try{return I8e(e)}catch{return Lg}}function oR(e){var t=k8e(e.slice(5,-1));return t===Lg?"":t}var M8e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],A8e=["dx","dy","angle","className","breakAll"];function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P_.apply(this,arguments)}function A6(e,t){if(e==null)return{};var n=$8e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $6(e,t){return L8e(e)||_8e(e,t)||D8e(e,t)||R8e()}function R8e(){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 D8e(e,t){if(e){if(typeof e=="string")return R6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R6(e,t)}}function R6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function L8e(e){if(Array.isArray(e))return e}var bne=/[ \f\n\r\t\v\u2028\u2029]+/,wne=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var i=[];zt(n)||(r?i=n.toString().split(""):i=n.toString().split(bne));var a=i.map(function(l){return{word:l,width:Cw(l,o).width}}),s=r?0:Cw(" ",o).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},N8e=function(t,n,r,o,i){var a=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=at(a),d=s,f=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(F,U){var z=U.word,V=U.width,W=F[F.length-1];if(W&&(o==null||i||W.width+V+r<Number(o)))W.words.push(z),W.width+=V+r;else{var G={words:[z],width:V};F.push(G)}return F},[])},p=f(n),m=function(N){return N.reduce(function(F,U){return F.width>U.width?F:U})};if(!u)return p;for(var g="…",y=function(N){var F=d.slice(0,N),U=wne({breakAll:c,style:l,children:F+g}).wordsWithComputedWidth,z=f(U),V=z.length>a||m(z).width>Number(o);return[V,z]},b=0,x=d.length-1,S=0,P;b<=x&&S<=d.length-1;){var E=Math.floor((b+x)/2),T=E-1,O=y(T),k=$6(O,2),M=k[0],I=k[1],R=y(E),_=$6(R,1),L=_[0];if(!M&&!L&&(b=E+1),M&&L&&(x=E-1),!M&&L){P=I;break}S++}return P||p},D6=function(t){var n=zt(t)?[]:t.toString().split(bne);return[{words:n}]},F8e=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!rl.isSsr){var l,c,u=wne({breakAll:a,children:o,style:i});if(u){var d=u.wordsWithComputedWidth,f=u.spaceWidth;l=d,c=f}else return D6(o);return N8e({breakAll:a,children:o,maxLines:s,style:i},l,c,n,r)}return D6(o)},_6="#808080",Lh=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,d=u===void 0?!1:u,f=t.textAnchor,p=f===void 0?"start":f,m=t.verticalAnchor,g=m===void 0?"end":m,y=t.fill,b=y===void 0?_6:y,x=A6(t,M8e),S=v.useMemo(function(){return F8e({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),P=x.dx,E=x.dy,T=x.angle,O=x.className,k=x.breakAll,M=A6(x,A8e);if(!_o(r)||!_o(i))return null;var I=r+(at(P)?P:0),R=i+(at(E)?E:0),_;switch(g){case"start":_=oR("calc(".concat(c,")"));break;case"middle":_=oR("calc(".concat((S.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:_=oR("calc(".concat(S.length-1," * -").concat(s,")"));break}var L=[];if(d){var j=S[0].width,N=x.width;L.push("scale(".concat((at(N)?N/j:1)/j,")"))}return T&&L.push("rotate(".concat(T,", ").concat(I,", ").concat(R,")")),L.length&&(M.transform=L.join(" ")),Y.createElement("text",P_({},$t(M,!0),{x:I,y:R,className:pe("recharts-text",O),textAnchor:p,fill:b.includes("url")?_6:b}),S.map(function(F,U){var z=F.words.join(k?"":" ");return Y.createElement("tspan",{x:I,dy:U===0?_:s,key:"".concat(z,"-").concat(U)},z)}))};function Ef(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function j8e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aB(e){let t,n,r;e.length!==2?(t=Ef,n=(s,l)=>Ef(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ef||e===j8e?e:B8e,n=e,r=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function B8e(){return 0}function xne(e){return e===null?NaN:+e}function*z8e(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const V8e=aB(Ef),qS=V8e.right;aB(xne).center;class L6 extends Map{constructor(t,n=W8e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(N6(this,t))}has(t){return super.has(N6(this,t))}set(t,n){return super.set(H8e(this,t),n)}delete(t){return super.delete(U8e(this,t))}}function N6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function H8e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function U8e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function W8e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function G8e(e=Ef){if(e===Ef)return Sne;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Sne(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const q8e=Math.sqrt(50),K8e=Math.sqrt(10),Y8e=Math.sqrt(2);function yT(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=q8e?10:i>=K8e?5:i>=Y8e?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?yT(e,t,n*2):[s,l,c]}function E_(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?yT(t,e,n):yT(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function T_(e,t,n){return t=+t,e=+e,n=+n,yT(e,t,n)[2]}function O_(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?T_(t,e,n):T_(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function F6(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function j6(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Cne(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?Sne:G8e(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+f)),m=Math.min(r,Math.floor(t+(l-c)*d/l+f));Cne(e,t,p,m,o)}const i=e[t];let a=n,s=r;for(w0(e,n,t),o(e[r],i)>0&&w0(e,n,r);a<s;){for(w0(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?w0(e,n,s):(++s,w0(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function w0(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function X8e(e,t,n){if(e=Float64Array.from(z8e(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return j6(e);if(t>=1)return F6(e);var r,o=(r-1)*t,i=Math.floor(o),a=F6(Cne(e,i).subarray(0,i+1)),s=j6(e.subarray(i+1));return a+(s-a)*(o-i)}}function Q8e(e,t,n=xne){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function J8e(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function ml(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function md(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const I_=Symbol("implicit");function sB(){var e=new L6,t=[],n=[],r=I_;function o(i){let a=e.get(i);if(a===void 0){if(r!==I_)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new L6;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return sB(t,n).unknown(r)},ml.apply(o,arguments),o}function Sx(){var e=sB().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=o<r,m=p?o:r,g=p?r:o;i=(g-m)/Math.max(1,f-l+c*2),s&&(i=Math.floor(i)),m+=(g-m-i*(f-l))*u,a=i*(1-l),s&&(m=Math.round(m),a=Math.round(a));var y=J8e(f).map(function(b){return m+i*b});return n(p?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,o]=f,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(f){return[r,o]=f,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Sx(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},ml.apply(d(),arguments)}function Pne(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Pne(t())},e}function Pw(){return Pne(Sx.apply(null,arguments).paddingInner(1))}function lB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ene(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function KS(){}var Cx=.7,vT=1/Cx,ly="\\s*([+-]?\\d+)\\s*",Px="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Z8e=/^#([0-9a-f]{3,8})$/,e9e=new RegExp(`^rgb\\(${ly},${ly},${ly}\\)$`),t9e=new RegExp(`^rgb\\(${Fc},${Fc},${Fc}\\)$`),n9e=new RegExp(`^rgba\\(${ly},${ly},${ly},${Px}\\)$`),r9e=new RegExp(`^rgba\\(${Fc},${Fc},${Fc},${Px}\\)$`),o9e=new RegExp(`^hsl\\(${Px},${Fc},${Fc}\\)$`),i9e=new RegExp(`^hsla\\(${Px},${Fc},${Fc},${Px}\\)$`),B6={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lB(KS,Ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z6,formatHex:z6,formatHex8:a9e,formatHsl:s9e,formatRgb:V6,toString:V6});function z6(){return this.rgb().formatHex()}function a9e(){return this.rgb().formatHex8()}function s9e(){return Tne(this).formatHsl()}function V6(){return this.rgb().formatRgb()}function Ex(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Z8e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?H6(t):n===3?new ga(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ZC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ZC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=e9e.exec(e))?new ga(t[1],t[2],t[3],1):(t=t9e.exec(e))?new ga(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=n9e.exec(e))?ZC(t[1],t[2],t[3],t[4]):(t=r9e.exec(e))?ZC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=o9e.exec(e))?G6(t[1],t[2]/100,t[3]/100,1):(t=i9e.exec(e))?G6(t[1],t[2]/100,t[3]/100,t[4]):B6.hasOwnProperty(e)?H6(B6[e]):e==="transparent"?new ga(NaN,NaN,NaN,0):null}function H6(e){return new ga(e>>16&255,e>>8&255,e&255,1)}function ZC(e,t,n,r){return r<=0&&(e=t=n=NaN),new ga(e,t,n,r)}function l9e(e){return e instanceof KS||(e=Ex(e)),e?(e=e.rgb(),new ga(e.r,e.g,e.b,e.opacity)):new ga}function k_(e,t,n,r){return arguments.length===1?l9e(e):new ga(e,t,n,r??1)}function ga(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lB(ga,k_,Ene(KS,{brighter(e){return e=e==null?vT:Math.pow(vT,e),new ga(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cx:Math.pow(Cx,e),new ga(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ga(gh(this.r),gh(this.g),gh(this.b),bT(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U6,formatHex:U6,formatHex8:c9e,formatRgb:W6,toString:W6}));function U6(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}`}function c9e(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}${Jp((isNaN(this.opacity)?1:this.opacity)*255)}`}function W6(){const e=bT(this.opacity);return`${e===1?"rgb(":"rgba("}${gh(this.r)}, ${gh(this.g)}, ${gh(this.b)}${e===1?")":`, ${e})`}`}function bT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jp(e){return e=gh(e),(e<16?"0":"")+e.toString(16)}function G6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gl(e,t,n,r)}function Tne(e){if(e instanceof Gl)return new Gl(e.h,e.s,e.l,e.opacity);if(e instanceof KS||(e=Ex(e)),!e)return new Gl;if(e instanceof Gl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Gl(a,s,l,e.opacity)}function u9e(e,t,n,r){return arguments.length===1?Tne(e):new Gl(e,t,n,r??1)}function Gl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lB(Gl,u9e,Ene(KS,{brighter(e){return e=e==null?vT:Math.pow(vT,e),new Gl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cx:Math.pow(Cx,e),new Gl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ga(iR(e>=240?e-240:e+120,o,r),iR(e,o,r),iR(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Gl(q6(this.h),eP(this.s),eP(this.l),bT(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=bT(this.opacity);return`${e===1?"hsl(":"hsla("}${q6(this.h)}, ${eP(this.s)*100}%, ${eP(this.l)*100}%${e===1?")":`, ${e})`}`}}));function q6(e){return e=(e||0)%360,e<0?e+360:e}function eP(e){return Math.max(0,Math.min(1,e||0))}function iR(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cB=e=>()=>e;function d9e(e,t){return function(n){return e+n*t}}function f9e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function p9e(e){return(e=+e)==1?One:function(t,n){return n-t?f9e(t,n,e):cB(isNaN(t)?n:t)}}function One(e,t){var n=t-e;return n?d9e(e,n):cB(isNaN(e)?t:e)}const K6=function e(t){var n=p9e(t);function r(o,i){var a=n((o=k_(o)).r,(i=k_(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=One(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function h9e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function m9e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g9e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=ub(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function y9e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function wT(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function v9e(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=ub(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var M_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aR=new RegExp(M_.source,"g");function b9e(e){return function(){return e}}function w9e(e){return function(t){return e(t)+""}}function x9e(e,t){var n=M_.lastIndex=aR.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=M_.exec(e))&&(o=aR.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:wT(r,o)})),n=aR.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?w9e(l[0].x):b9e(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function ub(e,t){var n=typeof t,r;return t==null||n==="boolean"?cB(t):(n==="number"?wT:n==="string"?(r=Ex(t))?(t=r,K6):x9e:t instanceof Ex?K6:t instanceof Date?y9e:m9e(t)?h9e:Array.isArray(t)?g9e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?v9e:wT)(e,t)}function uB(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function S9e(e,t){t===void 0&&(t=e,e=ub);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function C9e(e){return function(){return e}}function xT(e){return+e}var Y6=[0,1];function Wi(e){return e}function A_(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:C9e(isNaN(t)?NaN:.5)}function P9e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function E9e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=A_(o,r),i=n(a,i)):(r=A_(r,o),i=n(i,a)),function(s){return i(r(s))}}function T9e(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=A_(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var l=qS(e,s,1,r)-1;return i[l](o[l](s))}}function YS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vk(){var e=Y6,t=Y6,n=ub,r,o,i,a=Wi,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Wi&&(a=P9e(e[0],e[f-1])),s=f>2?T9e:E9e,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((c||(c=s(t,e.map(r),wT)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,xT),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=uB,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Wi,u()):a!==Wi},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,o=p,u()}}function dB(){return vk()(Wi,Wi)}function O9e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ST(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ev(e){return e=ST(Math.abs(e)),e?e[1]:NaN}function I9e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function k9e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var M9e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tx(e){if(!(t=M9e.exec(e)))throw new Error("invalid format: "+e);var t;return new fB({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tx.prototype=fB.prototype;function fB(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fB.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function A9e(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Ine;function $9e(e,t){var n=ST(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Ine=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ST(e,Math.max(0,t+i-1))[0]}function X6(e,t){var n=ST(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Q6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:O9e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>X6(e*100,t),r:X6,s:$9e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function J6(e){return e}var Z6=Array.prototype.map,eG=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function R9e(e){var t=e.grouping===void 0||e.thousands===void 0?J6:I9e(Z6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?J6:k9e(Z6.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Tx(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,y=d.zero,b=d.width,x=d.comma,S=d.precision,P=d.trim,E=d.type;E==="n"?(x=!0,E="g"):Q6[E]||(S===void 0&&(S=12),P=!0,E="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var T=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",O=g==="$"?r:/[%p]/.test(E)?a:"",k=Q6[E],M=/[defgprs%]/.test(E);S=S===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(R){var _=T,L=O,j,N,F;if(E==="c")L=k(R)+L,R="";else{R=+R;var U=R<0||1/R<0;if(R=isNaN(R)?l:k(Math.abs(R),S),P&&(R=A9e(R)),U&&+R==0&&m!=="+"&&(U=!1),_=(U?m==="("?m:s:m==="-"||m==="("?"":m)+_,L=(E==="s"?eG[8+Ine/3]:"")+L+(U&&m==="("?")":""),M){for(j=-1,N=R.length;++j<N;)if(F=R.charCodeAt(j),48>F||F>57){L=(F===46?o+R.slice(j+1):R.slice(j))+L,R=R.slice(0,j);break}}}x&&!y&&(R=t(R,1/0));var z=_.length+R.length+L.length,V=z<b?new Array(b-z+1).join(f):"";switch(x&&y&&(R=t(V+R,V.length?b-L.length:1/0),V=""),p){case"<":R=_+R+L+V;break;case"=":R=_+V+R+L;break;case"^":R=V.slice(0,z=V.length>>1)+_+R+L+V.slice(z);break;default:R=V+_+R+L;break}return i(R)}return I.toString=function(){return d+""},I}function u(d,f){var p=c((d=Tx(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ev(f)/3)))*3,g=Math.pow(10,-m),y=eG[8+m/3];return function(b){return p(g*b)+y}}return{format:c,formatPrefix:u}}var tP,pB,kne;D9e({thousands:",",grouping:[3],currency:["$",""]});function D9e(e){return tP=R9e(e),pB=tP.format,kne=tP.formatPrefix,tP}function _9e(e){return Math.max(0,-ev(Math.abs(e)))}function L9e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ev(t)/3)))*3-ev(Math.abs(e)))}function N9e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ev(t)-ev(e))+1}function Mne(e,t,n,r){var o=O_(e,t,n),i;switch(r=Tx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=L9e(o,a))&&(r.precision=i),kne(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=N9e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_9e(o))&&(r.precision=i-(r.type==="%")*2);break}}return pB(r)}function ep(e){var t=e.domain;return e.ticks=function(n){var r=t();return E_(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Mne(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=T_(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function CT(){var e=dB();return e.copy=function(){return YS(e,CT())},ml.apply(e,arguments),ep(e)}function Ane(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,xT),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Ane(e).unknown(t)},e=arguments.length?Array.from(e,xT):[0,1],ep(n)}function $ne(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function tG(e){return Math.log(e)}function nG(e){return Math.exp(e)}function F9e(e){return-Math.log(-e)}function j9e(e){return-Math.exp(-e)}function B9e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function z9e(e){return e===10?B9e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function V9e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function rG(e){return(t,n)=>-e(-t,n)}function hB(e){const t=e(tG,nG),n=t.domain;let r=10,o,i;function a(){return o=V9e(r),i=z9e(r),n()[0]<0?(o=rG(o),i=rG(i),e(F9e,j9e)):e(tG,nG),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=o(c),p=o(u),m,g;const y=s==null?10:+s;let b=[];if(!(r%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<r;++m)if(g=f<0?m/i(-f):m*i(f),!(g<c)){if(g>u)break;b.push(g)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/i(-f):m*i(f),!(g<c)){if(g>u)break;b.push(g)}b.length*2<y&&(b=E_(c,u,y))}else b=E_(f,p,Math.min(p-f,y)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Tx(l)).precision==null&&(l.trim=!0),l=pB(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n($ne(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function Rne(){const e=hB(vk()).domain([1,10]);return e.copy=()=>YS(e,Rne()).base(e.base()),ml.apply(e,arguments),e}function oG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iG(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mB(e){var t=1,n=e(oG(t),iG(t));return n.constant=function(r){return arguments.length?e(oG(t=+r),iG(t)):t},ep(n)}function Dne(){var e=mB(vk());return e.copy=function(){return YS(e,Dne()).constant(e.constant())},ml.apply(e,arguments)}function aG(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function H9e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function U9e(e){return e<0?-e*e:e*e}function gB(e){var t=e(Wi,Wi),n=1;function r(){return n===1?e(Wi,Wi):n===.5?e(H9e,U9e):e(aG(n),aG(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},ep(t)}function yB(){var e=gB(vk());return e.copy=function(){return YS(e,yB()).exponent(e.exponent())},ml.apply(e,arguments),e}function W9e(){return yB.apply(null,arguments).exponent(.5)}function sG(e){return Math.sign(e)*e*e}function G9e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function _ne(){var e=dB(),t=[0,1],n=!1,r;function o(i){var a=G9e(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(sG(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,xT)).map(sG)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return _ne(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ml.apply(o,arguments),ep(o)}function Lne(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=Q8e(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[qS(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ef),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return Lne().domain(e).range(t).unknown(r)},ml.apply(i,arguments)}function Nne(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[qS(r,l,0,n)]:i}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Nne().domain([e,t]).range(o).unknown(i)},ml.apply(ep(a),arguments)}function Fne(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[qS(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Fne().domain(e).range(t).unknown(n)},ml.apply(o,arguments)}const sR=new Date,lR=new Date;function No(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>No(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(sR.setTime(+i),lR.setTime(+a),e(sR),e(lR),Math.floor(n(sR,lR))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const PT=No(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);PT.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?No(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):PT);PT.range;const Au=1e3,qs=Au*60,$u=qs*60,id=$u*24,vB=id*7,lG=id*30,cR=id*365,Zp=No(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Au)},(e,t)=>(t-e)/Au,e=>e.getUTCSeconds());Zp.range;const bB=No(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Au)},(e,t)=>{e.setTime(+e+t*qs)},(e,t)=>(t-e)/qs,e=>e.getMinutes());bB.range;const wB=No(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qs)},(e,t)=>(t-e)/qs,e=>e.getUTCMinutes());wB.range;const xB=No(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Au-e.getMinutes()*qs)},(e,t)=>{e.setTime(+e+t*$u)},(e,t)=>(t-e)/$u,e=>e.getHours());xB.range;const SB=No(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$u)},(e,t)=>(t-e)/$u,e=>e.getUTCHours());SB.range;const XS=No(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qs)/id,e=>e.getDate()-1);XS.range;const bk=No(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/id,e=>e.getUTCDate()-1);bk.range;const jne=No(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/id,e=>Math.floor(e/id));jne.range;function tm(e){return No(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qs)/vB)}const wk=tm(0),ET=tm(1),q9e=tm(2),K9e=tm(3),tv=tm(4),Y9e=tm(5),X9e=tm(6);wk.range;ET.range;q9e.range;K9e.range;tv.range;Y9e.range;X9e.range;function nm(e){return No(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vB)}const xk=nm(0),TT=nm(1),Q9e=nm(2),J9e=nm(3),nv=nm(4),Z9e=nm(5),e7e=nm(6);xk.range;TT.range;Q9e.range;J9e.range;nv.range;Z9e.range;e7e.range;const CB=No(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());CB.range;const PB=No(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());PB.range;const ad=No(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ad.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:No(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ad.range;const sd=No(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());sd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:No(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});sd.range;function Bne(e,t,n,r,o,i){const a=[[Zp,1,Au],[Zp,5,5*Au],[Zp,15,15*Au],[Zp,30,30*Au],[i,1,qs],[i,5,5*qs],[i,15,15*qs],[i,30,30*qs],[o,1,$u],[o,3,3*$u],[o,6,6*$u],[o,12,12*$u],[r,1,id],[r,2,2*id],[n,1,vB],[t,1,lG],[t,3,3*lG],[e,1,cR]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),m=p?p.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,p=aB(([,,y])=>y).right(a,f);if(p===a.length)return e.every(O_(c/cR,u/cR,d));if(p===0)return PT.every(Math.max(O_(c,u,d),1));const[m,g]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return m.every(g)}return[s,l]}const[t7e,n7e]=Bne(sd,PB,xk,jne,SB,wB),[r7e,o7e]=Bne(ad,CB,wk,XS,xB,bB);function uR(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dR(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function x0(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function i7e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=S0(o),u=C0(o),d=S0(i),f=C0(i),p=S0(a),m=C0(a),g=S0(s),y=C0(s),b=S0(l),x=C0(l),S={a:U,A:z,b:V,B:W,c:null,d:hG,e:hG,f:I7e,g:F7e,G:B7e,H:E7e,I:T7e,j:O7e,L:zne,m:k7e,M:M7e,p:G,q:J,Q:yG,s:vG,S:A7e,u:$7e,U:R7e,V:D7e,w:_7e,W:L7e,x:null,X:null,y:N7e,Y:j7e,Z:z7e,"%":gG},P={a:K,A:ne,b:re,B:oe,c:null,d:mG,e:mG,f:W7e,g:tqe,G:rqe,H:V7e,I:H7e,j:U7e,L:Hne,m:G7e,M:q7e,p:fe,q:se,Q:yG,s:vG,S:K7e,u:Y7e,U:X7e,V:Q7e,w:J7e,W:Z7e,x:null,X:null,y:eqe,Y:nqe,Z:oqe,"%":gG},E={a:I,A:R,b:_,B:L,c:j,d:fG,e:fG,f:x7e,g:dG,G:uG,H:pG,I:pG,j:y7e,L:w7e,m:g7e,M:v7e,p:M,q:m7e,Q:C7e,s:P7e,S:b7e,u:u7e,U:d7e,V:f7e,w:c7e,W:p7e,x:N,X:F,y:dG,Y:uG,Z:h7e,"%":S7e};S.x=T(n,S),S.X=T(r,S),S.c=T(t,S),P.x=T(n,P),P.X=T(r,P),P.c=T(t,P);function T(ee,ce){return function(le){var Q=[],ue=-1,ge=0,xe=ee.length,me,be,we;for(le instanceof Date||(le=new Date(+le));++ue<xe;)ee.charCodeAt(ue)===37&&(Q.push(ee.slice(ge,ue)),(be=cG[me=ee.charAt(++ue)])!=null?me=ee.charAt(++ue):be=me==="e"?" ":"0",(we=ce[me])&&(me=we(le,be)),Q.push(me),ge=ue+1);return Q.push(ee.slice(ge,ue)),Q.join("")}}function O(ee,ce){return function(le){var Q=x0(1900,void 0,1),ue=k(Q,ee,le+="",0),ge,xe;if(ue!=le.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(ce&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(ge=dR(x0(Q.y,0,1)),xe=ge.getUTCDay(),ge=xe>4||xe===0?TT.ceil(ge):TT(ge),ge=bk.offset(ge,(Q.V-1)*7),Q.y=ge.getUTCFullYear(),Q.m=ge.getUTCMonth(),Q.d=ge.getUTCDate()+(Q.w+6)%7):(ge=uR(x0(Q.y,0,1)),xe=ge.getDay(),ge=xe>4||xe===0?ET.ceil(ge):ET(ge),ge=XS.offset(ge,(Q.V-1)*7),Q.y=ge.getFullYear(),Q.m=ge.getMonth(),Q.d=ge.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),xe="Z"in Q?dR(x0(Q.y,0,1)).getUTCDay():uR(x0(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(xe+5)%7:Q.w+Q.U*7-(xe+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,dR(Q)):uR(Q)}}function k(ee,ce,le,Q){for(var ue=0,ge=ce.length,xe=le.length,me,be;ue<ge;){if(Q>=xe)return-1;if(me=ce.charCodeAt(ue++),me===37){if(me=ce.charAt(ue++),be=E[me in cG?ce.charAt(ue++):me],!be||(Q=be(ee,le,Q))<0)return-1}else if(me!=le.charCodeAt(Q++))return-1}return Q}function M(ee,ce,le){var Q=c.exec(ce.slice(le));return Q?(ee.p=u.get(Q[0].toLowerCase()),le+Q[0].length):-1}function I(ee,ce,le){var Q=p.exec(ce.slice(le));return Q?(ee.w=m.get(Q[0].toLowerCase()),le+Q[0].length):-1}function R(ee,ce,le){var Q=d.exec(ce.slice(le));return Q?(ee.w=f.get(Q[0].toLowerCase()),le+Q[0].length):-1}function _(ee,ce,le){var Q=b.exec(ce.slice(le));return Q?(ee.m=x.get(Q[0].toLowerCase()),le+Q[0].length):-1}function L(ee,ce,le){var Q=g.exec(ce.slice(le));return Q?(ee.m=y.get(Q[0].toLowerCase()),le+Q[0].length):-1}function j(ee,ce,le){return k(ee,t,ce,le)}function N(ee,ce,le){return k(ee,n,ce,le)}function F(ee,ce,le){return k(ee,r,ce,le)}function U(ee){return a[ee.getDay()]}function z(ee){return i[ee.getDay()]}function V(ee){return l[ee.getMonth()]}function W(ee){return s[ee.getMonth()]}function G(ee){return o[+(ee.getHours()>=12)]}function J(ee){return 1+~~(ee.getMonth()/3)}function K(ee){return a[ee.getUTCDay()]}function ne(ee){return i[ee.getUTCDay()]}function re(ee){return l[ee.getUTCMonth()]}function oe(ee){return s[ee.getUTCMonth()]}function fe(ee){return o[+(ee.getUTCHours()>=12)]}function se(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var ce=T(ee+="",S);return ce.toString=function(){return ee},ce},parse:function(ee){var ce=O(ee+="",!1);return ce.toString=function(){return ee},ce},utcFormat:function(ee){var ce=T(ee+="",P);return ce.toString=function(){return ee},ce},utcParse:function(ee){var ce=O(ee+="",!0);return ce.toString=function(){return ee},ce}}}var cG={"-":"",_:" ",0:"0"},Zo=/^\s*\d+/,a7e=/^%/,s7e=/[\\^$*+?|[\]().{}]/g;function Un(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function l7e(e){return e.replace(s7e,"\\$&")}function S0(e){return new RegExp("^(?:"+e.map(l7e).join("|")+")","i")}function C0(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function c7e(e,t,n){var r=Zo.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function u7e(e,t,n){var r=Zo.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function d7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function f7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function p7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uG(e,t,n){var r=Zo.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dG(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function h7e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m7e(e,t,n){var r=Zo.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function g7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function fG(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function y7e(e,t,n){var r=Zo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function pG(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function b7e(e,t,n){var r=Zo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function w7e(e,t,n){var r=Zo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x7e(e,t,n){var r=Zo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function S7e(e,t,n){var r=a7e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C7e(e,t,n){var r=Zo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function P7e(e,t,n){var r=Zo.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hG(e,t){return Un(e.getDate(),t,2)}function E7e(e,t){return Un(e.getHours(),t,2)}function T7e(e,t){return Un(e.getHours()%12||12,t,2)}function O7e(e,t){return Un(1+XS.count(ad(e),e),t,3)}function zne(e,t){return Un(e.getMilliseconds(),t,3)}function I7e(e,t){return zne(e,t)+"000"}function k7e(e,t){return Un(e.getMonth()+1,t,2)}function M7e(e,t){return Un(e.getMinutes(),t,2)}function A7e(e,t){return Un(e.getSeconds(),t,2)}function $7e(e){var t=e.getDay();return t===0?7:t}function R7e(e,t){return Un(wk.count(ad(e)-1,e),t,2)}function Vne(e){var t=e.getDay();return t>=4||t===0?tv(e):tv.ceil(e)}function D7e(e,t){return e=Vne(e),Un(tv.count(ad(e),e)+(ad(e).getDay()===4),t,2)}function _7e(e){return e.getDay()}function L7e(e,t){return Un(ET.count(ad(e)-1,e),t,2)}function N7e(e,t){return Un(e.getFullYear()%100,t,2)}function F7e(e,t){return e=Vne(e),Un(e.getFullYear()%100,t,2)}function j7e(e,t){return Un(e.getFullYear()%1e4,t,4)}function B7e(e,t){var n=e.getDay();return e=n>=4||n===0?tv(e):tv.ceil(e),Un(e.getFullYear()%1e4,t,4)}function z7e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Un(t/60|0,"0",2)+Un(t%60,"0",2)}function mG(e,t){return Un(e.getUTCDate(),t,2)}function V7e(e,t){return Un(e.getUTCHours(),t,2)}function H7e(e,t){return Un(e.getUTCHours()%12||12,t,2)}function U7e(e,t){return Un(1+bk.count(sd(e),e),t,3)}function Hne(e,t){return Un(e.getUTCMilliseconds(),t,3)}function W7e(e,t){return Hne(e,t)+"000"}function G7e(e,t){return Un(e.getUTCMonth()+1,t,2)}function q7e(e,t){return Un(e.getUTCMinutes(),t,2)}function K7e(e,t){return Un(e.getUTCSeconds(),t,2)}function Y7e(e){var t=e.getUTCDay();return t===0?7:t}function X7e(e,t){return Un(xk.count(sd(e)-1,e),t,2)}function Une(e){var t=e.getUTCDay();return t>=4||t===0?nv(e):nv.ceil(e)}function Q7e(e,t){return e=Une(e),Un(nv.count(sd(e),e)+(sd(e).getUTCDay()===4),t,2)}function J7e(e){return e.getUTCDay()}function Z7e(e,t){return Un(TT.count(sd(e)-1,e),t,2)}function eqe(e,t){return Un(e.getUTCFullYear()%100,t,2)}function tqe(e,t){return e=Une(e),Un(e.getUTCFullYear()%100,t,2)}function nqe(e,t){return Un(e.getUTCFullYear()%1e4,t,4)}function rqe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?nv(e):nv.ceil(e),Un(e.getUTCFullYear()%1e4,t,4)}function oqe(){return"+0000"}function gG(){return"%"}function yG(e){return+e}function vG(e){return Math.floor(+e/1e3)}var Xm,Wne,Gne;iqe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function iqe(e){return Xm=i7e(e),Wne=Xm.format,Xm.parse,Gne=Xm.utcFormat,Xm.utcParse,Xm}function aqe(e){return new Date(e)}function sqe(e){return e instanceof Date?+e:+new Date(+e)}function EB(e,t,n,r,o,i,a,s,l,c){var u=dB(),d=u.invert,f=u.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),P=c("%Y");function E(T){return(l(T)<T?p:s(T)<T?m:a(T)<T?g:i(T)<T?y:r(T)<T?o(T)<T?b:x:n(T)<T?S:P)(T)}return u.invert=function(T){return new Date(d(T))},u.domain=function(T){return arguments.length?f(Array.from(T,sqe)):f().map(aqe)},u.ticks=function(T){var O=f();return e(O[0],O[O.length-1],T??10)},u.tickFormat=function(T,O){return O==null?E:c(O)},u.nice=function(T){var O=f();return(!T||typeof T.range!="function")&&(T=t(O[0],O[O.length-1],T??10)),T?f($ne(O,T)):u},u.copy=function(){return YS(u,EB(e,t,n,r,o,i,a,s,l,c))},u}function lqe(){return ml.apply(EB(r7e,o7e,ad,CB,wk,XS,xB,bB,Zp,Wne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cqe(){return ml.apply(EB(t7e,n7e,sd,PB,xk,bk,SB,wB,Zp,Gne).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Sk(){var e=0,t=1,n,r,o,i,a=Wi,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var p,m;return arguments.length?([p,m]=f,a=d(p,m),c):[a(0),a(1)]}}return c.range=u(ub),c.rangeRound=u(uB),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function tp(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qne(){var e=ep(Sk()(Wi));return e.copy=function(){return tp(e,qne())},md.apply(e,arguments)}function Kne(){var e=hB(Sk()).domain([1,10]);return e.copy=function(){return tp(e,Kne()).base(e.base())},md.apply(e,arguments)}function Yne(){var e=mB(Sk());return e.copy=function(){return tp(e,Yne()).constant(e.constant())},md.apply(e,arguments)}function TB(){var e=gB(Sk());return e.copy=function(){return tp(e,TB()).exponent(e.exponent())},md.apply(e,arguments)}function uqe(){return TB.apply(null,arguments).exponent(.5)}function Xne(){var e=[],t=Wi;function n(r){if(r!=null&&!isNaN(r=+r))return t((qS(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ef),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>X8e(e,i/r))},n.copy=function(){return Xne(t).domain(e)},md.apply(n,arguments)}function Ck(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=Wi,u,d=!1,f;function p(g){return isNaN(g=+g)?f:(g=.5+((g=+u(g))-i)*(r*g<r*i?s:l),c(d?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,o=u(e=+e),i=u(t=+t),a=u(n=+n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(d=!!g,p):d},p.interpolator=function(g){return arguments.length?(c=g,p):c};function m(g){return function(y){var b,x,S;return arguments.length?([b,x,S]=y,c=S9e(g,[b,x,S]),p):[c(0),c(.5),c(1)]}}return p.range=m(ub),p.rangeRound=m(uB),p.unknown=function(g){return arguments.length?(f=g,p):f},function(g){return u=g,o=g(e),i=g(t),a=g(n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p}}function Qne(){var e=ep(Ck()(Wi));return e.copy=function(){return tp(e,Qne())},md.apply(e,arguments)}function Jne(){var e=hB(Ck()).domain([.1,1,10]);return e.copy=function(){return tp(e,Jne()).base(e.base())},md.apply(e,arguments)}function Zne(){var e=mB(Ck());return e.copy=function(){return tp(e,Zne()).constant(e.constant())},md.apply(e,arguments)}function OB(){var e=gB(Ck());return e.copy=function(){return tp(e,OB()).exponent(e.exponent())},md.apply(e,arguments)}function dqe(){return OB.apply(null,arguments).exponent(.5)}const bG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Sx,scaleDiverging:Qne,scaleDivergingLog:Jne,scaleDivergingPow:OB,scaleDivergingSqrt:dqe,scaleDivergingSymlog:Zne,scaleIdentity:Ane,scaleImplicit:I_,scaleLinear:CT,scaleLog:Rne,scaleOrdinal:sB,scalePoint:Pw,scalePow:yB,scaleQuantile:Lne,scaleQuantize:Nne,scaleRadial:_ne,scaleSequential:qne,scaleSequentialLog:Kne,scaleSequentialPow:TB,scaleSequentialQuantile:Xne,scaleSequentialSqrt:uqe,scaleSequentialSymlog:Yne,scaleSqrt:W9e,scaleSymlog:Dne,scaleThreshold:Fne,scaleTime:lqe,scaleUtc:cqe,tickFormat:Mne},Symbol.toStringTag,{value:"Module"}));var fqe=eb;function pqe(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!fqe(a):n(a,s)))var s=a,l=i}return l}var Pk=pqe;function hqe(e,t){return e>t}var ere=hqe,mqe=Pk,gqe=ere,yqe=lb;function vqe(e){return e&&e.length?mqe(e,yqe,gqe):void 0}var bqe=vqe;const df=jn(bqe);function wqe(e,t){return e<t}var tre=wqe,xqe=Pk,Sqe=tre,Cqe=lb;function Pqe(e){return e&&e.length?xqe(e,Cqe,Sqe):void 0}var Eqe=Pqe;const Ek=jn(Eqe);var Tqe=Vj,Oqe=Jc,Iqe=une,kqe=Ta;function Mqe(e,t){var n=kqe(e)?Tqe:Iqe;return n(e,Oqe(t))}var Aqe=Mqe,$qe=lne,Rqe=Aqe;function Dqe(e,t){return $qe(Rqe(e,t),1)}var _qe=Dqe;const Lqe=jn(_qe);var Nqe=nB;function Fqe(e,t){return Nqe(e,t)}var jqe=Fqe;const Lf=jn(jqe);var db=1e9,Bqe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kB,Fr=!0,ul="[DecimalError] ",yh=ul+"Invalid argument: ",IB=ul+"Exponent out of range: ",fb=Math.floor,Bp=Math.pow,zqe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ka,Ho=1e7,kr=7,nre=9007199254740991,OT=fb(nre/kr),Ot={};Ot.absoluteValue=Ot.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ot.comparedTo=Ot.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};Ot.decimalPlaces=Ot.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*kr;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ot.dividedBy=Ot.div=function(e){return Fu(this,new this.constructor(e))};Ot.dividedToIntegerBy=Ot.idiv=function(e){var t=this,n=t.constructor;return hr(Fu(t,new n(e),0,1),n.precision)};Ot.equals=Ot.eq=function(e){return!this.cmp(e)};Ot.exponent=function(){return So(this)};Ot.greaterThan=Ot.gt=function(e){return this.cmp(e)>0};Ot.greaterThanOrEqualTo=Ot.gte=function(e){return this.cmp(e)>=0};Ot.isInteger=Ot.isint=function(){return this.e>this.d.length-2};Ot.isNegative=Ot.isneg=function(){return this.s<0};Ot.isPositive=Ot.ispos=function(){return this.s>0};Ot.isZero=function(){return this.s===0};Ot.lessThan=Ot.lt=function(e){return this.cmp(e)<0};Ot.lessThanOrEqualTo=Ot.lte=function(e){return this.cmp(e)<1};Ot.logarithm=Ot.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ka))throw Error(ul+"NaN");if(n.s<1)throw Error(ul+(n.s?"NaN":"-Infinity"));return n.eq(Ka)?new r(0):(Fr=!1,t=Fu(Ox(n,i),Ox(e,i),i),Fr=!0,hr(t,o))};Ot.minus=Ot.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ire(t,e):rre(t,(e.s=-e.s,e))};Ot.modulo=Ot.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(ul+"NaN");return n.s?(Fr=!1,t=Fu(n,e,0,1).times(e),Fr=!0,n.minus(t)):hr(new r(n),o)};Ot.naturalExponential=Ot.exp=function(){return ore(this)};Ot.naturalLogarithm=Ot.ln=function(){return Ox(this)};Ot.negated=Ot.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ot.plus=Ot.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rre(t,e):ire(t,(e.s=-e.s,e))};Ot.precision=Ot.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yh+e);if(t=So(o)+1,r=o.d.length-1,n=r*kr+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ot.squareRoot=Ot.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ul+"NaN")}for(e=So(s),Fr=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=Ac(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=fb((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(Fu(s,i,a+2)).times(.5),Ac(i.d).slice(0,a)===(t=Ac(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(hr(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Fr=!0,hr(r,n)};Ot.times=Ot.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=f.length,c=p.length,l<c&&(i=f,f=p,p=i,a=l,l=c,c=a),i=[],a=l+c,r=a;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+p[r]*f[o-r-1]+t,i[o--]=s%Ho|0,t=s/Ho|0;i[o]=(i[o]+t)%Ho|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Fr?hr(e,d.precision):e};Ot.toDecimalPlaces=Ot.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(qc(e,0,db),t===void 0?t=r.rounding:qc(t,0,8),hr(n,e+So(n)+1,t))};Ot.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Nh(r,!0):(qc(e,0,db),t===void 0?t=o.rounding:qc(t,0,8),r=hr(new o(r),e+1,t),n=Nh(r,!0,e+1)),n};Ot.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Nh(o):(qc(e,0,db),t===void 0?t=i.rounding:qc(t,0,8),r=hr(new i(o),e+So(o)+1,t),n=Nh(r.abs(),!1,e+So(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Ot.toInteger=Ot.toint=function(){var e=this,t=e.constructor;return hr(new t(e),So(e)+1,t.rounding)};Ot.toNumber=function(){return+this};Ot.toPower=Ot.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ka);if(s=new l(s),!s.s){if(e.s<1)throw Error(ul+"Infinity");return s}if(s.eq(Ka))return s;if(r=l.precision,e.eq(Ka))return hr(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=nre){for(o=new l(Ka),t=Math.ceil(r/kr+4),Fr=!1;n%2&&(o=o.times(s),xG(o.d,t)),n=fb(n/2),n!==0;)s=s.times(s),xG(s.d,t);return Fr=!0,e.s<0?new l(Ka).div(o):hr(o,r)}}else if(i<0)throw Error(ul+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Fr=!1,o=e.times(Ox(s,r+c)),Fr=!0,o=ore(o),o.s=i,o};Ot.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=So(o),r=Nh(o,n<=i.toExpNeg||n>=i.toExpPos)):(qc(e,1,db),t===void 0?t=i.rounding:qc(t,0,8),o=hr(new i(o),e,t),n=So(o),r=Nh(o,e<=n||n<=i.toExpNeg,e)),r};Ot.toSignificantDigits=Ot.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(qc(e,1,db),t===void 0?t=r.rounding:qc(t,0,8)),hr(new r(n),e,t)};Ot.toString=Ot.valueOf=Ot.val=Ot.toJSON=Ot[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=So(e),n=e.constructor;return Nh(e,t<=n.toExpNeg||t>=n.toExpPos)};function rre(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fr?hr(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(d/kr),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/Ho|0,l[i]%=Ho;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Fr?hr(t,d):t}function qc(e,t,n){if(e!==~~e||e<t||e>n)throw Error(yh+e)}function Ac(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=kr-r.length,n&&(i+=Vd(n)),i+=r;a=e[t],r=a+"",n=kr-r.length,n&&(i+=Vd(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var Fu=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%Ho|0,a=i/Ho|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(r[s]!=o[s]){l=r[s]>o[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*Ho+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,l,c,u,d,f,p,m,g,y,b,x,S,P,E,T,O,k,M=r.constructor,I=r.s==o.s?1:-1,R=r.d,_=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(ul+"Division by zero");for(l=r.e-o.e,O=_.length,E=R.length,p=new M(I),m=p.d=[],c=0;_[c]==(R[c]||0);)++c;if(_[c]>(R[c]||0)&&--l,i==null?x=i=M.precision:a?x=i+(So(r)-So(o))+1:x=i,x<0)return new M(0);if(x=x/kr+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)S=u*Ho+(R[c]||0),m[c]=S/_|0,u=S%_|0;else{for(u=Ho/(_[0]+1)|0,u>1&&(_=e(_,u),R=e(R,u),O=_.length,E=R.length),P=O,g=R.slice(0,O),y=g.length;y<O;)g[y++]=0;k=_.slice(),k.unshift(0),T=_[0],_[1]>=Ho/2&&++T;do u=0,s=t(_,g,O,y),s<0?(b=g[0],O!=y&&(b=b*Ho+(g[1]||0)),u=b/T|0,u>1?(u>=Ho&&(u=Ho-1),d=e(_,u),f=d.length,y=g.length,s=t(d,g,f,y),s==1&&(u--,n(d,O<f?k:_,f))):(u==0&&(s=u=1),d=_.slice()),f=d.length,f<y&&d.unshift(0),n(g,d,y),s==-1&&(y=g.length,s=t(_,g,O,y),s<1&&(u++,n(g,O<y?k:_,y))),y=g.length):s===0&&(u++,g=[0]),m[c++]=u,s&&g[0]?g[y++]=R[P]||0:(g=[R[P]],y=1);while((P++<E||g[0]!==void 0)&&x--)}return m[0]||m.shift(),p.e=l,hr(p,a?i+So(p)+1:i)}}();function ore(e,t){var n,r,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(So(e)>16)throw Error(IB+So(e));if(!e.s)return new u(Ka);for(t==null?(Fr=!1,s=d):s=t,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Bp(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(Ka),u.precision=s;;){if(o=hr(o.times(e),s),n=n.times(++l),a=i.plus(Fu(o,n,s)),Ac(a.d).slice(0,s)===Ac(i.d).slice(0,s)){for(;c--;)i=hr(i.times(i),s);return u.precision=d,t==null?(Fr=!0,hr(i,d)):i}i=a}}function So(e){for(var t=e.e*kr,n=e.d[0];n>=10;n/=10)t++;return t}function fR(e,t,n){if(t>e.LN10.sd())throw Fr=!0,n&&(e.precision=n),Error(ul+"LN10 precision limit exceeded");return hr(new e(e.LN10),t)}function Vd(e){for(var t="";e--;)t+="0";return t}function Ox(e,t){var n,r,o,i,a,s,l,c,u,d=1,f=10,p=e,m=p.d,g=p.constructor,y=g.precision;if(p.s<1)throw Error(ul+(p.s?"NaN":"-Infinity"));if(p.eq(Ka))return new g(0);if(t==null?(Fr=!1,c=y):c=t,p.eq(10))return t==null&&(Fr=!0),fR(g,c);if(c+=f,g.precision=c,n=Ac(m),r=n.charAt(0),i=So(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Ac(p.d),r=n.charAt(0),d++;i=So(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return l=fR(g,c+2,y).times(i+""),p=Ox(new g(r+"."+n.slice(1)),c-f).plus(l),g.precision=y,t==null?(Fr=!0,hr(p,y)):p;for(s=a=p=Fu(p.minus(Ka),p.plus(Ka),c),u=hr(p.times(p),c),o=3;;){if(a=hr(a.times(u),c),l=s.plus(Fu(a,new g(o),c)),Ac(l.d).slice(0,c)===Ac(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(fR(g,c+2,y).times(i+""))),s=Fu(s,new g(d),c),g.precision=y,t==null?(Fr=!0,hr(s,y)):s;s=l,o+=2}}function wG(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=fb(n/kr),e.d=[],r=(n+1)%kr,n<0&&(r+=kr),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=kr;r<o;)e.d.push(+t.slice(r,r+=kr));t=t.slice(r),r=kr-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Fr&&(e.e>OT||e.e<-OT))throw Error(IB+n)}else e.s=0,e.e=0,e.d=[0];return e}function hr(e,t,n){var r,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=kr,o=t,c=d[u=0];else{if(u=Math.ceil((r+1)/kr),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;r%=kr,o=r-kr+a}if(n!==void 0&&(i=Bp(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Bp(10,a-o):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=So(e),d.length=1,t=t-i-1,d[0]=Bp(10,(kr-t%kr)%kr),e.e=fb(-t/kr)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,i=1,u--):(d.length=u+1,i=Bp(10,kr-r),d[u]=o>0?(c/Bp(10,a-o)%Bp(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Ho&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Ho)break;d[u--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(Fr&&(e.e>OT||e.e<-OT))throw Error(IB+So(e));return e}function ire(e,t){var n,r,o,i,a,s,l,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Fr?hr(t,p):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),o=Math.max(Math.ceil(p/kr),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=Ho-1;--l[i],l[o]+=Ho}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Fr?hr(t,p):t):new f(0)}function Nh(e,t,n){var r,o=So(e),i=Ac(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Vd(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Vd(-o-1)+i,n&&(r=n-a)>0&&(i+=Vd(r))):o>=a?(i+=Vd(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Vd(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Vd(r))),e.s<0?"-"+i:i}function xG(e,t){if(e.length>t)return e.length=t,!0}function are(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(yh+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return wG(a,i.toString())}else if(typeof i!="string")throw Error(yh+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,zqe.test(i))wG(a,i);else throw Error(yh+i)}if(o.prototype=Ot,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=are,o.config=o.set=Vqe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Vqe(e){if(!e||typeof e!="object")throw Error(ul+"Object expected");var t,n,r,o=["precision",1,db,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(fb(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(yh+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yh+n+": "+r);return this}var kB=are(Bqe);Ka=new kB(1);const sr=kB;function Hqe(e){return qqe(e)||Gqe(e)||Wqe(e)||Uqe()}function Uqe(){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 Wqe(e,t){if(e){if(typeof e=="string")return $_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $_(e,t)}}function Gqe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qqe(e){if(Array.isArray(e))return $_(e)}function $_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kqe=function(t){return t},sre={"@@functional/placeholder":!0},lre=function(t){return t===sre},SG=function(t){return function n(){return arguments.length===0||arguments.length===1&&lre(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Yqe=function e(t,n){return t===1?n:SG(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter(function(s){return s!==sre}).length;return a>=t?n.apply(void 0,o):e(t-a,SG(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=o.map(function(d){return lre(d)?l.shift():d});return n.apply(void 0,Hqe(u).concat(l))}))})},Tk=function(t){return Yqe(t.length,t)},R_=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},Xqe=Tk(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Qqe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Kqe;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce(function(s,l){return l(s)},i.apply(void 0,arguments))}},D_=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cre=function(t){var n=null,r=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n&&i.every(function(s,l){return s===n[l]})||(n=i,r=t.apply(void 0,i)),r}};function Jqe(e){var t;return e===0?t=1:t=Math.floor(new sr(e).abs().log(10).toNumber())+1,t}function Zqe(e,t,n){for(var r=new sr(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var eKe=Tk(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),tKe=Tk(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),nKe=Tk(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Ok={rangeStep:Zqe,getDigitCount:Jqe,interpolateNumber:eKe,uninterpolateNumber:tKe,uninterpolateTruncation:nKe};function __(e){return iKe(e)||oKe(e)||ure(e)||rKe()}function rKe(){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 oKe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iKe(e){if(Array.isArray(e))return L_(e)}function Ix(e,t){return lKe(e)||sKe(e,t)||ure(e,t)||aKe()}function aKe(){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 ure(e,t){if(e){if(typeof e=="string")return L_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L_(e,t)}}function L_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sKe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function lKe(e){if(Array.isArray(e))return e}function dre(e){var t=Ix(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function fre(e,t,n){if(e.lte(0))return new sr(0);var r=Ok.getDigitCount(e.toNumber()),o=new sr(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new sr(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?l:new sr(Math.ceil(l))}function cKe(e,t,n){var r=1,o=new sr(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new sr(10).pow(Ok.getDigitCount(e)-1),o=new sr(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new sr(Math.floor(e)))}else e===0?o=new sr(Math.floor((t-1)/2)):n||(o=new sr(Math.floor(e)));var a=Math.floor((t-1)/2),s=Qqe(Xqe(function(l){return o.add(new sr(l-a).mul(r)).toNumber()}),R_);return s(0,t)}function pre(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new sr(0),tickMin:new sr(0),tickMax:new sr(0)};var i=fre(new sr(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new sr(0):(a=new sr(e).add(t).div(2),a=a.sub(new sr(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new sr(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?pre(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new sr(s).mul(i)),tickMax:a.add(new sr(l).mul(i))})}function uKe(e){var t=Ix(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=dre([n,r]),l=Ix(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(__(R_(0,o-1).map(function(){return 1/0}))):[].concat(__(R_(0,o-1).map(function(){return-1/0})),[u]);return n>r?D_(d):d}if(c===u)return cKe(c,o,i);var f=pre(c,u,a,i),p=f.step,m=f.tickMin,g=f.tickMax,y=Ok.rangeStep(m,g.add(new sr(.1).mul(p)),p);return n>r?D_(y):y}function dKe(e,t){var n=Ix(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=dre([r,o]),s=Ix(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),d=fre(new sr(c).sub(l).div(u-1),i,0),f=[].concat(__(Ok.rangeStep(new sr(l),new sr(c).sub(new sr(.99).mul(d)),d)),[c]);return r>o?D_(f):f}var fKe=cre(uKe),pKe=cre(dKe),hKe="Invariant failed";function Fh(e,t){throw new Error(hKe)}var mKe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function IT(){return IT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IT.apply(this,arguments)}function gKe(e,t){return wKe(e)||bKe(e,t)||vKe(e,t)||yKe()}function yKe(){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 vKe(e,t){if(e){if(typeof e=="string")return CG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CG(e,t)}}function CG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bKe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function wKe(e){if(Array.isArray(e))return e}function xKe(e,t){if(e==null)return{};var n=SKe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SKe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CKe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PKe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gre(r.key),r)}}function EKe(e,t,n){return t&&PKe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TKe(e,t,n){return t=kT(t),OKe(e,hre()?Reflect.construct(t,n||[],kT(e).constructor):t.apply(e,n))}function OKe(e,t){if(t&&(rv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IKe(e)}function IKe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hre=function(){return!!e})()}function kT(e){return kT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kT(e)}function kKe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N_(e,t)}function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},N_(e,t)}function mre(e,t,n){return t=gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e){var t=MKe(e,"string");return rv(t)=="symbol"?t:t+""}function MKe(e,t){if(rv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pb=function(e){function t(){return CKe(this,t),TKe(this,t,arguments)}return kKe(t,e),EKe(t,[{key:"render",value:function(){var r=this.props,o=r.offset,i=r.layout,a=r.width,s=r.dataKey,l=r.data,c=r.dataPointFormatter,u=r.xAxis,d=r.yAxis,f=xKe(r,mKe),p=$t(f,!1);this.props.direction==="x"&&u.type!=="number"&&Fh();var m=l.map(function(g){var y=c(g,s),b=y.x,x=y.y,S=y.value,P=y.errorVal;if(!P)return null;var E=[],T,O;if(Array.isArray(P)){var k=gKe(P,2);T=k[0],O=k[1]}else T=O=P;if(i==="vertical"){var M=u.scale,I=x+o,R=I+a,_=I-a,L=M(S-T),j=M(S+O);E.push({x1:j,y1:R,x2:j,y2:_}),E.push({x1:L,y1:I,x2:j,y2:I}),E.push({x1:L,y1:R,x2:L,y2:_})}else if(i==="horizontal"){var N=d.scale,F=b+o,U=F-a,z=F+a,V=N(S-T),W=N(S+O);E.push({x1:U,y1:W,x2:z,y2:W}),E.push({x1:F,y1:V,x2:F,y2:W}),E.push({x1:U,y1:V,x2:z,y2:V})}return Y.createElement(on,IT({className:"recharts-errorBar",key:"bar-".concat(E.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),E.map(function(G){return Y.createElement("line",IT({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return Y.createElement(on,{className:"recharts-errorBars"},m)}}])}(Y.Component);mre(pb,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});mre(pb,"displayName","ErrorBar");function kx(e){"@babel/helpers - typeof";return kx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kx(e)}function PG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PG(Object(n),!0).forEach(function(r){AKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AKe(e,t,n){return t=$Ke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ke(e){var t=RKe(e,"string");return kx(t)=="symbol"?t:t+""}function RKe(e,t){if(kx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yre=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=Va(n,Nu);if(!a)return null;var s=Nu.defaultProps,l=s!==void 0?Pp(Pp({},s),a.props):{},c;return a.props&&a.props.payload?c=a.props&&a.props.payload:i==="children"?c=(r||[]).reduce(function(u,d){var f=d.item,p=d.props,m=p.sectors||p.data||[];return u.concat(m.map(function(g){return{type:a.props.iconType||f.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):c=(r||[]).map(function(u){var d=u.item,f=d.type.defaultProps,p=f!==void 0?Pp(Pp({},f),d.props):{},m=p.dataKey,g=p.name,y=p.legendType,b=p.hide;return{inactive:b,dataKey:m,type:l.iconType||y||"square",color:MB(d),value:g||m,payload:p}}),Pp(Pp(Pp({},l),Nu.getWithHeight(a,o)),{},{payload:c,item:a})};function Mx(e){"@babel/helpers - typeof";return Mx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mx(e)}function EG(e){return NKe(e)||LKe(e)||_Ke(e)||DKe()}function DKe(){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 _Ke(e,t){if(e){if(typeof e=="string")return F_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F_(e,t)}}function LKe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NKe(e){if(Array.isArray(e))return F_(e)}function F_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){cy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e,t,n){return t=FKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FKe(e){var t=jKe(e,"string");return Mx(t)=="symbol"?t:t+""}function jKe(e,t){if(Mx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mr(e,t,n){return zt(e)||zt(t)?n:_o(t)?es(e,t,n):Ut(t)?t(e):n}function Ew(e,t,n,r){var o=Lqe(e,function(s){return Mr(s,t)});if(n==="number"){var i=o.filter(function(s){return at(s)||parseFloat(s)});return i.length?[Ek(i),df(i)]:[1/0,-1/0]}var a=r?o.filter(function(s){return!zt(s)}):o;return a.map(function(s){return _o(s)||s instanceof Date?s:""})}var BKe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c<s;c++){var u=c>0?o[c-1].coordinate:o[s-1].coordinate,d=o[c].coordinate,f=c>=s-1?o[0].coordinate:o[c+1].coordinate,p=void 0;if(Hi(d-u)!==Hi(f-d)){var m=[];if(Hi(f-d)===Hi(l[1]-l[0])){p=f;var g=d+l[1]-l[0];m[0]=Math.min(g,(g+u)/2),m[1]=Math.max(g,(g+u)/2)}else{p=u;var y=f+l[1]-l[0];m[0]=Math.min(d,(y+d)/2),m[1]=Math.max(d,(y+d)/2)}var b=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>b[0]&&t<=b[1]||t>=m[0]&&t<=m[1]){a=o[c].index;break}}else{var x=Math.min(u,f),S=Math.max(u,f);if(t>(x+d)/2&&t<=(S+d)/2){a=o[c].index;break}}}else for(var P=0;P<s;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){a=r[P].index;break}return a},MB=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?no(no({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,l;switch(o){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},zKe=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),l=0,c=s.length;l<c;l++)for(var u=i[s[l]].stackGroups,d=Object.keys(u),f=0,p=d.length;f<p;f++){var m=u[d[f]],g=m.items,y=m.cateAxisId,b=g.filter(function(O){return Lu(O.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,S=x!==void 0?no(no({},x),b[0].props):b[0].props,P=S.barSize,E=S[y];a[E]||(a[E]=[]);var T=zt(P)?n:P;a[E].push({item:b[0],stackList:b.slice(1),barSize:zt(T)?void 0:Ui(T,r,0)})}}return a},VKe=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,l=a.length;if(l<1)return null;var c=Ui(n,o,0,!0),u,d=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/l,m=a.reduce(function(P,E){return P+E.barSize||0},0);m+=(l-1)*c,m>=o&&(m-=(l-1)*c,c=0),m>=o&&p>0&&(f=!0,p*=.9,m=l*p);var g=(o-m)/2>>0,y={offset:g-c,size:0};u=a.reduce(function(P,E){var T={item:E.item,position:{offset:y.offset+y.size+c,size:f?p:E.barSize}},O=[].concat(EG(P),[T]);return y=O[O.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(k){O.push({item:k,position:y})}),O},d)}else{var b=Ui(r,o,0,!0);o-2*b-(l-1)*c<=0&&(c=0);var x=(o-2*b-(l-1)*c)/l;x>1&&(x>>=0);var S=s===+s?Math.min(x,s):x;u=a.reduce(function(P,E,T){var O=[].concat(EG(P),[{item:E.item,position:{offset:b+(x+c)*T+(x-S)/2,size:S}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(k){O.push({item:k,position:O[O.length-1].position})}),O},d)}return u},HKe=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),c=yre({children:i,legendWidth:l});if(c){var u=o||{},d=u.width,f=u.height,p=c.align,m=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&at(t[p]))return no(no({},t),{},cy({},p,t[p]+(d||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&at(t[m]))return no(no({},t),{},cy({},m,t[m]+(f||0)))}return t},UKe=function(t,n,r){return zt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},vre=function(t,n,r,o,i){var a=n.props.children,s=Yi(a,pb).filter(function(c){return UKe(o,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var d=Mr(u,r);if(zt(d))return c;var f=Array.isArray(d)?[Ek(d),df(d)]:[d,d],p=l.reduce(function(m,g){var y=Mr(u,g,0),b=f[0]-Math.abs(Array.isArray(y)?y[0]:y),x=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,m[0]),Math.max(x,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},WKe=function(t,n,r,o,i){var a=n.map(function(s){return vre(t,s,r,i,o)}).filter(function(s){return!zt(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},bre=function(t,n,r,o,i){var a=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&vre(t,l,c,o)||Ew(t,c,r,i)});if(r==="number")return a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,c){for(var u=0,d=c.length;u<d;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},wre=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},xre=function(t,n,r,o){if(o)return t.map(function(l){return l.coordinate});var i,a,s=t.map(function(l){return l.coordinate===n&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate});return i||s.push(n),a||s.push(r),s},Ru=function(t,n,r){if(!t)return null;var o=t.scale,i=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,c=(n||r)&&a==="category"&&o.bandwidth?o.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Hi(s[0]-s[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(d){var f=i?i.indexOf(d):d;return{coordinate:o(f)+c,value:d,offset:c}});return u.filter(function(d){return!ib(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,f){return{coordinate:o(d)+c,value:d,index:f,offset:c}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(d){return{coordinate:o(d)+c,value:d,offset:c}}):o.domain().map(function(d,f){return{coordinate:o(d)+c,value:i?i[d]:d,index:f,offset:c}})},pR=new WeakMap,nP=function(t,n){if(typeof n!="function")return t;pR.has(t)||pR.set(t,new WeakMap);var r=pR.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},Sre=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Sx(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:CT(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Pw(),realScaleType:"point"}:i==="category"?{scale:Sx(),realScaleType:"band"}:{scale:CT(),realScaleType:"linear"};if(WS(o)){var l="scale".concat(ck(o));return{scale:(bG[l]||Pw)(),realScaleType:bG[l]?l:"point"}}return Ut(o)?{scale:o}:{scale:Pw(),realScaleType:"point"}},OG=1e-4,Cre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-OG,a=Math.max(o[0],o[1])+OG,s=t(n[0]),l=t(n[r-1]);(s<i||s>a||l<i||l>a)&&t.domain([n[0],n[r-1]])}},GKe=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},qKe=function(t,n){if(!n||n.length!==2||!at(n[0])||!at(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!at(t[0])||t[0]<r)&&(i[0]=r),(!at(t[1])||t[1]>o)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]<r&&(i[1]=r),i},KKe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0,s=0;s<n;++s){var l=ib(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},YKe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0;a<n;++a){var s=ib(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},XKe={sign:KKe,expand:mVe,none:Yy,silhouette:gVe,wiggle:yVe,positive:YKe},QKe=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=XKe[r],a=hVe().keys(o).value(function(s,l){return+Mr(s,l,0)}).order(c_).offset(i);return a(t)},JKe=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,l={},c=s.reduce(function(d,f){var p,m=(p=f.type)!==null&&p!==void 0&&p.defaultProps?no(no({},f.type.defaultProps),f.props):f.props,g=m.stackId,y=m.hide;if(y)return d;var b=m[r],x=d[b]||{hasStack:!1,stackGroups:{}};if(_o(g)){var S=x.stackGroups[g]||{numericAxisId:r,cateAxisId:o,items:[]};S.items.push(f),x.hasStack=!0,x.stackGroups[g]=S}else x.stackGroups[Jf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[f]};return no(no({},d),{},cy({},b,x))},l),u={};return Object.keys(c).reduce(function(d,f){var p=c[f];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,y){var b=p.stackGroups[y];return no(no({},g),{},cy({},y,{numericAxisId:r,cateAxisId:o,items:b.items,stackedData:QKe(t,b.items,i)}))},m)}return no(no({},d),{},cy({},f,p))},u)},Pre=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=fKe(c,i,s);return t.domain([Ek(u),df(u)]),{niceTicks:u}}if(i&&o==="number"){var d=t.domain(),f=pKe(d,i,s);return{niceTicks:f}}return null};function ov(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!zt(o[t.dataKey])){var s=nT(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=Mr(o,zt(a)?t.dataKey:a);return zt(l)?null:t.scale(l)}var IG=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var l=Mr(a,n.dataKey,n.domain[s]);return zt(l)?null:n.scale(l)-i/2+o},ZKe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},eYe=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?no(no({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(_o(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},tYe=function(t){return t.reduce(function(n,r){return[Ek(r.concat([n[0]]).filter(at)),df(r.concat([n[1]]).filter(at))]},[1/0,-1/0])},Ere=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,l=s.reduce(function(c,u){var d=tYe(u.slice(n,r+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},kG=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MG=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,j_=function(t,n,r){if(Ut(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(at(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(kG.test(t[0])){var i=+kG.exec(t[0])[1];o[0]=n[0]-i}else Ut(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(at(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(MG.test(t[1])){var a=+MG.exec(t[1])[1];o[1]=n[1]+a}else Ut(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},MT=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=oB(n,function(d){return d.coordinate}),a=1/0,s=1,l=i.length;s<l;s++){var c=i[s],u=i[s-1];a=Math.min((c.coordinate||0)-(u.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},AG=function(t,n,r){return!t||!t.length||Lf(t,es(r,"type.defaultProps.domain"))?n:t},Tre=function(t,n){var r=t.type.defaultProps?no(no({},t.type.defaultProps),t.props):t.props,o=r.dataKey,i=r.name,a=r.unit,s=r.formatter,l=r.tooltipType,c=r.chartType,u=r.hide;return no(no({},$t(t,!1)),{},{dataKey:o,unit:a,formatter:s,name:i||o,color:MB(t),value:Mr(n,o),type:l,payload:n,chartType:c,hide:u})};function Ax(e){"@babel/helpers - typeof";return Ax=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ax(e)}function $G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$G(Object(n),!0).forEach(function(r){Ore(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$G(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ore(e,t,n){return t=nYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nYe(e){var t=rYe(e,"string");return Ax(t)=="symbol"?t:t+""}function rYe(e,t){if(Ax(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ax(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oYe(e,t){return lYe(e)||sYe(e,t)||aYe(e,t)||iYe()}function iYe(){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 aYe(e,t){if(e){if(typeof e=="string")return RG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RG(e,t)}}function RG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sYe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function lYe(e){if(Array.isArray(e))return e}var AT=Math.PI/180,cYe=function(t){return t*180/Math.PI},Sr=function(t,n,r,o){return{x:t+Math.cos(-AT*o)*r,y:n+Math.sin(-AT*o)*r}},Ire=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},uYe=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=Ui(t.cx,a,a/2),d=Ui(t.cy,s,s/2),f=Ire(a,s,r),p=Ui(t.innerRadius,f,0),m=Ui(t.outerRadius,f,f*.8),g=Object.keys(n);return g.reduce(function(y,b){var x=n[b],S=x.domain,P=x.reversed,E;if(zt(x.range))o==="angleAxis"?E=[l,c]:o==="radiusAxis"&&(E=[p,m]),P&&(E=[E[1],E[0]]);else{E=x.range;var T=E,O=oYe(T,2);l=O[0],c=O[1]}var k=Sre(x,i),M=k.realScaleType,I=k.scale;I.domain(S).range(E),Cre(I);var R=Pre(I,Su(Su({},x),{},{realScaleType:M})),_=Su(Su(Su({},x),R),{},{range:E,radius:m,realScaleType:M,scale:I,cx:u,cy:d,innerRadius:p,outerRadius:m,startAngle:l,endAngle:c});return Su(Su({},y),{},Ore({},b,_))},{})},dYe=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},fYe=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=dYe({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var l=(r-i)/s,c=Math.acos(l);return o>a&&(c=2*Math.PI-c),{radius:s,angle:cYe(c),angleInRadian:c}},pYe=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},hYe=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},DG=function(t,n){var r=t.x,o=t.y,i=fYe({x:r,y:o},n),a=i.radius,s=i.angle,l=n.innerRadius,c=n.outerRadius;if(a<l||a>c)return!1;if(a===0)return!0;var u=pYe(n),d=u.startAngle,f=u.endAngle,p=s,m;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}return m?Su(Su({},n),{},{radius:a,angle:hYe(p,n)}):null},kre=function(t){return!v.isValidElement(t)&&!Ut(t)&&typeof t!="boolean"?t.className:""};function $x(e){"@babel/helpers - typeof";return $x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$x(e)}var mYe=["offset"];function gYe(e){return wYe(e)||bYe(e)||vYe(e)||yYe()}function yYe(){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 vYe(e,t){if(e){if(typeof e=="string")return B_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B_(e,t)}}function bYe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wYe(e){if(Array.isArray(e))return B_(e)}function B_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xYe(e,t){if(e==null)return{};var n=SYe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SYe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_G(Object(n),!0).forEach(function(r){CYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_G(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CYe(e,t,n){return t=PYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PYe(e){var t=EYe(e,"string");return $x(t)=="symbol"?t:t+""}function EYe(e,t){if($x(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($x(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rx.apply(this,arguments)}var TYe=function(t){var n=t.value,r=t.formatter,o=zt(t.children)?n:t.children;return Ut(r)?r(o):o},OYe=function(t,n){var r=Hi(n-t),o=Math.min(Math.abs(n-t),360);return r*o},IYe=function(t,n,r){var o=t.position,i=t.viewBox,a=t.offset,s=t.className,l=i,c=l.cx,u=l.cy,d=l.innerRadius,f=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,y=(d+f)/2,b=OYe(p,m),x=b>=0?1:-1,S,P;o==="insideStart"?(S=p+x*a,P=g):o==="insideEnd"?(S=m-x*a,P=!g):o==="end"&&(S=m+x*a,P=g),P=b<=0?P:!P;var E=Sr(c,u,y,S),T=Sr(c,u,y,S+(P?1:-1)*359),O="M".concat(E.x,",").concat(E.y,`
A`).concat(y,",").concat(y,",0,1,").concat(P?0:1,`,
- `).concat(T.x,",").concat(T.y),k=Bt(t.id)?Lf("recharts-radial-line-"):t.id;return Y.createElement("text",cx({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",s)}),Y.createElement("defs",null,Y.createElement("path",{id:k,d:O})),Y.createElement("textPath",{xlinkHref:"#".concat(k)},n))},bKe=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,u=i.startAngle,d=i.endAngle,f=(u+d)/2;if(o==="outside"){var p=Sr(a,s,c+r,f),m=p.x,g=p.y;return{x:m,y:g,textAnchor:m>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,b=Sr(a,s,y,f),x=b.x,S=b.y;return{x,y:S,textAnchor:"middle",verticalAnchor:"middle"}},wKe=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,l=a.y,c=a.width,u=a.height,d=u>=0?1:-1,f=d*o,p=d>0?"end":"start",m=d>0?"start":"end",g=c>=0?1:-1,y=g*o,b=g>0?"end":"start",x=g>0?"start":"end";if(i==="top"){var S={x:s+c/2,y:l-d*o,textAnchor:"middle",verticalAnchor:p};return To(To({},S),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var P={x:s+c/2,y:l+u+f,textAnchor:"middle",verticalAnchor:m};return To(To({},P),r?{height:Math.max(r.y+r.height-(l+u),0),width:c}:{})}if(i==="left"){var E={x:s-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return To(To({},E),r?{width:Math.max(E.x-r.x,0),height:u}:{})}if(i==="right"){var T={x:s+c+y,y:l+u/2,textAnchor:x,verticalAnchor:"middle"};return To(To({},T),r?{width:Math.max(r.x+r.width-T.x,0),height:u}:{})}var O=r?{width:c,height:u}:{};return i==="insideLeft"?To({x:s+y,y:l+u/2,textAnchor:x,verticalAnchor:"middle"},O):i==="insideRight"?To({x:s+c-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideTop"?To({x:s+c/2,y:l+f,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?To({x:s+c/2,y:l+u-f,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?To({x:s+y,y:l+f,textAnchor:x,verticalAnchor:m},O):i==="insideTopRight"?To({x:s+c-y,y:l+f,textAnchor:b,verticalAnchor:m},O):i==="insideBottomLeft"?To({x:s+y,y:l+u-f,textAnchor:x,verticalAnchor:p},O):i==="insideBottomRight"?To({x:s+c-y,y:l+u-f,textAnchor:b,verticalAnchor:p},O):Rv(i)&&(at(i.x)||Dp(i.x))&&(at(i.y)||Dp(i.y))?To({x:s+Ni(i.x,c),y:l+Ni(i.y,u),textAnchor:"end",verticalAnchor:"end"},O):To({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)},xKe=function(t){return"cx"in t&&at(t.cx)};function Vo(e){var t=e.offset,n=t===void 0?5:t,r=dKe(e,iKe),o=To({offset:n},r),i=o.viewBox,a=o.position,s=o.value,l=o.children,c=o.content,u=o.className,d=u===void 0?"":u,f=o.textBreakAll;if(!i||Bt(s)&&Bt(l)&&!v.isValidElement(c)&&!Ht(c))return null;if(v.isValidElement(c))return v.cloneElement(c,o);var p;if(Ht(c)){if(p=v.createElement(c,o),v.isValidElement(p))return p}else p=gKe(o);var m=xKe(i),g=At(o,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return vKe(o,p,g);var y=m?bKe(o):wKe(o);return Y.createElement(bh,cx({className:pe("recharts-label",d)},g,y,{breakAll:f}),p)}Vo.displayName="Label";var kne=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,d=t.x,f=t.y,p=t.top,m=t.left,g=t.width,y=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(at(g)&&at(y)){if(at(d)&&at(f))return{x:d,y:f,width:g,height:y};if(at(p)&&at(m))return{x:p,y:m,width:g,height:y}}return at(d)&&at(f)?{x:d,y:f,width:0,height:0}:at(n)&&at(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},SKe=function(t,n){return t?t===!0?Y.createElement(Vo,{key:"label-implicit",viewBox:n}):Mo(t)?Y.createElement(Vo,{key:"label-implicit",viewBox:n,value:t}):v.isValidElement(t)?t.type===Vo?v.cloneElement(t,{key:"label-implicit",viewBox:n}):Y.createElement(Vo,{key:"label-implicit",content:t,viewBox:n}):Ht(t)?Y.createElement(Vo,{key:"label-implicit",content:t,viewBox:n}):Rv(t)?Y.createElement(Vo,cx({viewBox:n},t,{key:"label-implicit"})):null:null},CKe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,i=kne(t),a=Vi(o,Vo).map(function(l,c){return v.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return a;var s=SKe(t.label,n||i);return[s].concat(aKe(a))};Vo.parseViewBox=kne;Vo.renderCallByParent=CKe;function PKe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var EKe=PKe;const TKe=Bn(EKe);function ux(e){"@babel/helpers - typeof";return ux=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ux(e)}var OKe=["valueAccessor"],IKe=["data","dataKey","clockWise","id","textBreakAll"];function kKe(e){return RKe(e)||$Ke(e)||AKe(e)||MKe()}function MKe(){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 AKe(e,t){if(e){if(typeof e=="string")return i_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i_(e,t)}}function $Ke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RKe(e){if(Array.isArray(e))return i_(e)}function i_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aT.apply(this,arguments)}function K6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K6(Object(n),!0).forEach(function(r){DKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DKe(e,t,n){return t=_Ke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Ke(e){var t=LKe(e,"string");return ux(t)=="symbol"?t:t+""}function LKe(e,t){if(ux(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ux(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X6(e,t){if(e==null)return{};var n=NKe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NKe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var FKe=function(t){return Array.isArray(t.value)?TKe(t.value):t.value};function Hl(e){var t=e.valueAccessor,n=t===void 0?FKe:t,r=X6(e,OKe),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=X6(r,IKe);return!o||!o.length?null:Y.createElement(rn,{className:"recharts-label-list"},o.map(function(u,d){var f=Bt(i)?n(u,d):kr(u&&u.payload,i),p=Bt(s)?{}:{id:"".concat(s,"-").concat(d)};return Y.createElement(Vo,aT({},At(u,!0),c,p,{parentViewBox:u.parentViewBox,value:f,textBreakAll:l,viewBox:Vo.parseViewBox(Bt(a)?u:Y6(Y6({},u),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Hl.displayName="LabelList";function jKe(e,t){return e?e===!0?Y.createElement(Hl,{key:"labelList-implicit",data:t}):Y.isValidElement(e)||Ht(e)?Y.createElement(Hl,{key:"labelList-implicit",data:t,content:e}):Rv(e)?Y.createElement(Hl,aT({data:t},e,{key:"labelList-implicit"})):null:null}function BKe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Vi(r,Hl).map(function(a,s){return v.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=jKe(e.label,t);return[i].concat(kKe(o))}Hl.renderCallByParent=BKe;function dx(e){"@babel/helpers - typeof";return dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dx(e)}function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a_.apply(this,arguments)}function Q6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q6(Object(n),!0).forEach(function(r){zKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zKe(e,t,n){return t=VKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VKe(e){var t=HKe(e,"string");return dx(t)=="symbol"?t:t+""}function HKe(e,t){if(dx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UKe=function(t,n){var r=Li(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},RC=function(t){var n=t.cx,r=t.cy,o=t.radius,i=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+o,d=Math.asin(l/u)/iT,f=c?i:i+a*d,p=Sr(n,r,u,f),m=Sr(n,r,o,f),g=c?i-a*d:i,y=Sr(n,r,u*Math.cos(d*iT),g);return{center:p,circleTangency:m,lineTangency:y,theta:d}},Mne=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.startAngle,s=t.endAngle,l=UKe(a,s),c=a+l,u=Sr(n,r,i,a),d=Sr(n,r,i,c),f="M ".concat(u.x,",").concat(u.y,`
+ `).concat(T.x,",").concat(T.y),k=zt(t.id)?Jf("recharts-radial-line-"):t.id;return Y.createElement("text",Rx({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",s)}),Y.createElement("defs",null,Y.createElement("path",{id:k,d:O})),Y.createElement("textPath",{xlinkHref:"#".concat(k)},n))},kYe=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,u=i.startAngle,d=i.endAngle,f=(u+d)/2;if(o==="outside"){var p=Sr(a,s,c+r,f),m=p.x,g=p.y;return{x:m,y:g,textAnchor:m>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,b=Sr(a,s,y,f),x=b.x,S=b.y;return{x,y:S,textAnchor:"middle",verticalAnchor:"middle"}},MYe=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,l=a.y,c=a.width,u=a.height,d=u>=0?1:-1,f=d*o,p=d>0?"end":"start",m=d>0?"start":"end",g=c>=0?1:-1,y=g*o,b=g>0?"end":"start",x=g>0?"start":"end";if(i==="top"){var S={x:s+c/2,y:l-d*o,textAnchor:"middle",verticalAnchor:p};return Ao(Ao({},S),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var P={x:s+c/2,y:l+u+f,textAnchor:"middle",verticalAnchor:m};return Ao(Ao({},P),r?{height:Math.max(r.y+r.height-(l+u),0),width:c}:{})}if(i==="left"){var E={x:s-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return Ao(Ao({},E),r?{width:Math.max(E.x-r.x,0),height:u}:{})}if(i==="right"){var T={x:s+c+y,y:l+u/2,textAnchor:x,verticalAnchor:"middle"};return Ao(Ao({},T),r?{width:Math.max(r.x+r.width-T.x,0),height:u}:{})}var O=r?{width:c,height:u}:{};return i==="insideLeft"?Ao({x:s+y,y:l+u/2,textAnchor:x,verticalAnchor:"middle"},O):i==="insideRight"?Ao({x:s+c-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideTop"?Ao({x:s+c/2,y:l+f,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Ao({x:s+c/2,y:l+u-f,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?Ao({x:s+y,y:l+f,textAnchor:x,verticalAnchor:m},O):i==="insideTopRight"?Ao({x:s+c-y,y:l+f,textAnchor:b,verticalAnchor:m},O):i==="insideBottomLeft"?Ao({x:s+y,y:l+u-f,textAnchor:x,verticalAnchor:p},O):i==="insideBottomRight"?Ao({x:s+c-y,y:l+u-f,textAnchor:b,verticalAnchor:p},O):tb(i)&&(at(i.x)||Qp(i.x))&&(at(i.y)||Qp(i.y))?Ao({x:s+Ui(i.x,c),y:l+Ui(i.y,u),textAnchor:"end",verticalAnchor:"end"},O):Ao({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)},AYe=function(t){return"cx"in t&&at(t.cx)};function qo(e){var t=e.offset,n=t===void 0?5:t,r=xYe(e,mYe),o=Ao({offset:n},r),i=o.viewBox,a=o.position,s=o.value,l=o.children,c=o.content,u=o.className,d=u===void 0?"":u,f=o.textBreakAll;if(!i||zt(s)&&zt(l)&&!v.isValidElement(c)&&!Ut(c))return null;if(v.isValidElement(c))return v.cloneElement(c,o);var p;if(Ut(c)){if(p=v.createElement(c,o),v.isValidElement(p))return p}else p=TYe(o);var m=AYe(i),g=$t(o,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return IYe(o,p,g);var y=m?kYe(o):MYe(o);return Y.createElement(Lh,Rx({className:pe("recharts-label",d)},g,y,{breakAll:f}),p)}qo.displayName="Label";var Mre=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,d=t.x,f=t.y,p=t.top,m=t.left,g=t.width,y=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(at(g)&&at(y)){if(at(d)&&at(f))return{x:d,y:f,width:g,height:y};if(at(p)&&at(m))return{x:p,y:m,width:g,height:y}}return at(d)&&at(f)?{x:d,y:f,width:0,height:0}:at(n)&&at(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},$Ye=function(t,n){return t?t===!0?Y.createElement(qo,{key:"label-implicit",viewBox:n}):_o(t)?Y.createElement(qo,{key:"label-implicit",viewBox:n,value:t}):v.isValidElement(t)?t.type===qo?v.cloneElement(t,{key:"label-implicit",viewBox:n}):Y.createElement(qo,{key:"label-implicit",content:t,viewBox:n}):Ut(t)?Y.createElement(qo,{key:"label-implicit",content:t,viewBox:n}):tb(t)?Y.createElement(qo,Rx({viewBox:n},t,{key:"label-implicit"})):null:null},RYe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,i=Mre(t),a=Yi(o,qo).map(function(l,c){return v.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return a;var s=$Ye(t.label,n||i);return[s].concat(gYe(a))};qo.parseViewBox=Mre;qo.renderCallByParent=RYe;function DYe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _Ye=DYe;const LYe=jn(_Ye);function Dx(e){"@babel/helpers - typeof";return Dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dx(e)}var NYe=["valueAccessor"],FYe=["data","dataKey","clockWise","id","textBreakAll"];function jYe(e){return HYe(e)||VYe(e)||zYe(e)||BYe()}function BYe(){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 zYe(e,t){if(e){if(typeof e=="string")return z_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z_(e,t)}}function VYe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HYe(e){if(Array.isArray(e))return z_(e)}function z_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$T.apply(this,arguments)}function LG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LG(Object(n),!0).forEach(function(r){UYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UYe(e,t,n){return t=WYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WYe(e){var t=GYe(e,"string");return Dx(t)=="symbol"?t:t+""}function GYe(e,t){if(Dx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FG(e,t){if(e==null)return{};var n=qYe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qYe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var KYe=function(t){return Array.isArray(t.value)?LYe(t.value):t.value};function ec(e){var t=e.valueAccessor,n=t===void 0?KYe:t,r=FG(e,NYe),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=FG(r,FYe);return!o||!o.length?null:Y.createElement(on,{className:"recharts-label-list"},o.map(function(u,d){var f=zt(i)?n(u,d):Mr(u&&u.payload,i),p=zt(s)?{}:{id:"".concat(s,"-").concat(d)};return Y.createElement(qo,$T({},$t(u,!0),c,p,{parentViewBox:u.parentViewBox,value:f,textBreakAll:l,viewBox:qo.parseViewBox(zt(a)?u:NG(NG({},u),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}ec.displayName="LabelList";function YYe(e,t){return e?e===!0?Y.createElement(ec,{key:"labelList-implicit",data:t}):Y.isValidElement(e)||Ut(e)?Y.createElement(ec,{key:"labelList-implicit",data:t,content:e}):tb(e)?Y.createElement(ec,$T({data:t},e,{key:"labelList-implicit"})):null:null}function XYe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Yi(r,ec).map(function(a,s){return v.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=YYe(e.label,t);return[i].concat(jYe(o))}ec.renderCallByParent=XYe;function _x(e){"@babel/helpers - typeof";return _x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_x(e)}function V_(){return V_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V_.apply(this,arguments)}function jG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function BG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jG(Object(n),!0).forEach(function(r){QYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QYe(e,t,n){return t=JYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JYe(e){var t=ZYe(e,"string");return _x(t)=="symbol"?t:t+""}function ZYe(e,t){if(_x(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_x(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eXe=function(t,n){var r=Hi(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},rP=function(t){var n=t.cx,r=t.cy,o=t.radius,i=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+o,d=Math.asin(l/u)/AT,f=c?i:i+a*d,p=Sr(n,r,u,f),m=Sr(n,r,o,f),g=c?i-a*d:i,y=Sr(n,r,u*Math.cos(d*AT),g);return{center:p,circleTangency:m,lineTangency:y,theta:d}},Are=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.startAngle,s=t.endAngle,l=eXe(a,s),c=a+l,u=Sr(n,r,i,a),d=Sr(n,r,i,c),f="M ".concat(u.x,",").concat(u.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(a>c),`,
`).concat(d.x,",").concat(d.y,`
`);if(o>0){var p=Sr(n,r,o,a),m=Sr(n,r,o,c);f+="L ".concat(m.x,",").concat(m.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(a<=c),`,
- `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},WKe=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=Li(u-c),f=RC({cx:n,cy:r,radius:i,angle:c,sign:d,cornerRadius:a,cornerIsExternal:l}),p=f.circleTangency,m=f.lineTangency,g=f.theta,y=RC({cx:n,cy:r,radius:i,angle:u,sign:-d,cornerRadius:a,cornerIsExternal:l}),b=y.circleTangency,x=y.lineTangency,S=y.theta,P=l?Math.abs(c-u):Math.abs(c-u)-g-S;if(P<0)return s?"M ".concat(m.x,",").concat(m.y,`
+ `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},tXe=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=Hi(u-c),f=rP({cx:n,cy:r,radius:i,angle:c,sign:d,cornerRadius:a,cornerIsExternal:l}),p=f.circleTangency,m=f.lineTangency,g=f.theta,y=rP({cx:n,cy:r,radius:i,angle:u,sign:-d,cornerRadius:a,cornerIsExternal:l}),b=y.circleTangency,x=y.lineTangency,S=y.theta,P=l?Math.abs(c-u):Math.abs(c-u)-g-S;if(P<0)return s?"M ".concat(m.x,",").concat(m.y,`
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
- `):Mne({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u});var E="M ".concat(m.x,",").concat(m.y,`
+ `):Are({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u});var E="M ".concat(m.x,",").concat(m.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,`
A`).concat(i,",").concat(i,",0,").concat(+(P>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(x.x,",").concat(x.y,`
- `);if(o>0){var T=RC({cx:n,cy:r,radius:o,angle:c,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),O=T.circleTangency,k=T.lineTangency,M=T.theta,I=RC({cx:n,cy:r,radius:o,angle:u,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),R=I.circleTangency,_=I.lineTangency,N=I.theta,B=l?Math.abs(c-u):Math.abs(c-u)-M-N;if(B<0&&a===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(_.x,",").concat(_.y,`
+ `);if(o>0){var T=rP({cx:n,cy:r,radius:o,angle:c,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),O=T.circleTangency,k=T.lineTangency,M=T.theta,I=rP({cx:n,cy:r,radius:o,angle:u,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),R=I.circleTangency,_=I.lineTangency,L=I.theta,j=l?Math.abs(c-u):Math.abs(c-u)-M-L;if(j<0&&a===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(_.x,",").concat(_.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(R.x,",").concat(R.y,`
- A`).concat(o,",").concat(o,",0,").concat(+(B>180),",").concat(+(d>0),",").concat(O.x,",").concat(O.y,`
- A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(k.x,",").concat(k.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},GKe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ane=function(t){var n=J6(J6({},GKe),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,f=n.className;if(a<i||u===d)return null;var p=pe("recharts-sector",f),m=a-i,g=Ni(s,m,0,!0),y;return g>0&&Math.abs(u-d)<360?y=WKe({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):y=Mne({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d}),Y.createElement("path",a_({},At(n,!0),{className:p,d:y,role:"img"}))};function fx(e){"@babel/helpers - typeof";return fx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fx(e)}function s_(){return s_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s_.apply(this,arguments)}function Z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(n),!0).forEach(function(r){qKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qKe(e,t,n){return t=KKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KKe(e){var t=YKe(e,"string");return fx(t)=="symbol"?t:t+""}function YKe(e,t){if(fx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tG={curveBasisClosed:qBe,curveBasisOpen:KBe,curveBasis:GBe,curveBumpX:$Be,curveBumpY:RBe,curveLinearClosed:YBe,curveLinear:FI,curveMonotoneX:XBe,curveMonotoneY:QBe,curveNatural:JBe,curveStep:ZBe,curveStepAfter:tze,curveStepBefore:eze},DC=function(t){return t.x===+t.x&&t.y===+t.y},e0=function(t){return t.x},t0=function(t){return t.y},XKe=function(t,n){if(Ht(t))return t;var r="curve".concat(LI(t));return(r==="curveMonotone"||r==="curveBump")&&n?tG["".concat(r).concat(n==="vertical"?"Y":"X")]:tG[r]||FI},QKe=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,i=o===void 0?[]:o,a=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=XKe(r,s),d=c?i.filter(function(g){return DC(g)}):i,f;if(Array.isArray(a)){var p=c?a.filter(function(g){return DC(g)}):a,m=d.map(function(g,y){return eG(eG({},g),{},{base:p[y]})});return s==="vertical"?f=PC().y(t0).x1(e0).x0(function(g){return g.base.x}):f=PC().x(e0).y1(t0).y0(function(g){return g.base.y}),f.defined(DC).curve(u),f(m)}return s==="vertical"&&at(a)?f=PC().y(t0).x1(e0).x0(a):at(a)?f=PC().x(e0).y1(t0).y0(a):f=Tee().x(e0).y(t0),f.defined(DC).curve(u),f(d)},df=function(t){var n=t.className,r=t.points,o=t.path,i=t.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?QKe(t):o;return Y.createElement("path",s_({},At(t,!1),AE(t),{className:pe("recharts-curve",n),d:a,ref:i}))},JKe=Object.getOwnPropertyNames,ZKe=Object.getOwnPropertySymbols,eYe=Object.prototype.hasOwnProperty;function nG(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function _C(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var i=o.cache,a=i.get(n),s=i.get(r);if(a&&s)return a===r&&s===n;i.set(n,r),i.set(r,n);var l=e(n,r,o);return i.delete(n),i.delete(r),l}}function rG(e){return JKe(e).concat(ZKe(e))}var $ne=Object.hasOwn||function(e,t){return eYe.call(e,t)};function Gv(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Rne="_owner",oG=Object.getOwnPropertyDescriptor,iG=Object.keys;function tYe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function nYe(e,t){return Gv(e.getTime(),t.getTime())}function aG(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.entries(),i=0,a,s;(a=o.next())&&!a.done;){for(var l=t.entries(),c=!1,u=0;(s=l.next())&&!s.done;){var d=a.value,f=d[0],p=d[1],m=s.value,g=m[0],y=m[1];!c&&!r[u]&&(c=n.equals(f,g,i,u,e,t,n)&&n.equals(p,y,f,g,e,t,n))&&(r[u]=!0),u++}if(!c)return!1;i++}return!0}function rYe(e,t,n){var r=iG(e),o=r.length;if(iG(t).length!==o)return!1;for(var i;o-- >0;)if(i=r[o],i===Rne&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!$ne(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function n0(e,t,n){var r=rG(e),o=r.length;if(rG(t).length!==o)return!1;for(var i,a,s;o-- >0;)if(i=r[o],i===Rne&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!$ne(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(a=oG(e,i),s=oG(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function oYe(e,t){return Gv(e.valueOf(),t.valueOf())}function iYe(e,t){return e.source===t.source&&e.flags===t.flags}function sG(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.values(),i,a;(i=o.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(a=s.next())&&!a.done;)!l&&!r[c]&&(l=n.equals(i.value,a.value,i.value,a.value,e,t,n))&&(r[c]=!0),c++;if(!l)return!1}return!0}function aYe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var sYe="[object Arguments]",lYe="[object Boolean]",cYe="[object Date]",uYe="[object Map]",dYe="[object Number]",fYe="[object Object]",pYe="[object RegExp]",hYe="[object Set]",mYe="[object String]",gYe=Array.isArray,lG=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,cG=Object.assign,yYe=Object.prototype.toString.call.bind(Object.prototype.toString);function vYe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,d,f){if(u===d)return!0;if(u==null||d==null||typeof u!="object"||typeof d!="object")return u!==u&&d!==d;var p=u.constructor;if(p!==d.constructor)return!1;if(p===Object)return o(u,d,f);if(gYe(u))return t(u,d,f);if(lG!=null&&lG(u))return l(u,d,f);if(p===Date)return n(u,d,f);if(p===RegExp)return a(u,d,f);if(p===Map)return r(u,d,f);if(p===Set)return s(u,d,f);var m=yYe(u);return m===cYe?n(u,d,f):m===pYe?a(u,d,f):m===uYe?r(u,d,f):m===hYe?s(u,d,f):m===fYe?typeof u.then!="function"&&typeof d.then!="function"&&o(u,d,f):m===sYe?o(u,d,f):m===lYe||m===dYe||m===mYe?i(u,d,f):!1}}function bYe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?n0:tYe,areDatesEqual:nYe,areMapsEqual:r?nG(aG,n0):aG,areObjectsEqual:r?n0:rYe,arePrimitiveWrappersEqual:oYe,areRegExpsEqual:iYe,areSetsEqual:r?nG(sG,n0):sG,areTypedArraysEqual:r?n0:aYe};if(n&&(o=cG({},o,n(o))),t){var i=_C(o.areArraysEqual),a=_C(o.areMapsEqual),s=_C(o.areObjectsEqual),l=_C(o.areSetsEqual);o=cG({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return o}function wYe(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function xYe(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(l,c){var u=r(),d=u.cache,f=d===void 0?t?new WeakMap:void 0:d,p=u.meta;return n(l,c,{cache:f,equals:o,meta:p,strict:i})};if(t)return function(l,c){return n(l,c,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(l,c){return n(l,c,a)}}var SYe=Bf();Bf({strict:!0});Bf({circular:!0});Bf({circular:!0,strict:!0});Bf({createInternalComparator:function(){return Gv}});Bf({strict:!0,createInternalComparator:function(){return Gv}});Bf({circular:!0,createInternalComparator:function(){return Gv}});Bf({circular:!0,createInternalComparator:function(){return Gv},strict:!0});function Bf(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,s=bYe(e),l=vYe(s),c=r?r(l):wYe(l);return xYe({circular:n,comparator:l,createState:o,equals:c,strict:a})}function CYe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function uG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):CYe(o)};requestAnimationFrame(r)}function l_(e){"@babel/helpers - typeof";return l_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l_(e)}function PYe(e){return IYe(e)||OYe(e)||TYe(e)||EYe()}function EYe(){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 TYe(e,t){if(e){if(typeof e=="string")return dG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dG(e,t)}}function dG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OYe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IYe(e){if(Array.isArray(e))return e}function kYe(){var e={},t=function(){return null},n=!1,r=function o(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=i,s=PYe(a),l=s[0],c=s.slice(1);if(typeof l=="number"){uG(o.bind(null,c),l);return}o(l),uG(o.bind(null,c));return}l_(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function px(e){"@babel/helpers - typeof";return px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},px(e)}function fG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fG(Object(n),!0).forEach(function(r){Dne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dne(e,t,n){return t=MYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MYe(e){var t=AYe(e,"string");return px(t)==="symbol"?t:String(t)}function AYe(e,t){if(px(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(px(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $Ye=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(i){return o.includes(i)})})},RYe=function(t){return t},DYe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},nw=function(t,n){return Object.keys(n).reduce(function(r,o){return pG(pG({},r),{},Dne({},o,t(o,n[o])))},{})},hG=function(t,n,r){return t.map(function(o){return"".concat(DYe(o)," ").concat(n,"ms ").concat(r)}).join(",")};function _Ye(e,t){return FYe(e)||NYe(e,t)||_ne(e,t)||LYe()}function LYe(){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 NYe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function FYe(e){if(Array.isArray(e))return e}function jYe(e){return VYe(e)||zYe(e)||_ne(e)||BYe()}function BYe(){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 _ne(e,t){if(e){if(typeof e=="string")return c_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c_(e,t)}}function zYe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VYe(e){if(Array.isArray(e))return c_(e)}function c_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sT=1e-4,Lne=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Nne=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},mG=function(t,n){return function(r){var o=Lne(t,n);return Nne(o,r)}},HYe=function(t,n){return function(r){var o=Lne(t,n),i=[].concat(jYe(o.map(function(a,s){return a*s}).slice(1)),[0]);return Nne(i,r)}},gG=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,i=0,a=1,s=1;break;case"ease":o=.25,i=.1,a=.25,s=1;break;case"ease-in":o=.42,i=0,a=1,s=1;break;case"ease-out":o=.42,i=0,a=.58,s=1;break;case"ease-in-out":o=0,i=0,a=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),u=_Ye(c,4);o=u[0],i=u[1],a=u[2],s=u[3]}}}var d=mG(o,a),f=mG(i,s),p=HYe(o,a),m=function(b){return b>1?1:b<0?0:b},g=function(b){for(var x=b>1?1:b,S=x,P=0;P<8;++P){var E=d(S)-x,T=p(S);if(Math.abs(E-x)<sT||T<sT)return f(S);S=m(S-E/T)}return f(S)};return g.isStepper=!1,g},UYe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,l=function(u,d,f){var p=-(u-d)*r,m=f*i,g=f+(p-m)*s/1e3,y=f*s/1e3+u;return Math.abs(y-d)<sT&&Math.abs(g)<sT?[d,0]:[y,g]};return l.isStepper=!0,l.dt=s,l},WYe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gG(o);case"spring":return UYe();default:if(o.split("(")[0]==="cubic-bezier")return gG(o)}return typeof o=="function"?o:null};function hx(e){"@babel/helpers - typeof";return hx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hx(e)}function yG(e){return KYe(e)||qYe(e)||Fne(e)||GYe()}function GYe(){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 qYe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KYe(e){if(Array.isArray(e))return d_(e)}function vG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vG(Object(n),!0).forEach(function(r){u_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u_(e,t,n){return t=YYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YYe(e){var t=XYe(e,"string");return hx(t)==="symbol"?t:String(t)}function XYe(e,t){if(hx(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hx(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QYe(e,t){return eXe(e)||ZYe(e,t)||Fne(e,t)||JYe()}function JYe(){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 Fne(e,t){if(e){if(typeof e=="string")return d_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d_(e,t)}}function d_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZYe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function eXe(e){if(Array.isArray(e))return e}var lT=function(t,n,r){return t+(n-t)*r},f_=function(t){var n=t.from,r=t.to;return n!==r},tXe=function e(t,n,r){var o=nw(function(i,a){if(f_(a)){var s=t(a.from,a.to,a.velocity),l=QYe(s,2),c=l[0],u=l[1];return Yo(Yo({},a),{},{from:c,velocity:u})}return a},n);return r<1?nw(function(i,a){return f_(a)?Yo(Yo({},a),{},{velocity:lT(a.velocity,o[i].velocity,r),from:lT(a.from,o[i].from,r)}):a},n):e(t,o,r-1)};const nXe=function(e,t,n,r,o){var i=$Ye(e,t),a=i.reduce(function(y,b){return Yo(Yo({},y),{},u_({},b,[e[b],t[b]]))},{}),s=i.reduce(function(y,b){return Yo(Yo({},y),{},u_({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,c,u,d=function(){return null},f=function(){return nw(function(b,x){return x.from},s)},p=function(){return!Object.values(s).filter(f_).length},m=function(b){c||(c=b);var x=b-c,S=x/n.dt;s=tXe(n,s,S),o(Yo(Yo(Yo({},e),t),f())),c=b,p()||(l=requestAnimationFrame(d))},g=function(b){u||(u=b);var x=(b-u)/r,S=nw(function(E,T){return lT.apply(void 0,yG(T).concat([n(x)]))},a);if(o(Yo(Yo(Yo({},e),t),S)),x<1)l=requestAnimationFrame(d);else{var P=nw(function(E,T){return lT.apply(void 0,yG(T).concat([n(1)]))},a);o(Yo(Yo(Yo({},e),t),P))}};return d=n.isStepper?m:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function Ny(e){"@babel/helpers - typeof";return Ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ny(e)}var rXe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function oXe(e,t){if(e==null)return{};var n=iXe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iXe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function $$(e){return cXe(e)||lXe(e)||sXe(e)||aXe()}function aXe(){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 sXe(e,t){if(e){if(typeof e=="string")return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}}function lXe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cXe(e){if(Array.isArray(e))return p_(e)}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bG(Object(n),!0).forEach(function(r){O0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O0(e,t,n){return t=jne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uXe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dXe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jne(r.key),r)}}function fXe(e,t,n){return t&&dXe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jne(e){var t=pXe(e,"string");return Ny(t)==="symbol"?t:String(t)}function pXe(e,t){if(Ny(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ny(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hXe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h_(e,t)}function h_(e,t){return h_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},h_(e,t)}function mXe(e){var t=gXe();return function(){var r=cT(e),o;if(t){var i=cT(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return m_(this,o)}}function m_(e,t){if(t&&(Ny(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g_(e)}function g_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gXe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cT(e){return cT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cT(e)}var nl=function(e){hXe(n,e);var t=mXe(n);function n(r,o){var i;uXe(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,l=a.attributeName,c=a.from,u=a.to,d=a.steps,f=a.children,p=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(g_(i)),i.changeStyle=i.changeStyle.bind(g_(i)),!s||p<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:u}),m_(i);if(d&&d.length)i.state={style:d[0].style};else if(c){if(typeof f=="function")return i.state={style:c},m_(i);i.state={style:l?O0({},l,c):c}}else i.state={style:{}};return i}return fXe(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,u=i.to,d=i.from,f=this.state.style;if(s){if(!a){var p={style:l?O0({},l,u):u};this.state&&f&&(l&&f[l]!==u||!l&&f!==u)&&this.setState(p);return}if(!(SYe(o.to,u)&&o.canBegin&&o.isActive)){var m=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=m||c?d:o.to;if(this.state&&f){var y={style:l?O0({},l,g):g};(l&&f[l]!==g||!l&&f!==g)&&this.setState(y)}this.runAnimation(wl(wl({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,l=o.duration,c=o.easing,u=o.begin,d=o.onAnimationEnd,f=o.onAnimationStart,p=nXe(a,s,WYe(c),l,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([f,u,m,l,d])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,l=o.onAnimationStart,c=a[0],u=c.style,d=c.duration,f=d===void 0?0:d,p=function(g,y,b){if(b===0)return g;var x=y.duration,S=y.easing,P=S===void 0?"ease":S,E=y.style,T=y.properties,O=y.onAnimationEnd,k=b>0?a[b-1]:y,M=T||Object.keys(E);if(typeof P=="function"||P==="spring")return[].concat($$(g),[i.runJSAnimation.bind(i,{from:k.style,to:E,duration:x,easing:P}),x]);var I=hG(M,x,P),R=wl(wl(wl({},k.style),E),{},{transition:I});return[].concat($$(g),[R,x,O]).filter(RYe)};return this.manager.start([l].concat($$(a.reduce(p,[u,Math.max(f,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=kYe());var i=o.begin,a=o.duration,s=o.attributeName,l=o.to,c=o.easing,u=o.onAnimationStart,d=o.onAnimationEnd,f=o.steps,p=o.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(o);return}if(f.length>1){this.runStepAnimation(o);return}var g=s?O0({},s,l):l,y=hG(Object.keys(g),a,c);m.start([u,i,wl(wl({},g),{},{transition:y}),a,d])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=oXe(o,rXe),c=v.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!s||c===0||a<=0)return i;var d=function(p){var m=p.props,g=m.style,y=g===void 0?{}:g,b=m.className,x=v.cloneElement(p,wl(wl({},l),{},{style:wl(wl({},y),u),className:b}));return x};return c===1?d(v.Children.only(i)):Y.createElement("div",null,v.Children.map(i,function(f){return d(f)}))}}]),n}(v.PureComponent);nl.displayName="Animate";nl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};nl.propTypes={from:j.oneOfType([j.object,j.string]),to:j.oneOfType([j.object,j.string]),attributeName:j.string,duration:j.number,begin:j.number,easing:j.oneOfType([j.string,j.func]),steps:j.arrayOf(j.shape({duration:j.number.isRequired,style:j.object.isRequired,easing:j.oneOfType([j.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),j.func]),properties:j.arrayOf("string"),onAnimationEnd:j.func})),children:j.oneOfType([j.node,j.func]),isActive:j.bool,canBegin:j.bool,onAnimationEnd:j.func,shouldReAnimate:j.bool,onAnimationStart:j.func,onAnimationReStart:j.func};j.object,j.object,j.object,j.element;j.object,j.object,j.object,j.oneOfType([j.array,j.element]),j.any;function mx(e){"@babel/helpers - typeof";return mx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mx(e)}function uT(){return uT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uT.apply(this,arguments)}function yXe(e,t){return xXe(e)||wXe(e,t)||bXe(e,t)||vXe()}function vXe(){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 bXe(e,t){if(e){if(typeof e=="string")return wG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wG(e,t)}}function wG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wXe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function xXe(e){if(Array.isArray(e))return e}function xG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function SG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xG(Object(n),!0).forEach(function(r){SXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SXe(e,t,n){return t=CXe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CXe(e){var t=PXe(e,"string");return mx(t)=="symbol"?t:t+""}function PXe(e,t){if(mx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CG=function(t,n,r,o,i){var a=Math.min(Math.abs(r)/2,Math.abs(o)/2),s=o>=0?1:-1,l=r>=0?1:-1,c=o>=0&&r>=0||o<0&&r<0?1:0,u;if(a>0&&i instanceof Array){for(var d=[0,0,0,0],f=0,p=4;f<p;f++)d[f]=i[f]>a?a:i[f];u="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+l*d[0],",").concat(n)),u+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
+ A`).concat(o,",").concat(o,",0,").concat(+(j>180),",").concat(+(d>0),",").concat(O.x,",").concat(O.y,`
+ A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(k.x,",").concat(k.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},nXe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},$re=function(t){var n=BG(BG({},nXe),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,f=n.className;if(a<i||u===d)return null;var p=pe("recharts-sector",f),m=a-i,g=Ui(s,m,0,!0),y;return g>0&&Math.abs(u-d)<360?y=tXe({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):y=Are({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d}),Y.createElement("path",V_({},$t(n,!0),{className:p,d:y,role:"img"}))};function Lx(e){"@babel/helpers - typeof";return Lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lx(e)}function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H_.apply(this,arguments)}function zG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function VG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zG(Object(n),!0).forEach(function(r){rXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rXe(e,t,n){return t=oXe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oXe(e){var t=iXe(e,"string");return Lx(t)=="symbol"?t:t+""}function iXe(e,t){if(Lx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HG={curveBasisClosed:rVe,curveBasisOpen:oVe,curveBasis:nVe,curveBumpX:Vze,curveBumpY:Hze,curveLinearClosed:iVe,curveLinear:dk,curveMonotoneX:aVe,curveMonotoneY:sVe,curveNatural:lVe,curveStep:cVe,curveStepAfter:dVe,curveStepBefore:uVe},oP=function(t){return t.x===+t.x&&t.y===+t.y},P0=function(t){return t.x},E0=function(t){return t.y},aXe=function(t,n){if(Ut(t))return t;var r="curve".concat(ck(t));return(r==="curveMonotone"||r==="curveBump")&&n?HG["".concat(r).concat(n==="vertical"?"Y":"X")]:HG[r]||dk},sXe=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,i=o===void 0?[]:o,a=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=aXe(r,s),d=c?i.filter(function(g){return oP(g)}):i,f;if(Array.isArray(a)){var p=c?a.filter(function(g){return oP(g)}):a,m=d.map(function(g,y){return VG(VG({},g),{},{base:p[y]})});return s==="vertical"?f=KC().y(E0).x1(P0).x0(function(g){return g.base.x}):f=KC().x(P0).y1(E0).y0(function(g){return g.base.y}),f.defined(oP).curve(u),f(m)}return s==="vertical"&&at(a)?f=KC().y(E0).x1(P0).x0(a):at(a)?f=KC().x(P0).y1(E0).y0(a):f=Ote().x(P0).y(E0),f.defined(oP).curve(u),f(d)},Tf=function(t){var n=t.className,r=t.points,o=t.path,i=t.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?sXe(t):o;return Y.createElement("path",H_({},$t(t,!1),rT(t),{className:pe("recharts-curve",n),d:a,ref:i}))},lXe=Object.getOwnPropertyNames,cXe=Object.getOwnPropertySymbols,uXe=Object.prototype.hasOwnProperty;function UG(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function iP(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var i=o.cache,a=i.get(n),s=i.get(r);if(a&&s)return a===r&&s===n;i.set(n,r),i.set(r,n);var l=e(n,r,o);return i.delete(n),i.delete(r),l}}function WG(e){return lXe(e).concat(cXe(e))}var Rre=Object.hasOwn||function(e,t){return uXe.call(e,t)};function hb(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Dre="_owner",GG=Object.getOwnPropertyDescriptor,qG=Object.keys;function dXe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function fXe(e,t){return hb(e.getTime(),t.getTime())}function KG(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.entries(),i=0,a,s;(a=o.next())&&!a.done;){for(var l=t.entries(),c=!1,u=0;(s=l.next())&&!s.done;){var d=a.value,f=d[0],p=d[1],m=s.value,g=m[0],y=m[1];!c&&!r[u]&&(c=n.equals(f,g,i,u,e,t,n)&&n.equals(p,y,f,g,e,t,n))&&(r[u]=!0),u++}if(!c)return!1;i++}return!0}function pXe(e,t,n){var r=qG(e),o=r.length;if(qG(t).length!==o)return!1;for(var i;o-- >0;)if(i=r[o],i===Dre&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Rre(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function T0(e,t,n){var r=WG(e),o=r.length;if(WG(t).length!==o)return!1;for(var i,a,s;o-- >0;)if(i=r[o],i===Dre&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Rre(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(a=GG(e,i),s=GG(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function hXe(e,t){return hb(e.valueOf(),t.valueOf())}function mXe(e,t){return e.source===t.source&&e.flags===t.flags}function YG(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.values(),i,a;(i=o.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(a=s.next())&&!a.done;)!l&&!r[c]&&(l=n.equals(i.value,a.value,i.value,a.value,e,t,n))&&(r[c]=!0),c++;if(!l)return!1}return!0}function gXe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var yXe="[object Arguments]",vXe="[object Boolean]",bXe="[object Date]",wXe="[object Map]",xXe="[object Number]",SXe="[object Object]",CXe="[object RegExp]",PXe="[object Set]",EXe="[object String]",TXe=Array.isArray,XG=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,QG=Object.assign,OXe=Object.prototype.toString.call.bind(Object.prototype.toString);function IXe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,d,f){if(u===d)return!0;if(u==null||d==null||typeof u!="object"||typeof d!="object")return u!==u&&d!==d;var p=u.constructor;if(p!==d.constructor)return!1;if(p===Object)return o(u,d,f);if(TXe(u))return t(u,d,f);if(XG!=null&&XG(u))return l(u,d,f);if(p===Date)return n(u,d,f);if(p===RegExp)return a(u,d,f);if(p===Map)return r(u,d,f);if(p===Set)return s(u,d,f);var m=OXe(u);return m===bXe?n(u,d,f):m===CXe?a(u,d,f):m===wXe?r(u,d,f):m===PXe?s(u,d,f):m===SXe?typeof u.then!="function"&&typeof d.then!="function"&&o(u,d,f):m===yXe?o(u,d,f):m===vXe||m===xXe||m===EXe?i(u,d,f):!1}}function kXe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?T0:dXe,areDatesEqual:fXe,areMapsEqual:r?UG(KG,T0):KG,areObjectsEqual:r?T0:pXe,arePrimitiveWrappersEqual:hXe,areRegExpsEqual:mXe,areSetsEqual:r?UG(YG,T0):YG,areTypedArraysEqual:r?T0:gXe};if(n&&(o=QG({},o,n(o))),t){var i=iP(o.areArraysEqual),a=iP(o.areMapsEqual),s=iP(o.areObjectsEqual),l=iP(o.areSetsEqual);o=QG({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return o}function MXe(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function AXe(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(l,c){var u=r(),d=u.cache,f=d===void 0?t?new WeakMap:void 0:d,p=u.meta;return n(l,c,{cache:f,equals:o,meta:p,strict:i})};if(t)return function(l,c){return n(l,c,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(l,c){return n(l,c,a)}}var $Xe=np();np({strict:!0});np({circular:!0});np({circular:!0,strict:!0});np({createInternalComparator:function(){return hb}});np({strict:!0,createInternalComparator:function(){return hb}});np({circular:!0,createInternalComparator:function(){return hb}});np({circular:!0,createInternalComparator:function(){return hb},strict:!0});function np(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,s=kXe(e),l=IXe(s),c=r?r(l):MXe(l);return AXe({circular:n,comparator:l,createState:o,equals:c,strict:a})}function RXe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function JG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):RXe(o)};requestAnimationFrame(r)}function U_(e){"@babel/helpers - typeof";return U_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U_(e)}function DXe(e){return FXe(e)||NXe(e)||LXe(e)||_Xe()}function _Xe(){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 LXe(e,t){if(e){if(typeof e=="string")return ZG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZG(e,t)}}function ZG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NXe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FXe(e){if(Array.isArray(e))return e}function jXe(){var e={},t=function(){return null},n=!1,r=function o(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=i,s=DXe(a),l=s[0],c=s.slice(1);if(typeof l=="number"){JG(o.bind(null,c),l);return}o(l),JG(o.bind(null,c));return}U_(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Nx(e){"@babel/helpers - typeof";return Nx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nx(e)}function e8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function t8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e8(Object(n),!0).forEach(function(r){_re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _re(e,t,n){return t=BXe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BXe(e){var t=zXe(e,"string");return Nx(t)==="symbol"?t:String(t)}function zXe(e,t){if(Nx(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nx(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VXe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(i){return o.includes(i)})})},HXe=function(t){return t},UXe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Tw=function(t,n){return Object.keys(n).reduce(function(r,o){return t8(t8({},r),{},_re({},o,t(o,n[o])))},{})},n8=function(t,n,r){return t.map(function(o){return"".concat(UXe(o)," ").concat(n,"ms ").concat(r)}).join(",")};function WXe(e,t){return KXe(e)||qXe(e,t)||Lre(e,t)||GXe()}function GXe(){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 qXe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function KXe(e){if(Array.isArray(e))return e}function YXe(e){return JXe(e)||QXe(e)||Lre(e)||XXe()}function XXe(){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 Lre(e,t){if(e){if(typeof e=="string")return W_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W_(e,t)}}function QXe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JXe(e){if(Array.isArray(e))return W_(e)}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var RT=1e-4,Nre=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Fre=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},r8=function(t,n){return function(r){var o=Nre(t,n);return Fre(o,r)}},ZXe=function(t,n){return function(r){var o=Nre(t,n),i=[].concat(YXe(o.map(function(a,s){return a*s}).slice(1)),[0]);return Fre(i,r)}},o8=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,i=0,a=1,s=1;break;case"ease":o=.25,i=.1,a=.25,s=1;break;case"ease-in":o=.42,i=0,a=1,s=1;break;case"ease-out":o=.42,i=0,a=.58,s=1;break;case"ease-in-out":o=0,i=0,a=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),u=WXe(c,4);o=u[0],i=u[1],a=u[2],s=u[3]}}}var d=r8(o,a),f=r8(i,s),p=ZXe(o,a),m=function(b){return b>1?1:b<0?0:b},g=function(b){for(var x=b>1?1:b,S=x,P=0;P<8;++P){var E=d(S)-x,T=p(S);if(Math.abs(E-x)<RT||T<RT)return f(S);S=m(S-E/T)}return f(S)};return g.isStepper=!1,g},eQe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,l=function(u,d,f){var p=-(u-d)*r,m=f*i,g=f+(p-m)*s/1e3,y=f*s/1e3+u;return Math.abs(y-d)<RT&&Math.abs(g)<RT?[d,0]:[y,g]};return l.isStepper=!0,l.dt=s,l},tQe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return o8(o);case"spring":return eQe();default:if(o.split("(")[0]==="cubic-bezier")return o8(o)}return typeof o=="function"?o:null};function Fx(e){"@babel/helpers - typeof";return Fx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fx(e)}function i8(e){return oQe(e)||rQe(e)||jre(e)||nQe()}function nQe(){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 rQe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oQe(e){if(Array.isArray(e))return q_(e)}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(n),!0).forEach(function(r){G_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G_(e,t,n){return t=iQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iQe(e){var t=aQe(e,"string");return Fx(t)==="symbol"?t:String(t)}function aQe(e,t){if(Fx(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fx(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sQe(e,t){return uQe(e)||cQe(e,t)||jre(e,t)||lQe()}function lQe(){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 jre(e,t){if(e){if(typeof e=="string")return q_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q_(e,t)}}function q_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cQe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function uQe(e){if(Array.isArray(e))return e}var DT=function(t,n,r){return t+(n-t)*r},K_=function(t){var n=t.from,r=t.to;return n!==r},dQe=function e(t,n,r){var o=Tw(function(i,a){if(K_(a)){var s=t(a.from,a.to,a.velocity),l=sQe(s,2),c=l[0],u=l[1];return ni(ni({},a),{},{from:c,velocity:u})}return a},n);return r<1?Tw(function(i,a){return K_(a)?ni(ni({},a),{},{velocity:DT(a.velocity,o[i].velocity,r),from:DT(a.from,o[i].from,r)}):a},n):e(t,o,r-1)};const fQe=function(e,t,n,r,o){var i=VXe(e,t),a=i.reduce(function(y,b){return ni(ni({},y),{},G_({},b,[e[b],t[b]]))},{}),s=i.reduce(function(y,b){return ni(ni({},y),{},G_({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,c,u,d=function(){return null},f=function(){return Tw(function(b,x){return x.from},s)},p=function(){return!Object.values(s).filter(K_).length},m=function(b){c||(c=b);var x=b-c,S=x/n.dt;s=dQe(n,s,S),o(ni(ni(ni({},e),t),f())),c=b,p()||(l=requestAnimationFrame(d))},g=function(b){u||(u=b);var x=(b-u)/r,S=Tw(function(E,T){return DT.apply(void 0,i8(T).concat([n(x)]))},a);if(o(ni(ni(ni({},e),t),S)),x<1)l=requestAnimationFrame(d);else{var P=Tw(function(E,T){return DT.apply(void 0,i8(T).concat([n(1)]))},a);o(ni(ni(ni({},e),t),P))}};return d=n.isStepper?m:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function iv(e){"@babel/helpers - typeof";return iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iv(e)}var pQe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hQe(e,t){if(e==null)return{};var n=mQe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mQe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hR(e){return bQe(e)||vQe(e)||yQe(e)||gQe()}function gQe(){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 yQe(e,t){if(e){if(typeof e=="string")return Y_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y_(e,t)}}function vQe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bQe(e){if(Array.isArray(e))return Y_(e)}function Y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(n),!0).forEach(function(r){Q0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q0(e,t,n){return t=Bre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xQe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bre(r.key),r)}}function SQe(e,t,n){return t&&xQe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bre(e){var t=CQe(e,"string");return iv(t)==="symbol"?t:String(t)}function CQe(e,t){if(iv(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(iv(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X_(e,t)}function X_(e,t){return X_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},X_(e,t)}function EQe(e){var t=TQe();return function(){var r=_T(e),o;if(t){var i=_T(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Q_(this,o)}}function Q_(e,t){if(t&&(iv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J_(e)}function J_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TQe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _T(e){return _T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_T(e)}var dl=function(e){PQe(n,e);var t=EQe(n);function n(r,o){var i;wQe(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,l=a.attributeName,c=a.from,u=a.to,d=a.steps,f=a.children,p=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(J_(i)),i.changeStyle=i.changeStyle.bind(J_(i)),!s||p<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:u}),Q_(i);if(d&&d.length)i.state={style:d[0].style};else if(c){if(typeof f=="function")return i.state={style:c},Q_(i);i.state={style:l?Q0({},l,c):c}}else i.state={style:{}};return i}return SQe(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,u=i.to,d=i.from,f=this.state.style;if(s){if(!a){var p={style:l?Q0({},l,u):u};this.state&&f&&(l&&f[l]!==u||!l&&f!==u)&&this.setState(p);return}if(!($Xe(o.to,u)&&o.canBegin&&o.isActive)){var m=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=m||c?d:o.to;if(this.state&&f){var y={style:l?Q0({},l,g):g};(l&&f[l]!==g||!l&&f!==g)&&this.setState(y)}this.runAnimation(Al(Al({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,l=o.duration,c=o.easing,u=o.begin,d=o.onAnimationEnd,f=o.onAnimationStart,p=fQe(a,s,tQe(c),l,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([f,u,m,l,d])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,l=o.onAnimationStart,c=a[0],u=c.style,d=c.duration,f=d===void 0?0:d,p=function(g,y,b){if(b===0)return g;var x=y.duration,S=y.easing,P=S===void 0?"ease":S,E=y.style,T=y.properties,O=y.onAnimationEnd,k=b>0?a[b-1]:y,M=T||Object.keys(E);if(typeof P=="function"||P==="spring")return[].concat(hR(g),[i.runJSAnimation.bind(i,{from:k.style,to:E,duration:x,easing:P}),x]);var I=n8(M,x,P),R=Al(Al(Al({},k.style),E),{},{transition:I});return[].concat(hR(g),[R,x,O]).filter(HXe)};return this.manager.start([l].concat(hR(a.reduce(p,[u,Math.max(f,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=jXe());var i=o.begin,a=o.duration,s=o.attributeName,l=o.to,c=o.easing,u=o.onAnimationStart,d=o.onAnimationEnd,f=o.steps,p=o.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(o);return}if(f.length>1){this.runStepAnimation(o);return}var g=s?Q0({},s,l):l,y=n8(Object.keys(g),a,c);m.start([u,i,Al(Al({},g),{},{transition:y}),a,d])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=hQe(o,pQe),c=v.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!s||c===0||a<=0)return i;var d=function(p){var m=p.props,g=m.style,y=g===void 0?{}:g,b=m.className,x=v.cloneElement(p,Al(Al({},l),{},{style:Al(Al({},y),u),className:b}));return x};return c===1?d(v.Children.only(i)):Y.createElement("div",null,v.Children.map(i,function(f){return d(f)}))}}]),n}(v.PureComponent);dl.displayName="Animate";dl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};dl.propTypes={from:B.oneOfType([B.object,B.string]),to:B.oneOfType([B.object,B.string]),attributeName:B.string,duration:B.number,begin:B.number,easing:B.oneOfType([B.string,B.func]),steps:B.arrayOf(B.shape({duration:B.number.isRequired,style:B.object.isRequired,easing:B.oneOfType([B.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),B.func]),properties:B.arrayOf("string"),onAnimationEnd:B.func})),children:B.oneOfType([B.node,B.func]),isActive:B.bool,canBegin:B.bool,onAnimationEnd:B.func,shouldReAnimate:B.bool,onAnimationStart:B.func,onAnimationReStart:B.func};B.object,B.object,B.object,B.element;B.object,B.object,B.object,B.oneOfType([B.array,B.element]),B.any;function jx(e){"@babel/helpers - typeof";return jx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jx(e)}function LT(){return LT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LT.apply(this,arguments)}function OQe(e,t){return AQe(e)||MQe(e,t)||kQe(e,t)||IQe()}function IQe(){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 kQe(e,t){if(e){if(typeof e=="string")return l8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l8(e,t)}}function l8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MQe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function AQe(e){if(Array.isArray(e))return e}function c8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function u8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(n),!0).forEach(function(r){$Qe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Qe(e,t,n){return t=RQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RQe(e){var t=DQe(e,"string");return jx(t)=="symbol"?t:t+""}function DQe(e,t){if(jx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d8=function(t,n,r,o,i){var a=Math.min(Math.abs(r)/2,Math.abs(o)/2),s=o>=0?1:-1,l=r>=0?1:-1,c=o>=0&&r>=0||o<0&&r<0?1:0,u;if(a>0&&i instanceof Array){for(var d=[0,0,0,0],f=0,p=4;f<p;f++)d[f]=i[f]>a?a:i[f];u="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+l*d[0],",").concat(n)),u+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
`).concat(t+r,",").concat(n+s*d[1])),u+="L ".concat(t+r,",").concat(n+o-s*d[2]),d[2]>0&&(u+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`,
`).concat(t+r-l*d[2],",").concat(n+o)),u+="L ".concat(t+l*d[3],",").concat(n+o),d[3]>0&&(u+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`,
`).concat(t,",").concat(n+o-s*d[3])),u+="Z"}else if(a>0&&i===+i&&i>0){var m=Math.min(a,i);u="M ".concat(t,",").concat(n+s*m,`
@@ -342,24 +342,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
L `).concat(t+r,",").concat(n+o-s*m,`
A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+r-l*m,",").concat(n+o,`
L `).concat(t+l*m,",").concat(n+o,`
- A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(n+o-s*m," Z")}else u="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return u},EXe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),u=Math.max(i,i+s),d=Math.min(a,a+l),f=Math.max(a,a+l);return r>=c&&r<=u&&o>=d&&o<=f}return!1},TXe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qj=function(t){var n=SG(SG({},TXe),t),r=v.useRef(),o=v.useState(-1),i=yXe(o,2),a=i[0],s=i[1];v.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&s(P)}catch{}},[]);var l=n.x,c=n.y,u=n.width,d=n.height,f=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,y=n.animationBegin,b=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var S=pe("recharts-rectangle",p);return x?Y.createElement(nl,{canBegin:a>0,from:{width:u,height:d,x:l,y:c},to:{width:u,height:d,x:l,y:c},duration:g,animationEasing:m,isActive:x},function(P){var E=P.width,T=P.height,O=P.x,k=P.y;return Y.createElement(nl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:b,easing:m},Y.createElement("path",uT({},At(n,!0),{className:S,d:CG(O,k,E,T,f),ref:r})))}):Y.createElement("path",uT({},At(n,!0),{className:S,d:CG(l,c,u,d,f)}))},OXe=["points","className","baseLinePoints","connectNulls"];function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bg.apply(this,arguments)}function IXe(e,t){if(e==null)return{};var n=kXe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kXe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function PG(e){return RXe(e)||$Xe(e)||AXe(e)||MXe()}function MXe(){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 AXe(e,t){if(e){if(typeof e=="string")return y_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(e,t)}}function $Xe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RXe(e){if(Array.isArray(e))return y_(e)}function y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EG=function(t){return t&&t.x===+t.x&&t.y===+t.y},DXe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){EG(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),EG(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},rw=function(t,n){var r=DXe(t);n&&(r=[r.reduce(function(i,a){return[].concat(PG(i),PG(a))},[])]);var o=r.map(function(i){return i.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},_Xe=function(t,n,r){var o=rw(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(rw(n.reverse(),r).slice(1))},LXe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,i=t.connectNulls,a=IXe(t,OXe);if(!n||!n.length)return null;var s=pe("recharts-polygon",r);if(o&&o.length){var l=a.stroke&&a.stroke!=="none",c=_Xe(n,o,i);return Y.createElement("g",{className:s},Y.createElement("path",bg({},At(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:c})),l?Y.createElement("path",bg({},At(a,!0),{fill:"none",d:rw(n,i)})):null,l?Y.createElement("path",bg({},At(a,!0),{fill:"none",d:rw(o,i)})):null)}var u=rw(n,i);return Y.createElement("path",bg({},At(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",className:s,d:u}))};function v_(){return v_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v_.apply(this,arguments)}var kS=function(t){var n=t.cx,r=t.cy,o=t.r,i=t.className,a=pe("recharts-dot",i);return n===+n&&r===+r&&o===+o?Y.createElement("circle",v_({},At(t,!1),AE(t),{className:a,cx:n,cy:r,r:o})):null};function gx(e){"@babel/helpers - typeof";return gx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gx(e)}var NXe=["x","y","top","left","width","height","className"];function b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b_.apply(this,arguments)}function TG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function FXe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){jXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jXe(e,t,n){return t=BXe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BXe(e){var t=zXe(e,"string");return gx(t)=="symbol"?t:t+""}function zXe(e,t){if(gx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VXe(e,t){if(e==null)return{};var n=HXe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HXe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var UXe=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},WXe=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,l=t.left,c=l===void 0?0:l,u=t.width,d=u===void 0?0:u,f=t.height,p=f===void 0?0:f,m=t.className,g=VXe(t,NXe),y=FXe({x:r,y:i,top:s,left:c,width:d,height:p},g);return!at(r)||!at(i)||!at(d)||!at(p)||!at(s)||!at(c)?null:Y.createElement("path",b_({},At(y,!0),{className:pe("recharts-cross",m),d:UXe(r,i,d,p,s,c)}))},GXe=QI,qXe=Zte,KXe=zc;function YXe(e,t){return e&&e.length?GXe(e,KXe(t),qXe):void 0}var XXe=YXe;const QXe=Bn(XXe);var JXe=QI,ZXe=zc,eQe=ene;function tQe(e,t){return e&&e.length?JXe(e,ZXe(t),eQe):void 0}var nQe=tQe;const rQe=Bn(nQe);var oQe=["cx","cy","angle","ticks","axisLine"],iQe=["ticks","tick","angle","tickFormatter","stroke"];function Fy(e){"@babel/helpers - typeof";return Fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fy(e)}function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ow.apply(this,arguments)}function OG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OG(Object(n),!0).forEach(function(r){tk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IG(e,t){if(e==null)return{};var n=aQe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aQe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zne(r.key),r)}}function lQe(e,t,n){return t&&kG(e.prototype,t),n&&kG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cQe(e,t,n){return t=dT(t),uQe(e,Bne()?Reflect.construct(t,n||[],dT(e).constructor):t.apply(e,n))}function uQe(e,t){if(t&&(Fy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dQe(e)}function dQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bne=function(){return!!e})()}function dT(e){return dT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dT(e)}function fQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w_(e,t)}function w_(e,t){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},w_(e,t)}function tk(e,t,n){return t=zne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zne(e){var t=pQe(e,"string");return Fy(t)=="symbol"?t:t+""}function pQe(e,t){if(Fy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nk=function(e){function t(){return sQe(this,t),cQe(this,t,arguments)}return fQe(t,e),lQe(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,i=this.props,a=i.angle,s=i.cx,l=i.cy;return Sr(s,l,o,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.angle,s=r.ticks,l=QXe(s,function(u){return u.coordinate||0}),c=rQe(s,function(u){return u.coordinate||0});return{cx:o,cy:i,startAngle:a,endAngle:a,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,c=IG(r,oQe),u=s.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),d=Sr(o,i,u[0],a),f=Sr(o,i,u[1],a),p=cp(cp(cp({},At(c,!1)),{},{fill:"none"},At(l,!1)),{},{x1:d.x,y1:d.y,x2:f.x,y2:f.y});return Y.createElement("line",ow({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.angle,l=o.tickFormatter,c=o.stroke,u=IG(o,iQe),d=this.getTickTextAnchor(),f=At(u,!1),p=At(a,!1),m=i.map(function(g,y){var b=r.getTickValueCoord(g),x=cp(cp(cp(cp({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:y},b),{},{payload:g});return Y.createElement(rn,ow({className:pe("recharts-polar-radius-axis-tick",Ine(a)),key:"tick-".concat(g.coordinate)},wf(r.props,g,y)),t.renderTickItem(a,x,l?l(g.value,y):g.value))});return Y.createElement(rn,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.axisLine,a=r.tick;return!o||!o.length?null:Y.createElement(rn,{className:pe("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),a&&this.renderTicks(),Vo.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ht(r)?a=r(o):a=Y.createElement(bh,ow({},o,{className:"recharts-polar-radius-axis-tick-value"}),i),a}}])}(v.PureComponent);tk(nk,"displayName","PolarRadiusAxis");tk(nk,"axisType","radiusAxis");tk(nk,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function jy(e){"@babel/helpers - typeof";return jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jy(e)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tp.apply(this,arguments)}function MG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MG(Object(n),!0).forEach(function(r){rk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hne(r.key),r)}}function mQe(e,t,n){return t&&AG(e.prototype,t),n&&AG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gQe(e,t,n){return t=fT(t),yQe(e,Vne()?Reflect.construct(t,n||[],fT(e).constructor):t.apply(e,n))}function yQe(e,t){if(t&&(jy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vQe(e)}function vQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vne=function(){return!!e})()}function fT(e){return fT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fT(e)}function bQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x_(e,t)}function x_(e,t){return x_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},x_(e,t)}function rk(e,t,n){return t=Hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hne(e){var t=wQe(e,"string");return jy(t)=="symbol"?t:t+""}function wQe(e,t){if(jy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xQe=Math.PI/180,$G=1e-5,ok=function(e){function t(){return hQe(this,t),gQe(this,t,arguments)}return bQe(t,e),mQe(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,i=o.cx,a=o.cy,s=o.radius,l=o.orientation,c=o.tickSize,u=c||8,d=Sr(i,a,s,r.coordinate),f=Sr(i,a,s+(l==="inner"?-1:1)*u,r.coordinate);return{x1:d.x,y1:d.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,i=Math.cos(-r.coordinate*xQe),a;return i>$G?a=o==="outer"?"start":"end":i<-$G?a=o==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,c=up(up({},At(this.props,!1)),{},{fill:"none"},At(s,!1));if(l==="circle")return Y.createElement(kS,Tp({className:"recharts-polar-angle-axis-line"},c,{cx:o,cy:i,r:a}));var u=this.props.ticks,d=u.map(function(f){return Sr(o,i,a,f.coordinate)});return Y.createElement(LXe,Tp({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.tickLine,l=o.tickFormatter,c=o.stroke,u=At(this.props,!1),d=At(a,!1),f=up(up({},u),{},{fill:"none"},At(s,!1)),p=i.map(function(m,g){var y=r.getTickLineCoord(m),b=r.getTickTextAnchor(m),x=up(up(up({textAnchor:b},u),{},{stroke:"none",fill:c},d),{},{index:g,payload:m,x:y.x2,y:y.y2});return Y.createElement(rn,Tp({className:pe("recharts-polar-angle-axis-tick",Ine(a)),key:"tick-".concat(m.coordinate)},wf(r.props,m,g)),s&&Y.createElement("line",Tp({className:"recharts-polar-angle-axis-tick-line"},f,y)),a&&t.renderTickItem(a,x,l?l(m.value,g):m.value))});return Y.createElement(rn,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.radius,a=r.axisLine;return i<=0||!o||!o.length?null:Y.createElement(rn,{className:pe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ht(r)?a=r(o):a=Y.createElement(bh,Tp({},o,{className:"recharts-polar-angle-axis-tick-value"}),i),a}}])}(v.PureComponent);rk(ok,"displayName","PolarAngleAxis");rk(ok,"axisType","angleAxis");rk(ok,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var SQe=Xee,CQe=SQe(Object.getPrototypeOf,Object),PQe=CQe,EQe=Zu,TQe=PQe,OQe=ed,IQe="[object Object]",kQe=Function.prototype,MQe=Object.prototype,Une=kQe.toString,AQe=MQe.hasOwnProperty,$Qe=Une.call(Object);function RQe(e){if(!OQe(e)||EQe(e)!=IQe)return!1;var t=TQe(e);if(t===null)return!0;var n=AQe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Une.call(n)==$Qe}var DQe=RQe;const _Qe=Bn(DQe);var LQe=Zu,NQe=ed,FQe="[object Boolean]";function jQe(e){return e===!0||e===!1||NQe(e)&&LQe(e)==FQe}var BQe=jQe;const zQe=Bn(BQe);function yx(e){"@babel/helpers - typeof";return yx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yx(e)}function pT(){return pT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pT.apply(this,arguments)}function VQe(e,t){return GQe(e)||WQe(e,t)||UQe(e,t)||HQe()}function HQe(){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 UQe(e,t){if(e){if(typeof e=="string")return RG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RG(e,t)}}function RG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WQe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function GQe(e){if(Array.isArray(e))return e}function DG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DG(Object(n),!0).forEach(function(r){qQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qQe(e,t,n){return t=KQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KQe(e){var t=YQe(e,"string");return yx(t)=="symbol"?t:t+""}function YQe(e,t){if(yx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LG=function(t,n,r,o,i){var a=r-o,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+i),s+="L ".concat(t+r-a/2-o,",").concat(n+i),s+="L ".concat(t,",").concat(n," Z"),s},XQe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QQe=function(t){var n=_G(_G({},XQe),t),r=v.useRef(),o=v.useState(-1),i=VQe(o,2),a=i[0],s=i[1];v.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var l=n.x,c=n.y,u=n.upperWidth,d=n.lowerWidth,f=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,y=n.animationBegin,b=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var x=pe("recharts-trapezoid",p);return b?Y.createElement(nl,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:c},to:{upperWidth:u,lowerWidth:d,height:f,x:l,y:c},duration:g,animationEasing:m,isActive:b},function(S){var P=S.upperWidth,E=S.lowerWidth,T=S.height,O=S.x,k=S.y;return Y.createElement(nl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,easing:m},Y.createElement("path",pT({},At(n,!0),{className:x,d:LG(O,k,P,E,T),ref:r})))}):Y.createElement("g",null,Y.createElement("path",pT({},At(n,!0),{className:x,d:LG(l,c,u,d,f)})))},JQe=["option","shapeType","propTransformer","activeClassName","isActive"];function vx(e){"@babel/helpers - typeof";return vx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vx(e)}function ZQe(e,t){if(e==null)return{};var n=eJe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eJe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NG(Object(n),!0).forEach(function(r){tJe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tJe(e,t,n){return t=nJe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nJe(e){var t=rJe(e,"string");return vx(t)=="symbol"?t:t+""}function rJe(e,t){if(vx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oJe(e,t){return hT(hT({},t),e)}function iJe(e,t){return e==="symbols"}function FG(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return Y.createElement(qj,n);case"trapezoid":return Y.createElement(QQe,n);case"sector":return Y.createElement(Ane,n);case"symbols":if(iJe(t))return Y.createElement(BI,n);break;default:return null}}function aJe(e){return v.isValidElement(e)?e.props:e}function mT(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?oJe:r,i=e.activeClassName,a=i===void 0?"recharts-active-shape":i,s=e.isActive,l=ZQe(e,JQe),c;if(v.isValidElement(t))c=v.cloneElement(t,hT(hT({},l),aJe(t)));else if(Ht(t))c=t(l);else if(_Qe(t)&&!zQe(t)){var u=o(t,l);c=Y.createElement(FG,{shapeType:n,elementProps:u})}else{var d=l;c=Y.createElement(FG,{shapeType:n,elementProps:d})}return s?Y.createElement(rn,{className:a},c):c}function ik(e,t){return t!=null&&"trapezoids"in e.props}function ak(e,t){return t!=null&&"sectors"in e.props}function bx(e,t){return t!=null&&"points"in e.props}function sJe(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&i}function lJe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function cJe(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function uJe(e,t){var n;return ik(e,t)?n=sJe:ak(e,t)?n=lJe:bx(e,t)&&(n=cJe),n}function dJe(e,t){var n;return ik(e,t)?n="trapezoids":ak(e,t)?n="sectors":bx(e,t)&&(n="points"),n}function fJe(e,t){if(ik(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(ak(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return bx(e,t)?t.payload:{}}function pJe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=dJe(n,t),i=fJe(n,t),a=r.filter(function(l,c){var u=xf(i,l),d=n.props[o].filter(function(m){var g=uJe(n,t);return g(m,t)}),f=n.props[o].indexOf(d[d.length-1]),p=c===f;return u&&p}),s=r.indexOf(a[a.length-1]);return s}var kP;function By(e){"@babel/helpers - typeof";return By=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},By(e)}function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wg.apply(this,arguments)}function jG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jG(Object(n),!0).forEach(function(r){Ls(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gne(r.key),r)}}function mJe(e,t,n){return t&&BG(e.prototype,t),n&&BG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gJe(e,t,n){return t=gT(t),yJe(e,Wne()?Reflect.construct(t,n||[],gT(e).constructor):t.apply(e,n))}function yJe(e,t){if(t&&(By(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vJe(e)}function vJe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wne=function(){return!!e})()}function gT(e){return gT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gT(e)}function bJe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S_(e,t)}function S_(e,t){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},S_(e,t)}function Ls(e,t,n){return t=Gne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gne(e){var t=wJe(e,"string");return By(t)=="symbol"?t:t+""}function wJe(e,t){if(By(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(By(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vc=function(e){function t(n){var r;return hJe(this,t),r=gJe(this,t,[n]),Ls(r,"pieRef",null),Ls(r,"sectorRefs",[]),Ls(r,"id",Lf("recharts-pie-")),Ls(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ht(o)&&o()}),Ls(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ht(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return bJe(t,e),mJe(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.label,s=i.labelLine,l=i.dataKey,c=i.valueKey,u=At(this.props,!1),d=At(a,!1),f=At(s,!1),p=a&&a.offsetRadius||20,m=r.map(function(g,y){var b=(g.startAngle+g.endAngle)/2,x=Sr(g.cx,g.cy,g.outerRadius+p,b),S=br(br(br(br({},u),g),{},{stroke:"none"},d),{},{index:y,textAnchor:t.getTextAnchor(x.x,g.cx)},x),P=br(br(br(br({},u),g),{},{fill:"none",stroke:g.fill},f),{},{index:y,points:[Sr(g.cx,g.cy,g.outerRadius,b),x]}),E=l;return Bt(l)&&Bt(c)?E="value":Bt(l)&&(E=c),Y.createElement(rn,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(y)},s&&t.renderLabelLineItem(s,P,"line"),t.renderLabelItem(a,S,kr(g,E)))});return Y.createElement(rn,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var o=this,i=this.props,a=i.activeShape,s=i.blendStroke,l=i.inactiveShape;return r.map(function(c,u){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var d=o.isActiveIndex(u),f=l&&o.hasActiveIndex()?l:null,p=d?a:f,m=br(br({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return Y.createElement(rn,wg({ref:function(y){y&&!o.sectorRefs.includes(y)&&o.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},wf(o.props,c,u),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(u)}),Y.createElement(mT,wg({option:p,isActive:d,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,i=o.sectors,a=o.isAnimationActive,s=o.animationBegin,l=o.animationDuration,c=o.animationEasing,u=o.animationId,d=this.state,f=d.prevSectors,p=d.prevIsAnimationActive;return Y.createElement(nl,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,y=[],b=i&&i[0],x=b.startAngle;return i.forEach(function(S,P){var E=f&&f[P],T=P>0?qa(S,"paddingAngle",0):0;if(E){var O=Vr(E.endAngle-E.startAngle,S.endAngle-S.startAngle),k=br(br({},S),{},{startAngle:x+T,endAngle:x+O(g)+T});y.push(k),x=k.endAngle}else{var M=S.endAngle,I=S.startAngle,R=Vr(0,M-I),_=R(g),N=br(br({},S),{},{startAngle:x+T,endAngle:x+_+T});y.push(N),x=N.endAngle}}),Y.createElement(rn,null,r.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var a=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[a].focus(),o.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,i=r.isAnimationActive,a=this.state.prevSectors;return i&&o&&o.length&&(!a||!xf(a,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,i=o.hide,a=o.sectors,s=o.className,l=o.label,c=o.cx,u=o.cy,d=o.innerRadius,f=o.outerRadius,p=o.isAnimationActive,m=this.state.isAnimationFinished;if(i||!a||!a.length||!at(c)||!at(u)||!at(d)||!at(f))return null;var g=pe("recharts-pie",s);return Y.createElement(rn,{tabIndex:this.props.rootTabIndex,className:g,ref:function(b){r.pieRef=b}},this.renderSectors(),l&&this.renderLabels(a),Vo.renderCallByParent(this.props,null,!1),(!p||m)&&Hl.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,i){if(Y.isValidElement(r))return Y.cloneElement(r,o);if(Ht(r))return r(o);var a=pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return Y.createElement(df,wg({},o,{key:i,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,o,i){if(Y.isValidElement(r))return Y.cloneElement(r,o);var a=i;if(Ht(r)&&(a=r(o),Y.isValidElement(a)))return a;var s=pe("recharts-pie-label-text",typeof r!="boolean"&&!Ht(r)?r.className:"");return Y.createElement(bh,wg({},o,{alignmentBaseline:"middle",className:s}),a)}}])}(v.PureComponent);kP=Vc;Ls(Vc,"displayName","Pie");Ls(Vc,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ks.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ls(Vc,"parseDeltaAngle",function(e,t){var n=Li(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Ls(Vc,"getRealPieData",function(e){var t=e.data,n=e.children,r=At(e,!1),o=Vi(n,zv);return t&&t.length?t.map(function(i,a){return br(br(br({payload:i},r),i),o&&o[a]&&o[a].props)}):o&&o.length?o.map(function(i){return br(br({},r),i.props)}):[]});Ls(Vc,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=One(o,i),s=r+Ni(e.cx,o,o/2),l=n+Ni(e.cy,i,i/2),c=Ni(e.innerRadius,a,0),u=Ni(e.outerRadius,a,a*.8),d=e.maxRadius||Math.sqrt(o*o+i*i)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:u,maxRadius:d}});Ls(Vc,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?br(br({},t.type.defaultProps),t.props):t.props,o=kP.getRealPieData(r);if(!o||!o.length)return null;var i=r.cornerRadius,a=r.startAngle,s=r.endAngle,l=r.paddingAngle,c=r.dataKey,u=r.nameKey,d=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),m=kP.parseCoordinateOfPie(r,n),g=kP.parseDeltaAngle(a,s),y=Math.abs(g),b=c;Bt(c)&&Bt(d)?(Vl(!1,`Use "dataKey" to specify the value of pie,
- the props "valueKey" will be deprecated in 1.1.0`),b="value"):Bt(c)&&(Vl(!1,`Use "dataKey" to specify the value of pie,
- the props "valueKey" will be deprecated in 1.1.0`),b=d);var x=o.filter(function(k){return kr(k,b,0)!==0}).length,S=(y>=360?x:x-1)*l,P=y-x*p-S,E=o.reduce(function(k,M){var I=kr(M,b,0);return k+(at(I)?I:0)},0),T;if(E>0){var O;T=o.map(function(k,M){var I=kr(k,b,0),R=kr(k,u,M),_=(at(I)?I:0)/E,N;M?N=O.endAngle+Li(g)*l*(I!==0?1:0):N=a;var B=N+Li(g)*((I!==0?p:0)+_*P),L=(N+B)/2,F=(m.innerRadius+m.outerRadius)/2,U=[{name:R,value:I,payload:k,dataKey:b,type:f}],V=Sr(m.cx,m.cy,F,L);return O=br(br(br({percent:_,cornerRadius:i,name:R,tooltipPayload:U,midAngle:L,middleRadius:F,tooltipPosition:V},k),m),{},{value:kr(k,b),startAngle:N,endAngle:B,payload:k,paddingAngle:Li(g)*l}),O})}return br(br({},m),{},{sectors:T,data:o})});var xJe=Math.ceil,SJe=Math.max;function CJe(e,t,n,r){for(var o=-1,i=SJe(xJe((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}var PJe=CJe,EJe=mte,zG=1/0,TJe=17976931348623157e292;function OJe(e){if(!e)return e===0?e:0;if(e=EJe(e),e===zG||e===-zG){var t=e<0?-1:1;return t*TJe}return e===e?e:0}var qne=OJe,IJe=PJe,kJe=HI,R$=qne;function MJe(e){return function(t,n,r){return r&&typeof r!="number"&&kJe(t,n,r)&&(n=r=void 0),t=R$(t),n===void 0?(n=t,t=0):n=R$(n),r=r===void 0?t<n?1:-1:R$(r),IJe(t,n,r,e)}}var AJe=MJe,$Je=AJe,RJe=$Je(),DJe=RJe;const yT=Bn(DJe);function wx(e){"@babel/helpers - typeof";return wx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wx(e)}function VG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function HG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VG(Object(n),!0).forEach(function(r){Kne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kne(e,t,n){return t=_Je(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Je(e){var t=LJe(e,"string");return wx(t)=="symbol"?t:t+""}function LJe(e,t){if(wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NJe=["Webkit","Moz","O","ms"],FJe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),o=NJe.reduce(function(i,a){return HG(HG({},i),{},Kne({},a+r,n))},{});return o[t]=n,o};function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}function vT(){return vT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vT.apply(this,arguments)}function UG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UG(Object(n),!0).forEach(function(r){$a(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xne(r.key),r)}}function BJe(e,t,n){return t&&WG(e.prototype,t),n&&WG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zJe(e,t,n){return t=bT(t),VJe(e,Yne()?Reflect.construct(t,n||[],bT(e).constructor):t.apply(e,n))}function VJe(e,t){if(t&&(zy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HJe(e)}function HJe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yne=function(){return!!e})()}function bT(e){return bT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bT(e)}function UJe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C_(e,t)}function C_(e,t){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},C_(e,t)}function $a(e,t,n){return t=Xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xne(e){var t=WJe(e,"string");return zy(t)=="symbol"?t:t+""}function WJe(e,t){if(zy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GJe=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,i=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,c=ew().domain(yT(0,l)).range([i,i+a-s]),u=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(o),scale:c,scaleValues:u}},GG=function(t){return t.changedTouches&&!!t.changedTouches.length},Vy=function(e){function t(n){var r;return jJe(this,t),r=zJe(this,t,[n]),$a(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),$a(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),$a(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),$a(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),$a(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),$a(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),$a(r,"handleSlideDragStart",function(o){var i=GG(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return UJe(t,e),BJe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,d=Math.min(o,i),f=Math.max(o,i),p=t.getIndexInRange(a,d),m=t.getIndexInRange(a,f);return{startIndex:p-p%l,endIndex:m===u?u:m-m%l}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,l=kr(i[r],s,r);return Ht(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,l=this.props,c=l.x,u=l.width,d=l.travellerWidth,f=l.startIndex,p=l.endIndex,m=l.onChange,g=r.pageX-i;g>0?g=Math.min(g,c+u-d-s,c+u-d-a):g<0&&(g=Math.max(g,c-a,c-s));var y=this.getIndex({startX:a+g,endX:s+g});(y.startIndex!==f||y.endIndex!==p)&&m&&m(y),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=GG(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,l=o.startX,c=this.state[a],u=this.props,d=u.x,f=u.width,p=u.travellerWidth,m=u.onChange,g=u.gap,y=u.data,b={startX:this.state.startX,endX:this.state.endX},x=r.pageX-i;x>0?x=Math.min(x,d+f-p-c):x<0&&(x=Math.max(x,d-c)),b[a]=c+x;var S=this.getIndex(b),P=S.startIndex,E=S.endIndex,T=function(){var k=y.length-1;return a==="startX"&&(s>l?P%g===0:E%g===0)||s<l&&E===k||a==="endX"&&(s>l?E%g===0:P%g===0)||s>l&&E===k};this.setState($a($a({},a,c+x),"brushMoveStartX",r.pageX),function(){m&&T()&&m(S)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,l=a.startX,c=a.endX,u=this.state[o],d=s.indexOf(u);if(d!==-1){var f=d+r;if(!(f===-1||f>=s.length)){var p=s[f];o==="startX"&&p>=c||o==="endX"&&p<=l||this.setState($a({},o,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.fill,c=r.stroke;return Y.createElement("rect",{stroke:c,fill:l,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.data,c=r.children,u=r.padding,d=v.Children.only(c);return d?Y.cloneElement(d,{x:o,y:i,width:a,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,l=this.props,c=l.y,u=l.travellerWidth,d=l.height,f=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,y=l.endIndex,b=Math.max(r,this.props.x),x=D$(D$({},At(this.props,!1)),{},{x:b,y:c,width:u,height:d}),S=p||"Min value: ".concat((i=m[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=m[y])===null||a===void 0?void 0:a.name);return Y.createElement(rn,{tabIndex:0,role:"slider","aria-label":S,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(E){["ArrowLeft","ArrowRight"].includes(E.key)&&(E.preventDefault(),E.stopPropagation(),s.handleTravellerMoveKeyboard(E.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,x))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,l=i.stroke,c=i.travellerWidth,u=Math.min(r,o)+c,d=Math.max(Math.abs(o-r)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,c=r.stroke,u=this.state,d=u.startX,f=u.endX,p=5,m={pointerEvents:"none",fill:c};return Y.createElement(rn,{className:"recharts-brush-texts"},Y.createElement(bh,vT({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-p,y:a+s/2},m),this.getTextOfTick(o)),Y.createElement(bh,vT({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+l+p,y:a+s/2},m),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,l=r.y,c=r.width,u=r.height,d=r.alwaysShowText,f=this.state,p=f.startX,m=f.endX,g=f.isTextActive,y=f.isSlideMoving,b=f.isTravellerMoving,x=f.isTravellerFocused;if(!o||!o.length||!at(s)||!at(l)||!at(c)||!at(u)||c<=0||u<=0)return null;var S=pe("recharts-brush",i),P=Y.Children.count(a)===1,E=FJe("userSelect","none");return Y.createElement(rn,{className:S,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(g||y||b||x||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,l=r.stroke,c=Math.floor(i+s/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:o,y:i,width:a,height:s,fill:l,stroke:"none"}),Y.createElement("line",{x1:o+1,y1:c,x2:o+a-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:o+1,y1:c+2,x2:o+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return Y.isValidElement(r)?i=Y.cloneElement(r,o):Ht(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,l=r.travellerWidth,c=r.updateId,u=r.startIndex,d=r.endIndex;if(i!==o.prevData||c!==o.prevUpdateId)return D$({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a},i&&i.length?GJe({data:i,width:a,x:s,travellerWidth:l,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([s,s+a-l]);var f=o.scale.domain().map(function(p){return o.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>o?s=l:a=l}return o>=r[s]?s:a}}])}(v.PureComponent);$a(Vy,"displayName","Brush");$a(Vy,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var qJe=bj;function KJe(e,t){var n;return qJe(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}var YJe=KJe,XJe=Vee,QJe=zc,JJe=YJe,ZJe=xa,eZe=HI;function tZe(e,t,n){var r=ZJe(e)?XJe:JJe;return n&&eZe(e,t,n)&&(t=void 0),r(e,QJe(t))}var nZe=tZe;const rZe=Bn(nZe);var kc=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},qG=ute;function oZe(e,t,n){t=="__proto__"&&qG?qG(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var iZe=oZe,aZe=iZe,sZe=lte,lZe=zc;function cZe(e,t){var n={};return t=lZe(t),sZe(e,function(r,o,i){aZe(n,o,t(r,o,i))}),n}var uZe=cZe;const dZe=Bn(uZe);function fZe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var pZe=fZe,hZe=bj;function mZe(e,t){var n=!0;return hZe(e,function(r,o,i){return n=!!t(r,o,i),n}),n}var gZe=mZe,yZe=pZe,vZe=gZe,bZe=zc,wZe=xa,xZe=HI;function SZe(e,t,n){var r=wZe(e)?yZe:vZe;return n&&xZe(e,t,n)&&(t=void 0),r(e,bZe(t))}var CZe=SZe;const Qne=Bn(CZe);var PZe=["x","y"];function xx(e){"@babel/helpers - typeof";return xx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xx(e)}function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P_.apply(this,arguments)}function KG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function r0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KG(Object(n),!0).forEach(function(r){EZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EZe(e,t,n){return t=TZe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZe(e){var t=OZe(e,"string");return xx(t)=="symbol"?t:t+""}function OZe(e,t){if(xx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IZe(e,t){if(e==null)return{};var n=kZe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kZe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function MZe(e,t){var n=e.x,r=e.y,o=IZe(e,PZe),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),f=parseInt(d,10);return r0(r0(r0(r0(r0({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function YG(e){return Y.createElement(mT,P_({shapeType:"rectangle",propTransformer:MZe,activeClassName:"recharts-active-bar"},e))}var AZe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=typeof r=="number";return i?t(r,o):(i||xh(),n)}},$Ze=["value","background"],Jne;function Hy(e){"@babel/helpers - typeof";return Hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hy(e)}function RZe(e,t){if(e==null)return{};var n=DZe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DZe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wT(){return wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wT.apply(this,arguments)}function XG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XG(Object(n),!0).forEach(function(r){Xd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ere(r.key),r)}}function LZe(e,t,n){return t&&QG(e.prototype,t),n&&QG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NZe(e,t,n){return t=xT(t),FZe(e,Zne()?Reflect.construct(t,n||[],xT(e).constructor):t.apply(e,n))}function FZe(e,t){if(t&&(Hy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jZe(e)}function jZe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zne=function(){return!!e})()}function xT(e){return xT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xT(e)}function BZe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E_(e,t)}function E_(e,t){return E_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},E_(e,t)}function Xd(e,t,n){return t=ere(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ere(e){var t=zZe(e,"string");return Hy(t)=="symbol"?t:t+""}function zZe(e,t){if(Hy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc=function(e){function t(){var n;_Ze(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=NZe(this,t,[].concat(o)),Xd(n,"state",{isAnimationFinished:!1}),Xd(n,"id",Lf("recharts-bar-")),Xd(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Xd(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return BZe(t,e),LZe(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.dataKey,l=i.activeIndex,c=i.activeBar,u=At(this.props,!1);return r&&r.map(function(d,f){var p=f===l,m=p?c:a,g=lo(lo(lo({},u),d),{},{isActive:p,option:m,index:f,dataKey:s,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return Y.createElement(rn,wT({className:"recharts-bar-rectangle"},wf(o.props,d,f),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),Y.createElement(YG,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,i=o.data,a=o.layout,s=o.isAnimationActive,l=o.animationBegin,c=o.animationDuration,u=o.animationEasing,d=o.animationId,f=this.state.prevData;return Y.createElement(nl,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,g=i.map(function(y,b){var x=f&&f[b];if(x){var S=Vr(x.x,y.x),P=Vr(x.y,y.y),E=Vr(x.width,y.width),T=Vr(x.height,y.height);return lo(lo({},y),{},{x:S(m),y:P(m),width:E(m),height:T(m)})}if(a==="horizontal"){var O=Vr(0,y.height),k=O(m);return lo(lo({},y),{},{y:y.y+y.height-k,height:k})}var M=Vr(0,y.width),I=M(m);return lo(lo({},y),{},{width:I})});return Y.createElement(rn,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,i=r.isAnimationActive,a=this.state.prevData;return i&&o&&o.length&&(!a||!xf(a,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,i=o.data,a=o.dataKey,s=o.activeIndex,l=At(this.props.background,!1);return i.map(function(c,u){c.value;var d=c.background,f=RZe(c,$Ze);if(!d)return null;var p=lo(lo(lo(lo(lo({},f),{},{fill:"#eee"},d),l),wf(r.props,c,u)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:u,className:"recharts-bar-background-rectangle"});return Y.createElement(YG,wT({key:"background-bar-".concat(u),option:r.props.background,isActive:u===s},p))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.data,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,d=Vi(u,Wv);if(!d)return null;var f=c==="vertical"?a[0].height/2:a[0].width/2,p=function(y,b){var x=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:x,errorVal:kr(y,b)}},m={clipPath:r?"url(#clipPath-".concat(o,")"):null};return Y.createElement(rn,m,d.map(function(g){return Y.cloneElement(g,{key:"error-bar-".concat(o,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.data,a=r.className,s=r.xAxis,l=r.yAxis,c=r.left,u=r.top,d=r.width,f=r.height,p=r.isAnimationActive,m=r.background,g=r.id;if(o||!i||!i.length)return null;var y=this.state.isAnimationFinished,b=pe("recharts-bar",a),x=s&&s.allowDataOverflow,S=l&&l.allowDataOverflow,P=x||S,E=Bt(g)?this.id:g;return Y.createElement(rn,{className:b},x||S?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(E)},Y.createElement("rect",{x:x?c:c-d/2,y:S?u:u-f/2,width:x?d:d*2,height:S?f:f*2}))):null,Y.createElement(rn,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(E,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,E),(!p||y)&&Hl.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])}(v.PureComponent);Jne=Mc;Xd(Mc,"displayName","Bar");Xd(Mc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ks.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Xd(Mc,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=Lqe(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,y=g!==void 0?lo(lo({},g),n.props):n.props,b=y.dataKey,x=y.children,S=y.minPointSize,P=m==="horizontal"?a:i,E=c?P.scale.domain():null,T=Hqe({numericAxis:P}),O=Vi(x,zv),k=d.map(function(M,I){var R,_,N,B,L,F;c?R=Nqe(c[u+I],E):(R=kr(M,b),Array.isArray(R)||(R=[T,R]));var U=AZe(S,Jne.defaultProps.minPointSize)(R[1],I);if(m==="horizontal"){var V,z=[a.scale(R[0]),a.scale(R[1])],W=z[0],G=z[1];_=B6({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:M,index:I}),N=(V=G??W)!==null&&V!==void 0?V:void 0,B=p.size;var J=W-G;if(L=Number.isNaN(J)?0:J,F={x:_,y:a.y,width:B,height:a.height},Math.abs(U)>0&&Math.abs(L)<Math.abs(U)){var K=Li(L||U)*(Math.abs(U)-Math.abs(L));N-=K,L+=K}}else{var ne=[i.scale(R[0]),i.scale(R[1])],re=ne[0],oe=ne[1];if(_=re,N=B6({axis:a,ticks:l,bandSize:o,offset:p.offset,entry:M,index:I}),B=oe-re,L=p.size,F={x:i.x,y:N,width:i.width,height:L},Math.abs(U)>0&&Math.abs(B)<Math.abs(U)){var fe=Li(B||U)*(Math.abs(U)-Math.abs(B));B+=fe}}return lo(lo(lo({},M),{},{x:_,y:N,width:B,height:L,value:c?R:R[1],payload:M,background:F},O&&O[I]&&O[I].props),{},{tooltipPayload:[Ene(n,M)],tooltipPosition:{x:_+B/2,y:N+L/2}})});return lo({data:k,layout:m},f)});function Sx(e){"@babel/helpers - typeof";return Sx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sx(e)}function VZe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tre(r.key),r)}}function HZe(e,t,n){return t&&JG(e.prototype,t),n&&JG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZG(Object(n),!0).forEach(function(r){sk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sk(e,t,n){return t=tre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tre(e){var t=UZe(e,"string");return Sx(t)=="symbol"?t:t+""}function UZe(e,t){if(Sx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lk=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},f=!!La(c,Mc);return u.reduce(function(p,m){var g=n[m],y=g.orientation,b=g.domain,x=g.padding,S=x===void 0?{}:x,P=g.mirror,E=g.reversed,T="".concat(y).concat(P?"Mirror":""),O,k,M,I,R;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var _=b[1]-b[0],N=1/0,B=g.categoricalDomain.sort();if(B.forEach(function(ne,re){re>0&&(N=Math.min((ne||0)-(B[re-1]||0),N))}),Number.isFinite(N)){var L=N/_,F=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(O=L*F/2),g.padding==="no-gap"){var U=Ni(t.barCategoryGap,L*F),V=L*F/2;O=V-U-(V-U)/F*U}}}o==="xAxis"?k=[r.left+(S.left||0)+(O||0),r.left+r.width-(S.right||0)-(O||0)]:o==="yAxis"?k=l==="horizontal"?[r.top+r.height-(S.bottom||0),r.top+(S.top||0)]:[r.top+(S.top||0)+(O||0),r.top+r.height-(S.bottom||0)-(O||0)]:k=g.range,E&&(k=[k[1],k[0]]);var z=xne(g,i,f),W=z.scale,G=z.realScaleType;W.domain(b).range(k),Sne(W);var J=Cne(W,kl(kl({},g),{},{realScaleType:G}));o==="xAxis"?(R=y==="top"&&!P||y==="bottom"&&P,M=r.left,I=d[T]-R*g.height):o==="yAxis"&&(R=y==="left"&&!P||y==="right"&&P,M=d[T]-R*g.width,I=r.top);var K=kl(kl(kl({},g),J),{},{realScaleType:G,x:M,y:I,scale:W,width:o==="xAxis"?r.width:g.width,height:o==="yAxis"?r.height:g.height});return K.bandSize=oT(K,J),!g.hide&&o==="xAxis"?d[T]+=(R?-1:1)*K.height:g.hide||(d[T]+=(R?-1:1)*K.width),kl(kl({},p),{},sk({},m,K))},{})},nre=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},WZe=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return nre({x:n,y:r},{x:o,y:i})},rre=function(){function e(t){VZe(this,e),this.scale=t}return HZe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();sk(rre,"EPS",1e-4);var Kj=function(t){var n=Object.keys(t).reduce(function(r,o){return kl(kl({},r),{},sk({},o,rre.create(t[o])))},{});return kl(kl({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return dZe(o,function(l,c){return n[c].apply(l,{bandAware:a,position:s})})},isInRange:function(o){return Qne(o,function(i,a){return n[a].isInRange(i)})}})};function GZe(e){return(e%180+180)%180}var qZe=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=GZe(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},KZe=zc,YZe=PS,XZe=zI;function QZe(e){return function(t,n,r){var o=Object(t);if(!YZe(t)){var i=KZe(n);t=XZe(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var JZe=QZe,ZZe=qne;function eet(e){var t=ZZe(e),n=t%1;return t===t?n?t-n:t:0}var tet=eet,net=nte,ret=zc,oet=tet,iet=Math.max;function aet(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:oet(n);return o<0&&(o=iet(r+o,0)),net(e,ret(t),o)}var set=aet,cet=JZe,uet=set,det=cet(uet),fet=det;const pet=Bn(fet);var het=CFe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Yj=v.createContext(void 0),Xj=v.createContext(void 0),ore=v.createContext(void 0),ire=v.createContext({}),are=v.createContext(void 0),sre=v.createContext(0),lre=v.createContext(0),e8=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,u=het(i);return Y.createElement(Yj.Provider,{value:r},Y.createElement(Xj.Provider,{value:o},Y.createElement(ire.Provider,{value:i},Y.createElement(ore.Provider,{value:u},Y.createElement(are.Provider,{value:a},Y.createElement(sre.Provider,{value:c},Y.createElement(lre.Provider,{value:l},s)))))))},met=function(){return v.useContext(are)},cre=function(t){var n=v.useContext(Yj);n==null&&xh();var r=n[t];return r==null&&xh(),r},get=function(){var t=v.useContext(Yj);return Dd(t)},yet=function(){var t=v.useContext(Xj),n=pet(t,function(r){return Qne(r.domain,Number.isFinite)});return n||Dd(t)},ure=function(t){var n=v.useContext(Xj);n==null&&xh();var r=n[t];return r==null&&xh(),r},vet=function(){var t=v.useContext(ore);return t},bet=function(){return v.useContext(ire)},Qj=function(){return v.useContext(lre)},Jj=function(){return v.useContext(sre)};function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}function wet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xet(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fre(r.key),r)}}function Cet(e,t,n){return t&&xet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pet(e,t,n){return t=ST(t),Eet(e,dre()?Reflect.construct(t,n||[],ST(e).constructor):t.apply(e,n))}function Eet(e,t){if(t&&(Uy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tet(e)}function Tet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dre=function(){return!!e})()}function ST(e){return ST=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ST(e)}function Oet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T_(e,t)}function T_(e,t){return T_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T_(e,t)}function t8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function n8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(n),!0).forEach(function(r){Zj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zj(e,t,n){return t=fre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fre(e){var t=Iet(e,"string");return Uy(t)=="symbol"?t:t+""}function Iet(e,t){if(Uy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ket(e,t){return Ret(e)||$et(e,t)||Aet(e,t)||Met()}function Met(){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 Aet(e,t){if(e){if(typeof e=="string")return r8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r8(e,t)}}function r8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $et(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Ret(e){if(Array.isArray(e))return e}function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O_.apply(this,arguments)}var Det=function(t,n){var r;return Y.isValidElement(t)?r=Y.cloneElement(t,n):Ht(t)?r=t(n):r=Y.createElement("line",O_({},n,{className:"recharts-reference-line-line"})),r},_et=function(t,n,r,o,i,a,s,l,c){var u=i.x,d=i.y,f=i.width,p=i.height;if(r){var m=c.y,g=t.y.apply(m,{position:a});if(kc(c,"discard")&&!t.y.isInRange(g))return null;var y=[{x:u+f,y:g},{x:u,y:g}];return l==="left"?y.reverse():y}if(n){var b=c.x,x=t.x.apply(b,{position:a});if(kc(c,"discard")&&!t.x.isInRange(x))return null;var S=[{x,y:d+p},{x,y:d}];return s==="top"?S.reverse():S}if(o){var P=c.segment,E=P.map(function(T){return t.apply(T,{position:a})});return kc(c,"discard")&&rZe(E,function(T){return!t.isInRange(T)})?null:E}return null};function Let(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,c=met(),u=cre(o),d=ure(i),f=vet();if(!c||!f)return null;Vl(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Kj({x:u.scale,y:d.scale}),m=Mo(t),g=Mo(n),y=r&&r.length===2,b=_et(p,m,g,y,f,e.position,u.orientation,d.orientation,e);if(!b)return null;var x=ket(b,2),S=x[0],P=S.x,E=S.y,T=x[1],O=T.x,k=T.y,M=kc(e,"hidden")?"url(#".concat(c,")"):void 0,I=n8(n8({clipPath:M},At(e,!0)),{},{x1:P,y1:E,x2:O,y2:k});return Y.createElement(rn,{className:pe("recharts-reference-line",s)},Det(a,I),Vo.renderCallByParent(e,WZe({x1:P,y1:E,x2:O,y2:k})))}var eB=function(e){function t(){return wet(this,t),Pet(this,t,arguments)}return Oet(t,e),Cet(t,[{key:"render",value:function(){return Y.createElement(Let,this.props)}}])}(Y.Component);Zj(eB,"displayName","ReferenceLine");Zj(eB,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function I_(){return I_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I_.apply(this,arguments)}function Wy(e){"@babel/helpers - typeof";return Wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wy(e)}function o8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function i8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o8(Object(n),!0).forEach(function(r){ck(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Net(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fet(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hre(r.key),r)}}function jet(e,t,n){return t&&Fet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bet(e,t,n){return t=CT(t),zet(e,pre()?Reflect.construct(t,n||[],CT(e).constructor):t.apply(e,n))}function zet(e,t){if(t&&(Wy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vet(e)}function Vet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pre=function(){return!!e})()}function CT(e){return CT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},CT(e)}function Het(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k_(e,t)}function ck(e,t,n){return t=hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hre(e){var t=Uet(e,"string");return Wy(t)=="symbol"?t:t+""}function Uet(e,t){if(Wy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wet=function(t){var n=t.x,r=t.y,o=t.xAxis,i=t.yAxis,a=Kj({x:o.scale,y:i.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return kc(t,"discard")&&!a.isInRange(s)?null:s},MS=function(e){function t(){return Net(this,t),Bet(this,t,arguments)}return Het(t,e),jet(t,[{key:"render",value:function(){var r=this.props,o=r.x,i=r.y,a=r.r,s=r.alwaysShow,l=r.clipPathId,c=Mo(o),u=Mo(i);if(Vl(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var d=Wet(this.props);if(!d)return null;var f=d.x,p=d.y,m=this.props,g=m.shape,y=m.className,b=kc(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=i8(i8({clipPath:b},At(this.props,!0)),{},{cx:f,cy:p});return Y.createElement(rn,{className:pe("recharts-reference-dot",y)},t.renderDot(g,x),Vo.renderCallByParent(this.props,{x:f-a,y:p-a,width:2*a,height:2*a}))}}])}(Y.Component);ck(MS,"displayName","ReferenceDot");ck(MS,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ck(MS,"renderDot",function(e,t){var n;return Y.isValidElement(e)?n=Y.cloneElement(e,t):Ht(e)?n=e(t):n=Y.createElement(kS,I_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function M_(){return M_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M_.apply(this,arguments)}function Gy(e){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(e)}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function s8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(n),!0).forEach(function(r){uk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Get(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qet(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gre(r.key),r)}}function Ket(e,t,n){return t&&qet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yet(e,t,n){return t=PT(t),Xet(e,mre()?Reflect.construct(t,n||[],PT(e).constructor):t.apply(e,n))}function Xet(e,t){if(t&&(Gy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qet(e)}function Qet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mre=function(){return!!e})()}function PT(e){return PT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},PT(e)}function Jet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A_(e,t)}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},A_(e,t)}function uk(e,t,n){return t=gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e){var t=Zet(e,"string");return Gy(t)=="symbol"?t:t+""}function Zet(e,t){if(Gy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ett=function(t,n,r,o,i){var a=i.x1,s=i.x2,l=i.y1,c=i.y2,u=i.xAxis,d=i.yAxis;if(!u||!d)return null;var f=Kj({x:u.scale,y:d.scale}),p={x:t?f.x.apply(a,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(l,{position:"start"}):f.y.rangeMin},m={x:n?f.x.apply(s,{position:"end"}):f.x.rangeMax,y:o?f.y.apply(c,{position:"end"}):f.y.rangeMax};return kc(i,"discard")&&(!f.isInRange(p)||!f.isInRange(m))?null:nre(p,m)},dk=function(e){function t(){return Get(this,t),Yet(this,t,arguments)}return Jet(t,e),Ket(t,[{key:"render",value:function(){var r=this.props,o=r.x1,i=r.x2,a=r.y1,s=r.y2,l=r.className,c=r.alwaysShow,u=r.clipPathId;Vl(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Mo(o),f=Mo(i),p=Mo(a),m=Mo(s),g=this.props.shape;if(!d&&!f&&!p&&!m&&!g)return null;var y=ett(d,f,p,m,this.props);if(!y&&!g)return null;var b=kc(this.props,"hidden")?"url(#".concat(u,")"):void 0;return Y.createElement(rn,{className:pe("recharts-reference-area",l)},t.renderRect(g,s8(s8({clipPath:b},At(this.props,!0)),y)),Vo.renderCallByParent(this.props,y))}}])}(Y.Component);uk(dk,"displayName","ReferenceArea");uk(dk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});uk(dk,"renderRect",function(e,t){var n;return Y.isValidElement(e)?n=Y.cloneElement(e,t):Ht(e)?n=e(t):n=Y.createElement(qj,M_({},t,{className:"recharts-reference-area-rect"})),n});function yre(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function ttt(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return qZe(r,n)}function ntt(e,t,n){var r=n==="width",o=e.x,i=e.y,a=e.width,s=e.height;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function ET(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function rtt(e,t){return yre(e,t+1)}function ott(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,l=0,c=1,u=a,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:yre(r,c)};var g=l,y,b=function(){return y===void 0&&(y=n(m,g)),y},x=m.coordinate,S=l===0||ET(e,x,b,u,s);S||(l=0,u=a,c+=1),S&&(u=x+e*(b()/2+o),l+=c)},f;c<=i.length;)if(f=d(),f)return f.v;return[]}function Cx(e){"@babel/helpers - typeof";return Cx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cx(e)}function l8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l8(Object(n),!0).forEach(function(r){itt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function itt(e,t,n){return t=att(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function att(e){var t=stt(e,"string");return Cx(t)=="symbol"?t:t+""}function stt(e,t){if(Cx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ltt(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,l=t.end,c=function(f){var p=i[f],m,g=function(){return m===void 0&&(m=n(p,f)),m};if(f===a-1){var y=e*(p.coordinate+e*g()/2-l);i[f]=p=pi(pi({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else i[f]=p=pi(pi({},p),{},{tickCoord:p.coordinate});var b=ET(e,p.tickCoord,g,s,l);b&&(l=p.tickCoord-e*(g()/2+o),i[f]=pi(pi({},p),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}function ctt(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(i){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-c);a[s-1]=u=pi(pi({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate});var p=ET(e,u.tickCoord,function(){return d},l,c);p&&(c=u.tickCoord-e*(d/2+o),a[s-1]=pi(pi({},u),{},{isShow:!0}))}for(var m=i?s-1:s,g=function(x){var S=a[x],P,E=function(){return P===void 0&&(P=n(S,x)),P};if(x===0){var T=e*(S.coordinate-e*E()/2-l);a[x]=S=pi(pi({},S),{},{tickCoord:T<0?S.coordinate-T*e:S.coordinate})}else a[x]=S=pi(pi({},S),{},{tickCoord:S.coordinate});var O=ET(e,S.tickCoord,E,l,c);O&&(l=S.tickCoord+e*(E()/2+o),a[x]=pi(pi({},S),{},{isShow:!0}))},y=0;y<m;y++)g(y);return a}function tB(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(at(l)||Ks.isSsr)return rtt(o,typeof l=="number"&&at(l)?l:0);var f=[],p=s==="top"||s==="bottom"?"width":"height",m=u&&p==="width"?Z0(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(S,P){var E=Ht(c)?c(S.value,P):S.value;return p==="width"?ttt(Z0(E,{fontSize:t,letterSpacing:n}),m,d):Z0(E,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?Li(o[1].coordinate-o[0].coordinate):1,b=ntt(i,y,p);return l==="equidistantPreserveStart"?ott(y,b,g,o,a):(l==="preserveStart"||l==="preserveStartEnd"?f=ctt(y,b,g,o,a,l==="preserveStartEnd"):f=ltt(y,b,g,o,a),f.filter(function(x){return x.isShow}))}var utt=["viewBox"],dtt=["viewBox"],ftt=["ticks"];function qy(e){"@babel/helpers - typeof";return qy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qy(e)}function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xg.apply(this,arguments)}function c8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(n),!0).forEach(function(r){nB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _$(e,t){if(e==null)return{};var n=ptt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ptt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function htt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bre(r.key),r)}}function mtt(e,t,n){return t&&u8(e.prototype,t),n&&u8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gtt(e,t,n){return t=TT(t),ytt(e,vre()?Reflect.construct(t,n||[],TT(e).constructor):t.apply(e,n))}function ytt(e,t){if(t&&(qy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vtt(e)}function vtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vre=function(){return!!e})()}function TT(e){return TT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},TT(e)}function btt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$_(e,t)}function $_(e,t){return $_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$_(e,t)}function nB(e,t,n){return t=bre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bre(e){var t=wtt(e,"string");return qy(t)=="symbol"?t:t+""}function wtt(e,t){if(qy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qv=function(e){function t(n){var r;return htt(this,t),r=gtt(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return btt(t,e),mtt(t,[{key:"shouldComponentUpdate",value:function(r,o){var i=r.viewBox,a=_$(r,utt),s=this.props,l=s.viewBox,c=_$(s,dtt);return!Hg(i,l)||!Hg(a,c)||!Hg(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,i=o.x,a=o.y,s=o.width,l=o.height,c=o.orientation,u=o.tickSize,d=o.mirror,f=o.tickMargin,p,m,g,y,b,x,S=d?-1:1,P=r.tickSize||u,E=at(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":p=m=r.coordinate,y=a+ +!d*l,g=y-S*P,x=g-S*f,b=E;break;case"left":g=y=r.coordinate,m=i+ +!d*s,p=m-S*P,b=p-S*f,x=E;break;case"right":g=y=r.coordinate,m=i+ +d*s,p=m+S*P,b=p+S*f,x=E;break;default:p=m=r.coordinate,y=a+ +d*l,g=y+S*P,x=g+S*f,b=E;break}return{line:{x1:p,y1:g,x2:m,y2:y},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a;switch(o){case"left":a=i?"start":"end";break;case"right":a=i?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a="end";switch(o){case"left":case"right":a="middle";break;case"top":a=i?"start":"end";break;default:a=i?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.orientation,c=r.mirror,u=r.axisLine,d=Ii(Ii(Ii({},At(this.props,!1)),At(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var f=+(l==="top"&&!c||l==="bottom"&&c);d=Ii(Ii({},d),{},{x1:o,y1:i+f*s,x2:o+a,y2:i+f*s})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=Ii(Ii({},d),{},{x1:o+p*a,y1:i,x2:o+p*a,y2:i+s})}return Y.createElement("line",xg({},d,{className:pe("recharts-cartesian-axis-line",qa(u,"className"))}))}},{key:"renderTicks",value:function(r,o,i){var a=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,d=s.tickFormatter,f=s.unit,p=tB(Ii(Ii({},this.props),{},{ticks:r}),o,i),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),y=At(this.props,!1),b=At(u,!1),x=Ii(Ii({},y),{},{fill:"none"},At(l,!1)),S=p.map(function(P,E){var T=a.getTickLineCoord(P),O=T.line,k=T.tick,M=Ii(Ii(Ii(Ii({textAnchor:m,verticalAnchor:g},y),{},{stroke:"none",fill:c},b),k),{},{index:E,payload:P,visibleTicksCount:p.length,tickFormatter:d});return Y.createElement(rn,xg({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},wf(a.props,P,E)),l&&Y.createElement("line",xg({},x,O,{className:pe("recharts-cartesian-axis-tick-line",qa(l,"className"))})),u&&t.renderTickItem(u,M,"".concat(Ht(d)?d(P.value,E):P.value).concat(f||"")))});return Y.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{key:"render",value:function(){var r=this,o=this.props,i=o.axisLine,a=o.width,s=o.height,l=o.ticksGenerator,c=o.className,u=o.hide;if(u)return null;var d=this.props,f=d.ticks,p=_$(d,ftt),m=f;return Ht(l)&&(m=f&&f.length>0?l(this.props):l(p)),a<=0||s<=0||!m||!m.length?null:Y.createElement(rn,{className:pe("recharts-cartesian-axis",c),ref:function(y){r.layerReference=y}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Vo.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ht(r)?a=r(o):a=Y.createElement(bh,xg({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(v.Component);nB(qv,"displayName","CartesianAxis");nB(qv,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var xtt=["x1","y1","x2","y2","key"],Stt=["offset"];function Sh(e){"@babel/helpers - typeof";return Sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sh(e)}function d8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(n),!0).forEach(function(r){Ctt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ctt(e,t,n){return t=Ptt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ptt(e){var t=Ett(e,"string");return Sh(t)=="symbol"?t:t+""}function Ett(e,t){if(Sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Np.apply(this,arguments)}function f8(e,t){if(e==null)return{};var n=Ttt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ttt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ott=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,l=t.ry;return Y.createElement("rect",{x:o,y:i,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function wre(e,t){var n;if(Y.isValidElement(e))n=Y.cloneElement(e,t);else if(Ht(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,l=f8(t,xtt),c=At(l,!1);c.offset;var u=f8(c,Stt);n=Y.createElement("line",Np({},u,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function Itt(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=yi(yi({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return wre(o,c)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function ktt(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=yi(yi({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return wre(o,c)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Mtt(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(f){return Math.round(f+o-o)}).sort(function(f,p){return f-p});o!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var m=!u[p+1],g=m?o+a-f:u[p+1]-f;if(g<=0)return null;var y=p%t.length;return Y.createElement("rect",{key:"react-".concat(p),y:f,x:r,height:g,width:i,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Att(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var u=c.map(function(f){return Math.round(f+i-i)}).sort(function(f,p){return f-p});i!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var m=!u[p+1],g=m?i+s-f:u[p+1]-f;if(g<=0)return null;var y=p%r.length;return Y.createElement("rect",{key:"react-".concat(p),x:f,y:a,width:g,height:l,stroke:"none",fill:r[y],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var $tt=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return wne(tB(yi(yi(yi({},qv.defaultProps),r),{},{ticks:xu(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},Rtt=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return wne(tB(yi(yi(yi({},qv.defaultProps),r),{},{ticks:xu(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},Dm={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function jh(e){var t,n,r,o,i,a,s=Qj(),l=Jj(),c=bet(),u=yi(yi({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Dm.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Dm.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Dm.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:Dm.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Dm.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Dm.verticalFill,x:at(e.x)?e.x:c.left,y:at(e.y)?e.y:c.top,width:at(e.width)?e.width:c.width,height:at(e.height)?e.height:c.height}),d=u.x,f=u.y,p=u.width,m=u.height,g=u.syncWithTicks,y=u.horizontalValues,b=u.verticalValues,x=get(),S=yet();if(!at(p)||p<=0||!at(m)||m<=0||!at(d)||d!==+d||!at(f)||f!==+f)return null;var P=u.verticalCoordinatesGenerator||$tt,E=u.horizontalCoordinatesGenerator||Rtt,T=u.horizontalPoints,O=u.verticalPoints;if((!T||!T.length)&&Ht(E)){var k=y&&y.length,M=E({yAxis:S?yi(yi({},S),{},{ticks:k?y:S.ticks}):void 0,width:s,height:l,offset:c},k?!0:g);Vl(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Sh(M),"]")),Array.isArray(M)&&(T=M)}if((!O||!O.length)&&Ht(P)){var I=b&&b.length,R=P({xAxis:x?yi(yi({},x),{},{ticks:I?b:x.ticks}):void 0,width:s,height:l,offset:c},I?!0:g);Vl(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Sh(R),"]")),Array.isArray(R)&&(O=R)}return Y.createElement("g",{className:"recharts-cartesian-grid"},Y.createElement(Ott,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),Y.createElement(Itt,Np({},u,{offset:c,horizontalPoints:T,xAxis:x,yAxis:S})),Y.createElement(ktt,Np({},u,{offset:c,verticalPoints:O,xAxis:x,yAxis:S})),Y.createElement(Mtt,Np({},u,{horizontalPoints:T})),Y.createElement(Att,Np({},u,{verticalPoints:O})))}jh.displayName="CartesianGrid";var Dtt=["type","layout","connectNulls","ref"],_tt=["key"];function Ky(e){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(e)}function p8(e,t){if(e==null)return{};var n=Ltt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ltt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iw(){return iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iw.apply(this,arguments)}function h8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(n),!0).forEach(function(r){Ml(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _m(e){return Btt(e)||jtt(e)||Ftt(e)||Ntt()}function Ntt(){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 Ftt(e,t){if(e){if(typeof e=="string")return R_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R_(e,t)}}function jtt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Btt(e){if(Array.isArray(e))return R_(e)}function R_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ztt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sre(r.key),r)}}function Vtt(e,t,n){return t&&m8(e.prototype,t),n&&m8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Htt(e,t,n){return t=OT(t),Utt(e,xre()?Reflect.construct(t,n||[],OT(e).constructor):t.apply(e,n))}function Utt(e,t){if(t&&(Ky(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wtt(e)}function Wtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xre=function(){return!!e})()}function OT(e){return OT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},OT(e)}function Gtt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D_(e,t)}function D_(e,t){return D_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},D_(e,t)}function Ml(e,t,n){return t=Sre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sre(e){var t=qtt(e,"string");return Ky(t)=="symbol"?t:t+""}function qtt(e,t){if(Ky(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kv=function(e){function t(){var n;ztt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Htt(this,t,[].concat(o)),Ml(n,"state",{isAnimationFinished:!0,totalLength:0}),Ml(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Ml(n,"getStrokeDasharray",function(a,s,l){var c=l.reduce(function(b,x){return b+x});if(!c)return n.generateSimpleStrokeDasharray(s,a);for(var u=Math.floor(a/c),d=a%c,f=s-a,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>d){p=[].concat(_m(l.slice(0,m)),[d-g]);break}var y=p.length%2===0?[0,f]:[f];return[].concat(_m(t.repeat(l,u)),_m(p),y).map(function(b){return"".concat(b,"px")}).join(", ")}),Ml(n,"id",Lf("recharts-line-")),Ml(n,"pathRef",function(a){n.mainCurve=a}),Ml(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ml(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Gtt(t,e),Vtt(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,d=Vi(u,Wv);if(!d)return null;var f=function(g,y){return{x:g.x,y:g.y,value:g.value,errorVal:kr(g.payload,y)}},p={clipPath:r?"url(#clipPath-".concat(o,")"):null};return Y.createElement(rn,p,d.map(function(m){return Y.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,dataPointFormatter:f})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,d=At(this.props,!1),f=At(l,!0),p=c.map(function(g,y){var b=Ma(Ma(Ma({key:"dot-".concat(y),r:3},d),f),{},{value:g.value,dataKey:u,cx:g.x,cy:g.y,index:y,payload:g.payload});return t.renderDotItem(l,b)}),m={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return Y.createElement(rn,iw({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var d=p8(s,Dtt),f=Ma(Ma(Ma({},At(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:l,layout:c,connectNulls:u});return Y.createElement(df,iw({},f,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.strokeDasharray,c=a.isAnimationActive,u=a.animationBegin,d=a.animationDuration,f=a.animationEasing,p=a.animationId,m=a.animateNewValues,g=a.width,y=a.height,b=this.state,x=b.prevPoints,S=b.totalLength;return Y.createElement(nl,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var E=P.t;if(x){var T=x.length/s.length,O=s.map(function(_,N){var B=Math.floor(N*T);if(x[B]){var L=x[B],F=Vr(L.x,_.x),U=Vr(L.y,_.y);return Ma(Ma({},_),{},{x:F(E),y:U(E)})}if(m){var V=Vr(g*2,_.x),z=Vr(y/2,_.y);return Ma(Ma({},_),{},{x:V(E),y:z(E)})}return Ma(Ma({},_),{},{x:_.x,y:_.y})});return i.renderCurveStatically(O,r,o)}var k=Vr(0,S),M=k(E),I;if(l){var R="".concat(l).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});I=i.getStrokeDasharray(M,S,R)}else I=i.generateSimpleStrokeDasharray(S,M);return i.renderCurveStatically(s,r,o,{strokeDasharray:I})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&a&&a.length&&(!c&&u>0||!xf(c,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.xAxis,u=o.yAxis,d=o.top,f=o.left,p=o.width,m=o.height,g=o.isAnimationActive,y=o.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,x=s.length===1,S=pe("recharts-line",l),P=c&&c.allowDataOverflow,E=u&&u.allowDataOverflow,T=P||E,O=Bt(y)?this.id:y,k=(r=At(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=k.r,I=M===void 0?3:M,R=k.strokeWidth,_=R===void 0?2:R,N=pee(a)?a:{},B=N.clipDot,L=B===void 0?!0:B,F=I*2+_;return Y.createElement(rn,{className:S},P||E?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(O)},Y.createElement("rect",{x:P?f:f-p/2,y:E?d:d-m/2,width:P?p:p*2,height:E?m:m*2})),!L&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(O)},Y.createElement("rect",{x:f-F/2,y:d-F/2,width:p+F,height:m+F}))):null,!x&&this.renderCurve(T,O),this.renderErrorBar(T,O),(x||a)&&this.renderDots(T,L,O),(!g||b)&&Hl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(_m(r),[0]):r,a=[],s=0;s<o;++s)a=[].concat(_m(a),_m(i));return a}},{key:"renderDotItem",value:function(r,o){var i;if(Y.isValidElement(r))i=Y.cloneElement(r,o);else if(Ht(r))i=r(o);else{var a=o.key,s=p8(o,_tt),l=pe("recharts-line-dot",typeof r!="boolean"?r.className:"");i=Y.createElement(kS,iw({key:a},s,{className:l}))}return i}}])}(v.PureComponent);Ml(Kv,"displayName","Line");Ml(Kv,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ks.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ml(Kv,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(f,p){var m=kr(f,a);return u==="horizontal"?{x:Ly({axis:n,ticks:o,bandSize:s,entry:f,index:p}),y:Bt(m)?null:r.scale(m),value:m,payload:f}:{x:Bt(m)?null:n.scale(m),y:Ly({axis:r,ticks:i,bandSize:s,entry:f,index:p}),value:m,payload:f}});return Ma({points:d,layout:u},c)});var Ktt=["layout","type","stroke","connectNulls","isRange","ref"],Ytt=["key"],Cre;function Yy(e){"@babel/helpers - typeof";return Yy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yy(e)}function Pre(e,t){if(e==null)return{};var n=Xtt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xtt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fp.apply(this,arguments)}function g8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g8(Object(n),!0).forEach(function(r){Sc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tre(r.key),r)}}function Jtt(e,t,n){return t&&y8(e.prototype,t),n&&y8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ztt(e,t,n){return t=IT(t),ent(e,Ere()?Reflect.construct(t,n||[],IT(e).constructor):t.apply(e,n))}function ent(e,t){if(t&&(Yy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tnt(e)}function tnt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ere(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ere=function(){return!!e})()}function IT(e){return IT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},IT(e)}function nnt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&__(e,t)}function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},__(e,t)}function Sc(e,t,n){return t=Tre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tre(e){var t=rnt(e,"string");return Yy(t)=="symbol"?t:t+""}function rnt(e,t){if(Yy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zf=function(e){function t(){var n;Qtt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Ztt(this,t,[].concat(o)),Sc(n,"state",{isAnimationFinished:!0}),Sc(n,"id",Lf("recharts-area-")),Sc(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Ht(a)&&a()}),Sc(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Ht(a)&&a()}),n}return nnt(t,e),Jtt(t,[{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,f=At(this.props,!1),p=At(c,!0),m=u.map(function(y,b){var x=Sd(Sd(Sd({key:"dot-".concat(b),r:3},f),p),{},{index:b,cx:y.x,cy:y.y,dataKey:d,value:y.value,payload:y.payload,points:u});return t.renderDotItem(c,x)}),g={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return Y.createElement(rn,Fp({className:"recharts-area-dots"},g),m)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,i=o.baseLine,a=o.points,s=o.strokeWidth,l=a[0].x,c=a[a.length-1].x,u=r*Math.abs(l-c),d=Yd(a.map(function(f){return f.y||0}));return at(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Yd(i.map(function(f){return f.y||0})),d)),at(d)?Y.createElement("rect",{x:l<c?l:l-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,i=o.baseLine,a=o.points,s=o.strokeWidth,l=a[0].y,c=a[a.length-1].y,u=r*Math.abs(l-c),d=Yd(a.map(function(f){return f.x||0}));return at(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(Yd(i.map(function(f){return f.x||0})),d)),at(d)?Y.createElement("rect",{x:0,y:l<c?l:l-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,i,a){var s=this.props,l=s.layout,c=s.type,u=s.stroke,d=s.connectNulls,f=s.isRange;s.ref;var p=Pre(s,Ktt);return Y.createElement(rn,{clipPath:i?"url(#clipPath-".concat(a,")"):null},Y.createElement(df,Fp({},At(p,!0),{points:r,connectNulls:d,type:c,baseLine:o,layout:l,stroke:"none",className:"recharts-area-area"})),u!=="none"&&Y.createElement(df,Fp({},At(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:r})),u!=="none"&&f&&Y.createElement(df,Fp({},At(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.baseLine,c=a.isAnimationActive,u=a.animationBegin,d=a.animationDuration,f=a.animationEasing,p=a.animationId,m=this.state,g=m.prevPoints,y=m.prevBaseLine;return Y.createElement(nl,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(g){var S=g.length/s.length,P=s.map(function(k,M){var I=Math.floor(M*S);if(g[I]){var R=g[I],_=Vr(R.x,k.x),N=Vr(R.y,k.y);return Sd(Sd({},k),{},{x:_(x),y:N(x)})}return k}),E;if(at(l)&&typeof l=="number"){var T=Vr(y,l);E=T(x)}else if(Bt(l)||Nv(l)){var O=Vr(y,0);E=O(x)}else E=l.map(function(k,M){var I=Math.floor(M*S);if(y[I]){var R=y[I],_=Vr(R.x,k.x),N=Vr(R.y,k.y);return Sd(Sd({},k),{},{x:_(x),y:N(x)})}return k});return i.renderAreaStatically(P,E,r,o)}return Y.createElement(rn,null,Y.createElement("defs",null,Y.createElement("clipPath",{id:"animationClipPath-".concat(o)},i.renderClipRect(x))),Y.createElement(rn,{clipPath:"url(#animationClipPath-".concat(o,")")},i.renderAreaStatically(s,l,r,o)))})}},{key:"renderArea",value:function(r,o){var i=this.props,a=i.points,s=i.baseLine,l=i.isAnimationActive,c=this.state,u=c.prevPoints,d=c.prevBaseLine,f=c.totalLength;return l&&a&&a.length&&(!u&&f>0||!xf(u,a)||!xf(d,s))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(a,s,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.top,u=o.left,d=o.xAxis,f=o.yAxis,p=o.width,m=o.height,g=o.isAnimationActive,y=o.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,x=s.length===1,S=pe("recharts-area",l),P=d&&d.allowDataOverflow,E=f&&f.allowDataOverflow,T=P||E,O=Bt(y)?this.id:y,k=(r=At(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=k.r,I=M===void 0?3:M,R=k.strokeWidth,_=R===void 0?2:R,N=pee(a)?a:{},B=N.clipDot,L=B===void 0?!0:B,F=I*2+_;return Y.createElement(rn,{className:S},P||E?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(O)},Y.createElement("rect",{x:P?u:u-p/2,y:E?c:c-m/2,width:P?p:p*2,height:E?m:m*2})),!L&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(O)},Y.createElement("rect",{x:u-F/2,y:c-F/2,width:p+F,height:m+F}))):null,x?null:this.renderArea(T,O),(a||x)&&this.renderDots(T,L,O),(!g||b)&&Hl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(v.PureComponent);Cre=zf;Sc(zf,"displayName","Area");Sc(zf,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ks.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Sc(zf,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=a??i;if(at(s)&&typeof s=="number")return s;var l=o==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return s==="dataMin"?d:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});Sc(zf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=c&&c.length,g=Cre.getBaseValue(t,n,r,o),y=p==="horizontal",b=!1,x=d.map(function(P,E){var T;m?T=c[u+E]:(T=kr(P,l),Array.isArray(T)?b=!0:T=[g,T]);var O=T[1]==null||m&&kr(P,l)==null;return y?{x:Ly({axis:r,ticks:i,bandSize:s,entry:P,index:E}),y:O?null:o.scale(T[1]),value:T,payload:P}:{x:O?null:r.scale(T[1]),y:Ly({axis:o,ticks:a,bandSize:s,entry:P,index:E}),value:T,payload:P}}),S;return m||b?S=x.map(function(P){var E=Array.isArray(P.value)?P.value[0]:null;return y?{x:P.x,y:E!=null&&P.y!=null?o.scale(E):null}:{x:E!=null?r.scale(E):null,y:P.y}}):S=y?o.scale(g):r.scale(g),Sd({points:x,baseLine:S,layout:p,isRange:b},f)});Sc(zf,"renderDotItem",function(e,t){var n;if(Y.isValidElement(e))n=Y.cloneElement(e,t);else if(Ht(e))n=e(t);else{var r=pe("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=Pre(t,Ytt);n=Y.createElement(kS,Fp({},i,{key:o,className:r}))}return n});function Xy(e){"@babel/helpers - typeof";return Xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xy(e)}function ont(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function int(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kre(r.key),r)}}function ant(e,t,n){return t&&int(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function snt(e,t,n){return t=kT(t),lnt(e,Ore()?Reflect.construct(t,n||[],kT(e).constructor):t.apply(e,n))}function lnt(e,t){if(t&&(Xy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cnt(e)}function cnt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ore(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ore=function(){return!!e})()}function kT(e){return kT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kT(e)}function unt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L_(e,t)}function L_(e,t){return L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},L_(e,t)}function Ire(e,t,n){return t=kre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kre(e){var t=dnt(e,"string");return Xy(t)=="symbol"?t:t+""}function dnt(e,t){if(Xy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fk=function(e){function t(){return ont(this,t),snt(this,t,arguments)}return unt(t,e),ant(t,[{key:"render",value:function(){return null}}])}(Y.Component);Ire(fk,"displayName","ZAxis");Ire(fk,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var fnt=["option","isActive"];function aw(){return aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aw.apply(this,arguments)}function pnt(e,t){if(e==null)return{};var n=hnt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hnt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mnt(e){var t=e.option,n=e.isActive,r=pnt(e,fnt);return typeof t=="string"?Y.createElement(mT,aw({option:Y.createElement(BI,aw({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(mT,aw({option:t,isActive:n,shapeType:"symbols"},r))}function Qy(e){"@babel/helpers - typeof";return Qy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qy(e)}function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sw.apply(this,arguments)}function v8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v8(Object(n),!0).forEach(function(r){Qd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Are(r.key),r)}}function ynt(e,t,n){return t&&b8(e.prototype,t),n&&b8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vnt(e,t,n){return t=MT(t),bnt(e,Mre()?Reflect.construct(t,n||[],MT(e).constructor):t.apply(e,n))}function bnt(e,t){if(t&&(Qy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wnt(e)}function wnt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mre=function(){return!!e})()}function MT(e){return MT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},MT(e)}function xnt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N_(e,t)}function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},N_(e,t)}function Qd(e,t,n){return t=Are(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Are(e){var t=Snt(e,"string");return Qy(t)=="symbol"?t:t+""}function Snt(e,t){if(Qy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AS=function(e){function t(){var n;gnt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=vnt(this,t,[].concat(o)),Qd(n,"state",{isAnimationFinished:!1}),Qd(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Qd(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Qd(n,"id",Lf("recharts-scatter-")),n}return xnt(t,e),ynt(t,[{key:"renderSymbolsStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.activeShape,l=i.activeIndex,c=At(this.props,!1);return r.map(function(u,d){var f=l===d,p=f?s:a,m=Ts(Ts({},c),u);return Y.createElement(rn,sw({className:"recharts-scatter-symbol",key:"symbol-".concat(u==null?void 0:u.cx,"-").concat(u==null?void 0:u.cy,"-").concat(u==null?void 0:u.size,"-").concat(d)},wf(o.props,u,d),{role:"img"}),Y.createElement(mnt,sw({option:p,isActive:f,key:"symbol-".concat(d)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,o=this.props,i=o.points,a=o.isAnimationActive,s=o.animationBegin,l=o.animationDuration,c=o.animationEasing,u=o.animationId,d=this.state.prevPoints;return Y.createElement(nl,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var p=f.t,m=i.map(function(g,y){var b=d&&d[y];if(b){var x=Vr(b.cx,g.cx),S=Vr(b.cy,g.cy),P=Vr(b.size,g.size);return Ts(Ts({},g),{},{cx:x(p),cy:S(p),size:P(p)})}var E=Vr(0,g.size);return Ts(Ts({},g),{},{size:E(p)})});return Y.createElement(rn,null,r.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var r=this.props,o=r.points,i=r.isAnimationActive,a=this.state.prevPoints;return i&&o&&o.length&&(!a||!xf(a,o))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(o)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.points,a=o.xAxis,s=o.yAxis,l=o.children,c=Vi(l,Wv);return c?c.map(function(u,d){var f=u.props,p=f.direction,m=f.dataKey;return Y.cloneElement(u,{key:"".concat(p,"-").concat(m,"-").concat(i[d]),data:i,xAxis:a,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(y,b){return{x:y.cx,y:y.cy,value:p==="x"?+y.node.x:+y.node.y,errorVal:kr(y,b)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,l=At(this.props,!1),c=At(i,!1),u,d;if(a==="joint")u=o.map(function(S){return{x:S.cx,y:S.cy}});else if(a==="fitting"){var f=xje(o),p=f.xmin,m=f.xmax,g=f.a,y=f.b,b=function(P){return g*P+y};u=[{x:p,y:b(p)},{x:m,y:b(m)}]}var x=Ts(Ts(Ts({},l),{},{fill:"none",stroke:l&&l.fill},c),{},{points:u});return Y.isValidElement(i)?d=Y.cloneElement(i,x):Ht(i)?d=i(x):d=Y.createElement(df,sw({},x,{type:s})),Y.createElement(rn,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.points,a=r.line,s=r.className,l=r.xAxis,c=r.yAxis,u=r.left,d=r.top,f=r.width,p=r.height,m=r.id,g=r.isAnimationActive;if(o||!i||!i.length)return null;var y=this.state.isAnimationFinished,b=pe("recharts-scatter",s),x=l&&l.allowDataOverflow,S=c&&c.allowDataOverflow,P=x||S,E=Bt(m)?this.id:m;return Y.createElement(rn,{className:b,clipPath:P?"url(#clipPath-".concat(E,")"):null},x||S?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(E)},Y.createElement("rect",{x:x?u:u-f/2,y:S?d:d-p/2,width:x?f:f*2,height:S?p:p*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Y.createElement(rn,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||y)&&Hl.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}}])}(v.PureComponent);Qd(AS,"displayName","Scatter");Qd(AS,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ks.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Qd(AS,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,c=o.props.tooltipType,u=Vi(o.props.children,zv),d=Bt(t.dataKey)?o.props.dataKey:t.dataKey,f=Bt(n.dataKey)?o.props.dataKey:n.dataKey,p=r&&r.dataKey,m=r?r.range:fk.defaultProps.range,g=m&&m[0],y=t.scale.bandwidth?t.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0,x=i.map(function(S,P){var E=kr(S,d),T=kr(S,f),O=!Bt(p)&&kr(S,p)||"-",k=[{name:Bt(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:S,dataKey:d,type:c},{name:Bt(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:S,dataKey:f,type:c}];O!=="-"&&k.push({name:r.name||r.dataKey,unit:r.unit||"",value:O,payload:S,dataKey:p,type:c});var M=Ly({axis:t,ticks:a,bandSize:y,entry:S,index:P,dataKey:d}),I=Ly({axis:n,ticks:s,bandSize:b,entry:S,index:P,dataKey:f}),R=O!=="-"?r.scale(O):g,_=Math.sqrt(Math.max(R,0)/Math.PI);return Ts(Ts({},S),{},{cx:M,cy:I,x:M-_,y:I-_,xAxis:t,yAxis:n,zAxis:r,width:2*_,height:2*_,size:R,node:{x:E,y:T,z:O},tooltipPayload:k,tooltipPosition:{x:M,y:I},payload:S},u&&u[P]&&u[P].props)});return Ts({points:x},l)});function Jy(e){"@babel/helpers - typeof";return Jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jy(e)}function Cnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pnt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dre(r.key),r)}}function Ent(e,t,n){return t&&Pnt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tnt(e,t,n){return t=AT(t),Ont(e,$re()?Reflect.construct(t,n||[],AT(e).constructor):t.apply(e,n))}function Ont(e,t){if(t&&(Jy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Int(e)}function Int(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($re=function(){return!!e})()}function AT(e){return AT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},AT(e)}function knt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F_(e,t)}function F_(e,t){return F_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},F_(e,t)}function Rre(e,t,n){return t=Dre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dre(e){var t=Mnt(e,"string");return Jy(t)=="symbol"?t:t+""}function Mnt(e,t){if(Jy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j_(){return j_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j_.apply(this,arguments)}function Ant(e){var t=e.xAxisId,n=Qj(),r=Jj(),o=cre(t);return o==null?null:Y.createElement(qv,j_({},o,{className:pe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return xu(a,!0)}}))}var sl=function(e){function t(){return Cnt(this,t),Tnt(this,t,arguments)}return knt(t,e),Ent(t,[{key:"render",value:function(){return Y.createElement(Ant,this.props)}}])}(Y.Component);Rre(sl,"displayName","XAxis");Rre(sl,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Zy(e){"@babel/helpers - typeof";return Zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zy(e)}function $nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rnt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nre(r.key),r)}}function Dnt(e,t,n){return t&&Rnt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _nt(e,t,n){return t=$T(t),Lnt(e,_re()?Reflect.construct(t,n||[],$T(e).constructor):t.apply(e,n))}function Lnt(e,t){if(t&&(Zy(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nnt(e)}function Nnt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_re=function(){return!!e})()}function $T(e){return $T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$T(e)}function Fnt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B_(e,t)}function B_(e,t){return B_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},B_(e,t)}function Lre(e,t,n){return t=Nre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=jnt(e,"string");return Zy(t)=="symbol"?t:t+""}function jnt(e,t){if(Zy(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z_(){return z_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z_.apply(this,arguments)}var Bnt=function(t){var n=t.yAxisId,r=Qj(),o=Jj(),i=ure(n);return i==null?null:Y.createElement(qv,z_({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(s){return xu(s,!0)}}))},ll=function(e){function t(){return $nt(this,t),_nt(this,t,arguments)}return Fnt(t,e),Dnt(t,[{key:"render",value:function(){return Y.createElement(Bnt,this.props)}}])}(Y.Component);Lre(ll,"displayName","YAxis");Lre(ll,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function w8(e){return Unt(e)||Hnt(e)||Vnt(e)||znt()}function znt(){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 Vnt(e,t){if(e){if(typeof e=="string")return V_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V_(e,t)}}function Hnt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Unt(e){if(Array.isArray(e))return V_(e)}function V_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H_=function(t,n,r,o,i){var a=Vi(t,eB),s=Vi(t,MS),l=[].concat(w8(a),w8(s)),c=Vi(t,dk),u="".concat(o,"Id"),d=o[0],f=n;if(l.length&&(f=l.reduce(function(g,y){if(y.props[u]===r&&kc(y.props,"extendDomain")&&at(y.props[d])){var b=y.props[d];return[Math.min(g[0],b),Math.max(g[1],b)]}return g},f)),c.length){var p="".concat(d,"1"),m="".concat(d,"2");f=c.reduce(function(g,y){if(y.props[u]===r&&kc(y.props,"extendDomain")&&at(y.props[p])&&at(y.props[m])){var b=y.props[p],x=y.props[m];return[Math.min(g[0],b,x),Math.max(g[1],b,x)]}return g},f)}return i&&i.length&&(f=i.reduce(function(g,y){return at(y)?[Math.min(g[0],y),Math.max(g[1],y)]:g},f)),f},Fre={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new o(u,d||l,f),m=n?n+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,p,m){var g=n?n+c:c;if(!this._events[g])return!1;var y=this._events[g],b=arguments.length,x,S;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,p),!0;case 6:return y.fn.call(y.context,u,d,f,p,m),!0}for(S=1,x=new Array(b-1);S<b;S++)x[S-1]=arguments[S];y.fn.apply(y.context,x)}else{var P=y.length,E;for(S=0;S<P;S++)switch(y[S].once&&this.removeListener(c,y[S].fn,void 0,!0),b){case 1:y[S].fn.call(y[S].context);break;case 2:y[S].fn.call(y[S].context,u);break;case 3:y[S].fn.call(y[S].context,u,d);break;case 4:y[S].fn.call(y[S].context,u,d,f);break;default:if(!x)for(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];y[S].fn.apply(y[S].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var p=n?n+c:c;if(!this._events[p])return this;if(!u)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&a(this,p);else{for(var g=0,y=[],b=m.length;g<b;g++)(m[g].fn!==u||f&&!m[g].once||d&&m[g].context!==d)&&y.push(m[g]);y.length?this._events[p]=y.length===1?y[0]:y:a(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Fre);var Wnt=Fre.exports;const Gnt=Bn(Wnt);var L$=new Gnt,N$="recharts.syncMouseEvents";function Px(e){"@babel/helpers - typeof";return Px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Px(e)}function qnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Knt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jre(r.key),r)}}function Ynt(e,t,n){return t&&Knt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F$(e,t,n){return t=jre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jre(e){var t=Xnt(e,"string");return Px(t)=="symbol"?t:t+""}function Xnt(e,t){if(Px(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Px(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qnt=function(){function e(){qnt(this,e),F$(this,"activeIndex",0),F$(this,"coordinateList",[]),F$(this,"layout","horizontal")}return Ynt(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,i=o===void 0?null:o,a=n.container,s=a===void 0?null:a,l=n.layout,c=l===void 0?null:l,u=n.offset,d=u===void 0?null:u,f=n.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),i=o.x,a=o.y,s=o.height,l=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,u=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+l+c,f=a+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:d,pageY:f})}}}])}();function Jnt(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&at(r)&&at(o))return!0}return!1}function Znt(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Bre(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle,a=Sr(t,n,r,o),s=Sr(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function ert(e,t,n){var r,o,i,a;if(e==="horizontal")r=t.x,i=r,o=n.top,a=n.top+n.height;else if(e==="vertical")o=t.y,a=o,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=Sr(s,l,c,d),p=Sr(s,l,u,d);r=f.x,o=f.y,i=p.x,a=p.y}else return Bre(t);return[{x:r,y:o},{x:i,y:a}]}function Ex(e){"@babel/helpers - typeof";return Ex=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ex(e)}function x8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function LC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x8(Object(n),!0).forEach(function(r){trt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function trt(e,t,n){return t=nrt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nrt(e){var t=rrt(e,"string");return Ex(t)=="symbol"?t:t+""}function rrt(e,t){if(Ex(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ex(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ort(e){var t,n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,f=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!a||f!=="ScatterChart"&&o!=="axis")return null;var m,g=df;if(f==="ScatterChart")m=a,g=WXe;else if(f==="BarChart")m=Znt(d,a,l,u),g=qj;else if(d==="radial"){var y=Bre(a),b=y.cx,x=y.cy,S=y.radius,P=y.startAngle,E=y.endAngle;m={cx:b,cy:x,startAngle:P,endAngle:E,innerRadius:S,outerRadius:S},g=Ane}else m={points:ert(d,a,l)},g=df;var T=LC(LC(LC(LC({stroke:"#ccc",pointerEvents:"none"},l),m),At(p,!1)),{},{payload:s,payloadIndex:c,className:pe("recharts-tooltip-cursor",p.className)});return v.isValidElement(p)?v.cloneElement(p,T):v.createElement(g,T)}var irt=["item"],art=["children","className","width","height","style","compact","title","desc"];function ev(e){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}function S8(e,t){return crt(e)||lrt(e,t)||Vre(e,t)||srt()}function srt(){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 lrt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function crt(e){if(Array.isArray(e))return e}function C8(e,t){if(e==null)return{};var n=urt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function urt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function drt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function frt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hre(r.key),r)}}function prt(e,t,n){return t&&frt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hrt(e,t,n){return t=RT(t),mrt(e,zre()?Reflect.construct(t,n||[],RT(e).constructor):t.apply(e,n))}function mrt(e,t){if(t&&(ev(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return grt(e)}function grt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zre=function(){return!!e})()}function RT(e){return RT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},RT(e)}function yrt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U_(e,t)}function U_(e,t){return U_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},U_(e,t)}function tv(e){return wrt(e)||brt(e)||Vre(e)||vrt()}function vrt(){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 Vre(e,t){if(e){if(typeof e=="string")return W_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W_(e,t)}}function brt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wrt(e){if(Array.isArray(e))return W_(e)}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P8(Object(n),!0).forEach(function(r){Ut(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ut(e,t,n){return t=Hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=xrt(e,"string");return ev(t)=="symbol"?t:t+""}function xrt(e,t){if(ev(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ev(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Srt={xAxis:["bottom","top"],yAxis:["left","right"]},Crt={width:"100%",height:"100%"},Ure={x:0,y:0};function NC(e){return e}var Prt=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Ert=function(t,n,r,o){var i=n.find(function(u){return u&&u.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:i.coordinate};if(t==="centric"){var a=i.coordinate,s=o.radius;return Ve(Ve(Ve({},o),Sr(o.cx,o.cy,s,a)),{},{angle:a,radius:s})}var l=i.coordinate,c=o.angle;return Ve(Ve(Ve({},o),Sr(o.cx,o.cy,l,c)),{},{angle:c,radius:l})}return Ure},pk=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,i=n.dataEndIndex,a=(r??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(tv(s),tv(c)):s},[]);return a.length>0?a:t&&t.length&&at(o)&&at(i)?t.slice(o,i+1):[]};function Wre(e){return e==="number"?[0,"auto"]:void 0}var G_=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=pk(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,c){var u,d=(u=c.props.data)!==null&&u!==void 0?u:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(a.dataKey&&!a.allowDuplicatedCategory){var p=d===void 0?s:d;f=ME(p,a.dataKey,o)}else f=d&&d[r]||s[r];return f?[].concat(tv(l),[Ene(c,f)]):l},[])},E8=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=Prt(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=Mqe(a,s,c,l);if(u>=0&&c){var d=c[u]&&c[u].value,f=G_(t,n,u,d),p=Ert(r,s,u,i);return{activeTooltipIndex:u,activeLabel:d,activePayload:f,activeCoordinate:p}}return null},Trt=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,d=t.children,f=t.stackOffset,p=bne(u,i);return r.reduce(function(m,g){var y,b=g.type.defaultProps!==void 0?Ve(Ve({},g.type.defaultProps),g.props):g.props,x=b.type,S=b.dataKey,P=b.allowDataOverflow,E=b.allowDuplicatedCategory,T=b.scale,O=b.ticks,k=b.includeHidden,M=b[a];if(m[M])return m;var I=pk(t.data,{graphicalItems:o.filter(function(J){var K,ne=a in J.props?J.props[a]:(K=J.type.defaultProps)===null||K===void 0?void 0:K[a];return ne===M}),dataStartIndex:l,dataEndIndex:c}),R=I.length,_,N,B;Jnt(b.domain,P,x)&&(_=r_(b.domain,null,P),p&&(x==="number"||T!=="auto")&&(B=tw(I,S,"category")));var L=Wre(x);if(!_||_.length===0){var F,U=(F=b.domain)!==null&&F!==void 0?F:L;if(S){if(_=tw(I,S,x),x==="category"&&p){var V=wje(_);E&&V?(N=_,_=yT(0,R)):E||(_=H6(U,_,g).reduce(function(J,K){return J.indexOf(K)>=0?J:[].concat(tv(J),[K])},[]))}else if(x==="category")E?_=_.filter(function(J){return J!==""&&!Bt(J)}):_=H6(U,_,g).reduce(function(J,K){return J.indexOf(K)>=0||K===""||Bt(K)?J:[].concat(tv(J),[K])},[]);else if(x==="number"){var z=_qe(I,o.filter(function(J){var K,ne,re=a in J.props?J.props[a]:(K=J.type.defaultProps)===null||K===void 0?void 0:K[a],oe="hide"in J.props?J.props.hide:(ne=J.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return re===M&&(k||!oe)}),S,i,u);z&&(_=z)}p&&(x==="number"||T!=="auto")&&(B=tw(I,S,"category"))}else p?_=yT(0,R):s&&s[M]&&s[M].hasStack&&x==="number"?_=f==="expand"?[0,1]:Pne(s[M].stackGroups,l,c):_=vne(I,o.filter(function(J){var K=a in J.props?J.props[a]:J.type.defaultProps[a],ne="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return K===M&&(k||!ne)}),x,u,!0);if(x==="number")_=H_(d,_,M,i,O),U&&(_=r_(U,_,P));else if(x==="category"&&U){var W=U,G=_.every(function(J){return W.indexOf(J)>=0});G&&(_=W)}}return Ve(Ve({},m),{},Ut({},M,Ve(Ve({},b),{},{axisType:i,domain:_,categoricalDomain:B,duplicateDomain:N,originalDomain:(y=b.domain)!==null&&y!==void 0?y:L,isCategorical:p,layout:u})))},{})},Ort=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,d=t.children,f=pk(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),p=f.length,m=bne(u,i),g=-1;return r.reduce(function(y,b){var x=b.type.defaultProps!==void 0?Ve(Ve({},b.type.defaultProps),b.props):b.props,S=x[a],P=Wre("number");if(!y[S]){g++;var E;return m?E=yT(0,p):s&&s[S]&&s[S].hasStack?(E=Pne(s[S].stackGroups,l,c),E=H_(d,E,S,i)):(E=r_(P,vne(f,r.filter(function(T){var O,k,M=a in T.props?T.props[a]:(O=T.type.defaultProps)===null||O===void 0?void 0:O[a],I="hide"in T.props?T.props.hide:(k=T.type.defaultProps)===null||k===void 0?void 0:k.hide;return M===S&&!I}),"number",u),o.defaultProps.allowDataOverflow),E=H_(d,E,S,i)),Ve(Ve({},y),{},Ut({},S,Ve(Ve({axisType:i},o.defaultProps),{},{hide:!0,orientation:qa(Srt,"".concat(i,".").concat(g%2),null),domain:E,originalDomain:P,isCategorical:m,layout:u})))}return y},{})},Irt=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.children,d="".concat(o,"Id"),f=Vi(u,i),p={};return f&&f.length?p=Trt(t,{axes:f,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):a&&a.length&&(p=Ort(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),p},krt=function(t){var n=Dd(t),r=xu(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:wj(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:oT(n,r)}},T8=function(t){var n=t.children,r=t.defaultShowTooltip,o=La(n,Vy),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},Mrt=function(t){return!t||!t.length?!1:t.some(function(n){var r=Cu(n&&n.type);return r&&r.indexOf("Bar")>=0})},O8=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Art=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,u=r.height,d=r.children,f=r.margin||{},p=La(d,Vy),m=La(d,Pu),g=Object.keys(l).reduce(function(E,T){var O=l[T],k=O.orientation;return!O.mirror&&!O.hide?Ve(Ve({},E),{},Ut({},k,E[k]+O.width)):E},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(E,T){var O=a[T],k=O.orientation;return!O.mirror&&!O.hide?Ve(Ve({},E),{},Ut({},k,qa(E,"".concat(k))+O.height)):E},{top:f.top||0,bottom:f.bottom||0}),b=Ve(Ve({},y),g),x=b.bottom;p&&(b.bottom+=p.props.height||Vy.defaultProps.height),m&&n&&(b=Rqe(b,o,r,n));var S=c-b.left-b.right,P=u-b.top-b.bottom;return Ve(Ve({brushBottom:x},b),{},{width:Math.max(S,0),height:Math.max(P,0)})},$rt=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},$S=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,f=function(b,x){var S=x.graphicalItems,P=x.stackGroups,E=x.offset,T=x.updateId,O=x.dataStartIndex,k=x.dataEndIndex,M=b.barSize,I=b.layout,R=b.barGap,_=b.barCategoryGap,N=b.maxBarSize,B=O8(I),L=B.numericAxisName,F=B.cateAxisName,U=Mrt(S),V=[];return S.forEach(function(z,W){var G=pk(b.data,{graphicalItems:[z],dataStartIndex:O,dataEndIndex:k}),J=z.type.defaultProps!==void 0?Ve(Ve({},z.type.defaultProps),z.props):z.props,K=J.dataKey,ne=J.maxBarSize,re=J["".concat(L,"Id")],oe=J["".concat(F,"Id")],fe={},se=l.reduce(function(je,de){var Re=x["".concat(de.axisType,"Map")],Me=J["".concat(de.axisType,"Id")];Re&&Re[Me]||de.axisType==="zAxis"||xh();var Ae=Re[Me];return Ve(Ve({},je),{},Ut(Ut({},de.axisType,Ae),"".concat(de.axisType,"Ticks"),xu(Ae)))},fe),ee=se[F],ce=se["".concat(F,"Ticks")],le=P&&P[re]&&P[re].hasStack&&Uqe(z,P[re].stackGroups),Q=Cu(z.type).indexOf("Bar")>=0,ue=oT(ee,ce),ge=[],xe=U&&Aqe({barSize:M,stackGroups:P,totalSize:$rt(se,F)});if(Q){var me,be,we=Bt(ne)?N:ne,Oe=(me=(be=oT(ee,ce,!0))!==null&&be!==void 0?be:we)!==null&&me!==void 0?me:0;ge=$qe({barGap:R,barCategoryGap:_,bandSize:Oe!==ue?Oe:ue,sizeList:xe[oe],maxBarSize:we}),Oe!==ue&&(ge=ge.map(function(je){return Ve(Ve({},je),{},{position:Ve(Ve({},je.position),{},{offset:je.position.offset-Oe/2})})}))}var ke=z&&z.type&&z.type.getComposedData;ke&&V.push({props:Ve(Ve({},ke(Ve(Ve({},se),{},{displayedData:G,props:b,dataKey:K,item:z,bandSize:ue,barPosition:ge,offset:E,stackedData:le,layout:I,dataStartIndex:O,dataEndIndex:k}))),{},Ut(Ut(Ut({key:z.key||"item-".concat(W)},L,se[L]),F,se[F]),"animationId",T)),childIndex:$je(z,b.children),item:z})}),V},p=function(b,x){var S=b.props,P=b.dataStartIndex,E=b.dataEndIndex,T=b.updateId;if(!NU({props:S}))return null;var O=S.children,k=S.layout,M=S.stackOffset,I=S.data,R=S.reverseStackOrder,_=O8(k),N=_.numericAxisName,B=_.cateAxisName,L=Vi(O,r),F=Vqe(I,L,"".concat(N,"Id"),"".concat(B,"Id"),M,R),U=l.reduce(function(J,K){var ne="".concat(K.axisType,"Map");return Ve(Ve({},J),{},Ut({},ne,Irt(S,Ve(Ve({},K),{},{graphicalItems:L,stackGroups:K.axisType===N&&F,dataStartIndex:P,dataEndIndex:E}))))},{}),V=Art(Ve(Ve({},U),{},{props:S,graphicalItems:L}),x==null?void 0:x.legendBBox);Object.keys(U).forEach(function(J){U[J]=u(S,U[J],V,J.replace("Map",""),n)});var z=U["".concat(B,"Map")],W=krt(z),G=f(S,Ve(Ve({},U),{},{dataStartIndex:P,dataEndIndex:E,updateId:T,graphicalItems:L,stackGroups:F,offset:V}));return Ve(Ve({formattedGraphicalItems:G,graphicalItems:L,offset:V,stackGroups:F},W),U)},m=function(y){function b(x){var S,P,E;return drt(this,b),E=hrt(this,b,[x]),Ut(E,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ut(E,"accessibilityManager",new Qnt),Ut(E,"handleLegendBBoxUpdate",function(T){if(T){var O=E.state,k=O.dataStartIndex,M=O.dataEndIndex,I=O.updateId;E.setState(Ve({legendBBox:T},p({props:E.props,dataStartIndex:k,dataEndIndex:M,updateId:I},Ve(Ve({},E.state),{},{legendBBox:T}))))}}),Ut(E,"handleReceiveSyncEvent",function(T,O,k){if(E.props.syncId===T){if(k===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(O)}}),Ut(E,"handleBrushChange",function(T){var O=T.startIndex,k=T.endIndex;if(O!==E.state.dataStartIndex||k!==E.state.dataEndIndex){var M=E.state.updateId;E.setState(function(){return Ve({dataStartIndex:O,dataEndIndex:k},p({props:E.props,dataStartIndex:O,dataEndIndex:k,updateId:M},E.state))}),E.triggerSyncEvent({dataStartIndex:O,dataEndIndex:k})}}),Ut(E,"handleMouseEnter",function(T){var O=E.getMouseInfo(T);if(O){var k=Ve(Ve({},O),{},{isTooltipActive:!0});E.setState(k),E.triggerSyncEvent(k);var M=E.props.onMouseEnter;Ht(M)&&M(k,T)}}),Ut(E,"triggeredAfterMouseMove",function(T){var O=E.getMouseInfo(T),k=O?Ve(Ve({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(k),E.triggerSyncEvent(k);var M=E.props.onMouseMove;Ht(M)&&M(k,T)}),Ut(E,"handleItemMouseEnter",function(T){E.setState(function(){return{isTooltipActive:!0,activeItem:T,activePayload:T.tooltipPayload,activeCoordinate:T.tooltipPosition||{x:T.cx,y:T.cy}}})}),Ut(E,"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Ut(E,"handleMouseMove",function(T){T.persist(),E.throttleTriggeredAfterMouseMove(T)}),Ut(E,"handleMouseLeave",function(T){E.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};E.setState(O),E.triggerSyncEvent(O);var k=E.props.onMouseLeave;Ht(k)&&k(O,T)}),Ut(E,"handleOuterEvent",function(T){var O=Aje(T),k=qa(E.props,"".concat(O));if(O&&Ht(k)){var M,I;/.*touch.*/i.test(O)?I=E.getMouseInfo(T.changedTouches[0]):I=E.getMouseInfo(T),k((M=I)!==null&&M!==void 0?M:{},T)}}),Ut(E,"handleClick",function(T){var O=E.getMouseInfo(T);if(O){var k=Ve(Ve({},O),{},{isTooltipActive:!0});E.setState(k),E.triggerSyncEvent(k);var M=E.props.onClick;Ht(M)&&M(k,T)}}),Ut(E,"handleMouseDown",function(T){var O=E.props.onMouseDown;if(Ht(O)){var k=E.getMouseInfo(T);O(k,T)}}),Ut(E,"handleMouseUp",function(T){var O=E.props.onMouseUp;if(Ht(O)){var k=E.getMouseInfo(T);O(k,T)}}),Ut(E,"handleTouchMove",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(T.changedTouches[0])}),Ut(E,"handleTouchStart",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseDown(T.changedTouches[0])}),Ut(E,"handleTouchEnd",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseUp(T.changedTouches[0])}),Ut(E,"triggerSyncEvent",function(T){E.props.syncId!==void 0&&L$.emit(N$,E.props.syncId,T,E.eventEmitterSymbol)}),Ut(E,"applySyncEvent",function(T){var O=E.props,k=O.layout,M=O.syncMethod,I=E.state.updateId,R=T.dataStartIndex,_=T.dataEndIndex;if(T.dataStartIndex!==void 0||T.dataEndIndex!==void 0)E.setState(Ve({dataStartIndex:R,dataEndIndex:_},p({props:E.props,dataStartIndex:R,dataEndIndex:_,updateId:I},E.state)));else if(T.activeTooltipIndex!==void 0){var N=T.chartX,B=T.chartY,L=T.activeTooltipIndex,F=E.state,U=F.offset,V=F.tooltipTicks;if(!U)return;if(typeof M=="function")L=M(V,T);else if(M==="value"){L=-1;for(var z=0;z<V.length;z++)if(V[z].value===T.activeLabel){L=z;break}}var W=Ve(Ve({},U),{},{x:U.left,y:U.top}),G=Math.min(N,W.x+W.width),J=Math.min(B,W.y+W.height),K=V[L]&&V[L].value,ne=G_(E.state,E.props.data,L),re=V[L]?{x:k==="horizontal"?V[L].coordinate:G,y:k==="horizontal"?J:V[L].coordinate}:Ure;E.setState(Ve(Ve({},T),{},{activeLabel:K,activeCoordinate:re,activePayload:ne,activeTooltipIndex:L}))}else E.setState(T)}),Ut(E,"renderCursor",function(T){var O,k=E.state,M=k.isTooltipActive,I=k.activeCoordinate,R=k.activePayload,_=k.offset,N=k.activeTooltipIndex,B=k.tooltipAxisBandSize,L=E.getTooltipEventType(),F=(O=T.props.active)!==null&&O!==void 0?O:M,U=E.props.layout,V=T.key||"_recharts-cursor";return Y.createElement(ort,{key:V,activeCoordinate:I,activePayload:R,activeTooltipIndex:N,chartName:n,element:T,isActive:F,layout:U,offset:_,tooltipAxisBandSize:B,tooltipEventType:L})}),Ut(E,"renderPolarAxis",function(T,O,k){var M=qa(T,"type.axisType"),I=qa(E.state,"".concat(M,"Map")),R=T.type.defaultProps,_=R!==void 0?Ve(Ve({},R),T.props):T.props,N=I&&I[_["".concat(M,"Id")]];return v.cloneElement(T,Ve(Ve({},N),{},{className:pe(M,N.className),key:T.key||"".concat(O,"-").concat(k),ticks:xu(N,!0)}))}),Ut(E,"renderPolarGrid",function(T){var O=T.props,k=O.radialLines,M=O.polarAngles,I=O.polarRadius,R=E.state,_=R.radiusAxisMap,N=R.angleAxisMap,B=Dd(_),L=Dd(N),F=L.cx,U=L.cy,V=L.innerRadius,z=L.outerRadius;return v.cloneElement(T,{polarAngles:Array.isArray(M)?M:xu(L,!0).map(function(W){return W.coordinate}),polarRadius:Array.isArray(I)?I:xu(B,!0).map(function(W){return W.coordinate}),cx:F,cy:U,innerRadius:V,outerRadius:z,key:T.key||"polar-grid",radialLines:k})}),Ut(E,"renderLegend",function(){var T=E.state.formattedGraphicalItems,O=E.props,k=O.children,M=O.width,I=O.height,R=E.props.margin||{},_=M-(R.left||0)-(R.right||0),N=gne({children:k,formattedGraphicalItems:T,legendWidth:_,legendContent:c});if(!N)return null;var B=N.item,L=C8(N,irt);return v.cloneElement(B,Ve(Ve({},L),{},{chartWidth:M,chartHeight:I,margin:R,onBBoxUpdate:E.handleLegendBBoxUpdate}))}),Ut(E,"renderTooltip",function(){var T,O=E.props,k=O.children,M=O.accessibilityLayer,I=La(k,ja);if(!I)return null;var R=E.state,_=R.isTooltipActive,N=R.activeCoordinate,B=R.activePayload,L=R.activeLabel,F=R.offset,U=(T=I.props.active)!==null&&T!==void 0?T:_;return v.cloneElement(I,{viewBox:Ve(Ve({},F),{},{x:F.left,y:F.top}),active:U,label:L,payload:U?B:[],coordinate:N,accessibilityLayer:M})}),Ut(E,"renderBrush",function(T){var O=E.props,k=O.margin,M=O.data,I=E.state,R=I.offset,_=I.dataStartIndex,N=I.dataEndIndex,B=I.updateId;return v.cloneElement(T,{key:T.key||"_recharts-brush",onChange:$C(E.handleBrushChange,T.props.onChange),data:M,x:at(T.props.x)?T.props.x:R.left,y:at(T.props.y)?T.props.y:R.top+R.height+R.brushBottom-(k.bottom||0),width:at(T.props.width)?T.props.width:R.width,startIndex:_,endIndex:N,updateId:"brush-".concat(B)})}),Ut(E,"renderReferenceElement",function(T,O,k){if(!T)return null;var M=E,I=M.clipPathId,R=E.state,_=R.xAxisMap,N=R.yAxisMap,B=R.offset,L=T.type.defaultProps||{},F=T.props,U=F.xAxisId,V=U===void 0?L.xAxisId:U,z=F.yAxisId,W=z===void 0?L.yAxisId:z;return v.cloneElement(T,{key:T.key||"".concat(O,"-").concat(k),xAxis:_[V],yAxis:N[W],viewBox:{x:B.left,y:B.top,width:B.width,height:B.height},clipPathId:I})}),Ut(E,"renderActivePoints",function(T){var O=T.item,k=T.activePoint,M=T.basePoint,I=T.childIndex,R=T.isRange,_=[],N=O.props.key,B=O.item.type.defaultProps!==void 0?Ve(Ve({},O.item.type.defaultProps),O.item.props):O.item.props,L=B.activeDot,F=B.dataKey,U=Ve(Ve({index:I,dataKey:F,cx:k.x,cy:k.y,r:4,fill:Gj(O.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},At(L,!1)),AE(L));return _.push(b.renderActiveDot(L,U,"".concat(N,"-activePoint-").concat(I))),M?_.push(b.renderActiveDot(L,Ve(Ve({},U),{},{cx:M.x,cy:M.y}),"".concat(N,"-basePoint-").concat(I))):R&&_.push(null),_}),Ut(E,"renderGraphicChild",function(T,O,k){var M=E.filterFormatItem(T,O,k);if(!M)return null;var I=E.getTooltipEventType(),R=E.state,_=R.isTooltipActive,N=R.tooltipAxis,B=R.activeTooltipIndex,L=R.activeLabel,F=E.props.children,U=La(F,ja),V=M.props,z=V.points,W=V.isRange,G=V.baseLine,J=M.item.type.defaultProps!==void 0?Ve(Ve({},M.item.type.defaultProps),M.item.props):M.item.props,K=J.activeDot,ne=J.hide,re=J.activeBar,oe=J.activeShape,fe=!!(!ne&&_&&U&&(K||re||oe)),se={};I!=="axis"&&U&&U.props.trigger==="click"?se={onClick:$C(E.handleItemMouseEnter,T.props.onClick)}:I!=="axis"&&(se={onMouseLeave:$C(E.handleItemMouseLeave,T.props.onMouseLeave),onMouseEnter:$C(E.handleItemMouseEnter,T.props.onMouseEnter)});var ee=v.cloneElement(T,Ve(Ve({},M.props),se));function ce(de){return typeof N.dataKey=="function"?N.dataKey(de.payload):null}if(fe)if(B>=0){var le,Q;if(N.dataKey&&!N.allowDuplicatedCategory){var ue=typeof N.dataKey=="function"?ce:"payload.".concat(N.dataKey.toString());le=ME(z,ue,L),Q=W&&G&&ME(G,ue,L)}else le=z==null?void 0:z[B],Q=W&&G&&G[B];if(oe||re){var ge=T.props.activeIndex!==void 0?T.props.activeIndex:B;return[v.cloneElement(T,Ve(Ve(Ve({},M.props),se),{},{activeIndex:ge})),null,null]}if(!Bt(le))return[ee].concat(tv(E.renderActivePoints({item:M,activePoint:le,basePoint:Q,childIndex:B,isRange:W})))}else{var xe,me=(xe=E.getItemByXY(E.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ee},be=me.graphicalItem,we=be.item,Oe=we===void 0?T:we,ke=be.childIndex,je=Ve(Ve(Ve({},M.props),se),{},{activeIndex:ke});return[v.cloneElement(Oe,je),null,null]}return W?[ee,null,null]:[ee,null]}),Ut(E,"renderCustomized",function(T,O,k){return v.cloneElement(T,Ve(Ve({key:"recharts-customized-".concat(k)},E.props),E.state))}),Ut(E,"renderMap",{CartesianGrid:{handler:NC,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:NC},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:NC},YAxis:{handler:NC},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((S=x.id)!==null&&S!==void 0?S:Lf("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=UI(E.triggeredAfterMouseMove,(P=x.throttleDelay)!==null&&P!==void 0?P:1e3/60),E.state={},E}return yrt(b,y),prt(b,[{key:"componentDidMount",value:function(){var S,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var S=this.props,P=S.children,E=S.data,T=S.height,O=S.layout,k=La(P,ja);if(k){var M=k.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,R=G_(this.state,E,M,I),_=this.state.tooltipTicks[M].coordinate,N=(this.state.offset.top+T)/2,B=O==="horizontal",L=B?{x:_,y:N}:{y:_,x:N},F=this.state.formattedGraphicalItems.find(function(V){var z=V.item;return z.type.name==="Scatter"});F&&(L=Ve(Ve({},L),F.props.points[M].tooltipPosition),R=F.props.points[M].tooltipPayload);var U={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:I,activePayload:R,activeCoordinate:L};this.setState(U),this.renderCursor(k),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(S,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==S.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==S.margin){var E,T;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0}})}return null}},{key:"componentDidUpdate",value:function(S){vD([La(S.children,ja)],[La(this.props.children,ja)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var S=La(this.props.children,ja);if(S&&typeof S.props.shared=="boolean"){var P=S.props.shared?"axis":"item";return s.indexOf(P)>=0?P:i}return i}},{key:"getMouseInfo",value:function(S){if(!this.container)return null;var P=this.container,E=P.getBoundingClientRect(),T=oGe(E),O={chartX:Math.round(S.pageX-T.left),chartY:Math.round(S.pageY-T.top)},k=E.width/P.offsetWidth||1,M=this.inRange(O.chartX,O.chartY,k);if(!M)return null;var I=this.state,R=I.xAxisMap,_=I.yAxisMap,N=this.getTooltipEventType();if(N!=="axis"&&R&&_){var B=Dd(R).scale,L=Dd(_).scale,F=B&&B.invert?B.invert(O.chartX):null,U=L&&L.invert?L.invert(O.chartY):null;return Ve(Ve({},O),{},{xValue:F,yValue:U})}var V=E8(this.state,this.props.data,this.props.layout,M);return V?Ve(Ve({},O),V):null}},{key:"inRange",value:function(S,P){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,T=this.props.layout,O=S/E,k=P/E;if(T==="horizontal"||T==="vertical"){var M=this.state.offset,I=O>=M.left&&O<=M.left+M.width&&k>=M.top&&k<=M.top+M.height;return I?{x:O,y:k}:null}var R=this.state,_=R.angleAxisMap,N=R.radiusAxisMap;if(_&&N){var B=Dd(_);return G6({x:O,y:k},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var S=this.props.children,P=this.getTooltipEventType(),E=La(S,ja),T={};E&&P==="axis"&&(E.props.trigger==="click"?T={onClick:this.handleClick}:T={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=AE(this.props,this.handleOuterEvent);return Ve(Ve({},O),T)}},{key:"addListener",value:function(){L$.on(N$,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){L$.removeListener(N$,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(S,P,E){for(var T=this.state.formattedGraphicalItems,O=0,k=T.length;O<k;O++){var M=T[O];if(M.item===S||M.props.key===S.key||P===Cu(M.item.type)&&E===M.childIndex)return M}return null}},{key:"renderClipPath",value:function(){var S=this.clipPathId,P=this.state.offset,E=P.left,T=P.top,O=P.height,k=P.width;return Y.createElement("defs",null,Y.createElement("clipPath",{id:S},Y.createElement("rect",{x:E,y:T,height:O,width:k})))}},{key:"getXScales",value:function(){var S=this.state.xAxisMap;return S?Object.entries(S).reduce(function(P,E){var T=S8(E,2),O=T[0],k=T[1];return Ve(Ve({},P),{},Ut({},O,k.scale))},{}):null}},{key:"getYScales",value:function(){var S=this.state.yAxisMap;return S?Object.entries(S).reduce(function(P,E){var T=S8(E,2),O=T[0],k=T[1];return Ve(Ve({},P),{},Ut({},O,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(S){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[S])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(S){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[S])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(S){var P=this.state,E=P.formattedGraphicalItems,T=P.activeItem;if(E&&E.length)for(var O=0,k=E.length;O<k;O++){var M=E[O],I=M.props,R=M.item,_=R.type.defaultProps!==void 0?Ve(Ve({},R.type.defaultProps),R.props):R.props,N=Cu(R.type);if(N==="Bar"){var B=(I.data||[]).find(function(V){return EXe(S,V)});if(B)return{graphicalItem:M,payload:B}}else if(N==="RadialBar"){var L=(I.data||[]).find(function(V){return G6(S,V)});if(L)return{graphicalItem:M,payload:L}}else if(ik(M,T)||ak(M,T)||bx(M,T)){var F=pJe({graphicalItem:M,activeTooltipItem:T,itemData:_.data}),U=_.activeIndex===void 0?F:_.activeIndex;return{graphicalItem:Ve(Ve({},M),{},{childIndex:U}),payload:bx(M,T)?_.data[F]:M.props.data[F]}}}return null}},{key:"render",value:function(){var S=this;if(!NU(this))return null;var P=this.props,E=P.children,T=P.className,O=P.width,k=P.height,M=P.style,I=P.compact,R=P.title,_=P.desc,N=C8(P,art),B=At(N,!1);if(I)return Y.createElement(e8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement(wD,Sg({},B,{width:O,height:k,title:R,desc:_}),this.renderClipPath(),jU(E,this.renderMap)));if(this.props.accessibilityLayer){var L,F;B.tabIndex=(L=this.props.tabIndex)!==null&&L!==void 0?L:0,B.role=(F=this.props.role)!==null&&F!==void 0?F:"application",B.onKeyDown=function(V){S.accessibilityManager.keyboardEvent(V)},B.onFocus=function(){S.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return Y.createElement(e8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement("div",Sg({className:pe("recharts-wrapper",T),style:Ve({position:"relative",cursor:"default",width:O,height:k},M)},U,{ref:function(z){S.container=z}}),Y.createElement(wD,Sg({},B,{width:O,height:k,title:R,desc:_,style:Crt}),this.renderClipPath(),jU(E,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(v.Component);Ut(m,"displayName",n),Ut(m,"defaultProps",Ve({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Ut(m,"getDerivedStateFromProps",function(y,b){var x=y.dataKey,S=y.data,P=y.children,E=y.width,T=y.height,O=y.layout,k=y.stackOffset,M=y.margin,I=b.dataStartIndex,R=b.dataEndIndex;if(b.updateId===void 0){var _=T8(y);return Ve(Ve(Ve({},_),{},{updateId:0},p(Ve(Ve({props:y},_),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:S,prevWidth:E,prevHeight:T,prevLayout:O,prevStackOffset:k,prevMargin:M,prevChildren:P})}if(x!==b.prevDataKey||S!==b.prevData||E!==b.prevWidth||T!==b.prevHeight||O!==b.prevLayout||k!==b.prevStackOffset||!Hg(M,b.prevMargin)){var N=T8(y),B={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},L=Ve(Ve({},E8(b,S,O)),{},{updateId:b.updateId+1}),F=Ve(Ve(Ve({},N),B),L);return Ve(Ve(Ve({},F),p(Ve({props:y},F),b)),{},{prevDataKey:x,prevData:S,prevWidth:E,prevHeight:T,prevLayout:O,prevStackOffset:k,prevMargin:M,prevChildren:P})}if(!vD(P,b.prevChildren)){var U,V,z,W,G=La(P,Vy),J=G&&(U=(V=G.props)===null||V===void 0?void 0:V.startIndex)!==null&&U!==void 0?U:I,K=G&&(z=(W=G.props)===null||W===void 0?void 0:W.endIndex)!==null&&z!==void 0?z:R,ne=J!==I||K!==R,re=!Bt(S),oe=re&&!ne?b.updateId:b.updateId+1;return Ve(Ve({updateId:oe},p(Ve(Ve({props:y},b),{},{updateId:oe,dataStartIndex:J,dataEndIndex:K}),b)),{},{prevChildren:P,dataStartIndex:J,dataEndIndex:K})}return null}),Ut(m,"renderActiveDot",function(y,b,x){var S;return v.isValidElement(y)?S=v.cloneElement(y,b):Ht(y)?S=y(b):S=Y.createElement(kS,b),Y.createElement(rn,{className:"recharts-active-dot",key:x},S)});var g=v.forwardRef(function(b,x){return Y.createElement(m,Sg({},b,{ref:x}))});return g.displayName=m.displayName,g},Gre=$S({chartName:"LineChart",GraphicalChild:Kv,axisComponents:[{axisType:"xAxis",AxisComp:sl},{axisType:"yAxis",AxisComp:ll}],formatAxisMap:lk}),qre=$S({chartName:"BarChart",GraphicalChild:Mc,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:sl},{axisType:"yAxis",AxisComp:ll}],formatAxisMap:lk}),Kre=$S({chartName:"PieChart",GraphicalChild:Vc,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ok},{axisType:"radiusAxis",AxisComp:nk}],formatAxisMap:eKe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Rrt=$S({chartName:"ScatterChart",GraphicalChild:AS,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:sl},{axisType:"yAxis",AxisComp:ll},{axisType:"zAxis",AxisComp:fk}],formatAxisMap:lk}),Drt=$S({chartName:"AreaChart",GraphicalChild:zf,axisComponents:[{axisType:"xAxis",AxisComp:sl},{axisType:"yAxis",AxisComp:ll}],formatAxisMap:lk});const _rt=e=>{const t=e.planned.energy>0?e.logged.energy/e.planned.energy*100:100,n=e.planned.energy>0?e.planned.energy-e.logged.energy:e.logged.energy,r=Ao(),[o,i]=qe(),a=[{name:"",value:t},{name:"",value:t<100?100-t:0}],s=[r.palette.primary.main,"#C5C5C5"];return X(Gt,{direction:"row",children:[C(Nf,{width:"50%",height:140,children:X(Kre,{children:[C(Vc,{height:100,data:a,startAngle:200,endAngle:-20,innerRadius:60,outerRadius:70,paddingAngle:2,dataKey:"value",children:a.map((l,c)=>C(zv,{fill:s[c%s.length]},`cell-${c}`))}),X("g",{children:[C("text",{x:"50%",y:"45%",fontSize:"1.25em",textAnchor:"middle",children:o("nutrition.valueEnergyKcal",{value:gi(n,i.language)})}),C("text",{x:"50%",y:"60%",fontSize:"1em",textAnchor:"middle",children:e.planned.energy>0&&o(t<100?"nutrition.valueRemaining":"nutrition.valueTooMany")})]})]})}),X(Gt,{width:"50%",spacing:1,children:[C(Vg,{title:o("nutrition.protein"),percentage:e.percentage.protein,logged:e.logged.protein,planned:e.planned.protein}),C(Vg,{title:o("nutrition.carbohydrates"),percentage:e.percentage.carbohydrates,logged:e.logged.carbohydrates,planned:e.planned.carbohydrates}),C(Vg,{title:o("nutrition.fat"),percentage:e.percentage.fat,logged:e.logged.fat,planned:e.planned.fat})]})]})},Lrt=["localeText"],q_=v.createContext(null),RS=function(t){const{localeText:n}=t,r=Ue(t,Lrt),{utils:o,localeText:i}=v.useContext(q_)??{utils:void 0,localeText:void 0},a=Jt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,p=v.useMemo(()=>D({},f,i,n),[f,i,n]),m=v.useMemo(()=>{if(!l)return o||null;const b=new l({locale:d,formats:c,instance:u});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
-`));return b},[l,d,c,u,o]),g=v.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=v.useMemo(()=>({utils:m,defaultDates:g,localeText:p}),[g,m,p]);return $.jsx(q_.Provider,{value:y,children:s})},Nrt=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:D({},e)}}}}),Yv=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},Yre={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Frt=Yre;Nrt(Yre);const Bh=()=>{const e=v.useContext(q_);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(n+o-s*m," Z")}else u="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return u},_Qe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),u=Math.max(i,i+s),d=Math.min(a,a+l),f=Math.max(a,a+l);return r>=c&&r<=u&&o>=d&&o<=f}return!1},LQe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AB=function(t){var n=u8(u8({},LQe),t),r=v.useRef(),o=v.useState(-1),i=OQe(o,2),a=i[0],s=i[1];v.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&s(P)}catch{}},[]);var l=n.x,c=n.y,u=n.width,d=n.height,f=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,y=n.animationBegin,b=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var S=pe("recharts-rectangle",p);return x?Y.createElement(dl,{canBegin:a>0,from:{width:u,height:d,x:l,y:c},to:{width:u,height:d,x:l,y:c},duration:g,animationEasing:m,isActive:x},function(P){var E=P.width,T=P.height,O=P.x,k=P.y;return Y.createElement(dl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:b,easing:m},Y.createElement("path",LT({},$t(n,!0),{className:S,d:d8(O,k,E,T,f),ref:r})))}):Y.createElement("path",LT({},$t(n,!0),{className:S,d:d8(l,c,u,d,f)}))},NQe=["points","className","baseLinePoints","connectNulls"];function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(this,arguments)}function FQe(e,t){if(e==null)return{};var n=jQe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jQe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function f8(e){return HQe(e)||VQe(e)||zQe(e)||BQe()}function BQe(){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 zQe(e,t){if(e){if(typeof e=="string")return Z_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(e,t)}}function VQe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HQe(e){if(Array.isArray(e))return Z_(e)}function Z_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p8=function(t){return t&&t.x===+t.x&&t.y===+t.y},UQe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){p8(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),p8(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ow=function(t,n){var r=UQe(t);n&&(r=[r.reduce(function(i,a){return[].concat(f8(i),f8(a))},[])]);var o=r.map(function(i){return i.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},WQe=function(t,n,r){var o=Ow(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(Ow(n.reverse(),r).slice(1))},GQe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,i=t.connectNulls,a=FQe(t,NQe);if(!n||!n.length)return null;var s=pe("recharts-polygon",r);if(o&&o.length){var l=a.stroke&&a.stroke!=="none",c=WQe(n,o,i);return Y.createElement("g",{className:s},Y.createElement("path",Ng({},$t(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:c})),l?Y.createElement("path",Ng({},$t(a,!0),{fill:"none",d:Ow(n,i)})):null,l?Y.createElement("path",Ng({},$t(a,!0),{fill:"none",d:Ow(o,i)})):null)}var u=Ow(n,i);return Y.createElement("path",Ng({},$t(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",className:s,d:u}))};function eL(){return eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eL.apply(this,arguments)}var QS=function(t){var n=t.cx,r=t.cy,o=t.r,i=t.className,a=pe("recharts-dot",i);return n===+n&&r===+r&&o===+o?Y.createElement("circle",eL({},$t(t,!1),rT(t),{className:a,cx:n,cy:r,r:o})):null};function Bx(e){"@babel/helpers - typeof";return Bx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bx(e)}var qQe=["x","y","top","left","width","height","className"];function tL(){return tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tL.apply(this,arguments)}function h8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function KQe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(n),!0).forEach(function(r){YQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YQe(e,t,n){return t=XQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XQe(e){var t=QQe(e,"string");return Bx(t)=="symbol"?t:t+""}function QQe(e,t){if(Bx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JQe(e,t){if(e==null)return{};var n=ZQe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZQe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var eJe=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},tJe=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,l=t.left,c=l===void 0?0:l,u=t.width,d=u===void 0?0:u,f=t.height,p=f===void 0?0:f,m=t.className,g=JQe(t,qQe),y=KQe({x:r,y:i,top:s,left:c,width:d,height:p},g);return!at(r)||!at(i)||!at(d)||!at(p)||!at(s)||!at(c)?null:Y.createElement("path",tL({},$t(y,!0),{className:pe("recharts-cross",m),d:eJe(r,i,d,p,s,c)}))},nJe=Pk,rJe=ere,oJe=Jc;function iJe(e,t){return e&&e.length?nJe(e,oJe(t),rJe):void 0}var aJe=iJe;const sJe=jn(aJe);var lJe=Pk,cJe=Jc,uJe=tre;function dJe(e,t){return e&&e.length?lJe(e,cJe(t),uJe):void 0}var fJe=dJe;const pJe=jn(fJe);var hJe=["cx","cy","angle","ticks","axisLine"],mJe=["ticks","tick","angle","tickFormatter","stroke"];function av(e){"@babel/helpers - typeof";return av=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},av(e)}function Iw(){return Iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iw.apply(this,arguments)}function m8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m8(Object(n),!0).forEach(function(r){Ik(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g8(e,t){if(e==null)return{};var n=gJe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gJe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vre(r.key),r)}}function vJe(e,t,n){return t&&y8(e.prototype,t),n&&y8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bJe(e,t,n){return t=NT(t),wJe(e,zre()?Reflect.construct(t,n||[],NT(e).constructor):t.apply(e,n))}function wJe(e,t){if(t&&(av(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xJe(e)}function xJe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zre=function(){return!!e})()}function NT(e){return NT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},NT(e)}function SJe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nL(e,t)}function nL(e,t){return nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nL(e,t)}function Ik(e,t,n){return t=Vre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vre(e){var t=CJe(e,"string");return av(t)=="symbol"?t:t+""}function CJe(e,t){if(av(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(av(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kk=function(e){function t(){return yJe(this,t),bJe(this,t,arguments)}return SJe(t,e),vJe(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,i=this.props,a=i.angle,s=i.cx,l=i.cy;return Sr(s,l,o,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.angle,s=r.ticks,l=sJe(s,function(u){return u.coordinate||0}),c=pJe(s,function(u){return u.coordinate||0});return{cx:o,cy:i,startAngle:a,endAngle:a,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,c=g8(r,hJe),u=s.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),d=Sr(o,i,u[0],a),f=Sr(o,i,u[1],a),p=Ep(Ep(Ep({},$t(c,!1)),{},{fill:"none"},$t(l,!1)),{},{x1:d.x,y1:d.y,x2:f.x,y2:f.y});return Y.createElement("line",Iw({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.angle,l=o.tickFormatter,c=o.stroke,u=g8(o,mJe),d=this.getTickTextAnchor(),f=$t(u,!1),p=$t(a,!1),m=i.map(function(g,y){var b=r.getTickValueCoord(g),x=Ep(Ep(Ep(Ep({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:y},b),{},{payload:g});return Y.createElement(on,Iw({className:pe("recharts-polar-radius-axis-tick",kre(a)),key:"tick-".concat(g.coordinate)},_f(r.props,g,y)),t.renderTickItem(a,x,l?l(g.value,y):g.value))});return Y.createElement(on,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.axisLine,a=r.tick;return!o||!o.length?null:Y.createElement(on,{className:pe("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),a&&this.renderTicks(),qo.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ut(r)?a=r(o):a=Y.createElement(Lh,Iw({},o,{className:"recharts-polar-radius-axis-tick-value"}),i),a}}])}(v.PureComponent);Ik(kk,"displayName","PolarRadiusAxis");Ik(kk,"axisType","radiusAxis");Ik(kk,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function sv(e){"@babel/helpers - typeof";return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sv(e)}function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(this,arguments)}function v8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v8(Object(n),!0).forEach(function(r){Mk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ure(r.key),r)}}function EJe(e,t,n){return t&&b8(e.prototype,t),n&&b8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TJe(e,t,n){return t=FT(t),OJe(e,Hre()?Reflect.construct(t,n||[],FT(e).constructor):t.apply(e,n))}function OJe(e,t){if(t&&(sv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IJe(e)}function IJe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hre=function(){return!!e})()}function FT(e){return FT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},FT(e)}function kJe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rL(e,t)}function rL(e,t){return rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},rL(e,t)}function Mk(e,t,n){return t=Ure(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ure(e){var t=MJe(e,"string");return sv(t)=="symbol"?t:t+""}function MJe(e,t){if(sv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AJe=Math.PI/180,w8=1e-5,Ak=function(e){function t(){return PJe(this,t),TJe(this,t,arguments)}return kJe(t,e),EJe(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,i=o.cx,a=o.cy,s=o.radius,l=o.orientation,c=o.tickSize,u=c||8,d=Sr(i,a,s,r.coordinate),f=Sr(i,a,s+(l==="inner"?-1:1)*u,r.coordinate);return{x1:d.x,y1:d.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,i=Math.cos(-r.coordinate*AJe),a;return i>w8?a=o==="outer"?"start":"end":i<-w8?a=o==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,c=Tp(Tp({},$t(this.props,!1)),{},{fill:"none"},$t(s,!1));if(l==="circle")return Y.createElement(QS,Vp({className:"recharts-polar-angle-axis-line"},c,{cx:o,cy:i,r:a}));var u=this.props.ticks,d=u.map(function(f){return Sr(o,i,a,f.coordinate)});return Y.createElement(GQe,Vp({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.tickLine,l=o.tickFormatter,c=o.stroke,u=$t(this.props,!1),d=$t(a,!1),f=Tp(Tp({},u),{},{fill:"none"},$t(s,!1)),p=i.map(function(m,g){var y=r.getTickLineCoord(m),b=r.getTickTextAnchor(m),x=Tp(Tp(Tp({textAnchor:b},u),{},{stroke:"none",fill:c},d),{},{index:g,payload:m,x:y.x2,y:y.y2});return Y.createElement(on,Vp({className:pe("recharts-polar-angle-axis-tick",kre(a)),key:"tick-".concat(m.coordinate)},_f(r.props,m,g)),s&&Y.createElement("line",Vp({className:"recharts-polar-angle-axis-tick-line"},f,y)),a&&t.renderTickItem(a,x,l?l(m.value,g):m.value))});return Y.createElement(on,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.radius,a=r.axisLine;return i<=0||!o||!o.length?null:Y.createElement(on,{className:pe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ut(r)?a=r(o):a=Y.createElement(Lh,Vp({},o,{className:"recharts-polar-angle-axis-tick-value"}),i),a}}])}(v.PureComponent);Mk(Ak,"displayName","PolarAngleAxis");Mk(Ak,"axisType","angleAxis");Mk(Ak,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var $Je=Qte,RJe=$Je(Object.getPrototypeOf,Object),DJe=RJe,_Je=pd,LJe=DJe,NJe=hd,FJe="[object Object]",jJe=Function.prototype,BJe=Object.prototype,Wre=jJe.toString,zJe=BJe.hasOwnProperty,VJe=Wre.call(Object);function HJe(e){if(!NJe(e)||_Je(e)!=FJe)return!1;var t=LJe(e);if(t===null)return!0;var n=zJe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Wre.call(n)==VJe}var UJe=HJe;const WJe=jn(UJe);var GJe=pd,qJe=hd,KJe="[object Boolean]";function YJe(e){return e===!0||e===!1||qJe(e)&&GJe(e)==KJe}var XJe=YJe;const QJe=jn(XJe);function zx(e){"@babel/helpers - typeof";return zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zx(e)}function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}function JJe(e,t){return nZe(e)||tZe(e,t)||eZe(e,t)||ZJe()}function ZJe(){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 eZe(e,t){if(e){if(typeof e=="string")return x8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x8(e,t)}}function x8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function nZe(e){if(Array.isArray(e))return e}function S8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function C8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S8(Object(n),!0).forEach(function(r){rZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rZe(e,t,n){return t=oZe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oZe(e){var t=iZe(e,"string");return zx(t)=="symbol"?t:t+""}function iZe(e,t){if(zx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P8=function(t,n,r,o,i){var a=r-o,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+i),s+="L ".concat(t+r-a/2-o,",").concat(n+i),s+="L ".concat(t,",").concat(n," Z"),s},aZe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sZe=function(t){var n=C8(C8({},aZe),t),r=v.useRef(),o=v.useState(-1),i=JJe(o,2),a=i[0],s=i[1];v.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var l=n.x,c=n.y,u=n.upperWidth,d=n.lowerWidth,f=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,y=n.animationBegin,b=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var x=pe("recharts-trapezoid",p);return b?Y.createElement(dl,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:c},to:{upperWidth:u,lowerWidth:d,height:f,x:l,y:c},duration:g,animationEasing:m,isActive:b},function(S){var P=S.upperWidth,E=S.lowerWidth,T=S.height,O=S.x,k=S.y;return Y.createElement(dl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,easing:m},Y.createElement("path",jT({},$t(n,!0),{className:x,d:P8(O,k,P,E,T),ref:r})))}):Y.createElement("g",null,Y.createElement("path",jT({},$t(n,!0),{className:x,d:P8(l,c,u,d,f)})))},lZe=["option","shapeType","propTransformer","activeClassName","isActive"];function Vx(e){"@babel/helpers - typeof";return Vx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vx(e)}function cZe(e,t){if(e==null)return{};var n=uZe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uZe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function E8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function BT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(n),!0).forEach(function(r){dZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dZe(e,t,n){return t=fZe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fZe(e){var t=pZe(e,"string");return Vx(t)=="symbol"?t:t+""}function pZe(e,t){if(Vx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hZe(e,t){return BT(BT({},t),e)}function mZe(e,t){return e==="symbols"}function T8(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return Y.createElement(AB,n);case"trapezoid":return Y.createElement(sZe,n);case"sector":return Y.createElement($re,n);case"symbols":if(mZe(t))return Y.createElement(pk,n);break;default:return null}}function gZe(e){return v.isValidElement(e)?e.props:e}function zT(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?hZe:r,i=e.activeClassName,a=i===void 0?"recharts-active-shape":i,s=e.isActive,l=cZe(e,lZe),c;if(v.isValidElement(t))c=v.cloneElement(t,BT(BT({},l),gZe(t)));else if(Ut(t))c=t(l);else if(WJe(t)&&!QJe(t)){var u=o(t,l);c=Y.createElement(T8,{shapeType:n,elementProps:u})}else{var d=l;c=Y.createElement(T8,{shapeType:n,elementProps:d})}return s?Y.createElement(on,{className:a},c):c}function $k(e,t){return t!=null&&"trapezoids"in e.props}function Rk(e,t){return t!=null&&"sectors"in e.props}function Hx(e,t){return t!=null&&"points"in e.props}function yZe(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&i}function vZe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function bZe(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function wZe(e,t){var n;return $k(e,t)?n=yZe:Rk(e,t)?n=vZe:Hx(e,t)&&(n=bZe),n}function xZe(e,t){var n;return $k(e,t)?n="trapezoids":Rk(e,t)?n="sectors":Hx(e,t)&&(n="points"),n}function SZe(e,t){if($k(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Rk(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Hx(e,t)?t.payload:{}}function CZe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=xZe(n,t),i=SZe(n,t),a=r.filter(function(l,c){var u=Lf(i,l),d=n.props[o].filter(function(m){var g=wZe(n,t);return g(m,t)}),f=n.props[o].indexOf(d[d.length-1]),p=c===f;return u&&p}),s=r.indexOf(a[a.length-1]);return s}var JP;function lv(e){"@babel/helpers - typeof";return lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lv(e)}function Fg(){return Fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fg.apply(this,arguments)}function O8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(n),!0).forEach(function(r){Ws(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PZe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qre(r.key),r)}}function EZe(e,t,n){return t&&I8(e.prototype,t),n&&I8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TZe(e,t,n){return t=VT(t),OZe(e,Gre()?Reflect.construct(t,n||[],VT(e).constructor):t.apply(e,n))}function OZe(e,t){if(t&&(lv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IZe(e)}function IZe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gre=function(){return!!e})()}function VT(e){return VT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},VT(e)}function kZe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oL(e,t)}function oL(e,t){return oL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},oL(e,t)}function Ws(e,t,n){return t=qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qre(e){var t=MZe(e,"string");return lv(t)=="symbol"?t:t+""}function MZe(e,t){if(lv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zc=function(e){function t(n){var r;return PZe(this,t),r=TZe(this,t,[n]),Ws(r,"pieRef",null),Ws(r,"sectorRefs",[]),Ws(r,"id",Jf("recharts-pie-")),Ws(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ut(o)&&o()}),Ws(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ut(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return kZe(t,e),EZe(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.label,s=i.labelLine,l=i.dataKey,c=i.valueKey,u=$t(this.props,!1),d=$t(a,!1),f=$t(s,!1),p=a&&a.offsetRadius||20,m=r.map(function(g,y){var b=(g.startAngle+g.endAngle)/2,x=Sr(g.cx,g.cy,g.outerRadius+p,b),S=br(br(br(br({},u),g),{},{stroke:"none"},d),{},{index:y,textAnchor:t.getTextAnchor(x.x,g.cx)},x),P=br(br(br(br({},u),g),{},{fill:"none",stroke:g.fill},f),{},{index:y,points:[Sr(g.cx,g.cy,g.outerRadius,b),x]}),E=l;return zt(l)&&zt(c)?E="value":zt(l)&&(E=c),Y.createElement(on,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(y)},s&&t.renderLabelLineItem(s,P,"line"),t.renderLabelItem(a,S,Mr(g,E)))});return Y.createElement(on,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var o=this,i=this.props,a=i.activeShape,s=i.blendStroke,l=i.inactiveShape;return r.map(function(c,u){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var d=o.isActiveIndex(u),f=l&&o.hasActiveIndex()?l:null,p=d?a:f,m=br(br({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return Y.createElement(on,Fg({ref:function(y){y&&!o.sectorRefs.includes(y)&&o.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},_f(o.props,c,u),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(u)}),Y.createElement(zT,Fg({option:p,isActive:d,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,i=o.sectors,a=o.isAnimationActive,s=o.animationBegin,l=o.animationDuration,c=o.animationEasing,u=o.animationId,d=this.state,f=d.prevSectors,p=d.prevIsAnimationActive;return Y.createElement(dl,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,y=[],b=i&&i[0],x=b.startAngle;return i.forEach(function(S,P){var E=f&&f[P],T=P>0?es(S,"paddingAngle",0):0;if(E){var O=Hr(E.endAngle-E.startAngle,S.endAngle-S.startAngle),k=br(br({},S),{},{startAngle:x+T,endAngle:x+O(g)+T});y.push(k),x=k.endAngle}else{var M=S.endAngle,I=S.startAngle,R=Hr(0,M-I),_=R(g),L=br(br({},S),{},{startAngle:x+T,endAngle:x+_+T});y.push(L),x=L.endAngle}}),Y.createElement(on,null,r.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var a=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[a].focus(),o.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,i=r.isAnimationActive,a=this.state.prevSectors;return i&&o&&o.length&&(!a||!Lf(a,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,i=o.hide,a=o.sectors,s=o.className,l=o.label,c=o.cx,u=o.cy,d=o.innerRadius,f=o.outerRadius,p=o.isAnimationActive,m=this.state.isAnimationFinished;if(i||!a||!a.length||!at(c)||!at(u)||!at(d)||!at(f))return null;var g=pe("recharts-pie",s);return Y.createElement(on,{tabIndex:this.props.rootTabIndex,className:g,ref:function(b){r.pieRef=b}},this.renderSectors(),l&&this.renderLabels(a),qo.renderCallByParent(this.props,null,!1),(!p||m)&&ec.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,i){if(Y.isValidElement(r))return Y.cloneElement(r,o);if(Ut(r))return r(o);var a=pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return Y.createElement(Tf,Fg({},o,{key:i,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,o,i){if(Y.isValidElement(r))return Y.cloneElement(r,o);var a=i;if(Ut(r)&&(a=r(o),Y.isValidElement(a)))return a;var s=pe("recharts-pie-label-text",typeof r!="boolean"&&!Ut(r)?r.className:"");return Y.createElement(Lh,Fg({},o,{alignmentBaseline:"middle",className:s}),a)}}])}(v.PureComponent);JP=Zc;Ws(Zc,"displayName","Pie");Ws(Zc,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!rl.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ws(Zc,"parseDeltaAngle",function(e,t){var n=Hi(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Ws(Zc,"getRealPieData",function(e){var t=e.data,n=e.children,r=$t(e,!1),o=Yi(n,cb);return t&&t.length?t.map(function(i,a){return br(br(br({payload:i},r),i),o&&o[a]&&o[a].props)}):o&&o.length?o.map(function(i){return br(br({},r),i.props)}):[]});Ws(Zc,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Ire(o,i),s=r+Ui(e.cx,o,o/2),l=n+Ui(e.cy,i,i/2),c=Ui(e.innerRadius,a,0),u=Ui(e.outerRadius,a,a*.8),d=e.maxRadius||Math.sqrt(o*o+i*i)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:u,maxRadius:d}});Ws(Zc,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?br(br({},t.type.defaultProps),t.props):t.props,o=JP.getRealPieData(r);if(!o||!o.length)return null;var i=r.cornerRadius,a=r.startAngle,s=r.endAngle,l=r.paddingAngle,c=r.dataKey,u=r.nameKey,d=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),m=JP.parseCoordinateOfPie(r,n),g=JP.parseDeltaAngle(a,s),y=Math.abs(g),b=c;zt(c)&&zt(d)?(Zl(!1,`Use "dataKey" to specify the value of pie,
+ the props "valueKey" will be deprecated in 1.1.0`),b="value"):zt(c)&&(Zl(!1,`Use "dataKey" to specify the value of pie,
+ the props "valueKey" will be deprecated in 1.1.0`),b=d);var x=o.filter(function(k){return Mr(k,b,0)!==0}).length,S=(y>=360?x:x-1)*l,P=y-x*p-S,E=o.reduce(function(k,M){var I=Mr(M,b,0);return k+(at(I)?I:0)},0),T;if(E>0){var O;T=o.map(function(k,M){var I=Mr(k,b,0),R=Mr(k,u,M),_=(at(I)?I:0)/E,L;M?L=O.endAngle+Hi(g)*l*(I!==0?1:0):L=a;var j=L+Hi(g)*((I!==0?p:0)+_*P),N=(L+j)/2,F=(m.innerRadius+m.outerRadius)/2,U=[{name:R,value:I,payload:k,dataKey:b,type:f}],z=Sr(m.cx,m.cy,F,N);return O=br(br(br({percent:_,cornerRadius:i,name:R,tooltipPayload:U,midAngle:N,middleRadius:F,tooltipPosition:z},k),m),{},{value:Mr(k,b),startAngle:L,endAngle:j,payload:k,paddingAngle:Hi(g)*l}),O})}return br(br({},m),{},{sectors:T,data:o})});var AZe=Math.ceil,$Ze=Math.max;function RZe(e,t,n,r){for(var o=-1,i=$Ze(AZe((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}var DZe=RZe,_Ze=gne,k8=1/0,LZe=17976931348623157e292;function NZe(e){if(!e)return e===0?e:0;if(e=_Ze(e),e===k8||e===-k8){var t=e<0?-1:1;return t*LZe}return e===e?e:0}var Kre=NZe,FZe=DZe,jZe=gk,mR=Kre;function BZe(e){return function(t,n,r){return r&&typeof r!="number"&&jZe(t,n,r)&&(n=r=void 0),t=mR(t),n===void 0?(n=t,t=0):n=mR(n),r=r===void 0?t<n?1:-1:mR(r),FZe(t,n,r,e)}}var zZe=BZe,VZe=zZe,HZe=VZe(),UZe=HZe;const HT=jn(UZe);function Ux(e){"@babel/helpers - typeof";return Ux=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ux(e)}function M8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M8(Object(n),!0).forEach(function(r){Yre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yre(e,t,n){return t=WZe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WZe(e){var t=GZe(e,"string");return Ux(t)=="symbol"?t:t+""}function GZe(e,t){if(Ux(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ux(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qZe=["Webkit","Moz","O","ms"],KZe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),o=qZe.reduce(function(i,a){return A8(A8({},i),{},Yre({},a+r,n))},{});return o[t]=n,o};function cv(e){"@babel/helpers - typeof";return cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cv(e)}function UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}function $8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$8(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YZe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qre(r.key),r)}}function XZe(e,t,n){return t&&R8(e.prototype,t),n&&R8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QZe(e,t,n){return t=WT(t),JZe(e,Xre()?Reflect.construct(t,n||[],WT(e).constructor):t.apply(e,n))}function JZe(e,t){if(t&&(cv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZZe(e)}function ZZe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xre(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xre=function(){return!!e})()}function WT(e){return WT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},WT(e)}function eet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iL(e,t)}function iL(e,t){return iL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},iL(e,t)}function Fa(e,t,n){return t=Qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qre(e){var t=tet(e,"string");return cv(t)=="symbol"?t:t+""}function tet(e,t){if(cv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var net=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,i=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,c=Pw().domain(HT(0,l)).range([i,i+a-s]),u=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(o),scale:c,scaleValues:u}},D8=function(t){return t.changedTouches&&!!t.changedTouches.length},uv=function(e){function t(n){var r;return YZe(this,t),r=QZe(this,t,[n]),Fa(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),Fa(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),Fa(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),Fa(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Fa(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Fa(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Fa(r,"handleSlideDragStart",function(o){var i=D8(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return eet(t,e),XZe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,d=Math.min(o,i),f=Math.max(o,i),p=t.getIndexInRange(a,d),m=t.getIndexInRange(a,f);return{startIndex:p-p%l,endIndex:m===u?u:m-m%l}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,l=Mr(i[r],s,r);return Ut(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,l=this.props,c=l.x,u=l.width,d=l.travellerWidth,f=l.startIndex,p=l.endIndex,m=l.onChange,g=r.pageX-i;g>0?g=Math.min(g,c+u-d-s,c+u-d-a):g<0&&(g=Math.max(g,c-a,c-s));var y=this.getIndex({startX:a+g,endX:s+g});(y.startIndex!==f||y.endIndex!==p)&&m&&m(y),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=D8(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,l=o.startX,c=this.state[a],u=this.props,d=u.x,f=u.width,p=u.travellerWidth,m=u.onChange,g=u.gap,y=u.data,b={startX:this.state.startX,endX:this.state.endX},x=r.pageX-i;x>0?x=Math.min(x,d+f-p-c):x<0&&(x=Math.max(x,d-c)),b[a]=c+x;var S=this.getIndex(b),P=S.startIndex,E=S.endIndex,T=function(){var k=y.length-1;return a==="startX"&&(s>l?P%g===0:E%g===0)||s<l&&E===k||a==="endX"&&(s>l?E%g===0:P%g===0)||s>l&&E===k};this.setState(Fa(Fa({},a,c+x),"brushMoveStartX",r.pageX),function(){m&&T()&&m(S)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,l=a.startX,c=a.endX,u=this.state[o],d=s.indexOf(u);if(d!==-1){var f=d+r;if(!(f===-1||f>=s.length)){var p=s[f];o==="startX"&&p>=c||o==="endX"&&p<=l||this.setState(Fa({},o,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.fill,c=r.stroke;return Y.createElement("rect",{stroke:c,fill:l,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.data,c=r.children,u=r.padding,d=v.Children.only(c);return d?Y.cloneElement(d,{x:o,y:i,width:a,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,l=this.props,c=l.y,u=l.travellerWidth,d=l.height,f=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,y=l.endIndex,b=Math.max(r,this.props.x),x=gR(gR({},$t(this.props,!1)),{},{x:b,y:c,width:u,height:d}),S=p||"Min value: ".concat((i=m[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=m[y])===null||a===void 0?void 0:a.name);return Y.createElement(on,{tabIndex:0,role:"slider","aria-label":S,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(E){["ArrowLeft","ArrowRight"].includes(E.key)&&(E.preventDefault(),E.stopPropagation(),s.handleTravellerMoveKeyboard(E.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,x))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,l=i.stroke,c=i.travellerWidth,u=Math.min(r,o)+c,d=Math.max(Math.abs(o-r)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,c=r.stroke,u=this.state,d=u.startX,f=u.endX,p=5,m={pointerEvents:"none",fill:c};return Y.createElement(on,{className:"recharts-brush-texts"},Y.createElement(Lh,UT({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-p,y:a+s/2},m),this.getTextOfTick(o)),Y.createElement(Lh,UT({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+l+p,y:a+s/2},m),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,l=r.y,c=r.width,u=r.height,d=r.alwaysShowText,f=this.state,p=f.startX,m=f.endX,g=f.isTextActive,y=f.isSlideMoving,b=f.isTravellerMoving,x=f.isTravellerFocused;if(!o||!o.length||!at(s)||!at(l)||!at(c)||!at(u)||c<=0||u<=0)return null;var S=pe("recharts-brush",i),P=Y.Children.count(a)===1,E=KZe("userSelect","none");return Y.createElement(on,{className:S,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(g||y||b||x||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,l=r.stroke,c=Math.floor(i+s/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:o,y:i,width:a,height:s,fill:l,stroke:"none"}),Y.createElement("line",{x1:o+1,y1:c,x2:o+a-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:o+1,y1:c+2,x2:o+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return Y.isValidElement(r)?i=Y.cloneElement(r,o):Ut(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,l=r.travellerWidth,c=r.updateId,u=r.startIndex,d=r.endIndex;if(i!==o.prevData||c!==o.prevUpdateId)return gR({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a},i&&i.length?net({data:i,width:a,x:s,travellerWidth:l,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([s,s+a-l]);var f=o.scale.domain().map(function(p){return o.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>o?s=l:a=l}return o>=r[s]?s:a}}])}(v.PureComponent);Fa(uv,"displayName","Brush");Fa(uv,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var ret=rB;function oet(e,t){var n;return ret(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}var iet=oet,aet=Hte,set=Jc,cet=iet,uet=Ta,det=gk;function fet(e,t,n){var r=uet(e)?aet:cet;return n&&det(e,t,n)&&(t=void 0),r(e,set(t))}var pet=fet;const het=jn(pet);var jc=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},_8=dne;function met(e,t,n){t=="__proto__"&&_8?_8(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var get=met,yet=get,vet=cne,bet=Jc;function wet(e,t){var n={};return t=bet(t),vet(e,function(r,o,i){yet(n,o,t(r,o,i))}),n}var xet=wet;const Cet=jn(xet);function Pet(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Eet=Pet,Tet=rB;function Oet(e,t){var n=!0;return Tet(e,function(r,o,i){return n=!!t(r,o,i),n}),n}var Iet=Oet,ket=Eet,Met=Iet,Aet=Jc,$et=Ta,Ret=gk;function Det(e,t,n){var r=$et(e)?ket:Met;return n&&Ret(e,t,n)&&(t=void 0),r(e,Aet(t))}var _et=Det;const Jre=jn(_et);var Let=["x","y"];function Wx(e){"@babel/helpers - typeof";return Wx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wx(e)}function aL(){return aL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aL.apply(this,arguments)}function L8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function O0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L8(Object(n),!0).forEach(function(r){Net(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Net(e,t,n){return t=Fet(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fet(e){var t=jet(e,"string");return Wx(t)=="symbol"?t:t+""}function jet(e,t){if(Wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bet(e,t){if(e==null)return{};var n=zet(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zet(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Vet(e,t){var n=e.x,r=e.y,o=Bet(e,Let),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),f=parseInt(d,10);return O0(O0(O0(O0(O0({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function N8(e){return Y.createElement(zT,aL({shapeType:"rectangle",propTransformer:Vet,activeClassName:"recharts-active-bar"},e))}var Het=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=typeof r=="number";return i?t(r,o):(i||Fh(),n)}},Uet=["value","background"],Zre;function dv(e){"@babel/helpers - typeof";return dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dv(e)}function Wet(e,t){if(e==null)return{};var n=Get(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Get(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function F8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F8(Object(n),!0).forEach(function(r){ff(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,toe(r.key),r)}}function Ket(e,t,n){return t&&j8(e.prototype,t),n&&j8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yet(e,t,n){return t=qT(t),Xet(e,eoe()?Reflect.construct(t,n||[],qT(e).constructor):t.apply(e,n))}function Xet(e,t){if(t&&(dv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qet(e)}function Qet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eoe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eoe=function(){return!!e})()}function qT(e){return qT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qT(e)}function Jet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sL(e,t)}function sL(e,t){return sL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sL(e,t)}function ff(e,t,n){return t=toe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function toe(e){var t=Zet(e,"string");return dv(t)=="symbol"?t:t+""}function Zet(e,t){if(dv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bc=function(e){function t(){var n;qet(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Yet(this,t,[].concat(o)),ff(n,"state",{isAnimationFinished:!1}),ff(n,"id",Jf("recharts-bar-")),ff(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),ff(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return Jet(t,e),Ket(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.dataKey,l=i.activeIndex,c=i.activeBar,u=$t(this.props,!1);return r&&r.map(function(d,f){var p=f===l,m=p?c:a,g=mo(mo(mo({},u),d),{},{isActive:p,option:m,index:f,dataKey:s,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return Y.createElement(on,GT({className:"recharts-bar-rectangle"},_f(o.props,d,f),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),Y.createElement(N8,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,i=o.data,a=o.layout,s=o.isAnimationActive,l=o.animationBegin,c=o.animationDuration,u=o.animationEasing,d=o.animationId,f=this.state.prevData;return Y.createElement(dl,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,g=i.map(function(y,b){var x=f&&f[b];if(x){var S=Hr(x.x,y.x),P=Hr(x.y,y.y),E=Hr(x.width,y.width),T=Hr(x.height,y.height);return mo(mo({},y),{},{x:S(m),y:P(m),width:E(m),height:T(m)})}if(a==="horizontal"){var O=Hr(0,y.height),k=O(m);return mo(mo({},y),{},{y:y.y+y.height-k,height:k})}var M=Hr(0,y.width),I=M(m);return mo(mo({},y),{},{width:I})});return Y.createElement(on,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,i=r.isAnimationActive,a=this.state.prevData;return i&&o&&o.length&&(!a||!Lf(a,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,i=o.data,a=o.dataKey,s=o.activeIndex,l=$t(this.props.background,!1);return i.map(function(c,u){c.value;var d=c.background,f=Wet(c,Uet);if(!d)return null;var p=mo(mo(mo(mo(mo({},f),{},{fill:"#eee"},d),l),_f(r.props,c,u)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:u,className:"recharts-bar-background-rectangle"});return Y.createElement(N8,GT({key:"background-bar-".concat(u),option:r.props.background,isActive:u===s},p))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.data,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,d=Yi(u,pb);if(!d)return null;var f=c==="vertical"?a[0].height/2:a[0].width/2,p=function(y,b){var x=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:x,errorVal:Mr(y,b)}},m={clipPath:r?"url(#clipPath-".concat(o,")"):null};return Y.createElement(on,m,d.map(function(g){return Y.cloneElement(g,{key:"error-bar-".concat(o,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.data,a=r.className,s=r.xAxis,l=r.yAxis,c=r.left,u=r.top,d=r.width,f=r.height,p=r.isAnimationActive,m=r.background,g=r.id;if(o||!i||!i.length)return null;var y=this.state.isAnimationFinished,b=pe("recharts-bar",a),x=s&&s.allowDataOverflow,S=l&&l.allowDataOverflow,P=x||S,E=zt(g)?this.id:g;return Y.createElement(on,{className:b},x||S?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(E)},Y.createElement("rect",{x:x?c:c-d/2,y:S?u:u-f/2,width:x?d:d*2,height:S?f:f*2}))):null,Y.createElement(on,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(E,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,E),(!p||y)&&ec.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])}(v.PureComponent);Zre=Bc;ff(Bc,"displayName","Bar");ff(Bc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!rl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ff(Bc,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=GKe(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,y=g!==void 0?mo(mo({},g),n.props):n.props,b=y.dataKey,x=y.children,S=y.minPointSize,P=m==="horizontal"?a:i,E=c?P.scale.domain():null,T=ZKe({numericAxis:P}),O=Yi(x,cb),k=d.map(function(M,I){var R,_,L,j,N,F;c?R=qKe(c[u+I],E):(R=Mr(M,b),Array.isArray(R)||(R=[T,R]));var U=Het(S,Zre.defaultProps.minPointSize)(R[1],I);if(m==="horizontal"){var z,V=[a.scale(R[0]),a.scale(R[1])],W=V[0],G=V[1];_=IG({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:M,index:I}),L=(z=G??W)!==null&&z!==void 0?z:void 0,j=p.size;var J=W-G;if(N=Number.isNaN(J)?0:J,F={x:_,y:a.y,width:j,height:a.height},Math.abs(U)>0&&Math.abs(N)<Math.abs(U)){var K=Hi(N||U)*(Math.abs(U)-Math.abs(N));L-=K,N+=K}}else{var ne=[i.scale(R[0]),i.scale(R[1])],re=ne[0],oe=ne[1];if(_=re,L=IG({axis:a,ticks:l,bandSize:o,offset:p.offset,entry:M,index:I}),j=oe-re,N=p.size,F={x:i.x,y:L,width:i.width,height:N},Math.abs(U)>0&&Math.abs(j)<Math.abs(U)){var fe=Hi(j||U)*(Math.abs(U)-Math.abs(j));j+=fe}}return mo(mo(mo({},M),{},{x:_,y:L,width:j,height:N,value:c?R:R[1],payload:M,background:F},O&&O[I]&&O[I].props),{},{tooltipPayload:[Tre(n,M)],tooltipPosition:{x:_+j/2,y:L+N/2}})});return mo({data:k,layout:m},f)});function Gx(e){"@babel/helpers - typeof";return Gx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gx(e)}function ett(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,noe(r.key),r)}}function ttt(e,t,n){return t&&B8(e.prototype,t),n&&B8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z8(Object(n),!0).forEach(function(r){Dk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dk(e,t,n){return t=noe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function noe(e){var t=ntt(e,"string");return Gx(t)=="symbol"?t:t+""}function ntt(e,t){if(Gx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _k=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},f=!!Va(c,Bc);return u.reduce(function(p,m){var g=n[m],y=g.orientation,b=g.domain,x=g.padding,S=x===void 0?{}:x,P=g.mirror,E=g.reversed,T="".concat(y).concat(P?"Mirror":""),O,k,M,I,R;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var _=b[1]-b[0],L=1/0,j=g.categoricalDomain.sort();if(j.forEach(function(ne,re){re>0&&(L=Math.min((ne||0)-(j[re-1]||0),L))}),Number.isFinite(L)){var N=L/_,F=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(O=N*F/2),g.padding==="no-gap"){var U=Ui(t.barCategoryGap,N*F),z=N*F/2;O=z-U-(z-U)/F*U}}}o==="xAxis"?k=[r.left+(S.left||0)+(O||0),r.left+r.width-(S.right||0)-(O||0)]:o==="yAxis"?k=l==="horizontal"?[r.top+r.height-(S.bottom||0),r.top+(S.top||0)]:[r.top+(S.top||0)+(O||0),r.top+r.height-(S.bottom||0)-(O||0)]:k=g.range,E&&(k=[k[1],k[0]]);var V=Sre(g,i,f),W=V.scale,G=V.realScaleType;W.domain(b).range(k),Cre(W);var J=Pre(W,Bl(Bl({},g),{},{realScaleType:G}));o==="xAxis"?(R=y==="top"&&!P||y==="bottom"&&P,M=r.left,I=d[T]-R*g.height):o==="yAxis"&&(R=y==="left"&&!P||y==="right"&&P,M=d[T]-R*g.width,I=r.top);var K=Bl(Bl(Bl({},g),J),{},{realScaleType:G,x:M,y:I,scale:W,width:o==="xAxis"?r.width:g.width,height:o==="yAxis"?r.height:g.height});return K.bandSize=MT(K,J),!g.hide&&o==="xAxis"?d[T]+=(R?-1:1)*K.height:g.hide||(d[T]+=(R?-1:1)*K.width),Bl(Bl({},p),{},Dk({},m,K))},{})},roe=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},rtt=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return roe({x:n,y:r},{x:o,y:i})},ooe=function(){function e(t){ett(this,e),this.scale=t}return ttt(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();Dk(ooe,"EPS",1e-4);var $B=function(t){var n=Object.keys(t).reduce(function(r,o){return Bl(Bl({},r),{},Dk({},o,ooe.create(t[o])))},{});return Bl(Bl({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return Cet(o,function(l,c){return n[c].apply(l,{bandAware:a,position:s})})},isInRange:function(o){return Jre(o,function(i,a){return n[a].isInRange(i)})}})};function ott(e){return(e%180+180)%180}var itt=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=ott(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},att=Jc,stt=GS,ltt=hk;function ctt(e){return function(t,n,r){var o=Object(t);if(!stt(t)){var i=att(n);t=ltt(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var utt=ctt,dtt=Kre;function ftt(e){var t=dtt(e),n=t%1;return t===t?n?t-n:t:0}var ptt=ftt,htt=rne,mtt=Jc,gtt=ptt,ytt=Math.max;function vtt(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:gtt(n);return o<0&&(o=ytt(r+o,0)),htt(e,mtt(t),o)}var btt=vtt,wtt=utt,xtt=btt,Stt=wtt(xtt),Ctt=Stt;const Ptt=jn(Ctt);var Ett=Rje(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),RB=v.createContext(void 0),DB=v.createContext(void 0),ioe=v.createContext(void 0),aoe=v.createContext({}),soe=v.createContext(void 0),loe=v.createContext(0),coe=v.createContext(0),V8=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,u=Ett(i);return Y.createElement(RB.Provider,{value:r},Y.createElement(DB.Provider,{value:o},Y.createElement(aoe.Provider,{value:i},Y.createElement(ioe.Provider,{value:u},Y.createElement(soe.Provider,{value:a},Y.createElement(loe.Provider,{value:c},Y.createElement(coe.Provider,{value:l},s)))))))},Ttt=function(){return v.useContext(soe)},uoe=function(t){var n=v.useContext(RB);n==null&&Fh();var r=n[t];return r==null&&Fh(),r},Ott=function(){var t=v.useContext(RB);return Kd(t)},Itt=function(){var t=v.useContext(DB),n=Ptt(t,function(r){return Jre(r.domain,Number.isFinite)});return n||Kd(t)},doe=function(t){var n=v.useContext(DB);n==null&&Fh();var r=n[t];return r==null&&Fh(),r},ktt=function(){var t=v.useContext(ioe);return t},Mtt=function(){return v.useContext(aoe)},_B=function(){return v.useContext(coe)},LB=function(){return v.useContext(loe)};function fv(e){"@babel/helpers - typeof";return fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fv(e)}function Att(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,poe(r.key),r)}}function Rtt(e,t,n){return t&&$tt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dtt(e,t,n){return t=KT(t),_tt(e,foe()?Reflect.construct(t,n||[],KT(e).constructor):t.apply(e,n))}function _tt(e,t){if(t&&(fv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ltt(e)}function Ltt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function foe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(foe=function(){return!!e})()}function KT(e){return KT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},KT(e)}function Ntt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lL(e,t)}function lL(e,t){return lL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lL(e,t)}function H8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(n),!0).forEach(function(r){NB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NB(e,t,n){return t=poe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function poe(e){var t=Ftt(e,"string");return fv(t)=="symbol"?t:t+""}function Ftt(e,t){if(fv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jtt(e,t){return Htt(e)||Vtt(e,t)||ztt(e,t)||Btt()}function Btt(){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 ztt(e,t){if(e){if(typeof e=="string")return W8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W8(e,t)}}function W8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vtt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Htt(e){if(Array.isArray(e))return e}function cL(){return cL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cL.apply(this,arguments)}var Utt=function(t,n){var r;return Y.isValidElement(t)?r=Y.cloneElement(t,n):Ut(t)?r=t(n):r=Y.createElement("line",cL({},n,{className:"recharts-reference-line-line"})),r},Wtt=function(t,n,r,o,i,a,s,l,c){var u=i.x,d=i.y,f=i.width,p=i.height;if(r){var m=c.y,g=t.y.apply(m,{position:a});if(jc(c,"discard")&&!t.y.isInRange(g))return null;var y=[{x:u+f,y:g},{x:u,y:g}];return l==="left"?y.reverse():y}if(n){var b=c.x,x=t.x.apply(b,{position:a});if(jc(c,"discard")&&!t.x.isInRange(x))return null;var S=[{x,y:d+p},{x,y:d}];return s==="top"?S.reverse():S}if(o){var P=c.segment,E=P.map(function(T){return t.apply(T,{position:a})});return jc(c,"discard")&&het(E,function(T){return!t.isInRange(T)})?null:E}return null};function Gtt(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,c=Ttt(),u=uoe(o),d=doe(i),f=ktt();if(!c||!f)return null;Zl(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=$B({x:u.scale,y:d.scale}),m=_o(t),g=_o(n),y=r&&r.length===2,b=Wtt(p,m,g,y,f,e.position,u.orientation,d.orientation,e);if(!b)return null;var x=jtt(b,2),S=x[0],P=S.x,E=S.y,T=x[1],O=T.x,k=T.y,M=jc(e,"hidden")?"url(#".concat(c,")"):void 0,I=U8(U8({clipPath:M},$t(e,!0)),{},{x1:P,y1:E,x2:O,y2:k});return Y.createElement(on,{className:pe("recharts-reference-line",s)},Utt(a,I),qo.renderCallByParent(e,rtt({x1:P,y1:E,x2:O,y2:k})))}var FB=function(e){function t(){return Att(this,t),Dtt(this,t,arguments)}return Ntt(t,e),Rtt(t,[{key:"render",value:function(){return Y.createElement(Gtt,this.props)}}])}(Y.Component);NB(FB,"displayName","ReferenceLine");NB(FB,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function uL(){return uL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uL.apply(this,arguments)}function pv(e){"@babel/helpers - typeof";return pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pv(e)}function G8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(n),!0).forEach(function(r){Lk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ktt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,moe(r.key),r)}}function Ytt(e,t,n){return t&&Ktt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xtt(e,t,n){return t=YT(t),Qtt(e,hoe()?Reflect.construct(t,n||[],YT(e).constructor):t.apply(e,n))}function Qtt(e,t){if(t&&(pv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jtt(e)}function Jtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hoe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hoe=function(){return!!e})()}function YT(e){return YT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},YT(e)}function Ztt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dL(e,t)}function dL(e,t){return dL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},dL(e,t)}function Lk(e,t,n){return t=moe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function moe(e){var t=ent(e,"string");return pv(t)=="symbol"?t:t+""}function ent(e,t){if(pv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tnt=function(t){var n=t.x,r=t.y,o=t.xAxis,i=t.yAxis,a=$B({x:o.scale,y:i.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return jc(t,"discard")&&!a.isInRange(s)?null:s},JS=function(e){function t(){return qtt(this,t),Xtt(this,t,arguments)}return Ztt(t,e),Ytt(t,[{key:"render",value:function(){var r=this.props,o=r.x,i=r.y,a=r.r,s=r.alwaysShow,l=r.clipPathId,c=_o(o),u=_o(i);if(Zl(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var d=tnt(this.props);if(!d)return null;var f=d.x,p=d.y,m=this.props,g=m.shape,y=m.className,b=jc(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=q8(q8({clipPath:b},$t(this.props,!0)),{},{cx:f,cy:p});return Y.createElement(on,{className:pe("recharts-reference-dot",y)},t.renderDot(g,x),qo.renderCallByParent(this.props,{x:f-a,y:p-a,width:2*a,height:2*a}))}}])}(Y.Component);Lk(JS,"displayName","ReferenceDot");Lk(JS,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Lk(JS,"renderDot",function(e,t){var n;return Y.isValidElement(e)?n=Y.cloneElement(e,t):Ut(e)?n=e(t):n=Y.createElement(QS,uL({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function fL(){return fL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fL.apply(this,arguments)}function hv(e){"@babel/helpers - typeof";return hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hv(e)}function K8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(n),!0).forEach(function(r){Nk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rnt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yoe(r.key),r)}}function ont(e,t,n){return t&&rnt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function int(e,t,n){return t=XT(t),ant(e,goe()?Reflect.construct(t,n||[],XT(e).constructor):t.apply(e,n))}function ant(e,t){if(t&&(hv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return snt(e)}function snt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function goe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(goe=function(){return!!e})()}function XT(e){return XT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},XT(e)}function lnt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pL(e,t)}function pL(e,t){return pL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pL(e,t)}function Nk(e,t,n){return t=yoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e){var t=cnt(e,"string");return hv(t)=="symbol"?t:t+""}function cnt(e,t){if(hv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var unt=function(t,n,r,o,i){var a=i.x1,s=i.x2,l=i.y1,c=i.y2,u=i.xAxis,d=i.yAxis;if(!u||!d)return null;var f=$B({x:u.scale,y:d.scale}),p={x:t?f.x.apply(a,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(l,{position:"start"}):f.y.rangeMin},m={x:n?f.x.apply(s,{position:"end"}):f.x.rangeMax,y:o?f.y.apply(c,{position:"end"}):f.y.rangeMax};return jc(i,"discard")&&(!f.isInRange(p)||!f.isInRange(m))?null:roe(p,m)},Fk=function(e){function t(){return nnt(this,t),int(this,t,arguments)}return lnt(t,e),ont(t,[{key:"render",value:function(){var r=this.props,o=r.x1,i=r.x2,a=r.y1,s=r.y2,l=r.className,c=r.alwaysShow,u=r.clipPathId;Zl(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=_o(o),f=_o(i),p=_o(a),m=_o(s),g=this.props.shape;if(!d&&!f&&!p&&!m&&!g)return null;var y=unt(d,f,p,m,this.props);if(!y&&!g)return null;var b=jc(this.props,"hidden")?"url(#".concat(u,")"):void 0;return Y.createElement(on,{className:pe("recharts-reference-area",l)},t.renderRect(g,Y8(Y8({clipPath:b},$t(this.props,!0)),y)),qo.renderCallByParent(this.props,y))}}])}(Y.Component);Nk(Fk,"displayName","ReferenceArea");Nk(Fk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Nk(Fk,"renderRect",function(e,t){var n;return Y.isValidElement(e)?n=Y.cloneElement(e,t):Ut(e)?n=e(t):n=Y.createElement(AB,fL({},t,{className:"recharts-reference-area-rect"})),n});function voe(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function dnt(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return itt(r,n)}function fnt(e,t,n){var r=n==="width",o=e.x,i=e.y,a=e.width,s=e.height;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function QT(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function pnt(e,t){return voe(e,t+1)}function hnt(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,l=0,c=1,u=a,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:voe(r,c)};var g=l,y,b=function(){return y===void 0&&(y=n(m,g)),y},x=m.coordinate,S=l===0||QT(e,x,b,u,s);S||(l=0,u=a,c+=1),S&&(u=x+e*(b()/2+o),l+=c)},f;c<=i.length;)if(f=d(),f)return f.v;return[]}function qx(e){"@babel/helpers - typeof";return qx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qx(e)}function X8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X8(Object(n),!0).forEach(function(r){mnt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mnt(e,t,n){return t=gnt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gnt(e){var t=ynt(e,"string");return qx(t)=="symbol"?t:t+""}function ynt(e,t){if(qx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vnt(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,l=t.end,c=function(f){var p=i[f],m,g=function(){return m===void 0&&(m=n(p,f)),m};if(f===a-1){var y=e*(p.coordinate+e*g()/2-l);i[f]=p=xi(xi({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else i[f]=p=xi(xi({},p),{},{tickCoord:p.coordinate});var b=QT(e,p.tickCoord,g,s,l);b&&(l=p.tickCoord-e*(g()/2+o),i[f]=xi(xi({},p),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}function bnt(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(i){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-c);a[s-1]=u=xi(xi({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate});var p=QT(e,u.tickCoord,function(){return d},l,c);p&&(c=u.tickCoord-e*(d/2+o),a[s-1]=xi(xi({},u),{},{isShow:!0}))}for(var m=i?s-1:s,g=function(x){var S=a[x],P,E=function(){return P===void 0&&(P=n(S,x)),P};if(x===0){var T=e*(S.coordinate-e*E()/2-l);a[x]=S=xi(xi({},S),{},{tickCoord:T<0?S.coordinate-T*e:S.coordinate})}else a[x]=S=xi(xi({},S),{},{tickCoord:S.coordinate});var O=QT(e,S.tickCoord,E,l,c);O&&(l=S.tickCoord+e*(E()/2+o),a[x]=xi(xi({},S),{},{isShow:!0}))},y=0;y<m;y++)g(y);return a}function jB(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(at(l)||rl.isSsr)return pnt(o,typeof l=="number"&&at(l)?l:0);var f=[],p=s==="top"||s==="bottom"?"width":"height",m=u&&p==="width"?Cw(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(S,P){var E=Ut(c)?c(S.value,P):S.value;return p==="width"?dnt(Cw(E,{fontSize:t,letterSpacing:n}),m,d):Cw(E,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?Hi(o[1].coordinate-o[0].coordinate):1,b=fnt(i,y,p);return l==="equidistantPreserveStart"?hnt(y,b,g,o,a):(l==="preserveStart"||l==="preserveStartEnd"?f=bnt(y,b,g,o,a,l==="preserveStartEnd"):f=vnt(y,b,g,o,a),f.filter(function(x){return x.isShow}))}var wnt=["viewBox"],xnt=["viewBox"],Snt=["ticks"];function mv(e){"@babel/helpers - typeof";return mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mv(e)}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jg.apply(this,arguments)}function Q8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q8(Object(n),!0).forEach(function(r){BB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yR(e,t){if(e==null)return{};var n=Cnt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cnt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,woe(r.key),r)}}function Ent(e,t,n){return t&&J8(e.prototype,t),n&&J8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tnt(e,t,n){return t=JT(t),Ont(e,boe()?Reflect.construct(t,n||[],JT(e).constructor):t.apply(e,n))}function Ont(e,t){if(t&&(mv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Int(e)}function Int(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function boe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(boe=function(){return!!e})()}function JT(e){return JT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},JT(e)}function knt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hL(e,t)}function hL(e,t){return hL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hL(e,t)}function BB(e,t,n){return t=woe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function woe(e){var t=Mnt(e,"string");return mv(t)=="symbol"?t:t+""}function Mnt(e,t){if(mv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mb=function(e){function t(n){var r;return Pnt(this,t),r=Tnt(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return knt(t,e),Ent(t,[{key:"shouldComponentUpdate",value:function(r,o){var i=r.viewBox,a=yR(r,wnt),s=this.props,l=s.viewBox,c=yR(s,xnt);return!sy(i,l)||!sy(a,c)||!sy(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,i=o.x,a=o.y,s=o.width,l=o.height,c=o.orientation,u=o.tickSize,d=o.mirror,f=o.tickMargin,p,m,g,y,b,x,S=d?-1:1,P=r.tickSize||u,E=at(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":p=m=r.coordinate,y=a+ +!d*l,g=y-S*P,x=g-S*f,b=E;break;case"left":g=y=r.coordinate,m=i+ +!d*s,p=m-S*P,b=p-S*f,x=E;break;case"right":g=y=r.coordinate,m=i+ +d*s,p=m+S*P,b=p+S*f,x=E;break;default:p=m=r.coordinate,y=a+ +d*l,g=y+S*P,x=g+S*f,b=E;break}return{line:{x1:p,y1:g,x2:m,y2:y},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a;switch(o){case"left":a=i?"start":"end";break;case"right":a=i?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a="end";switch(o){case"left":case"right":a="middle";break;case"top":a=i?"start":"end";break;default:a=i?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.orientation,c=r.mirror,u=r.axisLine,d=_i(_i(_i({},$t(this.props,!1)),$t(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var f=+(l==="top"&&!c||l==="bottom"&&c);d=_i(_i({},d),{},{x1:o,y1:i+f*s,x2:o+a,y2:i+f*s})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=_i(_i({},d),{},{x1:o+p*a,y1:i,x2:o+p*a,y2:i+s})}return Y.createElement("line",jg({},d,{className:pe("recharts-cartesian-axis-line",es(u,"className"))}))}},{key:"renderTicks",value:function(r,o,i){var a=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,d=s.tickFormatter,f=s.unit,p=jB(_i(_i({},this.props),{},{ticks:r}),o,i),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),y=$t(this.props,!1),b=$t(u,!1),x=_i(_i({},y),{},{fill:"none"},$t(l,!1)),S=p.map(function(P,E){var T=a.getTickLineCoord(P),O=T.line,k=T.tick,M=_i(_i(_i(_i({textAnchor:m,verticalAnchor:g},y),{},{stroke:"none",fill:c},b),k),{},{index:E,payload:P,visibleTicksCount:p.length,tickFormatter:d});return Y.createElement(on,jg({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},_f(a.props,P,E)),l&&Y.createElement("line",jg({},x,O,{className:pe("recharts-cartesian-axis-tick-line",es(l,"className"))})),u&&t.renderTickItem(u,M,"".concat(Ut(d)?d(P.value,E):P.value).concat(f||"")))});return Y.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{key:"render",value:function(){var r=this,o=this.props,i=o.axisLine,a=o.width,s=o.height,l=o.ticksGenerator,c=o.className,u=o.hide;if(u)return null;var d=this.props,f=d.ticks,p=yR(d,Snt),m=f;return Ut(l)&&(m=f&&f.length>0?l(this.props):l(p)),a<=0||s<=0||!m||!m.length?null:Y.createElement(on,{className:pe("recharts-cartesian-axis",c),ref:function(y){r.layerReference=y}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),qo.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Y.isValidElement(r)?a=Y.cloneElement(r,o):Ut(r)?a=r(o):a=Y.createElement(Lh,jg({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(v.Component);BB(mb,"displayName","CartesianAxis");BB(mb,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Ant=["x1","y1","x2","y2","key"],$nt=["offset"];function jh(e){"@babel/helpers - typeof";return jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(e)}function Z8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(n),!0).forEach(function(r){Rnt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rnt(e,t,n){return t=Dnt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dnt(e){var t=_nt(e,"string");return jh(t)=="symbol"?t:t+""}function _nt(e,t){if(jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eh(){return eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eh.apply(this,arguments)}function e9(e,t){if(e==null)return{};var n=Lnt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lnt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nnt=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,l=t.ry;return Y.createElement("rect",{x:o,y:i,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xoe(e,t){var n;if(Y.isValidElement(e))n=Y.cloneElement(e,t);else if(Ut(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,l=e9(t,Ant),c=$t(l,!1);c.offset;var u=e9(c,$nt);n=Y.createElement("line",eh({},u,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function Fnt(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=Ei(Ei({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return xoe(o,c)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function jnt(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=Ei(Ei({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return xoe(o,c)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Bnt(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(f){return Math.round(f+o-o)}).sort(function(f,p){return f-p});o!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var m=!u[p+1],g=m?o+a-f:u[p+1]-f;if(g<=0)return null;var y=p%t.length;return Y.createElement("rect",{key:"react-".concat(p),y:f,x:r,height:g,width:i,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function znt(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var u=c.map(function(f){return Math.round(f+i-i)}).sort(function(f,p){return f-p});i!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var m=!u[p+1],g=m?i+s-f:u[p+1]-f;if(g<=0)return null;var y=p%r.length;return Y.createElement("rect",{key:"react-".concat(p),x:f,y:a,width:g,height:l,stroke:"none",fill:r[y],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Vnt=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return xre(jB(Ei(Ei(Ei({},mb.defaultProps),r),{},{ticks:Ru(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},Hnt=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return xre(jB(Ei(Ei(Ei({},mb.defaultProps),r),{},{ticks:Ru(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},Qm={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function rm(e){var t,n,r,o,i,a,s=_B(),l=LB(),c=Mtt(),u=Ei(Ei({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Qm.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Qm.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Qm.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:Qm.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Qm.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Qm.verticalFill,x:at(e.x)?e.x:c.left,y:at(e.y)?e.y:c.top,width:at(e.width)?e.width:c.width,height:at(e.height)?e.height:c.height}),d=u.x,f=u.y,p=u.width,m=u.height,g=u.syncWithTicks,y=u.horizontalValues,b=u.verticalValues,x=Ott(),S=Itt();if(!at(p)||p<=0||!at(m)||m<=0||!at(d)||d!==+d||!at(f)||f!==+f)return null;var P=u.verticalCoordinatesGenerator||Vnt,E=u.horizontalCoordinatesGenerator||Hnt,T=u.horizontalPoints,O=u.verticalPoints;if((!T||!T.length)&&Ut(E)){var k=y&&y.length,M=E({yAxis:S?Ei(Ei({},S),{},{ticks:k?y:S.ticks}):void 0,width:s,height:l,offset:c},k?!0:g);Zl(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(jh(M),"]")),Array.isArray(M)&&(T=M)}if((!O||!O.length)&&Ut(P)){var I=b&&b.length,R=P({xAxis:x?Ei(Ei({},x),{},{ticks:I?b:x.ticks}):void 0,width:s,height:l,offset:c},I?!0:g);Zl(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(jh(R),"]")),Array.isArray(R)&&(O=R)}return Y.createElement("g",{className:"recharts-cartesian-grid"},Y.createElement(Nnt,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),Y.createElement(Fnt,eh({},u,{offset:c,horizontalPoints:T,xAxis:x,yAxis:S})),Y.createElement(jnt,eh({},u,{offset:c,verticalPoints:O,xAxis:x,yAxis:S})),Y.createElement(Bnt,eh({},u,{horizontalPoints:T})),Y.createElement(znt,eh({},u,{verticalPoints:O})))}rm.displayName="CartesianGrid";var Unt=["type","layout","connectNulls","ref"],Wnt=["key"];function gv(e){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gv(e)}function t9(e,t){if(e==null)return{};var n=Gnt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gnt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(this,arguments)}function n9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n9(Object(n),!0).forEach(function(r){zl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jm(e){return Xnt(e)||Ynt(e)||Knt(e)||qnt()}function qnt(){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 Knt(e,t){if(e){if(typeof e=="string")return mL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mL(e,t)}}function Ynt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xnt(e){if(Array.isArray(e))return mL(e)}function mL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Coe(r.key),r)}}function Jnt(e,t,n){return t&&r9(e.prototype,t),n&&r9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Znt(e,t,n){return t=ZT(t),ert(e,Soe()?Reflect.construct(t,n||[],ZT(e).constructor):t.apply(e,n))}function ert(e,t){if(t&&(gv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return trt(e)}function trt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Soe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Soe=function(){return!!e})()}function ZT(e){return ZT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ZT(e)}function nrt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gL(e,t)}function gL(e,t){return gL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gL(e,t)}function zl(e,t,n){return t=Coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e){var t=rrt(e,"string");return gv(t)=="symbol"?t:t+""}function rrt(e,t){if(gv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gb=function(e){function t(){var n;Qnt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Znt(this,t,[].concat(o)),zl(n,"state",{isAnimationFinished:!0,totalLength:0}),zl(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),zl(n,"getStrokeDasharray",function(a,s,l){var c=l.reduce(function(b,x){return b+x});if(!c)return n.generateSimpleStrokeDasharray(s,a);for(var u=Math.floor(a/c),d=a%c,f=s-a,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>d){p=[].concat(Jm(l.slice(0,m)),[d-g]);break}var y=p.length%2===0?[0,f]:[f];return[].concat(Jm(t.repeat(l,u)),Jm(p),y).map(function(b){return"".concat(b,"px")}).join(", ")}),zl(n,"id",Jf("recharts-line-")),zl(n,"pathRef",function(a){n.mainCurve=a}),zl(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),zl(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return nrt(t,e),Jnt(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,d=Yi(u,pb);if(!d)return null;var f=function(g,y){return{x:g.x,y:g.y,value:g.value,errorVal:Mr(g.payload,y)}},p={clipPath:r?"url(#clipPath-".concat(o,")"):null};return Y.createElement(on,p,d.map(function(m){return Y.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,dataPointFormatter:f})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,d=$t(this.props,!1),f=$t(l,!0),p=c.map(function(g,y){var b=La(La(La({key:"dot-".concat(y),r:3},d),f),{},{value:g.value,dataKey:u,cx:g.x,cy:g.y,index:y,payload:g.payload});return t.renderDotItem(l,b)}),m={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return Y.createElement(on,kw({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var d=t9(s,Unt),f=La(La(La({},$t(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:l,layout:c,connectNulls:u});return Y.createElement(Tf,kw({},f,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.strokeDasharray,c=a.isAnimationActive,u=a.animationBegin,d=a.animationDuration,f=a.animationEasing,p=a.animationId,m=a.animateNewValues,g=a.width,y=a.height,b=this.state,x=b.prevPoints,S=b.totalLength;return Y.createElement(dl,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var E=P.t;if(x){var T=x.length/s.length,O=s.map(function(_,L){var j=Math.floor(L*T);if(x[j]){var N=x[j],F=Hr(N.x,_.x),U=Hr(N.y,_.y);return La(La({},_),{},{x:F(E),y:U(E)})}if(m){var z=Hr(g*2,_.x),V=Hr(y/2,_.y);return La(La({},_),{},{x:z(E),y:V(E)})}return La(La({},_),{},{x:_.x,y:_.y})});return i.renderCurveStatically(O,r,o)}var k=Hr(0,S),M=k(E),I;if(l){var R="".concat(l).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});I=i.getStrokeDasharray(M,S,R)}else I=i.generateSimpleStrokeDasharray(S,M);return i.renderCurveStatically(s,r,o,{strokeDasharray:I})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&a&&a.length&&(!c&&u>0||!Lf(c,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.xAxis,u=o.yAxis,d=o.top,f=o.left,p=o.width,m=o.height,g=o.isAnimationActive,y=o.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,x=s.length===1,S=pe("recharts-line",l),P=c&&c.allowDataOverflow,E=u&&u.allowDataOverflow,T=P||E,O=zt(y)?this.id:y,k=(r=$t(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=k.r,I=M===void 0?3:M,R=k.strokeWidth,_=R===void 0?2:R,L=hte(a)?a:{},j=L.clipDot,N=j===void 0?!0:j,F=I*2+_;return Y.createElement(on,{className:S},P||E?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(O)},Y.createElement("rect",{x:P?f:f-p/2,y:E?d:d-m/2,width:P?p:p*2,height:E?m:m*2})),!N&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(O)},Y.createElement("rect",{x:f-F/2,y:d-F/2,width:p+F,height:m+F}))):null,!x&&this.renderCurve(T,O),this.renderErrorBar(T,O),(x||a)&&this.renderDots(T,N,O),(!g||b)&&ec.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(Jm(r),[0]):r,a=[],s=0;s<o;++s)a=[].concat(Jm(a),Jm(i));return a}},{key:"renderDotItem",value:function(r,o){var i;if(Y.isValidElement(r))i=Y.cloneElement(r,o);else if(Ut(r))i=r(o);else{var a=o.key,s=t9(o,Wnt),l=pe("recharts-line-dot",typeof r!="boolean"?r.className:"");i=Y.createElement(QS,kw({key:a},s,{className:l}))}return i}}])}(v.PureComponent);zl(gb,"displayName","Line");zl(gb,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!rl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});zl(gb,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(f,p){var m=Mr(f,a);return u==="horizontal"?{x:ov({axis:n,ticks:o,bandSize:s,entry:f,index:p}),y:zt(m)?null:r.scale(m),value:m,payload:f}:{x:zt(m)?null:n.scale(m),y:ov({axis:r,ticks:i,bandSize:s,entry:f,index:p}),value:m,payload:f}});return La({points:d,layout:u},c)});var ort=["layout","type","stroke","connectNulls","isRange","ref"],irt=["key"],Poe;function yv(e){"@babel/helpers - typeof";return yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(e)}function Eoe(e,t){if(e==null)return{};var n=art(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function art(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function th(){return th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},th.apply(this,arguments)}function o9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o9(Object(n),!0).forEach(function(r){$c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function srt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ooe(r.key),r)}}function lrt(e,t,n){return t&&i9(e.prototype,t),n&&i9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function crt(e,t,n){return t=eO(t),urt(e,Toe()?Reflect.construct(t,n||[],eO(e).constructor):t.apply(e,n))}function urt(e,t){if(t&&(yv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return drt(e)}function drt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Toe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Toe=function(){return!!e})()}function eO(e){return eO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eO(e)}function frt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yL(e,t)}function yL(e,t){return yL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},yL(e,t)}function $c(e,t,n){return t=Ooe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ooe(e){var t=prt(e,"string");return yv(t)=="symbol"?t:t+""}function prt(e,t){if(yv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rp=function(e){function t(){var n;srt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=crt(this,t,[].concat(o)),$c(n,"state",{isAnimationFinished:!0}),$c(n,"id",Jf("recharts-area-")),$c(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Ut(a)&&a()}),$c(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Ut(a)&&a()}),n}return frt(t,e),lrt(t,[{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,f=$t(this.props,!1),p=$t(c,!0),m=u.map(function(y,b){var x=Ld(Ld(Ld({key:"dot-".concat(b),r:3},f),p),{},{index:b,cx:y.x,cy:y.y,dataKey:d,value:y.value,payload:y.payload,points:u});return t.renderDotItem(c,x)}),g={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return Y.createElement(on,th({className:"recharts-area-dots"},g),m)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,i=o.baseLine,a=o.points,s=o.strokeWidth,l=a[0].x,c=a[a.length-1].x,u=r*Math.abs(l-c),d=df(a.map(function(f){return f.y||0}));return at(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(df(i.map(function(f){return f.y||0})),d)),at(d)?Y.createElement("rect",{x:l<c?l:l-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,i=o.baseLine,a=o.points,s=o.strokeWidth,l=a[0].y,c=a[a.length-1].y,u=r*Math.abs(l-c),d=df(a.map(function(f){return f.x||0}));return at(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(df(i.map(function(f){return f.x||0})),d)),at(d)?Y.createElement("rect",{x:0,y:l<c?l:l-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,i,a){var s=this.props,l=s.layout,c=s.type,u=s.stroke,d=s.connectNulls,f=s.isRange;s.ref;var p=Eoe(s,ort);return Y.createElement(on,{clipPath:i?"url(#clipPath-".concat(a,")"):null},Y.createElement(Tf,th({},$t(p,!0),{points:r,connectNulls:d,type:c,baseLine:o,layout:l,stroke:"none",className:"recharts-area-area"})),u!=="none"&&Y.createElement(Tf,th({},$t(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:r})),u!=="none"&&f&&Y.createElement(Tf,th({},$t(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.baseLine,c=a.isAnimationActive,u=a.animationBegin,d=a.animationDuration,f=a.animationEasing,p=a.animationId,m=this.state,g=m.prevPoints,y=m.prevBaseLine;return Y.createElement(dl,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(g){var S=g.length/s.length,P=s.map(function(k,M){var I=Math.floor(M*S);if(g[I]){var R=g[I],_=Hr(R.x,k.x),L=Hr(R.y,k.y);return Ld(Ld({},k),{},{x:_(x),y:L(x)})}return k}),E;if(at(l)&&typeof l=="number"){var T=Hr(y,l);E=T(x)}else if(zt(l)||ib(l)){var O=Hr(y,0);E=O(x)}else E=l.map(function(k,M){var I=Math.floor(M*S);if(y[I]){var R=y[I],_=Hr(R.x,k.x),L=Hr(R.y,k.y);return Ld(Ld({},k),{},{x:_(x),y:L(x)})}return k});return i.renderAreaStatically(P,E,r,o)}return Y.createElement(on,null,Y.createElement("defs",null,Y.createElement("clipPath",{id:"animationClipPath-".concat(o)},i.renderClipRect(x))),Y.createElement(on,{clipPath:"url(#animationClipPath-".concat(o,")")},i.renderAreaStatically(s,l,r,o)))})}},{key:"renderArea",value:function(r,o){var i=this.props,a=i.points,s=i.baseLine,l=i.isAnimationActive,c=this.state,u=c.prevPoints,d=c.prevBaseLine,f=c.totalLength;return l&&a&&a.length&&(!u&&f>0||!Lf(u,a)||!Lf(d,s))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(a,s,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.top,u=o.left,d=o.xAxis,f=o.yAxis,p=o.width,m=o.height,g=o.isAnimationActive,y=o.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,x=s.length===1,S=pe("recharts-area",l),P=d&&d.allowDataOverflow,E=f&&f.allowDataOverflow,T=P||E,O=zt(y)?this.id:y,k=(r=$t(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=k.r,I=M===void 0?3:M,R=k.strokeWidth,_=R===void 0?2:R,L=hte(a)?a:{},j=L.clipDot,N=j===void 0?!0:j,F=I*2+_;return Y.createElement(on,{className:S},P||E?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(O)},Y.createElement("rect",{x:P?u:u-p/2,y:E?c:c-m/2,width:P?p:p*2,height:E?m:m*2})),!N&&Y.createElement("clipPath",{id:"clipPath-dots-".concat(O)},Y.createElement("rect",{x:u-F/2,y:c-F/2,width:p+F,height:m+F}))):null,x?null:this.renderArea(T,O),(a||x)&&this.renderDots(T,N,O),(!g||b)&&ec.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(v.PureComponent);Poe=rp;$c(rp,"displayName","Area");$c(rp,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!rl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});$c(rp,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=a??i;if(at(s)&&typeof s=="number")return s;var l=o==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return s==="dataMin"?d:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});$c(rp,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=c&&c.length,g=Poe.getBaseValue(t,n,r,o),y=p==="horizontal",b=!1,x=d.map(function(P,E){var T;m?T=c[u+E]:(T=Mr(P,l),Array.isArray(T)?b=!0:T=[g,T]);var O=T[1]==null||m&&Mr(P,l)==null;return y?{x:ov({axis:r,ticks:i,bandSize:s,entry:P,index:E}),y:O?null:o.scale(T[1]),value:T,payload:P}:{x:O?null:r.scale(T[1]),y:ov({axis:o,ticks:a,bandSize:s,entry:P,index:E}),value:T,payload:P}}),S;return m||b?S=x.map(function(P){var E=Array.isArray(P.value)?P.value[0]:null;return y?{x:P.x,y:E!=null&&P.y!=null?o.scale(E):null}:{x:E!=null?r.scale(E):null,y:P.y}}):S=y?o.scale(g):r.scale(g),Ld({points:x,baseLine:S,layout:p,isRange:b},f)});$c(rp,"renderDotItem",function(e,t){var n;if(Y.isValidElement(e))n=Y.cloneElement(e,t);else if(Ut(e))n=e(t);else{var r=pe("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=Eoe(t,irt);n=Y.createElement(QS,th({},i,{key:o,className:r}))}return n});function vv(e){"@babel/helpers - typeof";return vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vv(e)}function hrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mrt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Moe(r.key),r)}}function grt(e,t,n){return t&&mrt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yrt(e,t,n){return t=tO(t),vrt(e,Ioe()?Reflect.construct(t,n||[],tO(e).constructor):t.apply(e,n))}function vrt(e,t){if(t&&(vv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return brt(e)}function brt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ioe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ioe=function(){return!!e})()}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tO(e)}function wrt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vL(e,t)}function vL(e,t){return vL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vL(e,t)}function koe(e,t,n){return t=Moe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Moe(e){var t=xrt(e,"string");return vv(t)=="symbol"?t:t+""}function xrt(e,t){if(vv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jk=function(e){function t(){return hrt(this,t),yrt(this,t,arguments)}return wrt(t,e),grt(t,[{key:"render",value:function(){return null}}])}(Y.Component);koe(jk,"displayName","ZAxis");koe(jk,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var Srt=["option","isActive"];function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(this,arguments)}function Crt(e,t){if(e==null)return{};var n=Prt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Prt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ert(e){var t=e.option,n=e.isActive,r=Crt(e,Srt);return typeof t=="string"?Y.createElement(zT,Mw({option:Y.createElement(pk,Mw({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(zT,Mw({option:t,isActive:n,shapeType:"symbols"},r))}function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bv(e)}function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aw.apply(this,arguments)}function a9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a9(Object(n),!0).forEach(function(r){pf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Trt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$oe(r.key),r)}}function Ort(e,t,n){return t&&s9(e.prototype,t),n&&s9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Irt(e,t,n){return t=nO(t),krt(e,Aoe()?Reflect.construct(t,n||[],nO(e).constructor):t.apply(e,n))}function krt(e,t){if(t&&(bv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mrt(e)}function Mrt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aoe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aoe=function(){return!!e})()}function nO(e){return nO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nO(e)}function Art(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bL(e,t)}function bL(e,t){return bL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bL(e,t)}function pf(e,t,n){return t=$oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e){var t=$rt(e,"string");return bv(t)=="symbol"?t:t+""}function $rt(e,t){if(bv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZS=function(e){function t(){var n;Trt(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Irt(this,t,[].concat(o)),pf(n,"state",{isAnimationFinished:!1}),pf(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),pf(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),pf(n,"id",Jf("recharts-scatter-")),n}return Art(t,e),Ort(t,[{key:"renderSymbolsStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.activeShape,l=i.activeIndex,c=$t(this.props,!1);return r.map(function(u,d){var f=l===d,p=f?s:a,m=Ds(Ds({},c),u);return Y.createElement(on,Aw({className:"recharts-scatter-symbol",key:"symbol-".concat(u==null?void 0:u.cx,"-").concat(u==null?void 0:u.cy,"-").concat(u==null?void 0:u.size,"-").concat(d)},_f(o.props,u,d),{role:"img"}),Y.createElement(Ert,Aw({option:p,isActive:f,key:"symbol-".concat(d)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,o=this.props,i=o.points,a=o.isAnimationActive,s=o.animationBegin,l=o.animationDuration,c=o.animationEasing,u=o.animationId,d=this.state.prevPoints;return Y.createElement(dl,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var p=f.t,m=i.map(function(g,y){var b=d&&d[y];if(b){var x=Hr(b.cx,g.cx),S=Hr(b.cy,g.cy),P=Hr(b.size,g.size);return Ds(Ds({},g),{},{cx:x(p),cy:S(p),size:P(p)})}var E=Hr(0,g.size);return Ds(Ds({},g),{},{size:E(p)})});return Y.createElement(on,null,r.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var r=this.props,o=r.points,i=r.isAnimationActive,a=this.state.prevPoints;return i&&o&&o.length&&(!a||!Lf(a,o))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(o)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.points,a=o.xAxis,s=o.yAxis,l=o.children,c=Yi(l,pb);return c?c.map(function(u,d){var f=u.props,p=f.direction,m=f.dataKey;return Y.cloneElement(u,{key:"".concat(p,"-").concat(m,"-").concat(i[d]),data:i,xAxis:a,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(y,b){return{x:y.cx,y:y.cy,value:p==="x"?+y.node.x:+y.node.y,errorVal:Mr(y,b)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,l=$t(this.props,!1),c=$t(i,!1),u,d;if(a==="joint")u=o.map(function(S){return{x:S.cx,y:S.cy}});else if(a==="fitting"){var f=ABe(o),p=f.xmin,m=f.xmax,g=f.a,y=f.b,b=function(P){return g*P+y};u=[{x:p,y:b(p)},{x:m,y:b(m)}]}var x=Ds(Ds(Ds({},l),{},{fill:"none",stroke:l&&l.fill},c),{},{points:u});return Y.isValidElement(i)?d=Y.cloneElement(i,x):Ut(i)?d=i(x):d=Y.createElement(Tf,Aw({},x,{type:s})),Y.createElement(on,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.points,a=r.line,s=r.className,l=r.xAxis,c=r.yAxis,u=r.left,d=r.top,f=r.width,p=r.height,m=r.id,g=r.isAnimationActive;if(o||!i||!i.length)return null;var y=this.state.isAnimationFinished,b=pe("recharts-scatter",s),x=l&&l.allowDataOverflow,S=c&&c.allowDataOverflow,P=x||S,E=zt(m)?this.id:m;return Y.createElement(on,{className:b,clipPath:P?"url(#clipPath-".concat(E,")"):null},x||S?Y.createElement("defs",null,Y.createElement("clipPath",{id:"clipPath-".concat(E)},Y.createElement("rect",{x:x?u:u-f/2,y:S?d:d-p/2,width:x?f:f*2,height:S?p:p*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Y.createElement(on,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||y)&&ec.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}}])}(v.PureComponent);pf(ZS,"displayName","Scatter");pf(ZS,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!rl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});pf(ZS,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,c=o.props.tooltipType,u=Yi(o.props.children,cb),d=zt(t.dataKey)?o.props.dataKey:t.dataKey,f=zt(n.dataKey)?o.props.dataKey:n.dataKey,p=r&&r.dataKey,m=r?r.range:jk.defaultProps.range,g=m&&m[0],y=t.scale.bandwidth?t.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0,x=i.map(function(S,P){var E=Mr(S,d),T=Mr(S,f),O=!zt(p)&&Mr(S,p)||"-",k=[{name:zt(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:S,dataKey:d,type:c},{name:zt(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:S,dataKey:f,type:c}];O!=="-"&&k.push({name:r.name||r.dataKey,unit:r.unit||"",value:O,payload:S,dataKey:p,type:c});var M=ov({axis:t,ticks:a,bandSize:y,entry:S,index:P,dataKey:d}),I=ov({axis:n,ticks:s,bandSize:b,entry:S,index:P,dataKey:f}),R=O!=="-"?r.scale(O):g,_=Math.sqrt(Math.max(R,0)/Math.PI);return Ds(Ds({},S),{},{cx:M,cy:I,x:M-_,y:I-_,xAxis:t,yAxis:n,zAxis:r,width:2*_,height:2*_,size:R,node:{x:E,y:T,z:O},tooltipPayload:k,tooltipPosition:{x:M,y:I},payload:S},u&&u[P]&&u[P].props)});return Ds({points:x},l)});function wv(e){"@babel/helpers - typeof";return wv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wv(e)}function Rrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Drt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_oe(r.key),r)}}function _rt(e,t,n){return t&&Drt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lrt(e,t,n){return t=rO(t),Nrt(e,Roe()?Reflect.construct(t,n||[],rO(e).constructor):t.apply(e,n))}function Nrt(e,t){if(t&&(wv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Frt(e)}function Frt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Roe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Roe=function(){return!!e})()}function rO(e){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rO(e)}function jrt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wL(e,t)}function wL(e,t){return wL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},wL(e,t)}function Doe(e,t,n){return t=_oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e){var t=Brt(e,"string");return wv(t)=="symbol"?t:t+""}function Brt(e,t){if(wv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xL(){return xL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xL.apply(this,arguments)}function zrt(e){var t=e.xAxisId,n=_B(),r=LB(),o=uoe(t);return o==null?null:Y.createElement(mb,xL({},o,{className:pe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Ru(a,!0)}}))}var gl=function(e){function t(){return Rrt(this,t),Lrt(this,t,arguments)}return jrt(t,e),_rt(t,[{key:"render",value:function(){return Y.createElement(zrt,this.props)}}])}(Y.Component);Doe(gl,"displayName","XAxis");Doe(gl,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function xv(e){"@babel/helpers - typeof";return xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xv(e)}function Vrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hrt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Foe(r.key),r)}}function Urt(e,t,n){return t&&Hrt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wrt(e,t,n){return t=oO(t),Grt(e,Loe()?Reflect.construct(t,n||[],oO(e).constructor):t.apply(e,n))}function Grt(e,t){if(t&&(xv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qrt(e)}function qrt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Loe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Loe=function(){return!!e})()}function oO(e){return oO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oO(e)}function Krt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SL(e,t)}function SL(e,t){return SL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},SL(e,t)}function Noe(e,t,n){return t=Foe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Foe(e){var t=Yrt(e,"string");return xv(t)=="symbol"?t:t+""}function Yrt(e,t){if(xv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CL(){return CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CL.apply(this,arguments)}var Xrt=function(t){var n=t.yAxisId,r=_B(),o=LB(),i=doe(n);return i==null?null:Y.createElement(mb,CL({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(s){return Ru(s,!0)}}))},yl=function(e){function t(){return Vrt(this,t),Wrt(this,t,arguments)}return Krt(t,e),Urt(t,[{key:"render",value:function(){return Y.createElement(Xrt,this.props)}}])}(Y.Component);Noe(yl,"displayName","YAxis");Noe(yl,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function l9(e){return eot(e)||Zrt(e)||Jrt(e)||Qrt()}function Qrt(){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 Jrt(e,t){if(e){if(typeof e=="string")return PL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PL(e,t)}}function Zrt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eot(e){if(Array.isArray(e))return PL(e)}function PL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EL=function(t,n,r,o,i){var a=Yi(t,FB),s=Yi(t,JS),l=[].concat(l9(a),l9(s)),c=Yi(t,Fk),u="".concat(o,"Id"),d=o[0],f=n;if(l.length&&(f=l.reduce(function(g,y){if(y.props[u]===r&&jc(y.props,"extendDomain")&&at(y.props[d])){var b=y.props[d];return[Math.min(g[0],b),Math.max(g[1],b)]}return g},f)),c.length){var p="".concat(d,"1"),m="".concat(d,"2");f=c.reduce(function(g,y){if(y.props[u]===r&&jc(y.props,"extendDomain")&&at(y.props[p])&&at(y.props[m])){var b=y.props[p],x=y.props[m];return[Math.min(g[0],b,x),Math.max(g[1],b,x)]}return g},f)}return i&&i.length&&(f=i.reduce(function(g,y){return at(y)?[Math.min(g[0],y),Math.max(g[1],y)]:g},f)),f},joe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new o(u,d||l,f),m=n?n+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,p,m){var g=n?n+c:c;if(!this._events[g])return!1;var y=this._events[g],b=arguments.length,x,S;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,p),!0;case 6:return y.fn.call(y.context,u,d,f,p,m),!0}for(S=1,x=new Array(b-1);S<b;S++)x[S-1]=arguments[S];y.fn.apply(y.context,x)}else{var P=y.length,E;for(S=0;S<P;S++)switch(y[S].once&&this.removeListener(c,y[S].fn,void 0,!0),b){case 1:y[S].fn.call(y[S].context);break;case 2:y[S].fn.call(y[S].context,u);break;case 3:y[S].fn.call(y[S].context,u,d);break;case 4:y[S].fn.call(y[S].context,u,d,f);break;default:if(!x)for(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];y[S].fn.apply(y[S].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var p=n?n+c:c;if(!this._events[p])return this;if(!u)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&a(this,p);else{for(var g=0,y=[],b=m.length;g<b;g++)(m[g].fn!==u||f&&!m[g].once||d&&m[g].context!==d)&&y.push(m[g]);y.length?this._events[p]=y.length===1?y[0]:y:a(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(joe);var tot=joe.exports;const not=jn(tot);var vR=new not,bR="recharts.syncMouseEvents";function Kx(e){"@babel/helpers - typeof";return Kx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kx(e)}function rot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Boe(r.key),r)}}function iot(e,t,n){return t&&oot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wR(e,t,n){return t=Boe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Boe(e){var t=aot(e,"string");return Kx(t)=="symbol"?t:t+""}function aot(e,t){if(Kx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sot=function(){function e(){rot(this,e),wR(this,"activeIndex",0),wR(this,"coordinateList",[]),wR(this,"layout","horizontal")}return iot(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,i=o===void 0?null:o,a=n.container,s=a===void 0?null:a,l=n.layout,c=l===void 0?null:l,u=n.offset,d=u===void 0?null:u,f=n.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),i=o.x,a=o.y,s=o.height,l=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,u=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+l+c,f=a+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:d,pageY:f})}}}])}();function lot(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&at(r)&&at(o))return!0}return!1}function cot(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function zoe(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle,a=Sr(t,n,r,o),s=Sr(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function uot(e,t,n){var r,o,i,a;if(e==="horizontal")r=t.x,i=r,o=n.top,a=n.top+n.height;else if(e==="vertical")o=t.y,a=o,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=Sr(s,l,c,d),p=Sr(s,l,u,d);r=f.x,o=f.y,i=p.x,a=p.y}else return zoe(t);return[{x:r,y:o},{x:i,y:a}]}function Yx(e){"@babel/helpers - typeof";return Yx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yx(e)}function c9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c9(Object(n),!0).forEach(function(r){dot(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dot(e,t,n){return t=fot(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fot(e){var t=pot(e,"string");return Yx(t)=="symbol"?t:t+""}function pot(e,t){if(Yx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hot(e){var t,n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,f=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!a||f!=="ScatterChart"&&o!=="axis")return null;var m,g=Tf;if(f==="ScatterChart")m=a,g=tJe;else if(f==="BarChart")m=cot(d,a,l,u),g=AB;else if(d==="radial"){var y=zoe(a),b=y.cx,x=y.cy,S=y.radius,P=y.startAngle,E=y.endAngle;m={cx:b,cy:x,startAngle:P,endAngle:E,innerRadius:S,outerRadius:S},g=$re}else m={points:uot(d,a,l)},g=Tf;var T=aP(aP(aP(aP({stroke:"#ccc",pointerEvents:"none"},l),m),$t(p,!1)),{},{payload:s,payloadIndex:c,className:pe("recharts-tooltip-cursor",p.className)});return v.isValidElement(p)?v.cloneElement(p,T):v.createElement(g,T)}var mot=["item"],got=["children","className","width","height","style","compact","title","desc"];function Sv(e){"@babel/helpers - typeof";return Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sv(e)}function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bg.apply(this,arguments)}function u9(e,t){return bot(e)||vot(e,t)||Hoe(e,t)||yot()}function yot(){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 vot(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function bot(e){if(Array.isArray(e))return e}function d9(e,t){if(e==null)return{};var n=wot(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wot(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uoe(r.key),r)}}function Cot(e,t,n){return t&&Sot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pot(e,t,n){return t=iO(t),Eot(e,Voe()?Reflect.construct(t,n||[],iO(e).constructor):t.apply(e,n))}function Eot(e,t){if(t&&(Sv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tot(e)}function Tot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Voe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Voe=function(){return!!e})()}function iO(e){return iO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iO(e)}function Oot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TL(e,t)}function TL(e,t){return TL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},TL(e,t)}function Cv(e){return Mot(e)||kot(e)||Hoe(e)||Iot()}function Iot(){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 Hoe(e,t){if(e){if(typeof e=="string")return OL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OL(e,t)}}function kot(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mot(e){if(Array.isArray(e))return OL(e)}function OL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f9(Object(n),!0).forEach(function(r){Wt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wt(e,t,n){return t=Uoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uoe(e){var t=Aot(e,"string");return Sv(t)=="symbol"?t:t+""}function Aot(e,t){if(Sv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ot={xAxis:["bottom","top"],yAxis:["left","right"]},Rot={width:"100%",height:"100%"},Woe={x:0,y:0};function sP(e){return e}var Dot=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},_ot=function(t,n,r,o){var i=n.find(function(u){return u&&u.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:i.coordinate};if(t==="centric"){var a=i.coordinate,s=o.radius;return je(je(je({},o),Sr(o.cx,o.cy,s,a)),{},{angle:a,radius:s})}var l=i.coordinate,c=o.angle;return je(je(je({},o),Sr(o.cx,o.cy,l,c)),{},{angle:c,radius:l})}return Woe},Bk=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,i=n.dataEndIndex,a=(r??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Cv(s),Cv(c)):s},[]);return a.length>0?a:t&&t.length&&at(o)&&at(i)?t.slice(o,i+1):[]};function Goe(e){return e==="number"?[0,"auto"]:void 0}var IL=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=Bk(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,c){var u,d=(u=c.props.data)!==null&&u!==void 0?u:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(a.dataKey&&!a.allowDuplicatedCategory){var p=d===void 0?s:d;f=nT(p,a.dataKey,o)}else f=d&&d[r]||s[r];return f?[].concat(Cv(l),[Tre(c,f)]):l},[])},p9=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=Dot(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=BKe(a,s,c,l);if(u>=0&&c){var d=c[u]&&c[u].value,f=IL(t,n,u,d),p=_ot(r,s,u,i);return{activeTooltipIndex:u,activeLabel:d,activePayload:f,activeCoordinate:p}}return null},Lot=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,d=t.children,f=t.stackOffset,p=wre(u,i);return r.reduce(function(m,g){var y,b=g.type.defaultProps!==void 0?je(je({},g.type.defaultProps),g.props):g.props,x=b.type,S=b.dataKey,P=b.allowDataOverflow,E=b.allowDuplicatedCategory,T=b.scale,O=b.ticks,k=b.includeHidden,M=b[a];if(m[M])return m;var I=Bk(t.data,{graphicalItems:o.filter(function(J){var K,ne=a in J.props?J.props[a]:(K=J.type.defaultProps)===null||K===void 0?void 0:K[a];return ne===M}),dataStartIndex:l,dataEndIndex:c}),R=I.length,_,L,j;lot(b.domain,P,x)&&(_=j_(b.domain,null,P),p&&(x==="number"||T!=="auto")&&(j=Ew(I,S,"category")));var N=Goe(x);if(!_||_.length===0){var F,U=(F=b.domain)!==null&&F!==void 0?F:N;if(S){if(_=Ew(I,S,x),x==="category"&&p){var z=MBe(_);E&&z?(L=_,_=HT(0,R)):E||(_=AG(U,_,g).reduce(function(J,K){return J.indexOf(K)>=0?J:[].concat(Cv(J),[K])},[]))}else if(x==="category")E?_=_.filter(function(J){return J!==""&&!zt(J)}):_=AG(U,_,g).reduce(function(J,K){return J.indexOf(K)>=0||K===""||zt(K)?J:[].concat(Cv(J),[K])},[]);else if(x==="number"){var V=WKe(I,o.filter(function(J){var K,ne,re=a in J.props?J.props[a]:(K=J.type.defaultProps)===null||K===void 0?void 0:K[a],oe="hide"in J.props?J.props.hide:(ne=J.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return re===M&&(k||!oe)}),S,i,u);V&&(_=V)}p&&(x==="number"||T!=="auto")&&(j=Ew(I,S,"category"))}else p?_=HT(0,R):s&&s[M]&&s[M].hasStack&&x==="number"?_=f==="expand"?[0,1]:Ere(s[M].stackGroups,l,c):_=bre(I,o.filter(function(J){var K=a in J.props?J.props[a]:J.type.defaultProps[a],ne="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return K===M&&(k||!ne)}),x,u,!0);if(x==="number")_=EL(d,_,M,i,O),U&&(_=j_(U,_,P));else if(x==="category"&&U){var W=U,G=_.every(function(J){return W.indexOf(J)>=0});G&&(_=W)}}return je(je({},m),{},Wt({},M,je(je({},b),{},{axisType:i,domain:_,categoricalDomain:j,duplicateDomain:L,originalDomain:(y=b.domain)!==null&&y!==void 0?y:N,isCategorical:p,layout:u})))},{})},Not=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,d=t.children,f=Bk(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),p=f.length,m=wre(u,i),g=-1;return r.reduce(function(y,b){var x=b.type.defaultProps!==void 0?je(je({},b.type.defaultProps),b.props):b.props,S=x[a],P=Goe("number");if(!y[S]){g++;var E;return m?E=HT(0,p):s&&s[S]&&s[S].hasStack?(E=Ere(s[S].stackGroups,l,c),E=EL(d,E,S,i)):(E=j_(P,bre(f,r.filter(function(T){var O,k,M=a in T.props?T.props[a]:(O=T.type.defaultProps)===null||O===void 0?void 0:O[a],I="hide"in T.props?T.props.hide:(k=T.type.defaultProps)===null||k===void 0?void 0:k.hide;return M===S&&!I}),"number",u),o.defaultProps.allowDataOverflow),E=EL(d,E,S,i)),je(je({},y),{},Wt({},S,je(je({axisType:i},o.defaultProps),{},{hide:!0,orientation:es($ot,"".concat(i,".").concat(g%2),null),domain:E,originalDomain:P,isCategorical:m,layout:u})))}return y},{})},Fot=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.children,d="".concat(o,"Id"),f=Yi(u,i),p={};return f&&f.length?p=Lot(t,{axes:f,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):a&&a.length&&(p=Not(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),p},jot=function(t){var n=Kd(t),r=Ru(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:oB(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:MT(n,r)}},h9=function(t){var n=t.children,r=t.defaultShowTooltip,o=Va(n,uv),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},Bot=function(t){return!t||!t.length?!1:t.some(function(n){var r=Lu(n&&n.type);return r&&r.indexOf("Bar")>=0})},m9=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},zot=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,u=r.height,d=r.children,f=r.margin||{},p=Va(d,uv),m=Va(d,Nu),g=Object.keys(l).reduce(function(E,T){var O=l[T],k=O.orientation;return!O.mirror&&!O.hide?je(je({},E),{},Wt({},k,E[k]+O.width)):E},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(E,T){var O=a[T],k=O.orientation;return!O.mirror&&!O.hide?je(je({},E),{},Wt({},k,es(E,"".concat(k))+O.height)):E},{top:f.top||0,bottom:f.bottom||0}),b=je(je({},y),g),x=b.bottom;p&&(b.bottom+=p.props.height||uv.defaultProps.height),m&&n&&(b=HKe(b,o,r,n));var S=c-b.left-b.right,P=u-b.top-b.bottom;return je(je({brushBottom:x},b),{},{width:Math.max(S,0),height:Math.max(P,0)})},Vot=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},e1=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,f=function(b,x){var S=x.graphicalItems,P=x.stackGroups,E=x.offset,T=x.updateId,O=x.dataStartIndex,k=x.dataEndIndex,M=b.barSize,I=b.layout,R=b.barGap,_=b.barCategoryGap,L=b.maxBarSize,j=m9(I),N=j.numericAxisName,F=j.cateAxisName,U=Bot(S),z=[];return S.forEach(function(V,W){var G=Bk(b.data,{graphicalItems:[V],dataStartIndex:O,dataEndIndex:k}),J=V.type.defaultProps!==void 0?je(je({},V.type.defaultProps),V.props):V.props,K=J.dataKey,ne=J.maxBarSize,re=J["".concat(N,"Id")],oe=J["".concat(F,"Id")],fe={},se=l.reduce(function(Le,de){var $e=x["".concat(de.axisType,"Map")],ke=J["".concat(de.axisType,"Id")];$e&&$e[ke]||de.axisType==="zAxis"||Fh();var Me=$e[ke];return je(je({},Le),{},Wt(Wt({},de.axisType,Me),"".concat(de.axisType,"Ticks"),Ru(Me)))},fe),ee=se[F],ce=se["".concat(F,"Ticks")],le=P&&P[re]&&P[re].hasStack&&eYe(V,P[re].stackGroups),Q=Lu(V.type).indexOf("Bar")>=0,ue=MT(ee,ce),ge=[],xe=U&&zKe({barSize:M,stackGroups:P,totalSize:Vot(se,F)});if(Q){var me,be,we=zt(ne)?L:ne,Te=(me=(be=MT(ee,ce,!0))!==null&&be!==void 0?be:we)!==null&&me!==void 0?me:0;ge=VKe({barGap:R,barCategoryGap:_,bandSize:Te!==ue?Te:ue,sizeList:xe[oe],maxBarSize:we}),Te!==ue&&(ge=ge.map(function(Le){return je(je({},Le),{},{position:je(je({},Le.position),{},{offset:Le.position.offset-Te/2})})}))}var Ie=V&&V.type&&V.type.getComposedData;Ie&&z.push({props:je(je({},Ie(je(je({},se),{},{displayedData:G,props:b,dataKey:K,item:V,bandSize:ue,barPosition:ge,offset:E,stackedData:le,layout:I,dataStartIndex:O,dataEndIndex:k}))),{},Wt(Wt(Wt({key:V.key||"item-".concat(W)},N,se[N]),F,se[F]),"animationId",T)),childIndex:VBe(V,b.children),item:V})}),z},p=function(b,x){var S=b.props,P=b.dataStartIndex,E=b.dataEndIndex,T=b.updateId;if(!EW({props:S}))return null;var O=S.children,k=S.layout,M=S.stackOffset,I=S.data,R=S.reverseStackOrder,_=m9(k),L=_.numericAxisName,j=_.cateAxisName,N=Yi(O,r),F=JKe(I,N,"".concat(L,"Id"),"".concat(j,"Id"),M,R),U=l.reduce(function(J,K){var ne="".concat(K.axisType,"Map");return je(je({},J),{},Wt({},ne,Fot(S,je(je({},K),{},{graphicalItems:N,stackGroups:K.axisType===L&&F,dataStartIndex:P,dataEndIndex:E}))))},{}),z=zot(je(je({},U),{},{props:S,graphicalItems:N}),x==null?void 0:x.legendBBox);Object.keys(U).forEach(function(J){U[J]=u(S,U[J],z,J.replace("Map",""),n)});var V=U["".concat(j,"Map")],W=jot(V),G=f(S,je(je({},U),{},{dataStartIndex:P,dataEndIndex:E,updateId:T,graphicalItems:N,stackGroups:F,offset:z}));return je(je({formattedGraphicalItems:G,graphicalItems:N,offset:z,stackGroups:F},W),U)},m=function(y){function b(x){var S,P,E;return xot(this,b),E=Pot(this,b,[x]),Wt(E,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Wt(E,"accessibilityManager",new sot),Wt(E,"handleLegendBBoxUpdate",function(T){if(T){var O=E.state,k=O.dataStartIndex,M=O.dataEndIndex,I=O.updateId;E.setState(je({legendBBox:T},p({props:E.props,dataStartIndex:k,dataEndIndex:M,updateId:I},je(je({},E.state),{},{legendBBox:T}))))}}),Wt(E,"handleReceiveSyncEvent",function(T,O,k){if(E.props.syncId===T){if(k===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(O)}}),Wt(E,"handleBrushChange",function(T){var O=T.startIndex,k=T.endIndex;if(O!==E.state.dataStartIndex||k!==E.state.dataEndIndex){var M=E.state.updateId;E.setState(function(){return je({dataStartIndex:O,dataEndIndex:k},p({props:E.props,dataStartIndex:O,dataEndIndex:k,updateId:M},E.state))}),E.triggerSyncEvent({dataStartIndex:O,dataEndIndex:k})}}),Wt(E,"handleMouseEnter",function(T){var O=E.getMouseInfo(T);if(O){var k=je(je({},O),{},{isTooltipActive:!0});E.setState(k),E.triggerSyncEvent(k);var M=E.props.onMouseEnter;Ut(M)&&M(k,T)}}),Wt(E,"triggeredAfterMouseMove",function(T){var O=E.getMouseInfo(T),k=O?je(je({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(k),E.triggerSyncEvent(k);var M=E.props.onMouseMove;Ut(M)&&M(k,T)}),Wt(E,"handleItemMouseEnter",function(T){E.setState(function(){return{isTooltipActive:!0,activeItem:T,activePayload:T.tooltipPayload,activeCoordinate:T.tooltipPosition||{x:T.cx,y:T.cy}}})}),Wt(E,"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Wt(E,"handleMouseMove",function(T){T.persist(),E.throttleTriggeredAfterMouseMove(T)}),Wt(E,"handleMouseLeave",function(T){E.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};E.setState(O),E.triggerSyncEvent(O);var k=E.props.onMouseLeave;Ut(k)&&k(O,T)}),Wt(E,"handleOuterEvent",function(T){var O=zBe(T),k=es(E.props,"".concat(O));if(O&&Ut(k)){var M,I;/.*touch.*/i.test(O)?I=E.getMouseInfo(T.changedTouches[0]):I=E.getMouseInfo(T),k((M=I)!==null&&M!==void 0?M:{},T)}}),Wt(E,"handleClick",function(T){var O=E.getMouseInfo(T);if(O){var k=je(je({},O),{},{isTooltipActive:!0});E.setState(k),E.triggerSyncEvent(k);var M=E.props.onClick;Ut(M)&&M(k,T)}}),Wt(E,"handleMouseDown",function(T){var O=E.props.onMouseDown;if(Ut(O)){var k=E.getMouseInfo(T);O(k,T)}}),Wt(E,"handleMouseUp",function(T){var O=E.props.onMouseUp;if(Ut(O)){var k=E.getMouseInfo(T);O(k,T)}}),Wt(E,"handleTouchMove",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(T.changedTouches[0])}),Wt(E,"handleTouchStart",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseDown(T.changedTouches[0])}),Wt(E,"handleTouchEnd",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseUp(T.changedTouches[0])}),Wt(E,"triggerSyncEvent",function(T){E.props.syncId!==void 0&&vR.emit(bR,E.props.syncId,T,E.eventEmitterSymbol)}),Wt(E,"applySyncEvent",function(T){var O=E.props,k=O.layout,M=O.syncMethod,I=E.state.updateId,R=T.dataStartIndex,_=T.dataEndIndex;if(T.dataStartIndex!==void 0||T.dataEndIndex!==void 0)E.setState(je({dataStartIndex:R,dataEndIndex:_},p({props:E.props,dataStartIndex:R,dataEndIndex:_,updateId:I},E.state)));else if(T.activeTooltipIndex!==void 0){var L=T.chartX,j=T.chartY,N=T.activeTooltipIndex,F=E.state,U=F.offset,z=F.tooltipTicks;if(!U)return;if(typeof M=="function")N=M(z,T);else if(M==="value"){N=-1;for(var V=0;V<z.length;V++)if(z[V].value===T.activeLabel){N=V;break}}var W=je(je({},U),{},{x:U.left,y:U.top}),G=Math.min(L,W.x+W.width),J=Math.min(j,W.y+W.height),K=z[N]&&z[N].value,ne=IL(E.state,E.props.data,N),re=z[N]?{x:k==="horizontal"?z[N].coordinate:G,y:k==="horizontal"?J:z[N].coordinate}:Woe;E.setState(je(je({},T),{},{activeLabel:K,activeCoordinate:re,activePayload:ne,activeTooltipIndex:N}))}else E.setState(T)}),Wt(E,"renderCursor",function(T){var O,k=E.state,M=k.isTooltipActive,I=k.activeCoordinate,R=k.activePayload,_=k.offset,L=k.activeTooltipIndex,j=k.tooltipAxisBandSize,N=E.getTooltipEventType(),F=(O=T.props.active)!==null&&O!==void 0?O:M,U=E.props.layout,z=T.key||"_recharts-cursor";return Y.createElement(hot,{key:z,activeCoordinate:I,activePayload:R,activeTooltipIndex:L,chartName:n,element:T,isActive:F,layout:U,offset:_,tooltipAxisBandSize:j,tooltipEventType:N})}),Wt(E,"renderPolarAxis",function(T,O,k){var M=es(T,"type.axisType"),I=es(E.state,"".concat(M,"Map")),R=T.type.defaultProps,_=R!==void 0?je(je({},R),T.props):T.props,L=I&&I[_["".concat(M,"Id")]];return v.cloneElement(T,je(je({},L),{},{className:pe(M,L.className),key:T.key||"".concat(O,"-").concat(k),ticks:Ru(L,!0)}))}),Wt(E,"renderPolarGrid",function(T){var O=T.props,k=O.radialLines,M=O.polarAngles,I=O.polarRadius,R=E.state,_=R.radiusAxisMap,L=R.angleAxisMap,j=Kd(_),N=Kd(L),F=N.cx,U=N.cy,z=N.innerRadius,V=N.outerRadius;return v.cloneElement(T,{polarAngles:Array.isArray(M)?M:Ru(N,!0).map(function(W){return W.coordinate}),polarRadius:Array.isArray(I)?I:Ru(j,!0).map(function(W){return W.coordinate}),cx:F,cy:U,innerRadius:z,outerRadius:V,key:T.key||"polar-grid",radialLines:k})}),Wt(E,"renderLegend",function(){var T=E.state.formattedGraphicalItems,O=E.props,k=O.children,M=O.width,I=O.height,R=E.props.margin||{},_=M-(R.left||0)-(R.right||0),L=yre({children:k,formattedGraphicalItems:T,legendWidth:_,legendContent:c});if(!L)return null;var j=L.item,N=d9(L,mot);return v.cloneElement(j,je(je({},N),{},{chartWidth:M,chartHeight:I,margin:R,onBBoxUpdate:E.handleLegendBBoxUpdate}))}),Wt(E,"renderTooltip",function(){var T,O=E.props,k=O.children,M=O.accessibilityLayer,I=Va(k,Wa);if(!I)return null;var R=E.state,_=R.isTooltipActive,L=R.activeCoordinate,j=R.activePayload,N=R.activeLabel,F=R.offset,U=(T=I.props.active)!==null&&T!==void 0?T:_;return v.cloneElement(I,{viewBox:je(je({},F),{},{x:F.left,y:F.top}),active:U,label:N,payload:U?j:[],coordinate:L,accessibilityLayer:M})}),Wt(E,"renderBrush",function(T){var O=E.props,k=O.margin,M=O.data,I=E.state,R=I.offset,_=I.dataStartIndex,L=I.dataEndIndex,j=I.updateId;return v.cloneElement(T,{key:T.key||"_recharts-brush",onChange:nP(E.handleBrushChange,T.props.onChange),data:M,x:at(T.props.x)?T.props.x:R.left,y:at(T.props.y)?T.props.y:R.top+R.height+R.brushBottom-(k.bottom||0),width:at(T.props.width)?T.props.width:R.width,startIndex:_,endIndex:L,updateId:"brush-".concat(j)})}),Wt(E,"renderReferenceElement",function(T,O,k){if(!T)return null;var M=E,I=M.clipPathId,R=E.state,_=R.xAxisMap,L=R.yAxisMap,j=R.offset,N=T.type.defaultProps||{},F=T.props,U=F.xAxisId,z=U===void 0?N.xAxisId:U,V=F.yAxisId,W=V===void 0?N.yAxisId:V;return v.cloneElement(T,{key:T.key||"".concat(O,"-").concat(k),xAxis:_[z],yAxis:L[W],viewBox:{x:j.left,y:j.top,width:j.width,height:j.height},clipPathId:I})}),Wt(E,"renderActivePoints",function(T){var O=T.item,k=T.activePoint,M=T.basePoint,I=T.childIndex,R=T.isRange,_=[],L=O.props.key,j=O.item.type.defaultProps!==void 0?je(je({},O.item.type.defaultProps),O.item.props):O.item.props,N=j.activeDot,F=j.dataKey,U=je(je({index:I,dataKey:F,cx:k.x,cy:k.y,r:4,fill:MB(O.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},$t(N,!1)),rT(N));return _.push(b.renderActiveDot(N,U,"".concat(L,"-activePoint-").concat(I))),M?_.push(b.renderActiveDot(N,je(je({},U),{},{cx:M.x,cy:M.y}),"".concat(L,"-basePoint-").concat(I))):R&&_.push(null),_}),Wt(E,"renderGraphicChild",function(T,O,k){var M=E.filterFormatItem(T,O,k);if(!M)return null;var I=E.getTooltipEventType(),R=E.state,_=R.isTooltipActive,L=R.tooltipAxis,j=R.activeTooltipIndex,N=R.activeLabel,F=E.props.children,U=Va(F,Wa),z=M.props,V=z.points,W=z.isRange,G=z.baseLine,J=M.item.type.defaultProps!==void 0?je(je({},M.item.type.defaultProps),M.item.props):M.item.props,K=J.activeDot,ne=J.hide,re=J.activeBar,oe=J.activeShape,fe=!!(!ne&&_&&U&&(K||re||oe)),se={};I!=="axis"&&U&&U.props.trigger==="click"?se={onClick:nP(E.handleItemMouseEnter,T.props.onClick)}:I!=="axis"&&(se={onMouseLeave:nP(E.handleItemMouseLeave,T.props.onMouseLeave),onMouseEnter:nP(E.handleItemMouseEnter,T.props.onMouseEnter)});var ee=v.cloneElement(T,je(je({},M.props),se));function ce(de){return typeof L.dataKey=="function"?L.dataKey(de.payload):null}if(fe)if(j>=0){var le,Q;if(L.dataKey&&!L.allowDuplicatedCategory){var ue=typeof L.dataKey=="function"?ce:"payload.".concat(L.dataKey.toString());le=nT(V,ue,N),Q=W&&G&&nT(G,ue,N)}else le=V==null?void 0:V[j],Q=W&&G&&G[j];if(oe||re){var ge=T.props.activeIndex!==void 0?T.props.activeIndex:j;return[v.cloneElement(T,je(je(je({},M.props),se),{},{activeIndex:ge})),null,null]}if(!zt(le))return[ee].concat(Cv(E.renderActivePoints({item:M,activePoint:le,basePoint:Q,childIndex:j,isRange:W})))}else{var xe,me=(xe=E.getItemByXY(E.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ee},be=me.graphicalItem,we=be.item,Te=we===void 0?T:we,Ie=be.childIndex,Le=je(je(je({},M.props),se),{},{activeIndex:Ie});return[v.cloneElement(Te,Le),null,null]}return W?[ee,null,null]:[ee,null]}),Wt(E,"renderCustomized",function(T,O,k){return v.cloneElement(T,je(je({key:"recharts-customized-".concat(k)},E.props),E.state))}),Wt(E,"renderMap",{CartesianGrid:{handler:sP,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:sP},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:sP},YAxis:{handler:sP},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((S=x.id)!==null&&S!==void 0?S:Jf("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=yk(E.triggeredAfterMouseMove,(P=x.throttleDelay)!==null&&P!==void 0?P:1e3/60),E.state={},E}return Oot(b,y),Cot(b,[{key:"componentDidMount",value:function(){var S,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var S=this.props,P=S.children,E=S.data,T=S.height,O=S.layout,k=Va(P,Wa);if(k){var M=k.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,R=IL(this.state,E,M,I),_=this.state.tooltipTicks[M].coordinate,L=(this.state.offset.top+T)/2,j=O==="horizontal",N=j?{x:_,y:L}:{y:_,x:L},F=this.state.formattedGraphicalItems.find(function(z){var V=z.item;return V.type.name==="Scatter"});F&&(N=je(je({},N),F.props.points[M].tooltipPosition),R=F.props.points[M].tooltipPayload);var U={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:I,activePayload:R,activeCoordinate:N};this.setState(U),this.renderCursor(k),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(S,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==S.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==S.margin){var E,T;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0}})}return null}},{key:"componentDidUpdate",value:function(S){e_([Va(S.children,Wa)],[Va(this.props.children,Wa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var S=Va(this.props.children,Wa);if(S&&typeof S.props.shared=="boolean"){var P=S.props.shared?"axis":"item";return s.indexOf(P)>=0?P:i}return i}},{key:"getMouseInfo",value:function(S){if(!this.container)return null;var P=this.container,E=P.getBoundingClientRect(),T=h8e(E),O={chartX:Math.round(S.pageX-T.left),chartY:Math.round(S.pageY-T.top)},k=E.width/P.offsetWidth||1,M=this.inRange(O.chartX,O.chartY,k);if(!M)return null;var I=this.state,R=I.xAxisMap,_=I.yAxisMap,L=this.getTooltipEventType();if(L!=="axis"&&R&&_){var j=Kd(R).scale,N=Kd(_).scale,F=j&&j.invert?j.invert(O.chartX):null,U=N&&N.invert?N.invert(O.chartY):null;return je(je({},O),{},{xValue:F,yValue:U})}var z=p9(this.state,this.props.data,this.props.layout,M);return z?je(je({},O),z):null}},{key:"inRange",value:function(S,P){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,T=this.props.layout,O=S/E,k=P/E;if(T==="horizontal"||T==="vertical"){var M=this.state.offset,I=O>=M.left&&O<=M.left+M.width&&k>=M.top&&k<=M.top+M.height;return I?{x:O,y:k}:null}var R=this.state,_=R.angleAxisMap,L=R.radiusAxisMap;if(_&&L){var j=Kd(_);return DG({x:O,y:k},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var S=this.props.children,P=this.getTooltipEventType(),E=Va(S,Wa),T={};E&&P==="axis"&&(E.props.trigger==="click"?T={onClick:this.handleClick}:T={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=rT(this.props,this.handleOuterEvent);return je(je({},O),T)}},{key:"addListener",value:function(){vR.on(bR,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){vR.removeListener(bR,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(S,P,E){for(var T=this.state.formattedGraphicalItems,O=0,k=T.length;O<k;O++){var M=T[O];if(M.item===S||M.props.key===S.key||P===Lu(M.item.type)&&E===M.childIndex)return M}return null}},{key:"renderClipPath",value:function(){var S=this.clipPathId,P=this.state.offset,E=P.left,T=P.top,O=P.height,k=P.width;return Y.createElement("defs",null,Y.createElement("clipPath",{id:S},Y.createElement("rect",{x:E,y:T,height:O,width:k})))}},{key:"getXScales",value:function(){var S=this.state.xAxisMap;return S?Object.entries(S).reduce(function(P,E){var T=u9(E,2),O=T[0],k=T[1];return je(je({},P),{},Wt({},O,k.scale))},{}):null}},{key:"getYScales",value:function(){var S=this.state.yAxisMap;return S?Object.entries(S).reduce(function(P,E){var T=u9(E,2),O=T[0],k=T[1];return je(je({},P),{},Wt({},O,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(S){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[S])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(S){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[S])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(S){var P=this.state,E=P.formattedGraphicalItems,T=P.activeItem;if(E&&E.length)for(var O=0,k=E.length;O<k;O++){var M=E[O],I=M.props,R=M.item,_=R.type.defaultProps!==void 0?je(je({},R.type.defaultProps),R.props):R.props,L=Lu(R.type);if(L==="Bar"){var j=(I.data||[]).find(function(z){return _Qe(S,z)});if(j)return{graphicalItem:M,payload:j}}else if(L==="RadialBar"){var N=(I.data||[]).find(function(z){return DG(S,z)});if(N)return{graphicalItem:M,payload:N}}else if($k(M,T)||Rk(M,T)||Hx(M,T)){var F=CZe({graphicalItem:M,activeTooltipItem:T,itemData:_.data}),U=_.activeIndex===void 0?F:_.activeIndex;return{graphicalItem:je(je({},M),{},{childIndex:U}),payload:Hx(M,T)?_.data[F]:M.props.data[F]}}}return null}},{key:"render",value:function(){var S=this;if(!EW(this))return null;var P=this.props,E=P.children,T=P.className,O=P.width,k=P.height,M=P.style,I=P.compact,R=P.title,_=P.desc,L=d9(P,got),j=$t(L,!1);if(I)return Y.createElement(V8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement(n_,Bg({},j,{width:O,height:k,title:R,desc:_}),this.renderClipPath(),OW(E,this.renderMap)));if(this.props.accessibilityLayer){var N,F;j.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,j.role=(F=this.props.role)!==null&&F!==void 0?F:"application",j.onKeyDown=function(z){S.accessibilityManager.keyboardEvent(z)},j.onFocus=function(){S.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return Y.createElement(V8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Y.createElement("div",Bg({className:pe("recharts-wrapper",T),style:je({position:"relative",cursor:"default",width:O,height:k},M)},U,{ref:function(V){S.container=V}}),Y.createElement(n_,Bg({},j,{width:O,height:k,title:R,desc:_,style:Rot}),this.renderClipPath(),OW(E,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(v.Component);Wt(m,"displayName",n),Wt(m,"defaultProps",je({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Wt(m,"getDerivedStateFromProps",function(y,b){var x=y.dataKey,S=y.data,P=y.children,E=y.width,T=y.height,O=y.layout,k=y.stackOffset,M=y.margin,I=b.dataStartIndex,R=b.dataEndIndex;if(b.updateId===void 0){var _=h9(y);return je(je(je({},_),{},{updateId:0},p(je(je({props:y},_),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:S,prevWidth:E,prevHeight:T,prevLayout:O,prevStackOffset:k,prevMargin:M,prevChildren:P})}if(x!==b.prevDataKey||S!==b.prevData||E!==b.prevWidth||T!==b.prevHeight||O!==b.prevLayout||k!==b.prevStackOffset||!sy(M,b.prevMargin)){var L=h9(y),j={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},N=je(je({},p9(b,S,O)),{},{updateId:b.updateId+1}),F=je(je(je({},L),j),N);return je(je(je({},F),p(je({props:y},F),b)),{},{prevDataKey:x,prevData:S,prevWidth:E,prevHeight:T,prevLayout:O,prevStackOffset:k,prevMargin:M,prevChildren:P})}if(!e_(P,b.prevChildren)){var U,z,V,W,G=Va(P,uv),J=G&&(U=(z=G.props)===null||z===void 0?void 0:z.startIndex)!==null&&U!==void 0?U:I,K=G&&(V=(W=G.props)===null||W===void 0?void 0:W.endIndex)!==null&&V!==void 0?V:R,ne=J!==I||K!==R,re=!zt(S),oe=re&&!ne?b.updateId:b.updateId+1;return je(je({updateId:oe},p(je(je({props:y},b),{},{updateId:oe,dataStartIndex:J,dataEndIndex:K}),b)),{},{prevChildren:P,dataStartIndex:J,dataEndIndex:K})}return null}),Wt(m,"renderActiveDot",function(y,b,x){var S;return v.isValidElement(y)?S=v.cloneElement(y,b):Ut(y)?S=y(b):S=Y.createElement(QS,b),Y.createElement(on,{className:"recharts-active-dot",key:x},S)});var g=v.forwardRef(function(b,x){return Y.createElement(m,Bg({},b,{ref:x}))});return g.displayName=m.displayName,g},qoe=e1({chartName:"LineChart",GraphicalChild:gb,axisComponents:[{axisType:"xAxis",AxisComp:gl},{axisType:"yAxis",AxisComp:yl}],formatAxisMap:_k}),Koe=e1({chartName:"BarChart",GraphicalChild:Bc,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:gl},{axisType:"yAxis",AxisComp:yl}],formatAxisMap:_k}),Yoe=e1({chartName:"PieChart",GraphicalChild:Zc,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ak},{axisType:"radiusAxis",AxisComp:kk}],formatAxisMap:uYe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Hot=e1({chartName:"ScatterChart",GraphicalChild:ZS,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:gl},{axisType:"yAxis",AxisComp:yl},{axisType:"zAxis",AxisComp:jk}],formatAxisMap:_k}),Uot=e1({chartName:"AreaChart",GraphicalChild:rp,axisComponents:[{axisType:"xAxis",AxisComp:gl},{axisType:"yAxis",AxisComp:yl}],formatAxisMap:_k});const Wot=e=>{const t=e.planned.energy>0?e.logged.energy/e.planned.energy*100:100,n=e.planned.energy>0?e.planned.energy-e.logged.energy:e.logged.energy,r=Lo(),[o,i]=Ue(),a=[{name:"",value:t},{name:"",value:t<100?100-t:0}],s=[r.palette.primary.main,"#C5C5C5"];return X(Gt,{direction:"row",children:[C(Zf,{width:"50%",height:140,children:X(Yoe,{children:[C(Zc,{height:100,data:a,startAngle:200,endAngle:-20,innerRadius:60,outerRadius:70,paddingAngle:2,dataKey:"value",children:a.map((l,c)=>C(cb,{fill:s[c%s.length]},`cell-${c}`))}),X("g",{children:[C("text",{x:"50%",y:"45%",fontSize:"1.25em",textAnchor:"middle",children:o("nutrition.valueEnergyKcal",{value:Pi(n,i.language)})}),C("text",{x:"50%",y:"60%",fontSize:"1em",textAnchor:"middle",children:e.planned.energy>0&&o(t<100?"nutrition.valueRemaining":"nutrition.valueTooMany")})]})]})}),X(Gt,{width:"50%",spacing:1,children:[C(ay,{title:o("nutrition.protein"),percentage:e.percentage.protein,logged:e.logged.protein,planned:e.planned.protein}),C(ay,{title:o("nutrition.carbohydrates"),percentage:e.percentage.carbohydrates,logged:e.logged.carbohydrates,planned:e.planned.carbohydrates}),C(ay,{title:o("nutrition.fat"),percentage:e.percentage.fat,logged:e.logged.fat,planned:e.planned.fat})]})]})};function Hp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xoe(e){if(v.isValidElement(e)||!Hp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xoe(e[n])}),t}function aO(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Hp(e)&&Hp(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:Hp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Hp(e[o])?r[o]=aO(e[o],t[o],n):n.clone?r[o]=Hp(t[o])?Xoe(t[o]):t[o]:r[o]=t[o]}),r}function Got(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const yb=B.oneOfType([B.func,B.object]);function op(e){if(typeof e!="string")throw new Error(Got(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tc(e){return e&&e.ownerDocument||document}function qot(e){return tc(e).defaultView||window}function Kot(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const mr=typeof window<"u"?v.useLayoutEffect:v.useEffect;let g9=0;function Yot(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(g9+=1,n(`mui-${g9}`))},[t]),r}const Xot={...Ry},y9=Xot.useId;function cr(e){if(y9!==void 0){const t=y9();return e??t}return Yot(e)}function Bh({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),s=o?e:i,l=v.useCallback(c=>{o||a(c)},[]);return[s,l]}function ot(e){const t=v.useRef(e);return mr(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Gr(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Kot(n,t)})},e)}const v9={};function eu(e,t){const n=v.useRef(v9);return n.current===v9&&(n.current=e(t)),n}const Qot=[];function zk(e){v.useEffect(e,Qot)}class zB{constructor(){tn(this,"currentId",null);tn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});tn(this,"disposeEffect",()=>this.clear)}static create(){return new zB}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function vb(){const e=eu(zB.create).current;return zk(e.disposeEffect),e}const Jot={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Qoe(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=Qoe(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function bt(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[o]=a}return r}const b9=e=>e,Zot=()=>{let e=b9;return{configure(t){e=t},generate(t){return e(t)},reset(){e=b9}}},eit=Zot(),tit={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,t,n="Mui"){const r=tit[t];return r?`${n}-${r}`:`${eit.generate(e)}-${t}`}function Ln(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_n(e,o,n)}),r}function nit(e){return typeof e=="string"}function rit(e,t,n){return e===void 0||nit(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function oit(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function w9(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function iit(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=oit({...o,...r}),s=w9(r),l=w9(o),c=t(a),u=pe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Nf(e,t,n){return typeof e=="function"?e(t,n):e}function Hn(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Nf(n,r),{props:s,internalRef:l}=iit({...i,externalSlotProps:a}),c=Gr(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return rit(t,{...s,ref:c},r)}const ait=["localeText"],kL=v.createContext(null),t1=function(t){const{localeText:n}=t,r=ze(t,ait),{utils:o,localeText:i}=v.useContext(kL)??{utils:void 0,localeText:void 0},a=Jt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,p=v.useMemo(()=>D({},f,i,n),[f,i,n]),m=v.useMemo(()=>{if(!l)return o||null;const b=new l({locale:d,formats:c,instance:u});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
+`));return b},[l,d,c,u,o]),g=v.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=v.useMemo(()=>({utils:m,defaultDates:g,localeText:p}),[g,m,p]);return $.jsx(kL.Provider,{value:y,children:s})},sit=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:D({},e)}}}}),bb=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},Joe={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},lit=Joe;sit(Joe);const om=()=>{const e=v.useContext(kL);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
-`));const t=v.useMemo(()=>D({},Frt,e.localeText),[e.localeText]);return v.useMemo(()=>D({},e,{localeText:t}),[e,t])},yn=()=>Bh().utils,zh=()=>Bh().defaultDates,Vh=e=>{const t=yn(),n=v.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},wo=()=>Bh().localeText,jrt=lt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Brt=lt($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),zrt=lt($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Xre=lt($.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Vrt=lt($.jsxs(v.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Hrt=lt($.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Urt=lt($.jsxs(v.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Wrt=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Grt(e){return _e("MuiPickersArrowSwitcher",e)}Le("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const qrt=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Krt=["ownerState"],Yrt=["ownerState"],Xrt=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Qrt=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),I8=ie(An,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Jrt=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Grt,t)},Qre=v.forwardRef(function(t,n){const r=nr(),o=Jt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:p,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:b}=o,x=Ue(o,qrt),S=o,P=Jrt(S),E={isDisabled:c,isHidden:u,goTo:d,label:f},T={isDisabled:p,isHidden:m,goTo:g,label:y},O=(s==null?void 0:s.previousIconButton)??I8,k=on({elementType:O,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:D({},S,{hidden:T.isHidden}),className:pe(P.button,P.previousIconButton)}),M=(s==null?void 0:s.nextIconButton)??I8,I=on({elementType:M,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:D({},S,{hidden:E.isHidden}),className:pe(P.button,P.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??Brt,_=on({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.leftArrowIcon}),N=Ue(_,Krt),B=(s==null?void 0:s.rightArrowIcon)??zrt,L=on({elementType:B,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.rightArrowIcon}),F=Ue(L,Yrt);return $.jsxs(Xrt,D({ref:n,className:pe(P.root,a),ownerState:S},x,{children:[$.jsx(O,D({},k,{children:r?$.jsx(B,D({},F)):$.jsx(R,D({},N))})),i?$.jsx(ut,{variant:"subtitle1",component:"span",id:b,children:i}):$.jsx(Qrt,{className:P.spacer,ownerState:S}),$.jsx(M,D({},I,{children:r?$.jsx(R,D({},N)):$.jsx(B,D({},F))}))]}))}),wc=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),rB=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},Jre=["hours","minutes","seconds"],nv=e=>Jre.includes(e),I0=e=>Jre.includes(e)||e==="meridiem",Zrt=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Tx=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,eot=(e,t,n,r)=>{const o=Tx(r.getHours(e),t,n);return r.setHours(e,o)},k8=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),DS=(e,t)=>(n,r)=>e?t.isAfter(n,r):k8(n,t)>k8(r,t),DT=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return wc(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:wc(n,["minutes"])?o.minutes:wc(n,["seconds"])?o.seconds:wc(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:wc(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function _S({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[d,f]=bi({name:"useViews",state:"view",controlled:r,default:u.current}),p=v.useRef(i?d:null),[m,g]=bi({name:"useViews",state:"focusedView",controlled:a,default:p.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(O=>!o.includes(O)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const y=o.indexOf(d),b=o[y-1]??null,x=o[y+1]??null,S=Ze((O,k)=>{g(k?O:M=>O===M?null:M),s==null||s(O,k)}),P=Ze(O=>{S(O,!0),O!==d&&(f(O),t&&t(O))}),E=Ze(()=>{x&&P(x)}),T=Ze((O,k,M)=>{const I=k==="finish",R=M?o.indexOf(M)<o.length-1:!!x;if(e(O,I&&R?"partial":k,M),M&&M!==d){const N=o[o.indexOf(M)+1];N&&P(N)}else I&&E()});return{view:d,setView:P,focusedView:m,setFocusedView:S,nextView:x,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:T}}function tot(e,{disableFuture:t,maxDate:n,timezone:r}){const o=yn();return v.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function not(e,{disablePast:t,minDate:n,timezone:r}){const o=yn();return v.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function hk(e,t,n,r){const o=yn(),i=Zrt(e,o),a=v.useCallback(s=>{const l=e==null?null:eot(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:i,handleMeridiemChange:a}}const Ox=36,mk=2,gk=320,rot=280,yk=336,Zre=232,k0=48,vk=ie("div")({overflow:"hidden",width:gk,maxHeight:yk,display:"flex",flexDirection:"column",margin:"0 auto"});function oot(e){return _e("MuiTimeClock",e)}Le("MuiTimeClock",["root","arrowSwitcher"]);const rv=220,Tu=36,Ix={x:rv/2,y:rv/2},eoe={x:Ix.x,y:0},iot=eoe.x-Ix.x,aot=eoe.y-Ix.y,sot=e=>e*(180/Math.PI),toe=(e,t,n)=>{const r=t-Ix.x,o=n-Ix.y,i=Math.atan2(iot,aot)-Math.atan2(r,o);let a=sot(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},lot=(e,t,n=1)=>{const r=n*6;let{value:o}=toe(r,e,t);return o=o*n%60,o},cot=(e,t,n)=>{const{value:r,distance:o}=toe(30,e,t);let i=r||12;return n?i%=12:o<rv/2-Tu&&(i+=12,i%=24),i};function uot(e){return _e("MuiClockPointer",e)}Le("MuiClockPointer",["root","thumb"]);const dot=["className","hasSelected","isInner","type","viewValue"],fot=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},uot,t)},pot=ie("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),hot=ie("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Tu/2}px)`,border:`${(Tu-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function mot(e){const t=Jt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=Ue(t,dot),s=v.useRef(o);v.useEffect(()=>{s.current=o},[o]);const l=D({},t,{shouldAnimate:s.current!==o}),c=fot(l),u=()=>{let f=360/(o==="hours"?12:60)*i;return o==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*rv),transform:`rotateZ(${f}deg)`}};return $.jsx(pot,D({style:u(),className:pe(c.root,n),ownerState:l},a,{children:$.jsx(hot,{ownerState:l,className:c.thumb})}))}function got(e){return _e("MuiClock",e)}Le("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const _T=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},lw=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=_T(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},yot=(e,t)=>t==null||!e.isValid(t)?null:t,Si=(e,t,n)=>t==null||!e.isValid(t)?n:t,vot=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),oB=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},iB=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Nl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},bot=["year","month","day"],ov=e=>bot.includes(e),kx=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return wc(n,["year"])?o.year:wc(n,["month"])?o.month:wc(n,["day"])?o.dayOfMonth:wc(n,["month","year"])?`${o.month} ${o.year}`:wc(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},wot=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},xot=e=>{const{classes:t,meridiemMode:n}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},got,t)},Sot=ie("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Cot=ie("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Pot=ie("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Eot=ie("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Tot=ie("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),noe=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:Tu,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Oot=ie(An,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>D({},noe(e,"am"),{position:"absolute",left:8})),Iot=ie(An,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>D({},noe(e,"pm"),{position:"absolute",right:8})),M8=ie(ut,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function kot(e){const t=Jt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:f,type:p,viewValue:m,viewRange:[g,y],disabled:b=!1,readOnly:x,className:S}=t,P=t,E=yn(),T=wo(),O=v.useRef(!1),k=xot(P),M=l(m,p),I=!n&&p==="hours"&&(m<1||m>12),R=(K,ne)=>{b||x||l(K,p)||d(K,ne)},_=(K,ne)=>{let{offsetX:re,offsetY:oe}=K;if(re===void 0){const se=K.target.getBoundingClientRect();re=K.changedTouches[0].clientX-se.left,oe=K.changedTouches[0].clientY-se.top}const fe=p==="seconds"||p==="minutes"?lot(re,oe,u):cot(re,oe,!!n);R(fe,ne)},N=K=>{O.current=!0,_(K,"shallow")},B=K=>{O.current&&(_(K,"finish"),O.current=!1),K.preventDefault()},L=K=>{K.buttons>0&&_(K.nativeEvent,"shallow")},F=K=>{O.current&&(O.current=!1),_(K.nativeEvent,"finish")},U=v.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),V=p==="minutes"?u:1,z=v.useRef(null);xn(()=>{o&&z.current.focus()},[o]);const W=K=>Math.max(g,Math.min(y,K)),G=K=>(K+(y+1))%(y+1),J=K=>{if(!O.current)switch(K.key){case"Home":R(g,"partial"),K.preventDefault();break;case"End":R(y,"partial"),K.preventDefault();break;case"ArrowUp":R(G(m+V),"partial"),K.preventDefault();break;case"ArrowDown":R(G(m-V),"partial"),K.preventDefault();break;case"PageUp":R(W(m+5),"partial"),K.preventDefault();break;case"PageDown":R(W(m-5),"partial"),K.preventDefault();break;case"Enter":case" ":R(m,"finish"),K.preventDefault();break}};return $.jsxs(Sot,{className:pe(k.root,S),children:[$.jsxs(Cot,{className:k.clock,children:[$.jsx(Eot,{onTouchMove:N,onTouchStart:N,onTouchEnd:B,onMouseUp:F,onMouseMove:L,ownerState:{disabled:b},className:k.squareMask}),!M&&$.jsxs(v.Fragment,{children:[$.jsx(Tot,{className:k.pin}),a!=null&&$.jsx(mot,{type:p,viewValue:m,isInner:I,hasSelected:U})]}),$.jsx(Pot,{"aria-activedescendant":f,"aria-label":T.clockLabelText(p,a,E,a==null?null:E.format(a,"fullTime")),ref:z,role:"listbox",onKeyDown:J,tabIndex:0,className:k.wrapper,children:i})]}),n&&r&&$.jsxs(v.Fragment,{children:[$.jsx(Oot,{onClick:x?void 0:()=>s("am"),disabled:b||c===null,ownerState:P,className:k.amButton,title:Nl(E,"am"),children:$.jsx(M8,{variant:"caption",className:k.meridiemText,children:Nl(E,"am")})}),$.jsx(Iot,{disabled:b||c===null,onClick:x?void 0:()=>s("pm"),ownerState:P,className:k.pmButton,title:Nl(E,"pm"),children:$.jsx(M8,{variant:"caption",className:k.meridiemText,children:Nl(E,"pm")})})]})]})}function Mot(e){return _e("MuiClockNumber",e)}const FC=Le("MuiClockNumber",["root","selected","disabled"]),Aot=["className","disabled","index","inner","label","selected"],$ot=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},Mot,t)},Rot=ie("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${FC.disabled}`]:t.disabled},{[`&.${FC.selected}`]:t.selected}]})(({theme:e})=>({height:Tu,width:Tu,position:"absolute",left:`calc((100% - ${Tu}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${FC.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${FC.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:D({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function roe(e){const t=Jt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=Ue(t,Aot),c=t,u=$ot(c),d=o%12/12*Math.PI*2-Math.PI/2,f=(rv-Tu-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return $.jsx(Rot,D({className:pe(u.root,n),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(rv-Tu)/2}px`},ownerState:c},l,{children:a}))}const Dot=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=c;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=u(d);s.push($.jsx(roe,{id:m?o:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return s},A8=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const c=a===t;return $.jsx(roe,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},aB=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=yn(),s=v.useRef(n),l=t??s.current??i.emptyValue,c=v.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Ze(m=>c==null?m:i.setTimezone(a,c,m));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=v.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),p=Ze((m,...g)=>{const y=u(m);o==null||o(y,...g)});return{value:f,handleValueChange:p,timezone:d}},Xv=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=bi({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Ze((u,...d)=>{l(u),i==null||i(u,...d)});return aB({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Dl={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},_ot=e=>Math.max(...e.map(t=>Dl[t.type]??1)),o0=(e,t,n)=>{if(t===Dl.year)return e.startOfYear(n);if(t===Dl.month)return e.startOfMonth(n);if(t===Dl.day)return e.startOfDay(n);let r=n;return t<Dl.minutes&&(r=e.setMinutes(r,0)),t<Dl.seconds&&(r=e.setSeconds(r,0)),t<Dl.milliseconds&&(r=e.setMilliseconds(r,0)),r},Lot=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():o0(t,n,iB(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=o0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=o0(t,n,e.maxDate));const a=DS(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=o0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:_T(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=o0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:_T(t,i,e.maxTime))),i},ooe=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
-`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Not=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},bk=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},ioe=(e,t,n,r)=>{switch(n){case"month":return oB(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return bk(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},$8="s",Fot=["0","1","2","3","4","5","6","7","8","9"],jot=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),$8)==="0"?Fot:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),$8))},Ch=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},sB=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),R8=(e,t)=>{const n=Ch(e,t);return n!==" "&&!Number.isNaN(Number(n))},aoe=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},soe=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=aoe(i,o.maxLength)),sB(i,r)},Bot=(e,t,n,r,o,i,a,s)=>{const l=Not(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=S=>soe(e,S,m,i,n),y=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let x=parseInt(Ch(n.value,i),10)+l*y;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?x=m.minimum:x=m.maximum}return x%y!==0&&((l<0||c)&&(x+=y-(y+x)%y),(l>0||u)&&(x-=x%y)),x>m.maximum?g(m.minimum+(x-m.maximum-1)%(m.maximum-m.minimum+1)):x<m.minimum?g(m.maximum-(m.minimum-x-1)%(m.maximum-m.minimum+1)):g(x)},p=()=>{const m=ioe(e,t,n.type,n.format);if(m.length===0)return n.value;if(d)return l>0||c?m[0]:m[m.length-1];const b=((m.indexOf(n.value)+l)%m.length+m.length)%m.length;return m[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},lB=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Ch(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},D8=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),loe=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,coe=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return loe(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},zot=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),i.push(lB(c,"non-input",n)))}const a=o.join(" "),s=i.join(" ");return e.parse(s,a)},Vot=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Hot=(e,t,n)=>{const o=e.map(i=>{const a=lB(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},Uot=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=oB(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:loe(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=bk(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return Ch(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Ch(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Wot=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=bk(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},_8={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},L8=(e,t,n,r,o)=>[...n].sort((i,a)=>_8[i.type]-_8[a.type]).reduce((i,a)=>!o||a.modified?Wot(e,a,t,i):i,r),Got=()=>navigator.userAgent.toLowerCase().includes("android"),qot=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},K_=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Kot=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Yot=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Xot=["value","referenceDate"],Zr={emptyValue:null,getTodayValue:iB,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ue(e,Xot);return t!=null&&r.utils.isValid(t)?t:n??Lot(r)},cleanValue:yot,areValuesEqual:vot,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},cB={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Vot,getV6InputValueFromSections:Hot,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},uB=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=v.useMemo(()=>Zr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Dl.day,timezone:o,getTodayDate:()=>iB(n,o,"date")}),[]);return e??i},Qot=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Jot=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},oot,t)},Zot=ie(vk,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),eit=ie(Qre,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),tit=["hours","minutes"],nit=v.forwardRef(function(t,n){const r=yn(),o=Jt({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:g,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableTime:S,showViewSwitcher:P,onChange:E,view:T,views:O=tit,openTo:k,onViewChange:M,focusedView:I,onFocusedViewChange:R,className:_,disabled:N,readOnly:B,timezone:L}=o,F=Ue(o,Qot),{value:U,handleValueChange:V,timezone:z}=Xv({name:"TimeClock",timezone:L,value:u,defaultValue:d,referenceDate:f,onChange:E,valueManager:Zr}),W=uB({value:U,referenceDate:f,utils:r,props:o,timezone:z}),G=wo(),J=Vh(z),{view:K,setView:ne,previousView:re,nextView:oe,setValueAndGoToNextView:fe}=_S({view:T,views:O,openTo:k,onViewChange:M,onChange:V,focusedView:I,onFocusedViewChange:R}),{meridiemMode:se,handleMeridiemChange:ee}=hk(W,i,fe),ce=v.useCallback((xe,me)=>{const be=DS(p,r),we=me==="hours"||me==="minutes"&&O.includes("seconds"),Oe=({start:je,end:de})=>!(g&&be(g,de)||m&&be(je,m)||y&&be(je,J)||b&&be(J,we?de:je)),ke=(je,de=1)=>{if(je%de!==0)return!1;if(S)switch(me){case"hours":return!S(r.setHours(W,je),"hours");case"minutes":return!S(r.setMinutes(W,je),"minutes");case"seconds":return!S(r.setSeconds(W,je),"seconds");default:return!1}return!0};switch(me){case"hours":{const je=Tx(xe,se,i),de=r.setHours(W,je);if(r.getHours(de)!==je)return!0;const Re=r.setSeconds(r.setMinutes(de,0),0),Me=r.setSeconds(r.setMinutes(de,59),59);return!Oe({start:Re,end:Me})||!ke(je)}case"minutes":{const je=r.setMinutes(W,xe),de=r.setSeconds(je,0),Re=r.setSeconds(je,59);return!Oe({start:de,end:Re})||!ke(xe,x)}case"seconds":{const je=r.setSeconds(W,xe);return!Oe({start:je,end:je})||!ke(xe)}default:throw new Error("not supported")}},[i,W,p,m,se,g,x,S,r,y,b,J,O]),le=_n(),Q=v.useMemo(()=>{switch(K){case"hours":{const xe=(we,Oe)=>{const ke=Tx(we,se,i);fe(r.setHours(W,ke),Oe,"hours")},me=r.getHours(W);let be;return i?me>12?be=[12,23]:be=[0,11]:be=[0,23],{onChange:xe,viewValue:me,children:Dot({value:U,utils:r,ampm:i,onChange:xe,getClockNumberText:G.hoursClockNumberText,isDisabled:we=>N||ce(we,"hours"),selectedId:le}),viewRange:be}}case"minutes":{const xe=r.getMinutes(W),me=(be,we)=>{fe(r.setMinutes(W,be),we,"minutes")};return{viewValue:xe,onChange:me,children:A8({utils:r,value:xe,onChange:me,getClockNumberText:G.minutesClockNumberText,isDisabled:be=>N||ce(be,"minutes"),selectedId:le}),viewRange:[0,59]}}case"seconds":{const xe=r.getSeconds(W),me=(be,we)=>{fe(r.setSeconds(W,be),we,"seconds")};return{viewValue:xe,onChange:me,children:A8({utils:r,value:xe,onChange:me,getClockNumberText:G.secondsClockNumberText,isDisabled:be=>N||ce(be,"seconds"),selectedId:le}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[K,r,U,i,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,se,fe,W,ce,le,N]),ue=o,ge=Jot(ue);return $.jsxs(Zot,D({ref:n,className:pe(ge.root,_),ownerState:ue},F,{children:[$.jsx(kot,D({autoFocus:s??!!I,ampmInClock:a&&O.includes("hours"),value:U,type:K,ampm:i,minutesStep:x,isTimeDisabled:ce,meridiemMode:se,handleMeridiemChange:ee,selectedId:le,disabled:N,readOnly:B},Q)),P&&$.jsx(eit,{className:ge.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ne(re),isPreviousDisabled:!re,previousLabel:G.openPreviousView,onGoToNext:()=>ne(oe),isNextDisabled:!oe,nextLabel:G.openNextView,ownerState:ue})]}))});function rit(e){return _e("MuiDigitalClock",e)}const oit=Le("MuiDigitalClock",["root","list","item"]);function Jm(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const iit=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},oa=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?oa(t.shadowRoot):t:null},LT=e=>Array.from(e.children).indexOf(oa(document)),dB="@media (pointer: fine)",ait=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],sit=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},rit,t)},lit=ie(vk,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Zre,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),cit=ie(Ev,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),uit=ie(tn,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity)}})),dit=v.forwardRef(function(t,n){const r=yn(),o=v.useRef(null),i=Wt(n,o),a=v.useRef(null),s=Jt({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:f,value:p,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:b,minTime:x,disableFuture:S,disablePast:P,minutesStep:E=1,shouldDisableTime:T,onChange:O,view:k,openTo:M,onViewChange:I,focusedView:R,onFocusedViewChange:_,className:N,disabled:B,readOnly:L,views:F=["hours"],skipDisabled:U=!1,timezone:V}=s,z=Ue(s,ait),{value:W,handleValueChange:G,timezone:J}=Xv({name:"DigitalClock",timezone:V,value:p,defaultValue:m,referenceDate:g,onChange:O,valueManager:Zr}),K=wo(),ne=Vh(J),re=v.useMemo(()=>D({},s,{alreadyRendered:!!o.current}),[s]),oe=sit(re),fe=(d==null?void 0:d.digitalClockItem)??uit,se=on({elementType:fe,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:{},className:oe.item}),ee=uB({value:W,referenceDate:g,utils:r,props:s,timezone:J}),ce=Ze(be=>G(be,"finish","hours")),{setValueAndGoToNextView:le}=_S({view:k,views:F,openTo:M,onViewChange:I,onChange:ce,focusedView:R,onFocusedViewChange:_}),Q=Ze(be=>{le(be,"finish")});v.useEffect(()=>{if(o.current===null)return;const be=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;(u||R)&&be.focus(),o.current.scrollTop=we-4});const ue=v.useCallback(be=>{const we=DS(y,r),Oe=()=>!(x&&we(x,be)||b&&we(be,b)||S&&we(be,ne)||P&&we(ne,be)),ke=()=>r.getMinutes(be)%E!==0?!1:T?!T(be,"hours"):!0;return!Oe()||!ke()},[y,r,x,b,S,ne,P,E,T]),ge=v.useMemo(()=>{const be=[];let Oe=r.startOfDay(ee);for(;r.isSameDay(ee,Oe);)be.push(Oe),Oe=r.addMinutes(Oe,c);return be},[ee,c,r]),xe=ge.findIndex(be=>r.isEqual(be,ee)),me=be=>{switch(be.key){case"PageUp":{const we=LT(a.current)-5,Oe=a.current.children,ke=Math.max(0,we),je=Oe[ke];je&&je.focus(),be.preventDefault();break}case"PageDown":{const we=LT(a.current)+5,Oe=a.current.children,ke=Math.min(Oe.length-1,we),je=Oe[ke];je&&je.focus(),be.preventDefault();break}}};return $.jsx(lit,D({ref:i,className:pe(oe.root,N),ownerState:re},z,{children:$.jsx(cit,{ref:a,role:"listbox","aria-label":K.timePickerToolbarTitle,className:oe.list,onKeyDown:me,children:ge.map((be,we)=>{if(U&&ue(be))return null;const Oe=r.isEqual(be,W),ke=r.format(be,l?"fullTime12h":"fullTime24h"),je=xe===we||xe===-1&&we===0?0:-1;return $.jsx(fe,D({onClick:()=>!L&&Q(be),selected:Oe,disabled:B||ue(be),disableRipple:L,role:"option","aria-disabled":L,"aria-selected":Oe,tabIndex:je},se,{children:ke}),`${be.valueOf()}-${ke}`)})})}))});function fit(e){return _e("MuiMultiSectionDigitalClock",e)}const N8=Le("MuiMultiSectionDigitalClock",["root"]);function pit(e){return _e("MuiMultiSectionDigitalClockSection",e)}const hit=Le("MuiMultiSectionDigitalClockSection",["root","item"]),mit=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],git=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},pit,t)},yit=ie(Ev,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:Zre,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),vit=ie(tn,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:k0,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity)}})),bit=v.forwardRef(function(t,n){const r=v.useRef(null),o=Wt(n,r),i=v.useRef(null),a=Jt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:f,active:p,slots:m,slotProps:g,skipDisabled:y}=a,b=Ue(a,mit),x=v.useMemo(()=>D({},a,{alreadyRendered:!!r.current}),[a]),S=git(x),P=(m==null?void 0:m.digitalClockSectionItem)??vit;v.useEffect(()=>{if(r.current===null)return;const O=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(p&&s&&O&&O.focus(),!O||i.current===O)return;i.current=O;const k=O.offsetTop;r.current.scrollTop=k-4});const E=f.findIndex(O=>O.isFocused(O.value)),T=O=>{switch(O.key){case"PageUp":{const k=LT(r.current)-5,M=r.current.children,I=Math.max(0,k),R=M[I];R&&R.focus(),O.preventDefault();break}case"PageDown":{const k=LT(r.current)+5,M=r.current.children,I=Math.min(M.length-1,k),R=M[I];R&&R.focus(),O.preventDefault();break}}};return $.jsx(yit,D({ref:o,className:pe(S.root,c),ownerState:x,autoFocusItem:s&&p,role:"listbox",onKeyDown:T},b,{children:f.map((O,k)=>{var N;const M=(N=O.isDisabled)==null?void 0:N.call(O,O.value),I=u||M;if(y&&I)return null;const R=O.isSelected(O.value),_=E===k||E===-1&&k===0?0:-1;return $.jsx(P,D({onClick:()=>!d&&l(O.value),selected:R,disabled:I,disableRipple:d,role:"option","aria-disabled":d||I||void 0,"aria-label":O.ariaLabel,"aria-selected":R,tabIndex:_,className:S.item},g==null?void 0:g.digitalClockSectionItem,{children:O.label}),O.label)})}))}),wit=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(p,m)=>{const g=m??l;return g===null?!1:r?p===12?g===12||g===0:g===p||g-12===p:g===p},d=p=>u(p,n.getHours(s)),f=r?11:23;for(let p=0;p<=f;p+=a){let m=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const g=i(parseInt(m,10).toString());m=n.formatNumber(m),c.push({value:p,label:m,isSelected:u,isDisabled:o,isFocused:d,ariaLabel:g})}return c},F8=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const d=r*u;return{value:d,label:t.formatNumber(o(d)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:i(d.toString())}})]},xit=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Sit=e=>{const{classes:t}=e;return Te({root:["root"]},fit,t)},Cit=ie(vk,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Pit=v.forwardRef(function(t,n){const r=yn(),o=nr(),i=Jt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:p,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:y,disableFuture:b,disablePast:x,minutesStep:S=1,shouldDisableTime:P,onChange:E,view:T,views:O=["hours","minutes"],openTo:k,onViewChange:M,focusedView:I,onFocusedViewChange:R,className:_,disabled:N,readOnly:B,skipDisabled:L=!1,timezone:F}=i,U=Ue(i,xit),{value:V,handleValueChange:z,timezone:W}=Xv({name:"MultiSectionDigitalClock",timezone:F,value:d,defaultValue:f,referenceDate:p,onChange:E,valueManager:Zr}),G=wo(),J=Vh(W),K=v.useMemo(()=>D({hours:1,minutes:5,seconds:5},s),[s]),ne=uB({value:V,referenceDate:p,utils:r,props:i,timezone:W}),re=Ze((Oe,ke,je)=>z(Oe,ke,je)),oe=v.useMemo(()=>!a||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[a,O]),{view:fe,setValueAndGoToNextView:se,focusedView:ee}=_S({view:T,views:oe,openTo:k,onViewChange:M,onChange:re,focusedView:I,onFocusedViewChange:R}),ce=Ze(Oe=>{se(Oe,"finish","meridiem")}),{meridiemMode:le,handleMeridiemChange:Q}=hk(ne,a,ce,"finish"),ue=v.useCallback((Oe,ke)=>{const je=DS(m,r),de=ke==="hours"||ke==="minutes"&&oe.includes("seconds"),Re=({start:Ae,end:Ne})=>!(y&&je(y,Ne)||g&&je(Ae,g)||b&&je(Ae,J)||x&&je(J,de?Ne:Ae)),Me=(Ae,Ne=1)=>{if(Ae%Ne!==0)return!1;if(P)switch(ke){case"hours":return!P(r.setHours(ne,Ae),"hours");case"minutes":return!P(r.setMinutes(ne,Ae),"minutes");case"seconds":return!P(r.setSeconds(ne,Ae),"seconds");default:return!1}return!0};switch(ke){case"hours":{const Ae=Tx(Oe,le,a),Ne=r.setHours(ne,Ae);if(r.getHours(Ne)!==Ae)return!0;const Je=r.setSeconds(r.setMinutes(Ne,0),0),nt=r.setSeconds(r.setMinutes(Ne,59),59);return!Re({start:Je,end:nt})||!Me(Ae)}case"minutes":{const Ae=r.setMinutes(ne,Oe),Ne=r.setSeconds(Ae,0),Je=r.setSeconds(Ae,59);return!Re({start:Ne,end:Je})||!Me(Oe,S)}case"seconds":{const Ae=r.setSeconds(ne,Oe);return!Re({start:Ae,end:Ae})||!Me(Oe)}default:throw new Error("not supported")}},[a,ne,m,g,le,y,S,P,r,b,x,J,oe]),ge=v.useCallback(Oe=>{switch(Oe){case"hours":return{onChange:ke=>{const je=Tx(ke,le,a);se(r.setHours(ne,je),"finish","hours")},items:wit({now:J,value:V,ampm:a,utils:r,isDisabled:ke=>ue(ke,"hours"),timeStep:K.hours,resolveAriaLabel:G.hoursClockNumberText,valueOrReferenceDate:ne})};case"minutes":return{onChange:ke=>{se(r.setMinutes(ne,ke),"finish","minutes")},items:F8({value:r.getMinutes(ne),utils:r,isDisabled:ke=>ue(ke,"minutes"),resolveLabel:ke=>r.format(r.setMinutes(J,ke),"minutes"),timeStep:K.minutes,hasValue:!!V,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:ke=>{se(r.setSeconds(ne,ke),"finish","seconds")},items:F8({value:r.getSeconds(ne),utils:r,isDisabled:ke=>ue(ke,"seconds"),resolveLabel:ke=>r.format(r.setSeconds(J,ke),"seconds"),timeStep:K.seconds,hasValue:!!V,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const ke=Nl(r,"am"),je=Nl(r,"pm");return{onChange:Q,items:[{value:"am",label:ke,isSelected:()=>!!V&&le==="am",isFocused:()=>!!ne&&le==="am",ariaLabel:ke},{value:"pm",label:je,isSelected:()=>!!V&&le==="pm",isFocused:()=>!!ne&&le==="pm",ariaLabel:je}]}}default:throw new Error(`Unknown view: ${Oe} found.`)}},[J,V,a,r,K.hours,K.minutes,K.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,le,se,ne,ue,Q]),xe=v.useMemo(()=>{if(!o)return oe;const Oe=oe.filter(ke=>ke!=="meridiem");return Oe.reverse(),oe.includes("meridiem")&&Oe.push("meridiem"),Oe},[o,oe]),me=v.useMemo(()=>oe.reduce((Oe,ke)=>D({},Oe,{[ke]:ge(ke)}),{}),[oe,ge]),be=i,we=Sit(be);return $.jsx(Cit,D({ref:n,className:pe(we.root,_),ownerState:be,role:"group"},U,{children:xe.map(Oe=>$.jsx(bit,{items:me[Oe].items,onChange:me[Oe].onChange,active:fe===Oe,autoFocus:l??ee===Oe,disabled:N,readOnly:B,slots:c,slotProps:u,skipDisabled:L,"aria-label":G.selectViewText(Oe)},Oe))}))});function Eit(e){return _e("MuiPickersDay",e)}const dp=Le("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Tit=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Oit=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return Te({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Eit,l)},uoe=({theme:e})=>D({},e.typography.caption,{width:Ox,height:Ox,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${dp.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${dp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${dp.disabled}:not(.${dp.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${dp.disabled}&.${dp.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${mk}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${dp.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),doe=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Iit=ie(Hi,{name:"MuiPickersDay",slot:"Root",overridesResolver:doe})(uoe),kit=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:doe})(({theme:e})=>D({},uoe({theme:e}),{opacity:0,pointerEvents:"none"})),i0=()=>{},Mit=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:p=i0,onBlur:m=i0,onKeyDown:g=i0,onMouseDown:y=i0,onMouseEnter:b=i0,outsideCurrentMonth:x,selected:S=!1,showDaysOutsideCurrentMonth:P=!1,children:E,today:T=!1}=r,O=Ue(r,Tit),k=D({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:S,showDaysOutsideCurrentMonth:P,today:T}),M=Oit(k),I=yn(),R=v.useRef(null),_=Wt(R,n);xn(()=>{o&&!s&&!u&&!x&&R.current.focus()},[o,s,u,x]);const N=L=>{y(L),x&&L.preventDefault()},B=L=>{s||f(a),x&&L.currentTarget.focus(),d&&d(L)};return x&&!P?$.jsx(kit,{className:pe(M.root,M.hiddenDaySpacingFiller,i),ownerState:k,role:O.role}):$.jsx(Iit,D({className:pe(M.root,i),ref:_,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:L=>g(L,a),onFocus:L=>p(L,a),onBlur:L=>m(L,a),onMouseEnter:L=>b(L,a),onClick:B,onMouseDown:N},O,{ownerState:k,children:E||I.format(a,"dayOfMonth")}))}),Ait=v.memo(Mit),Qv=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Si(r.utils,e.minDate,r.defaultDates.minDate),d=Si(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Qv.valueManager=Zr;const LS=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,d=e.utils.date(void 0,n),f=DS(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&f(o,t)):return"minTime";case!!(i&&f(t,i)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};LS.valueManager=Zr;const wk=({adapter:e,value:t,timezone:n,props:r})=>{const o=Qv({adapter:e,value:t,timezone:n,props:r});return o!==null?o:LS({adapter:e,value:t,timezone:n,props:r})};wk.valueManager=Zr;const Y_=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],X_=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],foe=["minDateTime","maxDateTime"],$it=[...Y_,...X_,...foe],Jv=e=>$it.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function poe(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Bh(),s=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Ze(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const Rit=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Dit=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},_it=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Lit=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=ooe(e,a),c=coe(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",p=null;if(u)if(c)p=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);p=l.maxLength,d&&(f=sB(aoe(Ch(f,o),p),o))}return D({},l,{format:a,maxLength:p,value:f,placeholder:_it(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},Nit=e=>{var p;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=m=>r.find(g=>g.start<=m&&g.end>=m);let f=0;for(;f<n.length;){const m=d(f),g=m!=null,y=(p=l.exec(n.slice(f)))==null?void 0:p[1];if(!g&&y!=null&&c.test(y)){let b=y;for(;b.length>0;){const x=u.exec(b)[1];b=b.slice(x.length),i.push(Lit(D({},e,{now:o,token:x,startSeparator:a}))),a=""}f+=y.length}else{const b=n[f];g&&(m==null?void 0:m.start)===f||(m==null?void 0:m.end)===f||(i.length===0?a+=b:i[i.length-1].endSeparator+=b),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},Fit=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),j8=e=>{let t=Rit(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Dit(D({},e,{expandedFormat:t})),r=Nit(D({},e,{expandedFormat:t,escapedParts:n}));return Fit(D({},e,{sections:r}))},jit=e=>{const t=yn(),n=wo(),r=Bh(),o=nr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:m,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:S,enableAccessibleFieldDOMStructure:P=!1}}=e,{timezone:E,value:T,handleValueChange:O}=aB({timezone:S,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:i}),k=v.useMemo(()=>jot(t),[t]),M=v.useMemo(()=>Uot(t,k,E),[t,k,E]),I=v.useCallback((re,oe=null)=>a.getSectionsFromValue(t,re,oe,fe=>j8({utils:t,localeText:n,localizedDigits:k,format:m,date:fe,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:P,isRtl:o})),[a,m,n,k,o,x,t,g,P]),[R,_]=v.useState(()=>{const re=I(T),oe={sections:re,value:T,referenceValue:i.emptyValue,tempValueStrAndroid:null},fe=_ot(re),se=i.getInitialReferenceValue({referenceDate:f,value:T,utils:t,props:c,granularity:fe,timezone:E});return D({},oe,{referenceValue:se})}),[N,B]=bi({controlled:y,default:null,name:"useField",state:"selectedSections"}),L=re=>{B(re),b==null||b(re)},F=v.useMemo(()=>K_(N,R.sections),[N,R.sections]),U=F==="all"?0:F,V=({value:re,referenceValue:oe,sections:fe})=>{if(_(ee=>D({},ee,{sections:fe,value:re,referenceValue:oe,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,re))return;const se={validationError:l({adapter:r,value:re,timezone:E,props:c})};O(re,se)},z=(re,oe)=>{const fe=[...R.sections];return fe[re]=D({},fe[re],{value:oe,modified:!0}),fe},W=()=>{V({value:i.emptyValue,referenceValue:R.referenceValue,sections:I(i.emptyValue)})},G=()=>{if(U==null)return;const re=R.sections[U],oe=a.getActiveDateManager(t,R,re),se=oe.getSections(R.sections).filter(Q=>Q.value!=="").length===(re.value===""?0:1),ee=z(U,""),ce=se?null:t.getInvalidDate(),le=oe.getNewValuesFromNewActiveDate(ce);V(D({},le,{sections:ee}))},J=re=>{const oe=(ee,ce)=>{const le=t.parse(ee,m);if(le==null||!t.isValid(le))return null;const Q=j8({utils:t,localeText:n,localizedDigits:k,format:m,date:le,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:P,isRtl:o});return L8(t,le,Q,ce,!1)},fe=a.parseValueStr(re,R.referenceValue,oe),se=a.updateReferenceValue(t,fe,R.referenceValue);V({value:fe,referenceValue:se,sections:I(fe,R.sections)})},K=({activeSection:re,newSectionValue:oe,shouldGoToNextSection:fe})=>{fe&&U<R.sections.length-1&&L(U+1);const se=a.getActiveDateManager(t,R,re),ee=z(U,oe),ce=se.getSections(ee),le=zot(t,ce,k);let Q,ue;if(le!=null&&t.isValid(le)){const ge=L8(t,le,ce,se.referenceDate,!0);Q=se.getNewValuesFromNewActiveDate(ge),ue=!0}else Q=se.getNewValuesFromNewActiveDate(le),ue=(le!=null&&!t.isValid(le))!=(se.date!=null&&!t.isValid(se.date));return ue?V(D({},Q,{sections:ee})):_(ge=>D({},ge,Q,{sections:ee,tempValueStrAndroid:null}))},ne=re=>_(oe=>D({},oe,{tempValueStrAndroid:re}));return v.useEffect(()=>{const re=I(R.value);_(oe=>D({},oe,{sections:re}))},[m,t.locale,o]),v.useEffect(()=>{let re;i.areValuesEqual(t,R.value,T)?re=i.getTimezone(t,R.value)!==i.getTimezone(t,T):re=!0,re&&_(oe=>D({},oe,{value:T,referenceValue:a.updateReferenceValue(t,T,oe.referenceValue),sections:I(T)}))},[T]),{state:R,activeSectionIndex:U,parsedSelectedSections:F,setSelectedSections:L,clearValue:W,clearActiveSection:G,updateSectionValue:K,updateValueFromValueStr:J,setTempAndroidValueStr:ne,getSectionsFromValue:I,sectionsValueBoundaries:M,localizedDigits:k,timezone:E}},Bit=5e3,Lm=e=>e.saveQuery!=null,zit=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=yn(),[s,l]=v.useState(null),c=Ze(()=>l(null));v.useEffect(()=>{var m;s!=null&&((m=e[s.sectionIndex])==null?void 0:m.type)!==s.sectionType&&c()},[e,s,c]),v.useEffect(()=>{if(s!=null){const m=setTimeout(()=>c(),Bit);return()=>{clearTimeout(m)}}return()=>{}},[s,c]);const u=({keyPressed:m,sectionIndex:g},y,b)=>{const x=m.toLowerCase(),S=e[g];if(s!=null&&(!b||b(s.value))&&s.sectionIndex===g){const E=`${s.value}${x}`,T=y(E,S);if(!Lm(T))return l({sectionIndex:g,value:E,sectionType:S.type}),T}const P=y(x,S);return Lm(P)&&!P.saveQuery?(c(),null):(l({sectionIndex:g,value:x,sectionType:S.type}),Lm(P)?null:P)},d=m=>{const g=(x,S,P)=>{const E=S.filter(T=>T.toLowerCase().startsWith(P));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},y=(x,S,P,E)=>{const T=O=>ioe(a,i,S.type,O);if(S.contentType==="letter")return g(S.format,T(S.format),x);if(P&&E!=null&&ooe(a,P).contentType==="letter"){const O=T(P),k=g(P,O,x);return Lm(k)?{saveQuery:!1}:D({},k,{sectionValue:E(k.sectionValue,O)})}return{saveQuery:!1}};return u(m,(x,S)=>{switch(S.type){case"month":{const P=E=>D8(a,E,a.formats.month,S.format);return y(x,S,a.formats.month,P)}case"weekDay":{const P=(E,T)=>T.indexOf(E).toString();return y(x,S,a.formats.weekday,P)}case"meridiem":return y(x,S);default:return{saveQuery:!1}}})},f=m=>{const g=(b,x)=>{const S=Ch(b,r),P=Number(S),E=n[x.type]({currentDate:null,format:x.format,contentType:x.contentType});if(P>E.maximum)return{saveQuery:!1};if(P<E.minimum)return{saveQuery:!0};const T=P*10>E.maximum||S.length===E.maximum.toString().length;return{sectionValue:soe(a,P,E,r,x),shouldGoToNextSection:T}};return u(m,(b,x)=>{if(x.contentType==="digit"||x.contentType==="digit-with-letter")return g(b,x);if(x.type==="month"){const S=coe(a,"digit","month","MM"),P=g(b,{type:x.type,format:"MM",hasLeadingZerosInFormat:S,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Lm(P))return P;const E=D8(a,P.sectionValue,"MM",x.format);return D({},P,{sectionValue:E})}if(x.type==="weekDay"){const S=g(b,x);if(Lm(S))return S;const P=bk(a,x.format)[Number(S.sectionValue)-1];return D({},S,{sectionValue:P})}return{saveQuery:!1}},b=>R8(b,r))};return{applyCharacterEditing:Ze(m=>{const g=e[m.sectionIndex],b=R8(m.keyPressed,r)?f(D({},m,{keyPressed:sB(m.keyPressed,r)})):d(m);if(b==null){o(null);return}t({activeSection:g,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})}),resetCharacterQuery:c}},Vit=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:p,setSelectedSections:m,parsedSelectedSections:g,state:y,clearActiveSection:b,clearValue:x,updateSectionValue:S,updateValueFromValueStr:P,sectionOrder:E,areAllSectionsEmpty:T,sectionsValueBoundaries:O}=e,k=v.useRef(null),M=Wt(r,k),I=wo(),R=yn(),_=_n(),[N,B]=v.useState(!1),L=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;const ue=document.getSelection();if(!ue)return;if(g==null){ue.rangeCount>0&&k.current.getRoot().contains(ue.getRangeAt(0).startContainer)&&ue.removeAllRanges(),N&&k.current.getRoot().blur();return}if(!k.current.getRoot().contains(oa(document)))return;const ge=new window.Range;let xe;g==="all"?xe=k.current.getRoot():y.sections[g].type==="empty"?xe=k.current.getSectionContainer(g):xe=k.current.getSectionContent(g),ge.selectNodeContents(xe),xe.focus(),ue.removeAllRanges(),ue.addRange(ge)},getActiveSectionIndexFromDOM:()=>{const ue=oa(document);return!ue||!k.current||!k.current.getRoot().contains(ue)?null:k.current.getSectionIndexFromDOMElement(ue)},focusField:(ue=0)=>{if(!k.current)return;const ge=K_(ue,y.sections);B(!0),k.current.getSectionContent(ge).focus()},setSelectedSections:ue=>{if(!k.current)return;const ge=K_(ue,y.sections);B((ge==="all"?0:ge)!==null),m(ue)},isFieldFocused:()=>{const ue=oa(document);return!!k.current&&k.current.getRoot().contains(ue)}}),[g,m,y.sections,N]),F=Ze(ue=>{if(!k.current)return;const ge=y.sections[ue];k.current.getSectionContent(ue).innerHTML=ge.value||ge.placeholder,L.syncSelectionToDOM()}),U=Ze((ue,...ge)=>{ue.isDefaultPrevented()||!k.current||(B(!0),i==null||i(ue,...ge),g==="all"?setTimeout(()=>{const xe=document.getSelection().getRangeAt(0).startOffset;if(xe===0){m(E.startIndex);return}let me=0,be=0;for(;be<xe&&me<y.sections.length;){const we=y.sections[me];me+=1,be+=`${we.startSeparator}${we.value||we.placeholder}${we.endSeparator}`.length}m(me-1)}):N?k.current.getRoot().contains(ue.target)||m(E.startIndex):(B(!0),m(E.startIndex)))}),V=Ze(ue=>{if(s==null||s(ue),!k.current||g!=="all")return;const xe=ue.target.textContent??"";k.current.getRoot().innerHTML=y.sections.map(me=>`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`).join(""),L.syncSelectionToDOM(),xe.length===0||xe.charCodeAt(0)===10?(p(),x(),m("all")):xe.length>1?P(xe):f({keyPressed:xe,sectionIndex:0})}),z=Ze(ue=>{if(l==null||l(ue),n||g!=="all"){ue.preventDefault();return}const ge=ue.clipboardData.getData("text");ue.preventDefault(),p(),P(ge)}),W=Ze((...ue)=>{if(a==null||a(...ue),N||!k.current)return;B(!0),k.current.getSectionIndexFromDOMElement(oa(document))!=null||m(E.startIndex)}),G=Ze((...ue)=>{o==null||o(...ue),setTimeout(()=>{if(!k.current)return;const ge=oa(document);!k.current.getRoot().contains(ge)&&(B(!1),m(null))})}),J=Ze(ue=>ge=>{ge.isDefaultPrevented()||m(ue)}),K=Ze(ue=>{ue.preventDefault()}),ne=Ze(ue=>()=>{m(ue)}),re=Ze(ue=>{if(ue.preventDefault(),n||t||typeof g!="number")return;const ge=y.sections[g],xe=ue.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(xe),be=/^[0-9]+$/.test(xe),we=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(xe);ge.contentType==="letter"&&me||ge.contentType==="digit"&&be||ge.contentType==="digit-with-letter"&&we?(p(),S({activeSection:ge,newSectionValue:xe,shouldGoToNextSection:!0})):!me&&!be&&(p(),P(xe))}),oe=Ze(ue=>{ue.preventDefault(),ue.dataTransfer.dropEffect="none"}),fe=Ze(ue=>{if(!k.current)return;const ge=ue.target,xe=ge.textContent??"",me=k.current.getSectionIndexFromDOMElement(ge),be=y.sections[me];if(n||!k.current){F(me);return}if(xe.length===0){if(be.value===""){F(me);return}const we=ue.nativeEvent.inputType;if(we==="insertParagraph"||we==="insertLineBreak"){F(me);return}p(),b();return}f({keyPressed:xe,sectionIndex:me}),F(me)});xn(()=>{if(!(!N||!k.current)){if(g==="all")k.current.getRoot().focus();else if(typeof g=="number"){const ue=k.current.getSectionContent(g);ue&&ue.focus()}}},[g,N]);const se=v.useMemo(()=>y.sections.reduce((ue,ge)=>(ue[ge.type]=O[ge.type]({currentDate:null,contentType:ge.contentType,format:ge.format}),ue),{}),[O,y.sections]),ee=g==="all",ce=v.useMemo(()=>y.sections.map((ue,ge)=>{const xe=!ee&&!t&&!n;return{container:{"data-sectionindex":ge,onClick:J(ge)},content:{tabIndex:ee||ge>0?-1:0,contentEditable:!ee&&!t&&!n,role:"spinbutton",id:`${_}-${ue.type}`,"aria-labelledby":`${_}-${ue.type}`,"aria-readonly":n,"aria-valuenow":Yot(ue,R),"aria-valuemin":se[ue.type].minimum,"aria-valuemax":se[ue.type].maximum,"aria-valuetext":ue.value?Kot(ue,R):I.empty,"aria-label":I[ue.type],"aria-disabled":t,spellCheck:xe?!1:void 0,autoCapitalize:xe?"off":void 0,autoCorrect:xe?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:xe?"next":void 0,children:ue.value||ue.placeholder,onInput:fe,onPaste:re,onFocus:ne(ge),onDragOver:oe,onMouseUp:K,inputMode:ue.contentType==="letter"?"text":"numeric"},before:{children:ue.startSeparator},after:{children:ue.endSeparator}}}),[y.sections,ne,re,oe,fe,J,K,t,n,ee,I,R,se,_]),le=Ze(ue=>{P(ue.target.value)}),Q=v.useMemo(()=>T?"":d.getV7HiddenInputValueFromSections(y.sections),[T,y.sections,d]);return v.useEffect(()=>{if(k.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
-`));u&&k.current&&k.current.getSectionContent(E.startIndex).focus()},[]),{interactions:L,returnedValue:{autoFocus:u,readOnly:n,focused:c??N,sectionListRef:M,onBlur:G,onClick:U,onFocus:W,onInput:V,onPaste:z,enableAccessibleFieldDOMStructure:!0,elements:ce,tabIndex:g===0?-1:0,contentEditable:ee,value:Q,onChange:le,areAllSectionsEmpty:T}}},Cg=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Hit=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=lB(s,n?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=Cg(c).length,d=c.length,f=Cg(l),p=o+(f===""?0:l.indexOf(f[0]))+s.startSeparator.length,m=p+f.length;i.push(D({},s,{start:r,end:r+u,startInInput:p,endInInput:m})),r+=u,o+=d}return i},Uit=e=>{const t=nr(),n=v.useRef(),r=v.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:p,state:m,fieldValueManager:g,valueManager:y,applyCharacterEditing:b,resetCharacterQuery:x,updateSectionValue:S,updateValueFromValueStr:P,clearActiveSection:E,clearValue:T,setTempAndroidValueStr:O,setSelectedSections:k,getSectionsFromValue:M,areAllSectionsEmpty:I,localizedDigits:R}=e,_=v.useRef(null),N=Wt(l,_),B=v.useMemo(()=>Hit(m.sections,R,t),[m.sections,R,t]),L=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!_.current)return;if(f==null){_.current.scrollLeft&&(_.current.scrollLeft=0);return}if(_.current!==oa(document))return;const fe=_.current.scrollTop;if(f==="all")_.current.select();else{const se=B[f],ee=se.type==="empty"?se.startInInput-se.startSeparator.length:se.startInInput,ce=se.type==="empty"?se.endInInput+se.endSeparator.length:se.endInInput;(ee!==_.current.selectionStart||ce!==_.current.selectionEnd)&&_.current===oa(document)&&_.current.setSelectionRange(ee,ce),clearTimeout(r.current),r.current=setTimeout(()=>{_.current&&_.current===oa(document)&&_.current.selectionStart===_.current.selectionEnd&&(_.current.selectionStart!==ee||_.current.selectionEnd!==ce)&&L.syncSelectionToDOM()})}_.current.scrollTop=fe},getActiveSectionIndexFromDOM:()=>{const fe=_.current.selectionStart??0,se=_.current.selectionEnd??0;if(fe===0&&se===0)return null;const ee=fe<=B[0].startInInput?1:B.findIndex(ce=>ce.startInInput-ce.startSeparator.length>fe);return ee===-1?B.length-1:ee-1},focusField:(fe=0)=>{var se;(se=_.current)==null||se.focus(),k(fe)},setSelectedSections:fe=>k(fe),isFieldFocused:()=>_.current===oa(document)}),[_,f,B,k]),F=()=>{const fe=_.current.selectionStart??0;let se;fe<=B[0].startInInput||fe>=B[B.length-1].endInInput?se=1:se=B.findIndex(ce=>ce.startInInput-ce.startSeparator.length>fe);const ee=se===-1?B.length-1:se-1;k(ee)},U=Ze((...fe)=>{o==null||o(...fe);const se=_.current;clearTimeout(n.current),n.current=setTimeout(()=>{!se||se!==_.current||p==null&&(se.value.length&&Number(se.selectionEnd)-Number(se.selectionStart)===se.value.length?k("all"):F())})}),V=Ze((fe,...se)=>{fe.isDefaultPrevented()||(i==null||i(fe,...se),F())}),z=Ze(fe=>{if(a==null||a(fe),fe.preventDefault(),u||d)return;const se=fe.clipboardData.getData("text");if(typeof f=="number"){const ee=m.sections[f],ce=/^[a-zA-Z]+$/.test(se),le=/^[0-9]+$/.test(se),Q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(se);if(ee.contentType==="letter"&&ce||ee.contentType==="digit"&&le||ee.contentType==="digit-with-letter"&&Q){x(),S({activeSection:ee,newSectionValue:se,shouldGoToNextSection:!0});return}if(ce||le)return}x(),P(se)}),W=Ze((...fe)=>{s==null||s(...fe),k(null)}),G=Ze(fe=>{if(u)return;const se=fe.target.value;if(se===""){x(),T();return}const ee=fe.nativeEvent.data,ce=ee&&ee.length>1,le=ce?ee:se,Q=Cg(le);if(p==null||ce){P(ce?ee:Q);return}let ue;if(f==="all"&&Q.length===1)ue=Q;else{const ge=Cg(g.getV6InputValueFromSections(B,R,t));let xe=-1,me=-1;for(let ke=0;ke<ge.length;ke+=1)xe===-1&&ge[ke]!==Q[ke]&&(xe=ke),me===-1&&ge[ge.length-ke-1]!==Q[Q.length-ke-1]&&(me=ke);const be=B[p];if(xe<be.start||ge.length-me-1>be.end)return;const Oe=Q.length-ge.length+be.end-Cg(be.endSeparator||"").length;ue=Q.slice(be.start+Cg(be.startSeparator||"").length,Oe)}if(ue.length===0){Got()&&O(le),x(),E();return}b({keyPressed:ue,sectionIndex:p})}),J=v.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(M(y.emptyValue),R,t),[c,g,M,y.emptyValue,R,t]),K=v.useMemo(()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,R,t),[m.sections,g,m.tempValueStrAndroid,R,t]);v.useEffect(()=>(_.current&&_.current===oa(document)&&k("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ne=v.useMemo(()=>p==null||m.sections[p].contentType==="letter"?"text":"numeric",[p,m.sections]),oe=!(_.current&&_.current===oa(document))&&I;return{interactions:L,returnedValue:{readOnly:u,onBlur:W,onClick:V,onFocus:U,onPaste:z,inputRef:N,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:ne,autoComplete:"off",value:oe?"":K,onChange:G}}},fB=e=>{const t=yn(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:p,validator:m}=e,g=nr(),y=jit(e),{state:b,activeSectionIndex:x,parsedSelectedSections:S,setSelectedSections:P,clearValue:E,clearActiveSection:T,updateSectionValue:O,setTempAndroidValueStr:k,sectionsValueBoundaries:M,localizedDigits:I,timezone:R}=y,_=zit({sections:b.sections,updateSectionValue:O,sectionsValueBoundaries:M,localizedDigits:I,setTempAndroidValueStr:k,timezone:R}),{resetCharacterQuery:N}=_,B=p.areValuesEqual(t,b.value,p.emptyValue),L=i?Vit:Uit,F=v.useMemo(()=>qot(b.sections,g&&!i),[b.sections,g,i]),{returnedValue:U,interactions:V}=L(D({},e,y,_,{areAllSectionsEmpty:B,sectionOrder:F})),z=Ze(re=>{if(l==null||l(re),!a)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),P("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),S==null)P(F.startIndex);else if(S==="all")P(F.endIndex);else{const oe=F.neighbors[S].rightIndex;oe!==null&&P(oe)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),S==null)P(F.endIndex);else if(S==="all")P(F.startIndex);else{const oe=F.neighbors[S].leftIndex;oe!==null&&P(oe)}break}case re.key==="Delete":{if(re.preventDefault(),s)break;S==null||S==="all"?E():T(),N();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),s||x==null)break;const oe=b.sections[x],fe=f.getActiveDateManager(t,b,oe),se=Bot(t,R,oe,re.key,M,I,fe.date,{minutesStep:o});O({activeSection:oe,newSectionValue:se,shouldGoToNextSection:!1});break}}});xn(()=>{V.syncSelectionToDOM()});const{hasValidationError:W}=poe({props:n,validator:m,timezone:R,value:b.value,onError:n.onError}),G=v.useMemo(()=>c!==void 0?c:W,[W,c]);v.useEffect(()=>{!G&&x==null&&N()},[b.referenceValue,x,G]),v.useEffect(()=>{b.tempValueStrAndroid!=null&&x!=null&&(N(),T())},[b.sections]),v.useImperativeHandle(r,()=>({getSections:()=>b.sections,getActiveSectionIndex:V.getActiveSectionIndexFromDOM,setSelectedSections:V.setSelectedSections,focusField:V.focusField,isFieldFocused:V.isFieldFocused}));const J=Ze((re,...oe)=>{re.preventDefault(),d==null||d(re,...oe),E(),V.isFieldFocused()?P(F.startIndex):V.focusField(0)}),K={onKeyDown:z,onClear:J,error:G,clearable:!!(u&&!B&&!s&&!a)},ne={disabled:a,readOnly:s};return D({},e.forwardedProps,K,ne,U)},Wit=["clearable","onClear","InputProps","sx","slots","slotProps"],Git=["ownerState"],pB=e=>{const t=wo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ue(e,Wit),c=(a==null?void 0:a.clearButton)??An,u=on({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ue(u,Git),f=(a==null?void 0:a.clearIcon)??Wrt,p=on({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return D({},l,{InputProps:D({},o,{endAdornment:$.jsxs(v.Fragment,{children:[n&&$.jsx(co,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:$.jsx(c,D({},d,{onClick:r,children:$.jsx(f,D({fontSize:"small"},p))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},qit=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],hB=(e,t)=>v.useMemo(()=>{const n=D({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return qit.forEach(o),t==="date"?Y_.forEach(o):t==="time"?X_.forEach(o):t==="date-time"&&(Y_.forEach(o),X_.forEach(o),foe.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),Kit=v.createContext(null);function hoe(e){const{contextValue:t,localeText:n,children:r}=e;return $.jsx(Kit.Provider,{value:t,children:$.jsx(RS,{localeText:n,children:r})})}const Yit=e=>{const t=yn(),n=zh();return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Si(t,e.minDate,n.minDate),maxDate:Si(t,e.maxDate,n.maxDate)})},Xit=e=>{const t=yn(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r})},Qit=e=>{const t=yn(),n=zh(),o=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??o,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Si(t,e.minDateTime??e.minDate,n.minDate),maxDate:Si(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},Jit=e=>{const t=Yit(e),{forwardedProps:n,internalProps:r}=hB(t,"date");return fB({forwardedProps:n,internalProps:r,valueManager:Zr,fieldValueManager:cB,validator:Qv,valueType:"date"})};function Zit(e){return _e("MuiPickersTextField",e)}Le("MuiPickersTextField",["root","focused","disabled","error","required"]);function eat(e){return _e("MuiPickersInputBase",e)}const Gg=Le("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function tat(e){return _e("MuiPickersSectionList",e)}const a0=Le("MuiPickersSectionList",["root","section","sectionContent"]),nat=["slots","slotProps","elements","sectionListRef"],moe=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),goe=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),yoe=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),voe=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),rat=e=>{const{classes:t}=e;return Te({root:["root"],section:["section"],sectionContent:["sectionContent"]},tat,t)};function oat(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??goe,a=on({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??voe,l=on({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??yoe,u=on({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=on({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return $.jsxs(i,D({},a,{children:[$.jsx(c,D({},u)),$.jsx(s,D({},l)),$.jsx(c,D({},d))]}))}const iat=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ue(r,nat),c=rat(r),u=v.useRef(null),d=Wt(n,u),f=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};v.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(g){return f("getSectionContainer").querySelector(`.${a0.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return f("getSectionContent").querySelector(`.${a0.section}[data-sectionindex="${g}"] .${a0.sectionContent}`)},getSectionIndexFromDOMElement(g){const y=f("getSectionIndexFromDOMElement");if(g==null||!y.contains(g))return null;let b=null;return g.classList.contains(a0.section)?b=g:g.classList.contains(a0.sectionContent)&&(b=g.parentElement),b==null?null:Number(b.dataset.sectionindex)}}));const p=(o==null?void 0:o.root)??moe,m=on({elementType:p,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return $.jsx(p,D({},m,{children:m.contentEditable?a.map(({content:g,before:y,after:b})=>`${y.children}${g.children}${b.children}`).join(""):$.jsx(v.Fragment,{children:a.map((g,y)=>$.jsx(oat,{slots:o,slotProps:i,element:g,classes:c},y))})}))}),aat=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],sat=e=>Math.round(e*1e5)/1e5,xk=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>D({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${sat(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),mB=ie(moe,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),lat=ie(goe,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),cat=ie(voe,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),uat=ie(yoe,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),dat=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(D({},Fbe)),fat=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${Se(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Te(d,eat,o)},gB=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:p,contentEditable:m,tabIndex:g,onInput:y,onPaste:b,onKeyDown:x,name:S,readOnly:P,inputProps:E,inputRef:T,sectionListRef:O}=r,k=Ue(r,aat),M=v.useRef(null),I=Wt(n,M),R=Wt(E==null?void 0:E.ref,T),_=nr(),N=wa();if(!N)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=W=>{var G;if(N.disabled){W.stopPropagation();return}(G=N.onFocus)==null||G.call(N,W)};v.useEffect(()=>{N&&N.setAdornedStart(!!u)},[N,u]),v.useEffect(()=>{N&&(i?N.onEmpty():N.onFilled())},[N,i]);const L=D({},r,N,{isRtl:_}),F=fat(L),U=(f==null?void 0:f.root)||xk,V=on({elementType:U,externalSlotProps:p==null?void 0:p.root,externalForwardedProps:k,additionalProps:{"aria-invalid":N.error,ref:I},className:F.root,ownerState:L}),z=(f==null?void 0:f.input)||mB;return $.jsxs(U,D({},V,{children:[u,$.jsx(iat,{sectionListRef:O,elements:o,contentEditable:m,tabIndex:g,className:F.sectionsContainer,onFocus:B,onBlur:N.onBlur,onInput:y,onPaste:b,onKeyDown:x,slots:{root:z,section:lat,sectionContent:cat,sectionSeparator:uat},slotProps:{root:{ownerState:L},sectionContent:{className:Gg.sectionContent},sectionSeparator:({position:W})=>({className:W==="before"?Gg.sectionBefore:Gg.sectionAfter})}}),c,d?d(D({},N)):null,$.jsx(dat,D({name:S,className:F.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:P,required:N.required,disabled:N.disabled},E,{ref:R}))]}))});function pat(e){return _e("MuiPickersOutlinedInput",e)}const xl=D({},Gg,Le("MuiPickersOutlinedInput",["root","notchedOutline","input"])),hat=["children","className","label","notched","shrink"],mat=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),B8=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),gat=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function yat(e){const{className:t,label:n}=e,r=Ue(e,hat),o=n!=null&&n!=="",i=D({},e,{withLabel:o});return $.jsx(mat,D({"aria-hidden":!0,className:t},r,{ownerState:i,children:$.jsx(gat,{ownerState:i,children:o?$.jsx(B8,{children:n}):$.jsx(B8,{className:"notranslate",children:"​"})})}))}const vat=["label","autoFocus","ownerState","notched"],bat=ie(xk,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${xl.focused} .${xl.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${xl.disabled}`]:{[`& .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${xl.error} .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${xl.focused}:not(.${xl.error}) .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),wat=ie(mB,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),xat=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pat,t);return D({},t,r)},boe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ue(r,vat),l=wa(),c=D({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=xat(c);return $.jsx(gB,D({slots:{root:bat,input:wat},renderSuffix:d=>$.jsx(yat,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?$.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});boe.muiName="Input";function Sat(e){return _e("MuiPickersFilledInput",e)}const fp=D({},Gg,Le("MuiPickersFilledInput",["root","underline","input"])),Cat=["label","autoFocus","disableUnderline","ownerState"],Pat=ie(xk,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>cP(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${fp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${fp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fp.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fp.disabled}, .${fp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fp.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),Eat=ie(mB,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Tat=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Sat,t);return D({},t,o)},woe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ue(r,Cat),l=wa(),c=D({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=Tat(c);return $.jsx(gB,D({slots:{root:Pat,input:Eat},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});woe.muiName="Input";function Oat(e){return _e("MuiPickersFilledInput",e)}const s0=D({},Gg,Le("MuiPickersInput",["root","input"])),Iat=["label","autoFocus","disableUnderline","ownerState"],kat=ie(xk,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${s0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${s0.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${s0.disabled}, .${s0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${s0.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Mat=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Oat,t);return D({},t,o)},xoe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ue(r,Iat),l=wa(),c=D({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=Mat(c);return $.jsx(gB,D({slots:{root:kat}},s,{label:o,classes:u,ref:n}))});xoe.muiName="Input";const Aat=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],$at={standard:xoe,filled:woe,outlined:boe},Rat=ie(Cv,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dat=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return Te({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Zit,r)},yB=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:p,inputRef:m,sectionListRef:g,elements:y,areAllSectionsEmpty:b,onClick:x,onKeyDown:S,onKeyUp:P,onPaste:E,onInput:T,endAdornment:O,startAdornment:k,tabIndex:M,contentEditable:I,focused:R,value:_,onChange:N,fullWidth:B,id:L,name:F,helperText:U,FormHelperTextProps:V,label:z,InputLabelProps:W}=r,G=Ue(r,Aat),J=v.useRef(null),K=Wt(n,J),ne=_n(L),re=U&&ne?`${ne}-helper-text`:void 0,oe=z&&ne?`${ne}-label`:void 0,fe=D({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),se=Dat(fe),ee=$at[u];return $.jsxs(Rat,D({className:pe(se.root,a),ref:K,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:B,required:d,ownerState:fe},G,{children:[$.jsx(Pv,D({htmlFor:ne,id:oe},W,{children:z})),$.jsx(ee,D({elements:y,areAllSectionsEmpty:b,onClick:x,onKeyDown:S,onKeyUp:P,onInput:T,onPaste:E,endAdornment:O,startAdornment:k,tabIndex:M,contentEditable:I,value:_,onChange:N,id:ne,fullWidth:B,inputProps:p,inputRef:m,sectionListRef:g,label:z,name:F,role:"group","aria-labelledby":oe},f)),U&&$.jsx(fS,D({id:re},V,{children:U}))]}))}),_at=["enableAccessibleFieldDOMStructure"],Lat=["InputProps","readOnly"],Nat=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],vB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ue(e,_at);if(t){const{InputProps:d,readOnly:f}=n,p=Ue(n,Lat);return D({},p,{InputProps:D({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ue(n,Nat);return D({},u,{InputProps:D({},s??{},{readOnly:a}),inputProps:D({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},Fat=["slots","slotProps","InputProps","inputProps"],Soe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ue(r,Fat),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?yB:gn),d=on({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=Jit(d),p=vB(f),m=pB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),jat=e=>{const t=Xit(e),{forwardedProps:n,internalProps:r}=hB(t,"time");return fB({forwardedProps:n,internalProps:r,valueManager:Zr,fieldValueManager:cB,validator:LS,valueType:"time"})},Bat=["slots","slotProps","InputProps","inputProps"],Coe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ue(r,Bat),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?yB:gn),d=on({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=jat(d),p=vB(f),m=pB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),zat=e=>{const t=Qit(e),{forwardedProps:n,internalProps:r}=hB(t,"date-time");return fB({forwardedProps:n,internalProps:r,valueManager:Zr,fieldValueManager:cB,validator:wk,valueType:"date-time"})},Vat=["slots","slotProps","InputProps","inputProps"],Poe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ue(r,Vat),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?yB:gn),d=on({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=zat(d),p=vB(f),m=pB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),Eoe=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Bh();return v.useCallback(c=>Qv({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},Hat=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return D({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),D({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return D({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return D({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Uat=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=yn(),p=v.useRef(Hat(!!c,i,f)).current,m=v.useMemo(()=>Zr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Dl.day}),[n,d]),[g,y]=v.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:f.startOfMonth(m),slideDirection:"left"});v.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:f.getTimezone(m)})},[m,f]);const b=v.useCallback(T=>{y(D({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),x=v.useCallback(T=>{const O=T;f.isSameMonth(O,g.currentMonth)||b({newMonth:f.startOfMonth(O),direction:f.isAfterDay(O,g.currentMonth)?"left":"right"})},[g.currentMonth,b,f]),S=Eoe({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),P=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=Ze((T,O)=>{S(T)||y({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:O})});return{referenceDate:m,calendarState:g,changeMonth:x,changeFocusedDay:E,isDateDisabled:S,onMonthSwitchingAnimationEnd:P,handleChangeMonth:b}},Wat=e=>_e("MuiPickersFadeTransitionGroup",e);Le("MuiPickersFadeTransitionGroup",["root"]);const Gat=e=>{const{classes:t}=e;return Te({root:["root"]},Wat,t)},qat=ie(cS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Toe(e){const t=Jt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Gat(t),s=Ao();return o?n:$.jsx(qat,{className:pe(a.root,r),children:$.jsx(xv,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const Kat=e=>_e("MuiPickersSlideTransition",e),xs=Le("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Yat=["children","className","reduceAnimations","slideDirection","transKey","classes"],Xat=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,Kat,t)},Qat=ie(cS,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Jat(e){const t=Jt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ue(t,Yat),s=Xat(t),l=Ao();if(o)return $.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return $.jsx(Qat,{className:pe(s.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:$.jsx(dF,D({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const Zat=e=>_e("MuiDayCalendar",e);Le("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const est=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],tst=["ownerState"],nst=e=>{const{classes:t}=e;return Te({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Zat,t)},Ooe=(Ox+mk*2)*6,rst=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ost=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ist=ie(ut,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ast=ie(ut,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),sst=ie(ut,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>D({},e.typography.caption,{width:Ox,height:Ox,padding:0,margin:`0 ${mk}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),lst=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ooe}),cst=ie(Jat,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ooe}),ust=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),dst=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${mk}px 0`,display:"flex",justifyContent:"center"});function fst(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ue(e,est);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:p,slotProps:m,timezone:g}=t,y=yn(),b=Vh(g),x=r!==null&&y.isSameDay(n,r),S=o.some(_=>y.isSameDay(_,n)),P=y.isSameDay(n,b),E=(p==null?void 0:p.day)??Ait,T=on({elementType:E,externalSlotProps:m==null?void 0:m.day,additionalProps:D({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:D({},t,{day:n,selected:S})}),O=Ue(T,tst),k=v.useMemo(()=>c||i(n),[c,i,n]),M=v.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),I=v.useMemo(()=>{const _=y.startOfMonth(y.setMonth(n,a));return f?y.isSameDay(n,y.startOfWeek(_)):y.isSameDay(n,_)},[a,n,f,y]),R=v.useMemo(()=>{const _=y.endOfMonth(y.setMonth(n,a));return f?y.isSameDay(n,y.endOfWeek(_)):y.isSameDay(n,_)},[a,n,f,y]);return $.jsx(E,D({},O,{day:n,disabled:k,autoFocus:s&&x,today:P,outsideCurrentMonth:M,isFirstVisibleCell:I,isLastVisibleCell:R,selected:S,tabIndex:x?0:-1,"aria-selected":S,"aria-current":P?"date":void 0}))}function pst(e){const t=Jt({props:e,name:"MuiDayCalendar"}),n=yn(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:p=()=>$.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:y,disableFuture:b,minDate:x,maxDate:S,shouldDisableDate:P,shouldDisableMonth:E,shouldDisableYear:T,dayOfWeekFormatter:O=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:M,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:_,autoFocus:N,timezone:B}=t,L=Vh(B),F=nst(t),U=nr(),V=Eoe({shouldDisableDate:P,shouldDisableMonth:E,shouldDisableYear:T,minDate:x,maxDate:S,disablePast:y,disableFuture:b,timezone:B}),z=wo(),[W,G]=bi({name:"DayCalendar",state:"hasFocus",controlled:k,default:N??!1}),[J,K]=v.useState(()=>s||L),ne=Ze(me=>{d||c(me)}),re=me=>{V(me)||(r(me),K(me),M==null||M(!0),G(!0))},oe=Ze((me,be)=>{switch(me.key){case"ArrowUp":re(n.addDays(be,-7)),me.preventDefault();break;case"ArrowDown":re(n.addDays(be,7)),me.preventDefault();break;case"ArrowLeft":{const we=n.addDays(be,U?1:-1),Oe=n.addMonths(be,U?1:-1),ke=lw({utils:n,date:we,minDate:U?we:n.startOfMonth(Oe),maxDate:U?n.endOfMonth(Oe):we,isDateDisabled:V,timezone:B});re(ke||we),me.preventDefault();break}case"ArrowRight":{const we=n.addDays(be,U?-1:1),Oe=n.addMonths(be,U?-1:1),ke=lw({utils:n,date:we,minDate:U?n.startOfMonth(Oe):we,maxDate:U?we:n.endOfMonth(Oe),isDateDisabled:V,timezone:B});re(ke||we),me.preventDefault();break}case"Home":re(n.startOfWeek(be)),me.preventDefault();break;case"End":re(n.endOfWeek(be)),me.preventDefault();break;case"PageUp":re(n.addMonths(be,1)),me.preventDefault();break;case"PageDown":re(n.addMonths(be,-1)),me.preventDefault();break}}),fe=Ze((me,be)=>re(be)),se=Ze((me,be)=>{W&&n.isSameDay(J,be)&&(M==null||M(!1))}),ee=n.getMonth(i),ce=n.getYear(i),le=v.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),Q=`${ce}-${ee}`,ue=v.useMemo(()=>v.createRef(),[Q]),ge=v.useMemo(()=>{const me=n.startOfMonth(i),be=n.endOfMonth(i);return V(J)||n.isAfterDay(J,be)||n.isBeforeDay(J,me)?lw({utils:n,date:J,minDate:me,maxDate:be,disablePast:y,disableFuture:b,isDateDisabled:V,timezone:B}):J},[i,b,y,J,V,n,B]),xe=v.useMemo(()=>{const me=n.getWeekArray(i);let be=n.addMonths(i,1);for(;_&&me.length<_;){const we=n.getWeekArray(be),Oe=n.isSameDay(me[me.length-1][0],we[0][0]);we.slice(Oe?1:0).forEach(ke=>{me.length<_&&me.push(ke)}),be=n.addMonths(be,1)}return me},[i,_,n]);return $.jsxs(rst,{role:"grid","aria-labelledby":I,className:F.root,children:[$.jsxs(ost,{role:"row",className:F.header,children:[R&&$.jsx(ast,{variant:"caption",role:"columnheader","aria-label":z.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:z.calendarWeekNumberHeaderText}),wot(n,L).map((me,be)=>$.jsx(ist,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:F.weekDayLabel,children:O(me)},be.toString()))]}),l?$.jsx(lst,{className:F.loadingContainer,children:p()}):$.jsx(cst,D({transKey:Q,onExited:u,reduceAnimations:f,slideDirection:m,className:pe(o,F.slideTransition)},g,{nodeRef:ue,children:$.jsx(ust,{ref:ue,role:"rowgroup",className:F.monthContainer,children:xe.map((me,be)=>$.jsxs(dst,{role:"row",className:F.weekContainer,"aria-rowindex":be+1,children:[R&&$.jsx(sst,{className:F.weekNumber,role:"rowheader","aria-label":z.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:z.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((we,Oe)=>$.jsx(fst,{parentProps:t,day:we,selectedDays:le,focusableDay:ge,onKeyDown:oe,onFocus:fe,onBlur:se,onDaySelect:ne,isDateDisabled:V,currentMonthNumber:ee,isViewFocused:W,"aria-colindex":Oe+1},we.toString()))]},`week-${me[0]}`))})}))]})}function hst(e){return _e("MuiPickersMonth",e)}const jC=Le("MuiPickersMonth",["root","monthButton","disabled","selected"]),mst=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],gst=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},hst,r)},yst=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),vst=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${jC.disabled}`]:t.disabled},{[`&.${jC.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${jC.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${jC.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bst=v.memo(function(t){const n=Jt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,"aria-label":g,slots:y,slotProps:b}=n,x=Ue(n,mst),S=v.useRef(null),P=gst(n);xn(()=>{var O;r&&((O=S.current)==null||O.focus())},[r]);const E=(y==null?void 0:y.monthButton)??vst,T=on({elementType:E,externalSlotProps:b==null?void 0:b.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":m,"aria-checked":s,"aria-label":g,onClick:O=>u(O,l),onKeyDown:O=>d(O,l),onFocus:O=>f(O,l),onBlur:O=>p(O,l)},ownerState:n,className:P.monthButton});return $.jsx(yst,D({className:pe(P.root,o),ownerState:n},x,{children:$.jsx(E,D({},T))}))});function wst(e){return _e("MuiMonthCalendar",e)}Le("MuiMonthCalendar",["root"]);const xst=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Sst=e=>{const{classes:t}=e;return Te({root:["root"]},wst,t)};function Cst(e,t){const n=yn(),r=zh(),o=Jt({props:e,name:t});return D({disableFuture:!1,disablePast:!1},o,{minDate:Si(n,o.minDate,r.minDate),maxDate:Si(n,o.maxDate,r.maxDate)})}const Pst=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:gk,boxSizing:"border-box"}),Est=v.forwardRef(function(t,n){const r=Cst(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,autoFocus:y=!1,onMonthFocus:b,hasFocus:x,onFocusedViewChange:S,monthsPerRow:P=3,timezone:E,gridLabelId:T,slots:O,slotProps:k}=r,M=Ue(r,xst),{value:I,handleValueChange:R,timezone:_}=Xv({name:"MonthCalendar",timezone:E,value:i,defaultValue:a,referenceDate:s,onChange:p,valueManager:Zr}),N=Vh(_),B=nr(),L=yn(),F=v.useMemo(()=>Zr.getInitialReferenceValue({value:I,utils:L,props:r,timezone:_,referenceDate:s,granularity:Dl.month}),[]),U=r,V=Sst(U),z=v.useMemo(()=>L.getMonth(N),[L,N]),W=v.useMemo(()=>I!=null?L.getMonth(I):null,[I,L]),[G,J]=v.useState(()=>W||L.getMonth(F)),[K,ne]=bi({name:"MonthCalendar",state:"hasFocus",controlled:x,default:y??!1}),re=Ze(Q=>{ne(Q),S&&S(Q)}),oe=v.useCallback(Q=>{const ue=L.startOfMonth(u&&L.isAfter(N,f)?N:f),ge=L.startOfMonth(c&&L.isBefore(N,d)?N:d),xe=L.startOfMonth(Q);return L.isBefore(xe,ue)||L.isAfter(xe,ge)?!0:m?m(xe):!1},[c,u,d,f,N,m,L]),fe=Ze((Q,ue)=>{if(g)return;const ge=L.setMonth(I??F,ue);R(ge)}),se=Ze(Q=>{oe(L.setMonth(I??F,Q))||(J(Q),re(!0),b&&b(Q))});v.useEffect(()=>{J(Q=>W!==null&&Q!==W?W:Q)},[W]);const ee=Ze((Q,ue)=>{switch(Q.key){case"ArrowUp":se((12+ue-3)%12),Q.preventDefault();break;case"ArrowDown":se((12+ue+3)%12),Q.preventDefault();break;case"ArrowLeft":se((12+ue+(B?1:-1))%12),Q.preventDefault();break;case"ArrowRight":se((12+ue+(B?-1:1))%12),Q.preventDefault();break}}),ce=Ze((Q,ue)=>{se(ue)}),le=Ze((Q,ue)=>{G===ue&&re(!1)});return $.jsx(Pst,D({ref:n,className:pe(V.root,o),ownerState:U,role:"radiogroup","aria-labelledby":T},M,{children:oB(L,I??F).map(Q=>{const ue=L.getMonth(Q),ge=L.format(Q,"monthShort"),xe=L.format(Q,"month"),me=ue===W,be=l||oe(Q);return $.jsx(bst,{selected:me,value:ue,onClick:fe,onKeyDown:ee,autoFocus:K&&ue===G,disabled:be,tabIndex:ue===G&&!be?0:-1,onFocus:ce,onBlur:le,"aria-current":z===ue?"date":void 0,"aria-label":xe,monthsPerRow:P,slots:O,slotProps:k,children:ge},ge)})}))});function Tst(e){return _e("MuiPickersYear",e)}const BC=Le("MuiPickersYear",["root","yearButton","selected","disabled"]),Ost=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Ist=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Tst,r)},kst=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Mst=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${BC.disabled}`]:t.disabled},{[`&.${BC.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${BC.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${BC.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ast=v.memo(function(t){const n=Jt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,slots:g,slotProps:y}=n,b=Ue(n,Ost),x=v.useRef(null),S=Ist(n);xn(()=>{var T;r&&((T=x.current)==null||T.focus())},[r]);const P=(g==null?void 0:g.yearButton)??Mst,E=on({elementType:P,externalSlotProps:y==null?void 0:y.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:x,type:"button",role:"radio","aria-current":m,"aria-checked":s,onClick:T=>u(T,l),onKeyDown:T=>d(T,l),onFocus:T=>f(T,l),onBlur:T=>p(T,l)},ownerState:n,className:S.yearButton});return $.jsx(kst,D({className:pe(S.root,o),ownerState:n},b,{children:$.jsx(P,D({},E))}))});function $st(e){return _e("MuiYearCalendar",e)}Le("MuiYearCalendar",["root"]);const Rst=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Dst=e=>{const{classes:t}=e;return Te({root:["root"]},$st,t)};function _st(e,t){const n=yn(),r=zh(),o=Jt({props:e,name:t});return D({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Si(n,o.minDate,r.minDate),maxDate:Si(n,o.maxDate,r.maxDate)})}const Lst=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:gk,maxHeight:rot,boxSizing:"border-box",position:"relative"}),Nst=v.forwardRef(function(t,n){const r=_st(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onChange:m,readOnly:g,shouldDisableYear:y,onYearFocus:b,hasFocus:x,onFocusedViewChange:S,yearsOrder:P="asc",yearsPerRow:E,timezone:T,gridLabelId:O,slots:k,slotProps:M}=r,I=Ue(r,Rst),{value:R,handleValueChange:_,timezone:N}=Xv({name:"YearCalendar",timezone:T,value:a,defaultValue:s,referenceDate:l,onChange:m,valueManager:Zr}),B=Vh(N),L=nr(),F=yn(),U=v.useMemo(()=>Zr.getInitialReferenceValue({value:R,utils:F,props:r,timezone:N,referenceDate:l,granularity:Dl.year}),[]),V=r,z=Dst(V),W=v.useMemo(()=>F.getYear(B),[F,B]),G=v.useMemo(()=>R!=null?F.getYear(R):null,[R,F]),[J,K]=v.useState(()=>G||F.getYear(U)),[ne,re]=bi({name:"YearCalendar",state:"hasFocus",controlled:x,default:o??!1}),oe=Ze(we=>{re(we),S&&S(we)}),fe=v.useCallback(we=>{if(d&&F.isBeforeYear(we,B)||u&&F.isAfterYear(we,B)||p&&F.isBeforeYear(we,p)||f&&F.isAfterYear(we,f))return!0;if(!y)return!1;const Oe=F.startOfYear(we);return y(Oe)},[u,d,f,p,B,y,F]),se=Ze((we,Oe)=>{if(g)return;const ke=F.setYear(R??U,Oe);_(ke)}),ee=Ze(we=>{fe(F.setYear(R??U,we))||(K(we),oe(!0),b==null||b(we))});v.useEffect(()=>{K(we=>G!==null&&we!==G?G:we)},[G]);const ce=P!=="desc"?E*1:E*-1,le=L&&P==="asc"||!L&&P==="desc"?-1:1,Q=Ze((we,Oe)=>{switch(we.key){case"ArrowUp":ee(Oe-ce),we.preventDefault();break;case"ArrowDown":ee(Oe+ce),we.preventDefault();break;case"ArrowLeft":ee(Oe-le),we.preventDefault();break;case"ArrowRight":ee(Oe+le),we.preventDefault();break}}),ue=Ze((we,Oe)=>{ee(Oe)}),ge=Ze((we,Oe)=>{J===Oe&&oe(!1)}),xe=v.useRef(null),me=Wt(n,xe);v.useEffect(()=>{if(o||xe.current===null)return;const we=xe.current.querySelector('[tabindex="0"]');if(!we)return;const Oe=we.offsetHeight,ke=we.offsetTop,je=xe.current.clientHeight,de=xe.current.scrollTop,Re=ke+Oe;Oe>je||ke<de||(xe.current.scrollTop=Re-je/2-Oe/2)},[o]);const be=F.getYearRange([p,f]);return P==="desc"&&be.reverse(),$.jsx(Lst,D({ref:me,className:pe(z.root,i),ownerState:V,role:"radiogroup","aria-labelledby":O},I,{children:be.map(we=>{const Oe=F.getYear(we),ke=Oe===G,je=c||fe(we);return $.jsx(Ast,{selected:ke,value:Oe,onClick:se,onKeyDown:Q,autoFocus:ne&&Oe===J,disabled:je,tabIndex:Oe===J&&!je?0:-1,onFocus:ue,onBlur:ge,"aria-current":W===Oe?"date":void 0,yearsPerRow:E,slots:k,slotProps:M,children:F.format(we,"year")},F.format(we,"year"))})}))}),Fst=e=>_e("MuiPickersCalendarHeader",e),jst=Le("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Bst=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],zst=["ownerState"],Vst=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Fst,t)},Hst=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Ust=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>D({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Wst=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Gst=ie(An,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${jst.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),qst=ie(jrt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Kst=v.forwardRef(function(t,n){const r=wo(),o=yn(),i=Jt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:b,views:x,labelId:S,className:P,timezone:E,format:T=`${o.formats.month} ${o.formats.year}`}=i,O=Ue(i,Bst),k=i,M=Vst(i),I=(a==null?void 0:a.switchViewButton)??Gst,R=on({elementType:I,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:k,className:M.switchViewButton}),_=(a==null?void 0:a.switchViewIcon)??qst,N=on({elementType:_,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:k,className:M.switchViewIcon}),B=Ue(N,zst),L=()=>m(o.addMonths(l,1),"left"),F=()=>m(o.addMonths(l,-1),"right"),U=tot(l,{disableFuture:u,maxDate:f,timezone:E}),V=not(l,{disablePast:d,minDate:p,timezone:E}),z=()=>{if(!(x.length===1||!g||c))if(x.length===2)g(x.find(G=>G!==y)||x[0]);else{const G=x.indexOf(y)!==0?0:1;g(x[G])}};if(x.length===1&&x[0]==="year")return null;const W=o.formatByString(l,T);return $.jsxs(Hst,D({},O,{ownerState:k,className:pe(M.root,P),ref:n,children:[$.jsxs(Ust,{role:"presentation",onClick:z,ownerState:k,"aria-live":"polite",className:M.labelContainer,children:[$.jsx(Toe,{reduceAnimations:b,transKey:W,children:$.jsx(Wst,{id:S,ownerState:k,className:M.label,children:W})}),x.length>1&&!c&&$.jsx(I,D({},R,{children:$.jsx(_,D({},B))}))]}),$.jsx(xv,{in:y==="day",children:$.jsx(Qre,{slots:a,slotProps:s,onGoToPrevious:F,isPreviousDisabled:V,previousLabel:r.previousMonth,onGoToNext:L,isNextDisabled:U,nextLabel:r.nextMonth})})]}))}),Yst="@media (prefers-reduced-motion: reduce)",qg=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),z8=qg&&qg[1]?parseInt(qg[1],10):null,V8=qg&&qg[2]?parseInt(qg[2],10):null,Xst=z8&&z8<10||V8&&V8<13||!1,Ioe=()=>bf(Yst,{defaultMatches:!1})||Xst,Qst=e=>_e("MuiDateCalendar",e);Le("MuiDateCalendar",["root","viewTransitionContainer"]);const Jst=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Zst=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Qst,t)};function elt(e,t){const n=yn(),r=zh(),o=Ioe(),i=Jt({props:e,name:t});return D({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>$.jsx("span",{children:"..."})),minDate:Si(n,i.minDate,r.minDate),maxDate:Si(n,i.maxDate,r.maxDate)})}const tlt=ie(vk,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:yk}),nlt=ie(Toe,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),rlt=v.forwardRef(function(t,n){const r=yn(),o=_n(),i=elt(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:p,onYearChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:S,view:P,views:E,openTo:T,className:O,disabled:k,readOnly:M,minDate:I,maxDate:R,disableHighlightToday:_,focusedView:N,onFocusedViewChange:B,showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:U,slots:V,slotProps:z,loading:W,renderLoading:G,displayWeekNumber:J,yearsOrder:K,yearsPerRow:ne,monthsPerRow:re,timezone:oe}=i,fe=Ue(i,Jst),{value:se,handleValueChange:ee,timezone:ce}=Xv({name:"DateCalendar",timezone:oe,value:l,defaultValue:c,referenceDate:u,onChange:p,valueManager:Zr}),{view:le,setView:Q,focusedView:ue,setFocusedView:ge,goToNextView:xe,setValueAndGoToNextView:me}=_S({view:P,views:E,openTo:T,onChange:ee,onViewChange:s,autoFocus:a,focusedView:N,onFocusedViewChange:B}),{referenceDate:be,calendarState:we,changeFocusedDay:Oe,changeMonth:ke,handleChangeMonth:je,isDateDisabled:de,onMonthSwitchingAnimationEnd:Re}=Uat({value:se,referenceDate:u,reduceAnimations:y,onMonthChange:g,minDate:I,maxDate:R,shouldDisableDate:b,disablePast:f,disableFuture:d,timezone:ce}),Me=k&&se||I,Ae=k&&se||R,Ne=`${o}-grid-label`,Je=ue!==null,nt=(V==null?void 0:V.calendarHeader)??Kst,st=on({elementType:nt,externalSlotProps:z==null?void 0:z.calendarHeader,additionalProps:{views:E,view:le,currentMonth:we.currentMonth,onViewChange:Q,onMonthChange:(xt,vn)=>je({newMonth:xt,direction:vn}),minDate:Me,maxDate:Ae,disabled:k,disablePast:f,disableFuture:d,reduceAnimations:y,timezone:ce,labelId:Ne},ownerState:i}),$t=Ze(xt=>{const vn=r.startOfMonth(xt),zn=r.endOfMonth(xt),Wn=de(xt)?lw({utils:r,date:xt,minDate:r.isBefore(I,vn)?vn:I,maxDate:r.isAfter(R,zn)?zn:R,disablePast:f,disableFuture:d,isDateDisabled:de,timezone:ce}):xt;Wn?(me(Wn,"finish"),g==null||g(vn)):(xe(),ke(vn)),Oe(Wn,!0)}),ct=Ze(xt=>{const vn=r.startOfYear(xt),zn=r.endOfYear(xt),Wn=de(xt)?lw({utils:r,date:xt,minDate:r.isBefore(I,vn)?vn:I,maxDate:r.isAfter(R,zn)?zn:R,disablePast:f,disableFuture:d,isDateDisabled:de,timezone:ce}):xt;Wn?(me(Wn,"finish"),m==null||m(Wn)):(xe(),ke(vn)),Oe(Wn,!0)}),_t=Ze(xt=>ee(xt&&_T(r,xt,se??be),"finish",le));v.useEffect(()=>{se!=null&&r.isValid(se)&&ke(se)},[se]);const pt=i,ot=Zst(pt),Pe={disablePast:f,disableFuture:d,maxDate:R,minDate:I},We={disableHighlightToday:_,readOnly:M,disabled:k,timezone:ce,gridLabelId:Ne,slots:V,slotProps:z},ft=v.useRef(le);v.useEffect(()=>{ft.current!==le&&(ue===ft.current&&ge(le,!0),ft.current=le)},[ue,ge,le]);const Ot=v.useMemo(()=>[se],[se]);return $.jsxs(tlt,D({ref:n,className:pe(ot.root,O),ownerState:pt},fe,{children:[$.jsx(nt,D({},st,{slots:V,slotProps:z})),$.jsx(nlt,{reduceAnimations:y,className:ot.viewTransitionContainer,transKey:le,ownerState:pt,children:$.jsxs("div",{children:[le==="year"&&$.jsx(Nst,D({},Pe,We,{value:se,onChange:ct,shouldDisableYear:S,hasFocus:Je,onFocusedViewChange:xt=>ge("year",xt),yearsOrder:K,yearsPerRow:ne,referenceDate:be})),le==="month"&&$.jsx(Est,D({},Pe,We,{hasFocus:Je,className:O,value:se,onChange:$t,shouldDisableMonth:x,onFocusedViewChange:xt=>ge("month",xt),monthsPerRow:re,referenceDate:be})),le==="day"&&$.jsx(pst,D({},we,Pe,We,{onMonthSwitchingAnimationEnd:Re,onFocusedDayChange:Oe,reduceAnimations:y,selectedDays:Ot,onSelectedDaysChange:_t,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:S,hasFocus:Je,onFocusedViewChange:xt=>ge("day",xt),showDaysOutsideCurrentMonth:L,fixedWeekNumber:F,dayOfWeekFormatter:U,displayWeekNumber:J,loading:W,renderLoading:G}))]})})]}))});function koe(e){return _e("MuiPickersToolbar",e)}const olt=Le("MuiPickersToolbar",["root","content"]),ilt=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],alt=e=>{const{classes:t}=e;return Te({root:["root"],content:["content"]},koe,t)},slt=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),llt=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),bB=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ue(r,ilt),u=r,d=alt(u);return s?null:$.jsxs(slt,D({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[$.jsx(ut,{color:"text.secondary",variant:"overline",id:l,children:a}),$.jsx(llt,{className:d.content,ownerState:u,children:o})]}))});function clt(e){return _e("MuiDatePickerToolbar",e)}Le("MuiDatePickerToolbar",["root","title"]);const ult=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],dlt=e=>{const{classes:t}=e;return Te({root:["root"],title:["title"]},clt,t)},flt=ie(bB,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),plt=ie(ut,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),hlt=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ue(r,ult),d=yn(),f=wo(),p=dlt(r),m=v.useMemo(()=>{if(!o)return s;const y=kx(d,{format:a,views:l},!0);return d.formatByString(o,y)},[o,a,s,d,l]),g=r;return $.jsx(flt,D({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(p.root,c)},u,{children:$.jsx(plt,{variant:"h4",align:i?"left":"center",ownerState:g,className:p.title,children:m})}))});function Moe(e,t){const n=yn(),r=zh(),o=Jt({props:e,name:t}),i=v.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:D({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return D({},o,{localeText:i},rB({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Si(n,o.minDate,r.minDate),maxDate:Si(n,o.maxDate,r.maxDate),slots:D({toolbar:hlt},o.slots)})}function mlt(e){return _e("MuiPickersPopper",e)}Le("MuiPickersPopper",["root","paper"]);const glt=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ylt=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},mlt,t)},vlt=ie($f,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),blt=ie(so,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function wlt(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function xlt(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),i=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Ze(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=mr(o.current);if(!o.current||"clientX"in l&&wlt(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=mr(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),v.useEffect(()=>{if(e){const l=mr(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const Slt=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ue(e,glt),d=D({},o,{placement:r}),f=on({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return $.jsx(n,D({},u,f,{onClick:p=>{var m;l(p),(m=f.onClick)==null||m.call(f,p)},onTouchStart:p=>{var m;c(p),(m=f.onTouchStart)==null||m.call(f,p)},ownerState:d,children:i}))});function Clt(e){const t=Jt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:p}=t;v.useEffect(()=>{function L(F){l&&F.key==="Escape"&&s()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[s,l]);const m=v.useRef(null);v.useEffect(()=>{c==="tooltip"||i&&!i()||(l?m.current=oa(document):m.current&&m.current instanceof HTMLElement&&setTimeout(()=>{m.current instanceof HTMLElement&&m.current.focus()}))},[l,c,i]);const[g,y,b]=xlt(l,a??s),x=v.useRef(null),S=Wt(x,o),P=Wt(S,g),E=t,T=ylt(E),O=Ioe(),k=p??O,M=L=>{L.key==="Escape"&&(L.stopPropagation(),s())},I=(d==null?void 0:d.desktopTransition)??k?xv:gh,R=(d==null?void 0:d.desktopTrapFocus)??EF,_=(d==null?void 0:d.desktopPaper)??blt,N=(d==null?void 0:d.popper)??vlt,B=on({elementType:N,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:M},className:T.root,ownerState:t});return $.jsx(N,D({},B,{children:({TransitionProps:L,placement:F})=>$.jsx(R,D({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:$.jsx(I,D({},L,f==null?void 0:f.desktopTransition,{children:$.jsx(Slt,{PaperComponent:_,ownerState:E,popperPlacement:F,ref:P,onPaperClick:y,onPaperTouchStart:b,paperClasses:T.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const Plt=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,i]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=v.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},Elt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},Tlt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Olt=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Ilt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=v.useRef(l),{current:p}=v.useRef(s!==void 0),[m,g]=v.useState(u),y=yn(),b=Bh(),{isOpen:x,setIsOpen:S}=Plt(e),{timezone:P,value:E,handleValueChange:T}=aB({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[O,k]=v.useState(()=>{let ee;return E!==void 0?ee=E:f!==void 0?ee=f:ee=t.emptyValue,{draft:ee,lastPublishedValue:ee,lastCommittedValue:ee,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),M=t.getTimezone(y,O.draft);m!==u&&(g(u),u&&M&&u!==M&&k(ee=>D({},ee,{draft:t.setTimezone(y,u,ee.draft)})));const{getValidationErrorForNewValue:I}=poe({props:e,validator:o,timezone:P,value:O.draft,onError:e.onError}),R=Ze(ee=>{const ce={action:ee,dateState:O,hasChanged:me=>!t.areValuesEqual(y,ee.value,me),isControlled:p,closeOnSelect:c},le=Elt(ce),Q=Tlt(ce),ue=Olt(ce);k(me=>D({},me,{draft:ee.value,lastPublishedValue:le?ee.value:me.lastPublishedValue,lastCommittedValue:Q?ee.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ge=null;const xe=()=>(ge||(ge={validationError:ee.name==="setValueFromField"?ee.context.validationError:I(ee.value)},ee.name==="setValueFromShortcut"&&(ge.shortcut=ee.shortcut)),ge);le&&T(ee.value,xe()),Q&&i&&i(ee.value,xe()),ue&&S(!1)});if(O.lastControlledValue!==s){const ee=t.areValuesEqual(y,O.draft,E);k(ce=>D({},ce,{lastControlledValue:s},ee?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const _=Ze(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),N=Ze(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),B=Ze(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),L=Ze(()=>{R({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),F=Ze(()=>{R({value:t.getTodayValue(y,P,n),name:"setValueFromAction",pickerAction:"today"})}),U=Ze(ee=>{ee.preventDefault(),S(!0)}),V=Ze(ee=>{ee==null||ee.preventDefault(),S(!1)}),z=Ze((ee,ce="partial")=>R({name:"setValueFromView",value:ee,selectionState:ce})),W=Ze((ee,ce,le)=>R({name:"setValueFromShortcut",value:ee,changeImportance:ce,shortcut:le})),G=Ze((ee,ce)=>R({name:"setValueFromField",value:ee,context:ce})),J={onClear:_,onAccept:N,onDismiss:B,onCancel:L,onSetToday:F,onOpen:U,onClose:V},K={value:O.draft,onChange:G},ne=v.useMemo(()=>t.cleanValue(y,O.draft),[y,t,O.draft]),re={value:ne,onChange:z,onClose:V,open:x},fe=D({},J,{value:ne,onChange:z,onSelectShortcut:W,isValid:ee=>{const ce=o({adapter:b,value:ee,timezone:P,props:e});return!t.hasError(ce)}}),se=v.useMemo(()=>({onOpen:U,onClose:V,open:x}),[x,V,U]);return{open:x,fieldProps:K,viewProps:re,layoutProps:fe,actions:J,contextValue:se}},klt=["className","sx"],Mlt=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:p,timezone:m}=e,g=Ue(e,klt),{view:y,setView:b,defaultView:x,focusedView:S,setFocusedView:P,setValueAndGoToNextView:E}=_S({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:T,viewModeLookup:O}=v.useMemo(()=>u.reduce((B,L)=>{let F;return p[L]!=null?F="UI":F="field",B.viewModeLookup[L]=F,F==="UI"&&(B.hasUIView=!0),B},{hasUIView:!1,viewModeLookup:{}}),[p,u]),k=v.useMemo(()=>u.reduce((B,L)=>p[L]!=null&&nv(L)?B+1:B,0),[p,u]),M=O[y],I=Ze(()=>M==="UI"),[R,_]=v.useState(M==="UI"?y:null);return R!==y&&O[y]==="UI"&&_(y),xn(()=>{M==="field"&&s&&(l(),setTimeout(()=>{var B,L;(B=i==null?void 0:i.current)==null||B.setSelectedSections(y),(L=i==null?void 0:i.current)==null||L.focusField(y)}))},[y]),xn(()=>{if(!s)return;let B=y;M==="field"&&R!=null&&(B=R),B!==x&&O[B]==="UI"&&O[x]==="UI"&&(B=x),B!==y&&b(B),P(B,!0)},[s]),{hasUIView:T,shouldRestoreFocus:I,layoutProps:{views:u,view:R,onViewChange:b},renderCurrentView:()=>{if(R==null)return null;const B=p[R];if(B==null)return null;const L=D({},g,n,t,{views:u,timezone:m,onChange:E,view:R,onViewChange:b,focusedView:S,onFocusedViewChange:P,showViewSwitcher:k>1,timeViewsCount:k});return o?o(p,R,L):B(L)}}};function H8(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Alt=(e,t)=>{const[n,r]=v.useState(H8);return xn(()=>{const i=()=>{r(H8())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Jm(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},$lt=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=Alt(n.views,o),a=nr();return{layoutProps:D({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Rlt(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Aoe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=Ilt({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=Mlt({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=$lt({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=Rlt({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function $oe(e){return _e("MuiPickersLayout",e)}const Al=Le("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Dlt=["onAccept","onClear","onCancel","onSetToday","actions"];function _lt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ue(e,Dlt),s=wo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return $.jsx(yt,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return $.jsx(yt,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return $.jsx(yt,{onClick:t,children:s.okButtonLabel},c);case"today":return $.jsx(yt,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return $.jsx(OJ,D({},a,{children:l}))}const Llt=["items","changeImportance","isLandscape","onChange","isValid"],Nlt=["getValue"];function Flt(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ue(e,Llt);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ue(s,Nlt);const u=l({isValid:o});return D({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return $.jsx(ol,D({dense:!0,sx:[{maxHeight:yk,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>$.jsx(Ja,{children:$.jsx(hh,D({},s))},s.id??s.label))}))}function jlt(e){return e.view!==null}const Blt=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},$oe,t)},Roe=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:p,disabled:m,readOnly:g,children:y,slots:b,slotProps:x}=e,S=Blt(e),P=(b==null?void 0:b.actionBar)??_lt,E=on({elementType:P,externalSlotProps:x==null?void 0:x.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:S.actionBar,ownerState:D({},e,{wrapperVariant:t})}),T=$.jsx(P,D({},E)),O=b==null?void 0:b.toolbar,k=on({elementType:O,externalSlotProps:x==null?void 0:x.toolbar,additionalProps:{isLandscape:p,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:m,readOnly:g},className:S.toolbar,ownerState:D({},e,{wrapperVariant:t})}),M=jlt(k)&&O?$.jsx(O,D({},k)):null,I=y,R=b==null?void 0:b.tabs,_=a&&R?$.jsx(R,D({view:a,onViewChange:l,className:S.tabs},x==null?void 0:x.tabs)):null,N=(b==null?void 0:b.shortcuts)??Flt,B=on({elementType:N,externalSlotProps:x==null?void 0:x.shortcuts,additionalProps:{isValid:f,isLandscape:p,onChange:d},className:S.shortcuts,ownerState:{isValid:f,isLandscape:p,onChange:d,wrapperVariant:t}}),L=a&&N?$.jsx(N,D({},B)):null;return{toolbar:M,content:I,tabs:_,actionBar:T,shortcuts:L}},zlt=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},$oe,n)},Doe=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Al.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Al.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Al.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Al.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Al.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Al.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Al.shortcuts}`]:{gridColumn:3}}}]}),_oe=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Loe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=Roe(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,p=zlt(r);return $.jsxs(Doe,{ref:n,sx:c,className:pe(p.root,u),ownerState:r,children:[d?l:o,d?o:l,$.jsx(_oe,{className:p.contentWrapper,children:f==="desktop"?$.jsxs(v.Fragment,{children:[i,a]}):$.jsxs(v.Fragment,{children:[a,i]})}),s]})}),Vlt=["props","getOpenDialogAriaText"],Hlt=["ownerState"],Ult=["ownerState"],wB=e=>{var xe;let{props:t,getOpenDialogAriaText:n}=e,r=Ue(e,Vlt);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,name:m,label:g,inputRef:y,readOnly:b,disabled:x,autoFocus:S,localeText:P,reduceAnimations:E}=t,T=v.useRef(null),O=v.useRef(null),k=_n(),M=((xe=i==null?void 0:i.toolbar)==null?void 0:xe.hidden)??!1,{open:I,actions:R,hasUIView:_,layoutProps:N,renderCurrentView:B,shouldRestoreFocus:L,fieldProps:F,contextValue:U,ownerState:V}=Aoe(D({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=o.inputAdornment??co,W=on({elementType:z,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),G=Ue(W,Hlt),J=o.openPickerButton??An,K=on({elementType:J,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:x||b,onClick:I?R.onClose:R.onOpen,"aria-label":n(F.value),edge:G.position},ownerState:t}),ne=Ue(K,Ult),re=o.openPickerIcon,oe=on({elementType:re,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:V}),fe=o.field,se=on({elementType:fe,externalSlotProps:i==null?void 0:i.field,additionalProps:D({},F,M&&{id:k},{readOnly:b,disabled:x,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,label:g,name:m,autoFocus:S&&!t.open,focused:I?!0:void 0},y?{inputRef:y}:{}),ownerState:t});_&&(se.InputProps=D({},se.InputProps,{ref:T},!t.disableOpenPicker&&{[`${G.position}Adornment`]:$.jsx(z,D({},G,{children:$.jsx(J,D({},ne,{children:$.jsx(re,D({},oe))}))}))}));const ee=D({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},se.slots),ce=o.layout??Loe;let le=k;M&&(g?le=`${k}-label`:le=void 0);const Q=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:k}),popper:D({"aria-labelledby":le},i==null?void 0:i.popper)}),ue=Wt(O,se.unstableFieldRef);return{renderPicker:()=>$.jsxs(hoe,{contextValue:U,localeText:P,children:[$.jsx(fe,D({},se,{slots:ee,slotProps:Q,unstableFieldRef:ue})),$.jsx(Clt,D({role:"dialog",placement:"bottom-start",anchorEl:T.current},R,{open:I,slots:o,slotProps:Q,shouldRestoreFocus:L,reduceAnimations:E,children:$.jsx(ce,D({},N,Q==null?void 0:Q.layout,{slots:o,slotProps:Q,children:B()}))}))]})}},Ys=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:x,onMonthChange:S,monthsPerRow:P,onYearChange:E,yearsOrder:T,yearsPerRow:O,slots:k,slotProps:M,loading:I,renderLoading:R,disableHighlightToday:_,readOnly:N,disabled:B,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:F,sx:U,autoFocus:V,fixedWeekNumber:z,displayWeekNumber:W,timezone:G})=>$.jsx(rlt,{view:e,onViewChange:t,views:n.filter(ov),focusedView:r&&ov(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:x,onMonthChange:S,monthsPerRow:P,onYearChange:E,yearsOrder:T,yearsPerRow:O,slots:k,slotProps:M,loading:I,renderLoading:R,disableHighlightToday:_,readOnly:N,disabled:B,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:F,sx:U,autoFocus:V,fixedWeekNumber:z,displayWeekNumber:W,timezone:G}),Noe=v.forwardRef(function(t,n){var c,u;const r=wo(),o=yn(),i=Moe(t,"MuiDesktopDatePicker"),a=D({day:Ys,month:Ys,year:Ys},i.viewRenderers),s=D({},i,{viewRenderers:a,format:kx(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:D({openPickerIcon:Xre,field:Soe},i.slots),slotProps:D({},i.slotProps,{field:d=>{var f;return D({},_u((f=i.slotProps)==null?void 0:f.field,d),Jv(i),{ref:n})},toolbar:D({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=wB({props:s,valueManager:Zr,valueType:"date",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Qv});return l()});Noe.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,dayOfWeekFormatter:j.func,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,enableAccessibleFieldDOMStructure:j.any,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.object,minDate:j.object,monthsPerRow:j.oneOf([3,4]),name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.object,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsOrder:j.oneOf(["asc","desc"]),yearsPerRow:j.oneOf([3,4])};const Wlt=ie(TJ)({[`& .${Q0.container}`]:{outline:0},[`& .${Q0.paper}`]:{outline:0,minWidth:gk}}),Glt=ie(IJ)({"&:first-of-type":{padding:0}});function qlt(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??Wlt,s=(o==null?void 0:o.mobileTransition)??xv;return $.jsx(a,D({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:$.jsx(Glt,{children:t})}))}const Klt=["props","getOpenDialogAriaText"],xB=e=>{var G;let{props:t,getOpenDialogAriaText:n}=e,r=Ue(e,Klt);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,name:m,label:g,inputRef:y,readOnly:b,disabled:x,localeText:S}=t,P=v.useRef(null),E=_n(),T=((G=i==null?void 0:i.toolbar)==null?void 0:G.hidden)??!1,{open:O,actions:k,layoutProps:M,renderCurrentView:I,fieldProps:R,contextValue:_}=Aoe(D({},r,{props:t,fieldRef:P,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=o.field,B=on({elementType:N,externalSlotProps:i==null?void 0:i.field,additionalProps:D({},R,T&&{id:E},!(x||b)&&{onClick:k.onOpen,onKeyDown:iit(k.onOpen)},{readOnly:b??!0,disabled:x,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,label:g,name:m},y?{inputRef:y}:{}),ownerState:t});B.inputProps=D({},B.inputProps,{"aria-label":n(R.value)});const L=D({textField:o.textField},B.slots),F=o.layout??Loe;let U=E;T&&(g?U=`${E}-label`:U=void 0);const V=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:D({"aria-labelledby":U},i==null?void 0:i.mobilePaper)}),z=Wt(P,B.unstableFieldRef);return{renderPicker:()=>$.jsxs(hoe,{contextValue:_,localeText:S,children:[$.jsx(N,D({},B,{slots:L,slotProps:V,unstableFieldRef:z})),$.jsx(qlt,D({},k,{open:O,slots:o,slotProps:V,children:$.jsx(F,D({},M,V==null?void 0:V.layout,{slots:o,slotProps:V,children:I()}))}))]})}},Foe=v.forwardRef(function(t,n){var c,u;const r=wo(),o=yn(),i=Moe(t,"MuiMobileDatePicker"),a=D({day:Ys,month:Ys,year:Ys},i.viewRenderers),s=D({},i,{viewRenderers:a,format:kx(o,i,!1),slots:D({field:Soe},i.slots),slotProps:D({},i.slotProps,{field:d=>{var f;return D({},_u((f=i.slotProps)==null?void 0:f.field,d),Jv(i),{ref:n})},toolbar:D({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=xB({props:s,valueManager:Zr,valueType:"date",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Qv});return l()});Foe.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,dayOfWeekFormatter:j.func,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,enableAccessibleFieldDOMStructure:j.any,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.object,minDate:j.object,monthsPerRow:j.oneOf([3,4]),name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.object,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsOrder:j.oneOf(["asc","desc"]),yearsPerRow:j.oneOf([3,4])};const Ylt=["desktopModeMediaQuery"],joe=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=dB}=r,i=Ue(r,Ylt);return bf(o,{defaultMatches:!0})?$.jsx(Noe,D({ref:n},i)):$.jsx(Foe,D({ref:n},i))});function Xlt(e){return _e("MuiPickersToolbarText",e)}const Q_=Le("MuiPickersToolbarText",["root","selected"]),Qlt=["className","selected","value"],Jlt=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},Xlt,t)},Zlt=ie(ut,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Q_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Q_.selected}`]:{color:(e.vars||e).palette.text.primary}})),SB=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbarText"}),{className:o,value:i}=r,a=Ue(r,Qlt),s=Jlt(r);return $.jsx(Zlt,D({ref:n,className:pe(s.root,o),component:"span"},a,{children:i}))}),ect=["align","className","selected","typographyClassName","value","variant","width"],tct=e=>{const{classes:t}=e;return Te({root:["root"]},koe,t)},nct=ie(yt,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Na=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,selected:a,typographyClassName:s,value:l,variant:c,width:u}=r,d=Ue(r,ect),f=tct(r);return $.jsx(nct,D({variant:"text",ref:n,className:pe(f.root,i)},u?{sx:{width:u}}:{},d,{children:$.jsx(SB,{align:o,className:s,variant:c,value:l,selected:a})}))});function rct(e){return _e("MuiTimePickerToolbar",e)}const cw=Le("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),oct=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],ict=e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return Te({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},rct,n)},act=ie(bB,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sct=ie(SB,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),lct=ie("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${cw.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${cw.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),cct=ie("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${cw.ampmLabel}`]:t.ampmLabel},{[`&.${cw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${cw.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function uct(e){const t=Jt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:s,onViewChange:l,views:c,disabled:u,readOnly:d,className:f}=t,p=Ue(t,oct),m=yn(),g=wo(),y=nr(),b=!!(n&&!r&&c.includes("hours")),{meridiemMode:x,handleMeridiemChange:S}=hk(o,n,a),P=k=>n?m.format(k,"hours12h"):m.format(k,"hours24h"),E=D({},t,{isRtl:y}),T=ict(E),O=$.jsx(sct,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:T.separator});return $.jsxs(act,D({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:i,ownerState:E,className:pe(T.root,f)},p,{children:[$.jsxs(lct,{className:T.hourMinuteLabel,ownerState:E,children:[Jm(c,"hours")&&$.jsx(Na,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?P(o):"--"}),Jm(c,["hours","minutes"])&&O,Jm(c,"minutes")&&$.jsx(Na,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),Jm(c,["minutes","seconds"])&&O,Jm(c,"seconds")&&$.jsx(Na,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),b&&$.jsxs(cct,{className:T.ampmSelection,ownerState:E,children:[$.jsx(Na,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:T.ampmLabel,value:Nl(m,"am"),onClick:d?void 0:()=>S("am"),disabled:u}),$.jsx(Na,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:T.ampmLabel,value:Nl(m,"pm"),onClick:d?void 0:()=>S("pm"),disabled:u})]})]}))}function Boe(e,t){var a;const n=yn(),r=Jt({props:e,name:t}),o=r.ampm??n.is12HourCycleInCurrentLocale(),i=v.useMemo(()=>{var s;return((s=r.localeText)==null?void 0:s.toolbarTitle)==null?r.localeText:D({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return D({},r,{ampm:o,localeText:i},rB({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:D({toolbar:uct},r.slots),slotProps:D({},r.slotProps,{toolbar:D({ampm:o,ampmInClock:r.ampmInClock},(a=r.slotProps)==null?void 0:a.toolbar)})})}const Kg=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:x,slots:S,slotProps:P,readOnly:E,disabled:T,sx:O,autoFocus:k,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:I,timezone:R})=>$.jsx(nit,{view:e,onViewChange:t,focusedView:n&&nv(n)?n:null,onFocusedViewChange:r,views:o.filter(nv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:x,slots:S,slotProps:P,readOnly:E,disabled:T,sx:O,autoFocus:k,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:I,timezone:R}),zoe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R})=>$.jsx(dit,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(nv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeStep:M==null?void 0:M.minutes,skipDisabled:I,timezone:R}),NT=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R})=>$.jsx(Pit,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(nv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R}),dct=["views","format"],Voe=(e,t,n)=>{let{views:r,format:o}=t,i=Ue(t,dct);if(o)return o;const a=[],s=[];if(r.forEach(u=>{nv(u)?s.push(u):ov(u)&&a.push(u)}),s.length===0)return kx(e,D({views:a},i),!1);if(a.length===0)return DT(e,D({views:s},i));const l=DT(e,D({views:s},i));return`${kx(e,D({views:a},i),!1)} ${l}`},fct=(e,t,n)=>n?t.filter(r=>!I0(r)||r==="hours"):e?[...t,"meridiem"]:t,pct=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Hoe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=D({hours:1,minutes:5,seconds:5},n),a=pct(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:fct(t,r,a)}}const Uoe=v.forwardRef(function(t,n){var b,x,S,P;const r=wo(),o=yn(),i=Boe(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:a,views:s,timeSteps:l}=Hoe(i),c=a?zoe:NT,u=D({hours:c,minutes:c,seconds:c,meridiem:c},i.viewRenderers),d=i.ampmInClock??!0,f=a?[]:["accept"],m=((b=u.hours)==null?void 0:b.name)===NT.name?s:s.filter(E=>E!=="meridiem"),g=D({},i,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:DT(o,i),views:a?["hours"]:m,slots:D({field:Coe,openPickerIcon:Vrt},i.slots),slotProps:D({},i.slotProps,{field:E=>{var T;return D({},_u((T=i.slotProps)==null?void 0:T.field,E),Jv(i),{ref:n})},toolbar:D({hidden:!0,ampmInClock:d},(x=i.slotProps)==null?void 0:x.toolbar),actionBar:D({actions:f},(S=i.slotProps)==null?void 0:S.actionBar)})}),{renderPicker:y}=wB({props:g,valueManager:Zr,valueType:"time",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullTime",contextTranslation:r.openTimePickerDialogue,propsTranslation:(P=g.localeText)==null?void 0:P.openTimePickerDialogue}),validator:LS});return y()});Uoe.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,enableAccessibleFieldDOMStructure:j.any,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,localeText:j.object,maxTime:j.object,minTime:j.object,minutesStep:j.number,name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.object,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const Woe=v.forwardRef(function(t,n){var u,d;const r=wo(),o=yn(),i=Boe(t,"MuiMobileTimePicker"),a=D({hours:Kg,minutes:Kg,seconds:Kg},i.viewRenderers),s=i.ampmInClock??!1,l=D({},i,{ampmInClock:s,viewRenderers:a,format:DT(o,i),slots:D({field:Coe},i.slots),slotProps:D({},i.slotProps,{field:f=>{var p;return D({},_u((p=i.slotProps)==null?void 0:p.field,f),Jv(i),{ref:n})},toolbar:D({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=xB({props:l,valueManager:Zr,valueType:"time",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullTime",contextTranslation:r.openTimePickerDialogue,propsTranslation:(d=l.localeText)==null?void 0:d.openTimePickerDialogue}),validator:LS});return c()});Woe.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,enableAccessibleFieldDOMStructure:j.any,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,localeText:j.object,maxTime:j.object,minTime:j.object,minutesStep:j.number,name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.object,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const hct=["desktopModeMediaQuery"],mct=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=dB}=r,i=Ue(r,hct);return bf(o,{defaultMatches:!0})?$.jsx(Uoe,D({ref:n},i)):$.jsx(Woe,D({ref:n},i))});function gct(e){return _e("MuiDateTimePickerTabs",e)}Le("MuiDateTimePickerTabs",["root"]);const yct=e=>ov(e)?"date":"time",vct=e=>e==="date"?"day":"hours",bct=e=>{const{classes:t}=e;return Te({root:["root"]},gct,t)},wct=ie(u$e,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${PP.indicator}`]:{bottom:"auto",top:0}}})),xct=function(t){const n=Jt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=$.jsx(Hrt,{}),onViewChange:o,timeIcon:i=$.jsx(Urt,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=n,u=wo(),d=bct(n),f=(p,m)=>{o(vct(m))};return s?null:$.jsxs(wct,{ownerState:n,variant:"fullWidth",value:yct(a),onChange:f,className:pe(l,d.root),sx:c,children:[$.jsx(X3,{value:"date","aria-label":u.dateTableLabel,icon:$.jsx(v.Fragment,{children:r})}),$.jsx(X3,{value:"time","aria-label":u.timeTableLabel,icon:$.jsx(v.Fragment,{children:i})})]})};function Sct(e){return _e("MuiDateTimePickerToolbar",e)}const j$=Le("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Cct=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],Pct=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return Te({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Sct,t)},Ect=ie(bB,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${olt.content} .${Q_.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),Tct=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Oct=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),Ict=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),U8=ie(SB,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),kct=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${j$.ampmLabel}`]:t.ampmLabel},{[`&.${j$.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${j$.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function Mct(e){const t=Jt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:i,view:a,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:f,readOnly:p,toolbarVariant:m="mobile",toolbarTitle:g,className:y}=t,b=Ue(t,Cct),x=nr(),S=D({},t,{isRtl:x}),P=yn(),{meridiemMode:E,handleMeridiemChange:T}=hk(o,n,i),O=!!(n&&!r),k=m==="desktop",M=wo(),I=Pct(S),R=g??M.dateTimePickerToolbarTitle,_=B=>n?P.format(B,"hours12h"):P.format(B,"hours24h"),N=v.useMemo(()=>o?c?P.formatByString(o,c):P.format(o,"shortDate"):u,[o,c,u,P]);return $.jsxs(Ect,D({isLandscape:s,className:pe(I.root,y),toolbarTitle:R},b,{ownerState:S,children:[$.jsxs(Tct,{className:I.dateContainer,ownerState:S,children:[d.includes("year")&&$.jsx(Na,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:o?P.format(o,"year"):"–"}),d.includes("day")&&$.jsx(Na,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:N})]}),$.jsxs(Oct,{className:I.timeContainer,ownerState:S,children:[$.jsxs(Ict,{className:I.timeDigitsContainer,ownerState:S,children:[d.includes("hours")&&$.jsxs(v.Fragment,{children:[$.jsx(Na,{variant:k?"h5":"h3",width:k&&!s?k0:void 0,onClick:()=>l("hours"),selected:a==="hours",value:o?_(o):"--"}),$.jsx(U8,{variant:k?"h5":"h3",value:":",className:I.separator,ownerState:S}),$.jsx(Na,{variant:k?"h5":"h3",width:k&&!s?k0:void 0,onClick:()=>l("minutes"),selected:a==="minutes"||!d.includes("minutes")&&a==="hours",value:o?P.format(o,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&$.jsxs(v.Fragment,{children:[$.jsx(U8,{variant:k?"h5":"h3",value:":",className:I.separator,ownerState:S}),$.jsx(Na,{variant:k?"h5":"h3",width:k&&!s?k0:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:o?P.format(o,"seconds"):"--"})]})]}),O&&!k&&$.jsxs(kct,{className:I.ampmSelection,ownerState:S,children:[$.jsx(Na,{variant:"subtitle2",selected:E==="am",typographyClassName:I.ampmLabel,value:Nl(P,"am"),onClick:p?void 0:()=>T("am"),disabled:f}),$.jsx(Na,{variant:"subtitle2",selected:E==="pm",typographyClassName:I.ampmLabel,value:Nl(P,"pm"),onClick:p?void 0:()=>T("pm"),disabled:f})]}),n&&k&&$.jsx(Na,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:o&&E?Nl(P,E):"--",width:k0})]})]}))}function Goe(e,t){var s;const n=yn(),r=zh(),o=Jt({props:e,name:t}),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=v.useMemo(()=>{var l;return((l=o.localeText)==null?void 0:l.toolbarTitle)==null?o.localeText:D({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return D({},o,rB({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:i,localeText:a,orientation:o.orientation??"portrait",disableIgnoringDatePartForTimeValidation:o.disableIgnoringDatePartForTimeValidation??!!(o.minDateTime||o.maxDateTime||o.disablePast||o.disableFuture),disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Si(n,o.minDateTime??o.minDate,r.minDate),maxDate:Si(n,o.maxDateTime??o.maxDate,r.maxDate),minTime:o.minDateTime??o.minTime,maxTime:o.maxDateTime??o.maxTime,slots:D({toolbar:Mct,tabs:xct},o.slots),slotProps:D({},o.slotProps,{toolbar:D({ampm:i},(s=o.slotProps)==null?void 0:s.toolbar)})})}const Act=v.forwardRef(function(t,n){var g;const r=nr(),{toolbar:o,tabs:i,content:a,actionBar:s,shortcuts:l}=Roe(t),{sx:c,className:u,isLandscape:d,classes:f}=t,p=s&&(((g=s.props.actions)==null?void 0:g.length)??0)>0,m=D({},t,{isRtl:r});return $.jsxs(Doe,{ref:n,className:pe(Al.root,f==null?void 0:f.root,u),sx:[{[`& .${Al.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Al.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:m,children:[d?l:o,d?o:l,$.jsxs(_oe,{className:pe(Al.contentWrapper,f==null?void 0:f.contentWrapper),sx:{display:"grid"},children:[a,i,p&&$.jsx(Qa,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})}),$ct=["openTo","focusedView","timeViewsCount"],Rct=function(t,n,r){var u,d;const{openTo:o,focusedView:i,timeViewsCount:a}=r,s=Ue(r,$ct),l=D({},s,{focusedView:null,sx:[{[`&.${N8.root}`]:{borderBottom:0},[`&.${N8.root}, .${hit.root}, &.${oit.root}`]:{maxHeight:yk}}]}),c=I0(n);return $.jsxs(v.Fragment,{children:[(u=t[c?"day":n])==null?void 0:u.call(t,D({},r,{view:c?"day":n,focusedView:i&&ov(i)?i:null,views:r.views.filter(ov),sx:[{gridColumn:1},...l.sx]})),a>0&&$.jsxs(v.Fragment,{children:[$.jsx(Qa,{orientation:"vertical",sx:{gridColumn:2}}),(d=t[c?n:"hours"])==null?void 0:d.call(t,D({},l,{view:c?n:"hours",focusedView:i&&I0(i)?i:null,openTo:I0(o)?o:"hours",views:r.views.filter(I0),sx:[{gridColumn:3},...l.sx]}))]})]})},qoe=v.forwardRef(function(t,n){var x,S,P,E;const r=wo(),o=yn(),i=Goe(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:a,thresholdToRenderTimeInASingleColumn:s,views:l,timeSteps:c}=Hoe(i),u=a?zoe:NT,d=D({day:Ys,month:Ys,year:Ys,hours:u,minutes:u,seconds:u,meridiem:u},i.viewRenderers),f=i.ampmInClock??!0,m=((x=d.hours)==null?void 0:x.name)===NT.name?l:l.filter(T=>T!=="meridiem"),g=a?[]:["accept"],y=D({},i,{viewRenderers:d,format:Voe(o,i),views:m,yearsPerRow:i.yearsPerRow??4,ampmInClock:f,timeSteps:c,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:a,slots:D({field:Poe,layout:Act,openPickerIcon:Xre},i.slots),slotProps:D({},i.slotProps,{field:T=>{var O;return D({},_u((O=i.slotProps)==null?void 0:O.field,T),Jv(i),{ref:n})},toolbar:D({hidden:!0,ampmInClock:f,toolbarVariant:"desktop"},(S=i.slotProps)==null?void 0:S.toolbar),tabs:D({hidden:!0},(P=i.slotProps)==null?void 0:P.tabs),actionBar:T=>{var O;return D({actions:g},_u((O=i.slotProps)==null?void 0:O.actionBar,T))}})}),{renderPicker:b}=wB({props:y,valueManager:Zr,valueType:"date-time",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(E=y.localeText)==null?void 0:E.openDatePickerDialogue}),validator:wk,rendererInterceptor:Rct});return b()});qoe.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,dayOfWeekFormatter:j.func,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,enableAccessibleFieldDOMStructure:j.any,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.object,maxDateTime:j.object,maxTime:j.object,minDate:j.object,minDateTime:j.object,minTime:j.object,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.object,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:j.oneOf(["asc","desc"]),yearsPerRow:j.oneOf([3,4])};const Koe=v.forwardRef(function(t,n){var u,d,f;const r=wo(),o=yn(),i=Goe(t,"MuiMobileDateTimePicker"),a=D({day:Ys,month:Ys,year:Ys,hours:Kg,minutes:Kg,seconds:Kg},i.viewRenderers),s=i.ampmInClock??!1,l=D({},i,{viewRenderers:a,format:Voe(o,i),ampmInClock:s,slots:D({field:Poe},i.slots),slotProps:D({},i.slotProps,{field:p=>{var m;return D({},_u((m=i.slotProps)==null?void 0:m.field,p),Jv(i),{ref:n})},toolbar:D({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar),tabs:D({hidden:!1},(d=i.slotProps)==null?void 0:d.tabs)})}),{renderPicker:c}=xB({props:l,valueManager:Zr,valueType:"date-time",getOpenDialogAriaText:Yv({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=l.localeText)==null?void 0:f.openDatePickerDialogue}),validator:wk});return c()});Koe.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,dayOfWeekFormatter:j.func,defaultValue:j.object,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,enableAccessibleFieldDOMStructure:j.any,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:mv,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.object,maxDateTime:j.object,maxTime:j.object,minDate:j.object,minDateTime:j.object,minTime:j.object,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),name:j.string,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.object,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.object,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:j.oneOf(["asc","desc"]),yearsPerRow:j.oneOf([3,4])};const Dct=["desktopModeMediaQuery"],_ct=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=dB}=r,i=Ue(r,Dct);return bf(o,{defaultMatches:!0})?$.jsx(qoe,D({ref:n},i)):$.jsx(Koe,D({ref:n},i))});class Hh extends Error{}class Lct extends Hh{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Nct extends Hh{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Fct extends Hh{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Pg extends Hh{}class Yoe extends Hh{constructor(t){super(`Invalid unit ${t}`)}}class hi extends Hh{}class bd extends Hh{constructor(){super("Zone is an abstract class")}}const mt="numeric",Ql="short",Ka="long",FT={year:mt,month:mt,day:mt},Xoe={year:mt,month:Ql,day:mt},jct={year:mt,month:Ql,day:mt,weekday:Ql},Qoe={year:mt,month:Ka,day:mt},Joe={year:mt,month:Ka,day:mt,weekday:Ka},Zoe={hour:mt,minute:mt},eie={hour:mt,minute:mt,second:mt},tie={hour:mt,minute:mt,second:mt,timeZoneName:Ql},nie={hour:mt,minute:mt,second:mt,timeZoneName:Ka},rie={hour:mt,minute:mt,hourCycle:"h23"},oie={hour:mt,minute:mt,second:mt,hourCycle:"h23"},iie={hour:mt,minute:mt,second:mt,hourCycle:"h23",timeZoneName:Ql},aie={hour:mt,minute:mt,second:mt,hourCycle:"h23",timeZoneName:Ka},sie={year:mt,month:mt,day:mt,hour:mt,minute:mt},lie={year:mt,month:mt,day:mt,hour:mt,minute:mt,second:mt},cie={year:mt,month:Ql,day:mt,hour:mt,minute:mt},uie={year:mt,month:Ql,day:mt,hour:mt,minute:mt,second:mt},Bct={year:mt,month:Ql,day:mt,weekday:Ql,hour:mt,minute:mt},die={year:mt,month:Ka,day:mt,hour:mt,minute:mt,timeZoneName:Ql},fie={year:mt,month:Ka,day:mt,hour:mt,minute:mt,second:mt,timeZoneName:Ql},pie={year:mt,month:Ka,day:mt,weekday:Ka,hour:mt,minute:mt,timeZoneName:Ka},hie={year:mt,month:Ka,day:mt,weekday:Ka,hour:mt,minute:mt,second:mt,timeZoneName:Ka};class NS{get type(){throw new bd}get name(){throw new bd}get ianaName(){return this.name}get isUniversal(){throw new bd}offsetName(t,n){throw new bd}formatOffset(t,n){throw new bd}offset(t){throw new bd}equals(t){throw new bd}get isValid(){throw new bd}}let B$=null;class Sk extends NS{static get instance(){return B$===null&&(B$=new Sk),B$}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Cie(t,n,r)}formatOffset(t,n){return uw(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let MP={};function zct(e){return MP[e]||(MP[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),MP[e]}const Vct={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Hct(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}function Uct(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const{type:i,value:a}=n[o],s=Vct[i];i==="era"?r[s]=a:qt(s)||(r[s]=parseInt(a,10))}return r}let zC={};class Xu extends NS{static create(t){return zC[t]||(zC[t]=new Xu(t)),zC[t]}static resetCache(){zC={},MP={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xu.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Cie(t,n,r,this.name)}formatOffset(t,n){return uw(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=zct(this.name);let[o,i,a,s,l,c,u]=r.formatToParts?Uct(r,n):Hct(r,n);s==="BC"&&(o=-Math.abs(o)+1);const f=Pk({year:o,month:i,day:a,hour:l===24?0:l,minute:c,second:u,millisecond:0});let p=+n;const m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let W8={};function Wct(e,t={}){const n=JSON.stringify([e,t]);let r=W8[n];return r||(r=new Intl.ListFormat(e,t),W8[n]=r),r}let J_={};function Z_(e,t={}){const n=JSON.stringify([e,t]);let r=J_[n];return r||(r=new Intl.DateTimeFormat(e,t),J_[n]=r),r}let eL={};function Gct(e,t={}){const n=JSON.stringify([e,t]);let r=eL[n];return r||(r=new Intl.NumberFormat(e,t),eL[n]=r),r}let tL={};function qct(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=tL[o];return i||(i=new Intl.RelativeTimeFormat(e,t),tL[o]=i),i}let M0=null;function Kct(){return M0||(M0=new Intl.DateTimeFormat().resolvedOptions().locale,M0)}let G8={};function Yct(e){let t=G8[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,G8[e]=t}return t}function Xct(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,o;try{r=Z_(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);r=Z_(l).resolvedOptions(),o=l}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function Qct(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Jct(e){const t=[];for(let n=1;n<=12;n++){const r=It.utc(2009,n,1);t.push(e(r))}return t}function Zct(e){const t=[];for(let n=1;n<=7;n++){const r=It.utc(2016,11,13+n);t.push(e(r))}return t}function VC(e,t,n,r){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):r(t)}function eut(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class tut{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Gct(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):OB(t,3);return uo(n,this.padTo)}}}class nut{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&Xu.create(s).valid?(o=s,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=Z_(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class rut{constructor(t,n,r){this.opts={style:"long",...r},!n&&xie()&&(this.rtf=qct(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):Tut(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const out={firstDay:1,minimalDays:4,weekend:[6,7]};class er{static fromOpts(t){return er.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,o,i=!1){const a=t||Br.defaultLocale,s=a||(i?"en-US":Kct()),l=n||Br.defaultNumberingSystem,c=r||Br.defaultOutputCalendar,u=nL(o)||Br.defaultWeekSettings;return new er(s,l,c,u,a)}static resetCache(){M0=null,J_={},eL={},tL={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return er.create(t,n,r,o)}constructor(t,n,r,o,i){const[a,s,l]=Xct(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=Qct(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=eut(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:er.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nL(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return VC(this,t,Tie,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Jct(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1){return VC(this,t,kie,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Zct(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return VC(this,void 0,()=>Mie,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[It.utc(2016,11,13,9),It.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return VC(this,t,Aie,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[It.utc(-40,1,1),It.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const o=this.dtFormatter(t,n),i=o.formatToParts(),a=i.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new tut(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new nut(t,this.intl,n)}relFormatter(t={}){return new rut(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Wct(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Sie()?Yct(this.locale):out}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let z$=null;class ji extends NS{static get utcInstance(){return z$===null&&(z$=new ji(0)),z$}static instance(t){return t===0?ji.utcInstance:new ji(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ji(Ek(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${uw(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${uw(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return uw(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class iut extends NS{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function _d(e,t){if(qt(e)||e===null)return t;if(e instanceof NS)return e;if(dut(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Sk.instance:n==="utc"||n==="gmt"?ji.utcInstance:ji.parseSpecifier(n)||Xu.create(e)}else return ff(e)?ji.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new iut(e)}const CB={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},q8={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},aut=CB.hanidec.replace(/[\[|\]]/g,"").split("");function sut(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(CB.hanidec)!==-1)t+=aut.indexOf(e[n]);else for(const o in q8){const[i,a]=q8[o];r>=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}let Zm={};function lut(){Zm={}}function Sl({numberingSystem:e},t=""){const n=e||"latn";return Zm[n]||(Zm[n]={}),Zm[n][t]||(Zm[n][t]=new RegExp(`${CB[n]}${t}`)),Zm[n][t]}let K8=()=>Date.now(),Y8="system",X8=null,Q8=null,J8=null,Z8=60,e9,t9=null;class Br{static get now(){return K8}static set now(t){K8=t}static set defaultZone(t){Y8=t}static get defaultZone(){return _d(Y8,Sk.instance)}static get defaultLocale(){return X8}static set defaultLocale(t){X8=t}static get defaultNumberingSystem(){return Q8}static set defaultNumberingSystem(t){Q8=t}static get defaultOutputCalendar(){return J8}static set defaultOutputCalendar(t){J8=t}static get defaultWeekSettings(){return t9}static set defaultWeekSettings(t){t9=nL(t)}static get twoDigitCutoffYear(){return Z8}static set twoDigitCutoffYear(t){Z8=t%100}static get throwOnInvalid(){return e9}static set throwOnInvalid(t){e9=t}static resetCaches(){er.resetCache(),Xu.resetCache(),It.resetCache(),lut()}}class Fl{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const mie=[0,31,59,90,120,151,181,212,243,273,304,334],gie=[0,31,60,91,121,152,182,213,244,274,305,335];function js(e,t){return new Fl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function PB(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function yie(e,t,n){return n+(FS(e)?gie:mie)[t-1]}function vie(e,t){const n=FS(e)?gie:mie,r=n.findIndex(i=>i<t),o=t-n[r];return{month:r+1,day:o}}function EB(e,t){return(e-t+7)%7+1}function jT(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=yie(r,o,i),s=EB(PB(r,o,i),n);let l=Math.floor((a-s+14-t)/7),c;return l<1?(c=r-1,l=Mx(c,t,n)):l>Mx(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...Tk(e)}}function n9(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=EB(PB(r,1,t),n),s=Yg(r);let l=o*7+i-a-7+t,c;l<1?(c=r-1,l+=Yg(c)):l>s?(c=r+1,l-=Yg(r)):c=r;const{month:u,day:d}=vie(c,l);return{year:c,month:u,day:d,...Tk(e)}}function V$(e){const{year:t,month:n,day:r}=e,o=yie(t,n,r);return{year:t,ordinal:o,...Tk(e)}}function r9(e){const{year:t,ordinal:n}=e,{month:r,day:o}=vie(t,n);return{year:t,month:r,day:o,...Tk(e)}}function o9(e,t){if(!qt(e.localWeekday)||!qt(e.localWeekNumber)||!qt(e.localWeekYear)){if(!qt(e.weekday)||!qt(e.weekNumber)||!qt(e.weekYear))throw new Pg("Cannot mix locale-based week fields with ISO-based week fields");return qt(e.localWeekday)||(e.weekday=e.localWeekday),qt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),qt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function cut(e,t=4,n=1){const r=Ck(e.weekYear),o=Bs(e.weekNumber,1,Mx(e.weekYear,t,n)),i=Bs(e.weekday,1,7);return r?o?i?!1:js("weekday",e.weekday):js("week",e.weekNumber):js("weekYear",e.weekYear)}function uut(e){const t=Ck(e.year),n=Bs(e.ordinal,1,Yg(e.year));return t?n?!1:js("ordinal",e.ordinal):js("year",e.year)}function bie(e){const t=Ck(e.year),n=Bs(e.month,1,12),r=Bs(e.day,1,BT(e.year,e.month));return t?n?r?!1:js("day",e.day):js("month",e.month):js("year",e.year)}function wie(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=Bs(t,0,23)||t===24&&n===0&&r===0&&o===0,a=Bs(n,0,59),s=Bs(r,0,59),l=Bs(o,0,999);return i?a?s?l?!1:js("millisecond",o):js("second",r):js("minute",n):js("hour",t)}function qt(e){return typeof e>"u"}function ff(e){return typeof e=="number"}function Ck(e){return typeof e=="number"&&e%1===0}function dut(e){return typeof e=="string"}function fut(e){return Object.prototype.toString.call(e)==="[object Date]"}function xie(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sie(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function put(e){return Array.isArray(e)?e:[e]}function i9(e,t,n){if(e.length!==0)return e.reduce((r,o)=>{const i=[t(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function hut(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function iv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nL(e){if(e==null)return null;if(typeof e!="object")throw new hi("Week settings must be an object");if(!Bs(e.firstDay,1,7)||!Bs(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Bs(t,1,7)))throw new hi("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Bs(e,t,n){return Ck(e)&&e>=t&&e<=n}function mut(e,t){return e-t*Math.floor(e/t)}function uo(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function kd(e){if(!(qt(e)||e===null||e===""))return parseInt(e,10)}function pp(e){if(!(qt(e)||e===null||e===""))return parseFloat(e)}function TB(e){if(!(qt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function OB(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function FS(e){return e%4===0&&(e%100!==0||e%400===0)}function Yg(e){return FS(e)?366:365}function BT(e,t){const n=mut(t-1,12)+1,r=e+(t-n)/12;return n===2?FS(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Pk(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function a9(e,t,n){return-EB(PB(e,1,t),n)+t-1}function Mx(e,t=4,n=1){const r=a9(e,t,n),o=a9(e+1,t,n);return(Yg(e)-r+o)/7}function rL(e){return e>99?e:e>Br.twoDigitCutoffYear?1900+e:2e3+e}function Cie(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Ek(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Pie(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new hi(`Invalid unit value ${e}`);return t}function zT(e,t){const n={};for(const r in e)if(iv(e,r)){const o=e[r];if(o==null)continue;n[t(r)]=Pie(o)}return n}function uw(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${uo(n,2)}:${uo(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${uo(n,2)}${uo(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Tk(e){return hut(e,["hour","minute","second","millisecond"])}const gut=["January","February","March","April","May","June","July","August","September","October","November","December"],Eie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yut=["J","F","M","A","M","J","J","A","S","O","N","D"];function Tie(e){switch(e){case"narrow":return[...yut];case"short":return[...Eie];case"long":return[...gut];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Oie=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Iie=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],vut=["M","T","W","T","F","S","S"];function kie(e){switch(e){case"narrow":return[...vut];case"short":return[...Iie];case"long":return[...Oie];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Mie=["AM","PM"],but=["Before Christ","Anno Domini"],wut=["BC","AD"],xut=["B","A"];function Aie(e){switch(e){case"narrow":return[...xut];case"short":return[...wut];case"long":return[...but];default:return null}}function Sut(e){return Mie[e.hour<12?0:1]}function Cut(e,t){return kie(t)[e.weekday-1]}function Put(e,t){return Tie(t)[e.month-1]}function Eut(e,t){return Aie(t)[e.year<0?0:1]}function Tut(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${o[e][0]}`;case-1:return d?"yesterday":`last ${o[e][0]}`;case 0:return d?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function s9(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Out={D:FT,DD:Xoe,DDD:Qoe,DDDD:Joe,t:Zoe,tt:eie,ttt:tie,tttt:nie,T:rie,TT:oie,TTT:iie,TTTT:aie,f:sie,ff:cie,fff:die,ffff:pie,F:lie,FF:uie,FFF:fie,FFFF:hie};let Ll=class A0{static create(t,n={}){return new A0(t,n)}static parseFormat(t){let n=null,r="",o=!1;const i=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||s===n?r+=s:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return Out[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return uo(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,m)=>this.loc.extract(t,p,m),a=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",s=()=>r?Sut(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,m)=>r?Put(t,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),c=(p,m)=>r?Cut(t,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{const m=A0.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(t,m):p},d=p=>r?Eut(t,p):i({era:p},"era"),f=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(p)}};return s9(A0.parseFormat(n),f)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=r(c);return u?this.num(l.get(u),c.length):c},i=A0.parseFormat(n),a=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...a.map(r).filter(l=>l));return s9(i,o(s))}};const $ie=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Zv(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function eb(...e){return t=>e.reduce(([n,r,o],i)=>{const[a,s,l]=i(t,o);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function tb(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const o=n.exec(e);if(o)return r(o)}return[null,null]}function Rie(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=kd(t[n+o]);return[r,null,n+o]}}const Die=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Iut=`(?:${Die.source}?(?:\\[(${$ie.source})\\])?)?`,IB=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_ie=RegExp(`${IB.source}${Iut}`),kB=RegExp(`(?:T${_ie.source})?`),kut=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Mut=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Aut=/(\d{4})-?(\d{3})/,$ut=Rie("weekYear","weekNumber","weekDay"),Rut=Rie("year","ordinal"),Dut=/(\d{4})-(\d\d)-(\d\d)/,Lie=RegExp(`${IB.source} ?(?:${Die.source}|(${$ie.source}))?`),_ut=RegExp(`(?: ${Lie.source})?`);function Xg(e,t,n){const r=e[t];return qt(r)?n:kd(r)}function Lut(e,t){return[{year:Xg(e,t),month:Xg(e,t+1,1),day:Xg(e,t+2,1)},null,t+3]}function nb(e,t){return[{hours:Xg(e,t,0),minutes:Xg(e,t+1,0),seconds:Xg(e,t+2,0),milliseconds:TB(e[t+3])},null,t+4]}function jS(e,t){const n=!e[t]&&!e[t+1],r=Ek(e[t+1],e[t+2]),o=n?null:ji.instance(r);return[{},o,t+3]}function BS(e,t){const n=e[t]?Xu.create(e[t]):null;return[{},n,t+1]}const Nut=RegExp(`^T?${IB.source}$`),Fut=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function jut(e){const[t,n,r,o,i,a,s,l,c]=e,u=t[0]==="-",d=l&&l[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&u)?-p:p;return[{years:f(pp(n)),months:f(pp(r)),weeks:f(pp(o)),days:f(pp(i)),hours:f(pp(a)),minutes:f(pp(s)),seconds:f(pp(l),l==="-0"),milliseconds:f(TB(c),d)}]}const But={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function MB(e,t,n,r,o,i,a){const s={year:t.length===2?rL(kd(t)):kd(t),month:Eie.indexOf(n)+1,day:kd(r),hour:kd(o),minute:kd(i)};return a&&(s.second=kd(a)),e&&(s.weekday=e.length>3?Oie.indexOf(e)+1:Iie.indexOf(e)+1),s}const zut=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Vut(e){const[,t,n,r,o,i,a,s,l,c,u,d]=e,f=MB(t,o,r,n,i,a,s);let p;return l?p=But[l]:c?p=0:p=Ek(u,d),[f,new ji(p)]}function Hut(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Uut=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Wut=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gut=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function l9(e){const[,t,n,r,o,i,a,s]=e;return[MB(t,o,r,n,i,a,s),ji.utcInstance]}function qut(e){const[,t,n,r,o,i,a,s]=e;return[MB(t,s,n,r,o,i,a),ji.utcInstance]}const Kut=Zv(kut,kB),Yut=Zv(Mut,kB),Xut=Zv(Aut,kB),Qut=Zv(_ie),Nie=eb(Lut,nb,jS,BS),Jut=eb($ut,nb,jS,BS),Zut=eb(Rut,nb,jS,BS),edt=eb(nb,jS,BS);function tdt(e){return tb(e,[Kut,Nie],[Yut,Jut],[Xut,Zut],[Qut,edt])}function ndt(e){return tb(Hut(e),[zut,Vut])}function rdt(e){return tb(e,[Uut,l9],[Wut,l9],[Gut,qut])}function odt(e){return tb(e,[Fut,jut])}const idt=eb(nb);function adt(e){return tb(e,[Nut,idt])}const sdt=Zv(Dut,_ut),ldt=Zv(Lie),cdt=eb(nb,jS,BS);function udt(e){return tb(e,[sdt,Nie],[ldt,cdt])}const c9="Invalid Duration",Fie={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ddt={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Fie},Ss=146097/400,Nm=146097/4800,fdt={years:{quarters:4,months:12,weeks:Ss/7,days:Ss,hours:Ss*24,minutes:Ss*24*60,seconds:Ss*24*60*60,milliseconds:Ss*24*60*60*1e3},quarters:{months:3,weeks:Ss/28,days:Ss/4,hours:Ss*24/4,minutes:Ss*24*60/4,seconds:Ss*24*60*60/4,milliseconds:Ss*24*60*60*1e3/4},months:{weeks:Nm/7,days:Nm,hours:Nm*24,minutes:Nm*24*60,seconds:Nm*24*60*60,milliseconds:Nm*24*60*60*1e3},...Fie},jp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],pdt=jp.slice(0).reverse();function wd(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Fn(r)}function jie(e,t){let n=t.milliseconds??0;for(const r of pdt.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function u9(e,t){const n=jie(e,t)<0?-1:1;jp.reduceRight((r,o)=>{if(qt(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),jp.reduce((r,o)=>{if(qt(t[o]))return r;if(r){const i=t[r]%1;t[r]-=i,t[o]+=i*e[r][o]}return o},null)}function hdt(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Fn{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?fdt:ddt;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||er.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Fn.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new hi(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Fn({values:zT(t,Fn.normalizeUnit),loc:er.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ff(t))return Fn.fromMillis(t);if(Fn.isDuration(t))return t;if(typeof t=="object")return Fn.fromObject(t);throw new hi(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=odt(t);return r?Fn.fromObject(r,n):Fn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=adt(t);return r?Fn.fromObject(r,n):Fn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new hi("need to specify a reason the Duration is invalid");const r=t instanceof Fl?t:new Fl(t,n);if(Br.throwOnInvalid)throw new Fct(r);return new Fn({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Yoe(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Ll.create(this.loc,r).formatDurationFromString(this,t):c9}toHuman(t={}){if(!this.isValid)return c9;const n=jp.map(r=>{const o=this.values[r];return qt(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=OB(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},It.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?jie(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Fn.fromDurationLike(t),r={};for(const o of jp)(iv(n.values,o)||iv(this.values,o))&&(r[o]=n.get(o)+this.get(o));return wd(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Fn.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Pie(t(this.values[r],r));return wd(this,{values:n},!0)}get(t){return this[Fn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...zT(t,Fn.normalizeUnit)};return wd(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:r};return wd(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return u9(this.matrix,t),wd(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=hdt(this.normalize().shiftToAll().toObject());return wd(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Fn.normalizeUnit(a));const n={},r={},o=this.toObject();let i;for(const a of jp)if(t.indexOf(a)>=0){i=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;ff(o[a])&&(s+=o[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else ff(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return u9(this.matrix,n),wd(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return wd(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of jp)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Fm="Invalid Interval";function mdt(e,t){return!e||!e.isValid?Xr.invalid("missing or invalid start"):!t||!t.isValid?Xr.invalid("missing or invalid end"):t<e?Xr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Xr{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new hi("need to specify a reason the Interval is invalid");const r=t instanceof Fl?t:new Fl(t,n);if(Br.throwOnInvalid)throw new Nct(r);return new Xr({invalid:r})}static fromDateTimes(t,n){const r=l0(t),o=l0(n),i=mdt(r,o);return i??new Xr({start:r,end:o})}static after(t,n){const r=Fn.fromDurationLike(n),o=l0(t);return Xr.fromDateTimes(o,o.plus(r))}static before(t,n){const r=Fn.fromDurationLike(n),o=l0(t);return Xr.fromDateTimes(o.minus(r),o)}static fromISO(t,n){const[r,o]=(t||"").split("/",2);if(r&&o){let i,a;try{i=It.fromISO(r,n),a=i.isValid}catch{a=!1}let s,l;try{s=It.fromISO(o,n),l=s.isValid}catch{l=!1}if(a&&l)return Xr.fromDateTimes(i,s);if(a){const c=Fn.fromISO(o,n);if(c.isValid)return Xr.after(i,c)}else if(l){const c=Fn.fromISO(r,n);if(c.isValid)return Xr.before(s,c)}}return Xr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let o;return n!=null&&n.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(t,n),Math.floor(o.diff(r,t).get(t))+(o.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Xr.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(l0).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:o}=this,i=0;for(;o<this.e;){const a=n[i]||this.e,s=+a>+this.e?this.e:a;r.push(Xr.fromDateTimes(o,s)),o=s,i+=1}return r}splitBy(t){const n=Fn.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*o));i=+s>+this.e?this.e:s,a.push(Xr.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Xr.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Xr.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const o=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(Xr.fromDateTimes(n,l.time)),n=null);return Xr.merge(o)}difference(...t){return Xr.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Fm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=FT,n={}){return this.isValid?Ll.create(this.s.loc.clone(n),t).formatInterval(this):Fm}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Fm}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Fm}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Fm}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Fm}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Fn.invalid(this.invalidReason)}mapEndpoints(t){return Xr.fromDateTimes(t(this.s),t(this.e))}}class $0{static hasDST(t=Br.defaultZone){const n=It.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xu.isValidZone(t)}static normalizeZone(t){return _d(t,Br.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||er.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||er.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||er.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||er.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||er.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||er.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||er.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return er.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return er.create(n,null,"gregory").eras(t)}static features(){return{relative:xie(),localeWeek:Sie()}}}function d9(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Fn.fromMillis(r).as("days"))}function gdt(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=d9(l,c);return(u-u%7)/7}],["days",d9]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,e=i.plus(o),e>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}function ydt(e,t,n,r){let[o,i,a,s]=gdt(e,t,n);const l=t-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=Fn.fromObject(i,r);return c.length>0?Fn.fromMillis(l,r).shiftTo(...c).plus(u):u}const vdt="missing Intl.DateTimeFormat.formatToParts support";function Kn(e,t=n=>n){return{regex:e,deser:([n])=>t(sut(n))}}const bdt=" ",Bie=`[ ${bdt}]`,zie=new RegExp(Bie,"g");function wdt(e){return e.replace(/\./g,"\\.?").replace(zie,Bie)}function f9(e){return e.replace(/\./g,"").replace(zie," ").toLowerCase()}function Cl(e,t){return e===null?null:{regex:RegExp(e.map(wdt).join("|")),deser:([n])=>e.findIndex(r=>f9(n)===f9(r))+t}}function p9(e,t){return{regex:e,deser:([,n,r])=>Ek(n,r),groups:t}}function HC(e){return{regex:e,deser:([t])=>t}}function xdt(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Sdt(e,t){const n=Sl(t),r=Sl(t,"{2}"),o=Sl(t,"{3}"),i=Sl(t,"{4}"),a=Sl(t,"{6}"),s=Sl(t,"{1,2}"),l=Sl(t,"{1,3}"),c=Sl(t,"{1,6}"),u=Sl(t,"{1,9}"),d=Sl(t,"{2,4}"),f=Sl(t,"{4,6}"),p=y=>({regex:RegExp(xdt(y.val)),deser:([b])=>b,literal:!0}),g=(y=>{if(e.literal)return p(y);switch(y.val){case"G":return Cl(t.eras("short"),0);case"GG":return Cl(t.eras("long"),0);case"y":return Kn(c);case"yy":return Kn(d,rL);case"yyyy":return Kn(i);case"yyyyy":return Kn(f);case"yyyyyy":return Kn(a);case"M":return Kn(s);case"MM":return Kn(r);case"MMM":return Cl(t.months("short",!0),1);case"MMMM":return Cl(t.months("long",!0),1);case"L":return Kn(s);case"LL":return Kn(r);case"LLL":return Cl(t.months("short",!1),1);case"LLLL":return Cl(t.months("long",!1),1);case"d":return Kn(s);case"dd":return Kn(r);case"o":return Kn(l);case"ooo":return Kn(o);case"HH":return Kn(r);case"H":return Kn(s);case"hh":return Kn(r);case"h":return Kn(s);case"mm":return Kn(r);case"m":return Kn(s);case"q":return Kn(s);case"qq":return Kn(r);case"s":return Kn(s);case"ss":return Kn(r);case"S":return Kn(l);case"SSS":return Kn(o);case"u":return HC(u);case"uu":return HC(s);case"uuu":return Kn(n);case"a":return Cl(t.meridiems(),0);case"kkkk":return Kn(i);case"kk":return Kn(d,rL);case"W":return Kn(s);case"WW":return Kn(r);case"E":case"c":return Kn(n);case"EEE":return Cl(t.weekdays("short",!1),1);case"EEEE":return Cl(t.weekdays("long",!1),1);case"ccc":return Cl(t.weekdays("short",!0),1);case"cccc":return Cl(t.weekdays("long",!0),1);case"Z":case"ZZ":return p9(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return p9(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return HC(/[a-z_+-/]{1,256}?/i);case" ":return HC(/[^\S\n\r]/);default:return p(y)}})(e)||{invalidReason:vdt};return g.token=e,g}const Cdt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Pdt(e,t,n){const{type:r,value:o}=e;if(r==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=Cdt[a];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function Edt(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function Tdt(e,t,n){const r=e.match(t);if(r){const o={};let i=1;for(const a in n)if(iv(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function Odt(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return qt(e.z)||(n=Xu.create(e.z)),qt(e.Z)||(n||(n=new ji(e.Z)),r=e.Z),qt(e.q)||(e.M=(e.q-1)*3+1),qt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),qt(e.u)||(e.S=TB(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),n,r]}let H$=null;function Idt(){return H$||(H$=It.fromMillis(1555555555555)),H$}function kdt(e,t){if(e.literal)return e;const n=Ll.macroTokenToFormatOpts(e.val),r=Wie(n,t);return r==null||r.includes(void 0)?e:r}function Vie(e,t){return Array.prototype.concat(...e.map(n=>kdt(n,t)))}class Hie{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Vie(Ll.parseFormat(n),t),this.units=this.tokens.map(r=>Sdt(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=Edt(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(t){if(this.isValid){const[n,r]=Tdt(t,this.regex,this.handlers),[o,i,a]=r?Odt(r):[null,null,void 0];if(iv(r,"a")&&iv(r,"H"))throw new Pg("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:o,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Uie(e,t,n){return new Hie(e,n).explainFromTokens(t)}function Mdt(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Uie(e,t,n);return[r,o,i,a]}function Wie(e,t){if(!e)return null;const r=Ll.create(t,e).dtFormatter(Idt()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>Pdt(a,e,i))}const U$="Invalid DateTime",h9=864e13;function R0(e){return new Fl("unsupported zone",`the zone "${e.name}" is not supported`)}function W$(e){return e.weekData===null&&(e.weekData=jT(e.c)),e.weekData}function G$(e){return e.localWeekData===null&&(e.localWeekData=jT(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function hp(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new It({...n,...t,old:n})}function Gie(e,t,n){let r=e-t*60*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=(o-t)*60*1e3;const i=n.offset(r);return o===i?[r,o]:[e-Math.min(o,i)*60*1e3,Math.max(o,i)]}function UC(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function AP(e,t,n){return Gie(Pk(e),t,n)}function m9(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:o,day:Math.min(e.c.day,BT(r,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Fn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Pk(i);let[l,c]=Gie(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function jm(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=It.fromObject(e,{...n,zone:l,specificOffset:i});return a?c:c.setZone(s)}else return It.invalid(new Fl("unparsable",`the input "${o}" can't be parsed as ${r}`))}function WC(e,t,n=!0){return e.isValid?Ll.create(er.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function q$(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=uo(e.c.year,n?6:4),t?(r+="-",r+=uo(e.c.month),r+="-",r+=uo(e.c.day)):(r+=uo(e.c.month),r+=uo(e.c.day)),r}function g9(e,t,n,r,o,i){let a=uo(e.c.hour);return t?(a+=":",a+=uo(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=":")):a+=uo(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=uo(e.c.second),(e.c.millisecond!==0||!r)&&(a+=".",a+=uo(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0&&!i?a+="Z":e.o<0?(a+="-",a+=uo(Math.trunc(-e.o/60)),a+=":",a+=uo(Math.trunc(-e.o%60))):(a+="+",a+=uo(Math.trunc(e.o/60)),a+=":",a+=uo(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const qie={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Adt={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},$dt={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Kie=["year","month","day","hour","minute","second","millisecond"],Rdt=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ddt=["year","ordinal","hour","minute","second","millisecond"];function _dt(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Yoe(e);return t}function y9(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _dt(e)}}function Ldt(e){return RP[e]||($P===void 0&&($P=Br.now()),RP[e]=e.offset($P)),RP[e]}function v9(e,t){const n=_d(t.zone,Br.defaultZone);if(!n.isValid)return It.invalid(R0(n));const r=er.fromObject(t);let o,i;if(qt(e.year))o=Br.now();else{for(const l of Kie)qt(e[l])&&(e[l]=qie[l]);const a=bie(e)||wie(e);if(a)return It.invalid(a);const s=Ldt(n);[o,i]=AP(e,s,n)}return new It({ts:o,zone:n,loc:r,o:i})}function b9(e,t,n){const r=qt(n.round)?!0:n.round,o=(a,s)=>(a=OB(a,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(a,s)),i=a=>n.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(n.unit)return o(i(n.unit),n.unit);for(const a of n.units){const s=i(a);if(Math.abs(s)>=1)return o(s,a)}return o(e>t?-0:0,n.units[n.units.length-1])}function w9(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let $P,RP={};class It{constructor(t){const n=t.zone||Br.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Fl("invalid input"):null)||(n.isValid?null:R0(n));this.ts=qt(t.ts)?Br.now():t.ts;let o=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const s=ff(t.o)&&!t.old?t.o:n.offset(this.ts);o=UC(this.ts,s),r=Number.isNaN(o.year)?new Fl("invalid input"):null,o=r?null:o,i=r?null:s}this._zone=n,this.loc=t.loc||er.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new It({})}static local(){const[t,n]=w9(arguments),[r,o,i,a,s,l,c]=n;return v9({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=w9(arguments),[r,o,i,a,s,l,c]=n;return t.zone=ji.utcInstance,v9({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=fut(t)?t.valueOf():NaN;if(Number.isNaN(r))return It.invalid("invalid input");const o=_d(n.zone,Br.defaultZone);return o.isValid?new It({ts:r,zone:o,loc:er.fromObject(n)}):It.invalid(R0(o))}static fromMillis(t,n={}){if(ff(t))return t<-h9||t>h9?It.invalid("Timestamp out of range"):new It({ts:t,zone:_d(n.zone,Br.defaultZone),loc:er.fromObject(n)});throw new hi(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ff(t))return new It({ts:t*1e3,zone:_d(n.zone,Br.defaultZone),loc:er.fromObject(n)});throw new hi("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=_d(n.zone,Br.defaultZone);if(!r.isValid)return It.invalid(R0(r));const o=er.fromObject(n),i=zT(t,y9),{minDaysInFirstWeek:a,startOfWeek:s}=o9(i,o),l=Br.now(),c=qt(n.specificOffset)?r.offset(l):n.specificOffset,u=!qt(i.ordinal),d=!qt(i.year),f=!qt(i.month)||!qt(i.day),p=d||f,m=i.weekYear||i.weekNumber;if((p||u)&&m)throw new Pg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Pg("Can't mix ordinal dates with month/day");const g=m||i.weekday&&!p;let y,b,x=UC(l,c);g?(y=Rdt,b=Adt,x=jT(x,a,s)):u?(y=Ddt,b=$dt,x=V$(x)):(y=Kie,b=qie);let S=!1;for(const I of y){const R=i[I];qt(R)?S?i[I]=b[I]:i[I]=x[I]:S=!0}const P=g?cut(i,a,s):u?uut(i):bie(i),E=P||wie(i);if(E)return It.invalid(E);const T=g?n9(i,a,s):u?r9(i):i,[O,k]=AP(T,c,r),M=new It({ts:O,zone:r,o:k,loc:o});return i.weekday&&p&&t.weekday!==M.weekday?It.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M.isValid?M:It.invalid(M.invalid)}static fromISO(t,n={}){const[r,o]=tdt(t);return jm(r,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,o]=ndt(t);return jm(r,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,o]=rdt(t);return jm(r,o,n,"HTTP",n)}static fromFormat(t,n,r={}){if(qt(t)||qt(n))throw new hi("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=er.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=Mdt(a,t,n);return u?It.invalid(u):jm(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return It.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,o]=udt(t);return jm(r,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new hi("need to specify a reason the DateTime is invalid");const r=t instanceof Fl?t:new Fl(t,n);if(Br.throwOnInvalid)throw new Lct(r);return new It({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=Wie(t,er.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return Vie(Ll.parseFormat(t),er.fromObject(n)).map(o=>o.val).join("")}static resetCache(){$P=void 0,RP={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?W$(this).weekYear:NaN}get weekNumber(){return this.isValid?W$(this).weekNumber:NaN}get weekday(){return this.isValid?W$(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?G$(this).weekday:NaN}get localWeekNumber(){return this.isValid?G$(this).weekNumber:NaN}get localWeekYear(){return this.isValid?G$(this).weekYear:NaN}get ordinal(){return this.isValid?V$(this.c).ordinal:NaN}get monthShort(){return this.isValid?$0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?$0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?$0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?$0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=Pk(this.c),o=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-o*n),s=this.zone.offset(r-i*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=UC(l,a),d=UC(c,s);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[hp(this,{ts:l}),hp(this,{ts:c})]:[this]}get isInLeapYear(){return FS(this.year)}get daysInMonth(){return BT(this.year,this.month)}get daysInYear(){return this.isValid?Yg(this.year):NaN}get weeksInWeekYear(){return this.isValid?Mx(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Mx(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:o}=Ll.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(ji.instance(t),n)}toLocal(){return this.setZone(Br.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=_d(t,Br.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[o]=AP(a,i,t)}return hp(this,{ts:o,zone:t})}else return It.invalid(R0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return hp(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=zT(t,y9),{minDaysInFirstWeek:r,startOfWeek:o}=o9(n,this.loc),i=!qt(n.weekYear)||!qt(n.weekNumber)||!qt(n.weekday),a=!qt(n.ordinal),s=!qt(n.year),l=!qt(n.month)||!qt(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new Pg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Pg("Can't mix ordinal dates with month/day");let d;i?d=n9({...jT(this.c,r,o),...n},r,o):qt(n.ordinal)?(d={...this.toObject(),...n},qt(n.day)&&(d.day=Math.min(BT(d.year,d.month),d.day))):d=r9({...V$(this.c),...n});const[f,p]=AP(d,this.o,this.zone);return hp(this,{ts:f,o:p})}plus(t){if(!this.isValid)return this;const n=Fn.fromDurationLike(t);return hp(this,m9(this,n))}minus(t){if(!this.isValid)return this;const n=Fn.fromDurationLike(t).negate();return hp(this,m9(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=Fn.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Ll.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):U$}toLocaleString(t=FT,n={}){return this.isValid?Ll.create(this.loc.clone(n),t).formatDateTime(this):U$}toLocaleParts(t={}){return this.isValid?Ll.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=t==="extended";let s=q$(this,a);return s+="T",s+=g9(this,a,n,r,o,i),s}toISODate({format:t="extended"}={}){return this.isValid?q$(this,t==="extended"):null}toISOWeekDate(){return WC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(o?"T":"")+g9(this,a==="extended",n,t,r,i):null}toRFC2822(){return WC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return WC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?q$(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||t)&&(r&&(o+=" "),n?o+="z":t&&(o+="ZZ")),WC(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():U$}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Fn.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=put(n).map(Fn.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,l=a?t:this,c=ydt(s,l,i,o);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(It.now(),t,n)}until(t){return this.isValid?Xr.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||It.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(o=t.unit,i=void 0),b9(n,this.plus(r),{...t,numeric:"always",units:o,unit:i})}toRelativeCalendar(t={}){return this.isValid?b9(t.base||It.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(It.isDateTime))throw new hi("min requires all arguments be DateTimes");return i9(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(It.isDateTime))throw new hi("max requires all arguments be DateTimes");return i9(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=er.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Uie(a,t,n)}static fromStringExplain(t,n,r={}){return It.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:o=null}=n,i=er.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new Hie(i,t)}static fromFormatParser(t,n,r={}){if(qt(t)||qt(n))throw new hi("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=er.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new hi(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?It.invalid(u):jm(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return FT}static get DATE_MED(){return Xoe}static get DATE_MED_WITH_WEEKDAY(){return jct}static get DATE_FULL(){return Qoe}static get DATE_HUGE(){return Joe}static get TIME_SIMPLE(){return Zoe}static get TIME_WITH_SECONDS(){return eie}static get TIME_WITH_SHORT_OFFSET(){return tie}static get TIME_WITH_LONG_OFFSET(){return nie}static get TIME_24_SIMPLE(){return rie}static get TIME_24_WITH_SECONDS(){return oie}static get TIME_24_WITH_SHORT_OFFSET(){return iie}static get TIME_24_WITH_LONG_OFFSET(){return aie}static get DATETIME_SHORT(){return sie}static get DATETIME_SHORT_WITH_SECONDS(){return lie}static get DATETIME_MED(){return cie}static get DATETIME_MED_WITH_SECONDS(){return uie}static get DATETIME_MED_WITH_WEEKDAY(){return Bct}static get DATETIME_FULL(){return die}static get DATETIME_FULL_WITH_SECONDS(){return fie}static get DATETIME_HUGE(){return pie}static get DATETIME_HUGE_WITH_SECONDS(){return hie}}function l0(e){if(It.isDateTime(e))return e;if(e&&e.valueOf&&ff(e.valueOf()))return It.fromJSDate(e);if(e&&typeof e=="object")return It.fromObject(e);throw new hi(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Ndt={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyyy:{sectionType:"year",contentType:"digit",maxLength:4},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",c:{sectionType:"weekDay",contentType:"digit",maxLength:1},ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:2},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Fdt={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"d",weekday:"cccc",weekdayShort:"ccccc",hours24h:"HH",hours12h:"hh",meridiem:"a",minutes:"mm",seconds:"ss",fullDate:"DD",keyboardDate:"D",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"t",fullTime12h:"hh:mm a",fullTime24h:"HH:mm",keyboardDateTime:"D t",keyboardDateTime12h:"D hh:mm a",keyboardDateTime24h:"D T"};class Ok{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="luxon",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"'",end:"'"},this.formatTokenMap=Ndt,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale?r:r.setLocale(o)},this.date=(r,o="default")=>r===null?null:typeof r>"u"?It.fromJSDate(new Date,{locale:this.locale,zone:o}):It.fromISO(r,{locale:this.locale,zone:o}),this.getInvalidDate=()=>It.fromJSDate(new Date("Invalid Date")),this.getTimezone=r=>r.zone.type==="system"?"system":r.zoneName,this.setTimezone=(r,o)=>r.zone.equals($0.normalizeZone(o))?r:r.setZone(o),this.toJsDate=r=>r.toJSDate(),this.parse=(r,o)=>r===""?null:It.fromFormat(r,o,{locale:this.locale}),this.getCurrentLocaleCode=()=>this.locale,this.is12HourCycleInCurrentLocale=()=>{var r,o;return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?!0:!!((o=(r=new Intl.DateTimeFormat(this.locale,{hour:"numeric"}))==null?void 0:r.resolvedOptions())!=null&&o.hour12)},this.expandFormat=r=>{const o=/''|'(''|[^'])+('|$)|[^']*/g,i=[...Object.keys(this.formatTokenMap),"yyyyy"],a=new RegExp(`^(${i.join("|")})+$`),s=/(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;return r.match(o).map(l=>l[0]==="'"?l:It.expandFormat(l,{locale:this.locale}).replace(s,(d,f,p)=>{const m=f||p;return a.test(m)?d:`'${d}'`})).join("").replace("yyyyy","yyyy")},this.isValid=r=>r===null?!1:r.isValid,this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>r.setLocale(this.locale).toFormat(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:+r==+o,this.isSameYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"year")},this.isSameMonth=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"month")},this.isSameDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"day")},this.isSameHour=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"hour")},this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfYear(i),"years").toObject().years>0},this.isAfterDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfDay(i),"days").toObject().days>0},this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfYear(i),"years").toObject().years<0},this.isBeforeDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfDay(i),"days").toObject().days<0},this.isWithinRange=(r,[o,i])=>this.isEqual(r,o)||this.isEqual(r,i)||this.isAfter(r,o)&&this.isBefore(r,i),this.startOfYear=r=>r.startOf("year"),this.startOfMonth=r=>r.startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r).startOf("week",{useLocaleWeeks:!0}),this.startOfDay=r=>r.startOf("day"),this.endOfYear=r=>r.endOf("year"),this.endOfMonth=r=>r.endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r).endOf("week",{useLocaleWeeks:!0}),this.endOfDay=r=>r.endOf("day"),this.addYears=(r,o)=>r.plus({years:o}),this.addMonths=(r,o)=>r.plus({months:o}),this.addWeeks=(r,o)=>r.plus({weeks:o}),this.addDays=(r,o)=>r.plus({days:o}),this.addHours=(r,o)=>r.plus({hours:o}),this.addMinutes=(r,o)=>r.plus({minutes:o}),this.addSeconds=(r,o)=>r.plus({seconds:o}),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month")-1,this.getDate=r=>r.get("day"),this.getHours=r=>r.get("hour"),this.getMinutes=r=>r.get("minute"),this.getSeconds=r=>r.get("second"),this.getMilliseconds=r=>r.get("millisecond"),this.setYear=(r,o)=>r.set({year:o}),this.setMonth=(r,o)=>r.set({month:o+1}),this.setDate=(r,o)=>r.set({day:o}),this.setHours=(r,o)=>r.set({hour:o}),this.setMinutes=(r,o)=>r.set({minute:o}),this.setSeconds=(r,o)=>r.set({second:o}),this.setMilliseconds=(r,o)=>r.set({millisecond:o}),this.getDaysInMonth=r=>r.daysInMonth,this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r)),{days:a}=i.diff(o,"days").toObject(),s=[];return new Array(Math.round(a)).fill(0).map((l,c)=>c).map(l=>o.plus({days:l})).forEach((l,c)=>{if(c===0||c%7===0&&c>6){s.push([l]);return}s[s.length-1].push(l)}),s},this.getWeekNumber=r=>r.localWeekNumber??r.weekNumber,this.getDayOfWeek=r=>r.weekday,this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.locale=t||"en-US",this.formats=D({},Fdt,n)}}const AB=lt($.jsx("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 19zm-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 14"}),"Search");function $B({callback:e,initialIngredient:t}){const n=t?{value:t,data:{id:-1,name:t,image:null,image_thumbnail:null}}:null,[r,o]=v.useState(!0),[i,a]=v.useState(n),[s,l]=v.useState(""),[c,u]=v.useState([]),[d,f]=qe(),p=v.useMemo(()=>UI(m=>q2e(m,f.language,r).then(g=>u(g)),200),[f.language,r]);return v.useEffect(()=>{if(s===""){u(i?[i]:[]);return}return p(s),()=>{}},[i,s,p]),X(Gt,{children:[C(Kl,{id:"ingredient-autocomplete",getOptionLabel:m=>m.value,"data-testid":"autocomplete",filterOptions:m=>m,options:c,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:i,noOptionsText:d("noResults"),isOptionEqualToValue:(m,g)=>m.value===g.value,onChange:(m,g)=>{u(g?[g,...c]:c),a(g),e(g)},onInputChange:(m,g)=>{l(g)},renderInput:m=>C(gn,{...m,label:d("nutrition.searchIngredientName"),fullWidth:!0,InputProps:{...m.InputProps,startAdornment:X(Mt,{children:[C(co,{position:"start",children:C(AB,{})}),m.InputProps.startAdornment]})}}),renderOption:(m,g)=>sN("li",{...m,key:`ingredient-${g.data.id}`},X(Ja,{disablePadding:!0,component:"div",children:[C(zi,{children:C(Yl,{alt:"",src:`${zF}${g.data.image}`,variant:"rounded",children:C(Ju,{})})}),C(go,{primary:g.value,primaryTypographyProps:{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]}))}),f.language!==Ty&&C(Hw,{children:C(mh,{control:C(Hu,{checked:r,onChange:(m,g)=>o(g)}),label:d("alsoSearchEnglish")})})]})}var jdt=function(t){return Bdt(t)&&!zdt(t)};function Bdt(e){return!!e&&typeof e=="object"}function zdt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Udt(e)}var Vdt=typeof Symbol=="function"&&Symbol.for,Hdt=Vdt?Symbol.for("react.element"):60103;function Udt(e){return e.$$typeof===Hdt}function Wdt(e){return Array.isArray(e)?[]:{}}function VT(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ax(Wdt(e),e,t):e}function Gdt(e,t,n){return e.concat(t).map(function(r){return VT(r,n)})}function qdt(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=VT(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=VT(t[o],n):r[o]=Ax(e[o],t[o],n)}),r}function Ax(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Gdt,n.isMergeableObject=n.isMergeableObject||jdt;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):qdt(e,t,n):VT(t,n)}Ax.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Ax(r,o,n)},{})};var oL=Ax,Yie=typeof global=="object"&&global&&global.Object===Object&&global,Kdt=typeof self=="object"&&self&&self.Object===Object&&self,Hc=Yie||Kdt||Function("return this")(),Sf=Hc.Symbol,Xie=Object.prototype,Ydt=Xie.hasOwnProperty,Xdt=Xie.toString,c0=Sf?Sf.toStringTag:void 0;function Qdt(e){var t=Ydt.call(e,c0),n=e[c0];try{e[c0]=void 0;var r=!0}catch{}var o=Xdt.call(e);return r&&(t?e[c0]=n:delete e[c0]),o}var Jdt=Object.prototype,Zdt=Jdt.toString;function eft(e){return Zdt.call(e)}var tft="[object Null]",nft="[object Undefined]",x9=Sf?Sf.toStringTag:void 0;function Uh(e){return e==null?e===void 0?nft:tft:x9&&x9 in Object(e)?Qdt(e):eft(e)}function Qie(e,t){return function(n){return e(t(n))}}var RB=Qie(Object.getPrototypeOf,Object);function Wh(e){return e!=null&&typeof e=="object"}var rft="[object Object]",oft=Function.prototype,ift=Object.prototype,Jie=oft.toString,aft=ift.hasOwnProperty,sft=Jie.call(Object);function S9(e){if(!Wh(e)||Uh(e)!=rft)return!1;var t=RB(e);if(t===null)return!0;var n=aft.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Jie.call(n)==sft}function lft(){this.__data__=[],this.size=0}function Zie(e,t){return e===t||e!==e&&t!==t}function Ik(e,t){for(var n=e.length;n--;)if(Zie(e[n][0],t))return n;return-1}var cft=Array.prototype,uft=cft.splice;function dft(e){var t=this.__data__,n=Ik(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uft.call(t,n,1),--this.size,!0}function fft(e){var t=this.__data__,n=Ik(t,e);return n<0?void 0:t[n][1]}function pft(e){return Ik(this.__data__,e)>-1}function hft(e,t){var n=this.__data__,r=Ik(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function nd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nd.prototype.clear=lft;nd.prototype.delete=dft;nd.prototype.get=fft;nd.prototype.has=pft;nd.prototype.set=hft;function mft(){this.__data__=new nd,this.size=0}function gft(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yft(e){return this.__data__.get(e)}function vft(e){return this.__data__.has(e)}function zS(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bft="[object AsyncFunction]",wft="[object Function]",xft="[object GeneratorFunction]",Sft="[object Proxy]";function eae(e){if(!zS(e))return!1;var t=Uh(e);return t==wft||t==xft||t==bft||t==Sft}var K$=Hc["__core-js_shared__"],C9=function(){var e=/[^.]+$/.exec(K$&&K$.keys&&K$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Cft(e){return!!C9&&C9 in e}var Pft=Function.prototype,Eft=Pft.toString;function Gh(e){if(e!=null){try{return Eft.call(e)}catch{}try{return e+""}catch{}}return""}var Tft=/[\\^$.*+?()[\]{}|]/g,Oft=/^\[object .+?Constructor\]$/,Ift=Function.prototype,kft=Object.prototype,Mft=Ift.toString,Aft=kft.hasOwnProperty,$ft=RegExp("^"+Mft.call(Aft).replace(Tft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rft(e){if(!zS(e)||Cft(e))return!1;var t=eae(e)?$ft:Oft;return t.test(Gh(e))}function Dft(e,t){return e==null?void 0:e[t]}function qh(e,t){var n=Dft(e,t);return Rft(n)?n:void 0}var $x=qh(Hc,"Map"),Rx=qh(Object,"create");function _ft(){this.__data__=Rx?Rx(null):{},this.size=0}function Lft(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nft="__lodash_hash_undefined__",Fft=Object.prototype,jft=Fft.hasOwnProperty;function Bft(e){var t=this.__data__;if(Rx){var n=t[e];return n===Nft?void 0:n}return jft.call(t,e)?t[e]:void 0}var zft=Object.prototype,Vft=zft.hasOwnProperty;function Hft(e){var t=this.__data__;return Rx?t[e]!==void 0:Vft.call(t,e)}var Uft="__lodash_hash_undefined__";function Wft(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rx&&t===void 0?Uft:t,this}function Ph(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ph.prototype.clear=_ft;Ph.prototype.delete=Lft;Ph.prototype.get=Bft;Ph.prototype.has=Hft;Ph.prototype.set=Wft;function Gft(){this.size=0,this.__data__={hash:new Ph,map:new($x||nd),string:new Ph}}function qft(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kk(e,t){var n=e.__data__;return qft(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Kft(e){var t=kk(this,e).delete(e);return this.size-=t?1:0,t}function Yft(e){return kk(this,e).get(e)}function Xft(e){return kk(this,e).has(e)}function Qft(e,t){var n=kk(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Vf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vf.prototype.clear=Gft;Vf.prototype.delete=Kft;Vf.prototype.get=Yft;Vf.prototype.has=Xft;Vf.prototype.set=Qft;var Jft=200;function Zft(e,t){var n=this.__data__;if(n instanceof nd){var r=n.__data__;if(!$x||r.length<Jft-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vf(r)}return n.set(e,t),this.size=n.size,this}function rb(e){var t=this.__data__=new nd(e);this.size=t.size}rb.prototype.clear=mft;rb.prototype.delete=gft;rb.prototype.get=yft;rb.prototype.has=vft;rb.prototype.set=Zft;function ept(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var P9=function(){try{var e=qh(Object,"defineProperty");return e({},"",{}),e}catch{}}();function tae(e,t,n){t=="__proto__"&&P9?P9(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tpt=Object.prototype,npt=tpt.hasOwnProperty;function nae(e,t,n){var r=e[t];(!(npt.call(e,t)&&Zie(r,n))||n===void 0&&!(t in e))&&tae(e,t,n)}function Mk(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?tae(n,s,l):nae(n,s,l)}return n}function rpt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var opt="[object Arguments]";function E9(e){return Wh(e)&&Uh(e)==opt}var rae=Object.prototype,ipt=rae.hasOwnProperty,apt=rae.propertyIsEnumerable,spt=E9(function(){return arguments}())?E9:function(e){return Wh(e)&&ipt.call(e,"callee")&&!apt.call(e,"callee")},VS=Array.isArray;function lpt(){return!1}var oae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,T9=oae&&typeof module=="object"&&module&&!module.nodeType&&module,cpt=T9&&T9.exports===oae,O9=cpt?Hc.Buffer:void 0,upt=O9?O9.isBuffer:void 0,iae=upt||lpt,dpt=9007199254740991,fpt=/^(?:0|[1-9]\d*)$/;function ppt(e,t){var n=typeof e;return t=t??dpt,!!t&&(n=="number"||n!="symbol"&&fpt.test(e))&&e>-1&&e%1==0&&e<t}var hpt=9007199254740991;function aae(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hpt}var mpt="[object Arguments]",gpt="[object Array]",ypt="[object Boolean]",vpt="[object Date]",bpt="[object Error]",wpt="[object Function]",xpt="[object Map]",Spt="[object Number]",Cpt="[object Object]",Ppt="[object RegExp]",Ept="[object Set]",Tpt="[object String]",Opt="[object WeakMap]",Ipt="[object ArrayBuffer]",kpt="[object DataView]",Mpt="[object Float32Array]",Apt="[object Float64Array]",$pt="[object Int8Array]",Rpt="[object Int16Array]",Dpt="[object Int32Array]",_pt="[object Uint8Array]",Lpt="[object Uint8ClampedArray]",Npt="[object Uint16Array]",Fpt="[object Uint32Array]",Or={};Or[Mpt]=Or[Apt]=Or[$pt]=Or[Rpt]=Or[Dpt]=Or[_pt]=Or[Lpt]=Or[Npt]=Or[Fpt]=!0;Or[mpt]=Or[gpt]=Or[Ipt]=Or[ypt]=Or[kpt]=Or[vpt]=Or[bpt]=Or[wpt]=Or[xpt]=Or[Spt]=Or[Cpt]=Or[Ppt]=Or[Ept]=Or[Tpt]=Or[Opt]=!1;function jpt(e){return Wh(e)&&aae(e.length)&&!!Or[Uh(e)]}function DB(e){return function(t){return e(t)}}var sae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dw=sae&&typeof module=="object"&&module&&!module.nodeType&&module,Bpt=dw&&dw.exports===sae,Y$=Bpt&&Yie.process,av=function(){try{var e=dw&&dw.require&&dw.require("util").types;return e||Y$&&Y$.binding&&Y$.binding("util")}catch{}}(),I9=av&&av.isTypedArray,zpt=I9?DB(I9):jpt,Vpt=Object.prototype,Hpt=Vpt.hasOwnProperty;function lae(e,t){var n=VS(e),r=!n&&spt(e),o=!n&&!r&&iae(e),i=!n&&!r&&!o&&zpt(e),a=n||r||o||i,s=a?rpt(e.length,String):[],l=s.length;for(var c in e)(t||Hpt.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ppt(c,l)))&&s.push(c);return s}var Upt=Object.prototype;function _B(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Upt;return e===n}var Wpt=Qie(Object.keys,Object),Gpt=Object.prototype,qpt=Gpt.hasOwnProperty;function Kpt(e){if(!_B(e))return Wpt(e);var t=[];for(var n in Object(e))qpt.call(e,n)&&n!="constructor"&&t.push(n);return t}function cae(e){return e!=null&&aae(e.length)&&!eae(e)}function LB(e){return cae(e)?lae(e):Kpt(e)}function Ypt(e,t){return e&&Mk(t,LB(t),e)}function Xpt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Qpt=Object.prototype,Jpt=Qpt.hasOwnProperty;function Zpt(e){if(!zS(e))return Xpt(e);var t=_B(e),n=[];for(var r in e)r=="constructor"&&(t||!Jpt.call(e,r))||n.push(r);return n}function NB(e){return cae(e)?lae(e,!0):Zpt(e)}function eht(e,t){return e&&Mk(t,NB(t),e)}var uae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,k9=uae&&typeof module=="object"&&module&&!module.nodeType&&module,tht=k9&&k9.exports===uae,M9=tht?Hc.Buffer:void 0,A9=M9?M9.allocUnsafe:void 0;function nht(e,t){if(t)return e.slice();var n=e.length,r=A9?A9(n):new e.constructor(n);return e.copy(r),r}function dae(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function rht(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function fae(){return[]}var oht=Object.prototype,iht=oht.propertyIsEnumerable,$9=Object.getOwnPropertySymbols,FB=$9?function(e){return e==null?[]:(e=Object(e),rht($9(e),function(t){return iht.call(e,t)}))}:fae;function aht(e,t){return Mk(e,FB(e),t)}function pae(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var sht=Object.getOwnPropertySymbols,hae=sht?function(e){for(var t=[];e;)pae(t,FB(e)),e=RB(e);return t}:fae;function lht(e,t){return Mk(e,hae(e),t)}function mae(e,t,n){var r=t(e);return VS(e)?r:pae(r,n(e))}function cht(e){return mae(e,LB,FB)}function uht(e){return mae(e,NB,hae)}var iL=qh(Hc,"DataView"),aL=qh(Hc,"Promise"),sL=qh(Hc,"Set"),lL=qh(Hc,"WeakMap"),R9="[object Map]",dht="[object Object]",D9="[object Promise]",_9="[object Set]",L9="[object WeakMap]",N9="[object DataView]",fht=Gh(iL),pht=Gh($x),hht=Gh(aL),mht=Gh(sL),ght=Gh(lL),hu=Uh;(iL&&hu(new iL(new ArrayBuffer(1)))!=N9||$x&&hu(new $x)!=R9||aL&&hu(aL.resolve())!=D9||sL&&hu(new sL)!=_9||lL&&hu(new lL)!=L9)&&(hu=function(e){var t=Uh(e),n=t==dht?e.constructor:void 0,r=n?Gh(n):"";if(r)switch(r){case fht:return N9;case pht:return R9;case hht:return D9;case mht:return _9;case ght:return L9}return t});var yht=Object.prototype,vht=yht.hasOwnProperty;function bht(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&vht.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var F9=Hc.Uint8Array;function jB(e){var t=new e.constructor(e.byteLength);return new F9(t).set(new F9(e)),t}function wht(e,t){var n=t?jB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var xht=/\w*$/;function Sht(e){var t=new e.constructor(e.source,xht.exec(e));return t.lastIndex=e.lastIndex,t}var j9=Sf?Sf.prototype:void 0,B9=j9?j9.valueOf:void 0;function Cht(e){return B9?Object(B9.call(e)):{}}function Pht(e,t){var n=t?jB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Eht="[object Boolean]",Tht="[object Date]",Oht="[object Map]",Iht="[object Number]",kht="[object RegExp]",Mht="[object Set]",Aht="[object String]",$ht="[object Symbol]",Rht="[object ArrayBuffer]",Dht="[object DataView]",_ht="[object Float32Array]",Lht="[object Float64Array]",Nht="[object Int8Array]",Fht="[object Int16Array]",jht="[object Int32Array]",Bht="[object Uint8Array]",zht="[object Uint8ClampedArray]",Vht="[object Uint16Array]",Hht="[object Uint32Array]";function Uht(e,t,n){var r=e.constructor;switch(t){case Rht:return jB(e);case Eht:case Tht:return new r(+e);case Dht:return wht(e,n);case _ht:case Lht:case Nht:case Fht:case jht:case Bht:case zht:case Vht:case Hht:return Pht(e,n);case Oht:return new r;case Iht:case Aht:return new r(e);case kht:return Sht(e);case Mht:return new r;case $ht:return Cht(e)}}var z9=Object.create,Wht=function(){function e(){}return function(t){if(!zS(t))return{};if(z9)return z9(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ght(e){return typeof e.constructor=="function"&&!_B(e)?Wht(RB(e)):{}}var qht="[object Map]";function Kht(e){return Wh(e)&&hu(e)==qht}var V9=av&&av.isMap,Yht=V9?DB(V9):Kht,Xht="[object Set]";function Qht(e){return Wh(e)&&hu(e)==Xht}var H9=av&&av.isSet,Jht=H9?DB(H9):Qht,Zht=1,emt=2,tmt=4,gae="[object Arguments]",nmt="[object Array]",rmt="[object Boolean]",omt="[object Date]",imt="[object Error]",yae="[object Function]",amt="[object GeneratorFunction]",smt="[object Map]",lmt="[object Number]",vae="[object Object]",cmt="[object RegExp]",umt="[object Set]",dmt="[object String]",fmt="[object Symbol]",pmt="[object WeakMap]",hmt="[object ArrayBuffer]",mmt="[object DataView]",gmt="[object Float32Array]",ymt="[object Float64Array]",vmt="[object Int8Array]",bmt="[object Int16Array]",wmt="[object Int32Array]",xmt="[object Uint8Array]",Smt="[object Uint8ClampedArray]",Cmt="[object Uint16Array]",Pmt="[object Uint32Array]",vr={};vr[gae]=vr[nmt]=vr[hmt]=vr[mmt]=vr[rmt]=vr[omt]=vr[gmt]=vr[ymt]=vr[vmt]=vr[bmt]=vr[wmt]=vr[smt]=vr[lmt]=vr[vae]=vr[cmt]=vr[umt]=vr[dmt]=vr[fmt]=vr[xmt]=vr[Smt]=vr[Cmt]=vr[Pmt]=!0;vr[imt]=vr[yae]=vr[pmt]=!1;function fw(e,t,n,r,o,i){var a,s=t&Zht,l=t&emt,c=t&tmt;if(a!==void 0)return a;if(!zS(e))return e;var u=VS(e);if(u){if(a=bht(e),!s)return dae(e,a)}else{var d=hu(e),f=d==yae||d==amt;if(iae(e))return nht(e,s);if(d==vae||d==gae||f&&!o){if(a=l||f?{}:Ght(e),!s)return l?lht(e,eht(a,e)):aht(e,Ypt(a,e))}else{if(!vr[d])return o?e:{};a=Uht(e,d,s)}}i||(i=new rb);var p=i.get(e);if(p)return p;i.set(e,a),Jht(e)?e.forEach(function(y){a.add(fw(y,t,n,y,e,i))}):Yht(e)&&e.forEach(function(y,b){a.set(b,fw(y,t,n,b,e,i))});var m=c?l?uht:cht:l?NB:LB,g=u?void 0:m(e);return ept(g||e,function(y,b){g&&(b=y,y=e[b]),nae(a,b,fw(y,t,n,b,e,i))}),a}var Emt=1,Tmt=4;function GC(e){return fw(e,Emt|Tmt)}var U9=Array.isArray,W9=Object.keys,Omt=Object.prototype.hasOwnProperty,Imt=typeof Element<"u";function cL(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=U9(e),r=U9(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!cL(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=W9(e);if(i=d.length,i!==W9(t).length)return!1;for(o=i;o--!==0;)if(!Omt.call(t,d[o]))return!1;if(Imt&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=d[o],!(a==="_owner"&&e.$$typeof)&&!cL(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var kmt=function(t,n){try{return cL(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Ep=Bn(kmt);var Mmt=4;function G9(e){return fw(e,Mmt)}function bae(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Amt="[object Symbol]";function BB(e){return typeof e=="symbol"||Wh(e)&&Uh(e)==Amt}var $mt="Expected a function";function zB(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($mt);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zB.Cache||Vf),n}zB.Cache=Vf;var Rmt=500;function Dmt(e){var t=zB(e,function(r){return n.size===Rmt&&n.clear(),r}),n=t.cache;return t}var _mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lmt=/\\(\\)?/g,Nmt=Dmt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_mt,function(n,r,o,i){t.push(o?i.replace(Lmt,"$1"):r||n)}),t}),Fmt=1/0;function jmt(e){if(typeof e=="string"||BB(e))return e;var t=e+"";return t=="0"&&1/e==-Fmt?"-0":t}var Bmt=1/0,q9=Sf?Sf.prototype:void 0,K9=q9?q9.toString:void 0;function wae(e){if(typeof e=="string")return e;if(VS(e))return bae(e,wae)+"";if(BB(e))return K9?K9.call(e):"";var t=e+"";return t=="0"&&1/e==-Bmt?"-0":t}function zmt(e){return e==null?"":wae(e)}function xae(e){return VS(e)?bae(e,jmt):BB(e)?[e]:dae(Nmt(zmt(e)))}function No(){return No=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},No.apply(this,arguments)}function Sae(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ak=v.createContext(void 0);Ak.displayName="FormikContext";var Vmt=Ak.Provider;Ak.Consumer;function Cae(){var e=v.useContext(Ak);return e}var Es=function(t){return typeof t=="function"},HS=function(t){return t!==null&&typeof t=="object"},Hmt=function(t){return String(Math.floor(Number(t)))===t},X$=function(t){return Object.prototype.toString.call(t)==="[object String]"},Umt=function(t){return v.Children.count(t)===0},Q$=function(t){return HS(t)&&Es(t.then)};function Aa(e,t,n,r){r===void 0&&(r=0);for(var o=xae(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function th(e,t,n){for(var r=G9(e),o=r,i=0,a=xae(t);i<a.length-1;i++){var s=a[i],l=Aa(e,a.slice(0,i+1));if(l&&(HS(l)||Array.isArray(l)))o=o[s]=G9(l);else{var c=a[i+1];o=o[s]=Hmt(c)&&Number(c)>=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function Pae(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];HS(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Pae(s,t,n,r[a])):r[a]=t}return r}function Wmt(e,t){switch(t.type){case"SET_VALUES":return No({},e,{values:t.payload});case"SET_TOUCHED":return No({},e,{touched:t.payload});case"SET_ERRORS":return Ep(e.errors,t.payload)?e:No({},e,{errors:t.payload});case"SET_STATUS":return No({},e,{status:t.payload});case"SET_ISSUBMITTING":return No({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return No({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return No({},e,{values:th(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return No({},e,{touched:th(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return No({},e,{errors:th(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return No({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return No({},e,{touched:Pae(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return No({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return No({},e,{isSubmitting:!1});default:return e}}var mp={},qC={};function Gmt(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,a=i===void 0?!1:i,s=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,u=e.onSubmit,d=Sae(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=No({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:u},d),p=v.useRef(f.initialValues),m=v.useRef(f.initialErrors||mp),g=v.useRef(f.initialTouched||qC),y=v.useRef(f.initialStatus),b=v.useRef(!1),x=v.useRef({});v.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var S=v.useState(0),P=S[1],E=v.useRef({values:GC(f.initialValues),errors:GC(f.initialErrors)||mp,touched:GC(f.initialTouched)||qC,status:GC(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),T=E.current,O=v.useCallback(function(de){var Re=E.current;E.current=Wmt(Re,de),Re!==E.current&&P(function(Me){return Me+1})},[]),k=v.useCallback(function(de,Re){return new Promise(function(Me,Ae){var Ne=f.validate(de,Re);Ne==null?Me(mp):Q$(Ne)?Ne.then(function(Je){Me(Je||mp)},function(Je){Ae(Je)}):Me(Ne)})},[f.validate]),M=v.useCallback(function(de,Re){var Me=f.validationSchema,Ae=Es(Me)?Me(Re):Me,Ne=Re&&Ae.validateAt?Ae.validateAt(Re,de):Kmt(de,Ae);return new Promise(function(Je,nt){Ne.then(function(){Je(mp)},function(st){st.name==="ValidationError"?Je(qmt(st)):nt(st)})})},[f.validationSchema]),I=v.useCallback(function(de,Re){return new Promise(function(Me){return Me(x.current[de].validate(Re))})},[]),R=v.useCallback(function(de){var Re=Object.keys(x.current).filter(function(Ae){return Es(x.current[Ae].validate)}),Me=Re.length>0?Re.map(function(Ae){return I(Ae,Aa(de,Ae))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Me).then(function(Ae){return Ae.reduce(function(Ne,Je,nt){return Je==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Je&&(Ne=th(Ne,Re[nt],Je)),Ne},{})})},[I]),_=v.useCallback(function(de){return Promise.all([R(de),f.validationSchema?M(de):{},f.validate?k(de):{}]).then(function(Re){var Me=Re[0],Ae=Re[1],Ne=Re[2],Je=oL.all([Me,Ae,Ne],{arrayMerge:Ymt});return Je})},[f.validate,f.validationSchema,R,k,M]),N=Cs(function(de){return de===void 0&&(de=T.values),O({type:"SET_ISVALIDATING",payload:!0}),_(de).then(function(Re){return b.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:Re})),Re})});v.useEffect(function(){a&&b.current===!0&&Ep(p.current,f.initialValues)&&N(p.current)},[a,N]);var B=v.useCallback(function(de){var Re=de&&de.values?de.values:p.current,Me=de&&de.errors?de.errors:m.current?m.current:f.initialErrors||{},Ae=de&&de.touched?de.touched:g.current?g.current:f.initialTouched||{},Ne=de&&de.status?de.status:y.current?y.current:f.initialStatus;p.current=Re,m.current=Me,g.current=Ae,y.current=Ne;var Je=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!de&&!!de.isSubmitting,errors:Me,touched:Ae,status:Ne,values:Re,isValidating:!!de&&!!de.isValidating,submitCount:de&&de.submitCount&&typeof de.submitCount=="number"?de.submitCount:0}})};if(f.onReset){var nt=f.onReset(T.values,ue);Q$(nt)?nt.then(Je):Je()}else Je()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);v.useEffect(function(){b.current===!0&&!Ep(p.current,f.initialValues)&&c&&(p.current=f.initialValues,B(),a&&N(p.current))},[c,f.initialValues,B,a,N]),v.useEffect(function(){c&&b.current===!0&&!Ep(m.current,f.initialErrors)&&(m.current=f.initialErrors||mp,O({type:"SET_ERRORS",payload:f.initialErrors||mp}))},[c,f.initialErrors]),v.useEffect(function(){c&&b.current===!0&&!Ep(g.current,f.initialTouched)&&(g.current=f.initialTouched||qC,O({type:"SET_TOUCHED",payload:f.initialTouched||qC}))},[c,f.initialTouched]),v.useEffect(function(){c&&b.current===!0&&!Ep(y.current,f.initialStatus)&&(y.current=f.initialStatus,O({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var L=Cs(function(de){if(x.current[de]&&Es(x.current[de].validate)){var Re=Aa(T.values,de),Me=x.current[de].validate(Re);return Q$(Me)?(O({type:"SET_ISVALIDATING",payload:!0}),Me.then(function(Ae){return Ae}).then(function(Ae){O({type:"SET_FIELD_ERROR",payload:{field:de,value:Ae}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:de,value:Me}}),Promise.resolve(Me))}else if(f.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),M(T.values,de).then(function(Ae){return Ae}).then(function(Ae){O({type:"SET_FIELD_ERROR",payload:{field:de,value:Aa(Ae,de)}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),F=v.useCallback(function(de,Re){var Me=Re.validate;x.current[de]={validate:Me}},[]),U=v.useCallback(function(de){delete x.current[de]},[]),V=Cs(function(de,Re){O({type:"SET_TOUCHED",payload:de});var Me=Re===void 0?o:Re;return Me?N(T.values):Promise.resolve()}),z=v.useCallback(function(de){O({type:"SET_ERRORS",payload:de})},[]),W=Cs(function(de,Re){var Me=Es(de)?de(T.values):de;O({type:"SET_VALUES",payload:Me});var Ae=Re===void 0?n:Re;return Ae?N(Me):Promise.resolve()}),G=v.useCallback(function(de,Re){O({type:"SET_FIELD_ERROR",payload:{field:de,value:Re}})},[]),J=Cs(function(de,Re,Me){O({type:"SET_FIELD_VALUE",payload:{field:de,value:Re}});var Ae=Me===void 0?n:Me;return Ae?N(th(T.values,de,Re)):Promise.resolve()}),K=v.useCallback(function(de,Re){var Me=Re,Ae=de,Ne;if(!X$(de)){de.persist&&de.persist();var Je=de.target?de.target:de.currentTarget,nt=Je.type,st=Je.name,$t=Je.id,ct=Je.value,_t=Je.checked,pt=Je.outerHTML,ot=Je.options,Pe=Je.multiple;Me=Re||st||$t,Ae=/number|range/.test(nt)?(Ne=parseFloat(ct),isNaN(Ne)?"":Ne):/checkbox/.test(nt)?Qmt(Aa(T.values,Me),_t,ct):ot&&Pe?Xmt(ot):ct}Me&&J(Me,Ae)},[J,T.values]),ne=Cs(function(de){if(X$(de))return function(Re){return K(Re,de)};K(de)}),re=Cs(function(de,Re,Me){Re===void 0&&(Re=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:de,value:Re}});var Ae=Me===void 0?o:Me;return Ae?N(T.values):Promise.resolve()}),oe=v.useCallback(function(de,Re){de.persist&&de.persist();var Me=de.target,Ae=Me.name,Ne=Me.id,Je=Me.outerHTML,nt=Re||Ae||Ne;re(nt,!0)},[re]),fe=Cs(function(de){if(X$(de))return function(Re){return oe(Re,de)};oe(de)}),se=v.useCallback(function(de){Es(de)?O({type:"SET_FORMIK_STATE",payload:de}):O({type:"SET_FORMIK_STATE",payload:function(){return de}})},[]),ee=v.useCallback(function(de){O({type:"SET_STATUS",payload:de})},[]),ce=v.useCallback(function(de){O({type:"SET_ISSUBMITTING",payload:de})},[]),le=Cs(function(){return O({type:"SUBMIT_ATTEMPT"}),N().then(function(de){var Re=de instanceof Error,Me=!Re&&Object.keys(de).length===0;if(Me){var Ae;try{if(Ae=ge(),Ae===void 0)return}catch(Ne){throw Ne}return Promise.resolve(Ae).then(function(Ne){return b.current&&O({type:"SUBMIT_SUCCESS"}),Ne}).catch(function(Ne){if(b.current)throw O({type:"SUBMIT_FAILURE"}),Ne})}else if(b.current&&(O({type:"SUBMIT_FAILURE"}),Re))throw de})}),Q=Cs(function(de){de&&de.preventDefault&&Es(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Es(de.stopPropagation)&&de.stopPropagation(),le().catch(function(Re){console.warn("Warning: An unhandled error was caught from submitForm()",Re)})}),ue={resetForm:B,validateForm:N,validateField:L,setErrors:z,setFieldError:G,setFieldTouched:re,setFieldValue:J,setStatus:ee,setSubmitting:ce,setTouched:V,setValues:W,setFormikState:se,submitForm:le},ge=Cs(function(){return u(T.values,ue)}),xe=Cs(function(de){de&&de.preventDefault&&Es(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Es(de.stopPropagation)&&de.stopPropagation(),B()}),me=v.useCallback(function(de){return{value:Aa(T.values,de),error:Aa(T.errors,de),touched:!!Aa(T.touched,de),initialValue:Aa(p.current,de),initialTouched:!!Aa(g.current,de),initialError:Aa(m.current,de)}},[T.errors,T.touched,T.values]),be=v.useCallback(function(de){return{setValue:function(Me,Ae){return J(de,Me,Ae)},setTouched:function(Me,Ae){return re(de,Me,Ae)},setError:function(Me){return G(de,Me)}}},[J,re,G]),we=v.useCallback(function(de){var Re=HS(de),Me=Re?de.name:de,Ae=Aa(T.values,Me),Ne={name:Me,value:Ae,onChange:ne,onBlur:fe};if(Re){var Je=de.type,nt=de.value,st=de.as,$t=de.multiple;Je==="checkbox"?nt===void 0?Ne.checked=!!Ae:(Ne.checked=!!(Array.isArray(Ae)&&~Ae.indexOf(nt)),Ne.value=nt):Je==="radio"?(Ne.checked=Ae===nt,Ne.value=nt):st==="select"&&$t&&(Ne.value=Ne.value||[],Ne.multiple=!0)}return Ne},[fe,ne,T.values]),Oe=v.useMemo(function(){return!Ep(p.current,T.values)},[p.current,T.values]),ke=v.useMemo(function(){return typeof s<"u"?Oe?T.errors&&Object.keys(T.errors).length===0:s!==!1&&Es(s)?s(f):s:T.errors&&Object.keys(T.errors).length===0},[s,Oe,T.errors,f]),je=No({},T,{initialValues:p.current,initialErrors:m.current,initialTouched:g.current,initialStatus:y.current,handleBlur:fe,handleChange:ne,handleReset:xe,handleSubmit:Q,resetForm:B,setErrors:z,setFormikState:se,setFieldTouched:re,setFieldValue:J,setFieldError:G,setStatus:ee,setSubmitting:ce,setTouched:V,setValues:W,submitForm:le,validateForm:N,validateField:L,isValid:ke,dirty:Oe,unregisterField:U,registerField:F,getFieldProps:we,getFieldMeta:me,getFieldHelpers:be,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return je}function cl(e){var t=Gmt(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return v.useImperativeHandle(i,function(){return t}),v.createElement(Vmt,{value:t},n?v.createElement(n,t):o?o(t):r?Es(r)?r(t):Umt(r)?null:v.Children.only(r):null)}function qmt(e){var t={};if(e.inner){if(e.inner.length===0)return th(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;Aa(t,a.path)||(t=th(t,a.path,a.message))}}return t}function Kmt(e,t,n,r){n===void 0&&(n=!1);var o=uL(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function uL(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||S9(o)?uL(o):o!==""?o:void 0}):S9(e[r])?t[r]=uL(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Ymt(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?oL(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=oL(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Xmt(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Qmt(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Jmt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function Cs(e){var t=v.useRef(e);return Jmt(function(){t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function ul(e){var t=Cae(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,a=t.unregisterField,s=HS(e),l=s?e:{name:e},c=l.name,u=l.validate;v.useEffect(function(){return c&&i(c,{validate:u}),function(){c&&a(c)}},[i,a,c,u]);var d=v.useMemo(function(){return o(c)},[o,c]);return[n(l),r(c),d]}var as=v.forwardRef(function(e,t){var n=e.action,r=Sae(e,["action"]),o=n??"#",i=Cae(),a=i.handleReset,s=i.handleSubmit;return v.createElement("form",No({onSubmit:s,ref:t,onReset:a,action:o},r))});as.displayName="Form";function Kh(e){this._maxSize=e,this.clear()}Kh.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Kh.prototype.get=function(e){return this._values[e]};Kh.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Zmt=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Eae=/^\d+$/,egt=/^\d/,tgt=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,ngt=/^\s*(['"]?)(.*?)(\1)\s*$/,VB=512,Y9=new Kh(VB),X9=new Kh(VB),Q9=new Kh(VB),nh={Cache:Kh,split:dL,normalizePath:J$,setter:function(e){var t=J$(e);return X9.get(e)||X9.set(e,function(r,o){for(var i=0,a=t.length,s=r;i<a-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[i++]]}s[t[i]]=o})},getter:function(e,t){var n=J$(e);return Q9.get(e)||Q9.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(HB(n)||Eae.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){rgt(Array.isArray(e)?e:dL(e),t,n)}};function J$(e){return Y9.get(e)||Y9.set(e,dL(e).map(function(t){return t.replace(ngt,"$2")}))}function dL(e){return e.match(Zmt)||[""]}function rgt(e,t,n){var r=e.length,o,i,a,s;for(i=0;i<r;i++)o=e[i],o&&(agt(o)&&(o='"'+o+'"'),s=HB(o),a=!s&&/^\d+$/.test(o),t.call(n,o,s,a,i,e))}function HB(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function ogt(e){return e.match(egt)&&!e.match(Eae)}function igt(e){return tgt.test(e)}function agt(e){return!HB(e)&&(ogt(e)||igt(e))}const sgt=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,$k=e=>e.match(sgt)||[],Rk=e=>e[0].toUpperCase()+e.slice(1),UB=(e,t)=>$k(e).join(t).toLowerCase(),Tae=e=>$k(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),lgt=e=>Rk(Tae(e)),cgt=e=>UB(e,"_"),ugt=e=>UB(e,"-"),dgt=e=>Rk(UB(e," ")),fgt=e=>$k(e).map(Rk).join(" ");var Z$={words:$k,upperFirst:Rk,camelCase:Tae,pascalCase:lgt,snakeCase:cgt,kebabCase:ugt,sentenceCase:dgt,titleCase:fgt},WB={exports:{}};WB.exports=function(e){return Oae(pgt(e),e)};WB.exports.array=Oae;function Oae(e,t){var n=e.length,r=new Array(n),o={},i=n,a=hgt(t),s=mgt(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(c,u,d){if(d.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!o[u]){o[u]=!0;var p=a.get(c)||new Set;if(p=Array.from(p),u=p.length){d.add(c);do{var m=p[--u];l(m,s.get(m),d)}while(u);d.delete(c)}r[--n]=c}}}function pgt(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function hgt(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function mgt(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var ggt=WB.exports;const ygt=Bn(ggt),vgt=Object.prototype.toString,bgt=Error.prototype.toString,wgt=RegExp.prototype.toString,xgt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Sgt=/^Symbol\((.*)\)(.*)$/;function Cgt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function J9(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Cgt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return xgt.call(e).replace(Sgt,"Symbol($1)");const r=vgt.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+bgt.call(e)+"]":r==="RegExp"?wgt.call(e):null}function Ou(e,t){let n=J9(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=J9(this[r],t);return i!==null?i:o},2)}function Iae(e){return e==null?[]:[].concat(e)}let kae,Mae,Aae,Pgt=/\$\{\s*(\w+)\s*\}/g;kae=Symbol.toStringTag;class Z9{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[kae]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],Iae(t).forEach(i=>{if(ia.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Mae=Symbol.hasInstance;Aae=Symbol.toStringTag;class ia extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(Pgt,(o,i)=>Ou(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new Z9(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Aae]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ia)}static[Mae](t){return Z9[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let uc={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Ou(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ou(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Ou(n,!0)}\``+o}},ea={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Cd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},fL={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},pL={isValue:"${path} field must be ${value}"},hL={noUnknown:"${path} field has unspecified keys: ${unknown}"},DP={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Egt={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Ou(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Ou(n,!0)}\``}return ia.formatError(uc.notType,e)}};Object.assign(Object.create(null),{mixed:uc,string:ea,number:Cd,date:fL,object:hL,array:DP,boolean:pL,tuple:Egt});const Dk=e=>e&&e.__isYupSchema__;class HT{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new HT(t,(s,l)=>{var c;let u=a(...s)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Dk(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const KC={context:"$",value:"."};class Yh{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===KC.context,this.isValue=this.key[0]===KC.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?KC.context:this.isValue?KC.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&nh.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Yh.prototype.__isYupRef=!0;const jl=e=>e==null;function Bm(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:c,test:u,params:d,message:f,skipAbsent:p}=e;let{parent:m,context:g,abortEarly:y=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=o;function x(R){return Yh.isRef(R)?R.getValue(n,m,g):R}function S(R={}){const _=Object.assign({value:n,originalValue:i,label:a.spec.label,path:R.path||r,spec:a.spec,disableStackTrace:R.disableStackTrace||b},d,R.params);for(const B of Object.keys(_))_[B]=x(_[B]);const N=new ia(ia.formatError(R.message||f,_),n,_.path,R.type||c,_.disableStackTrace);return N.params=_,N}const P=y?s:l;let E={path:r,parent:m,type:c,from:o.from,createError:S,resolve:x,options:o,originalValue:i,schema:a};const T=R=>{ia.isError(R)?P(R):R?l(null):P(S())},O=R=>{ia.isError(R)?P(R):s(R)};if(p&&jl(n))return T(!0);let M;try{var I;if(M=u.call(E,n,E),typeof((I=M)==null?void 0:I.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(M).then(T,O)}}catch(R){O(R);return}T(M)}return t.OPTIONS=e,t}function Tgt(e,t,n,r=n){let o,i,a;return t?(nh.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class UT extends Set{describe(){const t=[];for(const n of this.values())t.push(Yh.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new UT(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Eg(e,t=new Map){if(Dk(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Eg(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Eg(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Eg(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Eg(o,t)}else throw Error(`Unable to clone ${e}`);return n}class Za{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new UT,this._blacklist=new UT,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(uc.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Eg(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&jl(i))return i;let a=Ou(t),s=Ou(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
+`));const t=v.useMemo(()=>D({},lit,e.localeText),[e.localeText]);return v.useMemo(()=>D({},e,{localeText:t}),[e,t])},gn=()=>om().utils,im=()=>om().defaultDates,am=e=>{const t=gn(),n=v.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Eo=()=>om().localeText,cit=v.createContext(),po=()=>v.useContext(cit)??!1,uit=lt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dit=lt($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),fit=lt($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Zoe=lt($.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),pit=lt($.jsxs(v.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),hit=lt($.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),mit=lt($.jsxs(v.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),git=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function yit(e){return _n("MuiPickersArrowSwitcher",e)}Ln("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const vit=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],bit=["ownerState"],wit=["ownerState"],xit=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Sit=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),x9=ie(In,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Cit=e=>{const{classes:t}=e;return bt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},yit,t)},eie=v.forwardRef(function(t,n){const r=po(),o=Jt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:p,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:b}=o,x=ze(o,vit),S=o,P=Cit(S),E={isDisabled:c,isHidden:u,goTo:d,label:f},T={isDisabled:p,isHidden:m,goTo:g,label:y},O=(s==null?void 0:s.previousIconButton)??x9,k=Hn({elementType:O,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:D({},S,{hidden:T.isHidden}),className:pe(P.button,P.previousIconButton)}),M=(s==null?void 0:s.nextIconButton)??x9,I=Hn({elementType:M,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:D({},S,{hidden:E.isHidden}),className:pe(P.button,P.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??dit,_=Hn({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.leftArrowIcon}),L=ze(_,bit),j=(s==null?void 0:s.rightArrowIcon)??fit,N=Hn({elementType:j,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.rightArrowIcon}),F=ze(N,wit);return $.jsxs(xit,D({ref:n,className:pe(P.root,a),ownerState:S},x,{children:[$.jsx(O,D({},k,{children:r?$.jsx(j,D({},F)):$.jsx(R,D({},L))})),i?$.jsx(ut,{variant:"subtitle1",component:"span",id:b,children:i}):$.jsx(Sit,{className:P.spacer,ownerState:S}),$.jsx(M,D({},I,{children:r?$.jsx(R,D({},L)):$.jsx(j,D({},F))}))]}))}),Mc=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),VB=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},tie=["hours","minutes","seconds"],Pv=e=>tie.includes(e),J0=e=>tie.includes(e)||e==="meridiem",Pit=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Xx=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Eit=(e,t,n,r)=>{const o=Xx(r.getHours(e),t,n);return r.setHours(e,o)},S9=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),n1=(e,t)=>(n,r)=>e?t.isAfter(n,r):S9(n,t)>S9(r,t),sO=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Mc(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Mc(n,["minutes"])?o.minutes:Mc(n,["seconds"])?o.seconds:Mc(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Mc(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function r1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[d,f]=Bh({name:"useViews",state:"view",controlled:r,default:u.current}),p=v.useRef(i?d:null),[m,g]=Bh({name:"useViews",state:"focusedView",controlled:a,default:p.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(O=>!o.includes(O)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const y=o.indexOf(d),b=o[y-1]??null,x=o[y+1]??null,S=ot((O,k)=>{g(k?O:M=>O===M?null:M),s==null||s(O,k)}),P=ot(O=>{S(O,!0),O!==d&&(f(O),t&&t(O))}),E=ot(()=>{x&&P(x)}),T=ot((O,k,M)=>{const I=k==="finish",R=M?o.indexOf(M)<o.length-1:!!x;if(e(O,I&&R?"partial":k,M),M&&M!==d){const L=o[o.indexOf(M)+1];L&&P(L)}else I&&E()});return{view:d,setView:P,focusedView:m,setFocusedView:S,nextView:x,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:T}}function Tit(e,{disableFuture:t,maxDate:n,timezone:r}){const o=gn();return v.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function Oit(e,{disablePast:t,minDate:n,timezone:r}){const o=gn();return v.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function Vk(e,t,n,r){const o=gn(),i=Pit(e,o),a=v.useCallback(s=>{const l=e==null?null:Eit(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:i,handleMeridiemChange:a}}const Qx=36,Hk=2,Uk=320,Iit=280,Wk=336,nie=232,Z0=48,Gk=ie("div")({overflow:"hidden",width:Uk,maxHeight:Wk,display:"flex",flexDirection:"column",margin:"0 auto"});function kit(e){return _n("MuiTimeClock",e)}Ln("MuiTimeClock",["root","arrowSwitcher"]);const Ev=220,ju=36,Jx={x:Ev/2,y:Ev/2},rie={x:Jx.x,y:0},Mit=rie.x-Jx.x,Ait=rie.y-Jx.y,$it=e=>e*(180/Math.PI),oie=(e,t,n)=>{const r=t-Jx.x,o=n-Jx.y,i=Math.atan2(Mit,Ait)-Math.atan2(r,o);let a=$it(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},Rit=(e,t,n=1)=>{const r=n*6;let{value:o}=oie(r,e,t);return o=o*n%60,o},Dit=(e,t,n)=>{const{value:r,distance:o}=oie(30,e,t);let i=r||12;return n?i%=12:o<Ev/2-ju&&(i+=12,i%=24),i};function _it(e){return _n("MuiClockPointer",e)}Ln("MuiClockPointer",["root","thumb"]);const Lit=["className","hasSelected","isInner","type","viewValue"],Nit=e=>{const{classes:t}=e;return bt({root:["root"],thumb:["thumb"]},_it,t)},Fit=ie("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),jit=ie("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${ju/2}px)`,border:`${(ju-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function Bit(e){const t=Jt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=ze(t,Lit),s=v.useRef(o);v.useEffect(()=>{s.current=o},[o]);const l=D({},t,{shouldAnimate:s.current!==o}),c=Nit(l),u=()=>{let f=360/(o==="hours"?12:60)*i;return o==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Ev),transform:`rotateZ(${f}deg)`}};return $.jsx(Fit,D({style:u(),className:pe(c.root,n),ownerState:l},a,{children:$.jsx(jit,{ownerState:l,className:c.thumb})}))}function zit(e){return _n("MuiClock",e)}Ln("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const lO=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},$w=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=lO(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},Vit=(e,t)=>t==null||!e.isValid(t)?null:t,ki=(e,t,n)=>t==null||!e.isValid(t)?n:t,Hit=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),HB=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},UB=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Kl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Uit=["year","month","day"],Tv=e=>Uit.includes(e),Zx=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Mc(n,["year"])?o.year:Mc(n,["month"])?o.month:Mc(n,["day"])?o.dayOfMonth:Mc(n,["month","year"])?`${o.month} ${o.year}`:Mc(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Wit=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Git=e=>{const{classes:t,meridiemMode:n}=e;return bt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},zit,t)},qit=ie("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Kit=ie("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Yit=ie("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Xit=ie("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Qit=ie("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),iie=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:ju,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Jit=ie(In,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>D({},iie(e,"am"),{position:"absolute",left:8})),Zit=ie(In,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>D({},iie(e,"pm"),{position:"absolute",right:8})),C9=ie(ut,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function eat(e){const t=Jt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:f,type:p,viewValue:m,viewRange:[g,y],disabled:b=!1,readOnly:x,className:S}=t,P=t,E=gn(),T=Eo(),O=v.useRef(!1),k=Git(P),M=l(m,p),I=!n&&p==="hours"&&(m<1||m>12),R=(K,ne)=>{b||x||l(K,p)||d(K,ne)},_=(K,ne)=>{let{offsetX:re,offsetY:oe}=K;if(re===void 0){const se=K.target.getBoundingClientRect();re=K.changedTouches[0].clientX-se.left,oe=K.changedTouches[0].clientY-se.top}const fe=p==="seconds"||p==="minutes"?Rit(re,oe,u):Dit(re,oe,!!n);R(fe,ne)},L=K=>{O.current=!0,_(K,"shallow")},j=K=>{O.current&&(_(K,"finish"),O.current=!1),K.preventDefault()},N=K=>{K.buttons>0&&_(K.nativeEvent,"shallow")},F=K=>{O.current&&(O.current=!1),_(K.nativeEvent,"finish")},U=v.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),z=p==="minutes"?u:1,V=v.useRef(null);mr(()=>{o&&V.current.focus()},[o]);const W=K=>Math.max(g,Math.min(y,K)),G=K=>(K+(y+1))%(y+1),J=K=>{if(!O.current)switch(K.key){case"Home":R(g,"partial"),K.preventDefault();break;case"End":R(y,"partial"),K.preventDefault();break;case"ArrowUp":R(G(m+z),"partial"),K.preventDefault();break;case"ArrowDown":R(G(m-z),"partial"),K.preventDefault();break;case"PageUp":R(W(m+5),"partial"),K.preventDefault();break;case"PageDown":R(W(m-5),"partial"),K.preventDefault();break;case"Enter":case" ":R(m,"finish"),K.preventDefault();break}};return $.jsxs(qit,{className:pe(k.root,S),children:[$.jsxs(Kit,{className:k.clock,children:[$.jsx(Xit,{onTouchMove:L,onTouchStart:L,onTouchEnd:j,onMouseUp:F,onMouseMove:N,ownerState:{disabled:b},className:k.squareMask}),!M&&$.jsxs(v.Fragment,{children:[$.jsx(Qit,{className:k.pin}),a!=null&&$.jsx(Bit,{type:p,viewValue:m,isInner:I,hasSelected:U})]}),$.jsx(Yit,{"aria-activedescendant":f,"aria-label":T.clockLabelText(p,a,E,a==null?null:E.format(a,"fullTime")),ref:V,role:"listbox",onKeyDown:J,tabIndex:0,className:k.wrapper,children:i})]}),n&&r&&$.jsxs(v.Fragment,{children:[$.jsx(Jit,{onClick:x?void 0:()=>s("am"),disabled:b||c===null,ownerState:P,className:k.amButton,title:Kl(E,"am"),children:$.jsx(C9,{variant:"caption",className:k.meridiemText,children:Kl(E,"am")})}),$.jsx(Zit,{disabled:b||c===null,onClick:x?void 0:()=>s("pm"),ownerState:P,className:k.pmButton,title:Kl(E,"pm"),children:$.jsx(C9,{variant:"caption",className:k.meridiemText,children:Kl(E,"pm")})})]})]})}function tat(e){return _n("MuiClockNumber",e)}const lP=Ln("MuiClockNumber",["root","selected","disabled"]),nat=["className","disabled","index","inner","label","selected"],rat=e=>{const{classes:t,selected:n,disabled:r}=e;return bt({root:["root",n&&"selected",r&&"disabled"]},tat,t)},oat=ie("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lP.disabled}`]:t.disabled},{[`&.${lP.selected}`]:t.selected}]})(({theme:e})=>({height:ju,width:ju,position:"absolute",left:`calc((100% - ${ju}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${lP.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${lP.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:D({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function aie(e){const t=Jt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=ze(t,nat),c=t,u=rat(c),d=o%12/12*Math.PI*2-Math.PI/2,f=(Ev-ju-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return $.jsx(oat,D({className:pe(u.root,n),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Ev-ju)/2}px`},ownerState:c},l,{children:a}))}const iat=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=c;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=u(d);s.push($.jsx(aie,{id:m?o:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return s},P9=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const c=a===t;return $.jsx(aie,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},WB=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=gn(),s=v.useRef(n),l=t??s.current??i.emptyValue,c=v.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=ot(m=>c==null?m:i.setTimezone(a,c,m));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=v.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),p=ot((m,...g)=>{const y=u(m);o==null||o(y,...g)});return{value:f,handleValueChange:p,timezone:d}},wb=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=Bh({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=ot((u,...d)=>{l(u),i==null||i(u,...d)});return WB({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Wl={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},aat=e=>Math.max(...e.map(t=>Wl[t.type]??1)),I0=(e,t,n)=>{if(t===Wl.year)return e.startOfYear(n);if(t===Wl.month)return e.startOfMonth(n);if(t===Wl.day)return e.startOfDay(n);let r=n;return t<Wl.minutes&&(r=e.setMinutes(r,0)),t<Wl.seconds&&(r=e.setSeconds(r,0)),t<Wl.milliseconds&&(r=e.setMilliseconds(r,0)),r},sat=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():I0(t,n,UB(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=I0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=I0(t,n,e.maxDate));const a=n1(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=I0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:lO(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=I0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:lO(t,i,e.maxTime))),i},sie=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
+`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},lat=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},qk=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},lie=(e,t,n,r)=>{switch(n){case"month":return HB(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return qk(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},E9="s",cat=["0","1","2","3","4","5","6","7","8","9"],uat=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),E9)==="0"?cat:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),E9))},zh=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},GB=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),T9=(e,t)=>{const n=zh(e,t);return n!==" "&&!Number.isNaN(Number(n))},cie=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},uie=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=cie(i,o.maxLength)),GB(i,r)},dat=(e,t,n,r,o,i,a,s)=>{const l=lat(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=S=>uie(e,S,m,i,n),y=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let x=parseInt(zh(n.value,i),10)+l*y;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?x=m.minimum:x=m.maximum}return x%y!==0&&((l<0||c)&&(x+=y-(y+x)%y),(l>0||u)&&(x-=x%y)),x>m.maximum?g(m.minimum+(x-m.maximum-1)%(m.maximum-m.minimum+1)):x<m.minimum?g(m.maximum-(m.minimum-x-1)%(m.maximum-m.minimum+1)):g(x)},p=()=>{const m=lie(e,t,n.type,n.format);if(m.length===0)return n.value;if(d)return l>0||c?m[0]:m[m.length-1];const b=((m.indexOf(n.value)+l)%m.length+m.length)%m.length;return m[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},qB=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(zh(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},O9=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),die=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,fie=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return die(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},fat=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),i.push(qB(c,"non-input",n)))}const a=o.join(" "),s=i.join(" ");return e.parse(s,a)},pat=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),hat=(e,t,n)=>{const o=e.map(i=>{const a=qB(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},mat=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=HB(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:die(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=qk(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return zh(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(zh(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},gat=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=qk(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},I9={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},k9=(e,t,n,r,o)=>[...n].sort((i,a)=>I9[i.type]-I9[a.type]).reduce((i,a)=>!o||a.modified?gat(e,a,t,i):i,r),yat=()=>navigator.userAgent.toLowerCase().includes("android"),vat=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ML=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},bat=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},wat=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},xat=["value","referenceDate"],ro={emptyValue:null,getTodayValue:UB,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ze(e,xat);return t!=null&&r.utils.isValid(t)?t:n??sat(r)},cleanValue:Vit,areValuesEqual:Hit,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},KB={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:pat,getV6InputValueFromSections:hat,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},YB=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=v.useMemo(()=>ro.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Wl.day,timezone:o,getTodayDate:()=>UB(n,o,"date")}),[]);return e??i},Sat=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Cat=e=>{const{classes:t}=e;return bt({root:["root"],arrowSwitcher:["arrowSwitcher"]},kit,t)},Pat=ie(Gk,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Eat=ie(eie,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Tat=["hours","minutes"],Oat=v.forwardRef(function(t,n){const r=gn(),o=Jt({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:g,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableTime:S,showViewSwitcher:P,onChange:E,view:T,views:O=Tat,openTo:k,onViewChange:M,focusedView:I,onFocusedViewChange:R,className:_,disabled:L,readOnly:j,timezone:N}=o,F=ze(o,Sat),{value:U,handleValueChange:z,timezone:V}=wb({name:"TimeClock",timezone:N,value:u,defaultValue:d,referenceDate:f,onChange:E,valueManager:ro}),W=YB({value:U,referenceDate:f,utils:r,props:o,timezone:V}),G=Eo(),J=am(V),{view:K,setView:ne,previousView:re,nextView:oe,setValueAndGoToNextView:fe}=r1({view:T,views:O,openTo:k,onViewChange:M,onChange:z,focusedView:I,onFocusedViewChange:R}),{meridiemMode:se,handleMeridiemChange:ee}=Vk(W,i,fe),ce=v.useCallback((xe,me)=>{const be=n1(p,r),we=me==="hours"||me==="minutes"&&O.includes("seconds"),Te=({start:Le,end:de})=>!(g&&be(g,de)||m&&be(Le,m)||y&&be(Le,J)||b&&be(J,we?de:Le)),Ie=(Le,de=1)=>{if(Le%de!==0)return!1;if(S)switch(me){case"hours":return!S(r.setHours(W,Le),"hours");case"minutes":return!S(r.setMinutes(W,Le),"minutes");case"seconds":return!S(r.setSeconds(W,Le),"seconds");default:return!1}return!0};switch(me){case"hours":{const Le=Xx(xe,se,i),de=r.setHours(W,Le);if(r.getHours(de)!==Le)return!0;const $e=r.setSeconds(r.setMinutes(de,0),0),ke=r.setSeconds(r.setMinutes(de,59),59);return!Te({start:$e,end:ke})||!Ie(Le)}case"minutes":{const Le=r.setMinutes(W,xe),de=r.setSeconds(Le,0),$e=r.setSeconds(Le,59);return!Te({start:de,end:$e})||!Ie(xe,x)}case"seconds":{const Le=r.setSeconds(W,xe);return!Te({start:Le,end:Le})||!Ie(xe)}default:throw new Error("not supported")}},[i,W,p,m,se,g,x,S,r,y,b,J,O]),le=cr(),Q=v.useMemo(()=>{switch(K){case"hours":{const xe=(we,Te)=>{const Ie=Xx(we,se,i);fe(r.setHours(W,Ie),Te,"hours")},me=r.getHours(W);let be;return i?me>12?be=[12,23]:be=[0,11]:be=[0,23],{onChange:xe,viewValue:me,children:iat({value:U,utils:r,ampm:i,onChange:xe,getClockNumberText:G.hoursClockNumberText,isDisabled:we=>L||ce(we,"hours"),selectedId:le}),viewRange:be}}case"minutes":{const xe=r.getMinutes(W),me=(be,we)=>{fe(r.setMinutes(W,be),we,"minutes")};return{viewValue:xe,onChange:me,children:P9({utils:r,value:xe,onChange:me,getClockNumberText:G.minutesClockNumberText,isDisabled:be=>L||ce(be,"minutes"),selectedId:le}),viewRange:[0,59]}}case"seconds":{const xe=r.getSeconds(W),me=(be,we)=>{fe(r.setSeconds(W,be),we,"seconds")};return{viewValue:xe,onChange:me,children:P9({utils:r,value:xe,onChange:me,getClockNumberText:G.secondsClockNumberText,isDisabled:be=>L||ce(be,"seconds"),selectedId:le}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[K,r,U,i,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,se,fe,W,ce,le,L]),ue=o,ge=Cat(ue);return $.jsxs(Pat,D({ref:n,className:pe(ge.root,_),ownerState:ue},F,{children:[$.jsx(eat,D({autoFocus:s??!!I,ampmInClock:a&&O.includes("hours"),value:U,type:K,ampm:i,minutesStep:x,isTimeDisabled:ce,meridiemMode:se,handleMeridiemChange:ee,selectedId:le,disabled:L,readOnly:j},Q)),P&&$.jsx(Eat,{className:ge.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ne(re),isPreviousDisabled:!re,previousLabel:G.openPreviousView,onGoToNext:()=>ne(oe),isNextDisabled:!oe,nextLabel:G.openNextView,ownerState:ue})]}))});function Iat(e){return _n("MuiDigitalClock",e)}const kat=Ln("MuiDigitalClock",["root","list","item"]);function mg(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Mat=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},da=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?da(t.shadowRoot):t:null},cO=e=>Array.from(e.children).indexOf(da(document)),XB="@media (pointer: fine)",Aat=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],$at=e=>{const{classes:t}=e;return bt({root:["root"],list:["list"],item:["item"]},Iat,t)},Rat=ie(Gk,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:nie,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),Dat=ie(qv,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),_at=ie(nn,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Lat=v.forwardRef(function(t,n){const r=gn(),o=v.useRef(null),i=Gr(n,o),a=v.useRef(null),s=Jt({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:f,value:p,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:b,minTime:x,disableFuture:S,disablePast:P,minutesStep:E=1,shouldDisableTime:T,onChange:O,view:k,openTo:M,onViewChange:I,focusedView:R,onFocusedViewChange:_,className:L,disabled:j,readOnly:N,views:F=["hours"],skipDisabled:U=!1,timezone:z}=s,V=ze(s,Aat),{value:W,handleValueChange:G,timezone:J}=wb({name:"DigitalClock",timezone:z,value:p,defaultValue:m,referenceDate:g,onChange:O,valueManager:ro}),K=Eo(),ne=am(J),re=v.useMemo(()=>D({},s,{alreadyRendered:!!o.current}),[s]),oe=$at(re),fe=(d==null?void 0:d.digitalClockItem)??_at,se=Hn({elementType:fe,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:{},className:oe.item}),ee=YB({value:W,referenceDate:g,utils:r,props:s,timezone:J}),ce=ot(be=>G(be,"finish","hours")),{setValueAndGoToNextView:le}=r1({view:k,views:F,openTo:M,onViewChange:I,onChange:ce,focusedView:R,onFocusedViewChange:_}),Q=ot(be=>{le(be,"finish")});v.useEffect(()=>{if(o.current===null)return;const be=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;(u||R)&&be.focus(),o.current.scrollTop=we-4});const ue=v.useCallback(be=>{const we=n1(y,r),Te=()=>!(x&&we(x,be)||b&&we(be,b)||S&&we(be,ne)||P&&we(ne,be)),Ie=()=>r.getMinutes(be)%E!==0?!1:T?!T(be,"hours"):!0;return!Te()||!Ie()},[y,r,x,b,S,ne,P,E,T]),ge=v.useMemo(()=>{const be=[];let Te=r.startOfDay(ee);for(;r.isSameDay(ee,Te);)be.push(Te),Te=r.addMinutes(Te,c);return be},[ee,c,r]),xe=ge.findIndex(be=>r.isEqual(be,ee)),me=be=>{switch(be.key){case"PageUp":{const we=cO(a.current)-5,Te=a.current.children,Ie=Math.max(0,we),Le=Te[Ie];Le&&Le.focus(),be.preventDefault();break}case"PageDown":{const we=cO(a.current)+5,Te=a.current.children,Ie=Math.min(Te.length-1,we),Le=Te[Ie];Le&&Le.focus(),be.preventDefault();break}}};return $.jsx(Rat,D({ref:i,className:pe(oe.root,L),ownerState:re},V,{children:$.jsx(Dat,{ref:a,role:"listbox","aria-label":K.timePickerToolbarTitle,className:oe.list,onKeyDown:me,children:ge.map((be,we)=>{if(U&&ue(be))return null;const Te=r.isEqual(be,W),Ie=r.format(be,l?"fullTime12h":"fullTime24h"),Le=xe===we||xe===-1&&we===0?0:-1;return $.jsx(fe,D({onClick:()=>!N&&Q(be),selected:Te,disabled:j||ue(be),disableRipple:N,role:"option","aria-disabled":N,"aria-selected":Te,tabIndex:Le},se,{children:Ie}),`${be.valueOf()}-${Ie}`)})})}))});function Nat(e){return _n("MuiMultiSectionDigitalClock",e)}const M9=Ln("MuiMultiSectionDigitalClock",["root"]);function Fat(e){return _n("MuiMultiSectionDigitalClockSection",e)}const jat=Ln("MuiMultiSectionDigitalClockSection",["root","item"]),Bat=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],zat=e=>{const{classes:t}=e;return bt({root:["root"],item:["item"]},Fat,t)},Vat=ie(qv,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:nie,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),Hat=ie(nn,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Z0,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Uat=v.forwardRef(function(t,n){const r=v.useRef(null),o=Gr(n,r),i=v.useRef(null),a=Jt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:f,active:p,slots:m,slotProps:g,skipDisabled:y}=a,b=ze(a,Bat),x=v.useMemo(()=>D({},a,{alreadyRendered:!!r.current}),[a]),S=zat(x),P=(m==null?void 0:m.digitalClockSectionItem)??Hat;v.useEffect(()=>{if(r.current===null)return;const O=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(p&&s&&O&&O.focus(),!O||i.current===O)return;i.current=O;const k=O.offsetTop;r.current.scrollTop=k-4});const E=f.findIndex(O=>O.isFocused(O.value)),T=O=>{switch(O.key){case"PageUp":{const k=cO(r.current)-5,M=r.current.children,I=Math.max(0,k),R=M[I];R&&R.focus(),O.preventDefault();break}case"PageDown":{const k=cO(r.current)+5,M=r.current.children,I=Math.min(M.length-1,k),R=M[I];R&&R.focus(),O.preventDefault();break}}};return $.jsx(Vat,D({ref:o,className:pe(S.root,c),ownerState:x,autoFocusItem:s&&p,role:"listbox",onKeyDown:T},b,{children:f.map((O,k)=>{var L;const M=(L=O.isDisabled)==null?void 0:L.call(O,O.value),I=u||M;if(y&&I)return null;const R=O.isSelected(O.value),_=E===k||E===-1&&k===0?0:-1;return $.jsx(P,D({onClick:()=>!d&&l(O.value),selected:R,disabled:I,disableRipple:d,role:"option","aria-disabled":d||I||void 0,"aria-label":O.ariaLabel,"aria-selected":R,tabIndex:_,className:S.item},g==null?void 0:g.digitalClockSectionItem,{children:O.label}),O.label)})}))}),Wat=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(p,m)=>{const g=m??l;return g===null?!1:r?p===12?g===12||g===0:g===p||g-12===p:g===p},d=p=>u(p,n.getHours(s)),f=r?11:23;for(let p=0;p<=f;p+=a){let m=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const g=i(parseInt(m,10).toString());m=n.formatNumber(m),c.push({value:p,label:m,isSelected:u,isDisabled:o,isFocused:d,ariaLabel:g})}return c},A9=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const d=r*u;return{value:d,label:t.formatNumber(o(d)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:i(d.toString())}})]},Gat=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],qat=e=>{const{classes:t}=e;return bt({root:["root"]},Nat,t)},Kat=ie(Gk,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Yat=v.forwardRef(function(t,n){const r=gn(),o=po(),i=Jt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:p,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:y,disableFuture:b,disablePast:x,minutesStep:S=1,shouldDisableTime:P,onChange:E,view:T,views:O=["hours","minutes"],openTo:k,onViewChange:M,focusedView:I,onFocusedViewChange:R,className:_,disabled:L,readOnly:j,skipDisabled:N=!1,timezone:F}=i,U=ze(i,Gat),{value:z,handleValueChange:V,timezone:W}=wb({name:"MultiSectionDigitalClock",timezone:F,value:d,defaultValue:f,referenceDate:p,onChange:E,valueManager:ro}),G=Eo(),J=am(W),K=v.useMemo(()=>D({hours:1,minutes:5,seconds:5},s),[s]),ne=YB({value:z,referenceDate:p,utils:r,props:i,timezone:W}),re=ot((Te,Ie,Le)=>V(Te,Ie,Le)),oe=v.useMemo(()=>!a||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[a,O]),{view:fe,setValueAndGoToNextView:se,focusedView:ee}=r1({view:T,views:oe,openTo:k,onViewChange:M,onChange:re,focusedView:I,onFocusedViewChange:R}),ce=ot(Te=>{se(Te,"finish","meridiem")}),{meridiemMode:le,handleMeridiemChange:Q}=Vk(ne,a,ce,"finish"),ue=v.useCallback((Te,Ie)=>{const Le=n1(m,r),de=Ie==="hours"||Ie==="minutes"&&oe.includes("seconds"),$e=({start:Me,end:De})=>!(y&&Le(y,De)||g&&Le(Me,g)||b&&Le(Me,J)||x&&Le(J,de?De:Me)),ke=(Me,De=1)=>{if(Me%De!==0)return!1;if(P)switch(Ie){case"hours":return!P(r.setHours(ne,Me),"hours");case"minutes":return!P(r.setMinutes(ne,Me),"minutes");case"seconds":return!P(r.setSeconds(ne,Me),"seconds");default:return!1}return!0};switch(Ie){case"hours":{const Me=Xx(Te,le,a),De=r.setHours(ne,Me);if(r.getHours(De)!==Me)return!0;const Ye=r.setSeconds(r.setMinutes(De,0),0),Je=r.setSeconds(r.setMinutes(De,59),59);return!$e({start:Ye,end:Je})||!ke(Me)}case"minutes":{const Me=r.setMinutes(ne,Te),De=r.setSeconds(Me,0),Ye=r.setSeconds(Me,59);return!$e({start:De,end:Ye})||!ke(Te,S)}case"seconds":{const Me=r.setSeconds(ne,Te);return!$e({start:Me,end:Me})||!ke(Te)}default:throw new Error("not supported")}},[a,ne,m,g,le,y,S,P,r,b,x,J,oe]),ge=v.useCallback(Te=>{switch(Te){case"hours":return{onChange:Ie=>{const Le=Xx(Ie,le,a);se(r.setHours(ne,Le),"finish","hours")},items:Wat({now:J,value:z,ampm:a,utils:r,isDisabled:Ie=>ue(Ie,"hours"),timeStep:K.hours,resolveAriaLabel:G.hoursClockNumberText,valueOrReferenceDate:ne})};case"minutes":return{onChange:Ie=>{se(r.setMinutes(ne,Ie),"finish","minutes")},items:A9({value:r.getMinutes(ne),utils:r,isDisabled:Ie=>ue(Ie,"minutes"),resolveLabel:Ie=>r.format(r.setMinutes(J,Ie),"minutes"),timeStep:K.minutes,hasValue:!!z,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:Ie=>{se(r.setSeconds(ne,Ie),"finish","seconds")},items:A9({value:r.getSeconds(ne),utils:r,isDisabled:Ie=>ue(Ie,"seconds"),resolveLabel:Ie=>r.format(r.setSeconds(J,Ie),"seconds"),timeStep:K.seconds,hasValue:!!z,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const Ie=Kl(r,"am"),Le=Kl(r,"pm");return{onChange:Q,items:[{value:"am",label:Ie,isSelected:()=>!!z&&le==="am",isFocused:()=>!!ne&&le==="am",ariaLabel:Ie},{value:"pm",label:Le,isSelected:()=>!!z&&le==="pm",isFocused:()=>!!ne&&le==="pm",ariaLabel:Le}]}}default:throw new Error(`Unknown view: ${Te} found.`)}},[J,z,a,r,K.hours,K.minutes,K.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,le,se,ne,ue,Q]),xe=v.useMemo(()=>{if(!o)return oe;const Te=oe.filter(Ie=>Ie!=="meridiem");return Te.reverse(),oe.includes("meridiem")&&Te.push("meridiem"),Te},[o,oe]),me=v.useMemo(()=>oe.reduce((Te,Ie)=>D({},Te,{[Ie]:ge(Ie)}),{}),[oe,ge]),be=i,we=qat(be);return $.jsx(Kat,D({ref:n,className:pe(we.root,_),ownerState:be,role:"group"},U,{children:xe.map(Te=>$.jsx(Uat,{items:me[Te].items,onChange:me[Te].onChange,active:fe===Te,autoFocus:l??ee===Te,disabled:L,readOnly:j,slots:c,slotProps:u,skipDisabled:N,"aria-label":G.selectViewText(Te)},Te))}))});function Xat(e){return _n("MuiPickersDay",e)}const Op=Ln("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Qat=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Jat=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return bt({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Xat,l)},pie=({theme:e})=>D({},e.typography.caption,{width:Qx,height:Qx,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Op.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Op.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Op.disabled}:not(.${Op.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Op.disabled}&.${Op.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Hk}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Op.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),hie=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Zat=ie(Xi,{name:"MuiPickersDay",slot:"Root",overridesResolver:hie})(pie),est=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:hie})(({theme:e})=>D({},pie({theme:e}),{opacity:0,pointerEvents:"none"})),k0=()=>{},tst=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:p=k0,onBlur:m=k0,onKeyDown:g=k0,onMouseDown:y=k0,onMouseEnter:b=k0,outsideCurrentMonth:x,selected:S=!1,showDaysOutsideCurrentMonth:P=!1,children:E,today:T=!1}=r,O=ze(r,Qat),k=D({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:S,showDaysOutsideCurrentMonth:P,today:T}),M=Jat(k),I=gn(),R=v.useRef(null),_=Gr(R,n);mr(()=>{o&&!s&&!u&&!x&&R.current.focus()},[o,s,u,x]);const L=N=>{y(N),x&&N.preventDefault()},j=N=>{s||f(a),x&&N.currentTarget.focus(),d&&d(N)};return x&&!P?$.jsx(est,{className:pe(M.root,M.hiddenDaySpacingFiller,i),ownerState:k,role:O.role}):$.jsx(Zat,D({className:pe(M.root,i),ref:_,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:N=>g(N,a),onFocus:N=>p(N,a),onBlur:N=>m(N,a),onMouseEnter:N=>b(N,a),onClick:j,onMouseDown:L},O,{ownerState:k,children:E||I.format(a,"dayOfMonth")}))}),nst=v.memo(tst),xb=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=ki(r.utils,e.minDate,r.defaultDates.minDate),d=ki(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};xb.valueManager=ro;const o1=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,d=e.utils.date(void 0,n),f=n1(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&f(o,t)):return"minTime";case!!(i&&f(t,i)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};o1.valueManager=ro;const Kk=({adapter:e,value:t,timezone:n,props:r})=>{const o=xb({adapter:e,value:t,timezone:n,props:r});return o!==null?o:o1({adapter:e,value:t,timezone:n,props:r})};Kk.valueManager=ro;const AL=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],$L=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],mie=["minDateTime","maxDateTime"],rst=[...AL,...$L,...mie],Sb=e=>rst.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function gie(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=om(),s=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=ot(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const ost=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},ist=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},ast=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},sst=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=sie(e,a),c=fie(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",p=null;if(u)if(c)p=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);p=l.maxLength,d&&(f=GB(cie(zh(f,o),p),o))}return D({},l,{format:a,maxLength:p,value:f,placeholder:ast(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},lst=e=>{var p;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=m=>r.find(g=>g.start<=m&&g.end>=m);let f=0;for(;f<n.length;){const m=d(f),g=m!=null,y=(p=l.exec(n.slice(f)))==null?void 0:p[1];if(!g&&y!=null&&c.test(y)){let b=y;for(;b.length>0;){const x=u.exec(b)[1];b=b.slice(x.length),i.push(sst(D({},e,{now:o,token:x,startSeparator:a}))),a=""}f+=y.length}else{const b=n[f];g&&(m==null?void 0:m.start)===f||(m==null?void 0:m.end)===f||(i.length===0?a+=b:i[i.length-1].endSeparator+=b),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},cst=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),$9=e=>{let t=ost(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=ist(D({},e,{expandedFormat:t})),r=lst(D({},e,{expandedFormat:t,escapedParts:n}));return cst(D({},e,{sections:r}))},ust=e=>{const t=gn(),n=Eo(),r=om(),o=po(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:m,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:S,enableAccessibleFieldDOMStructure:P=!1}}=e,{timezone:E,value:T,handleValueChange:O}=WB({timezone:S,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:i}),k=v.useMemo(()=>uat(t),[t]),M=v.useMemo(()=>mat(t,k,E),[t,k,E]),I=v.useCallback((re,oe=null)=>a.getSectionsFromValue(t,re,oe,fe=>$9({utils:t,localeText:n,localizedDigits:k,format:m,date:fe,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:P,isRtl:o})),[a,m,n,k,o,x,t,g,P]),[R,_]=v.useState(()=>{const re=I(T),oe={sections:re,value:T,referenceValue:i.emptyValue,tempValueStrAndroid:null},fe=aat(re),se=i.getInitialReferenceValue({referenceDate:f,value:T,utils:t,props:c,granularity:fe,timezone:E});return D({},oe,{referenceValue:se})}),[L,j]=Bh({controlled:y,default:null,name:"useField",state:"selectedSections"}),N=re=>{j(re),b==null||b(re)},F=v.useMemo(()=>ML(L,R.sections),[L,R.sections]),U=F==="all"?0:F,z=({value:re,referenceValue:oe,sections:fe})=>{if(_(ee=>D({},ee,{sections:fe,value:re,referenceValue:oe,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,re))return;const se={validationError:l({adapter:r,value:re,timezone:E,props:c})};O(re,se)},V=(re,oe)=>{const fe=[...R.sections];return fe[re]=D({},fe[re],{value:oe,modified:!0}),fe},W=()=>{z({value:i.emptyValue,referenceValue:R.referenceValue,sections:I(i.emptyValue)})},G=()=>{if(U==null)return;const re=R.sections[U],oe=a.getActiveDateManager(t,R,re),se=oe.getSections(R.sections).filter(Q=>Q.value!=="").length===(re.value===""?0:1),ee=V(U,""),ce=se?null:t.getInvalidDate(),le=oe.getNewValuesFromNewActiveDate(ce);z(D({},le,{sections:ee}))},J=re=>{const oe=(ee,ce)=>{const le=t.parse(ee,m);if(le==null||!t.isValid(le))return null;const Q=$9({utils:t,localeText:n,localizedDigits:k,format:m,date:le,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:P,isRtl:o});return k9(t,le,Q,ce,!1)},fe=a.parseValueStr(re,R.referenceValue,oe),se=a.updateReferenceValue(t,fe,R.referenceValue);z({value:fe,referenceValue:se,sections:I(fe,R.sections)})},K=({activeSection:re,newSectionValue:oe,shouldGoToNextSection:fe})=>{fe&&U<R.sections.length-1&&N(U+1);const se=a.getActiveDateManager(t,R,re),ee=V(U,oe),ce=se.getSections(ee),le=fat(t,ce,k);let Q,ue;if(le!=null&&t.isValid(le)){const ge=k9(t,le,ce,se.referenceDate,!0);Q=se.getNewValuesFromNewActiveDate(ge),ue=!0}else Q=se.getNewValuesFromNewActiveDate(le),ue=(le!=null&&!t.isValid(le))!=(se.date!=null&&!t.isValid(se.date));return ue?z(D({},Q,{sections:ee})):_(ge=>D({},ge,Q,{sections:ee,tempValueStrAndroid:null}))},ne=re=>_(oe=>D({},oe,{tempValueStrAndroid:re}));return v.useEffect(()=>{const re=I(R.value);_(oe=>D({},oe,{sections:re}))},[m,t.locale,o]),v.useEffect(()=>{let re;i.areValuesEqual(t,R.value,T)?re=i.getTimezone(t,R.value)!==i.getTimezone(t,T):re=!0,re&&_(oe=>D({},oe,{value:T,referenceValue:a.updateReferenceValue(t,T,oe.referenceValue),sections:I(T)}))},[T]),{state:R,activeSectionIndex:U,parsedSelectedSections:F,setSelectedSections:N,clearValue:W,clearActiveSection:G,updateSectionValue:K,updateValueFromValueStr:J,setTempAndroidValueStr:ne,getSectionsFromValue:I,sectionsValueBoundaries:M,localizedDigits:k,timezone:E}},dst=5e3,Zm=e=>e.saveQuery!=null,fst=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=gn(),[s,l]=v.useState(null),c=ot(()=>l(null));v.useEffect(()=>{var m;s!=null&&((m=e[s.sectionIndex])==null?void 0:m.type)!==s.sectionType&&c()},[e,s,c]),v.useEffect(()=>{if(s!=null){const m=setTimeout(()=>c(),dst);return()=>{clearTimeout(m)}}return()=>{}},[s,c]);const u=({keyPressed:m,sectionIndex:g},y,b)=>{const x=m.toLowerCase(),S=e[g];if(s!=null&&(!b||b(s.value))&&s.sectionIndex===g){const E=`${s.value}${x}`,T=y(E,S);if(!Zm(T))return l({sectionIndex:g,value:E,sectionType:S.type}),T}const P=y(x,S);return Zm(P)&&!P.saveQuery?(c(),null):(l({sectionIndex:g,value:x,sectionType:S.type}),Zm(P)?null:P)},d=m=>{const g=(x,S,P)=>{const E=S.filter(T=>T.toLowerCase().startsWith(P));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},y=(x,S,P,E)=>{const T=O=>lie(a,i,S.type,O);if(S.contentType==="letter")return g(S.format,T(S.format),x);if(P&&E!=null&&sie(a,P).contentType==="letter"){const O=T(P),k=g(P,O,x);return Zm(k)?{saveQuery:!1}:D({},k,{sectionValue:E(k.sectionValue,O)})}return{saveQuery:!1}};return u(m,(x,S)=>{switch(S.type){case"month":{const P=E=>O9(a,E,a.formats.month,S.format);return y(x,S,a.formats.month,P)}case"weekDay":{const P=(E,T)=>T.indexOf(E).toString();return y(x,S,a.formats.weekday,P)}case"meridiem":return y(x,S);default:return{saveQuery:!1}}})},f=m=>{const g=(b,x)=>{const S=zh(b,r),P=Number(S),E=n[x.type]({currentDate:null,format:x.format,contentType:x.contentType});if(P>E.maximum)return{saveQuery:!1};if(P<E.minimum)return{saveQuery:!0};const T=P*10>E.maximum||S.length===E.maximum.toString().length;return{sectionValue:uie(a,P,E,r,x),shouldGoToNextSection:T}};return u(m,(b,x)=>{if(x.contentType==="digit"||x.contentType==="digit-with-letter")return g(b,x);if(x.type==="month"){const S=fie(a,"digit","month","MM"),P=g(b,{type:x.type,format:"MM",hasLeadingZerosInFormat:S,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Zm(P))return P;const E=O9(a,P.sectionValue,"MM",x.format);return D({},P,{sectionValue:E})}if(x.type==="weekDay"){const S=g(b,x);if(Zm(S))return S;const P=qk(a,x.format)[Number(S.sectionValue)-1];return D({},S,{sectionValue:P})}return{saveQuery:!1}},b=>T9(b,r))};return{applyCharacterEditing:ot(m=>{const g=e[m.sectionIndex],b=T9(m.keyPressed,r)?f(D({},m,{keyPressed:GB(m.keyPressed,r)})):d(m);if(b==null){o(null);return}t({activeSection:g,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})}),resetCharacterQuery:c}},pst=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:p,setSelectedSections:m,parsedSelectedSections:g,state:y,clearActiveSection:b,clearValue:x,updateSectionValue:S,updateValueFromValueStr:P,sectionOrder:E,areAllSectionsEmpty:T,sectionsValueBoundaries:O}=e,k=v.useRef(null),M=Gr(r,k),I=Eo(),R=gn(),_=cr(),[L,j]=v.useState(!1),N=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;const ue=document.getSelection();if(!ue)return;if(g==null){ue.rangeCount>0&&k.current.getRoot().contains(ue.getRangeAt(0).startContainer)&&ue.removeAllRanges(),L&&k.current.getRoot().blur();return}if(!k.current.getRoot().contains(da(document)))return;const ge=new window.Range;let xe;g==="all"?xe=k.current.getRoot():y.sections[g].type==="empty"?xe=k.current.getSectionContainer(g):xe=k.current.getSectionContent(g),ge.selectNodeContents(xe),xe.focus(),ue.removeAllRanges(),ue.addRange(ge)},getActiveSectionIndexFromDOM:()=>{const ue=da(document);return!ue||!k.current||!k.current.getRoot().contains(ue)?null:k.current.getSectionIndexFromDOMElement(ue)},focusField:(ue=0)=>{if(!k.current)return;const ge=ML(ue,y.sections);j(!0),k.current.getSectionContent(ge).focus()},setSelectedSections:ue=>{if(!k.current)return;const ge=ML(ue,y.sections);j((ge==="all"?0:ge)!==null),m(ue)},isFieldFocused:()=>{const ue=da(document);return!!k.current&&k.current.getRoot().contains(ue)}}),[g,m,y.sections,L]),F=ot(ue=>{if(!k.current)return;const ge=y.sections[ue];k.current.getSectionContent(ue).innerHTML=ge.value||ge.placeholder,N.syncSelectionToDOM()}),U=ot((ue,...ge)=>{ue.isDefaultPrevented()||!k.current||(j(!0),i==null||i(ue,...ge),g==="all"?setTimeout(()=>{const xe=document.getSelection().getRangeAt(0).startOffset;if(xe===0){m(E.startIndex);return}let me=0,be=0;for(;be<xe&&me<y.sections.length;){const we=y.sections[me];me+=1,be+=`${we.startSeparator}${we.value||we.placeholder}${we.endSeparator}`.length}m(me-1)}):L?k.current.getRoot().contains(ue.target)||m(E.startIndex):(j(!0),m(E.startIndex)))}),z=ot(ue=>{if(s==null||s(ue),!k.current||g!=="all")return;const xe=ue.target.textContent??"";k.current.getRoot().innerHTML=y.sections.map(me=>`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`).join(""),N.syncSelectionToDOM(),xe.length===0||xe.charCodeAt(0)===10?(p(),x(),m("all")):xe.length>1?P(xe):f({keyPressed:xe,sectionIndex:0})}),V=ot(ue=>{if(l==null||l(ue),n||g!=="all"){ue.preventDefault();return}const ge=ue.clipboardData.getData("text");ue.preventDefault(),p(),P(ge)}),W=ot((...ue)=>{if(a==null||a(...ue),L||!k.current)return;j(!0),k.current.getSectionIndexFromDOMElement(da(document))!=null||m(E.startIndex)}),G=ot((...ue)=>{o==null||o(...ue),setTimeout(()=>{if(!k.current)return;const ge=da(document);!k.current.getRoot().contains(ge)&&(j(!1),m(null))})}),J=ot(ue=>ge=>{ge.isDefaultPrevented()||m(ue)}),K=ot(ue=>{ue.preventDefault()}),ne=ot(ue=>()=>{m(ue)}),re=ot(ue=>{if(ue.preventDefault(),n||t||typeof g!="number")return;const ge=y.sections[g],xe=ue.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(xe),be=/^[0-9]+$/.test(xe),we=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(xe);ge.contentType==="letter"&&me||ge.contentType==="digit"&&be||ge.contentType==="digit-with-letter"&&we?(p(),S({activeSection:ge,newSectionValue:xe,shouldGoToNextSection:!0})):!me&&!be&&(p(),P(xe))}),oe=ot(ue=>{ue.preventDefault(),ue.dataTransfer.dropEffect="none"}),fe=ot(ue=>{if(!k.current)return;const ge=ue.target,xe=ge.textContent??"",me=k.current.getSectionIndexFromDOMElement(ge),be=y.sections[me];if(n||!k.current){F(me);return}if(xe.length===0){if(be.value===""){F(me);return}const we=ue.nativeEvent.inputType;if(we==="insertParagraph"||we==="insertLineBreak"){F(me);return}p(),b();return}f({keyPressed:xe,sectionIndex:me}),F(me)});mr(()=>{if(!(!L||!k.current)){if(g==="all")k.current.getRoot().focus();else if(typeof g=="number"){const ue=k.current.getSectionContent(g);ue&&ue.focus()}}},[g,L]);const se=v.useMemo(()=>y.sections.reduce((ue,ge)=>(ue[ge.type]=O[ge.type]({currentDate:null,contentType:ge.contentType,format:ge.format}),ue),{}),[O,y.sections]),ee=g==="all",ce=v.useMemo(()=>y.sections.map((ue,ge)=>{const xe=!ee&&!t&&!n;return{container:{"data-sectionindex":ge,onClick:J(ge)},content:{tabIndex:ee||ge>0?-1:0,contentEditable:!ee&&!t&&!n,role:"spinbutton",id:`${_}-${ue.type}`,"aria-labelledby":`${_}-${ue.type}`,"aria-readonly":n,"aria-valuenow":wat(ue,R),"aria-valuemin":se[ue.type].minimum,"aria-valuemax":se[ue.type].maximum,"aria-valuetext":ue.value?bat(ue,R):I.empty,"aria-label":I[ue.type],"aria-disabled":t,spellCheck:xe?!1:void 0,autoCapitalize:xe?"off":void 0,autoCorrect:xe?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:xe?"next":void 0,children:ue.value||ue.placeholder,onInput:fe,onPaste:re,onFocus:ne(ge),onDragOver:oe,onMouseUp:K,inputMode:ue.contentType==="letter"?"text":"numeric"},before:{children:ue.startSeparator},after:{children:ue.endSeparator}}}),[y.sections,ne,re,oe,fe,J,K,t,n,ee,I,R,se,_]),le=ot(ue=>{P(ue.target.value)}),Q=v.useMemo(()=>T?"":d.getV7HiddenInputValueFromSections(y.sections),[T,y.sections,d]);return v.useEffect(()=>{if(k.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
+`));u&&k.current&&k.current.getSectionContent(E.startIndex).focus()},[]),{interactions:N,returnedValue:{autoFocus:u,readOnly:n,focused:c??L,sectionListRef:M,onBlur:G,onClick:U,onFocus:W,onInput:z,onPaste:V,enableAccessibleFieldDOMStructure:!0,elements:ce,tabIndex:g===0?-1:0,contentEditable:ee,value:Q,onChange:le,areAllSectionsEmpty:T}}},zg=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),hst=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=qB(s,n?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=zg(c).length,d=c.length,f=zg(l),p=o+(f===""?0:l.indexOf(f[0]))+s.startSeparator.length,m=p+f.length;i.push(D({},s,{start:r,end:r+u,startInInput:p,endInInput:m})),r+=u,o+=d}return i},mst=e=>{const t=po(),n=v.useRef(),r=v.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:p,state:m,fieldValueManager:g,valueManager:y,applyCharacterEditing:b,resetCharacterQuery:x,updateSectionValue:S,updateValueFromValueStr:P,clearActiveSection:E,clearValue:T,setTempAndroidValueStr:O,setSelectedSections:k,getSectionsFromValue:M,areAllSectionsEmpty:I,localizedDigits:R}=e,_=v.useRef(null),L=Gr(l,_),j=v.useMemo(()=>hst(m.sections,R,t),[m.sections,R,t]),N=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!_.current)return;if(f==null){_.current.scrollLeft&&(_.current.scrollLeft=0);return}if(_.current!==da(document))return;const fe=_.current.scrollTop;if(f==="all")_.current.select();else{const se=j[f],ee=se.type==="empty"?se.startInInput-se.startSeparator.length:se.startInInput,ce=se.type==="empty"?se.endInInput+se.endSeparator.length:se.endInInput;(ee!==_.current.selectionStart||ce!==_.current.selectionEnd)&&_.current===da(document)&&_.current.setSelectionRange(ee,ce),clearTimeout(r.current),r.current=setTimeout(()=>{_.current&&_.current===da(document)&&_.current.selectionStart===_.current.selectionEnd&&(_.current.selectionStart!==ee||_.current.selectionEnd!==ce)&&N.syncSelectionToDOM()})}_.current.scrollTop=fe},getActiveSectionIndexFromDOM:()=>{const fe=_.current.selectionStart??0,se=_.current.selectionEnd??0;if(fe===0&&se===0)return null;const ee=fe<=j[0].startInInput?1:j.findIndex(ce=>ce.startInInput-ce.startSeparator.length>fe);return ee===-1?j.length-1:ee-1},focusField:(fe=0)=>{var se;(se=_.current)==null||se.focus(),k(fe)},setSelectedSections:fe=>k(fe),isFieldFocused:()=>_.current===da(document)}),[_,f,j,k]),F=()=>{const fe=_.current.selectionStart??0;let se;fe<=j[0].startInInput||fe>=j[j.length-1].endInInput?se=1:se=j.findIndex(ce=>ce.startInInput-ce.startSeparator.length>fe);const ee=se===-1?j.length-1:se-1;k(ee)},U=ot((...fe)=>{o==null||o(...fe);const se=_.current;clearTimeout(n.current),n.current=setTimeout(()=>{!se||se!==_.current||p==null&&(se.value.length&&Number(se.selectionEnd)-Number(se.selectionStart)===se.value.length?k("all"):F())})}),z=ot((fe,...se)=>{fe.isDefaultPrevented()||(i==null||i(fe,...se),F())}),V=ot(fe=>{if(a==null||a(fe),fe.preventDefault(),u||d)return;const se=fe.clipboardData.getData("text");if(typeof f=="number"){const ee=m.sections[f],ce=/^[a-zA-Z]+$/.test(se),le=/^[0-9]+$/.test(se),Q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(se);if(ee.contentType==="letter"&&ce||ee.contentType==="digit"&&le||ee.contentType==="digit-with-letter"&&Q){x(),S({activeSection:ee,newSectionValue:se,shouldGoToNextSection:!0});return}if(ce||le)return}x(),P(se)}),W=ot((...fe)=>{s==null||s(...fe),k(null)}),G=ot(fe=>{if(u)return;const se=fe.target.value;if(se===""){x(),T();return}const ee=fe.nativeEvent.data,ce=ee&&ee.length>1,le=ce?ee:se,Q=zg(le);if(p==null||ce){P(ce?ee:Q);return}let ue;if(f==="all"&&Q.length===1)ue=Q;else{const ge=zg(g.getV6InputValueFromSections(j,R,t));let xe=-1,me=-1;for(let Ie=0;Ie<ge.length;Ie+=1)xe===-1&&ge[Ie]!==Q[Ie]&&(xe=Ie),me===-1&&ge[ge.length-Ie-1]!==Q[Q.length-Ie-1]&&(me=Ie);const be=j[p];if(xe<be.start||ge.length-me-1>be.end)return;const Te=Q.length-ge.length+be.end-zg(be.endSeparator||"").length;ue=Q.slice(be.start+zg(be.startSeparator||"").length,Te)}if(ue.length===0){yat()&&O(le),x(),E();return}b({keyPressed:ue,sectionIndex:p})}),J=v.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(M(y.emptyValue),R,t),[c,g,M,y.emptyValue,R,t]),K=v.useMemo(()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,R,t),[m.sections,g,m.tempValueStrAndroid,R,t]);v.useEffect(()=>(_.current&&_.current===da(document)&&k("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ne=v.useMemo(()=>p==null||m.sections[p].contentType==="letter"?"text":"numeric",[p,m.sections]),oe=!(_.current&&_.current===da(document))&&I;return{interactions:N,returnedValue:{readOnly:u,onBlur:W,onClick:z,onFocus:U,onPaste:V,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:ne,autoComplete:"off",value:oe?"":K,onChange:G}}},QB=e=>{const t=gn(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:p,validator:m}=e,g=po(),y=ust(e),{state:b,activeSectionIndex:x,parsedSelectedSections:S,setSelectedSections:P,clearValue:E,clearActiveSection:T,updateSectionValue:O,setTempAndroidValueStr:k,sectionsValueBoundaries:M,localizedDigits:I,timezone:R}=y,_=fst({sections:b.sections,updateSectionValue:O,sectionsValueBoundaries:M,localizedDigits:I,setTempAndroidValueStr:k,timezone:R}),{resetCharacterQuery:L}=_,j=p.areValuesEqual(t,b.value,p.emptyValue),N=i?pst:mst,F=v.useMemo(()=>vat(b.sections,g&&!i),[b.sections,g,i]),{returnedValue:U,interactions:z}=N(D({},e,y,_,{areAllSectionsEmpty:j,sectionOrder:F})),V=ot(re=>{if(l==null||l(re),!a)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),P("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),S==null)P(F.startIndex);else if(S==="all")P(F.endIndex);else{const oe=F.neighbors[S].rightIndex;oe!==null&&P(oe)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),S==null)P(F.endIndex);else if(S==="all")P(F.startIndex);else{const oe=F.neighbors[S].leftIndex;oe!==null&&P(oe)}break}case re.key==="Delete":{if(re.preventDefault(),s)break;S==null||S==="all"?E():T(),L();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),s||x==null)break;const oe=b.sections[x],fe=f.getActiveDateManager(t,b,oe),se=dat(t,R,oe,re.key,M,I,fe.date,{minutesStep:o});O({activeSection:oe,newSectionValue:se,shouldGoToNextSection:!1});break}}});mr(()=>{z.syncSelectionToDOM()});const{hasValidationError:W}=gie({props:n,validator:m,timezone:R,value:b.value,onError:n.onError}),G=v.useMemo(()=>c!==void 0?c:W,[W,c]);v.useEffect(()=>{!G&&x==null&&L()},[b.referenceValue,x,G]),v.useEffect(()=>{b.tempValueStrAndroid!=null&&x!=null&&(L(),T())},[b.sections]),v.useImperativeHandle(r,()=>({getSections:()=>b.sections,getActiveSectionIndex:z.getActiveSectionIndexFromDOM,setSelectedSections:z.setSelectedSections,focusField:z.focusField,isFieldFocused:z.isFieldFocused}));const J=ot((re,...oe)=>{re.preventDefault(),d==null||d(re,...oe),E(),z.isFieldFocused()?P(F.startIndex):z.focusField(0)}),K={onKeyDown:V,onClear:J,error:G,clearable:!!(u&&!j&&!s&&!a)},ne={disabled:a,readOnly:s};return D({},e.forwardedProps,K,ne,U)},gst=["clearable","onClear","InputProps","sx","slots","slotProps"],yst=["ownerState"],JB=e=>{const t=Eo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=ze(e,gst),c=(a==null?void 0:a.clearButton)??In,u=Hn({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ze(u,yst),f=(a==null?void 0:a.clearIcon)??git,p=Hn({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return D({},l,{InputProps:D({},o,{endAdornment:$.jsxs(v.Fragment,{children:[n&&$.jsx(go,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:$.jsx(c,D({},d,{onClick:r,children:$.jsx(f,D({fontSize:"small"},p))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},vst=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],ZB=(e,t)=>v.useMemo(()=>{const n=D({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return vst.forEach(o),t==="date"?AL.forEach(o):t==="time"?$L.forEach(o):t==="date-time"&&(AL.forEach(o),$L.forEach(o),mie.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),bst=v.createContext(null);function yie(e){const{contextValue:t,localeText:n,children:r}=e;return $.jsx(bst.Provider,{value:t,children:$.jsx(t1,{localeText:n,children:r})})}const wst=e=>{const t=gn(),n=im();return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:ki(t,e.minDate,n.minDate),maxDate:ki(t,e.maxDate,n.maxDate)})},xst=e=>{const t=gn(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r})},Sst=e=>{const t=gn(),n=im(),o=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return D({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??o,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:ki(t,e.minDateTime??e.minDate,n.minDate),maxDate:ki(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},Cst=e=>{const t=wst(e),{forwardedProps:n,internalProps:r}=ZB(t,"date");return QB({forwardedProps:n,internalProps:r,valueManager:ro,fieldValueManager:KB,validator:xb,valueType:"date"})};function Pst(e){return _n("MuiPickersTextField",e)}Ln("MuiPickersTextField",["root","focused","disabled","error","required"]);function Est(e){return _n("MuiPickersInputBase",e)}const uy=Ln("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Tst(e){return _n("MuiPickersSectionList",e)}const M0=Ln("MuiPickersSectionList",["root","section","sectionContent"]),Ost=["slots","slotProps","elements","sectionListRef"],vie=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),bie=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),wie=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),xie=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Ist=e=>{const{classes:t}=e;return bt({root:["root"],section:["section"],sectionContent:["sectionContent"]},Tst,t)};function kst(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??bie,a=Hn({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??xie,l=Hn({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??wie,u=Hn({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Hn({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return $.jsxs(i,D({},a,{children:[$.jsx(c,D({},u)),$.jsx(s,D({},l)),$.jsx(c,D({},d))]}))}const Mst=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=ze(r,Ost),c=Ist(r),u=v.useRef(null),d=Gr(n,u),f=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};v.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(g){return f("getSectionContainer").querySelector(`.${M0.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return f("getSectionContent").querySelector(`.${M0.section}[data-sectionindex="${g}"] .${M0.sectionContent}`)},getSectionIndexFromDOMElement(g){const y=f("getSectionIndexFromDOMElement");if(g==null||!y.contains(g))return null;let b=null;return g.classList.contains(M0.section)?b=g:g.classList.contains(M0.sectionContent)&&(b=g.parentElement),b==null?null:Number(b.dataset.sectionindex)}}));const p=(o==null?void 0:o.root)??vie,m=Hn({elementType:p,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return $.jsx(p,D({},m,{children:m.contentEditable?a.map(({content:g,before:y,after:b})=>`${y.children}${g.children}${b.children}`).join(""):$.jsx(v.Fragment,{children:a.map((g,y)=>$.jsx(kst,{slots:o,slotProps:i,element:g,classes:c},y))})}))}),Ast=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],$st=e=>Math.round(e*1e5)/1e5,Yk=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>D({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${$st(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),ez=ie(vie,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Rst=ie(bie,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),Dst=ie(xie,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),_st=ie(wie,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Lst=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(D({},Jot)),Nst=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${op(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return bt(d,Est,o)},tz=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:p,contentEditable:m,tabIndex:g,onInput:y,onPaste:b,onKeyDown:x,name:S,readOnly:P,inputProps:E,inputRef:T,sectionListRef:O}=r,k=ze(r,Ast),M=v.useRef(null),I=Gr(n,M),R=Gr(E==null?void 0:E.ref,T),_=po(),L=Ea();if(!L)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const j=W=>{var G;if(L.disabled){W.stopPropagation();return}(G=L.onFocus)==null||G.call(L,W)};v.useEffect(()=>{L&&L.setAdornedStart(!!u)},[L,u]),v.useEffect(()=>{L&&(i?L.onEmpty():L.onFilled())},[L,i]);const N=D({},r,L,{isRtl:_}),F=Nst(N),U=(f==null?void 0:f.root)||Yk,z=Hn({elementType:U,externalSlotProps:p==null?void 0:p.root,externalForwardedProps:k,additionalProps:{"aria-invalid":L.error,ref:I},className:F.root,ownerState:N}),V=(f==null?void 0:f.input)||ez;return $.jsxs(U,D({},z,{children:[u,$.jsx(Mst,{sectionListRef:O,elements:o,contentEditable:m,tabIndex:g,className:F.sectionsContainer,onFocus:j,onBlur:L.onBlur,onInput:y,onPaste:b,onKeyDown:x,slots:{root:V,section:Rst,sectionContent:Dst,sectionSeparator:_st},slotProps:{root:{ownerState:N},sectionContent:{className:uy.sectionContent},sectionSeparator:({position:W})=>({className:W==="before"?uy.sectionBefore:uy.sectionAfter})}}),c,d?d(D({},L)):null,$.jsx(Lst,D({name:S,className:F.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:P,required:L.required,disabled:L.disabled},E,{ref:R}))]}))});function Fst(e){return _n("MuiPickersOutlinedInput",e)}const $l=D({},uy,Ln("MuiPickersOutlinedInput",["root","notchedOutline","input"])),jst=["children","className","label","notched","shrink"],Bst=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),R9=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),zst=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Vst(e){const{className:t,label:n}=e,r=ze(e,jst),o=n!=null&&n!=="",i=D({},e,{withLabel:o});return $.jsx(Bst,D({"aria-hidden":!0,className:t},r,{ownerState:i,children:$.jsx(zst,{ownerState:i,children:o?$.jsx(R9,{children:n}):$.jsx(R9,{className:"notranslate",children:"​"})})}))}const Hst=["label","autoFocus","ownerState","notched"],Ust=ie(Yk,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$l.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$l.focused} .${$l.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${$l.disabled}`]:{[`& .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${$l.error} .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${$l.focused}:not(.${$l.error}) .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Wst=ie(ez,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Gst=e=>{const{classes:t}=e,r=bt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fst,t);return D({},t,r)},Sie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=ze(r,Hst),l=Ea(),c=D({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=Gst(c);return $.jsx(tz,D({slots:{root:Ust,input:Wst},renderSuffix:d=>$.jsx(Vst,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?$.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});Sie.muiName="Input";/**
+ * @mui/styled-engine v6.1.10
+ *
+ * @license MIT
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */function qst(e,t){return pE(e,t)}function Kst(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const D9=[];function _9(e){return D9[0]=e,Lv(D9)}const Yst=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Xst(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Yst(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,p){const m=a.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:p)-r/100}${n})`}function u(f){return a.indexOf(f)+1<a.length?c(f,a[a.indexOf(f)+1]):s(f)}function d(f){const p=a.indexOf(f);return p===0?s(a[1]):p===a.length-1?l(a[p]):c(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:n,...o}}function Qst(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Jst(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Zst(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function elt(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const tlt={borderRadius:4};function Rw(e,t){return t?aO(e,t,{clone:!1}):e}const Xk={xs:0,sm:600,md:900,lg:1200,xl:1536},L9={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Xk[e]}px)`},nlt={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Xk[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ld(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||L9;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||L9;return Object.keys(t).reduce((a,s)=>{if(Jst(i.keys,s)){const l=Zst(r.containerQueries?r:nlt,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||Xk).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function rlt(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function olt(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Qk(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function uO(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Qk(e,n)||r,t&&(o=t(o,r,e)),o}function ho(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Qk(l,r)||{};return ld(a,s,d=>{let f=uO(c,o,d);return d===f&&typeof d=="string"&&(f=uO(c,o,`${t}${d==="default"?"":op(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function ilt(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const alt={m:"margin",p:"padding"},slt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},N9={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},llt=ilt(e=>{if(e.length>2)if(N9[e])e=N9[e];else return[e];const[t,n]=e.split(""),r=alt[t],o=slt[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),nz=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rz=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nz,...rz];function i1(e,t,n,r){const o=Qk(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Cie(e){return i1(e,"spacing",8)}function a1(e,t){return typeof t=="string"||t==null?t:e(t)}function clt(e,t){return n=>e.reduce((r,o)=>(r[o]=a1(t,n),r),{})}function ult(e,t,n,r){if(!t.includes(n))return null;const o=llt(n),i=clt(o,r),a=e[n];return ld(e,a,i)}function Pie(e,t){const n=Cie(e.theme);return Object.keys(e).map(r=>ult(e,t,r,n)).reduce(Rw,{})}function Qr(e){return Pie(e,nz)}Qr.propTypes={};Qr.filterProps=nz;function Jr(e){return Pie(e,rz)}Jr.propTypes={};Jr.filterProps=rz;function dlt(e=8,t=Cie({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Jk(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Rw(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Hs(e){return typeof e!="number"?e:`${e}px solid`}function vl(e,t){return ho({prop:e,themeKey:"borders",transform:t})}const flt=vl("border",Hs),plt=vl("borderTop",Hs),hlt=vl("borderRight",Hs),mlt=vl("borderBottom",Hs),glt=vl("borderLeft",Hs),ylt=vl("borderColor"),vlt=vl("borderTopColor"),blt=vl("borderRightColor"),wlt=vl("borderBottomColor"),xlt=vl("borderLeftColor"),Slt=vl("outline",Hs),Clt=vl("outlineColor"),Zk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=i1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:a1(t,r)});return ld(e,e.borderRadius,n)}return null};Zk.propTypes={};Zk.filterProps=["borderRadius"];Jk(flt,plt,hlt,mlt,glt,ylt,vlt,blt,wlt,xlt,Zk,Slt,Clt);const eM=e=>{if(e.gap!==void 0&&e.gap!==null){const t=i1(e.theme,"spacing",8),n=r=>({gap:a1(t,r)});return ld(e,e.gap,n)}return null};eM.propTypes={};eM.filterProps=["gap"];const tM=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=i1(e.theme,"spacing",8),n=r=>({columnGap:a1(t,r)});return ld(e,e.columnGap,n)}return null};tM.propTypes={};tM.filterProps=["columnGap"];const nM=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=i1(e.theme,"spacing",8),n=r=>({rowGap:a1(t,r)});return ld(e,e.rowGap,n)}return null};nM.propTypes={};nM.filterProps=["rowGap"];const Plt=ho({prop:"gridColumn"}),Elt=ho({prop:"gridRow"}),Tlt=ho({prop:"gridAutoFlow"}),Olt=ho({prop:"gridAutoColumns"}),Ilt=ho({prop:"gridAutoRows"}),klt=ho({prop:"gridTemplateColumns"}),Mlt=ho({prop:"gridTemplateRows"}),Alt=ho({prop:"gridTemplateAreas"}),$lt=ho({prop:"gridArea"});Jk(eM,tM,nM,Plt,Elt,Tlt,Olt,Ilt,klt,Mlt,Alt,$lt);function dy(e,t){return t==="grey"?t:e}const Rlt=ho({prop:"color",themeKey:"palette",transform:dy}),Dlt=ho({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dy}),_lt=ho({prop:"backgroundColor",themeKey:"palette",transform:dy});Jk(Rlt,Dlt,_lt);function Ya(e){return e<=1&&e!==0?`${e*100}%`:e}const Llt=ho({prop:"width",transform:Ya}),oz=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Xk[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ya(n)}};return ld(e,e.maxWidth,t)}return null};oz.filterProps=["maxWidth"];const Nlt=ho({prop:"minWidth",transform:Ya}),Flt=ho({prop:"height",transform:Ya}),jlt=ho({prop:"maxHeight",transform:Ya}),Blt=ho({prop:"minHeight",transform:Ya});ho({prop:"size",cssProperty:"width",transform:Ya});ho({prop:"size",cssProperty:"height",transform:Ya});const zlt=ho({prop:"boxSizing"});Jk(Llt,oz,Nlt,Flt,jlt,Blt,zlt);const Eie={border:{themeKey:"borders",transform:Hs},borderTop:{themeKey:"borders",transform:Hs},borderRight:{themeKey:"borders",transform:Hs},borderBottom:{themeKey:"borders",transform:Hs},borderLeft:{themeKey:"borders",transform:Hs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zk},color:{themeKey:"palette",transform:dy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dy},backgroundColor:{themeKey:"palette",transform:dy},p:{style:Jr},pt:{style:Jr},pr:{style:Jr},pb:{style:Jr},pl:{style:Jr},px:{style:Jr},py:{style:Jr},padding:{style:Jr},paddingTop:{style:Jr},paddingRight:{style:Jr},paddingBottom:{style:Jr},paddingLeft:{style:Jr},paddingX:{style:Jr},paddingY:{style:Jr},paddingInline:{style:Jr},paddingInlineStart:{style:Jr},paddingInlineEnd:{style:Jr},paddingBlock:{style:Jr},paddingBlockStart:{style:Jr},paddingBlockEnd:{style:Jr},m:{style:Qr},mt:{style:Qr},mr:{style:Qr},mb:{style:Qr},ml:{style:Qr},mx:{style:Qr},my:{style:Qr},margin:{style:Qr},marginTop:{style:Qr},marginRight:{style:Qr},marginBottom:{style:Qr},marginLeft:{style:Qr},marginX:{style:Qr},marginY:{style:Qr},marginInline:{style:Qr},marginInlineStart:{style:Qr},marginInlineEnd:{style:Qr},marginBlock:{style:Qr},marginBlockStart:{style:Qr},marginBlockEnd:{style:Qr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:eM},rowGap:{style:nM},columnGap:{style:tM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ya},maxWidth:{style:oz},minWidth:{transform:Ya},height:{transform:Ya},maxHeight:{transform:Ya},minHeight:{transform:Ya},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Vlt(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Hlt(e,t){return typeof e=="function"?e(t):e}function Ult(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Qk(o,c)||{};return d?d(a):ld(a,r,m=>{let g=uO(f,u,m);return m===g&&typeof m=="string"&&(g=uO(f,u,`${n}${m==="default"?"":op(m)}`,m)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Eie;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=rlt(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const p=Hlt(l[f],o);if(p!=null)if(typeof p=="object")if(i[f])d=Rw(d,e(f,p,o,i));else{const m=ld({theme:o},p,g=>({[f]:g}));Vlt(m,p)?d[f]=t({sx:p,theme:o}):d=Rw(d,m)}else d=Rw(d,e(f,p,o,i))}),Qst(o,olt(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const dO=Ult();dO.filterProps=["sx"];function Wlt(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Glt(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=Xst(n),l=dlt(o);let c=aO({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...tlt,...i}},a);return c=elt(c),c.applyStyles=Wlt,c=t.reduce((u,d)=>aO(u,d),c),c.unstable_sxConfig={...Eie,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return dO({sx:d,theme:this})},c}function qlt(e){const{variants:t,...n}=e,r={variants:t,style:_9(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=_9(o.style))}),r}const Klt=Glt();function ZP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ylt(e){return e?(t,n)=>n[e]:null}function Xlt(e,t,n){e.theme=Zlt(e.theme)?n:e.theme[t]||e.theme}function eE(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>eE(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Tie(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Tie(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function Qlt(e={}){const{themeId:t,defaultTheme:n=Klt,rootShouldForwardProp:r=ZP,slotShouldForwardProp:o=ZP}=e;function i(s){Xlt(s,t,n)}return(s,l={})=>{Kst(s,E=>E.filter(T=>T!==dO));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Ylt(tct(u)),...m}=l,g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let b=ZP;u==="Root"||u==="root"?b=r:u?b=o:ect(s)&&(b=void 0);const x=qst(s,{shouldForwardProp:b,label:Jlt(),...m}),S=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(O){return eE(O,E)};if(Hp(E)){const T=qlt(E);return T.variants?function(k){return eE(k,T)}:T.style}return E},P=(...E)=>{const T=[],O=E.map(S),k=[];if(T.push(i),c&&p&&k.push(function(_){var F,U;const j=(U=(F=_.theme.components)==null?void 0:F[c])==null?void 0:U.styleOverrides;if(!j)return null;const N={};for(const z in j)N[z]=eE(_,j[z]);return p(_,N)}),c&&!g&&k.push(function(_){var N,F;const L=_.theme,j=(F=(N=L==null?void 0:L.components)==null?void 0:N[c])==null?void 0:F.variants;return j?Tie(_,j):null}),y||k.push(dO),Array.isArray(O[0])){const R=O.shift(),_=new Array(T.length).fill(""),L=new Array(k.length).fill("");let j;j=[..._,...R,...L],j.raw=[..._,...R.raw,...L],T.unshift(j)}const M=[...T,...O,...k],I=x(...M);return s.muiName&&(I.muiName=s.muiName),I};return x.withConfig&&(P.withConfig=x.withConfig),P}}function Jlt(e,t){return void 0}function Zlt(e){for(const t in e)return!1;return!0}function ect(e){return typeof e=="string"&&e.charCodeAt(0)>96}function tct(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ur=Qlt();function nct(e){return _n("MuiPickersFilledInput",e)}const Ip=D({},uy,Ln("MuiPickersFilledInput",["root","underline","input"])),rct=["label","autoFocus","disableUnderline","ownerState"],oct=ie(Yk,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ZP(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ip.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ip.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ip.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ip.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ip.disabled}, .${Ip.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ip.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),ict=ie(ez,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),act=e=>{const{classes:t,disableUnderline:n}=e,o=bt({root:["root",!n&&"underline"],input:["input"]},nct,t);return D({},t,o)},Oie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=ze(r,rct),l=Ea(),c=D({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=act(c);return $.jsx(tz,D({slots:{root:oct,input:ict},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});Oie.muiName="Input";function sct(e){return _n("MuiPickersFilledInput",e)}const A0=D({},uy,Ln("MuiPickersInput",["root","input"])),lct=["label","autoFocus","disableUnderline","ownerState"],cct=ie(Yk,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${A0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${A0.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${A0.disabled}, .${A0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${A0.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),uct=e=>{const{classes:t,disableUnderline:n}=e,o=bt({root:["root",!n&&"underline"],input:["input"]},sct,t);return D({},t,o)},Iie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=ze(r,lct),l=Ea(),c=D({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=uct(c);return $.jsx(tz,D({slots:{root:cct}},s,{label:o,classes:u,ref:n}))});Iie.muiName="Input";const dct=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],fct={standard:Iie,filled:Oie,outlined:Sie},pct=ie(Wv,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hct=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return bt({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Pst,r)},iz=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:p,inputRef:m,sectionListRef:g,elements:y,areAllSectionsEmpty:b,onClick:x,onKeyDown:S,onKeyUp:P,onPaste:E,onInput:T,endAdornment:O,startAdornment:k,tabIndex:M,contentEditable:I,focused:R,value:_,onChange:L,fullWidth:j,id:N,name:F,helperText:U,FormHelperTextProps:z,label:V,InputLabelProps:W}=r,G=ze(r,dct),J=v.useRef(null),K=Gr(n,J),ne=cr(N),re=U&&ne?`${ne}-helper-text`:void 0,oe=V&&ne?`${ne}-label`:void 0,fe=D({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),se=hct(fe),ee=fct[u];return $.jsxs(pct,D({className:pe(se.root,a),ref:K,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:j,required:d,ownerState:fe},G,{children:[$.jsx(Gv,D({htmlFor:ne,id:oe},W,{children:V})),$.jsx(ee,D({elements:y,areAllSectionsEmpty:b,onClick:x,onKeyDown:S,onKeyUp:P,onInput:T,onPaste:E,endAdornment:O,startAdornment:k,tabIndex:M,contentEditable:I,value:_,onChange:L,id:ne,fullWidth:j,inputProps:p,inputRef:m,sectionListRef:g,label:V,name:F,role:"group","aria-labelledby":oe},f)),U&&$.jsx(_S,D({id:re},z,{children:U}))]}))}),mct=["enableAccessibleFieldDOMStructure"],gct=["InputProps","readOnly"],yct=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],az=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ze(e,mct);if(t){const{InputProps:d,readOnly:f}=n,p=ze(n,gct);return D({},p,{InputProps:D({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=ze(n,yct);return D({},u,{InputProps:D({},s??{},{readOnly:a}),inputProps:D({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},vct=["slots","slotProps","InputProps","inputProps"],kie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=ze(r,vct),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?iz:mn),d=Hn({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=Cst(d),p=az(f),m=JB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),bct=e=>{const t=xst(e),{forwardedProps:n,internalProps:r}=ZB(t,"time");return QB({forwardedProps:n,internalProps:r,valueManager:ro,fieldValueManager:KB,validator:o1,valueType:"time"})},wct=["slots","slotProps","InputProps","inputProps"],Mie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=ze(r,wct),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?iz:mn),d=Hn({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=bct(d),p=az(f),m=JB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),xct=e=>{const t=Sst(e),{forwardedProps:n,internalProps:r}=ZB(t,"date-time");return QB({forwardedProps:n,internalProps:r,valueManager:ro,fieldValueManager:KB,validator:Kk,valueType:"date-time"})},Sct=["slots","slotProps","InputProps","inputProps"],Aie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=ze(r,Sct),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?iz:mn),d=Hn({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=D({},s,d.inputProps),d.InputProps=D({},a,d.InputProps);const f=xct(d),p=az(f),m=JB(D({},p,{slots:o,slotProps:i}));return $.jsx(u,D({},m))}),$ie=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=om();return v.useCallback(c=>xb({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},Cct=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return D({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),D({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return D({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return D({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Pct=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=gn(),p=v.useRef(Cct(!!c,i,f)).current,m=v.useMemo(()=>ro.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Wl.day}),[n,d]),[g,y]=v.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:f.startOfMonth(m),slideDirection:"left"});v.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:f.getTimezone(m)})},[m,f]);const b=v.useCallback(T=>{y(D({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),x=v.useCallback(T=>{const O=T;f.isSameMonth(O,g.currentMonth)||b({newMonth:f.startOfMonth(O),direction:f.isAfterDay(O,g.currentMonth)?"left":"right"})},[g.currentMonth,b,f]),S=$ie({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),P=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=ot((T,O)=>{S(T)||y({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:O})});return{referenceDate:m,calendarState:g,changeMonth:x,changeFocusedDay:E,isDateDisabled:S,onMonthSwitchingAnimationEnd:P,handleChangeMonth:b}},Ect=e=>_n("MuiPickersFadeTransitionGroup",e);Ln("MuiPickersFadeTransitionGroup",["root"]);const Tct=e=>{const{classes:t}=e;return bt({root:["root"]},Ect,t)},Oct=ie($S,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Rie(e){const t=Jt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Tct(t),s=Lo();return o?n:$.jsx(Oct,{className:pe(a.root,r),children:$.jsx(Hv,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const Ict=e=>_n("MuiPickersSlideTransition",e),ks=Ln("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),kct=["children","className","reduceAnimations","slideDirection","transKey","classes"],Mct=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return bt(r,Ict,t)},Act=ie($S,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ks["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ks["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ks.slideEnterActive}`]:t.slideEnterActive},{[`.${ks.slideExit}`]:t.slideExit},{[`.${ks["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ks["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ks["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ks["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ks.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ks.slideExit}`]:{transform:"translate(0%)"},[`& .${ks["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ks["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function $ct(e){const t=Jt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=ze(t,kct),s=Mct(t),l=Lo();if(o)return $.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return $.jsx(Act,{className:pe(s.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:$.jsx(YF,D({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const Rct=e=>_n("MuiDayCalendar",e);Ln("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Dct=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],_ct=["ownerState"],Lct=e=>{const{classes:t}=e;return bt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Rct,t)},Die=(Qx+Hk*2)*6,Nct=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fct=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jct=ie(ut,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Bct=ie(ut,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),zct=ie(ut,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>D({},e.typography.caption,{width:Qx,height:Qx,padding:0,margin:`0 ${Hk}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Vct=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Die}),Hct=ie($ct,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Die}),Uct=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Wct=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Hk}px 0`,display:"flex",justifyContent:"center"});function Gct(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=ze(e,Dct);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:p,slotProps:m,timezone:g}=t,y=gn(),b=am(g),x=r!==null&&y.isSameDay(n,r),S=o.some(_=>y.isSameDay(_,n)),P=y.isSameDay(n,b),E=(p==null?void 0:p.day)??nst,T=Hn({elementType:E,externalSlotProps:m==null?void 0:m.day,additionalProps:D({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:D({},t,{day:n,selected:S})}),O=ze(T,_ct),k=v.useMemo(()=>c||i(n),[c,i,n]),M=v.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),I=v.useMemo(()=>{const _=y.startOfMonth(y.setMonth(n,a));return f?y.isSameDay(n,y.startOfWeek(_)):y.isSameDay(n,_)},[a,n,f,y]),R=v.useMemo(()=>{const _=y.endOfMonth(y.setMonth(n,a));return f?y.isSameDay(n,y.endOfWeek(_)):y.isSameDay(n,_)},[a,n,f,y]);return $.jsx(E,D({},O,{day:n,disabled:k,autoFocus:s&&x,today:P,outsideCurrentMonth:M,isFirstVisibleCell:I,isLastVisibleCell:R,selected:S,tabIndex:x?0:-1,"aria-selected":S,"aria-current":P?"date":void 0}))}function qct(e){const t=Jt({props:e,name:"MuiDayCalendar"}),n=gn(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:p=()=>$.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:y,disableFuture:b,minDate:x,maxDate:S,shouldDisableDate:P,shouldDisableMonth:E,shouldDisableYear:T,dayOfWeekFormatter:O=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:M,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:_,autoFocus:L,timezone:j}=t,N=am(j),F=Lct(t),U=po(),z=$ie({shouldDisableDate:P,shouldDisableMonth:E,shouldDisableYear:T,minDate:x,maxDate:S,disablePast:y,disableFuture:b,timezone:j}),V=Eo(),[W,G]=Bh({name:"DayCalendar",state:"hasFocus",controlled:k,default:L??!1}),[J,K]=v.useState(()=>s||N),ne=ot(me=>{d||c(me)}),re=me=>{z(me)||(r(me),K(me),M==null||M(!0),G(!0))},oe=ot((me,be)=>{switch(me.key){case"ArrowUp":re(n.addDays(be,-7)),me.preventDefault();break;case"ArrowDown":re(n.addDays(be,7)),me.preventDefault();break;case"ArrowLeft":{const we=n.addDays(be,U?1:-1),Te=n.addMonths(be,U?1:-1),Ie=$w({utils:n,date:we,minDate:U?we:n.startOfMonth(Te),maxDate:U?n.endOfMonth(Te):we,isDateDisabled:z,timezone:j});re(Ie||we),me.preventDefault();break}case"ArrowRight":{const we=n.addDays(be,U?-1:1),Te=n.addMonths(be,U?-1:1),Ie=$w({utils:n,date:we,minDate:U?n.startOfMonth(Te):we,maxDate:U?we:n.endOfMonth(Te),isDateDisabled:z,timezone:j});re(Ie||we),me.preventDefault();break}case"Home":re(n.startOfWeek(be)),me.preventDefault();break;case"End":re(n.endOfWeek(be)),me.preventDefault();break;case"PageUp":re(n.addMonths(be,1)),me.preventDefault();break;case"PageDown":re(n.addMonths(be,-1)),me.preventDefault();break}}),fe=ot((me,be)=>re(be)),se=ot((me,be)=>{W&&n.isSameDay(J,be)&&(M==null||M(!1))}),ee=n.getMonth(i),ce=n.getYear(i),le=v.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),Q=`${ce}-${ee}`,ue=v.useMemo(()=>v.createRef(),[Q]),ge=v.useMemo(()=>{const me=n.startOfMonth(i),be=n.endOfMonth(i);return z(J)||n.isAfterDay(J,be)||n.isBeforeDay(J,me)?$w({utils:n,date:J,minDate:me,maxDate:be,disablePast:y,disableFuture:b,isDateDisabled:z,timezone:j}):J},[i,b,y,J,z,n,j]),xe=v.useMemo(()=>{const me=n.getWeekArray(i);let be=n.addMonths(i,1);for(;_&&me.length<_;){const we=n.getWeekArray(be),Te=n.isSameDay(me[me.length-1][0],we[0][0]);we.slice(Te?1:0).forEach(Ie=>{me.length<_&&me.push(Ie)}),be=n.addMonths(be,1)}return me},[i,_,n]);return $.jsxs(Nct,{role:"grid","aria-labelledby":I,className:F.root,children:[$.jsxs(Fct,{role:"row",className:F.header,children:[R&&$.jsx(Bct,{variant:"caption",role:"columnheader","aria-label":V.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:V.calendarWeekNumberHeaderText}),Wit(n,N).map((me,be)=>$.jsx(jct,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:F.weekDayLabel,children:O(me)},be.toString()))]}),l?$.jsx(Vct,{className:F.loadingContainer,children:p()}):$.jsx(Hct,D({transKey:Q,onExited:u,reduceAnimations:f,slideDirection:m,className:pe(o,F.slideTransition)},g,{nodeRef:ue,children:$.jsx(Uct,{ref:ue,role:"rowgroup",className:F.monthContainer,children:xe.map((me,be)=>$.jsxs(Wct,{role:"row",className:F.weekContainer,"aria-rowindex":be+1,children:[R&&$.jsx(zct,{className:F.weekNumber,role:"rowheader","aria-label":V.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:V.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((we,Te)=>$.jsx(Gct,{parentProps:t,day:we,selectedDays:le,focusableDay:ge,onKeyDown:oe,onFocus:fe,onBlur:se,onDaySelect:ne,isDateDisabled:z,currentMonthNumber:ee,isViewFocused:W,"aria-colindex":Te+1},we.toString()))]},`week-${me[0]}`))})}))]})}function Kct(e){return _n("MuiPickersMonth",e)}const cP=Ln("MuiPickersMonth",["root","monthButton","disabled","selected"]),Yct=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Xct=e=>{const{disabled:t,selected:n,classes:r}=e;return bt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Kct,r)},Qct=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),Jct=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${cP.disabled}`]:t.disabled},{[`&.${cP.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${cP.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${cP.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Zct=v.memo(function(t){const n=Jt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,"aria-label":g,slots:y,slotProps:b}=n,x=ze(n,Yct),S=v.useRef(null),P=Xct(n);mr(()=>{var O;r&&((O=S.current)==null||O.focus())},[r]);const E=(y==null?void 0:y.monthButton)??Jct,T=Hn({elementType:E,externalSlotProps:b==null?void 0:b.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":m,"aria-checked":s,"aria-label":g,onClick:O=>u(O,l),onKeyDown:O=>d(O,l),onFocus:O=>f(O,l),onBlur:O=>p(O,l)},ownerState:n,className:P.monthButton});return $.jsx(Qct,D({className:pe(P.root,o),ownerState:n},x,{children:$.jsx(E,D({},T))}))});function eut(e){return _n("MuiMonthCalendar",e)}Ln("MuiMonthCalendar",["root"]);const tut=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],nut=e=>{const{classes:t}=e;return bt({root:["root"]},eut,t)};function rut(e,t){const n=gn(),r=im(),o=Jt({props:e,name:t});return D({disableFuture:!1,disablePast:!1},o,{minDate:ki(n,o.minDate,r.minDate),maxDate:ki(n,o.maxDate,r.maxDate)})}const out=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Uk,boxSizing:"border-box"}),iut=v.forwardRef(function(t,n){const r=rut(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,autoFocus:y=!1,onMonthFocus:b,hasFocus:x,onFocusedViewChange:S,monthsPerRow:P=3,timezone:E,gridLabelId:T,slots:O,slotProps:k}=r,M=ze(r,tut),{value:I,handleValueChange:R,timezone:_}=wb({name:"MonthCalendar",timezone:E,value:i,defaultValue:a,referenceDate:s,onChange:p,valueManager:ro}),L=am(_),j=po(),N=gn(),F=v.useMemo(()=>ro.getInitialReferenceValue({value:I,utils:N,props:r,timezone:_,referenceDate:s,granularity:Wl.month}),[]),U=r,z=nut(U),V=v.useMemo(()=>N.getMonth(L),[N,L]),W=v.useMemo(()=>I!=null?N.getMonth(I):null,[I,N]),[G,J]=v.useState(()=>W||N.getMonth(F)),[K,ne]=Bh({name:"MonthCalendar",state:"hasFocus",controlled:x,default:y??!1}),re=ot(Q=>{ne(Q),S&&S(Q)}),oe=v.useCallback(Q=>{const ue=N.startOfMonth(u&&N.isAfter(L,f)?L:f),ge=N.startOfMonth(c&&N.isBefore(L,d)?L:d),xe=N.startOfMonth(Q);return N.isBefore(xe,ue)||N.isAfter(xe,ge)?!0:m?m(xe):!1},[c,u,d,f,L,m,N]),fe=ot((Q,ue)=>{if(g)return;const ge=N.setMonth(I??F,ue);R(ge)}),se=ot(Q=>{oe(N.setMonth(I??F,Q))||(J(Q),re(!0),b&&b(Q))});v.useEffect(()=>{J(Q=>W!==null&&Q!==W?W:Q)},[W]);const ee=ot((Q,ue)=>{switch(Q.key){case"ArrowUp":se((12+ue-3)%12),Q.preventDefault();break;case"ArrowDown":se((12+ue+3)%12),Q.preventDefault();break;case"ArrowLeft":se((12+ue+(j?1:-1))%12),Q.preventDefault();break;case"ArrowRight":se((12+ue+(j?-1:1))%12),Q.preventDefault();break}}),ce=ot((Q,ue)=>{se(ue)}),le=ot((Q,ue)=>{G===ue&&re(!1)});return $.jsx(out,D({ref:n,className:pe(z.root,o),ownerState:U,role:"radiogroup","aria-labelledby":T},M,{children:HB(N,I??F).map(Q=>{const ue=N.getMonth(Q),ge=N.format(Q,"monthShort"),xe=N.format(Q,"month"),me=ue===W,be=l||oe(Q);return $.jsx(Zct,{selected:me,value:ue,onClick:fe,onKeyDown:ee,autoFocus:K&&ue===G,disabled:be,tabIndex:ue===G&&!be?0:-1,onFocus:ce,onBlur:le,"aria-current":V===ue?"date":void 0,"aria-label":xe,monthsPerRow:P,slots:O,slotProps:k,children:ge},ge)})}))});function aut(e){return _n("MuiPickersYear",e)}const uP=Ln("MuiPickersYear",["root","yearButton","selected","disabled"]),sut=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],lut=e=>{const{disabled:t,selected:n,classes:r}=e;return bt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},aut,r)},cut=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),uut=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${uP.disabled}`]:t.disabled},{[`&.${uP.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:vt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${uP.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${uP.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dut=v.memo(function(t){const n=Jt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,slots:g,slotProps:y}=n,b=ze(n,sut),x=v.useRef(null),S=lut(n);mr(()=>{var T;r&&((T=x.current)==null||T.focus())},[r]);const P=(g==null?void 0:g.yearButton)??uut,E=Hn({elementType:P,externalSlotProps:y==null?void 0:y.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:x,type:"button",role:"radio","aria-current":m,"aria-checked":s,onClick:T=>u(T,l),onKeyDown:T=>d(T,l),onFocus:T=>f(T,l),onBlur:T=>p(T,l)},ownerState:n,className:S.yearButton});return $.jsx(cut,D({className:pe(S.root,o),ownerState:n},b,{children:$.jsx(P,D({},E))}))});function fut(e){return _n("MuiYearCalendar",e)}Ln("MuiYearCalendar",["root"]);const put=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],hut=e=>{const{classes:t}=e;return bt({root:["root"]},fut,t)};function mut(e,t){const n=gn(),r=im(),o=Jt({props:e,name:t});return D({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ki(n,o.minDate,r.minDate),maxDate:ki(n,o.maxDate,r.maxDate)})}const gut=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Uk,maxHeight:Iit,boxSizing:"border-box",position:"relative"}),yut=v.forwardRef(function(t,n){const r=mut(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onChange:m,readOnly:g,shouldDisableYear:y,onYearFocus:b,hasFocus:x,onFocusedViewChange:S,yearsOrder:P="asc",yearsPerRow:E,timezone:T,gridLabelId:O,slots:k,slotProps:M}=r,I=ze(r,put),{value:R,handleValueChange:_,timezone:L}=wb({name:"YearCalendar",timezone:T,value:a,defaultValue:s,referenceDate:l,onChange:m,valueManager:ro}),j=am(L),N=po(),F=gn(),U=v.useMemo(()=>ro.getInitialReferenceValue({value:R,utils:F,props:r,timezone:L,referenceDate:l,granularity:Wl.year}),[]),z=r,V=hut(z),W=v.useMemo(()=>F.getYear(j),[F,j]),G=v.useMemo(()=>R!=null?F.getYear(R):null,[R,F]),[J,K]=v.useState(()=>G||F.getYear(U)),[ne,re]=Bh({name:"YearCalendar",state:"hasFocus",controlled:x,default:o??!1}),oe=ot(we=>{re(we),S&&S(we)}),fe=v.useCallback(we=>{if(d&&F.isBeforeYear(we,j)||u&&F.isAfterYear(we,j)||p&&F.isBeforeYear(we,p)||f&&F.isAfterYear(we,f))return!0;if(!y)return!1;const Te=F.startOfYear(we);return y(Te)},[u,d,f,p,j,y,F]),se=ot((we,Te)=>{if(g)return;const Ie=F.setYear(R??U,Te);_(Ie)}),ee=ot(we=>{fe(F.setYear(R??U,we))||(K(we),oe(!0),b==null||b(we))});v.useEffect(()=>{K(we=>G!==null&&we!==G?G:we)},[G]);const ce=P!=="desc"?E*1:E*-1,le=N&&P==="asc"||!N&&P==="desc"?-1:1,Q=ot((we,Te)=>{switch(we.key){case"ArrowUp":ee(Te-ce),we.preventDefault();break;case"ArrowDown":ee(Te+ce),we.preventDefault();break;case"ArrowLeft":ee(Te-le),we.preventDefault();break;case"ArrowRight":ee(Te+le),we.preventDefault();break}}),ue=ot((we,Te)=>{ee(Te)}),ge=ot((we,Te)=>{J===Te&&oe(!1)}),xe=v.useRef(null),me=Gr(n,xe);v.useEffect(()=>{if(o||xe.current===null)return;const we=xe.current.querySelector('[tabindex="0"]');if(!we)return;const Te=we.offsetHeight,Ie=we.offsetTop,Le=xe.current.clientHeight,de=xe.current.scrollTop,$e=Ie+Te;Te>Le||Ie<de||(xe.current.scrollTop=$e-Le/2-Te/2)},[o]);const be=F.getYearRange([p,f]);return P==="desc"&&be.reverse(),$.jsx(gut,D({ref:me,className:pe(V.root,i),ownerState:z,role:"radiogroup","aria-labelledby":O},I,{children:be.map(we=>{const Te=F.getYear(we),Ie=Te===G,Le=c||fe(we);return $.jsx(dut,{selected:Ie,value:Te,onClick:se,onKeyDown:Q,autoFocus:ne&&Te===J,disabled:Le,tabIndex:Te===J&&!Le?0:-1,onFocus:ue,onBlur:ge,"aria-current":W===Te?"date":void 0,yearsPerRow:E,slots:k,slotProps:M,children:F.format(we,"year")},F.format(we,"year"))})}))}),vut=e=>_n("MuiPickersCalendarHeader",e),but=Ln("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),wut=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],xut=["ownerState"],Sut=e=>{const{classes:t}=e;return bt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vut,t)},Cut=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Put=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>D({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Eut=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Tut=ie(In,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${but.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Out=ie(uit,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Iut=v.forwardRef(function(t,n){const r=Eo(),o=gn(),i=Jt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:b,views:x,labelId:S,className:P,timezone:E,format:T=`${o.formats.month} ${o.formats.year}`}=i,O=ze(i,wut),k=i,M=Sut(i),I=(a==null?void 0:a.switchViewButton)??Tut,R=Hn({elementType:I,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:k,className:M.switchViewButton}),_=(a==null?void 0:a.switchViewIcon)??Out,L=Hn({elementType:_,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:k,className:M.switchViewIcon}),j=ze(L,xut),N=()=>m(o.addMonths(l,1),"left"),F=()=>m(o.addMonths(l,-1),"right"),U=Tit(l,{disableFuture:u,maxDate:f,timezone:E}),z=Oit(l,{disablePast:d,minDate:p,timezone:E}),V=()=>{if(!(x.length===1||!g||c))if(x.length===2)g(x.find(G=>G!==y)||x[0]);else{const G=x.indexOf(y)!==0?0:1;g(x[G])}};if(x.length===1&&x[0]==="year")return null;const W=o.formatByString(l,T);return $.jsxs(Cut,D({},O,{ownerState:k,className:pe(M.root,P),ref:n,children:[$.jsxs(Put,{role:"presentation",onClick:V,ownerState:k,"aria-live":"polite",className:M.labelContainer,children:[$.jsx(Rie,{reduceAnimations:b,transKey:W,children:$.jsx(Eut,{id:S,ownerState:k,className:M.label,children:W})}),x.length>1&&!c&&$.jsx(I,D({},R,{children:$.jsx(_,D({},j))}))]}),$.jsx(Hv,{in:y==="day",children:$.jsx(eie,{slots:a,slotProps:s,onGoToPrevious:F,isPreviousDisabled:z,previousLabel:r.previousMonth,onGoToNext:N,isNextDisabled:U,nextLabel:r.nextMonth})})]}))}),kut="@media (prefers-reduced-motion: reduce)",fy=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),F9=fy&&fy[1]?parseInt(fy[1],10):null,j9=fy&&fy[2]?parseInt(fy[2],10):null,Mut=F9&&F9<10||j9&&j9<13||!1,_ie=()=>Df(kut,{defaultMatches:!1})||Mut,Aut=e=>_n("MuiDateCalendar",e);Ln("MuiDateCalendar",["root","viewTransitionContainer"]);const $ut=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Rut=e=>{const{classes:t}=e;return bt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Aut,t)};function Dut(e,t){const n=gn(),r=im(),o=_ie(),i=Jt({props:e,name:t});return D({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>$.jsx("span",{children:"..."})),minDate:ki(n,i.minDate,r.minDate),maxDate:ki(n,i.maxDate,r.maxDate)})}const _ut=ie(Gk,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Wk}),Lut=ie(Rie,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Nut=v.forwardRef(function(t,n){const r=gn(),o=cr(),i=Dut(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:p,onYearChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:S,view:P,views:E,openTo:T,className:O,disabled:k,readOnly:M,minDate:I,maxDate:R,disableHighlightToday:_,focusedView:L,onFocusedViewChange:j,showDaysOutsideCurrentMonth:N,fixedWeekNumber:F,dayOfWeekFormatter:U,slots:z,slotProps:V,loading:W,renderLoading:G,displayWeekNumber:J,yearsOrder:K,yearsPerRow:ne,monthsPerRow:re,timezone:oe}=i,fe=ze(i,$ut),{value:se,handleValueChange:ee,timezone:ce}=wb({name:"DateCalendar",timezone:oe,value:l,defaultValue:c,referenceDate:u,onChange:p,valueManager:ro}),{view:le,setView:Q,focusedView:ue,setFocusedView:ge,goToNextView:xe,setValueAndGoToNextView:me}=r1({view:P,views:E,openTo:T,onChange:ee,onViewChange:s,autoFocus:a,focusedView:L,onFocusedViewChange:j}),{referenceDate:be,calendarState:we,changeFocusedDay:Te,changeMonth:Ie,handleChangeMonth:Le,isDateDisabled:de,onMonthSwitchingAnimationEnd:$e}=Pct({value:se,referenceDate:u,reduceAnimations:y,onMonthChange:g,minDate:I,maxDate:R,shouldDisableDate:b,disablePast:f,disableFuture:d,timezone:ce}),ke=k&&se||I,Me=k&&se||R,De=`${o}-grid-label`,Ye=ue!==null,Je=(z==null?void 0:z.calendarHeader)??Iut,st=Hn({elementType:Je,externalSlotProps:V==null?void 0:V.calendarHeader,additionalProps:{views:E,view:le,currentMonth:we.currentMonth,onViewChange:Q,onMonthChange:(St,yn)=>Le({newMonth:St,direction:yn}),minDate:ke,maxDate:Me,disabled:k,disablePast:f,disableFuture:d,reduceAnimations:y,timezone:ce,labelId:De},ownerState:i}),Rt=ot(St=>{const yn=r.startOfMonth(St),Bn=r.endOfMonth(St),Wn=de(St)?$w({utils:r,date:St,minDate:r.isBefore(I,yn)?yn:I,maxDate:r.isAfter(R,Bn)?Bn:R,disablePast:f,disableFuture:d,isDateDisabled:de,timezone:ce}):St;Wn?(me(Wn,"finish"),g==null||g(yn)):(xe(),Ie(yn)),Te(Wn,!0)}),ct=ot(St=>{const yn=r.startOfYear(St),Bn=r.endOfYear(St),Wn=de(St)?$w({utils:r,date:St,minDate:r.isBefore(I,yn)?yn:I,maxDate:r.isAfter(R,Bn)?Bn:R,disablePast:f,disableFuture:d,isDateDisabled:de,timezone:ce}):St;Wn?(me(Wn,"finish"),m==null||m(Wn)):(xe(),Ie(yn)),Te(Wn,!0)}),Lt=ot(St=>ee(St&&lO(r,St,se??be),"finish",le));v.useEffect(()=>{se!=null&&r.isValid(se)&&Ie(se)},[se]);const pt=i,rt=Rut(pt),Pe={disablePast:f,disableFuture:d,maxDate:R,minDate:I},Ve={disableHighlightToday:_,readOnly:M,disabled:k,timezone:ce,gridLabelId:De,slots:z,slotProps:V},ft=v.useRef(le);v.useEffect(()=>{ft.current!==le&&(ue===ft.current&&ge(le,!0),ft.current=le)},[ue,ge,le]);const It=v.useMemo(()=>[se],[se]);return $.jsxs(_ut,D({ref:n,className:pe(rt.root,O),ownerState:pt},fe,{children:[$.jsx(Je,D({},st,{slots:z,slotProps:V})),$.jsx(Lut,{reduceAnimations:y,className:rt.viewTransitionContainer,transKey:le,ownerState:pt,children:$.jsxs("div",{children:[le==="year"&&$.jsx(yut,D({},Pe,Ve,{value:se,onChange:ct,shouldDisableYear:S,hasFocus:Ye,onFocusedViewChange:St=>ge("year",St),yearsOrder:K,yearsPerRow:ne,referenceDate:be})),le==="month"&&$.jsx(iut,D({},Pe,Ve,{hasFocus:Ye,className:O,value:se,onChange:Rt,shouldDisableMonth:x,onFocusedViewChange:St=>ge("month",St),monthsPerRow:re,referenceDate:be})),le==="day"&&$.jsx(qct,D({},we,Pe,Ve,{onMonthSwitchingAnimationEnd:$e,onFocusedDayChange:Te,reduceAnimations:y,selectedDays:It,onSelectedDaysChange:Lt,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:S,hasFocus:Ye,onFocusedViewChange:St=>ge("day",St),showDaysOutsideCurrentMonth:N,fixedWeekNumber:F,dayOfWeekFormatter:U,displayWeekNumber:J,loading:W,renderLoading:G}))]})})]}))});function Lie(e){return _n("MuiPickersToolbar",e)}const Fut=Ln("MuiPickersToolbar",["root","content"]),jut=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],But=e=>{const{classes:t}=e;return bt({root:["root"],content:["content"]},Lie,t)},zut=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Vut=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),sz=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=ze(r,jut),u=r,d=But(u);return s?null:$.jsxs(zut,D({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[$.jsx(ut,{color:"text.secondary",variant:"overline",id:l,children:a}),$.jsx(Vut,{className:d.content,ownerState:u,children:o})]}))});function Hut(e){return _n("MuiDatePickerToolbar",e)}Ln("MuiDatePickerToolbar",["root","title"]);const Uut=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Wut=e=>{const{classes:t}=e;return bt({root:["root"],title:["title"]},Hut,t)},Gut=ie(sz,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qut=ie(ut,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Kut=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=ze(r,Uut),d=gn(),f=Eo(),p=Wut(r),m=v.useMemo(()=>{if(!o)return s;const y=Zx(d,{format:a,views:l},!0);return d.formatByString(o,y)},[o,a,s,d,l]),g=r;return $.jsx(Gut,D({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(p.root,c)},u,{children:$.jsx(qut,{variant:"h4",align:i?"left":"center",ownerState:g,className:p.title,children:m})}))});function Nie(e,t){const n=gn(),r=im(),o=Jt({props:e,name:t}),i=v.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:D({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return D({},o,{localeText:i},VB({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ki(n,o.minDate,r.minDate),maxDate:ki(n,o.maxDate,r.maxDate),slots:D({toolbar:Kut},o.slots)})}function Yut(e){return _n("MuiPickersPopper",e)}Ln("MuiPickersPopper",["root","paper"]);const Xut=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Qut=e=>{const{classes:t}=e;return bt({root:["root"],paper:["paper"]},Yut,t)},Jut=ie(Kf,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Zut=ie(fo,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function edt(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function tdt(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),i=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=ot(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=tc(o.current);if(!o.current||"clientX"in l&&edt(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=tc(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),v.useEffect(()=>{if(e){const l=tc(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const ndt=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=ze(e,Xut),d=D({},o,{placement:r}),f=Hn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return $.jsx(n,D({},u,f,{onClick:p=>{var m;l(p),(m=f.onClick)==null||m.call(f,p)},onTouchStart:p=>{var m;c(p),(m=f.onTouchStart)==null||m.call(f,p)},ownerState:d,children:i}))});function rdt(e){const t=Jt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:p}=t;v.useEffect(()=>{function N(F){l&&F.key==="Escape"&&s()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[s,l]);const m=v.useRef(null);v.useEffect(()=>{c==="tooltip"||i&&!i()||(l?m.current=da(document):m.current&&m.current instanceof HTMLElement&&setTimeout(()=>{m.current instanceof HTMLElement&&m.current.focus()}))},[l,c,i]);const[g,y,b]=tdt(l,a??s),x=v.useRef(null),S=Gr(x,o),P=Gr(S,g),E=t,T=Qut(E),O=_ie(),k=p??O,M=N=>{N.key==="Escape"&&(N.stopPropagation(),s())},I=(d==null?void 0:d.desktopTransition)??k?Hv:Rh,R=(d==null?void 0:d.desktopTrapFocus)??cj,_=(d==null?void 0:d.desktopPaper)??Zut,L=(d==null?void 0:d.popper)??Jut,j=Hn({elementType:L,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:M},className:T.root,ownerState:t});return $.jsx(L,D({},j,{children:({TransitionProps:N,placement:F})=>$.jsx(R,D({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:$.jsx(I,D({},N,f==null?void 0:f.desktopTransition,{children:$.jsx(ndt,{PaperComponent:_,ownerState:E,popperPlacement:F,ref:P,onPaperClick:y,onPaperTouchStart:b,paperClasses:T.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const odt=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,i]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=v.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},idt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},adt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},sdt=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},ldt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=v.useRef(l),{current:p}=v.useRef(s!==void 0),[m,g]=v.useState(u),y=gn(),b=om(),{isOpen:x,setIsOpen:S}=odt(e),{timezone:P,value:E,handleValueChange:T}=WB({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[O,k]=v.useState(()=>{let ee;return E!==void 0?ee=E:f!==void 0?ee=f:ee=t.emptyValue,{draft:ee,lastPublishedValue:ee,lastCommittedValue:ee,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),M=t.getTimezone(y,O.draft);m!==u&&(g(u),u&&M&&u!==M&&k(ee=>D({},ee,{draft:t.setTimezone(y,u,ee.draft)})));const{getValidationErrorForNewValue:I}=gie({props:e,validator:o,timezone:P,value:O.draft,onError:e.onError}),R=ot(ee=>{const ce={action:ee,dateState:O,hasChanged:me=>!t.areValuesEqual(y,ee.value,me),isControlled:p,closeOnSelect:c},le=idt(ce),Q=adt(ce),ue=sdt(ce);k(me=>D({},me,{draft:ee.value,lastPublishedValue:le?ee.value:me.lastPublishedValue,lastCommittedValue:Q?ee.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ge=null;const xe=()=>(ge||(ge={validationError:ee.name==="setValueFromField"?ee.context.validationError:I(ee.value)},ee.name==="setValueFromShortcut"&&(ge.shortcut=ee.shortcut)),ge);le&&T(ee.value,xe()),Q&&i&&i(ee.value,xe()),ue&&S(!1)});if(O.lastControlledValue!==s){const ee=t.areValuesEqual(y,O.draft,E);k(ce=>D({},ce,{lastControlledValue:s},ee?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const _=ot(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=ot(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),j=ot(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=ot(()=>{R({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),F=ot(()=>{R({value:t.getTodayValue(y,P,n),name:"setValueFromAction",pickerAction:"today"})}),U=ot(ee=>{ee.preventDefault(),S(!0)}),z=ot(ee=>{ee==null||ee.preventDefault(),S(!1)}),V=ot((ee,ce="partial")=>R({name:"setValueFromView",value:ee,selectionState:ce})),W=ot((ee,ce,le)=>R({name:"setValueFromShortcut",value:ee,changeImportance:ce,shortcut:le})),G=ot((ee,ce)=>R({name:"setValueFromField",value:ee,context:ce})),J={onClear:_,onAccept:L,onDismiss:j,onCancel:N,onSetToday:F,onOpen:U,onClose:z},K={value:O.draft,onChange:G},ne=v.useMemo(()=>t.cleanValue(y,O.draft),[y,t,O.draft]),re={value:ne,onChange:V,onClose:z,open:x},fe=D({},J,{value:ne,onChange:V,onSelectShortcut:W,isValid:ee=>{const ce=o({adapter:b,value:ee,timezone:P,props:e});return!t.hasError(ce)}}),se=v.useMemo(()=>({onOpen:U,onClose:z,open:x}),[x,z,U]);return{open:x,fieldProps:K,viewProps:re,layoutProps:fe,actions:J,contextValue:se}},cdt=["className","sx"],udt=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:p,timezone:m}=e,g=ze(e,cdt),{view:y,setView:b,defaultView:x,focusedView:S,setFocusedView:P,setValueAndGoToNextView:E}=r1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:T,viewModeLookup:O}=v.useMemo(()=>u.reduce((j,N)=>{let F;return p[N]!=null?F="UI":F="field",j.viewModeLookup[N]=F,F==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[p,u]),k=v.useMemo(()=>u.reduce((j,N)=>p[N]!=null&&Pv(N)?j+1:j,0),[p,u]),M=O[y],I=ot(()=>M==="UI"),[R,_]=v.useState(M==="UI"?y:null);return R!==y&&O[y]==="UI"&&_(y),mr(()=>{M==="field"&&s&&(l(),setTimeout(()=>{var j,N;(j=i==null?void 0:i.current)==null||j.setSelectedSections(y),(N=i==null?void 0:i.current)==null||N.focusField(y)}))},[y]),mr(()=>{if(!s)return;let j=y;M==="field"&&R!=null&&(j=R),j!==x&&O[j]==="UI"&&O[x]==="UI"&&(j=x),j!==y&&b(j),P(j,!0)},[s]),{hasUIView:T,shouldRestoreFocus:I,layoutProps:{views:u,view:R,onViewChange:b},renderCurrentView:()=>{if(R==null)return null;const j=p[R];if(j==null)return null;const N=D({},g,n,t,{views:u,timezone:m,onChange:E,view:R,onViewChange:b,focusedView:S,onFocusedViewChange:P,showViewSwitcher:k>1,timeViewsCount:k});return o?o(p,R,N):j(N)}}};function B9(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const ddt=(e,t)=>{const[n,r]=v.useState(B9);return mr(()=>{const i=()=>{r(B9())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),mg(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},fdt=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=ddt(n.views,o),a=po();return{layoutProps:D({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function pdt(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Fie=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=ldt({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=udt({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=fdt({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=pdt({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function jie(e){return _n("MuiPickersLayout",e)}const Vl=Ln("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),hdt=["onAccept","onClear","onCancel","onSetToday","actions"];function mdt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=ze(e,hdt),s=Eo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return $.jsx(yt,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return $.jsx(yt,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return $.jsx(yt,{onClick:t,children:s.okButtonLabel},c);case"today":return $.jsx(yt,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return $.jsx(IZ,D({},a,{children:l}))}const gdt=["items","changeImportance","isLandscape","onChange","isValid"],ydt=["getValue"];function vdt(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=ze(e,gdt);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=ze(s,ydt);const u=l({isValid:o});return D({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return $.jsx(pl,D({dense:!0,sx:[{maxHeight:Wk,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>$.jsx(ss,{children:$.jsx(Ah,D({},s))},s.id??s.label))}))}function bdt(e){return e.view!==null}const wdt=e=>{const{classes:t,isLandscape:n}=e;return bt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},jie,t)},Bie=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:p,disabled:m,readOnly:g,children:y,slots:b,slotProps:x}=e,S=wdt(e),P=(b==null?void 0:b.actionBar)??mdt,E=Hn({elementType:P,externalSlotProps:x==null?void 0:x.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:S.actionBar,ownerState:D({},e,{wrapperVariant:t})}),T=$.jsx(P,D({},E)),O=b==null?void 0:b.toolbar,k=Hn({elementType:O,externalSlotProps:x==null?void 0:x.toolbar,additionalProps:{isLandscape:p,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:m,readOnly:g},className:S.toolbar,ownerState:D({},e,{wrapperVariant:t})}),M=bdt(k)&&O?$.jsx(O,D({},k)):null,I=y,R=b==null?void 0:b.tabs,_=a&&R?$.jsx(R,D({view:a,onViewChange:l,className:S.tabs},x==null?void 0:x.tabs)):null,L=(b==null?void 0:b.shortcuts)??vdt,j=Hn({elementType:L,externalSlotProps:x==null?void 0:x.shortcuts,additionalProps:{isValid:f,isLandscape:p,onChange:d},className:S.shortcuts,ownerState:{isValid:f,isLandscape:p,onChange:d,wrapperVariant:t}}),N=a&&L?$.jsx(L,D({},j)):null;return{toolbar:M,content:I,tabs:_,actionBar:T,shortcuts:N}},xdt=e=>{const{isLandscape:t,classes:n}=e;return bt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},jie,n)},zie=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Vl.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Vl.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Vl.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Vl.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Vl.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Vl.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Vl.shortcuts}`]:{gridColumn:3}}}]}),Vie=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=Bie(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,p=xdt(r);return $.jsxs(zie,{ref:n,sx:c,className:pe(p.root,u),ownerState:r,children:[d?l:o,d?o:l,$.jsx(Vie,{className:p.contentWrapper,children:f==="desktop"?$.jsxs(v.Fragment,{children:[i,a]}):$.jsxs(v.Fragment,{children:[a,i]})}),s]})}),Sdt=["props","getOpenDialogAriaText"],Cdt=["ownerState"],Pdt=["ownerState"],lz=e=>{var xe;let{props:t,getOpenDialogAriaText:n}=e,r=ze(e,Sdt);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,name:m,label:g,inputRef:y,readOnly:b,disabled:x,autoFocus:S,localeText:P,reduceAnimations:E}=t,T=v.useRef(null),O=v.useRef(null),k=cr(),M=((xe=i==null?void 0:i.toolbar)==null?void 0:xe.hidden)??!1,{open:I,actions:R,hasUIView:_,layoutProps:L,renderCurrentView:j,shouldRestoreFocus:N,fieldProps:F,contextValue:U,ownerState:z}=Fie(D({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),V=o.inputAdornment??go,W=Hn({elementType:V,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),G=ze(W,Cdt),J=o.openPickerButton??In,K=Hn({elementType:J,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:x||b,onClick:I?R.onClose:R.onOpen,"aria-label":n(F.value),edge:G.position},ownerState:t}),ne=ze(K,Pdt),re=o.openPickerIcon,oe=Hn({elementType:re,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:z}),fe=o.field,se=Hn({elementType:fe,externalSlotProps:i==null?void 0:i.field,additionalProps:D({},F,M&&{id:k},{readOnly:b,disabled:x,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,label:g,name:m,autoFocus:S&&!t.open,focused:I?!0:void 0},y?{inputRef:y}:{}),ownerState:t});_&&(se.InputProps=D({},se.InputProps,{ref:T},!t.disableOpenPicker&&{[`${G.position}Adornment`]:$.jsx(V,D({},G,{children:$.jsx(J,D({},ne,{children:$.jsx(re,D({},oe))}))}))}));const ee=D({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},se.slots),ce=o.layout??Hie;let le=k;M&&(g?le=`${k}-label`:le=void 0);const Q=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:k}),popper:D({"aria-labelledby":le},i==null?void 0:i.popper)}),ue=Gr(O,se.unstableFieldRef);return{renderPicker:()=>$.jsxs(yie,{contextValue:U,localeText:P,children:[$.jsx(fe,D({},se,{slots:ee,slotProps:Q,unstableFieldRef:ue})),$.jsx(rdt,D({role:"dialog",placement:"bottom-start",anchorEl:T.current},R,{open:I,slots:o,slotProps:Q,shouldRestoreFocus:N,reduceAnimations:E,children:$.jsx(ce,D({},L,Q==null?void 0:Q.layout,{slots:o,slotProps:Q,children:j()}))}))]})}},ol=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:x,onMonthChange:S,monthsPerRow:P,onYearChange:E,yearsOrder:T,yearsPerRow:O,slots:k,slotProps:M,loading:I,renderLoading:R,disableHighlightToday:_,readOnly:L,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:F,sx:U,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:W,timezone:G})=>$.jsx(Nut,{view:e,onViewChange:t,views:n.filter(Tv),focusedView:r&&Tv(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:x,onMonthChange:S,monthsPerRow:P,onYearChange:E,yearsOrder:T,yearsPerRow:O,slots:k,slotProps:M,loading:I,renderLoading:R,disableHighlightToday:_,readOnly:L,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:F,sx:U,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:W,timezone:G}),Uie=v.forwardRef(function(t,n){var c,u;const r=Eo(),o=gn(),i=Nie(t,"MuiDesktopDatePicker"),a=D({day:ol,month:ol,year:ol},i.viewRenderers),s=D({},i,{viewRenderers:a,format:Zx(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:D({openPickerIcon:Zoe,field:kie},i.slots),slotProps:D({},i.slotProps,{field:d=>{var f;return D({},Nf((f=i.slotProps)==null?void 0:f.field,d),Sb(i),{ref:n})},toolbar:D({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=lz({props:s,valueManager:ro,valueType:"date",getOpenDialogAriaText:bb({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:xb});return l()});Uie.propTypes={autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,dayOfWeekFormatter:B.func,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableHighlightToday:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,displayWeekNumber:B.bool,enableAccessibleFieldDOMStructure:B.any,fixedWeekNumber:B.number,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,loading:B.bool,localeText:B.object,maxDate:B.object,minDate:B.object,monthsPerRow:B.oneOf([3,4]),name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onMonthChange:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,onYearChange:B.func,open:B.bool,openTo:B.oneOf(["day","month","year"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,renderLoading:B.func,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableDate:B.func,shouldDisableMonth:B.func,shouldDisableYear:B.func,showDaysOutsideCurrentMonth:B.bool,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),timezone:B.string,value:B.object,view:B.oneOf(["day","month","year"]),viewRenderers:B.shape({day:B.func,month:B.func,year:B.func}),views:B.arrayOf(B.oneOf(["day","month","year"]).isRequired),yearsOrder:B.oneOf(["asc","desc"]),yearsPerRow:B.oneOf([3,4])};const Edt=ie(OZ)({[`& .${xw.container}`]:{outline:0},[`& .${xw.paper}`]:{outline:0,minWidth:Uk}}),Tdt=ie(kZ)({"&:first-of-type":{padding:0}});function Odt(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??Edt,s=(o==null?void 0:o.mobileTransition)??Hv;return $.jsx(a,D({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:$.jsx(Tdt,{children:t})}))}const Idt=["props","getOpenDialogAriaText"],cz=e=>{var G;let{props:t,getOpenDialogAriaText:n}=e,r=ze(e,Idt);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,name:m,label:g,inputRef:y,readOnly:b,disabled:x,localeText:S}=t,P=v.useRef(null),E=cr(),T=((G=i==null?void 0:i.toolbar)==null?void 0:G.hidden)??!1,{open:O,actions:k,layoutProps:M,renderCurrentView:I,fieldProps:R,contextValue:_}=Fie(D({},r,{props:t,fieldRef:P,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),L=o.field,j=Hn({elementType:L,externalSlotProps:i==null?void 0:i.field,additionalProps:D({},R,T&&{id:E},!(x||b)&&{onClick:k.onOpen,onKeyDown:Mat(k.onOpen)},{readOnly:b??!0,disabled:x,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:p,label:g,name:m},y?{inputRef:y}:{}),ownerState:t});j.inputProps=D({},j.inputProps,{"aria-label":n(R.value)});const N=D({textField:o.textField},j.slots),F=o.layout??Hie;let U=E;T&&(g?U=`${E}-label`:U=void 0);const z=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:D({"aria-labelledby":U},i==null?void 0:i.mobilePaper)}),V=Gr(P,j.unstableFieldRef);return{renderPicker:()=>$.jsxs(yie,{contextValue:_,localeText:S,children:[$.jsx(L,D({},j,{slots:N,slotProps:z,unstableFieldRef:V})),$.jsx(Odt,D({},k,{open:O,slots:o,slotProps:z,children:$.jsx(F,D({},M,z==null?void 0:z.layout,{slots:o,slotProps:z,children:I()}))}))]})}},Wie=v.forwardRef(function(t,n){var c,u;const r=Eo(),o=gn(),i=Nie(t,"MuiMobileDatePicker"),a=D({day:ol,month:ol,year:ol},i.viewRenderers),s=D({},i,{viewRenderers:a,format:Zx(o,i,!1),slots:D({field:kie},i.slots),slotProps:D({},i.slotProps,{field:d=>{var f;return D({},Nf((f=i.slotProps)==null?void 0:f.field,d),Sb(i),{ref:n})},toolbar:D({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=cz({props:s,valueManager:ro,valueType:"date",getOpenDialogAriaText:bb({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:xb});return l()});Wie.propTypes={autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,dayOfWeekFormatter:B.func,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableHighlightToday:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,displayWeekNumber:B.bool,enableAccessibleFieldDOMStructure:B.any,fixedWeekNumber:B.number,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,loading:B.bool,localeText:B.object,maxDate:B.object,minDate:B.object,monthsPerRow:B.oneOf([3,4]),name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onMonthChange:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,onYearChange:B.func,open:B.bool,openTo:B.oneOf(["day","month","year"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,renderLoading:B.func,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableDate:B.func,shouldDisableMonth:B.func,shouldDisableYear:B.func,showDaysOutsideCurrentMonth:B.bool,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),timezone:B.string,value:B.object,view:B.oneOf(["day","month","year"]),viewRenderers:B.shape({day:B.func,month:B.func,year:B.func}),views:B.arrayOf(B.oneOf(["day","month","year"]).isRequired),yearsOrder:B.oneOf(["asc","desc"]),yearsPerRow:B.oneOf([3,4])};const kdt=["desktopModeMediaQuery"],Gie=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=XB}=r,i=ze(r,kdt);return Df(o,{defaultMatches:!0})?$.jsx(Uie,D({ref:n},i)):$.jsx(Wie,D({ref:n},i))});function Mdt(e){return _n("MuiPickersToolbarText",e)}const RL=Ln("MuiPickersToolbarText",["root","selected"]),Adt=["className","selected","value"],$dt=e=>{const{classes:t,selected:n}=e;return bt({root:["root",n&&"selected"]},Mdt,t)},Rdt=ie(ut,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${RL.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${RL.selected}`]:{color:(e.vars||e).palette.text.primary}})),uz=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbarText"}),{className:o,value:i}=r,a=ze(r,Adt),s=$dt(r);return $.jsx(Rdt,D({ref:n,className:pe(s.root,o),component:"span"},a,{children:i}))}),Ddt=["align","className","selected","typographyClassName","value","variant","width"],_dt=e=>{const{classes:t}=e;return bt({root:["root"]},Lie,t)},Ldt=ie(yt,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ha=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,selected:a,typographyClassName:s,value:l,variant:c,width:u}=r,d=ze(r,Ddt),f=_dt(r);return $.jsx(Ldt,D({variant:"text",ref:n,className:pe(f.root,i)},u?{sx:{width:u}}:{},d,{children:$.jsx(uz,{align:o,className:s,variant:c,value:l,selected:a})}))});function Ndt(e){return _n("MuiTimePickerToolbar",e)}const Dw=Ln("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Fdt=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],jdt=e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return bt({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Ndt,n)},Bdt=ie(sz,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zdt=ie(uz,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Vdt=ie("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Dw.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Dw.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),Hdt=ie("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Dw.ampmLabel}`]:t.ampmLabel},{[`&.${Dw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Dw.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function Udt(e){const t=Jt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:s,onViewChange:l,views:c,disabled:u,readOnly:d,className:f}=t,p=ze(t,Fdt),m=gn(),g=Eo(),y=po(),b=!!(n&&!r&&c.includes("hours")),{meridiemMode:x,handleMeridiemChange:S}=Vk(o,n,a),P=k=>n?m.format(k,"hours12h"):m.format(k,"hours24h"),E=D({},t,{isRtl:y}),T=jdt(E),O=$.jsx(zdt,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:T.separator});return $.jsxs(Bdt,D({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:i,ownerState:E,className:pe(T.root,f)},p,{children:[$.jsxs(Vdt,{className:T.hourMinuteLabel,ownerState:E,children:[mg(c,"hours")&&$.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?P(o):"--"}),mg(c,["hours","minutes"])&&O,mg(c,"minutes")&&$.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),mg(c,["minutes","seconds"])&&O,mg(c,"seconds")&&$.jsx(Ha,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),b&&$.jsxs(Hdt,{className:T.ampmSelection,ownerState:E,children:[$.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:T.ampmLabel,value:Kl(m,"am"),onClick:d?void 0:()=>S("am"),disabled:u}),$.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:T.ampmLabel,value:Kl(m,"pm"),onClick:d?void 0:()=>S("pm"),disabled:u})]})]}))}function qie(e,t){var a;const n=gn(),r=Jt({props:e,name:t}),o=r.ampm??n.is12HourCycleInCurrentLocale(),i=v.useMemo(()=>{var s;return((s=r.localeText)==null?void 0:s.toolbarTitle)==null?r.localeText:D({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return D({},r,{ampm:o,localeText:i},VB({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:D({toolbar:Udt},r.slots),slotProps:D({},r.slotProps,{toolbar:D({ampm:o,ampmInClock:r.ampmInClock},(a=r.slotProps)==null?void 0:a.toolbar)})})}const py=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:x,slots:S,slotProps:P,readOnly:E,disabled:T,sx:O,autoFocus:k,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:I,timezone:R})=>$.jsx(Oat,{view:e,onViewChange:t,focusedView:n&&Pv(n)?n:null,onFocusedViewChange:r,views:o.filter(Pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:x,slots:S,slotProps:P,readOnly:E,disabled:T,sx:O,autoFocus:k,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:I,timezone:R}),Kie=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R})=>$.jsx(Lat,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeStep:M==null?void 0:M.minutes,skipDisabled:I,timezone:R}),fO=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R})=>$.jsx(Yat,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:x,slotProps:S,readOnly:P,disabled:E,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:M,skipDisabled:I,timezone:R}),Wdt=["views","format"],Yie=(e,t,n)=>{let{views:r,format:o}=t,i=ze(t,Wdt);if(o)return o;const a=[],s=[];if(r.forEach(u=>{Pv(u)?s.push(u):Tv(u)&&a.push(u)}),s.length===0)return Zx(e,D({views:a},i),!1);if(a.length===0)return sO(e,D({views:s},i));const l=sO(e,D({views:s},i));return`${Zx(e,D({views:a},i),!1)} ${l}`},Gdt=(e,t,n)=>n?t.filter(r=>!J0(r)||r==="hours"):e?[...t,"meridiem"]:t,qdt=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Xie({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=D({hours:1,minutes:5,seconds:5},n),a=qdt(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:Gdt(t,r,a)}}const Qie=v.forwardRef(function(t,n){var b,x,S,P;const r=Eo(),o=gn(),i=qie(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:a,views:s,timeSteps:l}=Xie(i),c=a?Kie:fO,u=D({hours:c,minutes:c,seconds:c,meridiem:c},i.viewRenderers),d=i.ampmInClock??!0,f=a?[]:["accept"],m=((b=u.hours)==null?void 0:b.name)===fO.name?s:s.filter(E=>E!=="meridiem"),g=D({},i,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:sO(o,i),views:a?["hours"]:m,slots:D({field:Mie,openPickerIcon:pit},i.slots),slotProps:D({},i.slotProps,{field:E=>{var T;return D({},Nf((T=i.slotProps)==null?void 0:T.field,E),Sb(i),{ref:n})},toolbar:D({hidden:!0,ampmInClock:d},(x=i.slotProps)==null?void 0:x.toolbar),actionBar:D({actions:f},(S=i.slotProps)==null?void 0:S.actionBar)})}),{renderPicker:y}=lz({props:g,valueManager:ro,valueType:"time",getOpenDialogAriaText:bb({utils:o,formatKey:"fullTime",contextTranslation:r.openTimePickerDialogue,propsTranslation:(P=g.localeText)==null?void 0:P.openTimePickerDialogue}),validator:o1});return y()});Qie.propTypes={ampm:B.bool,ampmInClock:B.bool,autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableIgnoringDatePartForTimeValidation:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,enableAccessibleFieldDOMStructure:B.any,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,localeText:B.object,maxTime:B.object,minTime:B.object,minutesStep:B.number,name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,open:B.bool,openTo:B.oneOf(["hours","meridiem","minutes","seconds"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableTime:B.func,skipDisabled:B.bool,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),thresholdToRenderTimeInASingleColumn:B.number,timeSteps:B.shape({hours:B.number,minutes:B.number,seconds:B.number}),timezone:B.string,value:B.object,view:B.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:B.shape({hours:B.func,meridiem:B.func,minutes:B.func,seconds:B.func}),views:B.arrayOf(B.oneOf(["hours","minutes","seconds"]).isRequired)};const Jie=v.forwardRef(function(t,n){var u,d;const r=Eo(),o=gn(),i=qie(t,"MuiMobileTimePicker"),a=D({hours:py,minutes:py,seconds:py},i.viewRenderers),s=i.ampmInClock??!1,l=D({},i,{ampmInClock:s,viewRenderers:a,format:sO(o,i),slots:D({field:Mie},i.slots),slotProps:D({},i.slotProps,{field:f=>{var p;return D({},Nf((p=i.slotProps)==null?void 0:p.field,f),Sb(i),{ref:n})},toolbar:D({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=cz({props:l,valueManager:ro,valueType:"time",getOpenDialogAriaText:bb({utils:o,formatKey:"fullTime",contextTranslation:r.openTimePickerDialogue,propsTranslation:(d=l.localeText)==null?void 0:d.openTimePickerDialogue}),validator:o1});return c()});Jie.propTypes={ampm:B.bool,ampmInClock:B.bool,autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableIgnoringDatePartForTimeValidation:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,enableAccessibleFieldDOMStructure:B.any,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,localeText:B.object,maxTime:B.object,minTime:B.object,minutesStep:B.number,name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,open:B.bool,openTo:B.oneOf(["hours","minutes","seconds"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableTime:B.func,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),timezone:B.string,value:B.object,view:B.oneOf(["hours","minutes","seconds"]),viewRenderers:B.shape({hours:B.func,minutes:B.func,seconds:B.func}),views:B.arrayOf(B.oneOf(["hours","minutes","seconds"]).isRequired)};const Kdt=["desktopModeMediaQuery"],Ydt=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=XB}=r,i=ze(r,Kdt);return Df(o,{defaultMatches:!0})?$.jsx(Qie,D({ref:n},i)):$.jsx(Jie,D({ref:n},i))});function Xdt(e){return _n("MuiDateTimePickerTabs",e)}Ln("MuiDateTimePickerTabs",["root"]);const Qdt=e=>Tv(e)?"date":"time",Jdt=e=>e==="date"?"day":"hours",Zdt=e=>{const{classes:t}=e;return bt({root:["root"]},Xdt,t)},eft=ie(wRe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${qP.indicator}`]:{bottom:"auto",top:0}}})),tft=function(t){const n=Jt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=$.jsx(hit,{}),onViewChange:o,timeIcon:i=$.jsx(mit,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=n,u=Eo(),d=Zdt(n),f=(p,m)=>{o(Jdt(m))};return s?null:$.jsxs(eft,{ownerState:n,variant:"fullWidth",value:Qdt(a),onChange:f,className:pe(l,d.root),sx:c,children:[$.jsx(FU,{value:"date","aria-label":u.dateTableLabel,icon:$.jsx(v.Fragment,{children:r})}),$.jsx(FU,{value:"time","aria-label":u.timeTableLabel,icon:$.jsx(v.Fragment,{children:i})})]})};function nft(e){return _n("MuiDateTimePickerToolbar",e)}const xR=Ln("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),rft=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],oft=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return bt({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},nft,t)},ift=ie(sz,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Fut.content} .${RL.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),aft=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),sft=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),lft=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),z9=ie(uz,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),cft=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${xR.ampmLabel}`]:t.ampmLabel},{[`&.${xR.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${xR.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function uft(e){const t=Jt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:i,view:a,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:f,readOnly:p,toolbarVariant:m="mobile",toolbarTitle:g,className:y}=t,b=ze(t,rft),x=po(),S=D({},t,{isRtl:x}),P=gn(),{meridiemMode:E,handleMeridiemChange:T}=Vk(o,n,i),O=!!(n&&!r),k=m==="desktop",M=Eo(),I=oft(S),R=g??M.dateTimePickerToolbarTitle,_=j=>n?P.format(j,"hours12h"):P.format(j,"hours24h"),L=v.useMemo(()=>o?c?P.formatByString(o,c):P.format(o,"shortDate"):u,[o,c,u,P]);return $.jsxs(ift,D({isLandscape:s,className:pe(I.root,y),toolbarTitle:R},b,{ownerState:S,children:[$.jsxs(aft,{className:I.dateContainer,ownerState:S,children:[d.includes("year")&&$.jsx(Ha,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:o?P.format(o,"year"):"–"}),d.includes("day")&&$.jsx(Ha,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:L})]}),$.jsxs(sft,{className:I.timeContainer,ownerState:S,children:[$.jsxs(lft,{className:I.timeDigitsContainer,ownerState:S,children:[d.includes("hours")&&$.jsxs(v.Fragment,{children:[$.jsx(Ha,{variant:k?"h5":"h3",width:k&&!s?Z0:void 0,onClick:()=>l("hours"),selected:a==="hours",value:o?_(o):"--"}),$.jsx(z9,{variant:k?"h5":"h3",value:":",className:I.separator,ownerState:S}),$.jsx(Ha,{variant:k?"h5":"h3",width:k&&!s?Z0:void 0,onClick:()=>l("minutes"),selected:a==="minutes"||!d.includes("minutes")&&a==="hours",value:o?P.format(o,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&$.jsxs(v.Fragment,{children:[$.jsx(z9,{variant:k?"h5":"h3",value:":",className:I.separator,ownerState:S}),$.jsx(Ha,{variant:k?"h5":"h3",width:k&&!s?Z0:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:o?P.format(o,"seconds"):"--"})]})]}),O&&!k&&$.jsxs(cft,{className:I.ampmSelection,ownerState:S,children:[$.jsx(Ha,{variant:"subtitle2",selected:E==="am",typographyClassName:I.ampmLabel,value:Kl(P,"am"),onClick:p?void 0:()=>T("am"),disabled:f}),$.jsx(Ha,{variant:"subtitle2",selected:E==="pm",typographyClassName:I.ampmLabel,value:Kl(P,"pm"),onClick:p?void 0:()=>T("pm"),disabled:f})]}),n&&k&&$.jsx(Ha,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:o&&E?Kl(P,E):"--",width:Z0})]})]}))}function Zie(e,t){var s;const n=gn(),r=im(),o=Jt({props:e,name:t}),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=v.useMemo(()=>{var l;return((l=o.localeText)==null?void 0:l.toolbarTitle)==null?o.localeText:D({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return D({},o,VB({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:i,localeText:a,orientation:o.orientation??"portrait",disableIgnoringDatePartForTimeValidation:o.disableIgnoringDatePartForTimeValidation??!!(o.minDateTime||o.maxDateTime||o.disablePast||o.disableFuture),disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ki(n,o.minDateTime??o.minDate,r.minDate),maxDate:ki(n,o.maxDateTime??o.maxDate,r.maxDate),minTime:o.minDateTime??o.minTime,maxTime:o.maxDateTime??o.maxTime,slots:D({toolbar:uft,tabs:tft},o.slots),slotProps:D({},o.slotProps,{toolbar:D({ampm:i},(s=o.slotProps)==null?void 0:s.toolbar)})})}const dft=v.forwardRef(function(t,n){var g;const r=po(),{toolbar:o,tabs:i,content:a,actionBar:s,shortcuts:l}=Bie(t),{sx:c,className:u,isLandscape:d,classes:f}=t,p=s&&(((g=s.props.actions)==null?void 0:g.length)??0)>0,m=D({},t,{isRtl:r});return $.jsxs(zie,{ref:n,className:pe(Vl.root,f==null?void 0:f.root,u),sx:[{[`& .${Vl.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Vl.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:m,children:[d?l:o,d?o:l,$.jsxs(Vie,{className:pe(Vl.contentWrapper,f==null?void 0:f.contentWrapper),sx:{display:"grid"},children:[a,i,p&&$.jsx(as,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})}),fft=["openTo","focusedView","timeViewsCount"],pft=function(t,n,r){var u,d;const{openTo:o,focusedView:i,timeViewsCount:a}=r,s=ze(r,fft),l=D({},s,{focusedView:null,sx:[{[`&.${M9.root}`]:{borderBottom:0},[`&.${M9.root}, .${jat.root}, &.${kat.root}`]:{maxHeight:Wk}}]}),c=J0(n);return $.jsxs(v.Fragment,{children:[(u=t[c?"day":n])==null?void 0:u.call(t,D({},r,{view:c?"day":n,focusedView:i&&Tv(i)?i:null,views:r.views.filter(Tv),sx:[{gridColumn:1},...l.sx]})),a>0&&$.jsxs(v.Fragment,{children:[$.jsx(as,{orientation:"vertical",sx:{gridColumn:2}}),(d=t[c?n:"hours"])==null?void 0:d.call(t,D({},l,{view:c?n:"hours",focusedView:i&&J0(i)?i:null,openTo:J0(o)?o:"hours",views:r.views.filter(J0),sx:[{gridColumn:3},...l.sx]}))]})]})},eae=v.forwardRef(function(t,n){var x,S,P,E;const r=Eo(),o=gn(),i=Zie(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:a,thresholdToRenderTimeInASingleColumn:s,views:l,timeSteps:c}=Xie(i),u=a?Kie:fO,d=D({day:ol,month:ol,year:ol,hours:u,minutes:u,seconds:u,meridiem:u},i.viewRenderers),f=i.ampmInClock??!0,m=((x=d.hours)==null?void 0:x.name)===fO.name?l:l.filter(T=>T!=="meridiem"),g=a?[]:["accept"],y=D({},i,{viewRenderers:d,format:Yie(o,i),views:m,yearsPerRow:i.yearsPerRow??4,ampmInClock:f,timeSteps:c,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:a,slots:D({field:Aie,layout:dft,openPickerIcon:Zoe},i.slots),slotProps:D({},i.slotProps,{field:T=>{var O;return D({},Nf((O=i.slotProps)==null?void 0:O.field,T),Sb(i),{ref:n})},toolbar:D({hidden:!0,ampmInClock:f,toolbarVariant:"desktop"},(S=i.slotProps)==null?void 0:S.toolbar),tabs:D({hidden:!0},(P=i.slotProps)==null?void 0:P.tabs),actionBar:T=>{var O;return D({actions:g},Nf((O=i.slotProps)==null?void 0:O.actionBar,T))}})}),{renderPicker:b}=lz({props:y,valueManager:ro,valueType:"date-time",getOpenDialogAriaText:bb({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(E=y.localeText)==null?void 0:E.openDatePickerDialogue}),validator:Kk,rendererInterceptor:pft});return b()});eae.propTypes={ampm:B.bool,ampmInClock:B.bool,autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,dayOfWeekFormatter:B.func,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableHighlightToday:B.bool,disableIgnoringDatePartForTimeValidation:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,displayWeekNumber:B.bool,enableAccessibleFieldDOMStructure:B.any,fixedWeekNumber:B.number,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,loading:B.bool,localeText:B.object,maxDate:B.object,maxDateTime:B.object,maxTime:B.object,minDate:B.object,minDateTime:B.object,minTime:B.object,minutesStep:B.number,monthsPerRow:B.oneOf([3,4]),name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onMonthChange:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,onYearChange:B.func,open:B.bool,openTo:B.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,renderLoading:B.func,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableDate:B.func,shouldDisableMonth:B.func,shouldDisableTime:B.func,shouldDisableYear:B.func,showDaysOutsideCurrentMonth:B.bool,skipDisabled:B.bool,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),thresholdToRenderTimeInASingleColumn:B.number,timeSteps:B.shape({hours:B.number,minutes:B.number,seconds:B.number}),timezone:B.string,value:B.object,view:B.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:B.shape({day:B.func,hours:B.func,meridiem:B.func,minutes:B.func,month:B.func,seconds:B.func,year:B.func}),views:B.arrayOf(B.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:B.oneOf(["asc","desc"]),yearsPerRow:B.oneOf([3,4])};const tae=v.forwardRef(function(t,n){var u,d,f;const r=Eo(),o=gn(),i=Zie(t,"MuiMobileDateTimePicker"),a=D({day:ol,month:ol,year:ol,hours:py,minutes:py,seconds:py},i.viewRenderers),s=i.ampmInClock??!1,l=D({},i,{viewRenderers:a,format:Yie(o,i),ampmInClock:s,slots:D({field:Aie},i.slots),slotProps:D({},i.slotProps,{field:p=>{var m;return D({},Nf((m=i.slotProps)==null?void 0:m.field,p),Sb(i),{ref:n})},toolbar:D({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar),tabs:D({hidden:!1},(d=i.slotProps)==null?void 0:d.tabs)})}),{renderPicker:c}=cz({props:l,valueManager:ro,valueType:"date-time",getOpenDialogAriaText:bb({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=l.localeText)==null?void 0:f.openDatePickerDialogue}),validator:Kk});return c()});tae.propTypes={ampm:B.bool,ampmInClock:B.bool,autoFocus:B.bool,className:B.string,closeOnSelect:B.bool,dayOfWeekFormatter:B.func,defaultValue:B.object,disabled:B.bool,disableFuture:B.bool,disableHighlightToday:B.bool,disableIgnoringDatePartForTimeValidation:B.bool,disableOpenPicker:B.bool,disablePast:B.bool,displayWeekNumber:B.bool,enableAccessibleFieldDOMStructure:B.any,fixedWeekNumber:B.number,format:B.string,formatDensity:B.oneOf(["dense","spacious"]),inputRef:yb,label:B.node,loading:B.bool,localeText:B.object,maxDate:B.object,maxDateTime:B.object,maxTime:B.object,minDate:B.object,minDateTime:B.object,minTime:B.object,minutesStep:B.number,monthsPerRow:B.oneOf([3,4]),name:B.string,onAccept:B.func,onChange:B.func,onClose:B.func,onError:B.func,onMonthChange:B.func,onOpen:B.func,onSelectedSectionsChange:B.func,onViewChange:B.func,onYearChange:B.func,open:B.bool,openTo:B.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:B.oneOf(["landscape","portrait"]),readOnly:B.bool,reduceAnimations:B.bool,referenceDate:B.object,renderLoading:B.func,selectedSections:B.oneOfType([B.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),B.number]),shouldDisableDate:B.func,shouldDisableMonth:B.func,shouldDisableTime:B.func,shouldDisableYear:B.func,showDaysOutsideCurrentMonth:B.bool,slotProps:B.object,slots:B.object,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),timezone:B.string,value:B.object,view:B.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:B.shape({day:B.func,hours:B.func,minutes:B.func,month:B.func,seconds:B.func,year:B.func}),views:B.arrayOf(B.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:B.oneOf(["asc","desc"]),yearsPerRow:B.oneOf([3,4])};const hft=["desktopModeMediaQuery"],mft=v.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=XB}=r,i=ze(r,hft);return Df(o,{defaultMatches:!0})?$.jsx(eae,D({ref:n},i)):$.jsx(tae,D({ref:n},i))});class sm extends Error{}class gft extends sm{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class yft extends sm{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class vft extends sm{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Vg extends sm{}class nae extends sm{constructor(t){super(`Invalid unit ${t}`)}}class Si extends sm{}class Rd extends sm{constructor(){super("Zone is an abstract class")}}const mt="numeric",cc="short",ts="long",pO={year:mt,month:mt,day:mt},rae={year:mt,month:cc,day:mt},bft={year:mt,month:cc,day:mt,weekday:cc},oae={year:mt,month:ts,day:mt},iae={year:mt,month:ts,day:mt,weekday:ts},aae={hour:mt,minute:mt},sae={hour:mt,minute:mt,second:mt},lae={hour:mt,minute:mt,second:mt,timeZoneName:cc},cae={hour:mt,minute:mt,second:mt,timeZoneName:ts},uae={hour:mt,minute:mt,hourCycle:"h23"},dae={hour:mt,minute:mt,second:mt,hourCycle:"h23"},fae={hour:mt,minute:mt,second:mt,hourCycle:"h23",timeZoneName:cc},pae={hour:mt,minute:mt,second:mt,hourCycle:"h23",timeZoneName:ts},hae={year:mt,month:mt,day:mt,hour:mt,minute:mt},mae={year:mt,month:mt,day:mt,hour:mt,minute:mt,second:mt},gae={year:mt,month:cc,day:mt,hour:mt,minute:mt},yae={year:mt,month:cc,day:mt,hour:mt,minute:mt,second:mt},wft={year:mt,month:cc,day:mt,weekday:cc,hour:mt,minute:mt},vae={year:mt,month:ts,day:mt,hour:mt,minute:mt,timeZoneName:cc},bae={year:mt,month:ts,day:mt,hour:mt,minute:mt,second:mt,timeZoneName:cc},wae={year:mt,month:ts,day:mt,weekday:ts,hour:mt,minute:mt,timeZoneName:ts},xae={year:mt,month:ts,day:mt,weekday:ts,hour:mt,minute:mt,second:mt,timeZoneName:ts};class s1{get type(){throw new Rd}get name(){throw new Rd}get ianaName(){return this.name}get isUniversal(){throw new Rd}offsetName(t,n){throw new Rd}formatOffset(t,n){throw new Rd}offset(t){throw new Rd}equals(t){throw new Rd}get isValid(){throw new Rd}}let SR=null;class rM extends s1{static get instance(){return SR===null&&(SR=new rM),SR}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Mae(t,n,r)}formatOffset(t,n){return _w(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let tE={};function xft(e){return tE[e]||(tE[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),tE[e]}const Sft={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Cft(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}function Pft(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const{type:i,value:a}=n[o],s=Sft[i];i==="era"?r[s]=a:qt(s)||(r[s]=parseInt(a,10))}return r}let dP={};class cd extends s1{static create(t){return dP[t]||(dP[t]=new cd(t)),dP[t]}static resetCache(){dP={},tE={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=cd.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Mae(t,n,r,this.name)}formatOffset(t,n){return _w(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=xft(this.name);let[o,i,a,s,l,c,u]=r.formatToParts?Pft(r,n):Cft(r,n);s==="BC"&&(o=-Math.abs(o)+1);const f=iM({year:o,month:i,day:a,hour:l===24?0:l,minute:c,second:u,millisecond:0});let p=+n;const m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let V9={};function Eft(e,t={}){const n=JSON.stringify([e,t]);let r=V9[n];return r||(r=new Intl.ListFormat(e,t),V9[n]=r),r}let DL={};function _L(e,t={}){const n=JSON.stringify([e,t]);let r=DL[n];return r||(r=new Intl.DateTimeFormat(e,t),DL[n]=r),r}let LL={};function Tft(e,t={}){const n=JSON.stringify([e,t]);let r=LL[n];return r||(r=new Intl.NumberFormat(e,t),LL[n]=r),r}let NL={};function Oft(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=NL[o];return i||(i=new Intl.RelativeTimeFormat(e,t),NL[o]=i),i}let ew=null;function Ift(){return ew||(ew=new Intl.DateTimeFormat().resolvedOptions().locale,ew)}let H9={};function kft(e){let t=H9[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,H9[e]=t}return t}function Mft(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,o;try{r=_L(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);r=_L(l).resolvedOptions(),o=l}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function Aft(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function $ft(e){const t=[];for(let n=1;n<=12;n++){const r=kt.utc(2009,n,1);t.push(e(r))}return t}function Rft(e){const t=[];for(let n=1;n<=7;n++){const r=kt.utc(2016,11,13+n);t.push(e(r))}return t}function fP(e,t,n,r){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):r(t)}function Dft(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class _ft{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Tft(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):mz(t,3);return yo(n,this.padTo)}}}class Lft{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&cd.create(s).valid?(o=s,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=_L(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Nft{constructor(t,n,r){this.opts={style:"long",...r},!n&&Iae()&&(this.rtf=Oft(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):apt(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const Fft={firstDay:1,minimalDays:4,weekend:[6,7]};class Zn{static fromOpts(t){return Zn.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,o,i=!1){const a=t||zr.defaultLocale,s=a||(i?"en-US":Ift()),l=n||zr.defaultNumberingSystem,c=r||zr.defaultOutputCalendar,u=FL(o)||zr.defaultWeekSettings;return new Zn(s,l,c,u,a)}static resetCache(){ew=null,DL={},LL={},NL={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return Zn.create(t,n,r,o)}constructor(t,n,r,o,i){const[a,s,l]=Mft(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=Aft(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Dft(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Zn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,FL(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return fP(this,t,Rae,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=$ft(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1){return fP(this,t,Lae,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Rft(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return fP(this,void 0,()=>Nae,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[kt.utc(2016,11,13,9),kt.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return fP(this,t,Fae,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[kt.utc(-40,1,1),kt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const o=this.dtFormatter(t,n),i=o.formatToParts(),a=i.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new _ft(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Lft(t,this.intl,n)}relFormatter(t={}){return new Nft(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Eft(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:kae()?kft(this.locale):Fft}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let CR=null;class Gi extends s1{static get utcInstance(){return CR===null&&(CR=new Gi(0)),CR}static instance(t){return t===0?Gi.utcInstance:new Gi(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Gi(aM(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_w(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_w(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return _w(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class jft extends s1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Yd(e,t){if(qt(e)||e===null)return t;if(e instanceof s1)return e;if(Wft(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?rM.instance:n==="utc"||n==="gmt"?Gi.utcInstance:Gi.parseSpecifier(n)||cd.create(e)}else return Of(e)?Gi.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new jft(e)}const dz={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},U9={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Bft=dz.hanidec.replace(/[\[|\]]/g,"").split("");function zft(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(dz.hanidec)!==-1)t+=Bft.indexOf(e[n]);else for(const o in U9){const[i,a]=U9[o];r>=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}let gg={};function Vft(){gg={}}function Rl({numberingSystem:e},t=""){const n=e||"latn";return gg[n]||(gg[n]={}),gg[n][t]||(gg[n][t]=new RegExp(`${dz[n]}${t}`)),gg[n][t]}let W9=()=>Date.now(),G9="system",q9=null,K9=null,Y9=null,X9=60,Q9,J9=null;class zr{static get now(){return W9}static set now(t){W9=t}static set defaultZone(t){G9=t}static get defaultZone(){return Yd(G9,rM.instance)}static get defaultLocale(){return q9}static set defaultLocale(t){q9=t}static get defaultNumberingSystem(){return K9}static set defaultNumberingSystem(t){K9=t}static get defaultOutputCalendar(){return Y9}static set defaultOutputCalendar(t){Y9=t}static get defaultWeekSettings(){return J9}static set defaultWeekSettings(t){J9=FL(t)}static get twoDigitCutoffYear(){return X9}static set twoDigitCutoffYear(t){X9=t%100}static get throwOnInvalid(){return Q9}static set throwOnInvalid(t){Q9=t}static resetCaches(){Zn.resetCache(),cd.resetCache(),kt.resetCache(),Vft()}}class Yl{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Sae=[0,31,59,90,120,151,181,212,243,273,304,334],Cae=[0,31,60,91,121,152,182,213,244,274,305,335];function Ks(e,t){return new Yl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function fz(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function Pae(e,t,n){return n+(l1(e)?Cae:Sae)[t-1]}function Eae(e,t){const n=l1(e)?Cae:Sae,r=n.findIndex(i=>i<t),o=t-n[r];return{month:r+1,day:o}}function pz(e,t){return(e-t+7)%7+1}function hO(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=Pae(r,o,i),s=pz(fz(r,o,i),n);let l=Math.floor((a-s+14-t)/7),c;return l<1?(c=r-1,l=eS(c,t,n)):l>eS(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...sM(e)}}function Z9(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=pz(fz(r,1,t),n),s=hy(r);let l=o*7+i-a-7+t,c;l<1?(c=r-1,l+=hy(c)):l>s?(c=r+1,l-=hy(r)):c=r;const{month:u,day:d}=Eae(c,l);return{year:c,month:u,day:d,...sM(e)}}function PR(e){const{year:t,month:n,day:r}=e,o=Pae(t,n,r);return{year:t,ordinal:o,...sM(e)}}function e7(e){const{year:t,ordinal:n}=e,{month:r,day:o}=Eae(t,n);return{year:t,month:r,day:o,...sM(e)}}function t7(e,t){if(!qt(e.localWeekday)||!qt(e.localWeekNumber)||!qt(e.localWeekYear)){if(!qt(e.weekday)||!qt(e.weekNumber)||!qt(e.weekYear))throw new Vg("Cannot mix locale-based week fields with ISO-based week fields");return qt(e.localWeekday)||(e.weekday=e.localWeekday),qt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),qt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Hft(e,t=4,n=1){const r=oM(e.weekYear),o=Ys(e.weekNumber,1,eS(e.weekYear,t,n)),i=Ys(e.weekday,1,7);return r?o?i?!1:Ks("weekday",e.weekday):Ks("week",e.weekNumber):Ks("weekYear",e.weekYear)}function Uft(e){const t=oM(e.year),n=Ys(e.ordinal,1,hy(e.year));return t?n?!1:Ks("ordinal",e.ordinal):Ks("year",e.year)}function Tae(e){const t=oM(e.year),n=Ys(e.month,1,12),r=Ys(e.day,1,mO(e.year,e.month));return t?n?r?!1:Ks("day",e.day):Ks("month",e.month):Ks("year",e.year)}function Oae(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=Ys(t,0,23)||t===24&&n===0&&r===0&&o===0,a=Ys(n,0,59),s=Ys(r,0,59),l=Ys(o,0,999);return i?a?s?l?!1:Ks("millisecond",o):Ks("second",r):Ks("minute",n):Ks("hour",t)}function qt(e){return typeof e>"u"}function Of(e){return typeof e=="number"}function oM(e){return typeof e=="number"&&e%1===0}function Wft(e){return typeof e=="string"}function Gft(e){return Object.prototype.toString.call(e)==="[object Date]"}function Iae(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function kae(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function qft(e){return Array.isArray(e)?e:[e]}function n7(e,t,n){if(e.length!==0)return e.reduce((r,o)=>{const i=[t(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Kft(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Ov(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function FL(e){if(e==null)return null;if(typeof e!="object")throw new Si("Week settings must be an object");if(!Ys(e.firstDay,1,7)||!Ys(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ys(t,1,7)))throw new Si("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ys(e,t,n){return oM(e)&&e>=t&&e<=n}function Yft(e,t){return e-t*Math.floor(e/t)}function yo(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Hd(e){if(!(qt(e)||e===null||e===""))return parseInt(e,10)}function kp(e){if(!(qt(e)||e===null||e===""))return parseFloat(e)}function hz(e){if(!(qt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function mz(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function l1(e){return e%4===0&&(e%100!==0||e%400===0)}function hy(e){return l1(e)?366:365}function mO(e,t){const n=Yft(t-1,12)+1,r=e+(t-n)/12;return n===2?l1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function iM(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function r7(e,t,n){return-pz(fz(e,1,t),n)+t-1}function eS(e,t=4,n=1){const r=r7(e,t,n),o=r7(e+1,t,n);return(hy(e)-r+o)/7}function jL(e){return e>99?e:e>zr.twoDigitCutoffYear?1900+e:2e3+e}function Mae(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function aM(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Aae(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Si(`Invalid unit value ${e}`);return t}function gO(e,t){const n={};for(const r in e)if(Ov(e,r)){const o=e[r];if(o==null)continue;n[t(r)]=Aae(o)}return n}function _w(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${yo(n,2)}:${yo(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${yo(n,2)}${yo(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function sM(e){return Kft(e,["hour","minute","second","millisecond"])}const Xft=["January","February","March","April","May","June","July","August","September","October","November","December"],$ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qft=["J","F","M","A","M","J","J","A","S","O","N","D"];function Rae(e){switch(e){case"narrow":return[...Qft];case"short":return[...$ae];case"long":return[...Xft];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Dae=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_ae=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Jft=["M","T","W","T","F","S","S"];function Lae(e){switch(e){case"narrow":return[...Jft];case"short":return[..._ae];case"long":return[...Dae];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Nae=["AM","PM"],Zft=["Before Christ","Anno Domini"],ept=["BC","AD"],tpt=["B","A"];function Fae(e){switch(e){case"narrow":return[...tpt];case"short":return[...ept];case"long":return[...Zft];default:return null}}function npt(e){return Nae[e.hour<12?0:1]}function rpt(e,t){return Lae(t)[e.weekday-1]}function opt(e,t){return Rae(t)[e.month-1]}function ipt(e,t){return Fae(t)[e.year<0?0:1]}function apt(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${o[e][0]}`;case-1:return d?"yesterday":`last ${o[e][0]}`;case 0:return d?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function o7(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const spt={D:pO,DD:rae,DDD:oae,DDDD:iae,t:aae,tt:sae,ttt:lae,tttt:cae,T:uae,TT:dae,TTT:fae,TTTT:pae,f:hae,ff:gae,fff:vae,ffff:wae,F:mae,FF:yae,FFF:bae,FFFF:xae};let ql=class tw{static create(t,n={}){return new tw(t,n)}static parseFormat(t){let n=null,r="",o=!1;const i=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||s===n?r+=s:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return spt[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return yo(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,m)=>this.loc.extract(t,p,m),a=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",s=()=>r?npt(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,m)=>r?opt(t,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),c=(p,m)=>r?rpt(t,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{const m=tw.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(t,m):p},d=p=>r?ipt(t,p):i({era:p},"era"),f=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(p)}};return o7(tw.parseFormat(n),f)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=r(c);return u?this.num(l.get(u),c.length):c},i=tw.parseFormat(n),a=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...a.map(r).filter(l=>l));return o7(i,o(s))}};const jae=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Cb(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function Pb(...e){return t=>e.reduce(([n,r,o],i)=>{const[a,s,l]=i(t,o);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function Eb(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const o=n.exec(e);if(o)return r(o)}return[null,null]}function Bae(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=Hd(t[n+o]);return[r,null,n+o]}}const zae=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,lpt=`(?:${zae.source}?(?:\\[(${jae.source})\\])?)?`,gz=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vae=RegExp(`${gz.source}${lpt}`),yz=RegExp(`(?:T${Vae.source})?`),cpt=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,upt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,dpt=/(\d{4})-?(\d{3})/,fpt=Bae("weekYear","weekNumber","weekDay"),ppt=Bae("year","ordinal"),hpt=/(\d{4})-(\d\d)-(\d\d)/,Hae=RegExp(`${gz.source} ?(?:${zae.source}|(${jae.source}))?`),mpt=RegExp(`(?: ${Hae.source})?`);function my(e,t,n){const r=e[t];return qt(r)?n:Hd(r)}function gpt(e,t){return[{year:my(e,t),month:my(e,t+1,1),day:my(e,t+2,1)},null,t+3]}function Tb(e,t){return[{hours:my(e,t,0),minutes:my(e,t+1,0),seconds:my(e,t+2,0),milliseconds:hz(e[t+3])},null,t+4]}function c1(e,t){const n=!e[t]&&!e[t+1],r=aM(e[t+1],e[t+2]),o=n?null:Gi.instance(r);return[{},o,t+3]}function u1(e,t){const n=e[t]?cd.create(e[t]):null;return[{},n,t+1]}const ypt=RegExp(`^T?${gz.source}$`),vpt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function bpt(e){const[t,n,r,o,i,a,s,l,c]=e,u=t[0]==="-",d=l&&l[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&u)?-p:p;return[{years:f(kp(n)),months:f(kp(r)),weeks:f(kp(o)),days:f(kp(i)),hours:f(kp(a)),minutes:f(kp(s)),seconds:f(kp(l),l==="-0"),milliseconds:f(hz(c),d)}]}const wpt={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function vz(e,t,n,r,o,i,a){const s={year:t.length===2?jL(Hd(t)):Hd(t),month:$ae.indexOf(n)+1,day:Hd(r),hour:Hd(o),minute:Hd(i)};return a&&(s.second=Hd(a)),e&&(s.weekday=e.length>3?Dae.indexOf(e)+1:_ae.indexOf(e)+1),s}const xpt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Spt(e){const[,t,n,r,o,i,a,s,l,c,u,d]=e,f=vz(t,o,r,n,i,a,s);let p;return l?p=wpt[l]:c?p=0:p=aM(u,d),[f,new Gi(p)]}function Cpt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ppt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ept=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Tpt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function i7(e){const[,t,n,r,o,i,a,s]=e;return[vz(t,o,r,n,i,a,s),Gi.utcInstance]}function Opt(e){const[,t,n,r,o,i,a,s]=e;return[vz(t,s,n,r,o,i,a),Gi.utcInstance]}const Ipt=Cb(cpt,yz),kpt=Cb(upt,yz),Mpt=Cb(dpt,yz),Apt=Cb(Vae),Uae=Pb(gpt,Tb,c1,u1),$pt=Pb(fpt,Tb,c1,u1),Rpt=Pb(ppt,Tb,c1,u1),Dpt=Pb(Tb,c1,u1);function _pt(e){return Eb(e,[Ipt,Uae],[kpt,$pt],[Mpt,Rpt],[Apt,Dpt])}function Lpt(e){return Eb(Cpt(e),[xpt,Spt])}function Npt(e){return Eb(e,[Ppt,i7],[Ept,i7],[Tpt,Opt])}function Fpt(e){return Eb(e,[vpt,bpt])}const jpt=Pb(Tb);function Bpt(e){return Eb(e,[ypt,jpt])}const zpt=Cb(hpt,mpt),Vpt=Cb(Hae),Hpt=Pb(Tb,c1,u1);function Upt(e){return Eb(e,[zpt,Uae],[Vpt,Hpt])}const a7="Invalid Duration",Wae={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Wpt={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Wae},Ms=146097/400,eg=146097/4800,Gpt={years:{quarters:4,months:12,weeks:Ms/7,days:Ms,hours:Ms*24,minutes:Ms*24*60,seconds:Ms*24*60*60,milliseconds:Ms*24*60*60*1e3},quarters:{months:3,weeks:Ms/28,days:Ms/4,hours:Ms*24/4,minutes:Ms*24*60/4,seconds:Ms*24*60*60/4,milliseconds:Ms*24*60*60*1e3/4},months:{weeks:eg/7,days:eg,hours:eg*24,minutes:eg*24*60,seconds:eg*24*60*60,milliseconds:eg*24*60*60*1e3},...Wae},nh=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qpt=nh.slice(0).reverse();function Dd(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Nn(r)}function Gae(e,t){let n=t.milliseconds??0;for(const r of qpt.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function s7(e,t){const n=Gae(e,t)<0?-1:1;nh.reduceRight((r,o)=>{if(qt(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),nh.reduce((r,o)=>{if(qt(t[o]))return r;if(r){const i=t[r]%1;t[r]-=i,t[o]+=i*e[r][o]}return o},null)}function Kpt(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Nn{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Gpt:Wpt;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||Zn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Nn.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Si(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Nn({values:gO(t,Nn.normalizeUnit),loc:Zn.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Of(t))return Nn.fromMillis(t);if(Nn.isDuration(t))return t;if(typeof t=="object")return Nn.fromObject(t);throw new Si(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Fpt(t);return r?Nn.fromObject(r,n):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Bpt(t);return r?Nn.fromObject(r,n):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Si("need to specify a reason the Duration is invalid");const r=t instanceof Yl?t:new Yl(t,n);if(zr.throwOnInvalid)throw new vft(r);return new Nn({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new nae(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?ql.create(this.loc,r).formatDurationFromString(this,t):a7}toHuman(t={}){if(!this.isValid)return a7;const n=nh.map(r=>{const o=this.values[r];return qt(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=mz(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},kt.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Gae(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Nn.fromDurationLike(t),r={};for(const o of nh)(Ov(n.values,o)||Ov(this.values,o))&&(r[o]=n.get(o)+this.get(o));return Dd(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Nn.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Aae(t(this.values[r],r));return Dd(this,{values:n},!0)}get(t){return this[Nn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...gO(t,Nn.normalizeUnit)};return Dd(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:r};return Dd(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return s7(this.matrix,t),Dd(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Kpt(this.normalize().shiftToAll().toObject());return Dd(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Nn.normalizeUnit(a));const n={},r={},o=this.toObject();let i;for(const a of nh)if(t.indexOf(a)>=0){i=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;Of(o[a])&&(s+=o[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else Of(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return s7(this.matrix,n),Dd(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Dd(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of nh)if(!n(this.values[r],t.values[r]))return!1;return!0}}const tg="Invalid Interval";function Ypt(e,t){return!e||!e.isValid?eo.invalid("missing or invalid start"):!t||!t.isValid?eo.invalid("missing or invalid end"):t<e?eo.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class eo{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Si("need to specify a reason the Interval is invalid");const r=t instanceof Yl?t:new Yl(t,n);if(zr.throwOnInvalid)throw new yft(r);return new eo({invalid:r})}static fromDateTimes(t,n){const r=$0(t),o=$0(n),i=Ypt(r,o);return i??new eo({start:r,end:o})}static after(t,n){const r=Nn.fromDurationLike(n),o=$0(t);return eo.fromDateTimes(o,o.plus(r))}static before(t,n){const r=Nn.fromDurationLike(n),o=$0(t);return eo.fromDateTimes(o.minus(r),o)}static fromISO(t,n){const[r,o]=(t||"").split("/",2);if(r&&o){let i,a;try{i=kt.fromISO(r,n),a=i.isValid}catch{a=!1}let s,l;try{s=kt.fromISO(o,n),l=s.isValid}catch{l=!1}if(a&&l)return eo.fromDateTimes(i,s);if(a){const c=Nn.fromISO(o,n);if(c.isValid)return eo.after(i,c)}else if(l){const c=Nn.fromISO(r,n);if(c.isValid)return eo.before(s,c)}}return eo.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let o;return n!=null&&n.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(t,n),Math.floor(o.diff(r,t).get(t))+(o.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?eo.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map($0).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:o}=this,i=0;for(;o<this.e;){const a=n[i]||this.e,s=+a>+this.e?this.e:a;r.push(eo.fromDateTimes(o,s)),o=s,i+=1}return r}splitBy(t){const n=Nn.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*o));i=+s>+this.e?this.e:s,a.push(eo.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:eo.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return eo.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const o=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(eo.fromDateTimes(n,l.time)),n=null);return eo.merge(o)}difference(...t){return eo.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:tg}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=pO,n={}){return this.isValid?ql.create(this.s.loc.clone(n),t).formatInterval(this):tg}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:tg}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:tg}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:tg}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:tg}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Nn.invalid(this.invalidReason)}mapEndpoints(t){return eo.fromDateTimes(t(this.s),t(this.e))}}class nw{static hasDST(t=zr.defaultZone){const n=kt.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return cd.isValidZone(t)}static normalizeZone(t){return Yd(t,zr.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Zn.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Zn.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Zn.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||Zn.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||Zn.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||Zn.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||Zn.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Zn.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Zn.create(n,null,"gregory").eras(t)}static features(){return{relative:Iae(),localeWeek:kae()}}}function l7(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Nn.fromMillis(r).as("days"))}function Xpt(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=l7(l,c);return(u-u%7)/7}],["days",l7]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,e=i.plus(o),e>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}function Qpt(e,t,n,r){let[o,i,a,s]=Xpt(e,t,n);const l=t-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=Nn.fromObject(i,r);return c.length>0?Nn.fromMillis(l,r).shiftTo(...c).plus(u):u}const Jpt="missing Intl.DateTimeFormat.formatToParts support";function Kn(e,t=n=>n){return{regex:e,deser:([n])=>t(zft(n))}}const Zpt=" ",qae=`[ ${Zpt}]`,Kae=new RegExp(qae,"g");function eht(e){return e.replace(/\./g,"\\.?").replace(Kae,qae)}function c7(e){return e.replace(/\./g,"").replace(Kae," ").toLowerCase()}function Dl(e,t){return e===null?null:{regex:RegExp(e.map(eht).join("|")),deser:([n])=>e.findIndex(r=>c7(n)===c7(r))+t}}function u7(e,t){return{regex:e,deser:([,n,r])=>aM(n,r),groups:t}}function pP(e){return{regex:e,deser:([t])=>t}}function tht(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nht(e,t){const n=Rl(t),r=Rl(t,"{2}"),o=Rl(t,"{3}"),i=Rl(t,"{4}"),a=Rl(t,"{6}"),s=Rl(t,"{1,2}"),l=Rl(t,"{1,3}"),c=Rl(t,"{1,6}"),u=Rl(t,"{1,9}"),d=Rl(t,"{2,4}"),f=Rl(t,"{4,6}"),p=y=>({regex:RegExp(tht(y.val)),deser:([b])=>b,literal:!0}),g=(y=>{if(e.literal)return p(y);switch(y.val){case"G":return Dl(t.eras("short"),0);case"GG":return Dl(t.eras("long"),0);case"y":return Kn(c);case"yy":return Kn(d,jL);case"yyyy":return Kn(i);case"yyyyy":return Kn(f);case"yyyyyy":return Kn(a);case"M":return Kn(s);case"MM":return Kn(r);case"MMM":return Dl(t.months("short",!0),1);case"MMMM":return Dl(t.months("long",!0),1);case"L":return Kn(s);case"LL":return Kn(r);case"LLL":return Dl(t.months("short",!1),1);case"LLLL":return Dl(t.months("long",!1),1);case"d":return Kn(s);case"dd":return Kn(r);case"o":return Kn(l);case"ooo":return Kn(o);case"HH":return Kn(r);case"H":return Kn(s);case"hh":return Kn(r);case"h":return Kn(s);case"mm":return Kn(r);case"m":return Kn(s);case"q":return Kn(s);case"qq":return Kn(r);case"s":return Kn(s);case"ss":return Kn(r);case"S":return Kn(l);case"SSS":return Kn(o);case"u":return pP(u);case"uu":return pP(s);case"uuu":return Kn(n);case"a":return Dl(t.meridiems(),0);case"kkkk":return Kn(i);case"kk":return Kn(d,jL);case"W":return Kn(s);case"WW":return Kn(r);case"E":case"c":return Kn(n);case"EEE":return Dl(t.weekdays("short",!1),1);case"EEEE":return Dl(t.weekdays("long",!1),1);case"ccc":return Dl(t.weekdays("short",!0),1);case"cccc":return Dl(t.weekdays("long",!0),1);case"Z":case"ZZ":return u7(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return u7(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return pP(/[a-z_+-/]{1,256}?/i);case" ":return pP(/[^\S\n\r]/);default:return p(y)}})(e)||{invalidReason:Jpt};return g.token=e,g}const rht={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function oht(e,t,n){const{type:r,value:o}=e;if(r==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=rht[a];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function iht(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function aht(e,t,n){const r=e.match(t);if(r){const o={};let i=1;for(const a in n)if(Ov(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function sht(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return qt(e.z)||(n=cd.create(e.z)),qt(e.Z)||(n||(n=new Gi(e.Z)),r=e.Z),qt(e.q)||(e.M=(e.q-1)*3+1),qt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),qt(e.u)||(e.S=hz(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),n,r]}let ER=null;function lht(){return ER||(ER=kt.fromMillis(1555555555555)),ER}function cht(e,t){if(e.literal)return e;const n=ql.macroTokenToFormatOpts(e.val),r=Jae(n,t);return r==null||r.includes(void 0)?e:r}function Yae(e,t){return Array.prototype.concat(...e.map(n=>cht(n,t)))}class Xae{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Yae(ql.parseFormat(n),t),this.units=this.tokens.map(r=>nht(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=iht(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(t){if(this.isValid){const[n,r]=aht(t,this.regex,this.handlers),[o,i,a]=r?sht(r):[null,null,void 0];if(Ov(r,"a")&&Ov(r,"H"))throw new Vg("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:o,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Qae(e,t,n){return new Xae(e,n).explainFromTokens(t)}function uht(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Qae(e,t,n);return[r,o,i,a]}function Jae(e,t){if(!e)return null;const r=ql.create(t,e).dtFormatter(lht()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>oht(a,e,i))}const TR="Invalid DateTime",d7=864e13;function rw(e){return new Yl("unsupported zone",`the zone "${e.name}" is not supported`)}function OR(e){return e.weekData===null&&(e.weekData=hO(e.c)),e.weekData}function IR(e){return e.localWeekData===null&&(e.localWeekData=hO(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Mp(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new kt({...n,...t,old:n})}function Zae(e,t,n){let r=e-t*60*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=(o-t)*60*1e3;const i=n.offset(r);return o===i?[r,o]:[e-Math.min(o,i)*60*1e3,Math.max(o,i)]}function hP(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function nE(e,t,n){return Zae(iM(e),t,n)}function f7(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:o,day:Math.min(e.c.day,mO(r,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Nn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=iM(i);let[l,c]=Zae(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function ng(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=kt.fromObject(e,{...n,zone:l,specificOffset:i});return a?c:c.setZone(s)}else return kt.invalid(new Yl("unparsable",`the input "${o}" can't be parsed as ${r}`))}function mP(e,t,n=!0){return e.isValid?ql.create(Zn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function kR(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=yo(e.c.year,n?6:4),t?(r+="-",r+=yo(e.c.month),r+="-",r+=yo(e.c.day)):(r+=yo(e.c.month),r+=yo(e.c.day)),r}function p7(e,t,n,r,o,i){let a=yo(e.c.hour);return t?(a+=":",a+=yo(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=":")):a+=yo(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=yo(e.c.second),(e.c.millisecond!==0||!r)&&(a+=".",a+=yo(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0&&!i?a+="Z":e.o<0?(a+="-",a+=yo(Math.trunc(-e.o/60)),a+=":",a+=yo(Math.trunc(-e.o%60))):(a+="+",a+=yo(Math.trunc(e.o/60)),a+=":",a+=yo(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const ese={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dht={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},fht={ordinal:1,hour:0,minute:0,second:0,millisecond:0},tse=["year","month","day","hour","minute","second","millisecond"],pht=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],hht=["year","ordinal","hour","minute","second","millisecond"];function mht(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new nae(e);return t}function h7(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mht(e)}}function ght(e){return oE[e]||(rE===void 0&&(rE=zr.now()),oE[e]=e.offset(rE)),oE[e]}function m7(e,t){const n=Yd(t.zone,zr.defaultZone);if(!n.isValid)return kt.invalid(rw(n));const r=Zn.fromObject(t);let o,i;if(qt(e.year))o=zr.now();else{for(const l of tse)qt(e[l])&&(e[l]=ese[l]);const a=Tae(e)||Oae(e);if(a)return kt.invalid(a);const s=ght(n);[o,i]=nE(e,s,n)}return new kt({ts:o,zone:n,loc:r,o:i})}function g7(e,t,n){const r=qt(n.round)?!0:n.round,o=(a,s)=>(a=mz(a,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(a,s)),i=a=>n.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(n.unit)return o(i(n.unit),n.unit);for(const a of n.units){const s=i(a);if(Math.abs(s)>=1)return o(s,a)}return o(e>t?-0:0,n.units[n.units.length-1])}function y7(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let rE,oE={};class kt{constructor(t){const n=t.zone||zr.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Yl("invalid input"):null)||(n.isValid?null:rw(n));this.ts=qt(t.ts)?zr.now():t.ts;let o=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const s=Of(t.o)&&!t.old?t.o:n.offset(this.ts);o=hP(this.ts,s),r=Number.isNaN(o.year)?new Yl("invalid input"):null,o=r?null:o,i=r?null:s}this._zone=n,this.loc=t.loc||Zn.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new kt({})}static local(){const[t,n]=y7(arguments),[r,o,i,a,s,l,c]=n;return m7({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=y7(arguments),[r,o,i,a,s,l,c]=n;return t.zone=Gi.utcInstance,m7({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=Gft(t)?t.valueOf():NaN;if(Number.isNaN(r))return kt.invalid("invalid input");const o=Yd(n.zone,zr.defaultZone);return o.isValid?new kt({ts:r,zone:o,loc:Zn.fromObject(n)}):kt.invalid(rw(o))}static fromMillis(t,n={}){if(Of(t))return t<-d7||t>d7?kt.invalid("Timestamp out of range"):new kt({ts:t,zone:Yd(n.zone,zr.defaultZone),loc:Zn.fromObject(n)});throw new Si(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Of(t))return new kt({ts:t*1e3,zone:Yd(n.zone,zr.defaultZone),loc:Zn.fromObject(n)});throw new Si("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Yd(n.zone,zr.defaultZone);if(!r.isValid)return kt.invalid(rw(r));const o=Zn.fromObject(n),i=gO(t,h7),{minDaysInFirstWeek:a,startOfWeek:s}=t7(i,o),l=zr.now(),c=qt(n.specificOffset)?r.offset(l):n.specificOffset,u=!qt(i.ordinal),d=!qt(i.year),f=!qt(i.month)||!qt(i.day),p=d||f,m=i.weekYear||i.weekNumber;if((p||u)&&m)throw new Vg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Vg("Can't mix ordinal dates with month/day");const g=m||i.weekday&&!p;let y,b,x=hP(l,c);g?(y=pht,b=dht,x=hO(x,a,s)):u?(y=hht,b=fht,x=PR(x)):(y=tse,b=ese);let S=!1;for(const I of y){const R=i[I];qt(R)?S?i[I]=b[I]:i[I]=x[I]:S=!0}const P=g?Hft(i,a,s):u?Uft(i):Tae(i),E=P||Oae(i);if(E)return kt.invalid(E);const T=g?Z9(i,a,s):u?e7(i):i,[O,k]=nE(T,c,r),M=new kt({ts:O,zone:r,o:k,loc:o});return i.weekday&&p&&t.weekday!==M.weekday?kt.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M.isValid?M:kt.invalid(M.invalid)}static fromISO(t,n={}){const[r,o]=_pt(t);return ng(r,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,o]=Lpt(t);return ng(r,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,o]=Npt(t);return ng(r,o,n,"HTTP",n)}static fromFormat(t,n,r={}){if(qt(t)||qt(n))throw new Si("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=Zn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=uht(a,t,n);return u?kt.invalid(u):ng(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return kt.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,o]=Upt(t);return ng(r,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Si("need to specify a reason the DateTime is invalid");const r=t instanceof Yl?t:new Yl(t,n);if(zr.throwOnInvalid)throw new gft(r);return new kt({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=Jae(t,Zn.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return Yae(ql.parseFormat(t),Zn.fromObject(n)).map(o=>o.val).join("")}static resetCache(){rE=void 0,oE={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?OR(this).weekYear:NaN}get weekNumber(){return this.isValid?OR(this).weekNumber:NaN}get weekday(){return this.isValid?OR(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?IR(this).weekday:NaN}get localWeekNumber(){return this.isValid?IR(this).weekNumber:NaN}get localWeekYear(){return this.isValid?IR(this).weekYear:NaN}get ordinal(){return this.isValid?PR(this.c).ordinal:NaN}get monthShort(){return this.isValid?nw.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?nw.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?nw.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?nw.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=iM(this.c),o=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-o*n),s=this.zone.offset(r-i*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=hP(l,a),d=hP(c,s);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Mp(this,{ts:l}),Mp(this,{ts:c})]:[this]}get isInLeapYear(){return l1(this.year)}get daysInMonth(){return mO(this.year,this.month)}get daysInYear(){return this.isValid?hy(this.year):NaN}get weeksInWeekYear(){return this.isValid?eS(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?eS(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:o}=ql.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(Gi.instance(t),n)}toLocal(){return this.setZone(zr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Yd(t,zr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[o]=nE(a,i,t)}return Mp(this,{ts:o,zone:t})}else return kt.invalid(rw(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return Mp(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=gO(t,h7),{minDaysInFirstWeek:r,startOfWeek:o}=t7(n,this.loc),i=!qt(n.weekYear)||!qt(n.weekNumber)||!qt(n.weekday),a=!qt(n.ordinal),s=!qt(n.year),l=!qt(n.month)||!qt(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new Vg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Vg("Can't mix ordinal dates with month/day");let d;i?d=Z9({...hO(this.c,r,o),...n},r,o):qt(n.ordinal)?(d={...this.toObject(),...n},qt(n.day)&&(d.day=Math.min(mO(d.year,d.month),d.day))):d=e7({...PR(this.c),...n});const[f,p]=nE(d,this.o,this.zone);return Mp(this,{ts:f,o:p})}plus(t){if(!this.isValid)return this;const n=Nn.fromDurationLike(t);return Mp(this,f7(this,n))}minus(t){if(!this.isValid)return this;const n=Nn.fromDurationLike(t).negate();return Mp(this,f7(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=Nn.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?ql.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):TR}toLocaleString(t=pO,n={}){return this.isValid?ql.create(this.loc.clone(n),t).formatDateTime(this):TR}toLocaleParts(t={}){return this.isValid?ql.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=t==="extended";let s=kR(this,a);return s+="T",s+=p7(this,a,n,r,o,i),s}toISODate({format:t="extended"}={}){return this.isValid?kR(this,t==="extended"):null}toISOWeekDate(){return mP(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(o?"T":"")+p7(this,a==="extended",n,t,r,i):null}toRFC2822(){return mP(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return mP(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?kR(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||t)&&(r&&(o+=" "),n?o+="z":t&&(o+="ZZ")),mP(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():TR}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Nn.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=qft(n).map(Nn.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,l=a?t:this,c=Qpt(s,l,i,o);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(kt.now(),t,n)}until(t){return this.isValid?eo.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||kt.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(o=t.unit,i=void 0),g7(n,this.plus(r),{...t,numeric:"always",units:o,unit:i})}toRelativeCalendar(t={}){return this.isValid?g7(t.base||kt.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(kt.isDateTime))throw new Si("min requires all arguments be DateTimes");return n7(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(kt.isDateTime))throw new Si("max requires all arguments be DateTimes");return n7(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=Zn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Qae(a,t,n)}static fromStringExplain(t,n,r={}){return kt.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:o=null}=n,i=Zn.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new Xae(i,t)}static fromFormatParser(t,n,r={}){if(qt(t)||qt(n))throw new Si("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=Zn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new Si(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?kt.invalid(u):ng(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return pO}static get DATE_MED(){return rae}static get DATE_MED_WITH_WEEKDAY(){return bft}static get DATE_FULL(){return oae}static get DATE_HUGE(){return iae}static get TIME_SIMPLE(){return aae}static get TIME_WITH_SECONDS(){return sae}static get TIME_WITH_SHORT_OFFSET(){return lae}static get TIME_WITH_LONG_OFFSET(){return cae}static get TIME_24_SIMPLE(){return uae}static get TIME_24_WITH_SECONDS(){return dae}static get TIME_24_WITH_SHORT_OFFSET(){return fae}static get TIME_24_WITH_LONG_OFFSET(){return pae}static get DATETIME_SHORT(){return hae}static get DATETIME_SHORT_WITH_SECONDS(){return mae}static get DATETIME_MED(){return gae}static get DATETIME_MED_WITH_SECONDS(){return yae}static get DATETIME_MED_WITH_WEEKDAY(){return wft}static get DATETIME_FULL(){return vae}static get DATETIME_FULL_WITH_SECONDS(){return bae}static get DATETIME_HUGE(){return wae}static get DATETIME_HUGE_WITH_SECONDS(){return xae}}function $0(e){if(kt.isDateTime(e))return e;if(e&&e.valueOf&&Of(e.valueOf()))return kt.fromJSDate(e);if(e&&typeof e=="object")return kt.fromObject(e);throw new Si(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const yht={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyyy:{sectionType:"year",contentType:"digit",maxLength:4},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",c:{sectionType:"weekDay",contentType:"digit",maxLength:1},ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:2},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},vht={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"d",weekday:"cccc",weekdayShort:"ccccc",hours24h:"HH",hours12h:"hh",meridiem:"a",minutes:"mm",seconds:"ss",fullDate:"DD",keyboardDate:"D",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"t",fullTime12h:"hh:mm a",fullTime24h:"HH:mm",keyboardDateTime:"D t",keyboardDateTime12h:"D hh:mm a",keyboardDateTime24h:"D T"};class lM{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="luxon",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"'",end:"'"},this.formatTokenMap=yht,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale?r:r.setLocale(o)},this.date=(r,o="default")=>r===null?null:typeof r>"u"?kt.fromJSDate(new Date,{locale:this.locale,zone:o}):kt.fromISO(r,{locale:this.locale,zone:o}),this.getInvalidDate=()=>kt.fromJSDate(new Date("Invalid Date")),this.getTimezone=r=>r.zone.type==="system"?"system":r.zoneName,this.setTimezone=(r,o)=>r.zone.equals(nw.normalizeZone(o))?r:r.setZone(o),this.toJsDate=r=>r.toJSDate(),this.parse=(r,o)=>r===""?null:kt.fromFormat(r,o,{locale:this.locale}),this.getCurrentLocaleCode=()=>this.locale,this.is12HourCycleInCurrentLocale=()=>{var r,o;return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?!0:!!((o=(r=new Intl.DateTimeFormat(this.locale,{hour:"numeric"}))==null?void 0:r.resolvedOptions())!=null&&o.hour12)},this.expandFormat=r=>{const o=/''|'(''|[^'])+('|$)|[^']*/g,i=[...Object.keys(this.formatTokenMap),"yyyyy"],a=new RegExp(`^(${i.join("|")})+$`),s=/(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;return r.match(o).map(l=>l[0]==="'"?l:kt.expandFormat(l,{locale:this.locale}).replace(s,(d,f,p)=>{const m=f||p;return a.test(m)?d:`'${d}'`})).join("").replace("yyyyy","yyyy")},this.isValid=r=>r===null?!1:r.isValid,this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>r.setLocale(this.locale).toFormat(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:+r==+o,this.isSameYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"year")},this.isSameMonth=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"month")},this.isSameDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"day")},this.isSameHour=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"hour")},this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfYear(i),"years").toObject().years>0},this.isAfterDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfDay(i),"days").toObject().days>0},this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfYear(i),"years").toObject().years<0},this.isBeforeDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfDay(i),"days").toObject().days<0},this.isWithinRange=(r,[o,i])=>this.isEqual(r,o)||this.isEqual(r,i)||this.isAfter(r,o)&&this.isBefore(r,i),this.startOfYear=r=>r.startOf("year"),this.startOfMonth=r=>r.startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r).startOf("week",{useLocaleWeeks:!0}),this.startOfDay=r=>r.startOf("day"),this.endOfYear=r=>r.endOf("year"),this.endOfMonth=r=>r.endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r).endOf("week",{useLocaleWeeks:!0}),this.endOfDay=r=>r.endOf("day"),this.addYears=(r,o)=>r.plus({years:o}),this.addMonths=(r,o)=>r.plus({months:o}),this.addWeeks=(r,o)=>r.plus({weeks:o}),this.addDays=(r,o)=>r.plus({days:o}),this.addHours=(r,o)=>r.plus({hours:o}),this.addMinutes=(r,o)=>r.plus({minutes:o}),this.addSeconds=(r,o)=>r.plus({seconds:o}),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month")-1,this.getDate=r=>r.get("day"),this.getHours=r=>r.get("hour"),this.getMinutes=r=>r.get("minute"),this.getSeconds=r=>r.get("second"),this.getMilliseconds=r=>r.get("millisecond"),this.setYear=(r,o)=>r.set({year:o}),this.setMonth=(r,o)=>r.set({month:o+1}),this.setDate=(r,o)=>r.set({day:o}),this.setHours=(r,o)=>r.set({hour:o}),this.setMinutes=(r,o)=>r.set({minute:o}),this.setSeconds=(r,o)=>r.set({second:o}),this.setMilliseconds=(r,o)=>r.set({millisecond:o}),this.getDaysInMonth=r=>r.daysInMonth,this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r)),{days:a}=i.diff(o,"days").toObject(),s=[];return new Array(Math.round(a)).fill(0).map((l,c)=>c).map(l=>o.plus({days:l})).forEach((l,c)=>{if(c===0||c%7===0&&c>6){s.push([l]);return}s[s.length-1].push(l)}),s},this.getWeekNumber=r=>r.localWeekNumber??r.weekNumber,this.getDayOfWeek=r=>r.weekday,this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.locale=t||"en-US",this.formats=D({},vht,n)}}const bz=lt($.jsx("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 19zm-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 14"}),"Search");function wz({callback:e,initialIngredient:t}){const n=t?{value:t,data:{id:-1,name:t,image:null,image_thumbnail:null}}:null,[r,o]=v.useState(!0),[i,a]=v.useState(n),[s,l]=v.useState(""),[c,u]=v.useState([]),[d,f]=Ue(),p=v.useMemo(()=>yk(m=>r_e(m,f.language,r).then(g=>u(g)),200),[f.language,r]);return v.useEffect(()=>{if(s===""){u(i?[i]:[]);return}return p(s),()=>{}},[i,s,p]),X(Gt,{children:[C(ac,{id:"ingredient-autocomplete",getOptionLabel:m=>m.value,"data-testid":"autocomplete",filterOptions:m=>m,options:c,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:i,noOptionsText:d("noResults"),isOptionEqualToValue:(m,g)=>m.value===g.value,onChange:(m,g)=>{u(g?[g,...c]:c),a(g),e(g)},onInputChange:(m,g)=>{l(g)},renderInput:m=>C(mn,{...m,label:d("nutrition.searchIngredientName"),fullWidth:!0,InputProps:{...m.InputProps,startAdornment:X(At,{children:[C(go,{position:"start",children:C(bz,{})}),m.InputProps.startAdornment]})}}),renderOption:(m,g)=>UN("li",{...m,key:`ingredient-${g.data.id}`},X(ss,{disablePadding:!0,component:"div",children:[C(Ki,{children:C(sc,{alt:"",src:`${Ej}${g.data.image}`,variant:"rounded",children:C(fd,{})})}),C(xo,{primary:g.value,primaryTypographyProps:{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]}))}),f.language!==qy&&C(px,{children:C($h,{control:C(td,{checked:r,onChange:(m,g)=>o(g)}),label:d("alsoSearchEnglish")})})]})}var bht=function(t){return wht(t)&&!xht(t)};function wht(e){return!!e&&typeof e=="object"}function xht(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pht(e)}var Sht=typeof Symbol=="function"&&Symbol.for,Cht=Sht?Symbol.for("react.element"):60103;function Pht(e){return e.$$typeof===Cht}function Eht(e){return Array.isArray(e)?[]:{}}function yO(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tS(Eht(e),e,t):e}function Tht(e,t,n){return e.concat(t).map(function(r){return yO(r,n)})}function Oht(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=yO(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=yO(t[o],n):r[o]=tS(e[o],t[o],n)}),r}function tS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Tht,n.isMergeableObject=n.isMergeableObject||bht;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Oht(e,t,n):yO(t,n)}tS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return tS(r,o,n)},{})};var BL=tS,nse=typeof global=="object"&&global&&global.Object===Object&&global,Iht=typeof self=="object"&&self&&self.Object===Object&&self,tu=nse||Iht||Function("return this")(),Ff=tu.Symbol,rse=Object.prototype,kht=rse.hasOwnProperty,Mht=rse.toString,R0=Ff?Ff.toStringTag:void 0;function Aht(e){var t=kht.call(e,R0),n=e[R0];try{e[R0]=void 0;var r=!0}catch{}var o=Mht.call(e);return r&&(t?e[R0]=n:delete e[R0]),o}var $ht=Object.prototype,Rht=$ht.toString;function Dht(e){return Rht.call(e)}var _ht="[object Null]",Lht="[object Undefined]",v7=Ff?Ff.toStringTag:void 0;function lm(e){return e==null?e===void 0?Lht:_ht:v7&&v7 in Object(e)?Aht(e):Dht(e)}function ose(e,t){return function(n){return e(t(n))}}var xz=ose(Object.getPrototypeOf,Object);function cm(e){return e!=null&&typeof e=="object"}var Nht="[object Object]",Fht=Function.prototype,jht=Object.prototype,ise=Fht.toString,Bht=jht.hasOwnProperty,zht=ise.call(Object);function b7(e){if(!cm(e)||lm(e)!=Nht)return!1;var t=xz(e);if(t===null)return!0;var n=Bht.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ise.call(n)==zht}function Vht(){this.__data__=[],this.size=0}function ase(e,t){return e===t||e!==e&&t!==t}function cM(e,t){for(var n=e.length;n--;)if(ase(e[n][0],t))return n;return-1}var Hht=Array.prototype,Uht=Hht.splice;function Wht(e){var t=this.__data__,n=cM(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uht.call(t,n,1),--this.size,!0}function Ght(e){var t=this.__data__,n=cM(t,e);return n<0?void 0:t[n][1]}function qht(e){return cM(this.__data__,e)>-1}function Kht(e,t){var n=this.__data__,r=cM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gd.prototype.clear=Vht;gd.prototype.delete=Wht;gd.prototype.get=Ght;gd.prototype.has=qht;gd.prototype.set=Kht;function Yht(){this.__data__=new gd,this.size=0}function Xht(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Qht(e){return this.__data__.get(e)}function Jht(e){return this.__data__.has(e)}function d1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zht="[object AsyncFunction]",emt="[object Function]",tmt="[object GeneratorFunction]",nmt="[object Proxy]";function sse(e){if(!d1(e))return!1;var t=lm(e);return t==emt||t==tmt||t==Zht||t==nmt}var MR=tu["__core-js_shared__"],w7=function(){var e=/[^.]+$/.exec(MR&&MR.keys&&MR.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rmt(e){return!!w7&&w7 in e}var omt=Function.prototype,imt=omt.toString;function um(e){if(e!=null){try{return imt.call(e)}catch{}try{return e+""}catch{}}return""}var amt=/[\\^$.*+?()[\]{}|]/g,smt=/^\[object .+?Constructor\]$/,lmt=Function.prototype,cmt=Object.prototype,umt=lmt.toString,dmt=cmt.hasOwnProperty,fmt=RegExp("^"+umt.call(dmt).replace(amt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pmt(e){if(!d1(e)||rmt(e))return!1;var t=sse(e)?fmt:smt;return t.test(um(e))}function hmt(e,t){return e==null?void 0:e[t]}function dm(e,t){var n=hmt(e,t);return pmt(n)?n:void 0}var nS=dm(tu,"Map"),rS=dm(Object,"create");function mmt(){this.__data__=rS?rS(null):{},this.size=0}function gmt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ymt="__lodash_hash_undefined__",vmt=Object.prototype,bmt=vmt.hasOwnProperty;function wmt(e){var t=this.__data__;if(rS){var n=t[e];return n===ymt?void 0:n}return bmt.call(t,e)?t[e]:void 0}var xmt=Object.prototype,Smt=xmt.hasOwnProperty;function Cmt(e){var t=this.__data__;return rS?t[e]!==void 0:Smt.call(t,e)}var Pmt="__lodash_hash_undefined__";function Emt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rS&&t===void 0?Pmt:t,this}function Vh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vh.prototype.clear=mmt;Vh.prototype.delete=gmt;Vh.prototype.get=wmt;Vh.prototype.has=Cmt;Vh.prototype.set=Emt;function Tmt(){this.size=0,this.__data__={hash:new Vh,map:new(nS||gd),string:new Vh}}function Omt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uM(e,t){var n=e.__data__;return Omt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Imt(e){var t=uM(this,e).delete(e);return this.size-=t?1:0,t}function kmt(e){return uM(this,e).get(e)}function Mmt(e){return uM(this,e).has(e)}function Amt(e,t){var n=uM(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ip(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ip.prototype.clear=Tmt;ip.prototype.delete=Imt;ip.prototype.get=kmt;ip.prototype.has=Mmt;ip.prototype.set=Amt;var $mt=200;function Rmt(e,t){var n=this.__data__;if(n instanceof gd){var r=n.__data__;if(!nS||r.length<$mt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ip(r)}return n.set(e,t),this.size=n.size,this}function Ob(e){var t=this.__data__=new gd(e);this.size=t.size}Ob.prototype.clear=Yht;Ob.prototype.delete=Xht;Ob.prototype.get=Qht;Ob.prototype.has=Jht;Ob.prototype.set=Rmt;function Dmt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var x7=function(){try{var e=dm(Object,"defineProperty");return e({},"",{}),e}catch{}}();function lse(e,t,n){t=="__proto__"&&x7?x7(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _mt=Object.prototype,Lmt=_mt.hasOwnProperty;function cse(e,t,n){var r=e[t];(!(Lmt.call(e,t)&&ase(r,n))||n===void 0&&!(t in e))&&lse(e,t,n)}function dM(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?lse(n,s,l):cse(n,s,l)}return n}function Nmt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fmt="[object Arguments]";function S7(e){return cm(e)&&lm(e)==Fmt}var use=Object.prototype,jmt=use.hasOwnProperty,Bmt=use.propertyIsEnumerable,zmt=S7(function(){return arguments}())?S7:function(e){return cm(e)&&jmt.call(e,"callee")&&!Bmt.call(e,"callee")},f1=Array.isArray;function Vmt(){return!1}var dse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C7=dse&&typeof module=="object"&&module&&!module.nodeType&&module,Hmt=C7&&C7.exports===dse,P7=Hmt?tu.Buffer:void 0,Umt=P7?P7.isBuffer:void 0,fse=Umt||Vmt,Wmt=9007199254740991,Gmt=/^(?:0|[1-9]\d*)$/;function qmt(e,t){var n=typeof e;return t=t??Wmt,!!t&&(n=="number"||n!="symbol"&&Gmt.test(e))&&e>-1&&e%1==0&&e<t}var Kmt=9007199254740991;function pse(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Kmt}var Ymt="[object Arguments]",Xmt="[object Array]",Qmt="[object Boolean]",Jmt="[object Date]",Zmt="[object Error]",egt="[object Function]",tgt="[object Map]",ngt="[object Number]",rgt="[object Object]",ogt="[object RegExp]",igt="[object Set]",agt="[object String]",sgt="[object WeakMap]",lgt="[object ArrayBuffer]",cgt="[object DataView]",ugt="[object Float32Array]",dgt="[object Float64Array]",fgt="[object Int8Array]",pgt="[object Int16Array]",hgt="[object Int32Array]",mgt="[object Uint8Array]",ggt="[object Uint8ClampedArray]",ygt="[object Uint16Array]",vgt="[object Uint32Array]",Ir={};Ir[ugt]=Ir[dgt]=Ir[fgt]=Ir[pgt]=Ir[hgt]=Ir[mgt]=Ir[ggt]=Ir[ygt]=Ir[vgt]=!0;Ir[Ymt]=Ir[Xmt]=Ir[lgt]=Ir[Qmt]=Ir[cgt]=Ir[Jmt]=Ir[Zmt]=Ir[egt]=Ir[tgt]=Ir[ngt]=Ir[rgt]=Ir[ogt]=Ir[igt]=Ir[agt]=Ir[sgt]=!1;function bgt(e){return cm(e)&&pse(e.length)&&!!Ir[lm(e)]}function Sz(e){return function(t){return e(t)}}var hse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lw=hse&&typeof module=="object"&&module&&!module.nodeType&&module,wgt=Lw&&Lw.exports===hse,AR=wgt&&nse.process,Iv=function(){try{var e=Lw&&Lw.require&&Lw.require("util").types;return e||AR&&AR.binding&&AR.binding("util")}catch{}}(),E7=Iv&&Iv.isTypedArray,xgt=E7?Sz(E7):bgt,Sgt=Object.prototype,Cgt=Sgt.hasOwnProperty;function mse(e,t){var n=f1(e),r=!n&&zmt(e),o=!n&&!r&&fse(e),i=!n&&!r&&!o&&xgt(e),a=n||r||o||i,s=a?Nmt(e.length,String):[],l=s.length;for(var c in e)(t||Cgt.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qmt(c,l)))&&s.push(c);return s}var Pgt=Object.prototype;function Cz(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pgt;return e===n}var Egt=ose(Object.keys,Object),Tgt=Object.prototype,Ogt=Tgt.hasOwnProperty;function Igt(e){if(!Cz(e))return Egt(e);var t=[];for(var n in Object(e))Ogt.call(e,n)&&n!="constructor"&&t.push(n);return t}function gse(e){return e!=null&&pse(e.length)&&!sse(e)}function Pz(e){return gse(e)?mse(e):Igt(e)}function kgt(e,t){return e&&dM(t,Pz(t),e)}function Mgt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Agt=Object.prototype,$gt=Agt.hasOwnProperty;function Rgt(e){if(!d1(e))return Mgt(e);var t=Cz(e),n=[];for(var r in e)r=="constructor"&&(t||!$gt.call(e,r))||n.push(r);return n}function Ez(e){return gse(e)?mse(e,!0):Rgt(e)}function Dgt(e,t){return e&&dM(t,Ez(t),e)}var yse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,T7=yse&&typeof module=="object"&&module&&!module.nodeType&&module,_gt=T7&&T7.exports===yse,O7=_gt?tu.Buffer:void 0,I7=O7?O7.allocUnsafe:void 0;function Lgt(e,t){if(t)return e.slice();var n=e.length,r=I7?I7(n):new e.constructor(n);return e.copy(r),r}function vse(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ngt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function bse(){return[]}var Fgt=Object.prototype,jgt=Fgt.propertyIsEnumerable,k7=Object.getOwnPropertySymbols,Tz=k7?function(e){return e==null?[]:(e=Object(e),Ngt(k7(e),function(t){return jgt.call(e,t)}))}:bse;function Bgt(e,t){return dM(e,Tz(e),t)}function wse(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var zgt=Object.getOwnPropertySymbols,xse=zgt?function(e){for(var t=[];e;)wse(t,Tz(e)),e=xz(e);return t}:bse;function Vgt(e,t){return dM(e,xse(e),t)}function Sse(e,t,n){var r=t(e);return f1(e)?r:wse(r,n(e))}function Hgt(e){return Sse(e,Pz,Tz)}function Ugt(e){return Sse(e,Ez,xse)}var zL=dm(tu,"DataView"),VL=dm(tu,"Promise"),HL=dm(tu,"Set"),UL=dm(tu,"WeakMap"),M7="[object Map]",Wgt="[object Object]",A7="[object Promise]",$7="[object Set]",R7="[object WeakMap]",D7="[object DataView]",Ggt=um(zL),qgt=um(nS),Kgt=um(VL),Ygt=um(HL),Xgt=um(UL),Tu=lm;(zL&&Tu(new zL(new ArrayBuffer(1)))!=D7||nS&&Tu(new nS)!=M7||VL&&Tu(VL.resolve())!=A7||HL&&Tu(new HL)!=$7||UL&&Tu(new UL)!=R7)&&(Tu=function(e){var t=lm(e),n=t==Wgt?e.constructor:void 0,r=n?um(n):"";if(r)switch(r){case Ggt:return D7;case qgt:return M7;case Kgt:return A7;case Ygt:return $7;case Xgt:return R7}return t});var Qgt=Object.prototype,Jgt=Qgt.hasOwnProperty;function Zgt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Jgt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _7=tu.Uint8Array;function Oz(e){var t=new e.constructor(e.byteLength);return new _7(t).set(new _7(e)),t}function eyt(e,t){var n=t?Oz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var tyt=/\w*$/;function nyt(e){var t=new e.constructor(e.source,tyt.exec(e));return t.lastIndex=e.lastIndex,t}var L7=Ff?Ff.prototype:void 0,N7=L7?L7.valueOf:void 0;function ryt(e){return N7?Object(N7.call(e)):{}}function oyt(e,t){var n=t?Oz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var iyt="[object Boolean]",ayt="[object Date]",syt="[object Map]",lyt="[object Number]",cyt="[object RegExp]",uyt="[object Set]",dyt="[object String]",fyt="[object Symbol]",pyt="[object ArrayBuffer]",hyt="[object DataView]",myt="[object Float32Array]",gyt="[object Float64Array]",yyt="[object Int8Array]",vyt="[object Int16Array]",byt="[object Int32Array]",wyt="[object Uint8Array]",xyt="[object Uint8ClampedArray]",Syt="[object Uint16Array]",Cyt="[object Uint32Array]";function Pyt(e,t,n){var r=e.constructor;switch(t){case pyt:return Oz(e);case iyt:case ayt:return new r(+e);case hyt:return eyt(e,n);case myt:case gyt:case yyt:case vyt:case byt:case wyt:case xyt:case Syt:case Cyt:return oyt(e,n);case syt:return new r;case lyt:case dyt:return new r(e);case cyt:return nyt(e);case uyt:return new r;case fyt:return ryt(e)}}var F7=Object.create,Eyt=function(){function e(){}return function(t){if(!d1(t))return{};if(F7)return F7(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Tyt(e){return typeof e.constructor=="function"&&!Cz(e)?Eyt(xz(e)):{}}var Oyt="[object Map]";function Iyt(e){return cm(e)&&Tu(e)==Oyt}var j7=Iv&&Iv.isMap,kyt=j7?Sz(j7):Iyt,Myt="[object Set]";function Ayt(e){return cm(e)&&Tu(e)==Myt}var B7=Iv&&Iv.isSet,$yt=B7?Sz(B7):Ayt,Ryt=1,Dyt=2,_yt=4,Cse="[object Arguments]",Lyt="[object Array]",Nyt="[object Boolean]",Fyt="[object Date]",jyt="[object Error]",Pse="[object Function]",Byt="[object GeneratorFunction]",zyt="[object Map]",Vyt="[object Number]",Ese="[object Object]",Hyt="[object RegExp]",Uyt="[object Set]",Wyt="[object String]",Gyt="[object Symbol]",qyt="[object WeakMap]",Kyt="[object ArrayBuffer]",Yyt="[object DataView]",Xyt="[object Float32Array]",Qyt="[object Float64Array]",Jyt="[object Int8Array]",Zyt="[object Int16Array]",evt="[object Int32Array]",tvt="[object Uint8Array]",nvt="[object Uint8ClampedArray]",rvt="[object Uint16Array]",ovt="[object Uint32Array]",vr={};vr[Cse]=vr[Lyt]=vr[Kyt]=vr[Yyt]=vr[Nyt]=vr[Fyt]=vr[Xyt]=vr[Qyt]=vr[Jyt]=vr[Zyt]=vr[evt]=vr[zyt]=vr[Vyt]=vr[Ese]=vr[Hyt]=vr[Uyt]=vr[Wyt]=vr[Gyt]=vr[tvt]=vr[nvt]=vr[rvt]=vr[ovt]=!0;vr[jyt]=vr[Pse]=vr[qyt]=!1;function Nw(e,t,n,r,o,i){var a,s=t&Ryt,l=t&Dyt,c=t&_yt;if(a!==void 0)return a;if(!d1(e))return e;var u=f1(e);if(u){if(a=Zgt(e),!s)return vse(e,a)}else{var d=Tu(e),f=d==Pse||d==Byt;if(fse(e))return Lgt(e,s);if(d==Ese||d==Cse||f&&!o){if(a=l||f?{}:Tyt(e),!s)return l?Vgt(e,Dgt(a,e)):Bgt(e,kgt(a,e))}else{if(!vr[d])return o?e:{};a=Pyt(e,d,s)}}i||(i=new Ob);var p=i.get(e);if(p)return p;i.set(e,a),$yt(e)?e.forEach(function(y){a.add(Nw(y,t,n,y,e,i))}):kyt(e)&&e.forEach(function(y,b){a.set(b,Nw(y,t,n,b,e,i))});var m=c?l?Ugt:Hgt:l?Ez:Pz,g=u?void 0:m(e);return Dmt(g||e,function(y,b){g&&(b=y,y=e[b]),cse(a,b,Nw(y,t,n,b,e,i))}),a}var ivt=1,avt=4;function gP(e){return Nw(e,ivt|avt)}var z7=Array.isArray,V7=Object.keys,svt=Object.prototype.hasOwnProperty,lvt=typeof Element<"u";function WL(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=z7(e),r=z7(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!WL(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=V7(e);if(i=d.length,i!==V7(t).length)return!1;for(o=i;o--!==0;)if(!svt.call(t,d[o]))return!1;if(lvt&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=d[o],!(a==="_owner"&&e.$$typeof)&&!WL(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var cvt=function(t,n){try{return WL(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const zp=jn(cvt);var uvt=4;function H7(e){return Nw(e,uvt)}function Tse(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var dvt="[object Symbol]";function Iz(e){return typeof e=="symbol"||cm(e)&&lm(e)==dvt}var fvt="Expected a function";function kz(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fvt);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(kz.Cache||ip),n}kz.Cache=ip;var pvt=500;function hvt(e){var t=kz(e,function(r){return n.size===pvt&&n.clear(),r}),n=t.cache;return t}var mvt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gvt=/\\(\\)?/g,yvt=hvt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mvt,function(n,r,o,i){t.push(o?i.replace(gvt,"$1"):r||n)}),t}),vvt=1/0;function bvt(e){if(typeof e=="string"||Iz(e))return e;var t=e+"";return t=="0"&&1/e==-vvt?"-0":t}var wvt=1/0,U7=Ff?Ff.prototype:void 0,W7=U7?U7.toString:void 0;function Ose(e){if(typeof e=="string")return e;if(f1(e))return Tse(e,Ose)+"";if(Iz(e))return W7?W7.call(e):"";var t=e+"";return t=="0"&&1/e==-wvt?"-0":t}function xvt(e){return e==null?"":Ose(e)}function Ise(e){return f1(e)?Tse(e,bvt):Iz(e)?[e]:vse(yvt(xvt(e)))}function Vo(){return Vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}function kse(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var fM=v.createContext(void 0);fM.displayName="FormikContext";var Svt=fM.Provider;fM.Consumer;function Mse(){var e=v.useContext(fM);return e}var Rs=function(t){return typeof t=="function"},p1=function(t){return t!==null&&typeof t=="object"},Cvt=function(t){return String(Math.floor(Number(t)))===t},$R=function(t){return Object.prototype.toString.call(t)==="[object String]"},Pvt=function(t){return v.Children.count(t)===0},RR=function(t){return p1(t)&&Rs(t.then)};function Na(e,t,n,r){r===void 0&&(r=0);for(var o=Ise(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function vh(e,t,n){for(var r=H7(e),o=r,i=0,a=Ise(t);i<a.length-1;i++){var s=a[i],l=Na(e,a.slice(0,i+1));if(l&&(p1(l)||Array.isArray(l)))o=o[s]=H7(l);else{var c=a[i+1];o=o[s]=Cvt(c)&&Number(c)>=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function Ase(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];p1(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Ase(s,t,n,r[a])):r[a]=t}return r}function Evt(e,t){switch(t.type){case"SET_VALUES":return Vo({},e,{values:t.payload});case"SET_TOUCHED":return Vo({},e,{touched:t.payload});case"SET_ERRORS":return zp(e.errors,t.payload)?e:Vo({},e,{errors:t.payload});case"SET_STATUS":return Vo({},e,{status:t.payload});case"SET_ISSUBMITTING":return Vo({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Vo({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Vo({},e,{values:vh(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Vo({},e,{touched:vh(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Vo({},e,{errors:vh(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Vo({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Vo({},e,{touched:Ase(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Vo({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Vo({},e,{isSubmitting:!1});default:return e}}var Ap={},yP={};function Tvt(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,a=i===void 0?!1:i,s=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,u=e.onSubmit,d=kse(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Vo({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:u},d),p=v.useRef(f.initialValues),m=v.useRef(f.initialErrors||Ap),g=v.useRef(f.initialTouched||yP),y=v.useRef(f.initialStatus),b=v.useRef(!1),x=v.useRef({});v.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var S=v.useState(0),P=S[1],E=v.useRef({values:gP(f.initialValues),errors:gP(f.initialErrors)||Ap,touched:gP(f.initialTouched)||yP,status:gP(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),T=E.current,O=v.useCallback(function(de){var $e=E.current;E.current=Evt($e,de),$e!==E.current&&P(function(ke){return ke+1})},[]),k=v.useCallback(function(de,$e){return new Promise(function(ke,Me){var De=f.validate(de,$e);De==null?ke(Ap):RR(De)?De.then(function(Ye){ke(Ye||Ap)},function(Ye){Me(Ye)}):ke(De)})},[f.validate]),M=v.useCallback(function(de,$e){var ke=f.validationSchema,Me=Rs(ke)?ke($e):ke,De=$e&&Me.validateAt?Me.validateAt($e,de):Ivt(de,Me);return new Promise(function(Ye,Je){De.then(function(){Ye(Ap)},function(st){st.name==="ValidationError"?Ye(Ovt(st)):Je(st)})})},[f.validationSchema]),I=v.useCallback(function(de,$e){return new Promise(function(ke){return ke(x.current[de].validate($e))})},[]),R=v.useCallback(function(de){var $e=Object.keys(x.current).filter(function(Me){return Rs(x.current[Me].validate)}),ke=$e.length>0?$e.map(function(Me){return I(Me,Na(de,Me))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ke).then(function(Me){return Me.reduce(function(De,Ye,Je){return Ye==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ye&&(De=vh(De,$e[Je],Ye)),De},{})})},[I]),_=v.useCallback(function(de){return Promise.all([R(de),f.validationSchema?M(de):{},f.validate?k(de):{}]).then(function($e){var ke=$e[0],Me=$e[1],De=$e[2],Ye=BL.all([ke,Me,De],{arrayMerge:kvt});return Ye})},[f.validate,f.validationSchema,R,k,M]),L=As(function(de){return de===void 0&&(de=T.values),O({type:"SET_ISVALIDATING",payload:!0}),_(de).then(function($e){return b.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:$e})),$e})});v.useEffect(function(){a&&b.current===!0&&zp(p.current,f.initialValues)&&L(p.current)},[a,L]);var j=v.useCallback(function(de){var $e=de&&de.values?de.values:p.current,ke=de&&de.errors?de.errors:m.current?m.current:f.initialErrors||{},Me=de&&de.touched?de.touched:g.current?g.current:f.initialTouched||{},De=de&&de.status?de.status:y.current?y.current:f.initialStatus;p.current=$e,m.current=ke,g.current=Me,y.current=De;var Ye=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!de&&!!de.isSubmitting,errors:ke,touched:Me,status:De,values:$e,isValidating:!!de&&!!de.isValidating,submitCount:de&&de.submitCount&&typeof de.submitCount=="number"?de.submitCount:0}})};if(f.onReset){var Je=f.onReset(T.values,ue);RR(Je)?Je.then(Ye):Ye()}else Ye()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);v.useEffect(function(){b.current===!0&&!zp(p.current,f.initialValues)&&c&&(p.current=f.initialValues,j(),a&&L(p.current))},[c,f.initialValues,j,a,L]),v.useEffect(function(){c&&b.current===!0&&!zp(m.current,f.initialErrors)&&(m.current=f.initialErrors||Ap,O({type:"SET_ERRORS",payload:f.initialErrors||Ap}))},[c,f.initialErrors]),v.useEffect(function(){c&&b.current===!0&&!zp(g.current,f.initialTouched)&&(g.current=f.initialTouched||yP,O({type:"SET_TOUCHED",payload:f.initialTouched||yP}))},[c,f.initialTouched]),v.useEffect(function(){c&&b.current===!0&&!zp(y.current,f.initialStatus)&&(y.current=f.initialStatus,O({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var N=As(function(de){if(x.current[de]&&Rs(x.current[de].validate)){var $e=Na(T.values,de),ke=x.current[de].validate($e);return RR(ke)?(O({type:"SET_ISVALIDATING",payload:!0}),ke.then(function(Me){return Me}).then(function(Me){O({type:"SET_FIELD_ERROR",payload:{field:de,value:Me}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:de,value:ke}}),Promise.resolve(ke))}else if(f.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),M(T.values,de).then(function(Me){return Me}).then(function(Me){O({type:"SET_FIELD_ERROR",payload:{field:de,value:Na(Me,de)}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),F=v.useCallback(function(de,$e){var ke=$e.validate;x.current[de]={validate:ke}},[]),U=v.useCallback(function(de){delete x.current[de]},[]),z=As(function(de,$e){O({type:"SET_TOUCHED",payload:de});var ke=$e===void 0?o:$e;return ke?L(T.values):Promise.resolve()}),V=v.useCallback(function(de){O({type:"SET_ERRORS",payload:de})},[]),W=As(function(de,$e){var ke=Rs(de)?de(T.values):de;O({type:"SET_VALUES",payload:ke});var Me=$e===void 0?n:$e;return Me?L(ke):Promise.resolve()}),G=v.useCallback(function(de,$e){O({type:"SET_FIELD_ERROR",payload:{field:de,value:$e}})},[]),J=As(function(de,$e,ke){O({type:"SET_FIELD_VALUE",payload:{field:de,value:$e}});var Me=ke===void 0?n:ke;return Me?L(vh(T.values,de,$e)):Promise.resolve()}),K=v.useCallback(function(de,$e){var ke=$e,Me=de,De;if(!$R(de)){de.persist&&de.persist();var Ye=de.target?de.target:de.currentTarget,Je=Ye.type,st=Ye.name,Rt=Ye.id,ct=Ye.value,Lt=Ye.checked,pt=Ye.outerHTML,rt=Ye.options,Pe=Ye.multiple;ke=$e||st||Rt,Me=/number|range/.test(Je)?(De=parseFloat(ct),isNaN(De)?"":De):/checkbox/.test(Je)?Avt(Na(T.values,ke),Lt,ct):rt&&Pe?Mvt(rt):ct}ke&&J(ke,Me)},[J,T.values]),ne=As(function(de){if($R(de))return function($e){return K($e,de)};K(de)}),re=As(function(de,$e,ke){$e===void 0&&($e=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:de,value:$e}});var Me=ke===void 0?o:ke;return Me?L(T.values):Promise.resolve()}),oe=v.useCallback(function(de,$e){de.persist&&de.persist();var ke=de.target,Me=ke.name,De=ke.id,Ye=ke.outerHTML,Je=$e||Me||De;re(Je,!0)},[re]),fe=As(function(de){if($R(de))return function($e){return oe($e,de)};oe(de)}),se=v.useCallback(function(de){Rs(de)?O({type:"SET_FORMIK_STATE",payload:de}):O({type:"SET_FORMIK_STATE",payload:function(){return de}})},[]),ee=v.useCallback(function(de){O({type:"SET_STATUS",payload:de})},[]),ce=v.useCallback(function(de){O({type:"SET_ISSUBMITTING",payload:de})},[]),le=As(function(){return O({type:"SUBMIT_ATTEMPT"}),L().then(function(de){var $e=de instanceof Error,ke=!$e&&Object.keys(de).length===0;if(ke){var Me;try{if(Me=ge(),Me===void 0)return}catch(De){throw De}return Promise.resolve(Me).then(function(De){return b.current&&O({type:"SUBMIT_SUCCESS"}),De}).catch(function(De){if(b.current)throw O({type:"SUBMIT_FAILURE"}),De})}else if(b.current&&(O({type:"SUBMIT_FAILURE"}),$e))throw de})}),Q=As(function(de){de&&de.preventDefault&&Rs(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Rs(de.stopPropagation)&&de.stopPropagation(),le().catch(function($e){console.warn("Warning: An unhandled error was caught from submitForm()",$e)})}),ue={resetForm:j,validateForm:L,validateField:N,setErrors:V,setFieldError:G,setFieldTouched:re,setFieldValue:J,setStatus:ee,setSubmitting:ce,setTouched:z,setValues:W,setFormikState:se,submitForm:le},ge=As(function(){return u(T.values,ue)}),xe=As(function(de){de&&de.preventDefault&&Rs(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Rs(de.stopPropagation)&&de.stopPropagation(),j()}),me=v.useCallback(function(de){return{value:Na(T.values,de),error:Na(T.errors,de),touched:!!Na(T.touched,de),initialValue:Na(p.current,de),initialTouched:!!Na(g.current,de),initialError:Na(m.current,de)}},[T.errors,T.touched,T.values]),be=v.useCallback(function(de){return{setValue:function(ke,Me){return J(de,ke,Me)},setTouched:function(ke,Me){return re(de,ke,Me)},setError:function(ke){return G(de,ke)}}},[J,re,G]),we=v.useCallback(function(de){var $e=p1(de),ke=$e?de.name:de,Me=Na(T.values,ke),De={name:ke,value:Me,onChange:ne,onBlur:fe};if($e){var Ye=de.type,Je=de.value,st=de.as,Rt=de.multiple;Ye==="checkbox"?Je===void 0?De.checked=!!Me:(De.checked=!!(Array.isArray(Me)&&~Me.indexOf(Je)),De.value=Je):Ye==="radio"?(De.checked=Me===Je,De.value=Je):st==="select"&&Rt&&(De.value=De.value||[],De.multiple=!0)}return De},[fe,ne,T.values]),Te=v.useMemo(function(){return!zp(p.current,T.values)},[p.current,T.values]),Ie=v.useMemo(function(){return typeof s<"u"?Te?T.errors&&Object.keys(T.errors).length===0:s!==!1&&Rs(s)?s(f):s:T.errors&&Object.keys(T.errors).length===0},[s,Te,T.errors,f]),Le=Vo({},T,{initialValues:p.current,initialErrors:m.current,initialTouched:g.current,initialStatus:y.current,handleBlur:fe,handleChange:ne,handleReset:xe,handleSubmit:Q,resetForm:j,setErrors:V,setFormikState:se,setFieldTouched:re,setFieldValue:J,setFieldError:G,setStatus:ee,setSubmitting:ce,setTouched:z,setValues:W,submitForm:le,validateForm:L,validateField:N,isValid:Ie,dirty:Te,unregisterField:U,registerField:F,getFieldProps:we,getFieldMeta:me,getFieldHelpers:be,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Le}function bl(e){var t=Tvt(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return v.useImperativeHandle(i,function(){return t}),v.createElement(Svt,{value:t},n?v.createElement(n,t):o?o(t):r?Rs(r)?r(t):Pvt(r)?null:v.Children.only(r):null)}function Ovt(e){var t={};if(e.inner){if(e.inner.length===0)return vh(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;Na(t,a.path)||(t=vh(t,a.path,a.message))}}return t}function Ivt(e,t,n,r){n===void 0&&(n=!1);var o=GL(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function GL(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||b7(o)?GL(o):o!==""?o:void 0}):b7(e[r])?t[r]=GL(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function kvt(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?BL(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=BL(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Mvt(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Avt(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var $vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function As(e){var t=v.useRef(e);return $vt(function(){t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function wl(e){var t=Mse(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,a=t.unregisterField,s=p1(e),l=s?e:{name:e},c=l.name,u=l.validate;v.useEffect(function(){return c&&i(c,{validate:u}),function(){c&&a(c)}},[i,a,c,u]);var d=v.useMemo(function(){return o(c)},[o,c]);return[n(l),r(c),d]}var ms=v.forwardRef(function(e,t){var n=e.action,r=kse(e,["action"]),o=n??"#",i=Mse(),a=i.handleReset,s=i.handleSubmit;return v.createElement("form",Vo({onSubmit:s,ref:t,onReset:a,action:o},r))});ms.displayName="Form";function fm(e){this._maxSize=e,this.clear()}fm.prototype.clear=function(){this._size=0,this._values=Object.create(null)};fm.prototype.get=function(e){return this._values[e]};fm.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Rvt=/[^.^\]^[]+|(?=\[\]|\.\.)/g,$se=/^\d+$/,Dvt=/^\d/,_vt=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Lvt=/^\s*(['"]?)(.*?)(\1)\s*$/,Mz=512,G7=new fm(Mz),q7=new fm(Mz),K7=new fm(Mz),bh={Cache:fm,split:qL,normalizePath:DR,setter:function(e){var t=DR(e);return q7.get(e)||q7.set(e,function(r,o){for(var i=0,a=t.length,s=r;i<a-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[i++]]}s[t[i]]=o})},getter:function(e,t){var n=DR(e);return K7.get(e)||K7.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Az(n)||$se.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Nvt(Array.isArray(e)?e:qL(e),t,n)}};function DR(e){return G7.get(e)||G7.set(e,qL(e).map(function(t){return t.replace(Lvt,"$2")}))}function qL(e){return e.match(Rvt)||[""]}function Nvt(e,t,n){var r=e.length,o,i,a,s;for(i=0;i<r;i++)o=e[i],o&&(Bvt(o)&&(o='"'+o+'"'),s=Az(o),a=!s&&/^\d+$/.test(o),t.call(n,o,s,a,i,e))}function Az(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Fvt(e){return e.match(Dvt)&&!e.match($se)}function jvt(e){return _vt.test(e)}function Bvt(e){return!Az(e)&&(Fvt(e)||jvt(e))}const zvt=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,pM=e=>e.match(zvt)||[],hM=e=>e[0].toUpperCase()+e.slice(1),$z=(e,t)=>pM(e).join(t).toLowerCase(),Rse=e=>pM(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Vvt=e=>hM(Rse(e)),Hvt=e=>$z(e,"_"),Uvt=e=>$z(e,"-"),Wvt=e=>hM($z(e," ")),Gvt=e=>pM(e).map(hM).join(" ");var _R={words:pM,upperFirst:hM,camelCase:Rse,pascalCase:Vvt,snakeCase:Hvt,kebabCase:Uvt,sentenceCase:Wvt,titleCase:Gvt},Rz={exports:{}};Rz.exports=function(e){return Dse(qvt(e),e)};Rz.exports.array=Dse;function Dse(e,t){var n=e.length,r=new Array(n),o={},i=n,a=Kvt(t),s=Yvt(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(c,u,d){if(d.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!o[u]){o[u]=!0;var p=a.get(c)||new Set;if(p=Array.from(p),u=p.length){d.add(c);do{var m=p[--u];l(m,s.get(m),d)}while(u);d.delete(c)}r[--n]=c}}}function qvt(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function Kvt(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function Yvt(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var Xvt=Rz.exports;const Qvt=jn(Xvt),Jvt=Object.prototype.toString,Zvt=Error.prototype.toString,ebt=RegExp.prototype.toString,tbt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",nbt=/^Symbol\((.*)\)(.*)$/;function rbt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Y7(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return rbt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return tbt.call(e).replace(nbt,"Symbol($1)");const r=Jvt.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Zvt.call(e)+"]":r==="RegExp"?ebt.call(e):null}function Bu(e,t){let n=Y7(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=Y7(this[r],t);return i!==null?i:o},2)}function _se(e){return e==null?[]:[].concat(e)}let Lse,Nse,Fse,obt=/\$\{\s*(\w+)\s*\}/g;Lse=Symbol.toStringTag;class X7{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Lse]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],_se(t).forEach(i=>{if(fa.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Nse=Symbol.hasInstance;Fse=Symbol.toStringTag;class fa extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(obt,(o,i)=>Bu(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new X7(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Fse]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,fa)}static[Nse](t){return X7[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let wc={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Bu(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Bu(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Bu(n,!0)}\``+o}},sa={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Nd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},KL={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YL={isValue:"${path} field must be ${value}"},XL={noUnknown:"${path} field has unspecified keys: ${unknown}"},iE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},ibt={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Bu(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Bu(n,!0)}\``}return fa.formatError(wc.notType,e)}};Object.assign(Object.create(null),{mixed:wc,string:sa,number:Nd,date:KL,object:XL,array:iE,boolean:YL,tuple:ibt});const mM=e=>e&&e.__isYupSchema__;class vO{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new vO(t,(s,l)=>{var c;let u=a(...s)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!mM(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const vP={context:"$",value:"."};class pm{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===vP.context,this.isValue=this.key[0]===vP.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?vP.context:this.isValue?vP.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&bh.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}pm.prototype.__isYupRef=!0;const Xl=e=>e==null;function rg(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:c,test:u,params:d,message:f,skipAbsent:p}=e;let{parent:m,context:g,abortEarly:y=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=o;function x(R){return pm.isRef(R)?R.getValue(n,m,g):R}function S(R={}){const _=Object.assign({value:n,originalValue:i,label:a.spec.label,path:R.path||r,spec:a.spec,disableStackTrace:R.disableStackTrace||b},d,R.params);for(const j of Object.keys(_))_[j]=x(_[j]);const L=new fa(fa.formatError(R.message||f,_),n,_.path,R.type||c,_.disableStackTrace);return L.params=_,L}const P=y?s:l;let E={path:r,parent:m,type:c,from:o.from,createError:S,resolve:x,options:o,originalValue:i,schema:a};const T=R=>{fa.isError(R)?P(R):R?l(null):P(S())},O=R=>{fa.isError(R)?P(R):s(R)};if(p&&Xl(n))return T(!0);let M;try{var I;if(M=u.call(E,n,E),typeof((I=M)==null?void 0:I.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(M).then(T,O)}}catch(R){O(R);return}T(M)}return t.OPTIONS=e,t}function abt(e,t,n,r=n){let o,i,a;return t?(bh.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class bO extends Set{describe(){const t=[];for(const n of this.values())t.push(pm.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new bO(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Hg(e,t=new Map){if(mM(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Hg(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Hg(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Hg(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Hg(o,t)}else throw Error(`Unable to clone ${e}`);return n}class ls{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new bO,this._blacklist=new bO,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(wc.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Hg(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Xl(i))return i;let a=Bu(t),s=Bu(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
attempted value: ${a}
-`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:a,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:c}=t,u=g=>{o||(o=!0,n(g,a))},d=g=>{o||(o=!0,r(g,a))},f=i.length,p=[];if(!f)return d([]);let m={value:a,originalValue:s,path:l,options:c,schema:this};for(let g=0;g<i.length;g++){const y=i[g];y(m,u,function(x){x&&(Array.isArray(x)?p.push(...x):p.push(x)),--f<=0&&d(p)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${o||""}[${l?s:`"${s}"`}]`:(o?`${o}.`:"")+t});return(d,f,p)=>this.resolve(u)._validate(c,u,f,p)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,c)=>{ia.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new ia(l,c,void 0,void 0,i)):a(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw ia.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new ia(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ia.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ia.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Eg(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Bm({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Bm({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=uc.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=uc.notNull){return this.nullability(!1,t)}required(t=uc.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=uc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Bm(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=Iae(t).map(i=>new Yh(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new HT(o,n):HT.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Bm({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=uc.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Bm({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=uc.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Bm({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(d=>d.name===l.name)===c)}}}Za.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Za.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=Tgt(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Za.prototype[e]=Za.prototype.oneOf;for(const e of["not","nope"])Za.prototype[e]=Za.prototype.notOneOf;function $ae(){return new Rae}class Rae extends Za{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=pL.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return jl(n)||n===!0}})}isFalse(t=pL.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return jl(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}$ae.prototype=Rae.prototype;const Ogt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Igt(e){const t=mL(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function mL(e){var t,n;const r=Ogt.exec(e);return r?{year:au(r[1]),month:au(r[2],1)-1,day:au(r[3],1),hour:au(r[4]),minute:au(r[5]),second:au(r[6]),millisecond:r[7]?au(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:au(r[10]),minuteOffset:au(r[11])}:null}function au(e,t=0){return Number(e)||t}let kgt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Mgt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Agt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,$gt="^\\d{4}-\\d{2}-\\d{2}",Rgt="\\d{2}:\\d{2}:\\d{2}",Dgt="(([+-]\\d{2}(:?\\d{2})?)|Z)",_gt=new RegExp(`${$gt}T${Rgt}(\\.\\d+)?${Dgt}$`),Lgt=e=>jl(e)||e===e.trim(),Ngt={}.toString();function Nc(){return new Dae}class Dae extends Za{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===Ngt?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||uc.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ea.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ea.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ea.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ea.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ea.email){return this.matches(kgt,{name:"email",message:t,excludeEmptyString:!0})}url(t=ea.url){return this.matches(Mgt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ea.uuid){return this.matches(Agt,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(_gt,{name:"datetime",message:n||ea.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ea.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=mL(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||ea.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=mL(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ea.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Lgt})}lowercase(t=ea.lowercase){return this.transform(n=>jl(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>jl(n)||n===n.toLowerCase()})}uppercase(t=ea.uppercase){return this.transform(n=>jl(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>jl(n)||n===n.toUpperCase()})}}Nc.prototype=Dae.prototype;let Fgt=e=>e!=+e;function sa(){return new _ae}class _ae extends Za{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Fgt(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Cd.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Cd.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Cd.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Cd.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Cd.positive){return this.moreThan(0,t)}negative(t=Cd.negative){return this.lessThan(0,t)}integer(t=Cd.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>jl(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>jl(o)?o:Math[t](o))}}sa.prototype=_ae.prototype;let Lae=new Date(""),jgt=e=>Object.prototype.toString.call(e)==="[object Date]";function US(){return new WS}class WS extends Za{constructor(){super({type:"date",check(t){return jgt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=Igt(t),isNaN(t)?WS.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Yh.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=fL.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=fL.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}WS.INVALID_DATE=Lae;US.prototype=WS.prototype;US.INVALID_DATE=Lae;function Bgt(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=nh.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Yh.isRef(s)&&s.isSibling?i(s.path,a):Dk(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return ygt.array(Array.from(r),n).reverse()}function e7(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function Nae(e){return(t,n)=>e7(e,t)-e7(e,n)}const Fae=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function _P(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=_P(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=_P(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(_P)}):"optional"in e?e.optional():e}const zgt=(e,t)=>{const n=[...nh.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=nh.getter(nh.join(n),!0)(e);return!!(o&&r in o)};let t7=e=>Object.prototype.toString.call(e)==="[object Object]";function Vgt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Hgt=Nae([]);function dl(e){return new jae(e)}class jae extends Za{constructor(t){super({type:"object",check(n){return t7(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Hgt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of s){let f=i[d],p=d in o;if(f){let m,g=o[d];c.path=(n.path?`${n.path}.`:"")+d,f=f.resolve({value:g,context:n.context,parent:l});let y=f instanceof Za?f.spec:void 0,b=y==null?void 0:y.strict;if(y!=null&&y.strip){u=u||d in o;continue}m=!n.__validating||!b?f.cast(o[d],c):o[d],m!==void 0&&(l[d]=m)}else p&&!a&&(l[d]=o[d]);(p!==d in l||l[d]!==o[d])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,c)=>{if(!s||!t7(c)){o(l,c);return}a=a||c;let u=[];for(let d of this._nodes){let f=this.fields[d];!f||Yh.isRef(f)||u.push(f.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:u,value:c,originalValue:a,options:n},r,d=>{o(d.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Bgt(t,n),r._sortErrors=Nae(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return _P(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=nh.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return zgt(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Fae)}noUnknown(t=!0,n=hL.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=Vgt(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hL.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Z$.camelCase)}snakeCase(){return this.transformKeys(Z$.snakeCase)}constantCase(){return this.transformKeys(t=>Z$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}dl.prototype=jae.prototype;function GB(e){return new Bae(e)}class Bae extends Za{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{var u;if(!s||!a||!this._typeCheck(c)){o(l,c);return}let d=new Array(c.length);for(let p=0;p<c.length;p++){var f;d[p]=a.asNestedTest({options:n,index:p,parent:c,parentPath:n.path,originalParent:(f=n.originalValue)!=null?f:t})}this.runTests({value:c,tests:d,originalValue:(u=n.originalValue)!=null?u:t,options:n},r,p=>o(p.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Fae)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Dk(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ou(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=DP.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||DP.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||DP.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}GB.prototype=Bae.prototype;const qB=({planId:e,entry:t,mealId:n,meals:r,closeFn:o})=>{const i=n===void 0?null:n,a=r===void 0?[]:r,[s,l]=qe(),c=gDe(e),u=yDe(e),[d,f]=v.useState(t?It.fromJSDate(t.datetime):It.now()),[p,m]=v.useState(i),g=dl({amount:sa().required(s("forms.fieldRequired")).max(1e3,s("forms.maxValue",{value:"1000"})).min(1,s("forms.minValue",{value:"1"})),ingredient:sa().required(s("forms.fieldRequired")),datetime:US().required(s("forms.fieldRequired"))});return C(cl,{initialValues:{datetime:new Date,amount:0,ingredient:0},validationSchema:g,onSubmit:async y=>{const b={...y,plan:e,meal:p,weight_unit:null,datetime:y.datetime.toISOString()};t?u.mutate({...b,id:t.id}):c.mutate(b),o&&o()},children:y=>C(as,{children:X(Gt,{spacing:2,children:[C($B,{callback:b=>y.setFieldValue("ingredient",b==null?void 0:b.data.id)}),C(gn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:C(co,{position:"end",children:s("nutrition.gramShort")})},error:y.touched.amount&&!!y.errors.amount,helperText:y.touched.amount&&y.errors.amount,...y.getFieldProps("amount")}),a.length>0&&C(Kl,{value:p,options:a.map(b=>b.id),getOptionLabel:b=>a.find(x=>x.id===b).displayName,onChange:(b,x)=>m(x),renderInput:b=>C(gn,{label:s("nutrition.meal"),value:p,...b})}),C(RS,{dateAdapter:Ok,adapterLocale:l.language,children:C(_ct,{format:"yyyy-MM-dd HH:mm",label:s("date"),value:d,disableFuture:!0,onChange:b=>{y.setFieldValue("datetime",b==null?void 0:b.toJSDate()),f(b)},shouldDisableDate:b=>(t&&ni(t.datetime)===ni(b.toJSDate()),!1)})}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[o!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>o(),children:s("close")}),C(yt,{color:"primary",variant:"contained",type:"submit",children:s("submit")})]})]})})})},KB=({plan:e,closeFn:t})=>{const[n]=qe(),r=pDe(),o=mDe(e==null?void 0:e.id),[i,a]=v.useState(e==null?void 0:e.hasAnyGoals),s=dl({description:Nc().required().max(25,n("forms.maxLength",{chars:"25"})).min(3,n("forms.minLength",{chars:"3"})),only_logging:$ae(),goal_energy:sa().notRequired().positive().max(6e3,n("forms.maxValue",{value:"6000kcal"})),goal_protein:sa().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_carbohydrates:sa().notRequired().positive().max(750,n("forms.maxValue",{value:"750"})),goal_fiber:sa().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_fat:sa().notRequired().positive().max(500,n("forms.maxValue",{value:"500"}))});return C(cl,{initialValues:{description:e?e.description:n("nutrition.plan"),only_logging:e?e.onlyLogging:!0,goal_energy:e?e.goalEnergy:null,goal_protein:e?e.goalProtein:null,goal_carbohydrates:e?e.goalCarbohydrates:null,goal_fiber:e?e.goalFiber:null,goal_fat:e?e.goalFat:null},validationSchema:s,onSubmit:async l=>{l.goal_energy=l.goal_energy?l.goal_energy:null,l.goal_protein=l.goal_protein?l.goal_protein:null,l.goal_carbohydrates=l.goal_carbohydrates?l.goal_carbohydrates:null,l.goal_fiber=l.goal_fiber?l.goal_fiber:null,l.goal_fat=l.goal_fat?l.goal_fat:null,i||(l.goal_energy=null,l.goal_protein=null,l.goal_carbohydrates=null,l.goal_fiber=null,l.goal_fat=null),e?o.mutate({...l,id:e.id}):r.mutate(l),t&&t()},children:l=>C(as,{children:X(Gt,{spacing:2,children:[C(gn,{fullWidth:!0,id:"description",label:n("description"),error:l.touched.description&&!!l.errors.description,helperText:l.touched.description&&l.errors.description,...l.getFieldProps("description")}),C(Hw,{children:C(mh,{label:n("nutrition.onlyLoggingHelpText"),control:C(Hu,{id:"onlyLogging",checked:l.values.only_logging,...l.getFieldProps("only_logging")})})}),C(Hw,{children:C(mh,{label:n("nutrition.useGoalsHelpText"),control:C(Hu,{id:"goalEnergy",checked:i,onChange:()=>a(!i)})})}),C(fS,{children:n("nutrition.useGoalsHelpTextLong")}),i&&X(Mt,{children:[C(gn,{fullWidth:!0,id:"energy",label:n("nutrition.goalEnergy"),error:l.touched.goal_energy&&!!l.errors.goal_energy,helperText:l.touched.goal_energy&&l.errors.goal_energy,...l.getFieldProps("goal_energy"),InputProps:{endAdornment:C(co,{position:"end",children:n("nutrition.kcal")})}}),X(Fe,{container:!0,spacing:1,children:[C(Fe,{size:4,children:C(gn,{id:"protein",label:n("nutrition.goalProtein"),error:l.touched.goal_protein&&!!l.errors.goal_protein,helperText:l.touched.goal_protein&&l.errors.goal_protein,...l.getFieldProps("goal_protein"),InputProps:{startAdornment:C(co,{position:"start",children:l.values.goal_protein!==null&&l.values.goal_protein!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_protein*zg.protein}):""}),endAdornment:C(co,{position:"end",children:n("nutrition.gramShort")})}})}),C(Fe,{size:4,children:C(gn,{id:"carbohydrates",label:n("nutrition.goalCarbohydrates"),error:l.touched.goal_carbohydrates&&!!l.errors.goal_carbohydrates,helperText:l.touched.goal_carbohydrates&&l.errors.goal_carbohydrates,...l.getFieldProps("goal_carbohydrates"),InputProps:{startAdornment:C(co,{position:"start",children:l.values.goal_carbohydrates!==null&&l.values.goal_carbohydrates!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_carbohydrates*zg.carbohydrates}):""}),endAdornment:C(co,{position:"end",children:n("nutrition.gramShort")})}})}),C(Fe,{size:4,children:C(gn,{id:"fat",label:n("nutrition.goalFat"),error:l.touched.goal_fat&&!!l.errors.goal_fat,helperText:l.touched.goal_fat&&l.errors.goal_fat,...l.getFieldProps("goal_fat"),InputProps:{startAdornment:C(co,{position:"start",children:l.values.goal_fat!==null&&l.values.goal_fat!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_fat*zg.fat}):""}),endAdornment:C(co,{position:"end",children:n("nutrition.gramShort")})}})})]}),C(Fe,{container:!0,spacing:1,children:C(Fe,{size:4,children:C(gn,{id:"fiber",label:n("nutrition.goalFiber"),error:l.touched.goal_fiber&&!!l.errors.goal_fiber,helperText:l.touched.goal_fiber&&l.errors.goal_fiber,...l.getFieldProps("goal_fiber"),InputProps:{startAdornment:C(co,{position:"start",children:n("nutrition.valueEnergyKcal",{value:0})}),endAdornment:C(co,{position:"end",children:n("nutrition.gramShort")})}})})})]}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},zae=()=>{const[e]=qe(),t=uDe();return C(Mt,{children:t.isLoading?C(bo,{}):C(Mt,{children:t.data!==null?C(Ugt,{plan:t.data}):C(DF,{title:e("nutritionalPlan"),modalContent:C(KB,{}),modalTitle:e("add")})})})};function Ugt(e){const[t,n]=qe(),[r,o]=Y.useState(!1),i=()=>o(!0),a=()=>o(!1);return X(Mt,{children:[X(io,{children:[C(Zl,{title:t("nutritionalPlan"),subheader:e.plan.description}),X(wi,{sx:{height:"500px",overflow:"auto"},children:[C(_rt,{percentage:e.plan.percentageValuesLoggedToday,planned:e.plan.plannedNutritionalValues,logged:e.plan.loggedNutritionalValuesToday}),C(ol,{children:e.plan.meals.map(s=>C(Wgt,{meal:s,planId:e.plan.id},s.id))})]}),X(os,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[C(yt,{size:"small",href:Pn(wn.NUTRITION_DETAIL,n.language,{id:e.plan.id}),children:t("seeDetails")}),C(Xl,{title:t("nutrition.logThisMealItem"),children:C(An,{onClick:i,children:C(hS,{})})})]})]}),C(Yi,{title:t("nutrition.addNutritionalDiary"),isOpen:r,closeFn:a,children:C(qB,{closeFn:a,planId:e.plan.id,meals:e.plan.meals})})]})}const Wgt=e=>{const[t,n]=qe(),r=_Z(e.planId),[o,i]=v.useState(!1),[a,s]=Y.useState(!1),l=()=>i(!o),c=(p,m)=>{m!=="clickaway"&&s(!1)},u=p=>{const m=[{plan:e.planId,meal:e.meal.id,mealItem:p.id,ingredient:p.ingredientId,weight_unit:p.weightUnitId,datetime:new Date().toISOString(),amount:p.amount}];r.mutate(m),s(!0)},d=e.meal.name?e.meal.name:kE(e.meal.time,n.language),f=e.meal.name?kE(e.meal.time,n.language):null;return X(Mt,{children:[X(Df,{onClick:l,selected:o,children:[C(zi,{children:o?C(ZJ,{}):C(Tv,{})}),C(go,{primary:d,secondary:f})]}),C(Ws,{in:o,timeout:"auto",unmountOnExit:!0,children:C(ol,{children:e.meal.items.map(p=>{var m,g,y,b;return X(Ja,{secondaryAction:C(Xl,{title:t("nutrition.logThisMealItem"),children:C(An,{edge:"end",onClick:()=>u(p),children:C(hS,{})})}),children:[C(kF,{children:C(Yl,{alt:(m=p.ingredient)==null?void 0:m.name,src:(y=(g=p.ingredient)==null?void 0:g.image)==null?void 0:y.url,sx:{width:45,height:45},children:C(Ju,{})})}),C(go,{primary:(b=p.ingredient)==null?void 0:b.name,secondary:Cn(p.amount,n.language)})]},p.id)})})}),C(HJ,{open:a,autoHideDuration:kZ,onClose:c,children:C(Bu,{onClose:c,severity:"success",sx:{width:"100%"},children:t("nutrition.diaryEntrySaved")})})]})},Gi=lt($.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Vae=lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),Ggt=lt($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),qgt=lt($.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),Kgt=lt($.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"Cached"),Ygt=lt($.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Xgt=lt([$.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),$.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt"),Hae=lt($.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Qgt=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Jgt=lt($.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"Collections"),Zgt=lt($.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),YB=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),eyt=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),tyt=lt($.jsx("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined"),Uae=lt($.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),nyt=lt($.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),Wae=lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Gae=lt($.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),ryt=lt($.jsx("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z"}),"Landscape"),oyt=lt($.jsx("path",{d:"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z"}),"LandscapeOutlined"),iyt=lt([$.jsx("path",{d:"M5 16h3.04l-1.52-2.03z",opacity:".3"},"0"),$.jsx("path",{d:"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z"},"1")],"LandscapeTwoTone"),ayt=lt($.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),GS=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),syt=lt($.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),lyt=lt([$.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),$.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera"),cyt=lt($.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),uyt=lt($.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),qae=lt($.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),dyt=e=>{var r;const t=e.avatarSize||40,n=e.iconSize||40;return C(Yl,{sx:{height:t,width:t},src:(r=e.image)==null?void 0:r.url,children:C(Ju,{sx:{height:n,width:n}})})};function Kae(e){return oo({queryKey:[N2e,e],queryFn:()=>I_e(e)})}function fyt(e,t=!1){return oo({queryKey:[B2e,e,t],queryFn:()=>M_e(e,t)})}function pyt(){return oo({queryKey:[F2e],queryFn:()=>k_e()})}function hyt(){return oo({queryKey:[j2e],queryFn:O_e})}/**
+`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:a,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:c}=t,u=g=>{o||(o=!0,n(g,a))},d=g=>{o||(o=!0,r(g,a))},f=i.length,p=[];if(!f)return d([]);let m={value:a,originalValue:s,path:l,options:c,schema:this};for(let g=0;g<i.length;g++){const y=i[g];y(m,u,function(x){x&&(Array.isArray(x)?p.push(...x):p.push(x)),--f<=0&&d(p)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${o||""}[${l?s:`"${s}"`}]`:(o?`${o}.`:"")+t});return(d,f,p)=>this.resolve(u)._validate(c,u,f,p)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,c)=>{fa.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new fa(l,c,void 0,void 0,i)):a(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw fa.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new fa(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(fa.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(fa.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Hg(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=rg({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=rg({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=wc.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=wc.notNull){return this.nullability(!1,t)}required(t=wc.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=wc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=rg(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=_se(t).map(i=>new pm(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new vO(o,n):vO.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=rg({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=wc.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=rg({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=wc.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=rg({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(d=>d.name===l.name)===c)}}}ls.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ls.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=abt(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])ls.prototype[e]=ls.prototype.oneOf;for(const e of["not","nope"])ls.prototype[e]=ls.prototype.notOneOf;function jse(){return new Bse}class Bse extends ls{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=YL.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Xl(n)||n===!0}})}isFalse(t=YL.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Xl(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}jse.prototype=Bse.prototype;const sbt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lbt(e){const t=QL(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function QL(e){var t,n;const r=sbt.exec(e);return r?{year:vu(r[1]),month:vu(r[2],1)-1,day:vu(r[3],1),hour:vu(r[4]),minute:vu(r[5]),second:vu(r[6]),millisecond:r[7]?vu(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:vu(r[10]),minuteOffset:vu(r[11])}:null}function vu(e,t=0){return Number(e)||t}let cbt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ubt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dbt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fbt="^\\d{4}-\\d{2}-\\d{2}",pbt="\\d{2}:\\d{2}:\\d{2}",hbt="(([+-]\\d{2}(:?\\d{2})?)|Z)",mbt=new RegExp(`${fbt}T${pbt}(\\.\\d+)?${hbt}$`),gbt=e=>Xl(e)||e===e.trim(),ybt={}.toString();function Kc(){return new zse}class zse extends ls{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===ybt?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||wc.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=sa.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=sa.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=sa.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||sa.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=sa.email){return this.matches(cbt,{name:"email",message:t,excludeEmptyString:!0})}url(t=sa.url){return this.matches(ubt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=sa.uuid){return this.matches(dbt,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(mbt,{name:"datetime",message:n||sa.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||sa.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=QL(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||sa.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=QL(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=sa.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:gbt})}lowercase(t=sa.lowercase){return this.transform(n=>Xl(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xl(n)||n===n.toLowerCase()})}uppercase(t=sa.uppercase){return this.transform(n=>Xl(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xl(n)||n===n.toUpperCase()})}}Kc.prototype=zse.prototype;let vbt=e=>e!=+e;function ha(){return new Vse}class Vse extends ls{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!vbt(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Nd.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Nd.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Nd.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Nd.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Nd.positive){return this.moreThan(0,t)}negative(t=Nd.negative){return this.lessThan(0,t)}integer(t=Nd.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Xl(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Xl(o)?o:Math[t](o))}}ha.prototype=Vse.prototype;let Hse=new Date(""),bbt=e=>Object.prototype.toString.call(e)==="[object Date]";function h1(){return new m1}class m1 extends ls{constructor(){super({type:"date",check(t){return bbt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=lbt(t),isNaN(t)?m1.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(pm.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=KL.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=KL.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}m1.INVALID_DATE=Hse;h1.prototype=m1.prototype;h1.INVALID_DATE=Hse;function wbt(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=bh.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),pm.isRef(s)&&s.isSibling?i(s.path,a):mM(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return Qvt.array(Array.from(r),n).reverse()}function Q7(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function Use(e){return(t,n)=>Q7(e,t)-Q7(e,n)}const Wse=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function aE(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=aE(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=aE(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(aE)}):"optional"in e?e.optional():e}const xbt=(e,t)=>{const n=[...bh.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=bh.getter(bh.join(n),!0)(e);return!!(o&&r in o)};let J7=e=>Object.prototype.toString.call(e)==="[object Object]";function Sbt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Cbt=Use([]);function xl(e){return new Gse(e)}class Gse extends ls{constructor(t){super({type:"object",check(n){return J7(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Cbt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of s){let f=i[d],p=d in o;if(f){let m,g=o[d];c.path=(n.path?`${n.path}.`:"")+d,f=f.resolve({value:g,context:n.context,parent:l});let y=f instanceof ls?f.spec:void 0,b=y==null?void 0:y.strict;if(y!=null&&y.strip){u=u||d in o;continue}m=!n.__validating||!b?f.cast(o[d],c):o[d],m!==void 0&&(l[d]=m)}else p&&!a&&(l[d]=o[d]);(p!==d in l||l[d]!==o[d])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,c)=>{if(!s||!J7(c)){o(l,c);return}a=a||c;let u=[];for(let d of this._nodes){let f=this.fields[d];!f||pm.isRef(f)||u.push(f.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:u,value:c,originalValue:a,options:n},r,d=>{o(d.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=wbt(t,n),r._sortErrors=Use(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return aE(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=bh.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return xbt(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Wse)}noUnknown(t=!0,n=XL.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=Sbt(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=XL.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(_R.camelCase)}snakeCase(){return this.transformKeys(_R.snakeCase)}constantCase(){return this.transformKeys(t=>_R.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}xl.prototype=Gse.prototype;function Dz(e){return new qse(e)}class qse extends ls{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{var u;if(!s||!a||!this._typeCheck(c)){o(l,c);return}let d=new Array(c.length);for(let p=0;p<c.length;p++){var f;d[p]=a.asNestedTest({options:n,index:p,parent:c,parentPath:n.path,originalParent:(f=n.originalValue)!=null?f:t})}this.runTests({value:c,tests:d,originalValue:(u=n.originalValue)!=null?u:t,options:n},r,p=>o(p.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Wse)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!mM(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Bu(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=iE.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||iE.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||iE.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}Dz.prototype=qse.prototype;const _z=({planId:e,entry:t,mealId:n,meals:r,closeFn:o})=>{const i=n===void 0?null:n,a=r===void 0?[]:r,[s,l]=Ue(),c=T_e(e),u=O_e(e),[d,f]=v.useState(t?kt.fromJSDate(t.datetime):kt.now()),[p,m]=v.useState(i),g=xl({amount:ha().required(s("forms.fieldRequired")).max(1e3,s("forms.maxValue",{value:"1000"})).min(1,s("forms.minValue",{value:"1"})),ingredient:ha().required(s("forms.fieldRequired")),datetime:h1().required(s("forms.fieldRequired"))});return C(bl,{initialValues:{datetime:new Date,amount:0,ingredient:0},validationSchema:g,onSubmit:async y=>{const b={...y,plan:e,meal:p,weight_unit:null,datetime:y.datetime.toISOString()};t?u.mutate({...b,id:t.id}):c.mutate(b),o&&o()},children:y=>C(ms,{children:X(Gt,{spacing:2,children:[C(wz,{callback:b=>y.setFieldValue("ingredient",b==null?void 0:b.data.id)}),C(mn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:C(go,{position:"end",children:s("nutrition.gramShort")})},error:y.touched.amount&&!!y.errors.amount,helperText:y.touched.amount&&y.errors.amount,...y.getFieldProps("amount")}),a.length>0&&C(ac,{value:p,options:a.map(b=>b.id),getOptionLabel:b=>a.find(x=>x.id===b).displayName,onChange:(b,x)=>m(x),renderInput:b=>C(mn,{label:s("nutrition.meal"),value:p,...b})}),C(t1,{dateAdapter:lM,adapterLocale:l.language,children:C(mft,{format:"yyyy-MM-dd HH:mm",label:s("date"),value:d,disableFuture:!0,onChange:b=>{y.setFieldValue("datetime",b==null?void 0:b.toJSDate()),f(b)},shouldDisableDate:b=>(t&&ci(t.datetime)===ci(b.toJSDate()),!1)})}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[o!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>o(),children:s("close")}),C(yt,{color:"primary",variant:"contained",type:"submit",children:s("submit")})]})]})})})},Lz=({plan:e,closeFn:t})=>{const[n]=Ue(),r=C_e(),o=E_e(e==null?void 0:e.id),[i,a]=v.useState(e==null?void 0:e.hasAnyGoals),s=xl({description:Kc().required().max(25,n("forms.maxLength",{chars:"25"})).min(3,n("forms.minLength",{chars:"3"})),only_logging:jse(),goal_energy:ha().notRequired().positive().max(6e3,n("forms.maxValue",{value:"6000kcal"})),goal_protein:ha().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_carbohydrates:ha().notRequired().positive().max(750,n("forms.maxValue",{value:"750"})),goal_fiber:ha().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_fat:ha().notRequired().positive().max(500,n("forms.maxValue",{value:"500"}))});return C(bl,{initialValues:{description:e?e.description:n("nutrition.plan"),only_logging:e?e.onlyLogging:!0,goal_energy:e?e.goalEnergy:null,goal_protein:e?e.goalProtein:null,goal_carbohydrates:e?e.goalCarbohydrates:null,goal_fiber:e?e.goalFiber:null,goal_fat:e?e.goalFat:null},validationSchema:s,onSubmit:async l=>{l.goal_energy=l.goal_energy?l.goal_energy:null,l.goal_protein=l.goal_protein?l.goal_protein:null,l.goal_carbohydrates=l.goal_carbohydrates?l.goal_carbohydrates:null,l.goal_fiber=l.goal_fiber?l.goal_fiber:null,l.goal_fat=l.goal_fat?l.goal_fat:null,i||(l.goal_energy=null,l.goal_protein=null,l.goal_carbohydrates=null,l.goal_fiber=null,l.goal_fat=null),e?o.mutate({...l,id:e.id}):r.mutate(l),t&&t()},children:l=>C(ms,{children:X(Gt,{spacing:2,children:[C(mn,{fullWidth:!0,id:"description",label:n("description"),error:l.touched.description&&!!l.errors.description,helperText:l.touched.description&&l.errors.description,...l.getFieldProps("description")}),C(px,{children:C($h,{label:n("nutrition.onlyLoggingHelpText"),control:C(td,{id:"onlyLogging",checked:l.values.only_logging,...l.getFieldProps("only_logging")})})}),C(px,{children:C($h,{label:n("nutrition.useGoalsHelpText"),control:C(td,{id:"goalEnergy",checked:i,onChange:()=>a(!i)})})}),C(_S,{children:n("nutrition.useGoalsHelpTextLong")}),i&&X(At,{children:[C(mn,{fullWidth:!0,id:"energy",label:n("nutrition.goalEnergy"),error:l.touched.goal_energy&&!!l.errors.goal_energy,helperText:l.touched.goal_energy&&l.errors.goal_energy,...l.getFieldProps("goal_energy"),InputProps:{endAdornment:C(go,{position:"end",children:n("nutrition.kcal")})}}),X(_e,{container:!0,spacing:1,children:[C(_e,{size:4,children:C(mn,{id:"protein",label:n("nutrition.goalProtein"),error:l.touched.goal_protein&&!!l.errors.goal_protein,helperText:l.touched.goal_protein&&l.errors.goal_protein,...l.getFieldProps("goal_protein"),InputProps:{startAdornment:C(go,{position:"start",children:l.values.goal_protein!==null&&l.values.goal_protein!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_protein*iy.protein}):""}),endAdornment:C(go,{position:"end",children:n("nutrition.gramShort")})}})}),C(_e,{size:4,children:C(mn,{id:"carbohydrates",label:n("nutrition.goalCarbohydrates"),error:l.touched.goal_carbohydrates&&!!l.errors.goal_carbohydrates,helperText:l.touched.goal_carbohydrates&&l.errors.goal_carbohydrates,...l.getFieldProps("goal_carbohydrates"),InputProps:{startAdornment:C(go,{position:"start",children:l.values.goal_carbohydrates!==null&&l.values.goal_carbohydrates!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_carbohydrates*iy.carbohydrates}):""}),endAdornment:C(go,{position:"end",children:n("nutrition.gramShort")})}})}),C(_e,{size:4,children:C(mn,{id:"fat",label:n("nutrition.goalFat"),error:l.touched.goal_fat&&!!l.errors.goal_fat,helperText:l.touched.goal_fat&&l.errors.goal_fat,...l.getFieldProps("goal_fat"),InputProps:{startAdornment:C(go,{position:"start",children:l.values.goal_fat!==null&&l.values.goal_fat!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_fat*iy.fat}):""}),endAdornment:C(go,{position:"end",children:n("nutrition.gramShort")})}})})]}),C(_e,{container:!0,spacing:1,children:C(_e,{size:4,children:C(mn,{id:"fiber",label:n("nutrition.goalFiber"),error:l.touched.goal_fiber&&!!l.errors.goal_fiber,helperText:l.touched.goal_fiber&&l.errors.goal_fiber,...l.getFieldProps("goal_fiber"),InputProps:{startAdornment:C(go,{position:"start",children:n("nutrition.valueEnergyKcal",{value:0})}),endAdornment:C(go,{position:"end",children:n("nutrition.gramShort")})}})})})]}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},Kse=()=>{const[e]=Ue(),t=w_e();return C(At,{children:t.isLoading?C(Po,{}):C(At,{children:t.data!==null?C(Pbt,{plan:t.data}):C(vj,{title:e("nutritionalPlan"),modalContent:C(Lz,{}),modalTitle:e("add")})})})};function Pbt(e){const[t,n]=Ue(),[r,o]=Y.useState(!1),i=()=>o(!0),a=()=>o(!1);return X(At,{children:[X(co,{children:[C(uc,{title:t("nutritionalPlan"),subheader:e.plan.description}),X(Oi,{sx:{height:"500px",overflow:"auto"},children:[C(Wot,{percentage:e.plan.percentageValuesLoggedToday,planned:e.plan.plannedNutritionalValues,logged:e.plan.loggedNutritionalValuesToday}),C(pl,{children:e.plan.meals.map(s=>C(Ebt,{meal:s,planId:e.plan.id},s.id))})]}),X(ps,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[C(yt,{size:"small",href:Sn(bn.NUTRITION_DETAIL,n.language,{id:e.plan.id}),children:t("seeDetails")}),C(lc,{title:t("nutrition.logThisMealItem"),children:C(In,{onClick:i,children:C(NS,{})})})]})]}),C(na,{title:t("nutrition.addNutritionalDiary"),isOpen:r,closeFn:a,children:C(_z,{closeFn:a,planId:e.plan.id,meals:e.plan.meals})})]})}const Ebt=e=>{const[t,n]=Ue(),r=Lee(e.planId),[o,i]=v.useState(!1),[a,s]=Y.useState(!1),l=()=>i(!o),c=(p,m)=>{m!=="clickaway"&&s(!1)},u=p=>{const m=[{plan:e.planId,meal:e.meal.id,mealItem:p.id,ingredient:p.ingredientId,weight_unit:p.weightUnitId,datetime:new Date().toISOString(),amount:p.amount}];r.mutate(m),s(!0)},d=e.meal.name?e.meal.name:tT(e.meal.time,n.language),f=e.meal.name?tT(e.meal.time,n.language):null;return X(At,{children:[X(Xf,{onClick:l,selected:o,children:[C(Ki,{children:o?C(eee,{}):C(Kv,{})}),C(xo,{primary:d,secondary:f})]}),C(el,{in:o,timeout:"auto",unmountOnExit:!0,children:C(pl,{children:e.meal.items.map(p=>{var m,g,y,b;return X(ss,{secondaryAction:C(lc,{title:t("nutrition.logThisMealItem"),children:C(In,{edge:"end",onClick:()=>u(p),children:C(NS,{})})}),children:[C(pj,{children:C(sc,{alt:(m=p.ingredient)==null?void 0:m.name,src:(y=(g=p.ingredient)==null?void 0:g.image)==null?void 0:y.url,sx:{width:45,height:45},children:C(fd,{})})}),C(xo,{primary:(b=p.ingredient)==null?void 0:b.name,secondary:xn(p.amount,n.language)})]},p.id)})})}),C(UZ,{open:a,autoHideDuration:Mee,onClose:c,children:C(Ju,{onClose:c,severity:"success",sx:{width:"100%"},children:t("nutrition.diaryEntrySaved")})})]})},Zi=lt($.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Yse=lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),Tbt=lt($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Obt=lt($.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),Ibt=lt($.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"Cached"),kbt=lt($.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Mbt=lt([$.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),$.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt"),Xse=lt($.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Abt=lt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),$bt=lt($.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"Collections"),Rbt=lt($.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),Nz=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Dbt=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),_bt=lt($.jsx("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined"),Qse=lt($.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Lbt=lt($.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),Jse=lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Zse=lt($.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Nbt=lt($.jsx("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z"}),"Landscape"),Fbt=lt($.jsx("path",{d:"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z"}),"LandscapeOutlined"),jbt=lt([$.jsx("path",{d:"M5 16h3.04l-1.52-2.03z",opacity:".3"},"0"),$.jsx("path",{d:"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z"},"1")],"LandscapeTwoTone"),Bbt=lt($.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),g1=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),zbt=lt($.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Vbt=lt([$.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),$.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera"),Hbt=lt($.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),Ubt=lt($.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),ele=lt($.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),Wbt=e=>{var r;const t=e.avatarSize||40,n=e.iconSize||40;return C(sc,{sx:{height:t,width:t},src:(r=e.image)==null?void 0:r.url,children:C(fd,{sx:{height:n,width:n}})})};function tle(e){return lo({queryKey:[qDe,e],queryFn:()=>FLe(e)})}function Gbt(e,t=!1){return lo({queryKey:[XDe,e,t],queryFn:()=>BLe(e,t)})}function qbt(){return lo({queryKey:[KDe],queryFn:()=>jLe()})}function Kbt(){return lo({queryKey:[YDe],queryFn:NLe})}/**
* @remix-run/router v1.20.0
*
* Copyright (c) Remix Software Inc.
@@ -368,7 +374,7 @@ attempted value: ${a}
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(this,arguments)}var Jd;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jd||(Jd={}));const n7="popstate";function myt(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return gL("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:WT(o)}return yyt(t,n,null,e)}function vo(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yae(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gyt(){return Math.random().toString(36).substr(2,8)}function r7(e,t){return{usr:e.state,key:e.key,idx:t}}function gL(e,t,n,r){return n===void 0&&(n=null),Dx({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ob(t):t,{state:n,key:t&&t.key||r||gyt()})}function WT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ob(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function yyt(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Jd.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Dx({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Jd.Pop;let y=u(),b=y==null?null:y-c;c=y,l&&l({action:s,location:g.location,delta:b})}function f(y,b){s=Jd.Push;let x=gL(g.location,y,b);c=u()+1;let S=r7(x,c),P=g.createHref(x);try{a.pushState(S,"",P)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(P)}i&&l&&l({action:s,location:g.location,delta:1})}function p(y,b){s=Jd.Replace;let x=gL(g.location,y,b);c=u();let S=r7(x,c),P=g.createHref(x);a.replaceState(S,"",P),i&&l&&l({action:s,location:g.location,delta:0})}function m(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof y=="string"?y:WT(y);return x=x.replace(/ $/,"%20"),vo(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return s},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(n7,d),l=y,()=>{o.removeEventListener(n7,d),l=null}},createHref(y){return t(o,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:p,go(y){return a.go(y)}};return g}var o7;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(o7||(o7={}));function vyt(e,t,n){return n===void 0&&(n="/"),byt(e,t,n,!1)}function byt(e,t,n,r){let o=typeof t=="string"?ob(t):t,i=XB(o.pathname||"/",n);if(i==null)return null;let a=Xae(e);wyt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=Ayt(i);s=kyt(a[l],c,r)}return s}function Xae(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(vo(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=pf([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(vo(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Xae(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Oyt(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Qae(i.path))o(i,a,l)}),t}function Qae(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Qae(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function wyt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Iyt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xyt=/^:[\w-]+$/,Syt=3,Cyt=2,Pyt=1,Eyt=10,Tyt=-2,i7=e=>e==="*";function Oyt(e,t){let n=e.split("/"),r=n.length;return n.some(i7)&&(r+=Tyt),t&&(r+=Cyt),n.filter(o=>!i7(o)).reduce((o,i)=>o+(xyt.test(i)?Syt:i===""?Pyt:Eyt),r)}function Iyt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function kyt(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=a7({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=a7({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:pf([i,d.pathname]),pathnameBase:_yt(pf([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=pf([i,d.pathnameBase]))}return a}function a7(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Myt(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let g=s[d]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return p&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Myt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yae(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Ayt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yae(!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 XB(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function $yt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ob(e):e;return{pathname:n?n.startsWith("/")?n:Ryt(n,t):t,search:Lyt(r),hash:Nyt(o)}}function Ryt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function eR(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Dyt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jae(e,t){let n=Dyt(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zae(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ob(e):(o=Dx({},e),vo(!o.pathname||!o.pathname.includes("?"),eR("?","pathname","search",o)),vo(!o.pathname||!o.pathname.includes("#"),eR("#","pathname","hash",o)),vo(!o.search||!o.search.includes("#"),eR("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=$yt(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const pf=e=>e.join("/").replace(/\/\/+/g,"/"),_yt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lyt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Nyt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fyt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ese=["post","put","patch","delete"];new Set(ese);const jyt=["get",...ese];new Set(jyt);/**
+ */function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}var hf;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hf||(hf={}));const Z7="popstate";function Ybt(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return JL("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:wO(o)}return Qbt(t,n,null,e)}function Co(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nle(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xbt(){return Math.random().toString(36).substr(2,8)}function eq(e,t){return{usr:e.state,key:e.key,idx:t}}function JL(e,t,n,r){return n===void 0&&(n=null),oS({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ib(t):t,{state:n,key:t&&t.key||r||Xbt()})}function wO(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ib(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qbt(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=hf.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(oS({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=hf.Pop;let y=u(),b=y==null?null:y-c;c=y,l&&l({action:s,location:g.location,delta:b})}function f(y,b){s=hf.Push;let x=JL(g.location,y,b);c=u()+1;let S=eq(x,c),P=g.createHref(x);try{a.pushState(S,"",P)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(P)}i&&l&&l({action:s,location:g.location,delta:1})}function p(y,b){s=hf.Replace;let x=JL(g.location,y,b);c=u();let S=eq(x,c),P=g.createHref(x);a.replaceState(S,"",P),i&&l&&l({action:s,location:g.location,delta:0})}function m(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof y=="string"?y:wO(y);return x=x.replace(/ $/,"%20"),Co(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return s},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Z7,d),l=y,()=>{o.removeEventListener(Z7,d),l=null}},createHref(y){return t(o,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:p,go(y){return a.go(y)}};return g}var tq;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tq||(tq={}));function Jbt(e,t,n){return n===void 0&&(n="/"),Zbt(e,t,n,!1)}function Zbt(e,t,n,r){let o=typeof t=="string"?Ib(t):t,i=Fz(o.pathname||"/",n);if(i==null)return null;let a=rle(e);e0t(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=d0t(i);s=c0t(a[l],c,r)}return s}function rle(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Co(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=If([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Co(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rle(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:s0t(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of ole(i.path))o(i,a,l)}),t}function ole(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=ole(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function e0t(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:l0t(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const t0t=/^:[\w-]+$/,n0t=3,r0t=2,o0t=1,i0t=10,a0t=-2,nq=e=>e==="*";function s0t(e,t){let n=e.split("/"),r=n.length;return n.some(nq)&&(r+=a0t),t&&(r+=r0t),n.filter(o=>!nq(o)).reduce((o,i)=>o+(t0t.test(i)?n0t:i===""?o0t:i0t),r)}function l0t(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function c0t(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=rq({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=rq({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:If([i,d.pathname]),pathnameBase:m0t(If([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=If([i,d.pathnameBase]))}return a}function rq(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=u0t(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let g=s[d]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return p&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function u0t(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nle(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d0t(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nle(!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 Fz(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f0t(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ib(e):e;return{pathname:n?n.startsWith("/")?n:p0t(n,t):t,search:g0t(r),hash:y0t(o)}}function p0t(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function LR(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function h0t(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ile(e,t){let n=h0t(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ale(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ib(e):(o=oS({},e),Co(!o.pathname||!o.pathname.includes("?"),LR("?","pathname","search",o)),Co(!o.pathname||!o.pathname.includes("#"),LR("#","pathname","hash",o)),Co(!o.search||!o.search.includes("#"),LR("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=f0t(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const If=e=>e.join("/").replace(/\/\/+/g,"/"),m0t=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g0t=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y0t=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function v0t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sle=["post","put","patch","delete"];new Set(sle);const b0t=["get",...sle];new Set(b0t);/**
* React Router v6.27.0
*
* Copyright (c) Remix Software Inc.
@@ -377,7 +383,7 @@ attempted value: ${a}
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_x.apply(this,arguments)}const QB=v.createContext(null),Byt=v.createContext(null),Xh=v.createContext(null),_k=v.createContext(null),Hf=v.createContext({outlet:null,matches:[],isDataRoute:!1}),tse=v.createContext(null);function zyt(e,t){let{relative:n}=t===void 0?{}:t;qS()||vo(!1);let{basename:r,navigator:o}=v.useContext(Xh),{hash:i,pathname:a,search:s}=rse(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:pf([r,a])),o.createHref({pathname:l,search:s,hash:i})}function qS(){return v.useContext(_k)!=null}function Lk(){return qS()||vo(!1),v.useContext(_k).location}function nse(e){v.useContext(Xh).static||v.useLayoutEffect(e)}function Qh(){let{isDataRoute:e}=v.useContext(Hf);return e?evt():Vyt()}function Vyt(){qS()||vo(!1);let e=v.useContext(QB),{basename:t,future:n,navigator:r}=v.useContext(Xh),{matches:o}=v.useContext(Hf),{pathname:i}=Lk(),a=JSON.stringify(Jae(o,n.v7_relativeSplatPath)),s=v.useRef(!1);return nse(()=>{s.current=!0}),v.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=Zae(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:pf([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}function Jh(){let{matches:e}=v.useContext(Hf),t=e[e.length-1];return t?t.params:{}}function rse(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Xh),{matches:o}=v.useContext(Hf),{pathname:i}=Lk(),a=JSON.stringify(Jae(o,r.v7_relativeSplatPath));return v.useMemo(()=>Zae(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Hyt(e,t){return Uyt(e,t)}function Uyt(e,t,n,r){qS()||vo(!1);let{navigator:o}=v.useContext(Xh),{matches:i}=v.useContext(Hf),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Lk(),u;if(t){var d;let y=typeof t=="string"?ob(t):t;l==="/"||(d=y.pathname)!=null&&d.startsWith(l)||vo(!1),u=y}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=vyt(e,{pathname:p}),g=Yyt(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:pf([l,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:pf([l,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&g?v.createElement(_k.Provider,{value:{location:_x({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Jd.Pop}},g):g}function Wyt(){let e=Zyt(),t=Fyt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const Gyt=v.createElement(Wyt,null);class qyt extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Hf.Provider,{value:this.props.routeContext},v.createElement(tse.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Kyt(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(QB);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Hf.Provider,{value:t},r)}function Yyt(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||vo(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let p,m=!1,g=null,y=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||Gyt,l&&(c<0&&f===0?(m=!0,y=null):c===f&&(m=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,f+1)),x=()=>{let S;return p?S=g:m?S=y:d.route.Component?S=v.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,v.createElement(Kyt,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(qyt,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var ose=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ose||{}),GT=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}(GT||{});function Xyt(e){let t=v.useContext(QB);return t||vo(!1),t}function Qyt(e){let t=v.useContext(Byt);return t||vo(!1),t}function Jyt(e){let t=v.useContext(Hf);return t||vo(!1),t}function ise(e){let t=Jyt(),n=t.matches[t.matches.length-1];return n.route.id||vo(!1),n.route.id}function Zyt(){var e;let t=v.useContext(tse),n=Qyt(GT.UseRouteError),r=ise(GT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function evt(){let{router:e}=Xyt(ose.UseNavigateStable),t=ise(GT.UseNavigateStable),n=v.useRef(!1);return nse(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,_x({fromRouteId:t},i)))},[e,t])}function Lt(e){vo(!1)}function tvt(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jd.Pop,navigator:i,static:a=!1,future:s}=e;qS()&&vo(!1);let l=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:l,navigator:i,static:a,future:_x({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=ob(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,g=v.useMemo(()=>{let y=XB(u,l);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:m},navigationType:o}},[l,u,d,f,p,m,o]);return g==null?null:v.createElement(Xh.Provider,{value:c},v.createElement(_k.Provider,{children:n,value:g}))}function nvt(e){let{children:t,location:n}=e;return Hyt(yL(t),n)}new Promise(()=>{});function yL(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,yL(r.props.children,i));return}r.type!==Lt&&vo(!1),!r.props.index||!r.props.children||vo(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=yL(r.props.children,i)),n.push(a)}),n}/**
+ */function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const jz=v.createContext(null),w0t=v.createContext(null),hm=v.createContext(null),gM=v.createContext(null),ap=v.createContext({outlet:null,matches:[],isDataRoute:!1}),lle=v.createContext(null);function x0t(e,t){let{relative:n}=t===void 0?{}:t;y1()||Co(!1);let{basename:r,navigator:o}=v.useContext(hm),{hash:i,pathname:a,search:s}=ule(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:If([r,a])),o.createHref({pathname:l,search:s,hash:i})}function y1(){return v.useContext(gM)!=null}function yM(){return y1()||Co(!1),v.useContext(gM).location}function cle(e){v.useContext(hm).static||v.useLayoutEffect(e)}function mm(){let{isDataRoute:e}=v.useContext(ap);return e?D0t():S0t()}function S0t(){y1()||Co(!1);let e=v.useContext(jz),{basename:t,future:n,navigator:r}=v.useContext(hm),{matches:o}=v.useContext(ap),{pathname:i}=yM(),a=JSON.stringify(ile(o,n.v7_relativeSplatPath)),s=v.useRef(!1);return cle(()=>{s.current=!0}),v.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=ale(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:If([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}function gm(){let{matches:e}=v.useContext(ap),t=e[e.length-1];return t?t.params:{}}function ule(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(hm),{matches:o}=v.useContext(ap),{pathname:i}=yM(),a=JSON.stringify(ile(o,r.v7_relativeSplatPath));return v.useMemo(()=>ale(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function C0t(e,t){return P0t(e,t)}function P0t(e,t,n,r){y1()||Co(!1);let{navigator:o}=v.useContext(hm),{matches:i}=v.useContext(ap),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=yM(),u;if(t){var d;let y=typeof t=="string"?Ib(t):t;l==="/"||(d=y.pathname)!=null&&d.startsWith(l)||Co(!1),u=y}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=Jbt(e,{pathname:p}),g=k0t(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:If([l,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:If([l,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&g?v.createElement(gM.Provider,{value:{location:iS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:hf.Pop}},g):g}function E0t(){let e=R0t(),t=v0t(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const T0t=v.createElement(E0t,null);class O0t extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(ap.Provider,{value:this.props.routeContext},v.createElement(lle.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I0t(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(jz);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(ap.Provider,{value:t},r)}function k0t(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Co(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let p,m=!1,g=null,y=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||T0t,l&&(c<0&&f===0?(m=!0,y=null):c===f&&(m=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,f+1)),x=()=>{let S;return p?S=g:m?S=y:d.route.Component?S=v.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,v.createElement(I0t,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(O0t,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var dle=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dle||{}),xO=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}(xO||{});function M0t(e){let t=v.useContext(jz);return t||Co(!1),t}function A0t(e){let t=v.useContext(w0t);return t||Co(!1),t}function $0t(e){let t=v.useContext(ap);return t||Co(!1),t}function fle(e){let t=$0t(),n=t.matches[t.matches.length-1];return n.route.id||Co(!1),n.route.id}function R0t(){var e;let t=v.useContext(lle),n=A0t(xO.UseRouteError),r=fle(xO.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function D0t(){let{router:e}=M0t(dle.UseNavigateStable),t=fle(xO.UseNavigateStable),n=v.useRef(!1);return cle(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,iS({fromRouteId:t},i)))},[e,t])}function Nt(e){Co(!1)}function _0t(e){let{basename:t="/",children:n=null,location:r,navigationType:o=hf.Pop,navigator:i,static:a=!1,future:s}=e;y1()&&Co(!1);let l=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:l,navigator:i,static:a,future:iS({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ib(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,g=v.useMemo(()=>{let y=Fz(u,l);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:m},navigationType:o}},[l,u,d,f,p,m,o]);return g==null?null:v.createElement(hm.Provider,{value:c},v.createElement(gM.Provider,{children:n,value:g}))}function L0t(e){let{children:t,location:n}=e;return C0t(ZL(t),n)}new Promise(()=>{});function ZL(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ZL(r.props.children,i));return}r.type!==Nt&&Co(!1),!r.props.index||!r.props.children||Co(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ZL(r.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.27.0
*
* Copyright (c) Remix Software Inc.
@@ -386,47 +392,47 @@ attempted value: ${a}
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function vL(){return vL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vL.apply(this,arguments)}function rvt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ovt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ivt(e,t){return e.button===0&&(!t||t==="_self")&&!ovt(e)}const avt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],svt="6";try{window.__reactRouterVersion=svt}catch{}const lvt="startTransition",s7=yw[lvt];function JB(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=myt({window:o,v5Compat:!0}));let a=i.current,[s,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=v.useCallback(d=>{c&&s7?s7(()=>l(d)):l(d)},[l,c]);return v.useLayoutEffect(()=>a.listen(u),[a,u]),v.createElement(tvt,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const cvt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uvt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zs=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=rvt(t,avt),{basename:p}=v.useContext(Xh),m,g=!1;if(typeof c=="string"&&uvt.test(c)&&(m=c,cvt))try{let S=new URL(window.location.href),P=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=XB(P.pathname,p);P.origin===S.origin&&E!=null?c=E+P.search+P.hash:g=!0}catch{}let y=zyt(c,{relative:o}),b=dvt(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function x(S){r&&r(S),S.defaultPrevented||b(S)}return v.createElement("a",vL({},f,{href:m||y,onClick:g||i?r:x,ref:n,target:l}))});var l7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(l7||(l7={}));var c7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(c7||(c7={}));function dvt(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Qh(),c=Lk(),u=rse(e,{relative:a});return v.useCallback(d=>{if(ivt(d,n)){d.preventDefault();let f=r!==void 0?r:WT(c)===WT(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}const u7=()=>{var a,s;const e=Jh(),t=e.routineId?parseInt(e.routineId):0,[n,r]=qe(),o=Kae(t),i=()=>window.location.href=Pn(wn.ROUTINE_ADD_DAY,r.language,{id:t});return C(Mt,{children:C(Vu,{maxWidth:"lg",children:o.isLoading?C(bo,{}):X(Mt,{children:[C(ut,{variant:"caption",children:(a=o.data)==null?void 0:a.description}),C(Gt,{spacing:2,sx:{mt:2},children:(s=o.data)==null?void 0:s.days.map(l=>C(pvt,{day:l},l.id))}),C(Ln,{textAlign:"center",sx:{mt:4},children:C(yt,{variant:"outlined",onClick:i,children:n("routines.addDay")})})]})})})};function ase(e){var a,s;const[t]=qe(),n=e.imageHeight||60,r=e.rowHeight||"100px",o=e.iconHeight||40,i=l=>t(l);return X(Fe,{container:!0,alignItems:"center",justifyContent:"center",sx:{height:r,p:0},children:[C(Fe,{size:{xs:3,md:2},children:C(dyt,{image:(a=e.setting.base)==null?void 0:a.mainImage,iconSize:o,avatarSize:n})}),C(Fe,{size:9,children:X(Gt,{spacing:0,children:[C(ut,{variant:"subtitle1",children:(s=e.setting.base)==null?void 0:s.getTranslation().name}),C(ut,{children:e.set.getSettingsTextRepresentation(e.setting.base,i)}),C(ut,{variant:"caption",children:e.set.comment})]})})]})}function fvt(e){const[t,n]=qe(),[r,o]=Y.useState(null),i=!!r,a=u=>{o(u.currentTarget)},s=()=>{o(null)},l=()=>window.location.href=Pn(wn.ROUTINE_EDIT_SET,n.language,{id:e.set.id}),c=()=>window.location.href=Pn(wn.ROUTINE_DELETE_SET,n.language,{id:e.set.id});return X(Fe,{container:!0,spacing:2,justifyContent:"space-between",alignItems:"flex-start",children:[C(Fe,{size:11,children:e.set.settingsFiltered.map(u=>C(ase,{setting:u,set:e.set},u.id))}),X(Fe,{textAlign:"right",size:1,children:[C(An,{"aria-label":"settings",onClick:a,children:C(GS,{fontSize:"small"})}),X(is,{id:"basic-menu",anchorEl:r,open:i,onClose:s,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:l,children:t("edit")}),C(tn,{onClick:c,children:t("delete")})]})]})]})}const pvt=e=>{const[t,n]=Y.useState(null),r=!!t,o=f=>{n(f.currentTarget)},i=()=>{n(null)},[a,s]=qe(),l=()=>window.location.href=Pn(wn.ROUTINE_EDIT_DAY,s.language,{id:e.day.id}),c=()=>window.location.href=Pn(wn.ROUTINE_ADD_LOG,s.language,{id:e.day.id}),u=()=>window.location.href=Pn(wn.ROUTINE_DELETE_DAY,s.language,{id:e.day.id}),d=()=>window.location.href=Pn(wn.ROUTINE_ADD_SET,s.language,{id:e.day.id});return X(io,{sx:{minWidth:275},children:[C(Zl,{sx:{bgcolor:"lightgray"},action:C(An,{"aria-label":"settings",onClick:o,children:C(GS,{})}),title:e.day.description,subheader:e.day.daysOfWeek.map(f=>PZ[f-1]).join(", ")}),X(is,{id:"basic-menu",anchorEl:t,open:r,onClose:i,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:c,children:a("routines.addWeightLog")}),C(tn,{onClick:l,children:a("edit")}),C(Qa,{}),X(tn,{onClick:u,children:[C(YB,{}),a("delete")]})]}),C(wi,{children:C(Gt,{divider:C(Qa,{flexItem:!0}),children:e.day.sets.map((f,p)=>C(fvt,{set:f,index:p},f.id))})}),C(os,{children:C(An,{onClick:d,children:C(Gi,{})})})]})},sse=()=>{const[e,t]=qe(),n=hyt();return C(Mt,{children:n.isLoading?C(bo,{}):C(Mt,{children:n.data!==null?C(hvt,{routine:n.data}):C(DF,{title:e("routines.routine"),link:Pn(wn.ROUTINE_ADD,t.language)})})})},hvt=e=>{const[t,n]=qe();return X(io,{children:[C(Zl,{title:t("routines.routine"),subheader:e.routine.name??"."}),C(wi,{sx:{height:"510px",overflow:"auto"},children:C(ol,{children:e.routine.days.map(r=>C(mvt,{day:r},r.id))})}),C(os,{children:C(yt,{size:"small",href:Pn(wn.ROUTINE_DETAIL,n.language,{id:e.routine.id}),children:t("seeDetails")})})]})},mvt=e=>{const[t,n]=v.useState(!1);return X(Mt,{children:[X(Df,{onClick:()=>n(!t),selected:t,children:[C(zi,{children:t?C(ZJ,{}):C(Tv,{})}),C(go,{primary:e.day.description,secondary:e.day.daysOfWeek.map(o=>PZ[o-1]).join(", ")})]}),C(Ws,{in:t,timeout:"auto",unmountOnExit:!0,children:e.day.sets.map(o=>C("div",{children:o.settingsFiltered.map(i=>C(ase,{setting:i,set:o,imageHeight:45,iconHeight:25,rowHeight:"70px"},i.id))},o.id))})]})};function KS(e="lastWeek"){return oo({queryKey:[En.BODY_WEIGHT,e],queryFn:()=>ODe(e)})}const gvt=()=>{const e=gr();return $r({mutationFn:t=>IDe(t),onSuccess:()=>e.invalidateQueries({queryKey:[En.BODY_WEIGHT]})})},yvt=()=>{const e=gr();return $r({mutationFn:t=>MDe(t),onError:t=>{console.log(t)},onSuccess:()=>e.invalidateQueries({queryKey:[En.BODY_WEIGHT]})})},vvt=()=>{const e=gr();return $r({mutationFn:t=>kDe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[En.BODY_WEIGHT]})}})},ib=({weightEntry:e,closeFn:t})=>{const n=KS(),r=yvt(),o=vvt(),[i,a]=v.useState(e?It.fromJSDate(e.date):It.now),[s,l]=qe(),c=dl({weight:sa().min(30,"Min weight is 30 kg").max(300,"Max weight is 300 kg").required("Weight field is required")});return n.isLoading?C(bo,{}):C(cl,{initialValues:{weight:e?e.weight:0,date:ni(e?e.date:new Date)},validationSchema:c,onSubmit:async u=>{if(e){e.weight=u.weight,e.date=new Date(u.date);try{o.mutate(e)}catch{}}else{e=new LZ(new Date(u.date),u.weight);try{r.mutate(e)}catch{}}t&&t()},children:u=>C(as,{children:X(Gt,{spacing:2,children:[C(gn,{fullWidth:!0,id:"weight",label:s("weight"),error:u.touched.weight&&!!u.touched.weight,helperText:u.touched.weight&&u.errors.weight,...u.getFieldProps("weight")}),C(RS,{dateAdapter:Ok,adapterLocale:l.language,children:C(joe,{format:"yyyy-MM-dd",label:s("date"),value:i,slotProps:{textField:{variant:"outlined"}},disableFuture:!0,onChange:d=>{d&&u.setFieldValue("date",d.toJSDate()),a(d)},shouldDisableDate:d=>e&&ni(e.date)===d.toISODate()?!1:d?n.data.some(f=>ni(f.date)===d.toISODate()):!1})}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:s("submit")})})]})})})},bvt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function wvt(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,i);return(s,l)=>{const c=l.options.name;if(c&&c.startsWith("Mui")&&!l.options.link&&!t){if(bvt.includes(s.key))return`Mui-${s.key}`;const u=`${o}${c}-${s.key}`;return!l.options.theme[MY]||r!==""?u:`${u}-${a()}`}return`${o}${n}${a()}`}}var d7=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},YS=(typeof window>"u"?"undefined":d7(window))==="object"&&(typeof document>"u"?"undefined":d7(document))==="object"&&document.nodeType===9;function Lx(e){"@babel/helpers - typeof";return Lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lx(e)}function xvt(e,t){if(Lx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sv(e){var t=xvt(e,"string");return Lx(t)=="symbol"?t:t+""}function Svt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sv(r.key),r)}}function lse(e,t,n){return t&&Svt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Cvt={}.constructor;function bL(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(bL);if(e.constructor!==Cvt)return e;var t={};for(var n in e)t[n]=bL(e[n]);return t}function ZB(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,o=bL(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var f7=function(t,n){for(var r="",o=0;o<t.length&&t[o]!=="!important";o++)r&&(r+=n),r+=t[o];return r},rh=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=f7(t[r]," ");else n=f7(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function ab(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
-`,space:" "}}function u0(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Nx(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var o=n,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;n.format===!1&&(a=-1/0);var l=ab(n),c=l.linebreak,u=l.space;if(e&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var f=s[d];for(var p in f){var m=f[p];m!=null&&(r&&(r+=c),r+=u0(p+":"+u+rh(m)+";",a))}}else for(var g in s){var y=s[g];y!=null&&(r&&(r+=c),r+=u0(g+":"+u+rh(y)+";",a))}for(var b in t){var x=t[b];x!=null&&b!=="fallbacks"&&(r&&(r+=c),r+=u0(b+":"+u+rh(x)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+c+r+c),u0(""+e+u+"{"+r,a)+u0("}",a))}var Pvt=/([[\].#*$><+~=|^:(),"'`\s])/g,p7=typeof CSS<"u"&&CSS.escape,ez=function(e){return p7?p7(e):e.replace(Pvt,"\\$1")},cse=function(){function e(n,r,o){this.type="style",this.isProcessed=!1;var i=o.sheet,a=o.Renderer;this.key=n,this.options=o,this.style=r,i?this.renderer=i.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,o,i){if(o===void 0)return this.style[r];var a=i?i.force:!1;if(!a&&this.style[r]===o)return this;var s=o;(!i||i.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,r,this));var l=s==null||s===!1,c=r in this.style;if(l&&!c&&!a)return this;var u=l&&c;if(u?delete this.style[r]:this.style[r]=s,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,s),this;var d=this.options.sheet;return d&&d.attached,this},e}(),wL=function(e){oS(t,e);function t(r,o,i){var a;a=e.call(this,r,o,i)||this;var s=i.selector,l=i.scoped,c=i.sheet,u=i.generateId;return s?a.selectorText=s:l!==!1&&(a.id=u(z2(z2(a)),c),a.selectorText="."+ez(a.id)),a}var n=t.prototype;return n.applyTo=function(o){var i=this.renderer;if(i){var a=this.toJSON();for(var s in a)i.setProperty(o,s,a[s])}return this},n.toJSON=function(){var o={};for(var i in this.style){var a=this.style[i];typeof a!="object"?o[i]=a:Array.isArray(a)&&(o[i]=rh(a))}return o},n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?D({},o,{allowEmpty:!0}):o;return Nx(this.selectorText,this.style,s)},lse(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,a=this.renderable;if(!(!a||!i)){var s=i.setSelector(a,o);s||i.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(cse),Evt={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new wL(t,n,r)}},tR={indent:1,children:!0},Tvt=/@([\w-]+)/,Ovt=function(){function e(n,r,o){this.type="conditional",this.isProcessed=!1,this.key=n;var i=n.match(Tvt);this.at=i?i[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new Nk(D({},o,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,o,i){var a=this.rules.add(r,o,i);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,o,i){var a=this.rules.replace(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=tR);var o=ab(r),i=o.linebreak;if(r.indent==null&&(r.indent=tR.indent),r.children==null&&(r.children=tR.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+i+a+i+"}":""},e}(),Ivt=/@container|@media|@supports\s+/,kvt={onCreateRule:function(t,n,r){return Ivt.test(t)?new Ovt(t,n,r):null}},nR={indent:1,children:!0},Mvt=/@keyframes\s+([\w-]+)/,xL=function(){function e(n,r,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=n.match(Mvt);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var a=o.scoped,s=o.sheet,l=o.generateId;this.id=a===!1?this.name:ez(l(this,s)),this.rules=new Nk(D({},o,{parent:this}));for(var c in r)this.rules.add(c,r[c],D({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=nR);var o=ab(r),i=o.linebreak;if(r.indent==null&&(r.indent=nR.indent),r.children==null&&(r.children=nR.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+i+a+i),this.at+" "+this.id+" {"+a+"}"},e}(),Avt=/@keyframes\s+/,$vt=/\$([\w-]+)/g,SL=function(t,n){return typeof t=="string"?t.replace($vt,function(r,o){return o in n?n[o]:r}):t},h7=function(t,n,r){var o=t[n],i=SL(o,r);i!==o&&(t[n]=i)},Rvt={onCreateRule:function(t,n,r){return typeof t=="string"&&Avt.test(t)?new xL(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&h7(t,"animation-name",r.keyframes),"animation"in t&&h7(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var o=r.options.sheet;if(!o)return t;switch(n){case"animation":return SL(t,o.keyframes);case"animation-name":return SL(t,o.keyframes);default:return t}}},Dvt=function(e){oS(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?D({},o,{allowEmpty:!0}):o;return Nx(this.key,this.style,s)},t}(cse),_vt={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new Dvt(t,n,r):null}},Lvt=function(){function e(n,r,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){var o=ab(r),i=o.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=Nx(this.at,this.style[s]),this.style[s+1]&&(a+=i);return a}return Nx(this.at,this.style,r)},e}(),Nvt=/@font-face/,Fvt={onCreateRule:function(t,n,r){return Nvt.test(t)?new Lvt(t,n,r):null}},jvt=function(){function e(n,r,o){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){return Nx(this.key,this.style,r)},e}(),Bvt={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new jvt(t,n,r):null}},zvt=function(){function e(n,r,o){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=o}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var o="",i=0;i<this.value.length;i++)o+=this.key+" "+this.value[i]+";",this.value[i+1]&&(o+=`
-`);return o}return this.key+" "+this.value+";"},e}(),Vvt={"@charset":!0,"@import":!0,"@namespace":!0},Hvt={onCreateRule:function(t,n,r){return t in Vvt?new zvt(t,n,r):null}},m7=[Evt,kvt,Rvt,_vt,Fvt,Bvt,Hvt],Uvt={process:!0},g7={force:!0,process:!0},Nk=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,o,i){var a=this.options,s=a.parent,l=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,f=a.scoped,p=D({classes:this.classes,parent:s,sheet:l,jss:c,Renderer:u,generateId:d,scoped:f,name:r,keyframes:this.keyframes,selector:void 0},i),m=r;r in this.raw&&(m=r+"-d"+this.counter++),this.raw[m]=o,m in this.classes&&(p.selector="."+ez(this.classes[m]));var g=ZB(m,o,p);if(!g)return null;this.register(g);var y=p.index===void 0?this.index.length:p.index;return this.index.splice(y,0,g),g},t.replace=function(r,o,i){var a=this.get(r),s=this.index.indexOf(a);a&&this.remove(a);var l=i;return s!==-1&&(l=D({},i,{index:s})),this.add(r,o,l)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof wL?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof xL&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof wL?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof xL&&delete this.keyframes[r.name]},t.update=function(){var r,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(r,o,i){i===void 0&&(i=Uvt);var a=this.options,s=a.jss.plugins,l=a.sheet;if(r.rules instanceof e){r.rules.update(o,i);return}var c=r.style;if(s.onUpdate(o,r,l,i),i.process&&c&&c!==r.style){s.onProcessStyle(r.style,r,l);for(var u in r.style){var d=r.style[u],f=c[u];d!==f&&r.prop(u,d,g7)}for(var p in c){var m=r.style[p],g=c[p];m==null&&m!==g&&r.prop(p,null,g7)}}},t.toString=function(r){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=ab(r),l=s.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(r);!d&&!a||(o&&(o+=l),o+=d)}return o},e}(),use=function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=D({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new Nk(this.options);for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(r,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(r,o,i){var a=this.rules.get(r);if(!a)return this.addRule(r,o,i);var s=this.rules.replace(r,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,o){var i=[];for(var a in r){var s=this.addRule(a,r[a],o);s&&i.push(s)}return i},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var o=typeof r=="object"?r:this.rules.get(r);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,o,i){return this.rules.updateOne(r,o,i),this},t.toString=function(r){return this.rules.toString(r)},e}(),Wvt=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](r,o,i);if(s)return s}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var o=r.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](r,o);r.style&&this.onProcessStyle(r.style,r,o),r.isProcessed=!0}},t.onProcessStyle=function(r,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(r){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](r)},t.onUpdate=function(r,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](r,o,i,a)},t.onChangeValue=function(r,o,i){for(var a=r,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(r,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(r)===-1&&(i.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a&&a[l].push(s[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Gvt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var o=this.registry,i=r.options.index;if(o.indexOf(r)===-1){if(o.length===0||i>=this.index){o.push(r);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var o=this.registry.indexOf(r);this.registry.splice(o,1)},t.toString=function(r){for(var o=r===void 0?{}:r,i=o.attached,a=Ue(o,["attached"]),s=ab(a),l=s.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];i!=null&&d.attached!==i||(c&&(c+=l),c+=d.toString(a))}return c},lse(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),pw=new Gvt,CL=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),PL="2f1acc6c3a606b082e5eef5e54414ffb";CL[PL]==null&&(CL[PL]=0);var y7=CL[PL]++,v7=function(t){t===void 0&&(t={});var n=0,r=function(i,a){n+=1;var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(l||"c")+y7+s+n:l+i.key+"-"+y7+(s?"-"+s:"")+"-"+n};return r},dse=function(t){var n;return function(){return n||(n=t()),n}},qvt=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch{return""}},Kvt=function(t,n,r){try{var o=r;if(Array.isArray(r)&&(o=rh(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(n,a,i>-1?"important":"")}}catch{return!1}return!0},Yvt=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch{}},Xvt=function(t,n){return t.selectorText=n,t.selectorText===n},fse=dse(function(){return document.querySelector("head")});function Qvt(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Jvt(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Zvt(e){for(var t=fse(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function ebt(e){var t=pw.registry;if(t.length>0){var n=Qvt(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Jvt(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var o=Zvt(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function tbt(e,t){var n=t.insertionPoint,r=ebt(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}fse().appendChild(e)}var nbt=dse(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),b7=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch{return!1}return t.cssRules[r]},w7=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},rbt=function(){var t=document.createElement("style");return t.textContent=`
-`,t},obt=function(){function e(n){this.getPropertyValue=qvt,this.setProperty=Kvt,this.removeProperty=Yvt,this.setSelector=Xvt,this.hasInsertedRules=!1,this.cssRules=[],n&&pw.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},o=r.media,i=r.meta,a=r.element;this.element=a||rbt(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var s=nbt();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){tbt(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
+ */function eN(){return eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eN.apply(this,arguments)}function N0t(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function F0t(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function j0t(e,t){return e.button===0&&(!t||t==="_self")&&!F0t(e)}const B0t=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],z0t="6";try{window.__reactRouterVersion=z0t}catch{}const V0t="startTransition",oq=Ry[V0t];function Bz(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=Ybt({window:o,v5Compat:!0}));let a=i.current,[s,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=v.useCallback(d=>{c&&oq?oq(()=>l(d)):l(d)},[l,c]);return v.useLayoutEffect(()=>a.listen(u),[a,u]),v.createElement(_0t,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const H0t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U0t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xs=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=N0t(t,B0t),{basename:p}=v.useContext(hm),m,g=!1;if(typeof c=="string"&&U0t.test(c)&&(m=c,H0t))try{let S=new URL(window.location.href),P=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=Fz(P.pathname,p);P.origin===S.origin&&E!=null?c=E+P.search+P.hash:g=!0}catch{}let y=x0t(c,{relative:o}),b=W0t(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function x(S){r&&r(S),S.defaultPrevented||b(S)}return v.createElement("a",eN({},f,{href:m||y,onClick:g||i?r:x,ref:n,target:l}))});var iq;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iq||(iq={}));var aq;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(aq||(aq={}));function W0t(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=mm(),c=yM(),u=ule(e,{relative:a});return v.useCallback(d=>{if(j0t(d,n)){d.preventDefault();let f=r!==void 0?r:wO(c)===wO(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}const sq=()=>{var a,s;const e=gm(),t=e.routineId?parseInt(e.routineId):0,[n,r]=Ue(),o=tle(t),i=()=>window.location.href=Sn(bn.ROUTINE_ADD_DAY,r.language,{id:t});return C(At,{children:C(ed,{maxWidth:"lg",children:o.isLoading?C(Po,{}):X(At,{children:[C(ut,{variant:"caption",children:(a=o.data)==null?void 0:a.description}),C(Gt,{spacing:2,sx:{mt:2},children:(s=o.data)==null?void 0:s.days.map(l=>C(q0t,{day:l},l.id))}),C($n,{textAlign:"center",sx:{mt:4},children:C(yt,{variant:"outlined",onClick:i,children:n("routines.addDay")})})]})})})};function ple(e){var a,s;const[t]=Ue(),n=e.imageHeight||60,r=e.rowHeight||"100px",o=e.iconHeight||40,i=l=>t(l);return X(_e,{container:!0,alignItems:"center",justifyContent:"center",sx:{height:r,p:0},children:[C(_e,{size:{xs:3,md:2},children:C(Wbt,{image:(a=e.setting.base)==null?void 0:a.mainImage,iconSize:o,avatarSize:n})}),C(_e,{size:9,children:X(Gt,{spacing:0,children:[C(ut,{variant:"subtitle1",children:(s=e.setting.base)==null?void 0:s.getTranslation().name}),C(ut,{children:e.set.getSettingsTextRepresentation(e.setting.base,i)}),C(ut,{variant:"caption",children:e.set.comment})]})})]})}function G0t(e){const[t,n]=Ue(),[r,o]=Y.useState(null),i=!!r,a=u=>{o(u.currentTarget)},s=()=>{o(null)},l=()=>window.location.href=Sn(bn.ROUTINE_EDIT_SET,n.language,{id:e.set.id}),c=()=>window.location.href=Sn(bn.ROUTINE_DELETE_SET,n.language,{id:e.set.id});return X(_e,{container:!0,spacing:2,justifyContent:"space-between",alignItems:"flex-start",children:[C(_e,{size:11,children:e.set.settingsFiltered.map(u=>C(ple,{setting:u,set:e.set},u.id))}),X(_e,{textAlign:"right",size:1,children:[C(In,{"aria-label":"settings",onClick:a,children:C(g1,{fontSize:"small"})}),X(hs,{id:"basic-menu",anchorEl:r,open:i,onClose:s,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:l,children:t("edit")}),C(nn,{onClick:c,children:t("delete")})]})]})]})}const q0t=e=>{const[t,n]=Y.useState(null),r=!!t,o=f=>{n(f.currentTarget)},i=()=>{n(null)},[a,s]=Ue(),l=()=>window.location.href=Sn(bn.ROUTINE_EDIT_DAY,s.language,{id:e.day.id}),c=()=>window.location.href=Sn(bn.ROUTINE_ADD_LOG,s.language,{id:e.day.id}),u=()=>window.location.href=Sn(bn.ROUTINE_DELETE_DAY,s.language,{id:e.day.id}),d=()=>window.location.href=Sn(bn.ROUTINE_ADD_SET,s.language,{id:e.day.id});return X(co,{sx:{minWidth:275},children:[C(uc,{sx:{bgcolor:"lightgray"},action:C(In,{"aria-label":"settings",onClick:o,children:C(g1,{})}),title:e.day.description,subheader:e.day.daysOfWeek.map(f=>Eee[f-1]).join(", ")}),X(hs,{id:"basic-menu",anchorEl:t,open:r,onClose:i,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:c,children:a("routines.addWeightLog")}),C(nn,{onClick:l,children:a("edit")}),C(as,{}),X(nn,{onClick:u,children:[C(Nz,{}),a("delete")]})]}),C(Oi,{children:C(Gt,{divider:C(as,{flexItem:!0}),children:e.day.sets.map((f,p)=>C(G0t,{set:f,index:p},f.id))})}),C(ps,{children:C(In,{onClick:d,children:C(Zi,{})})})]})},hle=()=>{const[e,t]=Ue(),n=Kbt();return C(At,{children:n.isLoading?C(Po,{}):C(At,{children:n.data!==null?C(K0t,{routine:n.data}):C(vj,{title:e("routines.routine"),link:Sn(bn.ROUTINE_ADD,t.language)})})})},K0t=e=>{const[t,n]=Ue();return X(co,{children:[C(uc,{title:t("routines.routine"),subheader:e.routine.name??"."}),C(Oi,{sx:{height:"510px",overflow:"auto"},children:C(pl,{children:e.routine.days.map(r=>C(Y0t,{day:r},r.id))})}),C(ps,{children:C(yt,{size:"small",href:Sn(bn.ROUTINE_DETAIL,n.language,{id:e.routine.id}),children:t("seeDetails")})})]})},Y0t=e=>{const[t,n]=v.useState(!1);return X(At,{children:[X(Xf,{onClick:()=>n(!t),selected:t,children:[C(Ki,{children:t?C(eee,{}):C(Kv,{})}),C(xo,{primary:e.day.description,secondary:e.day.daysOfWeek.map(o=>Eee[o-1]).join(", ")})]}),C(el,{in:t,timeout:"auto",unmountOnExit:!0,children:e.day.sets.map(o=>C("div",{children:o.settingsFiltered.map(i=>C(ple,{setting:i,set:o,imageHeight:45,iconHeight:25,rowHeight:"70px"},i.id))},o.id))})]})};function v1(e="lastWeek"){return lo({queryKey:[Cn.BODY_WEIGHT,e],queryFn:()=>N_e(e)})}const X0t=()=>{const e=gr();return Rr({mutationFn:t=>F_e(t),onSuccess:()=>e.invalidateQueries({queryKey:[Cn.BODY_WEIGHT]})})},Q0t=()=>{const e=gr();return Rr({mutationFn:t=>B_e(t),onError:t=>{console.log(t)},onSuccess:()=>e.invalidateQueries({queryKey:[Cn.BODY_WEIGHT]})})},J0t=()=>{const e=gr();return Rr({mutationFn:t=>j_e(t),onSuccess:()=>{e.invalidateQueries({queryKey:[Cn.BODY_WEIGHT]})}})},kb=({weightEntry:e,closeFn:t})=>{const n=v1(),r=Q0t(),o=J0t(),[i,a]=v.useState(e?kt.fromJSDate(e.date):kt.now),[s,l]=Ue(),c=xl({weight:ha().min(30,"Min weight is 30 kg").max(300,"Max weight is 300 kg").required("Weight field is required")});return n.isLoading?C(Po,{}):C(bl,{initialValues:{weight:e?e.weight:0,date:ci(e?e.date:new Date)},validationSchema:c,onSubmit:async u=>{if(e){e.weight=u.weight,e.date=new Date(u.date);try{o.mutate(e)}catch{}}else{e=new Nee(new Date(u.date),u.weight);try{r.mutate(e)}catch{}}t&&t()},children:u=>C(ms,{children:X(Gt,{spacing:2,children:[C(mn,{fullWidth:!0,id:"weight",label:s("weight"),error:u.touched.weight&&!!u.touched.weight,helperText:u.touched.weight&&u.errors.weight,...u.getFieldProps("weight")}),C(t1,{dateAdapter:lM,adapterLocale:l.language,children:C(Gie,{format:"yyyy-MM-dd",label:s("date"),value:i,slotProps:{textField:{variant:"outlined"}},disableFuture:!0,onChange:d=>{d&&u.setFieldValue("date",d.toJSDate()),a(d)},shouldDisableDate:d=>e&&ci(e.date)===d.toISODate()?!1:d?n.data.some(f=>ci(f.date)===d.toISODate()):!1})}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:s("submit")})})]})})})};function yg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mle(e){if(v.isValidElement(e)||!yg(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mle(e[n])}),t}function tN(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return yg(e)&&yg(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:yg(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yg(e[o])?r[o]=tN(e[o],t[o],n):n.clone?r[o]=yg(t[o])?mle(t[o]):t[o]:r[o]=t[o]}),r}function Z0t(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function NR(e){if(typeof e!="string")throw new Error(Z0t(7));return e.charAt(0).toUpperCase()+e.slice(1)}const ewt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function twt(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,i);return(s,l)=>{const c=l.options.name;if(c&&c.startsWith("Mui")&&!l.options.link&&!t){if(ewt.includes(s.key))return`Mui-${s.key}`;const u=`${o}${c}-${s.key}`;return!l.options.theme[CX]||r!==""?u:`${u}-${a()}`}return`${o}${n}${a()}`}}var lq=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},b1=(typeof window>"u"?"undefined":lq(window))==="object"&&(typeof document>"u"?"undefined":lq(document))==="object"&&document.nodeType===9;function aS(e){"@babel/helpers - typeof";return aS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aS(e)}function nwt(e,t){if(aS(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(aS(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kv(e){var t=nwt(e,"string");return aS(t)=="symbol"?t:t+""}function rwt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kv(r.key),r)}}function gle(e,t,n){return t&&rwt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var owt={}.constructor;function nN(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(nN);if(e.constructor!==owt)return e;var t={};for(var n in e)t[n]=nN(e[n]);return t}function zz(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,o=nN(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var cq=function(t,n){for(var r="",o=0;o<t.length&&t[o]!=="!important";o++)r&&(r+=n),r+=t[o];return r},wh=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=cq(t[r]," ");else n=cq(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function Mb(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
+`,space:" "}}function D0(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function sS(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var o=n,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;n.format===!1&&(a=-1/0);var l=Mb(n),c=l.linebreak,u=l.space;if(e&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var f=s[d];for(var p in f){var m=f[p];m!=null&&(r&&(r+=c),r+=D0(p+":"+u+wh(m)+";",a))}}else for(var g in s){var y=s[g];y!=null&&(r&&(r+=c),r+=D0(g+":"+u+wh(y)+";",a))}for(var b in t){var x=t[b];x!=null&&b!=="fallbacks"&&(r&&(r+=c),r+=D0(b+":"+u+wh(x)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+c+r+c),D0(""+e+u+"{"+r,a)+D0("}",a))}var iwt=/([[\].#*$><+~=|^:(),"'`\s])/g,uq=typeof CSS<"u"&&CSS.escape,Vz=function(e){return uq?uq(e):e.replace(iwt,"\\$1")},yle=function(){function e(n,r,o){this.type="style",this.isProcessed=!1;var i=o.sheet,a=o.Renderer;this.key=n,this.options=o,this.style=r,i?this.renderer=i.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,o,i){if(o===void 0)return this.style[r];var a=i?i.force:!1;if(!a&&this.style[r]===o)return this;var s=o;(!i||i.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,r,this));var l=s==null||s===!1,c=r in this.style;if(l&&!c&&!a)return this;var u=l&&c;if(u?delete this.style[r]:this.style[r]=s,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,s),this;var d=this.options.sheet;return d&&d.attached,this},e}(),rN=function(e){OS(t,e);function t(r,o,i){var a;a=e.call(this,r,o,i)||this;var s=i.selector,l=i.scoped,c=i.sheet,u=i.generateId;return s?a.selectorText=s:l!==!1&&(a.id=u(CD(CD(a)),c),a.selectorText="."+Vz(a.id)),a}var n=t.prototype;return n.applyTo=function(o){var i=this.renderer;if(i){var a=this.toJSON();for(var s in a)i.setProperty(o,s,a[s])}return this},n.toJSON=function(){var o={};for(var i in this.style){var a=this.style[i];typeof a!="object"?o[i]=a:Array.isArray(a)&&(o[i]=wh(a))}return o},n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?D({},o,{allowEmpty:!0}):o;return sS(this.selectorText,this.style,s)},gle(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,a=this.renderable;if(!(!a||!i)){var s=i.setSelector(a,o);s||i.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(yle),awt={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new rN(t,n,r)}},FR={indent:1,children:!0},swt=/@([\w-]+)/,lwt=function(){function e(n,r,o){this.type="conditional",this.isProcessed=!1,this.key=n;var i=n.match(swt);this.at=i?i[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new vM(D({},o,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,o,i){var a=this.rules.add(r,o,i);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,o,i){var a=this.rules.replace(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=FR);var o=Mb(r),i=o.linebreak;if(r.indent==null&&(r.indent=FR.indent),r.children==null&&(r.children=FR.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+i+a+i+"}":""},e}(),cwt=/@container|@media|@supports\s+/,uwt={onCreateRule:function(t,n,r){return cwt.test(t)?new lwt(t,n,r):null}},jR={indent:1,children:!0},dwt=/@keyframes\s+([\w-]+)/,oN=function(){function e(n,r,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=n.match(dwt);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var a=o.scoped,s=o.sheet,l=o.generateId;this.id=a===!1?this.name:Vz(l(this,s)),this.rules=new vM(D({},o,{parent:this}));for(var c in r)this.rules.add(c,r[c],D({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=jR);var o=Mb(r),i=o.linebreak;if(r.indent==null&&(r.indent=jR.indent),r.children==null&&(r.children=jR.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+i+a+i),this.at+" "+this.id+" {"+a+"}"},e}(),fwt=/@keyframes\s+/,pwt=/\$([\w-]+)/g,iN=function(t,n){return typeof t=="string"?t.replace(pwt,function(r,o){return o in n?n[o]:r}):t},dq=function(t,n,r){var o=t[n],i=iN(o,r);i!==o&&(t[n]=i)},hwt={onCreateRule:function(t,n,r){return typeof t=="string"&&fwt.test(t)?new oN(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&dq(t,"animation-name",r.keyframes),"animation"in t&&dq(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var o=r.options.sheet;if(!o)return t;switch(n){case"animation":return iN(t,o.keyframes);case"animation-name":return iN(t,o.keyframes);default:return t}}},mwt=function(e){OS(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?D({},o,{allowEmpty:!0}):o;return sS(this.key,this.style,s)},t}(yle),gwt={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new mwt(t,n,r):null}},ywt=function(){function e(n,r,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){var o=Mb(r),i=o.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=sS(this.at,this.style[s]),this.style[s+1]&&(a+=i);return a}return sS(this.at,this.style,r)},e}(),vwt=/@font-face/,bwt={onCreateRule:function(t,n,r){return vwt.test(t)?new ywt(t,n,r):null}},wwt=function(){function e(n,r,o){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){return sS(this.key,this.style,r)},e}(),xwt={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new wwt(t,n,r):null}},Swt=function(){function e(n,r,o){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=o}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var o="",i=0;i<this.value.length;i++)o+=this.key+" "+this.value[i]+";",this.value[i+1]&&(o+=`
+`);return o}return this.key+" "+this.value+";"},e}(),Cwt={"@charset":!0,"@import":!0,"@namespace":!0},Pwt={onCreateRule:function(t,n,r){return t in Cwt?new Swt(t,n,r):null}},fq=[awt,uwt,hwt,gwt,bwt,xwt,Pwt],Ewt={process:!0},pq={force:!0,process:!0},vM=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,o,i){var a=this.options,s=a.parent,l=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,f=a.scoped,p=D({classes:this.classes,parent:s,sheet:l,jss:c,Renderer:u,generateId:d,scoped:f,name:r,keyframes:this.keyframes,selector:void 0},i),m=r;r in this.raw&&(m=r+"-d"+this.counter++),this.raw[m]=o,m in this.classes&&(p.selector="."+Vz(this.classes[m]));var g=zz(m,o,p);if(!g)return null;this.register(g);var y=p.index===void 0?this.index.length:p.index;return this.index.splice(y,0,g),g},t.replace=function(r,o,i){var a=this.get(r),s=this.index.indexOf(a);a&&this.remove(a);var l=i;return s!==-1&&(l=D({},i,{index:s})),this.add(r,o,l)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof rN?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof oN&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof rN?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof oN&&delete this.keyframes[r.name]},t.update=function(){var r,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(r,o,i){i===void 0&&(i=Ewt);var a=this.options,s=a.jss.plugins,l=a.sheet;if(r.rules instanceof e){r.rules.update(o,i);return}var c=r.style;if(s.onUpdate(o,r,l,i),i.process&&c&&c!==r.style){s.onProcessStyle(r.style,r,l);for(var u in r.style){var d=r.style[u],f=c[u];d!==f&&r.prop(u,d,pq)}for(var p in c){var m=r.style[p],g=c[p];m==null&&m!==g&&r.prop(p,null,pq)}}},t.toString=function(r){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=Mb(r),l=s.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(r);!d&&!a||(o&&(o+=l),o+=d)}return o},e}(),vle=function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=D({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new vM(this.options);for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(r,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(r,o,i){var a=this.rules.get(r);if(!a)return this.addRule(r,o,i);var s=this.rules.replace(r,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,o){var i=[];for(var a in r){var s=this.addRule(a,r[a],o);s&&i.push(s)}return i},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var o=typeof r=="object"?r:this.rules.get(r);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,o,i){return this.rules.updateOne(r,o,i),this},t.toString=function(r){return this.rules.toString(r)},e}(),Twt=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](r,o,i);if(s)return s}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var o=r.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](r,o);r.style&&this.onProcessStyle(r.style,r,o),r.isProcessed=!0}},t.onProcessStyle=function(r,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(r){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](r)},t.onUpdate=function(r,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](r,o,i,a)},t.onChangeValue=function(r,o,i){for(var a=r,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(r,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(r)===-1&&(i.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a&&a[l].push(s[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Owt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var o=this.registry,i=r.options.index;if(o.indexOf(r)===-1){if(o.length===0||i>=this.index){o.push(r);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var o=this.registry.indexOf(r);this.registry.splice(o,1)},t.toString=function(r){for(var o=r===void 0?{}:r,i=o.attached,a=ze(o,["attached"]),s=Mb(a),l=s.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];i!=null&&d.attached!==i||(c&&(c+=l),c+=d.toString(a))}return c},gle(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Fw=new Owt,aN=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),sN="2f1acc6c3a606b082e5eef5e54414ffb";aN[sN]==null&&(aN[sN]=0);var hq=aN[sN]++,mq=function(t){t===void 0&&(t={});var n=0,r=function(i,a){n+=1;var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(l||"c")+hq+s+n:l+i.key+"-"+hq+(s?"-"+s:"")+"-"+n};return r},ble=function(t){var n;return function(){return n||(n=t()),n}},Iwt=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch{return""}},kwt=function(t,n,r){try{var o=r;if(Array.isArray(r)&&(o=wh(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(n,a,i>-1?"important":"")}}catch{return!1}return!0},Mwt=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch{}},Awt=function(t,n){return t.selectorText=n,t.selectorText===n},wle=ble(function(){return document.querySelector("head")});function $wt(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Rwt(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Dwt(e){for(var t=wle(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function _wt(e){var t=Fw.registry;if(t.length>0){var n=$wt(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Rwt(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var o=Dwt(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function Lwt(e,t){var n=t.insertionPoint,r=_wt(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}wle().appendChild(e)}var Nwt=ble(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),gq=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch{return!1}return t.cssRules[r]},yq=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},Fwt=function(){var t=document.createElement("style");return t.textContent=`
+`,t},jwt=function(){function e(n){this.getPropertyValue=Iwt,this.setProperty=kwt,this.removeProperty=Mwt,this.setSelector=Awt,this.hasInsertedRules=!1,this.cssRules=[],n&&Fw.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},o=r.media,i=r.meta,a=r.element;this.element=a||Fwt(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var s=Nwt();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Lwt(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
`)}},t.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=`
`+r.toString()+`
-`}},t.insertRules=function(r,o){for(var i=0;i<r.index.length;i++)this.insertRule(r.index[i],i,o)},t.insertRule=function(r,o,i){if(i===void 0&&(i=this.element.sheet),r.rules){var a=r,s=i;if(r.type==="conditional"||r.type==="keyframes"){var l=w7(i,o);if(s=b7(i,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(r,l,s)}return this.insertRules(a.rules,s),s}var c=r.toString();if(!c)return!1;var u=w7(i,o),d=b7(i,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,u,d),d)},t.refCssRule=function(r,o,i){r.renderable=i,r.options.parent instanceof use&&this.cssRules.splice(o,0,i)},t.deleteRule=function(r){var o=this.element.sheet,i=this.indexOf(r);return i===-1?!1:(o.deleteRule(i),this.cssRules.splice(i,1),!0)},t.indexOf=function(r){return this.cssRules.indexOf(r)},t.replaceRule=function(r,o){var i=this.indexOf(r);return i===-1?!1:(this.element.sheet.deleteRule(i),this.cssRules.splice(i,1),this.insertRule(o,i))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ibt=0,abt=function(){function e(n){this.id=ibt++,this.version="10.10.0",this.plugins=new Wvt,this.options={id:{minify:!1},createGenerateId:v7,Renderer:YS?obt:null,plugins:[]},this.generateId=v7({minify:!1});for(var r=0;r<m7.length;r++)this.plugins.use(m7[r],{queue:"internal"});this.setup(n)}var t=e.prototype;return t.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=D({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},t.createStyleSheet=function(r,o){o===void 0&&(o={});var i=o,a=i.index;typeof a!="number"&&(a=pw.index===0?0:pw.index+1);var s=new use(r,D({},o,{jss:this,generateId:o.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(r){return r.detach(),pw.remove(r),this},t.createRule=function(r,o,i){if(o===void 0&&(o={}),i===void 0&&(i={}),typeof r=="object")return this.createRule(void 0,r,o);var a=D({},i,{name:r,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=ZB(r,o,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.forEach(function(s){r.plugins.use(s)}),this},e}(),pse=function(t){return new abt(t)},tz=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function hse(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if(o==="function")t||(t={}),t[n]=r;else if(o==="object"&&r!==null&&!Array.isArray(r)){var i=hse(r);i&&(t||(t={}),t[n]=i)}}return t}/**
+`}},t.insertRules=function(r,o){for(var i=0;i<r.index.length;i++)this.insertRule(r.index[i],i,o)},t.insertRule=function(r,o,i){if(i===void 0&&(i=this.element.sheet),r.rules){var a=r,s=i;if(r.type==="conditional"||r.type==="keyframes"){var l=yq(i,o);if(s=gq(i,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(r,l,s)}return this.insertRules(a.rules,s),s}var c=r.toString();if(!c)return!1;var u=yq(i,o),d=gq(i,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,u,d),d)},t.refCssRule=function(r,o,i){r.renderable=i,r.options.parent instanceof vle&&this.cssRules.splice(o,0,i)},t.deleteRule=function(r){var o=this.element.sheet,i=this.indexOf(r);return i===-1?!1:(o.deleteRule(i),this.cssRules.splice(i,1),!0)},t.indexOf=function(r){return this.cssRules.indexOf(r)},t.replaceRule=function(r,o){var i=this.indexOf(r);return i===-1?!1:(this.element.sheet.deleteRule(i),this.cssRules.splice(i,1),this.insertRule(o,i))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Bwt=0,zwt=function(){function e(n){this.id=Bwt++,this.version="10.10.0",this.plugins=new Twt,this.options={id:{minify:!1},createGenerateId:mq,Renderer:b1?jwt:null,plugins:[]},this.generateId=mq({minify:!1});for(var r=0;r<fq.length;r++)this.plugins.use(fq[r],{queue:"internal"});this.setup(n)}var t=e.prototype;return t.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=D({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},t.createStyleSheet=function(r,o){o===void 0&&(o={});var i=o,a=i.index;typeof a!="number"&&(a=Fw.index===0?0:Fw.index+1);var s=new vle(r,D({},o,{jss:this,generateId:o.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(r){return r.detach(),Fw.remove(r),this},t.createRule=function(r,o,i){if(o===void 0&&(o={}),i===void 0&&(i={}),typeof r=="object")return this.createRule(void 0,r,o);var a=D({},i,{name:r,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=zz(r,o,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.forEach(function(s){r.plugins.use(s)}),this},e}(),xle=function(t){return new zwt(t)},Hz=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Sle(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if(o==="function")t||(t={}),t[n]=r;else if(o==="object"&&r!==null&&!Array.isArray(r)){var i=Sle(r);i&&(t||(t={}),t[n]=i)}}return t}/**
* A better abstraction over CSS.
*
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
* @website https://github.com/cssinjs/jss
* @license MIT
- */pse();var mse=Date.now(),rR="fnValues"+mse,oR="fnStyle"+ ++mse,sbt=function(){return{onCreateRule:function(n,r,o){if(typeof r!="function")return null;var i=ZB(n,{},o);return i[oR]=r,i},onProcessStyle:function(n,r){if(rR in r||oR in r)return n;var o={};for(var i in n){var a=n[i];typeof a=="function"&&(delete n[i],o[i]=a)}return r[rR]=o,n},onUpdate:function(n,r,o,i){var a=r,s=a[oR];s&&(a.style=s(n)||{});var l=a[rR];if(l)for(var c in l)a.prop(c,l[c](n),i)}}},hf="@global",EL="@global ",lbt=function(){function e(n,r,o){this.type="global",this.at=hf,this.isProcessed=!1,this.key=n,this.options=o,this.rules=new Nk(D({},o,{parent:this}));for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,o,i){var a=this.rules.add(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(r,o,i){var a=this.rules.replace(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(r){return this.rules.toString(r)},e}(),cbt=function(){function e(n,r,o){this.type="global",this.at=hf,this.isProcessed=!1,this.key=n,this.options=o;var i=n.substr(EL.length);this.rule=o.jss.createRule(i,r,D({},o,{parent:this}))}var t=e.prototype;return t.toString=function(r){return this.rule?this.rule.toString(r):""},e}(),ubt=/\s*,\s*/g;function gse(e,t){for(var n=e.split(ubt),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function dbt(e,t){var n=e.options,r=e.style,o=r?r[hf]:null;if(o){for(var i in o)t.addRule(i,o[i],D({},n,{selector:gse(i,e.selector)}));delete r[hf]}}function fbt(e,t){var n=e.options,r=e.style;for(var o in r)if(!(o[0]!=="@"||o.substr(0,hf.length)!==hf)){var i=gse(o.substr(hf.length),e.selector);t.addRule(i,r[o],D({},n,{selector:i})),delete r[o]}}function pbt(){function e(n,r,o){if(!n)return null;if(n===hf)return new lbt(n,r,o);if(n[0]==="@"&&n.substr(0,EL.length)===EL)return new cbt(n,r,o);var i=o.parent;return i&&(i.type==="global"||i.options.parent&&i.options.parent.type==="global")&&(o.scoped=!1),!o.selector&&o.scoped===!1&&(o.selector=n),null}function t(n,r){n.type!=="style"||!r||(dbt(n,r),fbt(n,r))}return{onCreateRule:e,onProcessRule:t}}var x7=/\s*,\s*/g,hbt=/&/g,mbt=/\$([\w-]+)/g;function gbt(){function e(o,i){return function(a,s){var l=o.getRule(s)||i&&i.getRule(s);return l?l.selector:s}}function t(o,i){for(var a=i.split(x7),s=o.split(x7),l="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<s.length;d++){var f=s[d];l&&(l+=", "),l+=f.indexOf("&")!==-1?f.replace(hbt,u):u+" "+f}return l}function n(o,i,a){if(a)return D({},a,{index:a.index+1});var s=o.options.nestingLevel;s=s===void 0?1:s+1;var l=D({},o.options,{nestingLevel:s,index:i.indexOf(o)+1});return delete l.name,l}function r(o,i,a){if(i.type!=="style")return o;var s=i,l=s.options.parent,c,u;for(var d in o){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=n(s,l,c),f){var m=t(d,s.selector);u||(u=e(l,a)),m=m.replace(mbt,u);var g=s.key+"-"+d;"replaceRule"in l?l.replaceRule(g,o[d],D({},c,{selector:m})):l.addRule(g,o[d],D({},c,{selector:m}))}else p&&l.addRule(d,{},c).addRule(s.key,o[d],{selector:s.selector});delete o[d]}}return o}return{onProcessStyle:r}}var ybt=/[A-Z]/g,vbt=/^ms-/,iR={};function bbt(e){return"-"+e.toLowerCase()}function yse(e){if(iR.hasOwnProperty(e))return iR[e];var t=e.replace(ybt,bbt);return iR[e]=vbt.test(t)?"-"+t:t}function qT(e){var t={};for(var n in e){var r=n.indexOf("--")===0?n:yse(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(qT):t.fallbacks=qT(e.fallbacks)),t}function wbt(){function e(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=qT(n[r]);return n}return qT(n)}function t(n,r,o){if(r.indexOf("--")===0)return n;var i=yse(r);return r===i?n:(o.prop(i,n),null)}return{onProcessStyle:e,onChangeValue:t}}var Ge=tz&&CSS?CSS.px:"px",YC=tz&&CSS?CSS.ms:"ms",zm=tz&&CSS?CSS.percent:"%",xbt={"animation-delay":YC,"animation-duration":YC,"background-position":Ge,"background-position-x":Ge,"background-position-y":Ge,"background-size":Ge,border:Ge,"border-bottom":Ge,"border-bottom-left-radius":Ge,"border-bottom-right-radius":Ge,"border-bottom-width":Ge,"border-left":Ge,"border-left-width":Ge,"border-radius":Ge,"border-right":Ge,"border-right-width":Ge,"border-top":Ge,"border-top-left-radius":Ge,"border-top-right-radius":Ge,"border-top-width":Ge,"border-width":Ge,"border-block":Ge,"border-block-end":Ge,"border-block-end-width":Ge,"border-block-start":Ge,"border-block-start-width":Ge,"border-block-width":Ge,"border-inline":Ge,"border-inline-end":Ge,"border-inline-end-width":Ge,"border-inline-start":Ge,"border-inline-start-width":Ge,"border-inline-width":Ge,"border-start-start-radius":Ge,"border-start-end-radius":Ge,"border-end-start-radius":Ge,"border-end-end-radius":Ge,margin:Ge,"margin-bottom":Ge,"margin-left":Ge,"margin-right":Ge,"margin-top":Ge,"margin-block":Ge,"margin-block-end":Ge,"margin-block-start":Ge,"margin-inline":Ge,"margin-inline-end":Ge,"margin-inline-start":Ge,padding:Ge,"padding-bottom":Ge,"padding-left":Ge,"padding-right":Ge,"padding-top":Ge,"padding-block":Ge,"padding-block-end":Ge,"padding-block-start":Ge,"padding-inline":Ge,"padding-inline-end":Ge,"padding-inline-start":Ge,"mask-position-x":Ge,"mask-position-y":Ge,"mask-size":Ge,height:Ge,width:Ge,"min-height":Ge,"max-height":Ge,"min-width":Ge,"max-width":Ge,bottom:Ge,left:Ge,top:Ge,right:Ge,inset:Ge,"inset-block":Ge,"inset-block-end":Ge,"inset-block-start":Ge,"inset-inline":Ge,"inset-inline-end":Ge,"inset-inline-start":Ge,"box-shadow":Ge,"text-shadow":Ge,"column-gap":Ge,"column-rule":Ge,"column-rule-width":Ge,"column-width":Ge,"font-size":Ge,"font-size-delta":Ge,"letter-spacing":Ge,"text-decoration-thickness":Ge,"text-indent":Ge,"text-stroke":Ge,"text-stroke-width":Ge,"word-spacing":Ge,motion:Ge,"motion-offset":Ge,outline:Ge,"outline-offset":Ge,"outline-width":Ge,perspective:Ge,"perspective-origin-x":zm,"perspective-origin-y":zm,"transform-origin":zm,"transform-origin-x":zm,"transform-origin-y":zm,"transform-origin-z":zm,"transition-delay":YC,"transition-duration":YC,"vertical-align":Ge,"flex-basis":Ge,"shape-margin":Ge,size:Ge,gap:Ge,grid:Ge,"grid-gap":Ge,"row-gap":Ge,"grid-row-gap":Ge,"grid-column-gap":Ge,"grid-template-rows":Ge,"grid-template-columns":Ge,"grid-auto-rows":Ge,"grid-auto-columns":Ge,"box-shadow-x":Ge,"box-shadow-y":Ge,"box-shadow-blur":Ge,"box-shadow-spread":Ge,"font-line-height":Ge,"text-shadow-x":Ge,"text-shadow-y":Ge,"text-shadow-blur":Ge};function vse(e){var t=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Sbt=vse(xbt);function hw(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=hw(e,t[r],n);else if(typeof t=="object")if(e==="fallbacks")for(var o in t)t[o]=hw(o,t[o],n);else for(var i in t)t[i]=hw(e+"-"+i,t[i],n);else if(typeof t=="number"&&isNaN(t)===!1){var a=n[e]||Sbt[e];return a&&!(t===0&&a===Ge)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function Cbt(e){e===void 0&&(e={});var t=vse(e);function n(o,i){if(i.type!=="style")return o;for(var a in o)o[a]=hw(a,o[a],t);return o}function r(o,i){return hw(i,o,t)}return{onProcessStyle:n,onChangeValue:r}}function TL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pbt(e){if(Array.isArray(e))return TL(e)}function Ebt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tbt(e,t){if(e){if(typeof e=="string")return TL(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TL(e,t):void 0}}function Obt(){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 Ibt(e){return Pbt(e)||Ebt(e)||Tbt(e)||Obt()}var D0="",OL="",bse="",wse="",kbt=YS&&"ontouchstart"in document.documentElement;if(YS){var aR={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Mbt=document.createElement("p"),sR=Mbt.style,Abt="Transform";for(var lR in aR)if(lR+Abt in sR){D0=lR,OL=aR[lR];break}D0==="Webkit"&&"msHyphens"in sR&&(D0="ms",OL=aR.ms,wse="edge"),D0==="Webkit"&&"-apple-trailing-word"in sR&&(bse="apple")}var an={js:D0,css:OL,vendor:bse,browser:wse,isTouch:kbt};function $bt(e){return e[1]==="-"||an.js==="ms"?e:"@"+an.css+"keyframes"+e.substr(10)}var Rbt={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:an.js==="ms"?"-webkit-"+t:an.css+t}},Dbt={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:an.js==="Webkit"?an.css+"print-"+t:t}},_bt=/[-\s]+(.)?/g;function Lbt(e,t){return t?t.toUpperCase():""}function nz(e){return e.replace(_bt,Lbt)}function Cf(e){return nz("-"+e)}var Nbt={noPrefill:["mask"],supportedProperty:function(t,n){if(!/^mask/.test(t))return!1;if(an.js==="Webkit"){var r="mask-image";if(nz(r)in n)return t;if(an.js+Cf(r)in n)return an.css+t}return t}},Fbt={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:an.vendor==="apple"&&!an.isTouch?an.css+t:t}},jbt={noPrefill:["transform"],supportedProperty:function(t,n,r){return t!=="transform"?!1:r.transform?t:an.css+t}},Bbt={noPrefill:["transition"],supportedProperty:function(t,n,r){return t!=="transition"?!1:r.transition?t:an.css+t}},zbt={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:an.js==="Webkit"||an.js==="ms"&&an.browser!=="edge"?an.css+t:t}},Vbt={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:an.js==="Moz"||an.js==="ms"||an.vendor==="apple"?an.css+t:t}},Hbt={supportedProperty:function(t,n){if(!/^break-/.test(t))return!1;if(an.js==="Webkit"){var r="WebkitColumn"+Cf(t);return r in n?an.css+"column-"+t:!1}if(an.js==="Moz"){var o="page"+Cf(t);return o in n?"page-"+t:!1}return!1}},Ubt={supportedProperty:function(t,n){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(an.js==="Moz")return t;var r=t.replace("-inline","");return an.js+Cf(r)in n?an.css+r:!1}},Wbt={supportedProperty:function(t,n){return nz(t)in n?t:!1}},Gbt={supportedProperty:function(t,n){var r=Cf(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:an.js+r in n?an.css+t:an.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+t:!1}},qbt={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:an.js==="ms"?""+an.css+t:t}},Kbt={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:an.js==="ms"?an.css+"scroll-chaining":t}},Ybt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Xbt={supportedProperty:function(t,n){var r=Ybt[t];return r&&an.js+Cf(r)in n?an.css+r:!1}},xse={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Qbt=Object.keys(xse),Jbt=function(t){return an.css+t},Zbt={supportedProperty:function(t,n,r){var o=r.multiple;if(Qbt.indexOf(t)>-1){var i=xse[t];if(!Array.isArray(i))return an.js+Cf(i)in n?an.css+i:!1;if(!o)return!1;for(var a=0;a<i.length;a++)if(!(an.js+Cf(i[0])in n))return!1;return i.map(Jbt)}return!1}},Sse=[Rbt,Dbt,Nbt,Fbt,jbt,Bbt,zbt,Vbt,Hbt,Ubt,Wbt,Gbt,qbt,Kbt,Xbt,Zbt],S7=Sse.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),e0t=Sse.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Ibt(t.noPrefill)),e},[]),_0,Op={};if(YS){_0=document.createElement("p");var cR=window.getComputedStyle(document.documentElement,"");for(var uR in cR)isNaN(uR)||(Op[cR[uR]]=cR[uR]);e0t.forEach(function(e){return delete Op[e]})}function IL(e,t){if(t===void 0&&(t={}),!_0)return e;if(Op[e]!=null)return Op[e];(e==="transition"||e==="transform")&&(t[e]=e in _0.style);for(var n=0;n<S7.length&&(Op[e]=S7[n](e,_0.style,t),!Op[e]);n++);try{_0.style[e]=""}catch{return!1}return Op[e]}var Vm={},t0t={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},n0t=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Pd;function r0t(e,t,n){if(t==="var")return"var";if(t==="all")return"all";if(n==="all")return", all";var r=t?IL(t):", "+IL(n);return r||t||n}YS&&(Pd=document.createElement("p"));function C7(e,t){var n=t;if(!Pd||e==="content")return t;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=e+n;if(Vm[r]!=null)return Vm[r];try{Pd.style[e]=n}catch{return Vm[r]=!1,!1}if(t0t[e])n=n.replace(n0t,r0t);else if(Pd.style[e]===""&&(n=an.css+n,n==="-ms-flex"&&(Pd.style[e]="-ms-flexbox"),Pd.style[e]=n,Pd.style[e]===""))return Vm[r]=!1,!1;return Pd.style[e]="",Vm[r]=n,Vm[r]}function o0t(){function e(o){if(o.type==="keyframes"){var i=o;i.at=$bt(i.at)}}function t(o){for(var i in o){var a=o[i];if(i==="fallbacks"&&Array.isArray(a)){o[i]=a.map(t);continue}var s=!1,l=IL(i);l&&l!==i&&(s=!0);var c=!1,u=C7(l,rh(a));u&&u!==a&&(c=!0),(s||c)&&(s&&delete o[i],o[l||i]=u||a)}return o}function n(o,i){return i.type!=="style"?o:t(o)}function r(o,i){return C7(i,rh(o))||o}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function i0t(){var e=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var o={},i=Object.keys(n).sort(e),a=0;a<i.length;a++)o[i[a]]=n[i[a]];return o}}}function a0t(){return{plugins:[sbt(),pbt(),gbt(),wbt(),Cbt(),typeof window>"u"?null:o0t(),i0t()]}}function Cse(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o={...t};return Object.keys(n).forEach(i=>{n[i]&&(o[i]=`${t[i]} ${n[i]}`)}),o}const Tg={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}};function s0t(){const e=LO();return(e==null?void 0:e.$$material)??e}const l0t=pse(a0t()),c0t=wvt(),u0t=new Map,d0t={disableGeneration:!1,generateClassName:c0t,jss:l0t,sheetsCache:null,sheetsManager:u0t,sheetsRegistry:null},f0t=v.createContext(d0t);let P7=-1e9;function p0t(){return P7+=1,P7}function E7(e){return e.length===0}function h0t(e){const{variant:t,...n}=e;let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=E7(r)?e[o]:Se(e[o]):r+=`${E7(r)?o:Se(o)}${Se(e[o].toString())}`}),r}const m0t={};function g0t(e){const t=typeof e=="function";return{create:(n,r)=>{let o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return o;const i=n.components[r].styleOverrides||{},a=n.components[r].variants||[],s={...o};return Object.keys(i).forEach(l=>{s[l]=mo(s[l]||{},i[l])}),a.forEach(l=>{const c=h0t(l.props);s[c]=mo(s[c]||{},l.style)}),s},options:{}}}function y0t({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=Cse({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}function v0t({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:o},i){if(n.disableGeneration)return;let a=Tg.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Tg.set(n.sheetsManager,r,t,a));const s={...r.options,...n,theme:t,flip:typeof n.flip=="boolean"?n.flip:t.direction==="rtl"};s.generateId=s.serverGenerateClassName||s.generateClassName;const l=n.sheetsRegistry;if(a.refs===0){let c;n.sheetsCache&&(c=Tg.get(n.sheetsCache,r,t));const u=r.create(t,o);c||(c=n.jss.createStyleSheet(u,{link:!1,...s}),c.attach(),n.sheetsCache&&Tg.set(n.sheetsCache,r,t,c)),l&&l.add(c),a.staticSheet=c,a.dynamicStyles=hse(u)}if(a.dynamicStyles){const c=n.jss.createStyleSheet(a.dynamicStyles,{link:!0,...s});c.update(i),c.attach(),e.dynamicSheet=c,e.classes=Cse({baseClasses:a.staticSheet.classes,newClasses:c.classes}),l&&l.add(c)}else e.classes=a.staticSheet.classes;a.refs+=1}function b0t({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function w0t({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Tg.get(n.sheetsManager,r,t);o.refs-=1;const i=n.sheetsRegistry;o.refs===0&&(Tg.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function x0t(e,t){const n=v.useRef([]);let r;const o=v.useMemo(()=>({}),t);n.current!==o&&(n.current=o,r=e()),v.useEffect(()=>()=>{r&&r()},[o])}function Pse(e,t={}){const{name:n,classNamePrefix:r,Component:o,defaultTheme:i=m0t,...a}=t,s=g0t(e),l=n||r||"makeStyles";return s.options={index:p0t(),name:n,meta:l,classNamePrefix:l},(u={})=>{const d=s0t()||i,f={...v.useContext(f0t),...a},p=v.useRef(),m=v.useRef();return x0t(()=>{const y={name:n,state:{},stylesCreator:s,stylesOptions:f,theme:d};return v0t(y,u),m.current=!1,p.current=y,()=>{w0t(y)}},[d,s]),v.useEffect(()=>{m.current&&b0t(p.current,u),m.current=!0}),y0t(p.current,u.classes,o)}}const S0t=Pse(e=>({table:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),C0t=({weights:e})=>{const[t]=qe(),n=S0t(),o=e.slice(0,5);return C("div",{className:n.table,children:C(Gu,{children:X(Uu,{size:"small",children:[C(_h,{children:X(Yt,{children:[C(Ie,{align:"center",children:t("date")}),C(Ie,{align:"center",children:t("weight")})]})}),C(Wu,{children:o.map(i=>X(Yt,{children:[C(Ie,{align:"center",children:i.date.toLocaleDateString()}),C(Ie,{align:"center",children:i.weight})]},i.date.toLocaleDateString()))})]})})})},P0t=({active:e,payload:t,label:n})=>{const[r,o]=qe();return e&&t&&t.length?X(so,{style:{padding:8},children:[C("p",{children:C("strong",{children:new Date(n).toLocaleDateString(o.language)})}),X("p",{children:[r("weight"),": ",t[0].value]})]}):null},Ese=({weights:e,height:t})=>{t=t||300;const r=Ao(),[o,i]=qe(),[a,s]=Y.useState(!1),[l,c]=Y.useState(),u=()=>s(!1),d=[...e].sort((p,m)=>p.date.getTime()-m.date.getTime()).map(p=>({date:p.date.getTime(),weight:p.weight,entry:p}));function f(p,m){c(m.payload.entry),s(!0)}return X("div",{children:[l&&C(Yi,{title:o("edit"),isOpen:a,closeFn:u,children:C(ib,{weightEntry:l})}),C(Nf,{height:t,children:X(Gre,{data:d,children:[C(Kv,{type:"monotone",dataKey:"weight",stroke:r.palette.secondary.main,strokeWidth:2,dot:d.length>30?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6,onClick:f}}),C(jh,{stroke:"#ccc",strokeDasharray:"5 5"}),C(sl,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:p=>new Date(p).toLocaleDateString(i.language)}),C(ll,{domain:["auto","auto"]}),C(ja,{content:C(P0t,{})})]})})]})},Tse=()=>{var n,r;const[e]=qe(),t=KS("lastYear");return C(Mt,{children:t.isLoading?C(bo,{}):C(Mt,{children:((n=t.data)==null?void 0:n.length)!==void 0&&((r=t.data)==null?void 0:r.length)>0?C(E0t,{entries:t.data}):C(DF,{title:e("weight"),modalContent:C(ib,{})})})})},E0t=e=>{const[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1),[i,a]=qe();return X(Mt,{children:[X(io,{children:[C(Zl,{title:i("weight"),subheader:"."}),X(wi,{sx:{height:"500px",overflow:"auto"},children:[C(Ese,{weights:e.entries,height:200}),C(Ln,{sx:{mt:2},children:C(C0t,{weights:e.entries})})]}),X(os,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[C(yt,{size:"small",href:Pn(wn.WEIGHT_OVERVIEW,a.language),children:i("seeDetails")}),C(Xl,{title:i("addEntry"),children:C(An,{onClick:r,children:C(Gi,{})})})]})]}),C(Yi,{title:i("add"),isOpen:t,closeFn:o,children:C(ib,{closeFn:o})})]})},T0t=()=>{const[e,t]=qe();return C($B,{callback:r=>{r!==null&&(window.location.href=Pn(wn.INGREDIENT_DETAIL,t.language,{id:r.data.id}))}})},O0t=()=>C("div",{children:"About Page"});function rz(e){const[t]=qe(),[n,r,o]=ul(e.fieldName);return C(Kl,{multiple:!0,freeSolo:!0,id:e.fieldName,value:n.value,options:n.value,onChange:(i,a)=>{o.setValue(a)},renderTags:(i,a)=>i.map((s,l)=>sN(hh,{label:s,...a({index:l}),key:l})),onBlur:n.onBlur,renderInput:i=>C(gn,{...i,id:"exerciseAliases",variant:"standard",label:t("exercises.alternativeNames"),error:r.touched&&!!r.error,helperText:r.touched&&r.error,value:n.value})})}function I0t(e){const[t]=qe(),[n,r,o]=ul(e.fieldName);return C(Kl,{multiple:!0,id:e.fieldName,options:e.options.map(i=>i.id),getOptionLabel:i=>t(Wi(e.options.find(a=>a.id===i).name)),...n,onChange:(i,a)=>{o.setValue(a)},renderInput:i=>C(gn,{variant:"standard",label:t("exercises.equipment"),value:n.value,...i})})}function oz(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("name"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function k0t(e){const[t]=qe(),[n,r]=ul(e.fieldName);return X(Cv,{fullWidth:!0,children:[C(Pv,{id:"label-category",children:t("category")}),C(Dh,{labelId:"label-category",id:"category",label:t("category"),error:r.touched&&!!r.error,...n,children:e.options}),r.touched&&!!r.error&&C(fS,{error:!0,children:r.error})]})}const Ose=5,Ise=40,iz=e=>Nc().min(Ose,e("forms.valueTooShort")).max(Ise,e("forms.valueTooLong")).required(e("forms.fieldRequired")),az=e=>GB().ensure().compact().of(Nc().min(Ose,e("forms.valueTooShort")).max(Ise,e("forms.valueTooLong"))),sz=e=>Nc().min(40,e("forms.valueTooShort")).required(e("forms.fieldRequired")),kse=e=>GB().ensure().compact().of(Nc().min(15,e("forms.valueTooShort"))),M0t=e=>sa().required(e("forms.fieldRequired"));function Mse(){return oo({queryKey:[En.EXERCISES],queryFn:qDe})}function A0t(e){return oo({queryKey:[En.EXERCISE_DETAIL,e],queryFn:()=>bS(e)})}function $0t(e){const t=gr();return $r({mutationFn:n=>pD(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.EXERCISES]}),t.invalidateQueries({queryKey:[En.EXERCISE_DETAIL,e]})}})}function R0t(e){const t=gr();return $r({mutationFn:n=>JDe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.EXERCISES]}),t.invalidateQueries({queryKey:[En.EXERCISE_DETAIL,e]})}})}function D0t(e){const t=gr();return $r({mutationFn:n=>n_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.EXERCISES]}),t.invalidateQueries({queryKey:[En.EXERCISE_DETAIL,e]})}})}function _0t(e){const t=gr();return $r({mutationFn:n=>qZ(n),onSuccess:()=>{t.invalidateQueries({queryKey:[En.EXERCISES]}),t.invalidateQueries({queryKey:[En.EXERCISE_DETAIL,e]})}})}function Fk(){return oo({queryKey:[En.CATEGORIES],queryFn:VDe})}function XS(){return oo({queryKey:[En.MUSCLES],queryFn:LDe})}function jk(){return oo({queryKey:[En.EQUIPMENT],queryFn:jDe})}function Bk(){return oo({queryKey:[En.LANGUAGES],queryFn:t_e})}const Eh=({primaryMuscles:e,secondaryMuscles:t,isFront:n})=>{const r=[];r.push(...e.filter(i=>i.isFront===n).map(i=>`/muscles/main/muscle-${i.id}.svg`)),r.push(...t.filter(i=>i.isFront===n).map(i=>`/muscles/secondary/muscle-${i.id}.svg`)),r.push(n?"/muscles/muscular_system_front.svg":"/muscles/muscular_system_back.svg");const o=r.map(i=>`url(${C2e}${i})`).join(", ");return C("div",{style:{height:"400px",width:"200px",backgroundImage:o,backgroundRepeat:"no-repeat"}})};var Ase=(e=>(e[e.SET_NOTIFICATION=0]="SET_NOTIFICATION",e))(Ase||{}),Nn=(e=>(e[e.RESET=0]="RESET",e[e.SET_NAME_EN=1]="SET_NAME_EN",e[e.SET_ALIASES_EN=2]="SET_ALIASES_EN",e[e.SET_DESCRIPTION_EN=3]="SET_DESCRIPTION_EN",e[e.SET_NOTES_EN=4]="SET_NOTES_EN",e[e.SET_CATEGORY=5]="SET_CATEGORY",e[e.SET_EQUIPMENT=6]="SET_EQUIPMENT",e[e.SET_PRIMARY_MUSCLES=7]="SET_PRIMARY_MUSCLES",e[e.SET_MUSCLES_SECONDARY=8]="SET_MUSCLES_SECONDARY",e[e.SET_VARIATION_ID=9]="SET_VARIATION_ID",e[e.SET_NEW_VARIATION_BASE_ID=10]="SET_NEW_VARIATION_BASE_ID",e[e.SET_LANGUAGE=11]="SET_LANGUAGE",e[e.SET_NAME_I18N=12]="SET_NAME_I18N",e[e.SET_ALIASES_I18N=13]="SET_ALIASES_I18N",e[e.SET_DESCRIPTION_I18N=14]="SET_DESCRIPTION_I18N",e[e.SET_NOTES_I18N=15]="SET_NOTES_I18N",e[e.SET_IMAGES=16]="SET_IMAGES",e))(Nn||{});const T7=e=>({type:Ase.SET_NOTIFICATION,payload:e}),O7={notification:{notify:!1,message:"",severity:void 0,title:"",type:void 0}},L0t=v.createContext([O7,()=>O7]),N0t=()=>v.useContext(L0t),F0t=e=>({type:Nn.SET_NAME_EN,payload:e}),j0t=e=>({type:Nn.SET_DESCRIPTION_EN,payload:e}),B0t=e=>({type:Nn.SET_NOTES_EN,payload:e}),z0t=e=>({type:Nn.SET_ALIASES_EN,payload:e}),V0t=e=>({type:Nn.SET_NAME_I18N,payload:e}),H0t=e=>({type:Nn.SET_DESCRIPTION_I18N,payload:e}),U0t=e=>({type:Nn.SET_NOTES_I18N,payload:e}),W0t=e=>({type:Nn.SET_ALIASES_I18N,payload:e}),G0t=e=>({type:Nn.SET_CATEGORY,payload:e}),q0t=e=>({type:Nn.SET_EQUIPMENT,payload:e}),K0t=e=>({type:Nn.SET_PRIMARY_MUSCLES,payload:e}),Y0t=e=>({type:Nn.SET_MUSCLES_SECONDARY,payload:e}),X0t=e=>({type:Nn.SET_VARIATION_ID,payload:e}),Q0t=e=>({type:Nn.SET_NEW_VARIATION_BASE_ID,payload:e}),J0t=e=>({type:Nn.SET_LANGUAGE,payload:e}),Z0t=e=>({type:Nn.SET_IMAGES,payload:e}),ewt=(e,t)=>{if(t===void 0)return e;switch(t.type){case Nn.RESET:return KT;case Nn.SET_NAME_EN:return{...e,nameEn:t.payload};case Nn.SET_DESCRIPTION_EN:return{...e,descriptionEn:t.payload};case Nn.SET_NOTES_EN:return{...e,notesEn:t.payload};case Nn.SET_ALIASES_EN:return{...e,alternativeNamesEn:t.payload};case Nn.SET_CATEGORY:return{...e,category:t.payload};case Nn.SET_EQUIPMENT:return{...e,equipment:t.payload};case Nn.SET_PRIMARY_MUSCLES:return{...e,muscles:t.payload};case Nn.SET_MUSCLES_SECONDARY:return{...e,musclesSecondary:t.payload};case Nn.SET_VARIATION_ID:return{...e,variationId:t.payload};case Nn.SET_NEW_VARIATION_BASE_ID:return{...e,newVariationBaseId:t.payload};case Nn.SET_LANGUAGE:return{...e,languageId:t.payload};case Nn.SET_NAME_I18N:return{...e,nameI18n:t.payload};case Nn.SET_DESCRIPTION_I18N:return{...e,descriptionI18n:t.payload};case Nn.SET_NOTES_I18N:return{...e,notesI18n:t.payload};case Nn.SET_ALIASES_I18N:return{...e,alternativeNamesI18n:t.payload};case Nn.SET_IMAGES:return{...e,images:t.payload};default:return e}},KT={category:null,muscles:[],musclesSecondary:[],variationId:null,newVariationBaseId:null,languageId:null,equipment:[],nameEn:"",descriptionEn:"",alternativeNamesEn:[],notesEn:[],nameI18n:"",alternativeNamesI18n:[],descriptionI18n:"",notesI18n:[],images:[]},$se=v.createContext([KT,()=>KT]),twt=({children:e})=>{const[t,n]=v.useReducer(ewt,KT);return C($se.Provider,{value:[t,n],children:e})},sb=()=>v.useContext($se),nwt=({onContinue:e})=>{const[t]=qe(),[n,r]=sb(),[o,i]=v.useState(n.muscles),[a,s]=v.useState(n.musclesSecondary);v.useEffect(()=>{r(K0t(o))},[r,o]),v.useEffect(()=>{r(Y0t(a))},[r,a]);const l=Fk(),c=XS(),u=jk(),d=dl({nameEn:iz(t),newAlternativeNameEn:az(t),category:M0t(t)});return C(cl,{initialValues:{nameEn:n.nameEn,newAlternativeNameEn:n.alternativeNamesEn,category:n.category!==null?n.category:"",muscles:n.muscles,equipment:n.equipment,musclesSecondary:n.musclesSecondary},validationSchema:d,onSubmit:f=>{r(F0t(f.nameEn)),r(G0t(f.category)),r(z0t(f.newAlternativeNameEn)),r(q0t(f.equipment)),e()},children:f=>X(as,{children:[X(Gt,{spacing:2,children:[C(oz,{fieldName:"nameEn"}),C(rz,{fieldName:"newAlternativeNameEn"}),l.isLoading?X(Ln,{children:[" ",C(ga,{})," "]}):C(k0t,{fieldName:"category",options:l.data.map(p=>C(tn,{value:p.id,children:t(Wi(p.name))},p.id))}),u.isLoading?X(Ln,{children:[" ",C(ga,{})," "]}):C(I0t,{fieldName:"equipment",options:u.data}),c.isLoading?X(Ln,{children:[" ",C(ga,{})," "]}):X(Mt,{children:[C(Kl,{multiple:!0,id:"muscles",options:c.data.map(p=>p.id),getOptionDisabled:p=>a.includes(p),getOptionLabel:p=>c.data.find(m=>m.id===p).getName(t),value:o,onChange:(p,m)=>{i(m)},renderInput:p=>C(gn,{...p,variant:"standard",label:t("exercises.muscles"),value:f.getFieldProps("muscles").value,onChange:m=>{f.setFieldValue(f.getFieldProps("muscles").name,m.target.value)}})}),C(Kl,{multiple:!0,id:"secondary-muscles",options:c.data.map(p=>p.id),getOptionDisabled:p=>o.includes(p),getOptionLabel:p=>c.data.find(m=>m.id===p).getName(t),value:a,onChange:(p,m)=>{s(m)},renderInput:p=>C(gn,{...p,variant:"standard",label:t("exercises.secondaryMuscles"),value:f.getFieldProps("muscles").value})})]}),X(Fe,{container:!0,children:[C(Fe,{display:"flex",justifyContent:"center",size:6,children:C(Eh,{primaryMuscles:o.map(p=>c.data.find(m=>m.id===p)),secondaryMuscles:a.map(p=>c.data.find(m=>m.id===p)),isFront:!0})}),C(Fe,{display:"flex",justifyContent:"center",size:6,children:C(Eh,{primaryMuscles:o.map(p=>c.data.find(m=>m.id===p)),secondaryMuscles:a.map(p=>c.data.find(m=>m.id===p)),isFront:!1})})]})]}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:C("div",{children:C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:t("continue")})})})})})]})})};function rwt(e,t){const n=new Map;return e.forEach(r=>{const o=t(r),i=n.get(o);i?i.push(r):n.set(o,[r])}),n}const I7=({exercises:e})=>{const r=e[0].variationId,o=e[0].id,[i,a]=sb(),[s,l]=v.useState(!1),[c,u]=v.useState(i.variationId),[d,f]=v.useState(i.newVariationBaseId);v.useEffect(()=>{a(X0t(c))},[a,c]),v.useEffect(()=>{a(Q0t(d))},[a,d]);const p=(g,y)=>()=>{g!==null?(y=null,g===i.variationId&&(g=null)):(g=null,y===i.newVariationBaseId&&(y=null)),u(g),f(y)};let m;return r===null?m=i.newVariationBaseId===o:m=r===i.variationId,C(Ja,{disableGutters:!0,children:C(Df,{onClick:p(r,o),children:X(Fe,{container:!0,children:[C(Fe,{display:"flex",justifyContent:"start",alignItems:"center",size:{xs:12,sm:3},children:C(PEe,{max:4,spacing:"small",children:e.map(g=>g.mainImage?C(Yl,{src:g.mainImage.url},g.id):C(Yl,{children:C(Ju,{})},g.id))})}),X(Fe,{size:{xs:10,sm:7},children:[e.slice(0,s?e.length:5).map(g=>C("p",{style:{margin:0},children:g.getTranslation().name},g.id)),!s&&e.length>5?C(Tv,{onMouseEnter:()=>l(!0)}):null]}),C(Fe,{display:"flex",justifyContent:"end",size:{xs:2,sm:2},children:C(Hu,{edge:"start",checked:m,tabIndex:-1,disableRipple:!0},`variation-${r}`)}),C(Fe,{size:12,children:C(Qa,{sx:{pt:1}})})]})})})},owt=({onContinue:e,onBack:t})=>{const[n]=qe(),r=Mse(),[o,i]=v.useState("");let a=[],s=new Map;return r.isSuccess&&(a=r.data,o!==""&&(a=a.filter(l=>l.getTranslation().name.toLowerCase().includes(o.toLowerCase())))),s=rwt(a.filter(l=>l.variationId!==null),l=>l.variationId),X(Mt,{children:[X(Fe,{container:!0,children:[C(Fe,{size:{xs:12,sm:6},children:C(ut,{children:n("exercises.whatVariationsExist")})}),C(Fe,{display:"flex",justifyContent:"end",size:{xs:12,sm:6},children:C(gn,{label:n("exercises.filterVariations"),variant:"standard",onChange:l=>i(l.target.value),InputProps:{startAdornment:C(co,{position:"start",children:C(AB,{})})}})})]}),r.isLoading?C(bo,{}):C(so,{elevation:2,sx:{mt:2},children:X(ol,{style:{maxHeight:"400px",overflowY:"scroll"},children:[a.filter(l=>l.variationId===null).map(l=>C(I7,{exercises:[l]},"base-"+l.id)),[...s.keys()].map(l=>C(I7,{exercises:s.get(l)},"variation-"+l))]})}),X(Bu,{severity:"info",variant:"filled",sx:{mt:2},children:[C(CE,{children:n("exercises.identicalExercise")}),n("exercises.identicalExercisePleaseDiscard")]}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:X("div",{children:[C(yt,{disabled:!1,onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",onClick:e,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})};class iwt{constructor(t,n,r,o,i,a,s){this.username=t,this.email=n,this.emailVerified=r,this.dateJoined=o,this.isTrustworthy=i,this.useMetric=a,this.height=s}}class awt{constructor(){pn(this,"fromJson",t=>new iwt(t.username,t.email,t.email_verified,new Date(t.date_joined),t.is_trustworthy,t.weight_unit==="kg",t.height));pn(this,"toJson",t=>({email:t.email,height:t.height,weight_unit:t.useMetric?"kg":"lb"}))}}const swt="userprofile",lwt=async()=>{const e=Pt(swt),t=new awt;try{const n=await dt.get(e,{headers:kt()});return t.fromJson(n.data)}catch{return null}};function Uc(){return oo({queryKey:[L2e],queryFn:lwt})}function cwt(e){const{t}=qe(),[n,r]=Y.useState(e.initial.toString()),o=Fk(),i=Uc(),a=async s=>{r(s.target.value),await YF(e.exerciseId,{category:parseInt(s.target.value),license_author:i.data.username})};return o.isSuccess?X(Cv,{fullWidth:!0,children:[C(Pv,{id:"label-category",children:t("category")}),C(Dh,{labelId:"label-category",id:"category",label:t("category"),value:n,onChange:a,children:o.data.map(s=>C(tn,{value:s.id,children:t(Wi(s.name))},s.id))})]}):null}function uwt(e){const{t}=qe(),[n,r]=Y.useState(e.initial),o=jk(),i=Uc(),a=async s=>{r(s),await YF(e.exerciseId,{equipment:s,license_author:i.data.username})};return o.isSuccess?C(Kl,{multiple:!0,value:n,options:o.data.map(s=>s.id),getOptionLabel:s=>t(Wi(o.data.find(l=>l.id===s).name)),onChange:(s,l)=>a(l),renderInput:s=>C(gn,{variant:"standard",label:t("exercises.equipment"),value:n,...s})}):null}var Ho=function(){return Ho=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ho.apply(this,arguments)};function zk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function k7(e){if(e){var t=e.textContent,n=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/;e.style.direction=t&&n.test(t[0])?"rtl":"ltr"}}function Rse(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function dwt(){if(document.selection)return document.selection.createRange().parentElement();var e=window.getSelection();if(e&&e.rangeCount>0)return e.getRangeAt(0).startContainer.parentNode||void 0}function M7(e){return e?e.replace(/&nbsp;|\u202F|\u00A0/g," ").replace(/<br \/>/g,"<br>"):""}function fwt(e){var t=document.createTextNode("");e.appendChild(t);var n=document.activeElement===e;if(t!==null&&t.nodeValue!==null&&n){var r=window.getSelection();if(r!==null){var o=document.createRange();o.setStart(t,t.nodeValue.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}e instanceof HTMLElement&&e.focus()}}function Dse(e,t){typeof t=="function"?t(e):typeof t=="object"&&t&&(t.current=e)}var pwt=Y.memo(Y.forwardRef(function(t,n){var r=t.className,o=t.disabled,i=t.tagName,a=t.value,s=a===void 0?"":a,l=t.placeholder,c=zk(t,["className","disabled","tagName","value","placeholder"]),u=Y.useRef(),d=Y.useRef(s),f=Y.useRef(c);return Y.useEffect(function(){f.current=c;var p=u.current;p&&M7(d.current)!==M7(s)&&(d.current=s,p.innerHTML=s,fwt(p))}),Y.useMemo(function(){function p(y){u.current=y,k7(y),Dse(y,n)}function m(y){var b,x,S=u.current;if(S){var P=S.innerHTML;P!==d.current&&((x=(b=f.current).onChange)===null||x===void 0||x.call(b,Ho(Ho({},y),{target:{value:P,name:c.name}}))),k7(S),d.current=P}}var g=Rse("rsw-ce",r);return Y.createElement(i||"div",Ho(Ho({},c),{className:g,contentEditable:!o,dangerouslySetInnerHTML:{__html:s},onBlur:function(y){return(f.current.onBlur||m)(y)},onInput:m,onKeyDown:function(y){return(f.current.onKeyDown||m)(y)},onKeyUp:function(y){return(f.current.onKeyUp||m)(y)},placeholder:l,ref:p}))},[r,o,l,i])})),_se=Y.createContext(void 0);function Lse(e){var t=e.children,n=Y.useState({htmlMode:!1,update:i}),r=n[0],o=n[1];function i(a){o(function(s){return Ho(Ho({},s),a)})}return Y.createElement(_se.Provider,{value:r},t)}function QS(){var e=Y.useContext(_se);if(!e)throw new Error("You should wrap your component by EditorProvider");return e}var A7=[],d0=[];function hwt(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",o=t.singleTag===!0,i=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(o){var a=A7.indexOf(i);a===-1&&(a=A7.push(i)-1,d0[a]={}),n=d0[a]&&d0[a][r]?d0[a][r]:d0[a][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],t.attributes[c[u]]);var d=r==="prepend"?"afterbegin":"beforeend";return i.insertAdjacentElement(d,l),l}}var mwt=".rsw-editor{border:1px solid #ddd;border-radius:.375rem;display:flex;flex-direction:column;min-height:100px;overflow:hidden}.rsw-ce{flex:1 0 auto;padding:.5rem}.rsw-ce:focus{outline:1px solid #668}.rsw-ce[contentEditable=true]:empty:not(:focus):before{color:grey;content:attr(placeholder);pointer-events:none}.rsw-html{background:transparent;border:none;font-family:monospace,Courier New}.rsw-separator{align-self:stretch;border-right:1px solid #ddd;display:flex;margin:0 3px}.rsw-dd{box-sizing:border-box;outline:none}.rsw-btn{background:transparent;border:0;color:#222;cursor:pointer;font-size:1em;height:2em;outline:none;padding:0;width:2em}.rsw-btn:hover{background:#eaeaea}.rsw-btn[data-active=true]{background:#e0e0e0}.rsw-toolbar{align-items:center;background-color:#f5f5f5;border-bottom:1px solid #ddd;display:flex}";hwt(mwt,{});var Nse=Y.forwardRef(function(t,n){var r=t.autoFocus,o=t.children,i=t.containerProps,a=t.onSelect,s=zk(t,["autoFocus","children","containerProps","onSelect"]),l=QS();Y.useEffect(function(){return document.addEventListener("click",c),function(){return document.removeEventListener("click",c)}});function c(p){var m;p.target!==l.$el&&(!((m=l.$el)===null||m===void 0)&&m.contains(p.target)||l.update({$selection:void 0}))}function u(p){a==null||a(p),l.update({$selection:dwt()})}function d(p){l.update({$el:p}),Dse(p,n),r&&p&&l.$el===void 0&&p.focus()}var f=Rse("rsw-editor",i==null?void 0:i.className);return l.htmlMode?Y.createElement("div",Ho({},i,{className:f}),o,Y.createElement("textarea",Ho({},s,{className:"rsw-ce rsw-html"}))):Y.createElement("div",Ho({},i,{className:f}),o,Y.createElement(pwt,Ho({},s,{ref:d,onSelect:u})))});function gwt(){return Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},Y.createElement("path",{fill:"currentColor",d:"M6.99938 12.998v-2H20.9994v2H6.99938zm0 6.0001v-2H20.9994v2H6.99938zm0-12.00001v-2H20.9994v2H6.99938zm-4 1v-3h-1v-1h2v4h-1zm-1 9.00001v-1h3v4h-3v-1h2v-.5h-1v-1h1v-.5h-2zM4.25 10c.41421 0 .75.3358.75.75 0 .2024-.08017.3861-.2105.521L3.11983 13H5v1H2v-.9218L4 11H2v-1h2.25z"}))}function ywt(){return Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},Y.createElement("path",{fill:"currentColor",d:"M7 5h14v2H7V5zm0 8v-2h14v2H7zM4 4.50001c.83 0 1.5.66992 1.5 1.5 0 .83007-.67 1.5-1.5 1.5s-1.5-.66993-1.5-1.5c0-.83008.67-1.5 1.5-1.5zM4 10.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM7 19v-2h14v2H7zm-3-2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}))}var Fse=Wc("Bold","𝐁","bold"),jse=Wc("Bullet list",Y.createElement(ywt,null),"insertUnorderedList"),vwt=Wc("Clear formatting","T̲ₓ","removeFormat"),Bse=Wc("Italic","𝑰","italic"),bwt=Wc("Strike through",Y.createElement("s",null,"ab"),"strikeThrough"),wwt=Wc("Link","🔗",function(e){var t=e.$selection;(t==null?void 0:t.nodeName)==="A"?document.execCommand("unlink"):document.execCommand("createLink",!1,prompt("URL","")||void 0)}),zse=Wc("Numbered list",Y.createElement(gwt,null),"insertOrderedList"),Vse=Wc("Redo","↷","redo"),Hse=Wc("Underline",Y.createElement("span",{style:{textDecoration:"underline"}},"𝐔"),"underline"),Use=Wc("Undo","↶","undo");function Wc(e,t,n){return r.displayName=e.replace(/\s/g,""),r;function r(o){var i=QS(),a=i.$el,s=i.$selection,l=!1;typeof n=="string"&&(l=!!s&&document.queryCommandState(n));function c(u){u.preventDefault(),document.activeElement!==a&&(a==null||a.focus()),typeof n=="function"?n(i):document.execCommand(n)}return i.htmlMode?null:Y.createElement("button",Ho({className:"rsw-btn","data-active":l,onMouseDown:c,tabIndex:-1,title:e,type:"button"},o),t)}}var xwt=Swt("Styles",[["Normal","formatBlock","DIV"],["𝗛𝗲𝗮𝗱𝗲𝗿 𝟭","formatBlock","H1"],["Header 2","formatBlock","H2"],["𝙲𝚘𝚍𝚎","formatBlock","PRE"]]);function Swt(e,t){return n.displayName=e,n;function n(r){var o=QS(),i=o.$el,a=o.$selection,s=o.htmlMode;if(s)return null;var l=t.findIndex(function(u){return u[1]==="formatBlock"&&(a==null?void 0:a.nodeName)===u[2]});return Y.createElement(Cwt,Ho({},r,{items:t,onChange:c,selected:l,tabIndex:-1,title:e}));function c(u){var d=u.target,f=d.value,p=parseInt(f,10),m=t[p]||[],g=m[1],y=m[2];u.preventDefault(),document.activeElement!==i&&(i==null||i.focus()),typeof g=="function"?g(o):g&&document.execCommand(g,!1,y),setTimeout(function(){return d.value=f},10)}}}function Cwt(e){var t=e.items,n=e.selected,r=zk(e,["items","selected"]);return Y.createElement("select",Ho({},r,{value:n,className:"rsw-dd"}),Y.createElement("option",{hidden:!0},r.title),t.map(function(o,i){return Y.createElement("option",{key:o[2],value:i},o[0])}))}function Pwt(e){var t=zk(e,[]),n=QS();function r(){n.update({htmlMode:!n.htmlMode})}return Y.createElement("button",Ho({className:"rsw-btn","data-active":n.htmlMode,onClick:r,tabIndex:-1,title:"HTML mode",type:"button"},t),"</>")}function Og(){var e=QS();return e.htmlMode?null:Y.createElement("div",{className:"rsw-separator"})}function Wse(e){return Y.createElement("div",Ho({},e,{className:"rsw-toolbar"}))}Y.forwardRef(function(t,n){return Y.createElement(Lse,null,Y.createElement(Nse,Ho({},t,{ref:n}),Y.createElement(Wse,null,Y.createElement(Use,null),Y.createElement(Vse,null),Y.createElement(Og,null),Y.createElement(Fse,null),Y.createElement(Bse,null),Y.createElement(Hse,null),Y.createElement(bwt,null),Y.createElement(Og,null),Y.createElement(zse,null),Y.createElement(jse,null),Y.createElement(Og,null),Y.createElement(wwt,null),Y.createElement(vwt,null),Y.createElement(Pwt,null),Y.createElement(Og,null),Y.createElement(xwt,null))))});function Ewt(e){return C(Lse,{children:C(Nse,{...e,children:X(Wse,{children:[C(Fse,{}),C(Bse,{}),C(Hse,{}),C(Og,{}),C(jse,{}),C(zse,{}),C(Og,{}),C(Use,{}),C(Vse,{})]})})})}function lz(e){const[t,n,r]=ul(e.fieldName);return X(Mt,{children:[C("div",{"data-testid":"jodit-editor",children:C(Ewt,{value:t.value,onChange:o=>r.setValue(o.target.value)})}),n.touched&&!!n.error&&C(fS,{error:!0,children:n.error})]})}const Twt=({exerciseId:e,image:t,canDelete:n})=>{const[r]=qe(),o=D0t(e);return X(io,{children:[C(_c,{component:"img",image:t.url,sx:{height:120},alt:""}),C(os,{children:n&&C(yt,{color:"primary",onClick:()=>o.mutate(t.id),children:r("delete")})})]})},Owt=({exerciseId:e})=>{const[t]=qe(),n=Uc(),r=_0t(e),o=async i=>{var s;if(!((s=i.target.files)!=null&&s.length))return;const[a]=i.target.files;n.isSuccess&&await r.mutate({exerciseId:e,image:a,imageData:{url:"",file:a,author:"",authorUrl:"",title:"",objectUrl:"",derivativeSourceUrl:"",style:""}})};return X(io,{children:[C(_c,{children:C(Ln,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:C(Vae,{sx:{fontSize:80,color:"gray"}})})}),C(os,{children:X(yt,{component:"label",children:[t("add"),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:o})]})})]})};function $7(e){const{t}=qe(),n=XS(),r=async o=>{e.setValue(o),await YF(e.exerciseId,e.isMain?{muscles:o}:{muscles_secondary:o})};return n.isSuccess?C(Kl,{multiple:!0,options:n.data.map(o=>o.id),getOptionDisabled:o=>e.blocked.includes(o),getOptionLabel:o=>n.data.find(i=>i.id===o).getName(t),value:e.value,onChange:(o,i)=>r(i),renderInput:o=>C(gn,{...o,variant:"standard",label:t(e.isMain?"exercises.muscles":"exercises.secondaryMuscles"),value:e.value})}):null}const Iwt=({video:e,canDelete:t})=>{const[n]=qe();return X(io,{children:[C(_c,{component:"video",src:e.url,sx:{height:120},controls:!0,preload:"metadata"}),C(os,{children:t&&C(yt,{color:"primary",onClick:()=>i_e(e.id),children:n("delete")})})]})},kwt=({exerciseId:e})=>{const[t]=qe(),n=Uc(),r=async o=>{var a;if(!((a=o.target.files)!=null&&a.length))return;const[i]=o.target.files;n.isSuccess&&await o_e(e,n.data.username,i)};return X(io,{children:[C(_c,{children:C(Ln,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:C(Vae,{sx:{fontSize:80,color:"gray"}})})}),C(os,{children:X(yt,{component:"label",children:[t("add"),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"video/*",capture:"environment",onChange:r})]})})]})},Mwt="check-permission",Awt=async e=>{const t=Pt(Mwt,{query:{permission:e}}),n=await dt.get(t,{headers:kt()});return n.status===400?!1:n.data.result};function Ld(e){return oo({queryKey:[_2e,e],queryFn:()=>Awt(e.valueOf())})}var gu=(e=>(e.EDIT_EXERCISE="exercises.change_exercise",e.DELETE_EXERCISE="exercises.delete_exercise",e.ADD_IMAGE="exercises.add_exerciseimage",e.EDIT_IMAGE="exercises.change_exerciseimage",e.DELETE_IMAGE="exercises.delete_exerciseimage",e.ADD_VIDEO="exercises.add_exercisevideo",e.EDIT_VIDEO="exercises.change_exercisevideo",e.DELETE_VIDEO="exercises.delete_exercisevideo",e))(gu||{});const $wt=({exerciseId:e,language:t})=>{const[n]=qe(),[r,o]=v.useState(!1),[i,a]=v.useState([]),[s,l]=v.useState([]),c=A0t(e),u=$0t(e),d=R0t(e),f=Ld(gu.ADD_IMAGE),p=Ld(gu.DELETE_IMAGE),m=Ld(gu.ADD_VIDEO),g=Ld(gu.DELETE_VIDEO),y=Ld(gu.EDIT_EXERCISE),b=XS(),x=Uc(),S=c.data;if(v.useEffect(()=>{c.data!==void 0&&(a(S.muscles.map(M=>M.id)),l(S.musclesSecondary.map(M=>M.id)))},[c.data]),c.isLoading||b.isLoading||c.isLoading||x.isLoading||f.isLoading||p.isLoading||m.isLoading||g.isLoading||y.isLoading)return C(ga,{});const P=S.getTranslation(t),T=t.id!==(P==null?void 0:P.language)?new VZ(null,null,"","",t.id):P,O=S.getTranslation(),k=dl({name:iz(n),alternativeNames:az(n),description:sz(n)});return X(Mt,{children:[C(cl,{initialValues:{name:T.name,alternativeNames:T.aliases.map(M=>M.alias),description:T.description},enableReinitialize:!0,validationSchema:k,onSubmit:async M=>{const I=T.id?await d.mutateAsync({id:T.id,exerciseId:S.id,languageId:t.id,name:M.name,description:M.description,author:""}):await u.mutateAsync({exerciseId:S.id,languageId:t.id,name:M.name,description:M.description,author:x.data.username}),R=T.aliases.map(L=>L.alias),_=M.alternativeNames,N=_.filter(L=>!R.includes(L));let B=R.filter(L=>!_.includes(L));N.forEach(L=>{mD(I.id,L)}),B.forEach(L=>{r_e(T.aliases.find(F=>F.alias===L).id)}),o(!0)},children:C(as,{children:X(Fe,{container:!0,spacing:1,children:[r&&X(Fe,{size:12,children:[C(Bu,{severity:"success",action:C(An,{"aria-label":"close",size:"small",color:"inherit",onClick:()=>{o(!1)},children:C(mS,{fontSize:"inherit"})}),children:n("exercises.successfullyUpdated")}),C(Jo,{})]}),C(Fe,{size:6,children:C(ut,{variant:"h5",children:n("English")})}),C(Fe,{size:6,children:X(ut,{variant:"h5",children:[t.nameLong," (",t.nameShort,")"]})}),X(Fe,{size:12,children:[C(Jo,{}),C(ut,{variant:"h6",children:n("name")})]}),X(Fe,{size:6,children:[O.name,C("ul",{children:O.aliases.map(M=>C("li",{children:M.alias},M.id))})]}),X(Fe,{size:6,children:[C(Ln,{mb:2,children:C(oz,{fieldName:"name"})}),C(rz,{fieldName:"alternativeNames"})]}),C(Fe,{size:12,children:C(Jo,{})}),C(Fe,{size:12,children:C(ut,{variant:"h6",children:n("exercises.description")})}),C(Fe,{size:{xs:12,md:6},children:C("div",{dangerouslySetInnerHTML:{__html:O.description}})}),C(Fe,{size:{xs:12,md:6},children:C(lz,{fieldName:"description"})}),y.data&&X(Mt,{children:[C(Fe,{size:12,children:C(Jo,{})}),C(Fe,{size:{xs:12,md:6},children:C(cwt,{exerciseId:S.id,initial:S.category.id})}),C(Fe,{size:{xs:12,md:6},children:C(uwt,{exerciseId:S.id,initial:S.equipment.map(M=>M.id)})})]}),X(Fe,{size:12,children:[C(Jo,{}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},disabled:c.isLoading||u.isPending||d.isPending,children:n("save")})]})]})})}),C(Jo,{}),C(ut,{variant:"h6",children:n("images")}),X(Fe,{container:!0,spacing:2,mt:2,children:[f.data&&C(Fe,{size:{md:3},children:C(Owt,{exerciseId:S.id})},"add"),S.images.map(M=>C(Fe,{size:{md:3},children:C(Twt,{exerciseId:S.id,image:M,canDelete:p.data})},M.id))]}),C(Jo,{}),C(ut,{variant:"h6",children:n("videos")}),X(Fe,{container:!0,spacing:2,mt:2,children:[m.data&&C(Fe,{size:{md:3},children:C(kwt,{exerciseId:S.id})},"add"),S.videos.map(M=>C(Fe,{size:{md:3},children:C(Iwt,{video:M,canDelete:g.data})},M.id))]}),y.data&&X(Mt,{children:[C(Jo,{}),C(ut,{variant:"h6",children:n("exercises.muscles")}),X(Fe,{container:!0,spacing:1,mt:2,children:[C(Fe,{size:{xs:12,md:6},children:C($7,{exerciseId:S.id,value:i,setValue:a,blocked:s,isMain:!0})}),C(Fe,{size:{xs:12,md:6},children:C($7,{exerciseId:S.id,value:s,setValue:l,blocked:i,isMain:!1})}),C(Fe,{size:{sm:6},offset:{md:3},children:X(Fe,{container:!0,children:[C(Fe,{display:"flex",justifyContent:"center",size:6,children:C(Eh,{primaryMuscles:i.map(M=>b.data.find(I=>I.id===M)),secondaryMuscles:s.map(M=>b.data.find(I=>I.id===M)),isFront:!0})}),C(Fe,{display:"flex",justifyContent:"center",size:6,children:C(Eh,{primaryMuscles:i.map(M=>b.data.find(I=>I.id===M)),secondaryMuscles:s.map(M=>b.data.find(I=>I.id===M)),isFront:!1})})]})})]})]})]})},Rwt=e=>{const t=e.backgroundColor||"lightgray",n=e.iconColor||"gray",r=e.height||200;return C(Ln,{sx:{backgroundColor:t,height:r},display:"flex",alignItems:"center",justifyContent:"center",children:C(Ju,{sx:{fontSize:80,color:n}})})},Gse=({exercise:e,language:t})=>{const n=t?e.getTranslation(t):e.getTranslation(new BF(vh,"en","English")),[r,o]=qe();return C(io,{sx:{width:"100%"},children:X(eTe,{href:Pn(wn.EXERCISE_DETAIL,o.language,{id:e.id,slug:n.nameSlug}),sx:{minHeight:330},children:[e.mainImage?C(_c,{component:"img",image:e.mainImage.url,sx:{height:200},alt:""}):C(_c,{children:C(Rwt,{})}),X(wi,{children:[C(Xl,{title:n.name,placement:"top",arrow:!0,children:C(ut,{gutterBottom:!0,variant:"h6",component:"div",noWrap:!0,children:n.name})}),C(hh,{label:r(Wi(e.category.name)),sx:{position:"absolute",top:8,left:8},color:"primary",size:"small"},e.category.id),e.equipment.map(i=>C(ut,{display:"inline",mr:1,children:r(Wi(i.name))},i.id)),e.equipment.length===0&&C(ut,{color:"text.secondary",display:"inline",mr:1,children:r("exercises.noEquipment")})]})]})},e.id)},Dwt=({mainImage:e,sideImages:t})=>X(Fe,{container:!0,spacing:1,children:[e&&C(Fe,{size:12,children:C(io,{children:C(_c,{component:"img",image:e.url,alt:""})})}),t.map(n=>C(Fe,{size:6,children:C(io,{children:C(_c,{component:"img",image:n.url,sx:{height:120},alt:""})})},n.id))]}),_wt=({videos:e})=>C(Fe,{container:!0,spacing:1,children:e.map(t=>C(Fe,{size:6,children:C(io,{children:C(_c,{component:"video",src:t.url,sx:{height:120},controls:!0,muted:!0,preload:"metadata"})})},t.id))});function cz(){var r,o;const e=Uc(),t=Ld(gu.EDIT_EXERCISE),n={canContribute:!1,anonymous:!0,emailVerified:!1,admin:!1};if(e.isSuccess&&t.isSuccess){if(e.data===null)return n;n.anonymous=!1,(r=e.data)!=null&&r.emailVerified&&(n.emailVerified=!0),t.data&&(n.admin=!0),(n.admin||(o=e.data)!=null&&o.isTrustworthy)&&(n.canContribute=!0)}return n}const Lwt=({setEditMode:e})=>{const[t]=qe();return X(Ln,{mb:2,paddingY:2,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{variant:"h5",children:t("exercises.exerciseNotTranslated")}),C(ut,{gutterBottom:!0,variant:"body1",component:"div",children:t("exercises.exerciseNotTranslatedBody")}),C(yt,{variant:"contained",onClick:()=>e(!0),children:t("exercises.translateExerciseNow")})]})},Nwt=({exercise:e,variations:t,language:n,setEditMode:r})=>{var l;const[o]=qe(),i=cz(),a=e.getTranslation(n),s=n&&n.id!==a.language;return X(Fe,{container:!0,children:[s&&i.canContribute&&C(Fe,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:12},children:C(Lwt,{setEditMode:r})}),X(Fe,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:8},children:[(a==null?void 0:a.aliases.length)>0&&X(Mt,{children:[X("p",{children:[o("exercises.alsoKnownAs"),"  ",(l=a==null?void 0:a.aliases)==null?void 0:l.map(c=>c.alias).join(", ")]}),C(Jo,{})]}),C(ut,{variant:"h5",children:o("exercises.description")}),C("div",{dangerouslySetInnerHTML:{__html:a==null?void 0:a.description}}),C(Jo,{}),(a==null?void 0:a.notes.length)>0&&C(ut,{variant:"h5",children:o("exercises.notes")}),C("ul",{children:a==null?void 0:a.notes.map(c=>C("li",{children:c.note},c.id))}),C(Jo,{}),C(ut,{variant:"h5",children:o("exercises.muscles")}),X(Fe,{container:!0,children:[C(Fe,{order:{xs:1},size:{xs:6,md:3},children:C(Eh,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!0})}),X(Fe,{order:{xs:2,md:3},size:{xs:6,md:3},children:[C("h3",{children:o("exercises.primaryMuscles")}),C("ul",{children:e.muscles.map(c=>C("li",{children:c.getName(o)},c.id))})]}),C(Fe,{order:{xs:3,md:2},size:{xs:6,md:3},children:C(Eh,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!1})}),X(Fe,{order:{xs:4},size:{xs:6,md:3},children:[C("h3",{children:o("exercises.secondaryMuscles")}),C("ul",{children:e.musclesSecondary.map(c=>C("li",{children:c.getName(o)},c.id))})]})]}),C(Jo,{})]}),X(Fe,{order:{xs:1,sm:2},size:{xs:12,sm:5,md:4},children:[C(Dwt,{mainImage:e.mainImage,sideImages:e.sideImages}),C(Jo,{}),C(_wt,{videos:e.videos})]}),X(Fe,{order:{xs:3},size:12,children:[C(Qa,{}),C(Jo,{}),t.length>0&&C(ut,{variant:"h5",children:o("exercises.variations")}),C(Fe,{container:!0,spacing:2,children:t.map(c=>C(Fe,{size:{xs:6,md:2},children:C(Gse,{exercise:c,language:n},c.id)},c.id))})]}),C(Fe,{order:{xs:4},size:12,children:X(ut,{variant:"caption",display:"block",mt:2,children:["The text on this page is available under the ",C("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/deed",children:"CC BY-SA 4 License"}),"."]})})]})};var YT={exports:{}};/**
+ */xle();var Cle=Date.now(),BR="fnValues"+Cle,zR="fnStyle"+ ++Cle,Vwt=function(){return{onCreateRule:function(n,r,o){if(typeof r!="function")return null;var i=zz(n,{},o);return i[zR]=r,i},onProcessStyle:function(n,r){if(BR in r||zR in r)return n;var o={};for(var i in n){var a=n[i];typeof a=="function"&&(delete n[i],o[i]=a)}return r[BR]=o,n},onUpdate:function(n,r,o,i){var a=r,s=a[zR];s&&(a.style=s(n)||{});var l=a[BR];if(l)for(var c in l)a.prop(c,l[c](n),i)}}},kf="@global",lN="@global ",Hwt=function(){function e(n,r,o){this.type="global",this.at=kf,this.isProcessed=!1,this.key=n,this.options=o,this.rules=new vM(D({},o,{parent:this}));for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,o,i){var a=this.rules.add(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(r,o,i){var a=this.rules.replace(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(r){return this.rules.toString(r)},e}(),Uwt=function(){function e(n,r,o){this.type="global",this.at=kf,this.isProcessed=!1,this.key=n,this.options=o;var i=n.substr(lN.length);this.rule=o.jss.createRule(i,r,D({},o,{parent:this}))}var t=e.prototype;return t.toString=function(r){return this.rule?this.rule.toString(r):""},e}(),Wwt=/\s*,\s*/g;function Ple(e,t){for(var n=e.split(Wwt),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Gwt(e,t){var n=e.options,r=e.style,o=r?r[kf]:null;if(o){for(var i in o)t.addRule(i,o[i],D({},n,{selector:Ple(i,e.selector)}));delete r[kf]}}function qwt(e,t){var n=e.options,r=e.style;for(var o in r)if(!(o[0]!=="@"||o.substr(0,kf.length)!==kf)){var i=Ple(o.substr(kf.length),e.selector);t.addRule(i,r[o],D({},n,{selector:i})),delete r[o]}}function Kwt(){function e(n,r,o){if(!n)return null;if(n===kf)return new Hwt(n,r,o);if(n[0]==="@"&&n.substr(0,lN.length)===lN)return new Uwt(n,r,o);var i=o.parent;return i&&(i.type==="global"||i.options.parent&&i.options.parent.type==="global")&&(o.scoped=!1),!o.selector&&o.scoped===!1&&(o.selector=n),null}function t(n,r){n.type!=="style"||!r||(Gwt(n,r),qwt(n,r))}return{onCreateRule:e,onProcessRule:t}}var vq=/\s*,\s*/g,Ywt=/&/g,Xwt=/\$([\w-]+)/g;function Qwt(){function e(o,i){return function(a,s){var l=o.getRule(s)||i&&i.getRule(s);return l?l.selector:s}}function t(o,i){for(var a=i.split(vq),s=o.split(vq),l="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<s.length;d++){var f=s[d];l&&(l+=", "),l+=f.indexOf("&")!==-1?f.replace(Ywt,u):u+" "+f}return l}function n(o,i,a){if(a)return D({},a,{index:a.index+1});var s=o.options.nestingLevel;s=s===void 0?1:s+1;var l=D({},o.options,{nestingLevel:s,index:i.indexOf(o)+1});return delete l.name,l}function r(o,i,a){if(i.type!=="style")return o;var s=i,l=s.options.parent,c,u;for(var d in o){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=n(s,l,c),f){var m=t(d,s.selector);u||(u=e(l,a)),m=m.replace(Xwt,u);var g=s.key+"-"+d;"replaceRule"in l?l.replaceRule(g,o[d],D({},c,{selector:m})):l.addRule(g,o[d],D({},c,{selector:m}))}else p&&l.addRule(d,{},c).addRule(s.key,o[d],{selector:s.selector});delete o[d]}}return o}return{onProcessStyle:r}}var Jwt=/[A-Z]/g,Zwt=/^ms-/,VR={};function ext(e){return"-"+e.toLowerCase()}function Ele(e){if(VR.hasOwnProperty(e))return VR[e];var t=e.replace(Jwt,ext);return VR[e]=Zwt.test(t)?"-"+t:t}function SO(e){var t={};for(var n in e){var r=n.indexOf("--")===0?n:Ele(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(SO):t.fallbacks=SO(e.fallbacks)),t}function txt(){function e(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=SO(n[r]);return n}return SO(n)}function t(n,r,o){if(r.indexOf("--")===0)return n;var i=Ele(r);return r===i?n:(o.prop(i,n),null)}return{onProcessStyle:e,onChangeValue:t}}var He=Hz&&CSS?CSS.px:"px",bP=Hz&&CSS?CSS.ms:"ms",og=Hz&&CSS?CSS.percent:"%",nxt={"animation-delay":bP,"animation-duration":bP,"background-position":He,"background-position-x":He,"background-position-y":He,"background-size":He,border:He,"border-bottom":He,"border-bottom-left-radius":He,"border-bottom-right-radius":He,"border-bottom-width":He,"border-left":He,"border-left-width":He,"border-radius":He,"border-right":He,"border-right-width":He,"border-top":He,"border-top-left-radius":He,"border-top-right-radius":He,"border-top-width":He,"border-width":He,"border-block":He,"border-block-end":He,"border-block-end-width":He,"border-block-start":He,"border-block-start-width":He,"border-block-width":He,"border-inline":He,"border-inline-end":He,"border-inline-end-width":He,"border-inline-start":He,"border-inline-start-width":He,"border-inline-width":He,"border-start-start-radius":He,"border-start-end-radius":He,"border-end-start-radius":He,"border-end-end-radius":He,margin:He,"margin-bottom":He,"margin-left":He,"margin-right":He,"margin-top":He,"margin-block":He,"margin-block-end":He,"margin-block-start":He,"margin-inline":He,"margin-inline-end":He,"margin-inline-start":He,padding:He,"padding-bottom":He,"padding-left":He,"padding-right":He,"padding-top":He,"padding-block":He,"padding-block-end":He,"padding-block-start":He,"padding-inline":He,"padding-inline-end":He,"padding-inline-start":He,"mask-position-x":He,"mask-position-y":He,"mask-size":He,height:He,width:He,"min-height":He,"max-height":He,"min-width":He,"max-width":He,bottom:He,left:He,top:He,right:He,inset:He,"inset-block":He,"inset-block-end":He,"inset-block-start":He,"inset-inline":He,"inset-inline-end":He,"inset-inline-start":He,"box-shadow":He,"text-shadow":He,"column-gap":He,"column-rule":He,"column-rule-width":He,"column-width":He,"font-size":He,"font-size-delta":He,"letter-spacing":He,"text-decoration-thickness":He,"text-indent":He,"text-stroke":He,"text-stroke-width":He,"word-spacing":He,motion:He,"motion-offset":He,outline:He,"outline-offset":He,"outline-width":He,perspective:He,"perspective-origin-x":og,"perspective-origin-y":og,"transform-origin":og,"transform-origin-x":og,"transform-origin-y":og,"transform-origin-z":og,"transition-delay":bP,"transition-duration":bP,"vertical-align":He,"flex-basis":He,"shape-margin":He,size:He,gap:He,grid:He,"grid-gap":He,"row-gap":He,"grid-row-gap":He,"grid-column-gap":He,"grid-template-rows":He,"grid-template-columns":He,"grid-auto-rows":He,"grid-auto-columns":He,"box-shadow-x":He,"box-shadow-y":He,"box-shadow-blur":He,"box-shadow-spread":He,"font-line-height":He,"text-shadow-x":He,"text-shadow-y":He,"text-shadow-blur":He};function Tle(e){var t=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var rxt=Tle(nxt);function jw(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=jw(e,t[r],n);else if(typeof t=="object")if(e==="fallbacks")for(var o in t)t[o]=jw(o,t[o],n);else for(var i in t)t[i]=jw(e+"-"+i,t[i],n);else if(typeof t=="number"&&isNaN(t)===!1){var a=n[e]||rxt[e];return a&&!(t===0&&a===He)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function oxt(e){e===void 0&&(e={});var t=Tle(e);function n(o,i){if(i.type!=="style")return o;for(var a in o)o[a]=jw(a,o[a],t);return o}function r(o,i){return jw(i,o,t)}return{onProcessStyle:n,onChangeValue:r}}function cN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ixt(e){if(Array.isArray(e))return cN(e)}function axt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sxt(e,t){if(e){if(typeof e=="string")return cN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cN(e,t):void 0}}function lxt(){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 cxt(e){return ixt(e)||axt(e)||sxt(e)||lxt()}var ow="",uN="",Ole="",Ile="",uxt=b1&&"ontouchstart"in document.documentElement;if(b1){var HR={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dxt=document.createElement("p"),UR=dxt.style,fxt="Transform";for(var WR in HR)if(WR+fxt in UR){ow=WR,uN=HR[WR];break}ow==="Webkit"&&"msHyphens"in UR&&(ow="ms",uN=HR.ms,Ile="edge"),ow==="Webkit"&&"-apple-trailing-word"in UR&&(Ole="apple")}var an={js:ow,css:uN,vendor:Ole,browser:Ile,isTouch:uxt};function pxt(e){return e[1]==="-"||an.js==="ms"?e:"@"+an.css+"keyframes"+e.substr(10)}var hxt={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:an.js==="ms"?"-webkit-"+t:an.css+t}},mxt={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:an.js==="Webkit"?an.css+"print-"+t:t}},gxt=/[-\s]+(.)?/g;function yxt(e,t){return t?t.toUpperCase():""}function Uz(e){return e.replace(gxt,yxt)}function jf(e){return Uz("-"+e)}var vxt={noPrefill:["mask"],supportedProperty:function(t,n){if(!/^mask/.test(t))return!1;if(an.js==="Webkit"){var r="mask-image";if(Uz(r)in n)return t;if(an.js+jf(r)in n)return an.css+t}return t}},bxt={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:an.vendor==="apple"&&!an.isTouch?an.css+t:t}},wxt={noPrefill:["transform"],supportedProperty:function(t,n,r){return t!=="transform"?!1:r.transform?t:an.css+t}},xxt={noPrefill:["transition"],supportedProperty:function(t,n,r){return t!=="transition"?!1:r.transition?t:an.css+t}},Sxt={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:an.js==="Webkit"||an.js==="ms"&&an.browser!=="edge"?an.css+t:t}},Cxt={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:an.js==="Moz"||an.js==="ms"||an.vendor==="apple"?an.css+t:t}},Pxt={supportedProperty:function(t,n){if(!/^break-/.test(t))return!1;if(an.js==="Webkit"){var r="WebkitColumn"+jf(t);return r in n?an.css+"column-"+t:!1}if(an.js==="Moz"){var o="page"+jf(t);return o in n?"page-"+t:!1}return!1}},Ext={supportedProperty:function(t,n){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(an.js==="Moz")return t;var r=t.replace("-inline","");return an.js+jf(r)in n?an.css+r:!1}},Txt={supportedProperty:function(t,n){return Uz(t)in n?t:!1}},Oxt={supportedProperty:function(t,n){var r=jf(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:an.js+r in n?an.css+t:an.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+t:!1}},Ixt={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:an.js==="ms"?""+an.css+t:t}},kxt={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:an.js==="ms"?an.css+"scroll-chaining":t}},Mxt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Axt={supportedProperty:function(t,n){var r=Mxt[t];return r&&an.js+jf(r)in n?an.css+r:!1}},kle={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$xt=Object.keys(kle),Rxt=function(t){return an.css+t},Dxt={supportedProperty:function(t,n,r){var o=r.multiple;if($xt.indexOf(t)>-1){var i=kle[t];if(!Array.isArray(i))return an.js+jf(i)in n?an.css+i:!1;if(!o)return!1;for(var a=0;a<i.length;a++)if(!(an.js+jf(i[0])in n))return!1;return i.map(Rxt)}return!1}},Mle=[hxt,mxt,vxt,bxt,wxt,xxt,Sxt,Cxt,Pxt,Ext,Txt,Oxt,Ixt,kxt,Axt,Dxt],bq=Mle.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),_xt=Mle.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,cxt(t.noPrefill)),e},[]),iw,Up={};if(b1){iw=document.createElement("p");var GR=window.getComputedStyle(document.documentElement,"");for(var qR in GR)isNaN(qR)||(Up[GR[qR]]=GR[qR]);_xt.forEach(function(e){return delete Up[e]})}function dN(e,t){if(t===void 0&&(t={}),!iw)return e;if(Up[e]!=null)return Up[e];(e==="transition"||e==="transform")&&(t[e]=e in iw.style);for(var n=0;n<bq.length&&(Up[e]=bq[n](e,iw.style,t),!Up[e]);n++);try{iw.style[e]=""}catch{return!1}return Up[e]}var ig={},Lxt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Nxt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Fd;function Fxt(e,t,n){if(t==="var")return"var";if(t==="all")return"all";if(n==="all")return", all";var r=t?dN(t):", "+dN(n);return r||t||n}b1&&(Fd=document.createElement("p"));function wq(e,t){var n=t;if(!Fd||e==="content")return t;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=e+n;if(ig[r]!=null)return ig[r];try{Fd.style[e]=n}catch{return ig[r]=!1,!1}if(Lxt[e])n=n.replace(Nxt,Fxt);else if(Fd.style[e]===""&&(n=an.css+n,n==="-ms-flex"&&(Fd.style[e]="-ms-flexbox"),Fd.style[e]=n,Fd.style[e]===""))return ig[r]=!1,!1;return Fd.style[e]="",ig[r]=n,ig[r]}function jxt(){function e(o){if(o.type==="keyframes"){var i=o;i.at=pxt(i.at)}}function t(o){for(var i in o){var a=o[i];if(i==="fallbacks"&&Array.isArray(a)){o[i]=a.map(t);continue}var s=!1,l=dN(i);l&&l!==i&&(s=!0);var c=!1,u=wq(l,wh(a));u&&u!==a&&(c=!0),(s||c)&&(s&&delete o[i],o[l||i]=u||a)}return o}function n(o,i){return i.type!=="style"?o:t(o)}function r(o,i){return wq(i,wh(o))||o}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function Bxt(){var e=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var o={},i=Object.keys(n).sort(e),a=0;a<i.length;a++)o[i[a]]=n[i[a]];return o}}}function zxt(){return{plugins:[Vwt(),Kwt(),Qwt(),txt(),oxt(),typeof window>"u"?null:jxt(),Bxt()]}}function Ale(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o={...t};return Object.keys(n).forEach(i=>{n[i]&&(o[i]=`${t[i]} ${n[i]}`)}),o}const Ug={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}};function Vxt(){const e=cI();return(e==null?void 0:e.$$material)??e}const Hxt=xle(zxt()),Uxt=twt(),Wxt=new Map,Gxt={disableGeneration:!1,generateClassName:Uxt,jss:Hxt,sheetsCache:null,sheetsManager:Wxt,sheetsRegistry:null},qxt=v.createContext(Gxt);let xq=-1e9;function Kxt(){return xq+=1,xq}function Sq(e){return e.length===0}function Yxt(e){const{variant:t,...n}=e;let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Sq(r)?e[o]:NR(e[o]):r+=`${Sq(r)?o:NR(o)}${NR(e[o].toString())}`}),r}const Xxt={};function Qxt(e){const t=typeof e=="function";return{create:(n,r)=>{let o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return o;const i=n.components[r].styleOverrides||{},a=n.components[r].variants||[],s={...o};return Object.keys(i).forEach(l=>{s[l]=tN(s[l]||{},i[l])}),a.forEach(l=>{const c=Yxt(l.props);s[c]=tN(s[c]||{},l.style)}),s},options:{}}}function Jxt({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=Ale({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}function Zxt({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:o},i){if(n.disableGeneration)return;let a=Ug.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Ug.set(n.sheetsManager,r,t,a));const s={...r.options,...n,theme:t,flip:typeof n.flip=="boolean"?n.flip:t.direction==="rtl"};s.generateId=s.serverGenerateClassName||s.generateClassName;const l=n.sheetsRegistry;if(a.refs===0){let c;n.sheetsCache&&(c=Ug.get(n.sheetsCache,r,t));const u=r.create(t,o);c||(c=n.jss.createStyleSheet(u,{link:!1,...s}),c.attach(),n.sheetsCache&&Ug.set(n.sheetsCache,r,t,c)),l&&l.add(c),a.staticSheet=c,a.dynamicStyles=Sle(u)}if(a.dynamicStyles){const c=n.jss.createStyleSheet(a.dynamicStyles,{link:!0,...s});c.update(i),c.attach(),e.dynamicSheet=c,e.classes=Ale({baseClasses:a.staticSheet.classes,newClasses:c.classes}),l&&l.add(c)}else e.classes=a.staticSheet.classes;a.refs+=1}function eSt({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function tSt({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Ug.get(n.sheetsManager,r,t);o.refs-=1;const i=n.sheetsRegistry;o.refs===0&&(Ug.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function nSt(e,t){const n=v.useRef([]);let r;const o=v.useMemo(()=>({}),t);n.current!==o&&(n.current=o,r=e()),v.useEffect(()=>()=>{r&&r()},[o])}function $le(e,t={}){const{name:n,classNamePrefix:r,Component:o,defaultTheme:i=Xxt,...a}=t,s=Qxt(e),l=n||r||"makeStyles";return s.options={index:Kxt(),name:n,meta:l,classNamePrefix:l},(u={})=>{const d=Vxt()||i,f={...v.useContext(qxt),...a},p=v.useRef(),m=v.useRef();return nSt(()=>{const y={name:n,state:{},stylesCreator:s,stylesOptions:f,theme:d};return Zxt(y,u),m.current=!1,p.current=y,()=>{tSt(y)}},[d,s]),v.useEffect(()=>{m.current&&eSt(p.current,u),m.current=!0}),Jxt(p.current,u.classes,o)}}const rSt=$le(e=>({table:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),oSt=({weights:e})=>{const[t]=Ue(),n=rSt(),o=e.slice(0,5);return C("div",{className:n.table,children:C(od,{children:X(nd,{size:"small",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{align:"center",children:t("date")}),C(Oe,{align:"center",children:t("weight")})]})}),C(rd,{children:o.map(i=>X(Yt,{children:[C(Oe,{align:"center",children:i.date.toLocaleDateString()}),C(Oe,{align:"center",children:i.weight})]},i.date.toLocaleDateString()))})]})})})},iSt=({active:e,payload:t,label:n})=>{const[r,o]=Ue();return e&&t&&t.length?X(fo,{style:{padding:8},children:[C("p",{children:C("strong",{children:new Date(n).toLocaleDateString(o.language)})}),X("p",{children:[r("weight"),": ",t[0].value]})]}):null},Rle=({weights:e,height:t})=>{t=t||300;const r=Lo(),[o,i]=Ue(),[a,s]=Y.useState(!1),[l,c]=Y.useState(),u=()=>s(!1),d=[...e].sort((p,m)=>p.date.getTime()-m.date.getTime()).map(p=>({date:p.date.getTime(),weight:p.weight,entry:p}));function f(p,m){c(m.payload.entry),s(!0)}return X("div",{children:[l&&C(na,{title:o("edit"),isOpen:a,closeFn:u,children:C(kb,{weightEntry:l})}),C(Zf,{height:t,children:X(qoe,{data:d,children:[C(gb,{type:"monotone",dataKey:"weight",stroke:r.palette.secondary.main,strokeWidth:2,dot:d.length>30?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6,onClick:f}}),C(rm,{stroke:"#ccc",strokeDasharray:"5 5"}),C(gl,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:p=>new Date(p).toLocaleDateString(i.language)}),C(yl,{domain:["auto","auto"]}),C(Wa,{content:C(iSt,{})})]})})]})},Dle=()=>{var n,r;const[e]=Ue(),t=v1("lastYear");return C(At,{children:t.isLoading?C(Po,{}):C(At,{children:((n=t.data)==null?void 0:n.length)!==void 0&&((r=t.data)==null?void 0:r.length)>0?C(aSt,{entries:t.data}):C(vj,{title:e("weight"),modalContent:C(kb,{})})})})},aSt=e=>{const[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1),[i,a]=Ue();return X(At,{children:[X(co,{children:[C(uc,{title:i("weight"),subheader:"."}),X(Oi,{sx:{height:"500px",overflow:"auto"},children:[C(Rle,{weights:e.entries,height:200}),C($n,{sx:{mt:2},children:C(oSt,{weights:e.entries})})]}),X(ps,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[C(yt,{size:"small",href:Sn(bn.WEIGHT_OVERVIEW,a.language),children:i("seeDetails")}),C(lc,{title:i("addEntry"),children:C(In,{onClick:r,children:C(Zi,{})})})]})]}),C(na,{title:i("add"),isOpen:t,closeFn:o,children:C(kb,{closeFn:o})})]})},sSt=()=>{const[e,t]=Ue();return C(wz,{callback:r=>{r!==null&&(window.location.href=Sn(bn.INGREDIENT_DETAIL,t.language,{id:r.data.id}))}})},lSt=()=>C("div",{children:"About Page"});function Wz(e){const[t]=Ue(),[n,r,o]=wl(e.fieldName);return C(ac,{multiple:!0,freeSolo:!0,id:e.fieldName,value:n.value,options:n.value,onChange:(i,a)=>{o.setValue(a)},renderTags:(i,a)=>i.map((s,l)=>UN(Ah,{label:s,...a({index:l}),key:l})),onBlur:n.onBlur,renderInput:i=>C(mn,{...i,id:"exerciseAliases",variant:"standard",label:t("exercises.alternativeNames"),error:r.touched&&!!r.error,helperText:r.touched&&r.error,value:n.value})})}function cSt(e){const[t]=Ue(),[n,r,o]=wl(e.fieldName);return C(ac,{multiple:!0,id:e.fieldName,options:e.options.map(i=>i.id),getOptionLabel:i=>t(Ji(e.options.find(a=>a.id===i).name)),...n,onChange:(i,a)=>{o.setValue(a)},renderInput:i=>C(mn,{variant:"standard",label:t("exercises.equipment"),value:n.value,...i})})}function Gz(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("name"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function uSt(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return X(Wv,{fullWidth:!0,children:[C(Gv,{id:"label-category",children:t("category")}),C(Jh,{labelId:"label-category",id:"category",label:t("category"),error:r.touched&&!!r.error,...n,children:e.options}),r.touched&&!!r.error&&C(_S,{error:!0,children:r.error})]})}const _le=5,Lle=40,qz=e=>Kc().min(_le,e("forms.valueTooShort")).max(Lle,e("forms.valueTooLong")).required(e("forms.fieldRequired")),Kz=e=>Dz().ensure().compact().of(Kc().min(_le,e("forms.valueTooShort")).max(Lle,e("forms.valueTooLong"))),Yz=e=>Kc().min(40,e("forms.valueTooShort")).required(e("forms.fieldRequired")),Nle=e=>Dz().ensure().compact().of(Kc().min(15,e("forms.valueTooShort"))),dSt=e=>ha().required(e("forms.fieldRequired"));function Fle(){return lo({queryKey:[Cn.EXERCISES],queryFn:rLe})}function fSt(e){return lo({queryKey:[Cn.EXERCISE_DETAIL,e],queryFn:()=>zS(e)})}function pSt(e){const t=gr();return Rr({mutationFn:n=>YD(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.EXERCISES]}),t.invalidateQueries({queryKey:[Cn.EXERCISE_DETAIL,e]})}})}function hSt(e){const t=gr();return Rr({mutationFn:n=>lLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.EXERCISES]}),t.invalidateQueries({queryKey:[Cn.EXERCISE_DETAIL,e]})}})}function mSt(e){const t=gr();return Rr({mutationFn:n=>fLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.EXERCISES]}),t.invalidateQueries({queryKey:[Cn.EXERCISE_DETAIL,e]})}})}function gSt(e){const t=gr();return Rr({mutationFn:n=>Kee(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Cn.EXERCISES]}),t.invalidateQueries({queryKey:[Cn.EXERCISE_DETAIL,e]})}})}function bM(){return lo({queryKey:[Cn.CATEGORIES],queryFn:J_e})}function w1(){return lo({queryKey:[Cn.MUSCLES],queryFn:G_e})}function wM(){return lo({queryKey:[Cn.EQUIPMENT],queryFn:Y_e})}function xM(){return lo({queryKey:[Cn.LANGUAGES],queryFn:dLe})}const Hh=({primaryMuscles:e,secondaryMuscles:t,isFront:n})=>{const r=[];r.push(...e.filter(i=>i.isFront===n).map(i=>`/muscles/main/muscle-${i.id}.svg`)),r.push(...t.filter(i=>i.isFront===n).map(i=>`/muscles/secondary/muscle-${i.id}.svg`)),r.push(n?"/muscles/muscular_system_front.svg":"/muscles/muscular_system_back.svg");const o=r.map(i=>`url(${RDe}${i})`).join(", ");return C("div",{style:{height:"400px",width:"200px",backgroundImage:o,backgroundRepeat:"no-repeat"}})};var jle=(e=>(e[e.SET_NOTIFICATION=0]="SET_NOTIFICATION",e))(jle||{}),Dn=(e=>(e[e.RESET=0]="RESET",e[e.SET_NAME_EN=1]="SET_NAME_EN",e[e.SET_ALIASES_EN=2]="SET_ALIASES_EN",e[e.SET_DESCRIPTION_EN=3]="SET_DESCRIPTION_EN",e[e.SET_NOTES_EN=4]="SET_NOTES_EN",e[e.SET_CATEGORY=5]="SET_CATEGORY",e[e.SET_EQUIPMENT=6]="SET_EQUIPMENT",e[e.SET_PRIMARY_MUSCLES=7]="SET_PRIMARY_MUSCLES",e[e.SET_MUSCLES_SECONDARY=8]="SET_MUSCLES_SECONDARY",e[e.SET_VARIATION_ID=9]="SET_VARIATION_ID",e[e.SET_NEW_VARIATION_BASE_ID=10]="SET_NEW_VARIATION_BASE_ID",e[e.SET_LANGUAGE=11]="SET_LANGUAGE",e[e.SET_NAME_I18N=12]="SET_NAME_I18N",e[e.SET_ALIASES_I18N=13]="SET_ALIASES_I18N",e[e.SET_DESCRIPTION_I18N=14]="SET_DESCRIPTION_I18N",e[e.SET_NOTES_I18N=15]="SET_NOTES_I18N",e[e.SET_IMAGES=16]="SET_IMAGES",e))(Dn||{});const Cq=e=>({type:jle.SET_NOTIFICATION,payload:e}),Pq={notification:{notify:!1,message:"",severity:void 0,title:"",type:void 0}},ySt=v.createContext([Pq,()=>Pq]),vSt=()=>v.useContext(ySt),bSt=e=>({type:Dn.SET_NAME_EN,payload:e}),wSt=e=>({type:Dn.SET_DESCRIPTION_EN,payload:e}),xSt=e=>({type:Dn.SET_NOTES_EN,payload:e}),SSt=e=>({type:Dn.SET_ALIASES_EN,payload:e}),CSt=e=>({type:Dn.SET_NAME_I18N,payload:e}),PSt=e=>({type:Dn.SET_DESCRIPTION_I18N,payload:e}),ESt=e=>({type:Dn.SET_NOTES_I18N,payload:e}),TSt=e=>({type:Dn.SET_ALIASES_I18N,payload:e}),OSt=e=>({type:Dn.SET_CATEGORY,payload:e}),ISt=e=>({type:Dn.SET_EQUIPMENT,payload:e}),kSt=e=>({type:Dn.SET_PRIMARY_MUSCLES,payload:e}),MSt=e=>({type:Dn.SET_MUSCLES_SECONDARY,payload:e}),ASt=e=>({type:Dn.SET_VARIATION_ID,payload:e}),$St=e=>({type:Dn.SET_NEW_VARIATION_BASE_ID,payload:e}),RSt=e=>({type:Dn.SET_LANGUAGE,payload:e}),DSt=e=>({type:Dn.SET_IMAGES,payload:e}),_St=(e,t)=>{if(t===void 0)return e;switch(t.type){case Dn.RESET:return CO;case Dn.SET_NAME_EN:return{...e,nameEn:t.payload};case Dn.SET_DESCRIPTION_EN:return{...e,descriptionEn:t.payload};case Dn.SET_NOTES_EN:return{...e,notesEn:t.payload};case Dn.SET_ALIASES_EN:return{...e,alternativeNamesEn:t.payload};case Dn.SET_CATEGORY:return{...e,category:t.payload};case Dn.SET_EQUIPMENT:return{...e,equipment:t.payload};case Dn.SET_PRIMARY_MUSCLES:return{...e,muscles:t.payload};case Dn.SET_MUSCLES_SECONDARY:return{...e,musclesSecondary:t.payload};case Dn.SET_VARIATION_ID:return{...e,variationId:t.payload};case Dn.SET_NEW_VARIATION_BASE_ID:return{...e,newVariationBaseId:t.payload};case Dn.SET_LANGUAGE:return{...e,languageId:t.payload};case Dn.SET_NAME_I18N:return{...e,nameI18n:t.payload};case Dn.SET_DESCRIPTION_I18N:return{...e,descriptionI18n:t.payload};case Dn.SET_NOTES_I18N:return{...e,notesI18n:t.payload};case Dn.SET_ALIASES_I18N:return{...e,alternativeNamesI18n:t.payload};case Dn.SET_IMAGES:return{...e,images:t.payload};default:return e}},CO={category:null,muscles:[],musclesSecondary:[],variationId:null,newVariationBaseId:null,languageId:null,equipment:[],nameEn:"",descriptionEn:"",alternativeNamesEn:[],notesEn:[],nameI18n:"",alternativeNamesI18n:[],descriptionI18n:"",notesI18n:[],images:[]},Ble=v.createContext([CO,()=>CO]),LSt=({children:e})=>{const[t,n]=v.useReducer(_St,CO);return C(Ble.Provider,{value:[t,n],children:e})},Ab=()=>v.useContext(Ble),NSt=({onContinue:e})=>{const[t]=Ue(),[n,r]=Ab(),[o,i]=v.useState(n.muscles),[a,s]=v.useState(n.musclesSecondary);v.useEffect(()=>{r(kSt(o))},[r,o]),v.useEffect(()=>{r(MSt(a))},[r,a]);const l=bM(),c=w1(),u=wM(),d=xl({nameEn:qz(t),newAlternativeNameEn:Kz(t),category:dSt(t)});return C(bl,{initialValues:{nameEn:n.nameEn,newAlternativeNameEn:n.alternativeNamesEn,category:n.category!==null?n.category:"",muscles:n.muscles,equipment:n.equipment,musclesSecondary:n.musclesSecondary},validationSchema:d,onSubmit:f=>{r(bSt(f.nameEn)),r(OSt(f.category)),r(SSt(f.newAlternativeNameEn)),r(ISt(f.equipment)),e()},children:f=>X(ms,{children:[X(Gt,{spacing:2,children:[C(Gz,{fieldName:"nameEn"}),C(Wz,{fieldName:"newAlternativeNameEn"}),l.isLoading?X($n,{children:[" ",C(Sa,{})," "]}):C(uSt,{fieldName:"category",options:l.data.map(p=>C(nn,{value:p.id,children:t(Ji(p.name))},p.id))}),u.isLoading?X($n,{children:[" ",C(Sa,{})," "]}):C(cSt,{fieldName:"equipment",options:u.data}),c.isLoading?X($n,{children:[" ",C(Sa,{})," "]}):X(At,{children:[C(ac,{multiple:!0,id:"muscles",options:c.data.map(p=>p.id),getOptionDisabled:p=>a.includes(p),getOptionLabel:p=>c.data.find(m=>m.id===p).getName(t),value:o,onChange:(p,m)=>{i(m)},renderInput:p=>C(mn,{...p,variant:"standard",label:t("exercises.muscles"),value:f.getFieldProps("muscles").value,onChange:m=>{f.setFieldValue(f.getFieldProps("muscles").name,m.target.value)}})}),C(ac,{multiple:!0,id:"secondary-muscles",options:c.data.map(p=>p.id),getOptionDisabled:p=>o.includes(p),getOptionLabel:p=>c.data.find(m=>m.id===p).getName(t),value:a,onChange:(p,m)=>{s(m)},renderInput:p=>C(mn,{...p,variant:"standard",label:t("exercises.secondaryMuscles"),value:f.getFieldProps("muscles").value})})]}),X(_e,{container:!0,children:[C(_e,{display:"flex",justifyContent:"center",size:6,children:C(Hh,{primaryMuscles:o.map(p=>c.data.find(m=>m.id===p)),secondaryMuscles:a.map(p=>c.data.find(m=>m.id===p)),isFront:!0})}),C(_e,{display:"flex",justifyContent:"center",size:6,children:C(Hh,{primaryMuscles:o.map(p=>c.data.find(m=>m.id===p)),secondaryMuscles:a.map(p=>c.data.find(m=>m.id===p)),isFront:!1})})]})]}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:C("div",{children:C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:t("continue")})})})})})]})})};function FSt(e,t){const n=new Map;return e.forEach(r=>{const o=t(r),i=n.get(o);i?i.push(r):n.set(o,[r])}),n}const Eq=({exercises:e})=>{const r=e[0].variationId,o=e[0].id,[i,a]=Ab(),[s,l]=v.useState(!1),[c,u]=v.useState(i.variationId),[d,f]=v.useState(i.newVariationBaseId);v.useEffect(()=>{a(ASt(c))},[a,c]),v.useEffect(()=>{a($St(d))},[a,d]);const p=(g,y)=>()=>{g!==null?(y=null,g===i.variationId&&(g=null)):(g=null,y===i.newVariationBaseId&&(y=null)),u(g),f(y)};let m;return r===null?m=i.newVariationBaseId===o:m=r===i.variationId,C(ss,{disableGutters:!0,children:C(Xf,{onClick:p(r,o),children:X(_e,{container:!0,children:[C(_e,{display:"flex",justifyContent:"start",alignItems:"center",size:{xs:12,sm:3},children:C(DTe,{max:4,spacing:"small",children:e.map(g=>g.mainImage?C(sc,{src:g.mainImage.url},g.id):C(sc,{children:C(fd,{})},g.id))})}),X(_e,{size:{xs:10,sm:7},children:[e.slice(0,s?e.length:5).map(g=>C("p",{style:{margin:0},children:g.getTranslation().name},g.id)),!s&&e.length>5?C(Kv,{onMouseEnter:()=>l(!0)}):null]}),C(_e,{display:"flex",justifyContent:"end",size:{xs:2,sm:2},children:C(td,{edge:"start",checked:m,tabIndex:-1,disableRipple:!0},`variation-${r}`)}),C(_e,{size:12,children:C(as,{sx:{pt:1}})})]})})})},jSt=({onContinue:e,onBack:t})=>{const[n]=Ue(),r=Fle(),[o,i]=v.useState("");let a=[],s=new Map;return r.isSuccess&&(a=r.data,o!==""&&(a=a.filter(l=>l.getTranslation().name.toLowerCase().includes(o.toLowerCase())))),s=FSt(a.filter(l=>l.variationId!==null),l=>l.variationId),X(At,{children:[X(_e,{container:!0,children:[C(_e,{size:{xs:12,sm:6},children:C(ut,{children:n("exercises.whatVariationsExist")})}),C(_e,{display:"flex",justifyContent:"end",size:{xs:12,sm:6},children:C(mn,{label:n("exercises.filterVariations"),variant:"standard",onChange:l=>i(l.target.value),InputProps:{startAdornment:C(go,{position:"start",children:C(bz,{})})}})})]}),r.isLoading?C(Po,{}):C(fo,{elevation:2,sx:{mt:2},children:X(pl,{style:{maxHeight:"400px",overflowY:"scroll"},children:[a.filter(l=>l.variationId===null).map(l=>C(Eq,{exercises:[l]},"base-"+l.id)),[...s.keys()].map(l=>C(Eq,{exercises:s.get(l)},"variation-"+l))]})}),X(Ju,{severity:"info",variant:"filled",sx:{mt:2},children:[C(YE,{children:n("exercises.identicalExercise")}),n("exercises.identicalExercisePleaseDiscard")]}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:X("div",{children:[C(yt,{disabled:!1,onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",onClick:e,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})};class BSt{constructor(t,n,r,o,i,a,s){this.username=t,this.email=n,this.emailVerified=r,this.dateJoined=o,this.isTrustworthy=i,this.useMetric=a,this.height=s}}class zSt{constructor(){tn(this,"fromJson",t=>new BSt(t.username,t.email,t.email_verified,new Date(t.date_joined),t.is_trustworthy,t.weight_unit==="kg",t.height));tn(this,"toJson",t=>({email:t.email,height:t.height,weight_unit:t.useMetric?"kg":"lb"}))}}const VSt="userprofile",HSt=async()=>{const e=Et(VSt),t=new zSt;try{const n=await dt.get(e,{headers:Mt()});return t.fromJson(n.data)}catch{return null}};function nu(){return lo({queryKey:[GDe],queryFn:HSt})}function USt(e){const{t}=Ue(),[n,r]=Y.useState(e.initial.toString()),o=bM(),i=nu(),a=async s=>{r(s.target.value),await Rj(e.exerciseId,{category:parseInt(s.target.value),license_author:i.data.username})};return o.isSuccess?X(Wv,{fullWidth:!0,children:[C(Gv,{id:"label-category",children:t("category")}),C(Jh,{labelId:"label-category",id:"category",label:t("category"),value:n,onChange:a,children:o.data.map(s=>C(nn,{value:s.id,children:t(Ji(s.name))},s.id))})]}):null}function WSt(e){const{t}=Ue(),[n,r]=Y.useState(e.initial),o=wM(),i=nu(),a=async s=>{r(s),await Rj(e.exerciseId,{equipment:s,license_author:i.data.username})};return o.isSuccess?C(ac,{multiple:!0,value:n,options:o.data.map(s=>s.id),getOptionLabel:s=>t(Ji(o.data.find(l=>l.id===s).name)),onChange:(s,l)=>a(l),renderInput:s=>C(mn,{variant:"standard",label:t("exercises.equipment"),value:n,...s})}):null}var Yo=function(){return Yo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yo.apply(this,arguments)};function SM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Tq(e){if(e){var t=e.textContent,n=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/;e.style.direction=t&&n.test(t[0])?"rtl":"ltr"}}function zle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function GSt(){if(document.selection)return document.selection.createRange().parentElement();var e=window.getSelection();if(e&&e.rangeCount>0)return e.getRangeAt(0).startContainer.parentNode||void 0}function Oq(e){return e?e.replace(/&nbsp;|\u202F|\u00A0/g," ").replace(/<br \/>/g,"<br>"):""}function qSt(e){var t=document.createTextNode("");e.appendChild(t);var n=document.activeElement===e;if(t!==null&&t.nodeValue!==null&&n){var r=window.getSelection();if(r!==null){var o=document.createRange();o.setStart(t,t.nodeValue.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}e instanceof HTMLElement&&e.focus()}}function Vle(e,t){typeof t=="function"?t(e):typeof t=="object"&&t&&(t.current=e)}var KSt=Y.memo(Y.forwardRef(function(t,n){var r=t.className,o=t.disabled,i=t.tagName,a=t.value,s=a===void 0?"":a,l=t.placeholder,c=SM(t,["className","disabled","tagName","value","placeholder"]),u=Y.useRef(),d=Y.useRef(s),f=Y.useRef(c);return Y.useEffect(function(){f.current=c;var p=u.current;p&&Oq(d.current)!==Oq(s)&&(d.current=s,p.innerHTML=s,qSt(p))}),Y.useMemo(function(){function p(y){u.current=y,Tq(y),Vle(y,n)}function m(y){var b,x,S=u.current;if(S){var P=S.innerHTML;P!==d.current&&((x=(b=f.current).onChange)===null||x===void 0||x.call(b,Yo(Yo({},y),{target:{value:P,name:c.name}}))),Tq(S),d.current=P}}var g=zle("rsw-ce",r);return Y.createElement(i||"div",Yo(Yo({},c),{className:g,contentEditable:!o,dangerouslySetInnerHTML:{__html:s},onBlur:function(y){return(f.current.onBlur||m)(y)},onInput:m,onKeyDown:function(y){return(f.current.onKeyDown||m)(y)},onKeyUp:function(y){return(f.current.onKeyUp||m)(y)},placeholder:l,ref:p}))},[r,o,l,i])})),Hle=Y.createContext(void 0);function Ule(e){var t=e.children,n=Y.useState({htmlMode:!1,update:i}),r=n[0],o=n[1];function i(a){o(function(s){return Yo(Yo({},s),a)})}return Y.createElement(Hle.Provider,{value:r},t)}function x1(){var e=Y.useContext(Hle);if(!e)throw new Error("You should wrap your component by EditorProvider");return e}var Iq=[],_0=[];function YSt(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",o=t.singleTag===!0,i=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(o){var a=Iq.indexOf(i);a===-1&&(a=Iq.push(i)-1,_0[a]={}),n=_0[a]&&_0[a][r]?_0[a][r]:_0[a][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],t.attributes[c[u]]);var d=r==="prepend"?"afterbegin":"beforeend";return i.insertAdjacentElement(d,l),l}}var XSt=".rsw-editor{border:1px solid #ddd;border-radius:.375rem;display:flex;flex-direction:column;min-height:100px;overflow:hidden}.rsw-ce{flex:1 0 auto;padding:.5rem}.rsw-ce:focus{outline:1px solid #668}.rsw-ce[contentEditable=true]:empty:not(:focus):before{color:grey;content:attr(placeholder);pointer-events:none}.rsw-html{background:transparent;border:none;font-family:monospace,Courier New}.rsw-separator{align-self:stretch;border-right:1px solid #ddd;display:flex;margin:0 3px}.rsw-dd{box-sizing:border-box;outline:none}.rsw-btn{background:transparent;border:0;color:#222;cursor:pointer;font-size:1em;height:2em;outline:none;padding:0;width:2em}.rsw-btn:hover{background:#eaeaea}.rsw-btn[data-active=true]{background:#e0e0e0}.rsw-toolbar{align-items:center;background-color:#f5f5f5;border-bottom:1px solid #ddd;display:flex}";YSt(XSt,{});var Wle=Y.forwardRef(function(t,n){var r=t.autoFocus,o=t.children,i=t.containerProps,a=t.onSelect,s=SM(t,["autoFocus","children","containerProps","onSelect"]),l=x1();Y.useEffect(function(){return document.addEventListener("click",c),function(){return document.removeEventListener("click",c)}});function c(p){var m;p.target!==l.$el&&(!((m=l.$el)===null||m===void 0)&&m.contains(p.target)||l.update({$selection:void 0}))}function u(p){a==null||a(p),l.update({$selection:GSt()})}function d(p){l.update({$el:p}),Vle(p,n),r&&p&&l.$el===void 0&&p.focus()}var f=zle("rsw-editor",i==null?void 0:i.className);return l.htmlMode?Y.createElement("div",Yo({},i,{className:f}),o,Y.createElement("textarea",Yo({},s,{className:"rsw-ce rsw-html"}))):Y.createElement("div",Yo({},i,{className:f}),o,Y.createElement(KSt,Yo({},s,{ref:d,onSelect:u})))});function QSt(){return Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},Y.createElement("path",{fill:"currentColor",d:"M6.99938 12.998v-2H20.9994v2H6.99938zm0 6.0001v-2H20.9994v2H6.99938zm0-12.00001v-2H20.9994v2H6.99938zm-4 1v-3h-1v-1h2v4h-1zm-1 9.00001v-1h3v4h-3v-1h2v-.5h-1v-1h1v-.5h-2zM4.25 10c.41421 0 .75.3358.75.75 0 .2024-.08017.3861-.2105.521L3.11983 13H5v1H2v-.9218L4 11H2v-1h2.25z"}))}function JSt(){return Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},Y.createElement("path",{fill:"currentColor",d:"M7 5h14v2H7V5zm0 8v-2h14v2H7zM4 4.50001c.83 0 1.5.66992 1.5 1.5 0 .83007-.67 1.5-1.5 1.5s-1.5-.66993-1.5-1.5c0-.83008.67-1.5 1.5-1.5zM4 10.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM7 19v-2h14v2H7zm-3-2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}))}var Gle=ru("Bold","𝐁","bold"),qle=ru("Bullet list",Y.createElement(JSt,null),"insertUnorderedList"),ZSt=ru("Clear formatting","T̲ₓ","removeFormat"),Kle=ru("Italic","𝑰","italic"),e1t=ru("Strike through",Y.createElement("s",null,"ab"),"strikeThrough"),t1t=ru("Link","🔗",function(e){var t=e.$selection;(t==null?void 0:t.nodeName)==="A"?document.execCommand("unlink"):document.execCommand("createLink",!1,prompt("URL","")||void 0)}),Yle=ru("Numbered list",Y.createElement(QSt,null),"insertOrderedList"),Xle=ru("Redo","↷","redo"),Qle=ru("Underline",Y.createElement("span",{style:{textDecoration:"underline"}},"𝐔"),"underline"),Jle=ru("Undo","↶","undo");function ru(e,t,n){return r.displayName=e.replace(/\s/g,""),r;function r(o){var i=x1(),a=i.$el,s=i.$selection,l=!1;typeof n=="string"&&(l=!!s&&document.queryCommandState(n));function c(u){u.preventDefault(),document.activeElement!==a&&(a==null||a.focus()),typeof n=="function"?n(i):document.execCommand(n)}return i.htmlMode?null:Y.createElement("button",Yo({className:"rsw-btn","data-active":l,onMouseDown:c,tabIndex:-1,title:e,type:"button"},o),t)}}var n1t=r1t("Styles",[["Normal","formatBlock","DIV"],["𝗛𝗲𝗮𝗱𝗲𝗿 𝟭","formatBlock","H1"],["Header 2","formatBlock","H2"],["𝙲𝚘𝚍𝚎","formatBlock","PRE"]]);function r1t(e,t){return n.displayName=e,n;function n(r){var o=x1(),i=o.$el,a=o.$selection,s=o.htmlMode;if(s)return null;var l=t.findIndex(function(u){return u[1]==="formatBlock"&&(a==null?void 0:a.nodeName)===u[2]});return Y.createElement(o1t,Yo({},r,{items:t,onChange:c,selected:l,tabIndex:-1,title:e}));function c(u){var d=u.target,f=d.value,p=parseInt(f,10),m=t[p]||[],g=m[1],y=m[2];u.preventDefault(),document.activeElement!==i&&(i==null||i.focus()),typeof g=="function"?g(o):g&&document.execCommand(g,!1,y),setTimeout(function(){return d.value=f},10)}}}function o1t(e){var t=e.items,n=e.selected,r=SM(e,["items","selected"]);return Y.createElement("select",Yo({},r,{value:n,className:"rsw-dd"}),Y.createElement("option",{hidden:!0},r.title),t.map(function(o,i){return Y.createElement("option",{key:o[2],value:i},o[0])}))}function i1t(e){var t=SM(e,[]),n=x1();function r(){n.update({htmlMode:!n.htmlMode})}return Y.createElement("button",Yo({className:"rsw-btn","data-active":n.htmlMode,onClick:r,tabIndex:-1,title:"HTML mode",type:"button"},t),"</>")}function Wg(){var e=x1();return e.htmlMode?null:Y.createElement("div",{className:"rsw-separator"})}function Zle(e){return Y.createElement("div",Yo({},e,{className:"rsw-toolbar"}))}Y.forwardRef(function(t,n){return Y.createElement(Ule,null,Y.createElement(Wle,Yo({},t,{ref:n}),Y.createElement(Zle,null,Y.createElement(Jle,null),Y.createElement(Xle,null),Y.createElement(Wg,null),Y.createElement(Gle,null),Y.createElement(Kle,null),Y.createElement(Qle,null),Y.createElement(e1t,null),Y.createElement(Wg,null),Y.createElement(Yle,null),Y.createElement(qle,null),Y.createElement(Wg,null),Y.createElement(t1t,null),Y.createElement(ZSt,null),Y.createElement(i1t,null),Y.createElement(Wg,null),Y.createElement(n1t,null))))});function a1t(e){return C(Ule,{children:C(Wle,{...e,children:X(Zle,{children:[C(Gle,{}),C(Kle,{}),C(Qle,{}),C(Wg,{}),C(qle,{}),C(Yle,{}),C(Wg,{}),C(Jle,{}),C(Xle,{})]})})})}function Xz(e){const[t,n,r]=wl(e.fieldName);return X(At,{children:[C("div",{"data-testid":"jodit-editor",children:C(a1t,{value:t.value,onChange:o=>r.setValue(o.target.value)})}),n.touched&&!!n.error&&C(_S,{error:!0,children:n.error})]})}const s1t=({exerciseId:e,image:t,canDelete:n})=>{const[r]=Ue(),o=mSt(e);return X(co,{children:[C(Gc,{component:"img",image:t.url,sx:{height:120},alt:""}),C(ps,{children:n&&C(yt,{color:"primary",onClick:()=>o.mutate(t.id),children:r("delete")})})]})},l1t=({exerciseId:e})=>{const[t]=Ue(),n=nu(),r=gSt(e),o=async i=>{var s;if(!((s=i.target.files)!=null&&s.length))return;const[a]=i.target.files;n.isSuccess&&await r.mutate({exerciseId:e,image:a,imageData:{url:"",file:a,author:"",authorUrl:"",title:"",objectUrl:"",derivativeSourceUrl:"",style:""}})};return X(co,{children:[C(Gc,{children:C($n,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:C(Yse,{sx:{fontSize:80,color:"gray"}})})}),C(ps,{children:X(yt,{component:"label",children:[t("add"),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:o})]})})]})};function kq(e){const{t}=Ue(),n=w1(),r=async o=>{e.setValue(o),await Rj(e.exerciseId,e.isMain?{muscles:o}:{muscles_secondary:o})};return n.isSuccess?C(ac,{multiple:!0,options:n.data.map(o=>o.id),getOptionDisabled:o=>e.blocked.includes(o),getOptionLabel:o=>n.data.find(i=>i.id===o).getName(t),value:e.value,onChange:(o,i)=>r(i),renderInput:o=>C(mn,{...o,variant:"standard",label:t(e.isMain?"exercises.muscles":"exercises.secondaryMuscles"),value:e.value})}):null}const c1t=({video:e,canDelete:t})=>{const[n]=Ue();return X(co,{children:[C(Gc,{component:"video",src:e.url,sx:{height:120},controls:!0,preload:"metadata"}),C(ps,{children:t&&C(yt,{color:"primary",onClick:()=>mLe(e.id),children:n("delete")})})]})},u1t=({exerciseId:e})=>{const[t]=Ue(),n=nu(),r=async o=>{var a;if(!((a=o.target.files)!=null&&a.length))return;const[i]=o.target.files;n.isSuccess&&await hLe(e,n.data.username,i)};return X(co,{children:[C(Gc,{children:C($n,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:C(Yse,{sx:{fontSize:80,color:"gray"}})})}),C(ps,{children:X(yt,{component:"label",children:[t("add"),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"video/*",capture:"environment",onChange:r})]})})]})},d1t="check-permission",f1t=async e=>{const t=Et(d1t,{query:{permission:e}}),n=await dt.get(t,{headers:Mt()});return n.status===400?!1:n.data.result};function Xd(e){return lo({queryKey:[WDe,e],queryFn:()=>f1t(e.valueOf())})}var Iu=(e=>(e.EDIT_EXERCISE="exercises.change_exercise",e.DELETE_EXERCISE="exercises.delete_exercise",e.ADD_IMAGE="exercises.add_exerciseimage",e.EDIT_IMAGE="exercises.change_exerciseimage",e.DELETE_IMAGE="exercises.delete_exerciseimage",e.ADD_VIDEO="exercises.add_exercisevideo",e.EDIT_VIDEO="exercises.change_exercisevideo",e.DELETE_VIDEO="exercises.delete_exercisevideo",e))(Iu||{});const p1t=({exerciseId:e,language:t})=>{const[n]=Ue(),[r,o]=v.useState(!1),[i,a]=v.useState([]),[s,l]=v.useState([]),c=fSt(e),u=pSt(e),d=hSt(e),f=Xd(Iu.ADD_IMAGE),p=Xd(Iu.DELETE_IMAGE),m=Xd(Iu.ADD_VIDEO),g=Xd(Iu.DELETE_VIDEO),y=Xd(Iu.EDIT_EXERCISE),b=w1(),x=nu(),S=c.data;if(v.useEffect(()=>{c.data!==void 0&&(a(S.muscles.map(M=>M.id)),l(S.musclesSecondary.map(M=>M.id)))},[c.data]),c.isLoading||b.isLoading||c.isLoading||x.isLoading||f.isLoading||p.isLoading||m.isLoading||g.isLoading||y.isLoading)return C(Sa,{});const P=S.getTranslation(t),T=t.id!==(P==null?void 0:P.language)?new Hee(null,null,"","",t.id):P,O=S.getTranslation(),k=xl({name:qz(n),alternativeNames:Kz(n),description:Yz(n)});return X(At,{children:[C(bl,{initialValues:{name:T.name,alternativeNames:T.aliases.map(M=>M.alias),description:T.description},enableReinitialize:!0,validationSchema:k,onSubmit:async M=>{const I=T.id?await d.mutateAsync({id:T.id,exerciseId:S.id,languageId:t.id,name:M.name,description:M.description,author:""}):await u.mutateAsync({exerciseId:S.id,languageId:t.id,name:M.name,description:M.description,author:x.data.username}),R=T.aliases.map(N=>N.alias),_=M.alternativeNames,L=_.filter(N=>!R.includes(N));let j=R.filter(N=>!_.includes(N));L.forEach(N=>{QD(I.id,N)}),j.forEach(N=>{pLe(T.aliases.find(F=>F.alias===N).id)}),o(!0)},children:C(ms,{children:X(_e,{container:!0,spacing:1,children:[r&&X(_e,{size:12,children:[C(Ju,{severity:"success",action:C(In,{"aria-label":"close",size:"small",color:"inherit",onClick:()=>{o(!1)},children:C(FS,{fontSize:"inherit"})}),children:n("exercises.successfullyUpdated")}),C(ii,{})]}),C(_e,{size:6,children:C(ut,{variant:"h5",children:n("English")})}),C(_e,{size:6,children:X(ut,{variant:"h5",children:[t.nameLong," (",t.nameShort,")"]})}),X(_e,{size:12,children:[C(ii,{}),C(ut,{variant:"h6",children:n("name")})]}),X(_e,{size:6,children:[O.name,C("ul",{children:O.aliases.map(M=>C("li",{children:M.alias},M.id))})]}),X(_e,{size:6,children:[C($n,{mb:2,children:C(Gz,{fieldName:"name"})}),C(Wz,{fieldName:"alternativeNames"})]}),C(_e,{size:12,children:C(ii,{})}),C(_e,{size:12,children:C(ut,{variant:"h6",children:n("exercises.description")})}),C(_e,{size:{xs:12,md:6},children:C("div",{dangerouslySetInnerHTML:{__html:O.description}})}),C(_e,{size:{xs:12,md:6},children:C(Xz,{fieldName:"description"})}),y.data&&X(At,{children:[C(_e,{size:12,children:C(ii,{})}),C(_e,{size:{xs:12,md:6},children:C(USt,{exerciseId:S.id,initial:S.category.id})}),C(_e,{size:{xs:12,md:6},children:C(WSt,{exerciseId:S.id,initial:S.equipment.map(M=>M.id)})})]}),X(_e,{size:12,children:[C(ii,{}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},disabled:c.isLoading||u.isPending||d.isPending,children:n("save")})]})]})})}),C(ii,{}),C(ut,{variant:"h6",children:n("images")}),X(_e,{container:!0,spacing:2,mt:2,children:[f.data&&C(_e,{size:{md:3},children:C(l1t,{exerciseId:S.id})},"add"),S.images.map(M=>C(_e,{size:{md:3},children:C(s1t,{exerciseId:S.id,image:M,canDelete:p.data})},M.id))]}),C(ii,{}),C(ut,{variant:"h6",children:n("videos")}),X(_e,{container:!0,spacing:2,mt:2,children:[m.data&&C(_e,{size:{md:3},children:C(u1t,{exerciseId:S.id})},"add"),S.videos.map(M=>C(_e,{size:{md:3},children:C(c1t,{video:M,canDelete:g.data})},M.id))]}),y.data&&X(At,{children:[C(ii,{}),C(ut,{variant:"h6",children:n("exercises.muscles")}),X(_e,{container:!0,spacing:1,mt:2,children:[C(_e,{size:{xs:12,md:6},children:C(kq,{exerciseId:S.id,value:i,setValue:a,blocked:s,isMain:!0})}),C(_e,{size:{xs:12,md:6},children:C(kq,{exerciseId:S.id,value:s,setValue:l,blocked:i,isMain:!1})}),C(_e,{size:{sm:6},offset:{md:3},children:X(_e,{container:!0,children:[C(_e,{display:"flex",justifyContent:"center",size:6,children:C(Hh,{primaryMuscles:i.map(M=>b.data.find(I=>I.id===M)),secondaryMuscles:s.map(M=>b.data.find(I=>I.id===M)),isFront:!0})}),C(_e,{display:"flex",justifyContent:"center",size:6,children:C(Hh,{primaryMuscles:i.map(M=>b.data.find(I=>I.id===M)),secondaryMuscles:s.map(M=>b.data.find(I=>I.id===M)),isFront:!1})})]})})]})]})]})},h1t=e=>{const t=e.backgroundColor||"lightgray",n=e.iconColor||"gray",r=e.height||200;return C($n,{sx:{backgroundColor:t,height:r},display:"flex",alignItems:"center",justifyContent:"center",children:C(fd,{sx:{fontSize:80,color:n}})})},ece=({exercise:e,language:t})=>{const n=t?e.getTranslation(t):e.getTranslation(new Pj(_h,"en","English")),[r,o]=Ue();return C(co,{sx:{width:"100%"},children:X(uOe,{href:Sn(bn.EXERCISE_DETAIL,o.language,{id:e.id,slug:n.nameSlug}),sx:{minHeight:330},children:[e.mainImage?C(Gc,{component:"img",image:e.mainImage.url,sx:{height:200},alt:""}):C(Gc,{children:C(h1t,{})}),X(Oi,{children:[C(lc,{title:n.name,placement:"top",arrow:!0,children:C(ut,{gutterBottom:!0,variant:"h6",component:"div",noWrap:!0,children:n.name})}),C(Ah,{label:r(Ji(e.category.name)),sx:{position:"absolute",top:8,left:8},color:"primary",size:"small"},e.category.id),e.equipment.map(i=>C(ut,{display:"inline",mr:1,children:r(Ji(i.name))},i.id)),e.equipment.length===0&&C(ut,{color:"text.secondary",display:"inline",mr:1,children:r("exercises.noEquipment")})]})]})},e.id)},m1t=({mainImage:e,sideImages:t})=>X(_e,{container:!0,spacing:1,children:[e&&C(_e,{size:12,children:C(co,{children:C(Gc,{component:"img",image:e.url,alt:""})})}),t.map(n=>C(_e,{size:6,children:C(co,{children:C(Gc,{component:"img",image:n.url,sx:{height:120},alt:""})})},n.id))]}),g1t=({videos:e})=>C(_e,{container:!0,spacing:1,children:e.map(t=>C(_e,{size:6,children:C(co,{children:C(Gc,{component:"video",src:t.url,sx:{height:120},controls:!0,muted:!0,preload:"metadata"})})},t.id))});function Qz(){var r,o;const e=nu(),t=Xd(Iu.EDIT_EXERCISE),n={canContribute:!1,anonymous:!0,emailVerified:!1,admin:!1};if(e.isSuccess&&t.isSuccess){if(e.data===null)return n;n.anonymous=!1,(r=e.data)!=null&&r.emailVerified&&(n.emailVerified=!0),t.data&&(n.admin=!0),(n.admin||(o=e.data)!=null&&o.isTrustworthy)&&(n.canContribute=!0)}return n}const y1t=({setEditMode:e})=>{const[t]=Ue();return X($n,{mb:2,paddingY:2,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{variant:"h5",children:t("exercises.exerciseNotTranslated")}),C(ut,{gutterBottom:!0,variant:"body1",component:"div",children:t("exercises.exerciseNotTranslatedBody")}),C(yt,{variant:"contained",onClick:()=>e(!0),children:t("exercises.translateExerciseNow")})]})},v1t=({exercise:e,variations:t,language:n,setEditMode:r})=>{var l;const[o]=Ue(),i=Qz(),a=e.getTranslation(n),s=n&&n.id!==a.language;return X(_e,{container:!0,children:[s&&i.canContribute&&C(_e,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:12},children:C(y1t,{setEditMode:r})}),X(_e,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:8},children:[(a==null?void 0:a.aliases.length)>0&&X(At,{children:[X("p",{children:[o("exercises.alsoKnownAs"),"  ",(l=a==null?void 0:a.aliases)==null?void 0:l.map(c=>c.alias).join(", ")]}),C(ii,{})]}),C(ut,{variant:"h5",children:o("exercises.description")}),C("div",{dangerouslySetInnerHTML:{__html:a==null?void 0:a.description}}),C(ii,{}),(a==null?void 0:a.notes.length)>0&&C(ut,{variant:"h5",children:o("exercises.notes")}),C("ul",{children:a==null?void 0:a.notes.map(c=>C("li",{children:c.note},c.id))}),C(ii,{}),C(ut,{variant:"h5",children:o("exercises.muscles")}),X(_e,{container:!0,children:[C(_e,{order:{xs:1},size:{xs:6,md:3},children:C(Hh,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!0})}),X(_e,{order:{xs:2,md:3},size:{xs:6,md:3},children:[C("h3",{children:o("exercises.primaryMuscles")}),C("ul",{children:e.muscles.map(c=>C("li",{children:c.getName(o)},c.id))})]}),C(_e,{order:{xs:3,md:2},size:{xs:6,md:3},children:C(Hh,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!1})}),X(_e,{order:{xs:4},size:{xs:6,md:3},children:[C("h3",{children:o("exercises.secondaryMuscles")}),C("ul",{children:e.musclesSecondary.map(c=>C("li",{children:c.getName(o)},c.id))})]})]}),C(ii,{})]}),X(_e,{order:{xs:1,sm:2},size:{xs:12,sm:5,md:4},children:[C(m1t,{mainImage:e.mainImage,sideImages:e.sideImages}),C(ii,{}),C(g1t,{videos:e.videos})]}),X(_e,{order:{xs:3},size:12,children:[C(as,{}),C(ii,{}),t.length>0&&C(ut,{variant:"h5",children:o("exercises.variations")}),C(_e,{container:!0,spacing:2,children:t.map(c=>C(_e,{size:{xs:6,md:2},children:C(ece,{exercise:c,language:n},c.id)},c.id))})]}),C(_e,{order:{xs:4},size:12,children:X(ut,{variant:"caption",display:"block",mt:2,children:["The text on this page is available under the ",C("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/deed",children:"CC BY-SA 4 License"}),"."]})})]})};var PO={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */YT.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,f=2,p=4,m=1,g=2,y=1,b=2,x=4,S=8,P=16,E=32,T=64,O=128,k=256,M=512,I=30,R="...",_=800,N=16,B=1,L=2,F=3,U=1/0,V=9007199254740991,z=17976931348623157e292,W=NaN,G=4294967295,J=G-1,K=G>>>1,ne=[["ary",O],["bind",y],["bindKey",b],["curry",S],["curryRight",P],["flip",M],["partial",E],["partialRight",T],["rearg",k]],re="[object Arguments]",oe="[object Array]",fe="[object AsyncFunction]",se="[object Boolean]",ee="[object Date]",ce="[object DOMException]",le="[object Error]",Q="[object Function]",ue="[object GeneratorFunction]",ge="[object Map]",xe="[object Number]",me="[object Null]",be="[object Object]",we="[object Promise]",Oe="[object Proxy]",ke="[object RegExp]",je="[object Set]",de="[object String]",Re="[object Symbol]",Me="[object Undefined]",Ae="[object WeakMap]",Ne="[object WeakSet]",Je="[object ArrayBuffer]",nt="[object DataView]",st="[object Float32Array]",$t="[object Float64Array]",ct="[object Int8Array]",_t="[object Int16Array]",pt="[object Int32Array]",ot="[object Uint8Array]",Pe="[object Uint8ClampedArray]",We="[object Uint16Array]",ft="[object Uint32Array]",Ot=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,vn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zn=/&(?:amp|lt|gt|quot|#39);/g,Wn=/[&<>"']/g,xo=RegExp(zn.source),So=RegExp(Wn.source),ai=/<%-([\s\S]+?)%>/g,Sa=/<%([\s\S]+?)%>/g,Nt=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ss=/^\w*$/,ad=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gc=/[\\^$.*+?()[\]{}|]/g,Kf=RegExp(Gc.source),Yf=/^\s+/,mb=/\s/,rm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,o1=/\{\n\/\* \[wrapped with (.+)\] \*/,Xf=/,? & /,Do=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wr=/[()=,{}\[\]\/\s]/,hl=/\\(\\)?/g,Ke=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,St=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,Rr=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Ca=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qc=/($^)/,Lz=/['\n\r\u2028\u2029\\]/g,om="\\ud800-\\udfff",i1="\\u0300-\\u036f",im="\\ufe20-\\ufe2f",am="\\u20d0-\\u20ff",sm=i1+im+am,Qf="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",ls="\\xac\\xb1\\xd7\\xf7",nc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jf="\\u2000-\\u206f",oM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nz="A-Z\\xc0-\\xd6\\xd8-\\xde",Fz="\\ufe0e\\ufe0f",jz=ls+nc+Jf+oM,iM="['’]",_ce="["+om+"]",Bz="["+jz+"]",a1="["+sm+"]",zz="\\d+",Lce="["+Qf+"]",Vz="["+kn+"]",Hz="[^"+om+jz+zz+Qf+kn+Nz+"]",aM="\\ud83c[\\udffb-\\udfff]",Nce="(?:"+a1+"|"+aM+")",Uz="[^"+om+"]",sM="(?:\\ud83c[\\udde6-\\uddff]){2}",lM="[\\ud800-\\udbff][\\udc00-\\udfff]",lm="["+Nz+"]",Wz="\\u200d",Gz="(?:"+Vz+"|"+Hz+")",Fce="(?:"+lm+"|"+Hz+")",qz="(?:"+iM+"(?:d|ll|m|re|s|t|ve))?",Kz="(?:"+iM+"(?:D|LL|M|RE|S|T|VE))?",Yz=Nce+"?",Xz="["+Fz+"]?",jce="(?:"+Wz+"(?:"+[Uz,sM,lM].join("|")+")"+Xz+Yz+")*",Bce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zce="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qz=Xz+Yz+jce,Vce="(?:"+[Lce,sM,lM].join("|")+")"+Qz,Hce="(?:"+[Uz+a1+"?",a1,sM,lM,_ce].join("|")+")",Uce=RegExp(iM,"g"),Wce=RegExp(a1,"g"),cM=RegExp(aM+"(?="+aM+")|"+Hce+Qz,"g"),Gce=RegExp([lm+"?"+Vz+"+"+qz+"(?="+[Bz,lm,"$"].join("|")+")",Fce+"+"+Kz+"(?="+[Bz,lm+Gz,"$"].join("|")+")",lm+"?"+Gz+"+"+qz,lm+"+"+Kz,zce,Bce,zz,Vce].join("|"),"g"),qce=RegExp("["+Wz+om+sm+Fz+"]"),Kce=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xce=-1,Cr={};Cr[st]=Cr[$t]=Cr[ct]=Cr[_t]=Cr[pt]=Cr[ot]=Cr[Pe]=Cr[We]=Cr[ft]=!0,Cr[re]=Cr[oe]=Cr[Je]=Cr[se]=Cr[nt]=Cr[ee]=Cr[le]=Cr[Q]=Cr[ge]=Cr[xe]=Cr[be]=Cr[ke]=Cr[je]=Cr[de]=Cr[Ae]=!1;var yr={};yr[re]=yr[oe]=yr[Je]=yr[nt]=yr[se]=yr[ee]=yr[st]=yr[$t]=yr[ct]=yr[_t]=yr[pt]=yr[ge]=yr[xe]=yr[be]=yr[ke]=yr[je]=yr[de]=yr[Re]=yr[ot]=yr[Pe]=yr[We]=yr[ft]=!0,yr[le]=yr[Q]=yr[Ae]=!1;var Qce={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zce={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tue=parseFloat,nue=parseInt,Jz=typeof yc=="object"&&yc&&yc.Object===Object&&yc,rue=typeof self=="object"&&self&&self.Object===Object&&self,qo=Jz||rue||Function("return this")(),uM=t&&!t.nodeType&&t,Zf=uM&&!0&&e&&!e.nodeType&&e,Zz=Zf&&Zf.exports===uM,dM=Zz&&Jz.process,cs=function(){try{var Ce=Zf&&Zf.require&&Zf.require("util").types;return Ce||dM&&dM.binding&&dM.binding("util")}catch{}}(),eV=cs&&cs.isArrayBuffer,tV=cs&&cs.isDate,nV=cs&&cs.isMap,rV=cs&&cs.isRegExp,oV=cs&&cs.isSet,iV=cs&&cs.isTypedArray;function Pa(Ce,He,$e){switch($e.length){case 0:return Ce.call(He);case 1:return Ce.call(He,$e[0]);case 2:return Ce.call(He,$e[0],$e[1]);case 3:return Ce.call(He,$e[0],$e[1],$e[2])}return Ce.apply(He,$e)}function oue(Ce,He,$e,Ct){for(var Kt=-1,qn=Ce==null?0:Ce.length;++Kt<qn;){var Po=Ce[Kt];He(Ct,Po,$e(Po),Ce)}return Ct}function us(Ce,He){for(var $e=-1,Ct=Ce==null?0:Ce.length;++$e<Ct&&He(Ce[$e],$e,Ce)!==!1;);return Ce}function iue(Ce,He){for(var $e=Ce==null?0:Ce.length;$e--&&He(Ce[$e],$e,Ce)!==!1;);return Ce}function aV(Ce,He){for(var $e=-1,Ct=Ce==null?0:Ce.length;++$e<Ct;)if(!He(Ce[$e],$e,Ce))return!1;return!0}function sd(Ce,He){for(var $e=-1,Ct=Ce==null?0:Ce.length,Kt=0,qn=[];++$e<Ct;){var Po=Ce[$e];He(Po,$e,Ce)&&(qn[Kt++]=Po)}return qn}function s1(Ce,He){var $e=Ce==null?0:Ce.length;return!!$e&&cm(Ce,He,0)>-1}function fM(Ce,He,$e){for(var Ct=-1,Kt=Ce==null?0:Ce.length;++Ct<Kt;)if($e(He,Ce[Ct]))return!0;return!1}function Dr(Ce,He){for(var $e=-1,Ct=Ce==null?0:Ce.length,Kt=Array(Ct);++$e<Ct;)Kt[$e]=He(Ce[$e],$e,Ce);return Kt}function ld(Ce,He){for(var $e=-1,Ct=He.length,Kt=Ce.length;++$e<Ct;)Ce[Kt+$e]=He[$e];return Ce}function pM(Ce,He,$e,Ct){var Kt=-1,qn=Ce==null?0:Ce.length;for(Ct&&qn&&($e=Ce[++Kt]);++Kt<qn;)$e=He($e,Ce[Kt],Kt,Ce);return $e}function aue(Ce,He,$e,Ct){var Kt=Ce==null?0:Ce.length;for(Ct&&Kt&&($e=Ce[--Kt]);Kt--;)$e=He($e,Ce[Kt],Kt,Ce);return $e}function hM(Ce,He){for(var $e=-1,Ct=Ce==null?0:Ce.length;++$e<Ct;)if(He(Ce[$e],$e,Ce))return!0;return!1}var sue=mM("length");function lue(Ce){return Ce.split("")}function cue(Ce){return Ce.match(Do)||[]}function sV(Ce,He,$e){var Ct;return $e(Ce,function(Kt,qn,Po){if(He(Kt,qn,Po))return Ct=qn,!1}),Ct}function l1(Ce,He,$e,Ct){for(var Kt=Ce.length,qn=$e+(Ct?1:-1);Ct?qn--:++qn<Kt;)if(He(Ce[qn],qn,Ce))return qn;return-1}function cm(Ce,He,$e){return He===He?xue(Ce,He,$e):l1(Ce,lV,$e)}function uue(Ce,He,$e,Ct){for(var Kt=$e-1,qn=Ce.length;++Kt<qn;)if(Ct(Ce[Kt],He))return Kt;return-1}function lV(Ce){return Ce!==Ce}function cV(Ce,He){var $e=Ce==null?0:Ce.length;return $e?yM(Ce,He)/$e:W}function mM(Ce){return function(He){return He==null?n:He[Ce]}}function gM(Ce){return function(He){return Ce==null?n:Ce[He]}}function uV(Ce,He,$e,Ct,Kt){return Kt(Ce,function(qn,Po,dr){$e=Ct?(Ct=!1,qn):He($e,qn,Po,dr)}),$e}function due(Ce,He){var $e=Ce.length;for(Ce.sort(He);$e--;)Ce[$e]=Ce[$e].value;return Ce}function yM(Ce,He){for(var $e,Ct=-1,Kt=Ce.length;++Ct<Kt;){var qn=He(Ce[Ct]);qn!==n&&($e=$e===n?qn:$e+qn)}return $e}function vM(Ce,He){for(var $e=-1,Ct=Array(Ce);++$e<Ce;)Ct[$e]=He($e);return Ct}function fue(Ce,He){return Dr(He,function($e){return[$e,Ce[$e]]})}function dV(Ce){return Ce&&Ce.slice(0,mV(Ce)+1).replace(Yf,"")}function Ea(Ce){return function(He){return Ce(He)}}function bM(Ce,He){return Dr(He,function($e){return Ce[$e]})}function gb(Ce,He){return Ce.has(He)}function fV(Ce,He){for(var $e=-1,Ct=Ce.length;++$e<Ct&&cm(He,Ce[$e],0)>-1;);return $e}function pV(Ce,He){for(var $e=Ce.length;$e--&&cm(He,Ce[$e],0)>-1;);return $e}function pue(Ce,He){for(var $e=Ce.length,Ct=0;$e--;)Ce[$e]===He&&++Ct;return Ct}var hue=gM(Qce),mue=gM(Jce);function gue(Ce){return"\\"+eue[Ce]}function yue(Ce,He){return Ce==null?n:Ce[He]}function um(Ce){return qce.test(Ce)}function vue(Ce){return Kce.test(Ce)}function bue(Ce){for(var He,$e=[];!(He=Ce.next()).done;)$e.push(He.value);return $e}function wM(Ce){var He=-1,$e=Array(Ce.size);return Ce.forEach(function(Ct,Kt){$e[++He]=[Kt,Ct]}),$e}function hV(Ce,He){return function($e){return Ce(He($e))}}function cd(Ce,He){for(var $e=-1,Ct=Ce.length,Kt=0,qn=[];++$e<Ct;){var Po=Ce[$e];(Po===He||Po===u)&&(Ce[$e]=u,qn[Kt++]=$e)}return qn}function c1(Ce){var He=-1,$e=Array(Ce.size);return Ce.forEach(function(Ct){$e[++He]=Ct}),$e}function wue(Ce){var He=-1,$e=Array(Ce.size);return Ce.forEach(function(Ct){$e[++He]=[Ct,Ct]}),$e}function xue(Ce,He,$e){for(var Ct=$e-1,Kt=Ce.length;++Ct<Kt;)if(Ce[Ct]===He)return Ct;return-1}function Sue(Ce,He,$e){for(var Ct=$e+1;Ct--;)if(Ce[Ct]===He)return Ct;return Ct}function dm(Ce){return um(Ce)?Pue(Ce):sue(Ce)}function ml(Ce){return um(Ce)?Eue(Ce):lue(Ce)}function mV(Ce){for(var He=Ce.length;He--&&mb.test(Ce.charAt(He)););return He}var Cue=gM(Zce);function Pue(Ce){for(var He=cM.lastIndex=0;cM.test(Ce);)++He;return He}function Eue(Ce){return Ce.match(cM)||[]}function Tue(Ce){return Ce.match(Gce)||[]}var Oue=function Ce(He){He=He==null?qo:fm.defaults(qo.Object(),He,fm.pick(qo,Yce));var $e=He.Array,Ct=He.Date,Kt=He.Error,qn=He.Function,Po=He.Math,dr=He.Object,xM=He.RegExp,Iue=He.String,ds=He.TypeError,u1=$e.prototype,kue=qn.prototype,pm=dr.prototype,d1=He["__core-js_shared__"],f1=kue.toString,or=pm.hasOwnProperty,Mue=0,gV=function(){var h=/[^.]+$/.exec(d1&&d1.keys&&d1.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),p1=pm.toString,Aue=f1.call(dr),$ue=qo._,Rue=xM("^"+f1.call(or).replace(Gc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h1=Zz?He.Buffer:n,ud=He.Symbol,m1=He.Uint8Array,yV=h1?h1.allocUnsafe:n,g1=hV(dr.getPrototypeOf,dr),vV=dr.create,bV=pm.propertyIsEnumerable,y1=u1.splice,wV=ud?ud.isConcatSpreadable:n,yb=ud?ud.iterator:n,ep=ud?ud.toStringTag:n,v1=function(){try{var h=ip(dr,"defineProperty");return h({},"",{}),h}catch{}}(),Due=He.clearTimeout!==qo.clearTimeout&&He.clearTimeout,_ue=Ct&&Ct.now!==qo.Date.now&&Ct.now,Lue=He.setTimeout!==qo.setTimeout&&He.setTimeout,b1=Po.ceil,w1=Po.floor,SM=dr.getOwnPropertySymbols,Nue=h1?h1.isBuffer:n,xV=He.isFinite,Fue=u1.join,jue=hV(dr.keys,dr),Eo=Po.max,si=Po.min,Bue=Ct.now,zue=He.parseInt,SV=Po.random,Vue=u1.reverse,CM=ip(He,"DataView"),vb=ip(He,"Map"),PM=ip(He,"Promise"),hm=ip(He,"Set"),bb=ip(He,"WeakMap"),wb=ip(dr,"create"),x1=bb&&new bb,mm={},Hue=ap(CM),Uue=ap(vb),Wue=ap(PM),Gue=ap(hm),que=ap(bb),S1=ud?ud.prototype:n,xb=S1?S1.valueOf:n,CV=S1?S1.toString:n;function Z(h){if(Gr(h)&&!en(h)&&!(h instanceof Mn)){if(h instanceof fs)return h;if(or.call(h,"__wrapped__"))return P5(h)}return new fs(h)}var gm=function(){function h(){}return function(w){if(!Fr(w))return{};if(vV)return vV(w);h.prototype=w;var A=new h;return h.prototype=n,A}}();function C1(){}function fs(h,w){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=n}Z.templateSettings={escape:ai,evaluate:Sa,interpolate:Nt,variable:"",imports:{_:Z}},Z.prototype=C1.prototype,Z.prototype.constructor=Z,fs.prototype=gm(C1.prototype),fs.prototype.constructor=fs;function Mn(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Kue(){var h=new Mn(this.__wrapped__);return h.__actions__=Xi(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=Xi(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=Xi(this.__views__),h}function Yue(){if(this.__filtered__){var h=new Mn(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function Xue(){var h=this.__wrapped__.value(),w=this.__dir__,A=en(h),H=w<0,q=A?h.length:0,te=lfe(0,q,this.__views__),he=te.start,ye=te.end,Ee=ye-he,Xe=H?ye:he-1,Qe=this.__iteratees__,et=Qe.length,ht=0,Rt=si(Ee,this.__takeCount__);if(!A||!H&&q==Ee&&Rt==Ee)return qV(h,this.__actions__);var zt=[];e:for(;Ee--&&ht<Rt;){Xe+=w;for(var fn=-1,Vt=h[Xe];++fn<et;){var Tn=Qe[fn],Rn=Tn.iteratee,Ia=Tn.type,Oi=Rn(Vt);if(Ia==L)Vt=Oi;else if(!Oi){if(Ia==B)continue e;break e}}zt[ht++]=Vt}return zt}Mn.prototype=gm(C1.prototype),Mn.prototype.constructor=Mn;function tp(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function Que(){this.__data__=wb?wb(null):{},this.size=0}function Jue(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function Zue(h){var w=this.__data__;if(wb){var A=w[h];return A===l?n:A}return or.call(w,h)?w[h]:n}function ede(h){var w=this.__data__;return wb?w[h]!==n:or.call(w,h)}function tde(h,w){var A=this.__data__;return this.size+=this.has(h)?0:1,A[h]=wb&&w===n?l:w,this}tp.prototype.clear=Que,tp.prototype.delete=Jue,tp.prototype.get=Zue,tp.prototype.has=ede,tp.prototype.set=tde;function Kc(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function nde(){this.__data__=[],this.size=0}function rde(h){var w=this.__data__,A=P1(w,h);if(A<0)return!1;var H=w.length-1;return A==H?w.pop():y1.call(w,A,1),--this.size,!0}function ode(h){var w=this.__data__,A=P1(w,h);return A<0?n:w[A][1]}function ide(h){return P1(this.__data__,h)>-1}function ade(h,w){var A=this.__data__,H=P1(A,h);return H<0?(++this.size,A.push([h,w])):A[H][1]=w,this}Kc.prototype.clear=nde,Kc.prototype.delete=rde,Kc.prototype.get=ode,Kc.prototype.has=ide,Kc.prototype.set=ade;function Yc(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function sde(){this.size=0,this.__data__={hash:new tp,map:new(vb||Kc),string:new tp}}function lde(h){var w=L1(this,h).delete(h);return this.size-=w?1:0,w}function cde(h){return L1(this,h).get(h)}function ude(h){return L1(this,h).has(h)}function dde(h,w){var A=L1(this,h),H=A.size;return A.set(h,w),this.size+=A.size==H?0:1,this}Yc.prototype.clear=sde,Yc.prototype.delete=lde,Yc.prototype.get=cde,Yc.prototype.has=ude,Yc.prototype.set=dde;function np(h){var w=-1,A=h==null?0:h.length;for(this.__data__=new Yc;++w<A;)this.add(h[w])}function fde(h){return this.__data__.set(h,l),this}function pde(h){return this.__data__.has(h)}np.prototype.add=np.prototype.push=fde,np.prototype.has=pde;function gl(h){var w=this.__data__=new Kc(h);this.size=w.size}function hde(){this.__data__=new Kc,this.size=0}function mde(h){var w=this.__data__,A=w.delete(h);return this.size=w.size,A}function gde(h){return this.__data__.get(h)}function yde(h){return this.__data__.has(h)}function vde(h,w){var A=this.__data__;if(A instanceof Kc){var H=A.__data__;if(!vb||H.length<o-1)return H.push([h,w]),this.size=++A.size,this;A=this.__data__=new Yc(H)}return A.set(h,w),this.size=A.size,this}gl.prototype.clear=hde,gl.prototype.delete=mde,gl.prototype.get=gde,gl.prototype.has=yde,gl.prototype.set=vde;function PV(h,w){var A=en(h),H=!A&&sp(h),q=!A&&!H&&md(h),te=!A&&!H&&!q&&wm(h),he=A||H||q||te,ye=he?vM(h.length,Iue):[],Ee=ye.length;for(var Xe in h)(w||or.call(h,Xe))&&!(he&&(Xe=="length"||q&&(Xe=="offset"||Xe=="parent")||te&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Zc(Xe,Ee)))&&ye.push(Xe);return ye}function EV(h){var w=h.length;return w?h[_M(0,w-1)]:n}function bde(h,w){return N1(Xi(h),rp(w,0,h.length))}function wde(h){return N1(Xi(h))}function EM(h,w,A){(A!==n&&!yl(h[w],A)||A===n&&!(w in h))&&Xc(h,w,A)}function Sb(h,w,A){var H=h[w];(!(or.call(h,w)&&yl(H,A))||A===n&&!(w in h))&&Xc(h,w,A)}function P1(h,w){for(var A=h.length;A--;)if(yl(h[A][0],w))return A;return-1}function xde(h,w,A,H){return dd(h,function(q,te,he){w(H,q,A(q),he)}),H}function TV(h,w){return h&&oc(w,_o(w),h)}function Sde(h,w){return h&&oc(w,Ji(w),h)}function Xc(h,w,A){w=="__proto__"&&v1?v1(h,w,{configurable:!0,enumerable:!0,value:A,writable:!0}):h[w]=A}function TM(h,w){for(var A=-1,H=w.length,q=$e(H),te=h==null;++A<H;)q[A]=te?n:aA(h,w[A]);return q}function rp(h,w,A){return h===h&&(A!==n&&(h=h<=A?h:A),w!==n&&(h=h>=w?h:w)),h}function ps(h,w,A,H,q,te){var he,ye=w&d,Ee=w&f,Xe=w&p;if(A&&(he=q?A(h,H,q,te):A(h)),he!==n)return he;if(!Fr(h))return h;var Qe=en(h);if(Qe){if(he=ufe(h),!ye)return Xi(h,he)}else{var et=li(h),ht=et==Q||et==ue;if(md(h))return XV(h,ye);if(et==be||et==re||ht&&!q){if(he=Ee||ht?{}:m5(h),!ye)return Ee?Zde(h,Sde(he,h)):Jde(h,TV(he,h))}else{if(!yr[et])return q?h:{};he=dfe(h,et,ye)}}te||(te=new gl);var Rt=te.get(h);if(Rt)return Rt;te.set(h,he),U5(h)?h.forEach(function(Vt){he.add(ps(Vt,w,A,Vt,h,te))}):V5(h)&&h.forEach(function(Vt,Tn){he.set(Tn,ps(Vt,w,A,Tn,h,te))});var zt=Xe?Ee?GM:WM:Ee?Ji:_o,fn=Qe?n:zt(h);return us(fn||h,function(Vt,Tn){fn&&(Tn=Vt,Vt=h[Tn]),Sb(he,Tn,ps(Vt,w,A,Tn,h,te))}),he}function Cde(h){var w=_o(h);return function(A){return OV(A,h,w)}}function OV(h,w,A){var H=A.length;if(h==null)return!H;for(h=dr(h);H--;){var q=A[H],te=w[q],he=h[q];if(he===n&&!(q in h)||!te(he))return!1}return!0}function IV(h,w,A){if(typeof h!="function")throw new ds(a);return kb(function(){h.apply(n,A)},w)}function Cb(h,w,A,H){var q=-1,te=s1,he=!0,ye=h.length,Ee=[],Xe=w.length;if(!ye)return Ee;A&&(w=Dr(w,Ea(A))),H?(te=fM,he=!1):w.length>=o&&(te=gb,he=!1,w=new np(w));e:for(;++q<ye;){var Qe=h[q],et=A==null?Qe:A(Qe);if(Qe=H||Qe!==0?Qe:0,he&&et===et){for(var ht=Xe;ht--;)if(w[ht]===et)continue e;Ee.push(Qe)}else te(w,et,H)||Ee.push(Qe)}return Ee}var dd=t5(rc),kV=t5(IM,!0);function Pde(h,w){var A=!0;return dd(h,function(H,q,te){return A=!!w(H,q,te),A}),A}function E1(h,w,A){for(var H=-1,q=h.length;++H<q;){var te=h[H],he=w(te);if(he!=null&&(ye===n?he===he&&!Oa(he):A(he,ye)))var ye=he,Ee=te}return Ee}function Ede(h,w,A,H){var q=h.length;for(A=cn(A),A<0&&(A=-A>q?0:q+A),H=H===n||H>q?q:cn(H),H<0&&(H+=q),H=A>H?0:G5(H);A<H;)h[A++]=w;return h}function MV(h,w){var A=[];return dd(h,function(H,q,te){w(H,q,te)&&A.push(H)}),A}function Ko(h,w,A,H,q){var te=-1,he=h.length;for(A||(A=pfe),q||(q=[]);++te<he;){var ye=h[te];w>0&&A(ye)?w>1?Ko(ye,w-1,A,H,q):ld(q,ye):H||(q[q.length]=ye)}return q}var OM=n5(),AV=n5(!0);function rc(h,w){return h&&OM(h,w,_o)}function IM(h,w){return h&&AV(h,w,_o)}function T1(h,w){return sd(w,function(A){return eu(h[A])})}function op(h,w){w=pd(w,h);for(var A=0,H=w.length;h!=null&&A<H;)h=h[ic(w[A++])];return A&&A==H?h:n}function $V(h,w,A){var H=w(h);return en(h)?H:ld(H,A(h))}function Ei(h){return h==null?h===n?Me:me:ep&&ep in dr(h)?sfe(h):wfe(h)}function kM(h,w){return h>w}function Tde(h,w){return h!=null&&or.call(h,w)}function Ode(h,w){return h!=null&&w in dr(h)}function Ide(h,w,A){return h>=si(w,A)&&h<Eo(w,A)}function MM(h,w,A){for(var H=A?fM:s1,q=h[0].length,te=h.length,he=te,ye=$e(te),Ee=1/0,Xe=[];he--;){var Qe=h[he];he&&w&&(Qe=Dr(Qe,Ea(w))),Ee=si(Qe.length,Ee),ye[he]=!A&&(w||q>=120&&Qe.length>=120)?new np(he&&Qe):n}Qe=h[0];var et=-1,ht=ye[0];e:for(;++et<q&&Xe.length<Ee;){var Rt=Qe[et],zt=w?w(Rt):Rt;if(Rt=A||Rt!==0?Rt:0,!(ht?gb(ht,zt):H(Xe,zt,A))){for(he=te;--he;){var fn=ye[he];if(!(fn?gb(fn,zt):H(h[he],zt,A)))continue e}ht&&ht.push(zt),Xe.push(Rt)}}return Xe}function kde(h,w,A,H){return rc(h,function(q,te,he){w(H,A(q),te,he)}),H}function Pb(h,w,A){w=pd(w,h),h=b5(h,w);var H=h==null?h:h[ic(ms(w))];return H==null?n:Pa(H,h,A)}function RV(h){return Gr(h)&&Ei(h)==re}function Mde(h){return Gr(h)&&Ei(h)==Je}function Ade(h){return Gr(h)&&Ei(h)==ee}function Eb(h,w,A,H,q){return h===w?!0:h==null||w==null||!Gr(h)&&!Gr(w)?h!==h&&w!==w:$de(h,w,A,H,Eb,q)}function $de(h,w,A,H,q,te){var he=en(h),ye=en(w),Ee=he?oe:li(h),Xe=ye?oe:li(w);Ee=Ee==re?be:Ee,Xe=Xe==re?be:Xe;var Qe=Ee==be,et=Xe==be,ht=Ee==Xe;if(ht&&md(h)){if(!md(w))return!1;he=!0,Qe=!1}if(ht&&!Qe)return te||(te=new gl),he||wm(h)?f5(h,w,A,H,q,te):ife(h,w,Ee,A,H,q,te);if(!(A&m)){var Rt=Qe&&or.call(h,"__wrapped__"),zt=et&&or.call(w,"__wrapped__");if(Rt||zt){var fn=Rt?h.value():h,Vt=zt?w.value():w;return te||(te=new gl),q(fn,Vt,A,H,te)}}return ht?(te||(te=new gl),afe(h,w,A,H,q,te)):!1}function Rde(h){return Gr(h)&&li(h)==ge}function AM(h,w,A,H){var q=A.length,te=q,he=!H;if(h==null)return!te;for(h=dr(h);q--;){var ye=A[q];if(he&&ye[2]?ye[1]!==h[ye[0]]:!(ye[0]in h))return!1}for(;++q<te;){ye=A[q];var Ee=ye[0],Xe=h[Ee],Qe=ye[1];if(he&&ye[2]){if(Xe===n&&!(Ee in h))return!1}else{var et=new gl;if(H)var ht=H(Xe,Qe,Ee,h,w,et);if(!(ht===n?Eb(Qe,Xe,m|g,H,et):ht))return!1}}return!0}function DV(h){if(!Fr(h)||mfe(h))return!1;var w=eu(h)?Rue:ln;return w.test(ap(h))}function Dde(h){return Gr(h)&&Ei(h)==ke}function _de(h){return Gr(h)&&li(h)==je}function Lde(h){return Gr(h)&&H1(h.length)&&!!Cr[Ei(h)]}function _V(h){return typeof h=="function"?h:h==null?Zi:typeof h=="object"?en(h)?FV(h[0],h[1]):NV(h):rH(h)}function $M(h){if(!Ib(h))return jue(h);var w=[];for(var A in dr(h))or.call(h,A)&&A!="constructor"&&w.push(A);return w}function Nde(h){if(!Fr(h))return bfe(h);var w=Ib(h),A=[];for(var H in h)H=="constructor"&&(w||!or.call(h,H))||A.push(H);return A}function RM(h,w){return h<w}function LV(h,w){var A=-1,H=Qi(h)?$e(h.length):[];return dd(h,function(q,te,he){H[++A]=w(q,te,he)}),H}function NV(h){var w=KM(h);return w.length==1&&w[0][2]?y5(w[0][0],w[0][1]):function(A){return A===h||AM(A,h,w)}}function FV(h,w){return XM(h)&&g5(w)?y5(ic(h),w):function(A){var H=aA(A,h);return H===n&&H===w?sA(A,h):Eb(w,H,m|g)}}function O1(h,w,A,H,q){h!==w&&OM(w,function(te,he){if(q||(q=new gl),Fr(te))Fde(h,w,he,A,O1,H,q);else{var ye=H?H(JM(h,he),te,he+"",h,w,q):n;ye===n&&(ye=te),EM(h,he,ye)}},Ji)}function Fde(h,w,A,H,q,te,he){var ye=JM(h,A),Ee=JM(w,A),Xe=he.get(Ee);if(Xe){EM(h,A,Xe);return}var Qe=te?te(ye,Ee,A+"",h,w,he):n,et=Qe===n;if(et){var ht=en(Ee),Rt=!ht&&md(Ee),zt=!ht&&!Rt&&wm(Ee);Qe=Ee,ht||Rt||zt?en(ye)?Qe=ye:eo(ye)?Qe=Xi(ye):Rt?(et=!1,Qe=XV(Ee,!0)):zt?(et=!1,Qe=QV(Ee,!0)):Qe=[]:Mb(Ee)||sp(Ee)?(Qe=ye,sp(ye)?Qe=q5(ye):(!Fr(ye)||eu(ye))&&(Qe=m5(Ee))):et=!1}et&&(he.set(Ee,Qe),q(Qe,Ee,H,te,he),he.delete(Ee)),EM(h,A,Qe)}function jV(h,w){var A=h.length;if(A)return w+=w<0?A:0,Zc(w,A)?h[w]:n}function BV(h,w,A){w.length?w=Dr(w,function(te){return en(te)?function(he){return op(he,te.length===1?te[0]:te)}:te}):w=[Zi];var H=-1;w=Dr(w,Ea(Ft()));var q=LV(h,function(te,he,ye){var Ee=Dr(w,function(Xe){return Xe(te)});return{criteria:Ee,index:++H,value:te}});return due(q,function(te,he){return Qde(te,he,A)})}function jde(h,w){return zV(h,w,function(A,H){return sA(h,H)})}function zV(h,w,A){for(var H=-1,q=w.length,te={};++H<q;){var he=w[H],ye=op(h,he);A(ye,he)&&Tb(te,pd(he,h),ye)}return te}function Bde(h){return function(w){return op(w,h)}}function DM(h,w,A,H){var q=H?uue:cm,te=-1,he=w.length,ye=h;for(h===w&&(w=Xi(w)),A&&(ye=Dr(h,Ea(A)));++te<he;)for(var Ee=0,Xe=w[te],Qe=A?A(Xe):Xe;(Ee=q(ye,Qe,Ee,H))>-1;)ye!==h&&y1.call(ye,Ee,1),y1.call(h,Ee,1);return h}function VV(h,w){for(var A=h?w.length:0,H=A-1;A--;){var q=w[A];if(A==H||q!==te){var te=q;Zc(q)?y1.call(h,q,1):FM(h,q)}}return h}function _M(h,w){return h+w1(SV()*(w-h+1))}function zde(h,w,A,H){for(var q=-1,te=Eo(b1((w-h)/(A||1)),0),he=$e(te);te--;)he[H?te:++q]=h,h+=A;return he}function LM(h,w){var A="";if(!h||w<1||w>V)return A;do w%2&&(A+=h),w=w1(w/2),w&&(h+=h);while(w);return A}function bn(h,w){return ZM(v5(h,w,Zi),h+"")}function Vde(h){return EV(xm(h))}function Hde(h,w){var A=xm(h);return N1(A,rp(w,0,A.length))}function Tb(h,w,A,H){if(!Fr(h))return h;w=pd(w,h);for(var q=-1,te=w.length,he=te-1,ye=h;ye!=null&&++q<te;){var Ee=ic(w[q]),Xe=A;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return h;if(q!=he){var Qe=ye[Ee];Xe=H?H(Qe,Ee,ye):n,Xe===n&&(Xe=Fr(Qe)?Qe:Zc(w[q+1])?[]:{})}Sb(ye,Ee,Xe),ye=ye[Ee]}return h}var HV=x1?function(h,w){return x1.set(h,w),h}:Zi,Ude=v1?function(h,w){return v1(h,"toString",{configurable:!0,enumerable:!1,value:cA(w),writable:!0})}:Zi;function Wde(h){return N1(xm(h))}function hs(h,w,A){var H=-1,q=h.length;w<0&&(w=-w>q?0:q+w),A=A>q?q:A,A<0&&(A+=q),q=w>A?0:A-w>>>0,w>>>=0;for(var te=$e(q);++H<q;)te[H]=h[H+w];return te}function Gde(h,w){var A;return dd(h,function(H,q,te){return A=w(H,q,te),!A}),!!A}function I1(h,w,A){var H=0,q=h==null?H:h.length;if(typeof w=="number"&&w===w&&q<=K){for(;H<q;){var te=H+q>>>1,he=h[te];he!==null&&!Oa(he)&&(A?he<=w:he<w)?H=te+1:q=te}return q}return NM(h,w,Zi,A)}function NM(h,w,A,H){var q=0,te=h==null?0:h.length;if(te===0)return 0;w=A(w);for(var he=w!==w,ye=w===null,Ee=Oa(w),Xe=w===n;q<te;){var Qe=w1((q+te)/2),et=A(h[Qe]),ht=et!==n,Rt=et===null,zt=et===et,fn=Oa(et);if(he)var Vt=H||zt;else Xe?Vt=zt&&(H||ht):ye?Vt=zt&&ht&&(H||!Rt):Ee?Vt=zt&&ht&&!Rt&&(H||!fn):Rt||fn?Vt=!1:Vt=H?et<=w:et<w;Vt?q=Qe+1:te=Qe}return si(te,J)}function UV(h,w){for(var A=-1,H=h.length,q=0,te=[];++A<H;){var he=h[A],ye=w?w(he):he;if(!A||!yl(ye,Ee)){var Ee=ye;te[q++]=he===0?0:he}}return te}function WV(h){return typeof h=="number"?h:Oa(h)?W:+h}function Ta(h){if(typeof h=="string")return h;if(en(h))return Dr(h,Ta)+"";if(Oa(h))return CV?CV.call(h):"";var w=h+"";return w=="0"&&1/h==-U?"-0":w}function fd(h,w,A){var H=-1,q=s1,te=h.length,he=!0,ye=[],Ee=ye;if(A)he=!1,q=fM;else if(te>=o){var Xe=w?null:rfe(h);if(Xe)return c1(Xe);he=!1,q=gb,Ee=new np}else Ee=w?[]:ye;e:for(;++H<te;){var Qe=h[H],et=w?w(Qe):Qe;if(Qe=A||Qe!==0?Qe:0,he&&et===et){for(var ht=Ee.length;ht--;)if(Ee[ht]===et)continue e;w&&Ee.push(et),ye.push(Qe)}else q(Ee,et,A)||(Ee!==ye&&Ee.push(et),ye.push(Qe))}return ye}function FM(h,w){return w=pd(w,h),h=b5(h,w),h==null||delete h[ic(ms(w))]}function GV(h,w,A,H){return Tb(h,w,A(op(h,w)),H)}function k1(h,w,A,H){for(var q=h.length,te=H?q:-1;(H?te--:++te<q)&&w(h[te],te,h););return A?hs(h,H?0:te,H?te+1:q):hs(h,H?te+1:0,H?q:te)}function qV(h,w){var A=h;return A instanceof Mn&&(A=A.value()),pM(w,function(H,q){return q.func.apply(q.thisArg,ld([H],q.args))},A)}function jM(h,w,A){var H=h.length;if(H<2)return H?fd(h[0]):[];for(var q=-1,te=$e(H);++q<H;)for(var he=h[q],ye=-1;++ye<H;)ye!=q&&(te[q]=Cb(te[q]||he,h[ye],w,A));return fd(Ko(te,1),w,A)}function KV(h,w,A){for(var H=-1,q=h.length,te=w.length,he={};++H<q;){var ye=H<te?w[H]:n;A(he,h[H],ye)}return he}function BM(h){return eo(h)?h:[]}function zM(h){return typeof h=="function"?h:Zi}function pd(h,w){return en(h)?h:XM(h,w)?[h]:C5(Jn(h))}var qde=bn;function hd(h,w,A){var H=h.length;return A=A===n?H:A,!w&&A>=H?h:hs(h,w,A)}var YV=Due||function(h){return qo.clearTimeout(h)};function XV(h,w){if(w)return h.slice();var A=h.length,H=yV?yV(A):new h.constructor(A);return h.copy(H),H}function VM(h){var w=new h.constructor(h.byteLength);return new m1(w).set(new m1(h)),w}function Kde(h,w){var A=w?VM(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.byteLength)}function Yde(h){var w=new h.constructor(h.source,Be.exec(h));return w.lastIndex=h.lastIndex,w}function Xde(h){return xb?dr(xb.call(h)):{}}function QV(h,w){var A=w?VM(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.length)}function JV(h,w){if(h!==w){var A=h!==n,H=h===null,q=h===h,te=Oa(h),he=w!==n,ye=w===null,Ee=w===w,Xe=Oa(w);if(!ye&&!Xe&&!te&&h>w||te&&he&&Ee&&!ye&&!Xe||H&&he&&Ee||!A&&Ee||!q)return 1;if(!H&&!te&&!Xe&&h<w||Xe&&A&&q&&!H&&!te||ye&&A&&q||!he&&q||!Ee)return-1}return 0}function Qde(h,w,A){for(var H=-1,q=h.criteria,te=w.criteria,he=q.length,ye=A.length;++H<he;){var Ee=JV(q[H],te[H]);if(Ee){if(H>=ye)return Ee;var Xe=A[H];return Ee*(Xe=="desc"?-1:1)}}return h.index-w.index}function ZV(h,w,A,H){for(var q=-1,te=h.length,he=A.length,ye=-1,Ee=w.length,Xe=Eo(te-he,0),Qe=$e(Ee+Xe),et=!H;++ye<Ee;)Qe[ye]=w[ye];for(;++q<he;)(et||q<te)&&(Qe[A[q]]=h[q]);for(;Xe--;)Qe[ye++]=h[q++];return Qe}function e5(h,w,A,H){for(var q=-1,te=h.length,he=-1,ye=A.length,Ee=-1,Xe=w.length,Qe=Eo(te-ye,0),et=$e(Qe+Xe),ht=!H;++q<Qe;)et[q]=h[q];for(var Rt=q;++Ee<Xe;)et[Rt+Ee]=w[Ee];for(;++he<ye;)(ht||q<te)&&(et[Rt+A[he]]=h[q++]);return et}function Xi(h,w){var A=-1,H=h.length;for(w||(w=$e(H));++A<H;)w[A]=h[A];return w}function oc(h,w,A,H){var q=!A;A||(A={});for(var te=-1,he=w.length;++te<he;){var ye=w[te],Ee=H?H(A[ye],h[ye],ye,A,h):n;Ee===n&&(Ee=h[ye]),q?Xc(A,ye,Ee):Sb(A,ye,Ee)}return A}function Jde(h,w){return oc(h,YM(h),w)}function Zde(h,w){return oc(h,p5(h),w)}function M1(h,w){return function(A,H){var q=en(A)?oue:xde,te=w?w():{};return q(A,h,Ft(H,2),te)}}function ym(h){return bn(function(w,A){var H=-1,q=A.length,te=q>1?A[q-1]:n,he=q>2?A[2]:n;for(te=h.length>3&&typeof te=="function"?(q--,te):n,he&&Ti(A[0],A[1],he)&&(te=q<3?n:te,q=1),w=dr(w);++H<q;){var ye=A[H];ye&&h(w,ye,H,te)}return w})}function t5(h,w){return function(A,H){if(A==null)return A;if(!Qi(A))return h(A,H);for(var q=A.length,te=w?q:-1,he=dr(A);(w?te--:++te<q)&&H(he[te],te,he)!==!1;);return A}}function n5(h){return function(w,A,H){for(var q=-1,te=dr(w),he=H(w),ye=he.length;ye--;){var Ee=he[h?ye:++q];if(A(te[Ee],Ee,te)===!1)break}return w}}function efe(h,w,A){var H=w&y,q=Ob(h);function te(){var he=this&&this!==qo&&this instanceof te?q:h;return he.apply(H?A:this,arguments)}return te}function r5(h){return function(w){w=Jn(w);var A=um(w)?ml(w):n,H=A?A[0]:w.charAt(0),q=A?hd(A,1).join(""):w.slice(1);return H[h]()+q}}function vm(h){return function(w){return pM(tH(eH(w).replace(Uce,"")),h,"")}}function Ob(h){return function(){var w=arguments;switch(w.length){case 0:return new h;case 1:return new h(w[0]);case 2:return new h(w[0],w[1]);case 3:return new h(w[0],w[1],w[2]);case 4:return new h(w[0],w[1],w[2],w[3]);case 5:return new h(w[0],w[1],w[2],w[3],w[4]);case 6:return new h(w[0],w[1],w[2],w[3],w[4],w[5]);case 7:return new h(w[0],w[1],w[2],w[3],w[4],w[5],w[6])}var A=gm(h.prototype),H=h.apply(A,w);return Fr(H)?H:A}}function tfe(h,w,A){var H=Ob(h);function q(){for(var te=arguments.length,he=$e(te),ye=te,Ee=bm(q);ye--;)he[ye]=arguments[ye];var Xe=te<3&&he[0]!==Ee&&he[te-1]!==Ee?[]:cd(he,Ee);if(te-=Xe.length,te<A)return l5(h,w,A1,q.placeholder,n,he,Xe,n,n,A-te);var Qe=this&&this!==qo&&this instanceof q?H:h;return Pa(Qe,this,he)}return q}function o5(h){return function(w,A,H){var q=dr(w);if(!Qi(w)){var te=Ft(A,3);w=_o(w),A=function(ye){return te(q[ye],ye,q)}}var he=h(w,A,H);return he>-1?q[te?w[he]:he]:n}}function i5(h){return Jc(function(w){var A=w.length,H=A,q=fs.prototype.thru;for(h&&w.reverse();H--;){var te=w[H];if(typeof te!="function")throw new ds(a);if(q&&!he&&_1(te)=="wrapper")var he=new fs([],!0)}for(H=he?H:A;++H<A;){te=w[H];var ye=_1(te),Ee=ye=="wrapper"?qM(te):n;Ee&&QM(Ee[0])&&Ee[1]==(O|S|E|k)&&!Ee[4].length&&Ee[9]==1?he=he[_1(Ee[0])].apply(he,Ee[3]):he=te.length==1&&QM(te)?he[ye]():he.thru(te)}return function(){var Xe=arguments,Qe=Xe[0];if(he&&Xe.length==1&&en(Qe))return he.plant(Qe).value();for(var et=0,ht=A?w[et].apply(this,Xe):Qe;++et<A;)ht=w[et].call(this,ht);return ht}})}function A1(h,w,A,H,q,te,he,ye,Ee,Xe){var Qe=w&O,et=w&y,ht=w&b,Rt=w&(S|P),zt=w&M,fn=ht?n:Ob(h);function Vt(){for(var Tn=arguments.length,Rn=$e(Tn),Ia=Tn;Ia--;)Rn[Ia]=arguments[Ia];if(Rt)var Oi=bm(Vt),ka=pue(Rn,Oi);if(H&&(Rn=ZV(Rn,H,q,Rt)),te&&(Rn=e5(Rn,te,he,Rt)),Tn-=ka,Rt&&Tn<Xe){var to=cd(Rn,Oi);return l5(h,w,A1,Vt.placeholder,A,Rn,to,ye,Ee,Xe-Tn)}var vl=et?A:this,nu=ht?vl[h]:h;return Tn=Rn.length,ye?Rn=xfe(Rn,ye):zt&&Tn>1&&Rn.reverse(),Qe&&Ee<Tn&&(Rn.length=Ee),this&&this!==qo&&this instanceof Vt&&(nu=fn||Ob(nu)),nu.apply(vl,Rn)}return Vt}function a5(h,w){return function(A,H){return kde(A,h,w(H),{})}}function $1(h,w){return function(A,H){var q;if(A===n&&H===n)return w;if(A!==n&&(q=A),H!==n){if(q===n)return H;typeof A=="string"||typeof H=="string"?(A=Ta(A),H=Ta(H)):(A=WV(A),H=WV(H)),q=h(A,H)}return q}}function HM(h){return Jc(function(w){return w=Dr(w,Ea(Ft())),bn(function(A){var H=this;return h(w,function(q){return Pa(q,H,A)})})})}function R1(h,w){w=w===n?" ":Ta(w);var A=w.length;if(A<2)return A?LM(w,h):w;var H=LM(w,b1(h/dm(w)));return um(w)?hd(ml(H),0,h).join(""):H.slice(0,h)}function nfe(h,w,A,H){var q=w&y,te=Ob(h);function he(){for(var ye=-1,Ee=arguments.length,Xe=-1,Qe=H.length,et=$e(Qe+Ee),ht=this&&this!==qo&&this instanceof he?te:h;++Xe<Qe;)et[Xe]=H[Xe];for(;Ee--;)et[Xe++]=arguments[++ye];return Pa(ht,q?A:this,et)}return he}function s5(h){return function(w,A,H){return H&&typeof H!="number"&&Ti(w,A,H)&&(A=H=n),w=tu(w),A===n?(A=w,w=0):A=tu(A),H=H===n?w<A?1:-1:tu(H),zde(w,A,H,h)}}function D1(h){return function(w,A){return typeof w=="string"&&typeof A=="string"||(w=gs(w),A=gs(A)),h(w,A)}}function l5(h,w,A,H,q,te,he,ye,Ee,Xe){var Qe=w&S,et=Qe?he:n,ht=Qe?n:he,Rt=Qe?te:n,zt=Qe?n:te;w|=Qe?E:T,w&=~(Qe?T:E),w&x||(w&=~(y|b));var fn=[h,w,q,Rt,et,zt,ht,ye,Ee,Xe],Vt=A.apply(n,fn);return QM(h)&&w5(Vt,fn),Vt.placeholder=H,x5(Vt,h,w)}function UM(h){var w=Po[h];return function(A,H){if(A=gs(A),H=H==null?0:si(cn(H),292),H&&xV(A)){var q=(Jn(A)+"e").split("e"),te=w(q[0]+"e"+(+q[1]+H));return q=(Jn(te)+"e").split("e"),+(q[0]+"e"+(+q[1]-H))}return w(A)}}var rfe=hm&&1/c1(new hm([,-0]))[1]==U?function(h){return new hm(h)}:fA;function c5(h){return function(w){var A=li(w);return A==ge?wM(w):A==je?wue(w):fue(w,h(w))}}function Qc(h,w,A,H,q,te,he,ye){var Ee=w&b;if(!Ee&&typeof h!="function")throw new ds(a);var Xe=H?H.length:0;if(Xe||(w&=~(E|T),H=q=n),he=he===n?he:Eo(cn(he),0),ye=ye===n?ye:cn(ye),Xe-=q?q.length:0,w&T){var Qe=H,et=q;H=q=n}var ht=Ee?n:qM(h),Rt=[h,w,A,H,q,Qe,et,te,he,ye];if(ht&&vfe(Rt,ht),h=Rt[0],w=Rt[1],A=Rt[2],H=Rt[3],q=Rt[4],ye=Rt[9]=Rt[9]===n?Ee?0:h.length:Eo(Rt[9]-Xe,0),!ye&&w&(S|P)&&(w&=~(S|P)),!w||w==y)var zt=efe(h,w,A);else w==S||w==P?zt=tfe(h,w,ye):(w==E||w==(y|E))&&!q.length?zt=nfe(h,w,A,H):zt=A1.apply(n,Rt);var fn=ht?HV:w5;return x5(fn(zt,Rt),h,w)}function u5(h,w,A,H){return h===n||yl(h,pm[A])&&!or.call(H,A)?w:h}function d5(h,w,A,H,q,te){return Fr(h)&&Fr(w)&&(te.set(w,h),O1(h,w,n,d5,te),te.delete(w)),h}function ofe(h){return Mb(h)?n:h}function f5(h,w,A,H,q,te){var he=A&m,ye=h.length,Ee=w.length;if(ye!=Ee&&!(he&&Ee>ye))return!1;var Xe=te.get(h),Qe=te.get(w);if(Xe&&Qe)return Xe==w&&Qe==h;var et=-1,ht=!0,Rt=A&g?new np:n;for(te.set(h,w),te.set(w,h);++et<ye;){var zt=h[et],fn=w[et];if(H)var Vt=he?H(fn,zt,et,w,h,te):H(zt,fn,et,h,w,te);if(Vt!==n){if(Vt)continue;ht=!1;break}if(Rt){if(!hM(w,function(Tn,Rn){if(!gb(Rt,Rn)&&(zt===Tn||q(zt,Tn,A,H,te)))return Rt.push(Rn)})){ht=!1;break}}else if(!(zt===fn||q(zt,fn,A,H,te))){ht=!1;break}}return te.delete(h),te.delete(w),ht}function ife(h,w,A,H,q,te,he){switch(A){case nt:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case Je:return!(h.byteLength!=w.byteLength||!te(new m1(h),new m1(w)));case se:case ee:case xe:return yl(+h,+w);case le:return h.name==w.name&&h.message==w.message;case ke:case de:return h==w+"";case ge:var ye=wM;case je:var Ee=H&m;if(ye||(ye=c1),h.size!=w.size&&!Ee)return!1;var Xe=he.get(h);if(Xe)return Xe==w;H|=g,he.set(h,w);var Qe=f5(ye(h),ye(w),H,q,te,he);return he.delete(h),Qe;case Re:if(xb)return xb.call(h)==xb.call(w)}return!1}function afe(h,w,A,H,q,te){var he=A&m,ye=WM(h),Ee=ye.length,Xe=WM(w),Qe=Xe.length;if(Ee!=Qe&&!he)return!1;for(var et=Ee;et--;){var ht=ye[et];if(!(he?ht in w:or.call(w,ht)))return!1}var Rt=te.get(h),zt=te.get(w);if(Rt&&zt)return Rt==w&&zt==h;var fn=!0;te.set(h,w),te.set(w,h);for(var Vt=he;++et<Ee;){ht=ye[et];var Tn=h[ht],Rn=w[ht];if(H)var Ia=he?H(Rn,Tn,ht,w,h,te):H(Tn,Rn,ht,h,w,te);if(!(Ia===n?Tn===Rn||q(Tn,Rn,A,H,te):Ia)){fn=!1;break}Vt||(Vt=ht=="constructor")}if(fn&&!Vt){var Oi=h.constructor,ka=w.constructor;Oi!=ka&&"constructor"in h&&"constructor"in w&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof ka=="function"&&ka instanceof ka)&&(fn=!1)}return te.delete(h),te.delete(w),fn}function Jc(h){return ZM(v5(h,n,O5),h+"")}function WM(h){return $V(h,_o,YM)}function GM(h){return $V(h,Ji,p5)}var qM=x1?function(h){return x1.get(h)}:fA;function _1(h){for(var w=h.name+"",A=mm[w],H=or.call(mm,w)?A.length:0;H--;){var q=A[H],te=q.func;if(te==null||te==h)return q.name}return w}function bm(h){var w=or.call(Z,"placeholder")?Z:h;return w.placeholder}function Ft(){var h=Z.iteratee||uA;return h=h===uA?_V:h,arguments.length?h(arguments[0],arguments[1]):h}function L1(h,w){var A=h.__data__;return hfe(w)?A[typeof w=="string"?"string":"hash"]:A.map}function KM(h){for(var w=_o(h),A=w.length;A--;){var H=w[A],q=h[H];w[A]=[H,q,g5(q)]}return w}function ip(h,w){var A=yue(h,w);return DV(A)?A:n}function sfe(h){var w=or.call(h,ep),A=h[ep];try{h[ep]=n;var H=!0}catch{}var q=p1.call(h);return H&&(w?h[ep]=A:delete h[ep]),q}var YM=SM?function(h){return h==null?[]:(h=dr(h),sd(SM(h),function(w){return bV.call(h,w)}))}:pA,p5=SM?function(h){for(var w=[];h;)ld(w,YM(h)),h=g1(h);return w}:pA,li=Ei;(CM&&li(new CM(new ArrayBuffer(1)))!=nt||vb&&li(new vb)!=ge||PM&&li(PM.resolve())!=we||hm&&li(new hm)!=je||bb&&li(new bb)!=Ae)&&(li=function(h){var w=Ei(h),A=w==be?h.constructor:n,H=A?ap(A):"";if(H)switch(H){case Hue:return nt;case Uue:return ge;case Wue:return we;case Gue:return je;case que:return Ae}return w});function lfe(h,w,A){for(var H=-1,q=A.length;++H<q;){var te=A[H],he=te.size;switch(te.type){case"drop":h+=he;break;case"dropRight":w-=he;break;case"take":w=si(w,h+he);break;case"takeRight":h=Eo(h,w-he);break}}return{start:h,end:w}}function cfe(h){var w=h.match(o1);return w?w[1].split(Xf):[]}function h5(h,w,A){w=pd(w,h);for(var H=-1,q=w.length,te=!1;++H<q;){var he=ic(w[H]);if(!(te=h!=null&&A(h,he)))break;h=h[he]}return te||++H!=q?te:(q=h==null?0:h.length,!!q&&H1(q)&&Zc(he,q)&&(en(h)||sp(h)))}function ufe(h){var w=h.length,A=new h.constructor(w);return w&&typeof h[0]=="string"&&or.call(h,"index")&&(A.index=h.index,A.input=h.input),A}function m5(h){return typeof h.constructor=="function"&&!Ib(h)?gm(g1(h)):{}}function dfe(h,w,A){var H=h.constructor;switch(w){case Je:return VM(h);case se:case ee:return new H(+h);case nt:return Kde(h,A);case st:case $t:case ct:case _t:case pt:case ot:case Pe:case We:case ft:return QV(h,A);case ge:return new H;case xe:case de:return new H(h);case ke:return Yde(h);case je:return new H;case Re:return Xde(h)}}function ffe(h,w){var A=w.length;if(!A)return h;var H=A-1;return w[H]=(A>1?"& ":"")+w[H],w=w.join(A>2?", ":" "),h.replace(rm,`{
+ */PO.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,f=2,p=4,m=1,g=2,y=1,b=2,x=4,S=8,P=16,E=32,T=64,O=128,k=256,M=512,I=30,R="...",_=800,L=16,j=1,N=2,F=3,U=1/0,z=9007199254740991,V=17976931348623157e292,W=NaN,G=4294967295,J=G-1,K=G>>>1,ne=[["ary",O],["bind",y],["bindKey",b],["curry",S],["curryRight",P],["flip",M],["partial",E],["partialRight",T],["rearg",k]],re="[object Arguments]",oe="[object Array]",fe="[object AsyncFunction]",se="[object Boolean]",ee="[object Date]",ce="[object DOMException]",le="[object Error]",Q="[object Function]",ue="[object GeneratorFunction]",ge="[object Map]",xe="[object Number]",me="[object Null]",be="[object Object]",we="[object Promise]",Te="[object Proxy]",Ie="[object RegExp]",Le="[object Set]",de="[object String]",$e="[object Symbol]",ke="[object Undefined]",Me="[object WeakMap]",De="[object WeakSet]",Ye="[object ArrayBuffer]",Je="[object DataView]",st="[object Float32Array]",Rt="[object Float64Array]",ct="[object Int8Array]",Lt="[object Int16Array]",pt="[object Int32Array]",rt="[object Uint8Array]",Pe="[object Uint8ClampedArray]",Ve="[object Uint16Array]",ft="[object Uint32Array]",It=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,Wn=/[&<>"']/g,To=RegExp(Bn.source),Oo=RegExp(Wn.source),hi=/<%-([\s\S]+?)%>/g,Oa=/<%([\s\S]+?)%>/g,Ft=/<%=([\s\S]+?)%>/g,Io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,wd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ou=/[\\^$.*+?()[\]{}|]/g,dp=RegExp(ou.source),fp=/^\s+/,jb=/\s/,xm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,I1=/\{\n\/\* \[wrapped with (.+)\] \*/,pp=/,? & /,jo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qr=/[()=,{}\[\]\/\s]/,Pl=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,Ct=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,Dr=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Ia=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,iu=/($^)/,PV=/['\n\r\u2028\u2029\\]/g,Sm="\\ud800-\\udfff",k1="\\u0300-\\u036f",Cm="\\ufe20-\\ufe2f",Pm="\\u20d0-\\u20ff",Rn=k1+Cm+Pm,ka="\\u2700-\\u27bf",El="a-z\\xdf-\\xf6\\xf8-\\xff",hp="\\xac\\xb1\\xd7\\xf7",jM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hue="\\u2000-\\u206f",Uue=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",EV="A-Z\\xc0-\\xd6\\xd8-\\xde",TV="\\ufe0e\\ufe0f",OV=hp+jM+Hue+Uue,BM="['’]",Wue="["+Sm+"]",IV="["+OV+"]",M1="["+Rn+"]",kV="\\d+",Gue="["+ka+"]",MV="["+El+"]",AV="[^"+Sm+OV+kV+ka+El+EV+"]",zM="\\ud83c[\\udffb-\\udfff]",que="(?:"+M1+"|"+zM+")",$V="[^"+Sm+"]",VM="(?:\\ud83c[\\udde6-\\uddff]){2}",HM="[\\ud800-\\udbff][\\udc00-\\udfff]",Em="["+EV+"]",RV="\\u200d",DV="(?:"+MV+"|"+AV+")",Kue="(?:"+Em+"|"+AV+")",_V="(?:"+BM+"(?:d|ll|m|re|s|t|ve))?",LV="(?:"+BM+"(?:D|LL|M|RE|S|T|VE))?",NV=que+"?",FV="["+TV+"]?",Yue="(?:"+RV+"(?:"+[$V,VM,HM].join("|")+")"+FV+NV+")*",Xue="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Que="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jV=FV+NV+Yue,Jue="(?:"+[Gue,VM,HM].join("|")+")"+jV,Zue="(?:"+[$V+M1+"?",M1,VM,HM,Wue].join("|")+")",ede=RegExp(BM,"g"),tde=RegExp(M1,"g"),UM=RegExp(zM+"(?="+zM+")|"+Zue+jV,"g"),nde=RegExp([Em+"?"+MV+"+"+_V+"(?="+[IV,Em,"$"].join("|")+")",Kue+"+"+LV+"(?="+[IV,Em+DV,"$"].join("|")+")",Em+"?"+DV+"+"+_V,Em+"+"+LV,Que,Xue,kV,Jue].join("|"),"g"),rde=RegExp("["+RV+Sm+Rn+TV+"]"),ode=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ide=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ade=-1,Pr={};Pr[st]=Pr[Rt]=Pr[ct]=Pr[Lt]=Pr[pt]=Pr[rt]=Pr[Pe]=Pr[Ve]=Pr[ft]=!0,Pr[re]=Pr[oe]=Pr[Ye]=Pr[se]=Pr[Je]=Pr[ee]=Pr[le]=Pr[Q]=Pr[ge]=Pr[xe]=Pr[be]=Pr[Ie]=Pr[Le]=Pr[de]=Pr[Me]=!1;var yr={};yr[re]=yr[oe]=yr[Ye]=yr[Je]=yr[se]=yr[ee]=yr[st]=yr[Rt]=yr[ct]=yr[Lt]=yr[pt]=yr[ge]=yr[xe]=yr[be]=yr[Ie]=yr[Le]=yr[de]=yr[$e]=yr[rt]=yr[Pe]=yr[Ve]=yr[ft]=!0,yr[le]=yr[Q]=yr[Me]=!1;var sde={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},lde={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cde={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ude={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dde=parseFloat,fde=parseInt,BV=typeof Oc=="object"&&Oc&&Oc.Object===Object&&Oc,pde=typeof self=="object"&&self&&self.Object===Object&&self,ei=BV||pde||Function("return this")(),WM=t&&!t.nodeType&&t,mp=WM&&!0&&e&&!e.nodeType&&e,zV=mp&&mp.exports===WM,GM=zV&&BV.process,ys=function(){try{var Se=mp&&mp.require&&mp.require("util").types;return Se||GM&&GM.binding&&GM.binding("util")}catch{}}(),VV=ys&&ys.isArrayBuffer,HV=ys&&ys.isDate,UV=ys&&ys.isMap,WV=ys&&ys.isRegExp,GV=ys&&ys.isSet,qV=ys&&ys.isTypedArray;function Ma(Se,Be,Ae){switch(Ae.length){case 0:return Se.call(Be);case 1:return Se.call(Be,Ae[0]);case 2:return Se.call(Be,Ae[0],Ae[1]);case 3:return Se.call(Be,Ae[0],Ae[1],Ae[2])}return Se.apply(Be,Ae)}function hde(Se,Be,Ae,Pt){for(var Kt=-1,qn=Se==null?0:Se.length;++Kt<qn;){var ko=Se[Kt];Be(Pt,ko,Ae(ko),Se)}return Pt}function vs(Se,Be){for(var Ae=-1,Pt=Se==null?0:Se.length;++Ae<Pt&&Be(Se[Ae],Ae,Se)!==!1;);return Se}function mde(Se,Be){for(var Ae=Se==null?0:Se.length;Ae--&&Be(Se[Ae],Ae,Se)!==!1;);return Se}function KV(Se,Be){for(var Ae=-1,Pt=Se==null?0:Se.length;++Ae<Pt;)if(!Be(Se[Ae],Ae,Se))return!1;return!0}function xd(Se,Be){for(var Ae=-1,Pt=Se==null?0:Se.length,Kt=0,qn=[];++Ae<Pt;){var ko=Se[Ae];Be(ko,Ae,Se)&&(qn[Kt++]=ko)}return qn}function A1(Se,Be){var Ae=Se==null?0:Se.length;return!!Ae&&Tm(Se,Be,0)>-1}function qM(Se,Be,Ae){for(var Pt=-1,Kt=Se==null?0:Se.length;++Pt<Kt;)if(Ae(Be,Se[Pt]))return!0;return!1}function _r(Se,Be){for(var Ae=-1,Pt=Se==null?0:Se.length,Kt=Array(Pt);++Ae<Pt;)Kt[Ae]=Be(Se[Ae],Ae,Se);return Kt}function Sd(Se,Be){for(var Ae=-1,Pt=Be.length,Kt=Se.length;++Ae<Pt;)Se[Kt+Ae]=Be[Ae];return Se}function KM(Se,Be,Ae,Pt){var Kt=-1,qn=Se==null?0:Se.length;for(Pt&&qn&&(Ae=Se[++Kt]);++Kt<qn;)Ae=Be(Ae,Se[Kt],Kt,Se);return Ae}function gde(Se,Be,Ae,Pt){var Kt=Se==null?0:Se.length;for(Pt&&Kt&&(Ae=Se[--Kt]);Kt--;)Ae=Be(Ae,Se[Kt],Kt,Se);return Ae}function YM(Se,Be){for(var Ae=-1,Pt=Se==null?0:Se.length;++Ae<Pt;)if(Be(Se[Ae],Ae,Se))return!0;return!1}var yde=XM("length");function vde(Se){return Se.split("")}function bde(Se){return Se.match(jo)||[]}function YV(Se,Be,Ae){var Pt;return Ae(Se,function(Kt,qn,ko){if(Be(Kt,qn,ko))return Pt=qn,!1}),Pt}function $1(Se,Be,Ae,Pt){for(var Kt=Se.length,qn=Ae+(Pt?1:-1);Pt?qn--:++qn<Kt;)if(Be(Se[qn],qn,Se))return qn;return-1}function Tm(Se,Be,Ae){return Be===Be?Ade(Se,Be,Ae):$1(Se,XV,Ae)}function wde(Se,Be,Ae,Pt){for(var Kt=Ae-1,qn=Se.length;++Kt<qn;)if(Pt(Se[Kt],Be))return Kt;return-1}function XV(Se){return Se!==Se}function QV(Se,Be){var Ae=Se==null?0:Se.length;return Ae?JM(Se,Be)/Ae:W}function XM(Se){return function(Be){return Be==null?n:Be[Se]}}function QM(Se){return function(Be){return Se==null?n:Se[Be]}}function JV(Se,Be,Ae,Pt,Kt){return Kt(Se,function(qn,ko,dr){Ae=Pt?(Pt=!1,qn):Be(Ae,qn,ko,dr)}),Ae}function xde(Se,Be){var Ae=Se.length;for(Se.sort(Be);Ae--;)Se[Ae]=Se[Ae].value;return Se}function JM(Se,Be){for(var Ae,Pt=-1,Kt=Se.length;++Pt<Kt;){var qn=Be(Se[Pt]);qn!==n&&(Ae=Ae===n?qn:Ae+qn)}return Ae}function ZM(Se,Be){for(var Ae=-1,Pt=Array(Se);++Ae<Se;)Pt[Ae]=Be(Ae);return Pt}function Sde(Se,Be){return _r(Be,function(Ae){return[Ae,Se[Ae]]})}function ZV(Se){return Se&&Se.slice(0,r5(Se)+1).replace(fp,"")}function Aa(Se){return function(Be){return Se(Be)}}function eA(Se,Be){return _r(Be,function(Ae){return Se[Ae]})}function Bb(Se,Be){return Se.has(Be)}function e5(Se,Be){for(var Ae=-1,Pt=Se.length;++Ae<Pt&&Tm(Be,Se[Ae],0)>-1;);return Ae}function t5(Se,Be){for(var Ae=Se.length;Ae--&&Tm(Be,Se[Ae],0)>-1;);return Ae}function Cde(Se,Be){for(var Ae=Se.length,Pt=0;Ae--;)Se[Ae]===Be&&++Pt;return Pt}var Pde=QM(sde),Ede=QM(lde);function Tde(Se){return"\\"+ude[Se]}function Ode(Se,Be){return Se==null?n:Se[Be]}function Om(Se){return rde.test(Se)}function Ide(Se){return ode.test(Se)}function kde(Se){for(var Be,Ae=[];!(Be=Se.next()).done;)Ae.push(Be.value);return Ae}function tA(Se){var Be=-1,Ae=Array(Se.size);return Se.forEach(function(Pt,Kt){Ae[++Be]=[Kt,Pt]}),Ae}function n5(Se,Be){return function(Ae){return Se(Be(Ae))}}function Cd(Se,Be){for(var Ae=-1,Pt=Se.length,Kt=0,qn=[];++Ae<Pt;){var ko=Se[Ae];(ko===Be||ko===u)&&(Se[Ae]=u,qn[Kt++]=Ae)}return qn}function R1(Se){var Be=-1,Ae=Array(Se.size);return Se.forEach(function(Pt){Ae[++Be]=Pt}),Ae}function Mde(Se){var Be=-1,Ae=Array(Se.size);return Se.forEach(function(Pt){Ae[++Be]=[Pt,Pt]}),Ae}function Ade(Se,Be,Ae){for(var Pt=Ae-1,Kt=Se.length;++Pt<Kt;)if(Se[Pt]===Be)return Pt;return-1}function $de(Se,Be,Ae){for(var Pt=Ae+1;Pt--;)if(Se[Pt]===Be)return Pt;return Pt}function Im(Se){return Om(Se)?Dde(Se):yde(Se)}function Tl(Se){return Om(Se)?_de(Se):vde(Se)}function r5(Se){for(var Be=Se.length;Be--&&jb.test(Se.charAt(Be)););return Be}var Rde=QM(cde);function Dde(Se){for(var Be=UM.lastIndex=0;UM.test(Se);)++Be;return Be}function _de(Se){return Se.match(UM)||[]}function Lde(Se){return Se.match(nde)||[]}var Nde=function Se(Be){Be=Be==null?ei:km.defaults(ei.Object(),Be,km.pick(ei,ide));var Ae=Be.Array,Pt=Be.Date,Kt=Be.Error,qn=Be.Function,ko=Be.Math,dr=Be.Object,nA=Be.RegExp,Fde=Be.String,bs=Be.TypeError,D1=Ae.prototype,jde=qn.prototype,Mm=dr.prototype,_1=Be["__core-js_shared__"],L1=jde.toString,nr=Mm.hasOwnProperty,Bde=0,o5=function(){var h=/[^.]+$/.exec(_1&&_1.keys&&_1.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),N1=Mm.toString,zde=L1.call(dr),Vde=ei._,Hde=nA("^"+L1.call(nr).replace(ou,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F1=zV?Be.Buffer:n,Pd=Be.Symbol,j1=Be.Uint8Array,i5=F1?F1.allocUnsafe:n,B1=n5(dr.getPrototypeOf,dr),a5=dr.create,s5=Mm.propertyIsEnumerable,z1=D1.splice,l5=Pd?Pd.isConcatSpreadable:n,zb=Pd?Pd.iterator:n,gp=Pd?Pd.toStringTag:n,V1=function(){try{var h=xp(dr,"defineProperty");return h({},"",{}),h}catch{}}(),Ude=Be.clearTimeout!==ei.clearTimeout&&Be.clearTimeout,Wde=Pt&&Pt.now!==ei.Date.now&&Pt.now,Gde=Be.setTimeout!==ei.setTimeout&&Be.setTimeout,H1=ko.ceil,U1=ko.floor,rA=dr.getOwnPropertySymbols,qde=F1?F1.isBuffer:n,c5=Be.isFinite,Kde=D1.join,Yde=n5(dr.keys,dr),Mo=ko.max,mi=ko.min,Xde=Pt.now,Qde=Be.parseInt,u5=ko.random,Jde=D1.reverse,oA=xp(Be,"DataView"),Vb=xp(Be,"Map"),iA=xp(Be,"Promise"),Am=xp(Be,"Set"),Hb=xp(Be,"WeakMap"),Ub=xp(dr,"create"),W1=Hb&&new Hb,$m={},Zde=Sp(oA),efe=Sp(Vb),tfe=Sp(iA),nfe=Sp(Am),rfe=Sp(Hb),G1=Pd?Pd.prototype:n,Wb=G1?G1.valueOf:n,d5=G1?G1.toString:n;function Z(h){if(Kr(h)&&!en(h)&&!(h instanceof On)){if(h instanceof ws)return h;if(nr.call(h,"__wrapped__"))return fH(h)}return new ws(h)}var Rm=function(){function h(){}return function(w){if(!jr(w))return{};if(a5)return a5(w);h.prototype=w;var A=new h;return h.prototype=n,A}}();function q1(){}function ws(h,w){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=n}Z.templateSettings={escape:hi,evaluate:Oa,interpolate:Ft,variable:"",imports:{_:Z}},Z.prototype=q1.prototype,Z.prototype.constructor=Z,ws.prototype=Rm(q1.prototype),ws.prototype.constructor=ws;function On(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function ofe(){var h=new On(this.__wrapped__);return h.__actions__=ra(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=ra(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=ra(this.__views__),h}function ife(){if(this.__filtered__){var h=new On(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function afe(){var h=this.__wrapped__.value(),w=this.__dir__,A=en(h),H=w<0,q=A?h.length:0,te=vpe(0,q,this.__views__),he=te.start,ye=te.end,Ee=ye-he,qe=H?ye:he-1,Ke=this.__iteratees__,Xe=Ke.length,ht=0,Dt=mi(Ee,this.__takeCount__);if(!A||!H&&q==Ee&&Dt==Ee)return _5(h,this.__actions__);var Vt=[];e:for(;Ee--&&ht<Dt;){qe+=w;for(var fn=-1,Ht=h[qe];++fn<Xe;){var Pn=Ke[fn],Mn=Pn.iteratee,Da=Pn.type,Di=Mn(Ht);if(Da==N)Ht=Di;else if(!Di){if(Da==j)continue e;break e}}Vt[ht++]=Ht}return Vt}On.prototype=Rm(q1.prototype),On.prototype.constructor=On;function yp(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function sfe(){this.__data__=Ub?Ub(null):{},this.size=0}function lfe(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function cfe(h){var w=this.__data__;if(Ub){var A=w[h];return A===l?n:A}return nr.call(w,h)?w[h]:n}function ufe(h){var w=this.__data__;return Ub?w[h]!==n:nr.call(w,h)}function dfe(h,w){var A=this.__data__;return this.size+=this.has(h)?0:1,A[h]=Ub&&w===n?l:w,this}yp.prototype.clear=sfe,yp.prototype.delete=lfe,yp.prototype.get=cfe,yp.prototype.has=ufe,yp.prototype.set=dfe;function au(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function ffe(){this.__data__=[],this.size=0}function pfe(h){var w=this.__data__,A=K1(w,h);if(A<0)return!1;var H=w.length-1;return A==H?w.pop():z1.call(w,A,1),--this.size,!0}function hfe(h){var w=this.__data__,A=K1(w,h);return A<0?n:w[A][1]}function mfe(h){return K1(this.__data__,h)>-1}function gfe(h,w){var A=this.__data__,H=K1(A,h);return H<0?(++this.size,A.push([h,w])):A[H][1]=w,this}au.prototype.clear=ffe,au.prototype.delete=pfe,au.prototype.get=hfe,au.prototype.has=mfe,au.prototype.set=gfe;function su(h){var w=-1,A=h==null?0:h.length;for(this.clear();++w<A;){var H=h[w];this.set(H[0],H[1])}}function yfe(){this.size=0,this.__data__={hash:new yp,map:new(Vb||au),string:new yp}}function vfe(h){var w=aC(this,h).delete(h);return this.size-=w?1:0,w}function bfe(h){return aC(this,h).get(h)}function wfe(h){return aC(this,h).has(h)}function xfe(h,w){var A=aC(this,h),H=A.size;return A.set(h,w),this.size+=A.size==H?0:1,this}su.prototype.clear=yfe,su.prototype.delete=vfe,su.prototype.get=bfe,su.prototype.has=wfe,su.prototype.set=xfe;function vp(h){var w=-1,A=h==null?0:h.length;for(this.__data__=new su;++w<A;)this.add(h[w])}function Sfe(h){return this.__data__.set(h,l),this}function Cfe(h){return this.__data__.has(h)}vp.prototype.add=vp.prototype.push=Sfe,vp.prototype.has=Cfe;function Ol(h){var w=this.__data__=new au(h);this.size=w.size}function Pfe(){this.__data__=new au,this.size=0}function Efe(h){var w=this.__data__,A=w.delete(h);return this.size=w.size,A}function Tfe(h){return this.__data__.get(h)}function Ofe(h){return this.__data__.has(h)}function Ife(h,w){var A=this.__data__;if(A instanceof au){var H=A.__data__;if(!Vb||H.length<o-1)return H.push([h,w]),this.size=++A.size,this;A=this.__data__=new su(H)}return A.set(h,w),this.size=A.size,this}Ol.prototype.clear=Pfe,Ol.prototype.delete=Efe,Ol.prototype.get=Tfe,Ol.prototype.has=Ofe,Ol.prototype.set=Ife;function f5(h,w){var A=en(h),H=!A&&Cp(h),q=!A&&!H&&kd(h),te=!A&&!H&&!q&&Nm(h),he=A||H||q||te,ye=he?ZM(h.length,Fde):[],Ee=ye.length;for(var qe in h)(w||nr.call(h,qe))&&!(he&&(qe=="length"||q&&(qe=="offset"||qe=="parent")||te&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||du(qe,Ee)))&&ye.push(qe);return ye}function p5(h){var w=h.length;return w?h[gA(0,w-1)]:n}function kfe(h,w){return sC(ra(h),bp(w,0,h.length))}function Mfe(h){return sC(ra(h))}function aA(h,w,A){(A!==n&&!Il(h[w],A)||A===n&&!(w in h))&&lu(h,w,A)}function Gb(h,w,A){var H=h[w];(!(nr.call(h,w)&&Il(H,A))||A===n&&!(w in h))&&lu(h,w,A)}function K1(h,w){for(var A=h.length;A--;)if(Il(h[A][0],w))return A;return-1}function Afe(h,w,A,H){return Ed(h,function(q,te,he){w(H,q,A(q),he)}),H}function h5(h,w){return h&&hc(w,Bo(w),h)}function $fe(h,w){return h&&hc(w,ia(w),h)}function lu(h,w,A){w=="__proto__"&&V1?V1(h,w,{configurable:!0,enumerable:!0,value:A,writable:!0}):h[w]=A}function sA(h,w){for(var A=-1,H=w.length,q=Ae(H),te=h==null;++A<H;)q[A]=te?n:zA(h,w[A]);return q}function bp(h,w,A){return h===h&&(A!==n&&(h=h<=A?h:A),w!==n&&(h=h>=w?h:w)),h}function xs(h,w,A,H,q,te){var he,ye=w&d,Ee=w&f,qe=w&p;if(A&&(he=q?A(h,H,q,te):A(h)),he!==n)return he;if(!jr(h))return h;var Ke=en(h);if(Ke){if(he=wpe(h),!ye)return ra(h,he)}else{var Xe=gi(h),ht=Xe==Q||Xe==ue;if(kd(h))return F5(h,ye);if(Xe==be||Xe==re||ht&&!q){if(he=Ee||ht?{}:rH(h),!ye)return Ee?cpe(h,$fe(he,h)):lpe(h,h5(he,h))}else{if(!yr[Xe])return q?h:{};he=xpe(h,Xe,ye)}}te||(te=new Ol);var Dt=te.get(h);if(Dt)return Dt;te.set(h,he),$H(h)?h.forEach(function(Ht){he.add(xs(Ht,w,A,Ht,h,te))}):MH(h)&&h.forEach(function(Ht,Pn){he.set(Pn,xs(Ht,w,A,Pn,h,te))});var Vt=qe?Ee?OA:TA:Ee?ia:Bo,fn=Ke?n:Vt(h);return vs(fn||h,function(Ht,Pn){fn&&(Pn=Ht,Ht=h[Pn]),Gb(he,Pn,xs(Ht,w,A,Pn,h,te))}),he}function Rfe(h){var w=Bo(h);return function(A){return m5(A,h,w)}}function m5(h,w,A){var H=A.length;if(h==null)return!H;for(h=dr(h);H--;){var q=A[H],te=w[q],he=h[q];if(he===n&&!(q in h)||!te(he))return!1}return!0}function g5(h,w,A){if(typeof h!="function")throw new bs(a);return Zb(function(){h.apply(n,A)},w)}function qb(h,w,A,H){var q=-1,te=A1,he=!0,ye=h.length,Ee=[],qe=w.length;if(!ye)return Ee;A&&(w=_r(w,Aa(A))),H?(te=qM,he=!1):w.length>=o&&(te=Bb,he=!1,w=new vp(w));e:for(;++q<ye;){var Ke=h[q],Xe=A==null?Ke:A(Ke);if(Ke=H||Ke!==0?Ke:0,he&&Xe===Xe){for(var ht=qe;ht--;)if(w[ht]===Xe)continue e;Ee.push(Ke)}else te(w,Xe,H)||Ee.push(Ke)}return Ee}var Ed=H5(pc),y5=H5(cA,!0);function Dfe(h,w){var A=!0;return Ed(h,function(H,q,te){return A=!!w(H,q,te),A}),A}function Y1(h,w,A){for(var H=-1,q=h.length;++H<q;){var te=h[H],he=w(te);if(he!=null&&(ye===n?he===he&&!Ra(he):A(he,ye)))var ye=he,Ee=te}return Ee}function _fe(h,w,A,H){var q=h.length;for(A=cn(A),A<0&&(A=-A>q?0:q+A),H=H===n||H>q?q:cn(H),H<0&&(H+=q),H=A>H?0:DH(H);A<H;)h[A++]=w;return h}function v5(h,w){var A=[];return Ed(h,function(H,q,te){w(H,q,te)&&A.push(H)}),A}function ti(h,w,A,H,q){var te=-1,he=h.length;for(A||(A=Cpe),q||(q=[]);++te<he;){var ye=h[te];w>0&&A(ye)?w>1?ti(ye,w-1,A,H,q):Sd(q,ye):H||(q[q.length]=ye)}return q}var lA=U5(),b5=U5(!0);function pc(h,w){return h&&lA(h,w,Bo)}function cA(h,w){return h&&b5(h,w,Bo)}function X1(h,w){return xd(w,function(A){return fu(h[A])})}function wp(h,w){w=Od(w,h);for(var A=0,H=w.length;h!=null&&A<H;)h=h[mc(w[A++])];return A&&A==H?h:n}function w5(h,w,A){var H=w(h);return en(h)?H:Sd(H,A(h))}function $i(h){return h==null?h===n?ke:me:gp&&gp in dr(h)?ype(h):Mpe(h)}function uA(h,w){return h>w}function Lfe(h,w){return h!=null&&nr.call(h,w)}function Nfe(h,w){return h!=null&&w in dr(h)}function Ffe(h,w,A){return h>=mi(w,A)&&h<Mo(w,A)}function dA(h,w,A){for(var H=A?qM:A1,q=h[0].length,te=h.length,he=te,ye=Ae(te),Ee=1/0,qe=[];he--;){var Ke=h[he];he&&w&&(Ke=_r(Ke,Aa(w))),Ee=mi(Ke.length,Ee),ye[he]=!A&&(w||q>=120&&Ke.length>=120)?new vp(he&&Ke):n}Ke=h[0];var Xe=-1,ht=ye[0];e:for(;++Xe<q&&qe.length<Ee;){var Dt=Ke[Xe],Vt=w?w(Dt):Dt;if(Dt=A||Dt!==0?Dt:0,!(ht?Bb(ht,Vt):H(qe,Vt,A))){for(he=te;--he;){var fn=ye[he];if(!(fn?Bb(fn,Vt):H(h[he],Vt,A)))continue e}ht&&ht.push(Vt),qe.push(Dt)}}return qe}function jfe(h,w,A,H){return pc(h,function(q,te,he){w(H,A(q),te,he)}),H}function Kb(h,w,A){w=Od(w,h),h=sH(h,w);var H=h==null?h:h[mc(Cs(w))];return H==null?n:Ma(H,h,A)}function x5(h){return Kr(h)&&$i(h)==re}function Bfe(h){return Kr(h)&&$i(h)==Ye}function zfe(h){return Kr(h)&&$i(h)==ee}function Yb(h,w,A,H,q){return h===w?!0:h==null||w==null||!Kr(h)&&!Kr(w)?h!==h&&w!==w:Vfe(h,w,A,H,Yb,q)}function Vfe(h,w,A,H,q,te){var he=en(h),ye=en(w),Ee=he?oe:gi(h),qe=ye?oe:gi(w);Ee=Ee==re?be:Ee,qe=qe==re?be:qe;var Ke=Ee==be,Xe=qe==be,ht=Ee==qe;if(ht&&kd(h)){if(!kd(w))return!1;he=!0,Ke=!1}if(ht&&!Ke)return te||(te=new Ol),he||Nm(h)?eH(h,w,A,H,q,te):mpe(h,w,Ee,A,H,q,te);if(!(A&m)){var Dt=Ke&&nr.call(h,"__wrapped__"),Vt=Xe&&nr.call(w,"__wrapped__");if(Dt||Vt){var fn=Dt?h.value():h,Ht=Vt?w.value():w;return te||(te=new Ol),q(fn,Ht,A,H,te)}}return ht?(te||(te=new Ol),gpe(h,w,A,H,q,te)):!1}function Hfe(h){return Kr(h)&&gi(h)==ge}function fA(h,w,A,H){var q=A.length,te=q,he=!H;if(h==null)return!te;for(h=dr(h);q--;){var ye=A[q];if(he&&ye[2]?ye[1]!==h[ye[0]]:!(ye[0]in h))return!1}for(;++q<te;){ye=A[q];var Ee=ye[0],qe=h[Ee],Ke=ye[1];if(he&&ye[2]){if(qe===n&&!(Ee in h))return!1}else{var Xe=new Ol;if(H)var ht=H(qe,Ke,Ee,h,w,Xe);if(!(ht===n?Yb(Ke,qe,m|g,H,Xe):ht))return!1}}return!0}function S5(h){if(!jr(h)||Epe(h))return!1;var w=fu(h)?Hde:ln;return w.test(Sp(h))}function Ufe(h){return Kr(h)&&$i(h)==Ie}function Wfe(h){return Kr(h)&&gi(h)==Le}function Gfe(h){return Kr(h)&&pC(h.length)&&!!Pr[$i(h)]}function C5(h){return typeof h=="function"?h:h==null?aa:typeof h=="object"?en(h)?T5(h[0],h[1]):E5(h):WH(h)}function pA(h){if(!Jb(h))return Yde(h);var w=[];for(var A in dr(h))nr.call(h,A)&&A!="constructor"&&w.push(A);return w}function qfe(h){if(!jr(h))return kpe(h);var w=Jb(h),A=[];for(var H in h)H=="constructor"&&(w||!nr.call(h,H))||A.push(H);return A}function hA(h,w){return h<w}function P5(h,w){var A=-1,H=oa(h)?Ae(h.length):[];return Ed(h,function(q,te,he){H[++A]=w(q,te,he)}),H}function E5(h){var w=kA(h);return w.length==1&&w[0][2]?iH(w[0][0],w[0][1]):function(A){return A===h||fA(A,h,w)}}function T5(h,w){return AA(h)&&oH(w)?iH(mc(h),w):function(A){var H=zA(A,h);return H===n&&H===w?VA(A,h):Yb(w,H,m|g)}}function Q1(h,w,A,H,q){h!==w&&lA(w,function(te,he){if(q||(q=new Ol),jr(te))Kfe(h,w,he,A,Q1,H,q);else{var ye=H?H(RA(h,he),te,he+"",h,w,q):n;ye===n&&(ye=te),aA(h,he,ye)}},ia)}function Kfe(h,w,A,H,q,te,he){var ye=RA(h,A),Ee=RA(w,A),qe=he.get(Ee);if(qe){aA(h,A,qe);return}var Ke=te?te(ye,Ee,A+"",h,w,he):n,Xe=Ke===n;if(Xe){var ht=en(Ee),Dt=!ht&&kd(Ee),Vt=!ht&&!Dt&&Nm(Ee);Ke=Ee,ht||Dt||Vt?en(ye)?Ke=ye:oo(ye)?Ke=ra(ye):Dt?(Xe=!1,Ke=F5(Ee,!0)):Vt?(Xe=!1,Ke=j5(Ee,!0)):Ke=[]:e0(Ee)||Cp(Ee)?(Ke=ye,Cp(ye)?Ke=_H(ye):(!jr(ye)||fu(ye))&&(Ke=rH(Ee))):Xe=!1}Xe&&(he.set(Ee,Ke),q(Ke,Ee,H,te,he),he.delete(Ee)),aA(h,A,Ke)}function O5(h,w){var A=h.length;if(A)return w+=w<0?A:0,du(w,A)?h[w]:n}function I5(h,w,A){w.length?w=_r(w,function(te){return en(te)?function(he){return wp(he,te.length===1?te[0]:te)}:te}):w=[aa];var H=-1;w=_r(w,Aa(jt()));var q=P5(h,function(te,he,ye){var Ee=_r(w,function(qe){return qe(te)});return{criteria:Ee,index:++H,value:te}});return xde(q,function(te,he){return spe(te,he,A)})}function Yfe(h,w){return k5(h,w,function(A,H){return VA(h,H)})}function k5(h,w,A){for(var H=-1,q=w.length,te={};++H<q;){var he=w[H],ye=wp(h,he);A(ye,he)&&Xb(te,Od(he,h),ye)}return te}function Xfe(h){return function(w){return wp(w,h)}}function mA(h,w,A,H){var q=H?wde:Tm,te=-1,he=w.length,ye=h;for(h===w&&(w=ra(w)),A&&(ye=_r(h,Aa(A)));++te<he;)for(var Ee=0,qe=w[te],Ke=A?A(qe):qe;(Ee=q(ye,Ke,Ee,H))>-1;)ye!==h&&z1.call(ye,Ee,1),z1.call(h,Ee,1);return h}function M5(h,w){for(var A=h?w.length:0,H=A-1;A--;){var q=w[A];if(A==H||q!==te){var te=q;du(q)?z1.call(h,q,1):bA(h,q)}}return h}function gA(h,w){return h+U1(u5()*(w-h+1))}function Qfe(h,w,A,H){for(var q=-1,te=Mo(H1((w-h)/(A||1)),0),he=Ae(te);te--;)he[H?te:++q]=h,h+=A;return he}function yA(h,w){var A="";if(!h||w<1||w>z)return A;do w%2&&(A+=h),w=U1(w/2),w&&(h+=h);while(w);return A}function vn(h,w){return DA(aH(h,w,aa),h+"")}function Jfe(h){return p5(Fm(h))}function Zfe(h,w){var A=Fm(h);return sC(A,bp(w,0,A.length))}function Xb(h,w,A,H){if(!jr(h))return h;w=Od(w,h);for(var q=-1,te=w.length,he=te-1,ye=h;ye!=null&&++q<te;){var Ee=mc(w[q]),qe=A;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return h;if(q!=he){var Ke=ye[Ee];qe=H?H(Ke,Ee,ye):n,qe===n&&(qe=jr(Ke)?Ke:du(w[q+1])?[]:{})}Gb(ye,Ee,qe),ye=ye[Ee]}return h}var A5=W1?function(h,w){return W1.set(h,w),h}:aa,epe=V1?function(h,w){return V1(h,"toString",{configurable:!0,enumerable:!1,value:UA(w),writable:!0})}:aa;function tpe(h){return sC(Fm(h))}function Ss(h,w,A){var H=-1,q=h.length;w<0&&(w=-w>q?0:q+w),A=A>q?q:A,A<0&&(A+=q),q=w>A?0:A-w>>>0,w>>>=0;for(var te=Ae(q);++H<q;)te[H]=h[H+w];return te}function npe(h,w){var A;return Ed(h,function(H,q,te){return A=w(H,q,te),!A}),!!A}function J1(h,w,A){var H=0,q=h==null?H:h.length;if(typeof w=="number"&&w===w&&q<=K){for(;H<q;){var te=H+q>>>1,he=h[te];he!==null&&!Ra(he)&&(A?he<=w:he<w)?H=te+1:q=te}return q}return vA(h,w,aa,A)}function vA(h,w,A,H){var q=0,te=h==null?0:h.length;if(te===0)return 0;w=A(w);for(var he=w!==w,ye=w===null,Ee=Ra(w),qe=w===n;q<te;){var Ke=U1((q+te)/2),Xe=A(h[Ke]),ht=Xe!==n,Dt=Xe===null,Vt=Xe===Xe,fn=Ra(Xe);if(he)var Ht=H||Vt;else qe?Ht=Vt&&(H||ht):ye?Ht=Vt&&ht&&(H||!Dt):Ee?Ht=Vt&&ht&&!Dt&&(H||!fn):Dt||fn?Ht=!1:Ht=H?Xe<=w:Xe<w;Ht?q=Ke+1:te=Ke}return mi(te,J)}function $5(h,w){for(var A=-1,H=h.length,q=0,te=[];++A<H;){var he=h[A],ye=w?w(he):he;if(!A||!Il(ye,Ee)){var Ee=ye;te[q++]=he===0?0:he}}return te}function R5(h){return typeof h=="number"?h:Ra(h)?W:+h}function $a(h){if(typeof h=="string")return h;if(en(h))return _r(h,$a)+"";if(Ra(h))return d5?d5.call(h):"";var w=h+"";return w=="0"&&1/h==-U?"-0":w}function Td(h,w,A){var H=-1,q=A1,te=h.length,he=!0,ye=[],Ee=ye;if(A)he=!1,q=qM;else if(te>=o){var qe=w?null:ppe(h);if(qe)return R1(qe);he=!1,q=Bb,Ee=new vp}else Ee=w?[]:ye;e:for(;++H<te;){var Ke=h[H],Xe=w?w(Ke):Ke;if(Ke=A||Ke!==0?Ke:0,he&&Xe===Xe){for(var ht=Ee.length;ht--;)if(Ee[ht]===Xe)continue e;w&&Ee.push(Xe),ye.push(Ke)}else q(Ee,Xe,A)||(Ee!==ye&&Ee.push(Xe),ye.push(Ke))}return ye}function bA(h,w){return w=Od(w,h),h=sH(h,w),h==null||delete h[mc(Cs(w))]}function D5(h,w,A,H){return Xb(h,w,A(wp(h,w)),H)}function Z1(h,w,A,H){for(var q=h.length,te=H?q:-1;(H?te--:++te<q)&&w(h[te],te,h););return A?Ss(h,H?0:te,H?te+1:q):Ss(h,H?te+1:0,H?q:te)}function _5(h,w){var A=h;return A instanceof On&&(A=A.value()),KM(w,function(H,q){return q.func.apply(q.thisArg,Sd([H],q.args))},A)}function wA(h,w,A){var H=h.length;if(H<2)return H?Td(h[0]):[];for(var q=-1,te=Ae(H);++q<H;)for(var he=h[q],ye=-1;++ye<H;)ye!=q&&(te[q]=qb(te[q]||he,h[ye],w,A));return Td(ti(te,1),w,A)}function L5(h,w,A){for(var H=-1,q=h.length,te=w.length,he={};++H<q;){var ye=H<te?w[H]:n;A(he,h[H],ye)}return he}function xA(h){return oo(h)?h:[]}function SA(h){return typeof h=="function"?h:aa}function Od(h,w){return en(h)?h:AA(h,w)?[h]:dH(Qn(h))}var rpe=vn;function Id(h,w,A){var H=h.length;return A=A===n?H:A,!w&&A>=H?h:Ss(h,w,A)}var N5=Ude||function(h){return ei.clearTimeout(h)};function F5(h,w){if(w)return h.slice();var A=h.length,H=i5?i5(A):new h.constructor(A);return h.copy(H),H}function CA(h){var w=new h.constructor(h.byteLength);return new j1(w).set(new j1(h)),w}function ope(h,w){var A=w?CA(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.byteLength)}function ipe(h){var w=new h.constructor(h.source,Ne.exec(h));return w.lastIndex=h.lastIndex,w}function ape(h){return Wb?dr(Wb.call(h)):{}}function j5(h,w){var A=w?CA(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.length)}function B5(h,w){if(h!==w){var A=h!==n,H=h===null,q=h===h,te=Ra(h),he=w!==n,ye=w===null,Ee=w===w,qe=Ra(w);if(!ye&&!qe&&!te&&h>w||te&&he&&Ee&&!ye&&!qe||H&&he&&Ee||!A&&Ee||!q)return 1;if(!H&&!te&&!qe&&h<w||qe&&A&&q&&!H&&!te||ye&&A&&q||!he&&q||!Ee)return-1}return 0}function spe(h,w,A){for(var H=-1,q=h.criteria,te=w.criteria,he=q.length,ye=A.length;++H<he;){var Ee=B5(q[H],te[H]);if(Ee){if(H>=ye)return Ee;var qe=A[H];return Ee*(qe=="desc"?-1:1)}}return h.index-w.index}function z5(h,w,A,H){for(var q=-1,te=h.length,he=A.length,ye=-1,Ee=w.length,qe=Mo(te-he,0),Ke=Ae(Ee+qe),Xe=!H;++ye<Ee;)Ke[ye]=w[ye];for(;++q<he;)(Xe||q<te)&&(Ke[A[q]]=h[q]);for(;qe--;)Ke[ye++]=h[q++];return Ke}function V5(h,w,A,H){for(var q=-1,te=h.length,he=-1,ye=A.length,Ee=-1,qe=w.length,Ke=Mo(te-ye,0),Xe=Ae(Ke+qe),ht=!H;++q<Ke;)Xe[q]=h[q];for(var Dt=q;++Ee<qe;)Xe[Dt+Ee]=w[Ee];for(;++he<ye;)(ht||q<te)&&(Xe[Dt+A[he]]=h[q++]);return Xe}function ra(h,w){var A=-1,H=h.length;for(w||(w=Ae(H));++A<H;)w[A]=h[A];return w}function hc(h,w,A,H){var q=!A;A||(A={});for(var te=-1,he=w.length;++te<he;){var ye=w[te],Ee=H?H(A[ye],h[ye],ye,A,h):n;Ee===n&&(Ee=h[ye]),q?lu(A,ye,Ee):Gb(A,ye,Ee)}return A}function lpe(h,w){return hc(h,MA(h),w)}function cpe(h,w){return hc(h,tH(h),w)}function eC(h,w){return function(A,H){var q=en(A)?hde:Afe,te=w?w():{};return q(A,h,jt(H,2),te)}}function Dm(h){return vn(function(w,A){var H=-1,q=A.length,te=q>1?A[q-1]:n,he=q>2?A[2]:n;for(te=h.length>3&&typeof te=="function"?(q--,te):n,he&&Ri(A[0],A[1],he)&&(te=q<3?n:te,q=1),w=dr(w);++H<q;){var ye=A[H];ye&&h(w,ye,H,te)}return w})}function H5(h,w){return function(A,H){if(A==null)return A;if(!oa(A))return h(A,H);for(var q=A.length,te=w?q:-1,he=dr(A);(w?te--:++te<q)&&H(he[te],te,he)!==!1;);return A}}function U5(h){return function(w,A,H){for(var q=-1,te=dr(w),he=H(w),ye=he.length;ye--;){var Ee=he[h?ye:++q];if(A(te[Ee],Ee,te)===!1)break}return w}}function upe(h,w,A){var H=w&y,q=Qb(h);function te(){var he=this&&this!==ei&&this instanceof te?q:h;return he.apply(H?A:this,arguments)}return te}function W5(h){return function(w){w=Qn(w);var A=Om(w)?Tl(w):n,H=A?A[0]:w.charAt(0),q=A?Id(A,1).join(""):w.slice(1);return H[h]()+q}}function _m(h){return function(w){return KM(HH(VH(w).replace(ede,"")),h,"")}}function Qb(h){return function(){var w=arguments;switch(w.length){case 0:return new h;case 1:return new h(w[0]);case 2:return new h(w[0],w[1]);case 3:return new h(w[0],w[1],w[2]);case 4:return new h(w[0],w[1],w[2],w[3]);case 5:return new h(w[0],w[1],w[2],w[3],w[4]);case 6:return new h(w[0],w[1],w[2],w[3],w[4],w[5]);case 7:return new h(w[0],w[1],w[2],w[3],w[4],w[5],w[6])}var A=Rm(h.prototype),H=h.apply(A,w);return jr(H)?H:A}}function dpe(h,w,A){var H=Qb(h);function q(){for(var te=arguments.length,he=Ae(te),ye=te,Ee=Lm(q);ye--;)he[ye]=arguments[ye];var qe=te<3&&he[0]!==Ee&&he[te-1]!==Ee?[]:Cd(he,Ee);if(te-=qe.length,te<A)return X5(h,w,tC,q.placeholder,n,he,qe,n,n,A-te);var Ke=this&&this!==ei&&this instanceof q?H:h;return Ma(Ke,this,he)}return q}function G5(h){return function(w,A,H){var q=dr(w);if(!oa(w)){var te=jt(A,3);w=Bo(w),A=function(ye){return te(q[ye],ye,q)}}var he=h(w,A,H);return he>-1?q[te?w[he]:he]:n}}function q5(h){return uu(function(w){var A=w.length,H=A,q=ws.prototype.thru;for(h&&w.reverse();H--;){var te=w[H];if(typeof te!="function")throw new bs(a);if(q&&!he&&iC(te)=="wrapper")var he=new ws([],!0)}for(H=he?H:A;++H<A;){te=w[H];var ye=iC(te),Ee=ye=="wrapper"?IA(te):n;Ee&&$A(Ee[0])&&Ee[1]==(O|S|E|k)&&!Ee[4].length&&Ee[9]==1?he=he[iC(Ee[0])].apply(he,Ee[3]):he=te.length==1&&$A(te)?he[ye]():he.thru(te)}return function(){var qe=arguments,Ke=qe[0];if(he&&qe.length==1&&en(Ke))return he.plant(Ke).value();for(var Xe=0,ht=A?w[Xe].apply(this,qe):Ke;++Xe<A;)ht=w[Xe].call(this,ht);return ht}})}function tC(h,w,A,H,q,te,he,ye,Ee,qe){var Ke=w&O,Xe=w&y,ht=w&b,Dt=w&(S|P),Vt=w&M,fn=ht?n:Qb(h);function Ht(){for(var Pn=arguments.length,Mn=Ae(Pn),Da=Pn;Da--;)Mn[Da]=arguments[Da];if(Dt)var Di=Lm(Ht),_a=Cde(Mn,Di);if(H&&(Mn=z5(Mn,H,q,Dt)),te&&(Mn=V5(Mn,te,he,Dt)),Pn-=_a,Dt&&Pn<qe){var io=Cd(Mn,Di);return X5(h,w,tC,Ht.placeholder,A,Mn,io,ye,Ee,qe-Pn)}var kl=Xe?A:this,hu=ht?kl[h]:h;return Pn=Mn.length,ye?Mn=Ape(Mn,ye):Vt&&Pn>1&&Mn.reverse(),Ke&&Ee<Pn&&(Mn.length=Ee),this&&this!==ei&&this instanceof Ht&&(hu=fn||Qb(hu)),hu.apply(kl,Mn)}return Ht}function K5(h,w){return function(A,H){return jfe(A,h,w(H),{})}}function nC(h,w){return function(A,H){var q;if(A===n&&H===n)return w;if(A!==n&&(q=A),H!==n){if(q===n)return H;typeof A=="string"||typeof H=="string"?(A=$a(A),H=$a(H)):(A=R5(A),H=R5(H)),q=h(A,H)}return q}}function PA(h){return uu(function(w){return w=_r(w,Aa(jt())),vn(function(A){var H=this;return h(w,function(q){return Ma(q,H,A)})})})}function rC(h,w){w=w===n?" ":$a(w);var A=w.length;if(A<2)return A?yA(w,h):w;var H=yA(w,H1(h/Im(w)));return Om(w)?Id(Tl(H),0,h).join(""):H.slice(0,h)}function fpe(h,w,A,H){var q=w&y,te=Qb(h);function he(){for(var ye=-1,Ee=arguments.length,qe=-1,Ke=H.length,Xe=Ae(Ke+Ee),ht=this&&this!==ei&&this instanceof he?te:h;++qe<Ke;)Xe[qe]=H[qe];for(;Ee--;)Xe[qe++]=arguments[++ye];return Ma(ht,q?A:this,Xe)}return he}function Y5(h){return function(w,A,H){return H&&typeof H!="number"&&Ri(w,A,H)&&(A=H=n),w=pu(w),A===n?(A=w,w=0):A=pu(A),H=H===n?w<A?1:-1:pu(H),Qfe(w,A,H,h)}}function oC(h){return function(w,A){return typeof w=="string"&&typeof A=="string"||(w=Ps(w),A=Ps(A)),h(w,A)}}function X5(h,w,A,H,q,te,he,ye,Ee,qe){var Ke=w&S,Xe=Ke?he:n,ht=Ke?n:he,Dt=Ke?te:n,Vt=Ke?n:te;w|=Ke?E:T,w&=~(Ke?T:E),w&x||(w&=~(y|b));var fn=[h,w,q,Dt,Xe,Vt,ht,ye,Ee,qe],Ht=A.apply(n,fn);return $A(h)&&lH(Ht,fn),Ht.placeholder=H,cH(Ht,h,w)}function EA(h){var w=ko[h];return function(A,H){if(A=Ps(A),H=H==null?0:mi(cn(H),292),H&&c5(A)){var q=(Qn(A)+"e").split("e"),te=w(q[0]+"e"+(+q[1]+H));return q=(Qn(te)+"e").split("e"),+(q[0]+"e"+(+q[1]-H))}return w(A)}}var ppe=Am&&1/R1(new Am([,-0]))[1]==U?function(h){return new Am(h)}:qA;function Q5(h){return function(w){var A=gi(w);return A==ge?tA(w):A==Le?Mde(w):Sde(w,h(w))}}function cu(h,w,A,H,q,te,he,ye){var Ee=w&b;if(!Ee&&typeof h!="function")throw new bs(a);var qe=H?H.length:0;if(qe||(w&=~(E|T),H=q=n),he=he===n?he:Mo(cn(he),0),ye=ye===n?ye:cn(ye),qe-=q?q.length:0,w&T){var Ke=H,Xe=q;H=q=n}var ht=Ee?n:IA(h),Dt=[h,w,A,H,q,Ke,Xe,te,he,ye];if(ht&&Ipe(Dt,ht),h=Dt[0],w=Dt[1],A=Dt[2],H=Dt[3],q=Dt[4],ye=Dt[9]=Dt[9]===n?Ee?0:h.length:Mo(Dt[9]-qe,0),!ye&&w&(S|P)&&(w&=~(S|P)),!w||w==y)var Vt=upe(h,w,A);else w==S||w==P?Vt=dpe(h,w,ye):(w==E||w==(y|E))&&!q.length?Vt=fpe(h,w,A,H):Vt=tC.apply(n,Dt);var fn=ht?A5:lH;return cH(fn(Vt,Dt),h,w)}function J5(h,w,A,H){return h===n||Il(h,Mm[A])&&!nr.call(H,A)?w:h}function Z5(h,w,A,H,q,te){return jr(h)&&jr(w)&&(te.set(w,h),Q1(h,w,n,Z5,te),te.delete(w)),h}function hpe(h){return e0(h)?n:h}function eH(h,w,A,H,q,te){var he=A&m,ye=h.length,Ee=w.length;if(ye!=Ee&&!(he&&Ee>ye))return!1;var qe=te.get(h),Ke=te.get(w);if(qe&&Ke)return qe==w&&Ke==h;var Xe=-1,ht=!0,Dt=A&g?new vp:n;for(te.set(h,w),te.set(w,h);++Xe<ye;){var Vt=h[Xe],fn=w[Xe];if(H)var Ht=he?H(fn,Vt,Xe,w,h,te):H(Vt,fn,Xe,h,w,te);if(Ht!==n){if(Ht)continue;ht=!1;break}if(Dt){if(!YM(w,function(Pn,Mn){if(!Bb(Dt,Mn)&&(Vt===Pn||q(Vt,Pn,A,H,te)))return Dt.push(Mn)})){ht=!1;break}}else if(!(Vt===fn||q(Vt,fn,A,H,te))){ht=!1;break}}return te.delete(h),te.delete(w),ht}function mpe(h,w,A,H,q,te,he){switch(A){case Je:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case Ye:return!(h.byteLength!=w.byteLength||!te(new j1(h),new j1(w)));case se:case ee:case xe:return Il(+h,+w);case le:return h.name==w.name&&h.message==w.message;case Ie:case de:return h==w+"";case ge:var ye=tA;case Le:var Ee=H&m;if(ye||(ye=R1),h.size!=w.size&&!Ee)return!1;var qe=he.get(h);if(qe)return qe==w;H|=g,he.set(h,w);var Ke=eH(ye(h),ye(w),H,q,te,he);return he.delete(h),Ke;case $e:if(Wb)return Wb.call(h)==Wb.call(w)}return!1}function gpe(h,w,A,H,q,te){var he=A&m,ye=TA(h),Ee=ye.length,qe=TA(w),Ke=qe.length;if(Ee!=Ke&&!he)return!1;for(var Xe=Ee;Xe--;){var ht=ye[Xe];if(!(he?ht in w:nr.call(w,ht)))return!1}var Dt=te.get(h),Vt=te.get(w);if(Dt&&Vt)return Dt==w&&Vt==h;var fn=!0;te.set(h,w),te.set(w,h);for(var Ht=he;++Xe<Ee;){ht=ye[Xe];var Pn=h[ht],Mn=w[ht];if(H)var Da=he?H(Mn,Pn,ht,w,h,te):H(Pn,Mn,ht,h,w,te);if(!(Da===n?Pn===Mn||q(Pn,Mn,A,H,te):Da)){fn=!1;break}Ht||(Ht=ht=="constructor")}if(fn&&!Ht){var Di=h.constructor,_a=w.constructor;Di!=_a&&"constructor"in h&&"constructor"in w&&!(typeof Di=="function"&&Di instanceof Di&&typeof _a=="function"&&_a instanceof _a)&&(fn=!1)}return te.delete(h),te.delete(w),fn}function uu(h){return DA(aH(h,n,mH),h+"")}function TA(h){return w5(h,Bo,MA)}function OA(h){return w5(h,ia,tH)}var IA=W1?function(h){return W1.get(h)}:qA;function iC(h){for(var w=h.name+"",A=$m[w],H=nr.call($m,w)?A.length:0;H--;){var q=A[H],te=q.func;if(te==null||te==h)return q.name}return w}function Lm(h){var w=nr.call(Z,"placeholder")?Z:h;return w.placeholder}function jt(){var h=Z.iteratee||WA;return h=h===WA?C5:h,arguments.length?h(arguments[0],arguments[1]):h}function aC(h,w){var A=h.__data__;return Ppe(w)?A[typeof w=="string"?"string":"hash"]:A.map}function kA(h){for(var w=Bo(h),A=w.length;A--;){var H=w[A],q=h[H];w[A]=[H,q,oH(q)]}return w}function xp(h,w){var A=Ode(h,w);return S5(A)?A:n}function ype(h){var w=nr.call(h,gp),A=h[gp];try{h[gp]=n;var H=!0}catch{}var q=N1.call(h);return H&&(w?h[gp]=A:delete h[gp]),q}var MA=rA?function(h){return h==null?[]:(h=dr(h),xd(rA(h),function(w){return s5.call(h,w)}))}:KA,tH=rA?function(h){for(var w=[];h;)Sd(w,MA(h)),h=B1(h);return w}:KA,gi=$i;(oA&&gi(new oA(new ArrayBuffer(1)))!=Je||Vb&&gi(new Vb)!=ge||iA&&gi(iA.resolve())!=we||Am&&gi(new Am)!=Le||Hb&&gi(new Hb)!=Me)&&(gi=function(h){var w=$i(h),A=w==be?h.constructor:n,H=A?Sp(A):"";if(H)switch(H){case Zde:return Je;case efe:return ge;case tfe:return we;case nfe:return Le;case rfe:return Me}return w});function vpe(h,w,A){for(var H=-1,q=A.length;++H<q;){var te=A[H],he=te.size;switch(te.type){case"drop":h+=he;break;case"dropRight":w-=he;break;case"take":w=mi(w,h+he);break;case"takeRight":h=Mo(h,w-he);break}}return{start:h,end:w}}function bpe(h){var w=h.match(I1);return w?w[1].split(pp):[]}function nH(h,w,A){w=Od(w,h);for(var H=-1,q=w.length,te=!1;++H<q;){var he=mc(w[H]);if(!(te=h!=null&&A(h,he)))break;h=h[he]}return te||++H!=q?te:(q=h==null?0:h.length,!!q&&pC(q)&&du(he,q)&&(en(h)||Cp(h)))}function wpe(h){var w=h.length,A=new h.constructor(w);return w&&typeof h[0]=="string"&&nr.call(h,"index")&&(A.index=h.index,A.input=h.input),A}function rH(h){return typeof h.constructor=="function"&&!Jb(h)?Rm(B1(h)):{}}function xpe(h,w,A){var H=h.constructor;switch(w){case Ye:return CA(h);case se:case ee:return new H(+h);case Je:return ope(h,A);case st:case Rt:case ct:case Lt:case pt:case rt:case Pe:case Ve:case ft:return j5(h,A);case ge:return new H;case xe:case de:return new H(h);case Ie:return ipe(h);case Le:return new H;case $e:return ape(h)}}function Spe(h,w){var A=w.length;if(!A)return h;var H=A-1;return w[H]=(A>1?"& ":"")+w[H],w=w.join(A>2?", ":" "),h.replace(xm,`{
/* [wrapped with `+w+`] */
-`)}function pfe(h){return en(h)||sp(h)||!!(wV&&h&&h[wV])}function Zc(h,w){var A=typeof h;return w=w??V,!!w&&(A=="number"||A!="symbol"&&Gn.test(h))&&h>-1&&h%1==0&&h<w}function Ti(h,w,A){if(!Fr(A))return!1;var H=typeof w;return(H=="number"?Qi(A)&&Zc(w,A.length):H=="string"&&w in A)?yl(A[w],h):!1}function XM(h,w){if(en(h))return!1;var A=typeof h;return A=="number"||A=="symbol"||A=="boolean"||h==null||Oa(h)?!0:ss.test(h)||!Co.test(h)||w!=null&&h in dr(w)}function hfe(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function QM(h){var w=_1(h),A=Z[w];if(typeof A!="function"||!(w in Mn.prototype))return!1;if(h===A)return!0;var H=qM(A);return!!H&&h===H[0]}function mfe(h){return!!gV&&gV in h}var gfe=d1?eu:hA;function Ib(h){var w=h&&h.constructor,A=typeof w=="function"&&w.prototype||pm;return h===A}function g5(h){return h===h&&!Fr(h)}function y5(h,w){return function(A){return A==null?!1:A[h]===w&&(w!==n||h in dr(A))}}function yfe(h){var w=z1(h,function(H){return A.size===c&&A.clear(),H}),A=w.cache;return w}function vfe(h,w){var A=h[1],H=w[1],q=A|H,te=q<(y|b|O),he=H==O&&A==S||H==O&&A==k&&h[7].length<=w[8]||H==(O|k)&&w[7].length<=w[8]&&A==S;if(!(te||he))return h;H&y&&(h[2]=w[2],q|=A&y?0:x);var ye=w[3];if(ye){var Ee=h[3];h[3]=Ee?ZV(Ee,ye,w[4]):ye,h[4]=Ee?cd(h[3],u):w[4]}return ye=w[5],ye&&(Ee=h[5],h[5]=Ee?e5(Ee,ye,w[6]):ye,h[6]=Ee?cd(h[5],u):w[6]),ye=w[7],ye&&(h[7]=ye),H&O&&(h[8]=h[8]==null?w[8]:si(h[8],w[8])),h[9]==null&&(h[9]=w[9]),h[0]=w[0],h[1]=q,h}function bfe(h){var w=[];if(h!=null)for(var A in dr(h))w.push(A);return w}function wfe(h){return p1.call(h)}function v5(h,w,A){return w=Eo(w===n?h.length-1:w,0),function(){for(var H=arguments,q=-1,te=Eo(H.length-w,0),he=$e(te);++q<te;)he[q]=H[w+q];q=-1;for(var ye=$e(w+1);++q<w;)ye[q]=H[q];return ye[w]=A(he),Pa(h,this,ye)}}function b5(h,w){return w.length<2?h:op(h,hs(w,0,-1))}function xfe(h,w){for(var A=h.length,H=si(w.length,A),q=Xi(h);H--;){var te=w[H];h[H]=Zc(te,A)?q[te]:n}return h}function JM(h,w){if(!(w==="constructor"&&typeof h[w]=="function")&&w!="__proto__")return h[w]}var w5=S5(HV),kb=Lue||function(h,w){return qo.setTimeout(h,w)},ZM=S5(Ude);function x5(h,w,A){var H=w+"";return ZM(h,ffe(H,Sfe(cfe(H),A)))}function S5(h){var w=0,A=0;return function(){var H=Bue(),q=N-(H-A);if(A=H,q>0){if(++w>=_)return arguments[0]}else w=0;return h.apply(n,arguments)}}function N1(h,w){var A=-1,H=h.length,q=H-1;for(w=w===n?H:w;++A<w;){var te=_M(A,q),he=h[te];h[te]=h[A],h[A]=he}return h.length=w,h}var C5=yfe(function(h){var w=[];return h.charCodeAt(0)===46&&w.push(""),h.replace(ad,function(A,H,q,te){w.push(q?te.replace(hl,"$1"):H||A)}),w});function ic(h){if(typeof h=="string"||Oa(h))return h;var w=h+"";return w=="0"&&1/h==-U?"-0":w}function ap(h){if(h!=null){try{return f1.call(h)}catch{}try{return h+""}catch{}}return""}function Sfe(h,w){return us(ne,function(A){var H="_."+A[0];w&A[1]&&!s1(h,H)&&h.push(H)}),h.sort()}function P5(h){if(h instanceof Mn)return h.clone();var w=new fs(h.__wrapped__,h.__chain__);return w.__actions__=Xi(h.__actions__),w.__index__=h.__index__,w.__values__=h.__values__,w}function Cfe(h,w,A){(A?Ti(h,w,A):w===n)?w=1:w=Eo(cn(w),0);var H=h==null?0:h.length;if(!H||w<1)return[];for(var q=0,te=0,he=$e(b1(H/w));q<H;)he[te++]=hs(h,q,q+=w);return he}function Pfe(h){for(var w=-1,A=h==null?0:h.length,H=0,q=[];++w<A;){var te=h[w];te&&(q[H++]=te)}return q}function Efe(){var h=arguments.length;if(!h)return[];for(var w=$e(h-1),A=arguments[0],H=h;H--;)w[H-1]=arguments[H];return ld(en(A)?Xi(A):[A],Ko(w,1))}var Tfe=bn(function(h,w){return eo(h)?Cb(h,Ko(w,1,eo,!0)):[]}),Ofe=bn(function(h,w){var A=ms(w);return eo(A)&&(A=n),eo(h)?Cb(h,Ko(w,1,eo,!0),Ft(A,2)):[]}),Ife=bn(function(h,w){var A=ms(w);return eo(A)&&(A=n),eo(h)?Cb(h,Ko(w,1,eo,!0),n,A):[]});function kfe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),hs(h,w<0?0:w,H)):[]}function Mfe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),w=H-w,hs(h,0,w<0?0:w)):[]}function Afe(h,w){return h&&h.length?k1(h,Ft(w,3),!0,!0):[]}function $fe(h,w){return h&&h.length?k1(h,Ft(w,3),!0):[]}function Rfe(h,w,A,H){var q=h==null?0:h.length;return q?(A&&typeof A!="number"&&Ti(h,w,A)&&(A=0,H=q),Ede(h,w,A,H)):[]}function E5(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=A==null?0:cn(A);return q<0&&(q=Eo(H+q,0)),l1(h,Ft(w,3),q)}function T5(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=H-1;return A!==n&&(q=cn(A),q=A<0?Eo(H+q,0):si(q,H-1)),l1(h,Ft(w,3),q,!0)}function O5(h){var w=h==null?0:h.length;return w?Ko(h,1):[]}function Dfe(h){var w=h==null?0:h.length;return w?Ko(h,U):[]}function _fe(h,w){var A=h==null?0:h.length;return A?(w=w===n?1:cn(w),Ko(h,w)):[]}function Lfe(h){for(var w=-1,A=h==null?0:h.length,H={};++w<A;){var q=h[w];H[q[0]]=q[1]}return H}function I5(h){return h&&h.length?h[0]:n}function Nfe(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=A==null?0:cn(A);return q<0&&(q=Eo(H+q,0)),cm(h,w,q)}function Ffe(h){var w=h==null?0:h.length;return w?hs(h,0,-1):[]}var jfe=bn(function(h){var w=Dr(h,BM);return w.length&&w[0]===h[0]?MM(w):[]}),Bfe=bn(function(h){var w=ms(h),A=Dr(h,BM);return w===ms(A)?w=n:A.pop(),A.length&&A[0]===h[0]?MM(A,Ft(w,2)):[]}),zfe=bn(function(h){var w=ms(h),A=Dr(h,BM);return w=typeof w=="function"?w:n,w&&A.pop(),A.length&&A[0]===h[0]?MM(A,n,w):[]});function Vfe(h,w){return h==null?"":Fue.call(h,w)}function ms(h){var w=h==null?0:h.length;return w?h[w-1]:n}function Hfe(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=H;return A!==n&&(q=cn(A),q=q<0?Eo(H+q,0):si(q,H-1)),w===w?Sue(h,w,q):l1(h,lV,q,!0)}function Ufe(h,w){return h&&h.length?jV(h,cn(w)):n}var Wfe=bn(k5);function k5(h,w){return h&&h.length&&w&&w.length?DM(h,w):h}function Gfe(h,w,A){return h&&h.length&&w&&w.length?DM(h,w,Ft(A,2)):h}function qfe(h,w,A){return h&&h.length&&w&&w.length?DM(h,w,n,A):h}var Kfe=Jc(function(h,w){var A=h==null?0:h.length,H=TM(h,w);return VV(h,Dr(w,function(q){return Zc(q,A)?+q:q}).sort(JV)),H});function Yfe(h,w){var A=[];if(!(h&&h.length))return A;var H=-1,q=[],te=h.length;for(w=Ft(w,3);++H<te;){var he=h[H];w(he,H,h)&&(A.push(he),q.push(H))}return VV(h,q),A}function eA(h){return h==null?h:Vue.call(h)}function Xfe(h,w,A){var H=h==null?0:h.length;return H?(A&&typeof A!="number"&&Ti(h,w,A)?(w=0,A=H):(w=w==null?0:cn(w),A=A===n?H:cn(A)),hs(h,w,A)):[]}function Qfe(h,w){return I1(h,w)}function Jfe(h,w,A){return NM(h,w,Ft(A,2))}function Zfe(h,w){var A=h==null?0:h.length;if(A){var H=I1(h,w);if(H<A&&yl(h[H],w))return H}return-1}function epe(h,w){return I1(h,w,!0)}function tpe(h,w,A){return NM(h,w,Ft(A,2),!0)}function npe(h,w){var A=h==null?0:h.length;if(A){var H=I1(h,w,!0)-1;if(yl(h[H],w))return H}return-1}function rpe(h){return h&&h.length?UV(h):[]}function ope(h,w){return h&&h.length?UV(h,Ft(w,2)):[]}function ipe(h){var w=h==null?0:h.length;return w?hs(h,1,w):[]}function ape(h,w,A){return h&&h.length?(w=A||w===n?1:cn(w),hs(h,0,w<0?0:w)):[]}function spe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),w=H-w,hs(h,w<0?0:w,H)):[]}function lpe(h,w){return h&&h.length?k1(h,Ft(w,3),!1,!0):[]}function cpe(h,w){return h&&h.length?k1(h,Ft(w,3)):[]}var upe=bn(function(h){return fd(Ko(h,1,eo,!0))}),dpe=bn(function(h){var w=ms(h);return eo(w)&&(w=n),fd(Ko(h,1,eo,!0),Ft(w,2))}),fpe=bn(function(h){var w=ms(h);return w=typeof w=="function"?w:n,fd(Ko(h,1,eo,!0),n,w)});function ppe(h){return h&&h.length?fd(h):[]}function hpe(h,w){return h&&h.length?fd(h,Ft(w,2)):[]}function mpe(h,w){return w=typeof w=="function"?w:n,h&&h.length?fd(h,n,w):[]}function tA(h){if(!(h&&h.length))return[];var w=0;return h=sd(h,function(A){if(eo(A))return w=Eo(A.length,w),!0}),vM(w,function(A){return Dr(h,mM(A))})}function M5(h,w){if(!(h&&h.length))return[];var A=tA(h);return w==null?A:Dr(A,function(H){return Pa(w,n,H)})}var gpe=bn(function(h,w){return eo(h)?Cb(h,w):[]}),ype=bn(function(h){return jM(sd(h,eo))}),vpe=bn(function(h){var w=ms(h);return eo(w)&&(w=n),jM(sd(h,eo),Ft(w,2))}),bpe=bn(function(h){var w=ms(h);return w=typeof w=="function"?w:n,jM(sd(h,eo),n,w)}),wpe=bn(tA);function xpe(h,w){return KV(h||[],w||[],Sb)}function Spe(h,w){return KV(h||[],w||[],Tb)}var Cpe=bn(function(h){var w=h.length,A=w>1?h[w-1]:n;return A=typeof A=="function"?(h.pop(),A):n,M5(h,A)});function A5(h){var w=Z(h);return w.__chain__=!0,w}function Ppe(h,w){return w(h),h}function F1(h,w){return w(h)}var Epe=Jc(function(h){var w=h.length,A=w?h[0]:0,H=this.__wrapped__,q=function(te){return TM(te,h)};return w>1||this.__actions__.length||!(H instanceof Mn)||!Zc(A)?this.thru(q):(H=H.slice(A,+A+(w?1:0)),H.__actions__.push({func:F1,args:[q],thisArg:n}),new fs(H,this.__chain__).thru(function(te){return w&&!te.length&&te.push(n),te}))});function Tpe(){return A5(this)}function Ope(){return new fs(this.value(),this.__chain__)}function Ipe(){this.__values__===n&&(this.__values__=W5(this.value()));var h=this.__index__>=this.__values__.length,w=h?n:this.__values__[this.__index__++];return{done:h,value:w}}function kpe(){return this}function Mpe(h){for(var w,A=this;A instanceof C1;){var H=P5(A);H.__index__=0,H.__values__=n,w?q.__wrapped__=H:w=H;var q=H;A=A.__wrapped__}return q.__wrapped__=h,w}function Ape(){var h=this.__wrapped__;if(h instanceof Mn){var w=h;return this.__actions__.length&&(w=new Mn(this)),w=w.reverse(),w.__actions__.push({func:F1,args:[eA],thisArg:n}),new fs(w,this.__chain__)}return this.thru(eA)}function $pe(){return qV(this.__wrapped__,this.__actions__)}var Rpe=M1(function(h,w,A){or.call(h,A)?++h[A]:Xc(h,A,1)});function Dpe(h,w,A){var H=en(h)?aV:Pde;return A&&Ti(h,w,A)&&(w=n),H(h,Ft(w,3))}function _pe(h,w){var A=en(h)?sd:MV;return A(h,Ft(w,3))}var Lpe=o5(E5),Npe=o5(T5);function Fpe(h,w){return Ko(j1(h,w),1)}function jpe(h,w){return Ko(j1(h,w),U)}function Bpe(h,w,A){return A=A===n?1:cn(A),Ko(j1(h,w),A)}function $5(h,w){var A=en(h)?us:dd;return A(h,Ft(w,3))}function R5(h,w){var A=en(h)?iue:kV;return A(h,Ft(w,3))}var zpe=M1(function(h,w,A){or.call(h,A)?h[A].push(w):Xc(h,A,[w])});function Vpe(h,w,A,H){h=Qi(h)?h:xm(h),A=A&&!H?cn(A):0;var q=h.length;return A<0&&(A=Eo(q+A,0)),U1(h)?A<=q&&h.indexOf(w,A)>-1:!!q&&cm(h,w,A)>-1}var Hpe=bn(function(h,w,A){var H=-1,q=typeof w=="function",te=Qi(h)?$e(h.length):[];return dd(h,function(he){te[++H]=q?Pa(w,he,A):Pb(he,w,A)}),te}),Upe=M1(function(h,w,A){Xc(h,A,w)});function j1(h,w){var A=en(h)?Dr:LV;return A(h,Ft(w,3))}function Wpe(h,w,A,H){return h==null?[]:(en(w)||(w=w==null?[]:[w]),A=H?n:A,en(A)||(A=A==null?[]:[A]),BV(h,w,A))}var Gpe=M1(function(h,w,A){h[A?0:1].push(w)},function(){return[[],[]]});function qpe(h,w,A){var H=en(h)?pM:uV,q=arguments.length<3;return H(h,Ft(w,4),A,q,dd)}function Kpe(h,w,A){var H=en(h)?aue:uV,q=arguments.length<3;return H(h,Ft(w,4),A,q,kV)}function Ype(h,w){var A=en(h)?sd:MV;return A(h,V1(Ft(w,3)))}function Xpe(h){var w=en(h)?EV:Vde;return w(h)}function Qpe(h,w,A){(A?Ti(h,w,A):w===n)?w=1:w=cn(w);var H=en(h)?bde:Hde;return H(h,w)}function Jpe(h){var w=en(h)?wde:Wde;return w(h)}function Zpe(h){if(h==null)return 0;if(Qi(h))return U1(h)?dm(h):h.length;var w=li(h);return w==ge||w==je?h.size:$M(h).length}function ehe(h,w,A){var H=en(h)?hM:Gde;return A&&Ti(h,w,A)&&(w=n),H(h,Ft(w,3))}var the=bn(function(h,w){if(h==null)return[];var A=w.length;return A>1&&Ti(h,w[0],w[1])?w=[]:A>2&&Ti(w[0],w[1],w[2])&&(w=[w[0]]),BV(h,Ko(w,1),[])}),B1=_ue||function(){return qo.Date.now()};function nhe(h,w){if(typeof w!="function")throw new ds(a);return h=cn(h),function(){if(--h<1)return w.apply(this,arguments)}}function D5(h,w,A){return w=A?n:w,w=h&&w==null?h.length:w,Qc(h,O,n,n,n,n,w)}function _5(h,w){var A;if(typeof w!="function")throw new ds(a);return h=cn(h),function(){return--h>0&&(A=w.apply(this,arguments)),h<=1&&(w=n),A}}var nA=bn(function(h,w,A){var H=y;if(A.length){var q=cd(A,bm(nA));H|=E}return Qc(h,H,w,A,q)}),L5=bn(function(h,w,A){var H=y|b;if(A.length){var q=cd(A,bm(L5));H|=E}return Qc(w,H,h,A,q)});function N5(h,w,A){w=A?n:w;var H=Qc(h,S,n,n,n,n,n,w);return H.placeholder=N5.placeholder,H}function F5(h,w,A){w=A?n:w;var H=Qc(h,P,n,n,n,n,n,w);return H.placeholder=F5.placeholder,H}function j5(h,w,A){var H,q,te,he,ye,Ee,Xe=0,Qe=!1,et=!1,ht=!0;if(typeof h!="function")throw new ds(a);w=gs(w)||0,Fr(A)&&(Qe=!!A.leading,et="maxWait"in A,te=et?Eo(gs(A.maxWait)||0,w):te,ht="trailing"in A?!!A.trailing:ht);function Rt(to){var vl=H,nu=q;return H=q=n,Xe=to,he=h.apply(nu,vl),he}function zt(to){return Xe=to,ye=kb(Tn,w),Qe?Rt(to):he}function fn(to){var vl=to-Ee,nu=to-Xe,oH=w-vl;return et?si(oH,te-nu):oH}function Vt(to){var vl=to-Ee,nu=to-Xe;return Ee===n||vl>=w||vl<0||et&&nu>=te}function Tn(){var to=B1();if(Vt(to))return Rn(to);ye=kb(Tn,fn(to))}function Rn(to){return ye=n,ht&&H?Rt(to):(H=q=n,he)}function Ia(){ye!==n&&YV(ye),Xe=0,H=Ee=q=ye=n}function Oi(){return ye===n?he:Rn(B1())}function ka(){var to=B1(),vl=Vt(to);if(H=arguments,q=this,Ee=to,vl){if(ye===n)return zt(Ee);if(et)return YV(ye),ye=kb(Tn,w),Rt(Ee)}return ye===n&&(ye=kb(Tn,w)),he}return ka.cancel=Ia,ka.flush=Oi,ka}var rhe=bn(function(h,w){return IV(h,1,w)}),ohe=bn(function(h,w,A){return IV(h,gs(w)||0,A)});function ihe(h){return Qc(h,M)}function z1(h,w){if(typeof h!="function"||w!=null&&typeof w!="function")throw new ds(a);var A=function(){var H=arguments,q=w?w.apply(this,H):H[0],te=A.cache;if(te.has(q))return te.get(q);var he=h.apply(this,H);return A.cache=te.set(q,he)||te,he};return A.cache=new(z1.Cache||Yc),A}z1.Cache=Yc;function V1(h){if(typeof h!="function")throw new ds(a);return function(){var w=arguments;switch(w.length){case 0:return!h.call(this);case 1:return!h.call(this,w[0]);case 2:return!h.call(this,w[0],w[1]);case 3:return!h.call(this,w[0],w[1],w[2])}return!h.apply(this,w)}}function ahe(h){return _5(2,h)}var she=qde(function(h,w){w=w.length==1&&en(w[0])?Dr(w[0],Ea(Ft())):Dr(Ko(w,1),Ea(Ft()));var A=w.length;return bn(function(H){for(var q=-1,te=si(H.length,A);++q<te;)H[q]=w[q].call(this,H[q]);return Pa(h,this,H)})}),rA=bn(function(h,w){var A=cd(w,bm(rA));return Qc(h,E,n,w,A)}),B5=bn(function(h,w){var A=cd(w,bm(B5));return Qc(h,T,n,w,A)}),lhe=Jc(function(h,w){return Qc(h,k,n,n,n,w)});function che(h,w){if(typeof h!="function")throw new ds(a);return w=w===n?w:cn(w),bn(h,w)}function uhe(h,w){if(typeof h!="function")throw new ds(a);return w=w==null?0:Eo(cn(w),0),bn(function(A){var H=A[w],q=hd(A,0,w);return H&&ld(q,H),Pa(h,this,q)})}function dhe(h,w,A){var H=!0,q=!0;if(typeof h!="function")throw new ds(a);return Fr(A)&&(H="leading"in A?!!A.leading:H,q="trailing"in A?!!A.trailing:q),j5(h,w,{leading:H,maxWait:w,trailing:q})}function fhe(h){return D5(h,1)}function phe(h,w){return rA(zM(w),h)}function hhe(){if(!arguments.length)return[];var h=arguments[0];return en(h)?h:[h]}function mhe(h){return ps(h,p)}function ghe(h,w){return w=typeof w=="function"?w:n,ps(h,p,w)}function yhe(h){return ps(h,d|p)}function vhe(h,w){return w=typeof w=="function"?w:n,ps(h,d|p,w)}function bhe(h,w){return w==null||OV(h,w,_o(w))}function yl(h,w){return h===w||h!==h&&w!==w}var whe=D1(kM),xhe=D1(function(h,w){return h>=w}),sp=RV(function(){return arguments}())?RV:function(h){return Gr(h)&&or.call(h,"callee")&&!bV.call(h,"callee")},en=$e.isArray,She=eV?Ea(eV):Mde;function Qi(h){return h!=null&&H1(h.length)&&!eu(h)}function eo(h){return Gr(h)&&Qi(h)}function Che(h){return h===!0||h===!1||Gr(h)&&Ei(h)==se}var md=Nue||hA,Phe=tV?Ea(tV):Ade;function Ehe(h){return Gr(h)&&h.nodeType===1&&!Mb(h)}function The(h){if(h==null)return!0;if(Qi(h)&&(en(h)||typeof h=="string"||typeof h.splice=="function"||md(h)||wm(h)||sp(h)))return!h.length;var w=li(h);if(w==ge||w==je)return!h.size;if(Ib(h))return!$M(h).length;for(var A in h)if(or.call(h,A))return!1;return!0}function Ohe(h,w){return Eb(h,w)}function Ihe(h,w,A){A=typeof A=="function"?A:n;var H=A?A(h,w):n;return H===n?Eb(h,w,n,A):!!H}function oA(h){if(!Gr(h))return!1;var w=Ei(h);return w==le||w==ce||typeof h.message=="string"&&typeof h.name=="string"&&!Mb(h)}function khe(h){return typeof h=="number"&&xV(h)}function eu(h){if(!Fr(h))return!1;var w=Ei(h);return w==Q||w==ue||w==fe||w==Oe}function z5(h){return typeof h=="number"&&h==cn(h)}function H1(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=V}function Fr(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function Gr(h){return h!=null&&typeof h=="object"}var V5=nV?Ea(nV):Rde;function Mhe(h,w){return h===w||AM(h,w,KM(w))}function Ahe(h,w,A){return A=typeof A=="function"?A:n,AM(h,w,KM(w),A)}function $he(h){return H5(h)&&h!=+h}function Rhe(h){if(gfe(h))throw new Kt(i);return DV(h)}function Dhe(h){return h===null}function _he(h){return h==null}function H5(h){return typeof h=="number"||Gr(h)&&Ei(h)==xe}function Mb(h){if(!Gr(h)||Ei(h)!=be)return!1;var w=g1(h);if(w===null)return!0;var A=or.call(w,"constructor")&&w.constructor;return typeof A=="function"&&A instanceof A&&f1.call(A)==Aue}var iA=rV?Ea(rV):Dde;function Lhe(h){return z5(h)&&h>=-V&&h<=V}var U5=oV?Ea(oV):_de;function U1(h){return typeof h=="string"||!en(h)&&Gr(h)&&Ei(h)==de}function Oa(h){return typeof h=="symbol"||Gr(h)&&Ei(h)==Re}var wm=iV?Ea(iV):Lde;function Nhe(h){return h===n}function Fhe(h){return Gr(h)&&li(h)==Ae}function jhe(h){return Gr(h)&&Ei(h)==Ne}var Bhe=D1(RM),zhe=D1(function(h,w){return h<=w});function W5(h){if(!h)return[];if(Qi(h))return U1(h)?ml(h):Xi(h);if(yb&&h[yb])return bue(h[yb]());var w=li(h),A=w==ge?wM:w==je?c1:xm;return A(h)}function tu(h){if(!h)return h===0?h:0;if(h=gs(h),h===U||h===-U){var w=h<0?-1:1;return w*z}return h===h?h:0}function cn(h){var w=tu(h),A=w%1;return w===w?A?w-A:w:0}function G5(h){return h?rp(cn(h),0,G):0}function gs(h){if(typeof h=="number")return h;if(Oa(h))return W;if(Fr(h)){var w=typeof h.valueOf=="function"?h.valueOf():h;h=Fr(w)?w+"":w}if(typeof h!="string")return h===0?h:+h;h=dV(h);var A=Zt.test(h);return A||Rr.test(h)?nue(h.slice(2),A?2:8):St.test(h)?W:+h}function q5(h){return oc(h,Ji(h))}function Vhe(h){return h?rp(cn(h),-V,V):h===0?h:0}function Jn(h){return h==null?"":Ta(h)}var Hhe=ym(function(h,w){if(Ib(w)||Qi(w)){oc(w,_o(w),h);return}for(var A in w)or.call(w,A)&&Sb(h,A,w[A])}),K5=ym(function(h,w){oc(w,Ji(w),h)}),W1=ym(function(h,w,A,H){oc(w,Ji(w),h,H)}),Uhe=ym(function(h,w,A,H){oc(w,_o(w),h,H)}),Whe=Jc(TM);function Ghe(h,w){var A=gm(h);return w==null?A:TV(A,w)}var qhe=bn(function(h,w){h=dr(h);var A=-1,H=w.length,q=H>2?w[2]:n;for(q&&Ti(w[0],w[1],q)&&(H=1);++A<H;)for(var te=w[A],he=Ji(te),ye=-1,Ee=he.length;++ye<Ee;){var Xe=he[ye],Qe=h[Xe];(Qe===n||yl(Qe,pm[Xe])&&!or.call(h,Xe))&&(h[Xe]=te[Xe])}return h}),Khe=bn(function(h){return h.push(n,d5),Pa(Y5,n,h)});function Yhe(h,w){return sV(h,Ft(w,3),rc)}function Xhe(h,w){return sV(h,Ft(w,3),IM)}function Qhe(h,w){return h==null?h:OM(h,Ft(w,3),Ji)}function Jhe(h,w){return h==null?h:AV(h,Ft(w,3),Ji)}function Zhe(h,w){return h&&rc(h,Ft(w,3))}function eme(h,w){return h&&IM(h,Ft(w,3))}function tme(h){return h==null?[]:T1(h,_o(h))}function nme(h){return h==null?[]:T1(h,Ji(h))}function aA(h,w,A){var H=h==null?n:op(h,w);return H===n?A:H}function rme(h,w){return h!=null&&h5(h,w,Tde)}function sA(h,w){return h!=null&&h5(h,w,Ode)}var ome=a5(function(h,w,A){w!=null&&typeof w.toString!="function"&&(w=p1.call(w)),h[w]=A},cA(Zi)),ime=a5(function(h,w,A){w!=null&&typeof w.toString!="function"&&(w=p1.call(w)),or.call(h,w)?h[w].push(A):h[w]=[A]},Ft),ame=bn(Pb);function _o(h){return Qi(h)?PV(h):$M(h)}function Ji(h){return Qi(h)?PV(h,!0):Nde(h)}function sme(h,w){var A={};return w=Ft(w,3),rc(h,function(H,q,te){Xc(A,w(H,q,te),H)}),A}function lme(h,w){var A={};return w=Ft(w,3),rc(h,function(H,q,te){Xc(A,q,w(H,q,te))}),A}var cme=ym(function(h,w,A){O1(h,w,A)}),Y5=ym(function(h,w,A,H){O1(h,w,A,H)}),ume=Jc(function(h,w){var A={};if(h==null)return A;var H=!1;w=Dr(w,function(te){return te=pd(te,h),H||(H=te.length>1),te}),oc(h,GM(h),A),H&&(A=ps(A,d|f|p,ofe));for(var q=w.length;q--;)FM(A,w[q]);return A});function dme(h,w){return X5(h,V1(Ft(w)))}var fme=Jc(function(h,w){return h==null?{}:jde(h,w)});function X5(h,w){if(h==null)return{};var A=Dr(GM(h),function(H){return[H]});return w=Ft(w),zV(h,A,function(H,q){return w(H,q[0])})}function pme(h,w,A){w=pd(w,h);var H=-1,q=w.length;for(q||(q=1,h=n);++H<q;){var te=h==null?n:h[ic(w[H])];te===n&&(H=q,te=A),h=eu(te)?te.call(h):te}return h}function hme(h,w,A){return h==null?h:Tb(h,w,A)}function mme(h,w,A,H){return H=typeof H=="function"?H:n,h==null?h:Tb(h,w,A,H)}var Q5=c5(_o),J5=c5(Ji);function gme(h,w,A){var H=en(h),q=H||md(h)||wm(h);if(w=Ft(w,4),A==null){var te=h&&h.constructor;q?A=H?new te:[]:Fr(h)?A=eu(te)?gm(g1(h)):{}:A={}}return(q?us:rc)(h,function(he,ye,Ee){return w(A,he,ye,Ee)}),A}function yme(h,w){return h==null?!0:FM(h,w)}function vme(h,w,A){return h==null?h:GV(h,w,zM(A))}function bme(h,w,A,H){return H=typeof H=="function"?H:n,h==null?h:GV(h,w,zM(A),H)}function xm(h){return h==null?[]:bM(h,_o(h))}function wme(h){return h==null?[]:bM(h,Ji(h))}function xme(h,w,A){return A===n&&(A=w,w=n),A!==n&&(A=gs(A),A=A===A?A:0),w!==n&&(w=gs(w),w=w===w?w:0),rp(gs(h),w,A)}function Sme(h,w,A){return w=tu(w),A===n?(A=w,w=0):A=tu(A),h=gs(h),Ide(h,w,A)}function Cme(h,w,A){if(A&&typeof A!="boolean"&&Ti(h,w,A)&&(w=A=n),A===n&&(typeof w=="boolean"?(A=w,w=n):typeof h=="boolean"&&(A=h,h=n)),h===n&&w===n?(h=0,w=1):(h=tu(h),w===n?(w=h,h=0):w=tu(w)),h>w){var H=h;h=w,w=H}if(A||h%1||w%1){var q=SV();return si(h+q*(w-h+tue("1e-"+((q+"").length-1))),w)}return _M(h,w)}var Pme=vm(function(h,w,A){return w=w.toLowerCase(),h+(A?Z5(w):w)});function Z5(h){return lA(Jn(h).toLowerCase())}function eH(h){return h=Jn(h),h&&h.replace(Ca,hue).replace(Wce,"")}function Eme(h,w,A){h=Jn(h),w=Ta(w);var H=h.length;A=A===n?H:rp(cn(A),0,H);var q=A;return A-=w.length,A>=0&&h.slice(A,q)==w}function Tme(h){return h=Jn(h),h&&So.test(h)?h.replace(Wn,mue):h}function Ome(h){return h=Jn(h),h&&Kf.test(h)?h.replace(Gc,"\\$&"):h}var Ime=vm(function(h,w,A){return h+(A?"-":"")+w.toLowerCase()}),kme=vm(function(h,w,A){return h+(A?" ":"")+w.toLowerCase()}),Mme=r5("toLowerCase");function Ame(h,w,A){h=Jn(h),w=cn(w);var H=w?dm(h):0;if(!w||H>=w)return h;var q=(w-H)/2;return R1(w1(q),A)+h+R1(b1(q),A)}function $me(h,w,A){h=Jn(h),w=cn(w);var H=w?dm(h):0;return w&&H<w?h+R1(w-H,A):h}function Rme(h,w,A){h=Jn(h),w=cn(w);var H=w?dm(h):0;return w&&H<w?R1(w-H,A)+h:h}function Dme(h,w,A){return A||w==null?w=0:w&&(w=+w),zue(Jn(h).replace(Yf,""),w||0)}function _me(h,w,A){return(A?Ti(h,w,A):w===n)?w=1:w=cn(w),LM(Jn(h),w)}function Lme(){var h=arguments,w=Jn(h[0]);return h.length<3?w:w.replace(h[1],h[2])}var Nme=vm(function(h,w,A){return h+(A?"_":"")+w.toLowerCase()});function Fme(h,w,A){return A&&typeof A!="number"&&Ti(h,w,A)&&(w=A=n),A=A===n?G:A>>>0,A?(h=Jn(h),h&&(typeof w=="string"||w!=null&&!iA(w))&&(w=Ta(w),!w&&um(h))?hd(ml(h),0,A):h.split(w,A)):[]}var jme=vm(function(h,w,A){return h+(A?" ":"")+lA(w)});function Bme(h,w,A){return h=Jn(h),A=A==null?0:rp(cn(A),0,h.length),w=Ta(w),h.slice(A,A+w.length)==w}function zme(h,w,A){var H=Z.templateSettings;A&&Ti(h,w,A)&&(w=n),h=Jn(h),w=W1({},w,H,u5);var q=W1({},w.imports,H.imports,u5),te=_o(q),he=bM(q,te),ye,Ee,Xe=0,Qe=w.interpolate||qc,et="__p += '",ht=xM((w.escape||qc).source+"|"+Qe.source+"|"+(Qe===Nt?Ke:qc).source+"|"+(w.evaluate||qc).source+"|$","g"),Rt="//# sourceURL="+(or.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xce+"]")+`
-`;h.replace(ht,function(Vt,Tn,Rn,Ia,Oi,ka){return Rn||(Rn=Ia),et+=h.slice(Xe,ka).replace(Lz,gue),Tn&&(ye=!0,et+=`' +
-__e(`+Tn+`) +
-'`),Oi&&(Ee=!0,et+=`';
-`+Oi+`;
-__p += '`),Rn&&(et+=`' +
-((__t = (`+Rn+`)) == null ? '' : __t) +
-'`),Xe=ka+Vt.length,Vt}),et+=`';
-`;var zt=or.call(w,"variable")&&w.variable;if(!zt)et=`with (obj) {
-`+et+`
+`)}function Cpe(h){return en(h)||Cp(h)||!!(l5&&h&&h[l5])}function du(h,w){var A=typeof h;return w=w??z,!!w&&(A=="number"||A!="symbol"&&Gn.test(h))&&h>-1&&h%1==0&&h<w}function Ri(h,w,A){if(!jr(A))return!1;var H=typeof w;return(H=="number"?oa(A)&&du(w,A.length):H=="string"&&w in A)?Il(A[w],h):!1}function AA(h,w){if(en(h))return!1;var A=typeof h;return A=="number"||A=="symbol"||A=="boolean"||h==null||Ra(h)?!0:gs.test(h)||!Io.test(h)||w!=null&&h in dr(w)}function Ppe(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function $A(h){var w=iC(h),A=Z[w];if(typeof A!="function"||!(w in On.prototype))return!1;if(h===A)return!0;var H=IA(A);return!!H&&h===H[0]}function Epe(h){return!!o5&&o5 in h}var Tpe=_1?fu:YA;function Jb(h){var w=h&&h.constructor,A=typeof w=="function"&&w.prototype||Mm;return h===A}function oH(h){return h===h&&!jr(h)}function iH(h,w){return function(A){return A==null?!1:A[h]===w&&(w!==n||h in dr(A))}}function Ope(h){var w=dC(h,function(H){return A.size===c&&A.clear(),H}),A=w.cache;return w}function Ipe(h,w){var A=h[1],H=w[1],q=A|H,te=q<(y|b|O),he=H==O&&A==S||H==O&&A==k&&h[7].length<=w[8]||H==(O|k)&&w[7].length<=w[8]&&A==S;if(!(te||he))return h;H&y&&(h[2]=w[2],q|=A&y?0:x);var ye=w[3];if(ye){var Ee=h[3];h[3]=Ee?z5(Ee,ye,w[4]):ye,h[4]=Ee?Cd(h[3],u):w[4]}return ye=w[5],ye&&(Ee=h[5],h[5]=Ee?V5(Ee,ye,w[6]):ye,h[6]=Ee?Cd(h[5],u):w[6]),ye=w[7],ye&&(h[7]=ye),H&O&&(h[8]=h[8]==null?w[8]:mi(h[8],w[8])),h[9]==null&&(h[9]=w[9]),h[0]=w[0],h[1]=q,h}function kpe(h){var w=[];if(h!=null)for(var A in dr(h))w.push(A);return w}function Mpe(h){return N1.call(h)}function aH(h,w,A){return w=Mo(w===n?h.length-1:w,0),function(){for(var H=arguments,q=-1,te=Mo(H.length-w,0),he=Ae(te);++q<te;)he[q]=H[w+q];q=-1;for(var ye=Ae(w+1);++q<w;)ye[q]=H[q];return ye[w]=A(he),Ma(h,this,ye)}}function sH(h,w){return w.length<2?h:wp(h,Ss(w,0,-1))}function Ape(h,w){for(var A=h.length,H=mi(w.length,A),q=ra(h);H--;){var te=w[H];h[H]=du(te,A)?q[te]:n}return h}function RA(h,w){if(!(w==="constructor"&&typeof h[w]=="function")&&w!="__proto__")return h[w]}var lH=uH(A5),Zb=Gde||function(h,w){return ei.setTimeout(h,w)},DA=uH(epe);function cH(h,w,A){var H=w+"";return DA(h,Spe(H,$pe(bpe(H),A)))}function uH(h){var w=0,A=0;return function(){var H=Xde(),q=L-(H-A);if(A=H,q>0){if(++w>=_)return arguments[0]}else w=0;return h.apply(n,arguments)}}function sC(h,w){var A=-1,H=h.length,q=H-1;for(w=w===n?H:w;++A<w;){var te=gA(A,q),he=h[te];h[te]=h[A],h[A]=he}return h.length=w,h}var dH=Ope(function(h){var w=[];return h.charCodeAt(0)===46&&w.push(""),h.replace(wd,function(A,H,q,te){w.push(q?te.replace(Pl,"$1"):H||A)}),w});function mc(h){if(typeof h=="string"||Ra(h))return h;var w=h+"";return w=="0"&&1/h==-U?"-0":w}function Sp(h){if(h!=null){try{return L1.call(h)}catch{}try{return h+""}catch{}}return""}function $pe(h,w){return vs(ne,function(A){var H="_."+A[0];w&A[1]&&!A1(h,H)&&h.push(H)}),h.sort()}function fH(h){if(h instanceof On)return h.clone();var w=new ws(h.__wrapped__,h.__chain__);return w.__actions__=ra(h.__actions__),w.__index__=h.__index__,w.__values__=h.__values__,w}function Rpe(h,w,A){(A?Ri(h,w,A):w===n)?w=1:w=Mo(cn(w),0);var H=h==null?0:h.length;if(!H||w<1)return[];for(var q=0,te=0,he=Ae(H1(H/w));q<H;)he[te++]=Ss(h,q,q+=w);return he}function Dpe(h){for(var w=-1,A=h==null?0:h.length,H=0,q=[];++w<A;){var te=h[w];te&&(q[H++]=te)}return q}function _pe(){var h=arguments.length;if(!h)return[];for(var w=Ae(h-1),A=arguments[0],H=h;H--;)w[H-1]=arguments[H];return Sd(en(A)?ra(A):[A],ti(w,1))}var Lpe=vn(function(h,w){return oo(h)?qb(h,ti(w,1,oo,!0)):[]}),Npe=vn(function(h,w){var A=Cs(w);return oo(A)&&(A=n),oo(h)?qb(h,ti(w,1,oo,!0),jt(A,2)):[]}),Fpe=vn(function(h,w){var A=Cs(w);return oo(A)&&(A=n),oo(h)?qb(h,ti(w,1,oo,!0),n,A):[]});function jpe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),Ss(h,w<0?0:w,H)):[]}function Bpe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),w=H-w,Ss(h,0,w<0?0:w)):[]}function zpe(h,w){return h&&h.length?Z1(h,jt(w,3),!0,!0):[]}function Vpe(h,w){return h&&h.length?Z1(h,jt(w,3),!0):[]}function Hpe(h,w,A,H){var q=h==null?0:h.length;return q?(A&&typeof A!="number"&&Ri(h,w,A)&&(A=0,H=q),_fe(h,w,A,H)):[]}function pH(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=A==null?0:cn(A);return q<0&&(q=Mo(H+q,0)),$1(h,jt(w,3),q)}function hH(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=H-1;return A!==n&&(q=cn(A),q=A<0?Mo(H+q,0):mi(q,H-1)),$1(h,jt(w,3),q,!0)}function mH(h){var w=h==null?0:h.length;return w?ti(h,1):[]}function Upe(h){var w=h==null?0:h.length;return w?ti(h,U):[]}function Wpe(h,w){var A=h==null?0:h.length;return A?(w=w===n?1:cn(w),ti(h,w)):[]}function Gpe(h){for(var w=-1,A=h==null?0:h.length,H={};++w<A;){var q=h[w];H[q[0]]=q[1]}return H}function gH(h){return h&&h.length?h[0]:n}function qpe(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=A==null?0:cn(A);return q<0&&(q=Mo(H+q,0)),Tm(h,w,q)}function Kpe(h){var w=h==null?0:h.length;return w?Ss(h,0,-1):[]}var Ype=vn(function(h){var w=_r(h,xA);return w.length&&w[0]===h[0]?dA(w):[]}),Xpe=vn(function(h){var w=Cs(h),A=_r(h,xA);return w===Cs(A)?w=n:A.pop(),A.length&&A[0]===h[0]?dA(A,jt(w,2)):[]}),Qpe=vn(function(h){var w=Cs(h),A=_r(h,xA);return w=typeof w=="function"?w:n,w&&A.pop(),A.length&&A[0]===h[0]?dA(A,n,w):[]});function Jpe(h,w){return h==null?"":Kde.call(h,w)}function Cs(h){var w=h==null?0:h.length;return w?h[w-1]:n}function Zpe(h,w,A){var H=h==null?0:h.length;if(!H)return-1;var q=H;return A!==n&&(q=cn(A),q=q<0?Mo(H+q,0):mi(q,H-1)),w===w?$de(h,w,q):$1(h,XV,q,!0)}function ehe(h,w){return h&&h.length?O5(h,cn(w)):n}var the=vn(yH);function yH(h,w){return h&&h.length&&w&&w.length?mA(h,w):h}function nhe(h,w,A){return h&&h.length&&w&&w.length?mA(h,w,jt(A,2)):h}function rhe(h,w,A){return h&&h.length&&w&&w.length?mA(h,w,n,A):h}var ohe=uu(function(h,w){var A=h==null?0:h.length,H=sA(h,w);return M5(h,_r(w,function(q){return du(q,A)?+q:q}).sort(B5)),H});function ihe(h,w){var A=[];if(!(h&&h.length))return A;var H=-1,q=[],te=h.length;for(w=jt(w,3);++H<te;){var he=h[H];w(he,H,h)&&(A.push(he),q.push(H))}return M5(h,q),A}function _A(h){return h==null?h:Jde.call(h)}function ahe(h,w,A){var H=h==null?0:h.length;return H?(A&&typeof A!="number"&&Ri(h,w,A)?(w=0,A=H):(w=w==null?0:cn(w),A=A===n?H:cn(A)),Ss(h,w,A)):[]}function she(h,w){return J1(h,w)}function lhe(h,w,A){return vA(h,w,jt(A,2))}function che(h,w){var A=h==null?0:h.length;if(A){var H=J1(h,w);if(H<A&&Il(h[H],w))return H}return-1}function uhe(h,w){return J1(h,w,!0)}function dhe(h,w,A){return vA(h,w,jt(A,2),!0)}function fhe(h,w){var A=h==null?0:h.length;if(A){var H=J1(h,w,!0)-1;if(Il(h[H],w))return H}return-1}function phe(h){return h&&h.length?$5(h):[]}function hhe(h,w){return h&&h.length?$5(h,jt(w,2)):[]}function mhe(h){var w=h==null?0:h.length;return w?Ss(h,1,w):[]}function ghe(h,w,A){return h&&h.length?(w=A||w===n?1:cn(w),Ss(h,0,w<0?0:w)):[]}function yhe(h,w,A){var H=h==null?0:h.length;return H?(w=A||w===n?1:cn(w),w=H-w,Ss(h,w<0?0:w,H)):[]}function vhe(h,w){return h&&h.length?Z1(h,jt(w,3),!1,!0):[]}function bhe(h,w){return h&&h.length?Z1(h,jt(w,3)):[]}var whe=vn(function(h){return Td(ti(h,1,oo,!0))}),xhe=vn(function(h){var w=Cs(h);return oo(w)&&(w=n),Td(ti(h,1,oo,!0),jt(w,2))}),She=vn(function(h){var w=Cs(h);return w=typeof w=="function"?w:n,Td(ti(h,1,oo,!0),n,w)});function Che(h){return h&&h.length?Td(h):[]}function Phe(h,w){return h&&h.length?Td(h,jt(w,2)):[]}function Ehe(h,w){return w=typeof w=="function"?w:n,h&&h.length?Td(h,n,w):[]}function LA(h){if(!(h&&h.length))return[];var w=0;return h=xd(h,function(A){if(oo(A))return w=Mo(A.length,w),!0}),ZM(w,function(A){return _r(h,XM(A))})}function vH(h,w){if(!(h&&h.length))return[];var A=LA(h);return w==null?A:_r(A,function(H){return Ma(w,n,H)})}var The=vn(function(h,w){return oo(h)?qb(h,w):[]}),Ohe=vn(function(h){return wA(xd(h,oo))}),Ihe=vn(function(h){var w=Cs(h);return oo(w)&&(w=n),wA(xd(h,oo),jt(w,2))}),khe=vn(function(h){var w=Cs(h);return w=typeof w=="function"?w:n,wA(xd(h,oo),n,w)}),Mhe=vn(LA);function Ahe(h,w){return L5(h||[],w||[],Gb)}function $he(h,w){return L5(h||[],w||[],Xb)}var Rhe=vn(function(h){var w=h.length,A=w>1?h[w-1]:n;return A=typeof A=="function"?(h.pop(),A):n,vH(h,A)});function bH(h){var w=Z(h);return w.__chain__=!0,w}function Dhe(h,w){return w(h),h}function lC(h,w){return w(h)}var _he=uu(function(h){var w=h.length,A=w?h[0]:0,H=this.__wrapped__,q=function(te){return sA(te,h)};return w>1||this.__actions__.length||!(H instanceof On)||!du(A)?this.thru(q):(H=H.slice(A,+A+(w?1:0)),H.__actions__.push({func:lC,args:[q],thisArg:n}),new ws(H,this.__chain__).thru(function(te){return w&&!te.length&&te.push(n),te}))});function Lhe(){return bH(this)}function Nhe(){return new ws(this.value(),this.__chain__)}function Fhe(){this.__values__===n&&(this.__values__=RH(this.value()));var h=this.__index__>=this.__values__.length,w=h?n:this.__values__[this.__index__++];return{done:h,value:w}}function jhe(){return this}function Bhe(h){for(var w,A=this;A instanceof q1;){var H=fH(A);H.__index__=0,H.__values__=n,w?q.__wrapped__=H:w=H;var q=H;A=A.__wrapped__}return q.__wrapped__=h,w}function zhe(){var h=this.__wrapped__;if(h instanceof On){var w=h;return this.__actions__.length&&(w=new On(this)),w=w.reverse(),w.__actions__.push({func:lC,args:[_A],thisArg:n}),new ws(w,this.__chain__)}return this.thru(_A)}function Vhe(){return _5(this.__wrapped__,this.__actions__)}var Hhe=eC(function(h,w,A){nr.call(h,A)?++h[A]:lu(h,A,1)});function Uhe(h,w,A){var H=en(h)?KV:Dfe;return A&&Ri(h,w,A)&&(w=n),H(h,jt(w,3))}function Whe(h,w){var A=en(h)?xd:v5;return A(h,jt(w,3))}var Ghe=G5(pH),qhe=G5(hH);function Khe(h,w){return ti(cC(h,w),1)}function Yhe(h,w){return ti(cC(h,w),U)}function Xhe(h,w,A){return A=A===n?1:cn(A),ti(cC(h,w),A)}function wH(h,w){var A=en(h)?vs:Ed;return A(h,jt(w,3))}function xH(h,w){var A=en(h)?mde:y5;return A(h,jt(w,3))}var Qhe=eC(function(h,w,A){nr.call(h,A)?h[A].push(w):lu(h,A,[w])});function Jhe(h,w,A,H){h=oa(h)?h:Fm(h),A=A&&!H?cn(A):0;var q=h.length;return A<0&&(A=Mo(q+A,0)),hC(h)?A<=q&&h.indexOf(w,A)>-1:!!q&&Tm(h,w,A)>-1}var Zhe=vn(function(h,w,A){var H=-1,q=typeof w=="function",te=oa(h)?Ae(h.length):[];return Ed(h,function(he){te[++H]=q?Ma(w,he,A):Kb(he,w,A)}),te}),eme=eC(function(h,w,A){lu(h,A,w)});function cC(h,w){var A=en(h)?_r:P5;return A(h,jt(w,3))}function tme(h,w,A,H){return h==null?[]:(en(w)||(w=w==null?[]:[w]),A=H?n:A,en(A)||(A=A==null?[]:[A]),I5(h,w,A))}var nme=eC(function(h,w,A){h[A?0:1].push(w)},function(){return[[],[]]});function rme(h,w,A){var H=en(h)?KM:JV,q=arguments.length<3;return H(h,jt(w,4),A,q,Ed)}function ome(h,w,A){var H=en(h)?gde:JV,q=arguments.length<3;return H(h,jt(w,4),A,q,y5)}function ime(h,w){var A=en(h)?xd:v5;return A(h,fC(jt(w,3)))}function ame(h){var w=en(h)?p5:Jfe;return w(h)}function sme(h,w,A){(A?Ri(h,w,A):w===n)?w=1:w=cn(w);var H=en(h)?kfe:Zfe;return H(h,w)}function lme(h){var w=en(h)?Mfe:tpe;return w(h)}function cme(h){if(h==null)return 0;if(oa(h))return hC(h)?Im(h):h.length;var w=gi(h);return w==ge||w==Le?h.size:pA(h).length}function ume(h,w,A){var H=en(h)?YM:npe;return A&&Ri(h,w,A)&&(w=n),H(h,jt(w,3))}var dme=vn(function(h,w){if(h==null)return[];var A=w.length;return A>1&&Ri(h,w[0],w[1])?w=[]:A>2&&Ri(w[0],w[1],w[2])&&(w=[w[0]]),I5(h,ti(w,1),[])}),uC=Wde||function(){return ei.Date.now()};function fme(h,w){if(typeof w!="function")throw new bs(a);return h=cn(h),function(){if(--h<1)return w.apply(this,arguments)}}function SH(h,w,A){return w=A?n:w,w=h&&w==null?h.length:w,cu(h,O,n,n,n,n,w)}function CH(h,w){var A;if(typeof w!="function")throw new bs(a);return h=cn(h),function(){return--h>0&&(A=w.apply(this,arguments)),h<=1&&(w=n),A}}var NA=vn(function(h,w,A){var H=y;if(A.length){var q=Cd(A,Lm(NA));H|=E}return cu(h,H,w,A,q)}),PH=vn(function(h,w,A){var H=y|b;if(A.length){var q=Cd(A,Lm(PH));H|=E}return cu(w,H,h,A,q)});function EH(h,w,A){w=A?n:w;var H=cu(h,S,n,n,n,n,n,w);return H.placeholder=EH.placeholder,H}function TH(h,w,A){w=A?n:w;var H=cu(h,P,n,n,n,n,n,w);return H.placeholder=TH.placeholder,H}function OH(h,w,A){var H,q,te,he,ye,Ee,qe=0,Ke=!1,Xe=!1,ht=!0;if(typeof h!="function")throw new bs(a);w=Ps(w)||0,jr(A)&&(Ke=!!A.leading,Xe="maxWait"in A,te=Xe?Mo(Ps(A.maxWait)||0,w):te,ht="trailing"in A?!!A.trailing:ht);function Dt(io){var kl=H,hu=q;return H=q=n,qe=io,he=h.apply(hu,kl),he}function Vt(io){return qe=io,ye=Zb(Pn,w),Ke?Dt(io):he}function fn(io){var kl=io-Ee,hu=io-qe,GH=w-kl;return Xe?mi(GH,te-hu):GH}function Ht(io){var kl=io-Ee,hu=io-qe;return Ee===n||kl>=w||kl<0||Xe&&hu>=te}function Pn(){var io=uC();if(Ht(io))return Mn(io);ye=Zb(Pn,fn(io))}function Mn(io){return ye=n,ht&&H?Dt(io):(H=q=n,he)}function Da(){ye!==n&&N5(ye),qe=0,H=Ee=q=ye=n}function Di(){return ye===n?he:Mn(uC())}function _a(){var io=uC(),kl=Ht(io);if(H=arguments,q=this,Ee=io,kl){if(ye===n)return Vt(Ee);if(Xe)return N5(ye),ye=Zb(Pn,w),Dt(Ee)}return ye===n&&(ye=Zb(Pn,w)),he}return _a.cancel=Da,_a.flush=Di,_a}var pme=vn(function(h,w){return g5(h,1,w)}),hme=vn(function(h,w,A){return g5(h,Ps(w)||0,A)});function mme(h){return cu(h,M)}function dC(h,w){if(typeof h!="function"||w!=null&&typeof w!="function")throw new bs(a);var A=function(){var H=arguments,q=w?w.apply(this,H):H[0],te=A.cache;if(te.has(q))return te.get(q);var he=h.apply(this,H);return A.cache=te.set(q,he)||te,he};return A.cache=new(dC.Cache||su),A}dC.Cache=su;function fC(h){if(typeof h!="function")throw new bs(a);return function(){var w=arguments;switch(w.length){case 0:return!h.call(this);case 1:return!h.call(this,w[0]);case 2:return!h.call(this,w[0],w[1]);case 3:return!h.call(this,w[0],w[1],w[2])}return!h.apply(this,w)}}function gme(h){return CH(2,h)}var yme=rpe(function(h,w){w=w.length==1&&en(w[0])?_r(w[0],Aa(jt())):_r(ti(w,1),Aa(jt()));var A=w.length;return vn(function(H){for(var q=-1,te=mi(H.length,A);++q<te;)H[q]=w[q].call(this,H[q]);return Ma(h,this,H)})}),FA=vn(function(h,w){var A=Cd(w,Lm(FA));return cu(h,E,n,w,A)}),IH=vn(function(h,w){var A=Cd(w,Lm(IH));return cu(h,T,n,w,A)}),vme=uu(function(h,w){return cu(h,k,n,n,n,w)});function bme(h,w){if(typeof h!="function")throw new bs(a);return w=w===n?w:cn(w),vn(h,w)}function wme(h,w){if(typeof h!="function")throw new bs(a);return w=w==null?0:Mo(cn(w),0),vn(function(A){var H=A[w],q=Id(A,0,w);return H&&Sd(q,H),Ma(h,this,q)})}function xme(h,w,A){var H=!0,q=!0;if(typeof h!="function")throw new bs(a);return jr(A)&&(H="leading"in A?!!A.leading:H,q="trailing"in A?!!A.trailing:q),OH(h,w,{leading:H,maxWait:w,trailing:q})}function Sme(h){return SH(h,1)}function Cme(h,w){return FA(SA(w),h)}function Pme(){if(!arguments.length)return[];var h=arguments[0];return en(h)?h:[h]}function Eme(h){return xs(h,p)}function Tme(h,w){return w=typeof w=="function"?w:n,xs(h,p,w)}function Ome(h){return xs(h,d|p)}function Ime(h,w){return w=typeof w=="function"?w:n,xs(h,d|p,w)}function kme(h,w){return w==null||m5(h,w,Bo(w))}function Il(h,w){return h===w||h!==h&&w!==w}var Mme=oC(uA),Ame=oC(function(h,w){return h>=w}),Cp=x5(function(){return arguments}())?x5:function(h){return Kr(h)&&nr.call(h,"callee")&&!s5.call(h,"callee")},en=Ae.isArray,$me=VV?Aa(VV):Bfe;function oa(h){return h!=null&&pC(h.length)&&!fu(h)}function oo(h){return Kr(h)&&oa(h)}function Rme(h){return h===!0||h===!1||Kr(h)&&$i(h)==se}var kd=qde||YA,Dme=HV?Aa(HV):zfe;function _me(h){return Kr(h)&&h.nodeType===1&&!e0(h)}function Lme(h){if(h==null)return!0;if(oa(h)&&(en(h)||typeof h=="string"||typeof h.splice=="function"||kd(h)||Nm(h)||Cp(h)))return!h.length;var w=gi(h);if(w==ge||w==Le)return!h.size;if(Jb(h))return!pA(h).length;for(var A in h)if(nr.call(h,A))return!1;return!0}function Nme(h,w){return Yb(h,w)}function Fme(h,w,A){A=typeof A=="function"?A:n;var H=A?A(h,w):n;return H===n?Yb(h,w,n,A):!!H}function jA(h){if(!Kr(h))return!1;var w=$i(h);return w==le||w==ce||typeof h.message=="string"&&typeof h.name=="string"&&!e0(h)}function jme(h){return typeof h=="number"&&c5(h)}function fu(h){if(!jr(h))return!1;var w=$i(h);return w==Q||w==ue||w==fe||w==Te}function kH(h){return typeof h=="number"&&h==cn(h)}function pC(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=z}function jr(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function Kr(h){return h!=null&&typeof h=="object"}var MH=UV?Aa(UV):Hfe;function Bme(h,w){return h===w||fA(h,w,kA(w))}function zme(h,w,A){return A=typeof A=="function"?A:n,fA(h,w,kA(w),A)}function Vme(h){return AH(h)&&h!=+h}function Hme(h){if(Tpe(h))throw new Kt(i);return S5(h)}function Ume(h){return h===null}function Wme(h){return h==null}function AH(h){return typeof h=="number"||Kr(h)&&$i(h)==xe}function e0(h){if(!Kr(h)||$i(h)!=be)return!1;var w=B1(h);if(w===null)return!0;var A=nr.call(w,"constructor")&&w.constructor;return typeof A=="function"&&A instanceof A&&L1.call(A)==zde}var BA=WV?Aa(WV):Ufe;function Gme(h){return kH(h)&&h>=-z&&h<=z}var $H=GV?Aa(GV):Wfe;function hC(h){return typeof h=="string"||!en(h)&&Kr(h)&&$i(h)==de}function Ra(h){return typeof h=="symbol"||Kr(h)&&$i(h)==$e}var Nm=qV?Aa(qV):Gfe;function qme(h){return h===n}function Kme(h){return Kr(h)&&gi(h)==Me}function Yme(h){return Kr(h)&&$i(h)==De}var Xme=oC(hA),Qme=oC(function(h,w){return h<=w});function RH(h){if(!h)return[];if(oa(h))return hC(h)?Tl(h):ra(h);if(zb&&h[zb])return kde(h[zb]());var w=gi(h),A=w==ge?tA:w==Le?R1:Fm;return A(h)}function pu(h){if(!h)return h===0?h:0;if(h=Ps(h),h===U||h===-U){var w=h<0?-1:1;return w*V}return h===h?h:0}function cn(h){var w=pu(h),A=w%1;return w===w?A?w-A:w:0}function DH(h){return h?bp(cn(h),0,G):0}function Ps(h){if(typeof h=="number")return h;if(Ra(h))return W;if(jr(h)){var w=typeof h.valueOf=="function"?h.valueOf():h;h=jr(w)?w+"":w}if(typeof h!="string")return h===0?h:+h;h=ZV(h);var A=Zt.test(h);return A||Dr.test(h)?fde(h.slice(2),A?2:8):Ct.test(h)?W:+h}function _H(h){return hc(h,ia(h))}function Jme(h){return h?bp(cn(h),-z,z):h===0?h:0}function Qn(h){return h==null?"":$a(h)}var Zme=Dm(function(h,w){if(Jb(w)||oa(w)){hc(w,Bo(w),h);return}for(var A in w)nr.call(w,A)&&Gb(h,A,w[A])}),LH=Dm(function(h,w){hc(w,ia(w),h)}),mC=Dm(function(h,w,A,H){hc(w,ia(w),h,H)}),ege=Dm(function(h,w,A,H){hc(w,Bo(w),h,H)}),tge=uu(sA);function nge(h,w){var A=Rm(h);return w==null?A:h5(A,w)}var rge=vn(function(h,w){h=dr(h);var A=-1,H=w.length,q=H>2?w[2]:n;for(q&&Ri(w[0],w[1],q)&&(H=1);++A<H;)for(var te=w[A],he=ia(te),ye=-1,Ee=he.length;++ye<Ee;){var qe=he[ye],Ke=h[qe];(Ke===n||Il(Ke,Mm[qe])&&!nr.call(h,qe))&&(h[qe]=te[qe])}return h}),oge=vn(function(h){return h.push(n,Z5),Ma(NH,n,h)});function ige(h,w){return YV(h,jt(w,3),pc)}function age(h,w){return YV(h,jt(w,3),cA)}function sge(h,w){return h==null?h:lA(h,jt(w,3),ia)}function lge(h,w){return h==null?h:b5(h,jt(w,3),ia)}function cge(h,w){return h&&pc(h,jt(w,3))}function uge(h,w){return h&&cA(h,jt(w,3))}function dge(h){return h==null?[]:X1(h,Bo(h))}function fge(h){return h==null?[]:X1(h,ia(h))}function zA(h,w,A){var H=h==null?n:wp(h,w);return H===n?A:H}function pge(h,w){return h!=null&&nH(h,w,Lfe)}function VA(h,w){return h!=null&&nH(h,w,Nfe)}var hge=K5(function(h,w,A){w!=null&&typeof w.toString!="function"&&(w=N1.call(w)),h[w]=A},UA(aa)),mge=K5(function(h,w,A){w!=null&&typeof w.toString!="function"&&(w=N1.call(w)),nr.call(h,w)?h[w].push(A):h[w]=[A]},jt),gge=vn(Kb);function Bo(h){return oa(h)?f5(h):pA(h)}function ia(h){return oa(h)?f5(h,!0):qfe(h)}function yge(h,w){var A={};return w=jt(w,3),pc(h,function(H,q,te){lu(A,w(H,q,te),H)}),A}function vge(h,w){var A={};return w=jt(w,3),pc(h,function(H,q,te){lu(A,q,w(H,q,te))}),A}var bge=Dm(function(h,w,A){Q1(h,w,A)}),NH=Dm(function(h,w,A,H){Q1(h,w,A,H)}),wge=uu(function(h,w){var A={};if(h==null)return A;var H=!1;w=_r(w,function(te){return te=Od(te,h),H||(H=te.length>1),te}),hc(h,OA(h),A),H&&(A=xs(A,d|f|p,hpe));for(var q=w.length;q--;)bA(A,w[q]);return A});function xge(h,w){return FH(h,fC(jt(w)))}var Sge=uu(function(h,w){return h==null?{}:Yfe(h,w)});function FH(h,w){if(h==null)return{};var A=_r(OA(h),function(H){return[H]});return w=jt(w),k5(h,A,function(H,q){return w(H,q[0])})}function Cge(h,w,A){w=Od(w,h);var H=-1,q=w.length;for(q||(q=1,h=n);++H<q;){var te=h==null?n:h[mc(w[H])];te===n&&(H=q,te=A),h=fu(te)?te.call(h):te}return h}function Pge(h,w,A){return h==null?h:Xb(h,w,A)}function Ege(h,w,A,H){return H=typeof H=="function"?H:n,h==null?h:Xb(h,w,A,H)}var jH=Q5(Bo),BH=Q5(ia);function Tge(h,w,A){var H=en(h),q=H||kd(h)||Nm(h);if(w=jt(w,4),A==null){var te=h&&h.constructor;q?A=H?new te:[]:jr(h)?A=fu(te)?Rm(B1(h)):{}:A={}}return(q?vs:pc)(h,function(he,ye,Ee){return w(A,he,ye,Ee)}),A}function Oge(h,w){return h==null?!0:bA(h,w)}function Ige(h,w,A){return h==null?h:D5(h,w,SA(A))}function kge(h,w,A,H){return H=typeof H=="function"?H:n,h==null?h:D5(h,w,SA(A),H)}function Fm(h){return h==null?[]:eA(h,Bo(h))}function Mge(h){return h==null?[]:eA(h,ia(h))}function Age(h,w,A){return A===n&&(A=w,w=n),A!==n&&(A=Ps(A),A=A===A?A:0),w!==n&&(w=Ps(w),w=w===w?w:0),bp(Ps(h),w,A)}function $ge(h,w,A){return w=pu(w),A===n?(A=w,w=0):A=pu(A),h=Ps(h),Ffe(h,w,A)}function Rge(h,w,A){if(A&&typeof A!="boolean"&&Ri(h,w,A)&&(w=A=n),A===n&&(typeof w=="boolean"?(A=w,w=n):typeof h=="boolean"&&(A=h,h=n)),h===n&&w===n?(h=0,w=1):(h=pu(h),w===n?(w=h,h=0):w=pu(w)),h>w){var H=h;h=w,w=H}if(A||h%1||w%1){var q=u5();return mi(h+q*(w-h+dde("1e-"+((q+"").length-1))),w)}return gA(h,w)}var Dge=_m(function(h,w,A){return w=w.toLowerCase(),h+(A?zH(w):w)});function zH(h){return HA(Qn(h).toLowerCase())}function VH(h){return h=Qn(h),h&&h.replace(Ia,Pde).replace(tde,"")}function _ge(h,w,A){h=Qn(h),w=$a(w);var H=h.length;A=A===n?H:bp(cn(A),0,H);var q=A;return A-=w.length,A>=0&&h.slice(A,q)==w}function Lge(h){return h=Qn(h),h&&Oo.test(h)?h.replace(Wn,Ede):h}function Nge(h){return h=Qn(h),h&&dp.test(h)?h.replace(ou,"\\$&"):h}var Fge=_m(function(h,w,A){return h+(A?"-":"")+w.toLowerCase()}),jge=_m(function(h,w,A){return h+(A?" ":"")+w.toLowerCase()}),Bge=W5("toLowerCase");function zge(h,w,A){h=Qn(h),w=cn(w);var H=w?Im(h):0;if(!w||H>=w)return h;var q=(w-H)/2;return rC(U1(q),A)+h+rC(H1(q),A)}function Vge(h,w,A){h=Qn(h),w=cn(w);var H=w?Im(h):0;return w&&H<w?h+rC(w-H,A):h}function Hge(h,w,A){h=Qn(h),w=cn(w);var H=w?Im(h):0;return w&&H<w?rC(w-H,A)+h:h}function Uge(h,w,A){return A||w==null?w=0:w&&(w=+w),Qde(Qn(h).replace(fp,""),w||0)}function Wge(h,w,A){return(A?Ri(h,w,A):w===n)?w=1:w=cn(w),yA(Qn(h),w)}function Gge(){var h=arguments,w=Qn(h[0]);return h.length<3?w:w.replace(h[1],h[2])}var qge=_m(function(h,w,A){return h+(A?"_":"")+w.toLowerCase()});function Kge(h,w,A){return A&&typeof A!="number"&&Ri(h,w,A)&&(w=A=n),A=A===n?G:A>>>0,A?(h=Qn(h),h&&(typeof w=="string"||w!=null&&!BA(w))&&(w=$a(w),!w&&Om(h))?Id(Tl(h),0,A):h.split(w,A)):[]}var Yge=_m(function(h,w,A){return h+(A?" ":"")+HA(w)});function Xge(h,w,A){return h=Qn(h),A=A==null?0:bp(cn(A),0,h.length),w=$a(w),h.slice(A,A+w.length)==w}function Qge(h,w,A){var H=Z.templateSettings;A&&Ri(h,w,A)&&(w=n),h=Qn(h),w=mC({},w,H,J5);var q=mC({},w.imports,H.imports,J5),te=Bo(q),he=eA(q,te),ye,Ee,qe=0,Ke=w.interpolate||iu,Xe="__p += '",ht=nA((w.escape||iu).source+"|"+Ke.source+"|"+(Ke===Ft?We:iu).source+"|"+(w.evaluate||iu).source+"|$","g"),Dt="//# sourceURL="+(nr.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ade+"]")+`
+`;h.replace(ht,function(Ht,Pn,Mn,Da,Di,_a){return Mn||(Mn=Da),Xe+=h.slice(qe,_a).replace(PV,Tde),Pn&&(ye=!0,Xe+=`' +
+__e(`+Pn+`) +
+'`),Di&&(Ee=!0,Xe+=`';
+`+Di+`;
+__p += '`),Mn&&(Xe+=`' +
+((__t = (`+Mn+`)) == null ? '' : __t) +
+'`),qe=_a+Ht.length,Ht}),Xe+=`';
+`;var Vt=nr.call(w,"variable")&&w.variable;if(!Vt)Xe=`with (obj) {
+`+Xe+`
}
-`;else if(Wr.test(zt))throw new Kt(s);et=(Ee?et.replace(Ot,""):et).replace(xt,"$1").replace(vn,"$1;"),et="function("+(zt||"obj")+`) {
-`+(zt?"":`obj || (obj = {});
+`;else if(qr.test(Vt))throw new Kt(s);Xe=(Ee?Xe.replace(It,""):Xe).replace(St,"$1").replace(yn,"$1;"),Xe="function("+(Vt||"obj")+`) {
+`+(Vt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ye?", __e = _.escape":"")+(Ee?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
-`)+et+`return __p
-}`;var fn=nH(function(){return qn(te,Rt+"return "+et).apply(n,he)});if(fn.source=et,oA(fn))throw fn;return fn}function Vme(h){return Jn(h).toLowerCase()}function Hme(h){return Jn(h).toUpperCase()}function Ume(h,w,A){if(h=Jn(h),h&&(A||w===n))return dV(h);if(!h||!(w=Ta(w)))return h;var H=ml(h),q=ml(w),te=fV(H,q),he=pV(H,q)+1;return hd(H,te,he).join("")}function Wme(h,w,A){if(h=Jn(h),h&&(A||w===n))return h.slice(0,mV(h)+1);if(!h||!(w=Ta(w)))return h;var H=ml(h),q=pV(H,ml(w))+1;return hd(H,0,q).join("")}function Gme(h,w,A){if(h=Jn(h),h&&(A||w===n))return h.replace(Yf,"");if(!h||!(w=Ta(w)))return h;var H=ml(h),q=fV(H,ml(w));return hd(H,q).join("")}function qme(h,w){var A=I,H=R;if(Fr(w)){var q="separator"in w?w.separator:q;A="length"in w?cn(w.length):A,H="omission"in w?Ta(w.omission):H}h=Jn(h);var te=h.length;if(um(h)){var he=ml(h);te=he.length}if(A>=te)return h;var ye=A-dm(H);if(ye<1)return H;var Ee=he?hd(he,0,ye).join(""):h.slice(0,ye);if(q===n)return Ee+H;if(he&&(ye+=Ee.length-ye),iA(q)){if(h.slice(ye).search(q)){var Xe,Qe=Ee;for(q.global||(q=xM(q.source,Jn(Be.exec(q))+"g")),q.lastIndex=0;Xe=q.exec(Qe);)var et=Xe.index;Ee=Ee.slice(0,et===n?ye:et)}}else if(h.indexOf(Ta(q),ye)!=ye){var ht=Ee.lastIndexOf(q);ht>-1&&(Ee=Ee.slice(0,ht))}return Ee+H}function Kme(h){return h=Jn(h),h&&xo.test(h)?h.replace(zn,Cue):h}var Yme=vm(function(h,w,A){return h+(A?" ":"")+w.toUpperCase()}),lA=r5("toUpperCase");function tH(h,w,A){return h=Jn(h),w=A?n:w,w===n?vue(h)?Tue(h):cue(h):h.match(w)||[]}var nH=bn(function(h,w){try{return Pa(h,n,w)}catch(A){return oA(A)?A:new Kt(A)}}),Xme=Jc(function(h,w){return us(w,function(A){A=ic(A),Xc(h,A,nA(h[A],h))}),h});function Qme(h){var w=h==null?0:h.length,A=Ft();return h=w?Dr(h,function(H){if(typeof H[1]!="function")throw new ds(a);return[A(H[0]),H[1]]}):[],bn(function(H){for(var q=-1;++q<w;){var te=h[q];if(Pa(te[0],this,H))return Pa(te[1],this,H)}})}function Jme(h){return Cde(ps(h,d))}function cA(h){return function(){return h}}function Zme(h,w){return h==null||h!==h?w:h}var ege=i5(),tge=i5(!0);function Zi(h){return h}function uA(h){return _V(typeof h=="function"?h:ps(h,d))}function nge(h){return NV(ps(h,d))}function rge(h,w){return FV(h,ps(w,d))}var oge=bn(function(h,w){return function(A){return Pb(A,h,w)}}),ige=bn(function(h,w){return function(A){return Pb(h,A,w)}});function dA(h,w,A){var H=_o(w),q=T1(w,H);A==null&&!(Fr(w)&&(q.length||!H.length))&&(A=w,w=h,h=this,q=T1(w,_o(w)));var te=!(Fr(A)&&"chain"in A)||!!A.chain,he=eu(h);return us(q,function(ye){var Ee=w[ye];h[ye]=Ee,he&&(h.prototype[ye]=function(){var Xe=this.__chain__;if(te||Xe){var Qe=h(this.__wrapped__),et=Qe.__actions__=Xi(this.__actions__);return et.push({func:Ee,args:arguments,thisArg:h}),Qe.__chain__=Xe,Qe}return Ee.apply(h,ld([this.value()],arguments))})}),h}function age(){return qo._===this&&(qo._=$ue),this}function fA(){}function sge(h){return h=cn(h),bn(function(w){return jV(w,h)})}var lge=HM(Dr),cge=HM(aV),uge=HM(hM);function rH(h){return XM(h)?mM(ic(h)):Bde(h)}function dge(h){return function(w){return h==null?n:op(h,w)}}var fge=s5(),pge=s5(!0);function pA(){return[]}function hA(){return!1}function hge(){return{}}function mge(){return""}function gge(){return!0}function yge(h,w){if(h=cn(h),h<1||h>V)return[];var A=G,H=si(h,G);w=Ft(w),h-=G;for(var q=vM(H,w);++A<h;)w(A);return q}function vge(h){return en(h)?Dr(h,ic):Oa(h)?[h]:Xi(C5(Jn(h)))}function bge(h){var w=++Mue;return Jn(h)+w}var wge=$1(function(h,w){return h+w},0),xge=UM("ceil"),Sge=$1(function(h,w){return h/w},1),Cge=UM("floor");function Pge(h){return h&&h.length?E1(h,Zi,kM):n}function Ege(h,w){return h&&h.length?E1(h,Ft(w,2),kM):n}function Tge(h){return cV(h,Zi)}function Oge(h,w){return cV(h,Ft(w,2))}function Ige(h){return h&&h.length?E1(h,Zi,RM):n}function kge(h,w){return h&&h.length?E1(h,Ft(w,2),RM):n}var Mge=$1(function(h,w){return h*w},1),Age=UM("round"),$ge=$1(function(h,w){return h-w},0);function Rge(h){return h&&h.length?yM(h,Zi):0}function Dge(h,w){return h&&h.length?yM(h,Ft(w,2)):0}return Z.after=nhe,Z.ary=D5,Z.assign=Hhe,Z.assignIn=K5,Z.assignInWith=W1,Z.assignWith=Uhe,Z.at=Whe,Z.before=_5,Z.bind=nA,Z.bindAll=Xme,Z.bindKey=L5,Z.castArray=hhe,Z.chain=A5,Z.chunk=Cfe,Z.compact=Pfe,Z.concat=Efe,Z.cond=Qme,Z.conforms=Jme,Z.constant=cA,Z.countBy=Rpe,Z.create=Ghe,Z.curry=N5,Z.curryRight=F5,Z.debounce=j5,Z.defaults=qhe,Z.defaultsDeep=Khe,Z.defer=rhe,Z.delay=ohe,Z.difference=Tfe,Z.differenceBy=Ofe,Z.differenceWith=Ife,Z.drop=kfe,Z.dropRight=Mfe,Z.dropRightWhile=Afe,Z.dropWhile=$fe,Z.fill=Rfe,Z.filter=_pe,Z.flatMap=Fpe,Z.flatMapDeep=jpe,Z.flatMapDepth=Bpe,Z.flatten=O5,Z.flattenDeep=Dfe,Z.flattenDepth=_fe,Z.flip=ihe,Z.flow=ege,Z.flowRight=tge,Z.fromPairs=Lfe,Z.functions=tme,Z.functionsIn=nme,Z.groupBy=zpe,Z.initial=Ffe,Z.intersection=jfe,Z.intersectionBy=Bfe,Z.intersectionWith=zfe,Z.invert=ome,Z.invertBy=ime,Z.invokeMap=Hpe,Z.iteratee=uA,Z.keyBy=Upe,Z.keys=_o,Z.keysIn=Ji,Z.map=j1,Z.mapKeys=sme,Z.mapValues=lme,Z.matches=nge,Z.matchesProperty=rge,Z.memoize=z1,Z.merge=cme,Z.mergeWith=Y5,Z.method=oge,Z.methodOf=ige,Z.mixin=dA,Z.negate=V1,Z.nthArg=sge,Z.omit=ume,Z.omitBy=dme,Z.once=ahe,Z.orderBy=Wpe,Z.over=lge,Z.overArgs=she,Z.overEvery=cge,Z.overSome=uge,Z.partial=rA,Z.partialRight=B5,Z.partition=Gpe,Z.pick=fme,Z.pickBy=X5,Z.property=rH,Z.propertyOf=dge,Z.pull=Wfe,Z.pullAll=k5,Z.pullAllBy=Gfe,Z.pullAllWith=qfe,Z.pullAt=Kfe,Z.range=fge,Z.rangeRight=pge,Z.rearg=lhe,Z.reject=Ype,Z.remove=Yfe,Z.rest=che,Z.reverse=eA,Z.sampleSize=Qpe,Z.set=hme,Z.setWith=mme,Z.shuffle=Jpe,Z.slice=Xfe,Z.sortBy=the,Z.sortedUniq=rpe,Z.sortedUniqBy=ope,Z.split=Fme,Z.spread=uhe,Z.tail=ipe,Z.take=ape,Z.takeRight=spe,Z.takeRightWhile=lpe,Z.takeWhile=cpe,Z.tap=Ppe,Z.throttle=dhe,Z.thru=F1,Z.toArray=W5,Z.toPairs=Q5,Z.toPairsIn=J5,Z.toPath=vge,Z.toPlainObject=q5,Z.transform=gme,Z.unary=fhe,Z.union=upe,Z.unionBy=dpe,Z.unionWith=fpe,Z.uniq=ppe,Z.uniqBy=hpe,Z.uniqWith=mpe,Z.unset=yme,Z.unzip=tA,Z.unzipWith=M5,Z.update=vme,Z.updateWith=bme,Z.values=xm,Z.valuesIn=wme,Z.without=gpe,Z.words=tH,Z.wrap=phe,Z.xor=ype,Z.xorBy=vpe,Z.xorWith=bpe,Z.zip=wpe,Z.zipObject=xpe,Z.zipObjectDeep=Spe,Z.zipWith=Cpe,Z.entries=Q5,Z.entriesIn=J5,Z.extend=K5,Z.extendWith=W1,dA(Z,Z),Z.add=wge,Z.attempt=nH,Z.camelCase=Pme,Z.capitalize=Z5,Z.ceil=xge,Z.clamp=xme,Z.clone=mhe,Z.cloneDeep=yhe,Z.cloneDeepWith=vhe,Z.cloneWith=ghe,Z.conformsTo=bhe,Z.deburr=eH,Z.defaultTo=Zme,Z.divide=Sge,Z.endsWith=Eme,Z.eq=yl,Z.escape=Tme,Z.escapeRegExp=Ome,Z.every=Dpe,Z.find=Lpe,Z.findIndex=E5,Z.findKey=Yhe,Z.findLast=Npe,Z.findLastIndex=T5,Z.findLastKey=Xhe,Z.floor=Cge,Z.forEach=$5,Z.forEachRight=R5,Z.forIn=Qhe,Z.forInRight=Jhe,Z.forOwn=Zhe,Z.forOwnRight=eme,Z.get=aA,Z.gt=whe,Z.gte=xhe,Z.has=rme,Z.hasIn=sA,Z.head=I5,Z.identity=Zi,Z.includes=Vpe,Z.indexOf=Nfe,Z.inRange=Sme,Z.invoke=ame,Z.isArguments=sp,Z.isArray=en,Z.isArrayBuffer=She,Z.isArrayLike=Qi,Z.isArrayLikeObject=eo,Z.isBoolean=Che,Z.isBuffer=md,Z.isDate=Phe,Z.isElement=Ehe,Z.isEmpty=The,Z.isEqual=Ohe,Z.isEqualWith=Ihe,Z.isError=oA,Z.isFinite=khe,Z.isFunction=eu,Z.isInteger=z5,Z.isLength=H1,Z.isMap=V5,Z.isMatch=Mhe,Z.isMatchWith=Ahe,Z.isNaN=$he,Z.isNative=Rhe,Z.isNil=_he,Z.isNull=Dhe,Z.isNumber=H5,Z.isObject=Fr,Z.isObjectLike=Gr,Z.isPlainObject=Mb,Z.isRegExp=iA,Z.isSafeInteger=Lhe,Z.isSet=U5,Z.isString=U1,Z.isSymbol=Oa,Z.isTypedArray=wm,Z.isUndefined=Nhe,Z.isWeakMap=Fhe,Z.isWeakSet=jhe,Z.join=Vfe,Z.kebabCase=Ime,Z.last=ms,Z.lastIndexOf=Hfe,Z.lowerCase=kme,Z.lowerFirst=Mme,Z.lt=Bhe,Z.lte=zhe,Z.max=Pge,Z.maxBy=Ege,Z.mean=Tge,Z.meanBy=Oge,Z.min=Ige,Z.minBy=kge,Z.stubArray=pA,Z.stubFalse=hA,Z.stubObject=hge,Z.stubString=mge,Z.stubTrue=gge,Z.multiply=Mge,Z.nth=Ufe,Z.noConflict=age,Z.noop=fA,Z.now=B1,Z.pad=Ame,Z.padEnd=$me,Z.padStart=Rme,Z.parseInt=Dme,Z.random=Cme,Z.reduce=qpe,Z.reduceRight=Kpe,Z.repeat=_me,Z.replace=Lme,Z.result=pme,Z.round=Age,Z.runInContext=Ce,Z.sample=Xpe,Z.size=Zpe,Z.snakeCase=Nme,Z.some=ehe,Z.sortedIndex=Qfe,Z.sortedIndexBy=Jfe,Z.sortedIndexOf=Zfe,Z.sortedLastIndex=epe,Z.sortedLastIndexBy=tpe,Z.sortedLastIndexOf=npe,Z.startCase=jme,Z.startsWith=Bme,Z.subtract=$ge,Z.sum=Rge,Z.sumBy=Dge,Z.template=zme,Z.times=yge,Z.toFinite=tu,Z.toInteger=cn,Z.toLength=G5,Z.toLower=Vme,Z.toNumber=gs,Z.toSafeInteger=Vhe,Z.toString=Jn,Z.toUpper=Hme,Z.trim=Ume,Z.trimEnd=Wme,Z.trimStart=Gme,Z.truncate=qme,Z.unescape=Kme,Z.uniqueId=bge,Z.upperCase=Yme,Z.upperFirst=lA,Z.each=$5,Z.eachRight=R5,Z.first=I5,dA(Z,function(){var h={};return rc(Z,function(w,A){or.call(Z.prototype,A)||(h[A]=w)}),h}(),{chain:!1}),Z.VERSION=r,us(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){Z[h].placeholder=Z}),us(["drop","take"],function(h,w){Mn.prototype[h]=function(A){A=A===n?1:Eo(cn(A),0);var H=this.__filtered__&&!w?new Mn(this):this.clone();return H.__filtered__?H.__takeCount__=si(A,H.__takeCount__):H.__views__.push({size:si(A,G),type:h+(H.__dir__<0?"Right":"")}),H},Mn.prototype[h+"Right"]=function(A){return this.reverse()[h](A).reverse()}}),us(["filter","map","takeWhile"],function(h,w){var A=w+1,H=A==B||A==F;Mn.prototype[h]=function(q){var te=this.clone();return te.__iteratees__.push({iteratee:Ft(q,3),type:A}),te.__filtered__=te.__filtered__||H,te}}),us(["head","last"],function(h,w){var A="take"+(w?"Right":"");Mn.prototype[h]=function(){return this[A](1).value()[0]}}),us(["initial","tail"],function(h,w){var A="drop"+(w?"":"Right");Mn.prototype[h]=function(){return this.__filtered__?new Mn(this):this[A](1)}}),Mn.prototype.compact=function(){return this.filter(Zi)},Mn.prototype.find=function(h){return this.filter(h).head()},Mn.prototype.findLast=function(h){return this.reverse().find(h)},Mn.prototype.invokeMap=bn(function(h,w){return typeof h=="function"?new Mn(this):this.map(function(A){return Pb(A,h,w)})}),Mn.prototype.reject=function(h){return this.filter(V1(Ft(h)))},Mn.prototype.slice=function(h,w){h=cn(h);var A=this;return A.__filtered__&&(h>0||w<0)?new Mn(A):(h<0?A=A.takeRight(-h):h&&(A=A.drop(h)),w!==n&&(w=cn(w),A=w<0?A.dropRight(-w):A.take(w-h)),A)},Mn.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},Mn.prototype.toArray=function(){return this.take(G)},rc(Mn.prototype,function(h,w){var A=/^(?:filter|find|map|reject)|While$/.test(w),H=/^(?:head|last)$/.test(w),q=Z[H?"take"+(w=="last"?"Right":""):w],te=H||/^find/.test(w);q&&(Z.prototype[w]=function(){var he=this.__wrapped__,ye=H?[1]:arguments,Ee=he instanceof Mn,Xe=ye[0],Qe=Ee||en(he),et=function(Tn){var Rn=q.apply(Z,ld([Tn],ye));return H&&ht?Rn[0]:Rn};Qe&&A&&typeof Xe=="function"&&Xe.length!=1&&(Ee=Qe=!1);var ht=this.__chain__,Rt=!!this.__actions__.length,zt=te&&!ht,fn=Ee&&!Rt;if(!te&&Qe){he=fn?he:new Mn(this);var Vt=h.apply(he,ye);return Vt.__actions__.push({func:F1,args:[et],thisArg:n}),new fs(Vt,ht)}return zt&&fn?h.apply(this,ye):(Vt=this.thru(et),zt?H?Vt.value()[0]:Vt.value():Vt)})}),us(["pop","push","shift","sort","splice","unshift"],function(h){var w=u1[h],A=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",H=/^(?:pop|shift)$/.test(h);Z.prototype[h]=function(){var q=arguments;if(H&&!this.__chain__){var te=this.value();return w.apply(en(te)?te:[],q)}return this[A](function(he){return w.apply(en(he)?he:[],q)})}}),rc(Mn.prototype,function(h,w){var A=Z[w];if(A){var H=A.name+"";or.call(mm,H)||(mm[H]=[]),mm[H].push({name:w,func:A})}}),mm[A1(n,b).name]=[{name:"wrapper",func:n}],Mn.prototype.clone=Kue,Mn.prototype.reverse=Yue,Mn.prototype.value=Xue,Z.prototype.at=Epe,Z.prototype.chain=Tpe,Z.prototype.commit=Ope,Z.prototype.next=Ipe,Z.prototype.plant=Mpe,Z.prototype.reverse=Ape,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=$pe,Z.prototype.first=Z.prototype.head,yb&&(Z.prototype[yb]=kpe),Z},fm=Oue();Zf?((Zf.exports=fm)._=fm,uM._=fm):qo._=fm}).call(yc)})(YT,YT.exports);var Fwt=YT.exports;function kL({callback:e}){const[t,n]=v.useState(null),[r,o]=v.useState(""),[i,a]=v.useState(!0),[s,l]=v.useState([]),[c,u]=qe(),d=v.useMemo(()=>UI(f=>QDe(f,u.language,i).then(p=>l(p)),200),[u.language,i]);return v.useEffect(()=>{if(r===""){l(t?[t]:[]);return}return d(r),()=>{}},[t,r,d]),X(Mt,{children:[C(Kl,{id:"exercise-name-autocomplete",getOptionLabel:f=>f.value,"data-testid":"autocomplete",filterOptions:f=>f,options:s,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:t,noOptionsText:c("noResults"),isOptionEqualToValue:(f,p)=>f.value===p.value,onChange:(f,p)=>{l(p?[p,...s]:s),n(p),e(p)},onInputChange:(f,p)=>{o(p)},renderInput:f=>C(gn,{...f,label:c("exercises.searchExerciseName"),fullWidth:!0,InputProps:{...f.InputProps,startAdornment:X(Mt,{children:[C(co,{position:"start",children:C(AB,{})}),f.InputProps.startAdornment]})}}),renderOption:(f,p)=>sN("li",{...f,key:`exercise${p.data.id}`,"data-testid":`autocompleter-result-${p.data.id}`},X(Ja,{disablePadding:!0,component:"div",children:[C(zi,{children:p.data.image?C(Yl,{alt:"",src:`${zF}${p.data.image}`,variant:"rounded"}):C(Ju,{fontSize:"large"})}),C(go,{primary:p.value,primaryTypographyProps:{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},secondary:p.data.category})]}))}),u.language!==Ty&&C(Hw,{children:C(mh,{control:C(Hu,{checked:i,onChange:(f,p)=>a(p)}),label:c("alsoSearchEnglish")})})]})}function jwt(e){var d,f;const[t,n]=Y.useState(null),[r,o]=Y.useState(null),[i]=qe(),a=Qh(),s=()=>{o(null),n(null)},l=async()=>{var p;await ZDe((p=e.currentExercise.getTranslation(e.currentLanguage))==null?void 0:p.id),e.onClose(),e.onChangeLanguage()},c=async(p=!1)=>{p?await CU(e.currentExercise.id,r==null?void 0:r.uuid):await CU(e.currentExercise.id),e.onClose(),a("../overview")},u=async p=>{const m=p!==void 0?p:t;if(m!==null)try{const g=await bS(m);o(g)}catch{o(null)}};return X(Mt,{children:[C(wOe,{id:"alert-dialog-title",children:i("delete")}),X(IJ,{children:[C("p",{children:i("exercises.deleteExerciseBody",{name:(d=e.currentExercise.getTranslation(e.currentLanguage))==null?void 0:d.name,language:(f=e.currentLanguage)==null?void 0:f.nameLong})}),C("p",{children:i("cannotBeUndone")}),C("p",{children:C("b",{children:i("exercises.replacements")})}),C("p",{children:i("exercises.replacementsInfoText")}),C("p",{children:i("exercises.replacementsSearch")}),C(kL,{callback:p=>{p!==null&&(n(p.data.base_id),u(p.data.base_id))}}),C(gn,{"data-testid":"exercise-id-field",id:"foo",label:"Exercise ID",onBlur:()=>u(),onChange:async p=>{n(p.target.value!==""?parseInt(p.target.value):null)},value:t??"",InputProps:{endAdornment:C(co,{position:"start",children:C(An,{onClick:()=>u(),children:C(Kgt,{})})})},fullWidth:!0,variant:"standard"}),r===null&&C(Mt,{children:C("p",{children:C("i",{children:i("exercises.noReplacementSelected")})})}),r!==null&&X(Mt,{children:[X("p",{children:["Selected exercise for replacement:",C(Xl,{title:i("copyToClipboard"),children:C(An,{onClick:()=>navigator.clipboard.writeText(r.id.toString()),children:C(Zgt,{})})})]}),X(Ja,{disablePadding:!0,children:[C(kF,{children:C(Yl,{children:r.mainImage?C(Yl,{alt:"",src:`${zF}${r.mainImage.url}`,variant:"rounded"}):C(Ju,{})})}),C(go,{primary:r.getTranslation().name,secondary:`${r.id} (${r.uuid})`}),C(An,{onClick:s,children:C(Qgt,{})})]})]})]}),X(OJ,{children:[C(yt,{onClick:()=>e.onClose(),children:i("cancel")}),C(yt,{"data-testid":"button-delete-translation",size:"small",onClick:l,variant:"contained",children:i("exercises.deleteTranslation")}),C(yt,{"data-testid":"button-delete-all",size:"small",onClick:()=>c(),variant:"contained",children:i("exercises.deleteExerciseFull")}),C(yt,{"data-testid":"button-delete-and-replace",size:"small",disabled:r===null,onClick:()=>c(!0),variant:"contained",children:i("exercises.deleteExerciseReplace")})]})]})}const Bwt="_root_l288f_1",zwt="_detail_language_l288f_4",Vwt="_detail_l288f_4",Hwt="_detail_arrow_l288f_18",Uwt="_languages_l288f_28",Wwt="_language_l288f_28",Gwt="_language_menu_l288f_40",qwt="_header_l288f_52",Kwt="_toolbar_l288f_55",Ywt="_dots_l288f_68",gp={root:Bwt,detail_language:zwt,detail:Vwt,detail_arrow:Hwt,languages:Uwt,language:Wwt,language_menu:Gwt,header:qwt,toolbar:Kwt,dots:Ywt},Xwt=({exercise:e,languages:t,changeLanguage:n,language:r,setEditMode:o,editMode:i})=>{var E,T,O;const[a,s]=v.useState(null),[l,c]=Y.useState(!1),u=!!a,[d]=qe(),f=Ld(gu.DELETE_EXERCISE),p=Ld(gu.EDIT_EXERCISE),m=Uc(),g=m.isSuccess&&m.data===null;let y=!1;m.isSuccess&&p.isSuccess&&(y=p.data||m.data!==null&&m.data.isTrustworthy);const b=k=>{s(k.currentTarget)},x=()=>{s(null)},S=k=>{n(k),x()},P=t.map(k=>X(tn,{onClick:()=>S(k),selected:(r==null?void 0:r.id)===k.id,children:[C(go,{children:k.nameLong}),C(zi,{children:e.availableLanguages.includes(k.id)?C(cyt,{}):C(Gi,{})})]},k.nameShort));return C(Fe,{container:!0,children:C(Fe,{size:12,children:X("div",{className:gp.root,children:[C(TJ,{open:l,onClose:()=>c(!1),children:C(jwt,{onClose:()=>c(!1),onChangeLanguage:()=>n(t[0]),currentExercise:e,currentLanguage:r})}),X("div",{className:gp.detail_language,children:[X("div",{className:gp.detail,children:[C(zs,{to:"../overview",children:d("exercises.exercises")})," > ",(E=e.getTranslation(r))==null?void 0:E.name]}),C("div",{className:gp.languages,children:X("div",{className:gp.language,children:[C(yt,{size:"small",id:"basic-button",onClick:b,startIcon:C(GS,{}),children:r==null?void 0:r.nameLong}),X(is,{id:"basic-menu",anchorEl:a,open:u,onClose:x,MenuListProps:{"aria-labelledby":"basic-button"},sx:{padding:20},children:[C(tn,{disabled:!0,children:d("exercises.changeExerciseLanguage")}),C(Qa,{}),P]})]})})]}),X("div",{className:gp.header,children:[C(ut,{gutterBottom:!0,variant:"h2",margin:0,sx:{mt:2},children:(T=e.getTranslation(r))==null?void 0:T.name}),!g&&X("nav",{className:gp.toolbar,children:[f.isSuccess&&f.data&&(r==null?void 0:r.id)===((O=e.getTranslation(r))==null?void 0:O.language)&&C(yt,{onClick:()=>c(!0),children:d("delete")}),y&&C(yt,{onClick:()=>o(!0),disabled:i,children:"EDIT"}),C(yt,{onClick:()=>o(!1),disabled:!i,children:"VIEW"})]})]}),X(Gt,{direction:"row",spacing:1,mt:2,children:[C(hh,{label:d(Wi(e.category.name)),size:"small"}),e.equipment.map(k=>C(hh,{label:d(Wi(k.name)),variant:"outlined",size:"small"},k.id))]})]})})})},Jo=()=>C(Ln,{sx:{height:20}}),Qwt=()=>{var m;const[e,t]=v.useState(I2e),[n,r]=v.useState(!1),o=Jh(),i=o.baseID?Fwt.parseInt(o.baseID):0,{i18n:a}=qe(),s=Qh(),l=Bk(),c=oo({queryKey:[D2e,i],queryFn:()=>bS(i),enabled:l.isSuccess}),u=oo({queryKey:[R2e,(m=c.data)==null?void 0:m.variationId],queryFn:()=>{var g;return KDe((g=c.data)==null?void 0:g.variationId)},enabled:c.isSuccess});if(Y.useEffect(()=>{if(l.data===void 0)return;const g=hD(a.language,l.data);t(g)},[l.data]),c.isError||l.isError||u.isError)return s("/not-found"),null;const d=g=>{const y=hD(g.nameShort,l.data);y!==void 0&&t(y)},f=u.isSuccess?u.data.filter(g=>g.id!==i):[];let p;return c.isSuccess&&l.isSuccess&&(p=n?C($wt,{exerciseId:c.data.id,language:e}):C(Nwt,{exercise:c.data,language:e,variations:f,setEditMode:r})),X(Mt,{children:[c.isSuccess&&l.isSuccess&&C(Vu,{children:C(Xwt,{exercise:c.data,languages:l.data,changeLanguage:d,language:e,setEditMode:r,editMode:n})}),C(Jo,{}),X(Vu,{maxWidth:"lg",children:[c.isLoading&&l.isLoading&&C(ga,{}),p]})]})};function qse(e){const[t]=qe(),[n,r,o]=ul(e.fieldName),[i,a]=v.useState(""),s=u=>{o.setValue(n.value.filter((d,f)=>f!==u))},l=(u,d)=>{n.value[u]=d,o.setValue(n.value)},c=()=>{n.value.push(i),o.setValue(n.value),a("")};return X(Mt,{children:[C(Fe,{size:12,children:C(gn,{fullWidth:!0,label:t("exercises.newNote"),sx:{mb:3},variant:"standard",value:i,onChange:u=>a(u.target.value),error:r.touched&&!!r.error,helperText:r.touched&&r.error?r.error:t("exercises.notesHelpText"),InputProps:{endAdornment:C(co,{position:"end",children:C(An,{onClick:c,children:C(Gi,{})})})}})}),n.value.map((u,d)=>C(gn,{fullWidth:!0,value:u,onChange:f=>l(d,f.target.value),sx:{mt:2},variant:"standard",error:r.touched&&!!r.error,InputProps:{endAdornment:C(co,{position:"end",children:C(An,{onClick:()=>s(d),children:C(YB,{})})})}},d))]})}const Jwt=({onContinue:e,onBack:t})=>{const[n]=qe(),[r,o]=sb(),i=dl({description:sz(n),notes:kse(n)});return C(cl,{initialValues:{description:r.descriptionEn,notes:r.notesEn},validationSchema:i,onSubmit:a=>{o(j0t(a.description)),o(B0t(a.notes)),e()},children:C(as,{children:X(Gt,{children:[C(lz,{fieldName:"description"}),C(Jo,{}),C(qse,{fieldName:"notes"}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:X("div",{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})})},Zwt=({onContinue:e,onBack:t})=>{const[n]=qe(),r=Bk(),[o,i]=sb(),[a,s]=v.useState(o.languageId!==null),l=dl(a?{description:sz(n),name:iz(n),alternativeNames:az(n),notes:kse(n),language:sa().required()}:{});return C(cl,{initialValues:{name:o.nameI18n,alternativeNames:o.alternativeNamesI18n,description:o.descriptionI18n,language:o.languageId===null?"":o.languageId,notes:o.notesI18n},validationSchema:l,onSubmit:c=>{i(V0t(c.name)),i(H0t(c.description)),i(W0t(c.alternativeNames)),i(J0t(c.language===""?null:c.language)),i(U0t(c.notes)),e()},children:c=>X(as,{children:[X(Gt,{spacing:2,children:[C(Hw,{children:C(mh,{checked:a,onClick:()=>s(!a),control:C(Hu,{}),label:n("exercises.translateExerciseNow")})}),a&&X(Mt,{children:[r.isLoading?C(Ln,{children:C(ga,{})}):X(Cv,{fullWidth:!0,children:[C(Pv,{id:"label-language",children:n("language")}),C(Dh,{labelId:"label-language",id:"language",value:c.getFieldProps("language").value,onChange:u=>{c.setFieldValue(c.getFieldProps("language").name,u.target.value)},label:n("language"),error:!!(c.touched.language&&c.errors.language),children:r.data.filter(u=>u.id!==vh).map(u=>X(tn,{value:u.id,children:[u.nameShort," - ",u.nameLong]},u.id))})]}),C(oz,{fieldName:"name"}),C(rz,{fieldName:"alternativeNames"}),C(lz,{fieldName:"description"}),C(Jo,{}),C(qse,{fieldName:"notes"})]})]}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:X("div",{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})};function ext(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("licenses.authors"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function txt(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("licenses.authorProfile"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function nxt(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("licenses.derivativeSourceUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:t("licenses.derivativeSourceUrlHelper")||r.touched&&r.error,...n})}function rxt(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalObjectUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function oxt(e){const[t]=qe(),[n,r]=ul(e.fieldName);return C(gn,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalTitle"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function ixt(e){const[t]=qe(),[n,r]=v.useState(pu.PHOTO),[o,i,a]=ul(e.fieldName);return X(S$e,{value:n,exclusive:!0,fullWidth:!0,onChange:(l,c)=>{r(c),a.setValue(c)},"aria-label":"text alignment",children:[C(Gb,{value:pu.PHOTO,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(lyt,{}),C(ut,{variant:"caption",children:t("exercises.imageStylePhoto")})]})}),C(Gb,{value:pu.THREE_D,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(ryt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyle3D")})]})}),C(Gb,{value:pu.LINE_ART,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(oyt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleLine")})]})}),C(Gb,{value:pu.LOW_POLY,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(iyt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleLowPoly")})]})}),C(Gb,{value:pu.OTHER,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(ayt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleOther")})]})})]})}const axt=({onContinue:e,onBack:t})=>{const[n]=qe(),r=Uc(),[o,i]=sb(),[a,s]=v.useState(o.images),[l,c]=v.useState(void 0),[u,d]=Y.useState(!1),f=()=>d(!1);v.useEffect(()=>{i(Z0t(a))},[i,a]);const p=x=>{var E;if(!((E=x.target.files)!=null&&E.length))return;const[S]=x.target.files,P=URL.createObjectURL(S);d(!0),c({url:P,file:S,author:"",authorUrl:"",title:"",derivativeSourceUrl:"",objectUrl:"",style:pu.PHOTO.toString()})},m=x=>{s(a.concat({url:l==null?void 0:l.url,file:l==null?void 0:l.file,author:x.author,authorUrl:x.authorUrl,title:x.title,derivativeSourceUrl:x.derivativeSourceUrl,objectUrl:x.objectUrl,style:x.imageStyle.toString()})),f()},g=x=>{const S=a.filter(P=>P.url!==x);s(S)},y=()=>{e()};return X("div",{children:[C(Sv,{open:u,onClose:f,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X(Ln,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:600,bgcolor:"background.paper",boxShadow:24,p:4},children:[C(ut,{id:"modal-modal-title",variant:"h6",component:"h2",children:n("exercises.imageDetails")}),X(Fe,{container:!0,spacing:2,children:[C(Fe,{size:4,children:l&&C("img",{style:{width:"100%"},src:l.url,alt:"",loading:"lazy"})}),C(Fe,{size:8,children:C(cl,{initialValues:{title:"",objectUrl:"",author:r.isSuccess?r.data.username:"",authorUrl:"",derivativeSourceUrl:"",imageStyle:pu.PHOTO},onSubmit:x=>{console.log(x),m(x)},children:x=>X(as,{children:[X(Gt,{spacing:2,children:[C(oxt,{fieldName:"title"}),C(rxt,{fieldName:"objectUrl"}),C(ext,{fieldName:"author"}),C(txt,{fieldName:"authorUrl"}),C(nxt,{fieldName:"derivativeSourceUrl"}),C(ixt,{fieldName:"imageStyle"}),X(Bu,{icon:C(Wae,{fontSize:"inherit"}),severity:"info",children:["By submitting this image, you agree to release it under the ",C("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/",target:"_blank",rel:"noreferrer",children:"CC BY-SA 4.0"})," license. The image must be either your own work or the author must have released in under a license compatible with CC BY-SA 4.0."]})]}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("add")})})]})})})]})]})}),C(ut,{children:n("exercises.compatibleImagesCC")}),X(Gt,{direction:"row",justifyContent:"center",children:[X("div",{children:[C("label",{htmlFor:"camera-input",children:C(Xgt,{fontSize:"large",sx:{m:2}})}),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:p})]}),X("div",{children:[C("label",{htmlFor:"image-input",children:C(Jgt,{fontSize:"large",sx:{m:2}})}),C("input",{type:"file",accept:"image/*",name:"image-file",id:"image-input",style:{display:"none"},onChange:p})]})]}),C($J,{cols:3,style:{maxHeight:"400px"},children:a.map(x=>X(RJ,{children:[C("img",{style:{maxHeight:"400px",maxWidth:"400px"},src:x.url,alt:"",loading:"lazy"}),C(bIe,{title:x.title,subtitle:x.author,actionIcon:C(An,{onClick:()=>g(x.url),sx:{color:"white"},children:C(eyt,{})})})]},x.url))}),C(ut,{children:n("forms.supportedImageFormats")}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:X(Mt,{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",onClick:y,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})},sxt="exercisecomment",R7=async e=>{const t=new zZ,n=Pt(sxt),r=await dt.post(n,t.toJson(e),{headers:kt()});return t.fromJson(r.data)},lxt="variation",cxt=async()=>{const e=Pt(lxt);return(await dt.post(e,{},{headers:kt()})).data.id},uxt=({onBack:e})=>{const[t,n]=qe(),[r]=sb(),o=Qh(),i=Fk(),a=Bk(),s=XS(),l=jk(),c=Uc(),[u,d]=v.useState("initial"),f=async()=>{d("loading");let m;r.newVariationBaseId!==null?m=await cxt():m=r.variationId;const g=await YDe(r.category,r.equipment,r.muscles,r.musclesSecondary,m,c.data.username),y=await pD({exerciseId:g,languageId:vh,name:r.nameEn,description:r.descriptionEn,author:c.data.username});for(const b of r.alternativeNamesEn)await mD(y.id,b);for(const b of r.images)await qZ({exerciseId:g,image:b.file,imageData:b});for(const b of r.notesEn)await R7(new fD(null,y.id,b));if(r.languageId!==null){const b=await pD({exerciseId:g,languageId:r.languageId,name:r.nameI18n,description:r.descriptionI18n,author:c.data.username});for(const x of r.alternativeNamesI18n)await mD(b.id,x);for(const x of r.notesI18n)await R7(new fD(null,b.id,x))}console.log("Exercise created"),d("done")},p=()=>{o(Pn(wn.EXERCISE_OVERVIEW,n.language))};return l.isLoading||a.isLoading||s.isLoading||i.isLoading?C(bo,{}):X(Mt,{children:[C(ut,{variant:"h6",children:t("exercises.step1HeaderBasics")}),C(Gu,{children:C(Uu,{children:X(Wu,{children:[X(Yt,{children:[C(Ie,{children:t("name")}),C(Ie,{children:r.nameEn})]}),X(Yt,{children:[C(Ie,{children:t("exercises.alternativeNames")}),C(Ie,{children:r.alternativeNamesEn.join(", ")})]}),X(Yt,{children:[C(Ie,{children:t("description")}),C(Ie,{children:r.descriptionEn})]}),X(Yt,{children:[C(Ie,{children:t("exercises.notes")}),C(Ie,{children:r.notesEn.map(m=>X(Mt,{children:[m,C("br",{})]}))})]}),X(Yt,{children:[C(Ie,{children:t("category")}),C(Ie,{children:t(Wi(i.data.find(m=>m.id===r.category).name))})]}),X(Yt,{children:[C(Ie,{children:t("exercises.equipment")}),C(Ie,{children:r.equipment.map(m=>t(Wi(l.data.find(g=>g.id===m).name))).join(", ")})]}),X(Yt,{children:[C(Ie,{children:t("exercises.muscles")}),C(Ie,{children:r.muscles.map(m=>s.data.find(g=>g.id===m).getName(t)).join(", ")})]}),X(Yt,{children:[C(Ie,{children:t("exercises.secondaryMuscles")}),C(Ie,{children:r.musclesSecondary.map(m=>s.data.find(g=>g.id===m).getName(t)).join(", ")})]}),X(Yt,{children:[C(Ie,{children:t("exercises.variations")}),X(Ie,{children:[r.variationId," / ",r.newVariationBaseId]})]})]})})}),r.images.length>0&&C($J,{cols:3,style:{maxHeight:"200px"},children:r.images.map(m=>C(RJ,{children:C("img",{style:{maxHeight:"200px",maxWidth:"200px"},src:m.url,alt:"",loading:"lazy"})},m.url))}),r.languageId!==null&&X(Mt,{children:[C(ut,{variant:"h6",sx:{mt:3},children:a.data.find(m=>m.id===r.languageId).nameLong}),C(Gu,{children:C(Uu,{children:X(Wu,{children:[X(Yt,{children:[C(Ie,{children:t("name")}),C(Ie,{children:r.nameI18n})]}),X(Yt,{children:[C(Ie,{children:t("exercises.alternativeNames")}),C(Ie,{children:r.alternativeNamesI18n.join(", ")})]}),X(Yt,{children:[C(Ie,{children:t("description")}),C(Ie,{children:r.descriptionI18n})]}),X(Yt,{children:[C(Ie,{children:t("exercises.notes")}),C(Ie,{children:r.notesI18n.map(m=>X(Mt,{children:[m,C("br",{})]}))})]})]})})})]}),u!=="done"?C(Bu,{severity:"info",sx:{mt:2},children:t("exercises.checkInformationBeforeSubmitting")}):X(Bu,{severity:"success",sx:{mt:2},children:[C(CE,{children:t("success")}),t("exercises.cacheWarning")]}),C(Fe,{container:!0,children:C(Fe,{display:"flex",justifyContent:"end",size:12,children:C(Ln,{sx:{mb:2},children:X("div",{children:[u!=="done"&&C(yt,{onClick:e,sx:{mt:1,mr:1},children:t("goBack")}),u!=="done"&&C(yt,{variant:"contained",disabled:u!=="initial",onClick:f,sx:{mt:1,mr:1},color:"info",children:t("exercises.submitExercise")}),u==="done"&&X(yt,{variant:"contained",onClick:p,sx:{mt:1,mr:1},color:"success",children:[t("overview"),C(syt,{})]})]})})})})]})},dxt=()=>{const[e]=qe(),[t,n]=Y.useState(0),r=()=>{n(i=>i+1)},o=()=>{n(i=>i-1)};return C(twt,{children:X(Vu,{maxWidth:"md",children:[C(Gt,{direction:"row",children:C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:e("exercises.contributeExercise")})}),C(Ln,{children:X(nAe,{activeStep:t,orientation:"vertical",children:[X(Mm,{children:[C(xp,{children:e("exercises.step1HeaderBasics")}),C(Am,{children:C(nwt,{onContinue:r,onBack:o})})]},1),X(Mm,{children:[C(xp,{children:e("exercises.variations")}),C(Am,{children:C(owt,{onContinue:r,onBack:o})})]},2),X(Mm,{children:[C(xp,{children:e("description")}),C(Am,{children:C(Jwt,{onContinue:r,onBack:o})})]},3),X(Mm,{children:[C(xp,{children:e("translation")}),C(Am,{children:C(Zwt,{onContinue:r,onBack:o})})]},4),X(Mm,{children:[C(xp,{children:e("images")}),C(Am,{children:C(axt,{onContinue:r,onBack:o})})]},5),X(Mm,{children:[C(xp,{children:e("overview")}),C(Am,{children:C(uxt,{onBack:o})})]},6)]})})]})})},fxt=()=>{const[e]=qe(),t=cz();return X(Vu,{maxWidth:"md",children:[C(ut,{variant:"h3",children:e("exercises.notEnoughRightsHeader")}),X(Ln,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{mb:2,children:e("exercises.notEnoughRights",{days:k2e})}),!t.anonymous&&!t.emailVerified&&C(yt,{variant:"contained",href:"/user/preferences",endIcon:C(qgt,{}),children:e("preferences")})]})]})},pxt=()=>{const e=cz();return C(Mt,{children:e.canContribute?C(dxt,{}):C(fxt,{})})},hxt=()=>C("div",{children:"Add Weight Page"}),mxt=({currentMonth:e,currentYear:t,onPrevMonth:n,onNextMonth:r})=>{const{i18n:o}=qe(),i=Array.from({length:12},(a,s)=>new Date(2024,s,1).toLocaleString(o.language,{month:"long"}));return X("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",paddingBottom:"3%"},children:[C(yt,{variant:"outlined",onClick:n,children:"<"}),X(ut,{variant:"h5",children:[i[e]," ",t]}),C(yt,{variant:"outlined",onClick:r,children:">"})]})},gxt=({day:e,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})=>{const i=Ao(),a=bf(i.breakpoints.down("sm")),s=bf(i.breakpoints.down("md")),l=cf(e.date,r.date),c=cf(e.date,n),u=e.date.getMonth()===t&&(e.date.getDate()<=n.getDate()||e.date.getMonth()<n.getMonth()||e.date.getFullYear()<n.getFullYear()),d=e.date.getDay()===6||e.date.getDay()===0,f=()=>l||c?"white":u?d?"#E53945":"black":"gray",p=()=>a?35:s?40:50,m=()=>a?8:s?9:10,g=()=>e.measurements.length>0||e.weightEntry!==void 0,y=()=>{u&&o(e)},b=p(),x=m();return X("div",{style:{position:"relative",width:`${b}px`,height:`${b+x/2}px`,display:"flex",flexDirection:"column",alignItems:"center"},children:[C("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:`${b}px`,height:`${b}px`,fontSize:a?"0.8rem":s?"0.9rem":"1rem",color:l||c?"white":f(),backgroundColor:l?"#E53945":c?"#FEC107":"transparent",borderRadius:"50%",fontWeight:"bold",cursor:u?"pointer":"default",opacity:e.date.getMonth()!==t?.25:1},"data-testid":`day-${ni(e.date)}`,onClick:y,children:e.date.getDate()}),g()&&C("div",{style:{width:`${x}px`,height:`${x}px`,backgroundColor:"black",borderRadius:"50%",position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",zIndex:2}})]})},yxt=({days:e,currentMonth:t,currentDate:n,selectedDay:r,onDayClick:o})=>{const{i18n:i}=qe(),a=Array.from({length:7},(s,l)=>new Date(1970,0,l+5).toLocaleString(i.language,{weekday:"short"}));return X(Fe,{container:!0,spacing:1,rowSpacing:2,children:[a.map((s,l)=>C(Fe,{size:12/7,children:C(ut,{variant:"body1",sx:{fontWeight:"bold",textAlign:"center"},children:s})},`weekday-${l}`)),e.map((s,l)=>C(Fe,{size:12/7,sx:{display:"flex",justifyContent:"center"},children:C(gxt,{day:s,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})},`day-${l}`))]})},vxt=({selectedDay:e})=>{const[t]=qe(),n=t("no_entries_for_day");return X(io,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"60%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2}},children:[C(Zl,{title:X(ut,{variant:"h5",component:"div",sx:{fontWeight:"bold"},children:[t("entries")," - ",e.date.toLocaleDateString()]})}),X(wi,{sx:{flex:1,overflow:"auto",display:"flex",flexDirection:"column",gap:2},children:[X("div",{className:"flex items-center gap-2",children:[X("span",{className:"font-extrabold",children:[t("weight"),": "]}),C("span",{className:`${e.weightEntry?"text-xl font-semibold":"text-gray-500"}`,children:e.weightEntry?`${e.weightEntry.weight.toFixed(1)} kg`:n})]}),X("div",{className:"flex flex-col gap-1",children:[X("span",{className:"font-bold",children:[t("measurements.measurements"),": "]}),e.measurements.length===0?C("span",{className:"text-gray-500 mt-1",children:n}):C("div",{className:"flex flex-col gap-0.5",children:e.measurements.map(r=>X("div",{children:[r.name,": ",r.value," ",r.unit]},r.name))})]})]})]})};class bxt{constructor(t,n,r,o){this.name=t,this.unit=n,this.value=r,this.date=o}}function Kse(){return oo({queryKey:[Mv],queryFn:R_e})}const wxt=()=>{const e=gr();return $r({mutationFn:t=>__e(t),onSuccess:()=>e.invalidateQueries({queryKey:[Mv]})})},xxt=e=>{const t=gr();return $r({mutationFn:n=>L_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[kv,e]}),t.invalidateQueries({queryKey:[Mv]})}})},Sxt=e=>{const t=gr();return $r({mutationFn:n=>N_e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[kv,e]}),t.invalidateQueries({queryKey:[Mv]})}})};function Yse(e){return oo({queryKey:[kv,e],queryFn:()=>D_e(e)})}const Cxt=()=>{const e=gr();return $r({mutationFn:t=>B_e(t),onError:t=>{console.log(t)},onSuccess:()=>{e.invalidateQueries({queryKey:[kv]}),e.invalidateQueries({queryKey:[Mv]})}})},Xse=()=>{const e=gr();return $r({mutationFn:t=>j_e(t),onSuccess:()=>{e.invalidateQueries({queryKey:[kv]}),e.invalidateQueries({queryKey:[Mv]})}})},Pxt=()=>{const e=gr();return $r({mutationFn:t=>F_e(t),onSuccess:()=>e.invalidateQueries({queryKey:[kv]})})};function Ext(){const t=Kse().data;return(t==null?void 0:t.flatMap(n=>n.entries.map(r=>new bxt(n.name,n.unit,r.value,r.date))))??[]}const Txt=()=>{const[e]=qe(),n=KS().data,r=Ext(),o=(S,P)=>{const E=new Date(S,P,1),T=[];let k=new Date(S,P,1).getDay();k=k===0?6:k-1;for(let R=0;R<k;R++)T.push({date:new Date(S,P,-k+R+1),weightEntry:void 0,measurements:[]});for(;E.getMonth()===P;)T.push({date:new Date(E),weightEntry:n==null?void 0:n.find(R=>cf(R.date,E)),measurements:r.filter(R=>cf(R.date,E))}),E.setDate(E.getDate()+1);k=new Date(S,P+1,0).getDay();const I=k===0?0:7-k;for(let R=1;R<=I;R++)T.push({date:new Date(S,P+1,R),weightEntry:void 0,measurements:[]});return T},i=new Date,a={date:i,weightEntry:void 0,measurements:[]},[s,l]=v.useState(i.getMonth()),[c,u]=v.useState(i.getFullYear()),d=o(c,s),[f,p]=v.useState(d.find(S=>cf(S.date,i))||a),m=Ao(),g=bf(m.breakpoints.down("sm"));v.useEffect(()=>{l(f.date.getMonth()),u(f.date.getFullYear())},[f]);const y=S=>{p(S)},b=()=>{s===0?(l(11),u(c-1)):l(s-1)},x=()=>{(s<i.getMonth()||c<i.getFullYear())&&(s===11?(l(0),u(c+1)):l(s+1))};return X(Ln,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",md:"row"},height:{xs:"auto",md:"calc(100vh - 130px)"},width:"100%"},children:[X(io,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"auto%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2},display:"flex",flexDirection:"column"},children:[C(Zl,{sx:{"& .MuiCardHeader-content":{width:"100%"}},title:C("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:X("div",{style:{display:"flex",alignItems:"center",marginBottom:"16px"},children:[C(Ygt,{style:{width:g?"28px":"32px",height:g?"28px":"32px",marginRight:"12px"}}),C("span",{style:{fontSize:g?"1.5rem":"1.8rem",fontWeight:"bold"},children:e("calendar")})]})})}),X(wi,{sx:{overflow:"auto",flex:1,"&:last-child":{paddingBottom:2}},children:[C(mxt,{currentMonth:s,currentYear:c,onPrevMonth:b,onNextMonth:x}),C(yxt,{days:d,currentMonth:s,currentDate:i,selectedDay:f,onDayClick:y})]})]}),C(vxt,{selectedDay:f})]})},Oxt=()=>C("div",{children:C(Txt,{})}),Ixt=()=>C("div",{children:"Calories Calculator Page"}),kxt=()=>C("div",{children:"Equipments Page"}),Mxt=()=>C("div",{children:"Gallery Page"}),Axt=()=>C("div",{children:"Ingredients Page"}),$xt=()=>C("div",{children:"Login Page"}),Rxt=()=>C("div",{children:"Preferences Page"}),Dxt=()=>C("div",{children:"Public Template"}),_xt=()=>C("div",{children:"RestApi Page"}),Lxt=()=>C("div",{children:"Your Template"}),Nxt=({weight:e})=>{const t=gvt(),[n]=qe(),[r,o]=Y.useState(null),[i,a]=Y.useState(!1),s=!!r,l=m=>{o(m.currentTarget)},c=()=>{u(),f()},u=()=>{o(null)},d=()=>{t.mutate(e.id),o(null)},f=()=>a(!0),p=()=>a(!1);return X("div",{children:[C(yt,{onClick:l,children:C(Ggt,{})}),X(is,{anchorEl:r,open:s,onClose:u,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:c,children:n("edit")}),C(tn,{onClick:d,children:n("delete")})]}),C(Yi,{title:n("edit"),isOpen:i,closeFn:p,children:C(ib,{weightEntry:e,closeFn:p})})]})},Fxt=()=>{const[e]=qe(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Rh,{color:"primary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Gi,{})}),C(Yi,{title:e("add"),isOpen:t,closeFn:o,children:C(ib,{closeFn:o})})]})},jxt=e=>e.map((t,n)=>n===0?{entry:t,change:0,days:Math.abs(t.date.getTime()-t.date.getTime())/(1e3*60*60*24)}:{entry:t,change:e[n].weight-e[n-1].weight,days:Math.abs(t.date.getTime()-e[n-1].date.getTime())/(1e3*60*60*24)}),Bxt=Pse(e=>({table:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),zxt=({weights:e})=>{const t=[10,50,100],[n]=qe(),r=Bxt(),o=jxt(e),[i,a]=v.useState(t[0]),[s,l]=v.useState(0),c=(d,f)=>{l(f)},u=d=>{a(parseInt(d.target.value,10)),l(0)};return X("div",{className:r.table,children:[X(Gu,{children:[X(Uu,{sx:{minWidth:650},"aria-label":"simple table",children:[C(_h,{children:X(Yt,{children:[C(Ie,{align:"center",children:n("date")}),C(Ie,{align:"center",children:n("weight")}),C(Ie,{align:"center",children:n("difference")}),C(Ie,{align:"center",children:n("days")}),C(Ie,{align:"center"})]})}),C(Wu,{children:o.slice(s*i,s*i+i).map(d=>X(Yt,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C(Ie,{component:"th",scope:"row",align:"center",children:d.entry.date.toLocaleDateString()}),C(Ie,{align:"center",children:d.entry.weight}),C(Ie,{align:"center",children:+d.change.toFixed(2)}),C(Ie,{align:"center",children:d.days}),C(Ie,{align:"center",children:C(Nxt,{weight:d.entry})})]},d.entry.date.toLocaleDateString()))})]}),C(RF,{rowsPerPageOptions:t,component:"div",count:o.length,rowsPerPage:i,page:s,onPageChange:c,onRowsPerPageChange:u})]}),C(Fxt,{})]})},Vxt=()=>{const[e]=qe(),[t,n]=v.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Rh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Gi,{})}),C(Yi,{title:e("add"),isOpen:t,closeFn:o,children:C(ib,{closeFn:o})})]})},Hxt=({currentFilter:e,onFilterChange:t})=>{const[n]=qe(),r=Ao(),o=i=>{e!==i&&t(i)};return X(GEe,{variant:"outlined",sx:{mb:2},children:[C(yt,{onClick:()=>o(""),color:e===""?"primary":"inherit",variant:e===""?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("all")}),C(yt,{onClick:()=>o("lastYear"),color:e==="lastYear"?"primary":"inherit",variant:e==="lastYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastYear")}),C(yt,{onClick:()=>o("lastHalfYear"),color:e==="lastHalfYear"?"primary":"inherit",variant:e==="lastHalfYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastHalfYear")}),C(yt,{onClick:()=>o("lastMonth"),color:e==="lastMonth"?"primary":"inherit",variant:e==="lastMonth"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastMonth")}),C(yt,{onClick:()=>o("lastWeek"),color:e==="lastWeek"?"primary":"inherit",variant:e==="lastWeek"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastWeek")})]})},Zh=e=>X(Vu,{maxWidth:"lg",children:[X(Fe,{container:!0,spacing:2,children:[C(Fe,{sx:{mb:2},size:8,children:X(Gt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[C(ut,{gutterBottom:!0,variant:"h3",children:e.title}),e.optionsMenu]})}),C(Fe,{size:{xs:12,sm:8},children:e.mainContent}),C(Fe,{size:{xs:12,sm:4},children:e.sideBar})]}),e.fab]}),Uxt=()=>{const[e]=qe(),[t,n]=v.useState("lastYear"),r=KS(t),o=i=>{n(i)};return r.isLoading?C(bo,{}):C(Zh,{title:e("weight"),mainContent:X(Gt,{spacing:2,children:[C(Hxt,{currentFilter:t,onFilterChange:o}),r.data.length===0&&C(cI,{}),r.data.length!==0&&X(Mt,{children:[C(Ese,{weights:r.data}),C(Ln,{sx:{mt:4}}),C(zxt,{weights:r.data})]})]}),fab:C(Vxt,{})})},Wxt=()=>{const{i18n:e}=qe(),[t,n]=Y.useState(null);return X(Mt,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Weight"}),X(is,{anchorEl:t,open:!!t,onClose:()=>n(null),children:[C(tn,{component:zs,to:Pn(wn.WEIGHT_OVERVIEW,e.language),children:"Weight overview"}),C(tn,{component:zs,to:Pn(wn.WEIGHT_ADD,e.language),children:"Add weight entry"})]})]})},Gxt=()=>{const{i18n:e}=qe(),[t,n]=Y.useState(null);return X(Mt,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Measurements"}),C(is,{anchorEl:t,open:!!t,onClose:()=>n(null),children:C(tn,{component:zs,to:Pn(wn.MEASUREMENT_OVERVIEW,e.language),children:"Overview"})})]})},qxt=()=>{const{i18n:e}=qe(),[t,n]=Y.useState(null);return X(Mt,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Nutrition"}),C(is,{anchorEl:t,open:!!t,onClose:()=>n(null),children:C(tn,{component:zs,to:Pn(wn.NUTRITION_OVERVIEW,e.language),children:"Overview"})})]})},Kxt=()=>{const{i18n:e}=qe(),[t,n]=Y.useState(null);return X(Mt,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Routines"}),X(is,{anchorEl:t,open:!!t,onClose:()=>n(null),children:[C(tn,{component:zs,to:Pn(wn.ROUTINE_OVERVIEW,e.language),children:"Routine overview"}),C(tn,{component:zs,to:Pn(wn.EXERCISE_OVERVIEW,e.language),children:"Exercise overview"}),C(tn,{component:zs,to:Pn(wn.EXERCISE_CONTRIBUTE,e.language),children:"Contribute exercise"}),C(tn,{component:zs,to:Pn(wn.CALENDAR,e.language),children:"Calendar"})]})]})},Yxt=()=>C(gCe,{position:"static",children:X(WJ,{children:[C(ut,{variant:"h6",component:"div",mr:3,children:"wger"}),C(Kxt,{}),C(Wxt,{}),C(Gxt,{}),C(qxt,{})]})}),Qse=()=>C(Uxt,{}),Xxt=()=>C("div",{children:"Workout Page"}),Qxt=()=>C("div",{children:"Workout Schedule"});var rd,D7=eI;rd=D7.createRoot,D7.hydrateRoot;const Jxt=()=>X(Fe,{container:!0,spacing:2,children:[C(Fe,{size:4,children:C(sse,{})}),C(Fe,{size:4,children:C(zae,{})}),C(Fe,{size:4,children:C(Tse,{})})]}),JS=v.createContext({}),Jse=()=>{const{data:e,isLoading:t}=Fk(),{selectedCategories:n,setSelectedCategories:r}=v.useContext(JS),[o]=qe(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(bo,{}):C(ol,{children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(Ja,{disablePadding:!0,children:X(Df,{role:void 0,onClick:i(a),dense:!0,children:[C(zi,{children:C(Hu,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`category-${a.id}`)}),C(go,{id:s,primary:o(Wi(a.name))})]})},a.id)})})},Zxt=()=>{const[e]=qe();return X(hF,{children:[C(gF,{expandIcon:C(Tv,{}),children:e("category")}),C(mF,{children:C(Jse,{})})]})},eSt=()=>{const[e]=qe();return C("div",{"data-testid":"categories",children:X(so,{children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("category")}),C(Jse,{})]})})},Zse=()=>{const{data:e,isLoading:t}=jk(),{selectedEquipment:n,setSelectedEquipment:r}=v.useContext(JS),[o]=qe(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(bo,{}):C(ol,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(Ja,{disablePadding:!0,children:X(Df,{role:void 0,onClick:i(a),dense:!0,children:[C(zi,{children:C(Hu,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),C(go,{id:s,primary:o(Wi(a.name))})]})},a.id)})})},tSt=()=>{const[e]=qe();return X(hF,{children:[C(gF,{expandIcon:C(Tv,{}),children:e("exercises.equipment")}),C(mF,{children:C(Zse,{})})]})},nSt=()=>{const[e]=qe();return C("div",{"data-testid":"equipment",children:X(so,{sx:{mt:2},children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.equipment")}),C(Zse,{})]})})},rSt=ie(({className:e,...t})=>C(Xl,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${jr.tooltip}`]:{backgroundColor:"rgb(245, 245, 245)",color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:11}})),ele=()=>{const{data:e,isLoading:t}=XS(),{selectedMuscles:n,setSelectedMuscles:r}=v.useContext(JS),[o]=qe(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(bo,{}):C(ol,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(Ja,{disablePadding:!0,secondaryAction:C(rSt,{title:C(Eh,{primaryMuscles:[a],secondaryMuscles:[],isFront:a.isFront}),placement:"right",arrow:!0,children:C(An,{edge:"end","aria-label":"comments",children:C(Gae,{})})}),children:X(Df,{role:void 0,onClick:i(a),dense:!0,children:[C(zi,{children:C(Hu,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),C(go,{id:s,primary:a.name,secondary:a.nameEn!==""?o(Wi(a.nameEn)):""})]})},a.id)})})},oSt=()=>{const[e]=qe();return X(hF,{children:[C(gF,{expandIcon:C(Tv,{}),children:e("exercises.muscles")}),C(mF,{children:C(ele,{})})]})},iSt=()=>{const[e]=qe();return C("div",{"data-testid":"muscles",children:X(so,{sx:{mt:2},children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.muscles")}),C(ele,{})]})})},aSt=({exercises:e})=>{const t=Bk(),[n,r]=qe();let o;return t.isSuccess&&(o=hD(r.language,t.data)),C(Fe,{container:!0,spacing:1,children:e.map(i=>C(Fe,{sx:{display:"flex"},size:{xs:6,md:4},children:C(Gse,{exercise:i,language:o})},i.id))})},sSt=()=>C(Fe,{container:!0,spacing:1,children:Array.apply(null,Array(21)).map((e,t)=>C(Fe,{sx:{display:"flex"},size:4,children:X(io,{children:[C(_c,{children:C(CP,{variant:"rectangular",width:250,height:150})}),C(wi,{children:X(Ln,{sx:{pt:.5},children:[C(CP,{width:"60%"}),C(CP,{})]})})]})},t))}),lSt=({children:e})=>{const[t]=qe(),[n,r]=v.useState(!1),o=i=>()=>{r(i)};return X(Mt,{children:[C(yt,{onClick:o(!0),children:C(nyt,{})}),X(DOe,{open:n,onClose:o(!1),anchor:"right",children:[X(Gt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:t("filters")}),C(yt,{onClick:o(!1),children:C(mS,{})})]}),C(Qa,{}),e]})]})},cSt=()=>{const[e,t]=qe();return X(Ln,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{gutterBottom:!0,variant:"h4",component:"div",children:e("exercises.missingExercise")}),C(ut,{gutterBottom:!0,variant:"body1",component:"div",children:e("exercises.missingExerciseDescription")}),C(zs,{to:Pn(wn.EXERCISE_CONTRIBUTE,t.language),children:e("exercises.contributeExercise")})]})},uSt=()=>{const e=Mse(),[t,n]=qe(),r=Qh(),{selectedCategories:o,selectedEquipment:i,selectedMuscles:a}=v.useContext(JS),s=bf("(max-width:600px)"),[l,c]=Y.useState(1),u=(y,b)=>{c(b),window.scrollTo({top:0,behavior:"smooth"})};let d=v.useMemo(()=>{let y=e.data||[];return o.length>0&&(y=y.filter(b=>o.some(x=>b.category.id===x.id))),i.length>0&&(y=y.filter(b=>b.equipment.some(x=>i.some(S=>S.id===x.id)))),a.length>0&&(y=y.filter(b=>b.muscles.some(x=>a.some(S=>S.id===x.id)))),y},[e.data,o,i,a]);const f=21,p=Math.ceil(d.length/f),m=d.slice((l-1)*f,l*f),g=y=>{r(Pn(wn.EXERCISE_DETAIL,n.language,{id:y.data.base_id}))};return C(Vu,{maxWidth:"lg",children:X(Fe,{container:!0,spacing:2,mt:2,children:[C(Fe,{size:{xs:10,sm:6},children:C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:t("exercises.exercises")})}),s?X(Mt,{children:[C(Fe,{size:{xs:2,sm:6},children:C(yt,{variant:"contained",onClick:()=>r(Pn(wn.EXERCISE_CONTRIBUTE,n.language)),children:C(Gi,{})})}),C(Fe,{flexGrow:1,size:{sm:6},children:C(kL,{callback:g})}),C(Fe,{display:"flex",justifyContent:"center",alignItems:"center",size:{xs:2,sm:6},children:X(lSt,{children:[C(Zxt,{}),C(tSt,{}),C(oSt,{})]})})]}):X(Mt,{children:[C(Fe,{size:{xs:12,sm:3},children:C(kL,{callback:g})}),C(Fe,{size:{xs:12,sm:3},children:C(yt,{variant:"contained",startIcon:C(Gi,{}),onClick:()=>r(Pn(wn.EXERCISE_CONTRIBUTE,n.language)),children:t("exercises.contributeExercise")})})]}),!s&&C(Fe,{size:{xs:12,sm:3},children:X(Fe,{container:!0,spacing:1,children:[C(Fe,{size:{xs:6,sm:12},children:C(eSt,{})}),C(Fe,{size:{xs:6,sm:12},children:C(nSt,{})}),C(Fe,{size:12,children:C(iSt,{})})]})}),X(Fe,{size:{xs:12,sm:9},children:[e.isLoading?C(sSt,{}):X(Mt,{children:[C(aSt,{exercises:m}),C(Gt,{spacing:2,alignItems:"center",sx:{mt:2},children:C(Xke,{count:p,color:"primary",page:l,onChange:u})})]}),C(cSt,{})]})]})})},_7=()=>{const[e,t]=v.useState([]),[n,r]=v.useState([]),[o,i]=Y.useState([]);return C(JS.Provider,{value:{selectedEquipment:e,setSelectedEquipment:t,selectedMuscles:n,setSelectedMuscles:r,selectedCategories:o,setSelectedCategories:i},children:C(uSt,{})})},XC=['"Open Sans Bold"',"sans-serif"].join(","),dSt=['"Open Sans Light"',"sans-serif"].join(","),tle={spacing:8,typography:{h3:{fontFamily:XC},h4:{fontFamily:XC},h5:{fontFamily:XC},h6:{fontFamily:XC},fontFamily:dSt},palette:{primary:{main:"#2A4C7D"},secondary:{main:"#e63946"},warning:{main:"#cba328"},info:{main:"#457b9d"},success:{main:"#307916"}}},Uf=rS(tle),fSt=e=>rS({...tle,components:{MuiPopover:{defaultProps:{container:e}},MuiPopper:{defaultProps:{container:e}},MuiModal:{defaultProps:{container:e}}}}),nle=e=>{const{i18n:t}=qe(),n=30,r=[...e.category.entries].sort((o,i)=>o.date.getTime()-i.date.getTime()).map(o=>({date:o.date.getTime(),value:o.value,entry:o}));return C(Ln,{alignItems:"center",display:"flex",flexDirection:"column",children:C(Nf,{width:"90%",height:200,children:X(Gre,{data:r,children:[C(Kv,{type:"monotone",dataKey:"value",stroke:Uf.palette.secondary.main,strokeWidth:2,dot:r.length>n?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6}}),C(jh,{stroke:"#ccc",strokeDasharray:"5 5"}),C(sl,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:o=>new Date(o).toLocaleDateString(t.language),tickCount:10}),C(ll,{domain:["auto","auto"],unit:e.category.unit})]})})})},rle=({category:e,closeFn:t})=>{const[n]=qe(),r=wxt(),o=xxt(e==null?void 0:e.id),i=dl({name:Nc().required(n("forms.fieldRequired")).max(20,n("forms.maxLength",{chars:"20"})).min(3,n("forms.minLength",{chars:"3"})),unit:Nc().required(n("forms.fieldRequired")).max(5,n("forms.maxLength",{chars:"5"}))});return C(cl,{initialValues:{name:e?e.name:"",unit:e?e.unit:""},validationSchema:i,onSubmit:async a=>{e?o.mutate({...a,id:e.id}):r.mutate(a),t&&t()},children:a=>C(as,{children:X(Gt,{spacing:2,children:[C(gn,{fullWidth:!0,id:"name",label:n("name"),error:a.touched.name&&!!a.touched.name,helperText:a.touched.name&&a.errors.name,...a.getFieldProps("name")}),C(gn,{fullWidth:!0,id:"unit",label:n("unit"),error:a.touched.unit&&!!a.errors.unit,helperText:a.touched.unit&&a.errors.unit?a.errors.unit:n("measurements.unitFormHelpText"),...a.getFieldProps("unit")}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})};Br.defaultZone=U2e;const ole=({entry:e,closeFn:t,categoryId:n})=>{const[r,o]=qe(),i=Cxt(),a=Xse(),s=Yse(n),[l,c]=Y.useState(e?It.fromJSDate(e.date):It.now()),u=dl({value:sa().required(r("forms.fieldRequired")).min(0,r("forms.minValue",{value:"0"})).max(1e3,r("forms.maxValue",{value:"1000"})),date:US().required(r("forms.fieldRequired")),notes:Nc().max(500,r("forms.maxLength",{value:"500"}))});return C(cl,{initialValues:{value:e?e.value:0,date:e?e.date:new Date,notes:e?e.notes:""},validationSchema:u,onSubmit:async d=>{e?a.mutate({...d,id:e.id}):i.mutate({...d,categoryId:n}),t&&t()},children:d=>C(as,{children:X(Gt,{spacing:2,children:[C(gn,{fullWidth:!0,id:"value",type:"number",label:r("value"),error:d.touched.value&&!!d.errors.value,helperText:d.touched.value&&d.errors.value,...d.getFieldProps("value")}),s.isLoading?C(bo,{}):C(RS,{dateAdapter:Ok,adapterLocale:o.language,children:C(joe,{format:"yyyy-MM-dd",label:r("date"),value:l,disableFuture:!0,onChange:f=>{f&&d.setFieldValue("date",f.toJSDate()),c(f)},shouldDisableDate:f=>e&&ni(e.date)===ni(f.toJSDate())?!1:f?s.data.entries.some(p=>ni(p.date)===ni(f.toJSDate())):!1})}),C(gn,{fullWidth:!0,id:"notes",label:r("notes"),multiline:!0,error:d.touched.notes&&!!d.errors.notes,helperText:d.touched.notes&&d.errors.notes,...d.getFieldProps("notes")}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:r("submit")})})]})})})},pSt=()=>{const[e]=qe(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Rh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Gi,{})}),C(Yi,{title:e("add"),isOpen:t,closeFn:o,children:C(rle,{closeFn:o})})]})},hSt=()=>{const[e]=qe(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1),i=Jh(),a=parseInt(i.categoryId);return X(Mt,{children:[C(Rh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:s=>s.spacing(2),zIndex:9},children:C(Gi,{})}),C(Yi,{title:e("add"),isOpen:t,closeFn:o,children:C(ole,{closeFn:o,categoryId:a})})]})},ile=v.createContext(void 0);function sn(){const e=v.useContext(ile);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e}const ale=v.createContext(void 0),wt=()=>{const e=v.useContext(ale);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},mSt=parseInt(v.version,10),$n=e=>{if(mSt>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return v.forwardRef(e)},gSt=Object.is;function sle(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!gSt(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function Wf(e){return v.memo(e,sle)}const ySt={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Sn(e){return _e("MuiDataGrid",e)}const ae=Le("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),L7=1e3;class vSt{constructor(t=L7){this.timeouts=new Map,this.cleanupTimeout=L7,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class bSt{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var Xs=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(Xs||{});class wSt{}function xSt(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new bSt:new vSt);const[s]=v.useState(new wSt),l=v.useRef(null),c=v.useRef();c.current=i;const u=v.useRef(null);if(!l.current&&c.current){const d=(f,p,m)=>{var g;p.defaultMuiPrevented||(g=c.current)==null||g.call(c,f,p,m)};l.current=r.current.subscribeEvent(o,d,a),t+=1,u.current={cleanupToken:t},e.registry.register(s,()=>{var f;(f=l.current)==null||f.call(l),l.current=null,u.current=null},u.current)}else!c.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));v.useEffect(()=>{if(!l.current&&c.current){const d=(f,p,m)=>{var g;p.defaultMuiPrevented||(g=c.current)==null||g.call(c,f,p,m)};l.current=r.current.subscribeEvent(o,d,a)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,o,a])}}const SSt={registry:null},gt=xSt(SSt),CSt={isFirst:!0};function lr(e,t,n){gt(e,t,n,CSt)}function PSt(e){return e.acceptsApiRef}function N7(e,t){return PSt(t)?t(e):t(e.current.state)}const ESt=Object.is,lle=sle,TSt=()=>({state:null,equals:null,selector:null,args:null}),Ye=(e,t,n=ESt)=>{const r=Jl(TSt),o=r.current.selector!==null,[i,a]=v.useState(o?null:N7(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,DO(()=>e.current.store.subscribe(()=>{const s=N7(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i},Ci=e=>e.dimensions;var XT=Symbol("NOT_FOUND");function OSt(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ISt(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function kSt(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var F7=e=>Array.isArray(e)?e:[e];function MSt(e){const t=Array.isArray(e[0])?e[0]:e;return kSt(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ASt(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function $St(e){let t;return{get(n){return t&&e(t.key,n)?t.value:XT},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function RSt(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return XT}function o(s,l){r(s)===XT&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var DSt=(e,t)=>e===t;function _St(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function cle(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=DSt,maxSize:o=1,resultEqualityCheck:i}=n,a=_St(r);let s=0;const l=o<=1?$St(a):RSt(o,a);function c(){let u=l.get(arguments);if(u===XT){if(u=e.apply(null,arguments),s++,i){const f=l.getEntries().find(p=>i(p.value,u));f&&(u=f.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var LSt=class{constructor(e){this.value=e}deref(){return this.value}},NSt=typeof WeakRef<"u"?WeakRef:LSt,FSt=0,j7=1;function QC(){return{s:FSt,v:void 0,o:null,p:null}}function ule(e,t={}){let n=QC();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var d;let s=n;const{length:l}=arguments;for(let f=0,p=l;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const y=g.get(m);y===void 0?(s=QC(),g.set(m,s)):s=y}else{let g=s.p;g===null&&(s.p=g=new Map);const y=g.get(m);y===void 0?(s=QC(),g.set(m,s)):s=y}}const c=s;let u;if(s.s===j7)u=s.v;else if(u=e.apply(null,arguments),i++,r){const f=((d=o==null?void 0:o.deref)==null?void 0:d.call(o))??o;f!=null&&r(f,u)&&(u=f,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new NSt(u):u}return c.s=j7,c.v=u,u}return a.clearCache=()=>{n=QC(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function dle(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),OSt(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=ule,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,y=F7(f),b=F7(m),x=MSt(o),S=d(function(){return i++,c.apply(null,arguments)},...y),P=p(function(){a++;const T=ASt(x,arguments);return s=S.apply(null,T),s},...b);return Object.assign(P,{resultFunc:c,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var jSt=dle(ule),BSt=Object.assign((e,t=jSt)=>{ISt(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>BSt});const zSt=dle({memoize:cle,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),B7=new WeakMap;function eg(e){return"current"in e&&"instanceId"in e.current}const tg={id:"default"},Dt=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,c)=>{const u=eg(l),d=c??(u?l.current.instanceId:tg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d),y=r(f,d),b=o(f,d);return i(p,m,g,y,b)};else if(e&&t&&n&&r&&o)s=(l,c)=>{const u=eg(l),d=c??(u?l.current.instanceId:tg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d),y=r(f,d);return o(p,m,g,y)};else if(e&&t&&n&&r)s=(l,c)=>{const u=eg(l),d=c??(u?l.current.instanceId:tg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d);return r(p,m,g)};else if(e&&t&&n)s=(l,c)=>{const u=eg(l),d=c??(u?l.current.instanceId:tg),f=u?l.current.state:l,p=e(f,d),m=t(f,d);return n(p,m)};else if(e&&t)s=(l,c)=>{const u=eg(l),d=c??(u?l.current.instanceId:tg),f=u?l.current.state:l,p=e(f,d);return t(p)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},rr=(...e)=>{const t=(n,r)=>{const o=eg(n),i=o?n.current.instanceId:r??tg,a=o?n.current.state:n,s=B7.get(i),l=s??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(a,i);const u=zSt(...e);return s||B7.set(i,l),l.set(e,u),u(a,i)};return t.acceptsApiRef=!0,t},VSt=.7,HSt=1.3,USt={compact:VSt,comfortable:HSt,standard:1},Ig=e=>e.density,ZS=Dt(Ig,e=>USt[e]);let ur=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const ML={left:[],right:[]},WSt=e=>e.isRtl,Ac=e=>e.columns,Iu=Dt(Ac,e=>e.orderedFields),od=Dt(Ac,e=>e.lookup),Ul=rr(Iu,od,(e,t)=>e.map(n=>t[n])),Vs=Dt(Ac,e=>e.columnVisibilityModel),ho=rr(Ul,Vs,(e,t)=>e.filter(n=>t[n.field]!==!1)),lb=rr(ho,e=>e.map(t=>t.field)),GSt=e=>e.pinnedColumns,e1=rr(Ac,GSt,lb,WSt,(e,t,n,r)=>{const o=qSt(t,n,r);return{left:o.left.map(a=>e.lookup[a]),right:o.right.map(a=>e.lookup[a])}});function qSt(e,t,n){var s,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((s=e.left)==null?void 0:s.length)===0&&((l=e.right)==null?void 0:l.length)===0)return ML;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),i=t.filter(c=>!o.includes(c)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const Gf=rr(ho,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),uz=Dt(ho,Gf,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),fle=rr(Ul,e=>e.filter(t=>t.filterable)),KSt=rr(Ul,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),YSt=rr(Ul,e=>e.some(t=>t.colSpan!==void 0)),XSt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],QSt=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},Sn,t)},JSt=ie(wv,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>D({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),ZSt=$n((e,t)=>{const n=wt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=Ue(e,XSt),f=sn(),p=v.useRef(),[m,g]=v.useState(o),y=QSt(n),b=v.useCallback(async S=>{const P=S.target.value;u&&await u(S,P);const E=f.current.getColumn(i);let T=P;E.valueParser&&(T=E.valueParser(P,f.current.getRow(r),E,f)),g(T),f.current.setEditCellValue({id:r,field:i,value:T,debounceMs:l,unstable_skipValueParser:!0},S)},[f,l,i,r,u]),x=f.current.unstable_getEditCellMeta(r,i);return v.useEffect(()=>{(x==null?void 0:x.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[x,o]),xn(()=>{s&&p.current.focus()},[s]),$.jsx(JSt,D({inputRef:p,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:b,endAdornment:c?$.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d,{ref:t}))}),e1t=e=>$.jsx(ZSt,D({},e)),ple=(e,t)=>t&&e.length>1?[e[0]]:e,z7=(e,t)=>n=>D({},n,{sorting:D({},n.sorting,{sortModel:ple(e,t)})}),t1t=e=>e==="desc",n1t=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=t1t(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},r1t=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),o1t=(e,t)=>{const n=e.map(r=>n1t(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>r1t(n,o,i)).map(o=>o.node.id)},V7=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},dz=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,i1t=new Intl.Collator,a1t=(e,t)=>{const n=dz(e,t);return n!==null?n:typeof e=="string"?i1t.compare(e.toString(),t.toString()):e-t},hle=(e,t)=>{const n=dz(e,t);return n!==null?n:Number(e)-Number(t)},mle=(e,t)=>{const n=dz(e,t);return n!==null?n:e>t?1:e<t?-1:0},s1t=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function _s(e){var P;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:s,clearButton:l,InputProps:c,variant:u="standard"}=e,d=Ue(e,s1t),f=la(),[p,m]=v.useState(dR(t.value,r)),[g,y]=v.useState(!1),b=_n(),x=wt(),S=v.useCallback(E=>{const T=dR(E.target.value,r);m(T),y(!0),f.start(x.filterDebounceMs,()=>{const O=D({},t,{value:T,fromInput:b});n(O),y(!1)})},[f,x.filterDebounceMs,t,r,b,n]);return v.useEffect(()=>{(t.fromInput!==b||t.value==null)&&m(dR(t.value,r))},[b,t,r]),$.jsx(x.slots.baseTextField,D({id:b,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:p===void 0?"":String(p),onChange:S,variant:u,type:r||"text",InputProps:D({},g||l?{endAdornment:g?$.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:s},c,{inputProps:D({tabIndex:a},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},d,(P=x.slotProps)==null?void 0:P.baseTextField))}function dR(e,t){if(!(e==null||e===""))return t==="number"?Number(e):String(e)}function l1t(e){return typeof e=="number"&&!Number.isNaN(e)}function gle(e){return typeof e=="function"}function fz(e){return typeof e=="object"&&e!==null}function c1t(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function QT(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const $c=(e,t,n)=>Math.max(t,Math.min(n,e));function H7(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Qg(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Qg(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!Qg(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Qg(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function u1t(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function d1t(e){const t=u1t(e);return(n,r)=>n+(r-n)*t()}function yle(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const f1t=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],p1t=["key"];function vle(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:c,variant:u="standard"}=e,d=Ue(e,f1t),f={color:a,error:s,helperText:l,size:c,variant:u},[p,m]=v.useState(t.value||[]),g=_n(),y=wt();v.useEffect(()=>{const x=t.value??[];m(x.map(String))},[t.value]);const b=v.useCallback((x,S)=>{m(S.map(String)),n(D({},t,{value:[...S.map(P=>r==="number"?Number(P):P)]}))},[n,t,r]);return $.jsx(Kl,D({multiple:!0,freeSolo:!0,options:[],filterOptions:(x,S)=>{const{inputValue:P}=S;return P==null||P===""?[]:[P]},id:g,value:p,onChange:b,renderTags:(x,S)=>x.map((P,E)=>{const T=S({index:E}),{key:O}=T,k=Ue(T,p1t);return $.jsx(y.slots.baseChip,D({variant:"outlined",size:"small",label:P},k),O)}),renderInput:x=>{var S;return $.jsx(y.slots.baseTextField,D({},x,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:D({},x.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(S=y.slotProps)==null?void 0:S.baseTextField))}},d))}var Fc=function(e){return e.Cell="cell",e.Row="row",e}(Fc||{}),Zn=function(e){return e.Edit="edit",e.View="view",e}(Zn||{}),Vn=function(e){return e.Edit="edit",e.View="view",e}(Vn||{}),_i=function(e){return e.And="and",e.Or="or",e}(_i||{}),lu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(lu||{}),Tl=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Tl||{}),Ed=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Ed||{}),Pl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Pl||{});function ble(e){return e.field!==void 0}const Fx=()=>({items:[],logicOperator:_i.And,quickFilterValues:[],quickFilterLogicOperator:_i.And});function wle(e){return{current:e.current.getPublicApi()}}let f0;function h1t(){if(f0!==void 0)return f0;try{f0=new Function("return true")()}catch{f0=!1}return f0}const AL=(e,t)=>{const n=D({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=od(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},pz=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(s=>s.id==null);return o.some(s=>s.operator==null)||i?D({},e,{items:o.map(s=>AL(s,n))}):e.items!==o?D({},e,{items:o}):e},U7=(e,t,n)=>r=>D({},r,{filterModel:pz(e,t,n)}),jx=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,xle=(e,t)=>{var u;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const d=n.valueParser;r=Array.isArray(e.value)?(u=e.value)==null?void 0:u.map(f=>d(f,void 0,n,t)):d(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=jx(r));const i=D({},e,{value:r}),a=n.filterOperators;if(!(a!=null&&a.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const s=a.find(d=>d.value===i.operator);if(!s)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const l=wle(t),c=s.getApplyFilterFn(i,n);return typeof c!="function"?null:{item:i,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=jx(f)),c(f,d,n,l)}}};let W7=1;const m1t=(e,t,n)=>{const{items:r}=e,o=r.map(s=>xle(s,t)).filter(s=>!!s);if(o.length===0)return null;if(n||!h1t())return(s,l)=>{const c={};for(let u=0;u<o.length;u+=1){const d=o[u];(!l||l(d.item.field))&&(c[d.item.id]=d.fn(s))}return c};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
+`)+Xe+`return __p
+}`;var fn=UH(function(){return qn(te,Dt+"return "+Xe).apply(n,he)});if(fn.source=Xe,jA(fn))throw fn;return fn}function Jge(h){return Qn(h).toLowerCase()}function Zge(h){return Qn(h).toUpperCase()}function eye(h,w,A){if(h=Qn(h),h&&(A||w===n))return ZV(h);if(!h||!(w=$a(w)))return h;var H=Tl(h),q=Tl(w),te=e5(H,q),he=t5(H,q)+1;return Id(H,te,he).join("")}function tye(h,w,A){if(h=Qn(h),h&&(A||w===n))return h.slice(0,r5(h)+1);if(!h||!(w=$a(w)))return h;var H=Tl(h),q=t5(H,Tl(w))+1;return Id(H,0,q).join("")}function nye(h,w,A){if(h=Qn(h),h&&(A||w===n))return h.replace(fp,"");if(!h||!(w=$a(w)))return h;var H=Tl(h),q=e5(H,Tl(w));return Id(H,q).join("")}function rye(h,w){var A=I,H=R;if(jr(w)){var q="separator"in w?w.separator:q;A="length"in w?cn(w.length):A,H="omission"in w?$a(w.omission):H}h=Qn(h);var te=h.length;if(Om(h)){var he=Tl(h);te=he.length}if(A>=te)return h;var ye=A-Im(H);if(ye<1)return H;var Ee=he?Id(he,0,ye).join(""):h.slice(0,ye);if(q===n)return Ee+H;if(he&&(ye+=Ee.length-ye),BA(q)){if(h.slice(ye).search(q)){var qe,Ke=Ee;for(q.global||(q=nA(q.source,Qn(Ne.exec(q))+"g")),q.lastIndex=0;qe=q.exec(Ke);)var Xe=qe.index;Ee=Ee.slice(0,Xe===n?ye:Xe)}}else if(h.indexOf($a(q),ye)!=ye){var ht=Ee.lastIndexOf(q);ht>-1&&(Ee=Ee.slice(0,ht))}return Ee+H}function oye(h){return h=Qn(h),h&&To.test(h)?h.replace(Bn,Rde):h}var iye=_m(function(h,w,A){return h+(A?" ":"")+w.toUpperCase()}),HA=W5("toUpperCase");function HH(h,w,A){return h=Qn(h),w=A?n:w,w===n?Ide(h)?Lde(h):bde(h):h.match(w)||[]}var UH=vn(function(h,w){try{return Ma(h,n,w)}catch(A){return jA(A)?A:new Kt(A)}}),aye=uu(function(h,w){return vs(w,function(A){A=mc(A),lu(h,A,NA(h[A],h))}),h});function sye(h){var w=h==null?0:h.length,A=jt();return h=w?_r(h,function(H){if(typeof H[1]!="function")throw new bs(a);return[A(H[0]),H[1]]}):[],vn(function(H){for(var q=-1;++q<w;){var te=h[q];if(Ma(te[0],this,H))return Ma(te[1],this,H)}})}function lye(h){return Rfe(xs(h,d))}function UA(h){return function(){return h}}function cye(h,w){return h==null||h!==h?w:h}var uye=q5(),dye=q5(!0);function aa(h){return h}function WA(h){return C5(typeof h=="function"?h:xs(h,d))}function fye(h){return E5(xs(h,d))}function pye(h,w){return T5(h,xs(w,d))}var hye=vn(function(h,w){return function(A){return Kb(A,h,w)}}),mye=vn(function(h,w){return function(A){return Kb(h,A,w)}});function GA(h,w,A){var H=Bo(w),q=X1(w,H);A==null&&!(jr(w)&&(q.length||!H.length))&&(A=w,w=h,h=this,q=X1(w,Bo(w)));var te=!(jr(A)&&"chain"in A)||!!A.chain,he=fu(h);return vs(q,function(ye){var Ee=w[ye];h[ye]=Ee,he&&(h.prototype[ye]=function(){var qe=this.__chain__;if(te||qe){var Ke=h(this.__wrapped__),Xe=Ke.__actions__=ra(this.__actions__);return Xe.push({func:Ee,args:arguments,thisArg:h}),Ke.__chain__=qe,Ke}return Ee.apply(h,Sd([this.value()],arguments))})}),h}function gye(){return ei._===this&&(ei._=Vde),this}function qA(){}function yye(h){return h=cn(h),vn(function(w){return O5(w,h)})}var vye=PA(_r),bye=PA(KV),wye=PA(YM);function WH(h){return AA(h)?XM(mc(h)):Xfe(h)}function xye(h){return function(w){return h==null?n:wp(h,w)}}var Sye=Y5(),Cye=Y5(!0);function KA(){return[]}function YA(){return!1}function Pye(){return{}}function Eye(){return""}function Tye(){return!0}function Oye(h,w){if(h=cn(h),h<1||h>z)return[];var A=G,H=mi(h,G);w=jt(w),h-=G;for(var q=ZM(H,w);++A<h;)w(A);return q}function Iye(h){return en(h)?_r(h,mc):Ra(h)?[h]:ra(dH(Qn(h)))}function kye(h){var w=++Bde;return Qn(h)+w}var Mye=nC(function(h,w){return h+w},0),Aye=EA("ceil"),$ye=nC(function(h,w){return h/w},1),Rye=EA("floor");function Dye(h){return h&&h.length?Y1(h,aa,uA):n}function _ye(h,w){return h&&h.length?Y1(h,jt(w,2),uA):n}function Lye(h){return QV(h,aa)}function Nye(h,w){return QV(h,jt(w,2))}function Fye(h){return h&&h.length?Y1(h,aa,hA):n}function jye(h,w){return h&&h.length?Y1(h,jt(w,2),hA):n}var Bye=nC(function(h,w){return h*w},1),zye=EA("round"),Vye=nC(function(h,w){return h-w},0);function Hye(h){return h&&h.length?JM(h,aa):0}function Uye(h,w){return h&&h.length?JM(h,jt(w,2)):0}return Z.after=fme,Z.ary=SH,Z.assign=Zme,Z.assignIn=LH,Z.assignInWith=mC,Z.assignWith=ege,Z.at=tge,Z.before=CH,Z.bind=NA,Z.bindAll=aye,Z.bindKey=PH,Z.castArray=Pme,Z.chain=bH,Z.chunk=Rpe,Z.compact=Dpe,Z.concat=_pe,Z.cond=sye,Z.conforms=lye,Z.constant=UA,Z.countBy=Hhe,Z.create=nge,Z.curry=EH,Z.curryRight=TH,Z.debounce=OH,Z.defaults=rge,Z.defaultsDeep=oge,Z.defer=pme,Z.delay=hme,Z.difference=Lpe,Z.differenceBy=Npe,Z.differenceWith=Fpe,Z.drop=jpe,Z.dropRight=Bpe,Z.dropRightWhile=zpe,Z.dropWhile=Vpe,Z.fill=Hpe,Z.filter=Whe,Z.flatMap=Khe,Z.flatMapDeep=Yhe,Z.flatMapDepth=Xhe,Z.flatten=mH,Z.flattenDeep=Upe,Z.flattenDepth=Wpe,Z.flip=mme,Z.flow=uye,Z.flowRight=dye,Z.fromPairs=Gpe,Z.functions=dge,Z.functionsIn=fge,Z.groupBy=Qhe,Z.initial=Kpe,Z.intersection=Ype,Z.intersectionBy=Xpe,Z.intersectionWith=Qpe,Z.invert=hge,Z.invertBy=mge,Z.invokeMap=Zhe,Z.iteratee=WA,Z.keyBy=eme,Z.keys=Bo,Z.keysIn=ia,Z.map=cC,Z.mapKeys=yge,Z.mapValues=vge,Z.matches=fye,Z.matchesProperty=pye,Z.memoize=dC,Z.merge=bge,Z.mergeWith=NH,Z.method=hye,Z.methodOf=mye,Z.mixin=GA,Z.negate=fC,Z.nthArg=yye,Z.omit=wge,Z.omitBy=xge,Z.once=gme,Z.orderBy=tme,Z.over=vye,Z.overArgs=yme,Z.overEvery=bye,Z.overSome=wye,Z.partial=FA,Z.partialRight=IH,Z.partition=nme,Z.pick=Sge,Z.pickBy=FH,Z.property=WH,Z.propertyOf=xye,Z.pull=the,Z.pullAll=yH,Z.pullAllBy=nhe,Z.pullAllWith=rhe,Z.pullAt=ohe,Z.range=Sye,Z.rangeRight=Cye,Z.rearg=vme,Z.reject=ime,Z.remove=ihe,Z.rest=bme,Z.reverse=_A,Z.sampleSize=sme,Z.set=Pge,Z.setWith=Ege,Z.shuffle=lme,Z.slice=ahe,Z.sortBy=dme,Z.sortedUniq=phe,Z.sortedUniqBy=hhe,Z.split=Kge,Z.spread=wme,Z.tail=mhe,Z.take=ghe,Z.takeRight=yhe,Z.takeRightWhile=vhe,Z.takeWhile=bhe,Z.tap=Dhe,Z.throttle=xme,Z.thru=lC,Z.toArray=RH,Z.toPairs=jH,Z.toPairsIn=BH,Z.toPath=Iye,Z.toPlainObject=_H,Z.transform=Tge,Z.unary=Sme,Z.union=whe,Z.unionBy=xhe,Z.unionWith=She,Z.uniq=Che,Z.uniqBy=Phe,Z.uniqWith=Ehe,Z.unset=Oge,Z.unzip=LA,Z.unzipWith=vH,Z.update=Ige,Z.updateWith=kge,Z.values=Fm,Z.valuesIn=Mge,Z.without=The,Z.words=HH,Z.wrap=Cme,Z.xor=Ohe,Z.xorBy=Ihe,Z.xorWith=khe,Z.zip=Mhe,Z.zipObject=Ahe,Z.zipObjectDeep=$he,Z.zipWith=Rhe,Z.entries=jH,Z.entriesIn=BH,Z.extend=LH,Z.extendWith=mC,GA(Z,Z),Z.add=Mye,Z.attempt=UH,Z.camelCase=Dge,Z.capitalize=zH,Z.ceil=Aye,Z.clamp=Age,Z.clone=Eme,Z.cloneDeep=Ome,Z.cloneDeepWith=Ime,Z.cloneWith=Tme,Z.conformsTo=kme,Z.deburr=VH,Z.defaultTo=cye,Z.divide=$ye,Z.endsWith=_ge,Z.eq=Il,Z.escape=Lge,Z.escapeRegExp=Nge,Z.every=Uhe,Z.find=Ghe,Z.findIndex=pH,Z.findKey=ige,Z.findLast=qhe,Z.findLastIndex=hH,Z.findLastKey=age,Z.floor=Rye,Z.forEach=wH,Z.forEachRight=xH,Z.forIn=sge,Z.forInRight=lge,Z.forOwn=cge,Z.forOwnRight=uge,Z.get=zA,Z.gt=Mme,Z.gte=Ame,Z.has=pge,Z.hasIn=VA,Z.head=gH,Z.identity=aa,Z.includes=Jhe,Z.indexOf=qpe,Z.inRange=$ge,Z.invoke=gge,Z.isArguments=Cp,Z.isArray=en,Z.isArrayBuffer=$me,Z.isArrayLike=oa,Z.isArrayLikeObject=oo,Z.isBoolean=Rme,Z.isBuffer=kd,Z.isDate=Dme,Z.isElement=_me,Z.isEmpty=Lme,Z.isEqual=Nme,Z.isEqualWith=Fme,Z.isError=jA,Z.isFinite=jme,Z.isFunction=fu,Z.isInteger=kH,Z.isLength=pC,Z.isMap=MH,Z.isMatch=Bme,Z.isMatchWith=zme,Z.isNaN=Vme,Z.isNative=Hme,Z.isNil=Wme,Z.isNull=Ume,Z.isNumber=AH,Z.isObject=jr,Z.isObjectLike=Kr,Z.isPlainObject=e0,Z.isRegExp=BA,Z.isSafeInteger=Gme,Z.isSet=$H,Z.isString=hC,Z.isSymbol=Ra,Z.isTypedArray=Nm,Z.isUndefined=qme,Z.isWeakMap=Kme,Z.isWeakSet=Yme,Z.join=Jpe,Z.kebabCase=Fge,Z.last=Cs,Z.lastIndexOf=Zpe,Z.lowerCase=jge,Z.lowerFirst=Bge,Z.lt=Xme,Z.lte=Qme,Z.max=Dye,Z.maxBy=_ye,Z.mean=Lye,Z.meanBy=Nye,Z.min=Fye,Z.minBy=jye,Z.stubArray=KA,Z.stubFalse=YA,Z.stubObject=Pye,Z.stubString=Eye,Z.stubTrue=Tye,Z.multiply=Bye,Z.nth=ehe,Z.noConflict=gye,Z.noop=qA,Z.now=uC,Z.pad=zge,Z.padEnd=Vge,Z.padStart=Hge,Z.parseInt=Uge,Z.random=Rge,Z.reduce=rme,Z.reduceRight=ome,Z.repeat=Wge,Z.replace=Gge,Z.result=Cge,Z.round=zye,Z.runInContext=Se,Z.sample=ame,Z.size=cme,Z.snakeCase=qge,Z.some=ume,Z.sortedIndex=she,Z.sortedIndexBy=lhe,Z.sortedIndexOf=che,Z.sortedLastIndex=uhe,Z.sortedLastIndexBy=dhe,Z.sortedLastIndexOf=fhe,Z.startCase=Yge,Z.startsWith=Xge,Z.subtract=Vye,Z.sum=Hye,Z.sumBy=Uye,Z.template=Qge,Z.times=Oye,Z.toFinite=pu,Z.toInteger=cn,Z.toLength=DH,Z.toLower=Jge,Z.toNumber=Ps,Z.toSafeInteger=Jme,Z.toString=Qn,Z.toUpper=Zge,Z.trim=eye,Z.trimEnd=tye,Z.trimStart=nye,Z.truncate=rye,Z.unescape=oye,Z.uniqueId=kye,Z.upperCase=iye,Z.upperFirst=HA,Z.each=wH,Z.eachRight=xH,Z.first=gH,GA(Z,function(){var h={};return pc(Z,function(w,A){nr.call(Z.prototype,A)||(h[A]=w)}),h}(),{chain:!1}),Z.VERSION=r,vs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){Z[h].placeholder=Z}),vs(["drop","take"],function(h,w){On.prototype[h]=function(A){A=A===n?1:Mo(cn(A),0);var H=this.__filtered__&&!w?new On(this):this.clone();return H.__filtered__?H.__takeCount__=mi(A,H.__takeCount__):H.__views__.push({size:mi(A,G),type:h+(H.__dir__<0?"Right":"")}),H},On.prototype[h+"Right"]=function(A){return this.reverse()[h](A).reverse()}}),vs(["filter","map","takeWhile"],function(h,w){var A=w+1,H=A==j||A==F;On.prototype[h]=function(q){var te=this.clone();return te.__iteratees__.push({iteratee:jt(q,3),type:A}),te.__filtered__=te.__filtered__||H,te}}),vs(["head","last"],function(h,w){var A="take"+(w?"Right":"");On.prototype[h]=function(){return this[A](1).value()[0]}}),vs(["initial","tail"],function(h,w){var A="drop"+(w?"":"Right");On.prototype[h]=function(){return this.__filtered__?new On(this):this[A](1)}}),On.prototype.compact=function(){return this.filter(aa)},On.prototype.find=function(h){return this.filter(h).head()},On.prototype.findLast=function(h){return this.reverse().find(h)},On.prototype.invokeMap=vn(function(h,w){return typeof h=="function"?new On(this):this.map(function(A){return Kb(A,h,w)})}),On.prototype.reject=function(h){return this.filter(fC(jt(h)))},On.prototype.slice=function(h,w){h=cn(h);var A=this;return A.__filtered__&&(h>0||w<0)?new On(A):(h<0?A=A.takeRight(-h):h&&(A=A.drop(h)),w!==n&&(w=cn(w),A=w<0?A.dropRight(-w):A.take(w-h)),A)},On.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},On.prototype.toArray=function(){return this.take(G)},pc(On.prototype,function(h,w){var A=/^(?:filter|find|map|reject)|While$/.test(w),H=/^(?:head|last)$/.test(w),q=Z[H?"take"+(w=="last"?"Right":""):w],te=H||/^find/.test(w);q&&(Z.prototype[w]=function(){var he=this.__wrapped__,ye=H?[1]:arguments,Ee=he instanceof On,qe=ye[0],Ke=Ee||en(he),Xe=function(Pn){var Mn=q.apply(Z,Sd([Pn],ye));return H&&ht?Mn[0]:Mn};Ke&&A&&typeof qe=="function"&&qe.length!=1&&(Ee=Ke=!1);var ht=this.__chain__,Dt=!!this.__actions__.length,Vt=te&&!ht,fn=Ee&&!Dt;if(!te&&Ke){he=fn?he:new On(this);var Ht=h.apply(he,ye);return Ht.__actions__.push({func:lC,args:[Xe],thisArg:n}),new ws(Ht,ht)}return Vt&&fn?h.apply(this,ye):(Ht=this.thru(Xe),Vt?H?Ht.value()[0]:Ht.value():Ht)})}),vs(["pop","push","shift","sort","splice","unshift"],function(h){var w=D1[h],A=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",H=/^(?:pop|shift)$/.test(h);Z.prototype[h]=function(){var q=arguments;if(H&&!this.__chain__){var te=this.value();return w.apply(en(te)?te:[],q)}return this[A](function(he){return w.apply(en(he)?he:[],q)})}}),pc(On.prototype,function(h,w){var A=Z[w];if(A){var H=A.name+"";nr.call($m,H)||($m[H]=[]),$m[H].push({name:w,func:A})}}),$m[tC(n,b).name]=[{name:"wrapper",func:n}],On.prototype.clone=ofe,On.prototype.reverse=ife,On.prototype.value=afe,Z.prototype.at=_he,Z.prototype.chain=Lhe,Z.prototype.commit=Nhe,Z.prototype.next=Fhe,Z.prototype.plant=Bhe,Z.prototype.reverse=zhe,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=Vhe,Z.prototype.first=Z.prototype.head,zb&&(Z.prototype[zb]=jhe),Z},km=Nde();mp?((mp.exports=km)._=km,WM._=km):ei._=km}).call(Oc)})(PO,PO.exports);var b1t=PO.exports;function fN({callback:e}){const[t,n]=v.useState(null),[r,o]=v.useState(""),[i,a]=v.useState(!0),[s,l]=v.useState([]),[c,u]=Ue(),d=v.useMemo(()=>yk(f=>sLe(f,u.language,i).then(p=>l(p)),200),[u.language,i]);return v.useEffect(()=>{if(r===""){l(t?[t]:[]);return}return d(r),()=>{}},[t,r,d]),X(At,{children:[C(ac,{id:"exercise-name-autocomplete",getOptionLabel:f=>f.value,"data-testid":"autocomplete",filterOptions:f=>f,options:s,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:t,noOptionsText:c("noResults"),isOptionEqualToValue:(f,p)=>f.value===p.value,onChange:(f,p)=>{l(p?[p,...s]:s),n(p),e(p)},onInputChange:(f,p)=>{o(p)},renderInput:f=>C(mn,{...f,label:c("exercises.searchExerciseName"),fullWidth:!0,InputProps:{...f.InputProps,startAdornment:X(At,{children:[C(go,{position:"start",children:C(bz,{})}),f.InputProps.startAdornment]})}}),renderOption:(f,p)=>UN("li",{...f,key:`exercise${p.data.id}`,"data-testid":`autocompleter-result-${p.data.id}`},X(ss,{disablePadding:!0,component:"div",children:[C(Ki,{children:p.data.image?C(sc,{alt:"",src:`${Ej}${p.data.image}`,variant:"rounded"}):C(fd,{fontSize:"large"})}),C(xo,{primary:p.value,primaryTypographyProps:{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},secondary:p.data.category})]}))}),u.language!==qy&&C(px,{children:C($h,{control:C(td,{checked:i,onChange:(f,p)=>a(p)}),label:c("alsoSearchEnglish")})})]})}function w1t(e){var d,f;const[t,n]=Y.useState(null),[r,o]=Y.useState(null),[i]=Ue(),a=mm(),s=()=>{o(null),n(null)},l=async()=>{var p;await cLe((p=e.currentExercise.getTranslation(e.currentLanguage))==null?void 0:p.id),e.onClose(),e.onChangeLanguage()},c=async(p=!1)=>{p?await dW(e.currentExercise.id,r==null?void 0:r.uuid):await dW(e.currentExercise.id),e.onClose(),a("../overview")},u=async p=>{const m=p!==void 0?p:t;if(m!==null)try{const g=await zS(m);o(g)}catch{o(null)}};return X(At,{children:[C(MIe,{id:"alert-dialog-title",children:i("delete")}),X(kZ,{children:[C("p",{children:i("exercises.deleteExerciseBody",{name:(d=e.currentExercise.getTranslation(e.currentLanguage))==null?void 0:d.name,language:(f=e.currentLanguage)==null?void 0:f.nameLong})}),C("p",{children:i("cannotBeUndone")}),C("p",{children:C("b",{children:i("exercises.replacements")})}),C("p",{children:i("exercises.replacementsInfoText")}),C("p",{children:i("exercises.replacementsSearch")}),C(fN,{callback:p=>{p!==null&&(n(p.data.base_id),u(p.data.base_id))}}),C(mn,{"data-testid":"exercise-id-field",id:"foo",label:"Exercise ID",onBlur:()=>u(),onChange:async p=>{n(p.target.value!==""?parseInt(p.target.value):null)},value:t??"",InputProps:{endAdornment:C(go,{position:"start",children:C(In,{onClick:()=>u(),children:C(Ibt,{})})})},fullWidth:!0,variant:"standard"}),r===null&&C(At,{children:C("p",{children:C("i",{children:i("exercises.noReplacementSelected")})})}),r!==null&&X(At,{children:[X("p",{children:["Selected exercise for replacement:",C(lc,{title:i("copyToClipboard"),children:C(In,{onClick:()=>navigator.clipboard.writeText(r.id.toString()),children:C(Rbt,{})})})]}),X(ss,{disablePadding:!0,children:[C(pj,{children:C(sc,{children:r.mainImage?C(sc,{alt:"",src:`${Ej}${r.mainImage.url}`,variant:"rounded"}):C(fd,{})})}),C(xo,{primary:r.getTranslation().name,secondary:`${r.id} (${r.uuid})`}),C(In,{onClick:s,children:C(Abt,{})})]})]})]}),X(IZ,{children:[C(yt,{onClick:()=>e.onClose(),children:i("cancel")}),C(yt,{"data-testid":"button-delete-translation",size:"small",onClick:l,variant:"contained",children:i("exercises.deleteTranslation")}),C(yt,{"data-testid":"button-delete-all",size:"small",onClick:()=>c(),variant:"contained",children:i("exercises.deleteExerciseFull")}),C(yt,{"data-testid":"button-delete-and-replace",size:"small",disabled:r===null,onClick:()=>c(!0),variant:"contained",children:i("exercises.deleteExerciseReplace")})]})]})}const x1t="_root_l288f_1",S1t="_detail_language_l288f_4",C1t="_detail_l288f_4",P1t="_detail_arrow_l288f_18",E1t="_languages_l288f_28",T1t="_language_l288f_28",O1t="_language_menu_l288f_40",I1t="_header_l288f_52",k1t="_toolbar_l288f_55",M1t="_dots_l288f_68",$p={root:x1t,detail_language:S1t,detail:C1t,detail_arrow:P1t,languages:E1t,language:T1t,language_menu:O1t,header:I1t,toolbar:k1t,dots:M1t},A1t=({exercise:e,languages:t,changeLanguage:n,language:r,setEditMode:o,editMode:i})=>{var E,T,O;const[a,s]=v.useState(null),[l,c]=Y.useState(!1),u=!!a,[d]=Ue(),f=Xd(Iu.DELETE_EXERCISE),p=Xd(Iu.EDIT_EXERCISE),m=nu(),g=m.isSuccess&&m.data===null;let y=!1;m.isSuccess&&p.isSuccess&&(y=p.data||m.data!==null&&m.data.isTrustworthy);const b=k=>{s(k.currentTarget)},x=()=>{s(null)},S=k=>{n(k),x()},P=t.map(k=>X(nn,{onClick:()=>S(k),selected:(r==null?void 0:r.id)===k.id,children:[C(xo,{children:k.nameLong}),C(Ki,{children:e.availableLanguages.includes(k.id)?C(Hbt,{}):C(Zi,{})})]},k.nameShort));return C(_e,{container:!0,children:C(_e,{size:12,children:X("div",{className:$p.root,children:[C(OZ,{open:l,onClose:()=>c(!1),children:C(w1t,{onClose:()=>c(!1),onChangeLanguage:()=>n(t[0]),currentExercise:e,currentLanguage:r})}),X("div",{className:$p.detail_language,children:[X("div",{className:$p.detail,children:[C(Xs,{to:"../overview",children:d("exercises.exercises")})," > ",(E=e.getTranslation(r))==null?void 0:E.name]}),C("div",{className:$p.languages,children:X("div",{className:$p.language,children:[C(yt,{size:"small",id:"basic-button",onClick:b,startIcon:C(g1,{}),children:r==null?void 0:r.nameLong}),X(hs,{id:"basic-menu",anchorEl:a,open:u,onClose:x,MenuListProps:{"aria-labelledby":"basic-button"},sx:{padding:20},children:[C(nn,{disabled:!0,children:d("exercises.changeExerciseLanguage")}),C(as,{}),P]})]})})]}),X("div",{className:$p.header,children:[C(ut,{gutterBottom:!0,variant:"h2",margin:0,sx:{mt:2},children:(T=e.getTranslation(r))==null?void 0:T.name}),!g&&X("nav",{className:$p.toolbar,children:[f.isSuccess&&f.data&&(r==null?void 0:r.id)===((O=e.getTranslation(r))==null?void 0:O.language)&&C(yt,{onClick:()=>c(!0),children:d("delete")}),y&&C(yt,{onClick:()=>o(!0),disabled:i,children:"EDIT"}),C(yt,{onClick:()=>o(!1),disabled:!i,children:"VIEW"})]})]}),X(Gt,{direction:"row",spacing:1,mt:2,children:[C(Ah,{label:d(Ji(e.category.name)),size:"small"}),e.equipment.map(k=>C(Ah,{label:d(Ji(k.name)),variant:"outlined",size:"small"},k.id))]})]})})})},ii=()=>C($n,{sx:{height:20}}),$1t=()=>{var m;const[e,t]=v.useState(FDe),[n,r]=v.useState(!1),o=gm(),i=o.baseID?b1t.parseInt(o.baseID):0,{i18n:a}=Ue(),s=mm(),l=xM(),c=lo({queryKey:[UDe,i],queryFn:()=>zS(i),enabled:l.isSuccess}),u=lo({queryKey:[HDe,(m=c.data)==null?void 0:m.variationId],queryFn:()=>{var g;return oLe((g=c.data)==null?void 0:g.variationId)},enabled:c.isSuccess});if(Y.useEffect(()=>{if(l.data===void 0)return;const g=XD(a.language,l.data);t(g)},[l.data]),c.isError||l.isError||u.isError)return s("/not-found"),null;const d=g=>{const y=XD(g.nameShort,l.data);y!==void 0&&t(y)},f=u.isSuccess?u.data.filter(g=>g.id!==i):[];let p;return c.isSuccess&&l.isSuccess&&(p=n?C(p1t,{exerciseId:c.data.id,language:e}):C(v1t,{exercise:c.data,language:e,variations:f,setEditMode:r})),X(At,{children:[c.isSuccess&&l.isSuccess&&C(ed,{children:C(A1t,{exercise:c.data,languages:l.data,changeLanguage:d,language:e,setEditMode:r,editMode:n})}),C(ii,{}),X(ed,{maxWidth:"lg",children:[c.isLoading&&l.isLoading&&C(Sa,{}),p]})]})};function tce(e){const[t]=Ue(),[n,r,o]=wl(e.fieldName),[i,a]=v.useState(""),s=u=>{o.setValue(n.value.filter((d,f)=>f!==u))},l=(u,d)=>{n.value[u]=d,o.setValue(n.value)},c=()=>{n.value.push(i),o.setValue(n.value),a("")};return X(At,{children:[C(_e,{size:12,children:C(mn,{fullWidth:!0,label:t("exercises.newNote"),sx:{mb:3},variant:"standard",value:i,onChange:u=>a(u.target.value),error:r.touched&&!!r.error,helperText:r.touched&&r.error?r.error:t("exercises.notesHelpText"),InputProps:{endAdornment:C(go,{position:"end",children:C(In,{onClick:c,children:C(Zi,{})})})}})}),n.value.map((u,d)=>C(mn,{fullWidth:!0,value:u,onChange:f=>l(d,f.target.value),sx:{mt:2},variant:"standard",error:r.touched&&!!r.error,InputProps:{endAdornment:C(go,{position:"end",children:C(In,{onClick:()=>s(d),children:C(Nz,{})})})}},d))]})}const R1t=({onContinue:e,onBack:t})=>{const[n]=Ue(),[r,o]=Ab(),i=xl({description:Yz(n),notes:Nle(n)});return C(bl,{initialValues:{description:r.descriptionEn,notes:r.notesEn},validationSchema:i,onSubmit:a=>{o(wSt(a.description)),o(xSt(a.notes)),e()},children:C(ms,{children:X(Gt,{children:[C(Xz,{fieldName:"description"}),C(ii,{}),C(tce,{fieldName:"notes"}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:X("div",{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})})},D1t=({onContinue:e,onBack:t})=>{const[n]=Ue(),r=xM(),[o,i]=Ab(),[a,s]=v.useState(o.languageId!==null),l=xl(a?{description:Yz(n),name:qz(n),alternativeNames:Kz(n),notes:Nle(n),language:ha().required()}:{});return C(bl,{initialValues:{name:o.nameI18n,alternativeNames:o.alternativeNamesI18n,description:o.descriptionI18n,language:o.languageId===null?"":o.languageId,notes:o.notesI18n},validationSchema:l,onSubmit:c=>{i(CSt(c.name)),i(PSt(c.description)),i(TSt(c.alternativeNames)),i(RSt(c.language===""?null:c.language)),i(ESt(c.notes)),e()},children:c=>X(ms,{children:[X(Gt,{spacing:2,children:[C(px,{children:C($h,{checked:a,onClick:()=>s(!a),control:C(td,{}),label:n("exercises.translateExerciseNow")})}),a&&X(At,{children:[r.isLoading?C($n,{children:C(Sa,{})}):X(Wv,{fullWidth:!0,children:[C(Gv,{id:"label-language",children:n("language")}),C(Jh,{labelId:"label-language",id:"language",value:c.getFieldProps("language").value,onChange:u=>{c.setFieldValue(c.getFieldProps("language").name,u.target.value)},label:n("language"),error:!!(c.touched.language&&c.errors.language),children:r.data.filter(u=>u.id!==_h).map(u=>X(nn,{value:u.id,children:[u.nameShort," - ",u.nameLong]},u.id))})]}),C(Gz,{fieldName:"name"}),C(Wz,{fieldName:"alternativeNames"}),C(Xz,{fieldName:"description"}),C(ii,{}),C(tce,{fieldName:"notes"})]})]}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:X("div",{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})};function _1t(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("licenses.authors"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function L1t(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("licenses.authorProfile"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function N1t(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("licenses.derivativeSourceUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:t("licenses.derivativeSourceUrlHelper")||r.touched&&r.error,...n})}function F1t(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalObjectUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function j1t(e){const[t]=Ue(),[n,r]=wl(e.fieldName);return C(mn,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalTitle"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function B1t(e){const[t]=Ue(),[n,r]=v.useState(Eu.PHOTO),[o,i,a]=wl(e.fieldName);return X($Re,{value:n,exclusive:!0,fullWidth:!0,onChange:(l,c)=>{r(c),a.setValue(c)},"aria-label":"text alignment",children:[C(g0,{value:Eu.PHOTO,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(Vbt,{}),C(ut,{variant:"caption",children:t("exercises.imageStylePhoto")})]})}),C(g0,{value:Eu.THREE_D,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(Nbt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyle3D")})]})}),C(g0,{value:Eu.LINE_ART,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(Fbt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleLine")})]})}),C(g0,{value:Eu.LOW_POLY,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(jbt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleLowPoly")})]})}),C(g0,{value:Eu.OTHER,children:X(Gt,{justifyContent:"center",alignItems:"center",children:[C(Bbt,{}),C(ut,{variant:"caption",children:t("exercises.imageStyleOther")})]})})]})}const z1t=({onContinue:e,onBack:t})=>{const[n]=Ue(),r=nu(),[o,i]=Ab(),[a,s]=v.useState(o.images),[l,c]=v.useState(void 0),[u,d]=Y.useState(!1),f=()=>d(!1);v.useEffect(()=>{i(DSt(a))},[i,a]);const p=x=>{var E;if(!((E=x.target.files)!=null&&E.length))return;const[S]=x.target.files,P=URL.createObjectURL(S);d(!0),c({url:P,file:S,author:"",authorUrl:"",title:"",derivativeSourceUrl:"",objectUrl:"",style:Eu.PHOTO.toString()})},m=x=>{s(a.concat({url:l==null?void 0:l.url,file:l==null?void 0:l.file,author:x.author,authorUrl:x.authorUrl,title:x.title,derivativeSourceUrl:x.derivativeSourceUrl,objectUrl:x.objectUrl,style:x.imageStyle.toString()})),f()},g=x=>{const S=a.filter(P=>P.url!==x);s(S)},y=()=>{e()};return X("div",{children:[C(Uv,{open:u,onClose:f,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X($n,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:600,bgcolor:"background.paper",boxShadow:24,p:4},children:[C(ut,{id:"modal-modal-title",variant:"h6",component:"h2",children:n("exercises.imageDetails")}),X(_e,{container:!0,spacing:2,children:[C(_e,{size:4,children:l&&C("img",{style:{width:"100%"},src:l.url,alt:"",loading:"lazy"})}),C(_e,{size:8,children:C(bl,{initialValues:{title:"",objectUrl:"",author:r.isSuccess?r.data.username:"",authorUrl:"",derivativeSourceUrl:"",imageStyle:Eu.PHOTO},onSubmit:x=>{console.log(x),m(x)},children:x=>X(ms,{children:[X(Gt,{spacing:2,children:[C(j1t,{fieldName:"title"}),C(F1t,{fieldName:"objectUrl"}),C(_1t,{fieldName:"author"}),C(L1t,{fieldName:"authorUrl"}),C(N1t,{fieldName:"derivativeSourceUrl"}),C(B1t,{fieldName:"imageStyle"}),X(Ju,{icon:C(Jse,{fontSize:"inherit"}),severity:"info",children:["By submitting this image, you agree to release it under the ",C("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/",target:"_blank",rel:"noreferrer",children:"CC BY-SA 4.0"})," license. The image must be either your own work or the author must have released in under a license compatible with CC BY-SA 4.0."]})]}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("add")})})]})})})]})]})}),C(ut,{children:n("exercises.compatibleImagesCC")}),X(Gt,{direction:"row",justifyContent:"center",children:[X("div",{children:[C("label",{htmlFor:"camera-input",children:C(Mbt,{fontSize:"large",sx:{m:2}})}),C("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:p})]}),X("div",{children:[C("label",{htmlFor:"image-input",children:C($bt,{fontSize:"large",sx:{m:2}})}),C("input",{type:"file",accept:"image/*",name:"image-file",id:"image-input",style:{display:"none"},onChange:p})]})]}),C(RZ,{cols:3,style:{maxHeight:"400px"},children:a.map(x=>X(DZ,{children:[C("img",{style:{maxHeight:"400px",maxWidth:"400px"},src:x.url,alt:"",loading:"lazy"}),C(kke,{title:x.title,subtitle:x.author,actionIcon:C(In,{onClick:()=>g(x.url),sx:{color:"white"},children:C(Dbt,{})})})]},x.url))}),C(ut,{children:n("forms.supportedImageFormats")}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:X(At,{children:[C(yt,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),C(yt,{variant:"contained",onClick:y,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})},V1t="exercisecomment",Mq=async e=>{const t=new Vee,n=Et(V1t),r=await dt.post(n,t.toJson(e),{headers:Mt()});return t.fromJson(r.data)},H1t="variation",U1t=async()=>{const e=Et(H1t);return(await dt.post(e,{},{headers:Mt()})).data.id},W1t=({onBack:e})=>{const[t,n]=Ue(),[r]=Ab(),o=mm(),i=bM(),a=xM(),s=w1(),l=wM(),c=nu(),[u,d]=v.useState("initial"),f=async()=>{d("loading");let m;r.newVariationBaseId!==null?m=await U1t():m=r.variationId;const g=await iLe(r.category,r.equipment,r.muscles,r.musclesSecondary,m,c.data.username),y=await YD({exerciseId:g,languageId:_h,name:r.nameEn,description:r.descriptionEn,author:c.data.username});for(const b of r.alternativeNamesEn)await QD(y.id,b);for(const b of r.images)await Kee({exerciseId:g,image:b.file,imageData:b});for(const b of r.notesEn)await Mq(new KD(null,y.id,b));if(r.languageId!==null){const b=await YD({exerciseId:g,languageId:r.languageId,name:r.nameI18n,description:r.descriptionI18n,author:c.data.username});for(const x of r.alternativeNamesI18n)await QD(b.id,x);for(const x of r.notesI18n)await Mq(new KD(null,b.id,x))}console.log("Exercise created"),d("done")},p=()=>{o(Sn(bn.EXERCISE_OVERVIEW,n.language))};return l.isLoading||a.isLoading||s.isLoading||i.isLoading?C(Po,{}):X(At,{children:[C(ut,{variant:"h6",children:t("exercises.step1HeaderBasics")}),C(od,{children:C(nd,{children:X(rd,{children:[X(Yt,{children:[C(Oe,{children:t("name")}),C(Oe,{children:r.nameEn})]}),X(Yt,{children:[C(Oe,{children:t("exercises.alternativeNames")}),C(Oe,{children:r.alternativeNamesEn.join(", ")})]}),X(Yt,{children:[C(Oe,{children:t("description")}),C(Oe,{children:r.descriptionEn})]}),X(Yt,{children:[C(Oe,{children:t("exercises.notes")}),C(Oe,{children:r.notesEn.map(m=>X(At,{children:[m,C("br",{})]}))})]}),X(Yt,{children:[C(Oe,{children:t("category")}),C(Oe,{children:t(Ji(i.data.find(m=>m.id===r.category).name))})]}),X(Yt,{children:[C(Oe,{children:t("exercises.equipment")}),C(Oe,{children:r.equipment.map(m=>t(Ji(l.data.find(g=>g.id===m).name))).join(", ")})]}),X(Yt,{children:[C(Oe,{children:t("exercises.muscles")}),C(Oe,{children:r.muscles.map(m=>s.data.find(g=>g.id===m).getName(t)).join(", ")})]}),X(Yt,{children:[C(Oe,{children:t("exercises.secondaryMuscles")}),C(Oe,{children:r.musclesSecondary.map(m=>s.data.find(g=>g.id===m).getName(t)).join(", ")})]}),X(Yt,{children:[C(Oe,{children:t("exercises.variations")}),X(Oe,{children:[r.variationId," / ",r.newVariationBaseId]})]})]})})}),r.images.length>0&&C(RZ,{cols:3,style:{maxHeight:"200px"},children:r.images.map(m=>C(DZ,{children:C("img",{style:{maxHeight:"200px",maxWidth:"200px"},src:m.url,alt:"",loading:"lazy"})},m.url))}),r.languageId!==null&&X(At,{children:[C(ut,{variant:"h6",sx:{mt:3},children:a.data.find(m=>m.id===r.languageId).nameLong}),C(od,{children:C(nd,{children:X(rd,{children:[X(Yt,{children:[C(Oe,{children:t("name")}),C(Oe,{children:r.nameI18n})]}),X(Yt,{children:[C(Oe,{children:t("exercises.alternativeNames")}),C(Oe,{children:r.alternativeNamesI18n.join(", ")})]}),X(Yt,{children:[C(Oe,{children:t("description")}),C(Oe,{children:r.descriptionI18n})]}),X(Yt,{children:[C(Oe,{children:t("exercises.notes")}),C(Oe,{children:r.notesI18n.map(m=>X(At,{children:[m,C("br",{})]}))})]})]})})})]}),u!=="done"?C(Ju,{severity:"info",sx:{mt:2},children:t("exercises.checkInformationBeforeSubmitting")}):X(Ju,{severity:"success",sx:{mt:2},children:[C(YE,{children:t("success")}),t("exercises.cacheWarning")]}),C(_e,{container:!0,children:C(_e,{display:"flex",justifyContent:"end",size:12,children:C($n,{sx:{mb:2},children:X("div",{children:[u!=="done"&&C(yt,{onClick:e,sx:{mt:1,mr:1},children:t("goBack")}),u!=="done"&&C(yt,{variant:"contained",disabled:u!=="initial",onClick:f,sx:{mt:1,mr:1},color:"info",children:t("exercises.submitExercise")}),u==="done"&&X(yt,{variant:"contained",onClick:p,sx:{mt:1,mr:1},color:"success",children:[t("overview"),C(zbt,{})]})]})})})})]})},G1t=()=>{const[e]=Ue(),[t,n]=Y.useState(0),r=()=>{n(i=>i+1)},o=()=>{n(i=>i-1)};return C(LSt,{children:X(ed,{maxWidth:"md",children:[C(Gt,{direction:"row",children:C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:e("exercises.contributeExercise")})}),C($n,{children:X(f$e,{activeStep:t,orientation:"vertical",children:[X(qm,{children:[C(Np,{children:e("exercises.step1HeaderBasics")}),C(Km,{children:C(NSt,{onContinue:r,onBack:o})})]},1),X(qm,{children:[C(Np,{children:e("exercises.variations")}),C(Km,{children:C(jSt,{onContinue:r,onBack:o})})]},2),X(qm,{children:[C(Np,{children:e("description")}),C(Km,{children:C(R1t,{onContinue:r,onBack:o})})]},3),X(qm,{children:[C(Np,{children:e("translation")}),C(Km,{children:C(D1t,{onContinue:r,onBack:o})})]},4),X(qm,{children:[C(Np,{children:e("images")}),C(Km,{children:C(z1t,{onContinue:r,onBack:o})})]},5),X(qm,{children:[C(Np,{children:e("overview")}),C(Km,{children:C(W1t,{onBack:o})})]},6)]})})]})})},q1t=()=>{const[e]=Ue(),t=Qz();return X(ed,{maxWidth:"md",children:[C(ut,{variant:"h3",children:e("exercises.notEnoughRightsHeader")}),X($n,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{mb:2,children:e("exercises.notEnoughRights",{days:jDe})}),!t.anonymous&&!t.emailVerified&&C(yt,{variant:"contained",href:"/user/preferences",endIcon:C(Obt,{}),children:e("preferences")})]})]})},K1t=()=>{const e=Qz();return C(At,{children:e.canContribute?C(G1t,{}):C(q1t,{})})},Y1t=()=>C("div",{children:"Add Weight Page"}),X1t=({currentMonth:e,currentYear:t,onPrevMonth:n,onNextMonth:r})=>{const{i18n:o}=Ue(),i=Array.from({length:12},(a,s)=>new Date(2024,s,1).toLocaleString(o.language,{month:"long"}));return X("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",paddingBottom:"3%"},children:[C(yt,{variant:"outlined",onClick:n,children:"<"}),X(ut,{variant:"h5",children:[i[e]," ",t]}),C(yt,{variant:"outlined",onClick:r,children:">"})]})},Q1t=({day:e,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})=>{const i=Lo(),a=Df(i.breakpoints.down("sm")),s=Df(i.breakpoints.down("md")),l=Pf(e.date,r.date),c=Pf(e.date,n),u=e.date.getMonth()===t&&(e.date.getDate()<=n.getDate()||e.date.getMonth()<n.getMonth()||e.date.getFullYear()<n.getFullYear()),d=e.date.getDay()===6||e.date.getDay()===0,f=()=>l||c?"white":u?d?"#E53945":"black":"gray",p=()=>a?35:s?40:50,m=()=>a?8:s?9:10,g=()=>e.measurements.length>0||e.weightEntry!==void 0,y=()=>{u&&o(e)},b=p(),x=m();return X("div",{style:{position:"relative",width:`${b}px`,height:`${b+x/2}px`,display:"flex",flexDirection:"column",alignItems:"center"},children:[C("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:`${b}px`,height:`${b}px`,fontSize:a?"0.8rem":s?"0.9rem":"1rem",color:l||c?"white":f(),backgroundColor:l?"#E53945":c?"#FEC107":"transparent",borderRadius:"50%",fontWeight:"bold",cursor:u?"pointer":"default",opacity:e.date.getMonth()!==t?.25:1},"data-testid":`day-${ci(e.date)}`,onClick:y,children:e.date.getDate()}),g()&&C("div",{style:{width:`${x}px`,height:`${x}px`,backgroundColor:"black",borderRadius:"50%",position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",zIndex:2}})]})},J1t=({days:e,currentMonth:t,currentDate:n,selectedDay:r,onDayClick:o})=>{const{i18n:i}=Ue(),a=Array.from({length:7},(s,l)=>new Date(1970,0,l+5).toLocaleString(i.language,{weekday:"short"}));return X(_e,{container:!0,spacing:1,rowSpacing:2,children:[a.map((s,l)=>C(_e,{size:12/7,children:C(ut,{variant:"body1",sx:{fontWeight:"bold",textAlign:"center"},children:s})},`weekday-${l}`)),e.map((s,l)=>C(_e,{size:12/7,sx:{display:"flex",justifyContent:"center"},children:C(Q1t,{day:s,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})},`day-${l}`))]})},Z1t=({selectedDay:e})=>{const[t]=Ue(),n=t("no_entries_for_day");return X(co,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"60%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2}},children:[C(uc,{title:X(ut,{variant:"h5",component:"div",sx:{fontWeight:"bold"},children:[t("entries")," - ",e.date.toLocaleDateString()]})}),X(Oi,{sx:{flex:1,overflow:"auto",display:"flex",flexDirection:"column",gap:2},children:[X("div",{className:"flex items-center gap-2",children:[X("span",{className:"font-extrabold",children:[t("weight"),": "]}),C("span",{className:`${e.weightEntry?"text-xl font-semibold":"text-gray-500"}`,children:e.weightEntry?`${e.weightEntry.weight.toFixed(1)} kg`:n})]}),X("div",{className:"flex flex-col gap-1",children:[X("span",{className:"font-bold",children:[t("measurements.measurements"),": "]}),e.measurements.length===0?C("span",{className:"text-gray-500 mt-1",children:n}):C("div",{className:"flex flex-col gap-0.5",children:e.measurements.map(r=>X("div",{children:[r.name,": ",r.value," ",r.unit]},r.name))})]})]})]})};class eCt{constructor(t,n,r,o){this.name=t,this.unit=n,this.value=r,this.date=o}}function nce(){return lo({queryKey:[Jv],queryFn:HLe})}const tCt=()=>{const e=gr();return Rr({mutationFn:t=>WLe(t),onSuccess:()=>e.invalidateQueries({queryKey:[Jv]})})},nCt=e=>{const t=gr();return Rr({mutationFn:n=>GLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Qv,e]}),t.invalidateQueries({queryKey:[Jv]})}})},rCt=e=>{const t=gr();return Rr({mutationFn:n=>qLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[Qv,e]}),t.invalidateQueries({queryKey:[Jv]})}})};function rce(e){return lo({queryKey:[Qv,e],queryFn:()=>ULe(e)})}const oCt=()=>{const e=gr();return Rr({mutationFn:t=>XLe(t),onError:t=>{console.log(t)},onSuccess:()=>{e.invalidateQueries({queryKey:[Qv]}),e.invalidateQueries({queryKey:[Jv]})}})},oce=()=>{const e=gr();return Rr({mutationFn:t=>YLe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[Qv]}),e.invalidateQueries({queryKey:[Jv]})}})},iCt=()=>{const e=gr();return Rr({mutationFn:t=>KLe(t),onSuccess:()=>e.invalidateQueries({queryKey:[Qv]})})};function aCt(){const t=nce().data;return(t==null?void 0:t.flatMap(n=>n.entries.map(r=>new eCt(n.name,n.unit,r.value,r.date))))??[]}const sCt=()=>{const[e]=Ue(),n=v1().data,r=aCt(),o=(S,P)=>{const E=new Date(S,P,1),T=[];let k=new Date(S,P,1).getDay();k=k===0?6:k-1;for(let R=0;R<k;R++)T.push({date:new Date(S,P,-k+R+1),weightEntry:void 0,measurements:[]});for(;E.getMonth()===P;)T.push({date:new Date(E),weightEntry:n==null?void 0:n.find(R=>Pf(R.date,E)),measurements:r.filter(R=>Pf(R.date,E))}),E.setDate(E.getDate()+1);k=new Date(S,P+1,0).getDay();const I=k===0?0:7-k;for(let R=1;R<=I;R++)T.push({date:new Date(S,P+1,R),weightEntry:void 0,measurements:[]});return T},i=new Date,a={date:i,weightEntry:void 0,measurements:[]},[s,l]=v.useState(i.getMonth()),[c,u]=v.useState(i.getFullYear()),d=o(c,s),[f,p]=v.useState(d.find(S=>Pf(S.date,i))||a),m=Lo(),g=Df(m.breakpoints.down("sm"));v.useEffect(()=>{l(f.date.getMonth()),u(f.date.getFullYear())},[f]);const y=S=>{p(S)},b=()=>{s===0?(l(11),u(c-1)):l(s-1)},x=()=>{(s<i.getMonth()||c<i.getFullYear())&&(s===11?(l(0),u(c+1)):l(s+1))};return X($n,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",md:"row"},height:{xs:"auto",md:"calc(100vh - 130px)"},width:"100%"},children:[X(co,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"auto%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2},display:"flex",flexDirection:"column"},children:[C(uc,{sx:{"& .MuiCardHeader-content":{width:"100%"}},title:C("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:X("div",{style:{display:"flex",alignItems:"center",marginBottom:"16px"},children:[C(kbt,{style:{width:g?"28px":"32px",height:g?"28px":"32px",marginRight:"12px"}}),C("span",{style:{fontSize:g?"1.5rem":"1.8rem",fontWeight:"bold"},children:e("calendar")})]})})}),X(Oi,{sx:{overflow:"auto",flex:1,"&:last-child":{paddingBottom:2}},children:[C(X1t,{currentMonth:s,currentYear:c,onPrevMonth:b,onNextMonth:x}),C(J1t,{days:d,currentMonth:s,currentDate:i,selectedDay:f,onDayClick:y})]})]}),C(Z1t,{selectedDay:f})]})},lCt=()=>C("div",{children:C(sCt,{})}),cCt=()=>C("div",{children:"Calories Calculator Page"}),uCt=()=>C("div",{children:"Equipments Page"}),dCt=()=>C("div",{children:"Gallery Page"}),fCt=()=>C("div",{children:"Ingredients Page"}),pCt=()=>C("div",{children:"Login Page"}),hCt=()=>C("div",{children:"Preferences Page"}),mCt=()=>C("div",{children:"Public Template"}),gCt=()=>C("div",{children:"RestApi Page"}),yCt=()=>C("div",{children:"Your Template"}),vCt=({weight:e})=>{const t=X0t(),[n]=Ue(),[r,o]=Y.useState(null),[i,a]=Y.useState(!1),s=!!r,l=m=>{o(m.currentTarget)},c=()=>{u(),f()},u=()=>{o(null)},d=()=>{t.mutate(e.id),o(null)},f=()=>a(!0),p=()=>a(!1);return X("div",{children:[C(yt,{onClick:l,children:C(Tbt,{})}),X(hs,{anchorEl:r,open:s,onClose:u,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:c,children:n("edit")}),C(nn,{onClick:d,children:n("delete")})]}),C(na,{title:n("edit"),isOpen:i,closeFn:p,children:C(kb,{weightEntry:e,closeFn:p})})]})},bCt=()=>{const[e]=Ue(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Qh,{color:"primary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Zi,{})}),C(na,{title:e("add"),isOpen:t,closeFn:o,children:C(kb,{closeFn:o})})]})},wCt=e=>e.map((t,n)=>n===0?{entry:t,change:0,days:Math.abs(t.date.getTime()-t.date.getTime())/(1e3*60*60*24)}:{entry:t,change:e[n].weight-e[n-1].weight,days:Math.abs(t.date.getTime()-e[n-1].date.getTime())/(1e3*60*60*24)}),xCt=$le(e=>({table:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),SCt=({weights:e})=>{const t=[10,50,100],[n]=Ue(),r=xCt(),o=wCt(e),[i,a]=v.useState(t[0]),[s,l]=v.useState(0),c=(d,f)=>{l(f)},u=d=>{a(parseInt(d.target.value,10)),l(0)};return X("div",{className:r.table,children:[X(od,{children:[X(nd,{sx:{minWidth:650},"aria-label":"simple table",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{align:"center",children:n("date")}),C(Oe,{align:"center",children:n("weight")}),C(Oe,{align:"center",children:n("difference")}),C(Oe,{align:"center",children:n("days")}),C(Oe,{align:"center"})]})}),C(rd,{children:o.slice(s*i,s*i+i).map(d=>X(Yt,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[C(Oe,{component:"th",scope:"row",align:"center",children:d.entry.date.toLocaleDateString()}),C(Oe,{align:"center",children:d.entry.weight}),C(Oe,{align:"center",children:+d.change.toFixed(2)}),C(Oe,{align:"center",children:d.days}),C(Oe,{align:"center",children:C(vCt,{weight:d.entry})})]},d.entry.date.toLocaleDateString()))})]}),C(yj,{rowsPerPageOptions:t,component:"div",count:o.length,rowsPerPage:i,page:s,onPageChange:c,onRowsPerPageChange:u})]}),C(bCt,{})]})},CCt=()=>{const[e]=Ue(),[t,n]=v.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Qh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Zi,{})}),C(na,{title:e("add"),isOpen:t,closeFn:o,children:C(kb,{closeFn:o})})]})},PCt=({currentFilter:e,onFilterChange:t})=>{const[n]=Ue(),r=Lo(),o=i=>{e!==i&&t(i)};return X(nOe,{variant:"outlined",sx:{mb:2},children:[C(yt,{onClick:()=>o(""),color:e===""?"primary":"inherit",variant:e===""?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("all")}),C(yt,{onClick:()=>o("lastYear"),color:e==="lastYear"?"primary":"inherit",variant:e==="lastYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastYear")}),C(yt,{onClick:()=>o("lastHalfYear"),color:e==="lastHalfYear"?"primary":"inherit",variant:e==="lastHalfYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastHalfYear")}),C(yt,{onClick:()=>o("lastMonth"),color:e==="lastMonth"?"primary":"inherit",variant:e==="lastMonth"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastMonth")}),C(yt,{onClick:()=>o("lastWeek"),color:e==="lastWeek"?"primary":"inherit",variant:e==="lastWeek"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastWeek")})]})},ym=e=>X(ed,{maxWidth:"lg",children:[X(_e,{container:!0,spacing:2,children:[C(_e,{sx:{mb:2},size:8,children:X(Gt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[C(ut,{gutterBottom:!0,variant:"h3",children:e.title}),e.optionsMenu]})}),C(_e,{size:{xs:12,sm:8},children:e.mainContent}),C(_e,{size:{xs:12,sm:4},children:e.sideBar})]}),e.fab]}),ECt=()=>{const[e]=Ue(),[t,n]=v.useState("lastYear"),r=v1(t),o=i=>{n(i)};return r.isLoading?C(Po,{}):C(ym,{title:e("weight"),mainContent:X(Gt,{spacing:2,children:[C(PCt,{currentFilter:t,onFilterChange:o}),r.data.length===0&&C(LI,{}),r.data.length!==0&&X(At,{children:[C(Rle,{weights:r.data}),C($n,{sx:{mt:4}}),C(SCt,{weights:r.data})]})]}),fab:C(CCt,{})})},TCt=()=>{const{i18n:e}=Ue(),[t,n]=Y.useState(null);return X(At,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Weight"}),X(hs,{anchorEl:t,open:!!t,onClose:()=>n(null),children:[C(nn,{component:Xs,to:Sn(bn.WEIGHT_OVERVIEW,e.language),children:"Weight overview"}),C(nn,{component:Xs,to:Sn(bn.WEIGHT_ADD,e.language),children:"Add weight entry"})]})]})},OCt=()=>{const{i18n:e}=Ue(),[t,n]=Y.useState(null);return X(At,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Measurements"}),C(hs,{anchorEl:t,open:!!t,onClose:()=>n(null),children:C(nn,{component:Xs,to:Sn(bn.MEASUREMENT_OVERVIEW,e.language),children:"Overview"})})]})},ICt=()=>{const{i18n:e}=Ue(),[t,n]=Y.useState(null);return X(At,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Nutrition"}),C(hs,{anchorEl:t,open:!!t,onClose:()=>n(null),children:C(nn,{component:Xs,to:Sn(bn.NUTRITION_OVERVIEW,e.language),children:"Overview"})})]})},kCt=()=>{const{i18n:e}=Ue(),[t,n]=Y.useState(null);return X(At,{children:[C(yt,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Routines"}),X(hs,{anchorEl:t,open:!!t,onClose:()=>n(null),children:[C(nn,{component:Xs,to:Sn(bn.ROUTINE_OVERVIEW,e.language),children:"Routine overview"}),C(nn,{component:Xs,to:Sn(bn.EXERCISE_OVERVIEW,e.language),children:"Exercise overview"}),C(nn,{component:Xs,to:Sn(bn.EXERCISE_CONTRIBUTE,e.language),children:"Contribute exercise"}),C(nn,{component:Xs,to:Sn(bn.CALENDAR,e.language),children:"Calendar"})]})]})},MCt=()=>C(TPe,{position:"static",children:X(GZ,{children:[C(ut,{variant:"h6",component:"div",mr:3,children:"wger"}),C(kCt,{}),C(TCt,{}),C(OCt,{}),C(ICt,{})]})}),ice=()=>C(ECt,{}),ACt=()=>C("div",{children:"Workout Page"}),$Ct=()=>C("div",{children:"Workout Schedule"});var yd,Aq=OI;yd=Aq.createRoot,Aq.hydrateRoot;const RCt=()=>X(_e,{container:!0,spacing:2,children:[C(_e,{size:4,children:C(hle,{})}),C(_e,{size:4,children:C(Kse,{})}),C(_e,{size:4,children:C(Dle,{})})]}),S1=v.createContext({}),ace=()=>{const{data:e,isLoading:t}=bM(),{selectedCategories:n,setSelectedCategories:r}=v.useContext(S1),[o]=Ue(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(Po,{}):C(pl,{children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(ss,{disablePadding:!0,children:X(Xf,{role:void 0,onClick:i(a),dense:!0,children:[C(Ki,{children:C(td,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`category-${a.id}`)}),C(xo,{id:s,primary:o(Ji(a.name))})]})},a.id)})})},DCt=()=>{const[e]=Ue();return X(JF,{children:[C(ej,{expandIcon:C(Kv,{}),children:e("category")}),C(ZF,{children:C(ace,{})})]})},_Ct=()=>{const[e]=Ue();return C("div",{"data-testid":"categories",children:X(fo,{children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("category")}),C(ace,{})]})})},sce=()=>{const{data:e,isLoading:t}=wM(),{selectedEquipment:n,setSelectedEquipment:r}=v.useContext(S1),[o]=Ue(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(Po,{}):C(pl,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(ss,{disablePadding:!0,children:X(Xf,{role:void 0,onClick:i(a),dense:!0,children:[C(Ki,{children:C(td,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),C(xo,{id:s,primary:o(Ji(a.name))})]})},a.id)})})},LCt=()=>{const[e]=Ue();return X(JF,{children:[C(ej,{expandIcon:C(Kv,{}),children:e("exercises.equipment")}),C(ZF,{children:C(sce,{})})]})},NCt=()=>{const[e]=Ue();return C("div",{"data-testid":"equipment",children:X(fo,{sx:{mt:2},children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.equipment")}),C(sce,{})]})})},FCt=ie(({className:e,...t})=>C(lc,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Br.tooltip}`]:{backgroundColor:"rgb(245, 245, 245)",color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:11}})),lce=()=>{const{data:e,isLoading:t}=w1(),{selectedMuscles:n,setSelectedMuscles:r}=v.useContext(S1),[o]=Ue(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?C(Po,{}):C(pl,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return C(ss,{disablePadding:!0,secondaryAction:C(FCt,{title:C(Hh,{primaryMuscles:[a],secondaryMuscles:[],isFront:a.isFront}),placement:"right",arrow:!0,children:C(In,{edge:"end","aria-label":"comments",children:C(Zse,{})})}),children:X(Xf,{role:void 0,onClick:i(a),dense:!0,children:[C(Ki,{children:C(td,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),C(xo,{id:s,primary:a.name,secondary:a.nameEn!==""?o(Ji(a.nameEn)):""})]})},a.id)})})},jCt=()=>{const[e]=Ue();return X(JF,{children:[C(ej,{expandIcon:C(Kv,{}),children:e("exercises.muscles")}),C(ZF,{children:C(lce,{})})]})},BCt=()=>{const[e]=Ue();return C("div",{"data-testid":"muscles",children:X(fo,{sx:{mt:2},children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.muscles")}),C(lce,{})]})})},zCt=({exercises:e})=>{const t=xM(),[n,r]=Ue();let o;return t.isSuccess&&(o=XD(r.language,t.data)),C(_e,{container:!0,spacing:1,children:e.map(i=>C(_e,{sx:{display:"flex"},size:{xs:6,md:4},children:C(ece,{exercise:i,language:o})},i.id))})},VCt=()=>C(_e,{container:!0,spacing:1,children:Array.apply(null,Array(21)).map((e,t)=>C(_e,{sx:{display:"flex"},size:4,children:X(co,{children:[C(Gc,{children:C(GP,{variant:"rectangular",width:250,height:150})}),C(Oi,{children:X($n,{sx:{pt:.5},children:[C(GP,{width:"60%"}),C(GP,{})]})})]})},t))}),HCt=({children:e})=>{const[t]=Ue(),[n,r]=v.useState(!1),o=i=>()=>{r(i)};return X(At,{children:[C(yt,{onClick:o(!0),children:C(Lbt,{})}),X(UIe,{open:n,onClose:o(!1),anchor:"right",children:[X(Gt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[C(ut,{gutterBottom:!0,variant:"h6",m:2,children:t("filters")}),C(yt,{onClick:o(!1),children:C(FS,{})})]}),C(as,{}),e]})]})},UCt=()=>{const[e,t]=Ue();return X($n,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[C(ut,{gutterBottom:!0,variant:"h4",component:"div",children:e("exercises.missingExercise")}),C(ut,{gutterBottom:!0,variant:"body1",component:"div",children:e("exercises.missingExerciseDescription")}),C(Xs,{to:Sn(bn.EXERCISE_CONTRIBUTE,t.language),children:e("exercises.contributeExercise")})]})},WCt=()=>{const e=Fle(),[t,n]=Ue(),r=mm(),{selectedCategories:o,selectedEquipment:i,selectedMuscles:a}=v.useContext(S1),s=Df("(max-width:600px)"),[l,c]=Y.useState(1),u=(y,b)=>{c(b),window.scrollTo({top:0,behavior:"smooth"})};let d=v.useMemo(()=>{let y=e.data||[];return o.length>0&&(y=y.filter(b=>o.some(x=>b.category.id===x.id))),i.length>0&&(y=y.filter(b=>b.equipment.some(x=>i.some(S=>S.id===x.id)))),a.length>0&&(y=y.filter(b=>b.muscles.some(x=>a.some(S=>S.id===x.id)))),y},[e.data,o,i,a]);const f=21,p=Math.ceil(d.length/f),m=d.slice((l-1)*f,l*f),g=y=>{r(Sn(bn.EXERCISE_DETAIL,n.language,{id:y.data.base_id}))};return C(ed,{maxWidth:"lg",children:X(_e,{container:!0,spacing:2,mt:2,children:[C(_e,{size:{xs:10,sm:6},children:C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:t("exercises.exercises")})}),s?X(At,{children:[C(_e,{size:{xs:2,sm:6},children:C(yt,{variant:"contained",onClick:()=>r(Sn(bn.EXERCISE_CONTRIBUTE,n.language)),children:C(Zi,{})})}),C(_e,{flexGrow:1,size:{sm:6},children:C(fN,{callback:g})}),C(_e,{display:"flex",justifyContent:"center",alignItems:"center",size:{xs:2,sm:6},children:X(HCt,{children:[C(DCt,{}),C(LCt,{}),C(jCt,{})]})})]}):X(At,{children:[C(_e,{size:{xs:12,sm:3},children:C(fN,{callback:g})}),C(_e,{size:{xs:12,sm:3},children:C(yt,{variant:"contained",startIcon:C(Zi,{}),onClick:()=>r(Sn(bn.EXERCISE_CONTRIBUTE,n.language)),children:t("exercises.contributeExercise")})})]}),!s&&C(_e,{size:{xs:12,sm:3},children:X(_e,{container:!0,spacing:1,children:[C(_e,{size:{xs:6,sm:12},children:C(_Ct,{})}),C(_e,{size:{xs:6,sm:12},children:C(NCt,{})}),C(_e,{size:12,children:C(BCt,{})})]})}),X(_e,{size:{xs:12,sm:9},children:[e.isLoading?C(VCt,{}):X(At,{children:[C(zCt,{exercises:m}),C(Gt,{spacing:2,alignItems:"center",sx:{mt:2},children:C(aAe,{count:p,color:"primary",page:l,onChange:u})})]}),C(UCt,{})]})]})})},$q=()=>{const[e,t]=v.useState([]),[n,r]=v.useState([]),[o,i]=Y.useState([]);return C(S1.Provider,{value:{selectedEquipment:e,setSelectedEquipment:t,selectedMuscles:n,setSelectedMuscles:r,selectedCategories:o,setSelectedCategories:i},children:C(WCt,{})})},wP=['"Open Sans Bold"',"sans-serif"].join(","),GCt=['"Open Sans Light"',"sans-serif"].join(","),cce={spacing:8,typography:{h3:{fontFamily:wP},h4:{fontFamily:wP},h5:{fontFamily:wP},h6:{fontFamily:wP},fontFamily:GCt},palette:{primary:{main:"#2A4C7D"},secondary:{main:"#e63946"},warning:{main:"#cba328"},info:{main:"#457b9d"},success:{main:"#307916"}}},sp=ES(cce),qCt=e=>ES({...cce,components:{MuiPopover:{defaultProps:{container:e}},MuiPopper:{defaultProps:{container:e}},MuiModal:{defaultProps:{container:e}}}}),uce=e=>{const{i18n:t}=Ue(),n=30,r=[...e.category.entries].sort((o,i)=>o.date.getTime()-i.date.getTime()).map(o=>({date:o.date.getTime(),value:o.value,entry:o}));return C($n,{alignItems:"center",display:"flex",flexDirection:"column",children:C(Zf,{width:"90%",height:200,children:X(qoe,{data:r,children:[C(gb,{type:"monotone",dataKey:"value",stroke:sp.palette.secondary.main,strokeWidth:2,dot:r.length>n?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6}}),C(rm,{stroke:"#ccc",strokeDasharray:"5 5"}),C(gl,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:o=>new Date(o).toLocaleDateString(t.language),tickCount:10}),C(yl,{domain:["auto","auto"],unit:e.category.unit})]})})})},dce=({category:e,closeFn:t})=>{const[n]=Ue(),r=tCt(),o=nCt(e==null?void 0:e.id),i=xl({name:Kc().required(n("forms.fieldRequired")).max(20,n("forms.maxLength",{chars:"20"})).min(3,n("forms.minLength",{chars:"3"})),unit:Kc().required(n("forms.fieldRequired")).max(5,n("forms.maxLength",{chars:"5"}))});return C(bl,{initialValues:{name:e?e.name:"",unit:e?e.unit:""},validationSchema:i,onSubmit:async a=>{e?o.mutate({...a,id:e.id}):r.mutate(a),t&&t()},children:a=>C(ms,{children:X(Gt,{spacing:2,children:[C(mn,{fullWidth:!0,id:"name",label:n("name"),error:a.touched.name&&!!a.touched.name,helperText:a.touched.name&&a.errors.name,...a.getFieldProps("name")}),C(mn,{fullWidth:!0,id:"unit",label:n("unit"),error:a.touched.unit&&!!a.errors.unit,helperText:a.touched.unit&&a.errors.unit?a.errors.unit:n("measurements.unitFormHelpText"),...a.getFieldProps("unit")}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})};zr.defaultZone=e_e;const fce=({entry:e,closeFn:t,categoryId:n})=>{const[r,o]=Ue(),i=oCt(),a=oce(),s=rce(n),[l,c]=Y.useState(e?kt.fromJSDate(e.date):kt.now()),u=xl({value:ha().required(r("forms.fieldRequired")).min(0,r("forms.minValue",{value:"0"})).max(1e3,r("forms.maxValue",{value:"1000"})),date:h1().required(r("forms.fieldRequired")),notes:Kc().max(500,r("forms.maxLength",{value:"500"}))});return C(bl,{initialValues:{value:e?e.value:0,date:e?e.date:new Date,notes:e?e.notes:""},validationSchema:u,onSubmit:async d=>{e?a.mutate({...d,id:e.id}):i.mutate({...d,categoryId:n}),t&&t()},children:d=>C(ms,{children:X(Gt,{spacing:2,children:[C(mn,{fullWidth:!0,id:"value",type:"number",label:r("value"),error:d.touched.value&&!!d.errors.value,helperText:d.touched.value&&d.errors.value,...d.getFieldProps("value")}),s.isLoading?C(Po,{}):C(t1,{dateAdapter:lM,adapterLocale:o.language,children:C(Gie,{format:"yyyy-MM-dd",label:r("date"),value:l,disableFuture:!0,onChange:f=>{f&&d.setFieldValue("date",f.toJSDate()),c(f)},shouldDisableDate:f=>e&&ci(e.date)===ci(f.toJSDate())?!1:f?s.data.entries.some(p=>ci(p.date)===ci(f.toJSDate())):!1})}),C(mn,{fullWidth:!0,id:"notes",label:r("notes"),multiline:!0,error:d.touched.notes&&!!d.errors.notes,helperText:d.touched.notes&&d.errors.notes,...d.getFieldProps("notes")}),C(Gt,{direction:"row",justifyContent:"end",sx:{mt:2},children:C(yt,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:r("submit")})})]})})})},KCt=()=>{const[e]=Ue(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Qh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Zi,{})}),C(na,{title:e("add"),isOpen:t,closeFn:o,children:C(dce,{closeFn:o})})]})},YCt=()=>{const[e]=Ue(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1),i=gm(),a=parseInt(i.categoryId);return X(At,{children:[C(Qh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:s=>s.spacing(2),zIndex:9},children:C(Zi,{})}),C(na,{title:e("add"),isOpen:t,closeFn:o,children:C(fce,{closeFn:o,categoryId:a})})]})},pce=v.createContext(void 0);function sn(){const e=v.useContext(pce);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
+`));return e}const hce=v.createContext(void 0),xt=()=>{const e=v.useContext(hce);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},XCt=parseInt(v.version,10),kn=e=>{if(XCt>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return v.forwardRef(e)},QCt=Object.is;function mce(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!QCt(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function lp(e){return v.memo(e,mce)}const JCt={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function wn(e){return _n("MuiDataGrid",e)}const ae=Ln("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Rq=1e3;class ZCt{constructor(t=Rq){this.timeouts=new Map,this.cleanupTimeout=Rq,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class ePt{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var il=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(il||{});class tPt{}function nPt(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new ePt:new ZCt);const[s]=v.useState(new tPt),l=v.useRef(null),c=v.useRef();c.current=i;const u=v.useRef(null);if(!l.current&&c.current){const d=(f,p,m)=>{var g;p.defaultMuiPrevented||(g=c.current)==null||g.call(c,f,p,m)};l.current=r.current.subscribeEvent(o,d,a),t+=1,u.current={cleanupToken:t},e.registry.register(s,()=>{var f;(f=l.current)==null||f.call(l),l.current=null,u.current=null},u.current)}else!c.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));v.useEffect(()=>{if(!l.current&&c.current){const d=(f,p,m)=>{var g;p.defaultMuiPrevented||(g=c.current)==null||g.call(c,f,p,m)};l.current=r.current.subscribeEvent(o,d,a)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,o,a])}}const rPt={registry:null},gt=nPt(rPt),oPt={isFirst:!0};function ar(e,t,n){gt(e,t,n,oPt)}function iPt(e){return e.acceptsApiRef}function Dq(e,t){return iPt(t)?t(e):t(e.current.state)}const aPt=Object.is,gce=mce,sPt=()=>({state:null,equals:null,selector:null,args:null}),Ge=(e,t,n=aPt)=>{const r=eu(sPt),o=r.current.selector!==null,[i,a]=v.useState(o?null:Dq(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,zk(()=>e.current.store.subscribe(()=>{const s=Dq(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i},Mi=e=>e.dimensions;var EO=Symbol("NOT_FOUND");function lPt(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function cPt(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function uPt(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var _q=e=>Array.isArray(e)?e:[e];function dPt(e){const t=Array.isArray(e[0])?e[0]:e;return uPt(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fPt(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function pPt(e){let t;return{get(n){return t&&e(t.key,n)?t.value:EO},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function hPt(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return EO}function o(s,l){r(s)===EO&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var mPt=(e,t)=>e===t;function gPt(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function yce(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=mPt,maxSize:o=1,resultEqualityCheck:i}=n,a=gPt(r);let s=0;const l=o<=1?pPt(a):hPt(o,a);function c(){let u=l.get(arguments);if(u===EO){if(u=e.apply(null,arguments),s++,i){const f=l.getEntries().find(p=>i(p.value,u));f&&(u=f.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var yPt=class{constructor(e){this.value=e}deref(){return this.value}},vPt=typeof WeakRef<"u"?WeakRef:yPt,bPt=0,Lq=1;function xP(){return{s:bPt,v:void 0,o:null,p:null}}function vce(e,t={}){let n=xP();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var d;let s=n;const{length:l}=arguments;for(let f=0,p=l;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const y=g.get(m);y===void 0?(s=xP(),g.set(m,s)):s=y}else{let g=s.p;g===null&&(s.p=g=new Map);const y=g.get(m);y===void 0?(s=xP(),g.set(m,s)):s=y}}const c=s;let u;if(s.s===Lq)u=s.v;else if(u=e.apply(null,arguments),i++,r){const f=((d=o==null?void 0:o.deref)==null?void 0:d.call(o))??o;f!=null&&r(f,u)&&(u=f,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new vPt(u):u}return c.s=Lq,c.v=u,u}return a.clearCache=()=>{n=xP(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function bce(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),lPt(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=vce,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,y=_q(f),b=_q(m),x=dPt(o),S=d(function(){return i++,c.apply(null,arguments)},...y),P=p(function(){a++;const T=fPt(x,arguments);return s=S.apply(null,T),s},...b);return Object.assign(P,{resultFunc:c,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var wPt=bce(vce),xPt=Object.assign((e,t=wPt)=>{cPt(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>xPt});const SPt=bce({memoize:yce,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Nq=new WeakMap;function vg(e){return"current"in e&&"instanceId"in e.current}const bg={id:"default"},_t=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,c)=>{const u=vg(l),d=c??(u?l.current.instanceId:bg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d),y=r(f,d),b=o(f,d);return i(p,m,g,y,b)};else if(e&&t&&n&&r&&o)s=(l,c)=>{const u=vg(l),d=c??(u?l.current.instanceId:bg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d),y=r(f,d);return o(p,m,g,y)};else if(e&&t&&n&&r)s=(l,c)=>{const u=vg(l),d=c??(u?l.current.instanceId:bg),f=u?l.current.state:l,p=e(f,d),m=t(f,d),g=n(f,d);return r(p,m,g)};else if(e&&t&&n)s=(l,c)=>{const u=vg(l),d=c??(u?l.current.instanceId:bg),f=u?l.current.state:l,p=e(f,d),m=t(f,d);return n(p,m)};else if(e&&t)s=(l,c)=>{const u=vg(l),d=c??(u?l.current.instanceId:bg),f=u?l.current.state:l,p=e(f,d);return t(p)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},tr=(...e)=>{const t=(n,r)=>{const o=vg(n),i=o?n.current.instanceId:r??bg,a=o?n.current.state:n,s=Nq.get(i),l=s??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(a,i);const u=SPt(...e);return s||Nq.set(i,l),l.set(e,u),u(a,i)};return t.acceptsApiRef=!0,t},CPt=.7,PPt=1.3,EPt={compact:CPt,comfortable:PPt,standard:1},Gg=e=>e.density,C1=_t(Gg,e=>EPt[e]);let lr=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const pN={left:[],right:[]},TPt=e=>e.isRtl,zc=e=>e.columns,zu=_t(zc,e=>e.orderedFields),vd=_t(zc,e=>e.lookup),nc=tr(zu,vd,(e,t)=>e.map(n=>t[n])),Qs=_t(zc,e=>e.columnVisibilityModel),wo=tr(nc,Qs,(e,t)=>e.filter(n=>t[n.field]!==!1)),$b=tr(wo,e=>e.map(t=>t.field)),OPt=e=>e.pinnedColumns,P1=tr(zc,OPt,$b,TPt,(e,t,n,r)=>{const o=IPt(t,n,r);return{left:o.left.map(a=>e.lookup[a]),right:o.right.map(a=>e.lookup[a])}});function IPt(e,t,n){var s,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((s=e.left)==null?void 0:s.length)===0&&((l=e.right)==null?void 0:l.length)===0)return pN;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),i=t.filter(c=>!o.includes(c)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const cp=tr(wo,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Jz=_t(wo,cp,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),wce=tr(nc,e=>e.filter(t=>t.filterable)),kPt=tr(nc,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),MPt=tr(nc,e=>e.some(t=>t.colSpan!==void 0)),APt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],$Pt=e=>{const{classes:t}=e;return bt({root:["editInputCell"]},wn,t)},RPt=ie(Vv,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>D({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),DPt=kn((e,t)=>{const n=xt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=ze(e,APt),f=sn(),p=v.useRef(),[m,g]=v.useState(o),y=$Pt(n),b=v.useCallback(async S=>{const P=S.target.value;u&&await u(S,P);const E=f.current.getColumn(i);let T=P;E.valueParser&&(T=E.valueParser(P,f.current.getRow(r),E,f)),g(T),f.current.setEditCellValue({id:r,field:i,value:T,debounceMs:l,unstable_skipValueParser:!0},S)},[f,l,i,r,u]),x=f.current.unstable_getEditCellMeta(r,i);return v.useEffect(()=>{(x==null?void 0:x.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[x,o]),mr(()=>{s&&p.current.focus()},[s]),$.jsx(RPt,D({inputRef:p,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:b,endAdornment:c?$.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d,{ref:t}))}),_Pt=e=>$.jsx(DPt,D({},e)),xce=(e,t)=>t&&e.length>1?[e[0]]:e,Fq=(e,t)=>n=>D({},n,{sorting:D({},n.sorting,{sortModel:xce(e,t)})}),LPt=e=>e==="desc",NPt=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=LPt(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},FPt=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),jPt=(e,t)=>{const n=e.map(r=>NPt(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>FPt(n,o,i)).map(o=>o.node.id)},jq=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Zz=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,BPt=new Intl.Collator,zPt=(e,t)=>{const n=Zz(e,t);return n!==null?n:typeof e=="string"?BPt.compare(e.toString(),t.toString()):e-t},Sce=(e,t)=>{const n=Zz(e,t);return n!==null?n:Number(e)-Number(t)},Cce=(e,t)=>{const n=Zz(e,t);return n!==null?n:e>t?1:e<t?-1:0},VPt=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Us(e){var P;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:s,clearButton:l,InputProps:c,variant:u="standard"}=e,d=ze(e,VPt),f=vb(),[p,m]=v.useState(KR(t.value,r)),[g,y]=v.useState(!1),b=cr(),x=xt(),S=v.useCallback(E=>{const T=KR(E.target.value,r);m(T),y(!0),f.start(x.filterDebounceMs,()=>{const O=D({},t,{value:T,fromInput:b});n(O),y(!1)})},[f,x.filterDebounceMs,t,r,b,n]);return v.useEffect(()=>{(t.fromInput!==b||t.value==null)&&m(KR(t.value,r))},[b,t,r]),$.jsx(x.slots.baseTextField,D({id:b,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:p===void 0?"":String(p),onChange:S,variant:u,type:r||"text",InputProps:D({},g||l?{endAdornment:g?$.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:s},c,{inputProps:D({tabIndex:a},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},d,(P=x.slotProps)==null?void 0:P.baseTextField))}function KR(e,t){if(!(e==null||e===""))return t==="number"?Number(e):String(e)}function HPt(e){return typeof e=="number"&&!Number.isNaN(e)}function Pce(e){return typeof e=="function"}function eV(e){return typeof e=="object"&&e!==null}function UPt(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function TO(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Vc=(e,t,n)=>Math.max(t,Math.min(n,e));function Bq(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function gy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!gy(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!gy(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!gy(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function WPt(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function GPt(e){const t=WPt(e);return(n,r)=>n+(r-n)*t()}function Ece(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const qPt=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],KPt=["key"];function Tce(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:c,variant:u="standard"}=e,d=ze(e,qPt),f={color:a,error:s,helperText:l,size:c,variant:u},[p,m]=v.useState(t.value||[]),g=cr(),y=xt();v.useEffect(()=>{const x=t.value??[];m(x.map(String))},[t.value]);const b=v.useCallback((x,S)=>{m(S.map(String)),n(D({},t,{value:[...S.map(P=>r==="number"?Number(P):P)]}))},[n,t,r]);return $.jsx(ac,D({multiple:!0,freeSolo:!0,options:[],filterOptions:(x,S)=>{const{inputValue:P}=S;return P==null||P===""?[]:[P]},id:g,value:p,onChange:b,renderTags:(x,S)=>x.map((P,E)=>{const T=S({index:E}),{key:O}=T,k=ze(T,KPt);return $.jsx(y.slots.baseChip,D({variant:"outlined",size:"small",label:P},k),O)}),renderInput:x=>{var S;return $.jsx(y.slots.baseTextField,D({},x,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:D({},x.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(S=y.slotProps)==null?void 0:S.baseTextField))}},d))}var Yc=function(e){return e.Cell="cell",e.Row="row",e}(Yc||{}),Jn=function(e){return e.Edit="edit",e.View="view",e}(Jn||{}),zn=function(e){return e.Edit="edit",e.View="view",e}(zn||{}),Vi=function(e){return e.And="and",e.Or="or",e}(Vi||{}),wu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(wu||{}),Nl=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Nl||{}),jd=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(jd||{}),_l=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(_l||{});function Oce(e){return e.field!==void 0}const lS=()=>({items:[],logicOperator:Vi.And,quickFilterValues:[],quickFilterLogicOperator:Vi.And});function Ice(e){return{current:e.current.getPublicApi()}}let L0;function YPt(){if(L0!==void 0)return L0;try{L0=new Function("return true")()}catch{L0=!1}return L0}const hN=(e,t)=>{const n=D({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=vd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},tV=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(s=>s.id==null);return o.some(s=>s.operator==null)||i?D({},e,{items:o.map(s=>hN(s,n))}):e.items!==o?D({},e,{items:o}):e},zq=(e,t,n)=>r=>D({},r,{filterModel:tV(e,t,n)}),cS=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,kce=(e,t)=>{var u;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const d=n.valueParser;r=Array.isArray(e.value)?(u=e.value)==null?void 0:u.map(f=>d(f,void 0,n,t)):d(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=cS(r));const i=D({},e,{value:r}),a=n.filterOperators;if(!(a!=null&&a.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const s=a.find(d=>d.value===i.operator);if(!s)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const l=Ice(t),c=s.getApplyFilterFn(i,n);return typeof c!="function"?null:{item:i,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=cS(f)),c(f,d,n,l)}}};let Vq=1;const XPt=(e,t,n)=>{const{items:r}=e,o=r.map(s=>kce(s,t)).filter(s=>!!s);if(o.length===0)return null;if(n||!YPt())return(s,l)=>{const c={};for(let u=0;u<o.length;u+=1){const d=o[u];(!l||l(d.item.field))&&(c[d.item.id]=d.fn(s))}return c};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
${o.map((s,l)=>`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(s.item.field)});`).join(`
`)}
@@ -435,32 +441,32 @@ ${o.map((s,l)=>` ${JSON.stringify(String(s.item.id))}: !shouldApply${l} ? false
`)}
};
-return result$$;`.replaceAll("$$",String(W7)));return W7+=1,(s,l)=>i(o,s,l)},Sle=e=>e.quickFilterExcludeHiddenColumns??!0,g1t=(e,t)=>{var s;const n=((s=e.quickFilterValues)==null?void 0:s.filter(Boolean))??[];if(n.length===0)return null;const r=Sle(e)?lb(t):Iu(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,a=wle(t);return r.forEach(l=>{const c=t.current.getColumn(l),u=c==null?void 0:c.getApplyQuickFilterFn;u&&o.push({column:c,appliers:n.map(d=>{const f=i?jx(d):d;return{fn:u(f,c,a)}})})}),function(c,u){const d={};e:for(let f=0;f<n.length;f+=1){const p=n[f];for(let m=0;m<o.length;m+=1){const{column:g,appliers:y}=o[m],{field:b}=g;if(u&&!u(b))continue;const x=y[f];let S=t.current.getRowValue(c,g);if(x.fn===null)continue;if(i&&(S=jx(S)),x.fn(S,c,g,a)){d[p]=!0;continue e}}d[p]=!1}return d}},y1t=(e,t,n)=>{const r=m1t(e,t,n),o=g1t(e,t);return function(a,s,l){l.passingFilterItems=(r==null?void 0:r(a,s))??null,l.passingQuickFilterValues=(o==null?void 0:o(a,s))??null}},G7=e=>e!=null,v1t=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>xle(r,t)!==null)),e.cleanedFilterItems),b1t=(e,t,n,r,o)=>{const i=v1t(o,r,n.items),a=e.filter(G7),s=t.filter(G7);if(a.length>0){const l=u=>a.some(d=>d[u.id]);if((n.logicOperator??Fx().logicOperator)===_i.And){if(!i.every(l))return!1}else if(!i.some(l))return!1}if(s.length>0&&n.quickFilterValues!=null){const l=u=>s.some(d=>d[u]);if((n.quickFilterLogicOperator??Fx().quickFilterLogicOperator)===_i.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},w1t=e=>{if(!e)return null;const t=new RegExp(QT(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=jx(a)),a!=null?t.test(a.toString()):!1}},q7=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(QT(r),"i");return i=>{if(i==null)return t;const a=o.test(String(i));return t?!a:a}},K7=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=o.compare(r,i.toString())===0;return t?!a:a}},Y7=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},x1t=(e=!1)=>[{value:"contains",getApplyFilterFn:q7(e,!1),InputComponent:_s},{value:"doesNotContain",getApplyFilterFn:q7(e,!0),InputComponent:_s},{value:"equals",getApplyFilterFn:K7(e,!1),InputComponent:_s},{value:"doesNotEqual",getApplyFilterFn:K7(e,!0),InputComponent:_s},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${QT(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:_s},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${QT(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:_s},{value:"isEmpty",getApplyFilterFn:Y7(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:Y7(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:vle}],Wl={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:a1t,type:"string",align:"left",filterOperators:x1t(),renderEditCell:e1t,getApplyQuickFilterFn:w1t},S1t=["open","target","onClose","children","position","className","onExited"],C1t=e=>{const{classes:t}=e;return Te({root:["menu"]},Sn,t)},P1t=ie($f,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ae.menuList}`]:{outline:0}})),E1t={"bottom-start":"top left","bottom-end":"top right"};function hz(e){var g;const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:s}=e,l=Ue(e,S1t),c=sn(),u=wt(),d=C1t(u),f=v.useRef(null);xn(()=>{var y,b;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((b=(y=f.current)==null?void 0:y.focus)==null||b.call(y),f.current=null)},[t]),v.useEffect(()=>{const y=t?"menuOpen":"menuClose";c.current.publishEvent(y,{target:n})},[c,t,n]);const p=y=>b=>{y&&y(),s&&s(b)},m=y=>{y.target&&(n===y.target||n!=null&&n.contains(y.target))||r(y)};return $.jsx(P1t,D({as:u.slots.basePopper,className:pe(d.root,a),ownerState:u,open:t,anchorEl:n,transition:!0,placement:i},l,(g=u.slotProps)==null?void 0:g.basePopper,{children:({TransitionProps:y,placement:b})=>$.jsx(PF,{onClickAway:m,mouseEvent:"onMouseDown",children:$.jsx(gh,D({},y,{style:{transformOrigin:E1t[b]},onExited:p(y==null?void 0:y.onExited),children:$.jsx(so,{children:o})}))})}))}const T1t=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],O1t=e=>typeof e.getActions=="function";function I1t(e){var F;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:a}=e,s=Ue(e,T1t),[l,c]=v.useState(-1),[u,d]=v.useState(!1),f=sn(),p=v.useRef(null),m=v.useRef(null),g=v.useRef(!1),y=v.useRef({}),b=nr(),x=_n(),S=_n(),P=wt();if(!O1t(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(f.current.getRowParams(n)),T=E.filter(U=>!U.props.showInMenu),O=E.filter(U=>U.props.showInMenu),k=T.length+(O.length?1:0);v.useLayoutEffect(()=>{r||Object.entries(y.current).forEach(([U,V])=>{V==null||V.stop({},()=>{delete y.current[U]})})},[r]),v.useEffect(()=>{if(l<0||!p.current||l>=p.current.children.length)return;p.current.children[l].focus({preventScroll:!0})},[l]),v.useEffect(()=>{r||(c(-1),g.current=!1)},[r]),v.useImperativeHandle(a,()=>({focus(){if(!g.current){const U=E.findIndex(V=>!V.props.disabled);c(U)}}}),[E]),v.useEffect(()=>{l>=k&&c(k-1)},[l,k]);const M=()=>{d(!0),c(k-1),g.current=!0},I=()=>{d(!1)},R=()=>{u?I():M()},_=U=>V=>{y.current[U]=V},N=(U,V)=>z=>{c(U),g.current=!0,V&&V(z)},B=U=>{if(k<=1)return;const V=(W,G)=>{var ne;if(W<0||W>E.length)return W;const K=(G==="left"?-1:1)*(b?-1:1);return(ne=E[W+K])!=null&&ne.props.disabled?V(W+K,G):W+K};let z=l;U.key==="ArrowRight"?z=V(l,"right"):U.key==="ArrowLeft"&&(z=V(l,"left")),!(z<0||z>=k)&&z!==l&&(U.preventDefault(),U.stopPropagation(),c(z))},L=U=>{U.key==="Tab"&&U.preventDefault(),["Tab","Escape"].includes(U.key)&&I()};return $.jsxs("div",D({role:"menu",ref:p,tabIndex:-1,className:ae.actionsCell,onKeyDown:B},s,{children:[T.map((U,V)=>v.cloneElement(U,{key:V,touchRippleRef:_(V),onClick:N(V,U.props.onClick),tabIndex:l===V?o:-1})),O.length>0&&S&&$.jsx(P.slots.baseIconButton,D({ref:m,id:S,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?x:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:_(S),tabIndex:l===T.length?o:-1},(F=P.slotProps)==null?void 0:F.baseIconButton,{children:$.jsx(P.slots.moreActionsIcon,{fontSize:"small"})})),O.length>0&&$.jsx(hz,{open:u,target:m.current,position:i,onClose:I,children:$.jsx(Ev,{id:x,className:ae.menuList,onKeyDown:L,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:O.map((U,V)=>v.cloneElement(U,{key:V,closeMenu:I}))})})]}))}const k1t=e=>$.jsx(I1t,D({},e)),Vk="actions",M1t=D({},Wl,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:k1t,getApplyQuickFilterFn:void 0}),fl=e=>e.rows,Hk=Dt(fl,e=>e.totalRowCount),A1t=Dt(fl,e=>e.loading),$1t=Dt(fl,e=>e.totalTopLevelRowCount),Zd=Dt(fl,e=>e.dataRowIdToModelLookup),JT=Dt(fl,e=>e.dataRowIdToIdLookup),ei=Dt(fl,e=>e.tree),R1t=Dt(fl,e=>e.groupsToFetch),D1t=Dt(fl,e=>e.groupingName),X7=Dt(fl,e=>e.treeDepths),cb=rr(fl,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),JC=Dt(fl,e=>e.dataRowIds),_1t=Dt(fl,e=>e==null?void 0:e.additionalRowGroups),em=rr(_1t,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),Cle=Dt(em,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),ti="auto-generated-group-node-root",Jg=Symbol("mui.id_autogenerated"),L1t=()=>({type:"group",id:ti,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function N1t(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
-`))}const Uk=(e,t,n)=>{const r=t?t(e):e.id;return N1t(r,e,n),r},LP=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s<e.length;s+=1){const l=e[s],c=Uk(l,t);i[c]=l,a[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},Ple=({tree:e,rowCountProp:t=0})=>{const n=e[ti];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Ele=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},D({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:Ple({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},lv=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,mz=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!lv(e[a]))&&o.push(a);const s=mz(e,a,n);for(let l=0;l<s.length;l+=1)o.push(s[l])}return!n&&r.footerId!=null&&o.push(r.footerId),o},Q7=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(u=>{const d=Uk(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,D({},o.get(d),u)):o.set(d,u)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:D({},e.updates.idToActionLookup),groupKeys:r},a=D({},e.dataRowIdToModelLookup),s=D({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=i.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!a[d])return;f!=null&&(l[f][d]=!0),i.actions.remove.push(d),delete a[d],delete s[d];return}const p=a[d];if(p){f==="remove"?(l.remove[d]=!0,i.actions.modify.push(d)):f==null&&i.actions.modify.push(d),a[d]=D({},p,u);return}f==="remove"?(l.remove[d]=!0,i.actions.insert.push(d)):f==null&&i.actions.insert.push(d),a[d]=u,s[d]=d});const c=Object.keys(l);for(let u=0;u<c.length;u+=1){const d=c[u],f=l[d];Object.keys(f).length>0&&(i.actions[d]=i.actions[d].filter(p=>!f[p]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:s,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function F1t(e){var o,i;const t=em(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0;return{top:n,bottom:r}}const Tle="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function J7(e,t,n){const r=[];return t.forEach(o=>{const i=Uk(o,n,"A row was provided without id when calling updateRows():"),a=e.current.getRowNode(i);if((a==null?void 0:a.type)==="pinnedRow"){const s=e.current.caches.pinnedRows,l=s.idLookup[i];l&&(s.idLookup[i]=D({},l,o))}else r.push(o)}),r}const Ole=(e,t,n)=>typeof e=="number"&&e>0?e:t,j1t="__tree_data_group__",Ile="__row_group_by_columns_group__",Wk="__detail_panel_toggle__",B1t=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],z1t=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},Sn,t)};function V1t(e){const{value:t,rowNode:n}=e,r=Ue(e,B1t),o=sn(),i=wt(),a={classes:i.classes},s=z1t(a),c=Ye(o,cb)>0&&n.type==="group"&&i.treeData===!1,u=v.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:$.jsx(u,D({fontSize:"small",className:s.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const H1t=v.memo(V1t),U1t=e=>e.field!==Ile&&lv(e.rowNode)?"":$.jsx(H1t,D({},e)),W1t=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],G1t=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},Sn,t)};function q1t(e){var b;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,s=Ue(e,W1t),l=sn(),c=v.useRef(null),u=_n(),[d,f]=v.useState(n),p=wt(),m={classes:p.classes},g=G1t(m),y=v.useCallback(async x=>{const S=x.target.checked;a&&await a(x,S),f(S),await l.current.setEditCellValue({id:t,field:r,value:S},x)},[l,r,t,a]);return v.useEffect(()=>{f(n)},[n]),xn(()=>{i&&c.current.focus()},[i]),$.jsx("label",D({htmlFor:u,className:pe(g.root,o)},s,{children:$.jsx(p.slots.baseCheckbox,D({id:u,inputRef:c,checked:!!d,onChange:y,size:"small"},(b=p.slotProps)==null?void 0:b.baseCheckbox))}))}const K1t=e=>$.jsx(q1t,D({},e)),Y1t=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],NP=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},X1t=ie("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Q1t(e){var P,E,T;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:a,label:s,variant:l="standard"}=e,c=Ue(e,Y1t),[u,d]=v.useState(NP(t.value)),f=wt(),p=_n(),m=_n(),g=((P=f.slotProps)==null?void 0:P.baseSelect)||{},y=g.native??!1,b=((E=f.slotProps)==null?void 0:E.baseSelectOption)||{},x=v.useCallback(O=>{const k=NP(O.target.value);d(k),n(D({},t,{value:k}))},[n,t]);v.useEffect(()=>{d(NP(t.value))},[t.value]);const S=s??r.current.getLocaleText("filterPanelInputLabel");return $.jsxs(X1t,{children:[$.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[$.jsx(f.slots.baseInputLabel,D({},(T=f.slotProps)==null?void 0:T.baseInputLabel,{id:p,shrink:!0,variant:l,children:S})),$.jsxs(f.slots.baseSelect,D({labelId:p,id:m,label:S,value:u===void 0?"":String(u),onChange:x,variant:l,notched:l==="outlined"?!0:void 0,native:y,displayEmpty:!0,inputProps:{ref:o,tabIndex:a}},c,g,{children:[$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"",children:r.current.getLocaleText("filterValueAny")})),$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"true",children:r.current.getLocaleText("filterValueTrue")})),$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const J1t=()=>[{value:"is",getApplyFilterFn:e=>{const t=NP(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Q1t}],Z1t=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),eCt=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},kle=D({},Wl,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:U1t,renderEditCell:K1t,sortComparator:hle,valueFormatter:Z1t,filterOperators:J1t(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>eCt(e)}),Mle=e=>e.sorting,ub=Dt(Mle,e=>e.sortedRows),gz=rr(ub,Zd,ei,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const a=n[o];return a&&lv(a)&&r.push({id:o,model:{[Jg]:o}}),r},[])),ks=Dt(Mle,e=>e.sortModel),tCt=rr(ks,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));rr(ub,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const Gk=e=>e.filter,Qo=Dt(Gk,e=>e.filterModel);Dt(Qo,e=>e.quickFilterValues);const nCt=e=>e.visibleRowsLookup,db=Dt(Gk,e=>e.filteredRowsLookup);Dt(Gk,e=>e.filteredChildrenCountLookup);Dt(Gk,e=>e.filteredDescendantCountLookup);const qf=rr(nCt,gz,(e,t)=>t.filter(n=>e[n.id]!==!1)),Zg=rr(qf,e=>e.map(t=>t.id)),Ale=rr(db,gz,(e,t)=>t.filter(n=>e[n.id]!==!1)),$le=rr(Ale,e=>e.map(t=>t.id));rr(Zg,ei,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,o[i]=n[a.depth],o},{})});const Rle=rr(qf,ei,cb,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),yz=Dt(qf,e=>e.length),vz=Dt(Rle,e=>e.length),rCt=Dt(Ale,e=>e.length);Dt(rCt,vz,(e,t)=>e-t);const oCt=rr(Qo,od,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var a,s;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((a=o==null?void 0:o.filterOperators)==null?void 0:a.length)===0)return!1;const i=o.filterOperators.find(l=>l.value===r.operator);return i?!i.InputComponent||r.value!=null&&((s=r.value)==null?void 0:s.toString())!=="":!1})}),iCt=rr(oCt,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Ms=e=>e.rowSelection,aCt=Dt(Ms,e=>e.length),sCt=rr(Ms,Zd,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ku=rr(Ms,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Dle(e,t){var l;const n=ei(e),r=ub(e),o=db(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],s=r.findIndex(c=>c===t)+1;for(let c=s;c<r.length&&((l=n[r[c]])==null?void 0:l.depth)>i.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&a.push(u)}return a}function lCt(e,t){return Dt(ei,ub,db,ku,(n,r,o,i)=>{var u;const a=n[e];if(!a||a.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let s=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;d<r.length&&((u=n[r[d]])==null?void 0:u.depth)>a.depth;d+=1){const f=r[d];o[f]!==!1&&(s+=1,i[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l<s||i[e]===void 0),isChecked:t?l>0:i[e]===e}})}function bz(e){return e.signature===Xs.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const cCt=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==ti;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},uCt=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(a=>a!==n&&t[a])},ZC=(e,t,n,r,o,i)=>{const a=db(e),s=ku(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&Dle(e,n).forEach(d=>{i(d),l.add(d)})}if(o){const c=d=>{if(s[d]!==d&&!l.has(d))return!1;const f=t[d];return(f==null?void 0:f.type)!=="group"?!0:f.children.every(c)},u=d=>{const f=uCt(t,a,d);if(f.length===0||f.every(c)){const m=t[d].parent;m!=null&&m!==ti&&e.current.isRowSelectable(m)&&(i(m),l.add(m),u(m))}};u(n)}}},Z7=(e,t,n,r,o,i)=>{const a=ku(e);if(!(!o&&!r)&&(o&&cCt(t,n).forEach(l=>{a[l]===l&&i(l)}),r)){const s=t[n];(s==null?void 0:s.type)==="group"&&Dle(e,n).forEach(c=>{i(c)})}},dCt=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],fCt=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},Sn,t)},pCt=$n(function(t,n){var k,M;const{field:r,id:o,rowNode:i,hasFocus:a,tabIndex:s}=t,l=Ue(t,dCt),c=sn(),u=wt(),d={classes:u.classes},f=fCt(d),p=v.useRef(null),m=v.useRef(null),g=Wt(p,n),y=I=>{const R={value:I.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",R,I)};v.useLayoutEffect(()=>{if(s===0){const I=c.current.getCellElement(o,r);I&&(I.tabIndex=-1)}},[c,s,o,r]),v.useEffect(()=>{var I;if(a){const R=(I=p.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[a]);const b=v.useCallback(I=>{I.key===" "&&I.stopPropagation()},[]),x=c.current.isRowSelectable(o),S=lCt(o,((k=u.rowSelectionPropagation)==null?void 0:k.parents)??!1),{isIndeterminate:P,isChecked:E}=Ye(c,S);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=u.indeterminateCheckboxAction==="select"?E&&!P:E,O=c.current.getLocaleText(T?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return $.jsx(u.slots.baseCheckbox,D({tabIndex:s,checked:T,onChange:y,className:f.root,inputProps:{"aria-label":O},onKeyDown:b,indeterminate:P,disabled:!x,touchRippleRef:m},(M=u.slotProps)==null?void 0:M.baseCheckbox,l,{ref:g}))}),hCt=pCt,qk=e=>e.focus,Da=Dt(qk,e=>e.cell),mCt=Dt(qk,e=>e.columnHeader);Dt(qk,e=>e.columnHeaderFilter);const ZT=Dt(qk,e=>e.columnGroupHeader),Kk=e=>e.tabIndex,wz=Dt(Kk,e=>e.cell),_le=Dt(Kk,e=>e.columnHeader);Dt(Kk,e=>e.columnHeaderFilter);const gCt=Dt(Kk,e=>e.columnGroupHeader);function Qt(e,t,n){const r=v.useRef(!0);xn(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Ro(e,t){const n=v.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Lle=(e,t,n,r,o)=>{const i=Ro(e,"useNativeEventListener"),[a,s]=v.useState(!1),l=v.useRef(r),c=gle(t)?t():(t==null?void 0:t.current)??null,u=v.useCallback(d=>l.current&&l.current(d),[]);v.useEffect(()=>{l.current=r},[r]),v.useEffect(()=>{if(c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),s(!0);const d=()=>{i.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,a,i,o,e])},t1=e=>{const t=v.useRef(!0);t.current&&(t.current=!1,e())},yCt=()=>{},vCt=(e,t)=>{const n=v.useRef(!1);xn(()=>n.current||!e?yCt:(n.current=!0,t()),[n.current||e])},bCt=100,wCt=e=>e?0:100,Nle=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Fle=e=>({page:0,pageSize:e?0:100}),xCt=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),jle=(e,t)=>{if(t===Xs.DataGrid&&e>bCt)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`))},SCt=-1,Yk=e=>e.pagination,Di=Dt(Yk,e=>e.paginationModel),kg=Dt(Yk,e=>e.rowCount),L0=Dt(Yk,e=>e.meta),CCt=Dt(Di,e=>e.page),PCt=Dt(Di,e=>e.pageSize),Ble=Dt(Di,kg,(e,t)=>Nle(t,e.pageSize,e.page)),xz=rr(Di,ei,cb,qf,Rle,(e,t,n,r,o)=>{var p;const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=e.pageSize===SCt?i-1:Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],c=s-a+1,u=r.findIndex(m=>m.id===l.id);let d=u,f=0;for(;d<r.length&&f<=c;){const m=r[d],g=(p=t[m.id])==null?void 0:p.depth;g===void 0?d+=1:((f<c||g>0)&&(d+=1),g===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),ECt=rr(qf,xz,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),zle=rr(Zg,xz,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),TCt=["field","colDef"],OCt=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},Sn,t)},ICt=$n(function(t,n){var k;const r=Ue(t,TCt),[,o]=v.useState(!1),i=sn(),a=wt(),s={classes:a.classes},l=OCt(s),c=Ye(i,_le),u=Ye(i,Ms),d=Ye(i,Zg),f=Ye(i,zle),p=v.useMemo(()=>typeof a.isRowSelectable!="function"?u:u.filter(M=>i.current.getRow(M)?a.isRowSelectable(i.current.getRowParams(M)):!1),[i,a.isRowSelectable,u]),m=v.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?d:f).reduce((I,R)=>(I[R]=!0,I),{}),[a.pagination,a.checkboxSelectionVisibleOnly,f,d]),g=v.useMemo(()=>p.filter(M=>m[M]).length,[p,m]),y=g>0&&g<Object.keys(m).length,b=g>0,x=M=>{const I={value:M.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",I)},S=c!==null&&c.field===t.field?0:-1;v.useLayoutEffect(()=>{const M=i.current.getColumnHeaderElement(t.field);S===0&&M&&(M.tabIndex=-1)},[S,i,t.field]);const P=v.useCallback(M=>{M.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=v.useCallback(()=>{o(M=>!M)},[]);v.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const T=a.indeterminateCheckboxAction==="select"?b&&!y:b,O=i.current.getLocaleText(T?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return $.jsx(a.slots.baseCheckbox,D({indeterminate:y,checked:T,onChange:x,className:l.root,inputProps:{"aria-label":O},tabIndex:S,onKeyDown:P,disabled:!bz(a)},(k=a.slotProps)==null?void 0:k.baseCheckbox,r,{ref:n}))}),du="__check__",fb=D({},kle,{type:"custom",field:du,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=ku(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>$.jsx(ICt,D({},e)),renderCell:e=>$.jsx(hCt,D({},e))}),kCt=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function eq(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function Hm(e){var S;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:a,clearButton:s,tabIndex:l,disabled:c}=e,u=Ue(e,kCt),d=la(),[f,p]=v.useState(()=>eq(t.value,r)),[m,g]=v.useState(!1),y=_n(),b=wt(),x=v.useCallback(P=>{d.clear();const E=P.target.value;p(E),g(!0),d.start(b.filterDebounceMs,()=>{const T=new Date(E);n(D({},t,{value:Number.isNaN(T.getTime())?void 0:T})),g(!1)})},[n,t,b.filterDebounceMs,d]);return v.useEffect(()=>{const P=eq(t.value,r);p(P)},[t.value,r]),$.jsx(b.slots.baseTextField,D({fullWidth:!0,id:y,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:x,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:D({},m||s?{endAdornment:m?$.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):s}:{},{disabled:c},a,{inputProps:D({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},a==null?void 0:a.inputProps)})},u,(S=b.slotProps)==null?void 0:S.baseTextField))}function Um(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const s=new Date(a);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),i)}}const Vle=e=>[{value:"is",getApplyFilterFn:t=>Um(t,(n,r)=>n===r,e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Um(t,(n,r)=>n!==r,e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Um(t,(n,r)=>n>r,e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Um(t,(n,r)=>n>=r,e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Um(t,(n,r)=>n<r,e,!e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Um(t,(n,r)=>n<=r,e),InputComponent:Hm,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],MCt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],ACt=ie(wv)({fontSize:"inherit"}),$Ct=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},Sn,t)};function RCt(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=Ue(e,MCt),c=o.type==="dateTime",u=sn(),d=v.useRef(),f=v.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n??"").toString());let E;return P==null||Number.isNaN(P.getTime())?E="":E=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:P,formatted:E}},[n,c]),[p,m]=v.useState(f),y={classes:wt().classes},b=$Ct(y),x=v.useCallback(P=>{if(P==="")return null;const[E,T]=P.split("T"),[O,k,M]=E.split("-"),I=new Date;if(I.setFullYear(Number(O),Number(k)-1,Number(M)),I.setHours(0,0,0,0),T){const[R,_]=T.split(":");I.setHours(Number(R),Number(_),0,0)}return I},[]),S=v.useCallback(async P=>{const E=P.target.value,T=x(E);s&&await s(P,T),m({parsed:T,formatted:E}),u.current.setEditCellValue({id:t,field:r,value:T},P)},[u,r,t,s,x]);return v.useEffect(()=>{m(P=>{var E,T;return f.parsed!==P.parsed&&((E=f.parsed)==null?void 0:E.getTime())!==((T=P.parsed)==null?void 0:T.getTime())?f:P})},[f]),xn(()=>{i&&d.current.focus()},[i]),$.jsx(ACt,D({inputRef:d,fullWidth:!0,className:b.root,type:c?"datetime-local":"date",inputProps:D({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:p.formatted,onChange:S},l))}const Hle=e=>$.jsx(RCt,D({},e));function Ule({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
-`))}const DCt=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return Ule({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},_Ct=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return Ule({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},LCt=D({},Wl,{type:"date",sortComparator:mle,valueFormatter:DCt,filterOperators:Vle(),renderEditCell:Hle,pastedValueParser:e=>new Date(e)}),NCt=D({},Wl,{type:"dateTime",sortComparator:mle,valueFormatter:_Ct,filterOperators:Vle(!0),renderEditCell:Hle,pastedValueParser:e=>new Date(e)}),Md=e=>e==null?null:Number(e),FCt=e=>e==null||Number.isNaN(e)||e===""?null:t=>Md(t)===Md(e),jCt=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Md(t)===e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Md(t)!==e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Md(t)>e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Md(t)>=e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Md(t)<e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Md(t)<=e.value,InputComponent:_s,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:vle,InputComponentProps:{type:"number"}}],BCt=D({},Wl,{type:"number",align:"right",headerAlign:"right",sortComparator:hle,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>l1t(e)?e.toLocaleString():e||"",filterOperators:jCt(),getApplyQuickFilterFn:FCt});function cv(e){return(e==null?void 0:e.type)==="singleSelect"}function Th(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(D({field:e.field},t)):e.valueOptions}function eO(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const zCt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],VCt=["MenuProps"];function HCt(e){return!!e.key}function UCt(e){var _,N;const t=wt(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:s,error:l,onValueChange:c,initialOpen:u=t.editMode===Fc.Cell}=e,d=Ue(e,zCt),f=sn(),p=v.useRef(),m=v.useRef(),[g,y]=v.useState(u),x=(((_=t.slotProps)==null?void 0:_.baseSelect)||{}).native??!1,S=((N=t.slotProps)==null?void 0:N.baseSelect)||{},{MenuProps:P}=S,E=Ue(S,VCt);if(xn(()=>{var B;s&&((B=m.current)==null||B.focus())},[s]),!cv(a))return null;const T=Th(a,{id:n,row:i});if(!T)return null;const O=a.getOptionValue,k=a.getOptionLabel,M=async B=>{if(!cv(a)||!T)return;y(!1);const L=B.target,F=eO(L.value,T,O);c&&await c(B,F),await f.current.setEditCellValue({id:n,field:o,value:F},B)},I=(B,L)=>{if(t.editMode===Fc.Row){y(!1);return}if(L==="backdropClick"||B.key==="Escape"){const F=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",D({},F,{reason:B.key==="Escape"?Tl.escapeKeyDown:Tl.cellFocusOut}))}},R=B=>{HCt(B)&&B.key==="Enter"||y(!0)};return!T||!a?null:$.jsx(t.slots.baseSelect,D({ref:p,inputRef:m,value:r,onChange:M,open:g,onOpen:R,MenuProps:D({onClose:I},P),error:l,native:x,fullWidth:!0},d,E,{children:T.map(B=>{var F;const L=O(B);return v.createElement(t.slots.baseSelectOption,D({},((F=t.slotProps)==null?void 0:F.baseSelectOption)||{},{native:x,key:L,value:L}),k(B))})}))}const WCt=e=>$.jsx(UCt,D({},e)),GCt=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],qCt=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...Th(e)||[]].map(s=>{const l=r(s);let c=n(s);return c===""&&(c=" "),v.createElement(t,D({},i,{native:o,key:l,value:l}),c)}),KCt=ie("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function tq(e){var O,k,M,I,R;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:a,tabIndex:s,label:l,variant:c="standard",clearButton:u}=e,d=Ue(e,GCt),f=t.value??"",p=_n(),m=_n(),g=wt(),y=((k=(O=g.slotProps)==null?void 0:O.baseSelect)==null?void 0:k.native)??!1;let b=null;if(t.field){const _=o.current.getColumn(t.field);cv(_)&&(b=_)}const x=b==null?void 0:b.getOptionValue,S=b==null?void 0:b.getOptionLabel,P=v.useMemo(()=>Th(b),[b]),E=v.useCallback(_=>{let N=_.target.value;N=eO(N,P,x),n(D({},t,{value:N}))},[P,x,n,t]);if(!cv(b))return null;const T=l??o.current.getLocaleText("filterPanelInputLabel");return $.jsxs(KCt,{children:[$.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[$.jsx(g.slots.baseInputLabel,D({},(M=g.slotProps)==null?void 0:M.baseInputLabel,{id:m,htmlFor:p,shrink:!0,variant:c,children:T})),$.jsx(g.slots.baseSelect,D({id:p,label:T,labelId:m,value:f,onChange:E,variant:c,type:r||"text",inputProps:{tabIndex:s,ref:i,placeholder:a??o.current.getLocaleText("filterPanelInputPlaceholder")},native:y,notched:c==="outlined"?!0:void 0},d,(I=g.slotProps)==null?void 0:I.baseSelect,{children:qCt({column:b,OptionComponent:g.slots.baseSelectOption,getOptionLabel:S,getOptionValue:x,isSelectNative:y,baseSelectOptionProps:(R=g.slotProps)==null?void 0:R.baseSelectOption})}))]}),u]})}const YCt=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],XCt=["key"],QCt=sJ();function JCt(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:a,helperText:s,size:l,variant:c="standard"}=e,u=Ue(e,YCt),d={color:i,error:a,helperText:s,size:l,variant:c},f=_n(),p=wt();let m=null;if(t.field){const E=r.current.getColumn(t.field);cv(E)&&(m=E)}const g=m==null?void 0:m.getOptionValue,y=m==null?void 0:m.getOptionLabel,b=v.useCallback((E,T)=>g(E)===g(T),[g]),x=v.useMemo(()=>Th(m)||[],[m]),S=v.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,T)=>{const O=x.find(k=>g(k)===T);return O!=null&&E.push(O),E},[]):[],[g,t.value,x]),P=v.useCallback((E,T)=>{n(D({},t,{value:T.map(g)}))},[n,t,g]);return $.jsx(Kl,D({multiple:!0,options:x,isOptionEqualToValue:b,filterOptions:QCt,id:f,value:S,onChange:P,getOptionLabel:y,renderTags:(E,T)=>E.map((O,k)=>{const M=T({index:k}),{key:I}=M,R=Ue(M,XCt);return $.jsx(p.slots.baseChip,D({variant:"outlined",size:"small",label:y(O)},R),I)}),renderInput:E=>{var T;return $.jsx(p.slots.baseTextField,D({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:D({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(T=p.slotProps)==null?void 0:T.baseTextField))}},u))}const Wm=e=>e==null||!fz(e)?e:e.value,ZCt=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Wm(t)===Wm(e.value),InputComponent:tq},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Wm(t)!==Wm(e.value),InputComponent:tq},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Wm);return n=>t.includes(Wm(n))},InputComponent:JCt}],ePt=e=>typeof e[0]=="object",tPt=e=>fz(e)?e.value:e,nPt=e=>fz(e)?e.label:String(e),rPt=D({},Wl,{type:"singleSelect",getOptionLabel:nPt,getOptionValue:tPt,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!cv(n))return"";const i=Th(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!ePt(i))return n.getOptionLabel(e);const a=i.find(s=>n.getOptionValue(s)===e);return a?n.getOptionLabel(a):""},renderEditCell:WCt,filterOperators:ZCt(),pastedValueParser:(e,t,n)=>{const r=n,o=Th(r)||[],i=r.getOptionValue;if(o.find(s=>i(s)===e))return e}}),oPt="string",iPt=()=>({string:Wl,number:BCt,date:LCt,dateTime:NCt,boolean:kle,singleSelect:rPt,[Vk]:M1t,custom:Wl}),Sz=e=>e.headerFiltering,aPt=Dt(Sz,e=>(e==null?void 0:e.enabled)??!1),sPt=Dt(Sz,e=>e.editing),lPt=Dt(Sz,e=>e.menuOpen),Xk=e=>e.columnGrouping,Wle=rr(Xk,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),Gle=rr(Xk,e=>(e==null?void 0:e.lookup)??{}),cPt=rr(Xk,e=>(e==null?void 0:e.headerStructure)??[]),n1=Dt(Xk,e=>(e==null?void 0:e.maxDepth)??0),qle=["maxWidth","minWidth","width","flex"],fR=iPt();function uPt({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,c=0;o.frozenFields.forEach(u=>{s-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const d=n[u];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let p=s/l*d.flex;p<d.minWidth?(c+=d.minWidth-p,p=d.minWidth,a.min[d.field]=!0):p>d.maxWidth&&(c+=d.maxWidth-p,p=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:p,flex:d.flex}}c<0?Object.keys(a.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(a.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),i()}return i(),o.all}const $L=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=$c(c.width||Wl.width,c.minWidth||Wl.minWidth,c.maxWidth||Wl.maxWidth),o+=u),c.computedWidth!==u&&(c=D({},c,{computedWidth:u})),d&&i.push(c),n[l]=c});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-o,0);if(r>0&&a>0){const l=uPt({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return D({},e,{lookup:n})},dPt=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let u=0;u<n.length;u+=1){const d=n[u];e.lookup[d]&&(i[d]=!0,a.push(d))}const s=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(u=>!i[u])],l=D({},e.lookup);for(let u=0;u<o.length;u+=1){const d=o[u],f=D({},l[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([p,m])=>{f[p]=m===-1?1/0:m}),l[d]=f}return D({},e,{orderedFields:s,lookup:l})};function nq(e){let t=fR[oPt];return e&&fR[e]&&(t=fR[e]),t}const ng=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Vs(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const i=!e.current.state.columns;let a;if(i)a={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=Ac(e.current.state);a={orderedFields:o?[]:[...f.orderedFields],lookup:D({},f.lookup),columnVisibilityModel:r}}let s={};o&&!i&&(s=Object.keys(a.lookup).reduce((f,p)=>D({},f,{[p]:!1}),{})),t.forEach(f=>{const{field:p}=f;s[p]=!0;let m=a.lookup[p];m==null?(m=D({},nq(f.type),{field:p,hasBeenResized:!1}),a.orderedFields.push(p)):o&&a.orderedFields.push(p),m&&m.type!==f.type&&(m=D({},nq(f.type),{field:p}));let g=m.hasBeenResized;qle.forEach(y=>{f[y]!==void 0&&(g=!0,f[y]===-1&&(f[y]=1/0))}),a.lookup[p]=ih(m,D({},f,{hasBeenResized:g}))}),o&&!i&&Object.keys(a.lookup).forEach(f=>{s[f]||delete a.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",a),c=dPt(l,n);return $L(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function fPt({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a<r;a+=1)if(o[a]){const l=o[a].id,c=t.current.unstable_getCellColSpanInfo(l,e);c&&c.spannedByColSpan&&(i=c.leftVisibleCellIndex)}return i}function Cz(e,t){if(t.unstable_listView)return 0;const n=ZS(e),r=n1(e),o=aPt(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+s}const rq=1,pPt=1.5,hPt=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Te(r,Sn,n)},mPt=Qn("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ae["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ae["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ae["scrollArea--left"]}`]:{left:0},[`&.${ae["scrollArea--right"]}`]:{right:0}}));function gPt(e){const{scrollDirection:t}=e,n=v.useRef(null),r=sn(),o=la(),i=Ye(r,ZS),a=Ye(r,uz),s=Ye(r,Ci),l=v.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const k=a-s.viewportInnerSize.width;return l.current.left<k}return!1},[u,d]=v.useState(!1),[f,p]=v.useState(c),m=wt(),g=D({},m,{scrollDirection:t}),y=hPt(g),b=Cz(r,m),x=Math.floor(m.columnHeaderHeight*i),S={height:x,top:b-x};t==="left"?S.left=s.leftPinnedWidth:t==="right"&&(S.right=s.rightPinnedWidth+(s.hasScrollX?s.scrollbarSize:0));const P=k=>{l.current=k,p(c)},E=Ze(k=>{let M;if(k.preventDefault(),t==="left")M=k.clientX-n.current.getBoundingClientRect().right;else if(t==="right")M=Math.max(1,k.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");M=(M-rq)*pPt+rq,o.start(0,()=>{r.current.scroll({left:l.current.left+M,top:l.current.top})})}),T=Ze(()=>{d(!0)}),O=Ze(()=>{d(!1)});return gt(r,"scrollPositionChange",P),gt(r,"columnHeaderDragStart",T),gt(r,"columnHeaderDragEnd",O),!u||!f?null:$.jsx(mPt,{ref:n,className:pe(y.root),ownerState:g,onDragOver:E,style:S})}const oq=Wf(gPt);var Pz={},Kle={exports:{}},Yle={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yle);var yPt=Yle.exports;(function(e){var t=yPt.default;function n(o){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:i})(o)}function r(o,i){if(!i&&o&&o.__esModule)return o;if(o===null||t(o)!="object"&&typeof o!="function")return{default:o};var a=n(i);if(a&&a.has(o))return a.get(o);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if(c!=="default"&&{}.hasOwnProperty.call(o,c)){var u=l?Object.getOwnPropertyDescriptor(o,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=o[c]}return s.default=o,a&&a.set(o,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Kle);var vPt=Kle.exports,bPt=vPt.default;Object.defineProperty(Pz,"__esModule",{value:!0});var Xle=Pz.default=void 0,wPt=bPt(v);Xle=Pz.default=parseInt(wPt.version,10);const Qle=v.createContext(void 0);function pl(){const e=v.useContext(Qle);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e}const ey=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=xz(e),n=ECt(e)):(n=qf(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},tm=(e,t)=>{const n=ey(e,t);return v.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},xPt=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",SPt=xPt.includes("firefox"),pb=e=>e.rowsMeta,Qk=e=>e.virtualization;Dt(Qk,e=>e.enabled);const Jk=Dt(Qk,e=>e.enabledForColumns),CPt=Dt(Qk,e=>e.enabledForRows),Zk=Dt(Qk,e=>e.renderContext),PPt=rr(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),Jle={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},EPt=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return D({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:Jle}})};function TPt(e,t){const n=i=>{e.current.setState(a=>D({},a,{virtualization:D({},a.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Qt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>D({},a,{virtualization:D({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const Ez=e=>e.rowSpanning,Zle=Dt(Ez,e=>e.hiddenCells),OPt=Dt(Ez,e=>e.spannedCells),IPt=Dt(Ez,e=>e.hiddenCellOriginMap),uv=e=>e.listViewColumn,pR=50;var no=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(no||{});const iq={top:0,left:0},kPt=Object.freeze(new Map),MPt=(e,t,n,r,o)=>({direction:no.NONE,buffer:tce(e,no.NONE,t,n,r,o)});let RL=!1;try{typeof window<"u"&&(RL=/jsdom|HappyDOM/.test(window.navigator.userAgent))}catch{}const APt=()=>{const e=pl(),t=wt(),{unstable_listView:n}=t,r=Ye(e,()=>n?[uv(e.current.state)]:ho(e)),o=Ye(e,CPt)&&!RL,i=Ye(e,Jk)&&!RL,a=Ye(e,Ci),s=a.viewportOuterSize,l=Ye(e,em),c=Ye(e,e1),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,p]=v.useState(kPt),m=nr(),g=Ye(e,Da),y=Ye(e,wz),b=Ye(e,pb),x=Ye(e,ku),S=tm(e,t),P=e.current.rootElementRef,E=e.current.mainElementRef,T=e.current.virtualScrollerRef,O=e.current.virtualScrollbarVerticalRef,k=e.current.virtualScrollbarHorizontalRef,M=a.contentSize.height,I=a.columnsTotalWidth,R=Ye(e,YSt),_=v.useCallback(le=>{if(E.current=le,!le)return;const Q=le.getBoundingClientRect();let ue=sq(Q);if(e.current.publishEvent("resize",ue),typeof ResizeObserver>"u")return;const ge=new ResizeObserver(xe=>{const me=xe[0];if(!me)return;const be=sq(me.contentRect);be.width===ue.width&&be.height===ue.height||(e.current.publishEvent("resize",be),ue=be)});if(ge.observe(le),Xle>=19)return()=>{E.current=null,ge.disconnect()}},[e,E]),N=v.useRef(iq),B=v.useRef(iq),L=v.useRef(Jle),F=Ye(e,Zk),U=la(),V=v.useRef(void 0),z=Jl(()=>MPt(m,t.rowBufferPx,t.columnBufferPx,a.rowHeight*15,pR*6)).current,W={rowIndex:v.useMemo(()=>g?S.rows.findIndex(le=>le.id===g.id):-1,[g,S.rows]),columnIndex:v.useMemo(()=>g?r.findIndex(le=>le.field===g.field):-1,[g,r])},G=v.useCallback(le=>{if(DPt(le,e.current.state.virtualization.renderContext))return;const Q=le.firstRowIndex!==L.current.firstRowIndex||le.lastRowIndex!==L.current.lastRowIndex;e.current.setState(ue=>D({},ue,{virtualization:D({},ue.virtualization,{renderContext:le})})),a.isReady&&Q&&(L.current=le,e.current.publishEvent("renderedRowsIntervalChange",le)),B.current=N.current},[e,a.isReady]),J=Ze(()=>{const le=T.current;if(!le)return;const Q={top:le.scrollTop,left:le.scrollLeft},ue=Q.left-N.current.left,ge=Q.top-N.current.top,xe=ue!==0||ge!==0;N.current=Q;const me=xe?_Pt(ue,ge):no.NONE,be=Math.abs(N.current.top-B.current.top),we=Math.abs(N.current.left-B.current.left),Oe=be>=a.rowHeight||we>=pR,ke=z.direction!==me;if(!(Oe||ke))return F;if(ke)switch(me){case no.NONE:case no.LEFT:case no.RIGHT:V.current=void 0;break;default:V.current=F;break}z.direction=me,z.buffer=tce(m,me,t.rowBufferPx,t.columnBufferPx,a.rowHeight*15,pR*6);const de=hR(e,t,o,i),Re=mR(de,N.current,z);return eI.flushSync(()=>{G(Re)}),U.start(1e3,J),Re}),K=()=>{const le=hR(e,t,o,i),Q=mR(le,N.current,z);V.current=void 0,G(Q)},ne=Ze(le=>{const{scrollTop:Q,scrollLeft:ue}=le.currentTarget;if(Q<0||!m&&ue<0||m&&ue>0)return;const ge=J();e.current.publishEvent("scrollPositionChange",{top:Q,left:ue,renderContext:ge})}),re=Ze(le=>{e.current.publishEvent("virtualScrollerWheel",{},le)}),oe=Ze(le=>{e.current.publishEvent("virtualScrollerTouchMove",{},le)}),fe=(le={})=>{var Me;if(!le.rows&&!S.range)return[];const Q=le.renderContext??F,ue=!d&&le.position===void 0||d&&le.position==="bottom",ge=le.position!==void 0;let xe;switch(le.position){case"top":xe=0;break;case"bottom":xe=l.top.length+S.rows.length;break;case void 0:xe=l.top.length;break}const me=le.rows??S.rows,be=Q.firstRowIndex,we=Math.min(Q.lastRowIndex,me.length),Oe=le.rows?H7(0,le.rows.length):H7(be,we);let ke=-1;!ge&&W.rowIndex!==-1&&(W.rowIndex<be&&(ke=W.rowIndex,Oe.unshift(ke)),W.rowIndex>=we&&(ke=W.rowIndex,Oe.push(ke)));const je=[],de=(Me=t.slotProps)==null?void 0:Me.row,Re=Gf(e);return Oe.forEach(Ae=>{var Wn,xo,So;const{id:Ne,model:Je}=me[Ae],nt=(((Wn=S==null?void 0:S.range)==null?void 0:Wn.firstRowIndex)||0)+xe+Ae;if(R){const ai=u.left.length,Sa=r.length-u.right.length;e.current.calculateColSpan({rowId:Ne,minFirstColumn:ai,maxLastColumn:Sa,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:Ne,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:Ne,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const st=(g==null?void 0:g.id)===Ne,$t=e.current.rowHasAutoHeight(Ne)?"auto":e.current.unstable_getRowHeight(Ne);let ct;x[Ne]==null?ct=!1:ct=e.current.isRowSelectable(Ne);let _t=!1;le.position===void 0&&(_t=Ae===0);let pt=!1;const ot=Ae===me.length-1;if(ue)if(ge)pt=ot;else{const ai=S.rows.length-1;Ae===ai&&(pt=!0)}const We=Ae===ke;let ft=null;y!==null&&y.id===Ne&&(ft=e.current.getCellParams(Ne,y.field).cellMode==="view"?y.field:null);let Ot=Q;!ge&&V.current&&Ae>=V.current.firstRowIndex&&Ae<V.current.lastRowIndex&&(Ot=V.current);const xt=ece(Re,Ot,u.left.length),vn=ot&&le.position==="top";if(je.push($.jsx(t.slots.row,D({row:Je,rowId:Ne,index:nt,selected:ct,offsetTop:le.rows?void 0:b.positions[Ae],offsetLeft:xt,dimensions:a,rowHeight:$t,tabbableCell:ft,pinnedColumns:u,visibleColumns:r,renderContext:Ot,focusedColumnIndex:st?W.columnIndex:void 0,isFirstVisible:_t,isLastVisible:pt,isNotVisible:We,showBottomBorder:vn},de),Ne)),We)return;const zn=f.get(Ne);zn&&je.push(zn),le.position===void 0&&ot&&je.push((So=(xo=e.current).getInfiniteLoadingTriggerElement)==null?void 0:So.call(xo,{lastRowId:Ne}))}),je},se=s.width&&I>s.width,ee=v.useMemo(()=>({overflowX:!se||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[se,t.autoHeight,n]),ce=v.useMemo(()=>{const le={width:se?I:"auto",flexBasis:M,flexShrink:0};return le.flexBasis===0&&(le.flexBasis=Tle),le},[I,M,se]);return v.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,ce]),xn(()=>{i&&(T.current.scrollLeft=0),o&&(T.current.scrollTop=0)},[i,o,P,T]),xn(()=>{n&&(T.current.scrollLeft=0)},[n,T]),vCt(s.width!==0,()=>{const le=hR(e,t,o,i),Q=mR(le,N.current,z);G(Q),e.current.publishEvent("scrollPositionChange",{top:N.current.top,left:N.current.left,renderContext:Q})}),e.current.register("private",{updateRenderContext:K}),gt(e,"columnsChange",K),gt(e,"filteredRowsSet",K),gt(e,"rowExpansionChange",K),{renderContext:F,setPanels:p,getRows:fe,getContainerProps:()=>({ref:_}),getScrollerProps:()=>({ref:T,onScroll:ne,onWheel:re,onTouchMove:oe,style:ee,role:"presentation",tabIndex:SPt?-1:void 0}),getContentProps:()=>({style:ce,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:O,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:k,role:"presentation"})}};function hR(e,t,n,r){const o=Ci(e.current.state),i=ey(e,t),a=t.unstable_listView?[uv(e.current.state)]:ho(e),s=IPt(e),l=e.current.state.rows.dataRowIds.at(-1),c=a.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:l!==void 0?e.current.unstable_getRowHeight(l):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:pb(e.current.state),columnPositions:Gf(e),rows:i.rows,range:i.range,pinnedColumns:e1(e),visibleColumns:a,hiddenCellsOriginMap:s,listView:t.unstable_listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function mR(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(aq(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:aq(e,o+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,f]=DL({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let p=d;p<f&&!u;p+=1){const m=e.rows[p];u=e.apiRef.current.rowHasAutoHeight(m.id)}(!u||e.virtualizeColumnsWithAutoRowHeight)&&(l=Pf(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=Pf(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return $Pt(e,r,n)}function aq(e,t,n){var a,s;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(a=e.range)!=null&&a.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=$c(r-(((s=e.range)==null?void 0:s.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Pf(t,e.rowsMeta.positions,n):RPt(t,e.rowsMeta.positions,i,n)}function $Pt(e,t,n){const[r,o]=DL({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=DL({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=fPt({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:s,lastColumnIndex:a}}function Pf(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let s;if(n!=null&&n.atStart){const l=(i===t.length-1?n.lastPosition:t[i+1])-a;s=e-l<a}else s=e<=a;return s?Pf(e,t,n,r,i):Pf(e,t,n,i+1,o)}function RPt(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Pf(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function DL({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:s}){const l=a[e]-n,c=a[t]+r,u=Pf(l,a,{atStart:!0,lastPosition:a[a.length-1]+s}),d=Pf(c,a);return[$c(u,o,i),$c(d,o,i)]}function DPt(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function ece(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function _Pt(e,t){return e===0&&t===0?no.NONE:Math.abs(t)>=Math.abs(e)?t>0?no.DOWN:no.UP:e>0?no.RIGHT:no.LEFT}function tce(e,t,n,r,o,i){if(e)switch(t){case no.LEFT:t=no.RIGHT;break;case no.RIGHT:t=no.LEFT;break}switch(t){case no.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case no.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case no.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case no.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case no.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function sq(e){return{width:Math.round(e.width*10)/10,height:Math.round(e.height*10)/10}}const LPt=()=>{var d,f;const e=sn(),t=wt(),n=Ye(e,Hk),r=Ye(e,yz),o=Ye(e,Cle),i=n===0&&o===0,a=Ye(e,A1t),s=!a&&i,l=!a&&n>0&&r===0;let c=null,u=null;return s&&(c="noRowsOverlay"),l&&(c="noResultsOverlay"),a&&(c="loadingOverlay",u=((f=(d=t.slotProps)==null?void 0:d.loadingOverlay)==null?void 0:f[i?"noRowsVariant":"variant"])||null),{overlayType:c,loadingOverlayVariant:u}},NPt=Qn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),FPt=Qn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),jPt=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Sn,t)};function BPt(e){const t=sn(),n=wt(),r=Ye(t,Ci);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Tle);const i=jPt(D({},e,{classes:n.classes}));return $.jsx(NPt,D({className:pe(i.root)},e,{children:$.jsx(FPt,D({className:pe(i.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}function zPt(e){var i,a;const{overlayType:t}=e,n=wt();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(a=n.slotProps)==null?void 0:a[t];return $.jsx(BPt,D({},e,{children:$.jsx(r,D({},o))}))}const FP=e=>e.columnMenu;function VPt(){var y;const e=pl(),t=wt(),n=Ye(e,ho),r=Ye(e,iCt),o=Ye(e,tCt),i=Ye(e,_le),a=Ye(e,wz),s=Ye(e,gCt),l=Ye(e,mCt),c=Ye(e,ZT),u=Ye(e,n1),d=Ye(e,FP),f=Ye(e,Vs),p=Ye(e,cPt),m=!(s===null&&i===null&&a===null),g=e.current.columnHeadersContainerRef;return $.jsx(t.slots.columnHeaders,D({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m},(y=t.slotProps)==null?void 0:y.columnHeaders))}const HPt=Wf(VPt),nce=v.createContext(void 0),rce=()=>{const e=v.useContext(nce);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e},UPt=Qn("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),WPt=Qn("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),GPt=$n((e,t)=>{var i;const n=wt(),o=rce().hooks.useGridAriaAttributes();return $.jsxs(WPt,D({ownerState:n,className:e.className,tabIndex:-1},o,(i=n.slotProps)==null?void 0:i.main,{ref:t,children:[$.jsx(UPt,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),qPt=()=>Te({root:["topContainer"]},Sn,{}),KPt=Qn("div")({position:"sticky",zIndex:4,top:0});function YPt(e){const t=qPt();return $.jsx(KPt,D({},e,{className:pe(t.root,ae["container--top"]),role:"presentation"}))}const XPt=()=>Te({root:["bottomContainer"]},Sn,{}),QPt=Qn("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function JPt(e){const t=XPt();return $.jsx(QPt,D({},e,{className:pe(t.root,ae["container--bottom"]),role:"presentation"}))}const ZPt=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Sn,n)},eEt=Qn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),tEt=$n(function(t,n){var a;const r=wt(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",i=ZPt(r,o);return $.jsx(eEt,D({},t,{ownerState:r,className:pe(i.root,t.className),ref:n}))}),nEt=Qn("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),oce=Qn("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),rEt=Qn(oce)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),oEt=Qn(oce)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),iEt=Qn("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function aEt({rowsLength:e}){const t=sn(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:s,rightPinnedWidth:l}=Ye(t,Ci),c=o?a:0,u=n.height-r.height>0;return c===0&&!u?null:$.jsxs(nEt,{className:ae.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&$.jsx(rEt,{className:ae["filler--pinnedLeft"],style:{width:s}}),$.jsx(iEt,{}),l>0&&$.jsx(oEt,{className:ae["filler--pinnedRight"],style:{width:l+(i?a:0)}})]})}const sEt=Wf(aEt),lEt=["className"],cEt=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},Sn,t)},uEt=Qn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),dEt=$n(function(t,n){const{className:r}=t,o=Ue(t,lEt),i=sn(),a=wt(),s=cEt(a),l=Ye(i,()=>{const c=Zk(i);return pb(i.current.state).positions[c.firstRowIndex]??0});return $.jsx(uEt,D({className:pe(s.root,r),ownerState:a,style:{transform:`translate3d(0, ${l}px, 0)`}},o,{ref:n}))}),fEt={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},jo=e=>e.editRows,Bx=e=>e.preferencePanel;var Oh=function(e){return e.filters="filters",e.columns="columns",e}(Oh||{});const pEt=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return Te(r,Sn,n)},ice=Qn("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),hEt=Qn(ice)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),mEt=Qn(ice)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),lq=$n(function(t,n){const r=pl(),o=wt(),i=v.useRef(!1),a=v.useRef(0),s=v.useRef(null),l=v.useRef(null),c=pEt(o,t.position),u=Ye(r,Ci),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?u.hasScrollX:u.hasScrollY,m=u.minimumSize[d]+(p?u.scrollbarSize:0),y=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(m/u.viewportOuterSize[d]),b=Ze(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;if(!E||P[f]===a.current)return;if(a.current=P[f],i.current){i.current=!1;return}i.current=!0;const T=P[f]/m;E[f]=T*y}),x=Ze(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;if(!E)return;if(i.current){i.current=!1;return}i.current=!0;const T=E[f]/y;P[f]=T*m});DO(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;return P.addEventListener("scroll",b,{capture:!0}),E.addEventListener("scroll",x,{capture:!0}),()=>{P.removeEventListener("scroll",b,{capture:!0}),E.removeEventListener("scroll",x,{capture:!0})}}),v.useEffect(()=>{l.current.style.setProperty(d,`${y}px`)},[y,d]);const S=t.position==="vertical"?hEt:mEt;return $.jsx(S,{ref:Wt(n,s),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:$.jsx("div",{ref:l,className:c.content})})}),gEt=(e,t,n)=>{const{classes:r}=e,o={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight",n==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",t.hasScrollX&&"virtualScroller--hasScrollX"]};return Te(o,Sn,r)},yEt=Qn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function vEt(e){const t=sn(),n=wt(),r=Ye(t,Ci),o=LPt(),i=gEt(n,r,o.loadingOverlayVariant),a=APt(),{getContainerProps:s,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:p}=a,m=p();return $.jsxs(GPt,D({className:i.root},s(),{children:[$.jsx(oq,{scrollDirection:"left"}),$.jsx(oq,{scrollDirection:"right"}),$.jsxs(yEt,D({className:i.scroller},l(),{ownerState:n,children:[$.jsxs(YPt,{children:[!n.unstable_listView&&$.jsx(HPt,{}),$.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:a})]}),$.jsx(zPt,D({},o)),$.jsx(tEt,D({},c(),{children:$.jsxs(dEt,D({},u(),{children:[m,$.jsx(n.slots.detailPanels,{virtualScroller:a})]}))})),$.jsx(sEt,{rowsLength:m.length}),$.jsx(JPt,{children:$.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:a})})]})),r.hasScrollY&&$.jsx(lq,D({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&$.jsx(lq,D({position:"horizontal"},f())),e.children]}))}function bEt(){var t;const e=wt();return e.hideFooter?null:$.jsx(e.slots.footer,D({},(t=e.slotProps)==null?void 0:t.footer))}let gR;function wEt(){return gR===void 0&&document.createElement("div").focus({get preventScroll(){return gR=!0,!1}}),gR}const eM=(e,t,n,r,o)=>{const i=t===n-1;return e===ur.LEFT&&i?!0:r?e===ur.LEFT?!0:e===ur.RIGHT?!i:!i||o:!1},tM=(e,t)=>e===ur.RIGHT&&t===0,xEt=["column","rowId","editCellState","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],SEt=["changeReason","unstable_updateValueOnRender"];let aa=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const ace={[aa.LEFT]:ur.LEFT,[aa.RIGHT]:ur.RIGHT,[aa.NONE]:void 0,[aa.VIRTUAL]:void 0},cq={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Zn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},CEt=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:s,classes:l}=e,c={root:["cell",`cell--text${Se(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===aa.LEFT&&"cell--pinnedLeft",o===aa.RIGHT&&"cell--pinnedRight",s&&!i&&"cell--selectionMode"]};return Te(c,Sn,l)},PEt=$n(function(t,n){var ct,_t,pt;const{column:r,rowId:o,editCellState:i,align:a,colIndex:s,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:p,pinnedOffset:m,pinnedPosition:g,sectionIndex:y,sectionLength:b,gridHasFiller:x,onClick:S,onDoubleClick:P,onMouseDown:E,onMouseUp:T,onMouseOver:O,onKeyDown:k,onKeyUp:M,onDragEnter:I,onDragOver:R}=t,_=Ue(t,xEt),N=sn(),B=wt(),L=nr(),F=r.field,U=Ye(N,()=>{if(!N.current.getRow(o))return cq;const Pe=N.current.getCellParams(o,F);return Pe.api=N.current,Pe},lle),V=Ye(N,()=>N.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:F})),z=Ye(N,Zle),W=Ye(N,OPt),{cellMode:G,hasFocus:J,isEditable:K=!1,value:ne}=U,re=r.type==="actions"&&((ct=r.getActions)==null?void 0:ct.call(r,N.current.getRowParams(o)).some(ot=>!ot.props.disabled)),oe=(G==="view"||!K)&&!re?U.tabIndex:-1,{classes:fe,getCellClassName:se}=B,ce=[Ye(N,()=>N.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:F}).filter(Boolean).join(" "))];r.cellClassName&&ce.push(typeof r.cellClassName=="function"?r.cellClassName(U):r.cellClassName),r.display==="flex"&&ce.push(ae["cell--flex"]),se&&ce.push(se(U));const le=U.formattedValue??ne,Q=v.useRef(null),ue=Wt(n,Q),ge=v.useRef(null),xe=B.cellSelection??!1,me=ace[g],be=tM(me,y),we=eM(me,y,b,B.showCellVerticalBorder,x),Oe={align:a,showLeftBorder:be,showRightBorder:we,isEditable:K,classes:B.classes,pinnedPosition:g,isSelected:V,isSelectionMode:xe},ke=CEt(Oe),je=v.useCallback(ot=>Pe=>{const We=N.current.getCellParams(o,F||"");N.current.publishEvent(ot,We,Pe),T&&T(Pe)},[N,F,T,o]),de=v.useCallback(ot=>Pe=>{const We=N.current.getCellParams(o,F||"");N.current.publishEvent(ot,We,Pe),E&&E(Pe)},[N,F,E,o]),Re=v.useCallback((ot,Pe)=>We=>{if(!N.current.getRow(o))return;const ft=N.current.getCellParams(o,F||"");N.current.publishEvent(ot,ft,We),Pe&&Pe(We)},[N,F,o]),Me=((_t=z[o])==null?void 0:_t[F])??!1,Ae=((pt=W[o])==null?void 0:pt[F])??1,Ne=v.useMemo(()=>{if(p)return{padding:0,opacity:0,width:0,height:0,border:0};const ot=D({"--width":`${l}px`},u),Pe=g===aa.LEFT,We=g===aa.RIGHT;if(Pe||We){let ft=Pe?"left":"right";L&&(ft=Pe?"right":"left"),ot[ft]=m}return Ae>1&&(ot.height=`calc(var(--height) * ${Ae})`,ot.zIndex=5,(Pe||We)&&(ot.zIndex=6)),ot},[l,p,u,m,g,L,Ae]);if(v.useEffect(()=>{if(!J||G===Zn.Edit)return;const ot=mr(N.current.rootElementRef.current);if(Q.current&&!Q.current.contains(ot.activeElement)){const Pe=Q.current.querySelector('[tabindex="0"]'),We=ge.current||Pe||Q.current;if(wEt())We.focus({preventScroll:!0});else{const ft=N.current.getScrollPosition();We.focus(),N.current.scroll(ft)}}},[J,G,N]),Me)return $.jsx("div",{"data-colindex":s,role:"presentation",style:D({width:"var(--width)"},Ne)});if(U===cq)return null;let Je=_.onFocus,nt,st;if(i===null&&r.renderCell&&(nt=r.renderCell(U)),i!==null&&r.renderEditCell){const ot=N.current.getRowWithUpdatedValues(o,r.field),Pe=Ue(i,SEt),We=r.valueFormatter?r.valueFormatter(i.value,ot,r,N):U.formattedValue,ft=D({},U,{row:ot,formattedValue:We},Pe);nt=r.renderEditCell(ft),ce.push(ae["cell--editing"]),ce.push(fe==null?void 0:fe["cell--editing"])}if(nt===void 0){const ot=le==null?void 0:le.toString();nt=ot,st=ot}v.isValidElement(nt)&&re&&(nt=v.cloneElement(nt,{focusElementRef:ge}));const $t=f?null:{onDragEnter:Re("cellDragEnter",I),onDragOver:Re("cellDragOver",R)};return $.jsx("div",D({className:pe(ke.root,ce,c),role:"gridcell","data-field":F,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":d,"aria-rowspan":Ae,style:Ne,title:st,tabIndex:oe,onClick:Re("cellClick",S),onDoubleClick:Re("cellDoubleClick",P),onMouseOver:Re("cellMouseOver",O),onMouseDown:de("cellMouseDown"),onMouseUp:je("cellMouseUp"),onKeyDown:Re("cellKeyDown",k),onKeyUp:Re("cellKeyUp",M)},$t,_,{onFocus:Je,ref:ue,children:nt}))}),EEt=Wf(PEt),TEt=["label","icon","showInMenu","onClick"],OEt=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],eP=$n((e,t)=>{var u;const n=wt();if(!e.showInMenu){const{label:d,icon:f,onClick:p}=e,m=Ue(e,TEt),g=y=>{p==null||p(y)};return $.jsx(n.slots.baseIconButton,D({size:"small",role:"menuitem","aria-label":d},m,{onClick:g},(u=n.slotProps)==null?void 0:u.baseIconButton,{ref:t,children:v.cloneElement(f,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:s}=e,l=Ue(e,OEt),c=d=>{i==null||i(d),a&&(s==null||s())};return $.jsxs(tn,D({ref:t},l,{onClick:c,children:[o&&$.jsx(zi,{children:o}),r]}))}),IEt=["field","type","align","width","height","empty","style","className"],uq="1.3em",kEt="1.2em",dq=[40,80],MEt={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},AEt=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?Se(t):"Left"}`,r&&"cellEmpty"]};return Te(o,Sn,n)},$Et=d1t(12345);function REt(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:s,className:l}=e,c=Ue(e,IEt),d={classes:wt().classes,align:r,empty:a},f=AEt(d),p=v.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:uq,height:uq};const[g,y]=n?MEt[n]??dq:dq;return{variant:"text",width:`${Math.round($Et(g,y))}%`,height:kEt}},[n]);return $.jsx("div",D({"data-field":t,className:pe(f.root,l),style:D({height:i,maxWidth:o,minWidth:o},s)},c,{children:!a&&$.jsx(CP,D({},p))}))}const DEt=Wf(REt);function _Et(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Du(vt(e.palette.divider,1),.88):Ru(vt(e.palette.divider,1),.68)}const fq={[`& .${ae.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ae.menuIcon}`]:{width:"auto",visibility:"visible"}},LEt=10,tP=-5,Gm=1,pq={width:3,rx:1.5,x:10.5},NEt="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",FEt=ie("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ae.autoHeight}`]:t.autoHeight},{[`&.${ae.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ae["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ae["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ae["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ae.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ae["root--disableUserSelection"]} .${ae.cell}`]:t["root--disableUserSelection"]},{[`&.${ae.autosizing}`]:t.autosizing},{[`& .${ae.editBooleanCell}`]:t.editBooleanCell},{[`& .${ae.cell}`]:t.cell},{[`& .${ae["cell--editing"]}`]:t["cell--editing"]},{[`& .${ae["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ae["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ae["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ae["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ae["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ae["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ae["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ae["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ae.cellCheckbox}`]:t.cellCheckbox},{[`& .${ae.cellSkeleton}`]:t.cellSkeleton},{[`& .${ae.checkboxInput}`]:t.checkboxInput},{[`& .${ae["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ae["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ae["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ae["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ae["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ae["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ae["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ae["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ae["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ae.columnHeader}`]:t.columnHeader},{[`& .${ae.headerFilterRow}`]:t.headerFilterRow},{[`& .${ae.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ae.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ae.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ae["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ae["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ae.columnSeparator}`]:t.columnSeparator},{[`& .${ae.filterIcon}`]:t.filterIcon},{[`& .${ae.iconSeparator}`]:t.iconSeparator},{[`& .${ae.menuIcon}`]:t.menuIcon},{[`& .${ae.menuIconButton}`]:t.menuIconButton},{[`& .${ae.menuOpen}`]:t.menuOpen},{[`& .${ae.menuList}`]:t.menuList},{[`& .${ae["row--editable"]}`]:t["row--editable"]},{[`& .${ae["row--editing"]}`]:t["row--editing"]},{[`& .${ae["row--dragging"]}`]:t["row--dragging"]},{[`& .${ae.row}`]:t.row},{[`& .${ae.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ae.rowReorderCell}`]:t.rowReorderCell},{[`& .${ae["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ae.sortIcon}`]:t.sortIcon},{[`& .${ae.withBorderColor}`]:t.withBorderColor},{[`& .${ae.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ae.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ae.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${ae.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${ae.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ae["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var k,M;const t=pl(),n=Ye(t,Ci),r=_Et(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:((k=e.mixins.MuiDataGrid)==null?void 0:k.containerBackground)??e.palette.background.default,a=((M=e.mixins.MuiDataGrid)==null?void 0:M.pinnedBackground)??i,s=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:vt(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,c=(e.vars||e).palette.action.hover,u=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`calc(${l} + ${u})`:l+u,f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${u})`:vt(e.palette.primary.main,u),p=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:vt(e.palette.primary.main,d),m=e.vars?zEt:jEt,g=I=>({[`& .${ae["cell--pinnedLeft"]}, & .${ae["cell--pinnedRight"]}`]:{backgroundColor:I,"&.Mui-selected":{backgroundColor:m(I,f,u),"&:hover":{backgroundColor:m(I,f,d)}}}}),y=m(a,c,l),b=g(y),x=m(a,f,u),S=g(x),P=m(a,p,d),E=g(P),T={backgroundColor:f,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:f}}};return D({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":s,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":a,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${ae.main} > *:first-child${NEt}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${ae.autoHeight}`]:{height:"auto"},[`&.${ae.autosizing}`]:{[`& .${ae.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${ae.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${ae.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${ae.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${ae.groupingCriteriaCell}`]:{width:"unset"},[`& .${ae.treeDataGroupingCell}`]:{width:"unset"}},[`& .${ae.columnHeader}, & .${ae.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${ae.columnHeader}:focus-within, & .${ae.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:vt(e.palette.primary.main,.5)} ${Gm}px`,outlineOffset:Gm*-1},[`& .${ae.columnHeader}:focus, & .${ae.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${Gm}px`,outlineOffset:Gm*-1},[`& .${ae.columnHeader}:focus,
+return result$$;`.replaceAll("$$",String(Vq)));return Vq+=1,(s,l)=>i(o,s,l)},Mce=e=>e.quickFilterExcludeHiddenColumns??!0,QPt=(e,t)=>{var s;const n=((s=e.quickFilterValues)==null?void 0:s.filter(Boolean))??[];if(n.length===0)return null;const r=Mce(e)?$b(t):zu(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,a=Ice(t);return r.forEach(l=>{const c=t.current.getColumn(l),u=c==null?void 0:c.getApplyQuickFilterFn;u&&o.push({column:c,appliers:n.map(d=>{const f=i?cS(d):d;return{fn:u(f,c,a)}})})}),function(c,u){const d={};e:for(let f=0;f<n.length;f+=1){const p=n[f];for(let m=0;m<o.length;m+=1){const{column:g,appliers:y}=o[m],{field:b}=g;if(u&&!u(b))continue;const x=y[f];let S=t.current.getRowValue(c,g);if(x.fn===null)continue;if(i&&(S=cS(S)),x.fn(S,c,g,a)){d[p]=!0;continue e}}d[p]=!1}return d}},JPt=(e,t,n)=>{const r=XPt(e,t,n),o=QPt(e,t);return function(a,s,l){l.passingFilterItems=(r==null?void 0:r(a,s))??null,l.passingQuickFilterValues=(o==null?void 0:o(a,s))??null}},Hq=e=>e!=null,ZPt=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>kce(r,t)!==null)),e.cleanedFilterItems),eEt=(e,t,n,r,o)=>{const i=ZPt(o,r,n.items),a=e.filter(Hq),s=t.filter(Hq);if(a.length>0){const l=u=>a.some(d=>d[u.id]);if((n.logicOperator??lS().logicOperator)===Vi.And){if(!i.every(l))return!1}else if(!i.some(l))return!1}if(s.length>0&&n.quickFilterValues!=null){const l=u=>s.some(d=>d[u]);if((n.quickFilterLogicOperator??lS().quickFilterLogicOperator)===Vi.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},tEt=e=>{if(!e)return null;const t=new RegExp(TO(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=cS(a)),a!=null?t.test(a.toString()):!1}},Uq=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(TO(r),"i");return i=>{if(i==null)return t;const a=o.test(String(i));return t?!a:a}},Wq=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=o.compare(r,i.toString())===0;return t?!a:a}},Gq=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},nEt=(e=!1)=>[{value:"contains",getApplyFilterFn:Uq(e,!1),InputComponent:Us},{value:"doesNotContain",getApplyFilterFn:Uq(e,!0),InputComponent:Us},{value:"equals",getApplyFilterFn:Wq(e,!1),InputComponent:Us},{value:"doesNotEqual",getApplyFilterFn:Wq(e,!0),InputComponent:Us},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${TO(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Us},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${TO(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Us},{value:"isEmpty",getApplyFilterFn:Gq(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:Gq(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Tce}],rc={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:zPt,type:"string",align:"left",filterOperators:nEt(),renderEditCell:_Pt,getApplyQuickFilterFn:tEt},rEt=["open","target","onClose","children","position","className","onExited"],oEt=e=>{const{classes:t}=e;return bt({root:["menu"]},wn,t)},iEt=ie(Kf,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ae.menuList}`]:{outline:0}})),aEt={"bottom-start":"top left","bottom-end":"top right"};function nV(e){var g;const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:s}=e,l=ze(e,rEt),c=sn(),u=xt(),d=oEt(u),f=v.useRef(null);mr(()=>{var y,b;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((b=(y=f.current)==null?void 0:y.focus)==null||b.call(y),f.current=null)},[t]),v.useEffect(()=>{const y=t?"menuOpen":"menuClose";c.current.publishEvent(y,{target:n})},[c,t,n]);const p=y=>b=>{y&&y(),s&&s(b)},m=y=>{y.target&&(n===y.target||n!=null&&n.contains(y.target))||r(y)};return $.jsx(iEt,D({as:u.slots.basePopper,className:pe(d.root,a),ownerState:u,open:t,anchorEl:n,transition:!0,placement:i},l,(g=u.slotProps)==null?void 0:g.basePopper,{children:({TransitionProps:y,placement:b})=>$.jsx(lj,{onClickAway:m,mouseEvent:"onMouseDown",children:$.jsx(Rh,D({},y,{style:{transformOrigin:aEt[b]},onExited:p(y==null?void 0:y.onExited),children:$.jsx(fo,{children:o})}))})}))}const sEt=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],lEt=e=>typeof e.getActions=="function";function cEt(e){var F;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:a}=e,s=ze(e,sEt),[l,c]=v.useState(-1),[u,d]=v.useState(!1),f=sn(),p=v.useRef(null),m=v.useRef(null),g=v.useRef(!1),y=v.useRef({}),b=po(),x=cr(),S=cr(),P=xt();if(!lEt(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(f.current.getRowParams(n)),T=E.filter(U=>!U.props.showInMenu),O=E.filter(U=>U.props.showInMenu),k=T.length+(O.length?1:0);v.useLayoutEffect(()=>{r||Object.entries(y.current).forEach(([U,z])=>{z==null||z.stop({},()=>{delete y.current[U]})})},[r]),v.useEffect(()=>{if(l<0||!p.current||l>=p.current.children.length)return;p.current.children[l].focus({preventScroll:!0})},[l]),v.useEffect(()=>{r||(c(-1),g.current=!1)},[r]),v.useImperativeHandle(a,()=>({focus(){if(!g.current){const U=E.findIndex(z=>!z.props.disabled);c(U)}}}),[E]),v.useEffect(()=>{l>=k&&c(k-1)},[l,k]);const M=()=>{d(!0),c(k-1),g.current=!0},I=()=>{d(!1)},R=()=>{u?I():M()},_=U=>z=>{y.current[U]=z},L=(U,z)=>V=>{c(U),g.current=!0,z&&z(V)},j=U=>{if(k<=1)return;const z=(W,G)=>{var ne;if(W<0||W>E.length)return W;const K=(G==="left"?-1:1)*(b?-1:1);return(ne=E[W+K])!=null&&ne.props.disabled?z(W+K,G):W+K};let V=l;U.key==="ArrowRight"?V=z(l,"right"):U.key==="ArrowLeft"&&(V=z(l,"left")),!(V<0||V>=k)&&V!==l&&(U.preventDefault(),U.stopPropagation(),c(V))},N=U=>{U.key==="Tab"&&U.preventDefault(),["Tab","Escape"].includes(U.key)&&I()};return $.jsxs("div",D({role:"menu",ref:p,tabIndex:-1,className:ae.actionsCell,onKeyDown:j},s,{children:[T.map((U,z)=>v.cloneElement(U,{key:z,touchRippleRef:_(z),onClick:L(z,U.props.onClick),tabIndex:l===z?o:-1})),O.length>0&&S&&$.jsx(P.slots.baseIconButton,D({ref:m,id:S,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?x:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:_(S),tabIndex:l===T.length?o:-1},(F=P.slotProps)==null?void 0:F.baseIconButton,{children:$.jsx(P.slots.moreActionsIcon,{fontSize:"small"})})),O.length>0&&$.jsx(nV,{open:u,target:m.current,position:i,onClose:I,children:$.jsx(qv,{id:x,className:ae.menuList,onKeyDown:N,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:O.map((U,z)=>v.cloneElement(U,{key:z,closeMenu:I}))})})]}))}const uEt=e=>$.jsx(cEt,D({},e)),CM="actions",dEt=D({},rc,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:uEt,getApplyQuickFilterFn:void 0}),Sl=e=>e.rows,PM=_t(Sl,e=>e.totalRowCount),fEt=_t(Sl,e=>e.loading),pEt=_t(Sl,e=>e.totalTopLevelRowCount),mf=_t(Sl,e=>e.dataRowIdToModelLookup),OO=_t(Sl,e=>e.dataRowIdToIdLookup),si=_t(Sl,e=>e.tree),hEt=_t(Sl,e=>e.groupsToFetch),mEt=_t(Sl,e=>e.groupingName),qq=_t(Sl,e=>e.treeDepths),Rb=tr(Sl,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),SP=_t(Sl,e=>e.dataRowIds),gEt=_t(Sl,e=>e==null?void 0:e.additionalRowGroups),vm=tr(gEt,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),Ace=_t(vm,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),li="auto-generated-group-node-root",yy=Symbol("mui.id_autogenerated"),yEt=()=>({type:"group",id:li,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function vEt(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
+`))}const EM=(e,t,n)=>{const r=t?t(e):e.id;return vEt(r,e,n),r},sE=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s<e.length;s+=1){const l=e[s],c=EM(l,t);i[c]=l,a[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},$ce=({tree:e,rowCountProp:t=0})=>{const n=e[li];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Rce=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIdToIdLookup:a.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},D({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:$ce({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},Mv=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,rV=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Mv(e[a]))&&o.push(a);const s=rV(e,a,n);for(let l=0;l<s.length;l+=1)o.push(s[l])}return!n&&r.footerId!=null&&o.push(r.footerId),o},Kq=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(u=>{const d=EM(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,D({},o.get(d),u)):o.set(d,u)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:D({},e.updates.idToActionLookup),groupKeys:r},a=D({},e.dataRowIdToModelLookup),s=D({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=i.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!a[d])return;f!=null&&(l[f][d]=!0),i.actions.remove.push(d),delete a[d],delete s[d];return}const p=a[d];if(p){f==="remove"?(l.remove[d]=!0,i.actions.modify.push(d)):f==null&&i.actions.modify.push(d),a[d]=D({},p,u);return}f==="remove"?(l.remove[d]=!0,i.actions.insert.push(d)):f==null&&i.actions.insert.push(d),a[d]=u,s[d]=d});const c=Object.keys(l);for(let u=0;u<c.length;u+=1){const d=c[u],f=l[d];Object.keys(f).length>0&&(i.actions[d]=i.actions[d].filter(p=>!f[p]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:s,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function bEt(e){var o,i;const t=vm(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0;return{top:n,bottom:r}}const Dce="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function Yq(e,t,n){const r=[];return t.forEach(o=>{const i=EM(o,n,"A row was provided without id when calling updateRows():"),a=e.current.getRowNode(i);if((a==null?void 0:a.type)==="pinnedRow"){const s=e.current.caches.pinnedRows,l=s.idLookup[i];l&&(s.idLookup[i]=D({},l,o))}else r.push(o)}),r}const _ce=(e,t,n)=>typeof e=="number"&&e>0?e:t,wEt="__tree_data_group__",Lce="__row_group_by_columns_group__",TM="__detail_panel_toggle__",xEt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],SEt=e=>{const{classes:t}=e;return bt({root:["booleanCell"]},wn,t)};function CEt(e){const{value:t,rowNode:n}=e,r=ze(e,xEt),o=sn(),i=xt(),a={classes:i.classes},s=SEt(a),c=Ge(o,Rb)>0&&n.type==="group"&&i.treeData===!1,u=v.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:$.jsx(u,D({fontSize:"small",className:s.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const PEt=v.memo(CEt),EEt=e=>e.field!==Lce&&Mv(e.rowNode)?"":$.jsx(PEt,D({},e)),TEt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],OEt=e=>{const{classes:t}=e;return bt({root:["editBooleanCell"]},wn,t)};function IEt(e){var b;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,s=ze(e,TEt),l=sn(),c=v.useRef(null),u=cr(),[d,f]=v.useState(n),p=xt(),m={classes:p.classes},g=OEt(m),y=v.useCallback(async x=>{const S=x.target.checked;a&&await a(x,S),f(S),await l.current.setEditCellValue({id:t,field:r,value:S},x)},[l,r,t,a]);return v.useEffect(()=>{f(n)},[n]),mr(()=>{i&&c.current.focus()},[i]),$.jsx("label",D({htmlFor:u,className:pe(g.root,o)},s,{children:$.jsx(p.slots.baseCheckbox,D({id:u,inputRef:c,checked:!!d,onChange:y,size:"small"},(b=p.slotProps)==null?void 0:b.baseCheckbox))}))}const kEt=e=>$.jsx(IEt,D({},e)),MEt=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],lE=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},AEt=ie("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function $Et(e){var P,E,T;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:a,label:s,variant:l="standard"}=e,c=ze(e,MEt),[u,d]=v.useState(lE(t.value)),f=xt(),p=cr(),m=cr(),g=((P=f.slotProps)==null?void 0:P.baseSelect)||{},y=g.native??!1,b=((E=f.slotProps)==null?void 0:E.baseSelectOption)||{},x=v.useCallback(O=>{const k=lE(O.target.value);d(k),n(D({},t,{value:k}))},[n,t]);v.useEffect(()=>{d(lE(t.value))},[t.value]);const S=s??r.current.getLocaleText("filterPanelInputLabel");return $.jsxs(AEt,{children:[$.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[$.jsx(f.slots.baseInputLabel,D({},(T=f.slotProps)==null?void 0:T.baseInputLabel,{id:p,shrink:!0,variant:l,children:S})),$.jsxs(f.slots.baseSelect,D({labelId:p,id:m,label:S,value:u===void 0?"":String(u),onChange:x,variant:l,notched:l==="outlined"?!0:void 0,native:y,displayEmpty:!0,inputProps:{ref:o,tabIndex:a}},c,g,{children:[$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"",children:r.current.getLocaleText("filterValueAny")})),$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"true",children:r.current.getLocaleText("filterValueTrue")})),$.jsx(f.slots.baseSelectOption,D({},b,{native:y,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const REt=()=>[{value:"is",getApplyFilterFn:e=>{const t=lE(e.value);return t===void 0?null:n=>!!n===t},InputComponent:$Et}],DEt=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),_Et=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Nce=D({},rc,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:EEt,renderEditCell:kEt,sortComparator:Sce,valueFormatter:DEt,filterOperators:REt(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>_Et(e)}),Fce=e=>e.sorting,Db=_t(Fce,e=>e.sortedRows),oV=tr(Db,mf,si,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const a=n[o];return a&&Mv(a)&&r.push({id:o,model:{[yy]:o}}),r},[])),Ns=_t(Fce,e=>e.sortModel),LEt=tr(Ns,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));tr(Db,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const OM=e=>e.filter,oi=_t(OM,e=>e.filterModel);_t(oi,e=>e.quickFilterValues);const NEt=e=>e.visibleRowsLookup,_b=_t(OM,e=>e.filteredRowsLookup);_t(OM,e=>e.filteredChildrenCountLookup);_t(OM,e=>e.filteredDescendantCountLookup);const up=tr(NEt,oV,(e,t)=>t.filter(n=>e[n.id]!==!1)),vy=tr(up,e=>e.map(t=>t.id)),jce=tr(_b,oV,(e,t)=>t.filter(n=>e[n.id]!==!1)),Bce=tr(jce,e=>e.map(t=>t.id));tr(vy,si,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,o[i]=n[a.depth],o},{})});const zce=tr(up,si,Rb,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),iV=_t(up,e=>e.length),aV=_t(zce,e=>e.length),FEt=_t(jce,e=>e.length);_t(FEt,aV,(e,t)=>e-t);const jEt=tr(oi,vd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var a,s;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((a=o==null?void 0:o.filterOperators)==null?void 0:a.length)===0)return!1;const i=o.filterOperators.find(l=>l.value===r.operator);return i?!i.InputComponent||r.value!=null&&((s=r.value)==null?void 0:s.toString())!=="":!1})}),BEt=tr(jEt,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Fs=e=>e.rowSelection,zEt=_t(Fs,e=>e.length),VEt=tr(Fs,mf,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Vu=tr(Fs,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Vce(e,t){var l;const n=si(e),r=Db(e),o=_b(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],s=r.findIndex(c=>c===t)+1;for(let c=s;c<r.length&&((l=n[r[c]])==null?void 0:l.depth)>i.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&a.push(u)}return a}function HEt(e,t){return _t(si,Db,_b,Vu,(n,r,o,i)=>{var u;const a=n[e];if(!a||a.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let s=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;d<r.length&&((u=n[r[d]])==null?void 0:u.depth)>a.depth;d+=1){const f=r[d];o[f]!==!1&&(s+=1,i[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l<s||i[e]===void 0),isChecked:t?l>0:i[e]===e}})}function sV(e){return e.signature===il.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const UEt=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==li;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},WEt=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(a=>a!==n&&t[a])},CP=(e,t,n,r,o,i)=>{const a=_b(e),s=Vu(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&Vce(e,n).forEach(d=>{i(d),l.add(d)})}if(o){const c=d=>{if(s[d]!==d&&!l.has(d))return!1;const f=t[d];return(f==null?void 0:f.type)!=="group"?!0:f.children.every(c)},u=d=>{const f=WEt(t,a,d);if(f.length===0||f.every(c)){const m=t[d].parent;m!=null&&m!==li&&e.current.isRowSelectable(m)&&(i(m),l.add(m),u(m))}};u(n)}}},Xq=(e,t,n,r,o,i)=>{const a=Vu(e);if(!(!o&&!r)&&(o&&UEt(t,n).forEach(l=>{a[l]===l&&i(l)}),r)){const s=t[n];(s==null?void 0:s.type)==="group"&&Vce(e,n).forEach(c=>{i(c)})}},GEt=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],qEt=e=>{const{classes:t}=e;return bt({root:["checkboxInput"]},wn,t)},KEt=kn(function(t,n){var k,M;const{field:r,id:o,rowNode:i,hasFocus:a,tabIndex:s}=t,l=ze(t,GEt),c=sn(),u=xt(),d={classes:u.classes},f=qEt(d),p=v.useRef(null),m=v.useRef(null),g=Gr(p,n),y=I=>{const R={value:I.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",R,I)};v.useLayoutEffect(()=>{if(s===0){const I=c.current.getCellElement(o,r);I&&(I.tabIndex=-1)}},[c,s,o,r]),v.useEffect(()=>{var I;if(a){const R=(I=p.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[a]);const b=v.useCallback(I=>{I.key===" "&&I.stopPropagation()},[]),x=c.current.isRowSelectable(o),S=HEt(o,((k=u.rowSelectionPropagation)==null?void 0:k.parents)??!1),{isIndeterminate:P,isChecked:E}=Ge(c,S);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=u.indeterminateCheckboxAction==="select"?E&&!P:E,O=c.current.getLocaleText(T?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return $.jsx(u.slots.baseCheckbox,D({tabIndex:s,checked:T,onChange:y,className:f.root,inputProps:{"aria-label":O},onKeyDown:b,indeterminate:P,disabled:!x,touchRippleRef:m},(M=u.slotProps)==null?void 0:M.baseCheckbox,l,{ref:g}))}),YEt=KEt,IM=e=>e.focus,Ba=_t(IM,e=>e.cell),XEt=_t(IM,e=>e.columnHeader);_t(IM,e=>e.columnHeaderFilter);const IO=_t(IM,e=>e.columnGroupHeader),kM=e=>e.tabIndex,lV=_t(kM,e=>e.cell),Hce=_t(kM,e=>e.columnHeader);_t(kM,e=>e.columnHeaderFilter);const QEt=_t(kM,e=>e.columnGroupHeader);function Qt(e,t,n){const r=v.useRef(!0);mr(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Fo(e,t){const n=v.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Uce=(e,t,n,r,o)=>{const i=Fo(e,"useNativeEventListener"),[a,s]=v.useState(!1),l=v.useRef(r),c=Pce(t)?t():(t==null?void 0:t.current)??null,u=v.useCallback(d=>l.current&&l.current(d),[]);v.useEffect(()=>{l.current=r},[r]),v.useEffect(()=>{if(c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),s(!0);const d=()=>{i.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,a,i,o,e])},E1=e=>{const t=v.useRef(!0);t.current&&(t.current=!1,e())},JEt=()=>{},ZEt=(e,t)=>{const n=v.useRef(!1);mr(()=>n.current||!e?JEt:(n.current=!0,t()),[n.current||e])},eTt=100,tTt=e=>e?0:100,Wce=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Gce=e=>({page:0,pageSize:e?0:100}),nTt=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),qce=(e,t)=>{if(t===il.DataGrid&&e>eTt)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
+`))},rTt=-1,MM=e=>e.pagination,zi=_t(MM,e=>e.paginationModel),qg=_t(MM,e=>e.rowCount),aw=_t(MM,e=>e.meta),oTt=_t(zi,e=>e.page),iTt=_t(zi,e=>e.pageSize),Kce=_t(zi,qg,(e,t)=>Wce(t,e.pageSize,e.page)),cV=tr(zi,si,Rb,up,zce,(e,t,n,r,o)=>{var p;const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=e.pageSize===rTt?i-1:Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],c=s-a+1,u=r.findIndex(m=>m.id===l.id);let d=u,f=0;for(;d<r.length&&f<=c;){const m=r[d],g=(p=t[m.id])==null?void 0:p.depth;g===void 0?d+=1:((f<c||g>0)&&(d+=1),g===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),aTt=tr(up,cV,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Yce=tr(vy,cV,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),sTt=["field","colDef"],lTt=e=>{const{classes:t}=e;return bt({root:["checkboxInput"]},wn,t)},cTt=kn(function(t,n){var k;const r=ze(t,sTt),[,o]=v.useState(!1),i=sn(),a=xt(),s={classes:a.classes},l=lTt(s),c=Ge(i,Hce),u=Ge(i,Fs),d=Ge(i,vy),f=Ge(i,Yce),p=v.useMemo(()=>typeof a.isRowSelectable!="function"?u:u.filter(M=>i.current.getRow(M)?a.isRowSelectable(i.current.getRowParams(M)):!1),[i,a.isRowSelectable,u]),m=v.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?d:f).reduce((I,R)=>(I[R]=!0,I),{}),[a.pagination,a.checkboxSelectionVisibleOnly,f,d]),g=v.useMemo(()=>p.filter(M=>m[M]).length,[p,m]),y=g>0&&g<Object.keys(m).length,b=g>0,x=M=>{const I={value:M.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",I)},S=c!==null&&c.field===t.field?0:-1;v.useLayoutEffect(()=>{const M=i.current.getColumnHeaderElement(t.field);S===0&&M&&(M.tabIndex=-1)},[S,i,t.field]);const P=v.useCallback(M=>{M.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=v.useCallback(()=>{o(M=>!M)},[]);v.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const T=a.indeterminateCheckboxAction==="select"?b&&!y:b,O=i.current.getLocaleText(T?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return $.jsx(a.slots.baseCheckbox,D({indeterminate:y,checked:T,onChange:x,className:l.root,inputProps:{"aria-label":O},tabIndex:S,onKeyDown:P,disabled:!sV(a)},(k=a.slotProps)==null?void 0:k.baseCheckbox,r,{ref:n}))}),Cu="__check__",Lb=D({},Nce,{type:"custom",field:Cu,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=Vu(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>$.jsx(cTt,D({},e)),renderCell:e=>$.jsx(YEt,D({},e))}),uTt=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Qq(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function ag(e){var S;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:a,clearButton:s,tabIndex:l,disabled:c}=e,u=ze(e,uTt),d=vb(),[f,p]=v.useState(()=>Qq(t.value,r)),[m,g]=v.useState(!1),y=cr(),b=xt(),x=v.useCallback(P=>{d.clear();const E=P.target.value;p(E),g(!0),d.start(b.filterDebounceMs,()=>{const T=new Date(E);n(D({},t,{value:Number.isNaN(T.getTime())?void 0:T})),g(!1)})},[n,t,b.filterDebounceMs,d]);return v.useEffect(()=>{const P=Qq(t.value,r);p(P)},[t.value,r]),$.jsx(b.slots.baseTextField,D({fullWidth:!0,id:y,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:x,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:D({},m||s?{endAdornment:m?$.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):s}:{},{disabled:c},a,{inputProps:D({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},a==null?void 0:a.inputProps)})},u,(S=b.slotProps)==null?void 0:S.baseTextField))}function sg(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const s=new Date(a);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),i)}}const Xce=e=>[{value:"is",getApplyFilterFn:t=>sg(t,(n,r)=>n===r,e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>sg(t,(n,r)=>n!==r,e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>sg(t,(n,r)=>n>r,e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>sg(t,(n,r)=>n>=r,e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>sg(t,(n,r)=>n<r,e,!e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>sg(t,(n,r)=>n<=r,e),InputComponent:ag,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],dTt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],fTt=ie(Vv)({fontSize:"inherit"}),pTt=e=>{const{classes:t}=e;return bt({root:["editInputCell"]},wn,t)};function hTt(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=ze(e,dTt),c=o.type==="dateTime",u=sn(),d=v.useRef(),f=v.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n??"").toString());let E;return P==null||Number.isNaN(P.getTime())?E="":E=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:P,formatted:E}},[n,c]),[p,m]=v.useState(f),y={classes:xt().classes},b=pTt(y),x=v.useCallback(P=>{if(P==="")return null;const[E,T]=P.split("T"),[O,k,M]=E.split("-"),I=new Date;if(I.setFullYear(Number(O),Number(k)-1,Number(M)),I.setHours(0,0,0,0),T){const[R,_]=T.split(":");I.setHours(Number(R),Number(_),0,0)}return I},[]),S=v.useCallback(async P=>{const E=P.target.value,T=x(E);s&&await s(P,T),m({parsed:T,formatted:E}),u.current.setEditCellValue({id:t,field:r,value:T},P)},[u,r,t,s,x]);return v.useEffect(()=>{m(P=>{var E,T;return f.parsed!==P.parsed&&((E=f.parsed)==null?void 0:E.getTime())!==((T=P.parsed)==null?void 0:T.getTime())?f:P})},[f]),mr(()=>{i&&d.current.focus()},[i]),$.jsx(fTt,D({inputRef:d,fullWidth:!0,className:b.root,type:c?"datetime-local":"date",inputProps:D({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:p.formatted,onChange:S},l))}const Qce=e=>$.jsx(hTt,D({},e));function Jce({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
+`))}const mTt=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return Jce({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},gTt=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return Jce({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},yTt=D({},rc,{type:"date",sortComparator:Cce,valueFormatter:mTt,filterOperators:Xce(),renderEditCell:Qce,pastedValueParser:e=>new Date(e)}),vTt=D({},rc,{type:"dateTime",sortComparator:Cce,valueFormatter:gTt,filterOperators:Xce(!0),renderEditCell:Qce,pastedValueParser:e=>new Date(e)}),Ud=e=>e==null?null:Number(e),bTt=e=>e==null||Number.isNaN(e)||e===""?null:t=>Ud(t)===Ud(e),wTt=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ud(t)===e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ud(t)!==e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ud(t)>e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ud(t)>=e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ud(t)<e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ud(t)<=e.value,InputComponent:Us,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Tce,InputComponentProps:{type:"number"}}],xTt=D({},rc,{type:"number",align:"right",headerAlign:"right",sortComparator:Sce,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>HPt(e)?e.toLocaleString():e||"",filterOperators:wTt(),getApplyQuickFilterFn:bTt});function Av(e){return(e==null?void 0:e.type)==="singleSelect"}function Uh(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(D({field:e.field},t)):e.valueOptions}function kO(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const STt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],CTt=["MenuProps"];function PTt(e){return!!e.key}function ETt(e){var _,L;const t=xt(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:s,error:l,onValueChange:c,initialOpen:u=t.editMode===Yc.Cell}=e,d=ze(e,STt),f=sn(),p=v.useRef(),m=v.useRef(),[g,y]=v.useState(u),x=(((_=t.slotProps)==null?void 0:_.baseSelect)||{}).native??!1,S=((L=t.slotProps)==null?void 0:L.baseSelect)||{},{MenuProps:P}=S,E=ze(S,CTt);if(mr(()=>{var j;s&&((j=m.current)==null||j.focus())},[s]),!Av(a))return null;const T=Uh(a,{id:n,row:i});if(!T)return null;const O=a.getOptionValue,k=a.getOptionLabel,M=async j=>{if(!Av(a)||!T)return;y(!1);const N=j.target,F=kO(N.value,T,O);c&&await c(j,F),await f.current.setEditCellValue({id:n,field:o,value:F},j)},I=(j,N)=>{if(t.editMode===Yc.Row){y(!1);return}if(N==="backdropClick"||j.key==="Escape"){const F=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",D({},F,{reason:j.key==="Escape"?Nl.escapeKeyDown:Nl.cellFocusOut}))}},R=j=>{PTt(j)&&j.key==="Enter"||y(!0)};return!T||!a?null:$.jsx(t.slots.baseSelect,D({ref:p,inputRef:m,value:r,onChange:M,open:g,onOpen:R,MenuProps:D({onClose:I},P),error:l,native:x,fullWidth:!0},d,E,{children:T.map(j=>{var F;const N=O(j);return v.createElement(t.slots.baseSelectOption,D({},((F=t.slotProps)==null?void 0:F.baseSelectOption)||{},{native:x,key:N,value:N}),k(j))})}))}const TTt=e=>$.jsx(ETt,D({},e)),OTt=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],ITt=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...Uh(e)||[]].map(s=>{const l=r(s);let c=n(s);return c===""&&(c=" "),v.createElement(t,D({},i,{native:o,key:l,value:l}),c)}),kTt=ie("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Jq(e){var O,k,M,I,R;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:a,tabIndex:s,label:l,variant:c="standard",clearButton:u}=e,d=ze(e,OTt),f=t.value??"",p=cr(),m=cr(),g=xt(),y=((k=(O=g.slotProps)==null?void 0:O.baseSelect)==null?void 0:k.native)??!1;let b=null;if(t.field){const _=o.current.getColumn(t.field);Av(_)&&(b=_)}const x=b==null?void 0:b.getOptionValue,S=b==null?void 0:b.getOptionLabel,P=v.useMemo(()=>Uh(b),[b]),E=v.useCallback(_=>{let L=_.target.value;L=kO(L,P,x),n(D({},t,{value:L}))},[P,x,n,t]);if(!Av(b))return null;const T=l??o.current.getLocaleText("filterPanelInputLabel");return $.jsxs(kTt,{children:[$.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[$.jsx(g.slots.baseInputLabel,D({},(M=g.slotProps)==null?void 0:M.baseInputLabel,{id:m,htmlFor:p,shrink:!0,variant:c,children:T})),$.jsx(g.slots.baseSelect,D({id:p,label:T,labelId:m,value:f,onChange:E,variant:c,type:r||"text",inputProps:{tabIndex:s,ref:i,placeholder:a??o.current.getLocaleText("filterPanelInputPlaceholder")},native:y,notched:c==="outlined"?!0:void 0},d,(I=g.slotProps)==null?void 0:I.baseSelect,{children:ITt({column:b,OptionComponent:g.slots.baseSelectOption,getOptionLabel:S,getOptionValue:x,isSelectNative:y,baseSelectOptionProps:(R=g.slotProps)==null?void 0:R.baseSelectOption})}))]}),u]})}const MTt=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],ATt=["key"],$Tt=lZ();function RTt(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:a,helperText:s,size:l,variant:c="standard"}=e,u=ze(e,MTt),d={color:i,error:a,helperText:s,size:l,variant:c},f=cr(),p=xt();let m=null;if(t.field){const E=r.current.getColumn(t.field);Av(E)&&(m=E)}const g=m==null?void 0:m.getOptionValue,y=m==null?void 0:m.getOptionLabel,b=v.useCallback((E,T)=>g(E)===g(T),[g]),x=v.useMemo(()=>Uh(m)||[],[m]),S=v.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,T)=>{const O=x.find(k=>g(k)===T);return O!=null&&E.push(O),E},[]):[],[g,t.value,x]),P=v.useCallback((E,T)=>{n(D({},t,{value:T.map(g)}))},[n,t,g]);return $.jsx(ac,D({multiple:!0,options:x,isOptionEqualToValue:b,filterOptions:$Tt,id:f,value:S,onChange:P,getOptionLabel:y,renderTags:(E,T)=>E.map((O,k)=>{const M=T({index:k}),{key:I}=M,R=ze(M,ATt);return $.jsx(p.slots.baseChip,D({variant:"outlined",size:"small",label:y(O)},R),I)}),renderInput:E=>{var T;return $.jsx(p.slots.baseTextField,D({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:D({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(T=p.slotProps)==null?void 0:T.baseTextField))}},u))}const lg=e=>e==null||!eV(e)?e:e.value,DTt=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>lg(t)===lg(e.value),InputComponent:Jq},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>lg(t)!==lg(e.value),InputComponent:Jq},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(lg);return n=>t.includes(lg(n))},InputComponent:RTt}],_Tt=e=>typeof e[0]=="object",LTt=e=>eV(e)?e.value:e,NTt=e=>eV(e)?e.label:String(e),FTt=D({},rc,{type:"singleSelect",getOptionLabel:NTt,getOptionValue:LTt,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!Av(n))return"";const i=Uh(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!_Tt(i))return n.getOptionLabel(e);const a=i.find(s=>n.getOptionValue(s)===e);return a?n.getOptionLabel(a):""},renderEditCell:TTt,filterOperators:DTt(),pastedValueParser:(e,t,n)=>{const r=n,o=Uh(r)||[],i=r.getOptionValue;if(o.find(s=>i(s)===e))return e}}),jTt="string",BTt=()=>({string:rc,number:xTt,date:yTt,dateTime:vTt,boolean:Nce,singleSelect:FTt,[CM]:dEt,custom:rc}),uV=e=>e.headerFiltering,zTt=_t(uV,e=>(e==null?void 0:e.enabled)??!1),VTt=_t(uV,e=>e.editing),HTt=_t(uV,e=>e.menuOpen),AM=e=>e.columnGrouping,Zce=tr(AM,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),eue=tr(AM,e=>(e==null?void 0:e.lookup)??{}),UTt=tr(AM,e=>(e==null?void 0:e.headerStructure)??[]),T1=_t(AM,e=>(e==null?void 0:e.maxDepth)??0),tue=["maxWidth","minWidth","width","flex"],YR=BTt();function WTt({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,c=0;o.frozenFields.forEach(u=>{s-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const d=n[u];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let p=s/l*d.flex;p<d.minWidth?(c+=d.minWidth-p,p=d.minWidth,a.min[d.field]=!0):p>d.maxWidth&&(c+=d.maxWidth-p,p=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:p,flex:d.flex}}c<0?Object.keys(a.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(a.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),i()}return i(),o.all}const mN=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=Vc(c.width||rc.width,c.minWidth||rc.minWidth,c.maxWidth||rc.maxWidth),o+=u),c.computedWidth!==u&&(c=D({},c,{computedWidth:u})),d&&i.push(c),n[l]=c});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-o,0);if(r>0&&a>0){const l=WTt({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return D({},e,{lookup:n})},GTt=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let u=0;u<n.length;u+=1){const d=n[u];e.lookup[d]&&(i[d]=!0,a.push(d))}const s=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(u=>!i[u])],l=D({},e.lookup);for(let u=0;u<o.length;u+=1){const d=o[u],f=D({},l[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([p,m])=>{f[p]=m===-1?1/0:m}),l[d]=f}return D({},e,{orderedFields:s,lookup:l})};function Zq(e){let t=YR[jTt];return e&&YR[e]&&(t=YR[e]),t}const wg=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Qs(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const i=!e.current.state.columns;let a;if(i)a={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=zc(e.current.state);a={orderedFields:o?[]:[...f.orderedFields],lookup:D({},f.lookup),columnVisibilityModel:r}}let s={};o&&!i&&(s=Object.keys(a.lookup).reduce((f,p)=>D({},f,{[p]:!1}),{})),t.forEach(f=>{const{field:p}=f;s[p]=!0;let m=a.lookup[p];m==null?(m=D({},Zq(f.type),{field:p,hasBeenResized:!1}),a.orderedFields.push(p)):o&&a.orderedFields.push(p),m&&m.type!==f.type&&(m=D({},Zq(f.type),{field:p}));let g=m.hasBeenResized;tue.forEach(y=>{f[y]!==void 0&&(g=!0,f[y]===-1&&(f[y]=1/0))}),a.lookup[p]=Qoe(m,D({},f,{hasBeenResized:g}))}),o&&!i&&Object.keys(a.lookup).forEach(f=>{s[f]||delete a.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",a),c=GTt(l,n);return mN(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function qTt({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a<r;a+=1)if(o[a]){const l=o[a].id,c=t.current.unstable_getCellColSpanInfo(l,e);c&&c.spannedByColSpan&&(i=c.leftVisibleCellIndex)}return i}function dV(e,t){if(t.unstable_listView)return 0;const n=C1(e),r=T1(e),o=zTt(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+s}const eK=1,KTt=1.5,YTt=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return bt(r,wn,n)},XTt=ur("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ae["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ae["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ae["scrollArea--left"]}`]:{left:0},[`&.${ae["scrollArea--right"]}`]:{right:0}}));function QTt(e){const{scrollDirection:t}=e,n=v.useRef(null),r=sn(),o=vb(),i=Ge(r,C1),a=Ge(r,Jz),s=Ge(r,Mi),l=v.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const k=a-s.viewportInnerSize.width;return l.current.left<k}return!1},[u,d]=v.useState(!1),[f,p]=v.useState(c),m=xt(),g=D({},m,{scrollDirection:t}),y=YTt(g),b=dV(r,m),x=Math.floor(m.columnHeaderHeight*i),S={height:x,top:b-x};t==="left"?S.left=s.leftPinnedWidth:t==="right"&&(S.right=s.rightPinnedWidth+(s.hasScrollX?s.scrollbarSize:0));const P=k=>{l.current=k,p(c)},E=ot(k=>{let M;if(k.preventDefault(),t==="left")M=k.clientX-n.current.getBoundingClientRect().right;else if(t==="right")M=Math.max(1,k.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");M=(M-eK)*KTt+eK,o.start(0,()=>{r.current.scroll({left:l.current.left+M,top:l.current.top})})}),T=ot(()=>{d(!0)}),O=ot(()=>{d(!1)});return gt(r,"scrollPositionChange",P),gt(r,"columnHeaderDragStart",T),gt(r,"columnHeaderDragEnd",O),!u||!f?null:$.jsx(XTt,{ref:n,className:pe(y.root),ownerState:g,onDragOver:E,style:S})}const tK=lp(QTt);var fV={},nue={exports:{}},rue={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rue);var JTt=rue.exports;(function(e){var t=JTt.default;function n(o){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:i})(o)}function r(o,i){if(!i&&o&&o.__esModule)return o;if(o===null||t(o)!="object"&&typeof o!="function")return{default:o};var a=n(i);if(a&&a.has(o))return a.get(o);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if(c!=="default"&&{}.hasOwnProperty.call(o,c)){var u=l?Object.getOwnPropertyDescriptor(o,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=o[c]}return s.default=o,a&&a.set(o,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(nue);var ZTt=nue.exports,eOt=ZTt.default;Object.defineProperty(fV,"__esModule",{value:!0});var oue=fV.default=void 0,tOt=eOt(v);oue=fV.default=parseInt(tOt.version,10);const iue=v.createContext(void 0);function Cl(){const e=v.useContext(iue);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
+`));return e}const by=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=cV(e),n=aTt(e)):(n=up(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},bm=(e,t)=>{const n=by(e,t);return v.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},nOt=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",rOt=nOt.includes("firefox"),Nb=e=>e.rowsMeta,$M=e=>e.virtualization;_t($M,e=>e.enabled);const RM=_t($M,e=>e.enabledForColumns),oOt=_t($M,e=>e.enabledForRows),DM=_t($M,e=>e.renderContext),iOt=tr(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),aue={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},aOt=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return D({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:aue}})};function sOt(e,t){const n=i=>{e.current.setState(a=>D({},a,{virtualization:D({},a.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Qt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>D({},a,{virtualization:D({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const pV=e=>e.rowSpanning,sue=_t(pV,e=>e.hiddenCells),lOt=_t(pV,e=>e.spannedCells),cOt=_t(pV,e=>e.hiddenCellOriginMap),$v=e=>e.listViewColumn,XR=50;var ao=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(ao||{});const nK={top:0,left:0},uOt=Object.freeze(new Map),dOt=(e,t,n,r,o)=>({direction:ao.NONE,buffer:cue(e,ao.NONE,t,n,r,o)});let gN=!1;try{typeof window<"u"&&(gN=/jsdom|HappyDOM/.test(window.navigator.userAgent))}catch{}const fOt=()=>{const e=Cl(),t=xt(),{unstable_listView:n}=t,r=Ge(e,()=>n?[$v(e.current.state)]:wo(e)),o=Ge(e,oOt)&&!gN,i=Ge(e,RM)&&!gN,a=Ge(e,Mi),s=a.viewportOuterSize,l=Ge(e,vm),c=Ge(e,P1),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,p]=v.useState(uOt),m=po(),g=Ge(e,Ba),y=Ge(e,lV),b=Ge(e,Nb),x=Ge(e,Vu),S=bm(e,t),P=e.current.rootElementRef,E=e.current.mainElementRef,T=e.current.virtualScrollerRef,O=e.current.virtualScrollbarVerticalRef,k=e.current.virtualScrollbarHorizontalRef,M=a.contentSize.height,I=a.columnsTotalWidth,R=Ge(e,MPt),_=v.useCallback(le=>{if(E.current=le,!le)return;const Q=le.getBoundingClientRect();let ue=oK(Q);if(e.current.publishEvent("resize",ue),typeof ResizeObserver>"u")return;const ge=new ResizeObserver(xe=>{const me=xe[0];if(!me)return;const be=oK(me.contentRect);be.width===ue.width&&be.height===ue.height||(e.current.publishEvent("resize",be),ue=be)});if(ge.observe(le),oue>=19)return()=>{E.current=null,ge.disconnect()}},[e,E]),L=v.useRef(nK),j=v.useRef(nK),N=v.useRef(aue),F=Ge(e,DM),U=vb(),z=v.useRef(void 0),V=eu(()=>dOt(m,t.rowBufferPx,t.columnBufferPx,a.rowHeight*15,XR*6)).current,W={rowIndex:v.useMemo(()=>g?S.rows.findIndex(le=>le.id===g.id):-1,[g,S.rows]),columnIndex:v.useMemo(()=>g?r.findIndex(le=>le.field===g.field):-1,[g,r])},G=v.useCallback(le=>{if(mOt(le,e.current.state.virtualization.renderContext))return;const Q=le.firstRowIndex!==N.current.firstRowIndex||le.lastRowIndex!==N.current.lastRowIndex;e.current.setState(ue=>D({},ue,{virtualization:D({},ue.virtualization,{renderContext:le})})),a.isReady&&Q&&(N.current=le,e.current.publishEvent("renderedRowsIntervalChange",le)),j.current=L.current},[e,a.isReady]),J=ot(()=>{const le=T.current;if(!le)return;const Q={top:le.scrollTop,left:le.scrollLeft},ue=Q.left-L.current.left,ge=Q.top-L.current.top,xe=ue!==0||ge!==0;L.current=Q;const me=xe?gOt(ue,ge):ao.NONE,be=Math.abs(L.current.top-j.current.top),we=Math.abs(L.current.left-j.current.left),Te=be>=a.rowHeight||we>=XR,Ie=V.direction!==me;if(!(Te||Ie))return F;if(Ie)switch(me){case ao.NONE:case ao.LEFT:case ao.RIGHT:z.current=void 0;break;default:z.current=F;break}V.direction=me,V.buffer=cue(m,me,t.rowBufferPx,t.columnBufferPx,a.rowHeight*15,XR*6);const de=QR(e,t,o,i),$e=JR(de,L.current,V);return OI.flushSync(()=>{G($e)}),U.start(1e3,J),$e}),K=()=>{const le=QR(e,t,o,i),Q=JR(le,L.current,V);z.current=void 0,G(Q)},ne=ot(le=>{const{scrollTop:Q,scrollLeft:ue}=le.currentTarget;if(Q<0||!m&&ue<0||m&&ue>0)return;const ge=J();e.current.publishEvent("scrollPositionChange",{top:Q,left:ue,renderContext:ge})}),re=ot(le=>{e.current.publishEvent("virtualScrollerWheel",{},le)}),oe=ot(le=>{e.current.publishEvent("virtualScrollerTouchMove",{},le)}),fe=(le={})=>{var ke;if(!le.rows&&!S.range)return[];const Q=le.renderContext??F,ue=!d&&le.position===void 0||d&&le.position==="bottom",ge=le.position!==void 0;let xe;switch(le.position){case"top":xe=0;break;case"bottom":xe=l.top.length+S.rows.length;break;case void 0:xe=l.top.length;break}const me=le.rows??S.rows,be=Q.firstRowIndex,we=Math.min(Q.lastRowIndex,me.length),Te=le.rows?Bq(0,le.rows.length):Bq(be,we);let Ie=-1;!ge&&W.rowIndex!==-1&&(W.rowIndex<be&&(Ie=W.rowIndex,Te.unshift(Ie)),W.rowIndex>=we&&(Ie=W.rowIndex,Te.push(Ie)));const Le=[],de=(ke=t.slotProps)==null?void 0:ke.row,$e=cp(e);return Te.forEach(Me=>{var Wn,To,Oo;const{id:De,model:Ye}=me[Me],Je=(((Wn=S==null?void 0:S.range)==null?void 0:Wn.firstRowIndex)||0)+xe+Me;if(R){const hi=u.left.length,Oa=r.length-u.right.length;e.current.calculateColSpan({rowId:De,minFirstColumn:hi,maxLastColumn:Oa,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:De,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:De,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const st=(g==null?void 0:g.id)===De,Rt=e.current.rowHasAutoHeight(De)?"auto":e.current.unstable_getRowHeight(De);let ct;x[De]==null?ct=!1:ct=e.current.isRowSelectable(De);let Lt=!1;le.position===void 0&&(Lt=Me===0);let pt=!1;const rt=Me===me.length-1;if(ue)if(ge)pt=rt;else{const hi=S.rows.length-1;Me===hi&&(pt=!0)}const Ve=Me===Ie;let ft=null;y!==null&&y.id===De&&(ft=e.current.getCellParams(De,y.field).cellMode==="view"?y.field:null);let It=Q;!ge&&z.current&&Me>=z.current.firstRowIndex&&Me<z.current.lastRowIndex&&(It=z.current);const St=lue($e,It,u.left.length),yn=rt&&le.position==="top";if(Le.push($.jsx(t.slots.row,D({row:Ye,rowId:De,index:Je,selected:ct,offsetTop:le.rows?void 0:b.positions[Me],offsetLeft:St,dimensions:a,rowHeight:Rt,tabbableCell:ft,pinnedColumns:u,visibleColumns:r,renderContext:It,focusedColumnIndex:st?W.columnIndex:void 0,isFirstVisible:Lt,isLastVisible:pt,isNotVisible:Ve,showBottomBorder:yn},de),De)),Ve)return;const Bn=f.get(De);Bn&&Le.push(Bn),le.position===void 0&&rt&&Le.push((Oo=(To=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Oo.call(To,{lastRowId:De}))}),Le},se=s.width&&I>s.width,ee=v.useMemo(()=>({overflowX:!se||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[se,t.autoHeight,n]),ce=v.useMemo(()=>{const le={width:se?I:"auto",flexBasis:M,flexShrink:0};return le.flexBasis===0&&(le.flexBasis=Dce),le},[I,M,se]);return v.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,ce]),mr(()=>{i&&(T.current.scrollLeft=0),o&&(T.current.scrollTop=0)},[i,o,P,T]),mr(()=>{n&&(T.current.scrollLeft=0)},[n,T]),ZEt(s.width!==0,()=>{const le=QR(e,t,o,i),Q=JR(le,L.current,V);G(Q),e.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:Q})}),e.current.register("private",{updateRenderContext:K}),gt(e,"columnsChange",K),gt(e,"filteredRowsSet",K),gt(e,"rowExpansionChange",K),{renderContext:F,setPanels:p,getRows:fe,getContainerProps:()=>({ref:_}),getScrollerProps:()=>({ref:T,onScroll:ne,onWheel:re,onTouchMove:oe,style:ee,role:"presentation",tabIndex:rOt?-1:void 0}),getContentProps:()=>({style:ce,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:O,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:k,role:"presentation"})}};function QR(e,t,n,r){const o=Mi(e.current.state),i=by(e,t),a=t.unstable_listView?[$v(e.current.state)]:wo(e),s=cOt(e),l=e.current.state.rows.dataRowIds.at(-1),c=a.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:l!==void 0?e.current.unstable_getRowHeight(l):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:Nb(e.current.state),columnPositions:cp(e),rows:i.rows,range:i.range,pinnedColumns:P1(e),visibleColumns:a,hiddenCellsOriginMap:s,listView:t.unstable_listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function JR(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(rK(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:rK(e,o+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,f]=yN({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let p=d;p<f&&!u;p+=1){const m=e.rows[p];u=e.apiRef.current.rowHasAutoHeight(m.id)}(!u||e.virtualizeColumnsWithAutoRowHeight)&&(l=Bf(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=Bf(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return pOt(e,r,n)}function rK(e,t,n){var a,s;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(a=e.range)!=null&&a.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=Vc(r-(((s=e.range)==null?void 0:s.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Bf(t,e.rowsMeta.positions,n):hOt(t,e.rowsMeta.positions,i,n)}function pOt(e,t,n){const[r,o]=yN({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=yN({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=qTt({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:s,lastColumnIndex:a}}function Bf(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let s;if(n!=null&&n.atStart){const l=(i===t.length-1?n.lastPosition:t[i+1])-a;s=e-l<a}else s=e<=a;return s?Bf(e,t,n,r,i):Bf(e,t,n,i+1,o)}function hOt(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Bf(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function yN({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:s}){const l=a[e]-n,c=a[t]+r,u=Bf(l,a,{atStart:!0,lastPosition:a[a.length-1]+s}),d=Bf(c,a);return[Vc(u,o,i),Vc(d,o,i)]}function mOt(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function lue(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function gOt(e,t){return e===0&&t===0?ao.NONE:Math.abs(t)>=Math.abs(e)?t>0?ao.DOWN:ao.UP:e>0?ao.RIGHT:ao.LEFT}function cue(e,t,n,r,o,i){if(e)switch(t){case ao.LEFT:t=ao.RIGHT;break;case ao.RIGHT:t=ao.LEFT;break}switch(t){case ao.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case ao.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case ao.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case ao.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case ao.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function oK(e){return{width:Math.round(e.width*10)/10,height:Math.round(e.height*10)/10}}const yOt=()=>{var d,f;const e=sn(),t=xt(),n=Ge(e,PM),r=Ge(e,iV),o=Ge(e,Ace),i=n===0&&o===0,a=Ge(e,fEt),s=!a&&i,l=!a&&n>0&&r===0;let c=null,u=null;return s&&(c="noRowsOverlay"),l&&(c="noResultsOverlay"),a&&(c="loadingOverlay",u=((f=(d=t.slotProps)==null?void 0:d.loadingOverlay)==null?void 0:f[i?"noRowsVariant":"variant"])||null),{overlayType:c,loadingOverlayVariant:u}},vOt=ur("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),bOt=ur("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),wOt=e=>{const{classes:t}=e;return bt({root:["overlayWrapper"],inner:["overlayWrapperInner"]},wn,t)};function xOt(e){const t=sn(),n=xt(),r=Ge(t,Mi);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Dce);const i=wOt(D({},e,{classes:n.classes}));return $.jsx(vOt,D({className:pe(i.root)},e,{children:$.jsx(bOt,D({className:pe(i.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}function SOt(e){var i,a;const{overlayType:t}=e,n=xt();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(a=n.slotProps)==null?void 0:a[t];return $.jsx(xOt,D({},e,{children:$.jsx(r,D({},o))}))}const cE=e=>e.columnMenu;function COt(){var y;const e=Cl(),t=xt(),n=Ge(e,wo),r=Ge(e,BEt),o=Ge(e,LEt),i=Ge(e,Hce),a=Ge(e,lV),s=Ge(e,QEt),l=Ge(e,XEt),c=Ge(e,IO),u=Ge(e,T1),d=Ge(e,cE),f=Ge(e,Qs),p=Ge(e,UTt),m=!(s===null&&i===null&&a===null),g=e.current.columnHeadersContainerRef;return $.jsx(t.slots.columnHeaders,D({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m},(y=t.slotProps)==null?void 0:y.columnHeaders))}const POt=lp(COt),uue=v.createContext(void 0),due=()=>{const e=v.useContext(uue);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
+`));return e},EOt=ur("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),TOt=ur("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),OOt=kn((e,t)=>{var i;const n=xt(),o=due().hooks.useGridAriaAttributes();return $.jsxs(TOt,D({ownerState:n,className:e.className,tabIndex:-1},o,(i=n.slotProps)==null?void 0:i.main,{ref:t,children:[$.jsx(EOt,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),IOt=()=>bt({root:["topContainer"]},wn,{}),kOt=ur("div")({position:"sticky",zIndex:4,top:0});function MOt(e){const t=IOt();return $.jsx(kOt,D({},e,{className:pe(t.root,ae["container--top"]),role:"presentation"}))}const AOt=()=>bt({root:["bottomContainer"]},wn,{}),$Ot=ur("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function ROt(e){const t=AOt();return $.jsx($Ot,D({},e,{className:pe(t.root,ae["container--bottom"]),role:"presentation"}))}const DOt=(e,t)=>{const{classes:n}=e;return bt({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},wn,n)},_Ot=ur("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),LOt=kn(function(t,n){var a;const r=xt(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",i=DOt(r,o);return $.jsx(_Ot,D({},t,{ownerState:r,className:pe(i.root,t.className),ref:n}))}),NOt=ur("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),fue=ur("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),FOt=ur(fue)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),jOt=ur(fue)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),BOt=ur("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function zOt({rowsLength:e}){const t=sn(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:s,rightPinnedWidth:l}=Ge(t,Mi),c=o?a:0,u=n.height-r.height>0;return c===0&&!u?null:$.jsxs(NOt,{className:ae.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&$.jsx(FOt,{className:ae["filler--pinnedLeft"],style:{width:s}}),$.jsx(BOt,{}),l>0&&$.jsx(jOt,{className:ae["filler--pinnedRight"],style:{width:l+(i?a:0)}})]})}const VOt=lp(zOt),HOt=["className"],UOt=e=>{const{classes:t}=e;return bt({root:["virtualScrollerRenderZone"]},wn,t)},WOt=ur("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),GOt=kn(function(t,n){const{className:r}=t,o=ze(t,HOt),i=sn(),a=xt(),s=UOt(a),l=Ge(i,()=>{const c=DM(i);return Nb(i.current.state).positions[c.firstRowIndex]??0});return $.jsx(WOt,D({className:pe(s.root,r),ownerState:a,style:{transform:`translate3d(0, ${l}px, 0)`}},o,{ref:n}))}),qOt={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},Uo=e=>e.editRows,uS=e=>e.preferencePanel;var Wh=function(e){return e.filters="filters",e.columns="columns",e}(Wh||{});const KOt=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return bt(r,wn,n)},pue=ur("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),YOt=ur(pue)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),XOt=ur(pue)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),iK=kn(function(t,n){const r=Cl(),o=xt(),i=v.useRef(!1),a=v.useRef(0),s=v.useRef(null),l=v.useRef(null),c=KOt(o,t.position),u=Ge(r,Mi),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?u.hasScrollX:u.hasScrollY,m=u.minimumSize[d]+(p?u.scrollbarSize:0),y=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(m/u.viewportOuterSize[d]),b=ot(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;if(!E||P[f]===a.current)return;if(a.current=P[f],i.current){i.current=!1;return}i.current=!0;const T=P[f]/m;E[f]=T*y}),x=ot(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;if(!E)return;if(i.current){i.current=!1;return}i.current=!0;const T=E[f]/y;P[f]=T*m});zk(()=>{const P=r.current.virtualScrollerRef.current,E=s.current;return P.addEventListener("scroll",b,{capture:!0}),E.addEventListener("scroll",x,{capture:!0}),()=>{P.removeEventListener("scroll",b,{capture:!0}),E.removeEventListener("scroll",x,{capture:!0})}}),v.useEffect(()=>{l.current.style.setProperty(d,`${y}px`)},[y,d]);const S=t.position==="vertical"?YOt:XOt;return $.jsx(S,{ref:Gr(n,s),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:$.jsx("div",{ref:l,className:c.content})})}),QOt=(e,t,n)=>{const{classes:r}=e,o={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight",n==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",t.hasScrollX&&"virtualScroller--hasScrollX"]};return bt(o,wn,r)},JOt=ur("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function ZOt(e){const t=sn(),n=xt(),r=Ge(t,Mi),o=yOt(),i=QOt(n,r,o.loadingOverlayVariant),a=fOt(),{getContainerProps:s,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:p}=a,m=p();return $.jsxs(OOt,D({className:i.root},s(),{children:[$.jsx(tK,{scrollDirection:"left"}),$.jsx(tK,{scrollDirection:"right"}),$.jsxs(JOt,D({className:i.scroller},l(),{ownerState:n,children:[$.jsxs(MOt,{children:[!n.unstable_listView&&$.jsx(POt,{}),$.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:a})]}),$.jsx(SOt,D({},o)),$.jsx(LOt,D({},c(),{children:$.jsxs(GOt,D({},u(),{children:[m,$.jsx(n.slots.detailPanels,{virtualScroller:a})]}))})),$.jsx(VOt,{rowsLength:m.length}),$.jsx(ROt,{children:$.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:a})})]})),r.hasScrollY&&$.jsx(iK,D({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&$.jsx(iK,D({position:"horizontal"},f())),e.children]}))}function eIt(){var t;const e=xt();return e.hideFooter?null:$.jsx(e.slots.footer,D({},(t=e.slotProps)==null?void 0:t.footer))}let ZR;function tIt(){return ZR===void 0&&document.createElement("div").focus({get preventScroll(){return ZR=!0,!1}}),ZR}const _M=(e,t,n,r,o)=>{const i=t===n-1;return e===lr.LEFT&&i?!0:r?e===lr.LEFT?!0:e===lr.RIGHT?!i:!i||o:!1},LM=(e,t)=>e===lr.RIGHT&&t===0,nIt=["column","rowId","editCellState","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],rIt=["changeReason","unstable_updateValueOnRender"];let pa=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const hue={[pa.LEFT]:lr.LEFT,[pa.RIGHT]:lr.RIGHT,[pa.NONE]:void 0,[pa.VIRTUAL]:void 0},aK={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Jn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},oIt=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:s,classes:l}=e,c={root:["cell",`cell--text${op(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===pa.LEFT&&"cell--pinnedLeft",o===pa.RIGHT&&"cell--pinnedRight",s&&!i&&"cell--selectionMode"]};return bt(c,wn,l)},iIt=kn(function(t,n){var ct,Lt,pt;const{column:r,rowId:o,editCellState:i,align:a,colIndex:s,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:p,pinnedOffset:m,pinnedPosition:g,sectionIndex:y,sectionLength:b,gridHasFiller:x,onClick:S,onDoubleClick:P,onMouseDown:E,onMouseUp:T,onMouseOver:O,onKeyDown:k,onKeyUp:M,onDragEnter:I,onDragOver:R}=t,_=ze(t,nIt),L=sn(),j=xt(),N=po(),F=r.field,U=Ge(L,()=>{if(!L.current.getRow(o))return aK;const Pe=L.current.getCellParams(o,F);return Pe.api=L.current,Pe},gce),z=Ge(L,()=>L.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:F})),V=Ge(L,sue),W=Ge(L,lOt),{cellMode:G,hasFocus:J,isEditable:K=!1,value:ne}=U,re=r.type==="actions"&&((ct=r.getActions)==null?void 0:ct.call(r,L.current.getRowParams(o)).some(rt=>!rt.props.disabled)),oe=(G==="view"||!K)&&!re?U.tabIndex:-1,{classes:fe,getCellClassName:se}=j,ce=[Ge(L,()=>L.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:F}).filter(Boolean).join(" "))];r.cellClassName&&ce.push(typeof r.cellClassName=="function"?r.cellClassName(U):r.cellClassName),r.display==="flex"&&ce.push(ae["cell--flex"]),se&&ce.push(se(U));const le=U.formattedValue??ne,Q=v.useRef(null),ue=Gr(n,Q),ge=v.useRef(null),xe=j.cellSelection??!1,me=hue[g],be=LM(me,y),we=_M(me,y,b,j.showCellVerticalBorder,x),Te={align:a,showLeftBorder:be,showRightBorder:we,isEditable:K,classes:j.classes,pinnedPosition:g,isSelected:z,isSelectionMode:xe},Ie=oIt(Te),Le=v.useCallback(rt=>Pe=>{const Ve=L.current.getCellParams(o,F||"");L.current.publishEvent(rt,Ve,Pe),T&&T(Pe)},[L,F,T,o]),de=v.useCallback(rt=>Pe=>{const Ve=L.current.getCellParams(o,F||"");L.current.publishEvent(rt,Ve,Pe),E&&E(Pe)},[L,F,E,o]),$e=v.useCallback((rt,Pe)=>Ve=>{if(!L.current.getRow(o))return;const ft=L.current.getCellParams(o,F||"");L.current.publishEvent(rt,ft,Ve),Pe&&Pe(Ve)},[L,F,o]),ke=((Lt=V[o])==null?void 0:Lt[F])??!1,Me=((pt=W[o])==null?void 0:pt[F])??1,De=v.useMemo(()=>{if(p)return{padding:0,opacity:0,width:0,height:0,border:0};const rt=D({"--width":`${l}px`},u),Pe=g===pa.LEFT,Ve=g===pa.RIGHT;if(Pe||Ve){let ft=Pe?"left":"right";N&&(ft=Pe?"right":"left"),rt[ft]=m}return Me>1&&(rt.height=`calc(var(--height) * ${Me})`,rt.zIndex=5,(Pe||Ve)&&(rt.zIndex=6)),rt},[l,p,u,m,g,N,Me]);if(v.useEffect(()=>{if(!J||G===Jn.Edit)return;const rt=tc(L.current.rootElementRef.current);if(Q.current&&!Q.current.contains(rt.activeElement)){const Pe=Q.current.querySelector('[tabindex="0"]'),Ve=ge.current||Pe||Q.current;if(tIt())Ve.focus({preventScroll:!0});else{const ft=L.current.getScrollPosition();Ve.focus(),L.current.scroll(ft)}}},[J,G,L]),ke)return $.jsx("div",{"data-colindex":s,role:"presentation",style:D({width:"var(--width)"},De)});if(U===aK)return null;let Ye=_.onFocus,Je,st;if(i===null&&r.renderCell&&(Je=r.renderCell(U)),i!==null&&r.renderEditCell){const rt=L.current.getRowWithUpdatedValues(o,r.field),Pe=ze(i,rIt),Ve=r.valueFormatter?r.valueFormatter(i.value,rt,r,L):U.formattedValue,ft=D({},U,{row:rt,formattedValue:Ve},Pe);Je=r.renderEditCell(ft),ce.push(ae["cell--editing"]),ce.push(fe==null?void 0:fe["cell--editing"])}if(Je===void 0){const rt=le==null?void 0:le.toString();Je=rt,st=rt}v.isValidElement(Je)&&re&&(Je=v.cloneElement(Je,{focusElementRef:ge}));const Rt=f?null:{onDragEnter:$e("cellDragEnter",I),onDragOver:$e("cellDragOver",R)};return $.jsx("div",D({className:pe(Ie.root,ce,c),role:"gridcell","data-field":F,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":d,"aria-rowspan":Me,style:De,title:st,tabIndex:oe,onClick:$e("cellClick",S),onDoubleClick:$e("cellDoubleClick",P),onMouseOver:$e("cellMouseOver",O),onMouseDown:de("cellMouseDown"),onMouseUp:Le("cellMouseUp"),onKeyDown:$e("cellKeyDown",k),onKeyUp:$e("cellKeyUp",M)},Rt,_,{onFocus:Ye,ref:ue,children:Je}))}),aIt=lp(iIt),sIt=["label","icon","showInMenu","onClick"],lIt=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],PP=kn((e,t)=>{var u;const n=xt();if(!e.showInMenu){const{label:d,icon:f,onClick:p}=e,m=ze(e,sIt),g=y=>{p==null||p(y)};return $.jsx(n.slots.baseIconButton,D({size:"small",role:"menuitem","aria-label":d},m,{onClick:g},(u=n.slotProps)==null?void 0:u.baseIconButton,{ref:t,children:v.cloneElement(f,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:s}=e,l=ze(e,lIt),c=d=>{i==null||i(d),a&&(s==null||s())};return $.jsxs(nn,D({ref:t},l,{onClick:c,children:[o&&$.jsx(Ki,{children:o}),r]}))}),cIt=["field","type","align","width","height","empty","style","className"],sK="1.3em",uIt="1.2em",lK=[40,80],dIt={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},fIt=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?op(t):"Left"}`,r&&"cellEmpty"]};return bt(o,wn,n)},pIt=GPt(12345);function hIt(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:s,className:l}=e,c=ze(e,cIt),d={classes:xt().classes,align:r,empty:a},f=fIt(d),p=v.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:sK,height:sK};const[g,y]=n?dIt[n]??lK:lK;return{variant:"text",width:`${Math.round(pIt(g,y))}%`,height:uIt}},[n]);return $.jsx("div",D({"data-field":t,className:pe(f.root,l),style:D({height:i,maxWidth:o,minWidth:o},s)},c,{children:!a&&$.jsx(GP,D({},p))}))}const mIt=lp(hIt);function gIt(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?qu(vt(e.palette.divider,1),.88):Gu(vt(e.palette.divider,1),.68)}const cK={[`& .${ae.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ae.menuIcon}`]:{width:"auto",visibility:"visible"}},yIt=10,EP=-5,cg=1,uK={width:3,rx:1.5,x:10.5},vIt="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",bIt=ie("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ae.autoHeight}`]:t.autoHeight},{[`&.${ae.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ae["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ae["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ae["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ae.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ae["root--disableUserSelection"]} .${ae.cell}`]:t["root--disableUserSelection"]},{[`&.${ae.autosizing}`]:t.autosizing},{[`& .${ae.editBooleanCell}`]:t.editBooleanCell},{[`& .${ae.cell}`]:t.cell},{[`& .${ae["cell--editing"]}`]:t["cell--editing"]},{[`& .${ae["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ae["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ae["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ae["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ae["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ae["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ae["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ae["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ae.cellCheckbox}`]:t.cellCheckbox},{[`& .${ae.cellSkeleton}`]:t.cellSkeleton},{[`& .${ae.checkboxInput}`]:t.checkboxInput},{[`& .${ae["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ae["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ae["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ae["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ae["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ae["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ae["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ae["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ae["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ae.columnHeader}`]:t.columnHeader},{[`& .${ae.headerFilterRow}`]:t.headerFilterRow},{[`& .${ae.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ae.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ae.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ae["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ae["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ae.columnSeparator}`]:t.columnSeparator},{[`& .${ae.filterIcon}`]:t.filterIcon},{[`& .${ae.iconSeparator}`]:t.iconSeparator},{[`& .${ae.menuIcon}`]:t.menuIcon},{[`& .${ae.menuIconButton}`]:t.menuIconButton},{[`& .${ae.menuOpen}`]:t.menuOpen},{[`& .${ae.menuList}`]:t.menuList},{[`& .${ae["row--editable"]}`]:t["row--editable"]},{[`& .${ae["row--editing"]}`]:t["row--editing"]},{[`& .${ae["row--dragging"]}`]:t["row--dragging"]},{[`& .${ae.row}`]:t.row},{[`& .${ae.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ae.rowReorderCell}`]:t.rowReorderCell},{[`& .${ae["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ae.sortIcon}`]:t.sortIcon},{[`& .${ae.withBorderColor}`]:t.withBorderColor},{[`& .${ae.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ae.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ae.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${ae.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${ae.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ae["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var k,M;const t=Cl(),n=Ge(t,Mi),r=gIt(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:((k=e.mixins.MuiDataGrid)==null?void 0:k.containerBackground)??e.palette.background.default,a=((M=e.mixins.MuiDataGrid)==null?void 0:M.pinnedBackground)??i,s=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:vt(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,c=(e.vars||e).palette.action.hover,u=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`calc(${l} + ${u})`:l+u,f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${u})`:vt(e.palette.primary.main,u),p=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:vt(e.palette.primary.main,d),m=e.vars?SIt:wIt,g=I=>({[`& .${ae["cell--pinnedLeft"]}, & .${ae["cell--pinnedRight"]}`]:{backgroundColor:I,"&.Mui-selected":{backgroundColor:m(I,f,u),"&:hover":{backgroundColor:m(I,f,d)}}}}),y=m(a,c,l),b=g(y),x=m(a,f,u),S=g(x),P=m(a,p,d),E=g(P),T={backgroundColor:f,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:f}}};return D({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":s,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":a,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${ae.main} > *:first-child${vIt}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${ae.autoHeight}`]:{height:"auto"},[`&.${ae.autosizing}`]:{[`& .${ae.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${ae.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${ae.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${ae.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${ae.groupingCriteriaCell}`]:{width:"unset"},[`& .${ae.treeDataGroupingCell}`]:{width:"unset"}},[`& .${ae.columnHeader}, & .${ae.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${ae.columnHeader}:focus-within, & .${ae.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:vt(e.palette.primary.main,.5)} ${cg}px`,outlineOffset:cg*-1},[`& .${ae.columnHeader}:focus, & .${ae.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${cg}px`,outlineOffset:cg*-1},[`& .${ae.columnHeader}:focus,
& .${ae["columnHeader--withLeftBorder"]},
& .${ae["columnHeader--withRightBorder"]},
& .${ae["columnHeader--siblingFocused"]},
& .${ae["virtualScroller--hasScrollX"]} .${ae["columnHeader--lastUnpinned"]},
& .${ae["virtualScroller--hasScrollX"]} .${ae["columnHeader--last"]}
- `]:{[`& .${ae.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${ae["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${ae["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${ae["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${ae["root--noToolbar"]} [aria-rowindex="1"] .${ae["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${ae.columnHeaderCheckbox}, & .${ae.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ae.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ae["virtualScroller--hasScrollX"]} .${ae["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${ae["columnHeader--sorted"]} .${ae.iconButtonContainer}, & .${ae["columnHeader--filtered"]} .${ae.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ae.columnHeader}:not(.${ae["columnHeader--sorted"]}) .${ae.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ae.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ae.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ae["columnHeader--filledGroup"]} .${ae.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ae.sortIcon}, & .${ae.filterIcon}`]:{fontSize:"inherit"},[`& .${ae["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ae["columnHeader--alignCenter"]} .${ae.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ae["columnHeader--alignRight"]} .${ae.columnHeaderDraggableContainer}, & .${ae["columnHeader--alignRight"]} .${ae.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ae["columnHeader--alignCenter"]} .${ae.menuIcon}`]:{marginLeft:"auto"},[`& .${ae["columnHeader--alignRight"]} .${ae.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${ae["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${ae["columnHeader--pinnedLeft"]}, & .${ae["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${ae.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:LEt,color:r},[`& .${ae.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${ae.columnHeader}:hover`]:fq,[`& .${ae.columnHeader}:not(.${ae["columnHeader--sorted"]}):hover .${ae.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ae.columnHeader}`]:fq,[`& .${ae.columnHeader}:focus,
- & .${ae["columnHeader--siblingFocused"]}`]:{[`.${ae["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${ae["columnSeparator--sideLeft"]}`]:{left:tP},[`& .${ae["columnSeparator--sideRight"]}`]:{right:tP},[`& .${ae["columnHeader--withRightBorder"]} .${ae["columnSeparator--sideLeft"]}`]:{left:tP-.5},[`& .${ae["columnHeader--withRightBorder"]} .${ae["columnSeparator--sideRight"]}`]:{right:tP-.5},[`& .${ae["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${ae["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${ae.iconSeparator} rect`]:pq},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${ae.iconSeparator} rect`]:pq}},"& svg":{pointerEvents:"none"}},[`& .${ae.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${ae.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${ae.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ae.headerFilterRow}`]:{[`& .${ae.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${ae["row--borderBottom"]} .${ae.columnHeader},
+ `]:{[`& .${ae.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${ae["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${ae["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${ae["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${ae["root--noToolbar"]} [aria-rowindex="1"] .${ae["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${ae.columnHeaderCheckbox}, & .${ae.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ae.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ae["virtualScroller--hasScrollX"]} .${ae["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${ae["columnHeader--sorted"]} .${ae.iconButtonContainer}, & .${ae["columnHeader--filtered"]} .${ae.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ae.columnHeader}:not(.${ae["columnHeader--sorted"]}) .${ae.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ae.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ae.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ae["columnHeader--filledGroup"]} .${ae.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ae.sortIcon}, & .${ae.filterIcon}`]:{fontSize:"inherit"},[`& .${ae["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ae["columnHeader--alignCenter"]} .${ae.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ae["columnHeader--alignRight"]} .${ae.columnHeaderDraggableContainer}, & .${ae["columnHeader--alignRight"]} .${ae.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ae["columnHeader--alignCenter"]} .${ae.menuIcon}`]:{marginLeft:"auto"},[`& .${ae["columnHeader--alignRight"]} .${ae.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${ae["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${ae["columnHeader--pinnedLeft"]}, & .${ae["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${ae.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:yIt,color:r},[`& .${ae.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${ae.columnHeader}:hover`]:cK,[`& .${ae.columnHeader}:not(.${ae["columnHeader--sorted"]}):hover .${ae.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ae.columnHeader}`]:cK,[`& .${ae.columnHeader}:focus,
+ & .${ae["columnHeader--siblingFocused"]}`]:{[`.${ae["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${ae["columnSeparator--sideLeft"]}`]:{left:EP},[`& .${ae["columnSeparator--sideRight"]}`]:{right:EP},[`& .${ae["columnHeader--withRightBorder"]} .${ae["columnSeparator--sideLeft"]}`]:{left:EP-.5},[`& .${ae["columnHeader--withRightBorder"]} .${ae["columnSeparator--sideRight"]}`]:{right:EP-.5},[`& .${ae["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${ae["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${ae.iconSeparator} rect`]:uK},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${ae.iconSeparator} rect`]:uK}},"& svg":{pointerEvents:"none"}},[`& .${ae.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${ae.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${ae.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ae.headerFilterRow}`]:{[`& .${ae.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${ae["row--borderBottom"]} .${ae.columnHeader},
& .${ae["row--borderBottom"]} .${ae.filler},
- & .${ae["row--borderBottom"]} .${ae.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ae["row--borderBottom"]} .${ae.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${ae.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${ae["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ae.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":T},[`& .${ae["container--top"]}, & .${ae["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${ae.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":T},[`& .${ae["virtualScrollerContent--overflowed"]} .${ae["row--lastVisible"]} .${ae.cell}`]:{borderTopColor:"transparent"},[`& .${ae["pinnedRows--top"]} :first-of-type`]:{[`& .${ae.cell}, .${ae.scrollbarFiller}`]:{borderTop:"none"}},[`&.${ae["root--disableUserSelection"]} .${ae.cell}`]:{userSelect:"none"},[`& .${ae["row--dynamicHeight"]} > .${ae.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${ae.cellEmpty}`]:{padding:0,height:"unset"},[`& .${ae.cell}.${ae["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ae.cell}.${ae["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${Gm}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:Gm*-1}},[`& .${ae["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ae["row--editing"]} .${ae.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ae.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ae.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ae.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ae.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ae.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ae["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ae.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${ae.withBorderColor}`]:{borderColor:r},[`& .${ae["cell--withLeftBorder"]}, & .${ae["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${ae["cell--withRightBorder"]}, & .${ae["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ae["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${ae["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${ae["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${ae["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${ae["cell--pinnedLeft"]}, & .${ae["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:x}},[`& .${ae.virtualScrollerContent} .${ae.row}`]:{"&:hover":b,"&.Mui-selected":S,"&.Mui-selected:hover":E},[`& .${ae.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${ae.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${ae.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ae.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ae["columnHeader--dragging"]}, & .${ae["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ae["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ae.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ae.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ae.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ae.treeDataGroupingCellLoadingContainer}, .${ae.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${ae.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ae.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${ae.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${ae["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ae["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ae["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${ae.filler}`]:{flex:"1 0 auto"},[`& .${ae["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ae["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${ae.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${ae["scrollbar--vertical"]}, & .${ae.pinnedRows}, & .${ae.virtualScroller} > .${ae.filler}`]:{display:"none"}}})});function jEt(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Rc(e),a=Rc(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return tS({type:"rgb",values:s})}const BEt=e=>`rgb(from ${e} r g b / 1)`;function zEt(e,t,n){return`color-mix(in srgb,${e}, ${BEt(t)} calc(${n} * 100%))`}const VEt=["className"],HEt=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${Se(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return Te(i,Sn,r)},UEt=$n(function(t,n){const r=wt(),{className:o}=t,i=Ue(t,VEt),a=pl(),s=Ye(a,Ig),l=a.current.rootElementRef,c=Wt(l,n),u=r,d=HEt(u,s),[f,p]=v.useState(!1);return xn(()=>{p(!0)},[]),f?$.jsx(FEt,D({className:pe(d.root,o),ownerState:u},i,{ref:c})):null}),WEt=["className"],GEt=e=>{const{classes:t}=e;return Te({root:["footerContainer","withBorderColor"]},Sn,t)},qEt=Qn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),KEt=$n(function(t,n){const{className:r}=t,o=Ue(t,WEt),i=wt(),a=GEt(i);return $.jsx(qEt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),YEt=["className"],XEt=e=>{const{classes:t}=e;return Te({root:["overlay"]},Sn,t)},QEt=Qn("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),Tz=$n(function(t,n){const{className:r}=t,o=Ue(t,YEt),i=wt(),a=XEt(i);return $.jsx(QEt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),JEt=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Sn,t)},ZEt=v.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=sn(),s=wt(),l=D({},e,{classes:s.classes}),c=JEt(l),u=v.useCallback(p=>{p.preventDefault(),p.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]);return $.jsx("div",{className:c.root,children:$.jsx(s.slots.baseTooltip,D({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=s.slotProps)==null?void 0:d.baseTooltip,{children:$.jsx(s.slots.baseIconButton,D({ref:i,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=s.slotProps)==null?void 0:f.baseIconButton,{children:$.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function eTt({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=sn(),c=l.current.getColumn(o),u=Ze(d=>{d&&(d.stopPropagation(),a!=null&&a.contains(d.target))||l.current.hideColumnMenu()});return!a||!c?null:$.jsx(hz,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:i,target:a,onClose:u,onExited:s,children:$.jsx(n,D({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))})}function tTt(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function tO(e,t){return e.closest(`.${t}`)}function id(e){return e.replace(/["\\]/g,"\\$&")}function nTt(e,t){return e.querySelector(`[role="columnheader"][data-field="${id(t)}"]`)}function sce(e){return`.${ae.row}[data-id="${id(String(e))}"]`}function rTt(e,t){return e.querySelector(sce(t))}function oTt(e,{id:t,field:n}){const r=sce(t),o=`.${ae.cell}[data-field="${id(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function r1(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function iTt(e){return e.getAttribute("data-field")}function aTt(e,t){return e.querySelector(`[data-field="${id(t)}"]`)}function sTt(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function lTt(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${id(t)}-|"]`)??[])}function cTt(e,t){var a;if(!tO(e,ae.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(a=t.virtualScrollerRef)!=null&&a.current?(uce(t).forEach(s=>{const l=s.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=s.querySelector(`[data-colindex="${c}"]`);d&&i.push(d)}),i):[]}function hq(e,t){return e.rootElementRef.current.querySelector(`.${ae[t]}`)}const lce=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return uce(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${ae[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const l=hb(s);l!==null&&r(l)&&o.push(s)})}),o};function uTt(e,t,n){const r=hb(t);return lce({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function dTt(e,t,n){const r=hb(t);return lce({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const cce=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${ae[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(a=>{const s=hb(a);s!==null&&r(s)&&o.push(a)}),o};function fTt(e,t,n){const r=hb(t);return cce({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function pTt(e,t,n){const r=hb(t);return cce({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o<r})}function hTt(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${id(t)}"][role="columnheader"]`)}function mTt(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${id(t)}"][role="gridcell"]`))}function uce(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${ae.row}`)}function hb(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const gTt=["className","aria-label"],yTt=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},Sn,t)},vTt=Qn("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),bTt=$n(function(t,n){const{className:r}=t,o=Ue(t,gTt),i=wt(),a=yTt(i);return $.jsx(vTt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))});function wTt(e){var l;const{label:t,description:n}=e,r=wt(),o=v.useRef(null),[i,a]=v.useState(""),s=v.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=tTt(o.current);a(c?t:"")}},[n,t]);return $.jsx(r.slots.baseTooltip,D({title:n||i},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:$.jsx(bTt,{onMouseOver:s,ref:o,children:t})}))}const xTt=["resizable","resizing","height","side"];var Oz=function(e){return e.Left="left",e.Right="right",e}(Oz||{});const STt=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Se(o)}`],icon:["iconSeparator"]};return Te(i,Sn,r)};function CTt(e){const{height:t,side:n=Oz.Right}=e,r=Ue(e,xTt),o=wt(),i=D({},e,{side:n,classes:o.classes}),a=STt(i),s=v.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return $.jsx("div",D({className:a.root,style:{minHeight:t}},r,{onClick:s,children:$.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const PTt=v.memo(CTt),ETt=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],dce=$n(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:a,sortDirection:s,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:p,width:m,columnMenuIconButton:g=null,columnMenu:y=null,columnTitleIconButtons:b=null,headerClassName:x,label:S,resizable:P,draggableContainerProps:E,columnHeaderSeparatorProps:T,style:O}=t,k=Ue(t,ETt),M=pl(),I=wt(),R=v.useRef(null),_=Wt(R,n);let N="none";return s!=null&&(N=s==="asc"?"ascending":"descending"),v.useLayoutEffect(()=>{var L;const B=M.current.state.columnMenu;if(l&&!B.open){const U=R.current.querySelector('[tabindex="0"]')||R.current;U==null||U.focus(),(L=M.current.columnHeadersContainerRef)!=null&&L.current&&(M.current.columnHeadersContainerRef.current.scrollLeft=0)}},[M,l]),$.jsxs("div",D({className:pe(r.root,x),style:D({},O,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":N},k,{ref:_,children:[$.jsxs("div",D({className:r.draggableContainer,draggable:d,role:"presentation"},E,{children:[$.jsxs("div",{className:r.titleContainer,role:"presentation",children:[$.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:$.jsx(wTt,{label:S,description:p,columnWidth:m})}),b]}),g]})),$.jsx(PTt,D({resizable:!I.disableColumnResize&&!!P,resizing:a,height:i,side:u},T)),y]}))}),TTt=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=s!=null&&s>0,p=t.type==="number",m={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Te(m,Sn,n)};function OTt(e){var ee,ce,le;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:s,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:p,style:m,pinnedPosition:g,indexInSection:y,sectionLength:b,gridHasFiller:x}=e,S=pl(),P=wt(),E=v.useRef(null),T=_n(),O=_n(),k=v.useRef(null),[M,I]=v.useState(n),R=v.useMemo(()=>!P.disableColumnReorder&&!f&&!t.disableReorder,[P.disableColumnReorder,f,t.disableReorder]);let _;t.renderHeader&&(_=t.renderHeader(S.current.getColumnHeaderParams(t.field)));const N=tM(g,y),B=eM(g,y,b,P.showColumnVerticalBorder,x),L=D({},e,{classes:P.classes,showRightBorder:B,showLeftBorder:N}),F=TTt(L),U=v.useCallback(Q=>ue=>{r1(ue)||S.current.publishEvent(Q,S.current.getColumnHeaderParams(t.field),ue)},[S,t.field]),V=v.useMemo(()=>({onClick:U("columnHeaderClick"),onContextMenu:U("columnHeaderContextMenu"),onDoubleClick:U("columnHeaderDoubleClick"),onMouseOver:U("columnHeaderOver"),onMouseOut:U("columnHeaderOut"),onMouseEnter:U("columnHeaderEnter"),onMouseLeave:U("columnHeaderLeave"),onKeyDown:U("columnHeaderKeyDown"),onFocus:U("columnHeaderFocus"),onBlur:U("columnHeaderBlur")}),[U]),z=v.useMemo(()=>R?{onDragStart:U("columnHeaderDragStart"),onDragEnter:U("columnHeaderDragEnter"),onDragOver:U("columnHeaderDragOver"),onDragEnd:U("columnHeaderDragEnd")}:{},[R,U]),W=v.useMemo(()=>({onMouseDown:U("columnSeparatorMouseDown"),onDoubleClick:U("columnSeparatorDoubleClick")}),[U]);v.useEffect(()=>{M||I(n)},[M,n]);const G=v.useCallback(()=>{I(!1)},[]),J=!P.disableColumnMenu&&!t.disableColumnMenu&&$.jsx(ZEt,{colDef:t,columnMenuId:T,columnMenuButtonId:O,open:M,iconButtonRef:k}),K=$.jsx(eTt,{columnMenuId:T,columnMenuButtonId:O,field:t.field,open:n,target:k.current,ContentComponent:P.slots.columnMenu,contentComponentProps:(ee=P.slotProps)==null?void 0:ee.columnMenu,onExited:G}),ne=t.sortingOrder??P.sortingOrder,re=(t.sortable||s!=null)&&!t.hideSortIcons&&!P.disableColumnSorting,oe=$.jsxs(v.Fragment,{children:[!P.disableColumnFilter&&$.jsx(P.slots.columnHeaderFilterIconButton,D({field:t.field,counter:c},(ce=P.slotProps)==null?void 0:ce.columnHeaderFilterIconButton)),re&&$.jsx(P.slots.columnHeaderSortIcon,D({field:t.field,direction:s,index:l,sortingOrder:ne,disabled:!t.sortable},(le=P.slotProps)==null?void 0:le.columnHeaderSortIcon))]});v.useLayoutEffect(()=>{var ue;const Q=S.current.state.columnMenu;if(u&&!Q.open){const xe=E.current.querySelector('[tabindex="0"]')||E.current;xe==null||xe.focus(),(ue=S.current.columnHeadersContainerRef)!=null&&ue.current&&(S.current.columnHeadersContainerRef.current.scrollLeft=0)}},[S,u]);const fe=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,se=t.headerName??t.field;return $.jsx(dce,D({ref:E,classes:F,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:s,hasFocus:u,tabIndex:d,separatorSide:p,isDraggable:R,headerComponent:_,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:J,columnTitleIconButtons:oe,headerClassName:pe(fe,a&&ae["columnHeader--last"]),label:se,resizable:!P.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:z,columnHeaderSeparatorProps:W,style:m},V))}const ITt=Wf(OTt),kTt=["className"],MTt=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},Sn,t)},ATt=Qn("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),fce=$n(function(t,n){const{className:r}=t,o=Ue(t,kTt),i=wt(),a=MTt(i);return $.jsx(ATt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),$Tt=["direction","index","sortingOrder","disabled"],RTt=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},Sn,t)};function DTt(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?$.jsx(o,D({fontSize:"small",className:n},i)):null}function _Tt(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=Ue(e,$Tt),a=sn(),s=wt(),l=D({},e,{classes:s.classes}),c=RTt(l),u=DTt(s.slots,t,c.icon,r);if(!u)return null;const d=$.jsx(s.slots.baseIconButton,D({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=s.slotProps)==null?void 0:f.baseIconButton,i,{children:u}));return $.jsxs(fce,{children:[n!=null&&$.jsx(s.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const LTt=v.memo(_Tt),NTt=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},Sn,t)};function FTt(e){var m,g;const{counter:t,field:n,onClick:r}=e,o=sn(),i=wt(),a=D({},e,{classes:i.classes}),s=NTt(a),l=Ye(o,Bx),c=_n(),u=_n(),d=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:x}=Bx(o.current.state);b&&x===Oh.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),y)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,p=$.jsx(i.slots.baseIconButton,D({id:c,onClick:d,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?u:void 0},(m=i.slotProps)==null?void 0:m.baseIconButton,{children:$.jsx(i.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return $.jsx(i.slots.baseTooltip,D({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(g=i.slotProps)==null?void 0:g.baseTooltip,{children:$.jsxs(fce,{children:[t>1&&$.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:p}),t===1&&p]})}))}const mq=lt($.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),gq=lt($.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),yq=lt($.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),vq=lt($.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),jTt=lt($.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),bq=lt($.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),BTt=lt($.jsx("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"}),"Search");lt($.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const zTt=lt($.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),VTt=lt($.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),HTt=lt($.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),UTt=lt($.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),WTt=lt($.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),GTt=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),yR=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),wq=lt($.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),qTt=lt($.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),KTt=lt($.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),xq=lt($.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),YTt=lt($.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),XTt=lt($.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),QTt=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),JTt=lt($.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),ZTt=lt($.jsx("g",{children:$.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),eOt=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const tOt=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function pce(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const nO=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",nOt=e=>!!e.key,hce=e=>e==="Tab"||e==="Escape";function mce(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function rOt(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const oOt=["hideMenu","colDef","id","labelledby","className","children","open"],iOt=ie(Ev)(()=>({minWidth:248})),aOt=$n(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,c=Ue(t,oOt),u=v.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),hce(d.key)&&r(d)},[r]);return $.jsx(iOt,D({id:o,className:pe(ae.menuList,a),"aria-labelledby":i,onKeyDown:u,autoFocus:l},c,{ref:n,children:s}))}),sOt=["displayOrder"],lOt=e=>{const t=pl(),n=wt(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=v.useMemo(()=>D({},r,i),[r,i]),d=v.useMemo(()=>{if(!a||Object.keys(a).length===0)return o;const m=D({},a);return Object.entries(o).forEach(([g,y])=>{m[g]=D({},y,a[g]||{})}),m},[o,a]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=v.useMemo(()=>{const m=Object.keys(r);return Object.keys(i).filter(g=>!m.includes(g))},[i,r]);return v.useMemo(()=>{const y=Array.from(new Set([...f,...p])).filter(b=>u[b]!=null).sort((b,x)=>{const S=d[b],P=d[x],E=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100,T=Number.isFinite(P==null?void 0:P.displayOrder)?P.displayOrder:100;return E-T});return y.reduce((b,x,S)=>{let P={colDef:l,onClick:s};const E=d[x];if(E){const T=Ue(E,sOt);P=D({},P,T)}return c&&S!==y.length-1?[...b,[u[x],P],[n.slots.baseDivider,{}]]:[...b,[u[x],P]]},[])},[c,l,f,s,u,d,p,n.slots.baseDivider])};function cOt(e){const{colDef:t,onClick:n}=e,r=sn(),o=wt(),s=ho(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=v.useCallback(c=>{s||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:$.jsxs(tn,{onClick:l,disabled:s,children:[$.jsx(zi,{children:$.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),$.jsx(go,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function uOt(e){const{onClick:t}=e,n=sn(),r=wt(),o=v.useCallback(i=>{t(i),n.current.showPreferences(Oh.columns)},[n,t]);return r.disableColumnSelector?null:$.jsxs(tn,{onClick:o,children:[$.jsx(zi,{children:$.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),$.jsx(go,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function dOt(e){return $.jsxs(v.Fragment,{children:[$.jsx(cOt,D({},e)),$.jsx(uOt,D({},e))]})}function fOt(e){const{colDef:t,onClick:n}=e,r=sn(),o=wt(),i=v.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:$.jsxs(tn,{onClick:i,children:[$.jsx(zi,{children:$.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),$.jsx(go,{children:r.current.getLocaleText("columnMenuFilter")})]})}function pOt(e){const{colDef:t,onClick:n}=e,r=sn(),o=Ye(r,ks),i=wt(),a=v.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),s=t.sortingOrder??i.sortingOrder,l=v.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===a?null:d)},[r,t,n,a]);if(i.disableColumnSorting||!t||!t.sortable||!s.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return $.jsxs(v.Fragment,{children:[s.includes("asc")&&a!=="asc"?$.jsxs(tn,{onClick:l,"data-value":"asc",children:[$.jsx(zi,{children:$.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),$.jsx(go,{children:c("columnMenuSortAsc")})]}):null,s.includes("desc")&&a!=="desc"?$.jsxs(tn,{onClick:l,"data-value":"desc",children:[$.jsx(zi,{children:$.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),$.jsx(go,{children:c("columnMenuSortDesc")})]}):null,s.includes(null)&&a!=null?$.jsxs(tn,{onClick:l,children:[$.jsx(zi,{}),$.jsx(go,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const hOt=["defaultSlots","defaultSlotProps","slots","slotProps"],mOt={columnMenuSortItem:pOt,columnMenuFilterItem:fOt,columnMenuColumnsItem:dOt},gOt={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},yOt=$n(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=Ue(t,hOt),l=lOt(D({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return $.jsx(aOt,D({},s,{ref:n,children:l.map(([c,u],d)=>$.jsx(c,D({},u),d))}))}),vOt=$n(function(t,n){return $.jsx(yOt,D({},t,{ref:n,defaultSlots:mOt,defaultSlotProps:gOt}))}),bOt=["className","slotProps"],wOt=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},Sn,t)},xOt=ie("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),SOt=()=>!0,gce=$n(function(t,n){const{className:r,slotProps:o={}}=t,i=Ue(t,bOt),a=wt(),s=wOt(a);return $.jsx(EF,D({open:!0,disableEnforceFocus:!0,isEnabled:SOt},o.TrapFocus,{children:$.jsx(xOt,D({tabIndex:-1,className:pe(s.root,r),ownerState:a},i,{ref:n}))}))});function COt(e){var n;const t=wt();return $.jsx(gce,D({},e,{children:$.jsx(t.slots.columnsManagement,D({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const POt=["children","className","classes"],EOt=Le("MuiDataGrid",["panel","paper"]),TOt=ie($f,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),OOt=ie(so,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),IOt=$n((e,t)=>{const{children:n,className:r}=e,o=Ue(e,POt),i=sn(),a=wt(),s=EOt,[l,c]=v.useState(!1),u=v.useCallback(()=>{i.current.hidePreferences()},[i]),d=v.useCallback(g=>{g.key==="Escape"&&i.current.hidePreferences()},[i]),f=v.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[p,m]=v.useState(null);return v.useEffect(()=>{var y,b;const g=(b=(y=i.current.rootElementRef)==null?void 0:y.current)==null?void 0:b.querySelector('[data-id="gridPanelAnchor"]');g&&m(g)},[i]),p?$.jsx(TOt,D({placement:"bottom-start",className:pe(s.panel,r),ownerState:a,anchorEl:p,modifiers:f},o,{ref:t,children:$.jsx(PF,{mouseEvent:"onMouseUp",onClickAway:u,children:$.jsx(OOt,{className:s.paper,ownerState:a,elevation:8,onKeyDown:d,children:l&&n})})})):null}),kOt=["className"],MOt=e=>{const{classes:t}=e;return Te({root:["panelContent"]},Sn,t)},AOt=Qn("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function $Ot(e){const{className:t}=e,n=Ue(e,kOt),r=wt(),o=MOt(r);return $.jsx(AOt,D({className:pe(o.root,t),ownerState:r},n))}const ROt=["className"],DOt=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},Sn,t)},_Ot=Qn("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function LOt(e){const{className:t}=e,n=Ue(e,ROt),r=wt(),o=DOt(r);return $.jsx(_Ot,D({className:pe(o.root,t),ownerState:r},n))}const NOt=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],FOt=["InputComponentProps"],jOt=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Sn,t)},BOt=ie("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),zOt=ie("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),VOt=ie("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),HOt=ie("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),UOt=ie("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),WOt=ie("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),GOt=e=>{switch(e){case _i.And:return"filterPanelOperatorAnd";case _i.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},p0=e=>e.headerName||e.field,Sq=new Intl.Collator,Cq=$n(function(t,n){var xe,me,be,we,Oe,ke,je,de,Re;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:s,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[_i.And,_i.Or],columnsSort:f,filterColumns:p,deleteIconProps:m={},logicOperatorInputProps:g={},operatorInputProps:y={},columnInputProps:b={},valueInputProps:x={},readOnly:S}=t,P=Ue(t,NOt),E=sn(),T=Ye(E,od),O=Ye(E,fle),k=Ye(E,Qo),M=_n(),I=_n(),R=_n(),_=_n(),N=wt(),B=jOt(N),L=v.useRef(null),F=v.useRef(null),U=k.logicOperator??_i.And,V=o&&d.length>0,z=((xe=N.slotProps)==null?void 0:xe.baseFormControl)||{},G=(((me=N.slotProps)==null?void 0:me.baseSelect)||{}).native??!1,J=((be=N.slotProps)==null?void 0:be.baseInputLabel)||{},K=((we=N.slotProps)==null?void 0:we.baseSelectOption)||{},{InputComponentProps:ne}=x,re=Ue(x,FOt),{filteredColumns:oe,selectedField:fe}=v.useMemo(()=>{let Me=r.field;const Ae=T[r.field].filterable===!1?T[r.field]:null;if(Ae)return{filteredColumns:[Ae],selectedField:Me};if(p===void 0||typeof p!="function")return{filteredColumns:O,selectedField:Me};const Ne=p({field:r.field,columns:O,currentFilters:(k==null?void 0:k.items)||[]});return{filteredColumns:O.filter(Je=>{const nt=Ne.includes(Je.field);return Je.field===r.field&&!nt&&(Me=void 0),nt}),selectedField:Me}},[p,k==null?void 0:k.items,O,r.field,T]),se=v.useMemo(()=>{switch(f){case"asc":return oe.sort((Me,Ae)=>Sq.compare(p0(Me),p0(Ae)));case"desc":return oe.sort((Me,Ae)=>-Sq.compare(p0(Me),p0(Ae)));default:return oe}},[oe,f]),ee=r.field?E.current.getColumn(r.field):null,ce=v.useMemo(()=>{var Me;return!r.operator||!ee?null:(Me=ee.filterOperators)==null?void 0:Me.find(Ae=>Ae.value===r.operator)},[r,ee]),le=v.useCallback(Me=>{const Ae=Me.target.value,Ne=E.current.getColumn(Ae);if(Ne.field===ee.field)return;const Je=Ne.filterOperators.find($t=>$t.value===r.operator)||Ne.filterOperators[0];let st=!Je.InputComponent||Je.InputComponent!==(ce==null?void 0:ce.InputComponent)||Ne.type!==ee.type?void 0:r.value;if(Ne.type==="singleSelect"&&st!==void 0){const $t=Ne,ct=Th($t);Array.isArray(st)?st=st.filter(_t=>eO(_t,ct,$t==null?void 0:$t.getOptionValue)!==void 0):eO(r.value,ct,$t==null?void 0:$t.getOptionValue)===void 0&&(st=void 0)}a(D({},r,{field:Ae,operator:Je.value,value:st}))},[E,a,r,ee,ce]),Q=v.useCallback(Me=>{const Ae=Me.target.value,Ne=ee==null?void 0:ee.filterOperators.find(nt=>nt.value===Ae),Je=!(Ne!=null&&Ne.InputComponent)||(Ne==null?void 0:Ne.InputComponent)!==(ce==null?void 0:ce.InputComponent);a(D({},r,{operator:Ae,value:Je?void 0:r.value}))},[a,r,ee,ce]),ue=v.useCallback(Me=>{const Ae=Me.target.value===_i.And.toString()?_i.And:_i.Or;c(Ae)},[c]),ge=()=>{i(r)};return v.useImperativeHandle(u,()=>({focus:()=>{var Me;ce!=null&&ce.InputComponent?(Me=L==null?void 0:L.current)==null||Me.focus():F.current.focus()}}),[ce]),$.jsxs(BOt,D({className:B.root,"data-id":r.id,ownerState:N},P,{ref:n,children:[$.jsx(zOt,D({variant:"standard",as:N.slots.baseFormControl},z,m,{className:pe(B.deleteIcon,z.className,m.className),ownerState:N,children:$.jsx(N.slots.baseIconButton,D({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ge,size:"small",disabled:S},(Oe=N.slotProps)==null?void 0:Oe.baseIconButton,{children:$.jsx(N.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),$.jsx(VOt,D({variant:"standard",as:N.slots.baseFormControl},z,g,{sx:[V?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},z.sx,g.sx],className:pe(B.logicOperatorInput,z.className,g.className),ownerState:N,children:$.jsx(N.slots.baseSelect,D({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:U??"",onChange:ue,disabled:!!l||d.length===1,native:G},(ke=N.slotProps)==null?void 0:ke.baseSelect,{children:d.map(Me=>v.createElement(N.slots.baseSelectOption,D({},K,{native:G,key:Me.toString(),value:Me.toString()}),E.current.getLocaleText(GOt(Me))))}))})),$.jsxs(HOt,D({variant:"standard",as:N.slots.baseFormControl},z,b,{className:pe(B.columnInput,z.className,b.className),ownerState:N,children:[$.jsx(N.slots.baseInputLabel,D({},J,{htmlFor:M,id:I,children:E.current.getLocaleText("filterPanelColumns")})),$.jsx(N.slots.baseSelect,D({labelId:I,id:M,label:E.current.getLocaleText("filterPanelColumns"),value:fe??"",onChange:le,native:G,disabled:S},(je=N.slotProps)==null?void 0:je.baseSelect,{children:se.map(Me=>v.createElement(N.slots.baseSelectOption,D({},K,{native:G,key:Me.field,value:Me.field}),p0(Me)))}))]})),$.jsxs(UOt,D({variant:"standard",as:N.slots.baseFormControl},z,y,{className:pe(B.operatorInput,z.className,y.className),ownerState:N,children:[$.jsx(N.slots.baseInputLabel,D({},J,{htmlFor:R,id:_,children:E.current.getLocaleText("filterPanelOperator")})),$.jsx(N.slots.baseSelect,D({labelId:_,label:E.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:Q,native:G,inputRef:F,disabled:S},(de=N.slotProps)==null?void 0:de.baseSelect,{children:(Re=ee==null?void 0:ee.filterOperators)==null?void 0:Re.map(Me=>v.createElement(N.slots.baseSelectOption,D({},K,{native:G,key:Me.value,value:Me.value}),Me.label||E.current.getLocaleText(`filterOperator${Se(Me.value)}`)))}))]})),$.jsx(WOt,D({variant:"standard",as:N.slots.baseFormControl},z,re,{className:pe(B.valueInput,z.className,re.className),ownerState:N,children:ce!=null&&ce.InputComponent?$.jsx(ce.InputComponent,D({apiRef:E,item:r,applyValue:a,focusElementRef:L,disabled:S},ce.InputComponentProps,ne),r.field):null}))]}))}),qOt=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],Pq=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),KOt=$n(function(t,n){var _,N;const r=sn(),o=wt(),i=Ye(r,Qo),a=Ye(r,fle),s=Ye(r,KSt),l=v.useRef(null),c=v.useRef(null),{logicOperators:u=[_i.And,_i.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:p,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=t,y=Ue(t,qOt),b=r.current.upsertFilterItem,x=v.useCallback(B=>{r.current.setFilterLogicOperator(B)},[r]),S=v.useCallback(()=>{let B;if(p&&typeof p=="function"){const L=p({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;B=a.find(({field:F})=>F===L)}else B=a.find(L=>{var F;return(F=L.filterOperators)==null?void 0:F.length});return B?Pq(B):null},[i==null?void 0:i.items,a,p]),P=v.useCallback(()=>{if(p===void 0||typeof p!="function")return S();const B=i.items.length?i.items:[S()].filter(Boolean),L=p({currentFilters:B,columns:a});if(L===null)return null;const F=a.find(({field:U})=>U===L);return F?Pq(F):null},[i.items,a,p,S]),E=v.useMemo(()=>i.items.length?i.items:(c.current||(c.current=S()),c.current?[c.current]:[]),[i.items,S]),T=E.length>1,{readOnlyFilters:O,validFilters:k}=v.useMemo(()=>E.reduce((B,L)=>(s[L.field]?B.validFilters.push(L):B.readOnlyFilters.push(L),B),{readOnlyFilters:[],validFilters:[]}),[E,s]),M=v.useCallback(()=>{const B=P();B&&r.current.upsertFilterItems([...E,B])},[r,P,E]),I=v.useCallback(B=>{const L=k.length===1;r.current.deleteFilterItem(B),L&&r.current.hideFilterPanel()},[r,k.length]),R=v.useCallback(()=>k.length===1&&k[0].value===void 0?(r.current.deleteFilterItem(k[0]),r.current.hideFilterPanel()):r.current.setFilterModel(D({},i,{items:O}),"removeAllFilterItems"),[r,O,i,k]);return v.useEffect(()=>{u.length>0&&i.logicOperator&&!u.includes(i.logicOperator)&&x(u[0])},[u,x,i.logicOperator]),v.useEffect(()=>{k.length>0&&l.current.focus()},[k.length]),$.jsxs(gce,D({},y,{ref:n,children:[$.jsxs($Ot,{children:[O.map((B,L)=>$.jsx(Cq,D({item:B,applyFilterChanges:b,deleteFilter:I,hasMultipleFilters:T,showMultiFilterOperators:L>0,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:x,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),B.id==null?L:B.id)),k.map((B,L)=>$.jsx(Cq,D({item:B,applyFilterChanges:b,deleteFilter:I,hasMultipleFilters:T,showMultiFilterOperators:O.length+L>0,disableMultiFilterOperator:O.length+L!==1,applyMultiFilterOperatorChanges:x,focusElementRef:L===k.length-1?l:null,logicOperators:u,columnsSort:d},f),B.id==null?L+O.length:B.id))]}),!o.disableMultipleColumnsFiltering&&!(m&&g)?$.jsxs(LOt,{children:[m?$.jsx("span",{}):$.jsx(o.slots.baseButton,D({onClick:M,startIcon:$.jsx(o.slots.filterPanelAddIcon,{})},(_=o.slotProps)==null?void 0:_.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!g&&k.length>0?$.jsx(o.slots.baseButton,D({onClick:R,startIcon:$.jsx(o.slots.filterPanelRemoveAllIcon,{})},(N=o.slotProps)==null?void 0:N.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),YOt=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},XOt=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,QOt=e=>{const{classes:t}=e;return Te({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Sn,t)},Eq=new Intl.Collator;function JOt(e){var L,F,U,V;const t=sn(),n=v.useRef(null),r=Ye(t,Ul),o=Jl(()=>Vs(t)).current,i=Ye(t,Vs),a=wt(),[s,l]=v.useState(""),c=QOt(a),{sort:u,searchPredicate:d=XOt,autoFocusSearchField:f=!0,disableShowHideToggle:p=!1,disableResetButton:m=!1,toggleAllMode:g="all",getTogglableColumns:y,searchInputProps:b}=e,x=v.useMemo(()=>YOt(i,o),[i,o]),S=v.useMemo(()=>{switch(u){case"asc":return[...r].sort((z,W)=>Eq.compare(z.headerName||z.field,W.headerName||W.field));case"desc":return[...r].sort((z,W)=>-Eq.compare(z.headerName||z.field,W.headerName||W.field));default:return r}},[r,u]),P=z=>{const{name:W}=z.target;t.current.setColumnVisibility(W,i[W]===!1)},E=v.useMemo(()=>{const z=y?y(S):null,W=z?S.filter(({field:G})=>z.includes(G)):S;return s?W.filter(G=>d(G,s.toLowerCase())):W},[S,s,d,y]),T=v.useCallback(z=>{const W=Vs(t),G=D({},W),J=y?y(r):null;return(g==="filteredOnly"?E:r).forEach(K=>{K.hideable&&(J==null||J.includes(K.field))&&(z?delete G[K.field]:G[K.field]=!1)}),t.current.setColumnVisibilityModel(G)},[t,r,y,g,E]),O=v.useCallback(z=>{l(z.target.value)},[]),k=v.useMemo(()=>E.filter(z=>z.hideable),[E]),M=v.useMemo(()=>k.every(z=>i[z.field]==null||i[z.field]!==!1),[i,k]),I=v.useMemo(()=>k.every(z=>i[z.field]===!1),[i,k]),R=v.useRef(null);v.useEffect(()=>{f?n.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[f]);let _=!1;const N=z=>_===!1&&z.hideable!==!1?(_=!0,!0):!1,B=v.useCallback(()=>{l(""),n.current.focus()},[]);return $.jsxs(v.Fragment,{children:[$.jsx(eIt,{className:c.header,ownerState:a,children:$.jsx(tIt,D({as:a.slots.baseTextField,ownerState:a,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:c.searchInput,value:s,onChange:O,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:$.jsx(a.slots.baseInputAdornment,{position:"start",children:$.jsx(a.slots.quickFilterIcon,{})}),endAdornment:$.jsx(a.slots.baseIconButton,D({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[s?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:B},(L=a.slotProps)==null?void 0:L.baseIconButton,{children:$.jsx(a.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(F=a.slotProps)==null?void 0:F.baseTextField,b))}),$.jsxs(ZOt,{className:c.root,ownerState:a,children:[E.map(z=>{var W;return $.jsx(mh,{className:c.row,control:$.jsx(a.slots.baseCheckbox,D({disabled:z.hideable===!1,checked:i[z.field]!==!1,onClick:P,name:z.field,sx:{p:.5},inputRef:N(z)?R:void 0},(W=a.slotProps)==null?void 0:W.baseCheckbox)),label:z.headerName||z.field},z.field)}),E.length===0&&$.jsx(rIt,{ownerState:a,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!p||!m)&&E.length>0?$.jsxs(nIt,{ownerState:a,className:c.footer,children:[p?$.jsx("span",{}):$.jsx(mh,{control:$.jsx(a.slots.baseCheckbox,D({disabled:k.length===0,checked:M,indeterminate:!M&&!I,onClick:()=>T(!M),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(U=a.slotProps)==null?void 0:U.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:$.jsx(a.slots.baseButton,D({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:x},(V=a.slotProps)==null?void 0:V.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const ZOt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),eIt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),tIt=ie(gn,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${zo.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${zo.input}::-webkit-search-decoration,
- & .${zo.input}::-webkit-search-cancel-button,
- & .${zo.input}::-webkit-search-results-button,
- & .${zo.input}::-webkit-search-results-decoration`]:{display:"none"}})),nIt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),rIt=ie("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),oIt=$n(function(t,n){var x,S;const{children:r,slotProps:o={}}=t,i=o.button||{},a=o.tooltip||{},s=sn(),l=wt(),c=_n(),u=_n(),[d,f]=v.useState(!1),p=v.useRef(null),m=Wt(n,p),g=P=>{var E;f(T=>!T),(E=i.onClick)==null||E.call(i,P)},y=()=>f(!1),b=P=>{P.key==="Tab"&&P.preventDefault(),hce(P.key)&&y()};return r==null?null:$.jsxs(v.Fragment,{children:[$.jsx(l.slots.baseTooltip,D({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(x=l.slotProps)==null?void 0:x.baseTooltip,a,{children:$.jsx(l.slots.baseButton,D({size:"small",startIcon:$.jsx(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c,onClick:g},(S=l.slotProps)==null?void 0:S.baseButton,i,{ref:m,children:s.current.getLocaleText("toolbarExport")}))})),$.jsx(hz,{open:d,target:p.current,onClose:y,position:"bottom-start",children:$.jsx(Ev,{id:u,className:ae.menuList,"aria-labelledby":c,onKeyDown:b,autoFocusItem:d,children:v.Children.map(r,P=>v.isValidElement(P)?v.cloneElement(P,{hideMenu:y}):P)})})]})}),iIt=["hideMenu","options"],aIt=["hideMenu","options"],sIt=["csvOptions","printOptions","excelOptions"];function lIt(e){const t=sn(),{hideMenu:n,options:r}=e,o=Ue(e,iIt);return $.jsx(tn,D({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function cIt(e){const t=sn(),{hideMenu:n,options:r}=e,o=Ue(e,aIt);return $.jsx(tn,D({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}$n(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,s=Ue(r,sIt),c=sn().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort((u,d)=>u.componentName>d.componentName?1:-1);return c.length===0?null:$.jsx(oIt,D({},s,{ref:n,children:c.map((u,d)=>v.cloneElement(u.component,{key:d}))}))});const uIt=["className","selectedRowCount"],dIt=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},Sn,t)},fIt=Qn("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),pIt=$n(function(t,n){const{className:r,selectedRowCount:o}=t,i=Ue(t,uIt),a=sn(),s=wt(),l=dIt(s),c=a.current.getLocaleText("footerRowSelected")(o);return $.jsx(fIt,D({className:pe(l.root,r),ownerState:s},i,{ref:n,children:c}))}),hIt=$n(function(t,n){var d,f;const r=sn(),o=wt(),i=Ye(r,$1t),a=Ye(r,aCt),s=Ye(r,vz),l=!o.hideFooterSelectedRowCount&&a>0?$.jsx(pIt,{selectedRowCount:a}):$.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?$.jsx(o.slots.footerRowCount,D({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:i,visibleRowCount:s})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&$.jsx(o.slots.pagination,D({},(f=o.slotProps)==null?void 0:f.pagination));return $.jsxs(KEt,D({},t,{ref:n,children:[l,c,u]}))});function mIt(){var i,a;const e=sn(),t=Ye(e,Ul),n=wt(),r=Ye(e,Bx),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Oh.filters);return $.jsx(n.slots.panel,D({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(i=n.slotProps)==null?void 0:i.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function gIt(){var t;const e=wt();return $.jsxs(v.Fragment,{children:[$.jsx(mIt,{}),e.slots.toolbar&&$.jsx(e.slots.toolbar,D({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const Iz=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let a;switch(e){case ur.LEFT:a=r[n];break;case ur.RIGHT:a=o.columnsTotalWidth-r[n]-t+i;break;default:a=0;break}return a},h0={root:ae.scrollbarFiller,header:ae["scrollbarFiller--header"],borderTop:ae["scrollbarFiller--borderTop"],borderBottom:ae["scrollbarFiller--borderBottom"],pinnedRight:ae["scrollbarFiller--pinnedRight"]};function kz({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return $.jsx("div",{role:"presentation",className:pe(h0.root,e&&h0.header,t&&h0.borderTop,n&&h0.borderBottom,r&&h0.pinnedRight)})}const yIt=Qn("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),vIt=e=>{const{classes:t}=e;return Te({root:["skeletonLoadingOverlay"]},Sn,t)},Tq=e=>parseInt(e.getAttribute("data-colindex"),10),bIt=$n(function(t,n){const r=wt(),{slots:o}=r,i=vIt({classes:r.classes}),a=v.useRef(null),s=Wt(a,n),l=sn(),c=Ye(l,Ci),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=Ye(l,uz),p=Ye(l,Gf),m=v.useMemo(()=>p.filter(T=>T<=f).length,[f,p]),g=Ye(l,ho),y=v.useMemo(()=>g.slice(0,m),[g,m]),b=Ye(l,e1),x=v.useCallback((T,O,k)=>{const M=Iz(k,T,O,p,c);return{[k]:M}},[c,p]),S=v.useCallback(T=>{if(b.left.findIndex(O=>O.field===T)!==-1)return ur.LEFT;if(b.right.findIndex(O=>O.field===T)!==-1)return ur.RIGHT},[b.left,b.right]),P=v.useMemo(()=>{const T=[];for(let O=0;O<d;O+=1){const k=[];for(let M=0;M<y.length;M+=1){const I=y[M],R=S(I.field),_=R===ur.LEFT,N=R===ur.RIGHT,B=R?b[R].length:y.length-b.left.length-b.right.length,L=R?b[R].findIndex(ee=>ee.field===I.field):M-b.left.length,F=R&&x(I.computedWidth,M,R),U=c.columnsTotalWidth<c.viewportOuterSize.width,V=eM(R,L,B,r.showCellVerticalBorder,U),z=tM(R,L),W=M===y.length-1,G=N&&L===0,J=G&&U,K=W&&!G&&U,ne=c.viewportOuterSize.width-c.columnsTotalWidth,re=Math.max(0,ne),oe=$.jsx(o.skeletonCell,{width:re,empty:!0},`skeleton-filler-column-${O}`),fe=c.hasScrollY?c.scrollbarSize:0,se=W&&fe!==0;J&&k.push(oe),k.push($.jsx(o.skeletonCell,{field:I.field,type:I.type,align:I.align,width:"var(--width)",height:c.rowHeight,"data-colindex":M,className:pe(_&&ae["cell--pinnedLeft"],N&&ae["cell--pinnedRight"],V&&ae["cell--withRightBorder"],z&&ae["cell--withLeftBorder"]),style:D({"--width":`${I.computedWidth}px`},F)},`skeleton-column-${O}-${I.field}`)),K&&k.push(oe),se&&k.push($.jsx(kz,{pinnedRight:b.right.length>0},`skeleton-scrollbar-filler-${O}`))}T.push($.jsx("div",{className:pe(ae.row,ae.rowSkeleton,O===0&&ae["row--firstVisible"]),children:k},`skeleton-row-${O}`))}return T},[o,y,b,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,S,x]);return gt(l,"columnResize",T=>{var F,U,V;const{colDef:O,width:k}=T,M=(F=a.current)==null?void 0:F.querySelectorAll(`[data-field="${id(O.field)}"]`);if(!M)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const I=y.findIndex(z=>z.field===O.field),R=S(O.field),_=R===ur.LEFT,N=R===ur.RIGHT,B=getComputedStyle(M[0]).getPropertyValue("--width"),L=parseInt(B,10)-k;if(M&&M.forEach(z=>{z.style.setProperty("--width",`${k}px`)}),_){const z=(U=a.current)==null?void 0:U.querySelectorAll(`.${ae["cell--pinnedLeft"]}`);z==null||z.forEach(W=>{Tq(W)>I&&(W.style.left=`${parseInt(getComputedStyle(W).left,10)-L}px`)})}if(N){const z=(V=a.current)==null?void 0:V.querySelectorAll(`.${ae["cell--pinnedRight"]}`);z==null||z.forEach(W=>{Tq(W)<I&&(W.style.right=`${parseInt(getComputedStyle(W).right,10)+L}px`)})}}),$.jsx(yIt,D({className:i.root},t,{ref:s,children:P}))}),wIt=["variant","noRowsVariant","style"],xIt={"circular-progress":{component:PJ,style:{}},"linear-progress":{component:DJ,style:{display:"block"}},skeleton:{component:bIt,style:{display:"block"}}},SIt=$n(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:i}=t,a=Ue(t,wIt),s=sn(),l=Ye(s,Hk),c=xIt[l===0?o:r];return $.jsx(Tz,D({style:D({},c.style,i)},a,{ref:n,children:$.jsx(c.component,{})}))}),CIt=$n(function(t,n){const o=sn().current.getLocaleText("noRowsLabel");return $.jsx(Tz,D({},t,{ref:n,children:o}))}),PIt=ie(RF)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Xp.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Xp.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),EIt=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),TIt=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,OIt=$n(function(t,n){const r=sn(),o=wt(),i=Ye(r,Di),a=Ye(r,kg),s=Ye(r,Ble),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=v.useMemo(()=>a===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,a]),f=v.useMemo(()=>Math.max(0,s-1),[s]),p=v.useMemo(()=>a===-1||i.page<=f?i.page:f,[f,i.page,a]),m=v.useCallback(P=>{const E=Number(P.target.value);r.current.setPageSize(E)},[r]),g=v.useCallback((P,E)=>{r.current.setPage(E)},[r]),b=(P=>{for(let E=0;E<o.pageSizeOptions.length;E+=1){const T=o.pageSizeOptions[E];if(typeof T=="number"){if(T===P)return!0}else if(T.value===P)return!0}return!1})(i.pageSize)?o.pageSizeOptions:[],x=r.current.getLocaleText("MuiTablePagination"),S=EIt(x.labelDisplayedRows||TIt,u);return $.jsx(PIt,D({component:"div",count:a,page:p,rowsPerPageOptions:b,rowsPerPage:i.pageSize,onPageChange:g,onRowsPerPageChange:m},d,x,{labelDisplayedRows:S},t,{ref:n}))}),IIt=["className","rowCount","visibleRowCount"],kIt=e=>{const{classes:t}=e;return Te({root:["rowCount"]},Sn,t)},MIt=Qn("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),AIt=$n(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=Ue(t,IIt),s=sn(),l=wt(),c=kIt(l);if(o===0)return null;const u=i<o?s.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return $.jsxs(MIt,D({className:pe(c.root,r),ownerState:l},a,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",u]}))});function $It(e,t){return Te(t,Sn,e)}const RIt=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function DIt({width:e}){return e?$.jsx("div",{role:"presentation",className:pe(ae.cell,ae.cellEmpty),style:{"--width":`${e}px`}}):null}const _It=$n(function(t,n){var _t;const{selected:r,rowId:o,row:i,index:a,style:s,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:d,offsetLeft:f,dimensions:p,renderContext:m,focusedColumnIndex:g,isFirstVisible:y,isLastVisible:b,isNotVisible:x,showBottomBorder:S,onClick:P,onDoubleClick:E,onMouseEnter:T,onMouseLeave:O,onMouseOut:k,onMouseOver:M}=t,I=Ue(t,RIt),R=pl(),_=rce(),N=v.useRef(null),B=wt(),L=tm(R,B),F=Ye(R,ks),U=Ye(R,cb),V=Ye(R,Gf),z=Ye(R,jo),W=Wt(N,n),G=R.current.getRowNode(o),J=p.hasScrollY?p.scrollbarSize:0,K=p.columnsTotalWidth<p.viewportOuterSize.width,ne=R.current.getRowMode(o)===Vn.Edit,re=B.editMode===Fc.Row,oe=Ye(R,Jk),fe=g!==void 0,se=fe&&g>=d.left.length&&g<m.firstColumnIndex,ee=fe&&g<u.length-d.right.length&&g>=m.lastColumnIndex,ce=$It(B.classes,{root:["row",r&&"selected",re&&"row--editable",ne&&"row--editing",y&&"row--firstVisible",b&&"row--lastVisible",S&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),le=_.hooks.useGridRowAriaAttributes();v.useLayoutEffect(()=>{if(L.range){const pt=R.current.getRowIndexRelativeToVisibleRows(o);pt!==void 0&&R.current.unstable_setLastMeasuredRowIndex(pt)}if(N.current&&l==="auto")return R.current.observeRowHeight(N.current,o)},[R,L.range,l,o]);const Q=v.useCallback((pt,ot)=>Pe=>{r1(Pe)||R.current.getRow(o)&&(R.current.publishEvent(pt,R.current.getRowParams(o),Pe),ot&&ot(Pe))},[R,o]),ue=v.useCallback(pt=>{const ot=tO(pt.target,ae.cell),Pe=ot==null?void 0:ot.getAttribute("data-field");if(Pe){if(Pe===fb.field||Pe===Wk||Pe==="__reorder__"||R.current.getCellMode(o,Pe)===Zn.Edit)return;const We=R.current.getColumn(Pe);if((We==null?void 0:We.type)===Vk)return}Q("rowClick",P)(pt)},[R,P,Q,o]),{slots:ge,slotProps:xe,disableColumnReorder:me}=B,be=B.rowReordering,we=Ye(R,()=>D({},R.current.getRowHeightEntry(o)),lle),Oe=v.useMemo(()=>{if(x)return{opacity:0,width:0,height:0};const pt=D({},s,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(we.spacingTop){const ot=B.rowSpacingType==="border"?"borderTopWidth":"marginTop";pt[ot]=we.spacingTop}if(we.spacingBottom){const ot=B.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Pe=pt[ot];typeof Pe!="number"&&(Pe=parseInt(Pe||"0",10)),Pe+=we.spacingBottom,pt[ot]=Pe}return pt},[x,l,s,we,B.rowSpacingType]),ke=R.current.unstable_applyPipeProcessors("rowClassName",[],o),je=G?le(G,a):void 0;if(typeof B.getRowClassName=="function"){const pt=a-(((_t=L.range)==null?void 0:_t.firstRowIndex)||0),ot=D({},R.current.getRowParams(o),{isFirstVisible:pt===0,isLastVisible:pt===L.rows.length-1,indexRelativeToCurrentPage:pt});ke.push(B.getRowClassName(ot))}const de=(pt,ot,Pe,We,ft=aa.NONE)=>{var ss;const Ot=R.current.unstable_getCellColSpanInfo(o,Pe);if(Ot!=null&&Ot.spannedByColSpan)return null;const xt=(Ot==null?void 0:Ot.cellProps.width)??pt.computedWidth,vn=(Ot==null?void 0:Ot.cellProps.colSpan)??1,zn=Iz(ace[ft],pt.computedWidth,Pe,V,p);if((G==null?void 0:G.type)==="skeletonRow")return $.jsx(ge.skeletonCell,{type:pt.type,width:xt,height:l,field:pt.field,align:pt.align},pt.field);const Wn=((ss=z[o])==null?void 0:ss[pt.field])??null,xo=pt.field==="__reorder__",So=Object.keys(z).length>0,ai=!(me||pt.disableReorder),Sa=be&&!F.length&&U<=1&&!So,Nt=!(ai||xo&&Sa),Co=ft===aa.VIRTUAL;return $.jsx(ge.cell,D({column:pt,width:xt,rowId:o,align:pt.align||"left",colIndex:Pe,colSpan:vn,disableDragEvents:Nt,editCellState:Wn,isNotVisible:Co,pinnedOffset:zn,pinnedPosition:ft,sectionIndex:ot,sectionLength:We,gridHasFiller:K},xe==null?void 0:xe.cell),pt.field)};if(!G)return null;const Re=d.left.map((pt,ot)=>de(pt,ot,ot,d.left.length,aa.LEFT)),Me=d.right.map((pt,ot)=>{const Pe=u.length-d.right.length+ot;return de(pt,ot,Pe,d.right.length,aa.RIGHT)}),Ae=u.length-d.left.length-d.right.length,Ne=[];se&&Ne.push(de(u[g],g-d.left.length,g,Ae,aa.VIRTUAL));let Je,nt;!B.disableVirtualization&&!oe?(Je=0,nt=u.length):(Je=m.firstColumnIndex,nt=m.lastColumnIndex);for(let pt=Je;pt<nt;pt+=1){const ot=u[pt],Pe=pt-d.left.length;ot&&Ne.push(de(ot,Pe,pt,Ae))}ee&&Ne.push(de(u[g],g-d.left.length,g,Ae,aa.VIRTUAL));const st=i?{onClick:ue,onDoubleClick:Q("rowDoubleClick",E),onMouseEnter:Q("rowMouseEnter",T),onMouseLeave:Q("rowMouseLeave",O),onMouseOut:Q("rowMouseOut",k),onMouseOver:Q("rowMouseOver",M)}:null,$t=p.viewportOuterSize.width-p.columnsTotalWidth-J,ct=Math.max(0,$t);return $.jsxs("div",D({"data-id":o,"data-rowindex":a,role:"row",className:pe(...ke,ce.root,c),style:Oe},je,st,I,{ref:W,children:[Re,$.jsx("div",{role:"presentation",className:ae.cellOffsetLeft,style:{width:f}}),Ne,ct>0&&$.jsx(DIt,{width:ct}),Me.length>0&&$.jsx("div",{role:"presentation",className:ae.filler}),Me,J!==0&&$.jsx(kz,{pinnedRight:d.right.length>0})]}))}),LIt=Wf(_It),NIt=()=>{const e=pl(),t=wt(),n=Ye(e,ho),r=Ye(e,yz),o=Ye(e,n1),i=Ye(e,Cle);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":bz(t)}},FIt=()=>{const e=pl(),t=Ye(e,ku),n=Ye(e,n1);return v.useCallback((r,o)=>{const i={},a=o+n+2;return i["aria-rowindex"]=a,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function jIt({privateApiRef:e,configuration:t,props:n,children:r}){const o=v.useRef(e.current.getPublicApi());return $.jsx(nce.Provider,{value:t,children:$.jsx(ale.Provider,{value:n,children:$.jsx(Qle.Provider,{value:e,children:$.jsx(ile.Provider,{value:o,children:r})})})})}const BIt=e=>{const t=v.useRef(null),n=v.useRef(null),r=v.useRef(null),o=v.useRef(null),i=v.useRef(null),a=v.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},zIt=e=>{const t=nr();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=v.useRef(!0);v.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>D({},r,{isRtl:t}))},[e,t])},VIt=c1t()&&window.localStorage.getItem("DEBUG")!=null,N0=()=>{},HIt={debug:N0,info:N0,warn:N0,error:N0},Oq=["debug","info","warn","error"];function Iq(e,t,n=console){const r=Oq.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Oq.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[c,...u]=l;n[a](`MUI X: ${e} - ${c}`,...u)}:i[a]=N0,i),{})}const UIt=(e,t)=>{const n=v.useCallback(r=>VIt?Iq(r,"debug",t.logger):t.logLevel?Iq(r,t.logLevel.toString(),t.logger):HIt,[t.logLevel,t.logger]);Qt(e,{getLogger:n},"private")};class WIt{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<i.length;a+=1){const s=i[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class Mz{static create(t){return new Mz(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const yce=Symbol("mui.api_private"),GIt=e=>e.isPropagationStopped!==void 0;let kq=0;function qIt(e){var o;const t=(o=e.current)==null?void 0:o[yce];if(t)return t;const n={},r={state:n,store:Mz.create(n),instanceId:{id:kq}};return kq+=1,r.getPublicApi=()=>e.current,r.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],c=r[s];if((c==null?void 0:c.spying)===!0?c.target=l:r[s]=l,i==="public"){const u=e.current,d=u[s];(d==null?void 0:d.spying)===!0?d.target=l:u[s]=l}})},r.register("private",{caches:{},eventManager:new WIt}),r}function KIt(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[yce]:e.current}}function YIt(e,t){var a;const n=v.useRef(),r=v.useRef();r.current||(r.current=qIt(n)),n.current||(n.current=KIt(r));const o=v.useCallback((...s)=>{const[l,c,u={}]=s;if(u.defaultMuiPrevented=!1,GIt(u)&&u.isPropagationStopped())return;const d=t.signature===Xs.DataGridPro||t.signature===Xs.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=v.useCallback((s,l,c)=>{r.current.eventManager.on(s,l,c);const u=r.current;return()=>{u.eventManager.removeListener(s,l)}},[r]);return Qt(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((a=e.current)!=null&&a.state)&&(e.current=n.current),v.useImperativeHandle(e,()=>n.current,[n]),v.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const XIt=(e,t)=>{const n=v.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},QIt=e=>{const t=v.useRef({}),n=v.useRef(!1),r=v.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=v.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const p=t.current[u];return p.processors.get(d)!==f&&(p.processors.set(d,f),p.processorsAsArray=Array.from(t.current[u].processors.values()),r(p)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),i=v.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const p=t.current[u].appliers,m=Ue(p,[d].map(sv));t.current[u].appliers=m}),[]),a=v.useCallback(u=>{r(t.current[u])},[r]),s=v.useCallback((...u)=>{const[d,f,p]=u;if(!t.current[d])return f;const m=t.current[d].processorsAsArray;let g=f;for(let y=0;y<m.length;y+=1)g=m[y](g,p);return g},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},c={unstable_applyPipeProcessors:s};Qt(e,l,"private"),Qt(e,c,"public")},Ar=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);t1(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Az=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);t1(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},rO=(e,t,n,r)=>{const o=v.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);t1(()=>{o()});const i=v.useRef(!0);v.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ih="none",Mq={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},JIt=e=>{const t=v.useRef(new Map),n=v.useRef({}),r=v.useCallback((l,c,u)=>{const d=()=>{const m=n.current[c],g=Ue(m,[l].map(sv));n.current[c]=g};n.current[c]||(n.current[c]={});const f=n.current[c],p=f[l];return f[l]=u,!p||p===u||l===e.current.getActiveStrategy(Mq[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=v.useCallback((l,c)=>{const u=e.current.getActiveStrategy(Mq[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const f=d[u];return f(c)},[e]),i=v.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??Ih},[]),a=v.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Qt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},ZIt=e=>{const t=v.useRef({}),[,n]=v.useState(),r=v.useCallback(c=>{t.current[c.stateId]=c},[]),o=v.useCallback((c,u)=>{let d;if(gle(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const p=[];if(Object.keys(t.current).forEach(m=>{const g=t.current[m],y=g.stateSelector(e.current.state,e.current.instanceId),b=g.stateSelector(d,e.current.instanceId);b!==y&&(p.push({stateId:g.stateId,hasPropChanged:b!==g.propModel}),g.propModel!==void 0&&b!==g.propModel&&(f=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(m=>m.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),p.length===1){const{stateId:m,hasPropChanged:g}=p[0],y=t.current[m],b=y.stateSelector(d,e.current.instanceId);y.propOnChange&&g&&y.propOnChange(b,{reason:u,api:e.current}),f||e.current.publishEvent(y.changeEvent,b,{reason:u})}return!f},[e]),i=v.useCallback((c,u,d)=>e.current.setState(f=>D({},f,{[c]:u(f[c])}),d),[e]),a=v.useCallback(()=>n(()=>e.current.state),[e]),s={setState:o,forceUpdate:a},l={updateControlState:i,registerControlState:r};Qt(e,s,"public"),Qt(e,l,"private")},ekt=(e,t)=>{const n=YIt(e,t);return BIt(n),zIt(n),UIt(n,t),ZIt(n),QIt(n),JIt(n),XIt(n,t),n.current.register("private",{rootProps:t}),n},Lo=(e,t,n)=>{const r=v.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function _L(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
-`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const vce=(e,t)=>{var i,a;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const s=e.colDef.type;s==="number"?o=String(e.value):s==="date"||s==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((a=e.value)==null?void 0:a.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return _L(o,n)};class LL{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const tkt=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new LL({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(vce(s,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function nkt(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((d,f)=>`${d}${tkt({id:f,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
-`,"").trim();if(!r.includeHeaders)return a;const s=t.filter(d=>d.field!==fb.field),l=[];if(r.includeColumnGroupsHeaders){const d=i.current.getAllGroupDetails();let f=0;const p=s.reduce((m,g)=>{const y=i.current.getColumnGroupPath(g.field);return m[g.field]=y,f=Math.max(f,y.length),m},{});for(let m=0;m<f;m+=1){const g=new LL({csvOptions:r,sanitizeCellValue:_L});l.push(g),s.forEach(y=>{const b=(p[y.field]||[])[m],x=d[b];g.addValue(x?x.headerName||x.groupId:"")})}}const c=new LL({csvOptions:r,sanitizeCellValue:_L});return s.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r
+ & .${ae["row--borderBottom"]} .${ae.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ae["row--borderBottom"]} .${ae.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${ae.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${ae["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ae.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":T},[`& .${ae["container--top"]}, & .${ae["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${ae.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":T},[`& .${ae["virtualScrollerContent--overflowed"]} .${ae["row--lastVisible"]} .${ae.cell}`]:{borderTopColor:"transparent"},[`& .${ae["pinnedRows--top"]} :first-of-type`]:{[`& .${ae.cell}, .${ae.scrollbarFiller}`]:{borderTop:"none"}},[`&.${ae["root--disableUserSelection"]} .${ae.cell}`]:{userSelect:"none"},[`& .${ae["row--dynamicHeight"]} > .${ae.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${ae.cellEmpty}`]:{padding:0,height:"unset"},[`& .${ae.cell}.${ae["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ae.cell}.${ae["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${cg}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:cg*-1}},[`& .${ae["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ae["row--editing"]} .${ae.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ae.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ae.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ae.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ae.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ae.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ae["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ae.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${ae.withBorderColor}`]:{borderColor:r},[`& .${ae["cell--withLeftBorder"]}, & .${ae["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${ae["cell--withRightBorder"]}, & .${ae["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ae["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${ae["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${ae["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${ae["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${ae["cell--pinnedLeft"]}, & .${ae["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:x}},[`& .${ae.virtualScrollerContent} .${ae.row}`]:{"&:hover":b,"&.Mui-selected":S,"&.Mui-selected:hover":E},[`& .${ae.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${ae.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${ae.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ae.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ae["columnHeader--dragging"]}, & .${ae["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ae["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ae.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ae.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ae.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ae.treeDataGroupingCellLoadingContainer}, .${ae.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${ae.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ae.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${ae.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${ae["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ae["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ae["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${ae.filler}`]:{flex:"1 0 auto"},[`& .${ae["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ae["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${ae.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${ae["scrollbar--vertical"]}, & .${ae.pinnedRows}, & .${ae.virtualScroller} > .${ae.filler}`]:{display:"none"}}})});function wIt(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Hc(e),a=Hc(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return PS({type:"rgb",values:s})}const xIt=e=>`rgb(from ${e} r g b / 1)`;function SIt(e,t,n){return`color-mix(in srgb,${e}, ${xIt(t)} calc(${n} * 100%))`}const CIt=["className"],PIt=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${op(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return bt(i,wn,r)},EIt=kn(function(t,n){const r=xt(),{className:o}=t,i=ze(t,CIt),a=Cl(),s=Ge(a,Gg),l=a.current.rootElementRef,c=Gr(l,n),u=r,d=PIt(u,s),[f,p]=v.useState(!1);return mr(()=>{p(!0)},[]),f?$.jsx(bIt,D({className:pe(d.root,o),ownerState:u},i,{ref:c})):null}),TIt=["className"],OIt=e=>{const{classes:t}=e;return bt({root:["footerContainer","withBorderColor"]},wn,t)},IIt=ur("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),kIt=kn(function(t,n){const{className:r}=t,o=ze(t,TIt),i=xt(),a=OIt(i);return $.jsx(IIt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),MIt=["className"],AIt=e=>{const{classes:t}=e;return bt({root:["overlay"]},wn,t)},$It=ur("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),hV=kn(function(t,n){const{className:r}=t,o=ze(t,MIt),i=xt(),a=AIt(i);return $.jsx($It,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),RIt=e=>{const{classes:t,open:n}=e;return bt({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},wn,t)},DIt=v.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=sn(),s=xt(),l=D({},e,{classes:s.classes}),c=RIt(l),u=v.useCallback(p=>{p.preventDefault(),p.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]);return $.jsx("div",{className:c.root,children:$.jsx(s.slots.baseTooltip,D({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=s.slotProps)==null?void 0:d.baseTooltip,{children:$.jsx(s.slots.baseIconButton,D({ref:i,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=s.slotProps)==null?void 0:f.baseIconButton,{children:$.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function _It({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=sn(),c=l.current.getColumn(o),u=ot(d=>{d&&(d.stopPropagation(),a!=null&&a.contains(d.target))||l.current.hideColumnMenu()});return!a||!c?null:$.jsx(nV,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:i,target:a,onClose:u,onExited:s,children:$.jsx(n,D({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))})}function LIt(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function MO(e,t){return e.closest(`.${t}`)}function bd(e){return e.replace(/["\\]/g,"\\$&")}function NIt(e,t){return e.querySelector(`[role="columnheader"][data-field="${bd(t)}"]`)}function mue(e){return`.${ae.row}[data-id="${bd(String(e))}"]`}function FIt(e,t){return e.querySelector(mue(t))}function jIt(e,{id:t,field:n}){const r=mue(t),o=`.${ae.cell}[data-field="${bd(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function O1(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function BIt(e){return e.getAttribute("data-field")}function zIt(e,t){return e.querySelector(`[data-field="${bd(t)}"]`)}function VIt(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function HIt(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${bd(t)}-|"]`)??[])}function UIt(e,t){var a;if(!MO(e,ae.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(a=t.virtualScrollerRef)!=null&&a.current?(vue(t).forEach(s=>{const l=s.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=s.querySelector(`[data-colindex="${c}"]`);d&&i.push(d)}),i):[]}function dK(e,t){return e.rootElementRef.current.querySelector(`.${ae[t]}`)}const gue=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return vue(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${ae[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const l=Fb(s);l!==null&&r(l)&&o.push(s)})}),o};function WIt(e,t,n){const r=Fb(t);return gue({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function GIt(e,t,n){const r=Fb(t);return gue({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const yue=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${ae[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(a=>{const s=Fb(a);s!==null&&r(s)&&o.push(a)}),o};function qIt(e,t,n){const r=Fb(t);return yue({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function KIt(e,t,n){const r=Fb(t);return yue({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o<r})}function YIt(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${bd(t)}"][role="columnheader"]`)}function XIt(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${bd(t)}"][role="gridcell"]`))}function vue(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${ae.row}`)}function Fb(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const QIt=["className","aria-label"],JIt=e=>{const{classes:t}=e;return bt({root:["columnHeaderTitle"]},wn,t)},ZIt=ur("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),ekt=kn(function(t,n){const{className:r}=t,o=ze(t,QIt),i=xt(),a=JIt(i);return $.jsx(ZIt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))});function tkt(e){var l;const{label:t,description:n}=e,r=xt(),o=v.useRef(null),[i,a]=v.useState(""),s=v.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=LIt(o.current);a(c?t:"")}},[n,t]);return $.jsx(r.slots.baseTooltip,D({title:n||i},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:$.jsx(ekt,{onMouseOver:s,ref:o,children:t})}))}const nkt=["resizable","resizing","height","side"];var mV=function(e){return e.Left="left",e.Right="right",e}(mV||{});const rkt=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${op(o)}`],icon:["iconSeparator"]};return bt(i,wn,r)};function okt(e){const{height:t,side:n=mV.Right}=e,r=ze(e,nkt),o=xt(),i=D({},e,{side:n,classes:o.classes}),a=rkt(i),s=v.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return $.jsx("div",D({className:a.root,style:{minHeight:t}},r,{onClick:s,children:$.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const ikt=v.memo(okt),akt=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],bue=kn(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:a,sortDirection:s,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:p,width:m,columnMenuIconButton:g=null,columnMenu:y=null,columnTitleIconButtons:b=null,headerClassName:x,label:S,resizable:P,draggableContainerProps:E,columnHeaderSeparatorProps:T,style:O}=t,k=ze(t,akt),M=Cl(),I=xt(),R=v.useRef(null),_=Gr(R,n);let L="none";return s!=null&&(L=s==="asc"?"ascending":"descending"),v.useLayoutEffect(()=>{var N;const j=M.current.state.columnMenu;if(l&&!j.open){const U=R.current.querySelector('[tabindex="0"]')||R.current;U==null||U.focus(),(N=M.current.columnHeadersContainerRef)!=null&&N.current&&(M.current.columnHeadersContainerRef.current.scrollLeft=0)}},[M,l]),$.jsxs("div",D({className:pe(r.root,x),style:D({},O,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":L},k,{ref:_,children:[$.jsxs("div",D({className:r.draggableContainer,draggable:d,role:"presentation"},E,{children:[$.jsxs("div",{className:r.titleContainer,role:"presentation",children:[$.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:$.jsx(tkt,{label:S,description:p,columnWidth:m})}),b]}),g]})),$.jsx(ikt,D({resizable:!I.disableColumnResize&&!!P,resizing:a,height:i,side:u},T)),y]}))}),skt=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=s!=null&&s>0,p=t.type==="number",m={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return bt(m,wn,n)};function lkt(e){var ee,ce,le;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:s,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:p,style:m,pinnedPosition:g,indexInSection:y,sectionLength:b,gridHasFiller:x}=e,S=Cl(),P=xt(),E=v.useRef(null),T=cr(),O=cr(),k=v.useRef(null),[M,I]=v.useState(n),R=v.useMemo(()=>!P.disableColumnReorder&&!f&&!t.disableReorder,[P.disableColumnReorder,f,t.disableReorder]);let _;t.renderHeader&&(_=t.renderHeader(S.current.getColumnHeaderParams(t.field)));const L=LM(g,y),j=_M(g,y,b,P.showColumnVerticalBorder,x),N=D({},e,{classes:P.classes,showRightBorder:j,showLeftBorder:L}),F=skt(N),U=v.useCallback(Q=>ue=>{O1(ue)||S.current.publishEvent(Q,S.current.getColumnHeaderParams(t.field),ue)},[S,t.field]),z=v.useMemo(()=>({onClick:U("columnHeaderClick"),onContextMenu:U("columnHeaderContextMenu"),onDoubleClick:U("columnHeaderDoubleClick"),onMouseOver:U("columnHeaderOver"),onMouseOut:U("columnHeaderOut"),onMouseEnter:U("columnHeaderEnter"),onMouseLeave:U("columnHeaderLeave"),onKeyDown:U("columnHeaderKeyDown"),onFocus:U("columnHeaderFocus"),onBlur:U("columnHeaderBlur")}),[U]),V=v.useMemo(()=>R?{onDragStart:U("columnHeaderDragStart"),onDragEnter:U("columnHeaderDragEnter"),onDragOver:U("columnHeaderDragOver"),onDragEnd:U("columnHeaderDragEnd")}:{},[R,U]),W=v.useMemo(()=>({onMouseDown:U("columnSeparatorMouseDown"),onDoubleClick:U("columnSeparatorDoubleClick")}),[U]);v.useEffect(()=>{M||I(n)},[M,n]);const G=v.useCallback(()=>{I(!1)},[]),J=!P.disableColumnMenu&&!t.disableColumnMenu&&$.jsx(DIt,{colDef:t,columnMenuId:T,columnMenuButtonId:O,open:M,iconButtonRef:k}),K=$.jsx(_It,{columnMenuId:T,columnMenuButtonId:O,field:t.field,open:n,target:k.current,ContentComponent:P.slots.columnMenu,contentComponentProps:(ee=P.slotProps)==null?void 0:ee.columnMenu,onExited:G}),ne=t.sortingOrder??P.sortingOrder,re=(t.sortable||s!=null)&&!t.hideSortIcons&&!P.disableColumnSorting,oe=$.jsxs(v.Fragment,{children:[!P.disableColumnFilter&&$.jsx(P.slots.columnHeaderFilterIconButton,D({field:t.field,counter:c},(ce=P.slotProps)==null?void 0:ce.columnHeaderFilterIconButton)),re&&$.jsx(P.slots.columnHeaderSortIcon,D({field:t.field,direction:s,index:l,sortingOrder:ne,disabled:!t.sortable},(le=P.slotProps)==null?void 0:le.columnHeaderSortIcon))]});v.useLayoutEffect(()=>{var ue;const Q=S.current.state.columnMenu;if(u&&!Q.open){const xe=E.current.querySelector('[tabindex="0"]')||E.current;xe==null||xe.focus(),(ue=S.current.columnHeadersContainerRef)!=null&&ue.current&&(S.current.columnHeadersContainerRef.current.scrollLeft=0)}},[S,u]);const fe=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,se=t.headerName??t.field;return $.jsx(bue,D({ref:E,classes:F,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:s,hasFocus:u,tabIndex:d,separatorSide:p,isDraggable:R,headerComponent:_,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:J,columnTitleIconButtons:oe,headerClassName:pe(fe,a&&ae["columnHeader--last"]),label:se,resizable:!P.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:V,columnHeaderSeparatorProps:W,style:m},z))}const ckt=lp(lkt),ukt=["className"],dkt=e=>{const{classes:t}=e;return bt({root:["iconButtonContainer"]},wn,t)},fkt=ur("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),wue=kn(function(t,n){const{className:r}=t,o=ze(t,ukt),i=xt(),a=dkt(i);return $.jsx(fkt,D({className:pe(a.root,r),ownerState:i},o,{ref:n}))}),pkt=["direction","index","sortingOrder","disabled"],hkt=e=>{const{classes:t}=e;return bt({icon:["sortIcon"]},wn,t)};function mkt(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?$.jsx(o,D({fontSize:"small",className:n},i)):null}function gkt(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=ze(e,pkt),a=sn(),s=xt(),l=D({},e,{classes:s.classes}),c=hkt(l),u=mkt(s.slots,t,c.icon,r);if(!u)return null;const d=$.jsx(s.slots.baseIconButton,D({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=s.slotProps)==null?void 0:f.baseIconButton,i,{children:u}));return $.jsxs(wue,{children:[n!=null&&$.jsx(s.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const ykt=v.memo(gkt),vkt=e=>{const{classes:t}=e;return bt({icon:["filterIcon"]},wn,t)};function bkt(e){var m,g;const{counter:t,field:n,onClick:r}=e,o=sn(),i=xt(),a=D({},e,{classes:i.classes}),s=vkt(a),l=Ge(o,uS),c=cr(),u=cr(),d=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:x}=uS(o.current.state);b&&x===Wh.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),y)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,p=$.jsx(i.slots.baseIconButton,D({id:c,onClick:d,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?u:void 0},(m=i.slotProps)==null?void 0:m.baseIconButton,{children:$.jsx(i.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return $.jsx(i.slots.baseTooltip,D({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(g=i.slotProps)==null?void 0:g.baseTooltip,{children:$.jsxs(wue,{children:[t>1&&$.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:p}),t===1&&p]})}))}const fK=lt($.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),pK=lt($.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),hK=lt($.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),mK=lt($.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),wkt=lt($.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),gK=lt($.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),xkt=lt($.jsx("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"}),"Search");lt($.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");lt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Skt=lt($.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),Ckt=lt($.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),Pkt=lt($.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Ekt=lt($.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Tkt=lt($.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Okt=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),e2=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yK=lt($.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Ikt=lt($.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),kkt=lt($.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),vK=lt($.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Mkt=lt($.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Akt=lt($.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),$kt=lt($.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Rkt=lt($.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Dkt=lt($.jsx("g",{children:$.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),_kt=lt($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const Lkt=lt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function xue(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const AO=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Nkt=e=>!!e.key,Sue=e=>e==="Tab"||e==="Escape";function Cue(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Fkt(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const jkt=["hideMenu","colDef","id","labelledby","className","children","open"],Bkt=ie(qv)(()=>({minWidth:248})),zkt=kn(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,c=ze(t,jkt),u=v.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),Sue(d.key)&&r(d)},[r]);return $.jsx(Bkt,D({id:o,className:pe(ae.menuList,a),"aria-labelledby":i,onKeyDown:u,autoFocus:l},c,{ref:n,children:s}))}),Vkt=["displayOrder"],Hkt=e=>{const t=Cl(),n=xt(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=v.useMemo(()=>D({},r,i),[r,i]),d=v.useMemo(()=>{if(!a||Object.keys(a).length===0)return o;const m=D({},a);return Object.entries(o).forEach(([g,y])=>{m[g]=D({},y,a[g]||{})}),m},[o,a]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=v.useMemo(()=>{const m=Object.keys(r);return Object.keys(i).filter(g=>!m.includes(g))},[i,r]);return v.useMemo(()=>{const y=Array.from(new Set([...f,...p])).filter(b=>u[b]!=null).sort((b,x)=>{const S=d[b],P=d[x],E=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100,T=Number.isFinite(P==null?void 0:P.displayOrder)?P.displayOrder:100;return E-T});return y.reduce((b,x,S)=>{let P={colDef:l,onClick:s};const E=d[x];if(E){const T=ze(E,Vkt);P=D({},P,T)}return c&&S!==y.length-1?[...b,[u[x],P],[n.slots.baseDivider,{}]]:[...b,[u[x],P]]},[])},[c,l,f,s,u,d,p,n.slots.baseDivider])};function Ukt(e){const{colDef:t,onClick:n}=e,r=sn(),o=xt(),s=wo(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=v.useCallback(c=>{s||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:$.jsxs(nn,{onClick:l,disabled:s,children:[$.jsx(Ki,{children:$.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),$.jsx(xo,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Wkt(e){const{onClick:t}=e,n=sn(),r=xt(),o=v.useCallback(i=>{t(i),n.current.showPreferences(Wh.columns)},[n,t]);return r.disableColumnSelector?null:$.jsxs(nn,{onClick:o,children:[$.jsx(Ki,{children:$.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),$.jsx(xo,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Gkt(e){return $.jsxs(v.Fragment,{children:[$.jsx(Ukt,D({},e)),$.jsx(Wkt,D({},e))]})}function qkt(e){const{colDef:t,onClick:n}=e,r=sn(),o=xt(),i=v.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:$.jsxs(nn,{onClick:i,children:[$.jsx(Ki,{children:$.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),$.jsx(xo,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Kkt(e){const{colDef:t,onClick:n}=e,r=sn(),o=Ge(r,Ns),i=xt(),a=v.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),s=t.sortingOrder??i.sortingOrder,l=v.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===a?null:d)},[r,t,n,a]);if(i.disableColumnSorting||!t||!t.sortable||!s.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return $.jsxs(v.Fragment,{children:[s.includes("asc")&&a!=="asc"?$.jsxs(nn,{onClick:l,"data-value":"asc",children:[$.jsx(Ki,{children:$.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),$.jsx(xo,{children:c("columnMenuSortAsc")})]}):null,s.includes("desc")&&a!=="desc"?$.jsxs(nn,{onClick:l,"data-value":"desc",children:[$.jsx(Ki,{children:$.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),$.jsx(xo,{children:c("columnMenuSortDesc")})]}):null,s.includes(null)&&a!=null?$.jsxs(nn,{onClick:l,children:[$.jsx(Ki,{}),$.jsx(xo,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Ykt=["defaultSlots","defaultSlotProps","slots","slotProps"],Xkt={columnMenuSortItem:Kkt,columnMenuFilterItem:qkt,columnMenuColumnsItem:Gkt},Qkt={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Jkt=kn(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=ze(t,Ykt),l=Hkt(D({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return $.jsx(zkt,D({},s,{ref:n,children:l.map(([c,u],d)=>$.jsx(c,D({},u),d))}))}),Zkt=kn(function(t,n){return $.jsx(Jkt,D({},t,{ref:n,defaultSlots:Xkt,defaultSlotProps:Qkt}))}),eMt=["className","slotProps"],tMt=e=>{const{classes:t}=e;return bt({root:["panelWrapper"]},wn,t)},nMt=ie("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),rMt=()=>!0,Pue=kn(function(t,n){const{className:r,slotProps:o={}}=t,i=ze(t,eMt),a=xt(),s=tMt(a);return $.jsx(cj,D({open:!0,disableEnforceFocus:!0,isEnabled:rMt},o.TrapFocus,{children:$.jsx(nMt,D({tabIndex:-1,className:pe(s.root,r),ownerState:a},i,{ref:n}))}))});function oMt(e){var n;const t=xt();return $.jsx(Pue,D({},e,{children:$.jsx(t.slots.columnsManagement,D({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const iMt=["children","className","classes"],aMt=Ln("MuiDataGrid",["panel","paper"]),sMt=ie(Kf,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),lMt=ie(fo,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),cMt=kn((e,t)=>{const{children:n,className:r}=e,o=ze(e,iMt),i=sn(),a=xt(),s=aMt,[l,c]=v.useState(!1),u=v.useCallback(()=>{i.current.hidePreferences()},[i]),d=v.useCallback(g=>{g.key==="Escape"&&i.current.hidePreferences()},[i]),f=v.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[p,m]=v.useState(null);return v.useEffect(()=>{var y,b;const g=(b=(y=i.current.rootElementRef)==null?void 0:y.current)==null?void 0:b.querySelector('[data-id="gridPanelAnchor"]');g&&m(g)},[i]),p?$.jsx(sMt,D({placement:"bottom-start",className:pe(s.panel,r),ownerState:a,anchorEl:p,modifiers:f},o,{ref:t,children:$.jsx(lj,{mouseEvent:"onMouseUp",onClickAway:u,children:$.jsx(lMt,{className:s.paper,ownerState:a,elevation:8,onKeyDown:d,children:l&&n})})})):null}),uMt=["className"],dMt=e=>{const{classes:t}=e;return bt({root:["panelContent"]},wn,t)},fMt=ur("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function pMt(e){const{className:t}=e,n=ze(e,uMt),r=xt(),o=dMt(r);return $.jsx(fMt,D({className:pe(o.root,t),ownerState:r},n))}const hMt=["className"],mMt=e=>{const{classes:t}=e;return bt({root:["panelFooter"]},wn,t)},gMt=ur("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function yMt(e){const{className:t}=e,n=ze(e,hMt),r=xt(),o=mMt(r);return $.jsx(gMt,D({className:pe(o.root,t),ownerState:r},n))}const vMt=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],bMt=["InputComponentProps"],wMt=e=>{const{classes:t}=e;return bt({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},wn,t)},xMt=ie("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),SMt=ie("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),CMt=ie("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),PMt=ie("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),EMt=ie("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),TMt=ie("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),OMt=e=>{switch(e){case Vi.And:return"filterPanelOperatorAnd";case Vi.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},N0=e=>e.headerName||e.field,bK=new Intl.Collator,wK=kn(function(t,n){var xe,me,be,we,Te,Ie,Le,de,$e;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:s,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[Vi.And,Vi.Or],columnsSort:f,filterColumns:p,deleteIconProps:m={},logicOperatorInputProps:g={},operatorInputProps:y={},columnInputProps:b={},valueInputProps:x={},readOnly:S}=t,P=ze(t,vMt),E=sn(),T=Ge(E,vd),O=Ge(E,wce),k=Ge(E,oi),M=cr(),I=cr(),R=cr(),_=cr(),L=xt(),j=wMt(L),N=v.useRef(null),F=v.useRef(null),U=k.logicOperator??Vi.And,z=o&&d.length>0,V=((xe=L.slotProps)==null?void 0:xe.baseFormControl)||{},G=(((me=L.slotProps)==null?void 0:me.baseSelect)||{}).native??!1,J=((be=L.slotProps)==null?void 0:be.baseInputLabel)||{},K=((we=L.slotProps)==null?void 0:we.baseSelectOption)||{},{InputComponentProps:ne}=x,re=ze(x,bMt),{filteredColumns:oe,selectedField:fe}=v.useMemo(()=>{let ke=r.field;const Me=T[r.field].filterable===!1?T[r.field]:null;if(Me)return{filteredColumns:[Me],selectedField:ke};if(p===void 0||typeof p!="function")return{filteredColumns:O,selectedField:ke};const De=p({field:r.field,columns:O,currentFilters:(k==null?void 0:k.items)||[]});return{filteredColumns:O.filter(Ye=>{const Je=De.includes(Ye.field);return Ye.field===r.field&&!Je&&(ke=void 0),Je}),selectedField:ke}},[p,k==null?void 0:k.items,O,r.field,T]),se=v.useMemo(()=>{switch(f){case"asc":return oe.sort((ke,Me)=>bK.compare(N0(ke),N0(Me)));case"desc":return oe.sort((ke,Me)=>-bK.compare(N0(ke),N0(Me)));default:return oe}},[oe,f]),ee=r.field?E.current.getColumn(r.field):null,ce=v.useMemo(()=>{var ke;return!r.operator||!ee?null:(ke=ee.filterOperators)==null?void 0:ke.find(Me=>Me.value===r.operator)},[r,ee]),le=v.useCallback(ke=>{const Me=ke.target.value,De=E.current.getColumn(Me);if(De.field===ee.field)return;const Ye=De.filterOperators.find(Rt=>Rt.value===r.operator)||De.filterOperators[0];let st=!Ye.InputComponent||Ye.InputComponent!==(ce==null?void 0:ce.InputComponent)||De.type!==ee.type?void 0:r.value;if(De.type==="singleSelect"&&st!==void 0){const Rt=De,ct=Uh(Rt);Array.isArray(st)?st=st.filter(Lt=>kO(Lt,ct,Rt==null?void 0:Rt.getOptionValue)!==void 0):kO(r.value,ct,Rt==null?void 0:Rt.getOptionValue)===void 0&&(st=void 0)}a(D({},r,{field:Me,operator:Ye.value,value:st}))},[E,a,r,ee,ce]),Q=v.useCallback(ke=>{const Me=ke.target.value,De=ee==null?void 0:ee.filterOperators.find(Je=>Je.value===Me),Ye=!(De!=null&&De.InputComponent)||(De==null?void 0:De.InputComponent)!==(ce==null?void 0:ce.InputComponent);a(D({},r,{operator:Me,value:Ye?void 0:r.value}))},[a,r,ee,ce]),ue=v.useCallback(ke=>{const Me=ke.target.value===Vi.And.toString()?Vi.And:Vi.Or;c(Me)},[c]),ge=()=>{i(r)};return v.useImperativeHandle(u,()=>({focus:()=>{var ke;ce!=null&&ce.InputComponent?(ke=N==null?void 0:N.current)==null||ke.focus():F.current.focus()}}),[ce]),$.jsxs(xMt,D({className:j.root,"data-id":r.id,ownerState:L},P,{ref:n,children:[$.jsx(SMt,D({variant:"standard",as:L.slots.baseFormControl},V,m,{className:pe(j.deleteIcon,V.className,m.className),ownerState:L,children:$.jsx(L.slots.baseIconButton,D({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ge,size:"small",disabled:S},(Te=L.slotProps)==null?void 0:Te.baseIconButton,{children:$.jsx(L.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),$.jsx(CMt,D({variant:"standard",as:L.slots.baseFormControl},V,g,{sx:[z?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},V.sx,g.sx],className:pe(j.logicOperatorInput,V.className,g.className),ownerState:L,children:$.jsx(L.slots.baseSelect,D({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:U??"",onChange:ue,disabled:!!l||d.length===1,native:G},(Ie=L.slotProps)==null?void 0:Ie.baseSelect,{children:d.map(ke=>v.createElement(L.slots.baseSelectOption,D({},K,{native:G,key:ke.toString(),value:ke.toString()}),E.current.getLocaleText(OMt(ke))))}))})),$.jsxs(PMt,D({variant:"standard",as:L.slots.baseFormControl},V,b,{className:pe(j.columnInput,V.className,b.className),ownerState:L,children:[$.jsx(L.slots.baseInputLabel,D({},J,{htmlFor:M,id:I,children:E.current.getLocaleText("filterPanelColumns")})),$.jsx(L.slots.baseSelect,D({labelId:I,id:M,label:E.current.getLocaleText("filterPanelColumns"),value:fe??"",onChange:le,native:G,disabled:S},(Le=L.slotProps)==null?void 0:Le.baseSelect,{children:se.map(ke=>v.createElement(L.slots.baseSelectOption,D({},K,{native:G,key:ke.field,value:ke.field}),N0(ke)))}))]})),$.jsxs(EMt,D({variant:"standard",as:L.slots.baseFormControl},V,y,{className:pe(j.operatorInput,V.className,y.className),ownerState:L,children:[$.jsx(L.slots.baseInputLabel,D({},J,{htmlFor:R,id:_,children:E.current.getLocaleText("filterPanelOperator")})),$.jsx(L.slots.baseSelect,D({labelId:_,label:E.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:Q,native:G,inputRef:F,disabled:S},(de=L.slotProps)==null?void 0:de.baseSelect,{children:($e=ee==null?void 0:ee.filterOperators)==null?void 0:$e.map(ke=>v.createElement(L.slots.baseSelectOption,D({},K,{native:G,key:ke.value,value:ke.value}),ke.label||E.current.getLocaleText(`filterOperator${op(ke.value)}`)))}))]})),$.jsx(TMt,D({variant:"standard",as:L.slots.baseFormControl},V,re,{className:pe(j.valueInput,V.className,re.className),ownerState:L,children:ce!=null&&ce.InputComponent?$.jsx(ce.InputComponent,D({apiRef:E,item:r,applyValue:a,focusElementRef:N,disabled:S},ce.InputComponentProps,ne),r.field):null}))]}))}),IMt=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],xK=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),kMt=kn(function(t,n){var _,L;const r=sn(),o=xt(),i=Ge(r,oi),a=Ge(r,wce),s=Ge(r,kPt),l=v.useRef(null),c=v.useRef(null),{logicOperators:u=[Vi.And,Vi.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:p,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=t,y=ze(t,IMt),b=r.current.upsertFilterItem,x=v.useCallback(j=>{r.current.setFilterLogicOperator(j)},[r]),S=v.useCallback(()=>{let j;if(p&&typeof p=="function"){const N=p({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(N===null)return null;j=a.find(({field:F})=>F===N)}else j=a.find(N=>{var F;return(F=N.filterOperators)==null?void 0:F.length});return j?xK(j):null},[i==null?void 0:i.items,a,p]),P=v.useCallback(()=>{if(p===void 0||typeof p!="function")return S();const j=i.items.length?i.items:[S()].filter(Boolean),N=p({currentFilters:j,columns:a});if(N===null)return null;const F=a.find(({field:U})=>U===N);return F?xK(F):null},[i.items,a,p,S]),E=v.useMemo(()=>i.items.length?i.items:(c.current||(c.current=S()),c.current?[c.current]:[]),[i.items,S]),T=E.length>1,{readOnlyFilters:O,validFilters:k}=v.useMemo(()=>E.reduce((j,N)=>(s[N.field]?j.validFilters.push(N):j.readOnlyFilters.push(N),j),{readOnlyFilters:[],validFilters:[]}),[E,s]),M=v.useCallback(()=>{const j=P();j&&r.current.upsertFilterItems([...E,j])},[r,P,E]),I=v.useCallback(j=>{const N=k.length===1;r.current.deleteFilterItem(j),N&&r.current.hideFilterPanel()},[r,k.length]),R=v.useCallback(()=>k.length===1&&k[0].value===void 0?(r.current.deleteFilterItem(k[0]),r.current.hideFilterPanel()):r.current.setFilterModel(D({},i,{items:O}),"removeAllFilterItems"),[r,O,i,k]);return v.useEffect(()=>{u.length>0&&i.logicOperator&&!u.includes(i.logicOperator)&&x(u[0])},[u,x,i.logicOperator]),v.useEffect(()=>{k.length>0&&l.current.focus()},[k.length]),$.jsxs(Pue,D({},y,{ref:n,children:[$.jsxs(pMt,{children:[O.map((j,N)=>$.jsx(wK,D({item:j,applyFilterChanges:b,deleteFilter:I,hasMultipleFilters:T,showMultiFilterOperators:N>0,disableMultiFilterOperator:N!==1,applyMultiFilterOperatorChanges:x,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),j.id==null?N:j.id)),k.map((j,N)=>$.jsx(wK,D({item:j,applyFilterChanges:b,deleteFilter:I,hasMultipleFilters:T,showMultiFilterOperators:O.length+N>0,disableMultiFilterOperator:O.length+N!==1,applyMultiFilterOperatorChanges:x,focusElementRef:N===k.length-1?l:null,logicOperators:u,columnsSort:d},f),j.id==null?N+O.length:j.id))]}),!o.disableMultipleColumnsFiltering&&!(m&&g)?$.jsxs(yMt,{children:[m?$.jsx("span",{}):$.jsx(o.slots.baseButton,D({onClick:M,startIcon:$.jsx(o.slots.filterPanelAddIcon,{})},(_=o.slotProps)==null?void 0:_.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!g&&k.length>0?$.jsx(o.slots.baseButton,D({onClick:R,startIcon:$.jsx(o.slots.filterPanelRemoveAllIcon,{})},(L=o.slotProps)==null?void 0:L.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),MMt=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},AMt=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,$Mt=e=>{const{classes:t}=e;return bt({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},wn,t)},SK=new Intl.Collator;function RMt(e){var N,F,U,z;const t=sn(),n=v.useRef(null),r=Ge(t,nc),o=eu(()=>Qs(t)).current,i=Ge(t,Qs),a=xt(),[s,l]=v.useState(""),c=$Mt(a),{sort:u,searchPredicate:d=AMt,autoFocusSearchField:f=!0,disableShowHideToggle:p=!1,disableResetButton:m=!1,toggleAllMode:g="all",getTogglableColumns:y,searchInputProps:b}=e,x=v.useMemo(()=>MMt(i,o),[i,o]),S=v.useMemo(()=>{switch(u){case"asc":return[...r].sort((V,W)=>SK.compare(V.headerName||V.field,W.headerName||W.field));case"desc":return[...r].sort((V,W)=>-SK.compare(V.headerName||V.field,W.headerName||W.field));default:return r}},[r,u]),P=V=>{const{name:W}=V.target;t.current.setColumnVisibility(W,i[W]===!1)},E=v.useMemo(()=>{const V=y?y(S):null,W=V?S.filter(({field:G})=>V.includes(G)):S;return s?W.filter(G=>d(G,s.toLowerCase())):W},[S,s,d,y]),T=v.useCallback(V=>{const W=Qs(t),G=D({},W),J=y?y(r):null;return(g==="filteredOnly"?E:r).forEach(K=>{K.hideable&&(J==null||J.includes(K.field))&&(V?delete G[K.field]:G[K.field]=!1)}),t.current.setColumnVisibilityModel(G)},[t,r,y,g,E]),O=v.useCallback(V=>{l(V.target.value)},[]),k=v.useMemo(()=>E.filter(V=>V.hideable),[E]),M=v.useMemo(()=>k.every(V=>i[V.field]==null||i[V.field]!==!1),[i,k]),I=v.useMemo(()=>k.every(V=>i[V.field]===!1),[i,k]),R=v.useRef(null);v.useEffect(()=>{f?n.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[f]);let _=!1;const L=V=>_===!1&&V.hideable!==!1?(_=!0,!0):!1,j=v.useCallback(()=>{l(""),n.current.focus()},[]);return $.jsxs(v.Fragment,{children:[$.jsx(_Mt,{className:c.header,ownerState:a,children:$.jsx(LMt,D({as:a.slots.baseTextField,ownerState:a,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:c.searchInput,value:s,onChange:O,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:$.jsx(a.slots.baseInputAdornment,{position:"start",children:$.jsx(a.slots.quickFilterIcon,{})}),endAdornment:$.jsx(a.slots.baseIconButton,D({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[s?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:j},(N=a.slotProps)==null?void 0:N.baseIconButton,{children:$.jsx(a.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(F=a.slotProps)==null?void 0:F.baseTextField,b))}),$.jsxs(DMt,{className:c.root,ownerState:a,children:[E.map(V=>{var W;return $.jsx($h,{className:c.row,control:$.jsx(a.slots.baseCheckbox,D({disabled:V.hideable===!1,checked:i[V.field]!==!1,onClick:P,name:V.field,sx:{p:.5},inputRef:L(V)?R:void 0},(W=a.slotProps)==null?void 0:W.baseCheckbox)),label:V.headerName||V.field},V.field)}),E.length===0&&$.jsx(FMt,{ownerState:a,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!p||!m)&&E.length>0?$.jsxs(NMt,{ownerState:a,className:c.footer,children:[p?$.jsx("span",{}):$.jsx($h,{control:$.jsx(a.slots.baseCheckbox,D({disabled:k.length===0,checked:M,indeterminate:!M&&!I,onClick:()=>T(!M),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(U=a.slotProps)==null?void 0:U.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:$.jsx(a.slots.baseButton,D({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:x},(z=a.slotProps)==null?void 0:z.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const DMt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),_Mt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),LMt=ie(mn,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${Go.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${Go.input}::-webkit-search-decoration,
+ & .${Go.input}::-webkit-search-cancel-button,
+ & .${Go.input}::-webkit-search-results-button,
+ & .${Go.input}::-webkit-search-results-decoration`]:{display:"none"}})),NMt=ie("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),FMt=ie("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),jMt=kn(function(t,n){var x,S;const{children:r,slotProps:o={}}=t,i=o.button||{},a=o.tooltip||{},s=sn(),l=xt(),c=cr(),u=cr(),[d,f]=v.useState(!1),p=v.useRef(null),m=Gr(n,p),g=P=>{var E;f(T=>!T),(E=i.onClick)==null||E.call(i,P)},y=()=>f(!1),b=P=>{P.key==="Tab"&&P.preventDefault(),Sue(P.key)&&y()};return r==null?null:$.jsxs(v.Fragment,{children:[$.jsx(l.slots.baseTooltip,D({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(x=l.slotProps)==null?void 0:x.baseTooltip,a,{children:$.jsx(l.slots.baseButton,D({size:"small",startIcon:$.jsx(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c,onClick:g},(S=l.slotProps)==null?void 0:S.baseButton,i,{ref:m,children:s.current.getLocaleText("toolbarExport")}))})),$.jsx(nV,{open:d,target:p.current,onClose:y,position:"bottom-start",children:$.jsx(qv,{id:u,className:ae.menuList,"aria-labelledby":c,onKeyDown:b,autoFocusItem:d,children:v.Children.map(r,P=>v.isValidElement(P)?v.cloneElement(P,{hideMenu:y}):P)})})]})}),BMt=["hideMenu","options"],zMt=["hideMenu","options"],VMt=["csvOptions","printOptions","excelOptions"];function HMt(e){const t=sn(),{hideMenu:n,options:r}=e,o=ze(e,BMt);return $.jsx(nn,D({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function UMt(e){const t=sn(),{hideMenu:n,options:r}=e,o=ze(e,zMt);return $.jsx(nn,D({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}kn(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,s=ze(r,VMt),c=sn().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort((u,d)=>u.componentName>d.componentName?1:-1);return c.length===0?null:$.jsx(jMt,D({},s,{ref:n,children:c.map((u,d)=>v.cloneElement(u.component,{key:d}))}))});const WMt=["className","selectedRowCount"],GMt=e=>{const{classes:t}=e;return bt({root:["selectedRowCount"]},wn,t)},qMt=ur("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),KMt=kn(function(t,n){const{className:r,selectedRowCount:o}=t,i=ze(t,WMt),a=sn(),s=xt(),l=GMt(s),c=a.current.getLocaleText("footerRowSelected")(o);return $.jsx(qMt,D({className:pe(l.root,r),ownerState:s},i,{ref:n,children:c}))}),YMt=kn(function(t,n){var d,f;const r=sn(),o=xt(),i=Ge(r,pEt),a=Ge(r,zEt),s=Ge(r,aV),l=!o.hideFooterSelectedRowCount&&a>0?$.jsx(KMt,{selectedRowCount:a}):$.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?$.jsx(o.slots.footerRowCount,D({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:i,visibleRowCount:s})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&$.jsx(o.slots.pagination,D({},(f=o.slotProps)==null?void 0:f.pagination));return $.jsxs(kIt,D({},t,{ref:n,children:[l,c,u]}))});function XMt(){var i,a;const e=sn(),t=Ge(e,nc),n=xt(),r=Ge(e,uS),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Wh.filters);return $.jsx(n.slots.panel,D({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(i=n.slotProps)==null?void 0:i.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function QMt(){var t;const e=xt();return $.jsxs(v.Fragment,{children:[$.jsx(XMt,{}),e.slots.toolbar&&$.jsx(e.slots.toolbar,D({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const gV=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let a;switch(e){case lr.LEFT:a=r[n];break;case lr.RIGHT:a=o.columnsTotalWidth-r[n]-t+i;break;default:a=0;break}return a},F0={root:ae.scrollbarFiller,header:ae["scrollbarFiller--header"],borderTop:ae["scrollbarFiller--borderTop"],borderBottom:ae["scrollbarFiller--borderBottom"],pinnedRight:ae["scrollbarFiller--pinnedRight"]};function yV({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return $.jsx("div",{role:"presentation",className:pe(F0.root,e&&F0.header,t&&F0.borderTop,n&&F0.borderBottom,r&&F0.pinnedRight)})}const JMt=ur("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),ZMt=e=>{const{classes:t}=e;return bt({root:["skeletonLoadingOverlay"]},wn,t)},CK=e=>parseInt(e.getAttribute("data-colindex"),10),eAt=kn(function(t,n){const r=xt(),{slots:o}=r,i=ZMt({classes:r.classes}),a=v.useRef(null),s=Gr(a,n),l=sn(),c=Ge(l,Mi),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=Ge(l,Jz),p=Ge(l,cp),m=v.useMemo(()=>p.filter(T=>T<=f).length,[f,p]),g=Ge(l,wo),y=v.useMemo(()=>g.slice(0,m),[g,m]),b=Ge(l,P1),x=v.useCallback((T,O,k)=>{const M=gV(k,T,O,p,c);return{[k]:M}},[c,p]),S=v.useCallback(T=>{if(b.left.findIndex(O=>O.field===T)!==-1)return lr.LEFT;if(b.right.findIndex(O=>O.field===T)!==-1)return lr.RIGHT},[b.left,b.right]),P=v.useMemo(()=>{const T=[];for(let O=0;O<d;O+=1){const k=[];for(let M=0;M<y.length;M+=1){const I=y[M],R=S(I.field),_=R===lr.LEFT,L=R===lr.RIGHT,j=R?b[R].length:y.length-b.left.length-b.right.length,N=R?b[R].findIndex(ee=>ee.field===I.field):M-b.left.length,F=R&&x(I.computedWidth,M,R),U=c.columnsTotalWidth<c.viewportOuterSize.width,z=_M(R,N,j,r.showCellVerticalBorder,U),V=LM(R,N),W=M===y.length-1,G=L&&N===0,J=G&&U,K=W&&!G&&U,ne=c.viewportOuterSize.width-c.columnsTotalWidth,re=Math.max(0,ne),oe=$.jsx(o.skeletonCell,{width:re,empty:!0},`skeleton-filler-column-${O}`),fe=c.hasScrollY?c.scrollbarSize:0,se=W&&fe!==0;J&&k.push(oe),k.push($.jsx(o.skeletonCell,{field:I.field,type:I.type,align:I.align,width:"var(--width)",height:c.rowHeight,"data-colindex":M,className:pe(_&&ae["cell--pinnedLeft"],L&&ae["cell--pinnedRight"],z&&ae["cell--withRightBorder"],V&&ae["cell--withLeftBorder"]),style:D({"--width":`${I.computedWidth}px`},F)},`skeleton-column-${O}-${I.field}`)),K&&k.push(oe),se&&k.push($.jsx(yV,{pinnedRight:b.right.length>0},`skeleton-scrollbar-filler-${O}`))}T.push($.jsx("div",{className:pe(ae.row,ae.rowSkeleton,O===0&&ae["row--firstVisible"]),children:k},`skeleton-row-${O}`))}return T},[o,y,b,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,S,x]);return gt(l,"columnResize",T=>{var F,U,z;const{colDef:O,width:k}=T,M=(F=a.current)==null?void 0:F.querySelectorAll(`[data-field="${bd(O.field)}"]`);if(!M)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const I=y.findIndex(V=>V.field===O.field),R=S(O.field),_=R===lr.LEFT,L=R===lr.RIGHT,j=getComputedStyle(M[0]).getPropertyValue("--width"),N=parseInt(j,10)-k;if(M&&M.forEach(V=>{V.style.setProperty("--width",`${k}px`)}),_){const V=(U=a.current)==null?void 0:U.querySelectorAll(`.${ae["cell--pinnedLeft"]}`);V==null||V.forEach(W=>{CK(W)>I&&(W.style.left=`${parseInt(getComputedStyle(W).left,10)-N}px`)})}if(L){const V=(z=a.current)==null?void 0:z.querySelectorAll(`.${ae["cell--pinnedRight"]}`);V==null||V.forEach(W=>{CK(W)<I&&(W.style.right=`${parseInt(getComputedStyle(W).right,10)+N}px`)})}}),$.jsx(JMt,D({className:i.root},t,{ref:s,children:P}))}),tAt=["variant","noRowsVariant","style"],nAt={"circular-progress":{component:EZ,style:{}},"linear-progress":{component:_Z,style:{display:"block"}},skeleton:{component:eAt,style:{display:"block"}}},rAt=kn(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:i}=t,a=ze(t,tAt),s=sn(),l=Ge(s,PM),c=nAt[l===0?o:r];return $.jsx(hV,D({style:D({},c.style,i)},a,{ref:n,children:$.jsx(c.component,{})}))}),oAt=kn(function(t,n){const o=sn().current.getLocaleText("noRowsLabel");return $.jsx(hV,D({},t,{ref:n,children:o}))}),iAt=ie(yj)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${ph.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ph.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),aAt=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),sAt=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,lAt=kn(function(t,n){const r=sn(),o=xt(),i=Ge(r,zi),a=Ge(r,qg),s=Ge(r,Kce),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=v.useMemo(()=>a===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,a]),f=v.useMemo(()=>Math.max(0,s-1),[s]),p=v.useMemo(()=>a===-1||i.page<=f?i.page:f,[f,i.page,a]),m=v.useCallback(P=>{const E=Number(P.target.value);r.current.setPageSize(E)},[r]),g=v.useCallback((P,E)=>{r.current.setPage(E)},[r]),b=(P=>{for(let E=0;E<o.pageSizeOptions.length;E+=1){const T=o.pageSizeOptions[E];if(typeof T=="number"){if(T===P)return!0}else if(T.value===P)return!0}return!1})(i.pageSize)?o.pageSizeOptions:[],x=r.current.getLocaleText("MuiTablePagination"),S=aAt(x.labelDisplayedRows||sAt,u);return $.jsx(iAt,D({component:"div",count:a,page:p,rowsPerPageOptions:b,rowsPerPage:i.pageSize,onPageChange:g,onRowsPerPageChange:m},d,x,{labelDisplayedRows:S},t,{ref:n}))}),cAt=["className","rowCount","visibleRowCount"],uAt=e=>{const{classes:t}=e;return bt({root:["rowCount"]},wn,t)},dAt=ur("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),fAt=kn(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=ze(t,cAt),s=sn(),l=xt(),c=uAt(l);if(o===0)return null;const u=i<o?s.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return $.jsxs(dAt,D({className:pe(c.root,r),ownerState:l},a,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",u]}))});function pAt(e,t){return bt(t,wn,e)}const hAt=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function mAt({width:e}){return e?$.jsx("div",{role:"presentation",className:pe(ae.cell,ae.cellEmpty),style:{"--width":`${e}px`}}):null}const gAt=kn(function(t,n){var Lt;const{selected:r,rowId:o,row:i,index:a,style:s,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:d,offsetLeft:f,dimensions:p,renderContext:m,focusedColumnIndex:g,isFirstVisible:y,isLastVisible:b,isNotVisible:x,showBottomBorder:S,onClick:P,onDoubleClick:E,onMouseEnter:T,onMouseLeave:O,onMouseOut:k,onMouseOver:M}=t,I=ze(t,hAt),R=Cl(),_=due(),L=v.useRef(null),j=xt(),N=bm(R,j),F=Ge(R,Ns),U=Ge(R,Rb),z=Ge(R,cp),V=Ge(R,Uo),W=Gr(L,n),G=R.current.getRowNode(o),J=p.hasScrollY?p.scrollbarSize:0,K=p.columnsTotalWidth<p.viewportOuterSize.width,ne=R.current.getRowMode(o)===zn.Edit,re=j.editMode===Yc.Row,oe=Ge(R,RM),fe=g!==void 0,se=fe&&g>=d.left.length&&g<m.firstColumnIndex,ee=fe&&g<u.length-d.right.length&&g>=m.lastColumnIndex,ce=pAt(j.classes,{root:["row",r&&"selected",re&&"row--editable",ne&&"row--editing",y&&"row--firstVisible",b&&"row--lastVisible",S&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),le=_.hooks.useGridRowAriaAttributes();v.useLayoutEffect(()=>{if(N.range){const pt=R.current.getRowIndexRelativeToVisibleRows(o);pt!==void 0&&R.current.unstable_setLastMeasuredRowIndex(pt)}if(L.current&&l==="auto")return R.current.observeRowHeight(L.current,o)},[R,N.range,l,o]);const Q=v.useCallback((pt,rt)=>Pe=>{O1(Pe)||R.current.getRow(o)&&(R.current.publishEvent(pt,R.current.getRowParams(o),Pe),rt&&rt(Pe))},[R,o]),ue=v.useCallback(pt=>{const rt=MO(pt.target,ae.cell),Pe=rt==null?void 0:rt.getAttribute("data-field");if(Pe){if(Pe===Lb.field||Pe===TM||Pe==="__reorder__"||R.current.getCellMode(o,Pe)===Jn.Edit)return;const Ve=R.current.getColumn(Pe);if((Ve==null?void 0:Ve.type)===CM)return}Q("rowClick",P)(pt)},[R,P,Q,o]),{slots:ge,slotProps:xe,disableColumnReorder:me}=j,be=j.rowReordering,we=Ge(R,()=>D({},R.current.getRowHeightEntry(o)),gce),Te=v.useMemo(()=>{if(x)return{opacity:0,width:0,height:0};const pt=D({},s,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(we.spacingTop){const rt=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";pt[rt]=we.spacingTop}if(we.spacingBottom){const rt=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Pe=pt[rt];typeof Pe!="number"&&(Pe=parseInt(Pe||"0",10)),Pe+=we.spacingBottom,pt[rt]=Pe}return pt},[x,l,s,we,j.rowSpacingType]),Ie=R.current.unstable_applyPipeProcessors("rowClassName",[],o),Le=G?le(G,a):void 0;if(typeof j.getRowClassName=="function"){const pt=a-(((Lt=N.range)==null?void 0:Lt.firstRowIndex)||0),rt=D({},R.current.getRowParams(o),{isFirstVisible:pt===0,isLastVisible:pt===N.rows.length-1,indexRelativeToCurrentPage:pt});Ie.push(j.getRowClassName(rt))}const de=(pt,rt,Pe,Ve,ft=pa.NONE)=>{var gs;const It=R.current.unstable_getCellColSpanInfo(o,Pe);if(It!=null&&It.spannedByColSpan)return null;const St=(It==null?void 0:It.cellProps.width)??pt.computedWidth,yn=(It==null?void 0:It.cellProps.colSpan)??1,Bn=gV(hue[ft],pt.computedWidth,Pe,z,p);if((G==null?void 0:G.type)==="skeletonRow")return $.jsx(ge.skeletonCell,{type:pt.type,width:St,height:l,field:pt.field,align:pt.align},pt.field);const Wn=((gs=V[o])==null?void 0:gs[pt.field])??null,To=pt.field==="__reorder__",Oo=Object.keys(V).length>0,hi=!(me||pt.disableReorder),Oa=be&&!F.length&&U<=1&&!Oo,Ft=!(hi||To&&Oa),Io=ft===pa.VIRTUAL;return $.jsx(ge.cell,D({column:pt,width:St,rowId:o,align:pt.align||"left",colIndex:Pe,colSpan:yn,disableDragEvents:Ft,editCellState:Wn,isNotVisible:Io,pinnedOffset:Bn,pinnedPosition:ft,sectionIndex:rt,sectionLength:Ve,gridHasFiller:K},xe==null?void 0:xe.cell),pt.field)};if(!G)return null;const $e=d.left.map((pt,rt)=>de(pt,rt,rt,d.left.length,pa.LEFT)),ke=d.right.map((pt,rt)=>{const Pe=u.length-d.right.length+rt;return de(pt,rt,Pe,d.right.length,pa.RIGHT)}),Me=u.length-d.left.length-d.right.length,De=[];se&&De.push(de(u[g],g-d.left.length,g,Me,pa.VIRTUAL));let Ye,Je;!j.disableVirtualization&&!oe?(Ye=0,Je=u.length):(Ye=m.firstColumnIndex,Je=m.lastColumnIndex);for(let pt=Ye;pt<Je;pt+=1){const rt=u[pt],Pe=pt-d.left.length;rt&&De.push(de(rt,Pe,pt,Me))}ee&&De.push(de(u[g],g-d.left.length,g,Me,pa.VIRTUAL));const st=i?{onClick:ue,onDoubleClick:Q("rowDoubleClick",E),onMouseEnter:Q("rowMouseEnter",T),onMouseLeave:Q("rowMouseLeave",O),onMouseOut:Q("rowMouseOut",k),onMouseOver:Q("rowMouseOver",M)}:null,Rt=p.viewportOuterSize.width-p.columnsTotalWidth-J,ct=Math.max(0,Rt);return $.jsxs("div",D({"data-id":o,"data-rowindex":a,role:"row",className:pe(...Ie,ce.root,c),style:Te},Le,st,I,{ref:W,children:[$e,$.jsx("div",{role:"presentation",className:ae.cellOffsetLeft,style:{width:f}}),De,ct>0&&$.jsx(mAt,{width:ct}),ke.length>0&&$.jsx("div",{role:"presentation",className:ae.filler}),ke,J!==0&&$.jsx(yV,{pinnedRight:d.right.length>0})]}))}),yAt=lp(gAt),vAt=()=>{const e=Cl(),t=xt(),n=Ge(e,wo),r=Ge(e,iV),o=Ge(e,T1),i=Ge(e,Ace);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":sV(t)}},bAt=()=>{const e=Cl(),t=Ge(e,Vu),n=Ge(e,T1);return v.useCallback((r,o)=>{const i={},a=o+n+2;return i["aria-rowindex"]=a,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function wAt({privateApiRef:e,configuration:t,props:n,children:r}){const o=v.useRef(e.current.getPublicApi());return $.jsx(uue.Provider,{value:t,children:$.jsx(hce.Provider,{value:n,children:$.jsx(iue.Provider,{value:e,children:$.jsx(pce.Provider,{value:o,children:r})})})})}const xAt=e=>{const t=v.useRef(null),n=v.useRef(null),r=v.useRef(null),o=v.useRef(null),i=v.useRef(null),a=v.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},SAt=e=>{const t=po();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=v.useRef(!0);v.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>D({},r,{isRtl:t}))},[e,t])},CAt=UPt()&&window.localStorage.getItem("DEBUG")!=null,sw=()=>{},PAt={debug:sw,info:sw,warn:sw,error:sw},PK=["debug","info","warn","error"];function EK(e,t,n=console){const r=PK.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return PK.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[c,...u]=l;n[a](`MUI X: ${e} - ${c}`,...u)}:i[a]=sw,i),{})}const EAt=(e,t)=>{const n=v.useCallback(r=>CAt?EK(r,"debug",t.logger):t.logLevel?EK(r,t.logLevel.toString(),t.logger):PAt,[t.logLevel,t.logger]);Qt(e,{getLogger:n},"private")};class TAt{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<i.length;a+=1){const s=i[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class vV{static create(t){return new vV(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const Eue=Symbol("mui.api_private"),OAt=e=>e.isPropagationStopped!==void 0;let TK=0;function IAt(e){var o;const t=(o=e.current)==null?void 0:o[Eue];if(t)return t;const n={},r={state:n,store:vV.create(n),instanceId:{id:TK}};return TK+=1,r.getPublicApi=()=>e.current,r.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],c=r[s];if((c==null?void 0:c.spying)===!0?c.target=l:r[s]=l,i==="public"){const u=e.current,d=u[s];(d==null?void 0:d.spying)===!0?d.target=l:u[s]=l}})},r.register("private",{caches:{},eventManager:new TAt}),r}function kAt(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[Eue]:e.current}}function MAt(e,t){var a;const n=v.useRef(),r=v.useRef();r.current||(r.current=IAt(n)),n.current||(n.current=kAt(r));const o=v.useCallback((...s)=>{const[l,c,u={}]=s;if(u.defaultMuiPrevented=!1,OAt(u)&&u.isPropagationStopped())return;const d=t.signature===il.DataGridPro||t.signature===il.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=v.useCallback((s,l,c)=>{r.current.eventManager.on(s,l,c);const u=r.current;return()=>{u.eventManager.removeListener(s,l)}},[r]);return Qt(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((a=e.current)!=null&&a.state)&&(e.current=n.current),v.useImperativeHandle(e,()=>n.current,[n]),v.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const AAt=(e,t)=>{const n=v.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},$At=e=>{const t=v.useRef({}),n=v.useRef(!1),r=v.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=v.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const p=t.current[u];return p.processors.get(d)!==f&&(p.processors.set(d,f),p.processorsAsArray=Array.from(t.current[u].processors.values()),r(p)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),i=v.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const p=t.current[u].appliers,m=ze(p,[d].map(kv));t.current[u].appliers=m}),[]),a=v.useCallback(u=>{r(t.current[u])},[r]),s=v.useCallback((...u)=>{const[d,f,p]=u;if(!t.current[d])return f;const m=t.current[d].processorsAsArray;let g=f;for(let y=0;y<m.length;y+=1)g=m[y](g,p);return g},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},c={unstable_applyPipeProcessors:s};Qt(e,l,"private"),Qt(e,c,"public")},$r=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);E1(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},bV=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);E1(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},$O=(e,t,n,r)=>{const o=v.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);E1(()=>{o()});const i=v.useRef(!0);v.useEffect(()=>{i.current?i.current=!1:o()},[o])},Gh="none",OK={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},RAt=e=>{const t=v.useRef(new Map),n=v.useRef({}),r=v.useCallback((l,c,u)=>{const d=()=>{const m=n.current[c],g=ze(m,[l].map(kv));n.current[c]=g};n.current[c]||(n.current[c]={});const f=n.current[c],p=f[l];return f[l]=u,!p||p===u||l===e.current.getActiveStrategy(OK[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=v.useCallback((l,c)=>{const u=e.current.getActiveStrategy(OK[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const f=d[u];return f(c)},[e]),i=v.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??Gh},[]),a=v.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Qt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},DAt=e=>{const t=v.useRef({}),[,n]=v.useState(),r=v.useCallback(c=>{t.current[c.stateId]=c},[]),o=v.useCallback((c,u)=>{let d;if(Pce(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const p=[];if(Object.keys(t.current).forEach(m=>{const g=t.current[m],y=g.stateSelector(e.current.state,e.current.instanceId),b=g.stateSelector(d,e.current.instanceId);b!==y&&(p.push({stateId:g.stateId,hasPropChanged:b!==g.propModel}),g.propModel!==void 0&&b!==g.propModel&&(f=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(m=>m.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),p.length===1){const{stateId:m,hasPropChanged:g}=p[0],y=t.current[m],b=y.stateSelector(d,e.current.instanceId);y.propOnChange&&g&&y.propOnChange(b,{reason:u,api:e.current}),f||e.current.publishEvent(y.changeEvent,b,{reason:u})}return!f},[e]),i=v.useCallback((c,u,d)=>e.current.setState(f=>D({},f,{[c]:u(f[c])}),d),[e]),a=v.useCallback(()=>n(()=>e.current.state),[e]),s={setState:o,forceUpdate:a},l={updateControlState:i,registerControlState:r};Qt(e,s,"public"),Qt(e,l,"private")},_At=(e,t)=>{const n=MAt(e,t);return xAt(n),SAt(n),EAt(n,t),DAt(n),$At(n),RAt(n),AAt(n,t),n.current.register("private",{rootProps:t}),n},zo=(e,t,n)=>{const r=v.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function vN(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
+`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const Tue=(e,t)=>{var i,a;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const s=e.colDef.type;s==="number"?o=String(e.value):s==="date"||s==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((a=e.value)==null?void 0:a.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return vN(o,n)};class bN{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const LAt=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new bN({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(Tue(s,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function NAt(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((d,f)=>`${d}${LAt({id:f,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
+`,"").trim();if(!r.includeHeaders)return a;const s=t.filter(d=>d.field!==Lb.field),l=[];if(r.includeColumnGroupsHeaders){const d=i.current.getAllGroupDetails();let f=0;const p=s.reduce((m,g)=>{const y=i.current.getColumnGroupPath(g.field);return m[g.field]=y,f=Math.max(f,y.length),m},{});for(let m=0;m<f;m+=1){const g=new bN({csvOptions:r,sanitizeCellValue:vN});l.push(g),s.forEach(y=>{const b=(p[y.field]||[])[m],x=d[b];g.addValue(x?x.headerName||x.groupId:"")})}}const c=new bN({csvOptions:r,sanitizeCellValue:vN});return s.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r
`)}\r
-`}${a}`.trim()}function Aq(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function rkt(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{Aq(e)}):Aq(e)}function okt(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const ikt=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!rOt(a)||okt(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Da(e);if(c){const u=e.current.getCellParams(c.id,c.field);s=vce(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(rkt(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);Lle(e,e.current.rootElementRef,"keydown",i),lr(e,"clipboardCopy",t.onClipboardCopy)},akt=e=>D({},e,{columnMenu:{open:!1}}),skt=e=>{const t=Ro(e,"useGridColumnMenu"),n=v.useCallback(a=>{const s=FP(e.current.state),l={open:!0,field:a};(l.open!==s.open||l.field!==s.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===a?u:(t.debug("Opening Column Menu"),D({},u,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=FP(e.current.state);if(a.field){const c=od(e),u=Vs(e),d=Iu(e);let f=a.field;if(c[f]||(f=d[0]),u[f]===!1){const p=d.filter(g=>g===f?!0:u[g]!==!1),m=p.indexOf(f);f=p[m+1]||p[m-1]}e.current.setColumnHeaderFocus(f)}const s={open:!1,field:void 0};(s.open!==a.open||s.field!==a.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),D({},c,{columnMenu:s}))),e.current.forceUpdate())},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const s=FP(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Qt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),gt(e,"columnResizeStart",r),gt(e,"virtualScrollerWheel",e.current.hideColumnMenu),gt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},lkt=(e,t,n)=>{var o,i,a;const r=ng({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((a=(i=t.initialState)==null?void 0:i.columns)==null?void 0:a.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return D({},e,{columns:r,pinnedColumns:e.pinnedColumns??ML})};function ckt(e,t){var I,R;const n=Ro(e,"useGridColumns"),r=v.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Vs,changeEvent:"columnVisibilityModelChange"});const o=v.useCallback(_=>{var N,B;n.debug("Updating columns state."),e.current.setState($q(_)),e.current.publishEvent("columnsChange",_.orderedFields),(B=(N=e.current).updateRenderContext)==null||B.call(N),e.current.forceUpdate()},[n,e]),i=v.useCallback(_=>od(e)[_],[e]),a=v.useCallback(()=>Ul(e),[e]),s=v.useCallback(()=>ho(e),[e]),l=v.useCallback((_,N=!0)=>(N?ho(e):Ul(e)).findIndex(L=>L.field===_),[e]),c=v.useCallback(_=>{const N=l(_);return Gf(e)[N]},[e,l]),u=v.useCallback(_=>{var B,L;Vs(e)!==_&&(e.current.setState(F=>D({},F,{columns:ng({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),(L=(B=e.current).updateRenderContext)==null||L.call(B),e.current.forceUpdate())},[e]),d=v.useCallback(_=>{const N=ng({apiRef:e,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(N)},[e,o]),f=v.useCallback((_,N)=>{const B=Vs(e),L=B[_]??!0;if(N!==L){const F=D({},B,{[_]:N});e.current.setColumnVisibilityModel(F)}},[e]),p=v.useCallback(_=>Iu(e).findIndex(B=>B===_),[e]),m=v.useCallback((_,N)=>{const B=Iu(e),L=p(_);if(L===N)return;n.debug(`Moving column ${_} to index ${N}`);const F=[...B],U=F.splice(L,1)[0];F.splice(N,0,U),o(D({},Ac(e.current.state),{orderedFields:F}));const V={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:L};e.current.publishEvent("columnIndexChange",V)},[e,n,o,p]),g=v.useCallback((_,N)=>{n.debug(`Updating column ${_} width to ${N}`);const B=Ac(e.current.state),L=B.lookup[_],F=D({},L,{width:N,hasBeenResized:!0});o($L(D({},B,{lookup:D({},B.lookup,{[_]:F})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),colDef:F,width:N})},[e,n,o]),y={getColumn:i,getAllColumns:a,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:p,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:g},b={setColumnIndex:m};Qt(e,y,"public"),Qt(e,b,t.signature===Xs.DataGrid?"private":"public");const x=v.useCallback((_,N)=>{var z,W;const B={},L=Vs(e);(!N.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((W=(z=t.initialState)==null?void 0:z.columns)==null?void 0:W.columnVisibilityModel)??{}).length>0||Object.keys(L).length>0)&&(B.columnVisibilityModel=L),B.orderedFields=Iu(e);const U=Ul(e),V={};return U.forEach(G=>{if(G.hasBeenResized){const J={};qle.forEach(K=>{let ne=G[K];ne===1/0&&(ne=-1),J[K]=ne}),V[G.field]=J}}),Object.keys(V).length>0&&(B.dimensions=V),D({},_,{columns:B})},[e,t.columnVisibilityModel,(I=t.initialState)==null?void 0:I.columns]),S=v.useCallback((_,N)=>{var U;const B=(U=N.stateToRestore.columns)==null?void 0:U.columnVisibilityModel,L=N.stateToRestore.columns;if(B==null&&L==null)return _;const F=ng({apiRef:e,columnsToUpsert:[],initialState:L,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState($q(F)),L!=null&&e.current.publishEvent("columnsChange",F.orderedFields),_},[e]),P=v.useCallback((_,N)=>{var B;if(N===Oh.columns){const L=t.slots.columnsPanel;return $.jsx(L,D({},(B=t.slotProps)==null?void 0:B.columnsPanel))}return _},[t.slots.columnsPanel,(R=t.slotProps)==null?void 0:R.columnsPanel]),E=v.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ar(e,"columnMenu",E),Ar(e,"exportState",x),Ar(e,"restoreState",S),Ar(e,"preferencePanel",P);const T=v.useRef(null);gt(e,"viewportInnerSizeChange",_=>{T.current!==_.width&&(T.current=_.width,o($L(Ac(e.current.state),e.current.getRootDimensions())))});const k=v.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const _=ng({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(_)},[e,n,o]);Az(e,"hydrateColumns",k);const M=v.useRef(!0);v.useEffect(()=>{if(M.current){M.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const _=ng({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(_)},[n,e,o,t.columns]),v.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function $q(e){return t=>D({},t,{columns:e})}const ukt=(e,t)=>{var n;return D({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},dkt=(e,t)=>{var s;const n=Ro(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Ig,changeEvent:"densityChange"});const o={setDensity:Ze(l=>{Ig(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>D({},u,{density:l})))})};Qt(e,o,"public");const i=v.useCallback((l,c)=>{var f;const u=Ig(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?D({},l,{density:u}):l},[e,t.density,(s=t.initialState)==null?void 0:s.density]),a=v.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:Ig(e.current.state);return e.current.setState(f=>D({},f,{density:u})),l},[e]);Ar(e,"exportState",i),Ar(e,"restoreState",a),v.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function fkt(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const bce=({apiRef:e,options:t})=>{const n=Ul(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:ho(e)).filter(o=>!o.disableExport)},wce=({apiRef:e})=>{var l,c;const t=$le(e),n=ei(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),i=em(e),a=((l=i==null?void 0:i.top)==null?void 0:l.map(u=>u.id))||[],s=((c=i==null?void 0:i.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...a),o.push(...s),r.size>0?o.filter(u=>r.has(u)):o},pkt=(e,t)=>{const n=Ro(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=v.useCallback((c={})=>{n.debug("Get data as CSV");const u=bce({apiRef:e,options:c}),f=(c.getRowsToExport??wce)({apiRef:e});return nkt({columns:u,rowIds:f,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=v.useCallback(c=>{n.debug("Export data as CSV");const u=i(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});fkt(d,"csv",c==null?void 0:c.fileName)},[n,i]);Qt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=v.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:$.jsx(lIt,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Ar(e,"exportMenu",l)},jP=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,a=(n==null?void 0:n.page)??r.page,s=Nle(o,i,a);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=xCt(r.page,s);return l!==r.page&&(r=D({},r,{page:l})),jle(r.pageSize,t),r},hkt=(e,t)=>{var m,g;const n=Ro(e,"useGridPaginationModel"),r=Ye(e,ZS),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Di,changeEvent:"paginationModelChange"});const i=v.useCallback(y=>{const b=Di(e);y!==b.page&&(n.debug(`Setting page to ${y}`),e.current.setPaginationModel({page:y,pageSize:b.pageSize}))},[e,n]),a=v.useCallback(y=>{const b=Di(e);y!==b.pageSize&&(n.debug(`Setting page size to ${y}`),e.current.setPaginationModel({pageSize:y,page:b.page}))},[e,n]),s=v.useCallback(y=>{const b=Di(e);y!==b&&(n.debug("Setting 'paginationModel' to",y),e.current.setState(x=>D({},x,{pagination:D({},x.pagination,{paginationModel:jP(x.pagination,t.signature,y)})}),"setPaginationModel"))},[e,n,t.signature]);Qt(e,{setPage:i,setPageSize:a,setPaginationModel:s},"public");const c=v.useCallback((y,b)=>{var P,E;const x=Di(e);return!b.exportOnlyDirtyModels||t.paginationModel!=null||((E=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:E.paginationModel)!=null||x.page!==0&&x.pageSize!==wCt(t.autoPageSize)?D({},y,{pagination:D({},y.pagination,{paginationModel:x})}):y},[e,t.paginationModel,(g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.paginationModel,t.autoPageSize]),u=v.useCallback((y,b)=>{var S,P;const x=(S=b.stateToRestore.pagination)!=null&&S.paginationModel?D({},Fle(t.autoPageSize),(P=b.stateToRestore.pagination)==null?void 0:P.paginationModel):Di(e);return e.current.setState(E=>D({},E,{pagination:D({},E.pagination,{paginationModel:jP(E.pagination,t.signature,x)})}),"stateRestorePreProcessing"),y},[e,t.autoPageSize,t.signature]);Ar(e,"exportState",c),Ar(e,"restoreState",u);const d=()=>{var b;const y=Di(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:y.page*y.pageSize})},f=v.useCallback(()=>{if(!t.autoPageSize)return;const y=e.current.getRootDimensions(),b=Math.floor(y.viewportInnerSize.height/o);e.current.setPageSize(b)},[e,t.autoPageSize,o]),p=v.useCallback(y=>{if(y==null)return;const b=Di(e),x=Ble(e);b.page>x-1&&e.current.setPage(Math.max(0,x-1))},[e]);gt(e,"viewportInnerSizeChange",f),gt(e,"paginationModelChange",d),gt(e,"rowCountChange",p),v.useEffect(()=>{e.current.setState(y=>D({},y,{pagination:D({},y.pagination,{paginationModel:jP(y.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),v.useEffect(f,[f])};function mkt(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function gkt(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const ykt=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Ro(e,"useGridPrintExport"),o=v.useRef(null),i=v.useRef(null),a=v.useRef({}),s=v.useRef([]),l=v.useRef();v.useEffect(()=>{o.current=mr(e.current.rootElementRef.current)},[e,n]);const c=v.useCallback((y,b,x)=>new Promise(S=>{const P=bce({apiRef:e,options:{fields:y,allColumns:b}}).map(O=>O.field),E=Ul(e),T={};E.forEach(O=>{T[O.field]=P.includes(O.field)}),x&&(T[fb.field]=!0),e.current.setColumnVisibilityModel(T),S()}),[e]),u=v.useCallback(y=>{const x=y({apiRef:e}).reduce((S,P)=>{const E=e.current.getRow(P);return E[Jg]||S.push(E),S},[]);e.current.setRows(x)},[e]),d=v.useCallback((y,b)=>{var B,L,F,U;const x=D({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=y.contentDocument;if(!S)return;const P=pb(e.current.state),E=e.current.rootElementRef.current,T=E.cloneNode(!0),O=T.querySelector(`.${ae.main}`);O.style.overflow="visible",T.style.contain="size";let k=((B=E.querySelector(`.${ae.toolbarContainer}`))==null?void 0:B.offsetHeight)||0,M=((L=E.querySelector(`.${ae.footerContainer}`))==null?void 0:L.offsetHeight)||0;x.hideToolbar&&((F=T.querySelector(`.${ae.toolbarContainer}`))==null||F.remove(),k=0),x.hideFooter&&((U=T.querySelector(`.${ae.footerContainer}`))==null||U.remove(),M=0);const I=P.currentPageTotalHeight+Cz(e,t)+k+M;if(T.style.height=`${I}px`,T.style.boxSizing="content-box",!x.hideFooter){const V=T.querySelector(`.${ae.footerContainer}`);V.style.position="absolute",V.style.width="100%",V.style.top=`${I-M}px`}const R=document.createElement("div");R.appendChild(T),S.body.style.marginTop="0px",S.body.innerHTML=R.innerHTML;const _=typeof x.pageStyle=="function"?x.pageStyle():x.pageStyle;if(typeof _=="string"){const V=S.createElement("style");V.appendChild(S.createTextNode(_)),S.head.appendChild(V)}x.bodyClassName&&S.body.classList.add(...x.bodyClassName.split(" "));const N=[];if(x.copyStyles){const V=E.getRootNode(),W=(V.constructor.name==="ShadowRoot"?V:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let G=0;G<W.length;G+=1){const J=W[G];if(J.tagName==="STYLE"){const K=S.createElement(J.tagName),ne=J.sheet;if(ne){let re="";for(let oe=0;oe<ne.cssRules.length;oe+=1)typeof ne.cssRules[oe].cssText=="string"&&(re+=`${ne.cssRules[oe].cssText}\r
-`);K.appendChild(S.createTextNode(re)),S.head.appendChild(K)}}else if(J.getAttribute("href")){const K=S.createElement(J.tagName);for(let ne=0;ne<J.attributes.length;ne+=1){const re=J.attributes[ne];re&&K.setAttribute(re.nodeName,re.nodeValue||"")}N.push(new Promise(ne=>{K.addEventListener("load",()=>ne())})),S.head.appendChild(K)}}}Promise.all(N).then(()=>{y.contentWindow.print()})},[e,o,t]),f=v.useCallback(y=>{var b,x;o.current.body.removeChild(y),e.current.restoreState(i.current||{}),(x=(b=i.current)==null?void 0:b.columns)!=null&&x.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(S=>D({},S,{virtualization:l.current})),e.current.setRows(s.current),i.current=null,a.current={},s.current=[]},[e]),m={exportDataAsPrint:v.useCallback(async y=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=Vs(e),s.current=e.current.getSortedRows().filter(x=>!x[Jg]),t.pagination){const S={page:0,pageSize:yz(e)};e.current.setState(P=>D({},P,{pagination:D({},P.pagination,{paginationModel:jP(P.pagination,"DataGridPro",S)})}))}l.current=e.current.state.virtualization,e.current.setState(x=>D({},x,{virtualization:D({},x.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(y==null?void 0:y.fields,y==null?void 0:y.allColumns,y==null?void 0:y.includeCheckboxes),u((y==null?void 0:y.getRowsToExport)??wce),await mkt();const b=gkt(y==null?void 0:y.fileName);b.onload=()=>{d(b,y),b.contentWindow.matchMedia("print").addEventListener("change",S=>{S.matches===!1&&f(b)})},o.current.body.appendChild(b)},[t,r,e,d,f,c,u])};Qt(e,m,"public");const g=v.useCallback((y,b)=>{var x;return(x=b.printOptions)!=null&&x.disableToolbarButton?y:[...y,{component:$.jsx(cIt,{options:b.printOptions}),componentName:"printExport"}]},[]);Ar(e,"exportMenu",g)},vkt=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??Fx();return D({},e,{filter:{filterModel:pz(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},bkt=e=>e.filteredRowsLookup;function Rq(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function wkt(){return cle(Object.values)}const xkt=(e,t)=>{var M,I,R;const n=Ro(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Qo,changeEvent:"filterModelChange"});const r=v.useCallback(()=>{e.current.setState(_=>{const N=Qo(_,e.current.instanceId),B=e.current.getFilterState(N),L=D({},_,{filter:D({},_.filter,B)}),F=Rq(e,L);return D({},L,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e]),o=v.useCallback((_,N)=>N==null||N.filterable===!1||t.disableColumnFilter?_:[..._,"columnMenuFilterItem"],[t.disableColumnFilter]),i=v.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),a=v.useCallback(_=>{const N=Qo(e),B=[...N.items],L=B.findIndex(F=>F.id===_.id);L===-1?B.push(_):B[L]=_,e.current.setFilterModel(D({},N,{items:B}),"upsertFilterItem")},[e]),s=v.useCallback(_=>{const N=Qo(e),B=[...N.items];_.forEach(L=>{const F=B.findIndex(U=>U.id===L.id);F===-1?B.push(L):B[F]=L}),e.current.setFilterModel(D({},N,{items:B}),"upsertFilterItems")},[e]),l=v.useCallback(_=>{const N=Qo(e),B=N.items.filter(L=>L.id!==_.id);B.length!==N.items.length&&e.current.setFilterModel(D({},N,{items:B}),"deleteFilterItem")},[e]),c=v.useCallback((_,N,B)=>{if(n.debug("Displaying filter panel"),_){const L=Qo(e),F=L.items.filter(W=>{var ne;if(W.value!==void 0)return!(Array.isArray(W.value)&&W.value.length===0);const J=(ne=e.current.getColumn(W.field).filterOperators)==null?void 0:ne.find(re=>re.value===W.operator);return!(typeof(J==null?void 0:J.requiresFilterValue)>"u"?!0:J==null?void 0:J.requiresFilterValue)});let U;const V=F.find(W=>W.field===_),z=e.current.getColumn(_);V?U=F:t.disableMultipleColumnsFiltering?U=[AL({field:_,operator:z.filterOperators[0].value},e)]:U=[...F,AL({field:_,operator:z.filterOperators[0].value},e)],e.current.setFilterModel(D({},L,{items:U}))}e.current.showPreferences(Oh.filters,N,B)},[e,n,t.disableMultipleColumnsFiltering]),u=v.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=v.useCallback(_=>{const N=Qo(e);N.logicOperator!==_&&e.current.setFilterModel(D({},N,{logicOperator:_}),"changeLogicOperator")},[e]),f=v.useCallback(_=>{const N=Qo(e);Qg(N.quickFilterValues,_)||e.current.setFilterModel(D({},N,{quickFilterValues:[..._]}))},[e]),p=v.useCallback((_,N)=>{Qo(e)!==_&&(n.debug("Setting filter model"),e.current.updateControlState("filter",U7(_,t.disableMultipleColumnsFiltering,e),N),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),m=v.useCallback(_=>{const N=pz(_,t.disableMultipleColumnsFiltering,e),B=t.filterMode==="client"?y1t(N,e,t.disableEval):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:B,filterModel:N??Fx()});return D({},L,{filterModel:N})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:p,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:m};Qt(e,g,"public");const y=v.useCallback((_,N)=>{var F,U;const B=Qo(e);return!N.exportOnlyDirtyModels||t.filterModel!=null||((U=(F=t.initialState)==null?void 0:F.filter)==null?void 0:U.filterModel)!=null||!Qg(B,Fx())?D({},_,{filter:{filterModel:B}}):_},[e,t.filterModel,(I=(M=t.initialState)==null?void 0:M.filter)==null?void 0:I.filterModel]),b=v.useCallback((_,N)=>{var L;const B=(L=N.stateToRestore.filter)==null?void 0:L.filterModel;return B==null?_:(e.current.updateControlState("filter",U7(B,t.disableMultipleColumnsFiltering,e),"restoreState"),D({},_,{callbacks:[..._.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=v.useCallback((_,N)=>{var B;if(N===Oh.filters){const L=t.slots.filterPanel;return $.jsx(L,D({},(B=t.slotProps)==null?void 0:B.filterPanel))}return _},[t.slots.filterPanel,(R=t.slotProps)==null?void 0:R.filterPanel]),{getRowId:S}=t,P=Jl(wkt),E=v.useCallback(_=>{if(t.filterMode!=="client"||!_.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const N=Zd(e),B={},{isRowMatchingFilters:L}=_,F={},U={passingFilterItems:null,passingQuickFilterValues:null},V=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let G=0;G<V.length;G+=1){const J=V[G],K=S?S(J):J.id;L(J,void 0,U);const ne=b1t([U.passingFilterItems],[U.passingQuickFilterValues],_.filterModel,e,F);B[K]=ne}const z="auto-generated-group-footer-root";return N[z]&&(B[z]=!0),{filteredRowsLookup:B,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,S,P]);Ar(e,"columnMenu",o),Ar(e,"exportState",y),Ar(e,"restoreState",b),Ar(e,"preferencePanel",x),rO(e,Ih,"filtering",E),rO(e,Ih,"visibleRowsLookupCreation",bkt);const T=v.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const _=Qo(e),N=od(e),B=_.items.filter(L=>L.field&&N[L.field]);B.length<_.items.length&&e.current.setFilterModel(D({},_,{items:B}))},[e,n]),O=v.useCallback(_=>{_==="filtering"&&e.current.unstable_applyFilters()},[e]),k=v.useCallback(()=>{e.current.setState(_=>D({},_,{visibleRowsLookup:Rq(e,_)})),e.current.forceUpdate()},[e]);gt(e,"rowsSet",r),gt(e,"columnsChange",T),gt(e,"activeStrategyProcessorChange",O),gt(e,"rowExpansionChange",k),gt(e,"columnVisibilityModelChange",()=>{const _=Qo(e);_.quickFilterValues&&Sle(_)&&e.current.unstable_applyFilters()}),t1(()=>{e.current.unstable_applyFilters()}),xn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},Skt=e=>D({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Ckt=(e,t)=>{const n=Ro(e,"useGridFocus"),r=v.useRef(null),o=e.current.rootElementRef.current!==null,i=v.useCallback((k,M)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),M)},[e]),a=v.useCallback((k,M)=>{const I=Da(e);(I==null?void 0:I.id)===k&&(I==null?void 0:I.field)===M||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${k} and field=${M}`),D({},R,{tabIndex:{cell:{id:k,field:M},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:M},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(I&&i(I,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,M))))},[e,n,i]),s=v.useCallback((k,M={})=>{const I=Da(e);i(I,M),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${k}`),D({},R,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),l=v.useCallback((k,M={})=>{const I=Da(e);i(I,M),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${k}`),D({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=v.useCallback((k,M,I={})=>{const R=Da(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),I),e.current.setState(_=>D({},_,{tabIndex:{columnGroupHeader:{field:k,depth:M},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:M},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=v.useCallback(()=>ZT(e),[e]),d=v.useCallback((k,M,I)=>{let R=e.current.getColumnIndex(M);const _=ho(e),N=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode}),B=em(e),L=[].concat(B.top||[],N.rows,B.bottom||[]);let F=L.findIndex(W=>W.id===k);I==="right"?R+=1:I==="left"?R-=1:F+=1,R>=_.length?(F+=1,F<L.length&&(R=0)):R<0&&(F-=1,F>=0&&(R=_.length-1)),F=$c(F,0,L.length-1);const U=L[F];if(!U)return;const V=e.current.unstable_getCellColSpanInfo(U.id,R);V&&V.spannedByColSpan&&(I==="left"||I==="below"?R=V.leftVisibleCellIndex:I==="right"&&(R=V.rightVisibleCellIndex)),R=$c(R,0,_.length-1);const z=_[R];e.current.setCellFocus(U.id,z.field)},[e,t.pagination,t.paginationMode]),f=v.useCallback(({id:k,field:M})=>{e.current.setCellFocus(k,M)},[e]),p=v.useCallback((k,M)=>{M.key==="Enter"||M.key==="Tab"||M.key==="Shift"||nO(M.key)||e.current.setCellFocus(k.id,k.field)},[e]),m=v.useCallback(({field:k},M)=>{M.target===M.currentTarget&&e.current.setColumnHeaderFocus(k,M)},[e]),g=v.useCallback(({fields:k,depth:M},I)=>{if(I.target!==I.currentTarget)return;const R=ZT(e);R!==null&&R.depth===M&&k.includes(R.field)||e.current.setColumnGroupHeaderFocus(k[0],M,I)},[e]),y=v.useCallback((k,M)=>{var I,R;(R=(I=M.relatedTarget)==null?void 0:I.getAttribute("class"))!=null&&R.includes(ae.columnHeader)||(n.debug("Clearing focus"),e.current.setState(_=>D({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),b=v.useCallback(k=>{r.current=k},[]),x=v.useCallback(k=>{const M=r.current;r.current=null;const I=Da(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:M}))return;if(!I){M&&e.current.setCellFocus(M.id,M.field);return}if((M==null?void 0:M.id)===I.id&&(M==null?void 0:M.field)===I.field)return;const _=e.current.getCellElement(I.id,I.field);_!=null&&_.contains(k.target)||(M?e.current.setCellFocus(M.id,M.field):(e.current.setState(N=>D({},N,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(I,k)))},[e,i]),S=v.useCallback(k=>{if(k.cellMode==="view")return;const M=Da(e);((M==null?void 0:M.id)!==k.id||(M==null?void 0:M.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),P=v.useCallback(()=>{var M;const k=Da(e);if(k&&!e.current.getRow(k.id)){const I=(M=Da(e))==null?void 0:M.id;let R=null;if(typeof I<"u"){const _=e.current.getRowIndexRelativeToVisibleRows(I),N=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode}),B=N.rows[$c(_,0,N.rows.length-1)];R=(B==null?void 0:B.id)??null}e.current.setState(_=>D({},_,{focus:{cell:R===null?null:{id:R,field:k.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),E=Ze(()=>{const k=Da(e);if(!k)return;const M=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(M.rows.find(_=>_.id===k.id))return;const R=ho(e);e.current.setState(_=>D({},_,{tabIndex:{cell:{id:M.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},O={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Qt(e,T,"public"),Qt(e,O,"private"),v.useEffect(()=>{const k=mr(e.current.rootElementRef.current);return k.addEventListener("mouseup",x),()=>{k.removeEventListener("mouseup",x)}},[e,o,x]),gt(e,"columnHeaderBlur",y),gt(e,"cellDoubleClick",f),gt(e,"cellMouseDown",b),gt(e,"cellKeyDown",p),gt(e,"cellModeChange",S),gt(e,"columnHeaderFocus",m),gt(e,"columnGroupHeaderFocus",g),gt(e,"rowsSet",P),gt(e,"paginationModelChange",E)},Pkt=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},Ekt=e=>e===Ile||Pkt(e)!==null;function Tkt(e,t){const n=em(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const vR=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},bR=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function Okt(e,t,n,r){var s,l;const o=Zle(e);if(!((s=o[t])!=null&&s[n]))return t;const i=$le(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const c=i[a];if(!((l=o[c])!=null&&l[n]))return c;a+=r==="down"?1:-1}return t}const Ikt=(e,t)=>{const n=Ro(e,"useGridKeyboardNavigation"),r=tm(e,t).rows,o=nr(),i=t.unstable_listView,a=v.useMemo(()=>Tkt(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.headerFilters,l=v.useCallback((x,S,P="left",E="up")=>{const T=qf(e),O=e.current.unstable_getCellColSpanInfo(S,x);O&&O.spannedByColSpan&&(P==="left"?x=O.leftVisibleCellIndex:P==="right"&&(x=O.rightVisibleCellIndex));const k=i?uv(e.current.state).field:lb(e)[x],M=Okt(e,S,k,E),I=T.findIndex(R=>R.id===M);n.debug(`Navigating to cell row ${I}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:I}),e.current.setCellFocus(M,k)},[e,n,i]),c=v.useCallback((x,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const P=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(P,S)},[e,n]),u=v.useCallback((x,S)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const P=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(P,S)},[e,n]),d=v.useCallback((x,S,P)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:E}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus(E,S,P)},[e,n]),f=v.useCallback(x=>{var S;return(S=a[x])==null?void 0:S.id},[a]),p=v.useCallback((x,S)=>{const P=S.currentTarget.querySelector(`.${ae.columnHeaderTitleContainerContent}`);if(!!P&&P.contains(S.target)&&x.field!==fb.field)return;const T=e.current.getViewportPageSize(),O=x.field?e.current.getColumnIndex(x.field):0,k=a.length>0?0:null,M=a.length-1,I=0,R=ho(e).length-1,_=n1(e);let N=!0;switch(S.key){case"ArrowDown":{k!==null&&(s?u(O,S):l(O,f(k)));break}case"ArrowRight":{const B=bR({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});B!==null&&c(B,S);break}case"ArrowLeft":{const B=vR({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});B!==null&&c(B,S);break}case"ArrowUp":{_>0&&d(O,_-1,S);break}case"PageDown":{k!==null&&M!==null&&l(O,f(Math.min(k+T,M)));break}case"Home":{c(I,S);break}case"End":{c(R,S);break}case"Enter":{(S.ctrlKey||S.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:N=!1}N&&S.preventDefault()},[e,a.length,s,u,l,f,o,c,d]),m=v.useCallback((x,S)=>{const P=sPt(e)===x.field,E=lPt(e)===x.field;if(P||E||!nO(S.key))return;const T=e.current.getViewportPageSize(),O=x.field?e.current.getColumnIndex(x.field):0,k=0,M=a.length-1,I=0,R=ho(e).length-1;let _=!0;switch(S.key){case"ArrowDown":{const N=f(k);N!=null&&l(O,N);break}case"ArrowRight":{const N=bR({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});N!==null&&u(N,S);break}case"ArrowLeft":{const N=vR({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});N!==null?u(N,S):e.current.setColumnHeaderFilterFocus(x.field,S);break}case"ArrowUp":{c(O,S);break}case"PageDown":{M!==null&&l(O,f(Math.min(k+T,M)));break}case"Home":{u(I,S);break}case"End":{u(R,S);break}case" ":break;default:_=!1}_&&S.preventDefault()},[e,a.length,u,o,c,l,f]),g=v.useCallback((x,S)=>{const P=ZT(e);if(P===null)return;const{field:E,depth:T}=P,{fields:O,depth:k,maxDepth:M}=x,I=e.current.getViewportPageSize(),R=e.current.getColumnIndex(E),_=E?e.current.getColumnIndex(E):0,N=0,B=a.length-1,L=0,F=ho(e).length-1;let U=!0;switch(S.key){case"ArrowDown":{k===M-1?c(R,S):d(R,T+1,S);break}case"ArrowUp":{k>0&&d(R,T-1,S);break}case"ArrowRight":{const V=O.length-O.indexOf(E)-1;R+V+1<=F&&d(R+V+1,T,S);break}case"ArrowLeft":{const V=O.indexOf(E);R-V-1>=L&&d(R-V-1,T,S);break}case"PageDown":{B!==null&&l(_,f(Math.min(N+I,B)));break}case"Home":{d(L,T,S);break}case"End":{d(F,T,S);break}case" ":break;default:U=!1}U&&S.preventDefault()},[e,a.length,c,d,l,f]),y=v.useCallback((x,S)=>{if(r1(S))return;const P=e.current.getCellParams(x.id,x.field);if(P.cellMode===Zn.Edit||!nO(S.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:S,cell:P})||a.length===0)return;const T=e.current.getViewportPageSize(),O=i?()=>0:e.current.getColumnIndex,k=x.field?O(x.field):0,M=a.findIndex(F=>F.id===x.id),I=0,R=a.length-1,_=0,B=(i?[uv(e.current.state)]:ho(e)).length-1;let L=!0;switch(S.key){case"ArrowDown":{M<R&&l(k,f(M+1),o?"right":"left","down");break}case"ArrowUp":{M>I?l(k,f(M-1)):s?u(k,S):c(k,S);break}case"ArrowRight":{const F=bR({currentColIndex:k,firstColIndex:_,lastColIndex:B,isRtl:o});F!==null&&l(F,f(M),o?"left":"right");break}case"ArrowLeft":{const F=vR({currentColIndex:k,firstColIndex:_,lastColIndex:B,isRtl:o});F!==null&&l(F,f(M),o?"right":"left");break}case"Tab":{S.shiftKey&&k>_?l(k-1,f(M),"left"):!S.shiftKey&&k<B&&l(k+1,f(M),"right");break}case" ":{if(x.field===Wk)break;const U=x.colDef;if(U&&(U.field===j1t||Ekt(U.field)))break;!S.shiftKey&&M<R&&l(k,f(Math.min(M+T,R)));break}case"PageDown":{M<R&&l(k,f(Math.min(M+T,R)));break}case"PageUp":{const F=Math.max(M-T,I);F!==M&&F>=I?l(k,f(F)):c(k,S);break}case"Home":{S.ctrlKey||S.metaKey||S.shiftKey?l(_,f(I)):l(_,f(M));break}case"End":{S.ctrlKey||S.metaKey||S.shiftKey?l(B,f(R)):l(B,f(M));break}default:L=!1}L&&S.preventDefault()},[e,a,o,l,f,s,u,c,i]),b=v.useCallback((x,{event:S})=>S.key===" "?!1:x,[]);Ar(e,"canStartEditing",b),gt(e,"columnHeaderKeyDown",p),gt(e,"headerFilterKeyDown",m),gt(e,"columnGroupHeaderKeyDown",g),gt(e,"cellKeyDown",y)},kkt=(e,t)=>{var m,g;const n=Ro(e,"useGridRowCount"),r=Ye(e,vz),o=Ye(e,kg),i=Ye(e,L0),a=Ye(e,Di),s=Jl(()=>Di(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:kg,changeEvent:"rowCountChange"});const c={setRowCount:v.useCallback(y=>{o!==y&&(n.debug("Setting 'rowCount' to",y),e.current.setState(b=>D({},b,{pagination:D({},b.pagination,{rowCount:y})})))},[e,n,o])};Qt(e,c,"public");const u=v.useCallback((y,b)=>{var P,E;const x=kg(e);return!b.exportOnlyDirtyModels||t.rowCount!=null||((E=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:E.rowCount)!=null?D({},y,{pagination:D({},y.pagination,{rowCount:x})}):y},[e,t.rowCount,(g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.rowCount]),d=v.useCallback((y,b)=>{var S;const x=(S=b.stateToRestore.pagination)!=null&&S.rowCount?b.stateToRestore.pagination.rowCount:kg(e);return e.current.setState(P=>D({},P,{pagination:D({},P.pagination,{rowCount:x})})),y},[e]);Ar(e,"exportState",u),Ar(e,"restoreState",d);const f=v.useCallback(y=>{t.paginationMode==="client"||!s.current||y.pageSize!==s.current&&(s.current=y.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,s,o,e]);gt(e,"paginationModelChange",f),v.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const p=i.hasNextPage===!1;v.useEffect(()=>{p&&o===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,p,o,a])},Mkt=(e,t)=>{var l,c;const n=Ro(e,"useGridPaginationMeta"),r=Ye(e,L0);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:L0,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:v.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>D({},d,{pagination:D({},d.pagination,{meta:u})})))},[e,n,r])};Qt(e,i,"public");const a=v.useCallback((u,d)=>{var m,g;const f=L0(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.meta)!=null?D({},u,{pagination:D({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),s=v.useCallback((u,d)=>{var p;const f=(p=d.stateToRestore.pagination)!=null&&p.meta?d.stateToRestore.pagination.meta:L0(e);return e.current.setState(m=>D({},m,{pagination:D({},m.pagination,{meta:f})})),u},[e]);Ar(e,"exportState",a),Ar(e,"restoreState",s),v.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Akt=(e,t)=>{var i,a,s,l,c,u;const n=D({},Fle(t.autoPageSize),t.paginationModel??((a=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:a.paginationModel));jle(n.pageSize,t.signature);const r=t.rowCount??((l=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return D({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},$kt=(e,t)=>{Mkt(e,t),hkt(e,t),kkt(e,t)},Rkt=(e,t)=>{var n;return D({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},Dkt=(e,t)=>{var d;const n=Ro(e,"useGridPreferencesPanel"),r=v.useRef(),o=v.useRef(),i=v.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=Bx(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(p=>D({},p,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),a=v.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),s=v.useCallback(()=>{r.current=setTimeout(i,100)},[i]),l=v.useCallback((f,p,m)=>{n.debug("Opening Preferences Panel"),a(),e.current.setState(g=>D({},g,{preferencePanel:D({},g.preferencePanel,{open:!0,openedPanelValue:f,panelId:p,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,a,e]);Qt(e,{showPreferences:l,hidePreferences:s},"public");const c=v.useCallback((f,p)=>{var y;const m=Bx(e.current.state);return!p.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||m.open?D({},f,{preferencePanel:m}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=v.useCallback((f,p)=>{const m=p.stateToRestore.preferencePanel;return m!=null&&e.current.setState(g=>D({},g,{preferencePanel:m})),f},[e]);Ar(e,"exportState",c),Ar(e,"restoreState",u),v.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},NL=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},_kt=["id","field"],Lkt=["id","field"],Nkt=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:c}=t,u=L=>(...F)=>{t.editMode===Fc.Cell&&L(...F)},d=v.useCallback((L,F)=>{const U=e.current.getCellParams(L,F);if(!e.current.isCellEditable(U))throw new Error(`MUI X: The cell with id=${L} and field=${F} is not editable.`)},[e]),f=v.useCallback((L,F,U)=>{if(e.current.getCellMode(L,F)!==U)throw new Error(`MUI X: The cell with id=${L} and field=${F} is not in ${U} mode.`)},[e]),p=v.useCallback((L,F)=>{if(!L.isEditable||L.cellMode===Zn.Edit)return;const U=D({},L,{reason:lu.cellDoubleClick});e.current.publishEvent("cellEditStart",U,F)},[e]),m=v.useCallback((L,F)=>{if(L.cellMode===Zn.View||e.current.getCellMode(L.id,L.field)===Zn.View)return;const U=D({},L,{reason:Tl.cellFocusOut});e.current.publishEvent("cellEditStop",U,F)},[e]),g=v.useCallback((L,F)=>{if(L.cellMode===Zn.Edit){if(F.which===229)return;let U;if(F.key==="Escape"?U=Tl.escapeKeyDown:F.key==="Enter"?U=Tl.enterKeyDown:F.key==="Tab"&&(U=F.shiftKey?Tl.shiftTabKeyDown:Tl.tabKeyDown,F.preventDefault()),U){const V=D({},L,{reason:U});e.current.publishEvent("cellEditStop",V,F)}}else if(L.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:L,editMode:"cell"}))return;if(pce(F)?U=lu.printableKeyDown:mce(F)?U=lu.pasteKeyDown:F.key==="Enter"?U=lu.enterKeyDown:(F.key==="Backspace"||F.key==="Delete")&&(U=lu.deleteKeyDown),U){const z=D({},L,{reason:U,key:F.key});e.current.publishEvent("cellEditStart",z,F)}}},[e]),y=v.useCallback(L=>{const{id:F,field:U,reason:V}=L,z={id:F,field:U};(V===lu.printableKeyDown||V===lu.deleteKeyDown||V===lu.pasteKeyDown)&&(z.deleteValue=!0),e.current.startCellEditMode(z)},[e]),b=v.useCallback(L=>{const{id:F,field:U,reason:V}=L;e.current.runPendingEditCellValueMutation(F,U);let z;V===Tl.enterKeyDown?z="below":V===Tl.tabKeyDown?z="right":V===Tl.shiftTabKeyDown&&(z="left");const W=V==="escapeKeyDown";e.current.stopCellEditMode({id:F,field:U,ignoreModifications:W,cellToFocusAfter:z})},[e]),x=L=>async(...F)=>{var U;if(L){const{id:V,field:z}=F[0];((U=e.current.state.editRows[V][z])==null?void 0:U.error)||L(...F)}};gt(e,"cellDoubleClick",u(p)),gt(e,"cellFocusOut",u(m)),gt(e,"cellKeyDown",u(g)),gt(e,"cellEditStart",u(y)),gt(e,"cellEditStop",u(b)),lr(e,"cellEditStart",t.onCellEditStart),lr(e,"cellEditStop",x(t.onCellEditStop));const S=v.useCallback((L,F)=>{const U=jo(e.current.state);return U[L]&&U[L][F]?Zn.Edit:Zn.View},[e]),P=Ze(L=>{const F=L!==t.cellModesModel;c&&F&&c(L,{api:e.current}),!(t.cellModesModel&&F)&&(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))}),E=v.useCallback((L,F,U)=>{const V=D({},o.current);if(U!==null)V[L]=D({},V[L],{[F]:D({},U)});else{const z=V[L],W=Ue(z,[F].map(sv));V[L]=W,Object.keys(V[L]).length===0&&delete V[L]}P(V)},[P]),T=v.useCallback((L,F,U)=>{e.current.setState(V=>{const z=D({},V.editRows);return U!==null?z[L]=D({},z[L],{[F]:D({},U)}):(delete z[L][F],Object.keys(z[L]).length===0&&delete z[L]),D({},V,{editRows:z})}),e.current.forceUpdate()},[e]),O=v.useCallback(L=>{const{id:F,field:U}=L,V=Ue(L,_kt);d(F,U),f(F,U,Zn.View),E(F,U,D({mode:Zn.Edit},V))},[d,f,E]),k=Ze(async L=>{const{id:F,field:U,deleteValue:V,initialValue:z}=L,W=e.current.getCellValue(F,U);let G=W;V?G=NL(e.current.getColumn(U)):z&&(G=z);const J=e.current.getColumn(U),K=!!J.preProcessEditCellProps&&V;let ne={value:G,error:!1,isProcessingProps:K};if(T(F,U,ne),e.current.setCellFocus(F,U),K&&(ne=await Promise.resolve(J.preProcessEditCellProps({id:F,row:e.current.getRow(F),props:ne,hasChanged:G!==W})),e.current.getCellMode(F,U)===Zn.Edit)){const re=jo(e.current.state);T(F,U,D({},ne,{value:re[F][U].value,isProcessingProps:!1}))}}),M=v.useCallback(L=>{const{id:F,field:U}=L,V=Ue(L,Lkt);f(F,U,Zn.Edit),E(F,U,D({mode:Zn.View},V))},[f,E]),I=Ze(async L=>{const{id:F,field:U,ignoreModifications:V,cellToFocusAfter:z="none"}=L;f(F,U,Zn.Edit),e.current.runPendingEditCellValueMutation(F,U);const W=()=>{T(F,U,null),E(F,U,null),z!=="none"&&e.current.moveFocusToRelativeCell(F,U,z)};if(V){W();return}const G=jo(e.current.state),{error:J,isProcessingProps:K}=G[F][U];if(J||K){i.current[F][U].mode=Zn.Edit,E(F,U,{mode:Zn.Edit});return}const ne=e.current.getRowWithUpdatedValuesFromCellEditing(F,U);if(a){const re=oe=>{i.current[F][U].mode=Zn.Edit,E(F,U,{mode:Zn.Edit}),s&&s(oe)};try{const oe=e.current.getRow(F);Promise.resolve(a(ne,oe,{rowId:F})).then(fe=>{e.current.updateRows([fe]),W()}).catch(re)}catch(oe){re(oe)}}else e.current.updateRows([ne]),W()}),R=v.useCallback(async L=>{var oe,fe;const{id:F,field:U,value:V,debounceMs:z,unstable_skipValueParser:W}=L;d(F,U),f(F,U,Zn.Edit);const G=e.current.getColumn(U),J=e.current.getRow(F);let K=V;G.valueParser&&!W&&(K=G.valueParser(V,J,G,e));let ne=jo(e.current.state),re=D({},ne[F][U],{value:K,changeReason:z?"debouncedSetEditCellValue":"setEditCellValue"});if(G.preProcessEditCellProps){const se=V!==ne[F][U].value;re=D({},re,{isProcessingProps:!0}),T(F,U,re),re=await Promise.resolve(G.preProcessEditCellProps({id:F,row:J,props:re,hasChanged:se}))}return e.current.getCellMode(F,U)===Zn.View?!1:(ne=jo(e.current.state),re=D({},re,{isProcessingProps:!1}),re.value=G.preProcessEditCellProps?ne[F][U].value:K,T(F,U,re),ne=jo(e.current.state),!((fe=(oe=ne[F])==null?void 0:oe[U])!=null&&fe.error))},[e,d,f,T]),_=v.useCallback((L,F)=>{const U=e.current.getColumn(F),V=jo(e.current.state),z=e.current.getRow(L);if(!V[L]||!V[L][F])return e.current.getRow(L);const{value:W}=V[L][F];return U.valueSetter?U.valueSetter(W,z,U,e):D({},z,{[F]:W})},[e]),N={getCellMode:S,startCellEditMode:O,stopCellEditMode:M},B={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:_};Qt(e,N,"public"),Qt(e,B,"private"),v.useEffect(()=>{l&&P(l)},[l,P]),xn(()=>{const L=JT(e),F=i.current;i.current=yle(n),Object.entries(n).forEach(([U,V])=>{Object.entries(V).forEach(([z,W])=>{var K,ne;const G=((ne=(K=F[U])==null?void 0:K[z])==null?void 0:ne.mode)||Zn.View,J=L[U]??U;W.mode===Zn.Edit&&G===Zn.View?k(D({id:J,field:z},W)):W.mode===Zn.View&&G===Zn.Edit&&I(D({id:J,field:z},W))})})},[e,n,k,I])},Fkt=["id"],jkt=["id"],Bkt=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),a=v.useRef(),s=v.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=z=>(...W)=>{t.editMode===Fc.Row&&z(...W)},p=v.useCallback((z,W)=>{const G=e.current.getCellParams(z,W);if(!e.current.isCellEditable(G))throw new Error(`MUI X: The cell with id=${z} and field=${W} is not editable.`)},[e]),m=v.useCallback((z,W)=>{if(e.current.getRowMode(z)!==W)throw new Error(`MUI X: The row with id=${z} is not in ${W} mode.`)},[e]),g=v.useCallback(z=>{const W=jo(e.current.state);return Object.values(W[z]).some(G=>G.error)},[e]),y=v.useCallback((z,W)=>{if(!z.isEditable||e.current.getRowMode(z.id)===Vn.Edit)return;const G=e.current.getRowParams(z.id),J=D({},G,{field:z.field,reason:Ed.cellDoubleClick});e.current.publishEvent("rowEditStart",J,W)},[e]),b=v.useCallback(z=>{s.current=z},[]),x=v.useCallback((z,W)=>{z.isEditable&&e.current.getRowMode(z.id)!==Vn.View&&(s.current=null,a.current=setTimeout(()=>{var G;if(((G=s.current)==null?void 0:G.id)!==z.id){if(!e.current.getRow(z.id)||e.current.getRowMode(z.id)===Vn.View||g(z.id))return;const J=e.current.getRowParams(z.id),K=D({},J,{field:z.field,reason:Pl.rowFocusOut});e.current.publishEvent("rowEditStop",K,W)}}))},[e,g]);v.useEffect(()=>()=>{clearTimeout(a.current)},[]);const S=v.useCallback((z,W)=>{if(z.cellMode===Vn.Edit){if(W.which===229)return;let G;if(W.key==="Escape")G=Pl.escapeKeyDown;else if(W.key==="Enter")G=Pl.enterKeyDown;else if(W.key==="Tab"){const J=lb(e).filter(K=>e.current.getColumn(K).type===Vk?!0:e.current.isCellEditable(e.current.getCellParams(z.id,K)));if(W.shiftKey?z.field===J[0]&&(G=Pl.shiftTabKeyDown):z.field===J[J.length-1]&&(G=Pl.tabKeyDown),W.preventDefault(),!G){const K=J.findIndex(re=>re===z.field),ne=J[W.shiftKey?K-1:K+1];e.current.setCellFocus(z.id,ne)}}if(G){if(G!==Pl.escapeKeyDown&&g(z.id))return;const J=D({},e.current.getRowParams(z.id),{reason:G,field:z.field});e.current.publishEvent("rowEditStop",J,W)}}else if(z.isEditable){let G;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:z,editMode:"row"}))return;if(pce(W)||mce(W)?G=Ed.printableKeyDown:W.key==="Enter"?G=Ed.enterKeyDown:(W.key==="Backspace"||W.key==="Delete")&&(G=Ed.deleteKeyDown),G){const K=e.current.getRowParams(z.id),ne=D({},K,{field:z.field,reason:G});e.current.publishEvent("rowEditStart",ne,W)}}},[e,g]),P=v.useCallback(z=>{const{id:W,field:G,reason:J}=z,K={id:W,fieldToFocus:G};(J===Ed.printableKeyDown||J===Ed.deleteKeyDown)&&(K.deleteValue=!!G),e.current.startRowEditMode(K)},[e]),E=v.useCallback(z=>{const{id:W,reason:G,field:J}=z;e.current.runPendingEditCellValueMutation(W);let K;G===Pl.enterKeyDown?K="below":G===Pl.tabKeyDown?K="right":G===Pl.shiftTabKeyDown&&(K="left");const ne=G==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:ne,field:J,cellToFocusAfter:K})},[e]);gt(e,"cellDoubleClick",f(y)),gt(e,"cellFocusIn",f(b)),gt(e,"cellFocusOut",f(x)),gt(e,"cellKeyDown",f(S)),gt(e,"rowEditStart",f(P)),gt(e,"rowEditStop",f(E)),lr(e,"rowEditStart",t.onRowEditStart),lr(e,"rowEditStop",t.onRowEditStop);const T=v.useCallback(z=>{if(t.editMode===Fc.Cell)return Vn.View;const W=jo(e.current.state);return W[z]&&Object.keys(W[z]).length>0?Vn.Edit:Vn.View},[e,t.editMode]),O=Ze(z=>{const W=z!==t.rowModesModel;d&&W&&d(z,{api:e.current}),!(t.rowModesModel&&W)&&(r(z),o.current=z,e.current.publishEvent("rowModesModelChange",z))}),k=v.useCallback((z,W)=>{const G=D({},o.current);W!==null?G[z]=D({},W):delete G[z],O(G)},[O]),M=v.useCallback((z,W)=>{e.current.setState(G=>{const J=D({},G.editRows);return W!==null?J[z]=W:delete J[z],D({},G,{editRows:J})}),e.current.forceUpdate()},[e]),I=v.useCallback((z,W,G)=>{e.current.setState(J=>{const K=D({},J.editRows);return G!==null?K[z]=D({},K[z],{[W]:D({},G)}):(delete K[z][W],Object.keys(K[z]).length===0&&delete K[z]),D({},J,{editRows:K})}),e.current.forceUpdate()},[e]),R=v.useCallback(z=>{const{id:W}=z,G=Ue(z,Fkt);m(W,Vn.View),k(W,D({mode:Vn.Edit},G))},[m,k]),_=Ze(z=>{const{id:W,fieldToFocus:G,deleteValue:J,initialValue:K}=z,ne=Iu(e),re=ne.reduce((oe,fe)=>{if(!e.current.getCellParams(W,fe).isEditable)return oe;const ee=e.current.getColumn(fe);let ce=e.current.getCellValue(W,fe);return G===fe&&(J||K)&&(J?ce=NL(ee):K&&(ce=K)),oe[fe]={value:ce,error:!1,isProcessingProps:!!ee.preProcessEditCellProps&&J},oe},{});M(W,re),G&&e.current.setCellFocus(W,G),ne.filter(oe=>!!e.current.getColumn(oe).preProcessEditCellProps&&J).forEach(oe=>{const fe=e.current.getColumn(oe),se=e.current.getCellValue(W,oe),ee=J?NL(fe):K??se;Promise.resolve(fe.preProcessEditCellProps({id:W,row:e.current.getRow(W),props:re[oe],hasChanged:ee!==se})).then(ce=>{if(e.current.getRowMode(W)===Vn.Edit){const le=jo(e.current.state);I(W,oe,D({},ce,{value:le[W][oe].value,isProcessingProps:!1}))}})})}),N=v.useCallback(z=>{const{id:W}=z,G=Ue(z,jkt);m(W,Vn.Edit),k(W,D({mode:Vn.View},G))},[m,k]),B=Ze(z=>{const{id:W,ignoreModifications:G,field:J,cellToFocusAfter:K="none"}=z;e.current.runPendingEditCellValueMutation(W);const ne=()=>{K!=="none"&&J&&e.current.moveFocusToRelativeCell(W,J,K),M(W,null),k(W,null)};if(G){ne();return}const re=jo(e.current.state),oe=e.current.getRow(W);if(Object.values(re[W]).some(ee=>ee.isProcessingProps)){i.current[W].mode=Vn.Edit;return}if(g(W)){i.current[W].mode=Vn.Edit,k(W,{mode:Vn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const ee=ce=>{i.current[W].mode=Vn.Edit,k(W,{mode:Vn.Edit}),c&&c(ce)};try{Promise.resolve(l(se,oe,{rowId:W})).then(ce=>{e.current.updateRows([ce]),ne()}).catch(ee)}catch(ce){ee(ce)}}else e.current.updateRows([se]),ne()}),L=v.useCallback(z=>{const{id:W,field:G,value:J,debounceMs:K,unstable_skipValueParser:ne}=z;p(W,G);const re=e.current.getColumn(G),oe=e.current.getRow(W);let fe=J;re.valueParser&&!ne&&(fe=re.valueParser(J,oe,re,e));let se=jo(e.current.state),ee=D({},se[W][G],{value:fe,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||I(W,G,ee),new Promise(ce=>{const le=[];if(re.preProcessEditCellProps){const Q=ee.value!==se[W][G].value;ee=D({},ee,{isProcessingProps:!0}),I(W,G,ee);const ue=se[W],ge=Ue(ue,[G].map(sv)),xe=Promise.resolve(re.preProcessEditCellProps({id:W,row:oe,props:ee,hasChanged:Q,otherFieldsProps:ge})).then(me=>{if(e.current.getRowMode(W)===Vn.View){ce(!1);return}se=jo(e.current.state),me=D({},me,{isProcessingProps:!1}),me.value=re.preProcessEditCellProps?se[W][G].value:fe,I(W,G,me)});le.push(xe)}Object.entries(se[W]).forEach(([Q,ue])=>{if(Q===G)return;const ge=e.current.getColumn(Q);if(!ge.preProcessEditCellProps)return;ue=D({},ue,{isProcessingProps:!0}),I(W,Q,ue),se=jo(e.current.state);const xe=se[W],me=Ue(xe,[Q].map(sv)),be=Promise.resolve(ge.preProcessEditCellProps({id:W,row:oe,props:ue,hasChanged:!1,otherFieldsProps:me})).then(we=>{if(e.current.getRowMode(W)===Vn.View){ce(!1);return}we=D({},we,{isProcessingProps:!1}),I(W,Q,we)});le.push(be)}),Promise.all(le).then(()=>{e.current.getRowMode(W)===Vn.Edit?(se=jo(e.current.state),ce(!se[W][G].error)):ce(!1)})})},[e,p,I]),F=v.useCallback(z=>{const W=jo(e.current.state),G=e.current.getRow(z);if(!W[z])return e.current.getRow(z);let J=D({},G);return Object.entries(W[z]).forEach(([K,ne])=>{const re=e.current.getColumn(K);re.valueSetter?J=re.valueSetter(ne.value,J,re,e):J[K]=ne.value}),J},[e]),U={getRowMode:T,startRowEditMode:R,stopRowEditMode:N},V={setRowEditingEditCellValue:L,getRowWithUpdatedValuesFromRowEditing:F};Qt(e,U,"public"),Qt(e,V,"private"),v.useEffect(()=>{u&&O(u)},[u,O]),xn(()=>{const z=JT(e),W=i.current;i.current=yle(n);const G=new Set([...Object.keys(n),...Object.keys(W)]);Array.from(G).forEach(J=>{var oe;const K=n[J]??{mode:Vn.View},ne=((oe=W[J])==null?void 0:oe.mode)||Vn.View,re=z[J]??J;K.mode===Vn.Edit&&ne===Vn.View?_(D({id:re},K)):K.mode===Vn.View&&ne===Vn.Edit&&B(D({id:re},K))})},[e,n,_,B])},zkt=e=>D({},e,{editRows:{}}),Vkt=(e,t)=>{Nkt(e,t),Bkt(e,t);const n=v.useRef({}),{isCellEditable:r}=t,o=v.useCallback(f=>lv(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,p,m,g)=>{if(!m){g();return}if(n.current[f]||(n.current[f]={}),n.current[f][p]){const[x]=n.current[f][p];clearTimeout(x)}const y=()=>{const[x]=n.current[f][p];clearTimeout(x),g(),delete n.current[f][p]},b=setTimeout(()=>{g(),delete n.current[f][p]},m);n.current[f][p]=[b,y]};v.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([p,m])=>{Object.keys(m).forEach(g=>{const[y]=f[p][g];clearTimeout(y),delete f[p][g]})})}},[]);const a=v.useCallback((f,p)=>{if(n.current[f]){if(!p)Object.keys(n.current[f]).forEach(m=>{const[,g]=n.current[f][m];g()});else if(n.current[f][p]){const[,m]=n.current[f][p];m()}}},[]),s=v.useCallback(f=>{const{id:p,field:m,debounceMs:g}=f;return new Promise(y=>{i(p,m,g,async()=>{const b=t.editMode===Fc.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(p,m)===Zn.Edit){const x=await b(f);y(x)}})})},[e,t.editMode]),l=v.useCallback((f,p)=>t.editMode===Fc.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,p):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=v.useCallback((f,p)=>{var g;return((g=jo(e.current.state)[f])==null?void 0:g[p])??null},[e]),u={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:a};Qt(e,u,"public"),Qt(e,d,"private")},Hkt=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=LP({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),D({},e,{rows:Ele({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},Ukt=(e,t)=>{const n=Ro(e,"useGridRows"),r=tm(e,t),o=v.useRef(Date.now()),i=v.useRef(t.rowCount),a=la(),s=v.useCallback(V=>{const z=Zd(e)[V];if(z)return z;const W=e.current.getRowNode(V);return W&&lv(W)?{[Jg]:V}:null},[e]),l=t.getRowId,c=v.useCallback(V=>Jg in V?V[Jg]:l?l(V):V.id,[l]),u=v.useMemo(()=>r.rows.reduce((V,{id:z},W)=>(V[z]=W,V),{}),[r.rows]),d=v.useCallback(({cache:V,throttle:z})=>{const W=()=>{o.current=Date.now(),e.current.setState(J=>D({},J,{rows:Ele({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ei(e),previousTreeDepths:X7(e),previousGroupsToFetch:R1t(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.clear(),e.current.caches.rows=V,!z){W();return}const G=t.throttleRowsMs-(Date.now()-o.current);if(G>0){a.start(G,W);return}W()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),f=v.useCallback(V=>{n.debug(`Updating all rows, new length ${V.length}`);const z=LP({rows:V,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),W=e.current.caches.rows;z.rowsBeforePartialUpdates=W.rowsBeforePartialUpdates,d({cache:z,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),p=v.useCallback(V=>{if(t.signature===Xs.DataGrid&&V.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`));const z=J7(e,V,t.getRowId),W=Q7({updates:z,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:W,throttle:!0})},[t.signature,t.getRowId,d,e]),m=v.useCallback((V,z)=>{const W=J7(e,V,t.getRowId),G=Q7({updates:W,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:z??[]});d({cache:G,throttle:!1})},[t.getRowId,d,e]),g=v.useCallback(V=>{V!==t.loading&&(n.debug(`Setting loading to ${V}`),e.current.setState(z=>D({},z,{rows:D({},z.rows,{loading:V})})),e.current.caches.rows.loadingPropBeforePartialUpdates=V)},[t.loading,e,n]),y=v.useCallback(()=>{const V=JC(e),z=Zd(e);return new Map(V.map(W=>[W,z[W]??{}]))},[e]),b=v.useCallback(()=>Hk(e),[e]),x=v.useCallback(()=>JC(e),[e]),S=v.useCallback(V=>u[V],[u]),P=v.useCallback((V,z)=>{const W=e.current.getRowNode(V);if(!W)throw new Error(`MUI X: No row with id #${V} found.`);if(W.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const G=D({},W,{childrenExpanded:z});e.current.setState(J=>D({},J,{rows:D({},J.rows,{tree:D({},J.rows.tree,{[V]:G})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",G)},[e]),E=v.useCallback(V=>ei(e)[V]??null,[e]),T=v.useCallback(({skipAutoGeneratedRows:V=!0,groupId:z,applySorting:W,applyFiltering:G})=>{const J=ei(e);let K;if(W){const ne=J[z];if(!ne)return[];const re=ub(e);K=[];const oe=re.findIndex(fe=>fe===z)+1;for(let fe=oe;fe<re.length&&J[re[fe]].depth>ne.depth;fe+=1){const se=re[fe];(!V||!lv(J[se]))&&K.push(se)}}else K=mz(J,z,V);if(G){const ne=db(e);K=K.filter(re=>ne[re]!==!1)}return K},[e]),O=v.useCallback((V,z)=>{const W=e.current.getRowNode(V);if(!W)throw new Error(`MUI X: No row with id #${V} found.`);if(W.parent!==ti)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(W.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(G=>{const J=ei(G,e.current.instanceId)[ti],K=J.children,ne=K.findIndex(oe=>oe===V);if(ne===-1||ne===z)return G;n.debug(`Moving row ${V} to index ${z}`);const re=[...K];return re.splice(z,0,re.splice(ne,1)[0]),D({},G,{rows:D({},G.rows,{tree:D({},G.rows.tree,{[ti]:D({},J,{children:re})})})})}),e.current.publishEvent("rowsSet")},[e,n]),k=v.useCallback((V,z)=>{if(t.signature===Xs.DataGrid&&z.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`));if(z.length===0)return;if(cb(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const G=D({},ei(e)),J=D({},Zd(e)),K=D({},JT(e)),ne=G[ti],re=[...ne.children],oe=new Set;for(let se=0;se<z.length;se+=1){const ee=z[se],ce=Uk(ee,t.getRowId,"A row was provided without id when calling replaceRows()."),[le]=re.splice(V+se,1,ce);oe.has(le)||(delete J[le],delete K[le],delete G[le]);const Q={id:ce,depth:0,parent:ti,type:"leaf",groupingKey:null};J[ce]=ee,K[ce]=ce,G[ce]=Q,oe.add(ce)}G[ti]=D({},ne,{children:re});const fe=re.filter(se=>{var ee;return((ee=G[se])==null?void 0:ee.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=J,e.current.caches.rows.dataRowIdToIdLookup=K,e.current.setState(se=>D({},se,{rows:D({},se.rows,{dataRowIdToModelLookup:J,dataRowIdToIdLookup:K,dataRowIds:fe,tree:G})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),M={getRow:s,setLoading:g,getRowId:c,getRowModels:y,getRowsCount:b,getAllRowIds:x,setRows:f,updateRows:p,getRowNode:E,getRowIndexRelativeToVisibleRows:S,unstable_replaceRows:k},I={setRowIndex:O,setRowChildrenExpansion:P,getRowGroupChildren:T},R={updateServerRows:m},_=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let V;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?V=D({},e.current.caches.rows,{updates:{type:"full",rows:JC(e)}}):V=LP({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:V,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),N=Jl(()=>t.unstable_dataSource),B=v.useCallback(V=>{if(t.unstable_dataSource&&t.unstable_dataSource!==N.current){N.current=t.unstable_dataSource;return}V==="rowTreeCreation"&&_()},[_,N,t.unstable_dataSource]),L=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==D1t(e)&&_()},[e,_]);gt(e,"activeStrategyProcessorChange",B),gt(e,"strategyAvailabilityChange",L);const F=v.useCallback(()=>{e.current.setState(V=>{const z=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ei(V,e.current.instanceId),treeDepths:X7(V,e.current.instanceId),dataRowIds:JC(V,e.current.instanceId),dataRowIdToModelLookup:Zd(V,e.current.instanceId),dataRowIdToIdLookup:JT(V,e.current.instanceId)});return D({},V,{rows:D({},V.rows,z,{totalTopLevelRowCount:Ple({tree:z.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);Az(e,"hydrateRows",F),Qt(e,M,"public"),Qt(e,I,t.signature===Xs.DataGrid?"private":"public"),Qt(e,R,"private");const U=v.useRef(!0);v.useEffect(()=>{var J;if(U.current){U.current=!1;return}let V=!1;t.rowCount!==i.current&&(V=!0,i.current=t.rowCount);const z=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,W=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,G=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;z&&(W||(e.current.setState(K=>D({},K,{rows:D({},K.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),G||(e.current.setState(K=>D({},K,{rows:D({},K.rows,{totalRowCount:Math.max(t.rowCount||0,K.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,K.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!V)||(n.debug(`Updating all rows, new length ${(J=t.rows)==null?void 0:J.length}`),d({cache:LP({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,d,e])},Wkt=e=>{const t={[ti]:D({},L1t(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:ti,type:"leaf",groupingKey:null}}return{groupingName:Ih,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Gkt=({previousTree:e,actions:t})=>{const n=D({},e),r={};for(let a=0;a<t.remove.length;a+=1){const s=t.remove[a];r[s]=!0,delete n[s]}for(let a=0;a<t.insert.length;a+=1){const s=t.insert[a];n[s]={id:s,depth:0,parent:ti,type:"leaf",groupingKey:null}}const o=n[ti];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[ti]=D({},o,{children:i}),{groupingName:Ih,tree:n,treeDepths:{0:i.length},dataRowIds:i}},qkt=e=>e.updates.type==="full"?Wkt(e.updates.rows):Gkt({previousTree:e.previousTree,actions:e.updates.actions}),Kkt=e=>{rO(e,Ih,"rowTreeCreation",qkt)};class wR extends Error{}function Ykt(e,t){const n=v.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=v.useCallback(f=>{const p=e.current.getRow(f);if(!p)throw new wR(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:p}},[e]),o=v.useCallback((f,p)=>{const m=t.unstable_listView?uv(e.current.state):e.current.getColumn(p),g=e.current.getRow(f),y=e.current.getRowNode(f);if(!g||!y)throw new wR(`No row with id #${f} found`);const b=g[p],x=m!=null&&m.valueGetter?m.valueGetter(b,g,m,e):b,S=Da(e),P=wz(e),E={id:f,field:p,row:g,rowNode:y,colDef:m,cellMode:e.current.getCellMode(f,p),hasFocus:S!==null&&S.field===p&&S.id===f,tabIndex:P&&P.field===p&&P.id===f?0:-1,value:x,formattedValue:x,isEditable:!1,api:{}};return m&&m.valueFormatter&&(E.formattedValue=m.valueFormatter(x,g,m,e)),E.isEditable=m&&e.current.isCellEditable(E),E},[e,t.unstable_listView]),i=v.useCallback((f,p)=>{const m=e.current.getColumn(p),g=e.current.getRow(f);if(!g)throw new wR(`No row with id #${f} found`);return!m||!m.valueGetter?g[p]:m.valueGetter(g[m.field],g,m,e)},[e]),a=v.useCallback((f,p)=>{const m=p.field;if(!p||!p.valueGetter)return f[m];const g=f[p.field];return p.valueGetter(g,f,p,e)},[e]),s=v.useCallback((f,p)=>{const m=a(f,p);return!p||!p.valueFormatter?m:p.valueFormatter(m,f,p,e)},[e,a]),l=v.useCallback(f=>e.current.rootElementRef.current?nTt(e.current.rootElementRef.current,f):null,[e]),c=v.useCallback(f=>e.current.rootElementRef.current?rTt(e.current.rootElementRef.current,f):null,[e]),u=v.useCallback((f,p)=>e.current.rootElementRef.current?oTt(e.current.rootElementRef.current,{id:f,field:p}):null,[e]);Qt(e,{getCellValue:i,getCellParams:o,getCellElement:u,getRowValue:a,getRowFormattedValue:s,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const xce=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Xkt=(e,t)=>D({},e,{rowSelection:t.rowSelection?xce(t.rowSelectionModel)??[]:[]}),Qkt=(e,t)=>{var F,U,V,z,W,G,J;const n=Ro(e,"useGridSelection"),r=v.useCallback(K=>(...ne)=>{t.rowSelection&&K(...ne)},[t.rowSelection]),o=t.signature!==Xs.DataGrid&&(((F=t.rowSelectionPropagation)==null?void 0:F.parents)||((U=t.rowSelectionPropagation)==null?void 0:U.descendants)),i=v.useMemo(()=>xce(t.rowSelectionModel,Ms(e.current.state)),[e,t.rowSelectionModel]),a=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:Ms,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=bz(t),d=tm(e,t),f=Ye(e,ei),p=Ye(e,cb)>1,m=v.useCallback(K=>{let ne=K;const re=a.current??K,oe=e.current.isRowSelected(K);if(oe){const fe=Zg(e),se=fe.findIndex(ce=>ce===re),ee=fe.findIndex(ce=>ce===ne);if(se===ee)return;se>ee?ne=fe[ee+1]:ne=fe[ee-1]}a.current=K,e.current.selectRowRange({startId:re,endId:ne},!oe)},[e]),g=v.useCallback(K=>{if(t.signature===Xs.DataGrid&&!u&&Array.isArray(K)&&K.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
-`));Ms(e.current.state)!==K&&(n.debug("Setting selection model"),e.current.setState(re=>D({},re,{rowSelection:t.rowSelection?K:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),y=v.useCallback(K=>Ms(e.current.state).includes(K),[e]),b=v.useCallback(K=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(K)))return!1;const ne=e.current.getRowNode(K);return!((ne==null?void 0:ne.type)==="footer"||(ne==null?void 0:ne.type)==="pinnedRow")},[e,t.rowSelection,c]),x=v.useCallback(()=>sCt(e),[e]),S=v.useCallback((K,ne=!0,re=!1)=>{var oe,fe,se,ee,ce,le;if(e.current.isRowSelectable(K))if(a.current=K,re){n.debug(`Setting selection for row ${K}`);const Q=[],ue=ge=>{Q.push(ge)};ne&&(ue(K),o&&ZC(e,f,K,((oe=t.rowSelectionPropagation)==null?void 0:oe.descendants)??!1,((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)??!1,ue)),e.current.setRowSelectionModel(Q)}else{n.debug(`Toggling selection for row ${K}`);const Q=Ms(e.current.state),ue=new Set(Q);ue.delete(K);const ge=be=>{ue.add(be)},xe=be=>{ue.delete(be)};ne?(ge(K),o&&ZC(e,f,K,((se=t.rowSelectionPropagation)==null?void 0:se.descendants)??!1,((ee=t.rowSelectionPropagation)==null?void 0:ee.parents)??!1,ge)):o&&Z7(e,f,K,((ce=t.rowSelectionPropagation)==null?void 0:ce.descendants)??!1,((le=t.rowSelectionPropagation)==null?void 0:le.parents)??!1,xe),(ue.size<2||u)&&e.current.setRowSelectionModel(Array.from(ue))}},[e,n,o,f,(V=t.rowSelectionPropagation)==null?void 0:V.descendants,(z=t.rowSelectionPropagation)==null?void 0:z.parents,u]),P=v.useCallback((K,ne=!0,re=!1)=>{n.debug("Setting selection for several rows");const oe=K.filter(ee=>e.current.isRowSelectable(ee));let fe;if(re){if(ne){if(fe=new Set(oe),o){const ce=le=>{fe.add(le)};oe.forEach(le=>{var Q,ue;ZC(e,f,le,((Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)??!1,((ue=t.rowSelectionPropagation)==null?void 0:ue.parents)??!1,ce)})}}else fe=new Set;const ee=ku(e);if(fe.size===Object.keys(ee).length&&Array.from(fe).every(ce=>ee[ce]===ce))return}else{fe=new Set(Object.values(ku(e)));const ee=le=>{fe.add(le)},ce=le=>{fe.delete(le)};oe.forEach(le=>{var Q,ue,ge,xe;ne?(fe.add(le),o&&ZC(e,f,le,((Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)??!1,((ue=t.rowSelectionPropagation)==null?void 0:ue.parents)??!1,ee)):(ce(le),o&&Z7(e,f,le,((ge=t.rowSelectionPropagation)==null?void 0:ge.descendants)??!1,((xe=t.rowSelectionPropagation)==null?void 0:xe.parents)??!1,ce))})}(fe.size<2||u)&&e.current.setRowSelectionModel(Array.from(fe))},[n,o,u,e,f,(W=t.rowSelectionPropagation)==null?void 0:W.descendants,(G=t.rowSelectionPropagation)==null?void 0:G.parents]),E=v.useCallback(({startId:K,endId:ne},re=!0,oe=!1)=>{if(!e.current.getRow(K)||!e.current.getRow(ne))return;n.debug(`Expanding selection from row ${K} to row ${ne}`);const fe=Zg(e),se=fe.indexOf(K),ee=fe.indexOf(ne),[ce,le]=se>ee?[ee,se]:[se,ee],Q=fe.slice(ce,le+1);e.current.selectRows(Q,re,oe)},[e,n]),T={selectRow:S,setRowSelectionModel:g,getSelectedRows:x,isRowSelected:y,isRowSelectable:b},O={selectRows:P,selectRowRange:E};Qt(e,T,"public"),Qt(e,O,t.signature===Xs.DataGrid?"private":"public");const k=v.useCallback((K=!1)=>{var le;const ne=Ms(e.current.state),re=Zd(e),oe=db(e),fe=D({},ku(e)),se=Q=>t.filterMode==="server"?!re[Q]:oe[Q]!==!0;let ee=!1;ne.forEach(Q=>{var ge;if(se(Q)){if(t.keepNonExistentRowsSelected)return;delete fe[Q],ee=!0;return}if(!((ge=t.rowSelectionPropagation)!=null&&ge.parents))return;const ue=f[Q];if(ue.type==="group"){if(ue.isAutoGenerated){delete fe[Q],ee=!0;return}ue.children.every(me=>oe[me]===!1)||(delete fe[Q],ee=!0)}});const ce=p&&((le=t.rowSelectionPropagation)==null?void 0:le.parents)&&Object.keys(fe).length>0;if(ee||ce&&!K){const Q=Object.values(fe);ce?e.current.selectRows(Q,!0,!0):e.current.setRowSelectionModel(Q)}},[e,p,(J=t.rowSelectionPropagation)==null?void 0:J.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),M=v.useCallback((K,ne)=>{const re=ne.metaKey||ne.ctrlKey,oe=!s&&!re&&!nOt(ne),fe=!u||oe,se=e.current.isRowSelected(K);fe?e.current.selectRow(K,oe?!0:!se,!0):e.current.selectRow(K,!se,!1)},[e,u,s]),I=v.useCallback((K,ne)=>{var fe;if(l)return;const re=(fe=ne.target.closest(`.${ae.cell}`))==null?void 0:fe.getAttribute("data-field");if(re===fb.field||re===Wk)return;if(re){const se=e.current.getColumn(re);if((se==null?void 0:se.type)===Vk)return}e.current.getRowNode(K.id).type!=="pinnedRow"&&(ne.shiftKey&&u?m(K.id):M(K.id,ne))},[l,u,e,m,M]),R=v.useCallback((K,ne)=>{var re;u&&ne.shiftKey&&((re=window.getSelection())==null||re.removeAllRanges())},[u]),_=v.useCallback((K,ne)=>{u&&ne.nativeEvent.shiftKey?m(K.id):e.current.selectRow(K.id,K.value,!u)},[e,m,u]),N=v.useCallback(K=>{const ne=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?zle(e):Zg(e);e.current.selectRows(ne,K.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),B=v.useCallback((K,ne)=>{if(e.current.getCellMode(K.id,K.field)!==Zn.Edit&&!r1(ne)){if(nO(ne.key)&&ne.shiftKey){const re=Da(e);if(re&&re.id!==K.id){ne.preventDefault();const oe=e.current.isRowSelected(re.id);if(!u){e.current.selectRow(re.id,!oe,!0);return}const fe=e.current.getRowIndexRelativeToVisibleRows(re.id),se=e.current.getRowIndexRelativeToVisibleRows(K.id);let ee,ce;fe>se?oe?(ee=se,ce=fe-1):(ee=se,ce=fe):oe?(ee=fe+1,ce=se):(ee=fe,ce=se);const le=d.rows.slice(ee,ce+1).map(Q=>Q.id);e.current.selectRows(le,!oe);return}}if(ne.key===" "&&ne.shiftKey){ne.preventDefault(),M(K.id,ne);return}String.fromCharCode(ne.keyCode)==="A"&&(ne.ctrlKey||ne.metaKey)&&(ne.preventDefault(),P(e.current.getAllRowIds(),!0))}},[e,M,P,d.rows,u]);gt(e,"sortedRowsSet",r(()=>k(!0))),gt(e,"filteredRowsSet",r(k)),gt(e,"rowClick",r(I)),gt(e,"rowSelectionCheckboxChange",r(_)),gt(e,"headerSelectionCheckboxChange",N),gt(e,"cellMouseDown",r(R)),gt(e,"cellKeyDown",r(B)),v.useEffect(()=>{i!==void 0&&e.current.setRowSelectionModel(i)},[e,i,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const L=i!=null;v.useEffect(()=>{if(L||!t.rowSelection)return;const K=Ms(e.current.state);if(b){const ne=K.filter(re=>b(re));ne.length<K.length&&e.current.setRowSelectionModel(ne)}},[e,b,L,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||L)return;const K=Ms(e.current.state);!u&&K.length>1&&e.current.setRowSelectionModel([])},[e,u,s,L,t.rowSelection]),v.useEffect(()=>{r(k)},[k,r])},Jkt=e=>{const{classes:t}=e;return v.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Sn,t),[t])},Zkt=(e,t)=>{const n={classes:t.classes},r=Jkt(n),o=v.useCallback(i=>{const a=D({},fb,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[du]!=null;return s&&!l?(i.lookup[du]=a,i.orderedFields=[du,...i.orderedFields]):!s&&l?(delete i.lookup[du],i.orderedFields=i.orderedFields.filter(c=>c!==du)):s&&l&&(i.lookup[du]=D({},a,i.lookup[du])),i},[e,r,t.checkboxSelection]);Ar(e,"hydrateColumns",o)},eMt=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return D({},e,{sorting:{sortModel:ple(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},tMt=(e,t)=>{var E,T;const n=Ro(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ks,changeEvent:"sortModelChange"});const r=v.useCallback((O,k)=>{const M=ks(e),I=M.findIndex(_=>_.field===O);let R=[...M];return I>-1?(k==null?void 0:k.sort)==null?R.splice(I,1):R.splice(I,1,k):R=[...M,k],R},[e]),o=v.useCallback((O,k)=>{const I=ks(e).find(R=>R.field===O.field);if(I){const R=k===void 0?V7(O.sortingOrder??t.sortingOrder,I.sort):k;return R===void 0?void 0:D({},I,{sort:R})}return{field:O.field,sort:k===void 0?V7(O.sortingOrder??t.sortingOrder):k}},[e,t.sortingOrder]),i=v.useCallback((O,k)=>k==null||k.sortable===!1||t.disableColumnSorting?O:(k.sortingOrder||t.sortingOrder).some(I=>!!I)?[...O,"columnMenuSortItem"]:O,[t.sortingOrder,t.disableColumnSorting]),a=v.useCallback(()=>{e.current.setState(O=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),D({},O,{sorting:D({},O.sorting,{sortedRows:mz(ei(e),ti,!1)})});const k=ks(O,e.current.instanceId),M=o1t(k,e),I=e.current.applyStrategyProcessor("sorting",{sortRowList:M});return D({},O,{sorting:D({},O.sorting,{sortedRows:I})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),s=v.useCallback(O=>{ks(e)!==O&&(n.debug("Setting sort model"),e.current.setState(z7(O,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=v.useCallback((O,k,M)=>{const I=e.current.getColumn(O),R=o(I,k);let _;!M||t.disableMultipleColumnsSorting?_=(R==null?void 0:R.sort)==null?[]:[R]:_=r(I.field,R),e.current.setSortModel(_)},[e,r,o,t.disableMultipleColumnsSorting]),c=v.useCallback(()=>ks(e),[e]),u=v.useCallback(()=>gz(e).map(k=>k.model),[e]),d=v.useCallback(()=>ub(e),[e]),f=v.useCallback(O=>e.current.getSortedRowIds()[O],[e]);Qt(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:s,sortColumn:l,applySorting:a},"public");const m=v.useCallback((O,k)=>{var R,_;const M=ks(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||((_=(R=t.initialState)==null?void 0:R.sorting)==null?void 0:_.sortModel)!=null||M.length>0?D({},O,{sorting:{sortModel:M}}):O},[e,t.sortModel,(T=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:T.sortModel]),g=v.useCallback((O,k)=>{var I;const M=(I=k.stateToRestore.sorting)==null?void 0:I.sortModel;return M==null?O:(e.current.setState(z7(M,t.disableMultipleColumnsSorting)),D({},O,{callbacks:[...O.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),y=v.useCallback(O=>{const k=ei(e),M=k[ti],I=O.sortRowList?O.sortRowList(M.children.map(R=>k[R])):[...M.children];return M.footerId!=null&&I.push(M.footerId),I},[e]);Ar(e,"exportState",m),Ar(e,"restoreState",g),rO(e,Ih,"sorting",y);const b=v.useCallback(({field:O,colDef:k},M)=>{if(!k.sortable||t.disableColumnSorting)return;const I=M.shiftKey||M.metaKey||M.ctrlKey;l(O,void 0,I)},[l,t.disableColumnSorting]),x=v.useCallback(({field:O,colDef:k},M)=>{!k.sortable||t.disableColumnSorting||M.key==="Enter"&&!M.ctrlKey&&!M.metaKey&&l(O,void 0,M.shiftKey)},[l,t.disableColumnSorting]),S=v.useCallback(()=>{const O=ks(e),k=od(e);if(O.length>0){const M=O.filter(I=>k[I.field]);M.length<O.length&&e.current.setSortModel(M)}},[e]),P=v.useCallback(O=>{O==="sorting"&&e.current.applySorting()},[e]);Ar(e,"columnMenu",i),gt(e,"columnHeaderClick",b),gt(e,"columnHeaderKeyDown",x),gt(e,"rowsSet",e.current.applySorting),gt(e,"columnsChange",S),gt(e,"activeStrategyProcessorChange",P),t1(()=>{e.current.applySorting()}),xn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Dq(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const nMt=(e,t)=>{const n=nr(),r=Ro(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=Ye(e,qf),s=v.useCallback(d=>{var b;const f=Ci(e.current.state),p=Hk(e),m=t.unstable_listView?[uv(e.current.state)]:ho(e);if(!(d.rowIndex==null)&&p===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let y={};if(d.colIndex!==void 0){const x=Gf(e);let S;if(typeof d.rowIndex<"u"){const P=(b=a[d.rowIndex])==null?void 0:b.id,E=e.current.unstable_getCellColSpanInfo(P,d.colIndex);E&&!E.spannedByColSpan&&(S=E.cellProps.width)}typeof S>"u"&&(S=m[d.colIndex].computedWidth),y.left=Dq({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:S,elementOffset:x[d.colIndex]})}if(d.rowIndex!==void 0){const x=pb(e.current.state),S=CCt(e),P=PCt(e),E=t.pagination?d.rowIndex-S*P:d.rowIndex,T=x.positions[E+1]?x.positions[E+1]-x.positions[E]:x.currentPageTotalHeight-x.positions[E];y.top=Dq({containerSize:f.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:T,elementOffset:x.positions[E]})}return y=e.current.unstable_applyPipeProcessors("scrollToIndexes",y,d),typeof y.left!==void 0||typeof y.top!==void 0?(e.current.scroll(y),!0):!1},[r,e,i,t.pagination,a,t.unstable_listView]),l=v.useCallback(d=>{if(i.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!==void 0&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=v.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Qt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:c},"public")};function rMt(e,t){lr(e,"columnHeaderClick",t.onColumnHeaderClick),lr(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),lr(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),lr(e,"columnHeaderOver",t.onColumnHeaderOver),lr(e,"columnHeaderOut",t.onColumnHeaderOut),lr(e,"columnHeaderEnter",t.onColumnHeaderEnter),lr(e,"columnHeaderLeave",t.onColumnHeaderLeave),lr(e,"cellClick",t.onCellClick),lr(e,"cellDoubleClick",t.onCellDoubleClick),lr(e,"cellKeyDown",t.onCellKeyDown),lr(e,"preferencePanelClose",t.onPreferencePanelClose),lr(e,"preferencePanelOpen",t.onPreferencePanelOpen),lr(e,"menuOpen",t.onMenuOpen),lr(e,"menuClose",t.onMenuClose),lr(e,"rowDoubleClick",t.onRowDoubleClick),lr(e,"rowClick",t.onRowClick),lr(e,"stateChange",t.onStateChange)}function oMt(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const FL={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Fc.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},rg={width:0,height:0},iMt={isReady:!1,root:rg,viewportOuterSize:rg,viewportInnerSize:rg,contentSize:rg,minimumSize:rg,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},aMt=e=>D({},e,{dimensions:iMt});function sMt(e,t){const n=Ro(e,"useResizeContainer"),r=v.useRef(!1),o=v.useRef(rg),i=Ye(e,Ci),a=Ye(e,pb),s=Ye(e,e1),l=Ye(e,ZS),c=v.useMemo(()=>Ole(t.rowHeight,FL.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),p=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),m=cMt(uz(e),6),g=Cz(e,t),y=s.left.reduce((F,U)=>F+U.computedWidth,0),b=s.right.reduce((F,U)=>F+U.computedWidth,0),[x,S]=v.useState(),P=v.useMemo(()=>oMt(S,t.resizeThrottleMs),[t.resizeThrottleMs]);v.useEffect(()=>P.clear,[P]);const E=v.useRef(),T=()=>e.current.state.dimensions,O=Ze(F=>{e.current.setState(U=>D({},U,{dimensions:F}))}),k=v.useCallback(()=>{const F=e.current.mainElementRef.current;if(!F)return;const U=ba(F).getComputedStyle(F),V={width:parseFloat(U.width)||0,height:parseFloat(U.height)||0};(!E.current||!_q(E.current,V))&&(e.current.publishEvent("resize",V),E.current=V)},[e]),M=v.useCallback(()=>{const F=Ci(e.current.state);if(!F.isReady)return 0;const U=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const z=Zk(e),W=z.lastRowIndex-z.firstRowIndex;return Math.min(W-1,U.rows.length)}const V=Math.floor(F.viewportInnerSize.height/u);return Math.min(V,U.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),I=v.useCallback(()=>{var le,Q;const F=e.current.rootElementRef.current,U=F1t(e),V=lMt(F,m,t.scrollbarSize),z=g+U.top,W=U.bottom,J={width:m-y-b,height:a.currentPageTotalHeight};let K,ne,re=!1,oe=!1;if(t.autoHeight)oe=!1,re=Math.round(m)>Math.round(o.current.width),K={width:o.current.width,height:z+W+J.height},ne={width:Math.max(0,K.width-(oe?V:0)),height:Math.max(0,K.height-(re?V:0))};else{K={width:o.current.width,height:o.current.height},ne={width:Math.max(0,K.width-y-b),height:Math.max(0,K.height-z-W)};const ue=J,ge=ne,xe=ue.width>ge.width,me=ue.height>ge.height;(xe||me)&&(oe=me,re=ue.width+(oe?V:0)>ge.width,re&&(oe=ue.height+V>ge.height)),oe&&(ne.width-=V),re&&(ne.height-=V)}const fe=Math.max(K.width,m+(oe?V:0)),se={width:m,height:z+J.height+W},ee={isReady:!0,root:o.current,viewportOuterSize:K,viewportInnerSize:ne,contentSize:J,minimumSize:se,hasScrollX:re,hasScrollY:oe,scrollbarSize:V,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:p,rowWidth:fe,rowHeight:u,columnsTotalWidth:m,leftPinnedWidth:y,rightPinnedWidth:b,headersTotalHeight:g,topContainerHeight:z,bottomContainerHeight:W},ce=e.current.state.dimensions;O(ee),_q(ee.viewportInnerSize,ce.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",ee.viewportInnerSize),(Q=(le=e.current).updateRenderContext)==null||Q.call(le)},[e,O,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u,d,f,p,m,g,y,b]),R={resize:k,getRootDimensions:T},_={updateDimensions:I,getViewportPageSize:M};Qt(e,R,"public"),Qt(e,_,"private"),xn(()=>{x&&(I(),e.current.publishEvent("debouncedResize",o.current))},[e,x,I]);const N=e.current.rootElementRef.current;xn(()=>{if(!N)return;const F=(U,V)=>N.style.setProperty(U,V);F("--DataGrid-width",`${i.viewportOuterSize.width}px`),F("--DataGrid-hasScrollX",`${Number(i.hasScrollX)}`),F("--DataGrid-hasScrollY",`${Number(i.hasScrollY)}`),F("--DataGrid-scrollbarSize",`${i.scrollbarSize}px`),F("--DataGrid-rowWidth",`${i.rowWidth}px`),F("--DataGrid-columnsTotalWidth",`${i.columnsTotalWidth}px`),F("--DataGrid-leftPinnedWidth",`${i.leftPinnedWidth}px`),F("--DataGrid-rightPinnedWidth",`${i.rightPinnedWidth}px`),F("--DataGrid-headerHeight",`${i.headerHeight}px`),F("--DataGrid-headersTotalHeight",`${i.headersTotalHeight}px`),F("--DataGrid-topContainerHeight",`${i.topContainerHeight}px`),F("--DataGrid-bottomContainerHeight",`${i.bottomContainerHeight}px`),F("--height",`${i.rowHeight}px`)},[N,i]);const B=v.useRef(!0),L=v.useCallback(F=>{o.current=F;const U=/jsdom|HappyDOM/.test(window.navigator.userAgent);if(F.height===0&&!r.current&&!t.autoHeight&&!U&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
+`}${a}`.trim()}function IK(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function FAt(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{IK(e)}):IK(e)}function jAt(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const BAt=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!Fkt(a)||jAt(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Ba(e);if(c){const u=e.current.getCellParams(c.id,c.field);s=Tue(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(FAt(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);Uce(e,e.current.rootElementRef,"keydown",i),ar(e,"clipboardCopy",t.onClipboardCopy)},zAt=e=>D({},e,{columnMenu:{open:!1}}),VAt=e=>{const t=Fo(e,"useGridColumnMenu"),n=v.useCallback(a=>{const s=cE(e.current.state),l={open:!0,field:a};(l.open!==s.open||l.field!==s.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===a?u:(t.debug("Opening Column Menu"),D({},u,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=cE(e.current.state);if(a.field){const c=vd(e),u=Qs(e),d=zu(e);let f=a.field;if(c[f]||(f=d[0]),u[f]===!1){const p=d.filter(g=>g===f?!0:u[g]!==!1),m=p.indexOf(f);f=p[m+1]||p[m-1]}e.current.setColumnHeaderFocus(f)}const s={open:!1,field:void 0};(s.open!==a.open||s.field!==a.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),D({},c,{columnMenu:s}))),e.current.forceUpdate())},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const s=cE(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Qt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),gt(e,"columnResizeStart",r),gt(e,"virtualScrollerWheel",e.current.hideColumnMenu),gt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},HAt=(e,t,n)=>{var o,i,a;const r=wg({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((a=(i=t.initialState)==null?void 0:i.columns)==null?void 0:a.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return D({},e,{columns:r,pinnedColumns:e.pinnedColumns??pN})};function UAt(e,t){var I,R;const n=Fo(e,"useGridColumns"),r=v.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Qs,changeEvent:"columnVisibilityModelChange"});const o=v.useCallback(_=>{var L,j;n.debug("Updating columns state."),e.current.setState(kK(_)),e.current.publishEvent("columnsChange",_.orderedFields),(j=(L=e.current).updateRenderContext)==null||j.call(L),e.current.forceUpdate()},[n,e]),i=v.useCallback(_=>vd(e)[_],[e]),a=v.useCallback(()=>nc(e),[e]),s=v.useCallback(()=>wo(e),[e]),l=v.useCallback((_,L=!0)=>(L?wo(e):nc(e)).findIndex(N=>N.field===_),[e]),c=v.useCallback(_=>{const L=l(_);return cp(e)[L]},[e,l]),u=v.useCallback(_=>{var j,N;Qs(e)!==_&&(e.current.setState(F=>D({},F,{columns:wg({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),(N=(j=e.current).updateRenderContext)==null||N.call(j),e.current.forceUpdate())},[e]),d=v.useCallback(_=>{const L=wg({apiRef:e,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(L)},[e,o]),f=v.useCallback((_,L)=>{const j=Qs(e),N=j[_]??!0;if(L!==N){const F=D({},j,{[_]:L});e.current.setColumnVisibilityModel(F)}},[e]),p=v.useCallback(_=>zu(e).findIndex(j=>j===_),[e]),m=v.useCallback((_,L)=>{const j=zu(e),N=p(_);if(N===L)return;n.debug(`Moving column ${_} to index ${L}`);const F=[...j],U=F.splice(N,1)[0];F.splice(L,0,U),o(D({},zc(e.current.state),{orderedFields:F}));const z={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:N};e.current.publishEvent("columnIndexChange",z)},[e,n,o,p]),g=v.useCallback((_,L)=>{n.debug(`Updating column ${_} width to ${L}`);const j=zc(e.current.state),N=j.lookup[_],F=D({},N,{width:L,hasBeenResized:!0});o(mN(D({},j,{lookup:D({},j.lookup,{[_]:F})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),colDef:F,width:L})},[e,n,o]),y={getColumn:i,getAllColumns:a,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:p,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:g},b={setColumnIndex:m};Qt(e,y,"public"),Qt(e,b,t.signature===il.DataGrid?"private":"public");const x=v.useCallback((_,L)=>{var V,W;const j={},N=Qs(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((W=(V=t.initialState)==null?void 0:V.columns)==null?void 0:W.columnVisibilityModel)??{}).length>0||Object.keys(N).length>0)&&(j.columnVisibilityModel=N),j.orderedFields=zu(e);const U=nc(e),z={};return U.forEach(G=>{if(G.hasBeenResized){const J={};tue.forEach(K=>{let ne=G[K];ne===1/0&&(ne=-1),J[K]=ne}),z[G.field]=J}}),Object.keys(z).length>0&&(j.dimensions=z),D({},_,{columns:j})},[e,t.columnVisibilityModel,(I=t.initialState)==null?void 0:I.columns]),S=v.useCallback((_,L)=>{var U;const j=(U=L.stateToRestore.columns)==null?void 0:U.columnVisibilityModel,N=L.stateToRestore.columns;if(j==null&&N==null)return _;const F=wg({apiRef:e,columnsToUpsert:[],initialState:N,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1});return e.current.setState(kK(F)),N!=null&&e.current.publishEvent("columnsChange",F.orderedFields),_},[e]),P=v.useCallback((_,L)=>{var j;if(L===Wh.columns){const N=t.slots.columnsPanel;return $.jsx(N,D({},(j=t.slotProps)==null?void 0:j.columnsPanel))}return _},[t.slots.columnsPanel,(R=t.slotProps)==null?void 0:R.columnsPanel]),E=v.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);$r(e,"columnMenu",E),$r(e,"exportState",x),$r(e,"restoreState",S),$r(e,"preferencePanel",P);const T=v.useRef(null);gt(e,"viewportInnerSizeChange",_=>{T.current!==_.width&&(T.current=_.width,o(mN(zc(e.current.state),e.current.getRootDimensions())))});const k=v.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const _=wg({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(_)},[e,n,o]);bV(e,"hydrateColumns",k);const M=v.useRef(!0);v.useEffect(()=>{if(M.current){M.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const _=wg({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(_)},[n,e,o,t.columns]),v.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function kK(e){return t=>D({},t,{columns:e})}const WAt=(e,t)=>{var n;return D({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},GAt=(e,t)=>{var s;const n=Fo(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Gg,changeEvent:"densityChange"});const o={setDensity:ot(l=>{Gg(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>D({},u,{density:l})))})};Qt(e,o,"public");const i=v.useCallback((l,c)=>{var f;const u=Gg(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?D({},l,{density:u}):l},[e,t.density,(s=t.initialState)==null?void 0:s.density]),a=v.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:Gg(e.current.state);return e.current.setState(f=>D({},f,{density:u})),l},[e]);$r(e,"exportState",i),$r(e,"restoreState",a),v.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function qAt(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const Oue=({apiRef:e,options:t})=>{const n=nc(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:wo(e)).filter(o=>!o.disableExport)},Iue=({apiRef:e})=>{var l,c;const t=Bce(e),n=si(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),i=vm(e),a=((l=i==null?void 0:i.top)==null?void 0:l.map(u=>u.id))||[],s=((c=i==null?void 0:i.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...a),o.push(...s),r.size>0?o.filter(u=>r.has(u)):o},KAt=(e,t)=>{const n=Fo(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=v.useCallback((c={})=>{n.debug("Get data as CSV");const u=Oue({apiRef:e,options:c}),f=(c.getRowsToExport??Iue)({apiRef:e});return NAt({columns:u,rowIds:f,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=v.useCallback(c=>{n.debug("Export data as CSV");const u=i(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});qAt(d,"csv",c==null?void 0:c.fileName)},[n,i]);Qt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=v.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:$.jsx(HMt,{options:u.csvOptions}),componentName:"csvExport"}]},[]);$r(e,"exportMenu",l)},uE=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,a=(n==null?void 0:n.page)??r.page,s=Wce(o,i,a);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=nTt(r.page,s);return l!==r.page&&(r=D({},r,{page:l})),qce(r.pageSize,t),r},YAt=(e,t)=>{var m,g;const n=Fo(e,"useGridPaginationModel"),r=Ge(e,C1),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:zi,changeEvent:"paginationModelChange"});const i=v.useCallback(y=>{const b=zi(e);y!==b.page&&(n.debug(`Setting page to ${y}`),e.current.setPaginationModel({page:y,pageSize:b.pageSize}))},[e,n]),a=v.useCallback(y=>{const b=zi(e);y!==b.pageSize&&(n.debug(`Setting page size to ${y}`),e.current.setPaginationModel({pageSize:y,page:b.page}))},[e,n]),s=v.useCallback(y=>{const b=zi(e);y!==b&&(n.debug("Setting 'paginationModel' to",y),e.current.setState(x=>D({},x,{pagination:D({},x.pagination,{paginationModel:uE(x.pagination,t.signature,y)})}),"setPaginationModel"))},[e,n,t.signature]);Qt(e,{setPage:i,setPageSize:a,setPaginationModel:s},"public");const c=v.useCallback((y,b)=>{var P,E;const x=zi(e);return!b.exportOnlyDirtyModels||t.paginationModel!=null||((E=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:E.paginationModel)!=null||x.page!==0&&x.pageSize!==tTt(t.autoPageSize)?D({},y,{pagination:D({},y.pagination,{paginationModel:x})}):y},[e,t.paginationModel,(g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.paginationModel,t.autoPageSize]),u=v.useCallback((y,b)=>{var S,P;const x=(S=b.stateToRestore.pagination)!=null&&S.paginationModel?D({},Gce(t.autoPageSize),(P=b.stateToRestore.pagination)==null?void 0:P.paginationModel):zi(e);return e.current.setState(E=>D({},E,{pagination:D({},E.pagination,{paginationModel:uE(E.pagination,t.signature,x)})}),"stateRestorePreProcessing"),y},[e,t.autoPageSize,t.signature]);$r(e,"exportState",c),$r(e,"restoreState",u);const d=()=>{var b;const y=zi(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:y.page*y.pageSize})},f=v.useCallback(()=>{if(!t.autoPageSize)return;const y=e.current.getRootDimensions(),b=Math.floor(y.viewportInnerSize.height/o);e.current.setPageSize(b)},[e,t.autoPageSize,o]),p=v.useCallback(y=>{if(y==null)return;const b=zi(e),x=Kce(e);b.page>x-1&&e.current.setPage(Math.max(0,x-1))},[e]);gt(e,"viewportInnerSizeChange",f),gt(e,"paginationModelChange",d),gt(e,"rowCountChange",p),v.useEffect(()=>{e.current.setState(y=>D({},y,{pagination:D({},y.pagination,{paginationModel:uE(y.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),v.useEffect(f,[f])};function XAt(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function QAt(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const JAt=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Fo(e,"useGridPrintExport"),o=v.useRef(null),i=v.useRef(null),a=v.useRef({}),s=v.useRef([]),l=v.useRef();v.useEffect(()=>{o.current=tc(e.current.rootElementRef.current)},[e,n]);const c=v.useCallback((y,b,x)=>new Promise(S=>{const P=Oue({apiRef:e,options:{fields:y,allColumns:b}}).map(O=>O.field),E=nc(e),T={};E.forEach(O=>{T[O.field]=P.includes(O.field)}),x&&(T[Lb.field]=!0),e.current.setColumnVisibilityModel(T),S()}),[e]),u=v.useCallback(y=>{const x=y({apiRef:e}).reduce((S,P)=>{const E=e.current.getRow(P);return E[yy]||S.push(E),S},[]);e.current.setRows(x)},[e]),d=v.useCallback((y,b)=>{var j,N,F,U;const x=D({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=y.contentDocument;if(!S)return;const P=Nb(e.current.state),E=e.current.rootElementRef.current,T=E.cloneNode(!0),O=T.querySelector(`.${ae.main}`);O.style.overflow="visible",T.style.contain="size";let k=((j=E.querySelector(`.${ae.toolbarContainer}`))==null?void 0:j.offsetHeight)||0,M=((N=E.querySelector(`.${ae.footerContainer}`))==null?void 0:N.offsetHeight)||0;x.hideToolbar&&((F=T.querySelector(`.${ae.toolbarContainer}`))==null||F.remove(),k=0),x.hideFooter&&((U=T.querySelector(`.${ae.footerContainer}`))==null||U.remove(),M=0);const I=P.currentPageTotalHeight+dV(e,t)+k+M;if(T.style.height=`${I}px`,T.style.boxSizing="content-box",!x.hideFooter){const z=T.querySelector(`.${ae.footerContainer}`);z.style.position="absolute",z.style.width="100%",z.style.top=`${I-M}px`}const R=document.createElement("div");R.appendChild(T),S.body.style.marginTop="0px",S.body.innerHTML=R.innerHTML;const _=typeof x.pageStyle=="function"?x.pageStyle():x.pageStyle;if(typeof _=="string"){const z=S.createElement("style");z.appendChild(S.createTextNode(_)),S.head.appendChild(z)}x.bodyClassName&&S.body.classList.add(...x.bodyClassName.split(" "));const L=[];if(x.copyStyles){const z=E.getRootNode(),W=(z.constructor.name==="ShadowRoot"?z:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let G=0;G<W.length;G+=1){const J=W[G];if(J.tagName==="STYLE"){const K=S.createElement(J.tagName),ne=J.sheet;if(ne){let re="";for(let oe=0;oe<ne.cssRules.length;oe+=1)typeof ne.cssRules[oe].cssText=="string"&&(re+=`${ne.cssRules[oe].cssText}\r
+`);K.appendChild(S.createTextNode(re)),S.head.appendChild(K)}}else if(J.getAttribute("href")){const K=S.createElement(J.tagName);for(let ne=0;ne<J.attributes.length;ne+=1){const re=J.attributes[ne];re&&K.setAttribute(re.nodeName,re.nodeValue||"")}L.push(new Promise(ne=>{K.addEventListener("load",()=>ne())})),S.head.appendChild(K)}}}Promise.all(L).then(()=>{y.contentWindow.print()})},[e,o,t]),f=v.useCallback(y=>{var b,x;o.current.body.removeChild(y),e.current.restoreState(i.current||{}),(x=(b=i.current)==null?void 0:b.columns)!=null&&x.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(S=>D({},S,{virtualization:l.current})),e.current.setRows(s.current),i.current=null,a.current={},s.current=[]},[e]),m={exportDataAsPrint:v.useCallback(async y=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=Qs(e),s.current=e.current.getSortedRows().filter(x=>!x[yy]),t.pagination){const S={page:0,pageSize:iV(e)};e.current.setState(P=>D({},P,{pagination:D({},P.pagination,{paginationModel:uE(P.pagination,"DataGridPro",S)})}))}l.current=e.current.state.virtualization,e.current.setState(x=>D({},x,{virtualization:D({},x.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(y==null?void 0:y.fields,y==null?void 0:y.allColumns,y==null?void 0:y.includeCheckboxes),u((y==null?void 0:y.getRowsToExport)??Iue),await XAt();const b=QAt(y==null?void 0:y.fileName);b.onload=()=>{d(b,y),b.contentWindow.matchMedia("print").addEventListener("change",S=>{S.matches===!1&&f(b)})},o.current.body.appendChild(b)},[t,r,e,d,f,c,u])};Qt(e,m,"public");const g=v.useCallback((y,b)=>{var x;return(x=b.printOptions)!=null&&x.disableToolbarButton?y:[...y,{component:$.jsx(UMt,{options:b.printOptions}),componentName:"printExport"}]},[]);$r(e,"exportMenu",g)},ZAt=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??lS();return D({},e,{filter:{filterModel:tV(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},e$t=e=>e.filteredRowsLookup;function MK(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function t$t(){return yce(Object.values)}const n$t=(e,t)=>{var M,I,R;const n=Fo(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:oi,changeEvent:"filterModelChange"});const r=v.useCallback(()=>{e.current.setState(_=>{const L=oi(_,e.current.instanceId),j=e.current.getFilterState(L),N=D({},_,{filter:D({},_.filter,j)}),F=MK(e,N);return D({},N,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e]),o=v.useCallback((_,L)=>L==null||L.filterable===!1||t.disableColumnFilter?_:[..._,"columnMenuFilterItem"],[t.disableColumnFilter]),i=v.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),a=v.useCallback(_=>{const L=oi(e),j=[...L.items],N=j.findIndex(F=>F.id===_.id);N===-1?j.push(_):j[N]=_,e.current.setFilterModel(D({},L,{items:j}),"upsertFilterItem")},[e]),s=v.useCallback(_=>{const L=oi(e),j=[...L.items];_.forEach(N=>{const F=j.findIndex(U=>U.id===N.id);F===-1?j.push(N):j[F]=N}),e.current.setFilterModel(D({},L,{items:j}),"upsertFilterItems")},[e]),l=v.useCallback(_=>{const L=oi(e),j=L.items.filter(N=>N.id!==_.id);j.length!==L.items.length&&e.current.setFilterModel(D({},L,{items:j}),"deleteFilterItem")},[e]),c=v.useCallback((_,L,j)=>{if(n.debug("Displaying filter panel"),_){const N=oi(e),F=N.items.filter(W=>{var ne;if(W.value!==void 0)return!(Array.isArray(W.value)&&W.value.length===0);const J=(ne=e.current.getColumn(W.field).filterOperators)==null?void 0:ne.find(re=>re.value===W.operator);return!(typeof(J==null?void 0:J.requiresFilterValue)>"u"?!0:J==null?void 0:J.requiresFilterValue)});let U;const z=F.find(W=>W.field===_),V=e.current.getColumn(_);z?U=F:t.disableMultipleColumnsFiltering?U=[hN({field:_,operator:V.filterOperators[0].value},e)]:U=[...F,hN({field:_,operator:V.filterOperators[0].value},e)],e.current.setFilterModel(D({},N,{items:U}))}e.current.showPreferences(Wh.filters,L,j)},[e,n,t.disableMultipleColumnsFiltering]),u=v.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=v.useCallback(_=>{const L=oi(e);L.logicOperator!==_&&e.current.setFilterModel(D({},L,{logicOperator:_}),"changeLogicOperator")},[e]),f=v.useCallback(_=>{const L=oi(e);gy(L.quickFilterValues,_)||e.current.setFilterModel(D({},L,{quickFilterValues:[..._]}))},[e]),p=v.useCallback((_,L)=>{oi(e)!==_&&(n.debug("Setting filter model"),e.current.updateControlState("filter",zq(_,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),m=v.useCallback(_=>{const L=tV(_,t.disableMultipleColumnsFiltering,e),j=t.filterMode==="client"?JPt(L,e,t.disableEval):null,N=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:j,filterModel:L??lS()});return D({},N,{filterModel:L})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:p,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:m};Qt(e,g,"public");const y=v.useCallback((_,L)=>{var F,U;const j=oi(e);return!L.exportOnlyDirtyModels||t.filterModel!=null||((U=(F=t.initialState)==null?void 0:F.filter)==null?void 0:U.filterModel)!=null||!gy(j,lS())?D({},_,{filter:{filterModel:j}}):_},[e,t.filterModel,(I=(M=t.initialState)==null?void 0:M.filter)==null?void 0:I.filterModel]),b=v.useCallback((_,L)=>{var N;const j=(N=L.stateToRestore.filter)==null?void 0:N.filterModel;return j==null?_:(e.current.updateControlState("filter",zq(j,t.disableMultipleColumnsFiltering,e),"restoreState"),D({},_,{callbacks:[..._.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=v.useCallback((_,L)=>{var j;if(L===Wh.filters){const N=t.slots.filterPanel;return $.jsx(N,D({},(j=t.slotProps)==null?void 0:j.filterPanel))}return _},[t.slots.filterPanel,(R=t.slotProps)==null?void 0:R.filterPanel]),{getRowId:S}=t,P=eu(t$t),E=v.useCallback(_=>{if(t.filterMode!=="client"||!_.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const L=mf(e),j={},{isRowMatchingFilters:N}=_,F={},U={passingFilterItems:null,passingQuickFilterValues:null},z=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let G=0;G<z.length;G+=1){const J=z[G],K=S?S(J):J.id;N(J,void 0,U);const ne=eEt([U.passingFilterItems],[U.passingQuickFilterValues],_.filterModel,e,F);j[K]=ne}const V="auto-generated-group-footer-root";return L[V]&&(j[V]=!0),{filteredRowsLookup:j,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,S,P]);$r(e,"columnMenu",o),$r(e,"exportState",y),$r(e,"restoreState",b),$r(e,"preferencePanel",x),$O(e,Gh,"filtering",E),$O(e,Gh,"visibleRowsLookupCreation",e$t);const T=v.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const _=oi(e),L=vd(e),j=_.items.filter(N=>N.field&&L[N.field]);j.length<_.items.length&&e.current.setFilterModel(D({},_,{items:j}))},[e,n]),O=v.useCallback(_=>{_==="filtering"&&e.current.unstable_applyFilters()},[e]),k=v.useCallback(()=>{e.current.setState(_=>D({},_,{visibleRowsLookup:MK(e,_)})),e.current.forceUpdate()},[e]);gt(e,"rowsSet",r),gt(e,"columnsChange",T),gt(e,"activeStrategyProcessorChange",O),gt(e,"rowExpansionChange",k),gt(e,"columnVisibilityModelChange",()=>{const _=oi(e);_.quickFilterValues&&Mce(_)&&e.current.unstable_applyFilters()}),E1(()=>{e.current.unstable_applyFilters()}),mr(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},r$t=e=>D({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),o$t=(e,t)=>{const n=Fo(e,"useGridFocus"),r=v.useRef(null),o=e.current.rootElementRef.current!==null,i=v.useCallback((k,M)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),M)},[e]),a=v.useCallback((k,M)=>{const I=Ba(e);(I==null?void 0:I.id)===k&&(I==null?void 0:I.field)===M||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${k} and field=${M}`),D({},R,{tabIndex:{cell:{id:k,field:M},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:M},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(I&&i(I,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,M))))},[e,n,i]),s=v.useCallback((k,M={})=>{const I=Ba(e);i(I,M),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${k}`),D({},R,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),l=v.useCallback((k,M={})=>{const I=Ba(e);i(I,M),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${k}`),D({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=v.useCallback((k,M,I={})=>{const R=Ba(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),I),e.current.setState(_=>D({},_,{tabIndex:{columnGroupHeader:{field:k,depth:M},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:M},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=v.useCallback(()=>IO(e),[e]),d=v.useCallback((k,M,I)=>{let R=e.current.getColumnIndex(M);const _=wo(e),L=by(e,{pagination:t.pagination,paginationMode:t.paginationMode}),j=vm(e),N=[].concat(j.top||[],L.rows,j.bottom||[]);let F=N.findIndex(W=>W.id===k);I==="right"?R+=1:I==="left"?R-=1:F+=1,R>=_.length?(F+=1,F<N.length&&(R=0)):R<0&&(F-=1,F>=0&&(R=_.length-1)),F=Vc(F,0,N.length-1);const U=N[F];if(!U)return;const z=e.current.unstable_getCellColSpanInfo(U.id,R);z&&z.spannedByColSpan&&(I==="left"||I==="below"?R=z.leftVisibleCellIndex:I==="right"&&(R=z.rightVisibleCellIndex)),R=Vc(R,0,_.length-1);const V=_[R];e.current.setCellFocus(U.id,V.field)},[e,t.pagination,t.paginationMode]),f=v.useCallback(({id:k,field:M})=>{e.current.setCellFocus(k,M)},[e]),p=v.useCallback((k,M)=>{M.key==="Enter"||M.key==="Tab"||M.key==="Shift"||AO(M.key)||e.current.setCellFocus(k.id,k.field)},[e]),m=v.useCallback(({field:k},M)=>{M.target===M.currentTarget&&e.current.setColumnHeaderFocus(k,M)},[e]),g=v.useCallback(({fields:k,depth:M},I)=>{if(I.target!==I.currentTarget)return;const R=IO(e);R!==null&&R.depth===M&&k.includes(R.field)||e.current.setColumnGroupHeaderFocus(k[0],M,I)},[e]),y=v.useCallback((k,M)=>{var I,R;(R=(I=M.relatedTarget)==null?void 0:I.getAttribute("class"))!=null&&R.includes(ae.columnHeader)||(n.debug("Clearing focus"),e.current.setState(_=>D({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),b=v.useCallback(k=>{r.current=k},[]),x=v.useCallback(k=>{const M=r.current;r.current=null;const I=Ba(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:M}))return;if(!I){M&&e.current.setCellFocus(M.id,M.field);return}if((M==null?void 0:M.id)===I.id&&(M==null?void 0:M.field)===I.field)return;const _=e.current.getCellElement(I.id,I.field);_!=null&&_.contains(k.target)||(M?e.current.setCellFocus(M.id,M.field):(e.current.setState(L=>D({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(I,k)))},[e,i]),S=v.useCallback(k=>{if(k.cellMode==="view")return;const M=Ba(e);((M==null?void 0:M.id)!==k.id||(M==null?void 0:M.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),P=v.useCallback(()=>{var M;const k=Ba(e);if(k&&!e.current.getRow(k.id)){const I=(M=Ba(e))==null?void 0:M.id;let R=null;if(typeof I<"u"){const _=e.current.getRowIndexRelativeToVisibleRows(I),L=by(e,{pagination:t.pagination,paginationMode:t.paginationMode}),j=L.rows[Vc(_,0,L.rows.length-1)];R=(j==null?void 0:j.id)??null}e.current.setState(_=>D({},_,{focus:{cell:R===null?null:{id:R,field:k.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),E=ot(()=>{const k=Ba(e);if(!k)return;const M=by(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(M.rows.find(_=>_.id===k.id))return;const R=wo(e);e.current.setState(_=>D({},_,{tabIndex:{cell:{id:M.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},O={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Qt(e,T,"public"),Qt(e,O,"private"),v.useEffect(()=>{const k=tc(e.current.rootElementRef.current);return k.addEventListener("mouseup",x),()=>{k.removeEventListener("mouseup",x)}},[e,o,x]),gt(e,"columnHeaderBlur",y),gt(e,"cellDoubleClick",f),gt(e,"cellMouseDown",b),gt(e,"cellKeyDown",p),gt(e,"cellModeChange",S),gt(e,"columnHeaderFocus",m),gt(e,"columnGroupHeaderFocus",g),gt(e,"rowsSet",P),gt(e,"paginationModelChange",E)},i$t=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},a$t=e=>e===Lce||i$t(e)!==null;function s$t(e,t){const n=vm(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const t2=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},n2=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function l$t(e,t,n,r){var s,l;const o=sue(e);if(!((s=o[t])!=null&&s[n]))return t;const i=Bce(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const c=i[a];if(!((l=o[c])!=null&&l[n]))return c;a+=r==="down"?1:-1}return t}const c$t=(e,t)=>{const n=Fo(e,"useGridKeyboardNavigation"),r=bm(e,t).rows,o=po(),i=t.unstable_listView,a=v.useMemo(()=>s$t(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.headerFilters,l=v.useCallback((x,S,P="left",E="up")=>{const T=up(e),O=e.current.unstable_getCellColSpanInfo(S,x);O&&O.spannedByColSpan&&(P==="left"?x=O.leftVisibleCellIndex:P==="right"&&(x=O.rightVisibleCellIndex));const k=i?$v(e.current.state).field:$b(e)[x],M=l$t(e,S,k,E),I=T.findIndex(R=>R.id===M);n.debug(`Navigating to cell row ${I}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:I}),e.current.setCellFocus(M,k)},[e,n,i]),c=v.useCallback((x,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const P=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(P,S)},[e,n]),u=v.useCallback((x,S)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const P=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(P,S)},[e,n]),d=v.useCallback((x,S,P)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:E}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus(E,S,P)},[e,n]),f=v.useCallback(x=>{var S;return(S=a[x])==null?void 0:S.id},[a]),p=v.useCallback((x,S)=>{const P=S.currentTarget.querySelector(`.${ae.columnHeaderTitleContainerContent}`);if(!!P&&P.contains(S.target)&&x.field!==Lb.field)return;const T=e.current.getViewportPageSize(),O=x.field?e.current.getColumnIndex(x.field):0,k=a.length>0?0:null,M=a.length-1,I=0,R=wo(e).length-1,_=T1(e);let L=!0;switch(S.key){case"ArrowDown":{k!==null&&(s?u(O,S):l(O,f(k)));break}case"ArrowRight":{const j=n2({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});j!==null&&c(j,S);break}case"ArrowLeft":{const j=t2({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});j!==null&&c(j,S);break}case"ArrowUp":{_>0&&d(O,_-1,S);break}case"PageDown":{k!==null&&M!==null&&l(O,f(Math.min(k+T,M)));break}case"Home":{c(I,S);break}case"End":{c(R,S);break}case"Enter":{(S.ctrlKey||S.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&S.preventDefault()},[e,a.length,s,u,l,f,o,c,d]),m=v.useCallback((x,S)=>{const P=VTt(e)===x.field,E=HTt(e)===x.field;if(P||E||!AO(S.key))return;const T=e.current.getViewportPageSize(),O=x.field?e.current.getColumnIndex(x.field):0,k=0,M=a.length-1,I=0,R=wo(e).length-1;let _=!0;switch(S.key){case"ArrowDown":{const L=f(k);L!=null&&l(O,L);break}case"ArrowRight":{const L=n2({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});L!==null&&u(L,S);break}case"ArrowLeft":{const L=t2({currentColIndex:O,firstColIndex:I,lastColIndex:R,isRtl:o});L!==null?u(L,S):e.current.setColumnHeaderFilterFocus(x.field,S);break}case"ArrowUp":{c(O,S);break}case"PageDown":{M!==null&&l(O,f(Math.min(k+T,M)));break}case"Home":{u(I,S);break}case"End":{u(R,S);break}case" ":break;default:_=!1}_&&S.preventDefault()},[e,a.length,u,o,c,l,f]),g=v.useCallback((x,S)=>{const P=IO(e);if(P===null)return;const{field:E,depth:T}=P,{fields:O,depth:k,maxDepth:M}=x,I=e.current.getViewportPageSize(),R=e.current.getColumnIndex(E),_=E?e.current.getColumnIndex(E):0,L=0,j=a.length-1,N=0,F=wo(e).length-1;let U=!0;switch(S.key){case"ArrowDown":{k===M-1?c(R,S):d(R,T+1,S);break}case"ArrowUp":{k>0&&d(R,T-1,S);break}case"ArrowRight":{const z=O.length-O.indexOf(E)-1;R+z+1<=F&&d(R+z+1,T,S);break}case"ArrowLeft":{const z=O.indexOf(E);R-z-1>=N&&d(R-z-1,T,S);break}case"PageDown":{j!==null&&l(_,f(Math.min(L+I,j)));break}case"Home":{d(N,T,S);break}case"End":{d(F,T,S);break}case" ":break;default:U=!1}U&&S.preventDefault()},[e,a.length,c,d,l,f]),y=v.useCallback((x,S)=>{if(O1(S))return;const P=e.current.getCellParams(x.id,x.field);if(P.cellMode===Jn.Edit||!AO(S.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:S,cell:P})||a.length===0)return;const T=e.current.getViewportPageSize(),O=i?()=>0:e.current.getColumnIndex,k=x.field?O(x.field):0,M=a.findIndex(F=>F.id===x.id),I=0,R=a.length-1,_=0,j=(i?[$v(e.current.state)]:wo(e)).length-1;let N=!0;switch(S.key){case"ArrowDown":{M<R&&l(k,f(M+1),o?"right":"left","down");break}case"ArrowUp":{M>I?l(k,f(M-1)):s?u(k,S):c(k,S);break}case"ArrowRight":{const F=n2({currentColIndex:k,firstColIndex:_,lastColIndex:j,isRtl:o});F!==null&&l(F,f(M),o?"left":"right");break}case"ArrowLeft":{const F=t2({currentColIndex:k,firstColIndex:_,lastColIndex:j,isRtl:o});F!==null&&l(F,f(M),o?"right":"left");break}case"Tab":{S.shiftKey&&k>_?l(k-1,f(M),"left"):!S.shiftKey&&k<j&&l(k+1,f(M),"right");break}case" ":{if(x.field===TM)break;const U=x.colDef;if(U&&(U.field===wEt||a$t(U.field)))break;!S.shiftKey&&M<R&&l(k,f(Math.min(M+T,R)));break}case"PageDown":{M<R&&l(k,f(Math.min(M+T,R)));break}case"PageUp":{const F=Math.max(M-T,I);F!==M&&F>=I?l(k,f(F)):c(k,S);break}case"Home":{S.ctrlKey||S.metaKey||S.shiftKey?l(_,f(I)):l(_,f(M));break}case"End":{S.ctrlKey||S.metaKey||S.shiftKey?l(j,f(R)):l(j,f(M));break}default:N=!1}N&&S.preventDefault()},[e,a,o,l,f,s,u,c,i]),b=v.useCallback((x,{event:S})=>S.key===" "?!1:x,[]);$r(e,"canStartEditing",b),gt(e,"columnHeaderKeyDown",p),gt(e,"headerFilterKeyDown",m),gt(e,"columnGroupHeaderKeyDown",g),gt(e,"cellKeyDown",y)},u$t=(e,t)=>{var m,g;const n=Fo(e,"useGridRowCount"),r=Ge(e,aV),o=Ge(e,qg),i=Ge(e,aw),a=Ge(e,zi),s=eu(()=>zi(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:qg,changeEvent:"rowCountChange"});const c={setRowCount:v.useCallback(y=>{o!==y&&(n.debug("Setting 'rowCount' to",y),e.current.setState(b=>D({},b,{pagination:D({},b.pagination,{rowCount:y})})))},[e,n,o])};Qt(e,c,"public");const u=v.useCallback((y,b)=>{var P,E;const x=qg(e);return!b.exportOnlyDirtyModels||t.rowCount!=null||((E=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:E.rowCount)!=null?D({},y,{pagination:D({},y.pagination,{rowCount:x})}):y},[e,t.rowCount,(g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.rowCount]),d=v.useCallback((y,b)=>{var S;const x=(S=b.stateToRestore.pagination)!=null&&S.rowCount?b.stateToRestore.pagination.rowCount:qg(e);return e.current.setState(P=>D({},P,{pagination:D({},P.pagination,{rowCount:x})})),y},[e]);$r(e,"exportState",u),$r(e,"restoreState",d);const f=v.useCallback(y=>{t.paginationMode==="client"||!s.current||y.pageSize!==s.current&&(s.current=y.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,s,o,e]);gt(e,"paginationModelChange",f),v.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const p=i.hasNextPage===!1;v.useEffect(()=>{p&&o===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,p,o,a])},d$t=(e,t)=>{var l,c;const n=Fo(e,"useGridPaginationMeta"),r=Ge(e,aw);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:aw,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:v.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>D({},d,{pagination:D({},d.pagination,{meta:u})})))},[e,n,r])};Qt(e,i,"public");const a=v.useCallback((u,d)=>{var m,g;const f=aw(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((g=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:g.meta)!=null?D({},u,{pagination:D({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),s=v.useCallback((u,d)=>{var p;const f=(p=d.stateToRestore.pagination)!=null&&p.meta?d.stateToRestore.pagination.meta:aw(e);return e.current.setState(m=>D({},m,{pagination:D({},m.pagination,{meta:f})})),u},[e]);$r(e,"exportState",a),$r(e,"restoreState",s),v.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},f$t=(e,t)=>{var i,a,s,l,c,u;const n=D({},Gce(t.autoPageSize),t.paginationModel??((a=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:a.paginationModel));qce(n.pageSize,t.signature);const r=t.rowCount??((l=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return D({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},p$t=(e,t)=>{d$t(e,t),YAt(e,t),u$t(e,t)},h$t=(e,t)=>{var n;return D({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},m$t=(e,t)=>{var d;const n=Fo(e,"useGridPreferencesPanel"),r=v.useRef(),o=v.useRef(),i=v.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=uS(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(p=>D({},p,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),a=v.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),s=v.useCallback(()=>{r.current=setTimeout(i,100)},[i]),l=v.useCallback((f,p,m)=>{n.debug("Opening Preferences Panel"),a(),e.current.setState(g=>D({},g,{preferencePanel:D({},g.preferencePanel,{open:!0,openedPanelValue:f,panelId:p,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,a,e]);Qt(e,{showPreferences:l,hidePreferences:s},"public");const c=v.useCallback((f,p)=>{var y;const m=uS(e.current.state);return!p.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||m.open?D({},f,{preferencePanel:m}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=v.useCallback((f,p)=>{const m=p.stateToRestore.preferencePanel;return m!=null&&e.current.setState(g=>D({},g,{preferencePanel:m})),f},[e]);$r(e,"exportState",c),$r(e,"restoreState",u),v.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},wN=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},g$t=["id","field"],y$t=["id","field"],v$t=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:c}=t,u=N=>(...F)=>{t.editMode===Yc.Cell&&N(...F)},d=v.useCallback((N,F)=>{const U=e.current.getCellParams(N,F);if(!e.current.isCellEditable(U))throw new Error(`MUI X: The cell with id=${N} and field=${F} is not editable.`)},[e]),f=v.useCallback((N,F,U)=>{if(e.current.getCellMode(N,F)!==U)throw new Error(`MUI X: The cell with id=${N} and field=${F} is not in ${U} mode.`)},[e]),p=v.useCallback((N,F)=>{if(!N.isEditable||N.cellMode===Jn.Edit)return;const U=D({},N,{reason:wu.cellDoubleClick});e.current.publishEvent("cellEditStart",U,F)},[e]),m=v.useCallback((N,F)=>{if(N.cellMode===Jn.View||e.current.getCellMode(N.id,N.field)===Jn.View)return;const U=D({},N,{reason:Nl.cellFocusOut});e.current.publishEvent("cellEditStop",U,F)},[e]),g=v.useCallback((N,F)=>{if(N.cellMode===Jn.Edit){if(F.which===229)return;let U;if(F.key==="Escape"?U=Nl.escapeKeyDown:F.key==="Enter"?U=Nl.enterKeyDown:F.key==="Tab"&&(U=F.shiftKey?Nl.shiftTabKeyDown:Nl.tabKeyDown,F.preventDefault()),U){const z=D({},N,{reason:U});e.current.publishEvent("cellEditStop",z,F)}}else if(N.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:N,editMode:"cell"}))return;if(xue(F)?U=wu.printableKeyDown:Cue(F)?U=wu.pasteKeyDown:F.key==="Enter"?U=wu.enterKeyDown:(F.key==="Backspace"||F.key==="Delete")&&(U=wu.deleteKeyDown),U){const V=D({},N,{reason:U,key:F.key});e.current.publishEvent("cellEditStart",V,F)}}},[e]),y=v.useCallback(N=>{const{id:F,field:U,reason:z}=N,V={id:F,field:U};(z===wu.printableKeyDown||z===wu.deleteKeyDown||z===wu.pasteKeyDown)&&(V.deleteValue=!0),e.current.startCellEditMode(V)},[e]),b=v.useCallback(N=>{const{id:F,field:U,reason:z}=N;e.current.runPendingEditCellValueMutation(F,U);let V;z===Nl.enterKeyDown?V="below":z===Nl.tabKeyDown?V="right":z===Nl.shiftTabKeyDown&&(V="left");const W=z==="escapeKeyDown";e.current.stopCellEditMode({id:F,field:U,ignoreModifications:W,cellToFocusAfter:V})},[e]),x=N=>async(...F)=>{var U;if(N){const{id:z,field:V}=F[0];((U=e.current.state.editRows[z][V])==null?void 0:U.error)||N(...F)}};gt(e,"cellDoubleClick",u(p)),gt(e,"cellFocusOut",u(m)),gt(e,"cellKeyDown",u(g)),gt(e,"cellEditStart",u(y)),gt(e,"cellEditStop",u(b)),ar(e,"cellEditStart",t.onCellEditStart),ar(e,"cellEditStop",x(t.onCellEditStop));const S=v.useCallback((N,F)=>{const U=Uo(e.current.state);return U[N]&&U[N][F]?Jn.Edit:Jn.View},[e]),P=ot(N=>{const F=N!==t.cellModesModel;c&&F&&c(N,{api:e.current}),!(t.cellModesModel&&F)&&(r(N),o.current=N,e.current.publishEvent("cellModesModelChange",N))}),E=v.useCallback((N,F,U)=>{const z=D({},o.current);if(U!==null)z[N]=D({},z[N],{[F]:D({},U)});else{const V=z[N],W=ze(V,[F].map(kv));z[N]=W,Object.keys(z[N]).length===0&&delete z[N]}P(z)},[P]),T=v.useCallback((N,F,U)=>{e.current.setState(z=>{const V=D({},z.editRows);return U!==null?V[N]=D({},V[N],{[F]:D({},U)}):(delete V[N][F],Object.keys(V[N]).length===0&&delete V[N]),D({},z,{editRows:V})}),e.current.forceUpdate()},[e]),O=v.useCallback(N=>{const{id:F,field:U}=N,z=ze(N,g$t);d(F,U),f(F,U,Jn.View),E(F,U,D({mode:Jn.Edit},z))},[d,f,E]),k=ot(async N=>{const{id:F,field:U,deleteValue:z,initialValue:V}=N,W=e.current.getCellValue(F,U);let G=W;z?G=wN(e.current.getColumn(U)):V&&(G=V);const J=e.current.getColumn(U),K=!!J.preProcessEditCellProps&&z;let ne={value:G,error:!1,isProcessingProps:K};if(T(F,U,ne),e.current.setCellFocus(F,U),K&&(ne=await Promise.resolve(J.preProcessEditCellProps({id:F,row:e.current.getRow(F),props:ne,hasChanged:G!==W})),e.current.getCellMode(F,U)===Jn.Edit)){const re=Uo(e.current.state);T(F,U,D({},ne,{value:re[F][U].value,isProcessingProps:!1}))}}),M=v.useCallback(N=>{const{id:F,field:U}=N,z=ze(N,y$t);f(F,U,Jn.Edit),E(F,U,D({mode:Jn.View},z))},[f,E]),I=ot(async N=>{const{id:F,field:U,ignoreModifications:z,cellToFocusAfter:V="none"}=N;f(F,U,Jn.Edit),e.current.runPendingEditCellValueMutation(F,U);const W=()=>{T(F,U,null),E(F,U,null),V!=="none"&&e.current.moveFocusToRelativeCell(F,U,V)};if(z){W();return}const G=Uo(e.current.state),{error:J,isProcessingProps:K}=G[F][U];if(J||K){i.current[F][U].mode=Jn.Edit,E(F,U,{mode:Jn.Edit});return}const ne=e.current.getRowWithUpdatedValuesFromCellEditing(F,U);if(a){const re=oe=>{i.current[F][U].mode=Jn.Edit,E(F,U,{mode:Jn.Edit}),s&&s(oe)};try{const oe=e.current.getRow(F);Promise.resolve(a(ne,oe,{rowId:F})).then(fe=>{e.current.updateRows([fe]),W()}).catch(re)}catch(oe){re(oe)}}else e.current.updateRows([ne]),W()}),R=v.useCallback(async N=>{var oe,fe;const{id:F,field:U,value:z,debounceMs:V,unstable_skipValueParser:W}=N;d(F,U),f(F,U,Jn.Edit);const G=e.current.getColumn(U),J=e.current.getRow(F);let K=z;G.valueParser&&!W&&(K=G.valueParser(z,J,G,e));let ne=Uo(e.current.state),re=D({},ne[F][U],{value:K,changeReason:V?"debouncedSetEditCellValue":"setEditCellValue"});if(G.preProcessEditCellProps){const se=z!==ne[F][U].value;re=D({},re,{isProcessingProps:!0}),T(F,U,re),re=await Promise.resolve(G.preProcessEditCellProps({id:F,row:J,props:re,hasChanged:se}))}return e.current.getCellMode(F,U)===Jn.View?!1:(ne=Uo(e.current.state),re=D({},re,{isProcessingProps:!1}),re.value=G.preProcessEditCellProps?ne[F][U].value:K,T(F,U,re),ne=Uo(e.current.state),!((fe=(oe=ne[F])==null?void 0:oe[U])!=null&&fe.error))},[e,d,f,T]),_=v.useCallback((N,F)=>{const U=e.current.getColumn(F),z=Uo(e.current.state),V=e.current.getRow(N);if(!z[N]||!z[N][F])return e.current.getRow(N);const{value:W}=z[N][F];return U.valueSetter?U.valueSetter(W,V,U,e):D({},V,{[F]:W})},[e]),L={getCellMode:S,startCellEditMode:O,stopCellEditMode:M},j={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:_};Qt(e,L,"public"),Qt(e,j,"private"),v.useEffect(()=>{l&&P(l)},[l,P]),mr(()=>{const N=OO(e),F=i.current;i.current=Ece(n),Object.entries(n).forEach(([U,z])=>{Object.entries(z).forEach(([V,W])=>{var K,ne;const G=((ne=(K=F[U])==null?void 0:K[V])==null?void 0:ne.mode)||Jn.View,J=N[U]??U;W.mode===Jn.Edit&&G===Jn.View?k(D({id:J,field:V},W)):W.mode===Jn.View&&G===Jn.Edit&&I(D({id:J,field:V},W))})})},[e,n,k,I])},b$t=["id"],w$t=["id"],x$t=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),a=v.useRef(),s=v.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=V=>(...W)=>{t.editMode===Yc.Row&&V(...W)},p=v.useCallback((V,W)=>{const G=e.current.getCellParams(V,W);if(!e.current.isCellEditable(G))throw new Error(`MUI X: The cell with id=${V} and field=${W} is not editable.`)},[e]),m=v.useCallback((V,W)=>{if(e.current.getRowMode(V)!==W)throw new Error(`MUI X: The row with id=${V} is not in ${W} mode.`)},[e]),g=v.useCallback(V=>{const W=Uo(e.current.state);return Object.values(W[V]).some(G=>G.error)},[e]),y=v.useCallback((V,W)=>{if(!V.isEditable||e.current.getRowMode(V.id)===zn.Edit)return;const G=e.current.getRowParams(V.id),J=D({},G,{field:V.field,reason:jd.cellDoubleClick});e.current.publishEvent("rowEditStart",J,W)},[e]),b=v.useCallback(V=>{s.current=V},[]),x=v.useCallback((V,W)=>{V.isEditable&&e.current.getRowMode(V.id)!==zn.View&&(s.current=null,a.current=setTimeout(()=>{var G;if(((G=s.current)==null?void 0:G.id)!==V.id){if(!e.current.getRow(V.id)||e.current.getRowMode(V.id)===zn.View||g(V.id))return;const J=e.current.getRowParams(V.id),K=D({},J,{field:V.field,reason:_l.rowFocusOut});e.current.publishEvent("rowEditStop",K,W)}}))},[e,g]);v.useEffect(()=>()=>{clearTimeout(a.current)},[]);const S=v.useCallback((V,W)=>{if(V.cellMode===zn.Edit){if(W.which===229)return;let G;if(W.key==="Escape")G=_l.escapeKeyDown;else if(W.key==="Enter")G=_l.enterKeyDown;else if(W.key==="Tab"){const J=$b(e).filter(K=>e.current.getColumn(K).type===CM?!0:e.current.isCellEditable(e.current.getCellParams(V.id,K)));if(W.shiftKey?V.field===J[0]&&(G=_l.shiftTabKeyDown):V.field===J[J.length-1]&&(G=_l.tabKeyDown),W.preventDefault(),!G){const K=J.findIndex(re=>re===V.field),ne=J[W.shiftKey?K-1:K+1];e.current.setCellFocus(V.id,ne)}}if(G){if(G!==_l.escapeKeyDown&&g(V.id))return;const J=D({},e.current.getRowParams(V.id),{reason:G,field:V.field});e.current.publishEvent("rowEditStop",J,W)}}else if(V.isEditable){let G;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:V,editMode:"row"}))return;if(xue(W)||Cue(W)?G=jd.printableKeyDown:W.key==="Enter"?G=jd.enterKeyDown:(W.key==="Backspace"||W.key==="Delete")&&(G=jd.deleteKeyDown),G){const K=e.current.getRowParams(V.id),ne=D({},K,{field:V.field,reason:G});e.current.publishEvent("rowEditStart",ne,W)}}},[e,g]),P=v.useCallback(V=>{const{id:W,field:G,reason:J}=V,K={id:W,fieldToFocus:G};(J===jd.printableKeyDown||J===jd.deleteKeyDown)&&(K.deleteValue=!!G),e.current.startRowEditMode(K)},[e]),E=v.useCallback(V=>{const{id:W,reason:G,field:J}=V;e.current.runPendingEditCellValueMutation(W);let K;G===_l.enterKeyDown?K="below":G===_l.tabKeyDown?K="right":G===_l.shiftTabKeyDown&&(K="left");const ne=G==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:ne,field:J,cellToFocusAfter:K})},[e]);gt(e,"cellDoubleClick",f(y)),gt(e,"cellFocusIn",f(b)),gt(e,"cellFocusOut",f(x)),gt(e,"cellKeyDown",f(S)),gt(e,"rowEditStart",f(P)),gt(e,"rowEditStop",f(E)),ar(e,"rowEditStart",t.onRowEditStart),ar(e,"rowEditStop",t.onRowEditStop);const T=v.useCallback(V=>{if(t.editMode===Yc.Cell)return zn.View;const W=Uo(e.current.state);return W[V]&&Object.keys(W[V]).length>0?zn.Edit:zn.View},[e,t.editMode]),O=ot(V=>{const W=V!==t.rowModesModel;d&&W&&d(V,{api:e.current}),!(t.rowModesModel&&W)&&(r(V),o.current=V,e.current.publishEvent("rowModesModelChange",V))}),k=v.useCallback((V,W)=>{const G=D({},o.current);W!==null?G[V]=D({},W):delete G[V],O(G)},[O]),M=v.useCallback((V,W)=>{e.current.setState(G=>{const J=D({},G.editRows);return W!==null?J[V]=W:delete J[V],D({},G,{editRows:J})}),e.current.forceUpdate()},[e]),I=v.useCallback((V,W,G)=>{e.current.setState(J=>{const K=D({},J.editRows);return G!==null?K[V]=D({},K[V],{[W]:D({},G)}):(delete K[V][W],Object.keys(K[V]).length===0&&delete K[V]),D({},J,{editRows:K})}),e.current.forceUpdate()},[e]),R=v.useCallback(V=>{const{id:W}=V,G=ze(V,b$t);m(W,zn.View),k(W,D({mode:zn.Edit},G))},[m,k]),_=ot(V=>{const{id:W,fieldToFocus:G,deleteValue:J,initialValue:K}=V,ne=zu(e),re=ne.reduce((oe,fe)=>{if(!e.current.getCellParams(W,fe).isEditable)return oe;const ee=e.current.getColumn(fe);let ce=e.current.getCellValue(W,fe);return G===fe&&(J||K)&&(J?ce=wN(ee):K&&(ce=K)),oe[fe]={value:ce,error:!1,isProcessingProps:!!ee.preProcessEditCellProps&&J},oe},{});M(W,re),G&&e.current.setCellFocus(W,G),ne.filter(oe=>!!e.current.getColumn(oe).preProcessEditCellProps&&J).forEach(oe=>{const fe=e.current.getColumn(oe),se=e.current.getCellValue(W,oe),ee=J?wN(fe):K??se;Promise.resolve(fe.preProcessEditCellProps({id:W,row:e.current.getRow(W),props:re[oe],hasChanged:ee!==se})).then(ce=>{if(e.current.getRowMode(W)===zn.Edit){const le=Uo(e.current.state);I(W,oe,D({},ce,{value:le[W][oe].value,isProcessingProps:!1}))}})})}),L=v.useCallback(V=>{const{id:W}=V,G=ze(V,w$t);m(W,zn.Edit),k(W,D({mode:zn.View},G))},[m,k]),j=ot(V=>{const{id:W,ignoreModifications:G,field:J,cellToFocusAfter:K="none"}=V;e.current.runPendingEditCellValueMutation(W);const ne=()=>{K!=="none"&&J&&e.current.moveFocusToRelativeCell(W,J,K),M(W,null),k(W,null)};if(G){ne();return}const re=Uo(e.current.state),oe=e.current.getRow(W);if(Object.values(re[W]).some(ee=>ee.isProcessingProps)){i.current[W].mode=zn.Edit;return}if(g(W)){i.current[W].mode=zn.Edit,k(W,{mode:zn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const ee=ce=>{i.current[W].mode=zn.Edit,k(W,{mode:zn.Edit}),c&&c(ce)};try{Promise.resolve(l(se,oe,{rowId:W})).then(ce=>{e.current.updateRows([ce]),ne()}).catch(ee)}catch(ce){ee(ce)}}else e.current.updateRows([se]),ne()}),N=v.useCallback(V=>{const{id:W,field:G,value:J,debounceMs:K,unstable_skipValueParser:ne}=V;p(W,G);const re=e.current.getColumn(G),oe=e.current.getRow(W);let fe=J;re.valueParser&&!ne&&(fe=re.valueParser(J,oe,re,e));let se=Uo(e.current.state),ee=D({},se[W][G],{value:fe,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||I(W,G,ee),new Promise(ce=>{const le=[];if(re.preProcessEditCellProps){const Q=ee.value!==se[W][G].value;ee=D({},ee,{isProcessingProps:!0}),I(W,G,ee);const ue=se[W],ge=ze(ue,[G].map(kv)),xe=Promise.resolve(re.preProcessEditCellProps({id:W,row:oe,props:ee,hasChanged:Q,otherFieldsProps:ge})).then(me=>{if(e.current.getRowMode(W)===zn.View){ce(!1);return}se=Uo(e.current.state),me=D({},me,{isProcessingProps:!1}),me.value=re.preProcessEditCellProps?se[W][G].value:fe,I(W,G,me)});le.push(xe)}Object.entries(se[W]).forEach(([Q,ue])=>{if(Q===G)return;const ge=e.current.getColumn(Q);if(!ge.preProcessEditCellProps)return;ue=D({},ue,{isProcessingProps:!0}),I(W,Q,ue),se=Uo(e.current.state);const xe=se[W],me=ze(xe,[Q].map(kv)),be=Promise.resolve(ge.preProcessEditCellProps({id:W,row:oe,props:ue,hasChanged:!1,otherFieldsProps:me})).then(we=>{if(e.current.getRowMode(W)===zn.View){ce(!1);return}we=D({},we,{isProcessingProps:!1}),I(W,Q,we)});le.push(be)}),Promise.all(le).then(()=>{e.current.getRowMode(W)===zn.Edit?(se=Uo(e.current.state),ce(!se[W][G].error)):ce(!1)})})},[e,p,I]),F=v.useCallback(V=>{const W=Uo(e.current.state),G=e.current.getRow(V);if(!W[V])return e.current.getRow(V);let J=D({},G);return Object.entries(W[V]).forEach(([K,ne])=>{const re=e.current.getColumn(K);re.valueSetter?J=re.valueSetter(ne.value,J,re,e):J[K]=ne.value}),J},[e]),U={getRowMode:T,startRowEditMode:R,stopRowEditMode:L},z={setRowEditingEditCellValue:N,getRowWithUpdatedValuesFromRowEditing:F};Qt(e,U,"public"),Qt(e,z,"private"),v.useEffect(()=>{u&&O(u)},[u,O]),mr(()=>{const V=OO(e),W=i.current;i.current=Ece(n);const G=new Set([...Object.keys(n),...Object.keys(W)]);Array.from(G).forEach(J=>{var oe;const K=n[J]??{mode:zn.View},ne=((oe=W[J])==null?void 0:oe.mode)||zn.View,re=V[J]??J;K.mode===zn.Edit&&ne===zn.View?_(D({id:re},K)):K.mode===zn.View&&ne===zn.Edit&&j(D({id:re},K))})},[e,n,_,j])},S$t=e=>D({},e,{editRows:{}}),C$t=(e,t)=>{v$t(e,t),x$t(e,t);const n=v.useRef({}),{isCellEditable:r}=t,o=v.useCallback(f=>Mv(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,p,m,g)=>{if(!m){g();return}if(n.current[f]||(n.current[f]={}),n.current[f][p]){const[x]=n.current[f][p];clearTimeout(x)}const y=()=>{const[x]=n.current[f][p];clearTimeout(x),g(),delete n.current[f][p]},b=setTimeout(()=>{g(),delete n.current[f][p]},m);n.current[f][p]=[b,y]};v.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([p,m])=>{Object.keys(m).forEach(g=>{const[y]=f[p][g];clearTimeout(y),delete f[p][g]})})}},[]);const a=v.useCallback((f,p)=>{if(n.current[f]){if(!p)Object.keys(n.current[f]).forEach(m=>{const[,g]=n.current[f][m];g()});else if(n.current[f][p]){const[,m]=n.current[f][p];m()}}},[]),s=v.useCallback(f=>{const{id:p,field:m,debounceMs:g}=f;return new Promise(y=>{i(p,m,g,async()=>{const b=t.editMode===Yc.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(p,m)===Jn.Edit){const x=await b(f);y(x)}})})},[e,t.editMode]),l=v.useCallback((f,p)=>t.editMode===Yc.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,p):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=v.useCallback((f,p)=>{var g;return((g=Uo(e.current.state)[f])==null?void 0:g[p])??null},[e]),u={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:a};Qt(e,u,"public"),Qt(e,d,"private")},P$t=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=sE({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),D({},e,{rows:Rce({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},E$t=(e,t)=>{const n=Fo(e,"useGridRows"),r=bm(e,t),o=v.useRef(Date.now()),i=v.useRef(t.rowCount),a=vb(),s=v.useCallback(z=>{const V=mf(e)[z];if(V)return V;const W=e.current.getRowNode(z);return W&&Mv(W)?{[yy]:z}:null},[e]),l=t.getRowId,c=v.useCallback(z=>yy in z?z[yy]:l?l(z):z.id,[l]),u=v.useMemo(()=>r.rows.reduce((z,{id:V},W)=>(z[V]=W,z),{}),[r.rows]),d=v.useCallback(({cache:z,throttle:V})=>{const W=()=>{o.current=Date.now(),e.current.setState(J=>D({},J,{rows:Rce({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:si(e),previousTreeDepths:qq(e),previousGroupsToFetch:hEt(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.clear(),e.current.caches.rows=z,!V){W();return}const G=t.throttleRowsMs-(Date.now()-o.current);if(G>0){a.start(G,W);return}W()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),f=v.useCallback(z=>{n.debug(`Updating all rows, new length ${z.length}`);const V=sE({rows:z,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),W=e.current.caches.rows;V.rowsBeforePartialUpdates=W.rowsBeforePartialUpdates,d({cache:V,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),p=v.useCallback(z=>{if(t.signature===il.DataGrid&&z.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
+`));const V=Yq(e,z,t.getRowId),W=Kq({updates:V,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:W,throttle:!0})},[t.signature,t.getRowId,d,e]),m=v.useCallback((z,V)=>{const W=Yq(e,z,t.getRowId),G=Kq({updates:W,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:V??[]});d({cache:G,throttle:!1})},[t.getRowId,d,e]),g=v.useCallback(z=>{z!==t.loading&&(n.debug(`Setting loading to ${z}`),e.current.setState(V=>D({},V,{rows:D({},V.rows,{loading:z})})),e.current.caches.rows.loadingPropBeforePartialUpdates=z)},[t.loading,e,n]),y=v.useCallback(()=>{const z=SP(e),V=mf(e);return new Map(z.map(W=>[W,V[W]??{}]))},[e]),b=v.useCallback(()=>PM(e),[e]),x=v.useCallback(()=>SP(e),[e]),S=v.useCallback(z=>u[z],[u]),P=v.useCallback((z,V)=>{const W=e.current.getRowNode(z);if(!W)throw new Error(`MUI X: No row with id #${z} found.`);if(W.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const G=D({},W,{childrenExpanded:V});e.current.setState(J=>D({},J,{rows:D({},J.rows,{tree:D({},J.rows.tree,{[z]:G})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",G)},[e]),E=v.useCallback(z=>si(e)[z]??null,[e]),T=v.useCallback(({skipAutoGeneratedRows:z=!0,groupId:V,applySorting:W,applyFiltering:G})=>{const J=si(e);let K;if(W){const ne=J[V];if(!ne)return[];const re=Db(e);K=[];const oe=re.findIndex(fe=>fe===V)+1;for(let fe=oe;fe<re.length&&J[re[fe]].depth>ne.depth;fe+=1){const se=re[fe];(!z||!Mv(J[se]))&&K.push(se)}}else K=rV(J,V,z);if(G){const ne=_b(e);K=K.filter(re=>ne[re]!==!1)}return K},[e]),O=v.useCallback((z,V)=>{const W=e.current.getRowNode(z);if(!W)throw new Error(`MUI X: No row with id #${z} found.`);if(W.parent!==li)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(W.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(G=>{const J=si(G,e.current.instanceId)[li],K=J.children,ne=K.findIndex(oe=>oe===z);if(ne===-1||ne===V)return G;n.debug(`Moving row ${z} to index ${V}`);const re=[...K];return re.splice(V,0,re.splice(ne,1)[0]),D({},G,{rows:D({},G.rows,{tree:D({},G.rows.tree,{[li]:D({},J,{children:re})})})})}),e.current.publishEvent("rowsSet")},[e,n]),k=v.useCallback((z,V)=>{if(t.signature===il.DataGrid&&V.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
+`));if(V.length===0)return;if(Rb(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const G=D({},si(e)),J=D({},mf(e)),K=D({},OO(e)),ne=G[li],re=[...ne.children],oe=new Set;for(let se=0;se<V.length;se+=1){const ee=V[se],ce=EM(ee,t.getRowId,"A row was provided without id when calling replaceRows()."),[le]=re.splice(z+se,1,ce);oe.has(le)||(delete J[le],delete K[le],delete G[le]);const Q={id:ce,depth:0,parent:li,type:"leaf",groupingKey:null};J[ce]=ee,K[ce]=ce,G[ce]=Q,oe.add(ce)}G[li]=D({},ne,{children:re});const fe=re.filter(se=>{var ee;return((ee=G[se])==null?void 0:ee.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=J,e.current.caches.rows.dataRowIdToIdLookup=K,e.current.setState(se=>D({},se,{rows:D({},se.rows,{dataRowIdToModelLookup:J,dataRowIdToIdLookup:K,dataRowIds:fe,tree:G})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),M={getRow:s,setLoading:g,getRowId:c,getRowModels:y,getRowsCount:b,getAllRowIds:x,setRows:f,updateRows:p,getRowNode:E,getRowIndexRelativeToVisibleRows:S,unstable_replaceRows:k},I={setRowIndex:O,setRowChildrenExpansion:P,getRowGroupChildren:T},R={updateServerRows:m},_=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let z;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?z=D({},e.current.caches.rows,{updates:{type:"full",rows:SP(e)}}):z=sE({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:z,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),L=eu(()=>t.unstable_dataSource),j=v.useCallback(z=>{if(t.unstable_dataSource&&t.unstable_dataSource!==L.current){L.current=t.unstable_dataSource;return}z==="rowTreeCreation"&&_()},[_,L,t.unstable_dataSource]),N=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==mEt(e)&&_()},[e,_]);gt(e,"activeStrategyProcessorChange",j),gt(e,"strategyAvailabilityChange",N);const F=v.useCallback(()=>{e.current.setState(z=>{const V=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:si(z,e.current.instanceId),treeDepths:qq(z,e.current.instanceId),dataRowIds:SP(z,e.current.instanceId),dataRowIdToModelLookup:mf(z,e.current.instanceId),dataRowIdToIdLookup:OO(z,e.current.instanceId)});return D({},z,{rows:D({},z.rows,V,{totalTopLevelRowCount:$ce({tree:V.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);bV(e,"hydrateRows",F),Qt(e,M,"public"),Qt(e,I,t.signature===il.DataGrid?"private":"public"),Qt(e,R,"private");const U=v.useRef(!0);v.useEffect(()=>{var J;if(U.current){U.current=!1;return}let z=!1;t.rowCount!==i.current&&(z=!0,i.current=t.rowCount);const V=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,W=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,G=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;V&&(W||(e.current.setState(K=>D({},K,{rows:D({},K.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),G||(e.current.setState(K=>D({},K,{rows:D({},K.rows,{totalRowCount:Math.max(t.rowCount||0,K.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,K.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!z)||(n.debug(`Updating all rows, new length ${(J=t.rows)==null?void 0:J.length}`),d({cache:sE({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,d,e])},T$t=e=>{const t={[li]:D({},yEt(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:li,type:"leaf",groupingKey:null}}return{groupingName:Gh,tree:t,treeDepths:{0:e.length},dataRowIds:e}},O$t=({previousTree:e,actions:t})=>{const n=D({},e),r={};for(let a=0;a<t.remove.length;a+=1){const s=t.remove[a];r[s]=!0,delete n[s]}for(let a=0;a<t.insert.length;a+=1){const s=t.insert[a];n[s]={id:s,depth:0,parent:li,type:"leaf",groupingKey:null}}const o=n[li];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[li]=D({},o,{children:i}),{groupingName:Gh,tree:n,treeDepths:{0:i.length},dataRowIds:i}},I$t=e=>e.updates.type==="full"?T$t(e.updates.rows):O$t({previousTree:e.previousTree,actions:e.updates.actions}),k$t=e=>{$O(e,Gh,"rowTreeCreation",I$t)};class r2 extends Error{}function M$t(e,t){const n=v.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=v.useCallback(f=>{const p=e.current.getRow(f);if(!p)throw new r2(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:p}},[e]),o=v.useCallback((f,p)=>{const m=t.unstable_listView?$v(e.current.state):e.current.getColumn(p),g=e.current.getRow(f),y=e.current.getRowNode(f);if(!g||!y)throw new r2(`No row with id #${f} found`);const b=g[p],x=m!=null&&m.valueGetter?m.valueGetter(b,g,m,e):b,S=Ba(e),P=lV(e),E={id:f,field:p,row:g,rowNode:y,colDef:m,cellMode:e.current.getCellMode(f,p),hasFocus:S!==null&&S.field===p&&S.id===f,tabIndex:P&&P.field===p&&P.id===f?0:-1,value:x,formattedValue:x,isEditable:!1,api:{}};return m&&m.valueFormatter&&(E.formattedValue=m.valueFormatter(x,g,m,e)),E.isEditable=m&&e.current.isCellEditable(E),E},[e,t.unstable_listView]),i=v.useCallback((f,p)=>{const m=e.current.getColumn(p),g=e.current.getRow(f);if(!g)throw new r2(`No row with id #${f} found`);return!m||!m.valueGetter?g[p]:m.valueGetter(g[m.field],g,m,e)},[e]),a=v.useCallback((f,p)=>{const m=p.field;if(!p||!p.valueGetter)return f[m];const g=f[p.field];return p.valueGetter(g,f,p,e)},[e]),s=v.useCallback((f,p)=>{const m=a(f,p);return!p||!p.valueFormatter?m:p.valueFormatter(m,f,p,e)},[e,a]),l=v.useCallback(f=>e.current.rootElementRef.current?NIt(e.current.rootElementRef.current,f):null,[e]),c=v.useCallback(f=>e.current.rootElementRef.current?FIt(e.current.rootElementRef.current,f):null,[e]),u=v.useCallback((f,p)=>e.current.rootElementRef.current?jIt(e.current.rootElementRef.current,{id:f,field:p}):null,[e]);Qt(e,{getCellValue:i,getCellParams:o,getCellElement:u,getRowValue:a,getRowFormattedValue:s,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const kue=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],A$t=(e,t)=>D({},e,{rowSelection:t.rowSelection?kue(t.rowSelectionModel)??[]:[]}),$$t=(e,t)=>{var F,U,z,V,W,G,J;const n=Fo(e,"useGridSelection"),r=v.useCallback(K=>(...ne)=>{t.rowSelection&&K(...ne)},[t.rowSelection]),o=t.signature!==il.DataGrid&&(((F=t.rowSelectionPropagation)==null?void 0:F.parents)||((U=t.rowSelectionPropagation)==null?void 0:U.descendants)),i=v.useMemo(()=>kue(t.rowSelectionModel,Fs(e.current.state)),[e,t.rowSelectionModel]),a=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:Fs,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=sV(t),d=bm(e,t),f=Ge(e,si),p=Ge(e,Rb)>1,m=v.useCallback(K=>{let ne=K;const re=a.current??K,oe=e.current.isRowSelected(K);if(oe){const fe=vy(e),se=fe.findIndex(ce=>ce===re),ee=fe.findIndex(ce=>ce===ne);if(se===ee)return;se>ee?ne=fe[ee+1]:ne=fe[ee-1]}a.current=K,e.current.selectRowRange({startId:re,endId:ne},!oe)},[e]),g=v.useCallback(K=>{if(t.signature===il.DataGrid&&!u&&Array.isArray(K)&&K.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
+`));Fs(e.current.state)!==K&&(n.debug("Setting selection model"),e.current.setState(re=>D({},re,{rowSelection:t.rowSelection?K:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),y=v.useCallback(K=>Fs(e.current.state).includes(K),[e]),b=v.useCallback(K=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(K)))return!1;const ne=e.current.getRowNode(K);return!((ne==null?void 0:ne.type)==="footer"||(ne==null?void 0:ne.type)==="pinnedRow")},[e,t.rowSelection,c]),x=v.useCallback(()=>VEt(e),[e]),S=v.useCallback((K,ne=!0,re=!1)=>{var oe,fe,se,ee,ce,le;if(e.current.isRowSelectable(K))if(a.current=K,re){n.debug(`Setting selection for row ${K}`);const Q=[],ue=ge=>{Q.push(ge)};ne&&(ue(K),o&&CP(e,f,K,((oe=t.rowSelectionPropagation)==null?void 0:oe.descendants)??!1,((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)??!1,ue)),e.current.setRowSelectionModel(Q)}else{n.debug(`Toggling selection for row ${K}`);const Q=Fs(e.current.state),ue=new Set(Q);ue.delete(K);const ge=be=>{ue.add(be)},xe=be=>{ue.delete(be)};ne?(ge(K),o&&CP(e,f,K,((se=t.rowSelectionPropagation)==null?void 0:se.descendants)??!1,((ee=t.rowSelectionPropagation)==null?void 0:ee.parents)??!1,ge)):o&&Xq(e,f,K,((ce=t.rowSelectionPropagation)==null?void 0:ce.descendants)??!1,((le=t.rowSelectionPropagation)==null?void 0:le.parents)??!1,xe),(ue.size<2||u)&&e.current.setRowSelectionModel(Array.from(ue))}},[e,n,o,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(V=t.rowSelectionPropagation)==null?void 0:V.parents,u]),P=v.useCallback((K,ne=!0,re=!1)=>{n.debug("Setting selection for several rows");const oe=K.filter(ee=>e.current.isRowSelectable(ee));let fe;if(re){if(ne){if(fe=new Set(oe),o){const ce=le=>{fe.add(le)};oe.forEach(le=>{var Q,ue;CP(e,f,le,((Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)??!1,((ue=t.rowSelectionPropagation)==null?void 0:ue.parents)??!1,ce)})}}else fe=new Set;const ee=Vu(e);if(fe.size===Object.keys(ee).length&&Array.from(fe).every(ce=>ee[ce]===ce))return}else{fe=new Set(Object.values(Vu(e)));const ee=le=>{fe.add(le)},ce=le=>{fe.delete(le)};oe.forEach(le=>{var Q,ue,ge,xe;ne?(fe.add(le),o&&CP(e,f,le,((Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)??!1,((ue=t.rowSelectionPropagation)==null?void 0:ue.parents)??!1,ee)):(ce(le),o&&Xq(e,f,le,((ge=t.rowSelectionPropagation)==null?void 0:ge.descendants)??!1,((xe=t.rowSelectionPropagation)==null?void 0:xe.parents)??!1,ce))})}(fe.size<2||u)&&e.current.setRowSelectionModel(Array.from(fe))},[n,o,u,e,f,(W=t.rowSelectionPropagation)==null?void 0:W.descendants,(G=t.rowSelectionPropagation)==null?void 0:G.parents]),E=v.useCallback(({startId:K,endId:ne},re=!0,oe=!1)=>{if(!e.current.getRow(K)||!e.current.getRow(ne))return;n.debug(`Expanding selection from row ${K} to row ${ne}`);const fe=vy(e),se=fe.indexOf(K),ee=fe.indexOf(ne),[ce,le]=se>ee?[ee,se]:[se,ee],Q=fe.slice(ce,le+1);e.current.selectRows(Q,re,oe)},[e,n]),T={selectRow:S,setRowSelectionModel:g,getSelectedRows:x,isRowSelected:y,isRowSelectable:b},O={selectRows:P,selectRowRange:E};Qt(e,T,"public"),Qt(e,O,t.signature===il.DataGrid?"private":"public");const k=v.useCallback((K=!1)=>{var le;const ne=Fs(e.current.state),re=mf(e),oe=_b(e),fe=D({},Vu(e)),se=Q=>t.filterMode==="server"?!re[Q]:oe[Q]!==!0;let ee=!1;ne.forEach(Q=>{var ge;if(se(Q)){if(t.keepNonExistentRowsSelected)return;delete fe[Q],ee=!0;return}if(!((ge=t.rowSelectionPropagation)!=null&&ge.parents))return;const ue=f[Q];if(ue.type==="group"){if(ue.isAutoGenerated){delete fe[Q],ee=!0;return}ue.children.every(me=>oe[me]===!1)||(delete fe[Q],ee=!0)}});const ce=p&&((le=t.rowSelectionPropagation)==null?void 0:le.parents)&&Object.keys(fe).length>0;if(ee||ce&&!K){const Q=Object.values(fe);ce?e.current.selectRows(Q,!0,!0):e.current.setRowSelectionModel(Q)}},[e,p,(J=t.rowSelectionPropagation)==null?void 0:J.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),M=v.useCallback((K,ne)=>{const re=ne.metaKey||ne.ctrlKey,oe=!s&&!re&&!Nkt(ne),fe=!u||oe,se=e.current.isRowSelected(K);fe?e.current.selectRow(K,oe?!0:!se,!0):e.current.selectRow(K,!se,!1)},[e,u,s]),I=v.useCallback((K,ne)=>{var fe;if(l)return;const re=(fe=ne.target.closest(`.${ae.cell}`))==null?void 0:fe.getAttribute("data-field");if(re===Lb.field||re===TM)return;if(re){const se=e.current.getColumn(re);if((se==null?void 0:se.type)===CM)return}e.current.getRowNode(K.id).type!=="pinnedRow"&&(ne.shiftKey&&u?m(K.id):M(K.id,ne))},[l,u,e,m,M]),R=v.useCallback((K,ne)=>{var re;u&&ne.shiftKey&&((re=window.getSelection())==null||re.removeAllRanges())},[u]),_=v.useCallback((K,ne)=>{u&&ne.nativeEvent.shiftKey?m(K.id):e.current.selectRow(K.id,K.value,!u)},[e,m,u]),L=v.useCallback(K=>{const ne=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Yce(e):vy(e);e.current.selectRows(ne,K.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),j=v.useCallback((K,ne)=>{if(e.current.getCellMode(K.id,K.field)!==Jn.Edit&&!O1(ne)){if(AO(ne.key)&&ne.shiftKey){const re=Ba(e);if(re&&re.id!==K.id){ne.preventDefault();const oe=e.current.isRowSelected(re.id);if(!u){e.current.selectRow(re.id,!oe,!0);return}const fe=e.current.getRowIndexRelativeToVisibleRows(re.id),se=e.current.getRowIndexRelativeToVisibleRows(K.id);let ee,ce;fe>se?oe?(ee=se,ce=fe-1):(ee=se,ce=fe):oe?(ee=fe+1,ce=se):(ee=fe,ce=se);const le=d.rows.slice(ee,ce+1).map(Q=>Q.id);e.current.selectRows(le,!oe);return}}if(ne.key===" "&&ne.shiftKey){ne.preventDefault(),M(K.id,ne);return}String.fromCharCode(ne.keyCode)==="A"&&(ne.ctrlKey||ne.metaKey)&&(ne.preventDefault(),P(e.current.getAllRowIds(),!0))}},[e,M,P,d.rows,u]);gt(e,"sortedRowsSet",r(()=>k(!0))),gt(e,"filteredRowsSet",r(k)),gt(e,"rowClick",r(I)),gt(e,"rowSelectionCheckboxChange",r(_)),gt(e,"headerSelectionCheckboxChange",L),gt(e,"cellMouseDown",r(R)),gt(e,"cellKeyDown",r(j)),v.useEffect(()=>{i!==void 0&&e.current.setRowSelectionModel(i)},[e,i,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const N=i!=null;v.useEffect(()=>{if(N||!t.rowSelection)return;const K=Fs(e.current.state);if(b){const ne=K.filter(re=>b(re));ne.length<K.length&&e.current.setRowSelectionModel(ne)}},[e,b,N,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||N)return;const K=Fs(e.current.state);!u&&K.length>1&&e.current.setRowSelectionModel([])},[e,u,s,N,t.rowSelection]),v.useEffect(()=>{r(k)},[k,r])},R$t=e=>{const{classes:t}=e;return v.useMemo(()=>bt({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},wn,t),[t])},D$t=(e,t)=>{const n={classes:t.classes},r=R$t(n),o=v.useCallback(i=>{const a=D({},Lb,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[Cu]!=null;return s&&!l?(i.lookup[Cu]=a,i.orderedFields=[Cu,...i.orderedFields]):!s&&l?(delete i.lookup[Cu],i.orderedFields=i.orderedFields.filter(c=>c!==Cu)):s&&l&&(i.lookup[Cu]=D({},a,i.lookup[Cu])),i},[e,r,t.checkboxSelection]);$r(e,"hydrateColumns",o)},_$t=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return D({},e,{sorting:{sortModel:xce(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},L$t=(e,t)=>{var E,T;const n=Fo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Ns,changeEvent:"sortModelChange"});const r=v.useCallback((O,k)=>{const M=Ns(e),I=M.findIndex(_=>_.field===O);let R=[...M];return I>-1?(k==null?void 0:k.sort)==null?R.splice(I,1):R.splice(I,1,k):R=[...M,k],R},[e]),o=v.useCallback((O,k)=>{const I=Ns(e).find(R=>R.field===O.field);if(I){const R=k===void 0?jq(O.sortingOrder??t.sortingOrder,I.sort):k;return R===void 0?void 0:D({},I,{sort:R})}return{field:O.field,sort:k===void 0?jq(O.sortingOrder??t.sortingOrder):k}},[e,t.sortingOrder]),i=v.useCallback((O,k)=>k==null||k.sortable===!1||t.disableColumnSorting?O:(k.sortingOrder||t.sortingOrder).some(I=>!!I)?[...O,"columnMenuSortItem"]:O,[t.sortingOrder,t.disableColumnSorting]),a=v.useCallback(()=>{e.current.setState(O=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),D({},O,{sorting:D({},O.sorting,{sortedRows:rV(si(e),li,!1)})});const k=Ns(O,e.current.instanceId),M=jPt(k,e),I=e.current.applyStrategyProcessor("sorting",{sortRowList:M});return D({},O,{sorting:D({},O.sorting,{sortedRows:I})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),s=v.useCallback(O=>{Ns(e)!==O&&(n.debug("Setting sort model"),e.current.setState(Fq(O,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=v.useCallback((O,k,M)=>{const I=e.current.getColumn(O),R=o(I,k);let _;!M||t.disableMultipleColumnsSorting?_=(R==null?void 0:R.sort)==null?[]:[R]:_=r(I.field,R),e.current.setSortModel(_)},[e,r,o,t.disableMultipleColumnsSorting]),c=v.useCallback(()=>Ns(e),[e]),u=v.useCallback(()=>oV(e).map(k=>k.model),[e]),d=v.useCallback(()=>Db(e),[e]),f=v.useCallback(O=>e.current.getSortedRowIds()[O],[e]);Qt(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:s,sortColumn:l,applySorting:a},"public");const m=v.useCallback((O,k)=>{var R,_;const M=Ns(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||((_=(R=t.initialState)==null?void 0:R.sorting)==null?void 0:_.sortModel)!=null||M.length>0?D({},O,{sorting:{sortModel:M}}):O},[e,t.sortModel,(T=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:T.sortModel]),g=v.useCallback((O,k)=>{var I;const M=(I=k.stateToRestore.sorting)==null?void 0:I.sortModel;return M==null?O:(e.current.setState(Fq(M,t.disableMultipleColumnsSorting)),D({},O,{callbacks:[...O.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),y=v.useCallback(O=>{const k=si(e),M=k[li],I=O.sortRowList?O.sortRowList(M.children.map(R=>k[R])):[...M.children];return M.footerId!=null&&I.push(M.footerId),I},[e]);$r(e,"exportState",m),$r(e,"restoreState",g),$O(e,Gh,"sorting",y);const b=v.useCallback(({field:O,colDef:k},M)=>{if(!k.sortable||t.disableColumnSorting)return;const I=M.shiftKey||M.metaKey||M.ctrlKey;l(O,void 0,I)},[l,t.disableColumnSorting]),x=v.useCallback(({field:O,colDef:k},M)=>{!k.sortable||t.disableColumnSorting||M.key==="Enter"&&!M.ctrlKey&&!M.metaKey&&l(O,void 0,M.shiftKey)},[l,t.disableColumnSorting]),S=v.useCallback(()=>{const O=Ns(e),k=vd(e);if(O.length>0){const M=O.filter(I=>k[I.field]);M.length<O.length&&e.current.setSortModel(M)}},[e]),P=v.useCallback(O=>{O==="sorting"&&e.current.applySorting()},[e]);$r(e,"columnMenu",i),gt(e,"columnHeaderClick",b),gt(e,"columnHeaderKeyDown",x),gt(e,"rowsSet",e.current.applySorting),gt(e,"columnsChange",S),gt(e,"activeStrategyProcessorChange",P),E1(()=>{e.current.applySorting()}),mr(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function AK(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const N$t=(e,t)=>{const n=po(),r=Fo(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=Ge(e,up),s=v.useCallback(d=>{var b;const f=Mi(e.current.state),p=PM(e),m=t.unstable_listView?[$v(e.current.state)]:wo(e);if(!(d.rowIndex==null)&&p===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let y={};if(d.colIndex!==void 0){const x=cp(e);let S;if(typeof d.rowIndex<"u"){const P=(b=a[d.rowIndex])==null?void 0:b.id,E=e.current.unstable_getCellColSpanInfo(P,d.colIndex);E&&!E.spannedByColSpan&&(S=E.cellProps.width)}typeof S>"u"&&(S=m[d.colIndex].computedWidth),y.left=AK({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:S,elementOffset:x[d.colIndex]})}if(d.rowIndex!==void 0){const x=Nb(e.current.state),S=oTt(e),P=iTt(e),E=t.pagination?d.rowIndex-S*P:d.rowIndex,T=x.positions[E+1]?x.positions[E+1]-x.positions[E]:x.currentPageTotalHeight-x.positions[E];y.top=AK({containerSize:f.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:T,elementOffset:x.positions[E]})}return y=e.current.unstable_applyPipeProcessors("scrollToIndexes",y,d),typeof y.left!==void 0||typeof y.top!==void 0?(e.current.scroll(y),!0):!1},[r,e,i,t.pagination,a,t.unstable_listView]),l=v.useCallback(d=>{if(i.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!==void 0&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=v.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Qt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:c},"public")};function F$t(e,t){ar(e,"columnHeaderClick",t.onColumnHeaderClick),ar(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),ar(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),ar(e,"columnHeaderOver",t.onColumnHeaderOver),ar(e,"columnHeaderOut",t.onColumnHeaderOut),ar(e,"columnHeaderEnter",t.onColumnHeaderEnter),ar(e,"columnHeaderLeave",t.onColumnHeaderLeave),ar(e,"cellClick",t.onCellClick),ar(e,"cellDoubleClick",t.onCellDoubleClick),ar(e,"cellKeyDown",t.onCellKeyDown),ar(e,"preferencePanelClose",t.onPreferencePanelClose),ar(e,"preferencePanelOpen",t.onPreferencePanelOpen),ar(e,"menuOpen",t.onMenuOpen),ar(e,"menuClose",t.onMenuClose),ar(e,"rowDoubleClick",t.onRowDoubleClick),ar(e,"rowClick",t.onRowClick),ar(e,"stateChange",t.onStateChange)}function j$t(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const xN={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Yc.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},xg={width:0,height:0},B$t={isReady:!1,root:xg,viewportOuterSize:xg,viewportInnerSize:xg,contentSize:xg,minimumSize:xg,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},z$t=e=>D({},e,{dimensions:B$t});function V$t(e,t){const n=Fo(e,"useResizeContainer"),r=v.useRef(!1),o=v.useRef(xg),i=Ge(e,Mi),a=Ge(e,Nb),s=Ge(e,P1),l=Ge(e,C1),c=v.useMemo(()=>_ce(t.rowHeight,xN.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),p=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),m=U$t(Jz(e),6),g=dV(e,t),y=s.left.reduce((F,U)=>F+U.computedWidth,0),b=s.right.reduce((F,U)=>F+U.computedWidth,0),[x,S]=v.useState(),P=v.useMemo(()=>j$t(S,t.resizeThrottleMs),[t.resizeThrottleMs]);v.useEffect(()=>P.clear,[P]);const E=v.useRef(),T=()=>e.current.state.dimensions,O=ot(F=>{e.current.setState(U=>D({},U,{dimensions:F}))}),k=v.useCallback(()=>{const F=e.current.mainElementRef.current;if(!F)return;const U=qot(F).getComputedStyle(F),z={width:parseFloat(U.width)||0,height:parseFloat(U.height)||0};(!E.current||!$K(E.current,z))&&(e.current.publishEvent("resize",z),E.current=z)},[e]),M=v.useCallback(()=>{const F=Mi(e.current.state);if(!F.isReady)return 0;const U=by(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const V=DM(e),W=V.lastRowIndex-V.firstRowIndex;return Math.min(W-1,U.rows.length)}const z=Math.floor(F.viewportInnerSize.height/u);return Math.min(z,U.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),I=v.useCallback(()=>{var le,Q;const F=e.current.rootElementRef.current,U=bEt(e),z=H$t(F,m,t.scrollbarSize),V=g+U.top,W=U.bottom,J={width:m-y-b,height:a.currentPageTotalHeight};let K,ne,re=!1,oe=!1;if(t.autoHeight)oe=!1,re=Math.round(m)>Math.round(o.current.width),K={width:o.current.width,height:V+W+J.height},ne={width:Math.max(0,K.width-(oe?z:0)),height:Math.max(0,K.height-(re?z:0))};else{K={width:o.current.width,height:o.current.height},ne={width:Math.max(0,K.width-y-b),height:Math.max(0,K.height-V-W)};const ue=J,ge=ne,xe=ue.width>ge.width,me=ue.height>ge.height;(xe||me)&&(oe=me,re=ue.width+(oe?z:0)>ge.width,re&&(oe=ue.height+z>ge.height)),oe&&(ne.width-=z),re&&(ne.height-=z)}const fe=Math.max(K.width,m+(oe?z:0)),se={width:m,height:V+J.height+W},ee={isReady:!0,root:o.current,viewportOuterSize:K,viewportInnerSize:ne,contentSize:J,minimumSize:se,hasScrollX:re,hasScrollY:oe,scrollbarSize:z,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:p,rowWidth:fe,rowHeight:u,columnsTotalWidth:m,leftPinnedWidth:y,rightPinnedWidth:b,headersTotalHeight:g,topContainerHeight:V,bottomContainerHeight:W},ce=e.current.state.dimensions;O(ee),$K(ee.viewportInnerSize,ce.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",ee.viewportInnerSize),(Q=(le=e.current).updateRenderContext)==null||Q.call(le)},[e,O,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u,d,f,p,m,g,y,b]),R={resize:k,getRootDimensions:T},_={updateDimensions:I,getViewportPageSize:M};Qt(e,R,"public"),Qt(e,_,"private"),mr(()=>{x&&(I(),e.current.publishEvent("debouncedResize",o.current))},[e,x,I]);const L=e.current.rootElementRef.current;mr(()=>{if(!L)return;const F=(U,z)=>L.style.setProperty(U,z);F("--DataGrid-width",`${i.viewportOuterSize.width}px`),F("--DataGrid-hasScrollX",`${Number(i.hasScrollX)}`),F("--DataGrid-hasScrollY",`${Number(i.hasScrollY)}`),F("--DataGrid-scrollbarSize",`${i.scrollbarSize}px`),F("--DataGrid-rowWidth",`${i.rowWidth}px`),F("--DataGrid-columnsTotalWidth",`${i.columnsTotalWidth}px`),F("--DataGrid-leftPinnedWidth",`${i.leftPinnedWidth}px`),F("--DataGrid-rightPinnedWidth",`${i.rightPinnedWidth}px`),F("--DataGrid-headerHeight",`${i.headerHeight}px`),F("--DataGrid-headersTotalHeight",`${i.headersTotalHeight}px`),F("--DataGrid-topContainerHeight",`${i.topContainerHeight}px`),F("--DataGrid-bottomContainerHeight",`${i.bottomContainerHeight}px`),F("--height",`${i.rowHeight}px`)},[L,i]);const j=v.useRef(!0),N=v.useCallback(F=>{o.current=F;const U=/jsdom|HappyDOM/.test(window.navigator.userAgent);if(F.height===0&&!r.current&&!t.autoHeight&&!U&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),F.width===0&&!r.current&&!U&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
-`)),r.current=!0),B.current){S(F),B.current=!1;return}P(F)},[t.autoHeight,P,n]);xn(I,[I]),lr(e,"sortedRowsSet",I),lr(e,"paginationModelChange",I),lr(e,"columnsChange",I),gt(e,"resize",L),lr(e,"debouncedResize",t.onResize)}function lMt(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=mr(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function cMt(e,t){return Math.round(e*10**t)/10**t}function _q(e,t){return e.width===t.width&&e.height===t.height}const uMt=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},dMt=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},D({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),fMt=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,a=v.useRef(-1),s=v.useRef(!1),l=v.useRef(!1),c=Ye(e,ZS),u=Ye(e,Qo),d=Ye(e,Yk),f=Ye(e,ks),p=tm(e,t),m=Ye(e,em),g=Ye(e,()=>Ci(e.current.state).rowHeight),y=N=>{let B=i.get(N);return B===void 0&&(B={content:g,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(N,B)),B},b=v.useCallback(N=>{const B=Ci(e.current.state).rowHeight,L=e.current.getRowHeightEntry(N.id);if(!n)L.content=B,L.needsFirstMeasurement=!1;else{const F=n(D({},N,{densityFactor:c}));if(F==="auto"){if(L.needsFirstMeasurement){const U=o?o(D({},N,{densityFactor:c})):B;L.content=U??B}s.current=!0,L.autoHeight=!0}else L.content=Ole(F,B),L.needsFirstMeasurement=!1,L.autoHeight=!1}if(r){const F=e.current.getRowIndexRelativeToVisibleRows(N.id),U=r(D({},N,{isFirstVisible:F===0,isLastVisible:F===p.rows.length-1,indexRelativeToCurrentPage:F}));L.spacingTop=U.top??0,L.spacingBottom=U.bottom??0}else L.spacingTop=0,L.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",L,N),L},[e,p.rows.length,n,o,g,r,c]),x=v.useCallback(()=>{s.current=!1,m.top.forEach(b),m.bottom.forEach(b);const N=[],B=p.rows.reduce((L,F)=>{N.push(L);const U=b(F),V=U.content+U.spacingTop+U.spacingBottom+U.detail;return L+V},0);s.current||(a.current=1/0),e.current.setState(L=>D({},L,{rowsMeta:{currentPageTotalHeight:B,positions:N}})),l.current=!0},[e,m,p.rows,b]),S=N=>{var B;return((B=i.get(N))==null?void 0:B.content)??g},P=(N,B)=>{const L=e.current.getRowHeightEntry(N),F=L.content!==B;L.needsFirstMeasurement=!1,L.content=B,l.current&&(l.current=!F)},E=N=>{var B;return((B=i.get(N))==null?void 0:B.autoHeight)??!1},T=()=>a.current,O=N=>{s.current&&N>a.current&&(a.current=N)},k=()=>{i.clear(),x()},M=Jl(()=>new uMt(N=>{for(let B=0;B<N.length;B+=1){const L=N[B],F=L.borderBoxSize&&L.borderBoxSize.length>0?L.borderBoxSize[0].blockSize:L.contentRect.height,U=L.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(U,F)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,I=(N,B)=>(N.__mui_id=B,M.observe(N),()=>M.unobserve(N));Az(e,"rowHeight",x),v.useEffect(()=>{x()},[u,d,f,x]);const R={unstable_getRowHeight:S,unstable_setLastMeasuredRowIndex:O,unstable_storeRowHeightMeasurement:P,resetRowHeights:k},_={hydrateRowsMeta:x,observeRowHeight:I,rowHasAutoHeight:E,getRowHeightEntry:y,getLastMeasuredRowIndex:T};Qt(e,R,"public"),Qt(e,_,"private")},pMt=e=>{const t=v.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=v.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Qt(e,{exportState:t,restoreState:n},"public")},hMt=e=>{const t=v.useRef({}),n=(s,l)=>{var c;return(c=t.current[s])==null?void 0:c[l]},r=()=>{t.current={}},o=v.useCallback(({rowId:s,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d<c;d+=1){const f=mMt({apiRef:e,lookup:t.current,columnIndex:d,rowId:s,minFirstColumnIndex:l,maxLastColumnIndex:c,columns:u});f.colSpan>1&&(d+=f.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},a={resetColSpan:r,calculateColSpan:o};Qt(e,i,"public"),Qt(e,a,"private"),gt(e,"columnOrderChange",r)};function mMt(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:s}=e,l=s.length,c=s[r],u=t.current.getRow(o),d=t.current.getRowValue(u,c),f=typeof c.colSpan=="function"?c.colSpan(d,u,c,t):c.colSpan;if(!f||f===1)return xR(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let p=c.computedWidth;for(let m=1;m<f;m+=1){const g=r+m;if(g>=i&&g<a){const y=s[g];p+=y.computedWidth,xR(n,o,r+m,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+f,l-1),leftVisibleCellIndex:r})}xR(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:f,width:p}})}return{colSpan:f}}function xR(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const Sce=(e,t,n)=>{if(ble(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
-`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Sce(i,[...t,r],n)})},jL=e=>{if(!e)return{};const t={};return e.forEach(n=>{Sce(n,[],t)}),t},BL=(e,t,n)=>{const r=l=>t[l]??[],o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,c,u)=>Qg(r(l).slice(0,u+1),r(c).slice(0,u+1)),s=(l,c)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(c));for(let l=0;l<i;l+=1){const c=e.reduce((u,d)=>{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const p=u[u.length-1],m=p.columnFields[p.columnFields.length-1];return p.groupId!==f||!a(m,d,l)||s(m,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...p.columnFields,d],groupId:f}]},[]);o.push(c)}return o},gMt=["groupId","children"],$z=e=>{let t={};return e.forEach(n=>{if(ble(n))return;const{groupId:r,children:o}=n,i=Ue(n,gMt);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=D({},i,{groupId:r}),s=$z(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=D({},t,s,{[r]:a})}),D({},t)},yMt=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=Iu(n),o=lb(n),i=$z(t.columnGroupingModel??[]),a=jL(t.columnGroupingModel??[]),s=BL(r,a,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=a[c])==null?void 0:u.length)??0}));return D({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:l}})},vMt=(e,t)=>{const n=v.useCallback(s=>Wle(e)[s]??[],[e]),r=v.useCallback(()=>Gle(e),[e]);Qt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=v.useCallback(()=>{const s=jL(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=BL(c,s,u);return D({},l,{columnGrouping:D({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),a=v.useCallback(s=>{var g,y;const l=((y=(g=e.current).getPinnedColumns)==null?void 0:y.call(g))??{},c=Iu(e),u=lb(e),d=$z(s??[]),f=jL(s??[]),p=BL(c,f,l),m=u.length===0?0:Math.max(...u.map(b=>{var x;return((x=f[b])==null?void 0:x.length)??0}));e.current.setState(b=>D({},b,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:p,maxDepth:m}}))},[e]);gt(e,"columnIndexChange",i),gt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),gt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),v.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])};function bMt(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Lq(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Nq(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function wMt(e,t,n){return n==="Left"?e-t.left:t.right-e}function xMt(e){return e==="Right"?"Left":"Right"}function SMt(e,t){const n=e.classList.contains(ae["columnSeparator--sideRight"])?"Right":"Left";return t?xMt(n):n}function Fq(e){e.preventDefault(),e.stopImmediatePropagation()}function CMt(e){const t=v.useRef(),n=()=>Jk(e),r=Ye(e,n);return v.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=bMt()}return t.current}}function PMt(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,l)=>s-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,a=i<5?5:i*t;return n.filter(s=>s>r-a&&s<o+a)}function EMt(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(ae.autosizing),n.forEach(i=>{const s=mTt(e.current,i.field).map(m=>m.getBoundingClientRect().width??0),l=t.includeOutliers?s:PMt(s,t.outliersFactor);if(t.includeHeaders){const m=hTt(e.current,i.field);if(m){const g=m.querySelector(`.${ae.columnHeaderTitle}`),y=m.querySelector(`.${ae.columnHeaderTitleContainerContent}`),b=m.querySelector(`.${ae.iconButtonContainer}`),x=m.querySelector(`.${ae.menuIcon}`),S=g??y,P=window.getComputedStyle(m,null),E=parseInt(P.paddingLeft,10)+parseInt(P.paddingRight,10),O=S.scrollWidth+1+E+((b==null?void 0:b.clientWidth)??0)+((x==null?void 0:x.clientWidth)??0);l.push(O)}}const c=i.minWidth!==-1/0&&i.minWidth!==void 0,u=i.maxWidth!==1/0&&i.maxWidth!==void 0,d=c?i.minWidth:0,f=u?i.maxWidth:1/0,p=l.length===0?0:Math.max(...l);r[i.field]=$c(p,d,f)}),o.classList.remove(ae.autosizing),r}const TMt=e=>D({},e,{columnResize:{resizingColumnField:""}});function OMt(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const IMt=(e,t)=>{const n=nr(),r=Ro(e,"useGridColumnResize"),o=Jl(OMt).current,i=v.useRef(),a=v.useRef(),s=la(),l=v.useRef(),c=M=>{var F,U;r.debug(`Updating width to ${M} for col ${o.colDef.field}`);const I=o.columnHeaderElement.offsetWidth,R=M-I,_=M-o.initialColWidth,N=o.initialTotalWidth+_;(U=(F=e.current.rootElementRef)==null?void 0:F.current)==null||U.style.setProperty("--DataGrid-rowWidth",`${N}px`),o.colDef.computedWidth=M,o.colDef.width=M,o.colDef.flex=0,o.columnHeaderElement.style.width=`${M}px`;const B=o.headerFilterElement;B&&(B.style.width=`${M}px`),o.groupHeaderElements.forEach(V=>{const z=V;let W;z.getAttribute("aria-colspan")==="1"?W=`${M}px`:W=`${z.offsetWidth+R}px`,z.style.width=W}),o.cellElements.forEach(V=>{const z=V;let W;z.getAttribute("aria-colspan")==="1"?W=`${M}px`:W=`${z.offsetWidth+R}px`,z.style.setProperty("--width",W)});const L=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);L===ur.LEFT&&(qm(o.fillerLeft,"width",R),o.leftPinnedCellsAfter.forEach(V=>{qm(V,"left",R)}),o.leftPinnedHeadersAfter.forEach(V=>{qm(V,"left",R)})),L===ur.RIGHT&&(qm(o.fillerRight,"width",R),o.rightPinnedCellsBefore.forEach(V=>{qm(V,"right",R)}),o.rightPinnedHeadersBefore.forEach(V=>{qm(V,"right",R)}))},u=M=>{if(b(),o.previousMouseClickEvent){const I=o.previousMouseClickEvent,R=I.timeStamp,_=I.clientX,N=I.clientY;if(M.timeStamp-R<300&&M.clientX===_&&M.clientY===N){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,M);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const I=Ac(e.current.state);o.groupHeaderElements.forEach(R=>{const _=sTt(R),N=R,L=`${_.reduce((F,U)=>I.columnVisibilityModel[U]!==!1?F+I.lookup[U].computedWidth:F,0)}px`;N.style.width=L})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,M)})},d=(M,I,R)=>{var L;const _=e.current.rootElementRef.current;o.initialColWidth=M.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=M,o.columnHeaderElement=aTt(e.current.columnHeadersContainerRef.current,M.field);const N=_.querySelector(`.${ae.headerFilterRow} [data-field="${id(M.field)}"]`);N&&(o.headerFilterElement=N),o.groupHeaderElements=lTt((L=e.current.columnHeadersContainerRef)==null?void 0:L.current,M.field),o.cellElements=cTt(o.columnHeaderElement,e.current),o.fillerLeft=hq(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=hq(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const B=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=B!==ur.LEFT?[]:uTt(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=B!==ur.RIGHT?[]:dTt(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=B!==ur.LEFT?[]:fTt(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=B!==ur.RIGHT?[]:pTt(e.current,o.columnHeaderElement,n),a.current=SMt(I,n),i.current=wMt(R,o.columnHeaderElement.getBoundingClientRect(),a.current)},f=Ze(u),p=Ze(M=>{if(M.buttons===0){f(M);return}let I=Nq(i.current,M.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);I=$c(I,o.colDef.minWidth,o.colDef.maxWidth),c(I);const R={element:o.columnHeaderElement,colDef:o.colDef,width:I};e.current.publishEvent("columnResize",R,M)}),m=Ze(M=>{Lq(M,l.current)&&u(M)}),g=Ze(M=>{const I=Lq(M,l.current);if(!I)return;if(M.type==="mousemove"&&M.buttons===0){m(M);return}let R=Nq(i.current,I.x,o.columnHeaderElement.getBoundingClientRect(),a.current);R=$c(R,o.colDef.minWidth,o.colDef.maxWidth),c(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,M)}),y=Ze(M=>{const I=tO(M.target,ae["columnSeparator--resizable"]);if(!I)return;const R=M.changedTouches[0];R!=null&&(l.current=R.identifier);const _=tO(M.target,ae.columnHeader),N=iTt(_),B=e.current.getColumn(N);r.debug(`Start Resize on col ${B.field}`),e.current.publishEvent("columnResizeStart",{field:N},M),d(B,I,R.clientX);const L=mr(M.currentTarget);L.addEventListener("touchmove",g),L.addEventListener("touchend",m)}),b=v.useCallback(()=>{const M=mr(e.current.rootElementRef.current);M.body.style.removeProperty("cursor"),M.removeEventListener("mousemove",p),M.removeEventListener("mouseup",f),M.removeEventListener("touchmove",g),M.removeEventListener("touchend",m),setTimeout(()=>{M.removeEventListener("click",Fq,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,f,g,m]),x=v.useCallback(({field:M})=>{e.current.setState(I=>D({},I,{columnResize:D({},I.columnResize,{resizingColumnField:M})})),e.current.forceUpdate()},[e]),S=v.useCallback(()=>{e.current.setState(M=>D({},M,{columnResize:D({},M.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),P=Ze(({colDef:M},I)=>{if(I.button!==0||!I.currentTarget.classList.contains(ae["columnSeparator--resizable"]))return;I.preventDefault(),r.debug(`Start Resize on col ${M.field}`),e.current.publishEvent("columnResizeStart",{field:M.field},I),d(M,I.currentTarget,I.clientX);const R=mr(e.current.rootElementRef.current);R.body.style.cursor="col-resize",o.previousMouseClickEvent=I.nativeEvent,R.addEventListener("mousemove",p),R.addEventListener("mouseup",f),R.addEventListener("click",Fq,!0)}),E=Ze((M,I)=>{if(t.disableAutosize||I.button!==0)return;const R=e.current.state.columns.lookup[M.field];R.resizable!==!1&&e.current.autosizeColumns(D({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[R.field]}))}),T=CMt(e),O=v.useRef(!1),k=v.useCallback(async M=>{var B;if(!((B=e.current.rootElementRef)==null?void 0:B.current)||O.current)return;O.current=!0;const R=Ac(e.current.state),_=D({},fEt,M,{columns:(M==null?void 0:M.columns)??R.orderedFields});_.columns=_.columns.filter(L=>R.columnVisibilityModel[L]!==!1);const N=_.columns.map(L=>e.current.state.columns.lookup[L]);try{!t.disableVirtualization&&_.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await T());const L=EMt(e,_,N),F=N.map(U=>D({},U,{width:L[U.field],computedWidth:L[U.field],flex:0}));if(_.expand){const V=R.orderedFields.map(G=>R.lookup[G]).filter(G=>R.columnVisibilityModel[G.field]!==!1).reduce((G,J)=>G+(L[J.field]??J.computedWidth??J.width),0),W=e.current.getRootDimensions().viewportInnerSize.width-V;if(W>0){const G=W/(F.length||1);F.forEach(J=>{J.width+=G,J.computedWidth+=G})}}e.current.updateColumns(F),F.forEach((U,V)=>{if(U.width!==N[V].width){const z=U.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(U.field),colDef:U,width:z})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),O.current=!1}},[e,T,t.disableVirtualization]);v.useEffect(()=>b,[b]),DO(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Lle(e,()=>{var M;return(M=e.current.columnHeadersContainerRef)==null?void 0:M.current},"touchstart",y,{passive:!0}),Qt(e,{autosizeColumns:k},"public"),gt(e,"columnResizeStop",S),gt(e,"columnResizeStart",x),gt(e,"columnSeparatorMouseDown",P),gt(e,"columnSeparatorDoubleClick",E),lr(e,"columnResize",t.onColumnResize),lr(e,"columnWidthChange",t.onColumnWidthChange)};function qm(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function kMt(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function MMt(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}function jq(e,t){return e.firstRowIndex!==t.firstRowIndex||e.lastRowIndex!==t.lastRowIndex}const SR=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},oO={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},mw={firstRowIndex:0,lastRowIndex:0},AMt=new Set([du,"__reorder__",Wk]),Cce=20,Pce=(e,t,n,r,o,i,a)=>{const s=i?{}:D({},e.current.state.rowSpanning.spannedCells),l=i?{}:D({},e.current.state.rowSpanning.hiddenCells),c=i?{}:D({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=mw),t.forEach(u=>{var d;if(!AMt.has(u.field)){for(let f=o.firstRowIndex;f<o.lastRowIndex;f+=1){const p=n[f];if((d=l[p.id])!=null&&d[u.field])continue;const m=SR(p.model,u,e);if(m==null)continue;let g=p.id,y=f,b=0;const x=[];if(f===o.firstRowIndex){let P=f-1;const E=n[P];for(;P>=r.firstRowIndex&&SR(E.model,u,e)===m;){const T=n[P+1];l[T.id]?l[T.id][u.field]=!0:l[T.id]={[u.field]:!0},x.push(f),b+=1,g=E.id,y=P,P-=1}}x.forEach(P=>{c[P]?c[P][u.field]=y:c[P]={[u.field]:y}});let S=f+1;for(;S<=r.lastRowIndex&&n[S]&&SR(n[S].model,u,e)===m;){const P=n[S];l[P.id]?l[P.id][u.field]=!0:l[P.id]={[u.field]:!0},c[S]?c[S][u.field]=y:c[S]={[u.field]:y},S+=1,b+=1}b>0&&(s[g]?s[g][u.field]=b+1:s[g]={[u.field]:b+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:s,hiddenCells:l,hiddenCellOriginMap:c,processedRange:a}},$Mt=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],a=e.rows.dataRowIdToModelLookup,s=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!i.length||!a||!s||l)return D({},e,{rowSpanning:oO});const c={firstRowIndex:0,lastRowIndex:Math.min(Cce,Math.max(o.length,0))},u=o.map(g=>({id:g,model:a[g]})),d=i.map(g=>s[g]),{spannedCells:f,hiddenCells:p,hiddenCellOriginMap:m}=Pce(n,d,u,c,c,!0,mw);return D({},e,{rowSpanning:{spannedCells:f,hiddenCells:p,hiddenCellOriginMap:m}})}return D({},e,{rowSpanning:oO})},RMt=(e,t)=>{const{range:n,rows:r}=tm(e,t),o=Ye(e,Zk),i=Ye(e,ho),a=Ye(e,ei),s=Jl(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(Cce,Math.max(e.current.state.rows.dataRowIds.length,0))}:mw),l=v.useRef(mw),c=v.useCallback((m=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==oO&&e.current.setState(M=>D({},M,{rowSpanning:oO}));return}if(n===null||!MMt(o))return;m&&(s.current=mw);const g=kMt({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex,n.lastRowIndex+1)},s.current);if(g===null)return;const{spannedCells:y,hiddenCells:b,hiddenCellOriginMap:x,processedRange:S}=Pce(e,i,r,n,g,m,s.current);s.current=S;const P=Object.keys(y).length,E=Object.keys(b).length,T=Object.keys(e.current.state.rowSpanning.spannedCells).length,O=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(m||P!==T||E!==O)&&e.current.setState(M=>D({},M,{rowSpanning:{spannedCells:y,hiddenCells:b,hiddenCellOriginMap:x}}))},[e,t.unstable_rowSpanning,n,o,r,i,s]),u=v.useRef(o),d=v.useRef(!0),f=v.useRef(!1),p=v.useRef(a);v.useEffect(()=>{const m=d.current;if(d.current&&(d.current=!1),a!==p.current){p.current=a,c(!0);return}if(n&&l.current&&jq(n,l.current)&&(l.current=n,f.current=!0),!m&&u.current!==o){jq(u.current,o)&&(c(f.current),f.current=!1),u.current=o;return}c()},[c,o,n,l,a])},DMt=(e,t,n)=>D({},e,{listViewColumn:t.unstable_listColumn?D({},t.unstable_listColumn,{computedWidth:zL(n)}):void 0});function _Mt(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?D({},i,{listViewColumn:D({},i.listViewColumn,{computedWidth:zL(e)})}):i)},r=v.useRef(null);gt(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),gt(e,"columnVisibilityModelChange",n),v.useEffect(()=>{const i=t.unstable_listColumn;i&&e.current.setState(a=>D({},a,{listViewColumn:D({},i,{computedWidth:zL(e)})}))},[e,t.unstable_listColumn]),v.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function zL(e){return Ci(e.current.state).viewportInnerSize.width}const LMt=(e,t)=>{const n=ekt(e,t);return Zkt(n,t),Kkt(n),Lo(aMt,n,t),Lo(Xkt,n,t),Lo(lkt,n,t),Lo(Hkt,n,t),Lo(zkt,n,t),Lo(Skt,n,t),Lo(eMt,n,t),Lo(Rkt,n,t),Lo(vkt,n,t),Lo($Mt,n,t),Lo(ukt,n,t),Lo(TMt,n,t),Lo(Akt,n,t),Lo(dMt,n,t),Lo(akt,n,t),Lo(yMt,n,t),Lo(EPt,n,t),Lo(DMt,n,t),Ikt(n,t),Qkt(n,t),ckt(n,t),Ukt(n,t),RMt(n,t),Ykt(n,t),hMt(n),vMt(n,t),Vkt(n,t),Ckt(n,t),Dkt(n,t),xkt(n,t),tMt(n,t),dkt(n,t),IMt(n,t),$kt(n,t),fMt(n,t),nMt(n,t),skt(n),pkt(n,t),ykt(n,t),ikt(n,t),sMt(n,t),rMt(n,t),pMt(n),TPt(n,t),_Mt(n,t),n},NMt=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:s,pinnedPosition:l}=e;return Te({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Sn,t)};function FMt(e){var G;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:s,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:p,sectionLength:m,gridHasFiller:g}=e,y=wt(),b=v.useRef(null),x=sn(),S=Ye(x,Gle),P=t?S[t]:{},{headerName:E=t??"",description:T="",headerAlign:O=void 0}=P;let k;const M=t&&((G=S[t])==null?void 0:G.renderHeaderGroup),I=v.useMemo(()=>({groupId:t,headerName:E,description:T,depth:r,maxDepth:o,fields:i,colIndex:s,isLastColumn:u}),[t,E,T,r,o,i,s,u]);t&&M&&(k=M(I));const R=tM(d,p),_=eM(d,p,m,y.showColumnVerticalBorder,g),N=D({},e,{classes:y.classes,showLeftBorder:R,showRightBorder:_,headerAlign:O,depth:r,isDragging:!1}),B=E??t,L=_n(),F=t===null?`empty-group-cell-${L}`:t,U=NMt(N);v.useLayoutEffect(()=>{if(l){const K=b.current.querySelector('[tabindex="0"]')||b.current;K==null||K.focus()}},[x,l]);const V=v.useCallback(J=>K=>{r1(K)||x.current.publishEvent(J,I,K)},[x,I]),z=v.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),W=typeof P.headerClassName=="function"?P.headerClassName(I):P.headerClassName;return $.jsx(dce,D({ref:b,classes:U,columnMenuOpen:!1,colIndex:s,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:k,headerClassName:W,description:T,elementId:F,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:B,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},z))}const Bq=ie("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),jMt=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:s,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[p,m]=v.useState(""),[g,y]=v.useState(""),b=pl(),x=nr(),S=wt(),P=Ye(b,Ci),E=Ye(b,Jk),T=Ye(b,Wle),O=Ye(b,Gf),k=Ye(b,PPt),M=Ye(b,e1),I=Ye(b,od),R=ece(O,k,M.left.length),_=P.columnsTotalWidth<P.viewportOuterSize.width;v.useEffect(()=>{b.current.columnHeadersContainerRef.current&&(b.current.columnHeadersContainerRef.current.scrollLeft=0)},[b]);const N=v.useCallback(oe=>y(oe.field),[]),B=v.useCallback(()=>y(""),[]),L=v.useCallback(oe=>m(oe.field),[]),F=v.useCallback(()=>m(""),[]),U=v.useMemo(()=>M.left.length?{firstColumnIndex:0,lastColumnIndex:M.left.length}:null,[M.left.length]),V=v.useMemo(()=>M.right.length?{firstColumnIndex:t.length-M.right.length,lastColumnIndex:t.length}:null,[M.right.length,t.length]);gt(b,"columnResizeStart",N),gt(b,"columnResizeStop",B),gt(b,"columnHeaderDragStart",L),gt(b,"columnHeaderDragEnd",F);const z=oe=>{const{renderContext:fe=k,maxLastColumn:se=t.length}=oe||{};let ee,ce;return!S.disableVirtualization&&!E?(ee=0,ce=se):(ee=fe.firstColumnIndex,ce=fe.lastColumnIndex),{renderedColumns:t.slice(ee,ce),firstColumnToRender:ee,lastColumnToRender:ce}},W=(oe,fe,se,ee=!1)=>{const ce=(oe==null?void 0:oe.position)===ur.RIGHT,le=(oe==null?void 0:oe.position)===void 0,Q=M.right.length>0&&ce||M.right.length===0&&le,ue=R-se;return $.jsxs(v.Fragment,{children:[le&&$.jsx("div",{role:"presentation",style:{width:ue}}),fe,le&&$.jsx("div",{role:"presentation",className:pe(ae.filler,ee&&ae["filler--borderBottom"])}),Q&&$.jsx(kz,{header:!0,pinnedRight:ce,borderBottom:ee,borderTop:!1})]})},G=({pinnedPosition:oe,columnIndex:fe,computedWidth:se})=>{let ee;const ce=oe===ur.LEFT,le=oe===ur.RIGHT;if(ce||le){const Q=Iz(oe,se,fe,O,P);let ue=ce?"left":"right";x&&(ue=ce?"right":"left"),oe==="left"&&(ee={[ue]:Q}),oe==="right"&&(ee={[ue]:Q})}return ee},J=(oe,fe={})=>{const{renderedColumns:se,firstColumnToRender:ee}=z(oe),ce=[];for(let le=0;le<se.length;le+=1){const Q=se[le],ue=ee+le,ge=ue===0,xe=o!==null&&o.field===Q.field||ge&&!f?0:-1,me=a!==null&&a.field===Q.field,be=c.open&&c.field===Q.field,we=oe==null?void 0:oe.position,Oe=G({pinnedPosition:we,columnIndex:ue,computedWidth:Q.computedWidth}),ke=we===ur.RIGHT?se[le-1]:se[le+1],je=ke?a!==null&&a.field===ke.field:!1,de=ue+1===O.length-M.right.length;ce.push($.jsx(ITt,D({},n[Q.field],{columnMenuOpen:be,filterItemsCounter:r[Q.field]&&r[Q.field].length,headerHeight:P.headerHeight,isDragging:Q.field===p,colDef:Q,colIndex:ue,isResizing:g===Q.field,isLast:ue===O.length-1,hasFocus:me,tabIndex:xe,pinnedPosition:we,style:Oe,indexInSection:le,sectionLength:se.length,gridHasFiller:_,isLastUnpinned:de,isSiblingFocused:je},fe),Q.field))}return W(oe,ce,0)},K=()=>$.jsxs(Bq,{role:"row","aria-rowindex":l+1,ownerState:S,className:ae["row--borderBottom"],children:[U&&J({position:ur.LEFT,renderContext:U,maxLastColumn:U.lastColumnIndex},{disableReorder:!0}),J({renderContext:k,maxLastColumn:t.length-M.right.length}),V&&J({position:ur.RIGHT,renderContext:V,maxLastColumn:V.lastColumnIndex},{disableReorder:!0,separatorSide:Oz.Left})]}),ne=({depth:oe,params:fe})=>{var Me,Ae;const se=z(fe);if(se.renderedColumns.length===0)return null;const{firstColumnToRender:ee,lastColumnToRender:ce}=se,le=d[oe],Q=t[ee].field,ue=((Me=T[Q])==null?void 0:Me[oe])??null,ge=le.findIndex(({groupId:Ne,columnFields:Je})=>Ne===ue&&Je.includes(Q)),xe=t[ce-1].field,me=((Ae=T[xe])==null?void 0:Ae[oe])??null,be=le.findIndex(({groupId:Ne,columnFields:Je})=>Ne===me&&Je.includes(xe)),we=le.slice(ge,be+1).map(Ne=>D({},Ne,{columnFields:Ne.columnFields.filter(Je=>u[Je]!==!1)})).filter(Ne=>Ne.columnFields.length>0),Oe=we[0].columnFields.indexOf(Q),je=we[0].columnFields.slice(0,Oe).reduce((Ne,Je)=>{const nt=I[Je];return Ne+(nt.computedWidth??0)},0);let de=ee;const Re=we.map(({groupId:Ne,columnFields:Je},nt)=>{const st=s!==null&&s.depth===oe&&Je.includes(s.field),$t=i!==null&&i.depth===oe&&Je.includes(i.field)?0:-1,ct={groupId:Ne,width:Je.reduce((Pe,We)=>Pe+I[We].computedWidth,0),fields:Je,colIndex:de,hasFocus:st,tabIndex:$t},_t=fe.position,pt=G({pinnedPosition:_t,columnIndex:de,computedWidth:ct.width});de+=Je.length;let ot=nt;return _t==="left"&&(ot=de-1),$.jsx(FMt,{groupId:Ne,width:ct.width,fields:ct.fields,colIndex:ct.colIndex,depth:oe,isLastColumn:nt===we.length-1,maxDepth:l,height:P.groupHeaderHeight,hasFocus:st,tabIndex:$t,pinnedPosition:_t,style:pt,indexInSection:ot,sectionLength:we.length,gridHasFiller:_},nt)});return W(fe,Re,je)};return{renderContext:k,leftRenderContext:U,rightRenderContext:V,pinnedColumns:M,visibleColumns:t,getCellOffsetStyle:G,getFillers:W,getColumnHeadersRow:K,getColumnsToRender:z,getColumnGroupHeadersRows:()=>{if(l===0)return null;const oe=[];for(let fe=0;fe<l;fe+=1)oe.push($.jsxs(Bq,{role:"row","aria-rowindex":fe+1,ownerState:S,children:[U&&ne({depth:fe,params:{position:ur.LEFT,renderContext:U,maxLastColumn:U.lastColumnIndex}}),ne({depth:fe,params:{renderContext:k}}),V&&ne({depth:fe,params:{position:ur.RIGHT,renderContext:V,maxLastColumn:V.lastColumnIndex}})]},fe));return oe},isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},BMt=["className"],zMt=e=>{const{classes:t}=e;return Te({root:["columnHeaders"]},Sn,t)},VMt=Qn("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),HMt=$n(function(t,n){const{className:r}=t,o=Ue(t,BMt),i=wt(),a=zMt(i);return $.jsx(VMt,D({className:pe(a.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),UMt=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],WMt=$n(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m}=t,g=Ue(t,UMt),{getInnerProps:y,getColumnHeadersRow:b,getColumnGroupHeadersRows:x}=jMt({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m});return $.jsxs(HMt,D({},g,y(),{ref:n,children:[x(),b()]}))}),GMt=Wf(WMt);function qMt(e){return null}function KMt(e){return null}const YMt=$n(function(t,n){const o=sn().current.getLocaleText("noResultsOverlayLabel");return $.jsx(Tz,D({},t,{ref:n,children:o}))}),XMt=["sortingOrder"],QMt=v.memo(function(t){const{sortingOrder:n}=t,r=Ue(t,XMt),o=wt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?$.jsx(a,D({},r)):null}),JMt=["native"];function ZMt(e){let{native:t}=e,n=Ue(e,JMt);return t?$.jsx("option",D({},n)):$.jsx(tn,D({},n))}const eAt={booleanCellTrueIcon:XTt,booleanCellFalseIcon:yR,columnMenuIcon:GTt,openFilterButtonIcon:jTt,filterPanelDeleteIcon:yR,columnFilteredIcon:bq,columnSelectorIcon:zTt,columnUnsortedIcon:QMt,columnSortedAscendingIcon:mq,columnSortedDescendingIcon:gq,columnResizeIcon:VTt,densityCompactIcon:HTt,densityStandardIcon:UTt,densityComfortableIcon:WTt,exportIcon:YTt,moreActionsIcon:QTt,treeDataCollapseIcon:vq,treeDataExpandIcon:yq,groupingCriteriaCollapseIcon:vq,groupingCriteriaExpandIcon:yq,detailPanelExpandIcon:wq,detailPanelCollapseIcon:qTt,rowReorderIcon:xq,quickFilterIcon:BTt,quickFilterClearIcon:yR,columnMenuHideIcon:JTt,columnMenuSortAscendingIcon:mq,columnMenuSortDescendingIcon:gq,columnMenuFilterIcon:bq,columnMenuManageColumnsIcon:ZTt,columnMenuClearIcon:eOt,loadIcon:KTt,filterPanelAddIcon:wq,filterPanelRemoveAllIcon:tOt,columnReorderIcon:xq},tAt=D({},eAt,{baseBadge:DEe,baseCheckbox:ATe,baseDivider:Qa,baseTextField:gn,baseFormControl:Cv,baseSelect:Dh,baseButton:yt,baseIconButton:An,baseInputAdornment:co,baseTooltip:Xl,basePopper:$f,baseInputLabel:Pv,baseSelectOption:ZMt,baseChip:hh}),nAt=D({},tAt,{cell:EEt,skeletonCell:DEt,columnHeaderFilterIconButton:FTt,columnHeaderSortIcon:LTt,columnMenu:vOt,columnHeaders:GMt,detailPanels:qMt,footer:hIt,footerRowCount:AIt,toolbar:null,pinnedRows:KMt,loadingOverlay:SIt,noResultsOverlay:YMt,noRowsOverlay:CIt,pagination:OIt,filterPanel:KOt,columnsPanel:COt,columnsManagement:JOt,panel:IOt,row:LIt});function rAt({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=D({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function oAt(e){var o;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let i=0;i<t.length;i+=1){const a=t[i];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function iAt(e){return v.useMemo(()=>oAt(e),[e])}const aAt={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},sAt=nAt,lAt=e=>{const t=iAt(Jt({props:e,name:"MuiDataGrid"})),n=v.useMemo(()=>D({},ySt,t.localeText),[t.localeText]),r=v.useMemo(()=>rAt({defaultSlots:sAt,slots:t.slots}),[t.slots]),o=v.useMemo(()=>Object.keys(FL).reduce((i,a)=>(i[a]=t[a]??FL[a],i),{}),[t]);return v.useMemo(()=>D({},t,o,{localeText:n,slots:r},aAt),[t,n,r,o])},cAt={hooks:{useGridAriaAttributes:NIt,useGridRowAriaAttributes:FIt}},Ece=$n(function(t,n){var i;const r=lAt(t),o=LMt(r.apiRef,r);return $.jsx(jIt,{privateApiRef:o,configuration:cAt,props:r,children:$.jsxs(UEt,D({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(i=r.slotProps)==null?void 0:i.root,{ref:n,children:[$.jsx(gIt,{}),$.jsx(vEt,{}),$.jsx(bEt,{})]}))})}),uAt=v.memo(Ece);Ece.propTypes={apiRef:j.shape({current:j.object.isRequired}),"aria-label":j.string,"aria-labelledby":j.string,autoHeight:j.bool,autoPageSize:j.bool,autosizeOnMount:j.bool,autosizeOptions:j.shape({columns:j.arrayOf(j.string),disableColumnVirtualization:j.bool,expand:j.bool,includeHeaders:j.bool,includeOutliers:j.bool,outliersFactor:j.number}),cellModesModel:j.object,checkboxSelection:j.bool,classes:j.object,clipboardCopyCellDelimiter:j.string,columnBufferPx:j.number,columnGroupHeaderHeight:j.number,columnGroupingModel:j.arrayOf(j.object),columnHeaderHeight:j.number,columns:j.arrayOf(j.object).isRequired,columnVisibilityModel:j.object,density:j.oneOf(["comfortable","compact","standard"]),disableAutosize:j.bool,disableColumnFilter:j.bool,disableColumnMenu:j.bool,disableColumnResize:j.bool,disableColumnSelector:j.bool,disableColumnSorting:j.bool,disableDensitySelector:j.bool,disableEval:j.bool,disableMultipleRowSelection:j.bool,disableRowSelectionOnClick:j.bool,disableVirtualization:j.bool,editMode:j.oneOf(["cell","row"]),estimatedRowCount:j.number,experimentalFeatures:j.shape({warnIfFocusStateIsNotSynced:j.bool}),filterDebounceMs:j.number,filterMode:j.oneOf(["client","server"]),filterModel:j.shape({items:j.arrayOf(j.shape({field:j.string.isRequired,id:j.oneOfType([j.number,j.string]),operator:j.string.isRequired,value:j.any})).isRequired,logicOperator:j.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:j.bool,quickFilterLogicOperator:j.oneOf(["and","or"]),quickFilterValues:j.array}),forwardedProps:j.object,getCellClassName:j.func,getDetailPanelContent:j.func,getEstimatedRowHeight:j.func,getRowClassName:j.func,getRowHeight:j.func,getRowId:j.func,getRowSpacing:j.func,hideFooter:j.bool,hideFooterPagination:j.bool,hideFooterSelectedRowCount:j.bool,ignoreDiacritics:j.bool,ignoreValueFormatterDuringExport:j.oneOfType([j.shape({clipboardExport:j.bool,csvExport:j.bool}),j.bool]),indeterminateCheckboxAction:j.oneOf(["deselect","select"]),initialState:j.object,isCellEditable:j.func,isRowSelectable:j.func,keepNonExistentRowsSelected:j.bool,loading:j.bool,localeText:j.object,logger:j.shape({debug:j.func.isRequired,error:j.func.isRequired,info:j.func.isRequired,warn:j.func.isRequired}),logLevel:j.oneOf(["debug","error","info","warn",!1]),nonce:j.string,onCellClick:j.func,onCellDoubleClick:j.func,onCellEditStart:j.func,onCellEditStop:j.func,onCellKeyDown:j.func,onCellModesModelChange:j.func,onClipboardCopy:j.func,onColumnHeaderClick:j.func,onColumnHeaderContextMenu:j.func,onColumnHeaderDoubleClick:j.func,onColumnHeaderEnter:j.func,onColumnHeaderLeave:j.func,onColumnHeaderOut:j.func,onColumnHeaderOver:j.func,onColumnOrderChange:j.func,onColumnResize:j.func,onColumnVisibilityModelChange:j.func,onColumnWidthChange:j.func,onDensityChange:j.func,onFilterModelChange:j.func,onMenuClose:j.func,onMenuOpen:j.func,onPaginationMetaChange:j.func,onPaginationModelChange:j.func,onPreferencePanelClose:j.func,onPreferencePanelOpen:j.func,onProcessRowUpdateError:j.func,onResize:j.func,onRowClick:j.func,onRowCountChange:j.func,onRowDoubleClick:j.func,onRowEditStart:j.func,onRowEditStop:j.func,onRowModesModelChange:j.func,onRowSelectionModelChange:j.func,onSortModelChange:j.func,onStateChange:j.func,pageSizeOptions:j.arrayOf(j.oneOfType([j.number,j.shape({label:j.string.isRequired,value:j.number.isRequired})]).isRequired),pagination:j.oneOf([!0]),paginationMeta:j.shape({hasNextPage:j.bool}),paginationMode:j.oneOf(["client","server"]),paginationModel:j.shape({page:j.number.isRequired,pageSize:j.number.isRequired}),processRowUpdate:j.func,resizeThrottleMs:j.number,rowBufferPx:j.number,rowCount:j.number,rowHeight:j.number,rowModesModel:j.object,rowPositionsDebounceMs:j.number,rows:j.arrayOf(j.object),rowSelection:j.bool,rowSelectionModel:j.oneOfType([j.arrayOf(j.oneOfType([j.number,j.string]).isRequired),j.number,j.string]),rowSpacingType:j.oneOf(["border","margin"]),scrollbarSize:j.number,showCellVerticalBorder:j.bool,showColumnVerticalBorder:j.bool,slotProps:j.object,slots:j.object,sortingMode:j.oneOf(["client","server"]),sortingOrder:j.arrayOf(j.oneOf(["asc","desc"])),sortModel:j.arrayOf(j.shape({field:j.string.isRequired,sort:j.oneOf(["asc","desc"])})),sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),unstable_rowSpanning:j.bool,virtualizeColumnsWithAutoRowHeight:j.bool};const dAt=e=>e.map(t=>({id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes})),fAt=e=>{const[t]=qe(),n=dAt(e.category.entries),r=Xse(),o=Pxt(),[i,a]=v.useState(n),[s,l]=v.useState({}),c=(x,S)=>{x.reason===Pl.rowFocusOut&&(S.defaultMuiPrevented=!0)},u=x=>()=>{l({...s,[x]:{mode:Vn.Edit}})},d=x=>()=>{l({...s,[x]:{mode:Vn.View}})},f=x=>async()=>{console.log("deleting entry",x),o.mutate(parseInt(x.toString())),a(i.filter(S=>S.id!==x))},p=x=>()=>{l({...s,[x]:{mode:Vn.View,ignoreModifications:!0}});const S=i.find(P=>P.id===x);(S==null?void 0:S.id)===null&&a(i.filter(P=>P.id!==x))},m=async x=>{r.mutate({id:x.id,categoryId:x.category,date:x.date,value:x.value,notes:x.notes});const S={...x,isNew:!1};return a(i.map(P=>P.id===x.id?S:P)),S},g=x=>{console.log(x)},y=x=>{l(x)},b=[{field:"value",headerName:t("value"),width:80,editable:!0,valueFormatter:x=>x==null?"":x+e.category.unit},{field:"date",headerName:t("date"),type:"date",width:120,editable:!0,valueFormatter:x=>x==null?"":It.fromJSDate(x).toLocaleString(It.DATE_MED)},{field:"notes",headerName:t("notes"),type:"string",flex:1,editable:!0},{field:"actions",type:"actions",headerName:t("actions"),width:100,cellClassName:"actions",getActions:({id:x})=>{var P;return((P=s[x])==null?void 0:P.mode)===Vn.Edit?[C(eP,{icon:C(uyt,{}),label:"Save",sx:{color:"primary.main"},onClick:d(x)}),C(eP,{icon:C(mS,{}),label:"Cancel",className:"textPrimary",onClick:p(x),color:"inherit"})]:[C(eP,{icon:C(Uae,{}),label:"Edit",className:"textPrimary",onClick:u(x),color:"inherit"}),C(eP,{icon:C(tyt,{}),label:"Delete",onClick:f(x),color:"inherit"})]}}];return C(Ln,{sx:{width:"100%"},children:C(uAt,{editMode:"row",rows:n,columns:b,initialState:{pagination:{paginationModel:{pageSize:SU.pageSize}}},pageSizeOptions:SU.pageSizeOptions,disableRowSelectionOnClick:!0,rowModesModel:s,onRowModesModelChange:y,onRowEditStop:c,processRowUpdate:m,onProcessRowUpdateError:g})})},Rz=({title:e,subtitle:t,isOpen:n,message:r,deleteFn:o,closeFn:i})=>{const[a]=qe();return C(Sv,{open:n,onClose:i,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X(io,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[C(Zl,{title:e,titleTypographyProps:{variant:"h6"},subheader:t,action:C(mS,{onClick:i})}),C(wi,{children:C(ut,{variant:"body1",children:r})}),X(os,{children:[C(yt,{color:"error",variant:"contained",onClick:()=>{o(),i()},children:a("delete")}),C(yt,{color:"primary",onClick:i,children:a("cancel")})]})]})})},pAt=e=>{const t=Sxt(e.category.id),n=Qh(),[r]=qe(),[o,i]=Y.useState(null),[a,s]=Y.useState(!1),[l,c]=Y.useState(!1),u=!!o,d=P=>{i(P.currentTarget)},f=()=>{p(),y()},p=()=>{i(null)},m=()=>{x(),i(null)},g=()=>{t.mutate(e.category.id),n(Pn(wn.MEASUREMENT_OVERVIEW))},y=()=>s(!0),b=()=>s(!1),x=()=>c(!0),S=()=>c(!1);return X("div",{children:[C(yt,{onClick:d,children:C(qae,{})}),X(is,{anchorEl:o,open:u,onClose:p,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:f,children:r("edit")}),C(tn,{onClick:m,children:r("delete")})]}),C(Yi,{title:r("edit"),isOpen:a,closeFn:b,children:C(rle,{category:e.category,closeFn:b})}),C(Rz,{title:r("deleteConfirmation",{name:e.category.name}),message:r("measurements.deleteInfo"),isOpen:l,closeFn:S,deleteFn:g})]})},hAt=()=>{const e=Jh(),t=parseInt(e.categoryId),n=Yse(t);return n.isLoading?C(bo,{}):C(Zh,{title:n.data.name,optionsMenu:C(pAt,{category:n.data}),mainContent:X(Gt,{spacing:2,children:[C(nle,{category:n.data}),C(fAt,{category:n.data})]}),fab:C(hSt,{})})},mAt=e=>{const[t,n]=qe(),[r,o]=Y.useState(!1),i=()=>o(!0),a=()=>o(!1);return X(Mt,{children:[X(io,{children:[C(Zl,{title:e.category.name,subheader:e.category.unit}),C(wi,{children:C(nle,{category:e.category})}),X(os,{disableSpacing:!0,sx:{justifyContent:"space-between"},children:[C(yt,{size:"small",children:C(zs,{to:Pn(wn.MEASUREMENT_DETAIL,n.language,{id:e.category.id}),children:t("seeDetails")})}),C(An,{onClick:i,children:C(Gi,{})})]})]}),C(Yi,{title:t("add"),isOpen:r,closeFn:a,children:C(ole,{closeFn:a,categoryId:e.category.id})})]})},zq=()=>{const e=Kse(),[t]=qe();return e.isLoading?C(bo,{}):C(Zh,{title:t("measurements.measurements"),mainContent:X(Gt,{spacing:2,children:[e.data.length===0&&C(cI,{}),e.data.map(n=>C(mAt,{category:n},n.id))]}),fab:C(pSt,{})})},BP=[{range:"obese",color:"#FF5733",min:30,max:100},{range:"overweight",color:"#FFC107",min:25,max:30},{range:"normal",color:"#90EE90",min:18.5,max:25},{range:"underweight",color:"#FFC300",min:0,max:18.5}],nP=e=>{const t=BP.find(n=>n.range===e);return t?t.color:"gray"},gAt=()=>{const[e]=qe(),t=KS(),n=Uc(),[r,o]=v.useState(),[i,a]=v.useState();v.useEffect(()=>{var u;if(t.data&&t.data.length>0){const d=t.data[0],f=(u=n.data)!=null&&u.useMetric?d.weight:d.weight*.453592;a(f)}},[t.data,n.data]),v.useEffect(()=>{var u;(u=n.data)!=null&&u.height&&o(n.data.height)},[n.data]);const l=(()=>{if(r&&i){const u=r/100;return i/(u*u)}return null})();if(t.isLoading||n.isLoading)return C(bo,{});const c=[];for(let u=140;u<=220;u+=10){const d=u/100,f={height:u};let p=0;BP.forEach((m,g)=>{const y=m.max>100?100:m.max;let b=y*d*d-p;b=Math.min(b,150-p),g===0?f[m.range]=b:f[m.range]=f[BP[g-1].range]+b,p=Math.min(y*d*d,150)}),c.push(f)}return C(Zh,{title:e("bmi.calculator"),mainContent:C(Mt,{children:X(Gt,{spacing:2,children:[X(Fe,{container:!0,spacing:2,children:[C(Fe,{size:{xs:12,sm:6},children:C(gn,{label:e("height"),fullWidth:!0,slotProps:{input:{endAdornment:C(ut,{children:e("cm")})}},type:"number",value:r??"",onChange:u=>o(parseFloat(u.target.value))})}),C(Fe,{size:{xs:12,sm:6},children:C(gn,{label:e("weight"),slotProps:{input:{endAdornment:C(ut,{children:e("server.kg")})}},fullWidth:!0,type:"number",value:i??"",onChange:u=>a(parseFloat(u.target.value))})})]}),l!==null&&C(ut,{variant:"h6",children:e("bmi.result",{value:l.toFixed(1)})}),C(Nf,{width:"100%",height:400,children:X(Drt,{data:c,children:[C(sl,{dataKey:"height",type:"number",domain:[140,220],unit:"cm"}),C(ll,{domain:[40,150],tickFormatter:u=>Math.round(u).toString(),unit:"kg"}),C(jh,{strokeDasharray:"3 3"}),C(ja,{formatter:(u,d)=>[Math.round(u),e("bmi."+d)]}),BP.map(u=>C(zf,{type:"monotone",dataKey:u.range,stroke:"black",fill:u.color,fillOpacity:.8},u.range)),l!==null&&C(MS,{x:r,y:i,r:8,fill:"black",stroke:"none"})]})}),X(Gt,{direction:"row",justifyContent:"center",children:[C(Ln,{height:20,width:20,sx:{backgroundColor:nP("obese")}}),e("bmi.obese"),C(Ln,{height:20,width:20,sx:{backgroundColor:nP("overweight"),marginLeft:2}}),e("bmi.overweight"),C(Ln,{height:20,width:20,sx:{backgroundColor:nP("normal"),marginLeft:2}}),e("bmi.normal"),C(Ln,{height:20,width:20,sx:{backgroundColor:nP("underweight"),marginLeft:2}}),e("bmi.underweight")]})]})})})},yAt=e=>{var r,o,i,a;const[t,n]=qe();return X(Yt,{children:[C(Ie,{sx:{paddingX:1},children:C(Yl,{alt:(r=e.item.ingredient)==null?void 0:r.name,src:(i=(o=e.item.ingredient)==null?void 0:o.image)==null?void 0:i.url,sx:{width:45,height:45},children:C(Ju,{})})}),X(Ie,{sx:{paddingX:1},children:[e.item.amountString," ",(a=e.item.ingredient)==null?void 0:a.name]}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.item.nutritionalValues.energy,n.language),kj:gi(e.item.nutritionalValues.energyKj,n.language)})}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.item.nutritionalValues.protein,n.language)}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.item.nutritionalValues.carbohydrates,n.language)}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.item.nutritionalValues.fat,n.language)})]},e.item.id)},VL=e=>{const[t,n]=qe();return C(Gu,{children:X(Uu,{children:[C(_h,{children:X(Yt,{children:[C(Ie,{}),C(Ie,{}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.energy")}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.protein")}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.carbohydrates")}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.fat")})]})}),X(Wu,{children:[e.items.map(r=>C(yAt,{item:r},r.id)),e.showSum&&X(Yt,{children:[C(Ie,{sx:{paddingX:1},children:" "}),C(Ie,{sx:{paddingX:1},children:t("total")}),C(Ie,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.values.energy,n.language),kj:gi(e.values.energyKj,n.language)})}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.values.protein,n.language)}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.values.carbohydrates,n.language)}),C(Ie,{align:"right",sx:{paddingX:1},children:Cn(e.values.fat,n.language)})]})]})]})})},vAt=e=>{const[t,n]=qe();return C(Gu,{children:X(Uu,{size:"small",children:[C(_h,{children:X(Yt,{children:[C(Ie,{children:t("nutrition.macronutrient")}),C(Ie,{align:"right",children:t("nutrition.planned")}),C(Ie,{align:"right",children:t("nutrition.logged")}),C(Ie,{align:"right",children:t("nutrition.difference")})]})}),X(Wu,{children:[X(Yt,{children:[C(Ie,{children:t("nutrition.energy")}),C(Ie,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.planned.energy,n.language),kj:gi(e.planned.energyKj,n.language)})}),C(Ie,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.logged.energy,n.language),kj:gi(e.logged.energyKj,n.language)})}),C(Ie,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.logged.energy-e.planned.energy,n.language),kj:gi(e.logged.energyKj-e.planned.energyKj,n.language)})})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.protein")}),C(Ie,{align:"right",children:Cn(e.planned.protein,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.protein,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.protein-e.planned.protein,n.language)})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.carbohydrates")}),C(Ie,{align:"right",children:Cn(e.planned.carbohydrates,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.carbohydrates,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.carbohydrates-e.planned.carbohydrates,n.language)})]}),X(Yt,{children:[C(Ie,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),C(Ie,{align:"right",children:Cn(e.planned.carbohydratesSugar,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.carbohydratesSugar,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.carbohydratesSugar-e.planned.carbohydratesSugar,n.language)})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.fat")}),C(Ie,{align:"right",children:Cn(e.planned.fat,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fat,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fat-e.planned.fat,n.language)})]}),X(Yt,{children:[C(Ie,{sx:{paddingLeft:5},children:t("nutrition.ofWhichSaturated")}),C(Ie,{align:"right",children:Cn(e.planned.fatSaturated,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fatSaturated,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fatSaturated-e.planned.fatSaturated,n.language)})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.others")}),C(Ie,{}),C(Ie,{}),C(Ie,{})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.fibres")}),C(Ie,{align:"right",children:Cn(e.planned.fiber,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fiber,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.fiber-e.planned.fiber,n.language)})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.sodium")}),C(Ie,{align:"right",children:Cn(e.planned.sodium,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.sodium,n.language)}),C(Ie,{align:"right",children:Cn(e.logged.sodium-e.planned.sodium,n.language)})]})]})]})})},Vq=()=>{const[e]=qe(),t=Jh(),n=parseInt(t.planId),r=new Date(t.date),o=fDe(n,t.date);return o.isLoading?C(bo,{}):C(Zh,{title:e("nutrition.nutritionalDiary"),mainContent:C(Mt,{children:X(Gt,{spacing:2,children:[C(ut,{gutterBottom:!0,variant:"h4",children:r.toLocaleDateString()}),C(vAt,{logged:o.data.loggedNutritionalValuesDate(r),planned:o.data.plannedNutritionalValues}),C(VL,{values:o.data.loggedNutritionalValuesDate(r),items:o.data.loggedEntriesDate(r),showSum:!0})]})})})};function*nM(e){let t;e<=3?t=H2e:e<=5?t=V2e:t=z2e;for(const n of t)yield n}const bAt=e=>{const[t,n]=qe(),r=nM(3),o=[{name:t("nutrition.carbohydrates"),value:e.data.carbohydrates},{name:t("nutrition.protein"),value:e.data.protein},{name:t("nutrition.fat"),value:e.data.fat}],i=Math.PI/180;return C(Nf,{width:"100%",height:300,children:X(Kre,{children:[C(Vc,{data:o,labelLine:!1,label:({cx:s,cy:l,midAngle:c,innerRadius:u,outerRadius:d,payload:f})=>{const p=u+(d-u)*.4,m=s+p*Math.cos(-c*i),g=l+p*Math.sin(-c*i);return C("text",{x:m,y:g,fill:"white",textAnchor:"middle",dominantBaseline:"central",children:Cn(f.value,n.language)})},fill:"#8884d8",dataKey:"value",children:o.map((s,l)=>C(zv,{fill:r.next().value},`cell-${l}`))}),C(Pu,{})]})})},wAt=({showPlanned:e,planned:t,today:n,avg7Days:r})=>{const[o,i]=qe(),a=nM(3),s=[{name:o("nutrition.protein"),planned:t.protein,today:n.protein,avg7Days:r.protein},{name:o("nutrition.carbohydrates"),planned:t.carbohydrates,today:n.carbohydrates,avg7Days:r.carbohydrates},{name:o("nutrition.sugar"),planned:t.carbohydratesSugar,today:n.carbohydratesSugar,avg7Days:r.carbohydratesSugar},{name:o("nutrition.fat"),planned:t.fat,today:n.fat,avg7Days:r.fat},{name:o("nutrition.saturatedFat"),planned:t.fatSaturated,today:n.fatSaturated,avg7Days:r.fatSaturated}];return C(Nf,{width:"100%",height:300,children:X(qre,{data:s,margin:{top:20,right:30,left:20,bottom:5},children:[C(jh,{strokeDasharray:"3 4"}),C(sl,{dataKey:"name"}),C(ll,{type:"number",orientation:"left",unit:o("nutrition.gramShort")}),C(ja,{formatter:l=>gi(l,i.language)}),C(Pu,{}),e&&C(Mc,{dataKey:"planned",unit:o("nutrition.gramShort"),name:o("nutrition.planned"),fill:a.next().value}),C(Mc,{dataKey:"today",unit:o("nutrition.gramShort"),name:o("nutrition.today"),fill:a.next().value}),C(Mc,{dataKey:"avg7Days",unit:o("nutrition.gramShort"),name:o("nutrition.7dayAvg"),fill:a.next().value})]})})},xAt=e=>{const[t,n]=qe();return C(Gu,{children:X(Uu,{size:"small",children:[C(_h,{children:X(Yt,{children:[C(Ie,{children:t("date")}),C(Ie,{align:"right",children:t("nutrition.logged")}),C(Ie,{align:"right",children:t("nutrition.difference")})]})}),C(Wu,{children:Array.from(e.logged).map(([r])=>{var o,i;return X(Yt,{children:[C(Ie,{children:C(zs,{to:Pn(wn.NUTRITION_DIARY,n.language,{id:e.planId,date:r}),children:new Date(r).toLocaleDateString(n.language)})}),C(Ie,{align:"right",children:t("nutrition.valueEnergyKcal",{value:gi((o=e.logged.get(r))==null?void 0:o.nutritionalValues.energy,n.language)})}),C(Ie,{align:"right",children:gi(((i=e.logged.get(r))==null?void 0:i.nutritionalValues.energy)-e.planned.energy,n.language)})]},r)})})]})})},SAt=()=>{const[e]=qe(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Rh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Gi,{})}),C(Yi,{title:e("add"),isOpen:t,closeFn:o,children:C(KB,{closeFn:o})})]})},CAt=e=>{const[t]=qe(),[n,r]=Y.useState(!1),o=()=>r(!0),i=()=>r(!1);return X("div",{children:[C(Rh,{color:"secondary","aria-label":"add",onClick:o,sx:{position:"fixed",bottom:"5rem",right:a=>a.spacing(2),zIndex:9},children:C(hS,{})}),C(Yi,{title:t("nutrition.addNutritionalDiary"),isOpen:n,closeFn:i,children:C(qB,{closeFn:i,planId:e.plan.id,meals:e.plan.meals})})]})},Tce=({meal:e,planId:t,closeFn:n})=>{const[r,o]=qe(),i=vDe(t),a=wDe(t),s=dl({name:Nc().required().max(25,r("forms.maxLength",{chars:"25"})).min(3,r("forms.minLength",{chars:"3"})),time:US().required()});return C(cl,{initialValues:{name:e?e.name:"",time:e?e.time:new Date},validationSchema:s,onSubmit:async l=>{l.time instanceof Date||(l.time=l.time.toJSDate());const c={...l,time:h2e(l.time)};e?a.mutate({...c,plan:t,id:e.id}):i.mutate({...c,plan:t}),n&&n()},children:l=>C(as,{children:X(Gt,{spacing:2,children:[C(gn,{fullWidth:!0,id:"name",label:r("description"),error:l.touched.name&&!!l.errors.name,helperText:l.touched.name&&l.errors.name,...l.getFieldProps("name")}),C(RS,{dateAdapter:Ok,adapterLocale:o.language,children:C(mct,{label:r("timeOfDay"),value:l.values.time!==null?It.fromJSDate(l.values.time):null,onChange:c=>l.setFieldValue("time",c)})}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[n!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>n(),children:r("close")}),C(yt,{disabled:i.isPending||a.isPending,color:"primary",variant:"contained",type:"submit",children:r("submit")})]})]})})})},PAt=e=>{const[t]=qe(),n=nM(3),r=[{name:t("nutrition.energy"),value:e.logged.energy/e.planned.energy*100},{name:t("nutrition.protein"),value:e.logged.protein/e.planned.protein*100},{name:t("nutrition.carbohydrates"),value:e.logged.carbohydrates/e.planned.carbohydrates*100},{name:t("nutrition.fat"),value:e.logged.fat/e.planned.fat*100}];return C(Nf,{width:"100%",height:150,children:X(qre,{data:r,layout:"vertical",margin:{left:60},children:[C(jh,{strokeDasharray:"3 4"}),C(sl,{type:"number",unit:"%"}),C(ll,{type:"category",dataKey:"name"}),C(Mc,{dataKey:"value",unit:"%",fill:n.next().value})]})})},Oce=({planId:e,item:t,mealId:n,closeFn:r})=>{const[o]=qe(),i=PDe(e),a=EDe(e),s=TDe(e),l=()=>{t&&s.mutate(t.id),r&&r()},c=dl({amount:sa().required(o("forms.fieldRequired")).max(1e3,o("forms.maxValue",{value:"1000"})).min(1,o("forms.minValue",{value:"1"})),ingredient:sa().required(o("forms.fieldRequired"))});return C(cl,{initialValues:{amount:t?t.amount:0,ingredient:t?t.ingredientId:0},validationSchema:c,onSubmit:async u=>{const d={...u,meal:n,weight_unit:null};t?a.mutate({...d,id:t.id}):i.mutate(d),r&&r()},children:u=>{var d;return C(as,{children:X(Gt,{spacing:2,children:[C($B,{callback:f=>u.setFieldValue("ingredient",f?f.data.id:null),initialIngredient:t?(d=t.ingredient)==null?void 0:d.name:null}),C(gn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:C(co,{position:"end",children:o("nutrition.gramShort")})},error:u.touched.amount&&!!u.errors.amount,helperText:u.touched.amount&&u.errors.amount,...u.getFieldProps("amount")}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[r!==void 0&&t!==void 0&&C(yt,{color:"error",variant:"outlined",onClick:l,children:o("delete")}),r!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>r(),children:o("close")}),C(yt,{color:"primary",variant:"contained",type:"submit",children:o("submit")})]})]})})}})},EAt=e=>{const t=_Z(e.planId),n=bDe(e.planId),[r]=qe(),[o,i]=Y.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(!1),[u,d]=v.useState(!1),f=!!a,p=k=>{s(k.currentTarget)},m=()=>{g(),x()},g=()=>{s(null)},y=()=>{P(),s(null)},b=()=>{n.mutate(e.meal.id)},x=()=>c(!0),S=()=>c(!1),P=()=>d(!0),E=()=>d(!1),T=(k,M)=>{M!=="clickaway"&&i(!1)},O=()=>{const k=e.meal.items.map(M=>({plan:e.planId,meal:e.meal.id,mealItem:M.id,ingredient:M.ingredientId,weight_unit:M.weightUnitId,datetime:new Date().toISOString(),amount:M.amount}));t.mutate(k),i(!0)};return X(Mt,{children:[!e.onlyLogging&&C(Xl,{title:r("nutrition.logThisMeal"),children:C(An,{"aria-label":"settings",onClick:O,children:C(hS,{})})}),C(An,{"aria-label":"settings",onClick:p,children:C(GS,{})}),C(An,{"aria-label":"settings",onClick:e.handleExpanded,children:e.isExpanded?C(Wae,{}):C(Gae,{})}),X(is,{anchorEl:a,open:f,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:m,children:r("edit")}),C(tn,{onClick:y,children:r("delete")})]}),C(Yi,{title:r("edit"),isOpen:l,closeFn:S,children:C(Tce,{meal:e.meal,closeFn:S,planId:e.planId})}),C(Rz,{title:r("deleteConfirmation",{name:e.meal.name}),message:r("nutrition.mealDeleteInfo"),isOpen:u,closeFn:E,deleteFn:b}),C(HJ,{open:o,autoHideDuration:kZ,onClose:T,children:C(Bu,{onClose:T,severity:"success",sx:{width:"100%"},children:r("nutrition.diaryEntrySaved")})})]})},TAt=e=>{var o,i,a,s;const[t,n]=v.useState(!1),r=()=>n(!t);return X(Mt,{children:[X(Ja,{children:[C(kF,{onClick:r,sx:{"&:hover":{cursor:"pointer"}},children:C(Yl,{alt:(o=e.mealItem.ingredient)==null?void 0:o.name,src:(a=(i=e.mealItem.ingredient)==null?void 0:i.image)==null?void 0:a.url,sx:{width:45,height:45},children:C(Ju,{})})}),C(go,{primary:`${e.mealItem.amountString} ${(s=e.mealItem.ingredient)==null?void 0:s.name}`})]}),C(Ws,{in:t,timeout:"auto",unmountOnExit:!0,sx:{width:"100%"},children:C(Ja,{children:C(go,{children:C(Oce,{planId:e.planId,mealId:e.mealId,item:e.mealItem,closeFn:r})})})})]})},Hq=e=>{const t=Ao(),n=e.meal.id!==IP,[r]=qe(),[o,i]=v.useState(!1),a=()=>i(!o),[s,l]=v.useState(!1),c=()=>{l(!s),d(!1)},[u,d]=v.useState(!1),f=()=>{d(!u),l(!1)};return X(io,{children:[C(Zl,{sx:{bgcolor:t.palette.grey[300]},action:e.meal.id!==IP&&C(EAt,{meal:e.meal,planId:e.planId,onlyLogging:e.onlyLogging,isExpanded:o,handleExpanded:a}),title:e.meal.name,subheader:e.meal.timeHHMMLocale}),X(wi,{sx:{paddingY:0},children:[X(Ws,{in:o,timeout:"auto",unmountOnExit:!0,children:[!e.onlyLogging&&C(VL,{showSum:n,items:e.meal.items,values:e.meal.plannedNutritionalValues}),C(ut,{gutterBottom:!0,variant:"h6",sx:{my:2},children:r("nutrition.loggedToday")}),!e.meal.plannedNutritionalValues.isEmpty&&C(PAt,{logged:e.meal.loggedNutritionalValuesToday,planned:e.meal.plannedNutritionalValues}),C(VL,{showSum:n,items:e.meal.diaryEntriesToday,values:e.meal.loggedNutritionalValuesToday})]}),!o&&C(ol,{children:e.meal.items.map(p=>C(TAt,{mealItem:p,planId:e.planId,mealId:e.meal.id},p.id))})]}),X(os,{children:[!e.onlyLogging&&C(Xl,{title:r("nutrition.addMealItem"),children:C(An,{onClick:c,children:C(Gi,{})})}),C(Xl,{title:r("nutrition.addNutritionalDiary"),children:C(An,{onClick:f,children:C(hS,{})})})]}),C(Ws,{in:s,timeout:"auto",unmountOnExit:!0,children:X(wi,{sx:{paddingY:0},children:[C("p",{children:C("b",{children:r("nutrition.addMealItem")})}),C(Oce,{planId:e.planId,mealId:e.meal.id,closeFn:c})]})}),C(Ws,{in:u,timeout:"auto",unmountOnExit:!0,children:X(wi,{sx:{paddingY:0},children:[C("p",{children:C("b",{children:r("nutrition.addNutritionalDiary")})}),C(qB,{closeFn:f,planId:e.planId,mealId:e.meal.id!==IP?e.meal.id:null})]})})]})},Uq=e=>{const[t,n]=qe();return C(Gu,{children:X(Uu,{size:"small",children:[C(_h,{children:X(Yt,{children:[C(Ie,{children:t("nutrition.macronutrient")}),C(Ie,{align:"right",children:t("total")}),C(Ie,{align:"right",children:t("nutrition.percentEnergy")})]})}),X(Wu,{children:[X(Yt,{children:[C(Ie,{children:t("nutrition.energy")}),C(Ie,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:gi(e.values.energy,n.language),kj:gi(e.values.energyKj,n.language)})}),C(Ie,{align:"right"})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.protein")}),C(Ie,{align:"right",children:Cn(e.values.protein,n.language)}),C(Ie,{align:"right",children:u$(e.values.percent.protein,n.language)})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.carbohydrates")}),C(Ie,{align:"right",children:Cn(e.values.carbohydrates,n.language)}),C(Ie,{align:"right",children:u$(e.values.percent.carbohydrates,n.language)})]}),X(Yt,{children:[C(Ie,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),C(Ie,{align:"right",children:Cn(e.values.carbohydratesSugar,n.language)}),C(Ie,{align:"right"})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.fat")}),C(Ie,{align:"right",children:Cn(e.values.fat,n.language)}),C(Ie,{align:"right",children:u$(e.values.percent.fat,n.language)})]}),X(Yt,{children:[C(Ie,{sx:{pl:5},children:t("nutrition.ofWhichSaturated")}),C(Ie,{align:"right",children:Cn(e.values.fatSaturated,n.language)}),C(Ie,{align:"right"})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.others")}),C(Ie,{children:" "}),C(Ie,{align:"right"})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.fibres")}),C(Ie,{align:"right",children:Cn(e.values.fiber,n.language)}),C(Ie,{align:"right"})]}),X(Yt,{children:[C(Ie,{children:t("nutrition.sodium")}),C(Ie,{align:"right",children:Cn(e.values.sodium,n.language)}),C(Ie,{align:"right"})]})]})]})})},OAt=e=>{const t=hDe(e.plan.id),n=Qh(),[r,o]=qe(),[i,a]=Y.useState(null),[s,l]=Y.useState(!1),[c,u]=Y.useState(!1),d=!!i,f=O=>{a(O.currentTarget)},p=()=>{m(),S()},m=()=>{a(null)},g=()=>{E(),a(null)},y=()=>{t.mutate(e.plan.id),n(Pn(wn.NUTRITION_OVERVIEW))},b=()=>window.location.href=Pn(wn.NUTRITION_PLAN_PDF,o.language,{id:e.plan.id}),x=()=>window.location.href=Pn(wn.NUTRITION_PLAN_COPY,o.language,{id:e.plan.id}),S=()=>l(!0),P=()=>l(!1),E=()=>u(!0),T=()=>u(!1);return X(Mt,{children:[C(yt,{onClick:f,children:C(qae,{})}),X(is,{anchorEl:i,open:d,onClose:m,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(tn,{onClick:p,children:r("edit")}),C(tn,{onClick:b,children:r("downloadAsPdf")}),C(tn,{onClick:x,children:r("nutrition.copyPlan")}),C(tn,{onClick:g,children:r("delete")})]}),C(Yi,{title:r("edit"),isOpen:s,closeFn:P,children:C(KB,{plan:e.plan,closeFn:P})}),C(Rz,{title:r("deleteConfirmation",{name:e.plan.description}),message:r("nutrition.planDeleteInfo"),isOpen:c,closeFn:T,deleteFn:y})]})},IAt=e=>{const[t]=qe(),n=e.plan.plannedNutritionalValues,r=e.plan.loggedNutritionalValuesToday,o=e.plan.percentageValuesLoggedToday;return C(Mt,{children:X(Gt,{direction:"column",spacing:1,children:[C(ut,{gutterBottom:!0,variant:"h6",children:t("nutrition.goalsTitle")}),C(Vg,{title:t("nutrition.protein"),percentage:o.protein,logged:r.protein,planned:n.protein}),C(Vg,{title:t("nutrition.carbohydrates"),percentage:o.carbohydrates,logged:r.carbohydrates,planned:n.carbohydrates}),C(Vg,{title:t("nutrition.fat"),percentage:o.fat,logged:r.fat,planned:n.fat})]})})},kAt=()=>{const[e]=qe(),t=Jh(),n=parseInt(t.planId),r=dDe(n),[o,i]=v.useState(!1),a=()=>i(!o),s=r.data;return r.isLoading?C(bo,{}):C(Zh,{title:s.description,optionsMenu:C(OAt,{plan:s}),mainContent:C(Mt,{children:X(Gt,{spacing:2,children:[s.meals.map(l=>C(Hq,{meal:l,planId:s.id,onlyLogging:s.onlyLogging},l.id)),C(Hq,{meal:r.data.pseudoMealOthers(e("nutrition.pseudoMealTitle")),planId:s.id,onlyLogging:!0},-1),!s.onlyLogging&&X(Mt,{children:[C(Xl,{title:e("nutrition.addMeal"),children:C(An,{onClick:a,children:C(Gi,{})})}),X(Ws,{in:o,timeout:"auto",unmountOnExit:!0,children:[C("p",{children:C("b",{children:e("nutrition.addMeal")})}),C(Tce,{planId:s.id,closeFn:a})]})]}),C(Uq,{values:s.plannedNutritionalValues}),s.hasAnyPlanned&&C(bAt,{data:s.plannedNutritionalValues}),C(ut,{gutterBottom:!0,variant:"h4",children:e("nutrition.logged")}),C(wAt,{showPlanned:s.hasAnyPlanned,planned:s.plannedNutritionalValues,today:s.loggedNutritionalValuesToday,avg7Days:s.loggedNutritionalValues7DayAvg}),C(Uq,{values:s.loggedNutritionalValuesToday}),C(xAt,{planId:s.id,logged:s.groupDiaryEntries,planned:s.plannedNutritionalValues})]})}),sideBar:C(IAt,{plan:s}),fab:C(CAt,{plan:s})})},MAt=()=>{var n;const e=cDe(),[t]=qe();return e.isLoading?C(bo,{}):C(Zh,{title:t("nutrition.plans"),mainContent:X(Gt,{spacing:2,children:[((n=e.data)==null?void 0:n.length)===0&&C(cI,{}),C($At,{plans:e.data})]}),fab:C(SAt,{})})},AAt=e=>{const[t,n]=qe(),r=Pn(wn.NUTRITION_DETAIL,n.language,{id:e.plan.id});return X(Mt,{children:[C(Ja,{sx:{p:0},children:X(Df,{component:"a",href:r,children:[C(go,{primary:e.plan.description!==""?e.plan.description:t("routines.routine"),secondary:e.plan.creationDate.toLocaleDateString()}),C(Hae,{})]})}),C(Qa,{component:"li"})]})},$At=e=>C(so,{children:C(ol,{sx:{py:0},children:e.plans.map(t=>C(AAt,{plan:t},t.id))},"abc")}),RAt=e=>{var u;const[t,n]=qe(),[r,o]=Y.useState(null),i=!!r,a=d=>{o(d.currentTarget)},s=()=>{o(null)},l=()=>window.location.href=Pn(wn.ROUTINE_EDIT_LOG,n.language,{id:e.log.id}),c=()=>window.location.href=Pn(wn.ROUTINE_DELETE_LOG,n.language,{id:e.log.id});return X(Yt,{children:[C(Ie,{component:"th",scope:"row",children:It.fromJSDate(e.log.date).toLocaleString(It.DATE_MED)}),C(Ie,{children:e.log.reps}),X(Ie,{children:[e.log.weight,(u=e.log.weightUnitObj)==null?void 0:u.name]}),C(Ie,{children:e.log.rirString}),X(Ie,{children:[C(An,{"aria-label":"settings",onClick:a,children:C(GS,{fontSize:"small"})}),X(is,{id:"basic-menu",anchorEl:r,open:i,onClose:s,MenuListProps:{"aria-labelledby":"basic-button"},children:[X(tn,{onClick:l,children:[C(Uae,{}),t("edit")]}),X(tn,{onClick:c,children:[C(YB,{}),t("delete")]})]})]})]},e.log.id)},DAt=e=>{let t=e.logEntries??[];const n=[5,10,20],[r,o]=Y.useState(n[0]),[i,a]=Y.useState(0),s=(c,u)=>{a(u)},l=c=>{o(parseInt(c.target.value,10)),a(0)};return X(Mt,{children:[C(ut,{variant:"h6",sx:{mt:4},children:e.exerciseId.getTranslation().name}),X(Fe,{container:!0,spacing:2,children:[C(Fe,{size:{xs:12,md:5},children:X(Gu,{children:[X(Uu,{"aria-label":"simple table",size:"small",children:[C(_h,{children:X(Yt,{children:[C(Ie,{children:"Date"}),C(Ie,{children:"Reps"}),C(Ie,{children:"Weight"}),C(Ie,{children:"RiR"}),C(Ie,{})]})}),C(Wu,{children:t.slice(i*r,i*r+r).map(c=>C(RAt,{log:c},c.id))})]}),C(RF,{rowsPerPageOptions:n,component:"div",count:t.length,rowsPerPage:r,page:i,onPageChange:s,onRowsPerPageChange:l})]})}),C(Fe,{size:{xs:12,md:7},children:C(NAt,{data:t},e.exerciseId.id)})]})]})},Wq=()=>{const e=Jh(),t=e.routineId?parseInt(e.routineId):0,[n,r]=qe(),o=fyt(t,!1),i=Kae(t),a=l=>window.location.href=Pn(wn.ROUTINE_ADD_LOG,r.language,{id:l});let s=new Map;return o.isSuccess&&(s=o.data.reduce(function(l,c){return l.set(c.exerciseId,l.get(c.exerciseId)||[]),[A2e,$2e].includes(c.weightUnit)&&c.repetitionUnit===OZ&&l.get(c.exerciseId).push(c),l},new Map)),C(Mt,{children:X(Vu,{maxWidth:"lg",children:[C(ut,{variant:"h4",children:n("routines.logsHeader")}),C(ut,{variant:"body1",children:n("routines.logsFilterNote")}),o.isSuccess&&i.isSuccess?C(Mt,{children:i.data.days.map(l=>X("div",{children:[X(Gt,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:"center",sx:{mt:4},children:[C(ut,{variant:"h4",children:l.description}),C(yt,{variant:"contained",onClick:()=>a(l.id),children:n("routines.addLogToDay")})]}),l.sets.map(c=>c.exercises.map(u=>C(DAt,{exerciseId:u,logEntries:s.get(u.id)},c.id+u.uuid)))]},l.id))}):C(bo,{})]})})},_At=e=>e.map(t=>({id:t.id,value:t.weight,time:t.date.getTime(),entry:t})),LAt=({active:e,payload:t,label:n})=>{var r,o,i;if(e){let a="";return(r=t==null?void 0:t[1].payload)!=null&&r.entry.rir&&(a=`, ${(o=t==null?void 0:t[1].payload)==null?void 0:o.entry.rir} RiR`),C(io,{children:X(wi,{children:[C(ut,{variant:"body1",children:It.fromMillis(t==null?void 0:t[0].value).toLocaleString(It.DATE_MED)}),X(ut,{variant:"body2",children:[(i=t==null?void 0:t[1].payload)==null?void 0:i.entry.reps," × ",t==null?void 0:t[1].value,t==null?void 0:t[1].unit,a]})]})})}return null},NAt=e=>{let t;t=e.data.reduce(function(r,o){return r.set(o.reps,r.get(o.reps)||[]),r.get(o.reps).push(o),r},new Map);const n=nM(t.size);return C(Ln,{children:C(Nf,{width:"100%",height:250,children:X(Rrt,{children:[C(sl,{dataKey:"time",domain:["auto","auto"],name:"Time",tickFormatter:r=>It.fromMillis(r).toLocaleString(It.DATE_MED),type:"number"}),C(ll,{domain:["auto","auto"],dataKey:"value",name:"Value",unit:"kg"}),Array.from(t).map(([r,o])=>{const i=n.next().value,a=_At(o);return C(AS,{data:a,fill:i,line:{stroke:i},lineType:"joint",lineJointType:"monotoneX",name:r.toString()},r)}),C(ja,{content:C(LAt,{})}),C(jh,{strokeDasharray:"3 3"}),C(Pu,{})]})})})},FAt=()=>C("div",{children:C(Rh,{color:"secondary","aria-label":"add",onClick:()=>window.location.href=Pn(wn.ROUTINE_ADD),sx:{position:"fixed",bottom:"5rem",right:t=>t.spacing(2),zIndex:9},children:C(Gi,{})})}),jAt=e=>{const[t,n]=qe(),r=Pn(wn.ROUTINE_DETAIL,n.language,{id:e.routine.id});return X(Mt,{children:[C(Ja,{sx:{p:0},children:X(Df,{component:"a",href:r,children:[C(go,{primary:e.routine.name!==""?e.routine.name:t("routines.routine"),secondary:e.routine.date.toLocaleDateString()}),C(Hae,{})]})}),C(Qa,{component:"li"})]})},Gq=()=>{const e=pyt(),[t]=qe();return X(Vu,{maxWidth:"lg",children:[X(Fe,{container:!0,children:[X(Fe,{size:{xs:12,sm:8},children:[C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:t("routines.routines")}),e.isLoading?C(bo,{}):C(so,{children:C(ol,{sx:{py:0},children:e.data.map(n=>C(jAt,{routine:n},n.id))},"abc")})]}),C(Fe,{size:{xs:12,sm:4}})]}),C(FAt,{})]})},CR=()=>C(Qwt,{}),Dz=()=>X(nvt,{children:[X(Lt,{path:"/:lang",children:[X(Lt,{path:"workout",children:[C(Lt,{path:"overview",element:C(Xxt,{})}),C(Lt,{path:"schedule",element:C(Qxt,{})}),C(Lt,{path:"gallery",element:C(Mxt,{})}),X(Lt,{path:"template",children:[C(Lt,{path:"overview",element:C(Lxt,{})}),C(Lt,{path:"public",element:C(Dxt,{})})]})]}),X(Lt,{path:"routine",children:[C(Lt,{index:!0,element:C(Gq,{})}),C(Lt,{path:"overview",element:C(Gq,{})}),C(Lt,{path:"calendar",element:C(Oxt,{})}),C(Lt,{path:":routineId",element:C(u7,{}),children:C(Lt,{path:"view",element:C(u7,{})})}),C(Lt,{path:"log",children:C(Lt,{path:":routineId",element:C(Wq,{}),children:C(Lt,{path:"view",element:C(Wq,{})})})})]}),X(Lt,{path:"measurement",children:[C(Lt,{index:!0,element:C(zq,{})}),C(Lt,{path:"overview",element:C(zq,{})}),C(Lt,{path:"category/:categoryId",element:C(hAt,{})})]}),X(Lt,{path:"exercise",children:[C(Lt,{index:!0,element:C(_7,{})}),C(Lt,{path:"overview",element:C(_7,{})}),C(Lt,{path:":baseID",element:C(CR,{}),children:C(Lt,{path:"view-base",element:C(CR,{}),children:C(Lt,{path:":slug",element:C(CR,{})})})}),C(Lt,{path:"contribute",element:C(pxt,{})})]}),X(Lt,{path:"weight",children:[C(Lt,{path:"overview",element:C(Qse,{})}),C(Lt,{path:"add",element:C(hxt,{})})]}),X(Lt,{path:"nutrition",children:[C(Lt,{path:"overview",element:C(MAt,{})}),X(Lt,{path:":planId",children:[C(Lt,{path:"view",element:C(kAt,{})}),C(Lt,{path:":date",element:C(Vq,{})}),C(Lt,{path:"diary",element:C(Vq,{})})]}),X(Lt,{path:"calculator",children:[C(Lt,{path:"bmi",element:C(gAt,{})}),C(Lt,{path:"calories",element:C(Ixt,{})})]}),C(Lt,{path:"ingredient",children:C(Lt,{path:"overview",element:C(Axt,{})})})]}),X(Lt,{path:"software",children:[C(Lt,{path:"about-us",element:C(O0t,{})}),C(Lt,{path:"api",element:C(_xt,{})}),C(Lt,{path:"equipment",element:C(kxt,{})})]}),C(Lt,{path:"login",element:C($xt,{})}),C(Lt,{path:"user",children:C(Lt,{path:"preferences",element:C(Rxt,{})})})]}),C(Lt,{path:"/",element:C(Jxt,{})}),C(Lt,{path:"*",element:C("main",{style:{padding:"1rem"},children:C("p",{children:"404, Page NOT FOUND"})})})]}),BAt="_notification_bbb61_1",qq={notification:BAt},zAt=()=>{const[e,t]=N0t(),n=()=>{t(T7({notify:!1,message:"",severity:void 0,title:"",type:void 0}))},r=()=>{t(T7({notify:!1,message:"",severity:void 0,title:"",type:void 0,undo:!0}))};return e.notification.notify?e.notification.type==="delete"?X(Bu,{className:qq.notification,severity:e.notification.severity,action:C(yt,{color:"inherit",size:"small",onClick:r,children:"UNDO"}),variant:"filled",children:[C(CE,{children:e.notification.title}),C("strong",{children:e.notification.message})]}):X(Bu,{className:qq.notification,severity:e.notification.severity,onClose:()=>n(),variant:"filled",children:[C(CE,{children:e.notification.title}),C("strong",{children:e.notification.message})]}):null};function VAt(){return X(Fe,{container:!0,children:[C(Fe,{size:12,children:C(Yxt,{})}),C(Fe,{size:12,children:C(zAt,{})}),C(Fe,{size:12,children:C(Dz,{})})]})}const Xt=e=>typeof e=="string",m0=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Kq=e=>e==null?"":""+e,HAt=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},UAt=/###/g,Yq=e=>e&&e.indexOf("###")>-1?e.replace(UAt,"."):e,Xq=e=>!e||Xt(e),gw=(e,t,n)=>{const r=Xt(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Xq(e))return{};const i=Yq(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Xq(e)?{}:{obj:e,k:Yq(r[o])}},Qq=(e,t,n)=>{const{obj:r,k:o}=gw(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=gw(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=gw(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},WAt=(e,t,n,r)=>{const{obj:o,k:i}=gw(e,t,Object);o[i]=o[i]||[],o[i].push(n)},iO=(e,t)=>{const{obj:n,k:r}=gw(e,t);if(n)return n[r]},GAt=(e,t,n)=>{const r=iO(e,n);return r!==void 0?r:iO(t,n)},Ice=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Xt(e[r])||e[r]instanceof String||Xt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ice(e[r],t[r],n):e[r]=t[r]);return e},Km=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var qAt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const KAt=e=>Xt(e)?e.replace(/[&<>"'\/]/g,t=>qAt[t]):e;class YAt{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const XAt=[" ",",","?","!",";"],QAt=new YAt(20),JAt=(e,t,n)=>{t=t||"",n=n||"";const r=XAt.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=QAt.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},HL=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<r.length;++l)if(l!==i&&(s+=n),s+=r[l],a=o[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=a}return o},aO=e=>e&&e.replace("_","-"),ZAt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class sO{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||ZAt,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Xt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new sO(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new sO(this.logger,t)}}var Cc=new sO;class rM{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...r])})}}class Jq extends rM{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):Xt(r)&&i?s.push(...r.split(i)):s.push(r)));const l=iO(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!Xt(r)?l:HL(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),Qq(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(Xt(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=iO(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Ice(l,r,i):l={...l,...r},Qq(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var kce={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const Zq={};class lO extends rM{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),HAt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Cc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!JAt(t,r,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return Xt(i)&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const P=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${P}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${P}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(t,n);let f=d&&d.res;const p=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(f),y=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!Xt(f)&&typeof f!="boolean"&&typeof f!="number";if(x&&f&&S&&y.indexOf(g)<0&&!(Xt(b)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=P,d.usedParams=this.getUsedParamsDetails(n),d):P}if(i){const P=Array.isArray(f),E=P?[]:{},T=P?m:p;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const k=`${T}${i}${O}`;E[O]=this.translate(k,{...n,joinArrays:!1,ns:s}),E[O]===k&&(E[O]=f[O])}f=E}}else if(x&&Xt(b)&&Array.isArray(f))f=f.join(b),f&&(f=this.extendTranslation(f,t,n,r));else{let P=!1,E=!1;const T=n.count!==void 0&&!Xt(n.count),O=lO.hasDefaultValue(n),k=T?this.pluralResolver.getSuffix(c,n.count,n):"",M=n.ordinal&&T?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",I=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),R=I&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(f)&&O&&(P=!0,f=R),this.isValidLookup(f)||(E=!0,f=a);const N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:f,B=O&&R!==f&&this.options.updateMissing;if(E||P||B){if(this.logger.log(B?"updateKey":"missingKey",c,l,a,B?R:f),i){const V=this.resolve(a,{...n,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let V=0;V<F.length;V++)L.push(F[V]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);const U=(V,z,W)=>{const G=O&&W!==f?W:N;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,z,G,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,l,z,G,B,n),this.emit("missingKey",V,l,z,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?L.forEach(V=>{const z=this.pluralResolver.getSuffixes(V,n);I&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(W=>{U([V],a+W,n[`defaultValue${W}`]||R)})}):U(L,a,R))}f=this.extendTranslation(f,t,n,d,r),E&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(E||P)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,P?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=Xt(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&!Xt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||o.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;u<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):a.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=Xt(s)?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=kce.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return Xt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Xt(n.count),p=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(Xt(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(y=>{this.isValidLookup(r)||(s=y,!Zq[`${g[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Zq[`${g[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(b=>{if(this.isValidLookup(r))return;a=b;const x=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,u,b,y,n);else{let P;f&&(P=this.pluralResolver.getSuffix(b,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(x.push(u+P),n.ordinal&&P.indexOf(T)===0&&x.push(u+P.replace(T,this.options.pluralSeparator)),p&&x.push(u+E)),m){const O=`${u}${this.options.contextSeparator}${n.context}`;x.push(O),f&&(x.push(O+P),n.ordinal&&P.indexOf(T)===0&&x.push(O+P.replace(T,this.options.pluralSeparator)),p&&x.push(O+E))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(i=S,r=this.getResource(b,y,S,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Xt(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const PR=e=>e.charAt(0).toUpperCase()+e.slice(1);class eK{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Cc.create("languageUtils")}getScriptPartFromCode(t){if(t=aO(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=aO(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Xt(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=PR(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=PR(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=PR(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Xt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Xt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Xt(t)&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let e$t=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],t$t={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const n$t=["v1","v2","v3"],r$t=["v4"],tK={zero:0,one:1,two:2,few:3,many:4,other:5},o$t=()=>{const e={};return e$t.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:t$t[t.fc]}})}),e};class i$t{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Cc.create("pluralResolver"),(!this.options.compatibilityJSON||r$t.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=o$t(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=aO(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const a=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>tK[o]-tK[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!n$t.includes(this.options.compatibilityJSON)}}const nK=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=GAt(e,t,n);return!i&&o&&Xt(n)&&(i=HL(e,n,r),i===void 0&&(i=HL(t,n,r))),i},ER=e=>e.replace(/\$/g,"$$$$");class a$t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Cc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:y,maxReplaces:b,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:KAt,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Km(i):a||"{{",this.suffix=s?Km(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?Km(f):p||Km("$t("),this.nestingSuffix=m?Km(m):g||Km(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=b||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=nK(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...o,...n,interpolationkey:p}):b}const m=p.split(this.formatSeparator),g=m.shift().trim(),y=m.join(this.formatSeparator).trim();return this.format(nK(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>ER(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?ER(this.escape(p)):ER(p)}].forEach(p=>{for(s=0;i=p.regex.exec(t);){const m=i[1].trim();if(a=c(m),a===void 0)if(typeof u=="function"){const y=u(t,i,o);a=Xt(y)?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),a="";else!Xt(a)&&!this.useRawValueToEscape&&(a=Kq(a));const g=p.safeValue(a);if(t=t.replace(i[0],g),d?(p.regex.lastIndex+=a.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);const p=f.match(/'/g),m=f.match(/"/g);(p&&p.length%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!Xt(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!Xt(i))return i;Xt(i)||(i=Kq(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const s$t=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Ym=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(aO(r),o),t[a]=s),s(n)}};class l$t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Cc.create("formatter"),this.options=t,this.formats={number:Ym((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:Ym((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:Ym((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:Ym((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:Ym((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ym(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{const{formatName:c,formatOptions:u}=s$t(l);if(this.formats[c]){let d=s;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},p=f.locale||f.lng||o.locale||o.lng||r;d=this.formats[c](s,p,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const c$t=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class u$t extends rM{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Cc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,u=!1,a[f]===void 0&&(a[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{WAt(l.loaded,[i],a),c$t(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Xt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Xt(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,o,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const rK=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Xt(e[1])&&(t.defaultValue=e[1]),Xt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),oK=e=>(Xt(e.ns)&&(e.ns=[e.ns]),Xt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Xt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),rP=()=>{},d$t=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class zx extends rM{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oK(t),this.services={},this.logger=Cc,this.modules={external:[]},d$t(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Xt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=rK();this.options={...o,...this.options,...oK(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Cc.init(i(this.modules.logger),this.options):Cc.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=l$t);const d=new eK(this.options);this.store=new Jq(this.options.resources,this.options);const f=this.services;f.logger=Cc,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new i$t(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new a$t(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new u$t(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];t.emit(p,...g)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new lO(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];t.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=rP),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=m0(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rP;const o=Xt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const o=m0();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=rP),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&kce.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=m0();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=Xt(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,n,r){var o=this;const i=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const f=o.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(a)?p=a.map(m=>`${l.keyPrefix}${f}${m}`):p=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,o.t(p,l)};return Xt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=m0();return this.options.ns?(Xt(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=m0();Xt(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new eK(rK());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new zx(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rP;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new zx(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Jq(this.store.data,o),i.services.resourceStore=i.store),i.translator=new lO(i.services,o),i.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(s,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pi=zx.createInstance();Pi.createInstance=zx.createInstance;Pi.createInstance;Pi.dir;Pi.init;Pi.loadResources;Pi.reloadResources;Pi.use;Pi.changeLanguage;Pi.getFixedT;Pi.t;Pi.exists;Pi.setDefaultNamespace;Pi.hasLoadedNamespace;Pi.loadNamespaces;Pi.loadLanguages;const{slice:f$t,forEach:p$t}=[];function h$t(e){return p$t.call(f$t.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const iK=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,m$t=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!iK.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!iK.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},aK={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=m$t(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e){this.create(e,"",-1)}};var g$t={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return aK.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&typeof document<"u"&&aK.create(n,e,r,o,i)}},y$t={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const a=o.substring(1).split("&");for(let s=0;s<a.length;s++){const l=a[s].indexOf("=");l>0&&a[s].substring(0,l)===t&&(n=a[s].substring(l+1))}}return n}};let g0=null;const sK=()=>{if(g0!==null)return g0;try{g0=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{g0=!1}return g0};var v$t={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&sK())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&sK()&&window.localStorage.setItem(n,e)}};let y0=null;const lK=()=>{if(y0!==null)return y0;try{y0=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{y0=!1}return y0};var b$t={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&lK())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&lK()&&window.sessionStorage.setItem(n,e)}},w$t={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},x$t={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},S$t={name:"path",lookup(e){var o;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(o=n[typeof t=="number"?t:0])==null?void 0:o.replace("/",""):void 0}},C$t={name:"subdomain",lookup(e){var o,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function P$t(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class Mce{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=h$t(n,this.options||{},P$t()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(g$t),this.addDetector(y$t),this.addDetector(v$t),this.addDetector(b$t),this.addDetector(w$t),this.addDetector(x$t),this.addDetector(S$t),this.addDetector(C$t)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Mce.type="languageDetector";function UL(e){"@babel/helpers - typeof";return UL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UL(e)}function Ace(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":UL(XMLHttpRequest))==="object"}function E$t(e){return!!e&&typeof e.then=="function"}function T$t(e){return E$t(e)?e:Promise.resolve(e)}function cK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cK(Object(n),!0).forEach(function(r){O$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O$t(e,t,n){return(t=I$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$t(e){var t=k$t(e,"string");return kh(t)=="symbol"?t:t+""}function k$t(e,t){if(kh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kh(e){"@babel/helpers - typeof";return kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kh(e)}var Mu;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Mu=global.fetch:typeof window<"u"&&window.fetch?Mu=window.fetch:Mu=fetch);var Vx;Ace()&&(typeof global<"u"&&global.XMLHttpRequest?Vx=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vx=window.XMLHttpRequest));var cO;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?cO=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(cO=window.ActiveXObject));typeof Mu!="function"&&(Mu=void 0);if(!Mu&&!Vx&&!cO)try{Hwe(()=>import("./browser-ponyfill-3pZDG15-.js").then(e=>e.b),[]).then(function(e){Mu=e.default}).catch(function(){})}catch{}var WL=function(t,n){if(n&&kh(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},dK=function(t,n,r,o){var i=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(o){var a=o(t,n);if(a instanceof Promise){a.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Mu(t,n).then(i).catch(r)},fK=!1,M$t=function(t,n,r,o){t.queryStringParams&&(n=WL(n,t.queryStringParams));var i=uK({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=uK({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},fK?{}:a),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{dK(n,s,o,l)}catch(c){if(!a||Object.keys(a).length===0||!c.message||c.message.indexOf("not implemented")<0)return o(c);try{Object.keys(a).forEach(function(u){delete s[u]}),dK(n,s,o,l),fK=!0}catch(u){o(u)}}},A$t=function(t,n,r,o){r&&kh(r)==="object"&&(r=WL("",r).slice(1)),t.queryStringParams&&(n=WL(n,t.queryStringParams));try{var i=Vx?new Vx:new cO("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},$$t=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},Mu&&n.indexOf("file:")!==0)return M$t(t,n,r,o);if(Ace()||typeof ActiveXObject=="function")return A$t(t,n,r,o);o(new Error("No fetch and no xhr implementation found!"))};function dv(e){"@babel/helpers - typeof";return dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dv(e)}function pK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pK(Object(n),!0).forEach(function(r){$ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rce(r.key),r)}}function _$t(e,t,n){return t&&D$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ce(e,t,n){return(t=Rce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rce(e){var t=L$t(e,"string");return dv(t)=="symbol"?t:t+""}function L$t(e,t){if(dv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N$t=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,o){return $ce({},r,o||"")},parseLoadPayload:function(n,r){},request:$$t,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Dce=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R$t(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _$t(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=TR(TR(TR({},N$t()),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);dv(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,o)),l=T$t(l),l.then(function(c){if(!c)return a(null,{});var u=s.services.interpolator.interpolate(c,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(u,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this,s=typeof o=="string"?[o]:o,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(s,l);this.options.request(this.options,n,c,function(u,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&u&&u.message){var f=u.message.toLowerCase(),p=["failed","fetch","network","load"].find(function(y){return f.indexOf(y)>-1});if(p)return r("failed loading "+n+": "+u.message,!0)}if(u)return r(u,!1);var m,g;try{typeof d.data=="string"?m=a.options.parse(d.data,o,i):m=d.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,m)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,o,i),c=0,u=[],d=[];n.forEach(function(f){var p=s.options.addPath;typeof s.options.addPath=="function"&&(p=s.options.addPath(f,r));var m=s.services.interpolator.interpolate(p,{lng:f,ns:r});s.options.request(s.options,m,l,function(g,y){c+=1,u.push(g),d.push(y),c===n.length&&typeof a=="function"&&a(u,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(d){var f=i.toResolveHierarchy(d);f.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return c(u)}),l.forEach(function(u){n.allOptions.ns.forEach(function(d){o.read(u,d,"read",null,null,function(f,p){f&&a.warn("loading namespace ".concat(d," for language ").concat(u," failed"),f),!f&&p&&a.log("loaded namespace ".concat(d," for language ").concat(u),p),o.loaded("".concat(u,"|").concat(d),f,p)})})})}}}])}();Dce.type="backend";Pi.use(Dce).use(Mce).use(D$e).init({load:"languageOnly",detection:{order:["path","navigator","htmlTag"]},fallbackLng:"en",interpolation:{escapeValue:!1},backend:{loadPath:"/static/react/locales/{{lng}}/{{ns}}.json"}});const nm=new Ewe({defaultOptions:{queries:{retry:3,staleTime:1e3*60*5,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:"always"}}}),_z=e=>{const t=document.getElementById(e);if(t===null)return;const n=t.attachShadow({mode:"open"}),r=document.createElement("div"),o=document.createElement("style"),i=document.getElementById("react-css");if(i){const l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("href",i.href),n.appendChild(i)}n.appendChild(r),n.appendChild(o);const a=XK({key:"css",prepend:!0,container:o});rd(r).render(C(Jye,{value:a,children:C(v.Suspense,{fallback:C(ga,{}),children:C(JB,{children:C(Of,{theme:fSt(r),children:C(Mh,{client:nm,children:C(Dz,{})})})})})}))},hK=document.getElementById("root");hK&&rd(hK).render(C(Y.StrictMode,{children:C(v.Suspense,{fallback:C(ga,{}),children:C(JB,{children:C(Of,{theme:Uf,children:X(Mh,{client:nm,children:[C(VAt,{}),C(Uwe,{})]})})})})}));const mK=document.getElementById("react-weight-overview");mK&&rd(mK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(Of,{theme:Uf,children:C(Mh,{client:nm,children:C(Qse,{})})})}));const gK=document.getElementById("react-weight-dashboard");gK&&rd(gK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(Of,{theme:Uf,children:C(Mh,{client:nm,children:C(Tse,{})})})}));const yK=document.getElementById("react-nutrition-dashboard");yK&&rd(yK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(Of,{theme:Uf,children:C(Mh,{client:nm,children:C(zae,{})})})}));const vK=document.getElementById("react-routine-dashboard");vK&&rd(vK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(Of,{theme:Uf,children:C(Mh,{client:nm,children:C(sse,{})})})}));_z("react-exercise-overview");_z("react-exercise-contribute");const bK=document.getElementById("react-exercise-detail");bK&&rd(bK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(JB,{children:C(Of,{theme:Uf,children:C(Mh,{client:nm,children:C(Dz,{})})})})}));_z("react-page");const wK=document.getElementById("react-ingredient-search");wK&&rd(wK).render(C(v.Suspense,{fallback:C(ga,{}),children:C(Of,{theme:Uf,children:C(T0t,{})})}));export{yc as c,Bn as g};
+`)),r.current=!0),j.current){S(F),j.current=!1;return}P(F)},[t.autoHeight,P,n]);mr(I,[I]),ar(e,"sortedRowsSet",I),ar(e,"paginationModelChange",I),ar(e,"columnsChange",I),gt(e,"resize",N),ar(e,"debouncedResize",t.onResize)}function H$t(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=tc(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function U$t(e,t){return Math.round(e*10**t)/10**t}function $K(e,t){return e.width===t.width&&e.height===t.height}const W$t=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},G$t=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},D({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),q$t=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,a=v.useRef(-1),s=v.useRef(!1),l=v.useRef(!1),c=Ge(e,C1),u=Ge(e,oi),d=Ge(e,MM),f=Ge(e,Ns),p=bm(e,t),m=Ge(e,vm),g=Ge(e,()=>Mi(e.current.state).rowHeight),y=L=>{let j=i.get(L);return j===void 0&&(j={content:g,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(L,j)),j},b=v.useCallback(L=>{const j=Mi(e.current.state).rowHeight,N=e.current.getRowHeightEntry(L.id);if(!n)N.content=j,N.needsFirstMeasurement=!1;else{const F=n(D({},L,{densityFactor:c}));if(F==="auto"){if(N.needsFirstMeasurement){const U=o?o(D({},L,{densityFactor:c})):j;N.content=U??j}s.current=!0,N.autoHeight=!0}else N.content=_ce(F,j),N.needsFirstMeasurement=!1,N.autoHeight=!1}if(r){const F=e.current.getRowIndexRelativeToVisibleRows(L.id),U=r(D({},L,{isFirstVisible:F===0,isLastVisible:F===p.rows.length-1,indexRelativeToCurrentPage:F}));N.spacingTop=U.top??0,N.spacingBottom=U.bottom??0}else N.spacingTop=0,N.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",N,L),N},[e,p.rows.length,n,o,g,r,c]),x=v.useCallback(()=>{s.current=!1,m.top.forEach(b),m.bottom.forEach(b);const L=[],j=p.rows.reduce((N,F)=>{L.push(N);const U=b(F),z=U.content+U.spacingTop+U.spacingBottom+U.detail;return N+z},0);s.current||(a.current=1/0),e.current.setState(N=>D({},N,{rowsMeta:{currentPageTotalHeight:j,positions:L}})),l.current=!0},[e,m,p.rows,b]),S=L=>{var j;return((j=i.get(L))==null?void 0:j.content)??g},P=(L,j)=>{const N=e.current.getRowHeightEntry(L),F=N.content!==j;N.needsFirstMeasurement=!1,N.content=j,l.current&&(l.current=!F)},E=L=>{var j;return((j=i.get(L))==null?void 0:j.autoHeight)??!1},T=()=>a.current,O=L=>{s.current&&L>a.current&&(a.current=L)},k=()=>{i.clear(),x()},M=eu(()=>new W$t(L=>{for(let j=0;j<L.length;j+=1){const N=L[j],F=N.borderBoxSize&&N.borderBoxSize.length>0?N.borderBoxSize[0].blockSize:N.contentRect.height,U=N.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(U,F)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,I=(L,j)=>(L.__mui_id=j,M.observe(L),()=>M.unobserve(L));bV(e,"rowHeight",x),v.useEffect(()=>{x()},[u,d,f,x]);const R={unstable_getRowHeight:S,unstable_setLastMeasuredRowIndex:O,unstable_storeRowHeightMeasurement:P,resetRowHeights:k},_={hydrateRowsMeta:x,observeRowHeight:I,rowHasAutoHeight:E,getRowHeightEntry:y,getLastMeasuredRowIndex:T};Qt(e,R,"public"),Qt(e,_,"private")},K$t=e=>{const t=v.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=v.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Qt(e,{exportState:t,restoreState:n},"public")},Y$t=e=>{const t=v.useRef({}),n=(s,l)=>{var c;return(c=t.current[s])==null?void 0:c[l]},r=()=>{t.current={}},o=v.useCallback(({rowId:s,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d<c;d+=1){const f=X$t({apiRef:e,lookup:t.current,columnIndex:d,rowId:s,minFirstColumnIndex:l,maxLastColumnIndex:c,columns:u});f.colSpan>1&&(d+=f.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},a={resetColSpan:r,calculateColSpan:o};Qt(e,i,"public"),Qt(e,a,"private"),gt(e,"columnOrderChange",r)};function X$t(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:s}=e,l=s.length,c=s[r],u=t.current.getRow(o),d=t.current.getRowValue(u,c),f=typeof c.colSpan=="function"?c.colSpan(d,u,c,t):c.colSpan;if(!f||f===1)return o2(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let p=c.computedWidth;for(let m=1;m<f;m+=1){const g=r+m;if(g>=i&&g<a){const y=s[g];p+=y.computedWidth,o2(n,o,r+m,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+f,l-1),leftVisibleCellIndex:r})}o2(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:f,width:p}})}return{colSpan:f}}function o2(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const Mue=(e,t,n)=>{if(Oce(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
+`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Mue(i,[...t,r],n)})},SN=e=>{if(!e)return{};const t={};return e.forEach(n=>{Mue(n,[],t)}),t},CN=(e,t,n)=>{const r=l=>t[l]??[],o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,c,u)=>gy(r(l).slice(0,u+1),r(c).slice(0,u+1)),s=(l,c)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(c));for(let l=0;l<i;l+=1){const c=e.reduce((u,d)=>{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const p=u[u.length-1],m=p.columnFields[p.columnFields.length-1];return p.groupId!==f||!a(m,d,l)||s(m,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...p.columnFields,d],groupId:f}]},[]);o.push(c)}return o},Q$t=["groupId","children"],wV=e=>{let t={};return e.forEach(n=>{if(Oce(n))return;const{groupId:r,children:o}=n,i=ze(n,Q$t);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=D({},i,{groupId:r}),s=wV(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=D({},t,s,{[r]:a})}),D({},t)},J$t=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=zu(n),o=$b(n),i=wV(t.columnGroupingModel??[]),a=SN(t.columnGroupingModel??[]),s=CN(r,a,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=a[c])==null?void 0:u.length)??0}));return D({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:l}})},Z$t=(e,t)=>{const n=v.useCallback(s=>Zce(e)[s]??[],[e]),r=v.useCallback(()=>eue(e),[e]);Qt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=v.useCallback(()=>{const s=SN(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=CN(c,s,u);return D({},l,{columnGrouping:D({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),a=v.useCallback(s=>{var g,y;const l=((y=(g=e.current).getPinnedColumns)==null?void 0:y.call(g))??{},c=zu(e),u=$b(e),d=wV(s??[]),f=SN(s??[]),p=CN(c,f,l),m=u.length===0?0:Math.max(...u.map(b=>{var x;return((x=f[b])==null?void 0:x.length)??0}));e.current.setState(b=>D({},b,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:p,maxDepth:m}}))},[e]);gt(e,"columnIndexChange",i),gt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),gt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),v.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])};function eRt(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function RK(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function DK(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function tRt(e,t,n){return n==="Left"?e-t.left:t.right-e}function nRt(e){return e==="Right"?"Left":"Right"}function rRt(e,t){const n=e.classList.contains(ae["columnSeparator--sideRight"])?"Right":"Left";return t?nRt(n):n}function _K(e){e.preventDefault(),e.stopImmediatePropagation()}function oRt(e){const t=v.useRef(),n=()=>RM(e),r=Ge(e,n);return v.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=eRt()}return t.current}}function iRt(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,l)=>s-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,a=i<5?5:i*t;return n.filter(s=>s>r-a&&s<o+a)}function aRt(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(ae.autosizing),n.forEach(i=>{const s=XIt(e.current,i.field).map(m=>m.getBoundingClientRect().width??0),l=t.includeOutliers?s:iRt(s,t.outliersFactor);if(t.includeHeaders){const m=YIt(e.current,i.field);if(m){const g=m.querySelector(`.${ae.columnHeaderTitle}`),y=m.querySelector(`.${ae.columnHeaderTitleContainerContent}`),b=m.querySelector(`.${ae.iconButtonContainer}`),x=m.querySelector(`.${ae.menuIcon}`),S=g??y,P=window.getComputedStyle(m,null),E=parseInt(P.paddingLeft,10)+parseInt(P.paddingRight,10),O=S.scrollWidth+1+E+((b==null?void 0:b.clientWidth)??0)+((x==null?void 0:x.clientWidth)??0);l.push(O)}}const c=i.minWidth!==-1/0&&i.minWidth!==void 0,u=i.maxWidth!==1/0&&i.maxWidth!==void 0,d=c?i.minWidth:0,f=u?i.maxWidth:1/0,p=l.length===0?0:Math.max(...l);r[i.field]=Vc(p,d,f)}),o.classList.remove(ae.autosizing),r}const sRt=e=>D({},e,{columnResize:{resizingColumnField:""}});function lRt(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const cRt=(e,t)=>{const n=po(),r=Fo(e,"useGridColumnResize"),o=eu(lRt).current,i=v.useRef(),a=v.useRef(),s=vb(),l=v.useRef(),c=M=>{var F,U;r.debug(`Updating width to ${M} for col ${o.colDef.field}`);const I=o.columnHeaderElement.offsetWidth,R=M-I,_=M-o.initialColWidth,L=o.initialTotalWidth+_;(U=(F=e.current.rootElementRef)==null?void 0:F.current)==null||U.style.setProperty("--DataGrid-rowWidth",`${L}px`),o.colDef.computedWidth=M,o.colDef.width=M,o.colDef.flex=0,o.columnHeaderElement.style.width=`${M}px`;const j=o.headerFilterElement;j&&(j.style.width=`${M}px`),o.groupHeaderElements.forEach(z=>{const V=z;let W;V.getAttribute("aria-colspan")==="1"?W=`${M}px`:W=`${V.offsetWidth+R}px`,V.style.width=W}),o.cellElements.forEach(z=>{const V=z;let W;V.getAttribute("aria-colspan")==="1"?W=`${M}px`:W=`${V.offsetWidth+R}px`,V.style.setProperty("--width",W)});const N=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);N===lr.LEFT&&(ug(o.fillerLeft,"width",R),o.leftPinnedCellsAfter.forEach(z=>{ug(z,"left",R)}),o.leftPinnedHeadersAfter.forEach(z=>{ug(z,"left",R)})),N===lr.RIGHT&&(ug(o.fillerRight,"width",R),o.rightPinnedCellsBefore.forEach(z=>{ug(z,"right",R)}),o.rightPinnedHeadersBefore.forEach(z=>{ug(z,"right",R)}))},u=M=>{if(b(),o.previousMouseClickEvent){const I=o.previousMouseClickEvent,R=I.timeStamp,_=I.clientX,L=I.clientY;if(M.timeStamp-R<300&&M.clientX===_&&M.clientY===L){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,M);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const I=zc(e.current.state);o.groupHeaderElements.forEach(R=>{const _=VIt(R),L=R,N=`${_.reduce((F,U)=>I.columnVisibilityModel[U]!==!1?F+I.lookup[U].computedWidth:F,0)}px`;L.style.width=N})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,M)})},d=(M,I,R)=>{var N;const _=e.current.rootElementRef.current;o.initialColWidth=M.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=M,o.columnHeaderElement=zIt(e.current.columnHeadersContainerRef.current,M.field);const L=_.querySelector(`.${ae.headerFilterRow} [data-field="${bd(M.field)}"]`);L&&(o.headerFilterElement=L),o.groupHeaderElements=HIt((N=e.current.columnHeadersContainerRef)==null?void 0:N.current,M.field),o.cellElements=UIt(o.columnHeaderElement,e.current),o.fillerLeft=dK(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=dK(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const j=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=j!==lr.LEFT?[]:WIt(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=j!==lr.RIGHT?[]:GIt(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=j!==lr.LEFT?[]:qIt(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=j!==lr.RIGHT?[]:KIt(e.current,o.columnHeaderElement,n),a.current=rRt(I,n),i.current=tRt(R,o.columnHeaderElement.getBoundingClientRect(),a.current)},f=ot(u),p=ot(M=>{if(M.buttons===0){f(M);return}let I=DK(i.current,M.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);I=Vc(I,o.colDef.minWidth,o.colDef.maxWidth),c(I);const R={element:o.columnHeaderElement,colDef:o.colDef,width:I};e.current.publishEvent("columnResize",R,M)}),m=ot(M=>{RK(M,l.current)&&u(M)}),g=ot(M=>{const I=RK(M,l.current);if(!I)return;if(M.type==="mousemove"&&M.buttons===0){m(M);return}let R=DK(i.current,I.x,o.columnHeaderElement.getBoundingClientRect(),a.current);R=Vc(R,o.colDef.minWidth,o.colDef.maxWidth),c(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,M)}),y=ot(M=>{const I=MO(M.target,ae["columnSeparator--resizable"]);if(!I)return;const R=M.changedTouches[0];R!=null&&(l.current=R.identifier);const _=MO(M.target,ae.columnHeader),L=BIt(_),j=e.current.getColumn(L);r.debug(`Start Resize on col ${j.field}`),e.current.publishEvent("columnResizeStart",{field:L},M),d(j,I,R.clientX);const N=tc(M.currentTarget);N.addEventListener("touchmove",g),N.addEventListener("touchend",m)}),b=v.useCallback(()=>{const M=tc(e.current.rootElementRef.current);M.body.style.removeProperty("cursor"),M.removeEventListener("mousemove",p),M.removeEventListener("mouseup",f),M.removeEventListener("touchmove",g),M.removeEventListener("touchend",m),setTimeout(()=>{M.removeEventListener("click",_K,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,f,g,m]),x=v.useCallback(({field:M})=>{e.current.setState(I=>D({},I,{columnResize:D({},I.columnResize,{resizingColumnField:M})})),e.current.forceUpdate()},[e]),S=v.useCallback(()=>{e.current.setState(M=>D({},M,{columnResize:D({},M.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),P=ot(({colDef:M},I)=>{if(I.button!==0||!I.currentTarget.classList.contains(ae["columnSeparator--resizable"]))return;I.preventDefault(),r.debug(`Start Resize on col ${M.field}`),e.current.publishEvent("columnResizeStart",{field:M.field},I),d(M,I.currentTarget,I.clientX);const R=tc(e.current.rootElementRef.current);R.body.style.cursor="col-resize",o.previousMouseClickEvent=I.nativeEvent,R.addEventListener("mousemove",p),R.addEventListener("mouseup",f),R.addEventListener("click",_K,!0)}),E=ot((M,I)=>{if(t.disableAutosize||I.button!==0)return;const R=e.current.state.columns.lookup[M.field];R.resizable!==!1&&e.current.autosizeColumns(D({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[R.field]}))}),T=oRt(e),O=v.useRef(!1),k=v.useCallback(async M=>{var j;if(!((j=e.current.rootElementRef)==null?void 0:j.current)||O.current)return;O.current=!0;const R=zc(e.current.state),_=D({},qOt,M,{columns:(M==null?void 0:M.columns)??R.orderedFields});_.columns=_.columns.filter(N=>R.columnVisibilityModel[N]!==!1);const L=_.columns.map(N=>e.current.state.columns.lookup[N]);try{!t.disableVirtualization&&_.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await T());const N=aRt(e,_,L),F=L.map(U=>D({},U,{width:N[U.field],computedWidth:N[U.field],flex:0}));if(_.expand){const z=R.orderedFields.map(G=>R.lookup[G]).filter(G=>R.columnVisibilityModel[G.field]!==!1).reduce((G,J)=>G+(N[J.field]??J.computedWidth??J.width),0),W=e.current.getRootDimensions().viewportInnerSize.width-z;if(W>0){const G=W/(F.length||1);F.forEach(J=>{J.width+=G,J.computedWidth+=G})}}e.current.updateColumns(F),F.forEach((U,z)=>{if(U.width!==L[z].width){const V=U.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(U.field),colDef:U,width:V})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),O.current=!1}},[e,T,t.disableVirtualization]);v.useEffect(()=>b,[b]),zk(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Uce(e,()=>{var M;return(M=e.current.columnHeadersContainerRef)==null?void 0:M.current},"touchstart",y,{passive:!0}),Qt(e,{autosizeColumns:k},"public"),gt(e,"columnResizeStop",S),gt(e,"columnResizeStart",x),gt(e,"columnSeparatorMouseDown",P),gt(e,"columnSeparatorDoubleClick",E),ar(e,"columnResize",t.onColumnResize),ar(e,"columnWidthChange",t.onColumnWidthChange)};function ug(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function uRt(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function dRt(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}function LK(e,t){return e.firstRowIndex!==t.firstRowIndex||e.lastRowIndex!==t.lastRowIndex}const i2=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},RO={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Bw={firstRowIndex:0,lastRowIndex:0},fRt=new Set([Cu,"__reorder__",TM]),Aue=20,$ue=(e,t,n,r,o,i,a)=>{const s=i?{}:D({},e.current.state.rowSpanning.spannedCells),l=i?{}:D({},e.current.state.rowSpanning.hiddenCells),c=i?{}:D({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=Bw),t.forEach(u=>{var d;if(!fRt.has(u.field)){for(let f=o.firstRowIndex;f<o.lastRowIndex;f+=1){const p=n[f];if((d=l[p.id])!=null&&d[u.field])continue;const m=i2(p.model,u,e);if(m==null)continue;let g=p.id,y=f,b=0;const x=[];if(f===o.firstRowIndex){let P=f-1;const E=n[P];for(;P>=r.firstRowIndex&&i2(E.model,u,e)===m;){const T=n[P+1];l[T.id]?l[T.id][u.field]=!0:l[T.id]={[u.field]:!0},x.push(f),b+=1,g=E.id,y=P,P-=1}}x.forEach(P=>{c[P]?c[P][u.field]=y:c[P]={[u.field]:y}});let S=f+1;for(;S<=r.lastRowIndex&&n[S]&&i2(n[S].model,u,e)===m;){const P=n[S];l[P.id]?l[P.id][u.field]=!0:l[P.id]={[u.field]:!0},c[S]?c[S][u.field]=y:c[S]={[u.field]:y},S+=1,b+=1}b>0&&(s[g]?s[g][u.field]=b+1:s[g]={[u.field]:b+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:s,hiddenCells:l,hiddenCellOriginMap:c,processedRange:a}},pRt=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],a=e.rows.dataRowIdToModelLookup,s=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!i.length||!a||!s||l)return D({},e,{rowSpanning:RO});const c={firstRowIndex:0,lastRowIndex:Math.min(Aue,Math.max(o.length,0))},u=o.map(g=>({id:g,model:a[g]})),d=i.map(g=>s[g]),{spannedCells:f,hiddenCells:p,hiddenCellOriginMap:m}=$ue(n,d,u,c,c,!0,Bw);return D({},e,{rowSpanning:{spannedCells:f,hiddenCells:p,hiddenCellOriginMap:m}})}return D({},e,{rowSpanning:RO})},hRt=(e,t)=>{const{range:n,rows:r}=bm(e,t),o=Ge(e,DM),i=Ge(e,wo),a=Ge(e,si),s=eu(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(Aue,Math.max(e.current.state.rows.dataRowIds.length,0))}:Bw),l=v.useRef(Bw),c=v.useCallback((m=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==RO&&e.current.setState(M=>D({},M,{rowSpanning:RO}));return}if(n===null||!dRt(o))return;m&&(s.current=Bw);const g=uRt({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex,n.lastRowIndex+1)},s.current);if(g===null)return;const{spannedCells:y,hiddenCells:b,hiddenCellOriginMap:x,processedRange:S}=$ue(e,i,r,n,g,m,s.current);s.current=S;const P=Object.keys(y).length,E=Object.keys(b).length,T=Object.keys(e.current.state.rowSpanning.spannedCells).length,O=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(m||P!==T||E!==O)&&e.current.setState(M=>D({},M,{rowSpanning:{spannedCells:y,hiddenCells:b,hiddenCellOriginMap:x}}))},[e,t.unstable_rowSpanning,n,o,r,i,s]),u=v.useRef(o),d=v.useRef(!0),f=v.useRef(!1),p=v.useRef(a);v.useEffect(()=>{const m=d.current;if(d.current&&(d.current=!1),a!==p.current){p.current=a,c(!0);return}if(n&&l.current&&LK(n,l.current)&&(l.current=n,f.current=!0),!m&&u.current!==o){LK(u.current,o)&&(c(f.current),f.current=!1),u.current=o;return}c()},[c,o,n,l,a])},mRt=(e,t,n)=>D({},e,{listViewColumn:t.unstable_listColumn?D({},t.unstable_listColumn,{computedWidth:PN(n)}):void 0});function gRt(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?D({},i,{listViewColumn:D({},i.listViewColumn,{computedWidth:PN(e)})}):i)},r=v.useRef(null);gt(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),gt(e,"columnVisibilityModelChange",n),v.useEffect(()=>{const i=t.unstable_listColumn;i&&e.current.setState(a=>D({},a,{listViewColumn:D({},i,{computedWidth:PN(e)})}))},[e,t.unstable_listColumn]),v.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function PN(e){return Mi(e.current.state).viewportInnerSize.width}const yRt=(e,t)=>{const n=_At(e,t);return D$t(n,t),k$t(n),zo(z$t,n,t),zo(A$t,n,t),zo(HAt,n,t),zo(P$t,n,t),zo(S$t,n,t),zo(r$t,n,t),zo(_$t,n,t),zo(h$t,n,t),zo(ZAt,n,t),zo(pRt,n,t),zo(WAt,n,t),zo(sRt,n,t),zo(f$t,n,t),zo(G$t,n,t),zo(zAt,n,t),zo(J$t,n,t),zo(aOt,n,t),zo(mRt,n,t),c$t(n,t),$$t(n,t),UAt(n,t),E$t(n,t),hRt(n,t),M$t(n,t),Y$t(n),Z$t(n,t),C$t(n,t),o$t(n,t),m$t(n,t),n$t(n,t),L$t(n,t),GAt(n,t),cRt(n,t),p$t(n,t),q$t(n,t),N$t(n,t),VAt(n),KAt(n,t),JAt(n,t),BAt(n,t),V$t(n,t),F$t(n,t),K$t(n),sOt(n,t),gRt(n,t),n},vRt=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:s,pinnedPosition:l}=e;return bt({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},wn,t)};function bRt(e){var G;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:s,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:p,sectionLength:m,gridHasFiller:g}=e,y=xt(),b=v.useRef(null),x=sn(),S=Ge(x,eue),P=t?S[t]:{},{headerName:E=t??"",description:T="",headerAlign:O=void 0}=P;let k;const M=t&&((G=S[t])==null?void 0:G.renderHeaderGroup),I=v.useMemo(()=>({groupId:t,headerName:E,description:T,depth:r,maxDepth:o,fields:i,colIndex:s,isLastColumn:u}),[t,E,T,r,o,i,s,u]);t&&M&&(k=M(I));const R=LM(d,p),_=_M(d,p,m,y.showColumnVerticalBorder,g),L=D({},e,{classes:y.classes,showLeftBorder:R,showRightBorder:_,headerAlign:O,depth:r,isDragging:!1}),j=E??t,N=cr(),F=t===null?`empty-group-cell-${N}`:t,U=vRt(L);v.useLayoutEffect(()=>{if(l){const K=b.current.querySelector('[tabindex="0"]')||b.current;K==null||K.focus()}},[x,l]);const z=v.useCallback(J=>K=>{O1(K)||x.current.publishEvent(J,I,K)},[x,I]),V=v.useMemo(()=>({onKeyDown:z("columnGroupHeaderKeyDown"),onFocus:z("columnGroupHeaderFocus"),onBlur:z("columnGroupHeaderBlur")}),[z]),W=typeof P.headerClassName=="function"?P.headerClassName(I):P.headerClassName;return $.jsx(bue,D({ref:b,classes:U,columnMenuOpen:!1,colIndex:s,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:k,headerClassName:W,description:T,elementId:F,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:j,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},V))}const NK=ie("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),wRt=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:s,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[p,m]=v.useState(""),[g,y]=v.useState(""),b=Cl(),x=po(),S=xt(),P=Ge(b,Mi),E=Ge(b,RM),T=Ge(b,Zce),O=Ge(b,cp),k=Ge(b,iOt),M=Ge(b,P1),I=Ge(b,vd),R=lue(O,k,M.left.length),_=P.columnsTotalWidth<P.viewportOuterSize.width;v.useEffect(()=>{b.current.columnHeadersContainerRef.current&&(b.current.columnHeadersContainerRef.current.scrollLeft=0)},[b]);const L=v.useCallback(oe=>y(oe.field),[]),j=v.useCallback(()=>y(""),[]),N=v.useCallback(oe=>m(oe.field),[]),F=v.useCallback(()=>m(""),[]),U=v.useMemo(()=>M.left.length?{firstColumnIndex:0,lastColumnIndex:M.left.length}:null,[M.left.length]),z=v.useMemo(()=>M.right.length?{firstColumnIndex:t.length-M.right.length,lastColumnIndex:t.length}:null,[M.right.length,t.length]);gt(b,"columnResizeStart",L),gt(b,"columnResizeStop",j),gt(b,"columnHeaderDragStart",N),gt(b,"columnHeaderDragEnd",F);const V=oe=>{const{renderContext:fe=k,maxLastColumn:se=t.length}=oe||{};let ee,ce;return!S.disableVirtualization&&!E?(ee=0,ce=se):(ee=fe.firstColumnIndex,ce=fe.lastColumnIndex),{renderedColumns:t.slice(ee,ce),firstColumnToRender:ee,lastColumnToRender:ce}},W=(oe,fe,se,ee=!1)=>{const ce=(oe==null?void 0:oe.position)===lr.RIGHT,le=(oe==null?void 0:oe.position)===void 0,Q=M.right.length>0&&ce||M.right.length===0&&le,ue=R-se;return $.jsxs(v.Fragment,{children:[le&&$.jsx("div",{role:"presentation",style:{width:ue}}),fe,le&&$.jsx("div",{role:"presentation",className:pe(ae.filler,ee&&ae["filler--borderBottom"])}),Q&&$.jsx(yV,{header:!0,pinnedRight:ce,borderBottom:ee,borderTop:!1})]})},G=({pinnedPosition:oe,columnIndex:fe,computedWidth:se})=>{let ee;const ce=oe===lr.LEFT,le=oe===lr.RIGHT;if(ce||le){const Q=gV(oe,se,fe,O,P);let ue=ce?"left":"right";x&&(ue=ce?"right":"left"),oe==="left"&&(ee={[ue]:Q}),oe==="right"&&(ee={[ue]:Q})}return ee},J=(oe,fe={})=>{const{renderedColumns:se,firstColumnToRender:ee}=V(oe),ce=[];for(let le=0;le<se.length;le+=1){const Q=se[le],ue=ee+le,ge=ue===0,xe=o!==null&&o.field===Q.field||ge&&!f?0:-1,me=a!==null&&a.field===Q.field,be=c.open&&c.field===Q.field,we=oe==null?void 0:oe.position,Te=G({pinnedPosition:we,columnIndex:ue,computedWidth:Q.computedWidth}),Ie=we===lr.RIGHT?se[le-1]:se[le+1],Le=Ie?a!==null&&a.field===Ie.field:!1,de=ue+1===O.length-M.right.length;ce.push($.jsx(ckt,D({},n[Q.field],{columnMenuOpen:be,filterItemsCounter:r[Q.field]&&r[Q.field].length,headerHeight:P.headerHeight,isDragging:Q.field===p,colDef:Q,colIndex:ue,isResizing:g===Q.field,isLast:ue===O.length-1,hasFocus:me,tabIndex:xe,pinnedPosition:we,style:Te,indexInSection:le,sectionLength:se.length,gridHasFiller:_,isLastUnpinned:de,isSiblingFocused:Le},fe),Q.field))}return W(oe,ce,0)},K=()=>$.jsxs(NK,{role:"row","aria-rowindex":l+1,ownerState:S,className:ae["row--borderBottom"],children:[U&&J({position:lr.LEFT,renderContext:U,maxLastColumn:U.lastColumnIndex},{disableReorder:!0}),J({renderContext:k,maxLastColumn:t.length-M.right.length}),z&&J({position:lr.RIGHT,renderContext:z,maxLastColumn:z.lastColumnIndex},{disableReorder:!0,separatorSide:mV.Left})]}),ne=({depth:oe,params:fe})=>{var ke,Me;const se=V(fe);if(se.renderedColumns.length===0)return null;const{firstColumnToRender:ee,lastColumnToRender:ce}=se,le=d[oe],Q=t[ee].field,ue=((ke=T[Q])==null?void 0:ke[oe])??null,ge=le.findIndex(({groupId:De,columnFields:Ye})=>De===ue&&Ye.includes(Q)),xe=t[ce-1].field,me=((Me=T[xe])==null?void 0:Me[oe])??null,be=le.findIndex(({groupId:De,columnFields:Ye})=>De===me&&Ye.includes(xe)),we=le.slice(ge,be+1).map(De=>D({},De,{columnFields:De.columnFields.filter(Ye=>u[Ye]!==!1)})).filter(De=>De.columnFields.length>0),Te=we[0].columnFields.indexOf(Q),Le=we[0].columnFields.slice(0,Te).reduce((De,Ye)=>{const Je=I[Ye];return De+(Je.computedWidth??0)},0);let de=ee;const $e=we.map(({groupId:De,columnFields:Ye},Je)=>{const st=s!==null&&s.depth===oe&&Ye.includes(s.field),Rt=i!==null&&i.depth===oe&&Ye.includes(i.field)?0:-1,ct={groupId:De,width:Ye.reduce((Pe,Ve)=>Pe+I[Ve].computedWidth,0),fields:Ye,colIndex:de,hasFocus:st,tabIndex:Rt},Lt=fe.position,pt=G({pinnedPosition:Lt,columnIndex:de,computedWidth:ct.width});de+=Ye.length;let rt=Je;return Lt==="left"&&(rt=de-1),$.jsx(bRt,{groupId:De,width:ct.width,fields:ct.fields,colIndex:ct.colIndex,depth:oe,isLastColumn:Je===we.length-1,maxDepth:l,height:P.groupHeaderHeight,hasFocus:st,tabIndex:Rt,pinnedPosition:Lt,style:pt,indexInSection:rt,sectionLength:we.length,gridHasFiller:_},Je)});return W(fe,$e,Le)};return{renderContext:k,leftRenderContext:U,rightRenderContext:z,pinnedColumns:M,visibleColumns:t,getCellOffsetStyle:G,getFillers:W,getColumnHeadersRow:K,getColumnsToRender:V,getColumnGroupHeadersRows:()=>{if(l===0)return null;const oe=[];for(let fe=0;fe<l;fe+=1)oe.push($.jsxs(NK,{role:"row","aria-rowindex":fe+1,ownerState:S,children:[U&&ne({depth:fe,params:{position:lr.LEFT,renderContext:U,maxLastColumn:U.lastColumnIndex}}),ne({depth:fe,params:{renderContext:k}}),z&&ne({depth:fe,params:{position:lr.RIGHT,renderContext:z,maxLastColumn:z.lastColumnIndex}})]},fe));return oe},isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},xRt=["className"],SRt=e=>{const{classes:t}=e;return bt({root:["columnHeaders"]},wn,t)},CRt=ur("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),PRt=kn(function(t,n){const{className:r}=t,o=ze(t,xRt),i=xt(),a=SRt(i);return $.jsx(CRt,D({className:pe(a.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),ERt=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],TRt=kn(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m}=t,g=ze(t,ERt),{getInnerProps:y,getColumnHeadersRow:b,getColumnGroupHeadersRows:x}=wRt({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:m});return $.jsxs(PRt,D({},g,y(),{ref:n,children:[x(),b()]}))}),ORt=lp(TRt);function IRt(e){return null}function kRt(e){return null}const MRt=kn(function(t,n){const o=sn().current.getLocaleText("noResultsOverlayLabel");return $.jsx(hV,D({},t,{ref:n,children:o}))}),ARt=["sortingOrder"],$Rt=v.memo(function(t){const{sortingOrder:n}=t,r=ze(t,ARt),o=xt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?$.jsx(a,D({},r)):null}),RRt=["native"];function DRt(e){let{native:t}=e,n=ze(e,RRt);return t?$.jsx("option",D({},n)):$.jsx(nn,D({},n))}const _Rt={booleanCellTrueIcon:Akt,booleanCellFalseIcon:e2,columnMenuIcon:Okt,openFilterButtonIcon:wkt,filterPanelDeleteIcon:e2,columnFilteredIcon:gK,columnSelectorIcon:Skt,columnUnsortedIcon:$Rt,columnSortedAscendingIcon:fK,columnSortedDescendingIcon:pK,columnResizeIcon:Ckt,densityCompactIcon:Pkt,densityStandardIcon:Ekt,densityComfortableIcon:Tkt,exportIcon:Mkt,moreActionsIcon:$kt,treeDataCollapseIcon:mK,treeDataExpandIcon:hK,groupingCriteriaCollapseIcon:mK,groupingCriteriaExpandIcon:hK,detailPanelExpandIcon:yK,detailPanelCollapseIcon:Ikt,rowReorderIcon:vK,quickFilterIcon:xkt,quickFilterClearIcon:e2,columnMenuHideIcon:Rkt,columnMenuSortAscendingIcon:fK,columnMenuSortDescendingIcon:pK,columnMenuFilterIcon:gK,columnMenuManageColumnsIcon:Dkt,columnMenuClearIcon:_kt,loadIcon:kkt,filterPanelAddIcon:yK,filterPanelRemoveAllIcon:Lkt,columnReorderIcon:vK},LRt=D({},_Rt,{baseBadge:UTe,baseCheckbox:zOe,baseDivider:as,baseTextField:mn,baseFormControl:Wv,baseSelect:Jh,baseButton:yt,baseIconButton:In,baseInputAdornment:go,baseTooltip:lc,basePopper:Kf,baseInputLabel:Gv,baseSelectOption:DRt,baseChip:Ah}),NRt=D({},LRt,{cell:aIt,skeletonCell:mIt,columnHeaderFilterIconButton:bkt,columnHeaderSortIcon:ykt,columnMenu:Zkt,columnHeaders:ORt,detailPanels:IRt,footer:YMt,footerRowCount:fAt,toolbar:null,pinnedRows:kRt,loadingOverlay:rAt,noResultsOverlay:MRt,noRowsOverlay:oAt,pagination:lAt,filterPanel:kMt,columnsPanel:oMt,columnsManagement:RMt,panel:cMt,row:yAt});function FRt({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=D({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function jRt(e){var o;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let i=0;i<t.length;i+=1){const a=t[i];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function BRt(e){return v.useMemo(()=>jRt(e),[e])}const zRt={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},VRt=NRt,HRt=e=>{const t=BRt(Jt({props:e,name:"MuiDataGrid"})),n=v.useMemo(()=>D({},JCt,t.localeText),[t.localeText]),r=v.useMemo(()=>FRt({defaultSlots:VRt,slots:t.slots}),[t.slots]),o=v.useMemo(()=>Object.keys(xN).reduce((i,a)=>(i[a]=t[a]??xN[a],i),{}),[t]);return v.useMemo(()=>D({},t,o,{localeText:n,slots:r},zRt),[t,n,r,o])},URt={hooks:{useGridAriaAttributes:vAt,useGridRowAriaAttributes:bAt}},Rue=kn(function(t,n){var i;const r=HRt(t),o=yRt(r.apiRef,r);return $.jsx(wAt,{privateApiRef:o,configuration:URt,props:r,children:$.jsxs(EIt,D({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(i=r.slotProps)==null?void 0:i.root,{ref:n,children:[$.jsx(QMt,{}),$.jsx(ZOt,{}),$.jsx(eIt,{})]}))})}),WRt=v.memo(Rue);Rue.propTypes={apiRef:B.shape({current:B.object.isRequired}),"aria-label":B.string,"aria-labelledby":B.string,autoHeight:B.bool,autoPageSize:B.bool,autosizeOnMount:B.bool,autosizeOptions:B.shape({columns:B.arrayOf(B.string),disableColumnVirtualization:B.bool,expand:B.bool,includeHeaders:B.bool,includeOutliers:B.bool,outliersFactor:B.number}),cellModesModel:B.object,checkboxSelection:B.bool,classes:B.object,clipboardCopyCellDelimiter:B.string,columnBufferPx:B.number,columnGroupHeaderHeight:B.number,columnGroupingModel:B.arrayOf(B.object),columnHeaderHeight:B.number,columns:B.arrayOf(B.object).isRequired,columnVisibilityModel:B.object,density:B.oneOf(["comfortable","compact","standard"]),disableAutosize:B.bool,disableColumnFilter:B.bool,disableColumnMenu:B.bool,disableColumnResize:B.bool,disableColumnSelector:B.bool,disableColumnSorting:B.bool,disableDensitySelector:B.bool,disableEval:B.bool,disableMultipleRowSelection:B.bool,disableRowSelectionOnClick:B.bool,disableVirtualization:B.bool,editMode:B.oneOf(["cell","row"]),estimatedRowCount:B.number,experimentalFeatures:B.shape({warnIfFocusStateIsNotSynced:B.bool}),filterDebounceMs:B.number,filterMode:B.oneOf(["client","server"]),filterModel:B.shape({items:B.arrayOf(B.shape({field:B.string.isRequired,id:B.oneOfType([B.number,B.string]),operator:B.string.isRequired,value:B.any})).isRequired,logicOperator:B.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:B.bool,quickFilterLogicOperator:B.oneOf(["and","or"]),quickFilterValues:B.array}),forwardedProps:B.object,getCellClassName:B.func,getDetailPanelContent:B.func,getEstimatedRowHeight:B.func,getRowClassName:B.func,getRowHeight:B.func,getRowId:B.func,getRowSpacing:B.func,hideFooter:B.bool,hideFooterPagination:B.bool,hideFooterSelectedRowCount:B.bool,ignoreDiacritics:B.bool,ignoreValueFormatterDuringExport:B.oneOfType([B.shape({clipboardExport:B.bool,csvExport:B.bool}),B.bool]),indeterminateCheckboxAction:B.oneOf(["deselect","select"]),initialState:B.object,isCellEditable:B.func,isRowSelectable:B.func,keepNonExistentRowsSelected:B.bool,loading:B.bool,localeText:B.object,logger:B.shape({debug:B.func.isRequired,error:B.func.isRequired,info:B.func.isRequired,warn:B.func.isRequired}),logLevel:B.oneOf(["debug","error","info","warn",!1]),nonce:B.string,onCellClick:B.func,onCellDoubleClick:B.func,onCellEditStart:B.func,onCellEditStop:B.func,onCellKeyDown:B.func,onCellModesModelChange:B.func,onClipboardCopy:B.func,onColumnHeaderClick:B.func,onColumnHeaderContextMenu:B.func,onColumnHeaderDoubleClick:B.func,onColumnHeaderEnter:B.func,onColumnHeaderLeave:B.func,onColumnHeaderOut:B.func,onColumnHeaderOver:B.func,onColumnOrderChange:B.func,onColumnResize:B.func,onColumnVisibilityModelChange:B.func,onColumnWidthChange:B.func,onDensityChange:B.func,onFilterModelChange:B.func,onMenuClose:B.func,onMenuOpen:B.func,onPaginationMetaChange:B.func,onPaginationModelChange:B.func,onPreferencePanelClose:B.func,onPreferencePanelOpen:B.func,onProcessRowUpdateError:B.func,onResize:B.func,onRowClick:B.func,onRowCountChange:B.func,onRowDoubleClick:B.func,onRowEditStart:B.func,onRowEditStop:B.func,onRowModesModelChange:B.func,onRowSelectionModelChange:B.func,onSortModelChange:B.func,onStateChange:B.func,pageSizeOptions:B.arrayOf(B.oneOfType([B.number,B.shape({label:B.string.isRequired,value:B.number.isRequired})]).isRequired),pagination:B.oneOf([!0]),paginationMeta:B.shape({hasNextPage:B.bool}),paginationMode:B.oneOf(["client","server"]),paginationModel:B.shape({page:B.number.isRequired,pageSize:B.number.isRequired}),processRowUpdate:B.func,resizeThrottleMs:B.number,rowBufferPx:B.number,rowCount:B.number,rowHeight:B.number,rowModesModel:B.object,rowPositionsDebounceMs:B.number,rows:B.arrayOf(B.object),rowSelection:B.bool,rowSelectionModel:B.oneOfType([B.arrayOf(B.oneOfType([B.number,B.string]).isRequired),B.number,B.string]),rowSpacingType:B.oneOf(["border","margin"]),scrollbarSize:B.number,showCellVerticalBorder:B.bool,showColumnVerticalBorder:B.bool,slotProps:B.object,slots:B.object,sortingMode:B.oneOf(["client","server"]),sortingOrder:B.arrayOf(B.oneOf(["asc","desc"])),sortModel:B.arrayOf(B.shape({field:B.string.isRequired,sort:B.oneOf(["asc","desc"])})),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),unstable_rowSpanning:B.bool,virtualizeColumnsWithAutoRowHeight:B.bool};const GRt=e=>e.map(t=>({id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes})),qRt=e=>{const[t]=Ue(),n=GRt(e.category.entries),r=oce(),o=iCt(),[i,a]=v.useState(n),[s,l]=v.useState({}),c=(x,S)=>{x.reason===_l.rowFocusOut&&(S.defaultMuiPrevented=!0)},u=x=>()=>{l({...s,[x]:{mode:zn.Edit}})},d=x=>()=>{l({...s,[x]:{mode:zn.View}})},f=x=>async()=>{console.log("deleting entry",x),o.mutate(parseInt(x.toString())),a(i.filter(S=>S.id!==x))},p=x=>()=>{l({...s,[x]:{mode:zn.View,ignoreModifications:!0}});const S=i.find(P=>P.id===x);(S==null?void 0:S.id)===null&&a(i.filter(P=>P.id!==x))},m=async x=>{r.mutate({id:x.id,categoryId:x.category,date:x.date,value:x.value,notes:x.notes});const S={...x,isNew:!1};return a(i.map(P=>P.id===x.id?S:P)),S},g=x=>{console.log(x)},y=x=>{l(x)},b=[{field:"value",headerName:t("value"),width:80,editable:!0,valueFormatter:x=>x==null?"":x+e.category.unit},{field:"date",headerName:t("date"),type:"date",width:120,editable:!0,valueFormatter:x=>x==null?"":kt.fromJSDate(x).toLocaleString(kt.DATE_MED)},{field:"notes",headerName:t("notes"),type:"string",flex:1,editable:!0},{field:"actions",type:"actions",headerName:t("actions"),width:100,cellClassName:"actions",getActions:({id:x})=>{var P;return((P=s[x])==null?void 0:P.mode)===zn.Edit?[C(PP,{icon:C(Ubt,{}),label:"Save",sx:{color:"primary.main"},onClick:d(x)}),C(PP,{icon:C(FS,{}),label:"Cancel",className:"textPrimary",onClick:p(x),color:"inherit"})]:[C(PP,{icon:C(Qse,{}),label:"Edit",className:"textPrimary",onClick:u(x),color:"inherit"}),C(PP,{icon:C(_bt,{}),label:"Delete",onClick:f(x),color:"inherit"})]}}];return C($n,{sx:{width:"100%"},children:C(WRt,{editMode:"row",rows:n,columns:b,initialState:{pagination:{paginationModel:{pageSize:uW.pageSize}}},pageSizeOptions:uW.pageSizeOptions,disableRowSelectionOnClick:!0,rowModesModel:s,onRowModesModelChange:y,onRowEditStop:c,processRowUpdate:m,onProcessRowUpdateError:g})})},xV=({title:e,subtitle:t,isOpen:n,message:r,deleteFn:o,closeFn:i})=>{const[a]=Ue();return C(Uv,{open:n,onClose:i,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:X(co,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[C(uc,{title:e,titleTypographyProps:{variant:"h6"},subheader:t,action:C(FS,{onClick:i})}),C(Oi,{children:C(ut,{variant:"body1",children:r})}),X(ps,{children:[C(yt,{color:"error",variant:"contained",onClick:()=>{o(),i()},children:a("delete")}),C(yt,{color:"primary",onClick:i,children:a("cancel")})]})]})})},KRt=e=>{const t=rCt(e.category.id),n=mm(),[r]=Ue(),[o,i]=Y.useState(null),[a,s]=Y.useState(!1),[l,c]=Y.useState(!1),u=!!o,d=P=>{i(P.currentTarget)},f=()=>{p(),y()},p=()=>{i(null)},m=()=>{x(),i(null)},g=()=>{t.mutate(e.category.id),n(Sn(bn.MEASUREMENT_OVERVIEW))},y=()=>s(!0),b=()=>s(!1),x=()=>c(!0),S=()=>c(!1);return X("div",{children:[C(yt,{onClick:d,children:C(ele,{})}),X(hs,{anchorEl:o,open:u,onClose:p,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:f,children:r("edit")}),C(nn,{onClick:m,children:r("delete")})]}),C(na,{title:r("edit"),isOpen:a,closeFn:b,children:C(dce,{category:e.category,closeFn:b})}),C(xV,{title:r("deleteConfirmation",{name:e.category.name}),message:r("measurements.deleteInfo"),isOpen:l,closeFn:S,deleteFn:g})]})},YRt=()=>{const e=gm(),t=parseInt(e.categoryId),n=rce(t);return n.isLoading?C(Po,{}):C(ym,{title:n.data.name,optionsMenu:C(KRt,{category:n.data}),mainContent:X(Gt,{spacing:2,children:[C(uce,{category:n.data}),C(qRt,{category:n.data})]}),fab:C(YCt,{})})},XRt=e=>{const[t,n]=Ue(),[r,o]=Y.useState(!1),i=()=>o(!0),a=()=>o(!1);return X(At,{children:[X(co,{children:[C(uc,{title:e.category.name,subheader:e.category.unit}),C(Oi,{children:C(uce,{category:e.category})}),X(ps,{disableSpacing:!0,sx:{justifyContent:"space-between"},children:[C(yt,{size:"small",children:C(Xs,{to:Sn(bn.MEASUREMENT_DETAIL,n.language,{id:e.category.id}),children:t("seeDetails")})}),C(In,{onClick:i,children:C(Zi,{})})]})]}),C(na,{title:t("add"),isOpen:r,closeFn:a,children:C(fce,{closeFn:a,categoryId:e.category.id})})]})},FK=()=>{const e=nce(),[t]=Ue();return e.isLoading?C(Po,{}):C(ym,{title:t("measurements.measurements"),mainContent:X(Gt,{spacing:2,children:[e.data.length===0&&C(LI,{}),e.data.map(n=>C(XRt,{category:n},n.id))]}),fab:C(KCt,{})})},dE=[{range:"obese",color:"#FF5733",min:30,max:100},{range:"overweight",color:"#FFC107",min:25,max:30},{range:"normal",color:"#90EE90",min:18.5,max:25},{range:"underweight",color:"#FFC300",min:0,max:18.5}],TP=e=>{const t=dE.find(n=>n.range===e);return t?t.color:"gray"},QRt=()=>{const[e]=Ue(),t=v1(),n=nu(),[r,o]=v.useState(),[i,a]=v.useState();v.useEffect(()=>{var u;if(t.data&&t.data.length>0){const d=t.data[0],f=(u=n.data)!=null&&u.useMetric?d.weight:d.weight*.453592;a(f)}},[t.data,n.data]),v.useEffect(()=>{var u;(u=n.data)!=null&&u.height&&o(n.data.height)},[n.data]);const l=(()=>{if(r&&i){const u=r/100;return i/(u*u)}return null})();if(t.isLoading||n.isLoading)return C(Po,{});const c=[];for(let u=140;u<=220;u+=10){const d=u/100,f={height:u};let p=0;dE.forEach((m,g)=>{const y=m.max>100?100:m.max;let b=y*d*d-p;b=Math.min(b,150-p),g===0?f[m.range]=b:f[m.range]=f[dE[g-1].range]+b,p=Math.min(y*d*d,150)}),c.push(f)}return C(ym,{title:e("bmi.calculator"),mainContent:C(At,{children:X(Gt,{spacing:2,children:[X(_e,{container:!0,spacing:2,children:[C(_e,{size:{xs:12,sm:6},children:C(mn,{label:e("height"),fullWidth:!0,slotProps:{input:{endAdornment:C(ut,{children:e("cm")})}},type:"number",value:r??"",onChange:u=>o(parseFloat(u.target.value))})}),C(_e,{size:{xs:12,sm:6},children:C(mn,{label:e("weight"),slotProps:{input:{endAdornment:C(ut,{children:e("server.kg")})}},fullWidth:!0,type:"number",value:i??"",onChange:u=>a(parseFloat(u.target.value))})})]}),l!==null&&C(ut,{variant:"h6",children:e("bmi.result",{value:l.toFixed(1)})}),C(Zf,{width:"100%",height:400,children:X(Uot,{data:c,children:[C(gl,{dataKey:"height",type:"number",domain:[140,220],unit:"cm"}),C(yl,{domain:[40,150],tickFormatter:u=>Math.round(u).toString(),unit:"kg"}),C(rm,{strokeDasharray:"3 3"}),C(Wa,{formatter:(u,d)=>[Math.round(u),e("bmi."+d)]}),dE.map(u=>C(rp,{type:"monotone",dataKey:u.range,stroke:"black",fill:u.color,fillOpacity:.8},u.range)),l!==null&&C(JS,{x:r,y:i,r:8,fill:"black",stroke:"none"})]})}),X(Gt,{direction:"row",justifyContent:"center",children:[C($n,{height:20,width:20,sx:{backgroundColor:TP("obese")}}),e("bmi.obese"),C($n,{height:20,width:20,sx:{backgroundColor:TP("overweight"),marginLeft:2}}),e("bmi.overweight"),C($n,{height:20,width:20,sx:{backgroundColor:TP("normal"),marginLeft:2}}),e("bmi.normal"),C($n,{height:20,width:20,sx:{backgroundColor:TP("underweight"),marginLeft:2}}),e("bmi.underweight")]})]})})})},JRt=e=>{var r,o,i,a;const[t,n]=Ue();return X(Yt,{children:[C(Oe,{sx:{paddingX:1},children:C(sc,{alt:(r=e.item.ingredient)==null?void 0:r.name,src:(i=(o=e.item.ingredient)==null?void 0:o.image)==null?void 0:i.url,sx:{width:45,height:45},children:C(fd,{})})}),X(Oe,{sx:{paddingX:1},children:[e.item.amountString," ",(a=e.item.ingredient)==null?void 0:a.name]}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.item.nutritionalValues.energy,n.language),kj:Pi(e.item.nutritionalValues.energyKj,n.language)})}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.item.nutritionalValues.protein,n.language)}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.item.nutritionalValues.carbohydrates,n.language)}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.item.nutritionalValues.fat,n.language)})]},e.item.id)},EN=e=>{const[t,n]=Ue();return C(od,{children:X(nd,{children:[C(Zh,{children:X(Yt,{children:[C(Oe,{}),C(Oe,{}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.energy")}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.protein")}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.carbohydrates")}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.fat")})]})}),X(rd,{children:[e.items.map(r=>C(JRt,{item:r},r.id)),e.showSum&&X(Yt,{children:[C(Oe,{sx:{paddingX:1},children:" "}),C(Oe,{sx:{paddingX:1},children:t("total")}),C(Oe,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.values.energy,n.language),kj:Pi(e.values.energyKj,n.language)})}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.values.protein,n.language)}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.values.carbohydrates,n.language)}),C(Oe,{align:"right",sx:{paddingX:1},children:xn(e.values.fat,n.language)})]})]})]})})},ZRt=e=>{const[t,n]=Ue();return C(od,{children:X(nd,{size:"small",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{children:t("nutrition.macronutrient")}),C(Oe,{align:"right",children:t("nutrition.planned")}),C(Oe,{align:"right",children:t("nutrition.logged")}),C(Oe,{align:"right",children:t("nutrition.difference")})]})}),X(rd,{children:[X(Yt,{children:[C(Oe,{children:t("nutrition.energy")}),C(Oe,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.planned.energy,n.language),kj:Pi(e.planned.energyKj,n.language)})}),C(Oe,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.logged.energy,n.language),kj:Pi(e.logged.energyKj,n.language)})}),C(Oe,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.logged.energy-e.planned.energy,n.language),kj:Pi(e.logged.energyKj-e.planned.energyKj,n.language)})})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.protein")}),C(Oe,{align:"right",children:xn(e.planned.protein,n.language)}),C(Oe,{align:"right",children:xn(e.logged.protein,n.language)}),C(Oe,{align:"right",children:xn(e.logged.protein-e.planned.protein,n.language)})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.carbohydrates")}),C(Oe,{align:"right",children:xn(e.planned.carbohydrates,n.language)}),C(Oe,{align:"right",children:xn(e.logged.carbohydrates,n.language)}),C(Oe,{align:"right",children:xn(e.logged.carbohydrates-e.planned.carbohydrates,n.language)})]}),X(Yt,{children:[C(Oe,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),C(Oe,{align:"right",children:xn(e.planned.carbohydratesSugar,n.language)}),C(Oe,{align:"right",children:xn(e.logged.carbohydratesSugar,n.language)}),C(Oe,{align:"right",children:xn(e.logged.carbohydratesSugar-e.planned.carbohydratesSugar,n.language)})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.fat")}),C(Oe,{align:"right",children:xn(e.planned.fat,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fat,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fat-e.planned.fat,n.language)})]}),X(Yt,{children:[C(Oe,{sx:{paddingLeft:5},children:t("nutrition.ofWhichSaturated")}),C(Oe,{align:"right",children:xn(e.planned.fatSaturated,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fatSaturated,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fatSaturated-e.planned.fatSaturated,n.language)})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.others")}),C(Oe,{}),C(Oe,{}),C(Oe,{})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.fibres")}),C(Oe,{align:"right",children:xn(e.planned.fiber,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fiber,n.language)}),C(Oe,{align:"right",children:xn(e.logged.fiber-e.planned.fiber,n.language)})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.sodium")}),C(Oe,{align:"right",children:xn(e.planned.sodium,n.language)}),C(Oe,{align:"right",children:xn(e.logged.sodium,n.language)}),C(Oe,{align:"right",children:xn(e.logged.sodium-e.planned.sodium,n.language)})]})]})]})})},jK=()=>{const[e]=Ue(),t=gm(),n=parseInt(t.planId),r=new Date(t.date),o=S_e(n,t.date);return o.isLoading?C(Po,{}):C(ym,{title:e("nutrition.nutritionalDiary"),mainContent:C(At,{children:X(Gt,{spacing:2,children:[C(ut,{gutterBottom:!0,variant:"h4",children:r.toLocaleDateString()}),C(ZRt,{logged:o.data.loggedNutritionalValuesDate(r),planned:o.data.plannedNutritionalValues}),C(EN,{values:o.data.loggedNutritionalValuesDate(r),items:o.data.loggedEntriesDate(r),showSum:!0})]})})})};function*NM(e){let t;e<=3?t=ZDe:e<=5?t=JDe:t=QDe;for(const n of t)yield n}const e2t=e=>{const[t,n]=Ue(),r=NM(3),o=[{name:t("nutrition.carbohydrates"),value:e.data.carbohydrates},{name:t("nutrition.protein"),value:e.data.protein},{name:t("nutrition.fat"),value:e.data.fat}],i=Math.PI/180;return C(Zf,{width:"100%",height:300,children:X(Yoe,{children:[C(Zc,{data:o,labelLine:!1,label:({cx:s,cy:l,midAngle:c,innerRadius:u,outerRadius:d,payload:f})=>{const p=u+(d-u)*.4,m=s+p*Math.cos(-c*i),g=l+p*Math.sin(-c*i);return C("text",{x:m,y:g,fill:"white",textAnchor:"middle",dominantBaseline:"central",children:xn(f.value,n.language)})},fill:"#8884d8",dataKey:"value",children:o.map((s,l)=>C(cb,{fill:r.next().value},`cell-${l}`))}),C(Nu,{})]})})},t2t=({showPlanned:e,planned:t,today:n,avg7Days:r})=>{const[o,i]=Ue(),a=NM(3),s=[{name:o("nutrition.protein"),planned:t.protein,today:n.protein,avg7Days:r.protein},{name:o("nutrition.carbohydrates"),planned:t.carbohydrates,today:n.carbohydrates,avg7Days:r.carbohydrates},{name:o("nutrition.sugar"),planned:t.carbohydratesSugar,today:n.carbohydratesSugar,avg7Days:r.carbohydratesSugar},{name:o("nutrition.fat"),planned:t.fat,today:n.fat,avg7Days:r.fat},{name:o("nutrition.saturatedFat"),planned:t.fatSaturated,today:n.fatSaturated,avg7Days:r.fatSaturated}];return C(Zf,{width:"100%",height:300,children:X(Koe,{data:s,margin:{top:20,right:30,left:20,bottom:5},children:[C(rm,{strokeDasharray:"3 4"}),C(gl,{dataKey:"name"}),C(yl,{type:"number",orientation:"left",unit:o("nutrition.gramShort")}),C(Wa,{formatter:l=>Pi(l,i.language)}),C(Nu,{}),e&&C(Bc,{dataKey:"planned",unit:o("nutrition.gramShort"),name:o("nutrition.planned"),fill:a.next().value}),C(Bc,{dataKey:"today",unit:o("nutrition.gramShort"),name:o("nutrition.today"),fill:a.next().value}),C(Bc,{dataKey:"avg7Days",unit:o("nutrition.gramShort"),name:o("nutrition.7dayAvg"),fill:a.next().value})]})})},n2t=e=>{const[t,n]=Ue();return C(od,{children:X(nd,{size:"small",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{children:t("date")}),C(Oe,{align:"right",children:t("nutrition.logged")}),C(Oe,{align:"right",children:t("nutrition.difference")})]})}),C(rd,{children:Array.from(e.logged).map(([r])=>{var o,i;return X(Yt,{children:[C(Oe,{children:C(Xs,{to:Sn(bn.NUTRITION_DIARY,n.language,{id:e.planId,date:r}),children:new Date(r).toLocaleDateString(n.language)})}),C(Oe,{align:"right",children:t("nutrition.valueEnergyKcal",{value:Pi((o=e.logged.get(r))==null?void 0:o.nutritionalValues.energy,n.language)})}),C(Oe,{align:"right",children:Pi(((i=e.logged.get(r))==null?void 0:i.nutritionalValues.energy)-e.planned.energy,n.language)})]},r)})})]})})},r2t=()=>{const[e]=Ue(),[t,n]=Y.useState(!1),r=()=>n(!0),o=()=>n(!1);return X("div",{children:[C(Qh,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>i.spacing(2),zIndex:9},children:C(Zi,{})}),C(na,{title:e("add"),isOpen:t,closeFn:o,children:C(Lz,{closeFn:o})})]})},o2t=e=>{const[t]=Ue(),[n,r]=Y.useState(!1),o=()=>r(!0),i=()=>r(!1);return X("div",{children:[C(Qh,{color:"secondary","aria-label":"add",onClick:o,sx:{position:"fixed",bottom:"5rem",right:a=>a.spacing(2),zIndex:9},children:C(NS,{})}),C(na,{title:t("nutrition.addNutritionalDiary"),isOpen:n,closeFn:i,children:C(_z,{closeFn:i,planId:e.plan.id,meals:e.plan.meals})})]})},Due=({meal:e,planId:t,closeFn:n})=>{const[r,o]=Ue(),i=I_e(t),a=M_e(t),s=xl({name:Kc().required().max(25,r("forms.maxLength",{chars:"25"})).min(3,r("forms.minLength",{chars:"3"})),time:h1().required()});return C(bl,{initialValues:{name:e?e.name:"",time:e?e.time:new Date},validationSchema:s,onSubmit:async l=>{l.time instanceof Date||(l.time=l.time.toJSDate());const c={...l,time:PDe(l.time)};e?a.mutate({...c,plan:t,id:e.id}):i.mutate({...c,plan:t}),n&&n()},children:l=>C(ms,{children:X(Gt,{spacing:2,children:[C(mn,{fullWidth:!0,id:"name",label:r("description"),error:l.touched.name&&!!l.errors.name,helperText:l.touched.name&&l.errors.name,...l.getFieldProps("name")}),C(t1,{dateAdapter:lM,adapterLocale:o.language,children:C(Ydt,{label:r("timeOfDay"),value:l.values.time!==null?kt.fromJSDate(l.values.time):null,onChange:c=>l.setFieldValue("time",c)})}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[n!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>n(),children:r("close")}),C(yt,{disabled:i.isPending||a.isPending,color:"primary",variant:"contained",type:"submit",children:r("submit")})]})]})})})},i2t=e=>{const[t]=Ue(),n=NM(3),r=[{name:t("nutrition.energy"),value:e.logged.energy/e.planned.energy*100},{name:t("nutrition.protein"),value:e.logged.protein/e.planned.protein*100},{name:t("nutrition.carbohydrates"),value:e.logged.carbohydrates/e.planned.carbohydrates*100},{name:t("nutrition.fat"),value:e.logged.fat/e.planned.fat*100}];return C(Zf,{width:"100%",height:150,children:X(Koe,{data:r,layout:"vertical",margin:{left:60},children:[C(rm,{strokeDasharray:"3 4"}),C(gl,{type:"number",unit:"%"}),C(yl,{type:"category",dataKey:"name"}),C(Bc,{dataKey:"value",unit:"%",fill:n.next().value})]})})},_ue=({planId:e,item:t,mealId:n,closeFn:r})=>{const[o]=Ue(),i=D_e(e),a=__e(e),s=L_e(e),l=()=>{t&&s.mutate(t.id),r&&r()},c=xl({amount:ha().required(o("forms.fieldRequired")).max(1e3,o("forms.maxValue",{value:"1000"})).min(1,o("forms.minValue",{value:"1"})),ingredient:ha().required(o("forms.fieldRequired"))});return C(bl,{initialValues:{amount:t?t.amount:0,ingredient:t?t.ingredientId:0},validationSchema:c,onSubmit:async u=>{const d={...u,meal:n,weight_unit:null};t?a.mutate({...d,id:t.id}):i.mutate(d),r&&r()},children:u=>{var d;return C(ms,{children:X(Gt,{spacing:2,children:[C(wz,{callback:f=>u.setFieldValue("ingredient",f?f.data.id:null),initialIngredient:t?(d=t.ingredient)==null?void 0:d.name:null}),C(mn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:C(go,{position:"end",children:o("nutrition.gramShort")})},error:u.touched.amount&&!!u.errors.amount,helperText:u.touched.amount&&u.errors.amount,...u.getFieldProps("amount")}),X(Gt,{direction:"row",justifyContent:"end",spacing:2,children:[r!==void 0&&t!==void 0&&C(yt,{color:"error",variant:"outlined",onClick:l,children:o("delete")}),r!==void 0&&C(yt,{color:"primary",variant:"outlined",onClick:()=>r(),children:o("close")}),C(yt,{color:"primary",variant:"contained",type:"submit",children:o("submit")})]})]})})}})},a2t=e=>{const t=Lee(e.planId),n=k_e(e.planId),[r]=Ue(),[o,i]=Y.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(!1),[u,d]=v.useState(!1),f=!!a,p=k=>{s(k.currentTarget)},m=()=>{g(),x()},g=()=>{s(null)},y=()=>{P(),s(null)},b=()=>{n.mutate(e.meal.id)},x=()=>c(!0),S=()=>c(!1),P=()=>d(!0),E=()=>d(!1),T=(k,M)=>{M!=="clickaway"&&i(!1)},O=()=>{const k=e.meal.items.map(M=>({plan:e.planId,meal:e.meal.id,mealItem:M.id,ingredient:M.ingredientId,weight_unit:M.weightUnitId,datetime:new Date().toISOString(),amount:M.amount}));t.mutate(k),i(!0)};return X(At,{children:[!e.onlyLogging&&C(lc,{title:r("nutrition.logThisMeal"),children:C(In,{"aria-label":"settings",onClick:O,children:C(NS,{})})}),C(In,{"aria-label":"settings",onClick:p,children:C(g1,{})}),C(In,{"aria-label":"settings",onClick:e.handleExpanded,children:e.isExpanded?C(Jse,{}):C(Zse,{})}),X(hs,{anchorEl:a,open:f,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:m,children:r("edit")}),C(nn,{onClick:y,children:r("delete")})]}),C(na,{title:r("edit"),isOpen:l,closeFn:S,children:C(Due,{meal:e.meal,closeFn:S,planId:e.planId})}),C(xV,{title:r("deleteConfirmation",{name:e.meal.name}),message:r("nutrition.mealDeleteInfo"),isOpen:u,closeFn:E,deleteFn:b}),C(UZ,{open:o,autoHideDuration:Mee,onClose:T,children:C(Ju,{onClose:T,severity:"success",sx:{width:"100%"},children:r("nutrition.diaryEntrySaved")})})]})},s2t=e=>{var o,i,a,s;const[t,n]=v.useState(!1),r=()=>n(!t);return X(At,{children:[X(ss,{children:[C(pj,{onClick:r,sx:{"&:hover":{cursor:"pointer"}},children:C(sc,{alt:(o=e.mealItem.ingredient)==null?void 0:o.name,src:(a=(i=e.mealItem.ingredient)==null?void 0:i.image)==null?void 0:a.url,sx:{width:45,height:45},children:C(fd,{})})}),C(xo,{primary:`${e.mealItem.amountString} ${(s=e.mealItem.ingredient)==null?void 0:s.name}`})]}),C(el,{in:t,timeout:"auto",unmountOnExit:!0,sx:{width:"100%"},children:C(ss,{children:C(xo,{children:C(_ue,{planId:e.planId,mealId:e.mealId,item:e.mealItem,closeFn:r})})})})]})},BK=e=>{const t=Lo(),n=e.meal.id!==QP,[r]=Ue(),[o,i]=v.useState(!1),a=()=>i(!o),[s,l]=v.useState(!1),c=()=>{l(!s),d(!1)},[u,d]=v.useState(!1),f=()=>{d(!u),l(!1)};return X(co,{children:[C(uc,{sx:{bgcolor:t.palette.grey[300]},action:e.meal.id!==QP&&C(a2t,{meal:e.meal,planId:e.planId,onlyLogging:e.onlyLogging,isExpanded:o,handleExpanded:a}),title:e.meal.name,subheader:e.meal.timeHHMMLocale}),X(Oi,{sx:{paddingY:0},children:[X(el,{in:o,timeout:"auto",unmountOnExit:!0,children:[!e.onlyLogging&&C(EN,{showSum:n,items:e.meal.items,values:e.meal.plannedNutritionalValues}),C(ut,{gutterBottom:!0,variant:"h6",sx:{my:2},children:r("nutrition.loggedToday")}),!e.meal.plannedNutritionalValues.isEmpty&&C(i2t,{logged:e.meal.loggedNutritionalValuesToday,planned:e.meal.plannedNutritionalValues}),C(EN,{showSum:n,items:e.meal.diaryEntriesToday,values:e.meal.loggedNutritionalValuesToday})]}),!o&&C(pl,{children:e.meal.items.map(p=>C(s2t,{mealItem:p,planId:e.planId,mealId:e.meal.id},p.id))})]}),X(ps,{children:[!e.onlyLogging&&C(lc,{title:r("nutrition.addMealItem"),children:C(In,{onClick:c,children:C(Zi,{})})}),C(lc,{title:r("nutrition.addNutritionalDiary"),children:C(In,{onClick:f,children:C(NS,{})})})]}),C(el,{in:s,timeout:"auto",unmountOnExit:!0,children:X(Oi,{sx:{paddingY:0},children:[C("p",{children:C("b",{children:r("nutrition.addMealItem")})}),C(_ue,{planId:e.planId,mealId:e.meal.id,closeFn:c})]})}),C(el,{in:u,timeout:"auto",unmountOnExit:!0,children:X(Oi,{sx:{paddingY:0},children:[C("p",{children:C("b",{children:r("nutrition.addNutritionalDiary")})}),C(_z,{closeFn:f,planId:e.planId,mealId:e.meal.id!==QP?e.meal.id:null})]})})]})},zK=e=>{const[t,n]=Ue();return C(od,{children:X(nd,{size:"small",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{children:t("nutrition.macronutrient")}),C(Oe,{align:"right",children:t("total")}),C(Oe,{align:"right",children:t("nutrition.percentEnergy")})]})}),X(rd,{children:[X(Yt,{children:[C(Oe,{children:t("nutrition.energy")}),C(Oe,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:Pi(e.values.energy,n.language),kj:Pi(e.values.energyKj,n.language)})}),C(Oe,{align:"right"})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.protein")}),C(Oe,{align:"right",children:xn(e.values.protein,n.language)}),C(Oe,{align:"right",children:G$(e.values.percent.protein,n.language)})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.carbohydrates")}),C(Oe,{align:"right",children:xn(e.values.carbohydrates,n.language)}),C(Oe,{align:"right",children:G$(e.values.percent.carbohydrates,n.language)})]}),X(Yt,{children:[C(Oe,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),C(Oe,{align:"right",children:xn(e.values.carbohydratesSugar,n.language)}),C(Oe,{align:"right"})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.fat")}),C(Oe,{align:"right",children:xn(e.values.fat,n.language)}),C(Oe,{align:"right",children:G$(e.values.percent.fat,n.language)})]}),X(Yt,{children:[C(Oe,{sx:{pl:5},children:t("nutrition.ofWhichSaturated")}),C(Oe,{align:"right",children:xn(e.values.fatSaturated,n.language)}),C(Oe,{align:"right"})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.others")}),C(Oe,{children:" "}),C(Oe,{align:"right"})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.fibres")}),C(Oe,{align:"right",children:xn(e.values.fiber,n.language)}),C(Oe,{align:"right"})]}),X(Yt,{children:[C(Oe,{children:t("nutrition.sodium")}),C(Oe,{align:"right",children:xn(e.values.sodium,n.language)}),C(Oe,{align:"right"})]})]})]})})},l2t=e=>{const t=P_e(e.plan.id),n=mm(),[r,o]=Ue(),[i,a]=Y.useState(null),[s,l]=Y.useState(!1),[c,u]=Y.useState(!1),d=!!i,f=O=>{a(O.currentTarget)},p=()=>{m(),S()},m=()=>{a(null)},g=()=>{E(),a(null)},y=()=>{t.mutate(e.plan.id),n(Sn(bn.NUTRITION_OVERVIEW))},b=()=>window.location.href=Sn(bn.NUTRITION_PLAN_PDF,o.language,{id:e.plan.id}),x=()=>window.location.href=Sn(bn.NUTRITION_PLAN_COPY,o.language,{id:e.plan.id}),S=()=>l(!0),P=()=>l(!1),E=()=>u(!0),T=()=>u(!1);return X(At,{children:[C(yt,{onClick:f,children:C(ele,{})}),X(hs,{anchorEl:i,open:d,onClose:m,MenuListProps:{"aria-labelledby":"basic-button"},children:[C(nn,{onClick:p,children:r("edit")}),C(nn,{onClick:b,children:r("downloadAsPdf")}),C(nn,{onClick:x,children:r("nutrition.copyPlan")}),C(nn,{onClick:g,children:r("delete")})]}),C(na,{title:r("edit"),isOpen:s,closeFn:P,children:C(Lz,{plan:e.plan,closeFn:P})}),C(xV,{title:r("deleteConfirmation",{name:e.plan.description}),message:r("nutrition.planDeleteInfo"),isOpen:c,closeFn:T,deleteFn:y})]})},c2t=e=>{const[t]=Ue(),n=e.plan.plannedNutritionalValues,r=e.plan.loggedNutritionalValuesToday,o=e.plan.percentageValuesLoggedToday;return C(At,{children:X(Gt,{direction:"column",spacing:1,children:[C(ut,{gutterBottom:!0,variant:"h6",children:t("nutrition.goalsTitle")}),C(ay,{title:t("nutrition.protein"),percentage:o.protein,logged:r.protein,planned:n.protein}),C(ay,{title:t("nutrition.carbohydrates"),percentage:o.carbohydrates,logged:r.carbohydrates,planned:n.carbohydrates}),C(ay,{title:t("nutrition.fat"),percentage:o.fat,logged:r.fat,planned:n.fat})]})})},u2t=()=>{const[e]=Ue(),t=gm(),n=parseInt(t.planId),r=x_e(n),[o,i]=v.useState(!1),a=()=>i(!o),s=r.data;return r.isLoading?C(Po,{}):C(ym,{title:s.description,optionsMenu:C(l2t,{plan:s}),mainContent:C(At,{children:X(Gt,{spacing:2,children:[s.meals.map(l=>C(BK,{meal:l,planId:s.id,onlyLogging:s.onlyLogging},l.id)),C(BK,{meal:r.data.pseudoMealOthers(e("nutrition.pseudoMealTitle")),planId:s.id,onlyLogging:!0},-1),!s.onlyLogging&&X(At,{children:[C(lc,{title:e("nutrition.addMeal"),children:C(In,{onClick:a,children:C(Zi,{})})}),X(el,{in:o,timeout:"auto",unmountOnExit:!0,children:[C("p",{children:C("b",{children:e("nutrition.addMeal")})}),C(Due,{planId:s.id,closeFn:a})]})]}),C(zK,{values:s.plannedNutritionalValues}),s.hasAnyPlanned&&C(e2t,{data:s.plannedNutritionalValues}),C(ut,{gutterBottom:!0,variant:"h4",children:e("nutrition.logged")}),C(t2t,{showPlanned:s.hasAnyPlanned,planned:s.plannedNutritionalValues,today:s.loggedNutritionalValuesToday,avg7Days:s.loggedNutritionalValues7DayAvg}),C(zK,{values:s.loggedNutritionalValuesToday}),C(n2t,{planId:s.id,logged:s.groupDiaryEntries,planned:s.plannedNutritionalValues})]})}),sideBar:C(c2t,{plan:s}),fab:C(o2t,{plan:s})})},d2t=()=>{var n;const e=b_e(),[t]=Ue();return e.isLoading?C(Po,{}):C(ym,{title:t("nutrition.plans"),mainContent:X(Gt,{spacing:2,children:[((n=e.data)==null?void 0:n.length)===0&&C(LI,{}),C(p2t,{plans:e.data})]}),fab:C(r2t,{})})},f2t=e=>{const[t,n]=Ue(),r=Sn(bn.NUTRITION_DETAIL,n.language,{id:e.plan.id});return X(At,{children:[C(ss,{sx:{p:0},children:X(Xf,{component:"a",href:r,children:[C(xo,{primary:e.plan.description!==""?e.plan.description:t("routines.routine"),secondary:e.plan.creationDate.toLocaleDateString()}),C(Xse,{})]})}),C(as,{component:"li"})]})},p2t=e=>C(fo,{children:C(pl,{sx:{py:0},children:e.plans.map(t=>C(f2t,{plan:t},t.id))},"abc")}),h2t=e=>{var u;const[t,n]=Ue(),[r,o]=Y.useState(null),i=!!r,a=d=>{o(d.currentTarget)},s=()=>{o(null)},l=()=>window.location.href=Sn(bn.ROUTINE_EDIT_LOG,n.language,{id:e.log.id}),c=()=>window.location.href=Sn(bn.ROUTINE_DELETE_LOG,n.language,{id:e.log.id});return X(Yt,{children:[C(Oe,{component:"th",scope:"row",children:kt.fromJSDate(e.log.date).toLocaleString(kt.DATE_MED)}),C(Oe,{children:e.log.reps}),X(Oe,{children:[e.log.weight,(u=e.log.weightUnitObj)==null?void 0:u.name]}),C(Oe,{children:e.log.rirString}),X(Oe,{children:[C(In,{"aria-label":"settings",onClick:a,children:C(g1,{fontSize:"small"})}),X(hs,{id:"basic-menu",anchorEl:r,open:i,onClose:s,MenuListProps:{"aria-labelledby":"basic-button"},children:[X(nn,{onClick:l,children:[C(Qse,{}),t("edit")]}),X(nn,{onClick:c,children:[C(Nz,{}),t("delete")]})]})]})]},e.log.id)},m2t=e=>{let t=e.logEntries??[];const n=[5,10,20],[r,o]=Y.useState(n[0]),[i,a]=Y.useState(0),s=(c,u)=>{a(u)},l=c=>{o(parseInt(c.target.value,10)),a(0)};return X(At,{children:[C(ut,{variant:"h6",sx:{mt:4},children:e.exerciseId.getTranslation().name}),X(_e,{container:!0,spacing:2,children:[C(_e,{size:{xs:12,md:5},children:X(od,{children:[X(nd,{"aria-label":"simple table",size:"small",children:[C(Zh,{children:X(Yt,{children:[C(Oe,{children:"Date"}),C(Oe,{children:"Reps"}),C(Oe,{children:"Weight"}),C(Oe,{children:"RiR"}),C(Oe,{})]})}),C(rd,{children:t.slice(i*r,i*r+r).map(c=>C(h2t,{log:c},c.id))})]}),C(yj,{rowsPerPageOptions:n,component:"div",count:t.length,rowsPerPage:r,page:i,onPageChange:s,onRowsPerPageChange:l})]})}),C(_e,{size:{xs:12,md:7},children:C(v2t,{data:t},e.exerciseId.id)})]})]})},VK=()=>{const e=gm(),t=e.routineId?parseInt(e.routineId):0,[n,r]=Ue(),o=Gbt(t,!1),i=tle(t),a=l=>window.location.href=Sn(bn.ROUTINE_ADD_LOG,r.language,{id:l});let s=new Map;return o.isSuccess&&(s=o.data.reduce(function(l,c){return l.set(c.exerciseId,l.get(c.exerciseId)||[]),[zDe,VDe].includes(c.weightUnit)&&c.repetitionUnit===Iee&&l.get(c.exerciseId).push(c),l},new Map)),C(At,{children:X(ed,{maxWidth:"lg",children:[C(ut,{variant:"h4",children:n("routines.logsHeader")}),C(ut,{variant:"body1",children:n("routines.logsFilterNote")}),o.isSuccess&&i.isSuccess?C(At,{children:i.data.days.map(l=>X("div",{children:[X(Gt,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:"center",sx:{mt:4},children:[C(ut,{variant:"h4",children:l.description}),C(yt,{variant:"contained",onClick:()=>a(l.id),children:n("routines.addLogToDay")})]}),l.sets.map(c=>c.exercises.map(u=>C(m2t,{exerciseId:u,logEntries:s.get(u.id)},c.id+u.uuid)))]},l.id))}):C(Po,{})]})})},g2t=e=>e.map(t=>({id:t.id,value:t.weight,time:t.date.getTime(),entry:t})),y2t=({active:e,payload:t,label:n})=>{var r,o,i;if(e){let a="";return(r=t==null?void 0:t[1].payload)!=null&&r.entry.rir&&(a=`, ${(o=t==null?void 0:t[1].payload)==null?void 0:o.entry.rir} RiR`),C(co,{children:X(Oi,{children:[C(ut,{variant:"body1",children:kt.fromMillis(t==null?void 0:t[0].value).toLocaleString(kt.DATE_MED)}),X(ut,{variant:"body2",children:[(i=t==null?void 0:t[1].payload)==null?void 0:i.entry.reps," × ",t==null?void 0:t[1].value,t==null?void 0:t[1].unit,a]})]})})}return null},v2t=e=>{let t;t=e.data.reduce(function(r,o){return r.set(o.reps,r.get(o.reps)||[]),r.get(o.reps).push(o),r},new Map);const n=NM(t.size);return C($n,{children:C(Zf,{width:"100%",height:250,children:X(Hot,{children:[C(gl,{dataKey:"time",domain:["auto","auto"],name:"Time",tickFormatter:r=>kt.fromMillis(r).toLocaleString(kt.DATE_MED),type:"number"}),C(yl,{domain:["auto","auto"],dataKey:"value",name:"Value",unit:"kg"}),Array.from(t).map(([r,o])=>{const i=n.next().value,a=g2t(o);return C(ZS,{data:a,fill:i,line:{stroke:i},lineType:"joint",lineJointType:"monotoneX",name:r.toString()},r)}),C(Wa,{content:C(y2t,{})}),C(rm,{strokeDasharray:"3 3"}),C(Nu,{})]})})})},b2t=()=>C("div",{children:C(Qh,{color:"secondary","aria-label":"add",onClick:()=>window.location.href=Sn(bn.ROUTINE_ADD),sx:{position:"fixed",bottom:"5rem",right:t=>t.spacing(2),zIndex:9},children:C(Zi,{})})}),w2t=e=>{const[t,n]=Ue(),r=Sn(bn.ROUTINE_DETAIL,n.language,{id:e.routine.id});return X(At,{children:[C(ss,{sx:{p:0},children:X(Xf,{component:"a",href:r,children:[C(xo,{primary:e.routine.name!==""?e.routine.name:t("routines.routine"),secondary:e.routine.date.toLocaleDateString()}),C(Xse,{})]})}),C(as,{component:"li"})]})},HK=()=>{const e=qbt(),[t]=Ue();return X(ed,{maxWidth:"lg",children:[X(_e,{container:!0,children:[X(_e,{size:{xs:12,sm:8},children:[C(ut,{gutterBottom:!0,variant:"h3",component:"div",children:t("routines.routines")}),e.isLoading?C(Po,{}):C(fo,{children:C(pl,{sx:{py:0},children:e.data.map(n=>C(w2t,{routine:n},n.id))},"abc")})]}),C(_e,{size:{xs:12,sm:4}})]}),C(b2t,{})]})},a2=()=>C($1t,{}),SV=()=>X(L0t,{children:[X(Nt,{path:"/:lang",children:[X(Nt,{path:"workout",children:[C(Nt,{path:"overview",element:C(ACt,{})}),C(Nt,{path:"schedule",element:C($Ct,{})}),C(Nt,{path:"gallery",element:C(dCt,{})}),X(Nt,{path:"template",children:[C(Nt,{path:"overview",element:C(yCt,{})}),C(Nt,{path:"public",element:C(mCt,{})})]})]}),X(Nt,{path:"routine",children:[C(Nt,{index:!0,element:C(HK,{})}),C(Nt,{path:"overview",element:C(HK,{})}),C(Nt,{path:"calendar",element:C(lCt,{})}),C(Nt,{path:":routineId",element:C(sq,{}),children:C(Nt,{path:"view",element:C(sq,{})})}),C(Nt,{path:"log",children:C(Nt,{path:":routineId",element:C(VK,{}),children:C(Nt,{path:"view",element:C(VK,{})})})})]}),X(Nt,{path:"measurement",children:[C(Nt,{index:!0,element:C(FK,{})}),C(Nt,{path:"overview",element:C(FK,{})}),C(Nt,{path:"category/:categoryId",element:C(YRt,{})})]}),X(Nt,{path:"exercise",children:[C(Nt,{index:!0,element:C($q,{})}),C(Nt,{path:"overview",element:C($q,{})}),C(Nt,{path:":baseID",element:C(a2,{}),children:C(Nt,{path:"view-base",element:C(a2,{}),children:C(Nt,{path:":slug",element:C(a2,{})})})}),C(Nt,{path:"contribute",element:C(K1t,{})})]}),X(Nt,{path:"weight",children:[C(Nt,{path:"overview",element:C(ice,{})}),C(Nt,{path:"add",element:C(Y1t,{})})]}),X(Nt,{path:"nutrition",children:[C(Nt,{path:"overview",element:C(d2t,{})}),X(Nt,{path:":planId",children:[C(Nt,{path:"view",element:C(u2t,{})}),C(Nt,{path:":date",element:C(jK,{})}),C(Nt,{path:"diary",element:C(jK,{})})]}),X(Nt,{path:"calculator",children:[C(Nt,{path:"bmi",element:C(QRt,{})}),C(Nt,{path:"calories",element:C(cCt,{})})]}),C(Nt,{path:"ingredient",children:C(Nt,{path:"overview",element:C(fCt,{})})})]}),X(Nt,{path:"software",children:[C(Nt,{path:"about-us",element:C(lSt,{})}),C(Nt,{path:"api",element:C(gCt,{})}),C(Nt,{path:"equipment",element:C(uCt,{})})]}),C(Nt,{path:"login",element:C(pCt,{})}),C(Nt,{path:"user",children:C(Nt,{path:"preferences",element:C(hCt,{})})})]}),C(Nt,{path:"/",element:C(RCt,{})}),C(Nt,{path:"*",element:C("main",{style:{padding:"1rem"},children:C("p",{children:"404, Page NOT FOUND"})})})]}),x2t="_notification_bbb61_1",UK={notification:x2t},S2t=()=>{const[e,t]=vSt(),n=()=>{t(Cq({notify:!1,message:"",severity:void 0,title:"",type:void 0}))},r=()=>{t(Cq({notify:!1,message:"",severity:void 0,title:"",type:void 0,undo:!0}))};return e.notification.notify?e.notification.type==="delete"?X(Ju,{className:UK.notification,severity:e.notification.severity,action:C(yt,{color:"inherit",size:"small",onClick:r,children:"UNDO"}),variant:"filled",children:[C(YE,{children:e.notification.title}),C("strong",{children:e.notification.message})]}):X(Ju,{className:UK.notification,severity:e.notification.severity,onClose:()=>n(),variant:"filled",children:[C(YE,{children:e.notification.title}),C("strong",{children:e.notification.message})]}):null};function C2t(){return X(_e,{container:!0,children:[C(_e,{size:12,children:C(MCt,{})}),C(_e,{size:12,children:C(S2t,{})}),C(_e,{size:12,children:C(SV,{})})]})}const Xt=e=>typeof e=="string",j0=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},WK=e=>e==null?"":""+e,P2t=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},E2t=/###/g,GK=e=>e&&e.indexOf("###")>-1?e.replace(E2t,"."):e,qK=e=>!e||Xt(e),zw=(e,t,n)=>{const r=Xt(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(qK(e))return{};const i=GK(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return qK(e)?{}:{obj:e,k:GK(r[o])}},KK=(e,t,n)=>{const{obj:r,k:o}=zw(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=zw(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=zw(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},T2t=(e,t,n,r)=>{const{obj:o,k:i}=zw(e,t,Object);o[i]=o[i]||[],o[i].push(n)},DO=(e,t)=>{const{obj:n,k:r}=zw(e,t);if(n)return n[r]},O2t=(e,t,n)=>{const r=DO(e,n);return r!==void 0?r:DO(t,n)},Lue=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Xt(e[r])||e[r]instanceof String||Xt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Lue(e[r],t[r],n):e[r]=t[r]);return e},dg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var I2t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const k2t=e=>Xt(e)?e.replace(/[&<>"'\/]/g,t=>I2t[t]):e;class M2t{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const A2t=[" ",",","?","!",";"],$2t=new M2t(20),R2t=(e,t,n)=>{t=t||"",n=n||"";const r=A2t.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=$2t.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},TN=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<r.length;++l)if(l!==i&&(s+=n),s+=r[l],a=o[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=a}return o},_O=e=>e&&e.replace("_","-"),D2t={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class LO{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||D2t,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Xt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new LO(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new LO(this.logger,t)}}var Rc=new LO;class FM{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...r])})}}class YK extends FM{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):Xt(r)&&i?s.push(...r.split(i)):s.push(r)));const l=DO(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!Xt(r)?l:TN(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),KK(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(Xt(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=DO(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Lue(l,r,i):l={...l,...r},KK(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var Nue={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const XK={};class NO extends FM{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),P2t(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!R2t(t,r,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return Xt(i)&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const P=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${P}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${P}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(t,n);let f=d&&d.res;const p=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(f),y=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!Xt(f)&&typeof f!="boolean"&&typeof f!="number";if(x&&f&&S&&y.indexOf(g)<0&&!(Xt(b)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=P,d.usedParams=this.getUsedParamsDetails(n),d):P}if(i){const P=Array.isArray(f),E=P?[]:{},T=P?m:p;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const k=`${T}${i}${O}`;E[O]=this.translate(k,{...n,joinArrays:!1,ns:s}),E[O]===k&&(E[O]=f[O])}f=E}}else if(x&&Xt(b)&&Array.isArray(f))f=f.join(b),f&&(f=this.extendTranslation(f,t,n,r));else{let P=!1,E=!1;const T=n.count!==void 0&&!Xt(n.count),O=NO.hasDefaultValue(n),k=T?this.pluralResolver.getSuffix(c,n.count,n):"",M=n.ordinal&&T?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",I=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),R=I&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(f)&&O&&(P=!0,f=R),this.isValidLookup(f)||(E=!0,f=a);const L=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:f,j=O&&R!==f&&this.options.updateMissing;if(E||P||j){if(this.logger.log(j?"updateKey":"missingKey",c,l,a,j?R:f),i){const z=this.resolve(a,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let N=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let z=0;z<F.length;z++)N.push(F[z]);else this.options.saveMissingTo==="all"?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);const U=(z,V,W)=>{const G=O&&W!==f?W:L;this.options.missingKeyHandler?this.options.missingKeyHandler(z,l,V,G,j,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,l,V,G,j,n),this.emit("missingKey",z,l,V,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?N.forEach(z=>{const V=this.pluralResolver.getSuffixes(z,n);I&&n[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(W=>{U([z],a+W,n[`defaultValue${W}`]||R)})}):U(N,a,R))}f=this.extendTranslation(f,t,n,d,r),E&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(E||P)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,P?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=Xt(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&!Xt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||o.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;u<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):a.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=Xt(s)?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Nue.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return Xt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Xt(n.count),p=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(Xt(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(y=>{this.isValidLookup(r)||(s=y,!XK[`${g[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(XK[`${g[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(b=>{if(this.isValidLookup(r))return;a=b;const x=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,u,b,y,n);else{let P;f&&(P=this.pluralResolver.getSuffix(b,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(x.push(u+P),n.ordinal&&P.indexOf(T)===0&&x.push(u+P.replace(T,this.options.pluralSeparator)),p&&x.push(u+E)),m){const O=`${u}${this.options.contextSeparator}${n.context}`;x.push(O),f&&(x.push(O+P),n.ordinal&&P.indexOf(T)===0&&x.push(O+P.replace(T,this.options.pluralSeparator)),p&&x.push(O+E))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(i=S,r=this.getResource(b,y,S,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Xt(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const s2=e=>e.charAt(0).toUpperCase()+e.slice(1);class QK{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rc.create("languageUtils")}getScriptPartFromCode(t){if(t=_O(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=_O(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Xt(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=s2(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=s2(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=s2(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Xt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Xt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Xt(t)&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let _2t=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L2t={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const N2t=["v1","v2","v3"],F2t=["v4"],JK={zero:0,one:1,two:2,few:3,many:4,other:5},j2t=()=>{const e={};return _2t.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:L2t[t.fc]}})}),e};class B2t{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Rc.create("pluralResolver"),(!this.options.compatibilityJSON||F2t.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=j2t(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=_O(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const a=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>JK[o]-JK[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!N2t.includes(this.options.compatibilityJSON)}}const ZK=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=O2t(e,t,n);return!i&&o&&Xt(n)&&(i=TN(e,n,r),i===void 0&&(i=TN(t,n,r))),i},l2=e=>e.replace(/\$/g,"$$$$");class z2t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:y,maxReplaces:b,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:k2t,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?dg(i):a||"{{",this.suffix=s?dg(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?dg(f):p||dg("$t("),this.nestingSuffix=m?dg(m):g||dg(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=b||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=ZK(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...o,...n,interpolationkey:p}):b}const m=p.split(this.formatSeparator),g=m.shift().trim(),y=m.join(this.formatSeparator).trim();return this.format(ZK(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>l2(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?l2(this.escape(p)):l2(p)}].forEach(p=>{for(s=0;i=p.regex.exec(t);){const m=i[1].trim();if(a=c(m),a===void 0)if(typeof u=="function"){const y=u(t,i,o);a=Xt(y)?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),a="";else!Xt(a)&&!this.useRawValueToEscape&&(a=WK(a));const g=p.safeValue(a);if(t=t.replace(i[0],g),d?(p.regex.lastIndex+=a.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);const p=f.match(/'/g),m=f.match(/"/g);(p&&p.length%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!Xt(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!Xt(i))return i;Xt(i)||(i=WK(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const V2t=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},fg=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(_O(r),o),t[a]=s),s(n)}};class H2t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rc.create("formatter"),this.options=t,this.formats={number:fg((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:fg((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:fg((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:fg((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:fg((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fg(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{const{formatName:c,formatOptions:u}=V2t(l);if(this.formats[c]){let d=s;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},p=f.locale||f.lng||o.locale||o.lng||r;d=this.formats[c](s,p,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const U2t=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class W2t extends FM{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Rc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,u=!1,a[f]===void 0&&(a[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{T2t(l.loaded,[i],a),U2t(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Xt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Xt(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,o,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const eY=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Xt(e[1])&&(t.defaultValue=e[1]),Xt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),tY=e=>(Xt(e.ns)&&(e.ns=[e.ns]),Xt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Xt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),OP=()=>{},G2t=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class dS extends FM{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tY(t),this.services={},this.logger=Rc,this.modules={external:[]},G2t(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Xt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=eY();this.options={...o,...this.options,...tY(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Rc.init(i(this.modules.logger),this.options):Rc.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=H2t);const d=new QK(this.options);this.store=new YK(this.options.resources,this.options);const f=this.services;f.logger=Rc,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new B2t(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new z2t(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new W2t(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];t.emit(p,...g)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new NO(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];t.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=OP),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=j0(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:OP;const o=Xt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const o=j0();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=OP),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Nue.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=j0();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=Xt(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,n,r){var o=this;const i=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const f=o.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(a)?p=a.map(m=>`${l.keyPrefix}${f}${m}`):p=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,o.t(p,l)};return Xt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=j0();return this.options.ns?(Xt(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=j0();Xt(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new QK(eY());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new dS(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:OP;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new dS(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new YK(this.store.data,o),i.services.resourceStore=i.store),i.translator=new NO(i.services,o),i.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(s,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ai=dS.createInstance();Ai.createInstance=dS.createInstance;Ai.createInstance;Ai.dir;Ai.init;Ai.loadResources;Ai.reloadResources;Ai.use;Ai.changeLanguage;Ai.getFixedT;Ai.t;Ai.exists;Ai.setDefaultNamespace;Ai.hasLoadedNamespace;Ai.loadNamespaces;Ai.loadLanguages;const{slice:q2t,forEach:K2t}=[];function Y2t(e){return K2t.call(q2t.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const nY=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,X2t=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!nY.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!nY.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},rY={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=X2t(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e){this.create(e,"",-1)}};var Q2t={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return rY.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&typeof document<"u"&&rY.create(n,e,r,o,i)}},J2t={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const a=o.substring(1).split("&");for(let s=0;s<a.length;s++){const l=a[s].indexOf("=");l>0&&a[s].substring(0,l)===t&&(n=a[s].substring(l+1))}}return n}};let B0=null;const oY=()=>{if(B0!==null)return B0;try{B0=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{B0=!1}return B0};var Z2t={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&oY())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&oY()&&window.localStorage.setItem(n,e)}};let z0=null;const iY=()=>{if(z0!==null)return z0;try{z0=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{z0=!1}return z0};var eDt={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&iY())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&iY()&&window.sessionStorage.setItem(n,e)}},tDt={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},nDt={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},rDt={name:"path",lookup(e){var o;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(o=n[typeof t=="number"?t:0])==null?void 0:o.replace("/",""):void 0}},oDt={name:"subdomain",lookup(e){var o,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function iDt(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class Fue{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Y2t(n,this.options||{},iDt()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Q2t),this.addDetector(J2t),this.addDetector(Z2t),this.addDetector(eDt),this.addDetector(tDt),this.addDetector(nDt),this.addDetector(rDt),this.addDetector(oDt)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Fue.type="languageDetector";function ON(e){"@babel/helpers - typeof";return ON=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ON(e)}function jue(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ON(XMLHttpRequest))==="object"}function aDt(e){return!!e&&typeof e.then=="function"}function sDt(e){return aDt(e)?e:Promise.resolve(e)}function aY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aY(Object(n),!0).forEach(function(r){lDt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lDt(e,t,n){return(t=cDt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cDt(e){var t=uDt(e,"string");return qh(t)=="symbol"?t:t+""}function uDt(e,t){if(qh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qh(e){"@babel/helpers - typeof";return qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qh(e)}var Hu;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Hu=global.fetch:typeof window<"u"&&window.fetch?Hu=window.fetch:Hu=fetch);var fS;jue()&&(typeof global<"u"&&global.XMLHttpRequest?fS=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(fS=window.XMLHttpRequest));var FO;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?FO=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(FO=window.ActiveXObject));typeof Hu!="function"&&(Hu=void 0);if(!Hu&&!fS&&!FO)try{Kxe(()=>import("./browser-ponyfill-wLVfOKef.js").then(e=>e.b),[]).then(function(e){Hu=e.default}).catch(function(){})}catch{}var IN=function(t,n){if(n&&qh(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},lY=function(t,n,r,o){var i=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(o){var a=o(t,n);if(a instanceof Promise){a.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Hu(t,n).then(i).catch(r)},cY=!1,dDt=function(t,n,r,o){t.queryStringParams&&(n=IN(n,t.queryStringParams));var i=sY({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=sY({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},cY?{}:a),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{lY(n,s,o,l)}catch(c){if(!a||Object.keys(a).length===0||!c.message||c.message.indexOf("not implemented")<0)return o(c);try{Object.keys(a).forEach(function(u){delete s[u]}),lY(n,s,o,l),cY=!0}catch(u){o(u)}}},fDt=function(t,n,r,o){r&&qh(r)==="object"&&(r=IN("",r).slice(1)),t.queryStringParams&&(n=IN(n,t.queryStringParams));try{var i=fS?new fS:new FO("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},pDt=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},Hu&&n.indexOf("file:")!==0)return dDt(t,n,r,o);if(jue()||typeof ActiveXObject=="function")return fDt(t,n,r,o);o(new Error("No fetch and no xhr implementation found!"))};function Rv(e){"@babel/helpers - typeof";return Rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rv(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function c2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uY(Object(n),!0).forEach(function(r){Bue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hDt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mDt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zue(r.key),r)}}function gDt(e,t,n){return t&&mDt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bue(e,t,n){return(t=zue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zue(e){var t=yDt(e,"string");return Rv(t)=="symbol"?t:t+""}function yDt(e,t){if(Rv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vDt=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,o){return Bue({},r,o||"")},parseLoadPayload:function(n,r){},request:pDt,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Vue=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};hDt(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return gDt(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=c2(c2(c2({},vDt()),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Rv(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,o)),l=sDt(l),l.then(function(c){if(!c)return a(null,{});var u=s.services.interpolator.interpolate(c,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(u,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this,s=typeof o=="string"?[o]:o,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(s,l);this.options.request(this.options,n,c,function(u,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&u&&u.message){var f=u.message.toLowerCase(),p=["failed","fetch","network","load"].find(function(y){return f.indexOf(y)>-1});if(p)return r("failed loading "+n+": "+u.message,!0)}if(u)return r(u,!1);var m,g;try{typeof d.data=="string"?m=a.options.parse(d.data,o,i):m=d.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,m)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,o,i),c=0,u=[],d=[];n.forEach(function(f){var p=s.options.addPath;typeof s.options.addPath=="function"&&(p=s.options.addPath(f,r));var m=s.services.interpolator.interpolate(p,{lng:f,ns:r});s.options.request(s.options,m,l,function(g,y){c+=1,u.push(g),d.push(y),c===n.length&&typeof a=="function"&&a(u,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(d){var f=i.toResolveHierarchy(d);f.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return c(u)}),l.forEach(function(u){n.allOptions.ns.forEach(function(d){o.read(u,d,"read",null,null,function(f,p){f&&a.warn("loading namespace ".concat(d," for language ").concat(u," failed"),f),!f&&p&&a.log("loaded namespace ".concat(d," for language ").concat(u),p),o.loaded("".concat(u,"|").concat(d),f,p)})})})}}}])}();Vue.type="backend";Ai.use(Vue).use(Fue).use(URe).init({load:"languageOnly",detection:{order:["path","navigator","htmlTag"]},fallbackLng:"en",interpolation:{escapeValue:!1},backend:{loadPath:"/static/react/locales/{{lng}}/{{ns}}.json"}});const wm=new Mxe({defaultOptions:{queries:{retry:3,staleTime:1e3*60*5,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:"always"}}}),CV=e=>{const t=document.getElementById(e);if(t===null)return;const n=t.attachShadow({mode:"open"}),r=document.createElement("div"),o=document.createElement("style"),i=document.getElementById("react-css");if(i){const l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("href",i.href),n.appendChild(i)}n.appendChild(r),n.appendChild(o);const a=qY({key:"css",prepend:!0,container:o});yd(r).render(C(lbe,{value:a,children:C(v.Suspense,{fallback:C(Sa,{}),children:C(Bz,{children:C(Vf,{theme:qCt(r),children:C(Kh,{client:wm,children:C(SV,{})})})})})}))},dY=document.getElementById("root");dY&&yd(dY).render(C(Y.StrictMode,{children:C(v.Suspense,{fallback:C(Sa,{}),children:C(Bz,{children:C(Vf,{theme:sp,children:X(Kh,{client:wm,children:[C(C2t,{}),C(Yxe,{})]})})})})}));const fY=document.getElementById("react-weight-overview");fY&&yd(fY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Vf,{theme:sp,children:C(Kh,{client:wm,children:C(ice,{})})})}));const pY=document.getElementById("react-weight-dashboard");pY&&yd(pY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Vf,{theme:sp,children:C(Kh,{client:wm,children:C(Dle,{})})})}));const hY=document.getElementById("react-nutrition-dashboard");hY&&yd(hY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Vf,{theme:sp,children:C(Kh,{client:wm,children:C(Kse,{})})})}));const mY=document.getElementById("react-routine-dashboard");mY&&yd(mY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Vf,{theme:sp,children:C(Kh,{client:wm,children:C(hle,{})})})}));CV("react-exercise-overview");CV("react-exercise-contribute");const gY=document.getElementById("react-exercise-detail");gY&&yd(gY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Bz,{children:C(Vf,{theme:sp,children:C(Kh,{client:wm,children:C(SV,{})})})})}));CV("react-page");const yY=document.getElementById("react-ingredient-search");yY&&yd(yY).render(C(v.Suspense,{fallback:C(Sa,{}),children:C(Vf,{theme:sp,children:C(sSt,{})})}));export{Oc as c,jn as g};