diff --git a/assets/index-BrUYpDIm.js b/assets/index-BrUYpDIm.js deleted file mode 100644 index 86e3dd7..0000000 --- a/assets/index-BrUYpDIm.js +++ /dev/null @@ -1,378 +0,0 @@ -var $A=Object.defineProperty;var RA=(e,t,n)=>t in e?$A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ui=(e,t,n)=>RA(e,typeof t!="symbol"?t+"":t,n);function AA(e,t){for(var n=0;nr[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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var KI={exports:{}},rg={},qI={exports:{}},dt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ef=Symbol.for("react.element"),OA=Symbol.for("react.portal"),jA=Symbol.for("react.fragment"),FA=Symbol.for("react.strict_mode"),LA=Symbol.for("react.profiler"),_A=Symbol.for("react.provider"),NA=Symbol.for("react.context"),zA=Symbol.for("react.forward_ref"),BA=Symbol.for("react.suspense"),HA=Symbol.for("react.memo"),VA=Symbol.for("react.lazy"),KC=Symbol.iterator;function GA(e){return e===null||typeof e!="object"?null:(e=KC&&e[KC]||e["@@iterator"],typeof e=="function"?e:null)}var XI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QI=Object.assign,ZI={};function Xc(e,t,n){this.props=e,this.context=t,this.refs=ZI,this.updater=n||XI}Xc.prototype.isReactComponent={};Xc.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")};Xc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JI(){}JI.prototype=Xc.prototype;function zx(e,t,n){this.props=e,this.context=t,this.refs=ZI,this.updater=n||XI}var Bx=zx.prototype=new JI;Bx.constructor=zx;QI(Bx,Xc.prototype);Bx.isPureReactComponent=!0;var qC=Array.isArray,eE=Object.prototype.hasOwnProperty,Hx={current:null},tE={key:!0,ref:!0,__self:!0,__source:!0};function nE(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)eE.call(t,r)&&!tE.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=O[z];if(0>>1;zo(B,N))Wo(te,B)?(O[z]=te,O[W]=N,z=W):(O[z]=B,O[Y]=N,z=Y);else if(Wo(te,N))O[z]=te,O[W]=N,z=W;else break e}}return _}function o(O,_){var N=O.sortIndex-_.sortIndex;return N!==0?N:O.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,d=null,f=3,m=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=O)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function C(O){if(y=!1,b(O),!g)if(n(l)!==null)g=!0,I(k);else{var _=n(c);_!==null&&L(C,_.startTime-O)}}function k(O,_){g=!1,y&&(y=!1,v(E),E=-1),m=!0;var N=f;try{for(b(_),d=n(l);d!==null&&(!(d.expirationTime>_)||O&&!D());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var U=z(d.expirationTime<=_);_=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),b(_)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var Y=n(c);Y!==null&&L(C,Y.startTime-_),J=!1}return J}finally{d=null,f=N,m=!1}}var M=!1,T=null,E=-1,$=5,S=-1;function D(){return!(e.unstable_now()-S<$)}function j(){if(T!==null){var O=e.unstable_now();S=O;var _=!0;try{_=T(!0,O)}finally{_?F():(M=!1,T=null)}}else M=!1}var F;if(typeof w=="function")F=function(){w(j)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,R=A.port2;A.port1.onmessage=j,F=function(){R.postMessage(null)}}else F=function(){x(j,0)};function I(O){T=O,M||(M=!0,F())}function L(O,_){E=x(function(){O(e.unstable_now())},_)}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(O){O.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,I(k))},e.unstable_forceFrameRate=function(O){0>O||125z?(O.sortIndex=N,t(c,O),n(l)===null&&O===n(c)&&(y?(v(E),E=-1):y=!0,L(C,N-z))):(O.sortIndex=U,t(l,O),g||m||(g=!0,I(k))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var _=f;return function(){var N=f;f=_;try{return O.apply(this,arguments)}finally{f=N}}}})(aE);iE.exports=aE;var tO=iE.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var nO=h,Nr=tO;function Se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$v=Object.prototype.hasOwnProperty,rO=/^[: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]*$/,QC={},ZC={};function oO(e){return $v.call(ZC,e)?!0:$v.call(QC,e)?!1:rO.test(e)?ZC[e]=!0:(QC[e]=!0,!1)}function sO(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 iO(e,t,n,r){if(t===null||typeof t>"u"||sO(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 rr(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new rr(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){jn[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gx=/[\-:]([a-z])/g;function Wx(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(Gx,Wx);jn[t]=new rr(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(Gx,Wx);jn[t]=new rr(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(Gx,Wx);jn[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ux(e,t,n,r){var o=jn.hasOwnProperty(t)?jn[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{uy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xu(e):""}function aO(e){switch(e.tag){case 5:return Xu(e.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 2:case 15:return e=dy(e.type,!1),e;case 11:return e=dy(e.type.render,!1),e;case 1:return e=dy(e.type,!0),e;default:return""}}function jv(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 Fl:return"Fragment";case jl:return"Portal";case Rv:return"Profiler";case Yx:return"StrictMode";case Av:return"Suspense";case Ov:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uE:return(e.displayName||"Context")+".Consumer";case cE:return(e._context.displayName||"Context")+".Provider";case Kx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qx:return t=e.displayName||null,t!==null?t:jv(e.type)||"Memo";case gi:t=e._payload,e=e._init;try{return jv(e(t))}catch{}}return null}function lO(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 jv(t);case 8:return t===Yx?"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 zi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cO(e){var t=fE(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gp(e){e._valueTracker||(e._valueTracker=cO(e))}function pE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vh(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 Fv(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zi(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 hE(e,t){t=t.checked,t!=null&&Ux(e,"checked",t,!1)}function Lv(e,t){hE(e,t);var n=zi(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")?_v(e,t.type,n):t.hasOwnProperty("defaultValue")&&_v(e,t.type,zi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tS(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 _v(e,t,n){(t!=="number"||Vh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qu=Array.isArray;function Jl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ad(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ld={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},uO=["Webkit","ms","Moz","O"];Object.keys(ld).forEach(function(e){uO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ld[t]=ld[e]})});function vE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ld.hasOwnProperty(e)&&ld[e]?(""+t).trim():t+"px"}function xE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dO=Qt({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 Bv(e,t){if(t){if(dO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Se(62))}}function Hv(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 Vv=null;function Xx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gv=null,ec=null,tc=null;function oS(e){if(e=$f(e)){if(typeof Gv!="function")throw Error(Se(280));var t=e.stateNode;t&&(t=lg(t),Gv(e.stateNode,e.type,t))}}function bE(e){ec?tc?tc.push(e):tc=[e]:ec=e}function wE(){if(ec){var e=ec,t=tc;if(tc=ec=null,oS(e),t)for(e=0;e>>=0,e===0?32:31-(CO(e)/SO|0)|0}var vp=64,xp=4194304;function Zu(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 Yh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Zu(a):(s&=i,s!==0&&(r=Zu(s)))}else i=n&~o,i!==0?r=Zu(i):s!==0&&(r=Zu(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Tf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bo(t),e[t]=n}function IO(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=ud),pS=" ",hS=!1;function BE(e,t){switch(e){case"keyup":return tj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ll=!1;function rj(e,t){switch(e){case"compositionend":return HE(t);case"keypress":return t.which!==32?null:(hS=!0,pS);case"textInput":return e=t.data,e===pS&&hS?null:e;default:return null}}function oj(e,t){if(Ll)return e==="compositionend"||!ob&&BE(e,t)?(e=NE(),fh=tb=ki=null,Ll=!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)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=vS(n)}}function UE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YE(){for(var e=window,t=Vh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vh(e.document)}return t}function sb(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 pj(e){var t=YE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&UE(n.ownerDocument.documentElement,n)){if(r!==null&&sb(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=xS(n,s);var i=xS(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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=document.documentMode,_l=null,Xv=null,fd=null,Qv=!1;function bS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qv||_l==null||_l!==Vh(r)||(r=_l,"selectionStart"in r&&sb(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}),fd&&Nd(fd,r)||(fd=r,r=Xh(Xv,"onSelect"),0Bl||(e.current=r1[Bl],r1[Bl]=null,Bl--)}function Ft(e,t){Bl++,r1[Bl]=e.current,e.current=t}var Bi={},Wn=Ki(Bi),mr=Ki(!1),Oa=Bi;function Cc(e,t){var n=e.type.contextTypes;if(!n)return Bi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gr(e){return e=e.childContextTypes,e!=null}function Zh(){Ht(mr),Ht(Wn)}function IS(e,t,n){if(Wn.current!==Bi)throw Error(Se(168));Ft(Wn,t),Ft(mr,n)}function nT(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(Se(108,lO(e)||"Unknown",o));return Qt({},n,r)}function Jh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bi,Oa=Wn.current,Ft(Wn,e),Ft(mr,mr.current),!0}function ES(e,t,n){var r=e.stateNode;if(!r)throw Error(Se(169));n?(e=nT(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,Ht(mr),Ht(Wn),Ft(Wn,e)):Ht(mr),Ft(mr,n)}var Ds=null,cg=!1,Py=!1;function rT(e){Ds===null?Ds=[e]:Ds.push(e)}function Pj(e){cg=!0,rT(e)}function qi(){if(!Py&&Ds!==null){Py=!0;var e=0,t=Pt;try{var n=Ds;for(Pt=1;e>=i,o-=i,Rs=1<<32-Bo(t)+o|n<E?($=T,T=null):$=T.sibling;var S=f(v,T,b[E],C);if(S===null){T===null&&(T=$);break}e&&T&&S.alternate===null&&t(v,T),w=s(S,w,E),M===null?k=S:M.sibling=S,M=S,T=$}if(E===b.length)return n(v,T),Yt&&ua(v,E),k;if(T===null){for(;EE?($=T,T=null):$=T.sibling;var D=f(v,T,S.value,C);if(D===null){T===null&&(T=$);break}e&&T&&D.alternate===null&&t(v,T),w=s(D,w,E),M===null?k=D:M.sibling=D,M=D,T=$}if(S.done)return n(v,T),Yt&&ua(v,E),k;if(T===null){for(;!S.done;E++,S=b.next())S=d(v,S.value,C),S!==null&&(w=s(S,w,E),M===null?k=S:M.sibling=S,M=S);return Yt&&ua(v,E),k}for(T=r(v,T);!S.done;E++,S=b.next())S=m(T,v,E,S.value,C),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?E:S.key),w=s(S,w,E),M===null?k=S:M.sibling=S,M=S);return e&&T.forEach(function(j){return t(v,j)}),Yt&&ua(v,E),k}function x(v,w,b,C){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case mp:e:{for(var k=b.key,M=w;M!==null;){if(M.key===k){if(k=b.type,k===Fl){if(M.tag===7){n(v,M.sibling),w=o(M,b.props.children),w.return=v,v=w;break e}}else if(M.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===gi&&$S(k)===M.type){n(v,M.sibling),w=o(M,b.props),w.ref=Iu(v,M,b),w.return=v,v=w;break e}n(v,M);break}else t(v,M);M=M.sibling}b.type===Fl?(w=Ma(b.props.children,v.mode,C,b.key),w.return=v,v=w):(C=bh(b.type,b.key,b.props,null,v.mode,C),C.ref=Iu(v,w,b),C.return=v,v=C)}return i(v);case jl:e:{for(M=b.key;w!==null;){if(w.key===M)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(v,w.sibling),w=o(w,b.children||[]),w.return=v,v=w;break e}else{n(v,w);break}else t(v,w);w=w.sibling}w=Ay(b,v.mode,C),w.return=v,v=w}return i(v);case gi:return M=b._init,x(v,w,M(b._payload),C)}if(Qu(b))return g(v,w,b,C);if(Cu(b))return y(v,w,b,C);Mp(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(v,w.sibling),w=o(w,b),w.return=v,v=w):(n(v,w),w=Ry(b,v.mode,C),w.return=v,v=w),i(v)):n(v,w)}return x}var kc=aT(!0),lT=aT(!1),nm=Ki(null),rm=null,Gl=null,cb=null;function ub(){cb=Gl=rm=null}function db(e){var t=nm.current;Ht(nm),e._currentValue=t}function i1(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 rc(e,t){rm=e,cb=Gl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pr=!0),e.firstContext=null)}function vo(e){var t=e._currentValue;if(cb!==e)if(e={context:e,memoizedValue:t,next:null},Gl===null){if(rm===null)throw Error(Se(308));Gl=e,rm.dependencies={lanes:0,firstContext:e}}else Gl=Gl.next=e;return t}var xa=null;function fb(e){xa===null?xa=[e]:xa.push(e)}function cT(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,fb(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ws(e,r)}function Ws(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 yi=!1;function pb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uT(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 Fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ws(e,n)}return o=r.interleaved,o===null?(t.next=t,fb(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ws(e,n)}function hh(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,Zx(e,n)}}function RS(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 om(e,t,n,r){var o=e.updateQueue;yi=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,u=c=l=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(f=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(m,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(m,d,f):g,f==null)break e;d=Qt({},d,f);break e;case 2:yi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,i|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=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 i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);La|=i,e.lanes=i,e.memoizedState=d}}function AS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Iy.transition;Iy.transition={};try{e(!1),t()}finally{Pt=n,Iy.transition=r}}function IT(){return xo().memoizedState}function Tj(e,t,n){var r=Li(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ET(e))TT(t,n);else if(n=cT(e,t,n,r),n!==null){var o=tr();Ho(n,e,r,o),DT(n,t,r)}}function Dj(e,t,n){var r=Li(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ET(e))TT(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Wo(a,i)){var l=t.interleaved;l===null?(o.next=o,fb(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=cT(e,t,o,r),n!==null&&(o=tr(),Ho(n,e,r,o),DT(n,t,r))}}function ET(e){var t=e.alternate;return e===Xt||t!==null&&t===Xt}function TT(e,t){pd=im=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zx(e,n)}}var am={readContext:vo,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useInsertionEffect:Nn,useLayoutEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useDeferredValue:Nn,useTransition:Nn,useMutableSource:Nn,useSyncExternalStore:Nn,useId:Nn,unstable_isNewReconciler:!1},$j={readContext:vo,useCallback:function(e,t){return es().memoizedState=[e,t===void 0?null:t],e},useContext:vo,useEffect:jS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gh(4194308,4,CT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gh(4194308,4,e,t)},useInsertionEffect:function(e,t){return gh(4,2,e,t)},useMemo:function(e,t){var n=es();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=es();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=Tj.bind(null,Xt,e),[r.memoizedState,e]},useRef:function(e){var t=es();return e={current:e},t.memoizedState=e},useState:OS,useDebugValue:wb,useDeferredValue:function(e){return es().memoizedState=e},useTransition:function(){var e=OS(!1),t=e[0];return e=Ej.bind(null,e[1]),es().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xt,o=es();if(Yt){if(n===void 0)throw Error(Se(407));n=n()}else{if(n=t(),Sn===null)throw Error(Se(349));Fa&30||hT(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,jS(gT.bind(null,r,s,e),[e]),r.flags|=2048,Yd(9,mT.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=es(),t=Sn.identifierPrefix;if(Yt){var n=As,r=Rs;n=(r&~(1<<32-Bo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ss]=t,e[Hd]=r,zT(e,t,!1,!1),t.stateNode=e;e:{switch(i=Hv(n,r),n){case"dialog":zt("cancel",e),zt("close",e),o=r;break;case"iframe":case"object":case"embed":zt("load",e),o=r;break;case"video":case"audio":for(o=0;oIc&&(t.flags|=128,r=!0,Eu(s,!1),t.lanes=4194304)}else{if(!r)if(e=sm(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eu(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Yt)return zn(t),null}else 2*an()-s.renderingStartTime>Ic&&n!==1073741824&&(t.flags|=128,r=!0,Eu(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=an(),t.sibling=null,n=Kt.current,Ft(Kt,r?n&1|2:n&1),t):(zn(t),null);case 22:case 23:return Ib(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Er&1073741824&&(zn(t),t.subtreeFlags&6&&(t.flags|=8192)):zn(t),null;case 24:return null;case 25:return null}throw Error(Se(156,t.tag))}function Nj(e,t){switch(ab(t),t.tag){case 1:return gr(t.type)&&Zh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pc(),Ht(mr),Ht(Wn),gb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mb(t),null;case 13:if(Ht(Kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Se(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Kt),null;case 4:return Pc(),null;case 10:return db(t.type._context),null;case 22:case 23:return Ib(),null;case 24:return null;default:return null}}var Ep=!1,Hn=!1,zj=typeof WeakSet=="function"?WeakSet:Set,ze=null;function Wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function m1(e,t,n){try{n()}catch(r){rn(e,t,r)}}var US=!1;function Bj(e,t){if(Zv=Kh,e=YE(),sb(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=i),f===s&&++u===r&&(l=i),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jv={focusedElem:e,selectionRange:n},Kh=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,v=t.stateNode,w=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ao(t.type,y),x);v.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Se(163))}}catch(C){rn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return g=US,US=!1,g}function hd(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 s=o.destroy;o.destroy=void 0,s!==void 0&&m1(t,n,s)}o=o.next}while(o!==r)}}function fg(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 g1(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 VT(e){var t=e.alternate;t!==null&&(e.alternate=null,VT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ss],delete t[Hd],delete t[n1],delete t[Sj],delete t[kj])),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 GT(e){return e.tag===5||e.tag===3||e.tag===4}function YS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GT(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 y1(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=Qh));else if(r!==4&&(e=e.child,e!==null))for(y1(e,t,n),e=e.sibling;e!==null;)y1(e,t,n),e=e.sibling}function v1(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(v1(e,t,n),e=e.sibling;e!==null;)v1(e,t,n),e=e.sibling}var Tn=null,jo=!1;function di(e,t,n){for(n=n.child;n!==null;)WT(e,t,n),n=n.sibling}function WT(e,t,n){if(cs&&typeof cs.onCommitFiberUnmount=="function")try{cs.onCommitFiberUnmount(og,n)}catch{}switch(n.tag){case 5:Hn||Wl(n,t);case 6:var r=Tn,o=jo;Tn=null,di(e,t,n),Tn=r,jo=o,Tn!==null&&(jo?(e=Tn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Tn.removeChild(n.stateNode));break;case 18:Tn!==null&&(jo?(e=Tn,n=n.stateNode,e.nodeType===8?ky(e.parentNode,n):e.nodeType===1&&ky(e,n),Ld(e)):ky(Tn,n.stateNode));break;case 4:r=Tn,o=jo,Tn=n.stateNode.containerInfo,jo=!0,di(e,t,n),Tn=r,jo=o;break;case 0:case 11:case 14:case 15:if(!Hn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&m1(n,t,i),o=o.next}while(o!==r)}di(e,t,n);break;case 1:if(!Hn&&(Wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){rn(n,t,a)}di(e,t,n);break;case 21:di(e,t,n);break;case 22:n.mode&1?(Hn=(r=Hn)||n.memoizedState!==null,di(e,t,n),Hn=r):di(e,t,n);break;default:di(e,t,n)}}function KS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zj),t.forEach(function(r){var o=Xj.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $o(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=an()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vj(r/1960))-r,10e?16:e,Pi===null)var r=!1;else{if(e=Pi,Pi=null,um=0,gt&6)throw Error(Se(331));var o=gt;for(gt|=4,ze=e.current;ze!==null;){var s=ze,i=s.child;if(ze.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lan()-Pb?Pa(e,0):kb|=n),yr(e,t)}function JT(e,t){t===0&&(e.mode&1?(t=xp,xp<<=1,!(xp&130023424)&&(xp=4194304)):t=1);var n=tr();e=Ws(e,t),e!==null&&(Tf(e,t,n),yr(e,n))}function qj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JT(e,n)}function Xj(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(Se(314))}r!==null&&r.delete(t),JT(e,n)}var e5;e5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mr.current)pr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pr=!1,Lj(e,t,n);pr=!!(e.flags&131072)}else pr=!1,Yt&&t.flags&1048576&&oT(t,tm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yh(e,t),e=t.pendingProps;var o=Cc(t,Wn.current);rc(t,n),o=vb(null,t,r,e,o,n);var s=xb();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,gr(r)?(s=!0,Jh(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pb(t),o.updater=dg,t.stateNode=o,o._reactInternals=t,l1(t,r,e,n),t=d1(null,t,r,!0,s,n)):(t.tag=0,Yt&&s&&ib(t),Qn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zj(r),e=Ao(r,e),o){case 0:t=u1(null,t,r,e,n);break e;case 1:t=VS(null,t,r,e,n);break e;case 11:t=BS(null,t,r,e,n);break e;case 14:t=HS(null,t,r,Ao(r.type,e),n);break e}throw Error(Se(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),u1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),VS(e,t,r,o,n);case 3:e:{if(LT(t),e===null)throw Error(Se(387));r=t.pendingProps,s=t.memoizedState,o=s.element,uT(e,t),om(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Mc(Error(Se(423)),t),t=GS(e,t,r,n,o);break e}else if(r!==o){o=Mc(Error(Se(424)),t),t=GS(e,t,r,n,o);break e}else for(Or=Oi(t.stateNode.containerInfo.firstChild),Lr=t,Yt=!0,Fo=null,n=lT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),r===o){t=Us(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return dT(t),e===null&&s1(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,e1(r,o)?i=null:s!==null&&e1(r,s)&&(t.flags|=32),FT(e,t),Qn(e,t,i,n),t.child;case 6:return e===null&&s1(t),null;case 13:return _T(e,t,n);case 4:return hb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kc(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),BS(e,t,r,o,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Ft(nm,r._currentValue),r._currentValue=i,s!==null)if(Wo(s.value,i)){if(s.children===o.children&&!mr.current){t=Us(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Fs(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),i1(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(Se(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),i1(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,rc(t,n),o=vo(o),r=r(o),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,o=Ao(r,t.pendingProps),o=Ao(r.type,o),HS(e,t,r,o,n);case 15:return OT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),yh(e,t),t.tag=1,gr(r)?(e=!0,Jh(t)):e=!1,rc(t,n),$T(t,r,o),l1(t,r,o,n),d1(null,t,r,!0,e,n);case 19:return NT(e,t,n);case 22:return jT(e,t,n)}throw Error(Se(156,t.tag))};function t5(e,t){return EE(e,t)}function Qj(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 co(e,t,n,r){return new Qj(e,t,n,r)}function Tb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zj(e){if(typeof e=="function")return Tb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kx)return 11;if(e===qx)return 14}return 2}function _i(e,t){var n=e.alternate;return n===null?(n=co(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 bh(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Tb(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ma(n.children,o,s,t);case Yx:i=8,o|=8;break;case Rv:return e=co(12,n,t,o|2),e.elementType=Rv,e.lanes=s,e;case Av:return e=co(13,n,t,o),e.elementType=Av,e.lanes=s,e;case Ov:return e=co(19,n,t,o),e.elementType=Ov,e.lanes=s,e;case dE:return hg(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cE:i=10;break e;case uE:i=9;break e;case Kx:i=11;break e;case qx:i=14;break e;case gi:i=16,r=null;break e}throw Error(Se(130,e==null?e:typeof e,""))}return t=co(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Ma(e,t,n,r){return e=co(7,e,r,t),e.lanes=n,e}function hg(e,t,n,r){return e=co(22,e,r,t),e.elementType=dE,e.lanes=n,e.stateNode={isHidden:!1},e}function Ry(e,t,n){return e=co(6,e,null,t),e.lanes=n,e}function Ay(e,t,n){return t=co(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jj(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=py(0),this.expirationTimes=py(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=py(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Db(e,t,n,r,o,s,i,a,l){return e=new Jj(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=co(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pb(s),e}function eF(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s5)}catch(e){console.error(e)}}s5(),sE.exports=Gr;var Af=sE.exports;const $p=ei(Af);var i5,n2=Af;i5=n2.createRoot,n2.hydrateRoot;class sF extends h.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Error caught by ErrorBoundary:",t,n)}render(){return this.state.hasError?p.jsx("h1",{children:"Something went wrong."}):this.props.children}}/** - * @remix-run/router v1.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function a5(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aF(){return Math.random().toString(36).substr(2,8)}function o2(e,t){return{usr:e.state,key:e.key,idx:t}}function S1(e,t,n,r){return n===void 0&&(n=null),qd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jc(t):t,{state:n,key:t&&t.key||r||aF()})}function l5(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 Jc(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 lF(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Mi.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(qd({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){a=Mi.Pop;let x=u(),v=x==null?null:x-c;c=x,l&&l({action:a,location:y.location,delta:v})}function f(x,v){a=Mi.Push;let w=S1(y.location,x,v);c=u()+1;let b=o2(w,c),C=y.createHref(w);try{i.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(C)}s&&l&&l({action:a,location:y.location,delta:1})}function m(x,v){a=Mi.Replace;let w=S1(y.location,x,v);c=u();let b=o2(w,c),C=y.createHref(w);i.replaceState(b,"",C),s&&l&&l({action:a,location:y.location,delta:0})}function g(x){let v=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof x=="string"?x:l5(x);return w=w.replace(/ $/,"%20"),yn(v,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,v)}let y={get action(){return a},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(r2,d),l=x,()=>{o.removeEventListener(r2,d),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let v=g(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:m,go(x){return i.go(x)}};return y}var s2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(s2||(s2={}));function cF(e,t,n){return n===void 0&&(n="/"),uF(e,t,n,!1)}function uF(e,t,n,r){let o=typeof t=="string"?Jc(t):t,s=d5(o.pathname||"/",n);if(s==null)return null;let i=c5(e);dF(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(yn(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=Ia([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(yn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),c5(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:vF(c,s.index),routesMeta:u})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of u5(s.path))o(s,i,l)}),t}function u5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=u5(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function dF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fF=/^:[\w-]+$/,pF=3,hF=2,mF=1,gF=10,yF=-2,i2=e=>e==="*";function vF(e,t){let n=e.split("/"),r=n.length;return n.some(i2)&&(r+=yF),t&&(r+=hF),n.filter(o=>!i2(o)).reduce((o,s)=>o+(fF.test(s)?pF:s===""?mF:gF),r)}function xF(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 bF(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:f,isOptional:m}=u;if(f==="*"){let y=a[d]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[d];return m&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function wF(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),a5(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,(i,a,l)=>(r.push({paramName:a,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 CF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return a5(!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 d5(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 SF(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Jc(e):e;return{pathname:n?n.startsWith("/")?n:kF(n,t):t,search:TF(r),hash:DF(o)}}function kF(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 Oy(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 and the router will parse it for you.'}function PF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function MF(e,t){let n=PF(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function IF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Jc(e):(o=qd({},e),yn(!o.pathname||!o.pathname.includes("?"),Oy("?","pathname","search",o)),yn(!o.pathname||!o.pathname.includes("#"),Oy("#","pathname","hash",o)),yn(!o.search||!o.search.includes("#"),Oy("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=SF(o,a),c=i&&i!=="/"&&i.endsWith("/"),u=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ia=e=>e.join("/").replace(/\/\/+/g,"/"),EF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $F(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const f5=["post","put","patch","delete"];new Set(f5);const RF=["get",...f5];new Set(RF);/** - * React Router v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=IF(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ia([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,s,e])}function FF(e,t){return LF(e,t)}function LF(e,t,n,r){wg()||yn(!1);let{navigator:o}=h.useContext(xg),{matches:s}=h.useContext(eu),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=h5(),u;if(t){var d;let x=typeof t=="string"?Jc(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||yn(!1),u=x}else u=c;let f=u.pathname||"/",m=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=cF(e,{pathname:m}),y=HF(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ia([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ia([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&y?h.createElement(bg.Provider,{value:{location:Xd({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Mi.Pop}},y):y}function _F(){let e=UF(),t=$F(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const NF=h.createElement(_F,null);class zF extends h.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?h.createElement(eu.Provider,{value:this.props.routeContext},h.createElement(p5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BF(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ob);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(eu.Provider,{value:t},r)}function HF(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||yn(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let m,g=!1,y=null,x=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||NF,l&&(c<0&&f===0?(g=!0,x=null):c===f&&(g=!0,x=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,f+1)),w=()=>{let b;return m?b=y:g?b=x:d.route.Component?b=h.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,h.createElement(BF,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(zF,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):w()},null)}var g5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g5||{}),pm=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}(pm||{});function VF(e){let t=h.useContext(Ob);return t||yn(!1),t}function GF(e){let t=h.useContext(AF);return t||yn(!1),t}function WF(e){let t=h.useContext(eu);return t||yn(!1),t}function y5(e){let t=WF(),n=t.matches[t.matches.length-1];return n.route.id||yn(!1),n.route.id}function UF(){var e;let t=h.useContext(p5),n=GF(pm.UseRouteError),r=y5(pm.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function YF(){let{router:e}=VF(g5.UseNavigateStable),t=y5(pm.UseNavigateStable),n=h.useRef(!1);return m5(()=>{n.current=!0}),h.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Xd({fromRouteId:t},s)))},[e,t])}const l2={};function KF(e,t){l2[t]||(l2[t]=!0,console.warn(t))}const c2=(e,t,n)=>KF(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function qF(e,t){e!=null&&e.v7_startTransition||c2("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&c2("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function fa(e){yn(!1)}function XF(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Mi.Pop,navigator:s,static:i=!1,future:a}=e;wg()&&yn(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:s,static:i,future:Xd({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Jc(r));let{pathname:u="/",search:d="",hash:f="",state:m=null,key:g="default"}=r,y=h.useMemo(()=>{let x=d5(u,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:m,key:g},navigationType:o}},[l,u,d,f,m,g,o]);return y==null?null:h.createElement(xg.Provider,{value:c},h.createElement(bg.Provider,{children:n,value:y}))}function QF(e){let{children:t,location:n}=e;return FF(k1(t),n)}new Promise(()=>{});function k1(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let s=[...t,o];if(r.type===h.Fragment){n.push.apply(n,k1(r.props.children,s));return}r.type!==fa&&yn(!1),!r.props.index||!r.props.children||yn(!1);let i={id:r.props.id||s.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&&(i.children=k1(r.props.children,s)),n.push(i)}),n}/** - * React Router DOM v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const ZF="6";try{window.__reactRouterVersion=ZF}catch{}const JF="startTransition",u2=Aa[JF];function eL(e){let{basename:t,children:n,future:r,window:o}=e,s=h.useRef();s.current==null&&(s.current=iF({window:o,v5Compat:!0}));let i=s.current,[a,l]=h.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=h.useCallback(d=>{c&&u2?u2(()=>l(d)):l(d)},[l,c]);return h.useLayoutEffect(()=>i.listen(u),[i,u]),h.useEffect(()=>qF(r),[r]),h.createElement(XF,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var d2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d2||(d2={}));var f2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f2||(f2={}));var v5={exports:{}},tL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nL=tL,rL=nL;function x5(){}function b5(){}b5.resetWarningCache=x5;var oL=function(){function e(r,o,s,i,a,l){if(l!==rL){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:b5,resetWarningCache:x5};return n.PropTypes=n,n};v5.exports=oL();var sL=v5.exports;const V=ei(sL);function Ys(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 ae(e){if(typeof e!="string")throw new Error(Ys(7));return e.charAt(0).toUpperCase()+e.slice(1)}function is(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 w5(e){if(!is(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=w5(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return is(e)&&is(t)&&Object.keys(t).forEach(o=>{is(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&is(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=is(t[o])?w5(t[o]):t[o]:r[o]=t[o]}),r}function yd(e,t){return t?kn(e,t,{clone:!1}):e}function iL(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=r.match(s))==null?void 0:i[1])||0)-+(((a=o.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function aL(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function lL(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function cL(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);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=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Cg={xs:0,sm:600,md:900,lg:1200,xl:1536},p2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cg[e]}px)`},uL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Cg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||p2;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||p2;return Object.keys(t).reduce((i,a)=>{if(aL(s.keys,a)){const l=lL(r.containerQueries?r:uL,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Cg).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function C5(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function S5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function dL(e,...t){const n=C5(e),r=[n,...t].reduce((o,s)=>kn(o,s),{});return S5(Object.keys(n),r)}function fL(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s{e[o]!=null&&(n[o]=!0)}),n}function Ea({values:e,breakpoints:t,base:n}){const r=n||fL(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((i,a,l)=>(Array.isArray(e)?(i[a]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(i[a]=e[a]!=null?e[a]:e[s],s=a):i[a]=e,i),{})}function Ec(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function hm(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ec(e,n)||r,t&&(o=t(o,r,e)),o}function ln(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Ec(l,r)||{};return br(i,a,d=>{let f=hm(c,o,d);return d===f&&typeof d=="string"&&(f=hm(c,o,`${t}${d==="default"?"":ae(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function pL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hL={m:"margin",p:"padding"},mL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},h2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gL=pL(e=>{if(e.length>2)if(h2[e])e=h2[e];else return[e];const[t,n]=e.split(""),r=hL[t],o=mL[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),jb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jb,...Fb];function Of(e,t,n,r){const o=Ec(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:`-${a}`}:typeof o=="function"?o:()=>{}}function Sg(e){return Of(e,"spacing",8)}function Na(e,t){return typeof t=="string"||t==null?t:e(t)}function yL(e,t){return n=>e.reduce((r,o)=>(r[o]=Na(t,n),r),{})}function vL(e,t,n,r){if(!t.includes(n))return null;const o=gL(n),s=yL(o,r),i=e[n];return br(e,i,s)}function k5(e,t){const n=Sg(e.theme);return Object.keys(e).map(r=>vL(e,t,r,n)).reduce(yd,{})}function en(e){return k5(e,jb)}en.propTypes={};en.filterProps=jb;function tn(e){return k5(e,Fb)}tn.propTypes={};tn.filterProps=Fb;function kg(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?yd(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function oo(e){return typeof e!="number"?e:`${e}px solid`}function Po(e,t){return ln({prop:e,themeKey:"borders",transform:t})}const xL=Po("border",oo),bL=Po("borderTop",oo),wL=Po("borderRight",oo),CL=Po("borderBottom",oo),SL=Po("borderLeft",oo),kL=Po("borderColor"),PL=Po("borderTopColor"),ML=Po("borderRightColor"),IL=Po("borderBottomColor"),EL=Po("borderLeftColor"),TL=Po("outline",oo),DL=Po("outlineColor"),Pg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Of(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Na(t,r)});return br(e,e.borderRadius,n)}return null};Pg.propTypes={};Pg.filterProps=["borderRadius"];kg(xL,bL,wL,CL,SL,kL,PL,ML,IL,EL,Pg,TL,DL);const Mg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Of(e.theme,"spacing",8),n=r=>({gap:Na(t,r)});return br(e,e.gap,n)}return null};Mg.propTypes={};Mg.filterProps=["gap"];const Ig=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Of(e.theme,"spacing",8),n=r=>({columnGap:Na(t,r)});return br(e,e.columnGap,n)}return null};Ig.propTypes={};Ig.filterProps=["columnGap"];const Eg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Of(e.theme,"spacing",8),n=r=>({rowGap:Na(t,r)});return br(e,e.rowGap,n)}return null};Eg.propTypes={};Eg.filterProps=["rowGap"];const $L=ln({prop:"gridColumn"}),RL=ln({prop:"gridRow"}),AL=ln({prop:"gridAutoFlow"}),OL=ln({prop:"gridAutoColumns"}),jL=ln({prop:"gridAutoRows"}),FL=ln({prop:"gridTemplateColumns"}),LL=ln({prop:"gridTemplateRows"}),_L=ln({prop:"gridTemplateAreas"}),NL=ln({prop:"gridArea"});kg(Mg,Ig,Eg,$L,RL,AL,OL,jL,FL,LL,_L,NL);function sc(e,t){return t==="grey"?t:e}const zL=ln({prop:"color",themeKey:"palette",transform:sc}),BL=ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sc}),HL=ln({prop:"backgroundColor",themeKey:"palette",transform:sc});kg(zL,BL,HL);function Rr(e){return e<=1&&e!==0?`${e*100}%`:e}const VL=ln({prop:"width",transform:Rr}),Lb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,i,a,l;const r=((i=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||Cg[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Rr(n)}};return br(e,e.maxWidth,t)}return null};Lb.filterProps=["maxWidth"];const GL=ln({prop:"minWidth",transform:Rr}),WL=ln({prop:"height",transform:Rr}),UL=ln({prop:"maxHeight",transform:Rr}),YL=ln({prop:"minHeight",transform:Rr});ln({prop:"size",cssProperty:"width",transform:Rr});ln({prop:"size",cssProperty:"height",transform:Rr});const KL=ln({prop:"boxSizing"});kg(VL,Lb,GL,WL,UL,YL,KL);const jf={border:{themeKey:"borders",transform:oo},borderTop:{themeKey:"borders",transform:oo},borderRight:{themeKey:"borders",transform:oo},borderBottom:{themeKey:"borders",transform:oo},borderLeft:{themeKey:"borders",transform:oo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pg},color:{themeKey:"palette",transform:sc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sc},backgroundColor:{themeKey:"palette",transform:sc},p:{style:tn},pt:{style:tn},pr:{style:tn},pb:{style:tn},pl:{style:tn},px:{style:tn},py:{style:tn},padding:{style:tn},paddingTop:{style:tn},paddingRight:{style:tn},paddingBottom:{style:tn},paddingLeft:{style:tn},paddingX:{style:tn},paddingY:{style:tn},paddingInline:{style:tn},paddingInlineStart:{style:tn},paddingInlineEnd:{style:tn},paddingBlock:{style:tn},paddingBlockStart:{style:tn},paddingBlockEnd:{style:tn},m:{style:en},mt:{style:en},mr:{style:en},mb:{style:en},ml:{style:en},mx:{style:en},my:{style:en},margin:{style:en},marginTop:{style:en},marginRight:{style:en},marginBottom:{style:en},marginLeft:{style:en},marginX:{style:en},marginY:{style:en},marginInline:{style:en},marginInlineStart:{style:en},marginInlineEnd:{style:en},marginBlock:{style:en},marginBlockStart:{style:en},marginBlockEnd:{style:en},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:Mg},rowGap:{style:Eg},columnGap:{style:Ig},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rr},maxWidth:{style:Lb},minWidth:{transform:Rr},height:{transform:Rr},maxHeight:{transform:Rr},minHeight:{transform:Rr},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 qL(...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 XL(e,t){return typeof e=="function"?e(t):e}function QL(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Ec(o,c)||{};return d?d(i):br(i,r,g=>{let y=hm(f,u,g);return g===y&&typeof g=="string"&&(y=hm(f,u,`${n}${g==="default"?"":ae(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=o.unstable_sxConfig??jf;function i(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=C5(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const m=XL(l[f],o);if(m!=null)if(typeof m=="object")if(s[f])d=yd(d,e(f,m,o,s));else{const g=br({theme:o},m,y=>({[f]:y}));qL(g,m)?d[f]=t({sx:m,theme:o}):d=yd(d,g)}else d=yd(d,e(f,m,o,s))}),iL(o,S5(u,d))}return Array.isArray(r)?r.map(i):i(r)}return t}const Hi=QL();Hi.filterProps=["sx"];const ZL=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??jf;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Ff(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=ZL(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return is(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?$n(tu,--wr):0,Tc--,un===10&&(Tc=1,Dg--),un}function _r(){return un=wr2||Zd(un)>3?"":" "}function m6(e,t){for(;--t&&_r()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return Lf(e,wh()+(t<6&&ds()==32&&_r()==32))}function M1(e){for(;_r();)switch(un){case e:return wr;case 34:case 39:e!==34&&e!==39&&M1(un);break;case 40:e===41&&M1(e);break;case 92:_r();break}return wr}function g6(e,t){for(;_r()&&e+un!==57;)if(e+un===84&&ds()===47)break;return"/*"+Lf(t,wr-1)+"*"+Tg(e===47?e:_r())}function y6(e){for(;!Zd(ds());)_r();return Lf(e,wr)}function v6(e){return $5(Sh("",null,null,null,[""],e=D5(e),0,[0],e))}function Sh(e,t,n,r,o,s,i,a,l){for(var c=0,u=0,d=i,f=0,m=0,g=0,y=1,x=1,v=1,w=0,b="",C=o,k=s,M=r,T=b;x;)switch(g=w,w=_r()){case 40:if(g!=108&&$n(T,d-1)==58){P1(T+=Ct(Ch(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Ch(w);break;case 9:case 10:case 13:case 32:T+=h6(g);break;case 92:T+=m6(wh()-1,7);continue;case 47:switch(ds()){case 42:case 47:Rp(x6(g6(_r(),wh()),t,n),l);break;default:T+="/"}break;case 123*y:a[c++]=ns(T)*v;case 125*y:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+u:v==-1&&(T=Ct(T,/\f/g,"")),m>0&&ns(T)-d&&Rp(m>32?g2(T+";",r,n,d-1):g2(Ct(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Rp(M=m2(T,t,n,c,u,o,a,b,C=[],k=[],d),s),w===123)if(u===0)Sh(T,t,M,M,C,s,d,a,k);else switch(f===99&&$n(T,3)===110?100:f){case 100:case 108:case 109:case 115:Sh(e,M,M,r&&Rp(m2(e,M,M,0,0,o,a,b,o,C=[],d),k),o,k,d,a,r?C:k);break;default:Sh(T,M,M,M,[""],k,0,a,k)}}c=u=m=0,y=v=1,b=T="",d=i;break;case 58:d=1+ns(T),m=g;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&p6()==125)continue}switch(T+=Tg(w),w*y){case 38:v=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(ns(T)-1)*v,v=1;break;case 64:ds()===45&&(T+=Ch(_r())),f=ds(),u=d=ns(b=T+=y6(wh())),w++;break;case 45:g===45&&ns(T)==2&&(y=0)}}return s}function m2(e,t,n,r,o,s,i,a,l,c,u){for(var d=o-1,f=o===0?s:[""],m=zb(f),g=0,y=0,x=0;g0?f[v]+" "+w:Ct(w,/&\f/g,f[v])))&&(l[x++]=b);return $g(e,t,n,o===0?_b:a,l,c,u)}function x6(e,t,n){return $g(e,t,n,M5,Tg(f6()),Qd(e,2,-2),0)}function g2(e,t,n,r){return $g(e,t,n,Nb,Qd(e,0,r),Qd(e,r+1,-1),r)}function ic(e,t){for(var n="",r=zb(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+mm+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~P1(e,"stretch")?R5(Ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,ns(e)-3-(~P1(e,"!important")&&10))){case 107:return Ct(e,":",":"+wt)+e;case 101:return Ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+($n(e,14)===45?"inline-":"")+"box$3$1"+wt+"$2$3$1"+Bn+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return wt+e+Bn+Ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+Bn+Ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+Bn+Ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+Bn+e+e}return e}var E6=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Nb:t.return=R5(t.value,t.length);break;case I5:return ic([Du(t,{value:Ct(t.value,"@","@"+wt)})],o);case _b:if(t.length)return d6(t.props,function(s){switch(u6(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ic([Du(t,{props:[Ct(s,/:(read-\w+)/,":"+mm+"$1")]})],o);case"::placeholder":return ic([Du(t,{props:[Ct(s,/:(plac\w+)/,":"+wt+"input-$1")]}),Du(t,{props:[Ct(s,/:(plac\w+)/,":"+mm+"$1")]}),Du(t,{props:[Ct(s,/:(plac\w+)/,Bn+"input-$1")]})],o)}return""})}},T6=[E6],D6=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(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||T6,s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),v=1;v=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 H6={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},V6=!1,G6=/[A-Z]|^ms/g,W6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,N5=function(t){return t.charCodeAt(1)===45},v2=function(t){return t!=null&&typeof t!="boolean"},jy=P5(function(e){return N5(e)?e:e.replace(G6,"-$&").toLowerCase()}),x2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(W6,function(r,o,s){return rs={name:o,styles:s,next:rs},o})}return H6[t]!==1&&!N5(t)&&typeof n=="number"&&n!==0?n+"px":n},U6="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Jd(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 rs={name:o.name,styles:o.styles,next:rs},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)rs={name:i.name,styles:i.styles,next:rs},i=i.next;var a=s.styles+";";return a}return Y6(e,t,n)}case"function":{if(e!==void 0){var l=rs,c=n(e);return rs=l,Jd(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Y6(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Q6:Z6},S2=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},J6=!1,e_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return L5(n,r,o),q6(function(){return _5(n,r,o)}),null},t_=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var a=S2(t,n,r),l=a||C2(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,m=1;mt(r_(o)?n:o):t;return p.jsx(X6,{styles:r})}/** - * @mui/styled-engine v6.1.7 - * - * @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 G5(e,t){return I1(e,t)}function o_(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const k2=[];function P2(e){return k2[0]=e,Hg(k2)}const s_=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 i_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=s_(t),i=Object.keys(s);function a(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,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-r/100}${n})`}function u(f){return i.indexOf(f)+1(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function l_(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 nu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=i_(n),l=W5(o);let c=kn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...a_,...s}},i);return c=cL(c),c.applyStyles=l_,c=t.reduce((u,d)=>kn(u,d),c),c.unstable_sxConfig={...jf,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(d){return Hi({sx:d,theme:this})},c}function c_(e){return Object.keys(e).length===0}function Gb(e=null){const t=h.useContext(Vg);return!t||c_(t)?e:t}const u_=nu();function Ja(e=u_){return Gb(e)}function d_({styles:e,themeId:t,defaultTheme:n={}}){const r=Ja(n),o=typeof e=="function"?e(t&&r[t]||r):e;return p.jsx(V5,{styles:o})}const M2=e=>e,f_=()=>{let e=M2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=M2}}},U5=f_();function Y5(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(Hi);return h.forwardRef(function(l,c){const u=Ja(n),{className:d,component:f="div",...m}=Ff(l);return p.jsx(s,{as:f,ref:c,className:se(d,o?o(r):r),theme:t&&u[t]||u,...m})})}const h_={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 ve(e,t,n="Mui"){const r=h_[t];return r?`${n}-${r}`:`${U5.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ve(e,o,n)}),r}var Rt={};/** - * @license React - * 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 Wb=Symbol.for("react.element"),Ub=Symbol.for("react.portal"),Gg=Symbol.for("react.fragment"),Wg=Symbol.for("react.strict_mode"),Ug=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Kg=Symbol.for("react.context"),m_=Symbol.for("react.server_context"),qg=Symbol.for("react.forward_ref"),Xg=Symbol.for("react.suspense"),Qg=Symbol.for("react.suspense_list"),Zg=Symbol.for("react.memo"),Jg=Symbol.for("react.lazy"),g_=Symbol.for("react.offscreen"),K5;K5=Symbol.for("react.module.reference");function Mo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wb:switch(e=e.type,e){case Gg:case Ug:case Wg:case Xg:case Qg:return e;default:switch(e=e&&e.$$typeof,e){case m_:case Kg:case qg:case Jg:case Zg:case Yg:return e;default:return t}}case Ub:return t}}}Rt.ContextConsumer=Kg;Rt.ContextProvider=Yg;Rt.Element=Wb;Rt.ForwardRef=qg;Rt.Fragment=Gg;Rt.Lazy=Jg;Rt.Memo=Zg;Rt.Portal=Ub;Rt.Profiler=Ug;Rt.StrictMode=Wg;Rt.Suspense=Xg;Rt.SuspenseList=Qg;Rt.isAsyncMode=function(){return!1};Rt.isConcurrentMode=function(){return!1};Rt.isContextConsumer=function(e){return Mo(e)===Kg};Rt.isContextProvider=function(e){return Mo(e)===Yg};Rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wb};Rt.isForwardRef=function(e){return Mo(e)===qg};Rt.isFragment=function(e){return Mo(e)===Gg};Rt.isLazy=function(e){return Mo(e)===Jg};Rt.isMemo=function(e){return Mo(e)===Zg};Rt.isPortal=function(e){return Mo(e)===Ub};Rt.isProfiler=function(e){return Mo(e)===Ug};Rt.isStrictMode=function(e){return Mo(e)===Wg};Rt.isSuspense=function(e){return Mo(e)===Xg};Rt.isSuspenseList=function(e){return Mo(e)===Qg};Rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gg||e===Ug||e===Wg||e===Xg||e===Qg||e===g_||typeof e=="object"&&e!==null&&(e.$$typeof===Jg||e.$$typeof===Zg||e.$$typeof===Yg||e.$$typeof===Kg||e.$$typeof===qg||e.$$typeof===K5||e.getModuleId!==void 0)};Rt.typeOf=Mo;function q5(e){const{variants:t,...n}=e,r={variants:t,style:P2(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=P2(o.style))}),r}const y_=nu();function vd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function v_(e){return e?(t,n)=>n[e]:null}function x_(e,t,n){e.theme=w_(e.theme)?n:e.theme[t]||e.theme}function kh(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>kh(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...s}=n;r=s}return X5(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function X5(e,t,n=[]){var o;let r;e:for(let s=0;s{o_(a,k=>k.filter(M=>M!==Hi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=v_(S_(u)),...g}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let v=vd;u==="Root"||u==="root"?v=r:u?v=o:C_(a)&&(v=void 0);const w=G5(a,{shouldForwardProp:v,label:b_(),...g}),b=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(T){return kh(T,k)};if(is(k)){const M=q5(k);return M.variants?function(E){return kh(E,M)}:M.style}return k},C=(...k)=>{const M=[],T=k.map(b),E=[];if(M.push(s),c&&m&&E.push(function(j){var I,L;const A=(L=(I=j.theme.components)==null?void 0:I[c])==null?void 0:L.styleOverrides;if(!A)return null;const R={};for(const O in A)R[O]=kh(j,A[O]);return m(j,R)}),c&&!y&&E.push(function(j){var R,I;const F=j.theme,A=(I=(R=F==null?void 0:F.components)==null?void 0:R[c])==null?void 0:I.variants;return A?X5(j,A):null}),x||E.push(Hi),Array.isArray(T[0])){const D=T.shift(),j=new Array(M.length).fill(""),F=new Array(E.length).fill("");let A;A=[...j,...D,...F],A.raw=[...j,...D.raw,...F],M.unshift(A)}const $=[...M,...T,...E],S=w(...$);return a.muiName&&(S.muiName=a.muiName),S};return w.withConfig&&(C.withConfig=w.withConfig),C}}function b_(e,t){return void 0}function w_(e){for(const t in e)return!1;return!0}function C_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function S_(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const xt=Q5();function Dc(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 s=e[o],i=t[o];if(!i)n[o]=s||{};else if(!s)n[o]=i;else{n[o]={...i};for(const a in s)if(Object.prototype.hasOwnProperty.call(s,a)){const l=a;n[o][l]=Dc(s[l],i[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Z5(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Dc(t.components[n].defaultProps,r)}function e0({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ja(n);return r&&(o=o[r]||o),Z5({theme:o,name:t,props:e})}const ot=typeof window<"u"?h.useLayoutEffect:h.useEffect;function k_(e,t,n,r,o){const[s,i]=h.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return ot(()=>{if(!n)return;const a=n(e),l=()=>{i(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),s}const P_={...Aa},J5=P_.useSyncExternalStore;function M_(e,t,n,r,o){const s=h.useCallback(()=>t,[t]),i=h.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=h.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[s,n,e]);return J5(l,a,i)}function eD(e={}){const{themeId:t}=e;return function(r,o={}){let s=Gb();s&&t&&(s=s[t]||s);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Z5({name:"MuiUseMediaQuery",props:o,theme:s});let d=typeof r=="function"?r(s):r;return d=d.replace(/^@media( ?)/m,""),(J5!==void 0?M_:k_)(d,a,l,c,u)}}eD();function I_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Yb(e,t=0,n=1){return I_(e,t,n)}function E_(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 ys(e){if(e.type)return e;if(e.charAt(0)==="#")return ys(E_(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ys(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(Ys(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const T_=e=>{const t=ys(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ed=(e,t)=>{try{return T_(e)}catch{return e}};function _f(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<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 tD(e){e=ys(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),_f({type:a,values:l})}function E1(e){e=ys(e);let t=e.type==="hsl"||e.type==="hsla"?ys(tD(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 D_(e,t){const n=E1(e),r=E1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function xe(e,t){return e=ys(e),t=Yb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_f(e)}function Ap(e,t,n){try{return xe(e,t)}catch{return e}}function el(e,t){if(e=ys(e),t=Yb(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 _f(e)}function Ot(e,t,n){try{return el(e,t)}catch{return e}}function tl(e,t){if(e=ys(e),t=Yb(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 _f(e)}function jt(e,t,n){try{return tl(e,t)}catch{return e}}function $_(e,t=.15){return E1(e)>.5?el(e,t):tl(e,t)}function Op(e,t,n){try{return $_(e,t)}catch{return e}}const nD=V.oneOfType([V.func,V.object]);function I2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Kb(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function xd(e,t){var n,r,o;return h.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 _t(e){return e&&e.ownerDocument||document}function zr(e){return _t(e).defaultView||window}function gm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let E2=0;function R_(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{t==null&&(E2+=1,n(`mui-${E2}`))},[t]),r}const A_={...Aa},T2=A_.useId;function pt(e){if(T2!==void 0){const t=T2();return e??t}return R_(e)}function On({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[s,i]=h.useState(t),a=o?e:s,l=h.useCallback(c=>{o||i(c)},[]);return[a,l]}function ye(e){const t=h.useRef(e);return ot(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function et(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{gm(n,t)})},e)}const D2={};function Yo(e,t){const n=h.useRef(D2);return n.current===D2&&(n.current=e(t)),n}const O_=[];function t0(e){h.useEffect(e,O_)}class n0{constructor(){ui(this,"currentId",null);ui(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ui(this,"disposeEffect",()=>this.clear)}static create(){return new n0}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function jr(){const e=Yo(n0.create).current;return t0(e.disposeEffect),e}function $c(e){try{return e.matches(":focus-visible")}catch{}return!1}function rD(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const qb=e=>{const t=h.useRef({});return h.useEffect(()=>{t.current=e}),t.current},oD={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function le(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $2(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 iD(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const m=se(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=sD({...o,...r}),a=$2(r),l=$2(o),c=t(i),u=se(c==null?void 0:c.className,n==null?void 0:n.className,s,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,...a};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function r0(e,t,n){return typeof e=="function"?e(t,n):e}function Je(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:r0(n,r),{props:a,internalRef:l}=iD({...s,externalSlotProps:i}),c=et(l,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return Yl(t,{...a,ref:c},r)}function Qi(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const aD=h.createContext(null);function Xb(){return h.useContext(aD)}const F_=typeof Symbol=="function"&&Symbol.for,L_=F_?Symbol.for("mui.nested"):"__THEME_NESTED__";function __(e,t){return typeof t=="function"?t(e):{...e,...t}}function N_(e){const{children:t,theme:n}=e,r=Xb(),o=h.useMemo(()=>{const s=r===null?{...n}:__(r,n);return s!=null&&(s[L_]=r!==null),s},[n,r]);return p.jsx(aD.Provider,{value:o,children:t})}const lD=h.createContext();function z_({value:e,...t}){return p.jsx(lD.Provider,{value:e??!0,...t})}const Nt=()=>h.useContext(lD)??!1,cD=h.createContext(void 0);function B_({value:e,children:t}){return p.jsx(cD.Provider,{value:e,children:t})}function H_(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?Dc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dc(o,r):r}function V_({props:e,name:t}){const n=h.useContext(cD);return H_({props:e,name:t,theme:{components:n}})}const R2={};function A2(e,t,n,r=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?{...t,[e]:s}:s;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function uD(e){const{children:t,theme:n,themeId:r}=e,o=Gb(R2),s=Xb()||R2,i=A2(r,o,n),a=A2(r,s,n,!0),l=(r?i[r]:i).direction==="rtl";return p.jsx(N_,{theme:a,children:p.jsx(Vg.Provider,{value:i,children:p.jsx(z_,{value:l,children:p.jsx(B_,{value:r?i[r].components:i.components,children:t})})})})}const O2={theme:void 0};function G_(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(O2.theme=o.theme,s=q5(e(O2)),t=s,n=o.theme),s}}const Qb="mode",Zb="color-scheme",W_="data-color-scheme";function U_(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Qb,colorSchemeStorageKey:s=Zb,attribute:i=W_,colorSchemeNode:a="document.documentElement",nonce:l}=e||{};let c="",u=i;if(i==="class"&&(u=".%s"),i==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); - ${a}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,m]=d[1].split("=");m||(c+=`${a}.removeAttribute('${f}'.replace('%s', light)); - ${a}.removeAttribute('${f}'.replace('%s', dark));`),c+=` - ${a}.setAttribute('${f}'.replace('%s', colorScheme), ${m?`${m}.replace('%s', colorScheme)`:'""'});`}else c+=`${a}.setAttribute('${u}', colorScheme);`;return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${o}') || '${t}'; - const dark = localStorage.getItem('${s}-dark') || '${r}'; - const light = localStorage.getItem('${s}-light') || '${n}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${c} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function j2(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function dD(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 Y_(e){return dD(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Fy(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 K_(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=Qb,colorSchemeStorageKey:i=Zb,storageWindow:a=typeof window>"u"?void 0:window}=e,l=o.join(","),c=o.length>1,[u,d]=h.useState(()=>{const b=Fy(s,t),C=Fy(`${i}-light`,n),k=Fy(`${i}-dark`,r);return{mode:b,systemMode:j2(b),lightColorScheme:C,darkColorScheme:k}}),[,f]=h.useState(!1),m=h.useRef(!1);h.useEffect(()=>{c&&f(!0),m.current=!0},[c]);const g=Y_(u),y=h.useCallback(b=>{d(C=>{if(b===C.mode)return C;const k=b??t;try{localStorage.setItem(s,k)}catch{}return{...C,mode:k,systemMode:j2(k)}})},[s,t]),x=h.useCallback(b=>{b?typeof b=="string"?b&&!l.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):d(C=>{const k={...C};return dD(C,M=>{try{localStorage.setItem(`${i}-${M}`,b)}catch{}M==="light"&&(k.lightColorScheme=b),M==="dark"&&(k.darkColorScheme=b)}),k}):d(C=>{const k={...C},M=b.light===null?n:b.light,T=b.dark===null?r:b.dark;if(M)if(!l.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${i}-light`,M)}catch{}}if(T)if(!l.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=T;try{localStorage.setItem(`${i}-dark`,T)}catch{}}return k}):d(C=>{try{localStorage.setItem(`${i}-light`,n),localStorage.setItem(`${i}-dark`,r)}catch{}return{...C,lightColorScheme:n,darkColorScheme:r}})},[l,i,n,r]),v=h.useCallback(b=>{u.mode==="system"&&d(C=>{const k=b!=null&&b.matches?"dark":"light";return C.systemMode===k?C:{...C,systemMode:k}})},[u.mode]),w=h.useRef(v);return w.current=v,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const b=(...k)=>w.current(...k),C=window.matchMedia("(prefers-color-scheme: dark)");return C.addListener(b),b(C),()=>{C.removeListener(b)}},[c]),h.useEffect(()=>{if(a&&c){const b=C=>{const k=C.newValue;typeof C.key=="string"&&C.key.startsWith(i)&&(!k||l.match(k))&&(C.key.endsWith("light")&&x({light:k}),C.key.endsWith("dark")&&x({dark:k})),C.key===s&&(!k||["light","dark","system"].includes(k))&&y(k||t)};return a.addEventListener("storage",b),()=>{a.removeEventListener("storage",b)}}},[x,y,s,i,l,t,a,c]),{...u,mode:m.current||!c?u.mode:void 0,systemMode:m.current||!c?u.systemMode:void 0,colorScheme:m.current||!c?g:void 0,setMode:y,setColorScheme:x}}const q_="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function X_(e){const{themeId:t,theme:n={},modeStorageKey:r=Qb,colorSchemeStorageKey:o=Zb,disableTransitionOnChange:s=!1,defaultColorScheme:i,resolveTheme:a}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=h.createContext(void 0),u=()=>h.useContext(c)||l;function d(y){var Xe,Pe,Ie,Be,Ge;const{children:x,theme:v,modeStorageKey:w=r,colorSchemeStorageKey:b=o,disableTransitionOnChange:C=s,storageWindow:k=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:$=!1,defaultMode:S="system"}=y,D=h.useRef(!1),j=Xb(),F=h.useContext(c),A=!!F&&!E,R=h.useMemo(()=>v||(typeof n=="function"?n():n),[v]),I=R[t],{colorSchemes:L={},components:O={},cssVarPrefix:_,...N}=I||R,z=Object.keys(L).filter(Ae=>!!L[Ae]).join(","),U=h.useMemo(()=>z.split(","),[z]),J=typeof i=="string"?i:i.light,Y=typeof i=="string"?i:i.dark,B=L[J]&&L[Y]?S:((Pe=(Xe=L[N.defaultColorScheme])==null?void 0:Xe.palette)==null?void 0:Pe.mode)||((Ie=N.palette)==null?void 0:Ie.mode),{mode:W,setMode:te,systemMode:X,lightColorScheme:q,darkColorScheme:G,colorScheme:ee,setColorScheme:H}=K_({supportedColorSchemes:U,defaultLightColorScheme:J,defaultDarkColorScheme:Y,modeStorageKey:w,colorSchemeStorageKey:b,defaultMode:B,storageWindow:k});let Z=W,ne=ee;A&&(Z=F.mode,ne=F.colorScheme);const oe=ne||N.defaultColorScheme,re=((Be=N.generateThemeVars)==null?void 0:Be.call(N))||N.vars,ue={...N,components:O,colorSchemes:L,cssVarPrefix:_,vars:re};if(typeof ue.generateSpacing=="function"&&(ue.spacing=ue.generateSpacing()),oe){const Ae=L[oe];Ae&&typeof Ae=="object"&&Object.keys(Ae).forEach(Oe=>{Ae[Oe]&&typeof Ae[Oe]=="object"?ue[Oe]={...ue[Oe],...Ae[Oe]}:ue[Oe]=Ae[Oe]})}const ie=N.colorSchemeSelector;h.useEffect(()=>{if(ne&&T&&ie&&ie!=="media"){const Ae=ie;let Oe=ie;if(Ae==="class"&&(Oe=".%s"),Ae==="data"&&(Oe="[data-%s]"),Ae!=null&&Ae.startsWith("data-")&&!Ae.includes("%s")&&(Oe=`[${Ae}="%s"]`),Oe.startsWith("."))T.classList.remove(...U.map(He=>Oe.substring(1).replace("%s",He))),T.classList.add(Oe.substring(1).replace("%s",ne));else{const He=Oe.replace("%s",ne).match(/\[([^\]]+)\]/);if(He){const[Ee,Me]=He[1].split("=");Me||U.forEach(Ve=>{T.removeAttribute(Ee.replace(ne,Ve))}),T.setAttribute(Ee,Me?Me.replace(/"|'/g,""):"")}else T.setAttribute(Oe,ne)}}},[ne,ie,T,U]),h.useEffect(()=>{let Ae;if(C&&D.current&&M){const Oe=M.createElement("style");Oe.appendChild(M.createTextNode(q_)),M.head.appendChild(Oe),window.getComputedStyle(M.body),Ae=setTimeout(()=>{M.head.removeChild(Oe)},1)}return()=>{clearTimeout(Ae)}},[ne,C,M]),h.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const be=h.useMemo(()=>({allColorSchemes:U,colorScheme:ne,darkColorScheme:G,lightColorScheme:q,mode:Z,setColorScheme:H,setMode:te,systemMode:X}),[U,ne,G,q,Z,H,te,X]);let Te=!0;($||N.cssVariables===!1||A&&(j==null?void 0:j.cssVarPrefix)===_)&&(Te=!1);const Fe=p.jsxs(h.Fragment,{children:[p.jsx(uD,{themeId:I?t:void 0,theme:a?a(ue):ue,children:x}),Te&&p.jsx(V5,{styles:((Ge=ue.generateStyleSheets)==null?void 0:Ge.call(ue))||[]})]});return A?Fe:p.jsx(c.Provider,{value:be,children:Fe})}const f=typeof i=="string"?i:i.light,m=typeof i=="string"?i:i.dark;return{CssVarsProvider:d,useColorScheme:u,getInitColorSchemeScript:y=>U_({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:m,modeStorageKey:r,...y})}}function Q_(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 F2=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Z_=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},J_=(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 Ly(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Z_(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=J_(a,l);Object.assign(o,{[u]:d}),F2(s,a,`var(${u})`,c),F2(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function e9(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:s={},components:i,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Ly(l,t);let f=d;const m={},{[a]:g,...y}=s;if(Object.entries(y||{}).forEach(([b,C])=>{const{vars:k,css:M,varsWithDefaults:T}=Ly(C,t);f=kn(f,T),m[b]={css:M,vars:k}}),g){const{css:b,vars:C,varsWithDefaults:k}=Ly(g,t);f=kn(f,k),m[a]={css:b,vars:C}}function x(b,C){var M,T;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),b){if(k==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((T=(M=s[b])==null?void 0:M.palette)==null?void 0:T.mode)||b})`]:{":root":C}};if(k)return e.defaultColorScheme===b?`:root, ${k.replace("%s",String(b))}`:k.replace("%s",String(b))}return":root"}return{vars:f,generateThemeVars:()=>{let b={...c};return Object.entries(m).forEach(([,{vars:C}])=>{b=kn(b,C)}),b},generateStyleSheets:()=>{var E,$;const b=[],C=e.defaultColorScheme||"light";function k(S,D){Object.keys(D).length&&b.push(typeof S=="string"?{[S]:{...D}}:S)}k(n(void 0,{...u}),u);const{[C]:M,...T}=m;if(M){const{css:S}=M,D=($=(E=s[C])==null?void 0:E.palette)==null?void 0:$.mode,j=!r&&D?{colorScheme:D,...S}:{...S};k(n(C,{...j}),j)}return Object.entries(T).forEach(([S,{css:D}])=>{var A,R;const j=(R=(A=s[S])==null?void 0:A.palette)==null?void 0:R.mode,F=!r&&j?{colorScheme:j,...D}:{...D};k(n(S,{...F}),F)}),b}}}function t9(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 n9=nu(),r9=xt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),o9=e=>e0({props:e,name:"MuiContainer",defaultTheme:n9}),s9=(e,t)=>{const n=l=>ve(t,l),{classes:r,fixed:o,disableGutters:s,maxWidth:i}=e,a={root:["root",i&&`maxWidth${ae(String(i))}`,o&&"fixed",s&&"disableGutters"]};return le(a,n,r)};function i9(e={}){const{createStyledComponent:t=r9,useThemeProps:n=o9,componentName:r="MuiContainer"}=e,o=t(({theme:i,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:a})=>a.fixed&&Object.keys(i.breakpoints.values).reduce((l,c)=>{const u=c,d=i.breakpoints.values[u];return d!==0&&(l[i.breakpoints.up(u)]={maxWidth:`${d}${i.breakpoints.unit}`}),l},{}),({theme:i,ownerState:a})=>({...a.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[i.breakpoints.up(a.maxWidth)]:{maxWidth:`${i.breakpoints.values[a.maxWidth]}${i.breakpoints.unit}`}}}));return h.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:m=!1,maxWidth:g="lg",classes:y,...x}=c,v={...c,component:d,disableGutters:f,fixed:m,maxWidth:g},w=s9(v,r);return p.jsx(o,{as:d,ownerState:v,className:se(w.root,u),ref:l,...x})})}const a9=(e,t)=>e.filter(n=>t.includes(n)),ru=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((i,a)=>{s<=e.keys.length-1&&(s===0?Object.assign(i,a):i[e.up(e.keys[s])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:a9(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const i=t[s];i!==void 0&&n((a,l)=>{r===s?Object.assign(a,l):a[e.up(s)]=l},i)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function ym(e){return`--Grid-${e}Spacing`}function o0(e){return`--Grid-parent-${e}Spacing`}const L2="--Grid-columns",ac="--Grid-parent-columns",l9=({theme:e,ownerState:t})=>{const n={};return ru(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${ac}) - (var(${ac}) - ${o}) * (var(${o0("column")}) / var(${ac})))`}),r(n,s)}),n},c9=({theme:e,ownerState:t})=>{const n={};return ru(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${ac}) + var(${o0("column")}) * ${o} / var(${ac}))`}),r(n,s)}),n},u9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[L2]:12};return ru(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[L2]:s,"> *":{[ac]:s}})}),n},d9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ru(e.breakpoints,t.rowSpacing,(r,o)=>{var i;const s=typeof o=="string"?o:(i=e.spacing)==null?void 0:i.call(e,o);r(n,{[ym("row")]:s,"> *":{[o0("row")]:s}})}),n},f9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ru(e.breakpoints,t.columnSpacing,(r,o)=>{var i;const s=typeof o=="string"?o:(i=e.spacing)==null?void 0:i.call(e,o);r(n,{[ym("column")]:s,"> *":{[o0("column")]:s}})}),n},p9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ru(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},h9=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${ym("row")}) var(${ym("column")})`}}),m9=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},g9=(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,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},y9=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],v9=nu(),x9=xt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function b9(e){return e0({props:e,name:"MuiGrid",defaultTheme:v9})}function w9(e={}){const{createStyledComponent:t=x9,useThemeProps:n=b9,componentName:r="MuiGrid"}=e,o=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:m,size:g}=l,y={root:["root",u&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...y9(d),...m9(g),...u?g9(f,c.breakpoints.keys[0]):[]]};return le(y,x=>ve(r,x),{})};function s(l,c,u=()=>!0){const d={};return l===null||(Array.isArray(l)?l.forEach((f,m)=>{f!==null&&u(f)&&c.keys[m]&&(d[c.keys[m]]=f)}):typeof l=="object"?Object.keys(l).forEach(f=>{const m=l[f];m!=null&&u(m)&&(d[f]=m)}):d[c.keys[0]]=l),d}const i=t(u9,f9,d9,l9,p9,h9,c9),a=h.forwardRef(function(c,u){const d=Ja(),f=n(c),m=Ff(f),{className:g,children:y,columns:x=12,container:v=!1,component:w="div",direction:b="row",wrap:C="wrap",size:k={},offset:M={},spacing:T=0,rowSpacing:E=T,columnSpacing:$=T,unstable_level:S=0,...D}=m,j=s(k,d.breakpoints,N=>N!==!1),F=s(M,d.breakpoints),A=c.columns??(S?void 0:x),R=c.spacing??(S?void 0:T),I=c.rowSpacing??c.spacing??(S?void 0:E),L=c.columnSpacing??c.spacing??(S?void 0:$),O={...m,level:S,columns:A,container:v,direction:b,wrap:C,spacing:R,rowSpacing:I,columnSpacing:L,size:j,offset:F},_=o(O,d);return p.jsx(i,{ref:u,as:w,ownerState:O,className:se(_.root,g),...D,children:h.Children.map(y,N=>{var z;return h.isValidElement(N)&&xd(N,["Grid"])&&v&&N.props.container?h.cloneElement(N,{unstable_level:((z=N.props)==null?void 0:z.unstable_level)??S+1}):N})})});return a.muiName="Grid",a}const C9=nu(),S9=xt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function k9(e){return e0({props:e,name:"MuiStack",defaultTheme:C9})}function P9(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],I9=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...br({theme:t},Ea({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Sg(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),{}),s=Ea({values:e.direction,base:o}),i=Ea({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((l,c,u)=>{if(!s[l]){const f=c>0?s[u[c-1]]:"column";s[l]=f}}),n=kn(n,br({theme:t},i,(l,c)=>e.useFlexGap?{gap:Na(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${M9(c?s[c]:e.direction)}`]:Na(r,l)}}))}return n=dL(t.breakpoints,n),n};function E9(e={}){const{createStyledComponent:t=S9,useThemeProps:n=k9,componentName:r="MuiStack"}=e,o=()=>le({root:["root"]},l=>ve(r,l),{}),s=t(I9);return h.forwardRef(function(l,c){const u=n(l),d=Ff(u),{component:f="div",direction:m="column",spacing:g=0,divider:y,children:x,className:v,useFlexGap:w=!1,...b}=d,C={direction:m,spacing:g,useFlexGap:w},k=o();return p.jsx(s,{as:f,ownerState:C,ref:c,className:se(k.root,v),...b,children:y?P9(x,y):x})})}const ef={black:"#000",white:"#fff"},T9={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"},ul={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"},dl={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"},$u={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"},fl={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"},pl={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"},hl={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 fD(){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:ef.white,default:ef.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 D9=fD();function pD(){return{text:{primary:ef.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:ef.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 _2=pD();function N2(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tl(e.main,o):t==="dark"&&(e.dark=el(e.main,s)))}function $9(e="light"){return e==="dark"?{main:fl[200],light:fl[50],dark:fl[400]}:{main:fl[700],light:fl[400],dark:fl[800]}}function R9(e="light"){return e==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[500],light:ul[300],dark:ul[700]}}function A9(e="light"){return e==="dark"?{main:dl[500],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[400],dark:dl[800]}}function O9(e="light"){return e==="dark"?{main:pl[400],light:pl[300],dark:pl[700]}:{main:pl[700],light:pl[500],dark:pl[900]}}function j9(e="light"){return e==="dark"?{main:hl[400],light:hl[300],dark:hl[700]}:{main:hl[800],light:hl[500],dark:hl[900]}}function F9(e="light"){return e==="dark"?{main:$u[400],light:$u[300],dark:$u[700]}:{main:"#ed6c02",light:$u[500],dark:$u[900]}}function Jb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,s=e.primary||$9(t),i=e.secondary||R9(t),a=e.error||A9(t),l=e.info||O9(t),c=e.success||j9(t),u=e.warning||F9(t);function d(y){return D_(y,_2.text.primary)>=n?_2.text.primary:D9.text.primary}const f=({color:y,name:x,mainShade:v=500,lightShade:w=300,darkShade:b=700})=>{if(y={...y},!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(Ys(11,x?` (${x})`:"",v));if(typeof y.main!="string")throw new Error(Ys(12,x?` (${x})`:"",JSON.stringify(y.main)));return N2(y,"light",w,r),N2(y,"dark",b,r),y.contrastText||(y.contrastText=d(y.main)),y};let m;return t==="light"?m=fD():t==="dark"&&(m=pD()),kn({common:{...ef},mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:T9,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...m},o)}function L9(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function _9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function N9(e){return Math.round(e*1e5)/1e5}const z2={textTransform:"uppercase"},B2='"Roboto", "Helvetica", "Arial", sans-serif';function hD(e,t){const{fontFamily:n=B2,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,m=u||(x=>`${x/l*f}rem`),g=(x,v,w,b,C)=>({fontFamily:n,fontWeight:x,fontSize:m(v),lineHeight:w,...n===B2?{letterSpacing:`${N9(b/v)}em`}:{},...C,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(i,14,1.75,.4,z2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,z2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...y},d,{clone:!1})}const z9=.2,B9=.14,H9=.12;function Wt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${z9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${B9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${H9})`].join(",")}const V9=["none",Wt(0,2,1,-1,0,1,1,0,0,1,3,0),Wt(0,3,1,-2,0,2,2,0,0,1,5,0),Wt(0,3,3,-2,0,3,4,0,0,1,8,0),Wt(0,2,4,-1,0,4,5,0,0,1,10,0),Wt(0,3,5,-1,0,5,8,0,0,1,14,0),Wt(0,3,5,-1,0,6,10,0,0,1,18,0),Wt(0,4,5,-2,0,7,10,1,0,2,16,1),Wt(0,5,5,-3,0,8,10,1,0,3,14,2),Wt(0,5,6,-3,0,9,12,1,0,3,16,2),Wt(0,6,6,-3,0,10,14,1,0,4,18,3),Wt(0,6,7,-4,0,11,15,1,0,4,20,3),Wt(0,7,8,-4,0,12,17,2,0,5,22,4),Wt(0,7,8,-4,0,13,19,2,0,5,24,4),Wt(0,7,9,-4,0,14,21,2,0,5,26,4),Wt(0,8,9,-5,0,15,22,2,0,6,28,5),Wt(0,8,10,-5,0,16,24,2,0,6,30,5),Wt(0,8,11,-5,0,17,26,2,0,6,32,5),Wt(0,9,11,-5,0,18,28,2,0,7,34,6),Wt(0,9,12,-6,0,19,29,2,0,7,36,6),Wt(0,10,13,-6,0,20,31,3,0,8,38,7),Wt(0,10,13,-6,0,21,33,3,0,8,40,7),Wt(0,10,14,-6,0,22,35,3,0,8,42,7),Wt(0,11,14,-7,0,23,36,3,0,9,44,8),Wt(0,11,15,-7,0,24,38,3,0,9,46,8)],G9={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)"},mD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function H2(e){return`${Math.round(e)}ms`}function W9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function U9(e){const t={...G9,...e.easing},n={...mD,...e.duration};return{getAutoHeightDuration:W9,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:H2(i)} ${a} ${typeof l=="string"?l:H2(l)}`).join(",")},...e,easing:t,duration:n}}const Y9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function K9(e){return is(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function gD(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;skn(m,g),f),f.unstable_sxConfig={...jf,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(g){return Hi({sx:g,theme:this})},f.toRuntimeSource=gD,f}function D1(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 q9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=D1(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function yD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function vD(e){return e==="dark"?q9:[]}function X9(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,s=Jb(t);return{palette:s,opacity:{...yD(s.mode),...n},overlays:r||vD(s.mode),...o}}function Q9(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 Z9=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],J9=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Z9(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function eN(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function de(e,t,n){!e[t]&&n&&(e[t]=n)}function td(e){return!e||!e.startsWith("hsl")?e:tD(e)}function Ps(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ed(td(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 tN(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Zo=e=>{try{return e()}catch{}},nN=(e="mui")=>Q_(e);function _y(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=X9({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...i}=T1({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...yD(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||vD(o)},i}function rN(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:i=Q9,colorSchemeSelector:a=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=nN(s),{[d]:m,light:g,dark:y,...x}=n,v={...x};let w=m;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(Ys(21,d));const b=_y(v,w,c,d);g&&!v.light&&_y(v,g,void 0,"light"),y&&!v.dark&&_y(v,y,void 0,"dark");let C={defaultColorScheme:d,...b,cssVarPrefix:s,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:v,font:{...L9(b.typography),...b.font},spacing:tN(c.spacing)};Object.keys(C.colorSchemes).forEach($=>{const S=C.colorSchemes[$].palette,D=j=>{const F=j.split("-"),A=F[1],R=F[2];return f(j,S[A][R])};if(S.mode==="light"&&(de(S.common,"background","#fff"),de(S.common,"onBackground","#000")),S.mode==="dark"&&(de(S.common,"background","#000"),de(S.common,"onBackground","#fff")),eN(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){de(S.Alert,"errorColor",Ot(S.error.light,.6)),de(S.Alert,"infoColor",Ot(S.info.light,.6)),de(S.Alert,"successColor",Ot(S.success.light,.6)),de(S.Alert,"warningColor",Ot(S.warning.light,.6)),de(S.Alert,"errorFilledBg",D("palette-error-main")),de(S.Alert,"infoFilledBg",D("palette-info-main")),de(S.Alert,"successFilledBg",D("palette-success-main")),de(S.Alert,"warningFilledBg",D("palette-warning-main")),de(S.Alert,"errorFilledColor",Zo(()=>S.getContrastText(S.error.main))),de(S.Alert,"infoFilledColor",Zo(()=>S.getContrastText(S.info.main))),de(S.Alert,"successFilledColor",Zo(()=>S.getContrastText(S.success.main))),de(S.Alert,"warningFilledColor",Zo(()=>S.getContrastText(S.warning.main))),de(S.Alert,"errorStandardBg",jt(S.error.light,.9)),de(S.Alert,"infoStandardBg",jt(S.info.light,.9)),de(S.Alert,"successStandardBg",jt(S.success.light,.9)),de(S.Alert,"warningStandardBg",jt(S.warning.light,.9)),de(S.Alert,"errorIconColor",D("palette-error-main")),de(S.Alert,"infoIconColor",D("palette-info-main")),de(S.Alert,"successIconColor",D("palette-success-main")),de(S.Alert,"warningIconColor",D("palette-warning-main")),de(S.AppBar,"defaultBg",D("palette-grey-100")),de(S.Avatar,"defaultBg",D("palette-grey-400")),de(S.Button,"inheritContainedBg",D("palette-grey-300")),de(S.Button,"inheritContainedHoverBg",D("palette-grey-A100")),de(S.Chip,"defaultBorder",D("palette-grey-400")),de(S.Chip,"defaultAvatarColor",D("palette-grey-700")),de(S.Chip,"defaultIconColor",D("palette-grey-700")),de(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),de(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),de(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),de(S.LinearProgress,"primaryBg",jt(S.primary.main,.62)),de(S.LinearProgress,"secondaryBg",jt(S.secondary.main,.62)),de(S.LinearProgress,"errorBg",jt(S.error.main,.62)),de(S.LinearProgress,"infoBg",jt(S.info.main,.62)),de(S.LinearProgress,"successBg",jt(S.success.main,.62)),de(S.LinearProgress,"warningBg",jt(S.warning.main,.62)),de(S.Skeleton,"bg",`rgba(${D("palette-text-primaryChannel")} / 0.11)`),de(S.Slider,"primaryTrack",jt(S.primary.main,.62)),de(S.Slider,"secondaryTrack",jt(S.secondary.main,.62)),de(S.Slider,"errorTrack",jt(S.error.main,.62)),de(S.Slider,"infoTrack",jt(S.info.main,.62)),de(S.Slider,"successTrack",jt(S.success.main,.62)),de(S.Slider,"warningTrack",jt(S.warning.main,.62));const j=Op(S.background.default,.8);de(S.SnackbarContent,"bg",j),de(S.SnackbarContent,"color",Zo(()=>S.getContrastText(j))),de(S.SpeedDialAction,"fabHoverBg",Op(S.background.paper,.15)),de(S.StepConnector,"border",D("palette-grey-400")),de(S.StepContent,"border",D("palette-grey-400")),de(S.Switch,"defaultColor",D("palette-common-white")),de(S.Switch,"defaultDisabledColor",D("palette-grey-100")),de(S.Switch,"primaryDisabledColor",jt(S.primary.main,.62)),de(S.Switch,"secondaryDisabledColor",jt(S.secondary.main,.62)),de(S.Switch,"errorDisabledColor",jt(S.error.main,.62)),de(S.Switch,"infoDisabledColor",jt(S.info.main,.62)),de(S.Switch,"successDisabledColor",jt(S.success.main,.62)),de(S.Switch,"warningDisabledColor",jt(S.warning.main,.62)),de(S.TableCell,"border",jt(Ap(S.divider,1),.88)),de(S.Tooltip,"bg",Ap(S.grey[700],.92))}if(S.mode==="dark"){de(S.Alert,"errorColor",jt(S.error.light,.6)),de(S.Alert,"infoColor",jt(S.info.light,.6)),de(S.Alert,"successColor",jt(S.success.light,.6)),de(S.Alert,"warningColor",jt(S.warning.light,.6)),de(S.Alert,"errorFilledBg",D("palette-error-dark")),de(S.Alert,"infoFilledBg",D("palette-info-dark")),de(S.Alert,"successFilledBg",D("palette-success-dark")),de(S.Alert,"warningFilledBg",D("palette-warning-dark")),de(S.Alert,"errorFilledColor",Zo(()=>S.getContrastText(S.error.dark))),de(S.Alert,"infoFilledColor",Zo(()=>S.getContrastText(S.info.dark))),de(S.Alert,"successFilledColor",Zo(()=>S.getContrastText(S.success.dark))),de(S.Alert,"warningFilledColor",Zo(()=>S.getContrastText(S.warning.dark))),de(S.Alert,"errorStandardBg",Ot(S.error.light,.9)),de(S.Alert,"infoStandardBg",Ot(S.info.light,.9)),de(S.Alert,"successStandardBg",Ot(S.success.light,.9)),de(S.Alert,"warningStandardBg",Ot(S.warning.light,.9)),de(S.Alert,"errorIconColor",D("palette-error-main")),de(S.Alert,"infoIconColor",D("palette-info-main")),de(S.Alert,"successIconColor",D("palette-success-main")),de(S.Alert,"warningIconColor",D("palette-warning-main")),de(S.AppBar,"defaultBg",D("palette-grey-900")),de(S.AppBar,"darkBg",D("palette-background-paper")),de(S.AppBar,"darkColor",D("palette-text-primary")),de(S.Avatar,"defaultBg",D("palette-grey-600")),de(S.Button,"inheritContainedBg",D("palette-grey-800")),de(S.Button,"inheritContainedHoverBg",D("palette-grey-700")),de(S.Chip,"defaultBorder",D("palette-grey-700")),de(S.Chip,"defaultAvatarColor",D("palette-grey-300")),de(S.Chip,"defaultIconColor",D("palette-grey-300")),de(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),de(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),de(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),de(S.LinearProgress,"primaryBg",Ot(S.primary.main,.5)),de(S.LinearProgress,"secondaryBg",Ot(S.secondary.main,.5)),de(S.LinearProgress,"errorBg",Ot(S.error.main,.5)),de(S.LinearProgress,"infoBg",Ot(S.info.main,.5)),de(S.LinearProgress,"successBg",Ot(S.success.main,.5)),de(S.LinearProgress,"warningBg",Ot(S.warning.main,.5)),de(S.Skeleton,"bg",`rgba(${D("palette-text-primaryChannel")} / 0.13)`),de(S.Slider,"primaryTrack",Ot(S.primary.main,.5)),de(S.Slider,"secondaryTrack",Ot(S.secondary.main,.5)),de(S.Slider,"errorTrack",Ot(S.error.main,.5)),de(S.Slider,"infoTrack",Ot(S.info.main,.5)),de(S.Slider,"successTrack",Ot(S.success.main,.5)),de(S.Slider,"warningTrack",Ot(S.warning.main,.5));const j=Op(S.background.default,.98);de(S.SnackbarContent,"bg",j),de(S.SnackbarContent,"color",Zo(()=>S.getContrastText(j))),de(S.SpeedDialAction,"fabHoverBg",Op(S.background.paper,.15)),de(S.StepConnector,"border",D("palette-grey-600")),de(S.StepContent,"border",D("palette-grey-600")),de(S.Switch,"defaultColor",D("palette-grey-300")),de(S.Switch,"defaultDisabledColor",D("palette-grey-600")),de(S.Switch,"primaryDisabledColor",Ot(S.primary.main,.55)),de(S.Switch,"secondaryDisabledColor",Ot(S.secondary.main,.55)),de(S.Switch,"errorDisabledColor",Ot(S.error.main,.55)),de(S.Switch,"infoDisabledColor",Ot(S.info.main,.55)),de(S.Switch,"successDisabledColor",Ot(S.success.main,.55)),de(S.Switch,"warningDisabledColor",Ot(S.warning.main,.55)),de(S.TableCell,"border",Ot(Ap(S.divider,1),.68)),de(S.Tooltip,"bg",Ap(S.grey[700],.92))}Ps(S.background,"default"),Ps(S.background,"paper"),Ps(S.common,"background"),Ps(S.common,"onBackground"),Ps(S,"divider"),Object.keys(S).forEach(j=>{const F=S[j];F&&typeof F=="object"&&(F.main&&de(S[j],"mainChannel",ed(td(F.main))),F.light&&de(S[j],"lightChannel",ed(td(F.light))),F.dark&&de(S[j],"darkChannel",ed(td(F.dark))),F.contrastText&&de(S[j],"contrastTextChannel",ed(td(F.contrastText))),j==="text"&&(Ps(S[j],"primary"),Ps(S[j],"secondary")),j==="action"&&(F.active&&Ps(S[j],"active"),F.selected&&Ps(S[j],"selected")))})}),C=t.reduce(($,S)=>kn($,S),C);const k={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:J9(C)},{vars:M,generateThemeVars:T,generateStyleSheets:E}=e9(C,k);return C.vars=M,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([$,S])=>{C[$]=S}),C.generateThemeVars=T,C.generateStyleSheets=E,C.generateSpacing=function(){return W5(c.spacing,Sg(this))},C.getColorSchemeSelector=t9(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=i,C.unstable_sxConfig={...jf,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(S){return Hi({sx:S,theme:this})},C.toRuntimeSource=gD,C}function V2(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Jb({...n===!0?{}:n.palette,mode:t})})}function Nf(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return T1(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=T1({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},V2(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},V2(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),rN({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const s0=Nf(),mo="$$material";function Mn(){const e=Ja(s0);return e[mo]||e}function oN(e){return p.jsx(d_,{...e,defaultTheme:s0,themeId:mo})}function xD(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Un=e=>xD(e)&&e!=="classes",Q=Q5({themeId:mo,defaultTheme:s0,rootShouldForwardProp:Un});function ew(e){return function(n){return p.jsx(oN,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function sN(){return Ff}function Le(e){return V_(e)}const $1=typeof ew({})=="function",iN=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),aN=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),bD=(e,t=!1)=>{var s,i;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var u,d;const c=e.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:iN(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...aN(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(i=(s=e.components)==null?void 0:s.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(r=[r,o]),r},Ph="mui-ecs",lN=e=>{const t=bD(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ph})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var i,a;const s=e.getColorSchemeSelector(r);s.startsWith("@")?n[s]={[`:root:not(:has(.${Ph}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:n[s.replace(/\s*&/,"")]={[`&:not(:has(.${Ph}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}}),t},cN=ew($1?({theme:e,enableColorScheme:t})=>bD(e,t):({theme:e})=>lN(e));function i0(e){const t=Le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return p.jsxs(h.Fragment,{children:[$1&&p.jsx(cN,{enableColorScheme:r}),!$1&&!r&&p.jsx("span",{className:Ph,style:{display:"none"}}),n]})}var wD={exports:{}},CD={};/** - * @license React - * use-sync-external-store-with-selector.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 zf=h;function uN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dN=typeof Object.is=="function"?Object.is:uN,fN=zf.useSyncExternalStore,pN=zf.useRef,hN=zf.useEffect,mN=zf.useMemo,gN=zf.useDebugValue;CD.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=pN(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=mN(function(){function l(m){if(!c){if(c=!0,u=m,m=r(m),o!==void 0&&i.hasValue){var g=i.value;if(o(g,m))return d=g}return d=m}if(g=d,dN(u,m))return g;var y=r(m);return o!==void 0&&o(g,y)?g:(u=m,d=y)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var a=fN(e,s[0],s[1]);return hN(function(){i.hasValue=!0,i.value=a},[a]),gN(a),a};wD.exports=CD;var yN=wD.exports,Fr="default"in Aa?Ar:Aa,G2=Symbol.for("react-redux-context"),W2=typeof globalThis<"u"?globalThis:{};function vN(){if(!Fr.createContext)return{};const e=W2[G2]??(W2[G2]=new Map);let t=e.get(Fr.createContext);return t||(t=Fr.createContext(null),e.set(Fr.createContext,t)),t}var Vi=vN(),xN=()=>{throw new Error("uSES not initialized!")};function tw(e=Vi){return function(){return Fr.useContext(e)}}var SD=tw(),kD=xN,bN=e=>{kD=e},wN=(e,t)=>e===t;function CN(e=Vi){const t=e===Vi?SD:tw(e),n=(r,o={})=>{const{equalityFn:s=wN,devModeChecks:i={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:c,stabilityCheck:u,identityFunctionCheck:d}=t();Fr.useRef(!0);const f=Fr.useCallback({[r.name](g){return r(g)}}[r.name],[r,u,i.stabilityCheck]),m=kD(l.addNestedSub,a.getState,c||a.getState,f,s);return Fr.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var ou=CN();function SN(e){e()}function kN(){let e=null,t=null;return{clear(){e=null,t=null},notify(){SN(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var U2={notify(){},get:()=>[]};function PN(e,t){let n,r=U2,o=0,s=!1;function i(y){u();const x=r.subscribe(y);let v=!1;return()=>{v||(v=!0,x(),d())}}function a(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return s}function u(){o++,n||(n=e.subscribe(l),r=kN())}function d(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=U2)}function f(){s||(s=!0,u())}function m(){s&&(s=!1,d())}const g={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:m,getListeners:()=>r};return g}var MN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",IN=typeof navigator<"u"&&navigator.product==="ReactNative",EN=MN||IN?Fr.useLayoutEffect:Fr.useEffect;function TN({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const i=Fr.useMemo(()=>{const c=PN(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,r,o,s]),a=Fr.useMemo(()=>e.getState(),[e]);EN(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,a]);const l=t||Vi;return Fr.createElement(l.Provider,{value:i},n)}var DN=TN;function PD(e=Vi){const t=e===Vi?SD:tw(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var $N=PD();function RN(e=Vi){const t=e===Vi?$N:PD(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var su=RN();bN(yN.useSyncExternalStoreWithSelector);function En(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var AN=typeof Symbol=="function"&&Symbol.observable||"@@observable",Y2=AN,Ny=()=>Math.random().toString(36).substring(7).split("").join("."),ON={INIT:`@@redux/INIT${Ny()}`,REPLACE:`@@redux/REPLACE${Ny()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ny()}`},vm=ON;function nw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function MD(e,t,n){if(typeof e!="function")throw new Error(En(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(En(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(En(1));return n(MD)(e,t)}let r=e,o=t,s=new Map,i=s,a=0,l=!1;function c(){i===s&&(i=new Map,s.forEach((x,v)=>{i.set(v,x)}))}function u(){if(l)throw new Error(En(3));return o}function d(x){if(typeof x!="function")throw new Error(En(4));if(l)throw new Error(En(5));let v=!0;c();const w=a++;return i.set(w,x),function(){if(v){if(l)throw new Error(En(6));v=!1,c(),i.delete(w),s=null}}}function f(x){if(!nw(x))throw new Error(En(7));if(typeof x.type>"u")throw new Error(En(8));if(typeof x.type!="string")throw new Error(En(17));if(l)throw new Error(En(9));try{l=!0,o=r(o,x)}finally{l=!1}return(s=i).forEach(w=>{w()}),x}function m(x){if(typeof x!="function")throw new Error(En(10));r=x,f({type:vm.REPLACE})}function g(){const x=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(En(11));function w(){const C=v;C.next&&C.next(u())}return w(),{unsubscribe:x(w)}},[Y2](){return this}}}return f({type:vm.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:m,[Y2]:g}}function jN(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:vm.INIT})>"u")throw new Error(En(12));if(typeof n(void 0,{type:vm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(En(13))})}function ID(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(En(14));c[d]=g,l=l||g!==m}return l=l||r.length!==Object.keys(i).length,l?c:i}}function xm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function FN(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(En(15))};const i={getState:o.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(i));return s=xm(...a)(o.dispatch),{...o,dispatch:s}}}function LN(e){return nw(e)&&"type"in e&&typeof e.type=="string"}var ED=Symbol.for("immer-nothing"),K2=Symbol.for("immer-draftable"),Br=Symbol.for("immer-state");function _o(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Rc=Object.getPrototypeOf;function za(e){return!!e&&!!e[Br]}function Ks(e){var t;return e?TD(e)||Array.isArray(e)||!!e[K2]||!!((t=e.constructor)!=null&&t[K2])||l0(e)||c0(e):!1}var _N=Object.prototype.constructor.toString();function TD(e){if(!e||typeof e!="object")return!1;const t=Rc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===_N}function bm(e,t){a0(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function a0(e){const t=e[Br];return t?t.type_:Array.isArray(e)?1:l0(e)?2:c0(e)?3:0}function R1(e,t){return a0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function DD(e,t,n){const r=a0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function NN(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function l0(e){return e instanceof Map}function c0(e){return e instanceof Set}function pa(e){return e.copy_||e.base_}function A1(e,t){if(l0(e))return new Map(e);if(c0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=TD(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Br];let o=Reflect.ownKeys(r);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=zN),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>rw(r,!0))),e}function zN(){_o(2)}function u0(e){return Object.isFrozen(e)}var BN={};function Ba(e){const t=BN[e];return t||_o(0,e),t}var tf;function $D(){return tf}function HN(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function q2(e,t){t&&(Ba("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function O1(e){j1(e),e.drafts_.forEach(VN),e.drafts_=null}function j1(e){e===tf&&(tf=e.parent_)}function X2(e){return tf=HN(tf,e)}function VN(e){const t=e[Br];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Q2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Br].modified_&&(O1(t),_o(4)),Ks(e)&&(e=wm(t,e),t.parent_||Cm(t,e)),t.patches_&&Ba("Patches").generateReplacementPatches_(n[Br].base_,e,t.patches_,t.inversePatches_)):e=wm(t,n,[]),O1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ED?e:void 0}function wm(e,t,n){if(u0(t))return t;const r=t[Br];if(!r)return bm(t,(o,s)=>Z2(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Cm(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,i=!1;r.type_===3&&(s=new Set(o),o.clear(),i=!0),bm(s,(a,l)=>Z2(e,r,o,a,l,n,i)),Cm(e,o,!1),n&&e.patches_&&Ba("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Z2(e,t,n,r,o,s,i){if(za(o)){const a=s&&t&&t.type_!==3&&!R1(t.assigned_,r)?s.concat(r):void 0,l=wm(e,o,a);if(DD(n,r,l),za(l))e.canAutoFreeze_=!1;else return}else i&&n.add(o);if(Ks(o)&&!u0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;wm(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Cm(e,o)}}function Cm(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rw(t,n)}function GN(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$D(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=ow;n&&(o=[r],s=nf);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=i,a}var ow={get(e,t){if(t===Br)return e;const n=pa(e);if(!R1(n,t))return WN(e,n,t);const r=n[t];return e.finalized_||!Ks(r)?r:r===zy(e.base_,t)?(By(e),e.copy_[t]=L1(r,e)):r},has(e,t){return t in pa(e)},ownKeys(e){return Reflect.ownKeys(pa(e))},set(e,t,n){const r=RD(pa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=zy(pa(e),t),s=o==null?void 0:o[Br];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(NN(n,o)&&(n!==void 0||R1(e.base_,t)))return!0;By(e),F1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zy(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,By(e),F1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=pa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_o(11)},getPrototypeOf(e){return Rc(e.base_)},setPrototypeOf(){_o(12)}},nf={};bm(ow,(e,t)=>{nf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});nf.deleteProperty=function(e,t){return nf.set.call(this,e,t,void 0)};nf.set=function(e,t,n){return ow.set.call(this,e[0],t,n,e[0])};function zy(e,t){const n=e[Br];return(n?pa(n):e)[t]}function WN(e,t,n){var o;const r=RD(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function RD(e,t){if(!(t in e))return;let n=Rc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Rc(n)}}function F1(e){e.modified_||(e.modified_=!0,e.parent_&&F1(e.parent_))}function By(e){e.copy_||(e.copy_=A1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var UN=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const i=this;return function(l=s,...c){return i.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&_o(6),r!==void 0&&typeof r!="function"&&_o(7);let o;if(Ks(t)){const s=X2(this),i=L1(t,void 0);let a=!0;try{o=n(i),a=!1}finally{a?O1(s):j1(s)}return q2(s,r),Q2(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===ED&&(o=void 0),this.autoFreeze_&&rw(o,!0),r){const s=[],i=[];Ba("Patches").generateReplacementPatches_(t,o,s,i),r(s,i)}return o}else _o(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,l=>t(l,...a));let r,o;return[this.produce(t,n,(i,a)=>{r=i,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ks(e)||_o(8),za(e)&&(e=YN(e));const t=X2(this),n=L1(e,void 0);return n[Br].isManual_=!0,j1(t),n}finishDraft(e,t){const n=e&&e[Br];(!n||!n.isManual_)&&_o(9);const{scope_:r}=n;return q2(r,t),Q2(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ba("Patches").applyPatches_;return za(e)?r(e,t):this.produce(e,o=>r(o,t))}};function L1(e,t){const n=l0(e)?Ba("MapSet").proxyMap_(e,t):c0(e)?Ba("MapSet").proxySet_(e,t):GN(e,t);return(t?t.scope_:$D()).drafts_.push(n),n}function YN(e){return za(e)||_o(10,e),AD(e)}function AD(e){if(!Ks(e)||u0(e))return e;const t=e[Br];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=A1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=A1(e,!0);return bm(n,(r,o)=>{DD(n,r,AD(o))}),t&&(t.finalized_=!1),n}var Hr=new UN,OD=Hr.produce;Hr.produceWithPatches.bind(Hr);Hr.setAutoFreeze.bind(Hr);Hr.setUseStrictShallowCopy.bind(Hr);Hr.applyPatches.bind(Hr);Hr.createDraft.bind(Hr);Hr.finishDraft.bind(Hr);var Sm=Symbol("NOT_FOUND");function KN(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qN(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function XN(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 J2=e=>Array.isArray(e)?e:[e];function QN(e){const t=Array.isArray(e[0])?e[0]:e;return XN(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ZN(e,t){const n=[],{length:r}=e;for(let o=0;ot(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return Sm}function o(a,l){r(a)===Sm&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var t8=(e,t)=>e===t;function n8(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;ss(m.value,u));f&&(u=f.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var r8=class{constructor(e){this.value=e}deref(){return this.value}},o8=typeof WeakRef<"u"?WeakRef:r8,s8=0,ek=1;function jp(){return{s:s8,v:void 0,o:null,p:null}}function FD(e,t={}){let n=jp();const{resultEqualityCheck:r}=t;let o,s=0;function i(){var d;let a=n;const{length:l}=arguments;for(let f=0,m=l;f{n=jp(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function LD(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,i=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),KN(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:m=FD,argsMemoizeOptions:g=[]}=u,y=J2(f),x=J2(g),v=QN(o),w=d(function(){return s++,c.apply(null,arguments)},...y),b=m(function(){i++;const k=ZN(v,arguments);return a=w.apply(null,k),a},...x);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:v,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:d,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var i8=LD(FD),a8=Object.assign((e,t=i8)=>{qN(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(s=>e[s]);return t(r,(...s)=>s.reduce((i,a,l)=>(i[n[l]]=a,i),{}))},{withTypes:()=>a8});function _D(e){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,e):o(s)}var l8=_D(),c8=_D,u8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xm:xm.apply(null,arguments)},d8=e=>e&&typeof e.match=="function";function bd(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(fs(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>LN(r)&&r.type===e,n}var ND=class nd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nd.prototype)}static get[Symbol.species](){return nd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nd(...t[0].concat(this)):new nd(...t.concat(this))}};function tk(e){return Ks(e)?OD(e,()=>{}):e}function nk(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(fs(10));const r=n.insert(t,e);return e.set(t,r),r}function f8(e){return typeof e=="boolean"}var p8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let i=new ND;return n&&(f8(n)?i.push(l8):i.push(c8(n.extraArgument))),i},h8="RTK_autoBatch",zD=e=>t=>{setTimeout(t,e)},m8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zD(10),g8=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?m8:e.type==="callback"?e.queueNotification:zD(e.timeout),c=()=>{i=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>o&&u(),f=r.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){var d;try{return o=!((d=u==null?void 0:u.meta)!=null&&d[h8]),s=!o,s&&(i||(i=!0,l(c))),r.dispatch(u)}finally{o=!0}}})},y8=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new ND(e);return r&&o.push(g8(typeof r=="object"?r:void 0)),o};function v8(e){const t=p8(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:i=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(nw(n))a=ID(n);else throw new Error(fs(1));let l;typeof r=="function"?l=r(t):l=t();let c=xm;o&&(c=u8({trace:!1,...typeof o=="object"&&o}));const u=FN(...l),d=y8(u);let f=typeof i=="function"?i(d):d();const m=c(...f);return MD(a,s,m)}function BD(e){const t={},n=[];let r;const o={addCase(s,i){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(fs(28));if(a in t)throw new Error(fs(29));return t[a]=i,o},addMatcher(s,i){return n.push({matcher:s,reducer:i}),o},addDefaultCase(s){return r=s,o}};return e(o),[t,n,r]}function x8(e){return typeof e=="function"}function b8(e,t){let[n,r,o]=BD(t),s;if(x8(e))s=()=>tk(e());else{const a=tk(e);s=()=>a}function i(a=s(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(za(u)){const m=d(u,l);return m===void 0?u:m}else{if(Ks(u))return OD(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return i.getInitialState=s,i}var w8=(e,t)=>d8(e)?e.match(t):e(t);function C8(...e){return t=>e.some(n=>w8(n,t))}var S8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",k8=(e=21)=>{let t="",n=e;for(;n--;)t+=S8[Math.random()*64|0];return t},P8=["name","message","stack","code"],Hy=class{constructor(e,t){ui(this,"_type");this.payload=e,this.meta=t}},rk=class{constructor(e,t){ui(this,"_type");this.payload=e,this.meta=t}},M8=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of P8)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},ni=(()=>{function e(t,n,r){const o=bd(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=bd(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),i=bd(t+"/rejected",(l,c,u,d,f)=>({payload:d,error:(r&&r.serializeError||M8)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function a(l){return(c,u,d)=>{const f=r!=null&&r.idGenerator?r.idGenerator(l):k8(),m=new AbortController;let g,y;function x(w){y=w,m.abort()}const v=async function(){var C,k;let w;try{let M=(C=r==null?void 0:r.condition)==null?void 0:C.call(r,l,{getState:u,extra:d});if(E8(M)&&(M=await M),M===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((E,$)=>{g=()=>{$({name:"AbortError",message:y||"Aborted"})},m.signal.addEventListener("abort",g)});c(s(f,l,(k=r==null?void 0:r.getPendingMeta)==null?void 0:k.call(r,{requestId:f,arg:l},{getState:u,extra:d}))),w=await Promise.race([T,Promise.resolve(n(l,{dispatch:c,getState:u,extra:d,requestId:f,signal:m.signal,abort:x,rejectWithValue:(E,$)=>new Hy(E,$),fulfillWithValue:(E,$)=>new rk(E,$)})).then(E=>{if(E instanceof Hy)throw E;return E instanceof rk?o(E.payload,f,l,E.meta):o(E,f,l)})])}catch(M){w=M instanceof Hy?i(null,f,l,M.payload,M.meta):i(M,f,l)}finally{g&&m.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&i.match(w)&&w.meta.condition||c(w),w}();return Object.assign(v,{abort:x,requestId:f,arg:l,unwrap(){return v.then(I8)}})}}return Object.assign(a,{pending:s,rejected:i,fulfilled:o,settled:C8(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function I8(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function E8(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var T8=Symbol.for("rtk-slice-createasyncthunk");function D8(e,t){return`${e}/${t}`}function $8({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[T8];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(fs(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(A8()):o.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(b,C){const k=typeof b=="string"?b:b.type;if(!k)throw new Error(fs(12));if(k in c.sliceCaseReducersByType)throw new Error(fs(13));return c.sliceCaseReducersByType[k]=C,u},addMatcher(b,C){return c.sliceMatchers.push({matcher:b,reducer:C}),u},exposeAction(b,C){return c.actionCreators[b]=C,u},exposeCaseReducer(b,C){return c.sliceCaseReducersByName[b]=C,u}};l.forEach(b=>{const C=a[b],k={reducerName:b,type:D8(s,b),createNotation:typeof o.reducers=="function"};j8(C)?L8(k,C,u,t):O8(k,C,u)});function d(){const[b={},C=[],k=void 0]=typeof o.extraReducers=="function"?BD(o.extraReducers):[o.extraReducers],M={...b,...c.sliceCaseReducersByType};return b8(o.initialState,T=>{for(let E in M)T.addCase(E,M[E]);for(let E of c.sliceMatchers)T.addMatcher(E.matcher,E.reducer);for(let E of C)T.addMatcher(E.matcher,E.reducer);k&&T.addDefaultCase(k)})}const f=b=>b,m=new Map;let g;function y(b,C){return g||(g=d()),g(b,C)}function x(){return g||(g=d()),g.getInitialState()}function v(b,C=!1){function k(T){let E=T[b];return typeof E>"u"&&C&&(E=x()),E}function M(T=f){const E=nk(m,C,{insert:()=>new WeakMap});return nk(E,T,{insert:()=>{const $={};for(const[S,D]of Object.entries(o.selectors??{}))$[S]=R8(D,T,x,C);return $}})}return{reducerPath:b,getSelectors:M,get selectors(){return M(k)},selectSlice:k}}const w={name:s,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:x,...v(i),injectInto(b,{reducerPath:C,...k}={}){const M=C??i;return b.inject({reducerPath:M,reducer:y},k),{...w,...v(M,!0)}}};return w}}function R8(e,t,n,r){function o(s,...i){let a=t(s);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var ri=$8();function A8(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function O8({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!F8(r))throw new Error(fs(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?bd(e,i):bd(e))}function j8(e){return e._reducerDefinitionType==="asyncThunk"}function F8(e){return e._reducerDefinitionType==="reducerWithPrepare"}function L8({type:e,reducerName:t},n,r,o){if(!o)throw new Error(fs(18));const{payloadCreator:s,fulfilled:i,pending:a,rejected:l,settled:c,options:u}=n,d=o(e,s,u);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:i||Fp,pending:a||Fp,rejected:l||Fp,settled:c||Fp})}function Fp(){}function fs(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const _8="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Vy=ni("sanjeeviniApp/fetchUserAppData",async(e,t)=>{try{let n=_8+"userapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),N8={userData:[],loading:!1,error:null,page:1,totalPages:0},z8=ri({name:"user",initialState:N8,reducers:{},extraReducers:e=>{e.addCase(Vy.pending,t=>{t.loading=!0,t.error=null}).addCase(Vy.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Vy.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),B8=z8.reducer,H8="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Gy=ni("sanjeeviniApp/fetchDoctorAppData",async(e,t)=>{try{let n=H8+"doctorapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.doctor_id&&(n+=`&doctor_id=${e.doctor_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch doctor.")}}),V8={doctorData:[],loading:!1,error:null,page:1,totalPages:0},G8=ri({name:"doctor",initialState:V8,reducers:{},extraReducers:e=>{e.addCase(Gy.pending,t=>{t.loading=!0,t.error=null}).addCase(Gy.fulfilled,(t,n)=>{t.loading=!1,t.doctorData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Gy.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),W8=G8.reducer,U8="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Mh=ni("sanjeeviniApp/fetchUserHeartData",async(e,t)=>{try{let n=U8+"userheartapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations,heart_rate:i.heart_rate,blood_pressure_systolic:i.blood_pressure_systolic,blood_pressure_diastolic:i.blood_pressure_diastolic,oxygen_saturation:i.oxygen_saturation}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),Y8={userData:[],loading:!1,error:null,page:1,totalPages:0},K8=ri({name:"user",initialState:Y8,reducers:{},extraReducers:e=>{e.addCase(Mh.pending,t=>{t.loading=!0,t.error=null}).addCase(Mh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Mh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),q8=K8.reducer,X8="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Ih=ni("sanjeeviniApp/fetchUserWeightData",async(e,t)=>{try{let n=X8+"userweightapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),Q8={userData:[],loading:!1,error:null,page:1,totalPages:0},Z8=ri({name:"user",initialState:Q8,reducers:{},extraReducers:e=>{e.addCase(Ih.pending,t=>{t.loading=!0,t.error=null}).addCase(Ih.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Ih.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),J8=Z8.reducer,ez="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Eh=ni("sanjeeviniApp/fetchUserDiabetestData",async(e,t)=>{try{let n=ez+"userdiabetesapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),tz={userData:[],loading:!1,error:null,page:1,totalPages:0},nz=ri({name:"user",initialState:tz,reducers:{},extraReducers:e=>{e.addCase(Eh.pending,t=>{t.loading=!0,t.error=null}).addCase(Eh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Eh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),rz=nz.reducer,oz="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Th=ni("sanjeeviniApp/fetchUserMaternityData",async(e,t)=>{try{let n=oz+"usermaternityapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),sz={userData:[],loading:!1,error:null,page:1,totalPages:0},iz=ri({name:"user",initialState:sz,reducers:{},extraReducers:e=>{e.addCase(Th.pending,t=>{t.loading=!0,t.error=null}).addCase(Th.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Th.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),az=iz.reducer,lz="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Dh=ni("sanjeeviniApp/fetchPrescriptionData",async(e,t)=>{try{let n=lz+"prescriptionapp/?page=";e.page&&(n+=e.page),e.expiration_date_after&&(n+=`&expiration_date_after=${e.expiration_date_after}`),e.expiration_date_before&&(n+=`&expiration_date_before=${e.expiration_date_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,expiration_date:i.expiration_date,issue_date:i.issue_date,doctor_full_name:i.doctor_full_name,medication:i.medication,dosage:i.dosage,frequency:i.frequency,refill_info:i.refill_info,instructions:i.instructions}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),cz={userData:[],loading:!1,error:null,page:1,totalPages:0},uz=ri({name:"user",initialState:cz,reducers:{},extraReducers:e=>{e.addCase(Dh.pending,t=>{t.loading=!0,t.error=null}).addCase(Dh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Dh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),dz=uz.reducer,fz="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",$h=ni("sanjeeviniApp/fetchUserAppointmentData",async(e,t)=>{try{let n=fz+"userappointmentapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),pz={userData:[],loading:!1,error:null,page:1,totalPages:0},hz=ri({name:"user",initialState:pz,reducers:{},extraReducers:e=>{e.addCase($h.pending,t=>{t.loading=!0,t.error=null}).addCase($h.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase($h.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),mz=hz.reducer,gz="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Wy=ni("sanjeeviniApp/fetchDoctorAppointmentData",async(e,t)=>{try{let n=gz+"doctorappointment/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.doctor_id&&(n+=`&doctor_id=${e.doctor_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch doctor.")}}),yz={doctorData:[],loading:!1,error:null,page:1,totalPages:0},vz=ri({name:"doctor",initialState:yz,reducers:{},extraReducers:e=>{e.addCase(Wy.pending,t=>{t.loading=!0,t.error=null}).addCase(Wy.fulfilled,(t,n)=>{t.loading=!1,t.doctorData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Wy.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),xz=vz.reducer,bz=ID({userDataList:B8,doctorDataList:W8,userHeartDataList:q8,userWeightDataList:J8,userDiabetesDataList:rz,userMaternityDataList:az,userPrescriptionDataList:dz,userAppointmentDataList:mz,doctorAppointmentDataList:xz}),wz=v8({reducer:bz}),$e=G_;function Cz(e){return ve("MuiDivider",e)}const _1=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Sz=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:a,variant:l}=e;return le({root:["root",t&&"absolute",l,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",a==="right"&&i!=="vertical"&&"textAlignRight",a==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Cz,r)},kz=Q("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]}})($e(({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)`:xe(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%"}}}]}))),Pz=Q("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})($e(({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)`}}]}))),Gn=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,orientation:a="horizontal",component:l=s||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:m},x=Sz(y);return p.jsx(kz,{as:l,className:se(x.root,i),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...g,children:s?p.jsx(Pz,{className:x.wrapper,ownerState:y,children:s}):null})});Gn&&(Gn.muiSkipListHighlight=!0);function Mz(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Iz(e){return parseFloat(e)}function yt({props:e,name:t}){return e0({props:e,name:t,defaultTheme:s0,themeId:mo})}function ok({theme:e,...t}){const n=mo in e?e[mo]:void 0;return p.jsx(uD,{...t,themeId:n?mo:void 0,theme:n||e})}const Lp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Ez,useColorScheme:HD}=X_({themeId:mo,theme:()=>Nf({cssVariables:!0}),colorSchemeStorageKey:Lp.colorSchemeStorageKey,modeStorageKey:Lp.modeStorageKey,defaultColorScheme:{light:Lp.defaultLightColorScheme,dark:Lp.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:hD(e.palette,e.typography)};return t.unstable_sx=function(r){return Hi({sx:r,theme:this})},t}}),Tz=Ez;function Dz({theme:e,...t}){return typeof e=="function"?p.jsx(ok,{theme:e,...t}):"colorSchemes"in(mo in e?e[mo]:e)?p.jsx(Tz,{theme:e,...t}):p.jsx(ok,{theme:e,...t})}const $z=me("MuiBox",["root"]),Rz=Nf(),We=p_({themeId:mo,defaultTheme:Rz,defaultClassName:$z.root,generateClassName:U5.generate});function Az(e){return typeof e.main=="string"}function Oz(e,t=[]){if(!Az(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Lt(e=[]){return([,t])=>t&&Oz(t,e)}function jz(e){return ve("MuiPaper",e)}me("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 Fz=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return le(s,jz,o)},Lz=Q("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}`]]}})($e(({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)"}}]}))),Io=h.forwardRef(function(t,n){var m;const r=Le({props:t,name:"MuiPaper"}),o=Mn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},f=Fz(d);return p.jsx(Lz,{as:i,ownerState:d,className:se(f.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(m=o.vars.overlays)==null?void 0:m[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${xe("#fff",D1(a))}, ${xe("#fff",D1(a))})`}},...u.style}})});function _z(e){return ve("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nz=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ae(t)}`,`position${ae(n)}`]};return le(o,_z,r)},sk=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zz=Q(Io,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],t[`color${ae(n.color)}`]]}})($e(({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(Lt(["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?sk(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?sk(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"})}}]}))),Bz=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:a="fixed",...l}=r,c={...r,color:s,position:a,enableColorOnDark:i},u=Nz(c);return p.jsx(zz,{square:!0,component:"header",ownerState:c,elevation:4,className:se(u.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function Hz(e){return ve("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const Vz=e=>{const{classes:t,disableGutters:n,variant:r}=e;return le({root:["root",!n&&"gutters",r]},Hz,t)},Gz=Q("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})($e(({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}]}))),sw=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:a="regular",...l}=r,c={...r,component:s,disableGutters:i,variant:a},u=Vz(c);return p.jsx(Gz,{as:s,className:se(u.root,o),ref:n,ownerState:c,...l})});class km{constructor(){ui(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 km}static use(){const t=Yo(km.create).current,[n,r]=h.useState(!1);return t.shouldMount=n,t.setShouldMount=r,h.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Uz(),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 Wz(){return km.use()}function Uz(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ce(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 N1(e,t){return N1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},N1(e,t)}function iw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N1(e,t)}function Yz(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kz(e,t){e.classList?e.classList.add(t):Yz(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ik(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qz(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ik(e.className,t):e.setAttribute("class",ik(e.className&&e.className.baseVal||"",t))}const ak={disabled:!1},Pm=Ar.createContext(null);var VD=function(t){return t.scrollTop},rd="unmounted",ha="exited",ma="entering",Dl="entered",z1="exiting",Yr=function(e){iw(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=ha,s.appearStatus=ma):l=Dl:r.unmountOnExit||r.mountOnEnter?l=rd:l=ha,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===rd?{status:ha}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ma&&i!==Dl&&(s=ma):(i===ma||i===Dl)&&(s=z1)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===ma){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:$p.findDOMNode(this);i&&VD(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ha&&this.setState({status:rd})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[$p.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!i||ak.disabled){this.safeSetState({status:Dl},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ma},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:Dl},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:$p.findDOMNode(this);if(!s||ak.disabled){this.safeSetState({status:ha},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:z1},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:ha},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:$p.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,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===rd)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ce(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ar.createElement(Pm.Provider,{value:null},typeof i=="function"?i(o,a):Ar.cloneElement(Ar.Children.only(i),a))},t}(Ar.Component);Yr.contextType=Pm;Yr.propTypes={};function ml(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ml,onEntering:ml,onEntered:ml,onExit:ml,onExiting:ml,onExited:ml};Yr.UNMOUNTED=rd;Yr.EXITED=ha;Yr.ENTERING=ma;Yr.ENTERED=Dl;Yr.EXITING=z1;var Xz=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Kz(t,r)})},Uy=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return qz(t,r)})},aw=function(e){iw(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i{if(!a&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),p.jsx("span",{className:f,style:m,children:p.jsx("span",{className:g})})}const eo=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),B1=550,o7=80,s7=Ss` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,i7=Ss` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,a7=Ss` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,l7=Q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),c7=Q(r7,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${eo.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${s7}; - animation-duration: ${B1}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - &.${eo.ripplePulsate} { - animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; - } - - & .${eo.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${eo.childLeaving} { - opacity: 0; - animation-name: ${i7}; - animation-duration: ${B1}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - & .${eo.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${a7}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,u7=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),m=jr(),g=h.useRef(null),y=h.useRef(null),x=h.useCallback(C=>{const{pulsate:k,rippleX:M,rippleY:T,rippleSize:E,cb:$}=C;c(S=>[...S,p.jsx(c7,{classes:{ripple:se(s.ripple,eo.ripple),rippleVisible:se(s.rippleVisible,eo.rippleVisible),ripplePulsate:se(s.ripplePulsate,eo.ripplePulsate),child:se(s.child,eo.child),childLeaving:se(s.childLeaving,eo.childLeaving),childPulsate:se(s.childPulsate,eo.childPulsate)},timeout:B1,pulsate:k,rippleX:M,rippleY:T,rippleSize:E},u.current)]),u.current+=1,d.current=$},[s]),v=h.useCallback((C={},k={},M=()=>{})=>{const{pulsate:T=!1,center:E=o||k.pulsate,fakeElement:$=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&f.current){f.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(f.current=!0);const S=$?null:y.current,D=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,F,A;if(E||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)j=Math.round(D.width/2),F=Math.round(D.height/2);else{const{clientX:R,clientY:I}=C.touches&&C.touches.length>0?C.touches[0]:C;j=Math.round(R-D.left),F=Math.round(I-D.top)}if(E)A=Math.sqrt((2*D.width**2+D.height**2)/3),A%2===0&&(A+=1);else{const R=Math.max(Math.abs((S?S.clientWidth:0)-j),j)*2+2,I=Math.max(Math.abs((S?S.clientHeight:0)-F),F)*2+2;A=Math.sqrt(R**2+I**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{x({pulsate:T,rippleX:j,rippleY:F,rippleSize:A,cb:M})},m.start(o7,()=>{g.current&&(g.current(),g.current=null)})):x({pulsate:T,rippleX:j,rippleY:F,rippleSize:A,cb:M})},[o,x,m]),w=h.useCallback(()=>{v({},{pulsate:!0})},[v]),b=h.useCallback((C,k)=>{if(m.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{b(C,k)});return}g.current=null,c(M=>M.length>0?M.slice(1):M),d.current=k},[m]);return h.useImperativeHandle(n,()=>({pulsate:w,start:v,stop:b}),[w,v,b]),p.jsx(l7,{className:se(eo.root,s.root,i),ref:y,...a,children:p.jsx(Bf,{component:null,exit:!0,children:l})})});function d7(e){return ve("MuiButtonBase",e)}const cw=me("MuiButtonBase",["root","disabled","focusVisible"]),f7=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=le({root:["root",t&&"disabled",n&&"focusVisible"]},d7,o);return n&&r&&(i.root+=` ${r}`),i},p7=Q("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"},[`&.${cw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qs=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:x,onContextMenu:v,onDragLeave:w,onFocus:b,onFocusVisible:C,onKeyDown:k,onKeyUp:M,onMouseDown:T,onMouseLeave:E,onMouseUp:$,onTouchEnd:S,onTouchMove:D,onTouchStart:j,tabIndex:F=0,TouchRippleProps:A,touchRippleRef:R,type:I,...L}=r,O=h.useRef(null),_=Wz(),N=et(_.ref,R),[z,U]=h.useState(!1);c&&z&&U(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{U(!0),O.current.focus()}}),[]);const J=_.shouldMount&&!u&&!c;h.useEffect(()=>{z&&f&&!u&&_.pulsate()},[u,f,z,_]);function Y(Pe,Ie,Be=d){return ye(Ge=>(Ie&&Ie(Ge),Be||_[Pe](Ge),!0))}const B=Y("start",T),W=Y("stop",v),te=Y("stop",w),X=Y("stop",$),q=Y("stop",Pe=>{z&&Pe.preventDefault(),E&&E(Pe)}),G=Y("start",j),ee=Y("stop",S),H=Y("stop",D),Z=Y("stop",Pe=>{$c(Pe.target)||U(!1),y&&y(Pe)},!1),ne=ye(Pe=>{O.current||(O.current=Pe.currentTarget),$c(Pe.target)&&(U(!0),C&&C(Pe)),b&&b(Pe)}),oe=()=>{const Pe=O.current;return l&&l!=="button"&&!(Pe.tagName==="A"&&Pe.href)},re=ye(Pe=>{f&&!Pe.repeat&&z&&Pe.key===" "&&_.stop(Pe,()=>{_.start(Pe)}),Pe.target===Pe.currentTarget&&oe()&&Pe.key===" "&&Pe.preventDefault(),k&&k(Pe),Pe.target===Pe.currentTarget&&oe()&&Pe.key==="Enter"&&!c&&(Pe.preventDefault(),x&&x(Pe))}),ue=ye(Pe=>{f&&Pe.key===" "&&z&&!Pe.defaultPrevented&&_.stop(Pe,()=>{_.pulsate(Pe)}),M&&M(Pe),x&&Pe.target===Pe.currentTarget&&oe()&&Pe.key===" "&&!Pe.defaultPrevented&&x(Pe)});let ie=l;ie==="button"&&(L.href||L.to)&&(ie=g);const be={};ie==="button"?(be.type=I===void 0?"button":I,be.disabled=c):(!L.href&&!L.to&&(be.role="button"),c&&(be["aria-disabled"]=c));const Te=et(n,O),Fe={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:F,focusVisible:z},Xe=f7(Fe);return p.jsxs(p7,{as:ie,className:se(Xe.root,a),ownerState:Fe,onBlur:Z,onClick:x,onContextMenu:W,onFocus:ne,onKeyDown:re,onKeyUp:ue,onMouseDown:B,onMouseLeave:q,onMouseUp:X,onDragLeave:te,onTouchEnd:ee,onTouchMove:H,onTouchStart:G,ref:Te,tabIndex:c?-1:F,type:I,...be,...L,children:[i,J?p.jsx(u7,{ref:N,center:s,...A}):null]})});function h7(e){return ve("MuiButton",e)}const gl=me("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"]),m7=h.createContext({}),g7=h.createContext(void 0),y7=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,a={root:["root",s,`${s}${ae(t)}`,`size${ae(o)}`,`${s}Size${ae(o)}`,`color${ae(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`]},l=le(a,h7,i);return{...i,...l}},GD=[{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}}}],v7=Q(qs,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})($e(({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"},[`&.${gl.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]},[`&.${gl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${gl.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)",[`&.${gl.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(Lt()).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)`:xe(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})`:xe(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})`:xe(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})`:xe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(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"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),x7=Q("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...GD]}),b7=Q("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...GD]}),ut=h.forwardRef(function(t,n){const r=h.useContext(m7),o=h.useContext(g7),s=Dc(r,t),i=Le({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:x=!1,size:v="medium",startIcon:w,type:b,variant:C="text",...k}=i,M={...i,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:m,fullWidth:x,size:v,type:b,variant:C},T=y7(M),E=w&&p.jsx(x7,{className:T.startIcon,ownerState:M,children:w}),$=g&&p.jsx(b7,{className:T.endIcon,ownerState:M,children:g}),S=o||"";return p.jsxs(v7,{ownerState:M,className:se(r.className,T.root,u,S),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:se(T.focusVisible,y),ref:n,type:b,...k,classes:T,children:[E,a,$]})});function w7(e){return ve("MuiIconButton",e)}const WD=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),C7=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${ae(r)}`,o&&`edge${ae(o)}`,`size${ae(s)}`]};return le(i,w7,t)},S7=Q(qs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})($e(({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})`:xe(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}}]})),$e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xe((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)}}],[`&.${WD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),gn=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,size:u},m=C7(f);return p.jsx(S7,{className:se(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:s})}),Uo=i9({createStyledComponent:Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Le({props:e,name:"MuiContainer"})}),Ls=h.createContext({});function k7(e){return ve("MuiListItemIcon",e)}const lk=me("MuiListItemIcon",["root","alignItemsFlexStart"]),P7=e=>{const{alignItems:t,classes:n}=e;return le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},k7,n)},M7=Q("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})($e(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),lc=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiListItemIcon"}),{className:o,...s}=r,i=h.useContext(Ls),a={...r,alignItems:i.alignItems},l=P7(a);return p.jsx(M7,{className:se(l.root,o),ownerState:a,ref:n,...s})});function I7(e){return ve("MuiTypography",e)}const rf=me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),E7={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},T7=sN(),D7=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return le(a,I7,i)},$7=Q("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${ae(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})($e(({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(Lt()).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${ae(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}}]}})),ck={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},we=h.forwardRef(function(t,n){const{color:r,...o}=Le({props:t,name:"MuiTypography"}),s=!E7[r],i=T7({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:m="body1",variantMapping:g=ck,...y}=i,x={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:m,variantMapping:g},v=c||(f?"p":g[m]||ck[m])||"span",w=D7(x);return p.jsx($7,{as:v,ref:n,className:se(w.root,l),...y,ownerState:x,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});function R7(e){return ve("MuiListItemText",e)}const Kl=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),A7=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},R7,t)},O7=Q("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kl.primary}`]:t.primary},{[`& .${Kl.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,[`.${rf.root}:where(& .${Kl.primary})`]:{display:"block"},[`.${rf.root}:where(& .${Kl.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),cc=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,...f}=r,{dense:m}=h.useContext(Ls);let g=l??o,y=u;const x={...r,disableTypography:i,inset:a,primary:!!g,secondary:!!y,dense:m},v=A7(x);return g!=null&&g.type!==we&&!i&&(g=p.jsx(we,{variant:m?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",...c,children:g})),y!=null&&y.type!==we&&!i&&(y=p.jsx(we,{variant:"body2",className:v.secondary,color:"textSecondary",...d,children:y})),p.jsxs(O7,{className:se(v.root,s),ownerState:x,ref:n,...f,children:[g,y]})});function j7(e){return ve("MuiMenuItem",e)}const Ci=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},L7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,l=le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},j7,i);return{...i,...l}},_7=Q(qs,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F7})($e(({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"}},[`&.${Ci.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xe(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})`:xe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_1.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_1.inset}`]:{marginLeft:52},[`& .${Kl.root}`]:{marginTop:0,marginBottom:0},[`& .${Kl.inset}`]:{paddingLeft:36},[`& .${lk.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,[`& .${lk.root} svg`]:{fontSize:"1.25rem"}}}]}))),Bt=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...m}=r,g=h.useContext(Ls),y=h.useMemo(()=>({dense:i||g.dense||!1,disableGutters:l}),[g.dense,i,l]),x=h.useRef(null);ot(()=>{o&&x.current&&x.current.focus()},[o]);const v={...r,dense:y.dense,divider:a,disableGutters:l},w=L7(r),b=et(x,n);let C;return r.disabled||(C=d!==void 0?d:-1),p.jsx(Ls.Provider,{value:y,children:p.jsx(_7,{ref:b,role:u,tabIndex:C,component:s,focusVisibleClassName:se(w.focusVisible,c),className:se(w.root,f),...m,ownerState:v,classes:w})})});function N7(e){const t=_t(e);return t.body===e?zr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uk(e){return parseInt(zr(e).getComputedStyle(e).paddingRight,10)||0}function z7(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 dk(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!z7(i);a&&l&&wd(i,o)})}function Yy(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function B7(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(N7(r)){const i=rD(zr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${uk(r)+i}px`;const a=_t(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${uk(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=_t(r).body;else{const i=r.parentElement,a=zr(r);s=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function H7(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class V7{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&&wd(t.modalRef,!1);const o=H7(n);dk(n,t.mount,t.modalRef,o,!0);const s=Yy(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Yy(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=B7(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Yy(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&wd(t.modalRef,n),dk(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&wd(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const G7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W7(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 U7(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 Y7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||U7(e))}function K7(e){const t=[],n=[];return Array.from(e.querySelectorAll(G7)).forEach((r,o)=>{const s=W7(r);s===-1||!Y7(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 q7(){return!0}function uw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=K7,isEnabled:i=q7,open:a}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),m=h.useRef(!1),g=h.useRef(null),y=et(Qi(t),g),x=h.useRef(null);h.useEffect(()=>{!a||!g.current||(m.current=!n)},[n,a]),h.useEffect(()=>{if(!a||!g.current)return;const b=_t(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),h.useEffect(()=>{if(!a||!g.current)return;const b=_t(g.current),C=T=>{x.current=T,!(r||!i()||T.key!=="Tab")&&b.activeElement===g.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{var $,S;const T=g.current;if(T===null)return;if(!b.hasFocus()||!i()||l.current){l.current=!1;return}if(T.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let E=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(E=s(g.current)),E.length>0){const D=!!(($=x.current)!=null&&$.shiftKey&&((S=x.current)==null?void 0:S.key)==="Tab"),j=E[0],F=E[E.length-1];typeof j!="string"&&typeof F!="string"&&(D?F.focus():j.focus())}else T.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",C,!0);const M=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(M),b.removeEventListener("focusin",k),b.removeEventListener("keydown",C,!0)}},[n,r,o,i,a,s]);const v=b=>{d.current===null&&(d.current=b.relatedTarget),m.current=!0,f.current=b.target;const C=t.props.onFocus;C&&C(b)},w=b=>{d.current===null&&(d.current=b.relatedTarget),m.current=!0};return p.jsxs(h.Fragment,{children:[p.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:y,onFocus:v}),p.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function X7(e){return typeof e=="function"?e():e}const UD=h.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=h.useState(null),l=et(h.isValidElement(r)?Qi(r):null,n);if(ot(()=>{s||a(X7(o)||document.body)},[o,s]),ot(()=>{if(i&&!s)return gm(n,i),()=>{gm(n,null)}},[n,i,s]),s){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return p.jsx(h.Fragment,{children:r})}return p.jsx(h.Fragment,{children:i&&Af.createPortal(r,i)})});function qt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:i,internalForwardedProps:a,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=s,m=u[e]||r,g=r0(d[e],o),{props:{component:y,...x},internalRef:v}=iD({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:g}),w=et(v,g==null?void 0:g.ref,t.ref),b=i?i(x):{},C={...o,...b},k=e==="root"?y||c:y,M=Yl(m,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...x,...k&&{as:k},ref:w},C);return Object.keys(b).forEach(T=>{delete M[T]}),[m,M]}const dw=e=>e.scrollTop;function Gi(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}}const Q7={entering:{opacity:1},entered:{opacity:1}},iu=h.forwardRef(function(t,n){const r=Mn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:m,onExited:g,onExiting:y,style:x,timeout:v=o,TransitionComponent:w=Yr,...b}=t,C=h.useRef(null),k=et(C,Qi(a),n),M=A=>R=>{if(A){const I=C.current;R===void 0?A(I):A(I,R)}},T=M(f),E=M((A,R)=>{dw(A);const I=Gi({style:x,timeout:v,easing:l},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",I),A.style.transition=r.transitions.create("opacity",I),u&&u(A,R)}),$=M(d),S=M(y),D=M(A=>{const R=Gi({style:x,timeout:v,easing:l},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",R),A.style.transition=r.transitions.create("opacity",R),m&&m(A)}),j=M(g),F=A=>{s&&s(C.current,A)};return p.jsx(w,{appear:i,in:c,nodeRef:C,onEnter:E,onEntered:$,onEntering:T,onExit:D,onExited:j,onExiting:S,addEndListener:F,timeout:v,...b,children:(A,R)=>h.cloneElement(a,{style:{opacity:0,visibility:A==="exited"&&!c?"hidden":void 0,...Q7[A],...x,...a.props.style},ref:k,...R})})});function Z7(e){return ve("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const J7=e=>{const{ownerState:t,...n}=e;return n},eB=e=>{const{classes:t,invisible:n}=e;return le({root:["root",n&&"invisible"]},Z7,t)},tB=Q("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"}}]}),YD=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:m,transitionDuration:g,...y}=r,x={...r,component:i,invisible:a},v=eB(x),w={transition:m,root:c.Root,...f},b={...u,...d},C={slots:w,slotProps:b},[k,M]=qt("root",{elementType:tB,externalForwardedProps:C,className:se(v.root,s),ownerState:x}),[T,E]=qt("transition",{elementType:iu,externalForwardedProps:C,ownerState:x}),$=J7(E);return p.jsx(T,{in:l,timeout:g,...y,...$,children:p.jsx(k,{"aria-hidden":!0,...M,classes:v,ref:n,children:o})})});function nB(e){return typeof e=="function"?e():e}function rB(e){return e?e.props.hasOwnProperty("in"):!1}const _p=new V7;function oB(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,d=h.useRef({}),f=h.useRef(null),m=h.useRef(null),g=et(m,u),[y,x]=h.useState(!c),v=rB(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>_t(f.current),C=()=>(d.current.modalRef=m.current,d.current.mount=f.current,d.current),k=()=>{_p.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},M=ye(()=>{const R=nB(t)||b().body;_p.add(C(),R),m.current&&k()}),T=()=>_p.isTopModal(C()),E=ye(R=>{f.current=R,R&&(c&&T()?k():m.current&&wd(m.current,w))}),$=h.useCallback(()=>{_p.remove(C(),w)},[w]);h.useEffect(()=>()=>{$()},[$]),h.useEffect(()=>{c?M():(!v||!o)&&$()},[c,$,v,o,M]);const S=R=>I=>{var L;(L=R.onKeyDown)==null||L.call(R,I),!(I.key!=="Escape"||I.which===229||!T())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},D=R=>I=>{var L;(L=R.onClick)==null||L.call(R,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(R={})=>{const I=sD(e);delete I.onTransitionEnter,delete I.onTransitionExited;const L={...I,...R};return{role:"presentation",...L,onKeyDown:S(L),ref:g}},getBackdropProps:(R={})=>{const I=R;return{"aria-hidden":!0,...I,onClick:D(I),open:c}},getTransitionProps:()=>{const R=()=>{x(!1),s&&s()},I=()=>{x(!0),i&&i(),o&&$()};return{onEnter:I2(R,a==null?void 0:a.props.onEnter),onExited:I2(I,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:E,isTopModal:T,exited:y,hasTransition:v}}function sB(e){return ve("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);function iB(e){return ve("MuiSvgIcon",e)}const Rh=me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),aB=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return le(o,iB,r)},lB=Q("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(n.fontSize)}`]]}})($e(({theme:e})=>{var t,n,r,o,s,i,a,l,c,u,d,f,m,g;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:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,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(([,y])=>y&&y.main).map(([y])=>{var x,v;return{props:{color:y},style:{color:(v=(x=(e.vars??e).palette)==null?void 0:x[y])==null?void 0:v.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:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vs=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=r,g=h.isValidElement(o)&&o.type==="svg",y={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},x={};u||(x.viewBox=f);const v=aB(y);return p.jsxs(lB,{as:a,className:se(v.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...x,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,d?p.jsx("title",{children:d}):null]})});vs&&(vs.muiName="SvgIcon");function Re(e,t){function n(r,o){return p.jsx(vs,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=vs.muiName,h.memo(h.forwardRef(n))}const cB=e=>{const{open:t,exited:n,classes:r}=e;return le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sB,r)},uB=Q("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})($e(({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"}}]}))),dB=Q(YD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),fw=h.forwardRef(function(t,n){const r=Le({name:"MuiModal",props:t}),{BackdropComponent:o=dB,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:M,onClose:T,onTransitionEnter:E,onTransitionExited:$,open:S,slotProps:D={},slots:j={},theme:F,...A}=r,R={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:v,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:C,keepMounted:k},{getRootProps:I,getBackdropProps:L,getTransitionProps:O,portalRef:_,isTopModal:N,exited:z,hasTransition:U}=oB({...R,rootRef:n}),J={...R,exited:z},Y=cB(J),B={};if(c.props.tabIndex===void 0&&(B.tabIndex="-1"),U){const{onEnter:H,onExited:Z}=O();B.onEnter=H,B.onExited=Z}const W={...A,slots:{root:f.Root,backdrop:f.Backdrop,...j},slotProps:{...m,...D}},[te,X]=qt("root",{elementType:uB,externalForwardedProps:W,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:J,className:se(a,Y==null?void 0:Y.root,!J.open&&J.exited&&(Y==null?void 0:Y.hidden))}),[q,G]=qt("backdrop",{elementType:o,externalForwardedProps:W,additionalProps:s,getSlotProps:H=>L({...H,onClick:Z=>{M&&M(Z),H!=null&&H.onClick&&H.onClick(Z)}}),className:se(s==null?void 0:s.className,Y==null?void 0:Y.backdrop),ownerState:J}),ee=et(s==null?void 0:s.ref,G.ref);return!k&&!S&&(!U||z)?null:p.jsx(UD,{ref:_,container:u,disablePortal:v,children:p.jsxs(te,{...X,children:[!C&&o?p.jsx(q,{...G,ref:ee}):null,p.jsx(uw,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:N,open:S,children:h.cloneElement(c,B)})]})})});function fB(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=zr(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=s.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${s.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${s.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function pB(e){return typeof e=="function"?e():e}function Np(e,t,n){const r=pB(n),o=fB(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const hB=h.forwardRef(function(t,n){const r=Mn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:m,onEntered:g,onEntering:y,onExit:x,onExited:v,onExiting:w,style:b,timeout:C=s,TransitionComponent:k=Yr,...M}=t,T=h.useRef(null),E=et(Qi(l),T,n),$=O=>_=>{O&&(_===void 0?O(T.current):O(T.current,_))},S=$((O,_)=>{Np(u,O,c),dw(O),m&&m(O,_)}),D=$((O,_)=>{const N=Gi({timeout:C,style:b,easing:d},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",{...N}),O.style.transition=r.transitions.create("transform",{...N}),O.style.webkitTransform="none",O.style.transform="none",y&&y(O,_)}),j=$(g),F=$(w),A=$(O=>{const _=Gi({timeout:C,style:b,easing:d},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",_),O.style.transition=r.transitions.create("transform",_),Np(u,O,c),x&&x(O)}),R=$(O=>{O.style.webkitTransition="",O.style.transition="",v&&v(O)}),I=O=>{i&&i(T.current,O)},L=h.useCallback(()=>{T.current&&Np(u,T.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const O=Kb(()=>{T.current&&Np(u,T.current,c)}),_=zr(T.current);return _.addEventListener("resize",O),()=>{O.clear(),_.removeEventListener("resize",O)}},[u,f,c]),h.useEffect(()=>{f||L()},[f,L]),p.jsx(k,{nodeRef:T,onEnter:S,onEntered:j,onEntering:D,onExit:A,onExited:R,onExiting:F,addEndListener:I,appear:a,in:f,timeout:C,...M,children:(O,_)=>h.cloneElement(l,{ref:E,style:{visibility:O==="exited"&&!f?"hidden":void 0,...b,...l.props.style},..._})})});function mB(e){return ve("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const KD=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},gB=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ae(n)}`,r!=="temporary"&&`paperAnchorDocked${ae(n)}`]};return le(o,mB,t)},yB=Q(fw,{name:"MuiDrawer",slot:"Root",overridesResolver:KD})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),fk=Q("div",{shouldForwardProp:Un,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:KD})({flex:"0 0 auto"}),vB=Q(Io,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ae(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ae(n.anchor)}`]]}})($e(({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}`}}]}))),qD={left:"right",right:"left",top:"down",bottom:"up"};function xB(e){return["left","right"].includes(e)}function bB({direction:e},t){return e==="rtl"&&xB(t)?qD[t]:t}const wB=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDrawer"}),o=Mn(),s=Nt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:m,...g}={},onClose:y,open:x=!1,PaperProps:v={},SlideProps:w,TransitionComponent:b=hB,transitionDuration:C=i,variant:k="temporary",...M}=r,T=h.useRef(!1);h.useEffect(()=>{T.current=!0},[]);const E=bB({direction:s?"rtl":"ltr"},a),S={...r,anchor:a,elevation:d,open:x,variant:k,...M},D=gB(S),j=p.jsx(vB,{elevation:k==="temporary"?d:0,square:!0,...v,className:se(D.paper,v.className),ownerState:S,children:c});if(k==="permanent")return p.jsx(fk,{className:se(D.root,D.docked,u),ownerState:S,ref:n,...M,children:j});const F=p.jsx(b,{in:x,direction:qD[E],timeout:C,appear:T.current,...w,children:j});return k==="persistent"?p.jsx(fk,{className:se(D.root,D.docked,u),ownerState:S,ref:n,...M,children:F}):p.jsx(yB,{BackdropProps:{...l,...m,transitionDuration:C},className:se(D.root,D.modal,u),open:x,ownerState:S,onClose:y,hideBackdrop:f,ref:n,...M,...g,children:F})}),CB=Re(p.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),SB=Re(p.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),XD=Re(p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 50",children:p.jsx("text",{x:"10",y:"35",fontFamily:"Arial",fontSize:"24",fill:"currentColor",children:"Sanjeevini"})}),"Sanjeevini"),kB=Re(p.jsx("path",{d:"M11.01 3.05C6.51 3.54 3 7.36 3 12c0 4.97 4.03 9 9 9 4.63 0 8.45-3.5 8.95-8 .09-.79-.78-1.42-1.54-.95-.84.54-1.84.85-2.91.85-2.98 0-5.4-2.42-5.4-5.4 0-1.06.31-2.06.84-2.89.45-.67-.04-1.63-.93-1.56"}),"DarkModeRounded"),PB=Re(p.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeRounded");function MB(e){return ve("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const IB=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MB,t)},EB=Q("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}}]}),QD=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=h.useMemo(()=>({dense:a}),[a]),f={...r,component:i,dense:a,disablePadding:l},m=IB(f);return p.jsx(Ls.Provider,{value:d,children:p.jsxs(EB,{as:i,className:se(m.root,s),ref:n,ownerState:f,...u,children:[c,o]})})});function Ky(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ZD(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 Ru(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!ZD(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const pw=h.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,m=h.useRef(null),g=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ot(()=>{o&&m.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:C})=>{const k=!m.current.style.width;if(b.clientHeight{const C=m.current,k=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const T=_t(C).activeElement;if(k==="ArrowDown")b.preventDefault(),Ru(C,T,c,l,Ky);else if(k==="ArrowUp")b.preventDefault(),Ru(C,T,c,l,pk);else if(k==="Home")b.preventDefault(),Ru(C,null,c,l,Ky);else if(k==="End")b.preventDefault(),Ru(C,null,c,l,pk);else if(k.length===1){const E=g.current,$=k.toLowerCase(),S=performance.now();E.keys.length>0&&(S-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=S,E.keys.push($);const D=T&&!E.repeating&&ZD(T,E);E.previousKeyMatched&&(D||Ru(C,T,!1,l,Ky,E))?b.preventDefault():E.previousKeyMatched=!1}u&&u(b)},x=et(m,n);let v=-1;h.Children.forEach(i,(b,C)=>{if(!h.isValidElement(b)){v===C&&(v+=1,v>=i.length&&(v=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||v===-1)&&(v=C),v===C&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))});const w=h.Children.map(i,(b,C)=>{if(C===v){const k={};return s&&(k.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),h.cloneElement(b,k)}return b});return p.jsx(QD,{role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:w})});function Ac(e){return typeof e=="string"}function H1(e){return`scale(${e}, ${e**2})`}const TB={entering:{opacity:1,transform:H1(1)},entered:{opacity:1,transform:"none"}},qy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ha=h.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:m,style:g,timeout:y="auto",TransitionComponent:x=Yr,...v}=t,w=jr(),b=h.useRef(),C=Mn(),k=h.useRef(null),M=et(k,Qi(s),n),T=R=>I=>{if(R){const L=k.current;I===void 0?R(L):R(L,I)}},E=T(u),$=T((R,I)=>{dw(R);const{duration:L,delay:O,easing:_}=Gi({style:g,timeout:y,easing:i},{mode:"enter"});let N;y==="auto"?(N=C.transitions.getAutoHeightDuration(R.clientHeight),b.current=N):N=L,R.style.transition=[C.transitions.create("opacity",{duration:N,delay:O}),C.transitions.create("transform",{duration:qy?N:N*.666,delay:O,easing:_})].join(","),l&&l(R,I)}),S=T(c),D=T(m),j=T(R=>{const{duration:I,delay:L,easing:O}=Gi({style:g,timeout:y,easing:i},{mode:"exit"});let _;y==="auto"?(_=C.transitions.getAutoHeightDuration(R.clientHeight),b.current=_):_=I,R.style.transition=[C.transitions.create("opacity",{duration:_,delay:L}),C.transitions.create("transform",{duration:qy?_:_*.666,delay:qy?L:L||_*.333,easing:O})].join(","),R.style.opacity=0,R.style.transform=H1(.75),d&&d(R)}),F=T(f),A=R=>{y==="auto"&&w.start(b.current||0,R),r&&r(k.current,R)};return p.jsx(x,{appear:o,in:a,nodeRef:k,onEnter:$,onEntered:S,onEntering:E,onExit:j,onExited:F,onExiting:D,addEndListener:A,timeout:y==="auto"?null:y,...v,children:(R,I)=>h.cloneElement(s,{style:{opacity:0,transform:H1(.75),visibility:R==="exited"&&!a?"hidden":void 0,...TB[R],...g,...s.props.style},ref:M,...I})})});Ha&&(Ha.muiSupportAuto=!0);function DB(e){return ve("MuiPopover",e)}me("MuiPopover",["root","paper"]);function hk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function gk(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Xy(e){return typeof e=="function"?e():e}const $B=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},DB,t)},RB=Q(fw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JD=Q(Io,{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}),AB=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:x={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b=Ha,transitionDuration:C="auto",TransitionProps:{onEntering:k,...M}={},disableScrollLock:T=!1,...E}=r,$=(v==null?void 0:v.paper)??y,S=h.useRef(),D={...r,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:m,externalPaperSlotProps:$,transformOrigin:w,TransitionComponent:b,transitionDuration:C,TransitionProps:M},j=$B(D),F=h.useCallback(()=>{if(l==="anchorPosition")return a;const G=Xy(s),H=(G&&G.nodeType===1?G:_t(S.current).body).getBoundingClientRect();return{top:H.top+hk(H,i.vertical),left:H.left+mk(H,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),A=h.useCallback(G=>({vertical:hk(G,w.vertical),horizontal:mk(G,w.horizontal)}),[w.horizontal,w.vertical]),R=h.useCallback(G=>{const ee={width:G.offsetWidth,height:G.offsetHeight},H=A(ee);if(l==="none")return{top:null,left:null,transformOrigin:gk(H)};const Z=F();let ne=Z.top-H.vertical,oe=Z.left-H.horizontal;const re=ne+ee.height,ue=oe+ee.width,ie=zr(Xy(s)),be=ie.innerHeight-m,Te=ie.innerWidth-m;if(m!==null&&nebe){const Fe=re-be;ne-=Fe,H.vertical+=Fe}if(m!==null&&oeTe){const Fe=ue-Te;oe-=Fe,H.horizontal+=Fe}return{top:`${Math.round(ne)}px`,left:`${Math.round(oe)}px`,transformOrigin:gk(H)}},[s,l,F,A,m]),[I,L]=h.useState(g),O=h.useCallback(()=>{const G=S.current;if(!G)return;const ee=R(G);ee.top!==null&&G.style.setProperty("top",ee.top),ee.left!==null&&(G.style.left=ee.left),G.style.transformOrigin=ee.transformOrigin,L(!0)},[R]);h.useEffect(()=>(T&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[s,T,O]);const _=(G,ee)=>{k&&k(G,ee),O()},N=()=>{L(!1)};h.useEffect(()=>{g&&O()}),h.useImperativeHandle(o,()=>g?{updatePosition:()=>{O()}}:null,[g,O]),h.useEffect(()=>{if(!g)return;const G=Kb(()=>{O()}),ee=zr(s);return ee.addEventListener("resize",G),()=>{G.clear(),ee.removeEventListener("resize",G)}},[s,g,O]);let z=C;C==="auto"&&!b.muiSupportAuto&&(z=void 0);const U=d||(s?_t(Xy(s)).body:void 0),J={slots:x,slotProps:{...v,paper:$}},[Y,B]=qt("paper",{elementType:JD,externalForwardedProps:J,additionalProps:{elevation:f,className:se(j.paper,$==null?void 0:$.className),style:I?$.style:{...$.style,opacity:0}},ownerState:D}),[W,{slotProps:te,...X}]=qt("root",{elementType:RB,externalForwardedProps:J,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:se(j.root,u)}),q=et(S,B.ref);return p.jsx(W,{...X,...!Ac(W)&&{slotProps:te,disableScrollLock:T},...E,ref:n,children:p.jsx(b,{appear:!0,in:g,onEntering:_,onExited:N,timeout:z,...M,children:p.jsx(Y,{...B,ref:q,children:c})})})});function OB(e){return ve("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const jB={vertical:"top",horizontal:"right"},FB={vertical:"top",horizontal:"left"},LB=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},OB,t)},_B=Q(AB,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NB=Q(JD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zB=Q(pw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),e$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:x="selectedMenu",slots:v={},slotProps:w={},...b}=r,C=Nt(),k={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:m,TransitionProps:y,variant:x},M=LB(k),T=o&&!a&&u,E=h.useRef(null),$=(I,L)=>{E.current&&E.current.adjustStyleForScrollbar(I,{direction:C?"rtl":"ltr"}),g&&g(I,L)},S=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let D=-1;h.Children.map(s,(I,L)=>{h.isValidElement(I)&&(I.props.disabled||(x==="selectedMenu"&&I.props.selected||D===-1)&&(D=L))});const j=v.paper??NB,F=w.paper??d,A=Je({elementType:v.root,externalSlotProps:w.root,ownerState:k,className:[M.root,i]}),R=Je({elementType:j,externalSlotProps:F,ownerState:k,className:M.paper});return p.jsx(_B,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?jB:FB,slots:{paper:j,root:v.root},slotProps:{root:A,paper:R},open:u,ref:n,transitionDuration:m,TransitionProps:{onEntering:$,...y},ownerState:k,...b,classes:f,children:p.jsx(zB,{onKeyDown:S,actions:E,autoFocus:o&&(D===-1||a),autoFocusItem:T,variant:x,...l,className:se(M.list,l.className),children:s})})});function yk(e){const{mode:t,systemMode:n,setMode:r}=HD(),[o,s]=h.useState(null),i=!!o,a=f=>{s(f.currentTarget)},l=()=>{s(null)},c=f=>()=>{r(f),l()};if(!t)return p.jsx(We,{"data-screenshot":"toggle-mode",sx:f=>({verticalAlign:"bottom",display:"inline-flex",width:"2.25rem",height:"2.25rem",borderRadius:f.shape.borderRadius,border:"1px solid",borderColor:f.palette.divider})});const u=n||t,d={light:p.jsx(PB,{}),dark:p.jsx(kB,{})}[u];return p.jsxs(h.Fragment,{children:[p.jsx(gn,{"data-screenshot":"toggle-mode",onClick:a,disableRipple:!0,size:"small","aria-controls":i?"color-scheme-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,...e,children:d}),p.jsxs(e$,{anchorEl:o,id:"account-menu",open:i,onClose:l,onClick:l,slotProps:{paper:{variant:"outlined",elevation:0,sx:{my:"4px"}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[p.jsx(Bt,{selected:t==="system",onClick:c("system"),children:"System"}),p.jsx(Bt,{selected:t==="light",onClick:c("light"),children:"Light"}),p.jsx(Bt,{selected:t==="dark",onClick:c("dark"),children:"Dark"})]})]})}const BB=Q(sw)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,borderRadius:`calc(${e.shape.borderRadius}px + 8px)`,backdropFilter:"blur(24px)",border:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.background.default,boxShadow:e.shadows[1],padding:"8px 12px"}));function HB(){const[e,t]=h.useState(!1),n=OF(),r=u=>()=>{t(u)},o=()=>{n("/demo"),r(!1)()},s=()=>{n("/signin"),r(!1)()},i=()=>{n("/signup"),r(!1)()},a=()=>{n("/blog"),r(!1)()},l=()=>{n("/"),r(!1)()},c=()=>{n("/faq"),r(!1)()};return p.jsx(Bz,{position:"fixed",enableColorOnDark:!0,sx:{boxShadow:0,bgcolor:"transparent",backgroundImage:"none",mt:"calc(var(--template-frame-height, 0px) + 28px)"},children:p.jsx(Uo,{maxWidth:"lg",children:p.jsxs(BB,{variant:"dense",disableGutters:!0,children:[p.jsxs(We,{sx:{flexGrow:1,display:"flex",alignItems:"center",px:0},children:[p.jsx(XD,{}),p.jsxs(We,{sx:{display:{xs:"none",md:"flex"}},children:[p.jsx(ut,{variant:"text",color:"info",size:"small",onClick:l,children:"Features"}),p.jsx(ut,{variant:"text",color:"info",size:"small",onClick:o,children:"Demo"}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(ut,{variant:"text",color:"info",size:"small",children:"Testimonials"}),p.jsx(ut,{variant:"text",color:"info",size:"small",children:"Highlights"}),p.jsx(ut,{variant:"text",color:"info",size:"small",children:"Pricing"})]}),p.jsx(ut,{variant:"text",color:"info",size:"small",sx:{minWidth:0},onClick:c,children:"FAQ"}),p.jsx(ut,{variant:"text",color:"info",size:"small",sx:{minWidth:0},onClick:a,children:"Blog"})]})]}),p.jsxs(We,{sx:{display:{xs:"none",md:"flex"},gap:1,alignItems:"center"},children:[p.jsx(ut,{color:"primary",variant:"text",size:"small",onClick:s,children:"Sign in"}),p.jsx(ut,{color:"primary",variant:"contained",size:"small",onClick:i,children:"Sign up"}),p.jsx(yk,{})]}),p.jsxs(We,{sx:{display:{xs:"flex",md:"none"},gap:1},children:[p.jsx(yk,{size:"medium"}),p.jsx(gn,{"aria-label":"Menu button",onClick:r(!0),children:p.jsx(CB,{})}),p.jsx(wB,{anchor:"top",open:e,onClose:r(!1),PaperProps:{sx:{top:"var(--template-frame-height, 0px)"}},children:p.jsxs(We,{sx:{p:2,backgroundColor:"background.default"},children:[p.jsx(We,{sx:{display:"flex",justifyContent:"flex-end"},children:p.jsx(gn,{onClick:r(!1),children:p.jsx(SB,{})})}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"contained",fullWidth:!0,onClick:l,children:"Features"})}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(Bt,{children:"Testimonials"}),p.jsx(Bt,{children:"Highlights"}),p.jsx(Bt,{children:"Pricing"})]}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"contained",fullWidth:!0,onClick:o,children:"Demo"})}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"contained",fullWidth:!0,onClick:c,children:"FAQ"})}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"contained",fullWidth:!0,onClick:a,children:"Blog"})}),p.jsx(Gn,{sx:{my:3}}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"contained",fullWidth:!0,onClick:i,children:"Sign up"})}),p.jsx(Bt,{children:p.jsx(ut,{color:"primary",variant:"outlined",fullWidth:!0,onClick:s,children:"Sign in"})})]})})]})]})})})}function nl({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 d0=h.createContext(void 0);function Kr(){return h.useContext(d0)}function VB(e){return ve("MuiFormLabel",e)}const Cd=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),GB=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ae(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return le(l,VB,t)},WB=Q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})($e(({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(Lt()).map(([t])=>({props:{color:t},style:{[`&.${Cd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Cd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),UB=Q("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})($e(({theme:e})=>({[`&.${Cd.error}`]:{color:(e.vars||e).palette.error.main}}))),uc=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:f,...m}=r,g=Kr(),y=nl({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),x={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},v=GB(x);return p.jsxs(WB,{as:a,ownerState:x,className:se(v.root,s),ref:n,...m,children:[o,y.required&&p.jsxs(UB,{ownerState:x,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});function YB(e){return ve("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KB=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ae(r)}`,i],asterisk:[a&&"asterisk"]},c=le(l,YB,t);return{...t,...c}},qB=Q(uc,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cd.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]]}})($e(({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)"}}]}))),Hf=h.forwardRef(function(t,n){const r=Le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=Kr();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=nl({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=KB(m);return p.jsx(qB,{"data-shrink":d,ref:n,className:se(g.root,l),...c,ownerState:m,classes:g})});function XB(e){return ve("MuiLink",e)}const QB=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ZB=({theme:e,ownerState:t})=>{const n=t.color,r=Ec(e,`palette.${n}`,!1)||t.color,o=Ec(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xe(r,.4)},vk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JB=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${ae(o)}`,n==="button"&&"button",r&&"focusVisible"]};return le(s,XB,t)},eH=Q(we,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ae(n.underline)}`],n.component==="button"&&t.button]}})($e(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:xe(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:xe(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:xe(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${QB.focusVisible}`]:{outline:"auto"}}}]}))),pn=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiLink"}),o=Mn(),{className:s,color:i="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:m,...g}=r,[y,x]=h.useState(!1),v=k=>{$c(k.target)||x(!1),l&&l(k)},w=k=>{$c(k.target)&&x(!0),c&&c(k)},b={...r,color:i,component:a,focusVisible:y,underline:d,variant:f},C=JB(b);return p.jsx(eH,{color:i,className:se(C.root,s),classes:u,component:a,onBlur:v,onFocus:w,ref:n,ownerState:b,variant:f,...g,sx:[...vk[i]===void 0?[{color:i}]:[],...Array.isArray(m)?m:[m]],style:{...g.style,...d==="always"&&i!=="inherit"&&!vk[i]&&{"--Link-underlineColor":ZB({theme:o,ownerState:b})}}})}),Va=E9({createStyledComponent:Q("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Le({props:e,name:"MuiStack"})});function zp(e){return parseInt(e,10)||0}const tH={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const rH=h.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=h.useRef(a!=null),u=h.useRef(null),d=et(n,u),f=h.useRef(null),m=h.useRef(null),g=h.useCallback(()=>{const v=u.current,b=zr(v).getComputedStyle(v);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=m.current;C.style.width=b.width,C.value=v.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const k=b.boxSizing,M=zp(b.paddingBottom)+zp(b.paddingTop),T=zp(b.borderBottomWidth)+zp(b.borderTopWidth),E=C.scrollHeight;C.value="x";const $=C.scrollHeight;let S=E;s&&(S=Math.max(Number(s)*$,S)),o&&(S=Math.min(Number(o)*$,S)),S=Math.max(S,$);const D=S+(k==="border-box"?M+T:0),j=Math.abs(S-E)<=1;return{outerHeightStyle:D,overflowing:j}},[o,s,t.placeholder]),y=h.useCallback(()=>{const v=g();if(nH(v))return;const w=v.outerHeightStyle,b=u.current;f.current!==w&&(f.current=w,b.style.height=`${w}px`),b.style.overflow=v.overflowing?"hidden":""},[g]);ot(()=>{const v=()=>{y()};let w;const b=Kb(v),C=u.current,k=zr(C);k.addEventListener("resize",b);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(v),M.observe(C)),()=>{b.clear(),cancelAnimationFrame(w),k.removeEventListener("resize",b),M&&M.disconnect()}},[g,y]),ot(()=>{y()});const x=v=>{c||y(),r&&r(v)};return p.jsxs(h.Fragment,{children:[p.jsx("textarea",{value:a,onChange:x,ref:d,rows:s,style:i,...l}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...tH.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function xk(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mm(e,t=!1){return e&&(xk(e.value)&&e.value!==""||t&&xk(e.defaultValue)&&e.defaultValue!=="")}function oH(e){return e.startAdornment}function sH(e){return ve("MuiInputBase",e)}const Tr=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bk;const f0=(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${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},p0=(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]},iH=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:m,type:g}=e,y={root:["root",`color${ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",f&&f!=="medium"&&`size${ae(f)}`,u&&"multiline",m&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return le(y,sH,t)},h0=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:f0})($e(({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",[`&.${Tr.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%"}}]}))),m0=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:p0})($e(({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] + .${Tr.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},[`&.${Tr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),wk=ew({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),au=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:x=!1,id:v,inputComponent:w="input",inputProps:b={},inputRef:C,margin:k,maxRows:M,minRows:T,multiline:E=!1,name:$,onBlur:S,onChange:D,onClick:j,onFocus:F,onKeyDown:A,onKeyUp:R,placeholder:I,readOnly:L,renderSuffix:O,rows:_,size:N,slotProps:z={},slots:U={},startAdornment:J,type:Y="text",value:B,...W}=r,te=b.value!=null?b.value:B,{current:X}=h.useRef(te!=null),q=h.useRef(),G=h.useCallback(Me=>{},[]),ee=et(q,C,b.ref,G),[H,Z]=h.useState(!1),ne=Kr(),oe=nl({props:r,muiFormControl:ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=ne?ne.focused:H,h.useEffect(()=>{!ne&&f&&H&&(Z(!1),S&&S())},[ne,f,H,S]);const re=ne&&ne.onFilled,ue=ne&&ne.onEmpty,ie=h.useCallback(Me=>{Mm(Me)?re&&re():ue&&ue()},[re,ue]);ot(()=>{X&&ie({value:te})},[te,ie,X]);const be=Me=>{F&&F(Me),b.onFocus&&b.onFocus(Me),ne&&ne.onFocus?ne.onFocus(Me):Z(!0)},Te=Me=>{S&&S(Me),b.onBlur&&b.onBlur(Me),ne&&ne.onBlur?ne.onBlur(Me):Z(!1)},Fe=(Me,...Ve)=>{if(!X){const bt=Me.target||q.current;if(bt==null)throw new Error(Ys(1));ie({value:bt.value})}b.onChange&&b.onChange(Me,...Ve),D&&D(Me,...Ve)};h.useEffect(()=>{ie(q.current)},[]);const Xe=Me=>{q.current&&Me.currentTarget===Me.target&&q.current.focus(),j&&j(Me)};let Pe=w,Ie=b;E&&Pe==="input"&&(_?Ie={type:void 0,minRows:_,maxRows:_,...Ie}:Ie={type:void 0,maxRows:M,minRows:T,...Ie},Pe=rH);const Be=Me=>{ie(Me.animationName==="mui-auto-fill-cancel"?q.current:{value:"x"})};h.useEffect(()=>{ne&&ne.setAdornedStart(!!J)},[ne,J]);const Ge={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:ne,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:E,size:oe.size,startAdornment:J,type:Y},Ae=iH(Ge),Oe=U.root||c.Root||h0,He=z.root||u.root||{},Ee=U.input||c.Input||m0;return Ie={...Ie,...z.input??u.input},p.jsxs(h.Fragment,{children:[!m&&typeof wk=="function"&&(bk||(bk=p.jsx(wk,{}))),p.jsxs(Oe,{...He,ref:n,onClick:Xe,...W,...!Ac(Oe)&&{ownerState:{...Ge,...He.ownerState}},className:se(Ae.root,He.className,a,L&&"MuiInputBase-readOnly"),children:[J,p.jsx(d0.Provider,{value:null,children:p.jsx(Ee,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:oe.disabled,id:v,onAnimationStart:Be,name:$,placeholder:I,readOnly:L,required:oe.required,rows:_,value:te,onKeyDown:A,onKeyUp:R,type:Y,...Ie,...!Ac(Ee)&&{as:Pe,ownerState:{...Ge,...Ie.ownerState}},ref:ee,className:se(Ae.input,Ie.className,L&&"MuiInputBase-readOnly"),onBlur:Te,onChange:Fe,onFocus:be})}),g,O?O({...oe,startAdornment:J}):null]})]})});function aH(e){return ve("MuiInput",e)}const Si={...Tr,...me("MuiInput",["root","underline","input"])},lH=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},aH,t);return{...t,...o}},cH=Q(h0,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})($e(({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"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.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(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),uH=Q(m0,{name:"MuiInput",slot:"Input",overridesResolver:p0})({}),Im=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...m}=r,g=lH(r),x={root:{ownerState:{disableUnderline:o}}},v=u??i?kn(u??i,x):x,w=d.root??s.Root??cH,b=d.input??s.Input??uH;return p.jsx(au,{slots:{root:w,input:b},slotProps:v,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...m,classes:g})});Im&&(Im.muiName="Input");function dH(e){return ve("MuiFilledInput",e)}const Dr={...Tr,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},fH=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ae(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=le(l,dH,t);return{...t,...c}},pH=Q(h0,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...f0(e,t),!n.disableUnderline&&t.underline]}})($e(({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)",s=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}},[`&.${Dr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Dr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.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"},[`&.${Dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dr.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(.${Dr.disabled}, .${Dr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Dr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lt()).map(([i])=>{var a;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[i])==null?void 0:a.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),hH=Q(m0,{name:"MuiFilledInput",slot:"Input",overridesResolver:p0})($e(({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}}]}))),Em=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:m},x=fH(r),v={root:{ownerState:y},input:{ownerState:y}},w=d??i?kn(v,d??i):v,b=f.root??s.Root??pH,C=f.input??s.Input??hH;return p.jsx(au,{slots:{root:b,input:C},componentsProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:m,...g,classes:x})});Em&&(Em.muiName="Input");var Ck;const mH=Q("fieldset",{shouldForwardProp:Un})({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%"}),gH=Q("legend",{shouldForwardProp:Un})($e(({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 yH(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return p.jsx(mH,{"aria-hidden":!0,className:r,ownerState:l,...i,children:p.jsx(gH,{ownerState:l,children:a?p.jsx("span",{children:o}):Ck||(Ck=p.jsx("span",{className:"notranslate",children:"​"}))})})}function vH(e){return ve("MuiOutlinedInput",e)}const Mr={...Tr,...me("MuiOutlinedInput",["root","notchedOutline","input"])},xH=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vH,t);return{...t,...r}},bH=Q(h0,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:f0})($e(({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 .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Mr.focused} .${Mr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Lt()).map(([n])=>({props:{color:n},style:{[`&.${Mr.focused} .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Mr.error} .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mr.disabled} .${Mr.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"}}]}})),wH=Q(yH,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})($e(({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}})),CH=Q(m0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:p0})($e(({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}}]}))),Oc=h.forwardRef(function(t,n){var r;const o=Le({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...m}=o,g=xH(o),y=Kr(),x=nl({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:c,size:x.size,type:f},w=d.root??s.Root??bH,b=d.input??s.Input??CH;return p.jsx(au,{slots:{root:w,input:b},renderSuffix:C=>p.jsx(wH,{ownerState:v,className:g.notchedOutline,label:l!=null&&l!==""&&x.required?r||(r=p.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:f,...m,classes:{...g,notchedOutline:null}})});Oc&&(Oc.muiName="Input");function SH(e){return ve("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kH=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ae(n)}`,r&&"fullWidth"]};return le(o,SH,t)},PH=Q("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${ae(e.margin)}`],...e.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%"}}]}),_s=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:m="none",required:g=!1,size:y="medium",variant:x="outlined",...v}=r,w={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:m,required:g,size:y,variant:x},b=kH(w),[C,k]=h.useState(()=>{let F=!1;return o&&h.Children.forEach(o,A=>{if(!xd(A,["Input","Select"]))return;const R=xd(A,["Select"])?A.props.input:A;R&&oH(R.props)&&(F=!0)}),F}),[M,T]=h.useState(()=>{let F=!1;return o&&h.Children.forEach(o,A=>{xd(A,["Input","Select"])&&(Mm(A.props,!0)||Mm(A.props.inputProps,!0))&&(F=!0)}),F}),[E,$]=h.useState(!1);l&&E&&$(!1);const S=u!==void 0&&!l?u:E;let D;h.useRef(!1);const j=h.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:i,disabled:l,error:c,filled:M,focused:S,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{$(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{$(!0)},registerEffect:D,required:g,variant:x}),[C,i,l,c,M,S,d,f,D,g,y,x]);return p.jsx(d0.Provider,{value:j,children:p.jsx(PH,{as:a,ownerState:w,className:se(b.root,s),ref:n,...v,children:o})})});function MH(e){return ve("MuiFormHelperText",e)}const Sk=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kk;const IH=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ae(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return le(c,MH,t)},EH=Q("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sk.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sk.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}}]}))),t$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:f,variant:m,...g}=r,y=Kr(),x=nl({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:i,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete v.ownerState;const w=IH(v);return p.jsx(EH,{as:i,className:se(w.root,s),ref:n,...g,ownerState:v,children:o===" "?kk||(kk=p.jsx("span",{className:"notranslate",children:"​"})):o})});function TH(e){return ve("MuiNativeSelect",e)}const hw=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),DH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(n)}`,s&&"iconOpen",r&&"disabled"]};return le(a,TH,t)},n$=Q("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hw.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}}}]})),$H=Q(n$,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hw.multiple}`]:t.multiple}]}})({}),r$=Q("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hw.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}}]})),RH=Q(r$,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),AH=h.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},d=DH(u);return p.jsxs(h.Fragment,{children:[p.jsx($H,{ownerState:u,className:se(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:p.jsx(RH,{as:i,ownerState:u,className:d.icon})]})});function OH(e){return ve("MuiSelect",e)}const ya=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Pk;const jH=Q(n$,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ya.select}`]:t.select},{[`&.${ya.select}`]:t[n.variant]},{[`&.${ya.error}`]:t.error},{[`&.${ya.multiple}`]:t.multiple}]}})({[`&.${ya.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),FH=Q(r$,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),LH=Q("input",{shouldForwardProp:e=>xD(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 Mk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _H(e){return e==null||typeof e=="string"&&!e.trim()}const NH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return le(a,OH,t)},zH=h.forwardRef(function(t,n){var bt;const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:m=!1,IconComponent:g,inputRef:y,labelId:x,MenuProps:v={},multiple:w,name:b,onBlur:C,onChange:k,onClose:M,onFocus:T,onOpen:E,open:$,readOnly:S,renderValue:D,SelectDisplayProps:j={},tabIndex:F,type:A,value:R,variant:I="standard",...L}=t,[O,_]=On({controlled:R,default:u,name:"Select"}),[N,z]=On({controlled:$,default:c,name:"Select"}),U=h.useRef(null),J=h.useRef(null),[Y,B]=h.useState(null),{current:W}=h.useRef($!=null),[te,X]=h.useState(),q=et(n,y),G=h.useCallback(ge=>{J.current=ge,ge&&B(ge)},[]),ee=Y==null?void 0:Y.parentNode;h.useImperativeHandle(q,()=>({focus:()=>{J.current.focus()},node:U.current,value:O}),[O]),h.useEffect(()=>{c&&N&&Y&&!W&&(X(i?null:ee.clientWidth),J.current.focus())},[Y,i]),h.useEffect(()=>{s&&J.current.focus()},[s]),h.useEffect(()=>{if(!x)return;const ge=_t(J.current).getElementById(x);if(ge){const De=()=>{getSelection().isCollapsed&&J.current.focus()};return ge.addEventListener("click",De),()=>{ge.removeEventListener("click",De)}}},[x]);const H=(ge,De)=>{ge?E&&E(De):M&&M(De),W||(X(i?null:ee.clientWidth),z(ge))},Z=ge=>{ge.button===0&&(ge.preventDefault(),J.current.focus(),H(!0,ge))},ne=ge=>{H(!1,ge)},oe=h.Children.toArray(a),re=ge=>{const De=oe.find(qe=>qe.props.value===ge.target.value);De!==void 0&&(_(De.props.value),k&&k(ge,De))},ue=ge=>De=>{let qe;if(De.currentTarget.hasAttribute("tabindex")){if(w){qe=Array.isArray(O)?O.slice():[];const ft=O.indexOf(ge.props.value);ft===-1?qe.push(ge.props.value):qe.splice(ft,1)}else qe=ge.props.value;if(ge.props.onClick&&ge.props.onClick(De),O!==qe&&(_(qe),k)){const ft=De.nativeEvent||De,Yn=new ft.constructor(ft.type,ft);Object.defineProperty(Yn,"target",{writable:!0,value:{value:qe,name:b}}),k(Yn,ge)}w||H(!1,De)}},ie=ge=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),H(!0,ge))},be=Y!==null&&N,Te=ge=>{!be&&C&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:O,name:b}}),C(ge))};delete L["aria-invalid"];let Fe,Xe;const Pe=[];let Ie=!1;(Mm({value:O})||f)&&(D?Fe=D(O):Ie=!0);const Be=oe.map(ge=>{if(!h.isValidElement(ge))return null;let De;if(w){if(!Array.isArray(O))throw new Error(Ys(2));De=O.some(qe=>Mk(qe,ge.props.value)),De&&Ie&&Pe.push(ge.props.children)}else De=Mk(O,ge.props.value),De&&Ie&&(Xe=ge.props.children);return h.cloneElement(ge,{"aria-selected":De?"true":"false",onClick:ue(ge),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(qe)},role:"option",selected:De,value:void 0,"data-value":ge.props.value})});Ie&&(w?Pe.length===0?Fe=null:Fe=Pe.reduce((ge,De,qe)=>(ge.push(De),qe{const{classes:t}=e;return t},mw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Un(e)&&e!=="variant",slot:"Root"},HH=Q(Im,mw)(""),VH=Q(Oc,mw)(""),GH=Q(Em,mw)(""),Vf=h.forwardRef(function(t,n){const r=Le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=o$,id:d,input:f,inputProps:m,label:g,labelId:y,MenuProps:x,multiple:v=!1,native:w=!1,onClose:b,onOpen:C,open:k,renderValue:M,SelectDisplayProps:T,variant:E="outlined",...$}=r,S=w?AH:zH,D=Kr(),j=nl({props:r,muiFormControl:D,states:["variant","error"]}),F=j.variant||E,A={...r,variant:F,classes:i},R=BH(A),{root:I,...L}=R,O=f||{standard:p.jsx(HH,{ownerState:A}),outlined:p.jsx(VH,{label:g,ownerState:A}),filled:p.jsx(GH,{ownerState:A})}[F],_=et(n,Qi(O));return p.jsx(h.Fragment,{children:h.cloneElement(O,{inputComponent:S,inputProps:{children:s,error:j.error,IconComponent:u,variant:F,type:void 0,multiple:v,...w?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:x,onClose:b,onOpen:C,open:k,renderValue:M,SelectDisplayProps:{id:d,...T}},...m,classes:m?kn(L,m.classes):L,...f?f.props.inputProps:{}},...(v&&w||c)&&F==="outlined"?{notched:!0}:{},ref:_,className:se(O.props.className,a,R.root),...!f&&{variant:F},...$})})});Vf.muiName="Select";function WH(e){return ve("MuiTextField",e)}me("MuiTextField",["root"]);const UH={standard:Im,filled:Em,outlined:Oc},YH=e=>{const{classes:t}=e;return le({root:["root"]},WH,t)},KH=Q(_s,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ns=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:x,inputProps:v,InputProps:w,inputRef:b,label:C,maxRows:k,minRows:M,multiline:T=!1,name:E,onBlur:$,onChange:S,onFocus:D,placeholder:j,required:F=!1,rows:A,select:R=!1,SelectProps:I,slots:L={},slotProps:O={},type:_,value:N,variant:z="outlined",...U}=r,J={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:m,multiline:T,required:F,select:R,variant:z},Y=YH(J),B=pt(y),W=g&&B?`${B}-helper-text`:void 0,te=C&&B?`${B}-label`:void 0,X=UH[z],q={slots:L,slotProps:{input:w,inputLabel:x,htmlInput:v,formHelperText:f,select:I,...O}},G={},ee=q.slotProps.inputLabel;z==="outlined"&&(ee&&typeof ee.shrink<"u"&&(G.notched=ee.shrink),G.label=C),R&&((!I||!I.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[H,Z]=qt("input",{elementType:X,externalForwardedProps:q,additionalProps:G,ownerState:J}),[ne,oe]=qt("inputLabel",{elementType:Hf,externalForwardedProps:q,ownerState:J}),[re,ue]=qt("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:J}),[ie,be]=qt("formHelperText",{elementType:t$,externalForwardedProps:q,ownerState:J}),[Te,Fe]=qt("select",{elementType:Vf,externalForwardedProps:q,ownerState:J}),Xe=p.jsx(H,{"aria-describedby":W,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:m,multiline:T,name:E,rows:A,maxRows:k,minRows:M,type:_,value:N,id:B,inputRef:b,onBlur:$,onChange:S,onFocus:D,placeholder:j,inputProps:ue,slots:{input:L.htmlInput?re:void 0},...Z});return p.jsxs(KH,{className:se(Y.root,a),disabled:u,error:d,fullWidth:m,ref:n,required:F,color:l,variant:z,ownerState:J,...U,children:[C!=null&&C!==""&&p.jsx(ne,{htmlFor:B,id:te,...oe,children:C}),R?p.jsx(Te,{"aria-describedby":W,id:B,labelId:te,value:N,input:Xe,...Fe,children:i}):Xe,g&&p.jsx(ie,{id:W,...be,children:g})]})}),qH=Q("div")(({theme:e})=>({alignSelf:"center",width:"100%",height:400,marginTop:e.spacing(8),borderRadius:e.shape.borderRadius,outline:"6px solid",outlineColor:"hsla(220, 25%, 80%, 0.2)",border:"1px solid",borderColor:e.palette.grey[200],boxShadow:"0 0 12px 8px hsla(220, 25%, 80%, 0.2)",backgroundImage:"url(https://mui.com/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)",backgroundSize:"cover",[e.breakpoints.up("sm")]:{marginTop:e.spacing(10),height:700},...e.applyStyles("dark",{boxShadow:"0 0 24px 12px hsla(210, 100%, 25%, 0.2)",backgroundImage:"url(https://mui.com/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)",outlineColor:"hsla(220, 20%, 42%, 0.1)",borderColor:e.palette.grey[700]})}));function XH(){return p.jsx(We,{id:"hero",sx:e=>({width:"100%",backgroundRepeat:"no-repeat",backgroundImage:"radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 90%), transparent)",...e.applyStyles("dark",{backgroundImage:"radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 16%), transparent)"})}),children:p.jsxs(Uo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",pt:{xs:14,sm:20},pb:{xs:8,sm:12}},children:[p.jsxs(Va,{spacing:2,useFlexGap:!0,sx:{alignItems:"center",width:{xs:"100%",sm:"70%"}},children:[p.jsx(we,{variant:"h3",sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",fontSize:"clamp(3rem, 10vw, 3.5rem)"},children:"Sanjeevini"}),p.jsx(we,{sx:{textAlign:"center",color:"text.secondary",width:{sm:"100%",md:"80%"}},children:"A privacy-focused, local AI-powered medical translation agent for doctors."}),p.jsx(we,{sx:{textAlign:"center",color:"text.secondary",width:{sm:"100%",md:"80%"}}}),"Enables accurate diagnosis across language barriers by processing sensitive patient data on-device.",p.jsx(Va,{direction:{xs:"column",sm:"row"},spacing:1,useFlexGap:!0,sx:{pt:2,width:{xs:"100%",sm:"350px"}},children:p.jsxs("div",{style:{display:"none"},children:[p.jsx(Hf,{htmlFor:"email-hero",sx:oD,children:"Email"}),p.jsx(Ns,{id:"email-hero",hiddenLabel:!0,size:"small",variant:"outlined","aria-label":"Enter your email address",placeholder:"Your email address",fullWidth:!0,slotProps:{htmlInput:{autoComplete:"off","aria-label":"Enter your email address"}}}),p.jsx(ut,{variant:"contained",color:"primary",size:"small",sx:{minWidth:"fit-content"},children:"Start now"})]})}),p.jsx("div",{style:{display:"none"},children:p.jsxs(we,{variant:"caption",color:"text.secondary",sx:{textAlign:"center"},children:['By clicking "Start now" you agree to our ',p.jsx(pn,{href:"#",color:"primary",children:"Terms & Conditions"}),"."]})})]}),p.jsx("div",{style:{display:"none"},children:p.jsx(qH,{id:"image"})})]})})}const Ik=h.createContext();function QH(e){return ve("MuiGrid",e)}const ZH=[0,1,2,3,4,5,6,7,8,9,10],JH=["column-reverse","column","row-reverse","row"],eV=["nowrap","wrap-reverse","wrap"],Au=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],of=me("MuiGrid",["root","container","item","zeroMinWidth",...ZH.map(e=>`spacing-xs-${e}`),...JH.map(e=>`direction-xs-${e}`),...eV.map(e=>`wrap-xs-${e}`),...Au.map(e=>`grid-xs-${e}`),...Au.map(e=>`grid-sm-${e}`),...Au.map(e=>`grid-md-${e}`),...Au.map(e=>`grid-lg-${e}`),...Au.map(e=>`grid-xl-${e}`)]);function tV({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Ea({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof i=="object"?i[o]:i;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${u})`;c={flexBasis:d,maxWidth:d}}}s={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function nV({theme:e,ownerState:t}){const n=Ea({values:t.direction,breakpoints:e.breakpoints.values});return br({theme:e},n,r=>{const o={flexDirection:r};return r.startsWith("column")&&(o[`& > .${of.item}`]={maxWidth:"none"}),o})}function s$({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function rV({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=Ea({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=s$({breakpoints:e.breakpoints.values,values:s})),o=br({theme:e},s,(a,l)=>{const c=e.spacing(a);return c!=="0px"?{marginTop:`-${c}`,[`& > .${of.item}`]:{paddingTop:c}}:i!=null&&i.includes(l)?{}:{marginTop:0,[`& > .${of.item}`]:{paddingTop:0}}})}return o}function oV({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=Ea({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=s$({breakpoints:e.breakpoints.values,values:s})),o=br({theme:e},s,(a,l)=>{const c=e.spacing(a);if(c!=="0px"){const u=`-${c}`;return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${of.item}`]:{paddingLeft:c}}}return i!=null&&i.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${of.item}`]:{paddingLeft:0}}})}return o}function sV(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const iV=Q("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=sV(i,c,t));const d=[];return c.forEach(f=>{const m=n[f];m&&d.push(t[`grid-${f}-${String(m)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),nV,rV,oV,tV);function aV(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const lV=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=aV(s,l));const u=[];l.forEach(f=>{const m=e[f];m&&u.push(`grid-${f}-${String(m)}`)});const d={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return le(d,QH,t)},sr=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiGrid"}),{breakpoints:o}=Mn(),s=Ff(r),{className:i,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:m,spacing:g=0,wrap:y="wrap",zeroMinWidth:x=!1,...v}=s,w=m||g,b=l||g,C=h.useContext(Ik),k=u?a||12:C,M={},T={...v};o.keys.forEach(S=>{v[S]!=null&&(M[S]=v[S],delete T[S])});const E={...s,columns:k,container:u,direction:d,item:f,rowSpacing:w,columnSpacing:b,wrap:y,zeroMinWidth:x,spacing:g,...M,breakpoints:o.keys},$=lV(E);return p.jsx(Ik.Provider,{value:k,children:p.jsx(iV,{ownerState:E,className:se($.root,i),as:c,ref:n,...T})})}),cV=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628e8573c43893fe0ace_Sydney-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d520d0517ae8e8ddf13_Bern-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f46794c159024c1af6d44_Montreal-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e891fa22f89efd7477a_TerraLight.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a09d1f6337b1dfed14ab_colorado-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5caa77bf7d69fb78792e_Ankara-white.svg"],uV=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628889c3bdf1129952dc_Sydney-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d4d8b829a89976a419c_Bern-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f467502f091ccb929529d_Montreal-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e911fa22f2203d7514c_TerraDark.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a0990f3717787fd49245_colorado-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5ca4e548b0deb1041c33_Ankara-black.svg"],dV={width:"100px",height:"80px",margin:"0 32px",opacity:.7};function fV(){const t=Ja().palette.mode==="light"?uV:cV;return p.jsx("div",{style:{display:"none"},children:p.jsxs(We,{id:"logoCollection",sx:{py:4},children:[p.jsx(we,{component:"p",variant:"subtitle2",align:"center",sx:{color:"text.secondary"},children:"Trusted by the best companies"}),p.jsx(sr,{container:!0,sx:{justifyContent:"center",mt:.5,opacity:.6},children:t.map((n,r)=>p.jsx(sr,{item:!0,children:p.jsx("img",{src:n,alt:`Fake company number ${r+1}`,style:dV})},r))})]})})}function pV(e){return ve("MuiCard",e)}me("MuiCard",["root"]);const hV=e=>{const{classes:t}=e;return le({root:["root"]},pV,t)},mV=Q(Io,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Zi=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...i}=r,a={...r,raised:s},l=hV(a);return p.jsx(mV,{className:se(l.root,o),elevation:s?8:void 0,ref:n,ownerState:a,...i})}),dr=w9({createStyledComponent:Q("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Le({props:e,name:"MuiGrid2"})}),gV=Re(p.jsx("path",{d:"m20.45 6 .49-1.06L22 4.45c.39-.18.39-.73 0-.91l-1.06-.49L20.45 2c-.18-.39-.73-.39-.91 0l-.49 1.06-1.05.49c-.39.18-.39.73 0 .91l1.06.49.49 1.05c.17.39.73.39.9 0M8.95 6l.49-1.06 1.06-.49c.39-.18.39-.73 0-.91l-1.06-.48L8.95 2c-.17-.39-.73-.39-.9 0l-.49 1.06-1.06.49c-.39.18-.39.73 0 .91l1.06.49L8.05 6c.17.39.73.39.9 0m10.6 7.5-.49 1.06-1.06.49c-.39.18-.39.73 0 .91l1.06.49.49 1.06c.18.39.73.39.91 0l.49-1.06 1.05-.5c.39-.18.39-.73 0-.91l-1.06-.49-.49-1.06c-.17-.38-.73-.38-.9.01m-1.84-4.38-2.83-2.83a.996.996 0 0 0-1.41 0L2.29 17.46c-.39.39-.39 1.02 0 1.41l2.83 2.83c.39.39 1.02.39 1.41 0L17.7 10.53c.4-.38.4-1.02.01-1.41m-3.5 2.09L12.8 9.8l1.38-1.38 1.41 1.41z"}),"AutoFixHighRounded"),yV=Re(p.jsx("path",{d:"m20.99 17.99-4.94-4.94-2.12 2.12 4.94 4.94c.59.59 1.54.59 2.12 0s.58-1.54 0-2.12M17.65 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41-1.93 0-3.5 1.57-3.5 3.5 0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78c.39-.39.39-1.02 0-1.41l-.71-.71 2.12-2.12c-1.17-1.17-3.07-1.17-4.24 0L5.08 6.32c-.39.39-.39 1.02 0 1.41l.71.71H3.25c-.19 0-.37.07-.5.21-.28.28-.28.72 0 1l2.54 2.54c.28.28.72.28 1 0 .13-.13.21-.31.21-.5V9.15l.7.7c.39.39 1.02.39 1.41 0l1.78 1.78-6.35 6.35c-.59.59-.59 1.54 0 2.12.59.59 1.54.59 2.12 0L16.48 9.79c.37.13.76.21 1.17.21"}),"ConstructionRounded"),vV=Re(p.jsx("path",{d:"M19.88 18.47c.48-.77.75-1.67.69-2.66-.13-2.15-1.84-3.97-3.97-4.2-2.72-.3-5.02 1.81-5.02 4.47 0 2.49 2.01 4.5 4.49 4.5.88 0 1.7-.26 2.39-.7l2.41 2.41c.39.39 1.03.39 1.42 0s.39-1.03 0-1.42zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.08 5.01c-.36.58-1.17.64-1.61.13l-2.12-2.47-3.06 4.9c-.31.49-.97.62-1.44.28-.42-.31-.54-.89-.26-1.34l3.78-6.05c.36-.57 1.17-.63 1.61-.12L9 12.5l3.18-5.17c.38-.62 1.28-.64 1.68-.03zm2.59.5c-.64-.28-1.33-.45-2.05-.49L20.8 2.9c.31-.49.97-.61 1.43-.27.43.31.54.9.26 1.34z"}),"QueryStatsRounded"),xV=Re(p.jsx("path",{d:"m18.04 7.99-.63-1.4-1.4-.63c-.39-.18-.39-.73 0-.91l1.4-.63.63-1.4c.18-.39.73-.39.91 0l.63 1.4 1.4.63c.39.18.39.73 0 .91l-1.4.63-.63 1.4c-.17.39-.73.39-.91 0m3.24 4.73-.32-.72c-.18-.39-.73-.39-.91 0l-.32.72-.73.32c-.39.18-.39.73 0 .91l.72.32.32.73c.18.39.73.39.91 0l.32-.72.73-.32c.39-.18.39-.73 0-.91zm-5.04 1.65 1.23.93c.4.3.51.86.26 1.3l-1.62 2.8c-.25.44-.79.62-1.25.42l-1.43-.6c-.2.13-.42.26-.64.37l-.19 1.54c-.06.5-.49.88-.99.88H8.38c-.5 0-.93-.38-.99-.88l-.19-1.54c-.22-.11-.43-.23-.64-.37l-1.43.6c-.46.2-1 .02-1.25-.42l-1.62-2.8c-.25-.44-.14-.99.26-1.3l1.23-.93V14c0-.12 0-.25.01-.37l-1.23-.93c-.4-.3-.51-.86-.26-1.3l1.62-2.8c.25-.44.79-.62 1.25-.42l1.43.6c.2-.13.42-.26.64-.37l.19-1.54c.05-.49.48-.87.98-.87h3.23c.5 0 .93.38.99.88l.19 1.54c.22.11.43.23.64.37l1.43-.6c.46-.2 1-.02 1.25.42l1.62 2.8c.25.44.14.99-.26 1.3l-1.23.93c.01.12.01.24.01.37s0 .24-.01.36M13 14c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3"}),"SettingsSuggestRounded"),bV=Re([p.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2 .55 0 1-.45 1-1v-4.81c0-3.83 2.95-7.18 6.78-7.29 3.96-.12 7.22 3.06 7.22 7V19h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),p.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),p.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),p.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")],"SupportAgentRounded"),wV=Re(p.jsx("path",{d:"M13.12 2.06 7.58 7.6c-.37.37-.58.88-.58 1.41V19c0 1.1.9 2 2 2h9c.8 0 1.52-.48 1.84-1.21l3.26-7.61C23.94 10.2 22.49 8 20.34 8h-5.65l.95-4.58c.1-.5-.05-1.01-.41-1.37-.59-.58-1.53-.58-2.11.01M3 21c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2s-2 .9-2 2v8c0 1.1.9 2 2 2"}),"ThumbUpAltRounded"),CV=[{icon:p.jsx(xV,{}),title:"Adaptable performance",description:"Our product effortlessly adjusts to your needs, boosting efficiency and simplifying your tasks."},{icon:p.jsx(yV,{}),title:"Built to last",description:"Experience unmatched durability that goes above and beyond with lasting investment."},{icon:p.jsx(wV,{}),title:"Great user experience",description:"Integrate our product into your routine with an intuitive and easy-to-use interface."},{icon:p.jsx(gV,{}),title:"Innovative functionality",description:"Stay ahead with features that set new standards, addressing your evolving needs better than the rest."},{icon:p.jsx(bV,{}),title:"Reliable support",description:"Count on our responsive customer support, offering assistance that goes beyond the purchase."},{icon:p.jsx(vV,{}),title:"Precision in every detail",description:"Enjoy a meticulously crafted product where small touches make a significant impact on your overall experience."}];function SV(){return p.jsx(We,{id:"highlights",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},color:"white",bgcolor:"grey.900"},children:p.jsxs(Uo,{sx:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(We,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(we,{component:"h2",variant:"h4",gutterBottom:!0,children:"Highlights"}),p.jsx(we,{variant:"body1",sx:{color:"grey.400"},children:"Explore why our product stands out: adaptability, durability, user-friendly design, and innovation. Enjoy reliable customer support and precision in every detail."})]}),p.jsx(dr,{container:!0,spacing:2,children:CV.map((e,t)=>p.jsx(dr,{size:{xs:12,sm:6,md:4},children:p.jsxs(Va,{direction:"column",component:Zi,spacing:1,useFlexGap:!0,sx:{color:"inherit",p:3,height:"100%",borderColor:"hsla(220, 25%, 25%, 0.3)",backgroundColor:"grey.800"},children:[p.jsx(We,{sx:{opacity:"50%"},children:e.icon}),p.jsxs("div",{children:[p.jsx(we,{gutterBottom:!0,sx:{fontWeight:"medium"},children:e.title}),p.jsx(we,{variant:"body2",sx:{color:"grey.400"},children:e.description})]})]})},t))})]})})}const kV=Re(p.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 PV(e){return ve("MuiChip",e)}const Ke=me("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"]),MV=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ae(r)}`,`color${ae(o)}`,a&&"clickable",a&&`clickableColor${ae(o)}`,i&&"deletable",i&&`deletableColor${ae(o)}`,`${l}${ae(o)}`],label:["label",`label${ae(r)}`],avatar:["avatar",`avatar${ae(r)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(r)}`,`iconColor${ae(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(r)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(l)}Color${ae(o)}`]};return le(c,PV,t)},IV=Q("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${ae(a)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${ae(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${ae(a)}`]},{[`& .${Ke.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${ae(a)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${ae(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${ae(l)}Color${ae(r)}`]},t.root,t[`size${ae(a)}`],t[`color${ae(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ae(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ae(r)}`],t[l],t[`${l}${ae(r)}`]]}})($e(({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",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:xe(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)`:xe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Lt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:xe(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ke.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Lt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ke.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}))`:xe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Lt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ke.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]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Lt()).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)`:xe(e.palette[n].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:xe(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:xe(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),EV=Q("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ae(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 Ek(e){return e.key==="Backspace"||e.key==="Delete"}const as=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:x,size:v="medium",variant:w="filled",tabIndex:b,skipFocusWhenDisabled:C=!1,...k}=r,M=h.useRef(null),T=et(M,n),E=_=>{_.stopPropagation(),g&&g(_)},$=_=>{_.currentTarget===_.target&&Ek(_)&&_.preventDefault(),y&&y(_)},S=_=>{_.currentTarget===_.target&&g&&Ek(_)&&g(_),x&&x(_)},D=i!==!1&&m?!0:i,j=D||g?qs:l||"div",F={...r,component:j,disabled:u,size:v,color:a,iconColor:h.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:D,variant:w},A=MV(F),R=j===qs?{component:l||"div",focusVisibleClassName:A.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=c&&h.isValidElement(c)?h.cloneElement(c,{className:se(c.props.className,A.deleteIcon),onClick:E}):p.jsx(kV,{className:se(A.deleteIcon),onClick:E}));let L=null;o&&h.isValidElement(o)&&(L=h.cloneElement(o,{className:se(A.avatar,o.props.className)}));let O=null;return d&&h.isValidElement(d)&&(O=h.cloneElement(d,{className:se(A.icon,d.props.className)})),p.jsxs(IV,{as:j,className:se(A.root,s),disabled:D&&u?!0:void 0,onClick:m,onKeyDown:$,onKeyUp:S,ref:T,tabIndex:C&&u?-1:b,ownerState:F,...R,...k,children:[L||O,p.jsx(EV,{className:se(A.label),ownerState:F,children:f}),I]})});function TV(e){return ve("MuiCardActions",e)}me("MuiCardActions",["root","spacing"]);const DV=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},TV,t)},$V=Q("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}}}]}),RV=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:s,...i}=r,a={...r,disableSpacing:o},l=DV(a);return p.jsx($V,{className:se(l.root,s),ownerState:a,ref:n,...i})});function AV(e){return ve("MuiCardContent",e)}me("MuiCardContent",["root"]);const OV=e=>{const{classes:t}=e;return le({root:["root"]},AV,t)},jV=Q("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),gw=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...i}=r,a={...r,component:s},l=OV(a);return p.jsx(jV,{as:s,className:se(l.root,o),ownerState:a,ref:n,...i})}),FV=Re(p.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),LV=Re(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded"),_V=[{title:"Free",price:"0",description:["10 users included","2 GB of storage","Help center access","Email support"],buttonText:"Sign up for free",buttonVariant:"outlined",buttonColor:"primary"},{title:"Professional",subheader:"Recommended",price:"15",description:["20 users included","10 GB of storage","Help center access","Priority email support","Dedicated team","Best deals"],buttonText:"Start now",buttonVariant:"contained",buttonColor:"secondary"},{title:"Enterprise",price:"30",description:["50 users included","30 GB of storage","Help center access","Phone & email support"],buttonText:"Contact us",buttonVariant:"outlined",buttonColor:"primary"}];function NV(){return p.jsxs(Uo,{id:"pricing",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(We,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(we,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Pricing"}),p.jsxs(we,{variant:"body1",sx:{color:"text.secondary"},children:["Request collaboration by sending an email to ",p.jsx("br",{}),"abc@zyc.com"]})]}),p.jsx("div",{style:{display:"none"},children:p.jsx(dr,{container:!0,spacing:3,sx:{alignItems:"center",justifyContent:"center",width:"100%"},children:_V.map(e=>p.jsx(dr,{size:{xs:12,sm:e.title==="Enterprise"?12:6,md:4},children:p.jsxs(Zi,{sx:[{p:2,display:"flex",flexDirection:"column",gap:4},e.title==="Professional"&&(t=>({border:"none",background:"radial-gradient(circle at 50% 0%, hsl(220, 20%, 35%), hsl(220, 30%, 6%))",boxShadow:"0 8px 12px hsla(220, 20%, 42%, 0.2)",...t.applyStyles("dark",{background:"radial-gradient(circle at 50% 0%, hsl(220, 20%, 20%), hsl(220, 30%, 16%))",boxShadow:"0 8px 12px hsla(0, 0%, 0%, 0.8)"})}))],children:[p.jsxs(gw,{children:[p.jsxs(We,{sx:[{mb:1,display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},e.title==="Professional"?{color:"grey.100"}:{color:""}],children:[p.jsx(we,{component:"h3",variant:"h6",children:e.title}),e.title==="Professional"&&p.jsx(as,{icon:p.jsx(FV,{}),label:e.subheader})]}),p.jsxs(We,{sx:[{display:"flex",alignItems:"baseline"},e.title==="Professional"?{color:"grey.50"}:{color:null}],children:[p.jsxs(we,{component:"h3",variant:"h2",children:["$",e.price]}),p.jsx(we,{component:"h3",variant:"h6",children:"  per month"})]}),p.jsx(Gn,{sx:{my:2,opacity:.8,borderColor:"divider"}}),e.description.map(t=>p.jsxs(We,{sx:{py:1,display:"flex",gap:1.5,alignItems:"center"},children:[p.jsx(LV,{sx:[{width:20},e.title==="Professional"?{color:"primary.light"}:{color:"primary.main"}]}),p.jsx(we,{variant:"subtitle2",component:"span",sx:[e.title==="Professional"?{color:"grey.50"}:{color:null}],children:t})]},t))]}),p.jsx(RV,{children:p.jsx(ut,{fullWidth:!0,variant:e.buttonVariant,color:e.buttonColor,children:e.buttonText})})]})},e.title))})})]})}const zV=Re(p.jsx("path",{d:"M4 7c0-.55.45-1 1-1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-1.1 0-2 .9-2 2v11h-.5c-.83 0-1.5.67-1.5 1.5S.67 20 1.5 20H14v-3H4zm19 1h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"DevicesRounded"),BV=Re(p.jsx("path",{d:"M4 7c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1m-3 3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1v-5c0-.55.45-1 1-1m22-3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1m-3 3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1v-5c0-.55.45-1 1-1m-4-7.99L8 2c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V4c0-1.1-.9-1.99-2-1.99M16 17H8V7h8z"}),"EdgesensorHighRounded"),HV=Re(p.jsx("path",{d:"M21 6v4.5c0 .55-.45 1-1 1h-9.67c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1H20c.55 0 1 .45 1 1m-6.33 12v-4.5c0-.55-.45-1-1-1h-3.33c-.55 0-1 .45-1 1V18c0 .55.45 1 1 1h3.33c.55 0 1-.45 1-1m1-4.5V18c0 .55.45 1 1 1H20c.55 0 1-.45 1-1v-4.5c0-.55-.45-1-1-1h-3.33c-.56 0-1 .45-1 1M8.33 18V6c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3.33c.56 0 1-.45 1-1"}),"ViewQuiltRounded"),ls=[{icon:p.jsx(HV,{}),title:"Dashboard",description:"This item could provide a snapshot of the most important metrics or data points related to the product.",imageLight:'url("https://mui.com/static/images/templates/templates-images/dash-light.png")',imageDark:`url("https://mui.com'/static/images/templates/templates-images/dash-dark.png")`},{icon:p.jsx(BV,{}),title:"Mobile integration",description:"This item could provide information about the mobile app version of the product.",imageLight:'url("https://mui.com/static/images/templates/templates-images/mobile-light.png")',imageDark:'url("https://mui.com/static/images/templates/templates-images/mobile-dark.png")'},{icon:p.jsx(zV,{}),title:"Available on all platforms",description:"This item could let users know the product is available on all platforms, such as web, mobile, and desktop.",imageLight:'url("https://mui.com/static/images/templates/templates-images/devices-light.png")',imageDark:'url("https://mui.com/static/images/templates/templates-images/devices-dark.png")'}],VV=Q(as)(({theme:e})=>({variants:[{props:({selected:t})=>t,style:{background:"linear-gradient(to bottom right, hsl(210, 98%, 48%), hsl(210, 98%, 35%))",color:"hsl(0, 0%, 100%)",borderColor:e.palette.primary.light,"& .MuiChip-label":{color:"hsl(0, 0%, 100%)"},...e.applyStyles("dark",{borderColor:e.palette.primary.dark})}}]}));function GV({selectedItemIndex:e,handleItemClick:t,selectedFeature:n}){return ls[e]?p.jsxs(We,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"column",gap:2},children:[p.jsx(We,{sx:{display:"flex",gap:2,overflow:"auto"},children:ls.map(({title:r},o)=>p.jsx(VV,{size:"medium",label:r,onClick:()=>t(o),selected:e===o},o))}),p.jsxs(Zi,{variant:"outlined",children:[p.jsx(We,{sx:r=>({mb:2,backgroundSize:"cover",backgroundPosition:"center",minHeight:280,backgroundImage:"var(--items-imageLight)",...r.applyStyles("dark",{backgroundImage:"var(--items-imageDark)"})}),style:ls[e]?{"--items-imageLight":ls[e].imageLight,"--items-imageDark":ls[e].imageDark}:{}}),p.jsxs(We,{sx:{px:2,pb:2},children:[p.jsx(we,{gutterBottom:!0,sx:{color:"text.primary",fontWeight:"medium"},children:n.title}),p.jsx(we,{variant:"body2",sx:{color:"text.secondary",mb:1.5},children:n.description})]})]})]}):null}function WV(){const[e,t]=h.useState(0),n=o=>{t(o)},r=ls[e];return p.jsxs(Uo,{id:"features",sx:{py:{xs:8,sm:16}},children:[p.jsxs(We,{sx:{width:{sm:"100%",md:"60%"}},children:[p.jsx(we,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Product features"}),p.jsx(we,{variant:"body1",sx:{color:"text.secondary",mb:{xs:2,sm:4}},children:"Provide a brief overview of the key features of the product. For example, you could list the number of features, their types or benefits, and add-ons."})]}),p.jsxs(We,{sx:{display:"flex",flexDirection:{xs:"column",md:"row-reverse"},gap:2},children:[p.jsxs("div",{children:[p.jsx(We,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:2,height:"100%"},children:ls.map(({icon:o,title:s,description:i},a)=>p.jsx(We,{component:ut,onClick:()=>n(a),sx:[l=>({p:2,height:"100%",width:"100%","&:hover":{backgroundColor:l.palette.action.hover}}),e===a&&{backgroundColor:"action.selected"}],children:p.jsxs(We,{sx:[{width:"100%",display:"flex",flexDirection:"column",alignItems:"left",gap:1,textAlign:"left",textTransform:"none",color:"text.secondary"},e===a&&{color:"text.primary"}],children:[o,p.jsx(we,{variant:"h6",children:s}),p.jsx(we,{variant:"body2",children:i})]})},a))}),p.jsx(GV,{selectedItemIndex:e,handleItemClick:n,selectedFeature:r})]}),p.jsx(We,{sx:{display:{xs:"none",sm:"flex"},width:{xs:"100%",md:"70%"},height:"var(--items-image-height)"},children:p.jsx(Zi,{variant:"outlined",sx:{height:"100%",width:"100%",display:{xs:"none",sm:"flex"},pointerEvents:"none"},children:p.jsx(We,{sx:o=>({m:"auto",width:420,height:500,backgroundSize:"contain",backgroundImage:"var(--items-imageLight)",...o.applyStyles("dark",{backgroundImage:"var(--items-imageDark)"})}),style:ls[e]?{"--items-imageLight":ls[e].imageLight,"--items-imageDark":ls[e].imageDark}:{}})})})]})]})}function UV(e){return ve("MuiCardHeader",e)}const Tm=me("MuiCardHeader",["root","avatar","action","content","title","subheader"]),YV=e=>{const{classes:t}=e;return le({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},UV,t)},KV=Q("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>({[`& .${Tm.title}`]:t.title,[`& .${Tm.subheader}`]:t.subheader,...t.root})})({display:"flex",alignItems:"center",padding:16}),qV=Q("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),XV=Q("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),QV=Q("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${rf.root}:where(& .${Tm.title})`]:{display:"block"},[`.${rf.root}:where(& .${Tm.subheader})`]:{display:"block"}}),ZV=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCardHeader"}),{action:o,avatar:s,className:i,component:a="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,...m}=r,g={...r,component:a,disableTypography:l},y=YV(g);let x=d;x!=null&&x.type!==we&&!l&&(x=p.jsx(we,{variant:s?"body2":"h5",className:y.title,component:"span",...f,children:x}));let v=c;return v!=null&&v.type!==we&&!l&&(v=p.jsx(we,{variant:s?"body2":"body1",className:y.subheader,color:"textSecondary",component:"span",...u,children:v})),p.jsxs(KV,{className:se(y.root,i),as:a,ref:n,ownerState:g,...m,children:[s&&p.jsx(qV,{className:y.avatar,ownerState:g,children:s}),p.jsxs(QV,{className:y.content,ownerState:g,children:[x,v]}),o&&p.jsx(XV,{className:y.action,ownerState:g,children:o})]})}),JV=Re(p.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 eG(e){return ve("MuiAvatar",e)}const tG=me("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),nG=e=>{const{classes:t,variant:n,colorDefault:r}=e;return le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},eG,t)},rG=Q("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})($e(({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]})}}}]}))),oG=Q("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sG=Q(JV,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function iG({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=h.useState(!1);return h.useEffect(()=>{if(!n&&!r)return;s(!1);let i=!0;const a=new Image;return a.onload=()=>{i&&s("loaded")},a.onerror=()=>{i&&s("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const $s=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:i,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:m,variant:g="circular",...y}=r;let x=null;const v=iG({...u,src:f,srcSet:m}),w=f||m,b=w&&v!=="error",C={...r,colorDefault:!b,component:a,variant:g};delete C.ownerState;const k=nG(C),[M,T]=qt("img",{className:k.img,elementType:oG,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:m,sizes:d},ownerState:C});return b?x=p.jsx(M,{...T}):s||s===0?x=s:w&&o?x=o[0]:x=p.jsx(sG,{ownerState:C,className:k.fallback}),p.jsx(rG,{as:a,className:se(k.root,i),ref:n,...y,ownerState:C,children:x})}),aG=[{avatar:p.jsx($s,{alt:"Remy Sharp",src:"/static/images/avatar/1.jpg"}),name:"Remy Sharp",occupation:"Senior Engineer",testimonial:"I absolutely love how versatile this product is! Whether I'm tackling work projects or indulging in my favorite hobbies, it seamlessly adapts to my changing needs. Its intuitive design has truly enhanced my daily routine, making tasks more efficient and enjoyable."},{avatar:p.jsx($s,{alt:"Travis Howard",src:"/static/images/avatar/2.jpg"}),name:"Travis Howard",occupation:"Lead Product Designer",testimonial:"One of the standout features of this product is the exceptional customer support. In my experience, the team behind this product has been quick to respond and incredibly helpful. It's reassuring to know that they stand firmly behind their product."},{avatar:p.jsx($s,{alt:"Cindy Baker",src:"/static/images/avatar/3.jpg"}),name:"Cindy Baker",occupation:"CTO",testimonial:"The level of simplicity and user-friendliness in this product has significantly simplified my life. I appreciate the creators for delivering a solution that not only meets but exceeds user expectations."},{avatar:p.jsx($s,{alt:"Remy Sharp",src:"/static/images/avatar/4.jpg"}),name:"Julia Stewart",occupation:"Senior Engineer",testimonial:"I appreciate the attention to detail in the design of this product. The small touches make a big difference, and it's evident that the creators focused on delivering a premium experience."},{avatar:p.jsx($s,{alt:"Travis Howard",src:"/static/images/avatar/5.jpg"}),name:"John Smith",occupation:"Product Designer",testimonial:"I've tried other similar products, but this one stands out for its innovative features. It's clear that the makers put a lot of thought into creating a solution that truly addresses user needs."},{avatar:p.jsx($s,{alt:"Cindy Baker",src:"/static/images/avatar/6.jpg"}),name:"Daniel Wolf",occupation:"CDO",testimonial:"The quality of this product exceeded my expectations. It's durable, well-designed, and built to last. Definitely worth the investment!"}],lG=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628e8573c43893fe0ace_Sydney-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d520d0517ae8e8ddf13_Bern-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f46794c159024c1af6d44_Montreal-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e891fa22f89efd7477a_TerraLight.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a09d1f6337b1dfed14ab_colorado-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5caa77bf7d69fb78792e_Ankara-white.svg"],cG=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628889c3bdf1129952dc_Sydney-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d4d8b829a89976a419c_Bern-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f467502f091ccb929529d_Montreal-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e911fa22f2203d7514c_TerraDark.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a0990f3717787fd49245_colorado-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5ca4e548b0deb1041c33_Ankara-black.svg"],uG={width:"64px",opacity:.3};function dG(){const t=Ja().palette.mode==="light"?cG:lG;return p.jsx("div",{style:{display:"none"},children:p.jsxs(Uo,{id:"testimonials",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(We,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(we,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Testimonials"}),p.jsx(we,{variant:"body1",sx:{color:"text.secondary"},children:"See what our customers love about our products. Discover how we excel in efficiency, durability, and satisfaction. Join us for quality, innovation, and reliable support."})]}),p.jsx(dr,{container:!0,spacing:2,children:aG.map((n,r)=>p.jsx(dr,{size:{xs:12,sm:6,md:4},sx:{display:"flex"},children:p.jsxs(Zi,{variant:"outlined",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",flexGrow:1},children:[p.jsx(gw,{children:p.jsx(we,{variant:"body1",gutterBottom:!0,sx:{color:"text.secondary"},children:n.testimonial})}),p.jsxs(We,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[p.jsx(ZV,{avatar:n.avatar,title:n.name,subheader:n.occupation}),p.jsx("img",{src:t[r],alt:`Logo ${r+1}`,style:uG})]})]})},r))})]})})}function fG(e){return ve("MuiCollapse",e)}me("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const pG=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return le(r,fG,n)},hG=Q("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]}})($e(({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"}}]}))),mG=Q("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),gG=Q("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),V1=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:y,onExiting:x,orientation:v="vertical",style:w,timeout:b=mD.standard,TransitionComponent:C=Yr,...k}=r,M={...r,orientation:v,collapsedSize:a},T=pG(M),E=Mn(),$=jr(),S=h.useRef(null),D=h.useRef(),j=typeof a=="number"?`${a}px`:a,F=v==="horizontal",A=F?"width":"height",R=h.useRef(null),I=et(n,R),L=W=>te=>{if(W){const X=R.current;te===void 0?W(X):W(X,te)}},O=()=>S.current?S.current[F?"clientWidth":"clientHeight"]:0,_=L((W,te)=>{S.current&&F&&(S.current.style.position="absolute"),W.style[A]=j,d&&d(W,te)}),N=L((W,te)=>{const X=O();S.current&&F&&(S.current.style.position="");const{duration:q,easing:G}=Gi({style:w,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ee=E.transitions.getAutoHeightDuration(X);W.style.transitionDuration=`${ee}ms`,D.current=ee}else W.style.transitionDuration=typeof q=="string"?q:`${q}ms`;W.style[A]=`${X}px`,W.style.transitionTimingFunction=G,m&&m(W,te)}),z=L((W,te)=>{W.style[A]="auto",f&&f(W,te)}),U=L(W=>{W.style[A]=`${O()}px`,g&&g(W)}),J=L(y),Y=L(W=>{const te=O(),{duration:X,easing:q}=Gi({style:w,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const G=E.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${G}ms`,D.current=G}else W.style.transitionDuration=typeof X=="string"?X:`${X}ms`;W.style[A]=j,W.style.transitionTimingFunction=q,x&&x(W)}),B=W=>{b==="auto"&&$.start(D.current||0,W),o&&o(R.current,W)};return p.jsx(C,{in:u,onEnter:_,onEntered:z,onEntering:N,onExit:U,onExited:J,onExiting:Y,addEndListener:B,nodeRef:R,timeout:b==="auto"?null:b,...k,children:(W,te)=>p.jsx(hG,{as:l,className:se(T.root,i,{entered:T.entered,exited:!u&&j==="0px"&&T.hidden}[W]),style:{[F?"minWidth":"minHeight"]:j,...w},ref:I,...te,ownerState:{...M,state:W},children:p.jsx(mG,{ownerState:{...M,state:W},className:T.wrapper,ref:S,children:p.jsx(gG,{ownerState:{...M,state:W},className:T.wrapperInner,children:s})})})})});V1&&(V1.muiSupportAuto=!0);const i$=h.createContext({});function yG(e){return ve("MuiAccordion",e)}const Bp=me("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),vG=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:s}=e;return le({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},yG,t)},xG=Q(Io,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bp.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})($e(({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"}},[`&.${Bp.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Bp.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),$e(({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:{[`&.${Bp.expanded}`]:{margin:"16px 0"}}}]}))),bG=Q("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),Hp=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:i=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:f={},slotProps:m={},TransitionComponent:g,TransitionProps:y,...x}=r,[v,w]=On({controlled:c,default:i,name:"Accordion",state:"expanded"}),b=h.useCallback(I=>{w(!v),u&&u(I,!v)},[v,u,w]),[C,...k]=h.Children.toArray(o),M=h.useMemo(()=>({expanded:v,disabled:a,disableGutters:l,toggle:b}),[v,a,l,b]),T={...r,square:d,disabled:a,disableGutters:l,expanded:v},E=vG(T),$={transition:g,...f},S={transition:y,...m},D={slots:$,slotProps:S},[j,F]=qt("heading",{elementType:bG,externalForwardedProps:D,className:E.heading,ownerState:T}),[A,R]=qt("transition",{elementType:V1,externalForwardedProps:D,ownerState:T});return p.jsxs(xG,{className:se(E.root,s),ref:n,ownerState:T,square:d,...x,children:[p.jsx(j,{...F,children:p.jsx(i$.Provider,{value:M,children:C})}),p.jsx(A,{in:v,timeout:"auto",...R,children:p.jsx("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:E.region,children:k})})]})});function wG(e){return ve("MuiAccordionDetails",e)}me("MuiAccordionDetails",["root"]);const CG=e=>{const{classes:t}=e;return le({root:["root"]},wG,t)},SG=Q("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})($e(({theme:e})=>({padding:e.spacing(1,2,2)}))),Vp=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAccordionDetails"}),{className:o,...s}=r,i=r,a=CG(i);return p.jsx(SG,{className:se(a.root,o),ref:n,ownerState:i,...s})});function kG(e){return ve("MuiAccordionSummary",e)}const ql=me("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),PG=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return le({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},kG,t)},MG=Q(qs,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})($e(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${ql.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ql.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${ql.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${ql.expanded}`]:{minHeight:64}}}]}})),IG=Q("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})($e(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${ql.expanded}`]:{margin:"20px 0"}}}]}))),EG=Q("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})($e(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${ql.expanded}`]:{transform:"rotate(180deg)"}}))),Gp=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:i,focusVisibleClassName:a,onClick:l,...c}=r,{disabled:u=!1,disableGutters:d,expanded:f,toggle:m}=h.useContext(i$),g=v=>{m&&m(v),l&&l(v)},y={...r,expanded:f,disabled:u,disableGutters:d},x=PG(y);return p.jsxs(MG,{focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":f,className:se(x.root,s),focusVisibleClassName:se(x.focusVisible,a),onClick:g,ref:n,ownerState:y,...c,children:[p.jsx(IG,{className:x.content,ownerState:y,children:o}),i&&p.jsx(EG,{className:x.expandIconWrapper,ownerState:y,children:i})]})}),Wp=Re(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function TG(){const[e,t]=h.useState([]),n=r=>(o,s)=>{t(s?[...e,r]:e.filter(i=>i!==r))};return p.jsxs(Uo,{id:"faq",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsx(we,{component:"h2",variant:"h4",sx:{color:"text.primary",width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:"Frequently asked questions"}),p.jsxs(We,{sx:{width:"100%"},children:[p.jsxs(Hp,{expanded:e.includes("panel1"),onChange:n("panel1"),children:[p.jsx(Gp,{expandIcon:p.jsx(Wp,{}),"aria-controls":"panel1d-content",id:"panel1d-header",children:p.jsx(we,{component:"h3",variant:"subtitle2",children:"How do I contact customer support if I have a question or issue?"})}),p.jsx(Vp,{children:p.jsxs(we,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:["You can reach our customer support team by emailing ",p.jsx(pn,{href:"mailto:support@email.com",children:"support@email.com"})," or calling our toll-free number. We're here to assist you promptly."]})})]}),p.jsxs(Hp,{expanded:e.includes("panel2"),onChange:n("panel2"),children:[p.jsx(Gp,{expandIcon:p.jsx(Wp,{}),"aria-controls":"panel2d-content",id:"panel2d-header",children:p.jsx(we,{component:"h3",variant:"subtitle2",children:"Can I return the product if it doesn't meet my expectations?"})}),p.jsx(Vp,{children:p.jsx(we,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Absolutely! We offer a hassle-free return policy. If you're not completely satisfied, you can return the product within [number of days] days for a full refund or exchange."})})]}),p.jsxs(Hp,{expanded:e.includes("panel3"),onChange:n("panel3"),children:[p.jsx(Gp,{expandIcon:p.jsx(Wp,{}),"aria-controls":"panel3d-content",id:"panel3d-header",children:p.jsx(we,{component:"h3",variant:"subtitle2",children:"What makes your product stand out from others in the market?"})}),p.jsx(Vp,{children:p.jsx(we,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Our product distinguishes itself through its adaptability, durability, and innovative features. We prioritize user satisfaction and continually strive to exceed expectations in every aspect."})})]}),p.jsxs(Hp,{expanded:e.includes("panel4"),onChange:n("panel4"),children:[p.jsx(Gp,{expandIcon:p.jsx(Wp,{}),"aria-controls":"panel4d-content",id:"panel4d-header",children:p.jsx(we,{component:"h3",variant:"subtitle2",children:"Is there a warranty on the product, and what does it cover?"})}),p.jsx(Vp,{children:p.jsx(we,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Yes, our product comes with a [length of warranty] warranty. It covers defects in materials and workmanship. If you encounter any issues covered by the warranty, please contact our customer support for assistance."})})]})]})]})}const DG=Re(p.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),$G=Re(p.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),RG=Re(p.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");function AG(){return p.jsxs(we,{variant:"body2",sx:{color:"text.secondary",mt:1},children:["Copyright © ",p.jsx(pn,{color:"text.secondary",href:"https://sanjeevini.me/",children:"Sanjeevini"})," ",new Date().getFullYear()]})}function OG(){return p.jsxs(Uo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:4,sm:8},py:{xs:8,sm:10},textAlign:{sm:"center",md:"left"}},children:[p.jsx("div",{style:{display:"none"},children:p.jsxs(We,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},width:"100%",justifyContent:"space-between"},children:[p.jsx(We,{sx:{display:"flex",flexDirection:"column",gap:4,minWidth:{xs:"100%",sm:"60%"}},children:p.jsxs(We,{sx:{width:{xs:"100%",sm:"60%"}},children:[p.jsx(XD,{}),p.jsx(we,{variant:"body2",gutterBottom:!0,sx:{fontWeight:600,mt:2},children:"Join the newsletter"}),p.jsx(we,{variant:"body2",sx:{color:"text.secondary",mb:2},children:"Subscribe for weekly updates. No spams ever!"}),p.jsx(Hf,{htmlFor:"email-newsletter",children:"Email"}),p.jsxs(Va,{direction:"row",spacing:1,useFlexGap:!0,children:[p.jsx(Ns,{id:"email-newsletter",hiddenLabel:!0,size:"small",variant:"outlined",fullWidth:!0,"aria-label":"Enter your email address",placeholder:"Your email address",slotProps:{htmlInput:{autoComplete:"off","aria-label":"Enter your email address"}},sx:{width:"250px"}}),p.jsx(ut,{variant:"contained",color:"primary",size:"small",sx:{flexShrink:0},children:"Subscribe"})]})]})}),p.jsxs(We,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(we,{variant:"body2",sx:{fontWeight:"medium"},children:"Product"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Features"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Testimonials"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Highlights"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Pricing"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"FAQs"})]}),p.jsxs(We,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(we,{variant:"body2",sx:{fontWeight:"medium"},children:"Company"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"About us"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Careers"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Press"})]}),p.jsxs(We,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(we,{variant:"body2",sx:{fontWeight:"medium"},children:"Legal"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Terms"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"https://slabstech.com/site/privacy/",children:"Privacy"}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Contact"})]})]})}),p.jsxs(We,{sx:{display:"flex",justifyContent:"space-between",pt:{xs:4,sm:8},width:"100%",borderTop:"1px solid",borderColor:"divider"},children:[p.jsxs("div",{children:[p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Privacy Policy"}),p.jsx(we,{sx:{display:"inline",mx:.5,opacity:.5},children:" • "}),p.jsx(pn,{color:"text.secondary",variant:"body2",href:"#",children:"Terms of Service"}),p.jsx(AG,{})]}),p.jsxs(Va,{direction:"row",spacing:1,useFlexGap:!0,sx:{justifyContent:"left",color:"text.secondary"},children:[p.jsx(gn,{color:"inherit",size:"small",href:"https://github.com/slabstech","aria-label":"GitHub",sx:{alignSelf:"center"},children:p.jsx(DG,{})}),p.jsx(gn,{color:"inherit",size:"small",href:"https://x.com/try_sanjeevini","aria-label":"X",sx:{alignSelf:"center"},children:p.jsx(RG,{})}),p.jsx(gn,{color:"inherit",size:"small",href:"https://in.linkedin.com/company/slabstech","aria-label":"LinkedIn",sx:{alignSelf:"center"},children:p.jsx($G,{})})]})]})]})}const Tk=me("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),jG=me("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),FG=Re(p.jsx("path",{d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlankRounded"),LG=Re(p.jsx("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded"),_G=Re(p.jsx("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"}),"RemoveRounded"),Pr=Nf();[...Pr.shadows];const Ue={50:"hsl(210, 100%, 95%)",100:"hsl(210, 100%, 92%)",200:"hsl(210, 100%, 80%)",300:"hsl(210, 100%, 65%)",400:"hsl(210, 98%, 48%)",500:"hsl(210, 98%, 42%)",600:"hsl(210, 98%, 55%)",700:"hsl(210, 100%, 35%)",900:"hsl(210, 100%, 21%)"},ke={50:"hsl(220, 35%, 97%)",100:"hsl(220, 30%, 94%)",200:"hsl(220, 20%, 88%)",300:"hsl(220, 20%, 80%)",400:"hsl(220, 20%, 65%)",500:"hsl(220, 20%, 42%)",600:"hsl(220, 20%, 35%)",700:"hsl(220, 20%, 25%)",800:"hsl(220, 30%, 6%)",900:"hsl(220, 35%, 3%)"},ir={50:"hsl(120, 80%, 98%)",200:"hsl(120, 75%, 87%)",300:"hsl(120, 61%, 77%)",400:"hsl(120, 44%, 53%)",500:"hsl(120, 59%, 30%)",700:"hsl(120, 75%, 16%)",800:"hsl(120, 84%, 10%)",900:"hsl(120, 87%, 6%)"},to={100:"hsl(45, 92%, 90%)",300:"hsl(45, 90%, 65%)",400:"hsl(45, 90%, 40%)",500:"hsl(45, 90%, 35%)",700:"hsl(45, 94%, 20%)",800:"hsl(45, 95%, 16%)",900:"hsl(45, 93%, 12%)"},ar={50:"hsl(0, 100%, 97%)",100:"hsl(0, 92%, 90%)",200:"hsl(0, 94%, 80%)",300:"hsl(0, 90%, 65%)",400:"hsl(0, 90%, 40%)",500:"hsl(0, 90%, 30%)",700:"hsl(0, 94%, 18%)",800:"hsl(0, 95%, 12%)",900:"hsl(0, 93%, 6%)"},NG={light:{palette:{primary:{light:Ue[200],main:Ue[400],dark:Ue[700],contrastText:Ue[50]},info:{light:Ue[100],main:Ue[300],dark:Ue[600],contrastText:ke[50]},warning:{light:to[300],main:to[400],dark:to[800]},error:{light:ar[300],main:ar[400],dark:ar[800]},success:{light:ir[300],main:ir[400],dark:ir[800]},grey:{...ke},divider:xe(ke[300],.4),background:{default:"hsl(0, 0%, 99%)",paper:"hsl(220, 35%, 97%)"},text:{primary:ke[800],secondary:ke[600],warning:to[400]},action:{hover:xe(ke[200],.2),selected:`${xe(ke[200],.3)}`},baseShadow:"hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px"}},dark:{palette:{primary:{contrastText:Ue[50],light:Ue[300],main:Ue[400],dark:Ue[700]},info:{contrastText:Ue[300],light:Ue[500],main:Ue[700],dark:Ue[900]},warning:{light:to[400],main:to[500],dark:to[700]},error:{light:ar[400],main:ar[500],dark:ar[700]},success:{light:ir[400],main:ir[500],dark:ir[700]},grey:{...ke},divider:xe(ke[700],.6),background:{default:ke[900],paper:"hsl(220, 30%, 7%)"},text:{primary:"hsl(0, 0%, 100%)",secondary:ke[400]},action:{hover:xe(ke[600],.2),selected:xe(ke[600],.3)},baseShadow:"hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"}}},zG={fontFamily:"Inter, sans-serif",h1:{fontSize:Pr.typography.pxToRem(48),fontWeight:600,lineHeight:1.2,letterSpacing:-.5},h2:{fontSize:Pr.typography.pxToRem(36),fontWeight:600,lineHeight:1.2},h3:{fontSize:Pr.typography.pxToRem(30),lineHeight:1.2},h4:{fontSize:Pr.typography.pxToRem(24),fontWeight:600,lineHeight:1.5},h5:{fontSize:Pr.typography.pxToRem(20),fontWeight:600},h6:{fontSize:Pr.typography.pxToRem(18),fontWeight:600},subtitle1:{fontSize:Pr.typography.pxToRem(18)},subtitle2:{fontSize:Pr.typography.pxToRem(14),fontWeight:500},body1:{fontSize:Pr.typography.pxToRem(14)},body2:{fontSize:Pr.typography.pxToRem(14),fontWeight:400},caption:{fontSize:Pr.typography.pxToRem(12),fontWeight:400}},BG={borderRadius:8},HG=["none","var(--template-palette-baseShadow)",...Pr.shadows.slice(2)],VG=HG,GG={MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0},styleOverrides:{root:({theme:e})=>({boxSizing:"border-box",transition:"all 100ms ease-in","&:focus-visible":{outline:`3px solid ${xe(e.palette.primary.main,.5)}`,outlineOffset:"2px"}})}},MuiButton:{styleOverrides:{root:({theme:e})=>({boxShadow:"none",borderRadius:e.shape.borderRadius,textTransform:"none",variants:[{props:{size:"small"},style:{height:"2.25rem",padding:"8px 12px"}},{props:{size:"medium"},style:{height:"2.5rem"}},{props:{color:"primary",variant:"contained"},style:{color:"white",backgroundColor:ke[900],backgroundImage:`linear-gradient(to bottom, ${ke[700]}, ${ke[800]})`,boxShadow:`inset 0 1px 0 ${ke[600]}, inset 0 -1px 0 1px hsl(220, 0%, 0%)`,border:`1px solid ${ke[700]}`,"&:hover":{backgroundImage:"none",backgroundColor:ke[700],boxShadow:"none"},"&:active":{backgroundColor:ke[800]},...e.applyStyles("dark",{color:"black",backgroundColor:ke[50],backgroundImage:`linear-gradient(to bottom, ${ke[100]}, ${ke[50]})`,boxShadow:"inset 0 -1px 0 hsl(220, 30%, 80%)",border:`1px solid ${ke[50]}`,"&:hover":{backgroundImage:"none",backgroundColor:ke[300],boxShadow:"none"},"&:active":{backgroundColor:ke[400]}})}},{props:{color:"secondary",variant:"contained"},style:{color:"white",backgroundColor:Ue[300],backgroundImage:`linear-gradient(to bottom, ${xe(Ue[400],.8)}, ${Ue[500]})`,boxShadow:`inset 0 2px 0 ${xe(Ue[200],.2)}, inset 0 -2px 0 ${xe(Ue[700],.4)}`,border:`1px solid ${Ue[500]}`,"&:hover":{backgroundColor:Ue[700],boxShadow:"none"},"&:active":{backgroundColor:Ue[700],backgroundImage:"none"}}},{props:{variant:"outlined"},style:{color:e.palette.text.primary,border:"1px solid",borderColor:ke[200],backgroundColor:xe(ke[50],.3),"&:hover":{backgroundColor:ke[100],borderColor:ke[300]},"&:active":{backgroundColor:ke[200]},...e.applyStyles("dark",{backgroundColor:ke[800],borderColor:ke[700],"&:hover":{backgroundColor:ke[900],borderColor:ke[600]},"&:active":{backgroundColor:ke[900]}})}},{props:{color:"secondary",variant:"outlined"},style:{color:Ue[700],border:"1px solid",borderColor:Ue[200],backgroundColor:Ue[50],"&:hover":{backgroundColor:Ue[100],borderColor:Ue[400]},"&:active":{backgroundColor:xe(Ue[200],.7)},...e.applyStyles("dark",{color:Ue[50],border:"1px solid",borderColor:Ue[900],backgroundColor:xe(Ue[900],.3),"&:hover":{borderColor:Ue[700],backgroundColor:xe(Ue[900],.6)},"&:active":{backgroundColor:xe(Ue[900],.5)}})}},{props:{variant:"text"},style:{color:ke[600],"&:hover":{backgroundColor:ke[100]},"&:active":{backgroundColor:ke[200]},...e.applyStyles("dark",{color:ke[50],"&:hover":{backgroundColor:ke[700]},"&:active":{backgroundColor:xe(ke[700],.7)}})}},{props:{color:"secondary",variant:"text"},style:{color:Ue[700],"&:hover":{backgroundColor:xe(Ue[100],.5)},"&:active":{backgroundColor:xe(Ue[200],.7)},...e.applyStyles("dark",{color:Ue[100],"&:hover":{backgroundColor:xe(Ue[900],.5)},"&:active":{backgroundColor:xe(Ue[900],.3)}})}}]})}},MuiIconButton:{styleOverrides:{root:({theme:e})=>({boxShadow:"none",borderRadius:e.shape.borderRadius,textTransform:"none",fontWeight:e.typography.fontWeightMedium,letterSpacing:0,color:e.palette.text.primary,border:"1px solid ",borderColor:ke[200],backgroundColor:xe(ke[50],.3),"&:hover":{backgroundColor:ke[100],borderColor:ke[300]},"&:active":{backgroundColor:ke[200]},...e.applyStyles("dark",{backgroundColor:ke[800],borderColor:ke[700],"&:hover":{backgroundColor:ke[900],borderColor:ke[600]},"&:active":{backgroundColor:ke[900]}}),variants:[{props:{size:"small"},style:{width:"2.25rem",height:"2.25rem",padding:"0.25rem",[`& .${Rh.root}`]:{fontSize:"1rem"}}},{props:{size:"medium"},style:{width:"2.5rem",height:"2.5rem"}}]})}},MuiToggleButtonGroup:{styleOverrides:{root:({theme:e})=>({borderRadius:"10px",boxShadow:`0 4px 16px ${xe(ke[400],.2)}`,[`& .${Tk.selected}`]:{color:Ue[500]},...e.applyStyles("dark",{[`& .${Tk.selected}`]:{color:"#fff"},boxShadow:`0 4px 16px ${xe(Ue[700],.5)}`})})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({padding:"12px 16px",textTransform:"none",borderRadius:"10px",fontWeight:500,...e.applyStyles("dark",{color:ke[400],boxShadow:"0 4px 16px rgba(0, 0, 0, 0.5)",[`&.${jG.selected}`]:{color:Ue[300]}})})}},MuiCheckbox:{defaultProps:{disableRipple:!0,icon:p.jsx(FG,{sx:{color:"hsla(210, 0%, 0%, 0.0)"}}),checkedIcon:p.jsx(LG,{sx:{height:14,width:14}}),indeterminateIcon:p.jsx(_G,{sx:{height:14,width:14}})},styleOverrides:{root:({theme:e})=>({margin:10,height:16,width:16,borderRadius:5,border:"1px solid ",borderColor:xe(ke[300],.8),boxShadow:"0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",backgroundColor:xe(ke[100],.4),transition:"border-color, background-color, 120ms ease-in","&:hover":{borderColor:Ue[300]},"&.Mui-focusVisible":{outline:`3px solid ${xe(Ue[500],.5)}`,outlineOffset:"2px",borderColor:Ue[400]},"&.Mui-checked":{color:"white",backgroundColor:Ue[500],borderColor:Ue[500],boxShadow:"none","&:hover":{backgroundColor:Ue[600]}},...e.applyStyles("dark",{borderColor:xe(ke[700],.8),boxShadow:"0 0 0 1.5px hsl(210, 0%, 0%) inset",backgroundColor:xe(ke[900],.8),"&:hover":{borderColor:Ue[300]},"&.Mui-focusVisible":{borderColor:Ue[400],outline:`3px solid ${xe(Ue[500],.5)}`,outlineOffset:"2px"}})})}},MuiInputBase:{styleOverrides:{root:{border:"none"},input:{"&::placeholder":{opacity:.7,color:ke[500]}}}},MuiOutlinedInput:{styleOverrides:{input:{padding:0},root:({theme:e})=>({padding:"8px 12px",color:e.palette.text.primary,borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.default,transition:"border 120ms ease-in","&:hover":{borderColor:ke[400]},[`&.${Mr.focused}`]:{outline:`3px solid ${xe(Ue[500],.5)}`,borderColor:Ue[400]},...e.applyStyles("dark",{"&:hover":{borderColor:ke[500]}}),variants:[{props:{size:"small"},style:{height:"2.25rem"}},{props:{size:"medium"},style:{height:"2.5rem"}}]}),notchedOutline:{border:"none"}}},MuiInputAdornment:{styleOverrides:{root:({theme:e})=>({color:e.palette.grey[500],...e.applyStyles("dark",{color:e.palette.grey[400]})})}},MuiFormLabel:{styleOverrides:{root:({theme:e})=>({typography:e.typography.caption,marginBottom:8})}}},WG={MuiList:{styleOverrides:{root:{padding:"8px",display:"flex",flexDirection:"column",gap:0}}},MuiListItem:{styleOverrides:{root:({theme:e})=>({[`& .${Rh.root}`]:{width:"1rem",height:"1rem",color:e.palette.text.secondary},[`& .${rf.root}`]:{fontWeight:500},[`& .${cw.root}`]:{display:"flex",gap:8,padding:"2px 8px",borderRadius:e.shape.borderRadius,opacity:.7,"&.Mui-selected":{opacity:1,backgroundColor:xe(e.palette.action.selected,.3),[`& .${Rh.root}`]:{color:e.palette.text.primary},"&:focus-visible":{backgroundColor:xe(e.palette.action.selected,.3)},"&:hover":{backgroundColor:xe(e.palette.action.selected,.5)}},"&:focus-visible":{backgroundColor:"transparent"}}})}},MuiListItemText:{styleOverrides:{primary:({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:500,lineHeight:e.typography.body2.lineHeight}),secondary:({theme:e})=>({fontSize:e.typography.caption.fontSize,lineHeight:e.typography.caption.lineHeight})}},MuiListSubheader:{styleOverrides:{root:({theme:e})=>({backgroundColor:"transparent",padding:"4px 8px",fontSize:e.typography.caption.fontSize,fontWeight:500,lineHeight:e.typography.caption.lineHeight})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:0}}},MuiChip:{defaultProps:{size:"small"},styleOverrides:{root:({theme:e})=>({border:"1px solid",borderRadius:"999px",[`& .${Ke.label}`]:{fontWeight:600},variants:[{props:{color:"default"},style:{borderColor:ke[200],backgroundColor:ke[100],[`& .${Ke.label}`]:{color:ke[500]},[`& .${Ke.icon}`]:{color:ke[500]},...e.applyStyles("dark",{borderColor:ke[700],backgroundColor:ke[800],[`& .${Ke.label}`]:{color:ke[300]},[`& .${Ke.icon}`]:{color:ke[300]}})}},{props:{color:"success"},style:{borderColor:ir[200],backgroundColor:ir[50],[`& .${Ke.label}`]:{color:ir[500]},[`& .${Ke.icon}`]:{color:ir[500]},...e.applyStyles("dark",{borderColor:ir[800],backgroundColor:ir[900],[`& .${Ke.label}`]:{color:ir[300]},[`& .${Ke.icon}`]:{color:ir[300]}})}},{props:{color:"error"},style:{borderColor:ar[100],backgroundColor:ar[50],[`& .${Ke.label}`]:{color:ar[500]},[`& .${Ke.icon}`]:{color:ar[500]},...e.applyStyles("dark",{borderColor:ar[800],backgroundColor:ar[900],[`& .${Ke.label}`]:{color:ar[200]},[`& .${Ke.icon}`]:{color:ar[300]}})}},{props:{size:"small"},style:{maxHeight:20,[`& .${Ke.label}`]:{fontSize:e.typography.caption.fontSize},[`& .${Rh.root}`]:{fontSize:e.typography.caption.fontSize}}},{props:{size:"medium"},style:{[`& .${Ke.label}`]:{fontSize:e.typography.caption.fontSize}}}]})}},MuiTablePagination:{styleOverrides:{actions:{display:"flex",gap:8,marginRight:6,[`& .${WD.root}`]:{minWidth:0,width:36,height:36}}}},MuiIcon:{defaultProps:{fontSize:"small"},styleOverrides:{root:{variants:[{props:{fontSize:"small"},style:{fontSize:"1rem"}}]}}}},UG={MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:10,backgroundColor:to[100],color:e.palette.text.primary,border:`1px solid ${xe(to[300],.5)}`,"& .MuiAlert-icon":{color:to[500]},...e.applyStyles("dark",{backgroundColor:`${xe(to[900],.5)}`,border:`1px solid ${xe(to[800],.5)}`})})}},MuiDialog:{styleOverrides:{root:({theme:e})=>({"& .MuiDialog-paper":{borderRadius:"10px",border:"1px solid",borderColor:e.palette.divider}})}},MuiLinearProgress:{styleOverrides:{root:({theme:e})=>({height:8,borderRadius:8,backgroundColor:ke[200],...e.applyStyles("dark",{backgroundColor:ke[800]})})}}},Dk=me("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),YG=Re(p.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 3.7a.996.996 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0zm0 12.34-2.46-2.46a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"UnfoldMoreRounded"),KG={MuiMenuItem:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"6px 8px",[`&.${Ci.focusVisible}`]:{backgroundColor:"transparent"},[`&.${Ci.selected}`]:{[`&.${Ci.focusVisible}`]:{backgroundColor:xe(e.palette.action.selected,.3)}}})}},MuiMenu:{styleOverrides:{list:{gap:"0px",[`&.${_1.root}`]:{margin:"0 -8px"}},paper:({theme:e})=>({marginTop:"4px",borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundImage:"none",background:"hsl(0, 0%, 100%)",boxShadow:"hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px",[`& .${cw.root}`]:{"&.Mui-selected":{backgroundColor:xe(e.palette.action.selected,.3)}},...e.applyStyles("dark",{background:ke[900],boxShadow:"hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"})})}},MuiSelect:{defaultProps:{IconComponent:h.forwardRef((e,t)=>p.jsx(YG,{fontSize:"small",...e,ref:t}))},styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,border:"1px solid",borderColor:ke[200],backgroundColor:e.palette.background.paper,boxShadow:"inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)","&:hover":{borderColor:ke[300],backgroundColor:e.palette.background.paper,boxShadow:"none"},[`&.${ya.focused}`]:{outlineOffset:0,borderColor:ke[400]},"&:before, &:after":{display:"none"},...e.applyStyles("dark",{borderRadius:e.shape.borderRadius,borderColor:ke[700],backgroundColor:e.palette.background.paper,boxShadow:`inset 0 1px 0 1px ${xe(ke[700],.15)}, inset 0 -1px 0 1px hsla(220, 0%, 0%, 0.7)`,"&:hover":{borderColor:xe(ke[700],.7),backgroundColor:e.palette.background.paper,boxShadow:"none"},[`&.${ya.focused}`]:{outlineOffset:0,borderColor:ke[900]},"&:before, &:after":{display:"none"}})}),select:({theme:e})=>({display:"flex",alignItems:"center",...e.applyStyles("dark",{display:"flex",alignItems:"center","&:focus-visible":{backgroundColor:ke[900]}})})}},MuiLink:{defaultProps:{underline:"none"},styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontWeight:500,position:"relative",textDecoration:"none",width:"fit-content","&::before":{content:'""',position:"absolute",width:"100%",height:"1px",bottom:0,left:0,backgroundColor:e.palette.text.secondary,opacity:.3,transition:"width 0.3s ease, opacity 0.3s ease"},"&:hover::before":{width:0},"&:focus-visible":{outline:`3px solid ${xe(Ue[500],.5)}`,outlineOffset:"4px",borderRadius:"2px"}})}},MuiDrawer:{styleOverrides:{paper:({theme:e})=>({backgroundColor:e.palette.background.default})}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:"white",backgroundColor:e.palette.grey[900]},...e.applyStyles("dark",{"&.Mui-selected":{color:"black",backgroundColor:e.palette.grey[50]}})})}},MuiTabs:{styleOverrides:{root:{minHeight:"fit-content"},indicator:({theme:e})=>({backgroundColor:e.palette.grey[800],...e.applyStyles("dark",{backgroundColor:e.palette.grey[200]})})}},MuiTab:{styleOverrides:{root:({theme:e})=>({padding:"6px 8px",marginBottom:"8px",textTransform:"none",minWidth:"fit-content",minHeight:"fit-content",color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,border:"1px solid",borderColor:"transparent",":hover":{color:e.palette.text.primary,backgroundColor:ke[100],borderColor:ke[200]},[`&.${Dk.selected}`]:{color:ke[900]},...e.applyStyles("dark",{":hover":{color:e.palette.text.primary,backgroundColor:ke[800],borderColor:ke[700]},[`&.${Dk.selected}`]:{color:"#fff"}})})}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderTop:"1px solid",borderColor:e.palette.divider,flex:1,borderRadius:"99px"})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:"transparent",border:`1px solid ${ke[400]}`,width:12,height:12,borderRadius:"50%","& text":{display:"none"},"&.Mui-active":{border:"none",color:e.palette.primary.main},"&.Mui-completed":{border:"none",color:e.palette.success.main},...e.applyStyles("dark",{border:`1px solid ${ke[700]}`,"&.Mui-active":{border:"none",color:e.palette.primary.light},"&.Mui-completed":{border:"none",color:e.palette.success.light}}),variants:[{props:{completed:!0},style:{width:12,height:12}}]})}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({"&.Mui-completed":{opacity:.6,...e.applyStyles("dark",{opacity:.5})}})}}},qG={MuiAccordion:{defaultProps:{elevation:0,disableGutters:!0},styleOverrides:{root:({theme:e})=>({padding:4,overflow:"clip",backgroundColor:e.palette.background.default,border:"1px solid",borderColor:e.palette.divider,":before":{backgroundColor:"transparent"},"&:not(:last-of-type)":{borderBottom:"none"},"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({border:"none",borderRadius:8,"&:hover":{backgroundColor:ke[50]},"&:focus-visible":{backgroundColor:"transparent"},...e.applyStyles("dark",{"&:hover":{backgroundColor:ke[800]}})})}},MuiAccordionDetails:{styleOverrides:{root:{mb:20,border:"none"}}},MuiPaper:{defaultProps:{elevation:0}},MuiCard:{styleOverrides:{root:({theme:e})=>({padding:16,gap:16,transition:"all 100ms ease",backgroundColor:ke[50],borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,boxShadow:"none",...e.applyStyles("dark",{backgroundColor:ke[800]}),variants:[{props:{variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`,boxShadow:"none",background:"hsl(0, 0%, 100%)",...e.applyStyles("dark",{background:xe(ke[900],.4)})}}]})}},MuiCardContent:{styleOverrides:{root:{padding:0,"&:last-child":{paddingBottom:0}}}},MuiCardHeader:{styleOverrides:{root:{padding:0}}},MuiCardActions:{styleOverrides:{root:{padding:0}}}};function g0({children:e,disableCustomTheme:t,themeComponents:n}){const r=h.useMemo(()=>t?{}:Nf({cssVariables:{colorSchemeSelector:"data-mui-color-scheme",cssVarPrefix:"template"},colorSchemes:NG,typography:zG,shadows:VG,shape:BG,components:{...GG,...WG,...UG,...KG,...qG,...n}}),[t,n]);return t?p.jsx(h.Fragment,{children:e}):p.jsx(Dz,{theme:r,disableTransitionOnChange:!0,children:e})}function XG(e){return ve("PrivateSwitchBase",e)}me("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const QG=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${ae(o)}`],input:["input"]};return le(s,XG,t)},ZG=Q(qs)({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}}]}),JG=Q("input",{shouldForwardProp:Un})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),a$=h.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:m,inputRef:g,name:y,onBlur:x,onChange:v,onFocus:w,readOnly:b,required:C=!1,tabIndex:k,type:M,value:T,...E}=t,[$,S]=On({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),D=Kr(),j=_=>{w&&w(_),D&&D.onFocus&&D.onFocus(_)},F=_=>{x&&x(_),D&&D.onBlur&&D.onBlur(_)},A=_=>{if(_.nativeEvent.defaultPrevented)return;const N=_.target.checked;S(N),v&&v(_,N)};let R=l;D&&typeof R>"u"&&(R=D.disabled);const I=M==="checkbox"||M==="radio",L={...t,checked:$,disabled:R,disableFocusRipple:c,edge:u},O=QG(L);return p.jsxs(ZG,{component:"span",className:se(O.root,i),centerRipple:!0,focusRipple:!c,disabled:R,tabIndex:null,role:void 0,onFocus:j,onBlur:F,ownerState:L,ref:n,...E,children:[p.jsx(JG,{autoFocus:r,checked:o,defaultChecked:a,className:O.input,disabled:R,id:I?f:void 0,name:y,onChange:A,readOnly:b,ref:g,required:C,ownerState:L,tabIndex:k,type:M,...M==="checkbox"&&T===void 0?{}:{value:T},...m}),$?s:d]})}),eW=Re(p.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"),tW=Re(p.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"),nW=Re(p.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 rW(e){return ve("MuiCheckbox",e)}const Qy=me("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),oW=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${ae(r)}`,`size${ae(o)}`]},i=le(s,rW,t);return{...t,...i}},sW=Q(a$,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ae(n.size)}`],n.color!=="default"&&t[`color${ae(n.color)}`]]}})($e(({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})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{[`&.${Qy.checked}, &.${Qy.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Qy.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),iW=p.jsx(tW,{}),aW=p.jsx(eW,{}),lW=p.jsx(nW,{}),yw=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCheckbox"}),{checkedIcon:o=iW,color:s="primary",icon:i=aW,indeterminate:a=!1,indeterminateIcon:l=lW,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...m}=r,g=a?l:i,y=a?l:o,x={...r,disableRipple:d,color:s,indeterminate:a,size:u},v=oW(x);return p.jsx(sW,{type:"checkbox",inputProps:{"data-indeterminate":a,...c},icon:h.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:h.cloneElement(y,{fontSize:y.props.fontSize??u}),ownerState:x,ref:n,className:se(v.root,f),disableRipple:d,...m,classes:v})});function cW(e){return ve("MuiFormControlLabel",e)}const od=me("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uW=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${ae(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return le(i,cW,t)},dW=Q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${od.label}`]:t.label},t.root,t[`labelPlacement${ae(n.labelPlacement)}`]]}})($e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${od.disabled}`]:{cursor:"default"},[`& .${od.label}`]:{[`&.${od.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}}]}))),fW=Q("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})($e(({theme:e})=>({[`&.${od.error}`]:{color:(e.vars||e).palette.error.main}}))),so=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:i={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:m,onChange:g,required:y,slots:x={},slotProps:v={},value:w,...b}=r,C=Kr(),k=l??a.props.disabled??(C==null?void 0:C.disabled),M=y??a.props.required,T={disabled:k,required:M};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]>"u"&&typeof r[R]<"u"&&(T[R]=r[R])});const E=nl({props:r,muiFormControl:C,states:["error"]}),$={...r,disabled:k,labelPlacement:f,required:M,error:E.error},S=uW($),D={slots:x,slotProps:{...i,...v}},[j,F]=qt("typography",{elementType:we,externalForwardedProps:D,ownerState:$});let A=d;return A!=null&&A.type!==we&&!c&&(A=p.jsx(j,{component:"span",...F,className:se(S.label,F==null?void 0:F.className),children:A})),p.jsxs(dW,{className:se(S.root,s),ownerState:$,ref:n,...b,children:[h.cloneElement(a,T),M?p.jsxs("div",{children:[A,p.jsxs(fW,{ownerState:$,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):A]})});function pW(e){return ve("MuiDialog",e)}const Sd=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),l$=h.createContext({}),hW=Q(YD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),mW=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ae(n)}`],paper:["paper",`paperScroll${ae(n)}`,`paperWidth${ae(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return le(i,pW,t)},gW=Q(fw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),yW=Q("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ae(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"}}}]}),vW=Q(Io,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ae(n.scroll)}`],t[`paperWidth${ae(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})($e(({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)`,[`&.${Sd.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}`,[`&.${Sd.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,[`&.${Sd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),c$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDialog"}),o=Mn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:v,onClick:w,onClose:b,open:C,PaperComponent:k=Io,PaperProps:M={},scroll:T="paper",TransitionComponent:E=iu,transitionDuration:$=s,TransitionProps:S,...D}=r,j={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:x,scroll:T},F=mW(j),A=h.useRef(),R=_=>{A.current=_.target===_.currentTarget},I=_=>{w&&w(_),A.current&&(A.current=null,v&&v(_),b&&b(_,"backdropClick"))},L=pt(a),O=h.useMemo(()=>({titleId:L}),[L]);return p.jsx(gW,{className:se(F.root,f),closeAfterTransition:!0,components:{Backdrop:hW},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:m,onClose:b,open:C,ref:n,onClick:I,ownerState:j,...D,children:p.jsx(E,{appear:!0,in:C,timeout:$,role:"presentation",...S,children:p.jsx(yW,{className:se(F.container),onMouseDown:R,ownerState:j,children:p.jsx(vW,{as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...M,className:se(F.paper,M.className),ownerState:j,children:p.jsx(l$.Provider,{value:O,children:d})})})})})});function xW(e){return ve("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const bW=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},xW,t)},wW=Q("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}}}]}),u$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=bW(a);return p.jsx(wW,{className:se(l.root,o),ownerState:a,ref:n,...i})});function CW(e){return ve("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);function SW(e){return ve("MuiDialogTitle",e)}const kW=me("MuiDialogTitle",["root"]),PW=e=>{const{classes:t,dividers:n}=e;return le({root:["root",n&&"dividers"]},CW,t)},MW=Q("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})($e(({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:{[`.${kW.root} + &`]:{paddingTop:0}}}]}))),d$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=PW(a);return p.jsx(MW,{className:se(l.root,o),ownerState:a,ref:n,...i})});function IW(e){return ve("MuiDialogContentText",e)}me("MuiDialogContentText",["root"]);const EW=e=>{const{classes:t}=e,r=le({root:["root"]},IW,t);return{...t,...r}},TW=Q(we,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DW=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDialogContentText"}),{children:o,className:s,...i}=r,a=EW(i);return p.jsx(TW,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:i,className:se(a.root,s),...r,classes:a})}),$W=e=>{const{classes:t}=e;return le({root:["root"]},SW,t)},RW=Q(we,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),AW=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...i}=r,a=r,l=$W(a),{titleId:c=s}=h.useContext(l$);return p.jsx(RW,{component:"h2",className:se(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c,...i})});function OW({open:e,handleClose:t}){return p.jsxs(c$,{open:e,onClose:t,PaperProps:{component:"form",onSubmit:n=>{n.preventDefault(),t()},sx:{backgroundImage:"none"}},children:[p.jsx(AW,{children:"Reset password"}),p.jsxs(d$,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:[p.jsx(DW,{children:"Enter your account's email address, and we'll send you a link to reset your password."}),p.jsx(Oc,{autoFocus:!0,required:!0,margin:"dense",id:"email",name:"email",label:"Email address",placeholder:"Email address",type:"email",fullWidth:!0})]}),p.jsxs(u$,{sx:{pb:3,px:3},children:[p.jsx(ut,{onClick:t,children:"Cancel"}),p.jsx(ut,{variant:"contained",type:"submit",children:"Continue"})]})]})}function jW(){return p.jsx(vs,{sx:{height:21,width:100},children:p.jsxs("svg",{width:86,height:19,viewBox:"0 0 86 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{fill:"#B4C0D3",d:"m.787 12.567 6.055-2.675 3.485 2.006.704 6.583-4.295-.035.634-4.577-.74-.422-3.625 2.817-2.218-3.697Z"}),p.jsx("path",{fill:"#00D3AB",d:"m10.714 11.616 5.352 3.908 2.112-3.767-4.295-1.725v-.845l4.295-1.76-2.112-3.732-5.352 3.908v4.013Z"}),p.jsx("path",{fill:"#4876EF",d:"m10.327 7.286.704-6.583-4.295.07.634 4.577-.74.422-3.66-2.816L.786 6.617l6.055 2.676 3.485-2.007Z"}),p.jsx("path",{fill:"#4876EE",d:"M32.507 8.804v6.167h2.312v-7.86h-3.366v1.693h1.054ZM32.435 6.006c.212.22.535.33.968.33.434 0 .751-.11.953-.33.213-.23.318-.516.318-.86 0-.354-.105-.641-.318-.86-.202-.23-.52-.345-.953-.345-.433 0-.756.115-.968.344-.202.22-.303.507-.303.86 0 .345.101.632.303.861ZM24.46 14.799c.655.296 1.46.444 2.413.444.896 0 1.667-.139 2.312-.416.645-.277 1.141-.664 1.488-1.162.357-.506.535-1.094.535-1.764 0-.65-.169-1.2-.506-1.649-.328-.459-.785-.818-1.373-1.076-.587-.267-1.266-.435-2.037-.502l-.809-.071c-.481-.039-.828-.168-1.04-.388a1.08 1.08 0 0 1-.318-.774c0-.23.058-.44.173-.631.116-.201.29-.359.52-.474.241-.114.535-.172.882-.172.366 0 .67.067.91.201.053.029.104.059.15.09l.012.009.052.037c.146.111.263.243.35.395.125.21.188.444.188.703h2.311c0-.689-.159-1.286-.476-1.793-.318-.516-.776-.913-1.373-1.19-.588-.287-1.296-.43-2.124-.43-.79 0-1.474.133-2.052.4a3.131 3.131 0 0 0-1.358 1.12c-.318.487-.477 1.066-.477 1.735 0 .927.314 1.673.94 2.237.626.564 1.464.89 2.514.976l.794.071c.645.058 1.113.187 1.401.388a.899.899 0 0 1 .434.788 1.181 1.181 0 0 1-.231.717c-.154.201-.38.36-.68.474-.298.115-.669.172-1.112.172-.49 0-.89-.067-1.199-.2-.308-.144-.539-.33-.694-.56a1.375 1.375 0 0 1-.216-.746h-2.297c0 .679.168 1.281.505 1.807.337.517.834.928 1.489 1.234ZM39.977 15.07c-.8 0-1.445-.095-1.936-.286a2.03 2.03 0 0 1-1.084-.99c-.221-.469-.332-1.1-.332-1.893V8.789h-1.2V7.11h1.2V4.988h2.153V7.11h2.312V8.79h-2.312v3.198c0 .373.096.66.289.86.202.192.486.287.852.287h1.17v1.937h-1.112Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M43.873 14.899c.52.23 1.117.344 1.791.344.665 0 1.252-.115 1.763-.344.51-.23.934-.55 1.271-.96.337-.412.564-.88.679-1.407h-2.124c-.096.24-.279.44-.549.603-.27.162-.616.244-1.04.244-.262 0-.497-.031-.704-.093a1.572 1.572 0 0 1-.423-.194 1.662 1.662 0 0 1-.636-.803 3.159 3.159 0 0 1-.163-.645h5.784v-.775a4.28 4.28 0 0 0-.463-1.98 3.686 3.686 0 0 0-1.343-1.477c-.578-.382-1.291-.574-2.139-.574-.645 0-1.223.115-1.733.345-.501.22-.92.52-1.257.903a4.178 4.178 0 0 0-.78 1.305c-.174.478-.26.98-.26 1.506v.287c0 .507.086 1.004.26 1.492.183.478.443.913.78 1.305.347.382.775.688 1.286.918Zm-.094-4.674.02-.09a2.507 2.507 0 0 1 .117-.356c.145-.354.356-.622.636-.804.104-.067.217-.123.339-.165.204-.071.433-.107.686-.107.395 0 .723.09.983.272.27.173.472.426.607.76a2.487 2.487 0 0 1 .16.603h-3.57c.006-.038.013-.076.022-.113Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M50.476 14.97V7.112h1.835v1.98a4.54 4.54 0 0 1 .173-.603c.202-.536.506-.937.91-1.205.405-.277.9-.416 1.488-.416h.101c.598 0 1.094.139 1.489.416.404.268.707.67.91 1.205l.016.04.013.037.028-.077c.212-.536.52-.937.925-1.205.405-.277.901-.416 1.489-.416h.1c.598 0 1.098.139 1.503.416.414.268.727.67.94 1.205.211.535.317 1.205.317 2.008v4.475h-2.312v-4.604c0-.43-.115-.78-.346-1.047-.222-.268-.54-.402-.954-.402-.414 0-.742.139-.982.416-.241.268-.362.626-.362 1.076v4.56h-2.326v-4.603c0-.43-.115-.78-.346-1.047-.222-.268-.535-.402-.94-.402-.423 0-.756.139-.996.416-.241.268-.362.626-.362 1.076v4.56h-2.311Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M68.888 13.456v1.515h1.834v-4.82c0-.726-.144-1.319-.433-1.778-.289-.468-.712-.817-1.271-1.047-.549-.23-1.228-.344-2.037-.344a27.76 27.76 0 0 0-.896.014c-.318.01-.626.024-.924.043l-.229.016a36.79 36.79 0 0 0-.552.042v1.936a81.998 81.998 0 0 1 1.733-.09 37.806 37.806 0 0 1 1.171-.025c.424 0 .732.1.925.301.193.201.289.502.289.904v.029h-1.43c-.704 0-1.325.09-1.864.272-.54.172-.959.445-1.257.818-.299.363-.448.832-.448 1.405 0 .526.12.98.361 1.363.24.373.573.66.997.86.433.201.934.302 1.502.302.55 0 1.012-.1 1.388-.302.385-.2.683-.487.895-.86a2.443 2.443 0 0 0 .228-.498l.018-.056Zm-.39-1.397v-.63h-1.445c-.405 0-.718.1-.939.3-.212.192-.318.455-.318.79 0 .157.026.3.08.429a.99.99 0 0 0 .238.345c.221.191.534.287.939.287a2.125 2.125 0 0 0 .394-.038c.106-.021.206-.052.3-.092.212-.095.385-.253.52-.473.135-.22.212-.526.23-.918Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M72.106 14.97V7.11h1.835v2.595c.088-.74.31-1.338.665-1.791.481-.603 1.174-.904 2.08-.904h.303v1.98h-.578c-.635 0-1.127.172-1.473.516-.347.334-.52.822-.52 1.463v4.001h-2.312ZM79.92 11.298h.767l2.499 3.672h2.6l-3.169-4.51 2.606-3.35h-2.427l-2.875 3.737V4.5h-2.312v10.47h2.312v-3.672Z"})]})})}function FW(){return p.jsx(vs,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M6.68 15.92C2.88 15.24 0 11.96 0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 11.96 13.12 15.24 9.32 15.92L8.88 15.56H7.12L6.68 15.92Z",fill:"url(#paint0_linear_795_116)"}),p.jsx("path",{d:"M11.12 10.2391L11.48 7.99914H9.36V6.43914C9.36 5.79914 9.6 5.31914 10.56 5.31914H11.6V3.27914C11.04 3.19914 10.4 3.11914 9.84 3.11914C8 3.11914 6.72 4.23914 6.72 6.23914V7.99914H4.72V10.2391H6.72V15.8791C7.16 15.9591 7.6 15.9991 8.04 15.9991C8.48 15.9991 8.92 15.9591 9.36 15.8791V10.2391H11.12Z",fill:"white"}),p.jsx("defs",{children:p.jsxs("linearGradient",{id:"paint0_linear_795_116",x1:"8",y1:"0",x2:"8",y2:"15.9991",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#1AAFFF"}),p.jsx("stop",{offset:"1",stopColor:"#0163E0"})]})})]})})}function LW(){return p.jsx(vs,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M15.68 8.18182C15.68 7.61455 15.6291 7.06909 15.5345 6.54545H8V9.64364H12.3055C12.1164 10.64 11.5491 11.4836 10.6982 12.0509V14.0655H13.2945C14.8073 12.6691 15.68 10.6182 15.68 8.18182Z",fill:"#4285F4"}),p.jsx("path",{d:"M8 16C10.16 16 11.9709 15.2873 13.2945 14.0655L10.6982 12.0509C9.98545 12.5309 9.07636 12.8218 8 12.8218C5.92 12.8218 4.15273 11.4182 3.52 9.52727H0.858182V11.5927C2.17455 14.2036 4.87273 16 8 16Z",fill:"#34A853"}),p.jsx("path",{d:"M3.52 9.52C3.36 9.04 3.26545 8.53091 3.26545 8C3.26545 7.46909 3.36 6.96 3.52 6.48V4.41455H0.858182C0.312727 5.49091 0 6.70545 0 8C0 9.29455 0.312727 10.5091 0.858182 11.5855L2.93091 9.97091L3.52 9.52Z",fill:"#FBBC05"}),p.jsx("path",{d:"M8 3.18545C9.17818 3.18545 10.2255 3.59273 11.0618 4.37818L13.3527 2.08727C11.9636 0.792727 10.16 0 8 0C4.87273 0 2.17455 1.79636 0.858182 4.41455L3.52 6.48C4.15273 4.58909 5.92 3.18545 8 3.18545Z",fill:"#EA4335"})]})})}function f$(e){const{mode:t,setMode:n}=HD();return t?p.jsxs(Vf,{value:t,onChange:r=>n(r.target.value),SelectDisplayProps:{"data-screenshot":"toggle-mode"},...e,children:[p.jsx(Bt,{value:"system",children:"System"}),p.jsx(Bt,{value:"light",children:"Light"}),p.jsx(Bt,{value:"dark",children:"Dark"})]}):null}const _W=Q(Zi)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),margin:"auto",[e.breakpoints.up("sm")]:{maxWidth:"450px"},boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),NW=Q(Va)(({theme:e})=>({height:"calc((1 - var(--template-frame-height, 0)) * 100dvh)",minHeight:"100%",padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}}));function zW(e){const[t,n]=h.useState(!1),[r,o]=h.useState(""),[s,i]=h.useState(!1),[a,l]=h.useState(""),[c,u]=h.useState(!1),d=()=>{u(!0)},f=()=>{u(!1)},m=y=>{if(t||s){y.preventDefault();return}const x=new FormData(y.currentTarget);console.log({email:x.get("email"),password:x.get("password")})},g=()=>{const y=document.getElementById("email"),x=document.getElementById("password");let v=!0;return!y.value||!/\S+@\S+\.\S+/.test(y.value)?(n(!0),o("Please enter a valid email address."),v=!1):(n(!1),o("")),!x.value||x.value.length<6?(i(!0),l("Password must be at least 6 characters long."),v=!1):(i(!1),l("")),v};return p.jsxs(g0,{...e,children:[p.jsx(i0,{enableColorScheme:!0}),p.jsxs(NW,{direction:"column",justifyContent:"space-between",children:[p.jsx(f$,{sx:{position:"fixed",top:"1rem",right:"1rem"}}),p.jsxs(_W,{variant:"outlined",children:[p.jsx(jW,{}),p.jsx(we,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),p.jsxs(We,{component:"form",onSubmit:m,noValidate:!0,sx:{display:"flex",flexDirection:"column",width:"100%",gap:2},children:[p.jsxs(_s,{children:[p.jsx(uc,{htmlFor:"email",children:"Email"}),p.jsx(Ns,{error:t,helperText:r,id:"email",type:"email",name:"email",placeholder:"your@email.com",autoComplete:"email",autoFocus:!0,required:!0,fullWidth:!0,variant:"outlined",color:t?"error":"primary"})]}),p.jsxs(_s,{children:[p.jsx(uc,{htmlFor:"password",children:"Password"}),p.jsx(Ns,{error:s,helperText:a,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"current-password",autoFocus:!0,required:!0,fullWidth:!0,variant:"outlined",color:s?"error":"primary"})]}),p.jsx(so,{control:p.jsx(yw,{value:"remember",color:"primary"}),label:"Remember me"}),p.jsx(OW,{open:c,handleClose:f}),p.jsx(ut,{type:"submit",fullWidth:!0,variant:"contained",onClick:g,children:"Sign in"}),p.jsx(pn,{component:"button",type:"button",onClick:d,variant:"body2",sx:{alignSelf:"center"},children:"Forgot your password?"})]}),p.jsx(Gn,{children:"or"}),p.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsx(ut,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign in with Google"),startIcon:p.jsx(LW,{}),children:"Sign in with Google"}),p.jsx(ut,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign in with Facebook"),startIcon:p.jsx(FW,{}),children:"Sign in with Facebook"}),p.jsxs(we,{sx:{textAlign:"center"},children:["Don't have an account?"," ",p.jsx(pn,{href:"/material-ui/getting-started/templates/sign-in/",variant:"body2",sx:{alignSelf:"center"},children:"Sign up"})]})]})]})]})]})}function BW(){return p.jsx(vs,{sx:{height:21,width:100},children:p.jsxs("svg",{width:86,height:19,viewBox:"0 0 86 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{fill:"#B4C0D3",d:"m.787 12.567 6.055-2.675 3.485 2.006.704 6.583-4.295-.035.634-4.577-.74-.422-3.625 2.817-2.218-3.697Z"}),p.jsx("path",{fill:"#00D3AB",d:"m10.714 11.616 5.352 3.908 2.112-3.767-4.295-1.725v-.845l4.295-1.76-2.112-3.732-5.352 3.908v4.013Z"}),p.jsx("path",{fill:"#4876EF",d:"m10.327 7.286.704-6.583-4.295.07.634 4.577-.74.422-3.66-2.816L.786 6.617l6.055 2.676 3.485-2.007Z"}),p.jsx("path",{fill:"#4876EE",d:"M32.507 8.804v6.167h2.312v-7.86h-3.366v1.693h1.054ZM32.435 6.006c.212.22.535.33.968.33.434 0 .751-.11.953-.33.213-.23.318-.516.318-.86 0-.354-.105-.641-.318-.86-.202-.23-.52-.345-.953-.345-.433 0-.756.115-.968.344-.202.22-.303.507-.303.86 0 .345.101.632.303.861ZM24.46 14.799c.655.296 1.46.444 2.413.444.896 0 1.667-.139 2.312-.416.645-.277 1.141-.664 1.488-1.162.357-.506.535-1.094.535-1.764 0-.65-.169-1.2-.506-1.649-.328-.459-.785-.818-1.373-1.076-.587-.267-1.266-.435-2.037-.502l-.809-.071c-.481-.039-.828-.168-1.04-.388a1.08 1.08 0 0 1-.318-.774c0-.23.058-.44.173-.631.116-.201.29-.359.52-.474.241-.114.535-.172.882-.172.366 0 .67.067.91.201.053.029.104.059.15.09l.012.009.052.037c.146.111.263.243.35.395.125.21.188.444.188.703h2.311c0-.689-.159-1.286-.476-1.793-.318-.516-.776-.913-1.373-1.19-.588-.287-1.296-.43-2.124-.43-.79 0-1.474.133-2.052.4a3.131 3.131 0 0 0-1.358 1.12c-.318.487-.477 1.066-.477 1.735 0 .927.314 1.673.94 2.237.626.564 1.464.89 2.514.976l.794.071c.645.058 1.113.187 1.401.388a.899.899 0 0 1 .434.788 1.181 1.181 0 0 1-.231.717c-.154.201-.38.36-.68.474-.298.115-.669.172-1.112.172-.49 0-.89-.067-1.199-.2-.308-.144-.539-.33-.694-.56a1.375 1.375 0 0 1-.216-.746h-2.297c0 .679.168 1.281.505 1.807.337.517.834.928 1.489 1.234ZM39.977 15.07c-.8 0-1.445-.095-1.936-.286a2.03 2.03 0 0 1-1.084-.99c-.221-.469-.332-1.1-.332-1.893V8.789h-1.2V7.11h1.2V4.988h2.153V7.11h2.312V8.79h-2.312v3.198c0 .373.096.66.289.86.202.192.486.287.852.287h1.17v1.937h-1.112Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M43.873 14.899c.52.23 1.117.344 1.791.344.665 0 1.252-.115 1.763-.344.51-.23.934-.55 1.271-.96.337-.412.564-.88.679-1.407h-2.124c-.096.24-.279.44-.549.603-.27.162-.616.244-1.04.244-.262 0-.497-.031-.704-.093a1.572 1.572 0 0 1-.423-.194 1.662 1.662 0 0 1-.636-.803 3.159 3.159 0 0 1-.163-.645h5.784v-.775a4.28 4.28 0 0 0-.463-1.98 3.686 3.686 0 0 0-1.343-1.477c-.578-.382-1.291-.574-2.139-.574-.645 0-1.223.115-1.733.345-.501.22-.92.52-1.257.903a4.178 4.178 0 0 0-.78 1.305c-.174.478-.26.98-.26 1.506v.287c0 .507.086 1.004.26 1.492.183.478.443.913.78 1.305.347.382.775.688 1.286.918Zm-.094-4.674.02-.09a2.507 2.507 0 0 1 .117-.356c.145-.354.356-.622.636-.804.104-.067.217-.123.339-.165.204-.071.433-.107.686-.107.395 0 .723.09.983.272.27.173.472.426.607.76a2.487 2.487 0 0 1 .16.603h-3.57c.006-.038.013-.076.022-.113Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M50.476 14.97V7.112h1.835v1.98a4.54 4.54 0 0 1 .173-.603c.202-.536.506-.937.91-1.205.405-.277.9-.416 1.488-.416h.101c.598 0 1.094.139 1.489.416.404.268.707.67.91 1.205l.016.04.013.037.028-.077c.212-.536.52-.937.925-1.205.405-.277.901-.416 1.489-.416h.1c.598 0 1.098.139 1.503.416.414.268.727.67.94 1.205.211.535.317 1.205.317 2.008v4.475h-2.312v-4.604c0-.43-.115-.78-.346-1.047-.222-.268-.54-.402-.954-.402-.414 0-.742.139-.982.416-.241.268-.362.626-.362 1.076v4.56h-2.326v-4.603c0-.43-.115-.78-.346-1.047-.222-.268-.535-.402-.94-.402-.423 0-.756.139-.996.416-.241.268-.362.626-.362 1.076v4.56h-2.311Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M68.888 13.456v1.515h1.834v-4.82c0-.726-.144-1.319-.433-1.778-.289-.468-.712-.817-1.271-1.047-.549-.23-1.228-.344-2.037-.344a27.76 27.76 0 0 0-.896.014c-.318.01-.626.024-.924.043l-.229.016a36.79 36.79 0 0 0-.552.042v1.936a81.998 81.998 0 0 1 1.733-.09 37.806 37.806 0 0 1 1.171-.025c.424 0 .732.1.925.301.193.201.289.502.289.904v.029h-1.43c-.704 0-1.325.09-1.864.272-.54.172-.959.445-1.257.818-.299.363-.448.832-.448 1.405 0 .526.12.98.361 1.363.24.373.573.66.997.86.433.201.934.302 1.502.302.55 0 1.012-.1 1.388-.302.385-.2.683-.487.895-.86a2.443 2.443 0 0 0 .228-.498l.018-.056Zm-.39-1.397v-.63h-1.445c-.405 0-.718.1-.939.3-.212.192-.318.455-.318.79 0 .157.026.3.08.429a.99.99 0 0 0 .238.345c.221.191.534.287.939.287a2.125 2.125 0 0 0 .394-.038c.106-.021.206-.052.3-.092.212-.095.385-.253.52-.473.135-.22.212-.526.23-.918Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M72.106 14.97V7.11h1.835v2.595c.088-.74.31-1.338.665-1.791.481-.603 1.174-.904 2.08-.904h.303v1.98h-.578c-.635 0-1.127.172-1.473.516-.347.334-.52.822-.52 1.463v4.001h-2.312ZM79.92 11.298h.767l2.499 3.672h2.6l-3.169-4.51 2.606-3.35h-2.427l-2.875 3.737V4.5h-2.312v10.47h2.312v-3.672Z"})]})})}function HW(){return p.jsx(vs,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M6.68 15.92C2.88 15.24 0 11.96 0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 11.96 13.12 15.24 9.32 15.92L8.88 15.56H7.12L6.68 15.92Z",fill:"url(#paint0_linear_795_116)"}),p.jsx("path",{d:"M11.12 10.2391L11.48 7.99914H9.36V6.43914C9.36 5.79914 9.6 5.31914 10.56 5.31914H11.6V3.27914C11.04 3.19914 10.4 3.11914 9.84 3.11914C8 3.11914 6.72 4.23914 6.72 6.23914V7.99914H4.72V10.2391H6.72V15.8791C7.16 15.9591 7.6 15.9991 8.04 15.9991C8.48 15.9991 8.92 15.9591 9.36 15.8791V10.2391H11.12Z",fill:"white"}),p.jsx("defs",{children:p.jsxs("linearGradient",{id:"paint0_linear_795_116",x1:"8",y1:"0",x2:"8",y2:"15.9991",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#1AAFFF"}),p.jsx("stop",{offset:"1",stopColor:"#0163E0"})]})})]})})}function VW(){return p.jsx(vs,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M15.68 8.18182C15.68 7.61455 15.6291 7.06909 15.5345 6.54545H8V9.64364H12.3055C12.1164 10.64 11.5491 11.4836 10.6982 12.0509V14.0655H13.2945C14.8073 12.6691 15.68 10.6182 15.68 8.18182Z",fill:"#4285F4"}),p.jsx("path",{d:"M8 16C10.16 16 11.9709 15.2873 13.2945 14.0655L10.6982 12.0509C9.98545 12.5309 9.07636 12.8218 8 12.8218C5.92 12.8218 4.15273 11.4182 3.52 9.52727H0.858182V11.5927C2.17455 14.2036 4.87273 16 8 16Z",fill:"#34A853"}),p.jsx("path",{d:"M3.52 9.52C3.36 9.04 3.26545 8.53091 3.26545 8C3.26545 7.46909 3.36 6.96 3.52 6.48V4.41455H0.858182C0.312727 5.49091 0 6.70545 0 8C0 9.29455 0.312727 10.5091 0.858182 11.5855L2.93091 9.97091L3.52 9.52Z",fill:"#FBBC05"}),p.jsx("path",{d:"M8 3.18545C9.17818 3.18545 10.2255 3.59273 11.0618 4.37818L13.3527 2.08727C11.9636 0.792727 10.16 0 8 0C4.87273 0 2.17455 1.79636 0.858182 4.41455L3.52 6.48C4.15273 4.58909 5.92 3.18545 8 3.18545Z",fill:"#EA4335"})]})})}const GW=Q(Zi)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),margin:"auto",boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),WW=Q(Va)(({theme:e})=>({height:"calc((1 - var(--template-frame-height, 0)) * 100dvh)",minHeight:"100%",padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}}));function UW(e){const[t,n]=h.useState(!1),[r,o]=h.useState(""),[s,i]=h.useState(!1),[a,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(""),m=()=>{const y=document.getElementById("email"),x=document.getElementById("password"),v=document.getElementById("name");let w=!0;return!y.value||!/\S+@\S+\.\S+/.test(y.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!x.value||x.value.length<6?(i(!0),l("Password must be at least 6 characters long."),w=!1):(i(!1),l("")),!v.value||v.value.length<1?(u(!0),f("Name is required."),w=!1):(u(!1),f("")),w},g=y=>{if(c||t||s){y.preventDefault();return}const x=new FormData(y.currentTarget);console.log({name:x.get("name"),lastName:x.get("lastName"),email:x.get("email"),password:x.get("password")})};return p.jsxs(g0,{...e,children:[p.jsx(i0,{enableColorScheme:!0}),p.jsx(f$,{sx:{position:"fixed",top:"1rem",right:"1rem"}}),p.jsx(WW,{direction:"column",justifyContent:"space-between",children:p.jsxs(GW,{variant:"outlined",children:[p.jsx(BW,{}),p.jsx(we,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),p.jsxs(We,{component:"form",onSubmit:g,sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsxs(_s,{children:[p.jsx(uc,{htmlFor:"name",children:"Full name"}),p.jsx(Ns,{autoComplete:"name",name:"name",required:!0,fullWidth:!0,id:"name",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),p.jsxs(_s,{children:[p.jsx(uc,{htmlFor:"email",children:"Email"}),p.jsx(Ns,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:s?"error":"primary"})]}),p.jsxs(_s,{children:[p.jsx(uc,{htmlFor:"password",children:"Password"}),p.jsx(Ns,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:s,helperText:a,color:s?"error":"primary"})]}),p.jsx(so,{control:p.jsx(yw,{value:"allowExtraEmails",color:"primary"}),label:"I want to receive updates via email."}),p.jsx(ut,{type:"submit",fullWidth:!0,variant:"contained",onClick:m,children:"Sign up"})]}),p.jsx(Gn,{children:p.jsx(we,{sx:{color:"text.secondary"},children:"or"})}),p.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsx(ut,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign up with Google"),startIcon:p.jsx(VW,{}),children:"Sign up with Google"}),p.jsx(ut,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign up with Facebook"),startIcon:p.jsx(HW,{}),children:"Sign up with Facebook"}),p.jsxs(we,{sx:{textAlign:"center"},children:["Already have an account?"," ",p.jsx(pn,{href:"/material-ui/getting-started/templates/sign-in/",variant:"body2",sx:{alignSelf:"center"},children:"Sign in"})]})]})]})})]})}function YW(e){return ve("MuiAvatarGroup",e)}const KW=me("MuiAvatarGroup",["root","avatar"]),$k={small:-16,medium:-8},qW=e=>{const{classes:t}=e;return le({root:["root"],avatar:["avatar"]},YW,t)},XW=Q("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>({[`& .${KW.avatar}`]:t.avatar,...t.root})})($e(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${tG.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),p$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAvatarGroup"}),{children:o,className:s,component:i="div",componentsProps:a,max:l=5,renderSurplus:c,slotProps:u={},slots:d={},spacing:f="medium",total:m,variant:g="circular",...y}=r;let x=l<2?2:l;const v={...r,max:l,spacing:f,component:i,variant:g},w=qW(v),b=h.Children.toArray(o).filter(j=>h.isValidElement(j)),C=m||b.length;C===x&&(x+=1),x=Math.min(C+1,x);const k=Math.min(b.length,x-1),M=Math.max(C-x,C-k,0),T=c?c(M):`+${M}`,E=v.spacing&&$k[v.spacing]!==void 0?$k[v.spacing]:-v.spacing||-8,$={slots:d,slotProps:{surplus:u.additionalAvatar??(a==null?void 0:a.additionalAvatar),...a,...u}},[S,D]=qt("surplus",{elementType:$s,externalForwardedProps:$,className:w.avatar,ownerState:v,additionalProps:{variant:g}});return p.jsxs(XW,{as:i,ownerState:v,className:se(w.root,s),ref:n,...y,style:{"--AvatarGroup-spacing":E?`${E}px`:void 0,...y.style},children:[M?p.jsx(S,{...D,children:T}):null,b.slice(0,k).reverse().map(j=>h.cloneElement(j,{className:se(j.props.className,w.avatar),variant:j.props.variant||g}))]})});function QW(e){return ve("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const ZW=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return le({root:["root",n&&"media",r&&"img"]},QW,t)},JW=Q("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"}}]}),eU=["video","audio","picture","iframe","img"],tU=["picture","img"],Up=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCardMedia"}),{children:o,className:s,component:i="div",image:a,src:l,style:c,...u}=r,d=eU.includes(i),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,m={...r,component:i,isMediaComponent:d,isImageComponent:tU.includes(i)},g=ZW(m);return p.jsx(JW,{className:se(g.root,s),as:i,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:m,src:d?a||l:void 0,...u,children:o})});function nU(e){return ve("MuiInputAdornment",e)}const Rk=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ak;const rU=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},oU=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ae(o)}`,i,r&&"hiddenLabel",s&&`size${ae(s)}`]};return le(a,nU,t)},sU=Q("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:rU})($e(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Rk.positionStart}&:not(.${Rk.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),y0=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=Kr()||{};let m=u;u&&f.variant,f&&!m&&(m=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:m},y=oU(g);return p.jsx(d0.Provider,{value:null,children:p.jsx(sU,{as:i,ownerState:g,className:se(y.root,s),ref:n,...d,children:typeof o=="string"&&!l?p.jsx(we,{color:"textSecondary",children:o}):p.jsxs(h.Fragment,{children:[c==="start"?Ak||(Ak=p.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})}),iU=Re(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-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"}),"SearchRounded"),Ok=Re([p.jsx("circle",{cx:"6.18",cy:"17.82",r:"2.18"},"0"),p.jsx("path",{d:"M5.59 10.23c-.84-.14-1.59.55-1.59 1.4 0 .71.53 1.28 1.23 1.4 2.92.51 5.22 2.82 5.74 5.74.12.7.69 1.23 1.4 1.23.85 0 1.54-.75 1.41-1.59-.68-4.2-3.99-7.51-8.19-8.18m-.03-5.71C4.73 4.43 4 5.1 4 5.93c0 .73.55 1.33 1.27 1.4 6.01.6 10.79 5.38 11.39 11.39.07.73.67 1.28 1.4 1.28.84 0 1.5-.73 1.42-1.56-.73-7.34-6.57-13.19-13.92-13.92"},"1")],"RssFeedRounded"),Et=[{img:"https://picsum.photos/800/450?random=1",tag:"Engineering",title:"Revolutionizing software development with cutting-edge tools",description:"Our latest engineering tools are designed to streamline workflows and boost productivity. Discover how these innovations are transforming the software development landscape.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/1.jpg"}]},{img:"https://picsum.photos/800/450?random=2",tag:"Product",title:"Innovative product features that drive success",description:"Explore the key features of our latest product release that are helping businesses achieve their goals. From user-friendly interfaces to robust functionality, learn why our product stands out.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/6.jpg"}]},{img:"https://picsum.photos/800/450?random=3",tag:"Design",title:"Designing for the future: trends and insights",description:"Stay ahead of the curve with the latest design trends and insights. Our design team shares their expertise on creating intuitive and visually stunning user experiences.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/7.jpg"}]},{img:"https://picsum.photos/800/450?random=4",tag:"Company",title:"Our company's journey: milestones and achievements",description:"Take a look at our company's journey and the milestones we've achieved along the way. From humble beginnings to industry leader, discover our story of growth and success.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]},{img:"https://picsum.photos/800/450?random=45",tag:"Engineering",title:"Pioneering sustainable engineering solutions",description:"Learn about our commitment to sustainability and the innovative engineering solutions we're implementing to create a greener future. Discover the impact of our eco-friendly initiatives.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]},{img:"https://picsum.photos/800/450?random=6",tag:"Product",title:"Maximizing efficiency with our latest product updates",description:"Our recent product updates are designed to help you maximize efficiency and achieve more. Get a detailed overview of the new features and improvements that can elevate your workflow.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]}],yl=Q(Zi)(({theme:e})=>({display:"flex",flexDirection:"column",padding:0,height:"100%",backgroundColor:e.palette.background.paper,"&:hover":{backgroundColor:"transparent",cursor:"pointer"},"&:focus-visible":{outline:"3px solid",outlineColor:"hsla(210, 98%, 48%, 0.5)",outlineOffset:"2px"}})),vl=Q(gw)({display:"flex",flexDirection:"column",gap:4,padding:16,flexGrow:1,"&:last-child":{paddingBottom:16}}),xl=Q(we)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis"});function bl({authors:e}){return p.jsxs(We,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"center",justifyContent:"space-between",padding:"16px"},children:[p.jsxs(We,{sx:{display:"flex",flexDirection:"row",gap:1,alignItems:"center"},children:[p.jsx(p$,{max:3,children:e.map((t,n)=>p.jsx($s,{alt:t.name,src:t.avatar,sx:{width:24,height:24}},n))}),p.jsx(we,{variant:"caption",children:e.map(t=>t.name).join(", ")})]}),p.jsx(we,{variant:"caption",children:"Nov 9, 2024"})]})}function jk(){return p.jsx(_s,{sx:{width:{xs:"100%",md:"25ch"}},variant:"outlined",children:p.jsx(Oc,{size:"small",id:"search",placeholder:"Search…",sx:{flexGrow:1},startAdornment:p.jsx(y0,{position:"start",sx:{color:"text.primary"},children:p.jsx(iU,{fontSize:"small"})}),inputProps:{"aria-label":"search"}})})}function aU(){const[e,t]=h.useState(null),n=s=>{t(s)},r=()=>{t(null)},o=()=>{console.info("You clicked the filter chip.")};return p.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:4},children:[p.jsxs("div",{children:[p.jsx(we,{variant:"h1",gutterBottom:!0,children:"Blog"}),p.jsx(we,{children:"Stay in the loop with the latest about our products"})]}),p.jsxs(We,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"row",gap:1,width:{xs:"100%",md:"fit-content"},overflow:"auto"},children:[p.jsx(jk,{}),p.jsx(gn,{size:"small","aria-label":"RSS feed",children:p.jsx(Ok,{})})]}),p.jsxs(We,{sx:{display:"flex",flexDirection:{xs:"column-reverse",md:"row"},width:"100%",justifyContent:"space-between",alignItems:{xs:"start",md:"center"},gap:4,overflow:"auto"},children:[p.jsxs(We,{sx:{display:"inline-flex",flexDirection:"row",gap:3,overflow:"auto"},children:[p.jsx(as,{onClick:o,size:"medium",label:"All categories"}),p.jsx(as,{onClick:o,size:"medium",label:"Company",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(as,{onClick:o,size:"medium",label:"Product",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(as,{onClick:o,size:"medium",label:"Design",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(as,{onClick:o,size:"medium",label:"Engineering",sx:{backgroundColor:"transparent",border:"none"}})]}),p.jsxs(We,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"row",gap:1,width:{xs:"100%",md:"fit-content"},overflow:"auto"},children:[p.jsx(jk,{}),p.jsx(gn,{size:"small","aria-label":"RSS feed",children:p.jsx(Ok,{})})]})]}),p.jsxs(dr,{container:!0,spacing:2,columns:12,children:[p.jsx(dr,{size:{xs:12,md:6},children:p.jsxs(yl,{variant:"outlined",onFocus:()=>n(0),onBlur:r,tabIndex:0,className:e===0?"Mui-focused":"",children:[p.jsx(Up,{component:"img",alt:"green iguana",image:Et[0].img,sx:{aspectRatio:"16 / 9",borderBottom:"1px solid",borderColor:"divider"}}),p.jsxs(vl,{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[0].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[0].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[0].description})]}),p.jsx(bl,{authors:Et[0].authors})]})}),p.jsx(dr,{size:{xs:12,md:6},children:p.jsxs(yl,{variant:"outlined",onFocus:()=>n(1),onBlur:r,tabIndex:0,className:e===1?"Mui-focused":"",children:[p.jsx(Up,{component:"img",alt:"green iguana",image:Et[1].img,"aspect-ratio":"16 / 9",sx:{borderBottom:"1px solid",borderColor:"divider"}}),p.jsxs(vl,{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[1].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[1].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[1].description})]}),p.jsx(bl,{authors:Et[1].authors})]})}),p.jsx(dr,{size:{xs:12,md:4},children:p.jsxs(yl,{variant:"outlined",onFocus:()=>n(2),onBlur:r,tabIndex:0,className:e===2?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(Up,{component:"img",alt:"green iguana",image:Et[2].img,sx:{height:{sm:"auto",md:"50%"},aspectRatio:{sm:"16 / 9",md:""}}}),p.jsxs(vl,{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[2].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[2].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[2].description})]}),p.jsx(bl,{authors:Et[2].authors})]})}),p.jsx(dr,{size:{xs:12,md:4},children:p.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:2,height:"100%"},children:[p.jsxs(yl,{variant:"outlined",onFocus:()=>n(3),onBlur:r,tabIndex:0,className:e===3?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(vl,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:p.jsxs("div",{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[3].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[3].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[3].description})]})}),p.jsx(bl,{authors:Et[3].authors})]}),p.jsxs(yl,{variant:"outlined",onFocus:()=>n(4),onBlur:r,tabIndex:0,className:e===4?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(vl,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:p.jsxs("div",{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[4].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[4].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[4].description})]})}),p.jsx(bl,{authors:Et[4].authors})]})]})}),p.jsx(dr,{size:{xs:12,md:4},children:p.jsxs(yl,{variant:"outlined",onFocus:()=>n(5),onBlur:r,tabIndex:0,className:e===5?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(Up,{component:"img",alt:"green iguana",image:Et[5].img,sx:{height:{sm:"auto",md:"50%"},aspectRatio:{sm:"16 / 9",md:""}}}),p.jsxs(vl,{children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:Et[5].tag}),p.jsx(we,{gutterBottom:!0,variant:"h6",component:"div",children:Et[5].title}),p.jsx(xl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Et[5].description})]}),p.jsx(bl,{authors:Et[5].authors})]})})]})]})}function lU(e){return ve("MuiPagination",e)}me("MuiPagination",["root","ul","outlined","text"]);function cU(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:i=!1,hidePrevButton:a=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1,...m}=e,[g,y]=On({controlled:c,default:o,name:n,state:"page"}),x=($,S)=>{c||y(S),l&&l($,S)},v=($,S)=>{const D=S-$+1;return Array.from({length:D},(j,F)=>$+F)},w=v(1,Math.min(t,r)),b=v(Math.max(r-t+1,t+1),r),C=Math.max(Math.min(g-f,r-t-f*2-1),t+2),k=Math.min(Math.max(g+f,t+f*2+2),r-t-1),M=[...u?["first"]:[],...a?[]:["previous"],...w,...C>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],T=$=>{switch($){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:M.map($=>typeof $=="number"?{onClick:S=>{x(S,$)},type:"page",page:$,selected:$===g,disabled:s,"aria-current":$===g?"true":void 0}:{onClick:S=>{x(S,T($))},type:$,page:T($),selected:!1,disabled:s||!$.includes("ellipsis")&&($==="next"||$==="last"?g>=r:g<=1)}),...m}}function uU(e){return ve("MuiPaginationItem",e)}const qn=me("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),h$=Re(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),m$=Re(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),dU=Re(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),fU=Re(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),g$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.variant==="text"&&t[`text${ae(n.color)}`],n.variant==="outlined"&&t[`outlined${ae(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]},pU=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:i,type:a,variant:l}=e,c={root:["root",`size${ae(s)}`,l,i,n!=="standard"&&`color${ae(n)}`,n!=="standard"&&`${l}${ae(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]};return le(c,uU,t)},hU=Q("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:g$})($e(({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",[`&.${qn.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)}}]}))),mU=Q(qs,{name:"MuiPaginationItem",slot:"Root",overridesResolver:g$})($e(({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,[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qn.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"}},[`&.${qn.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}))`:xe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${qn.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)"}`,[`&.${qn.selected}`]:{[`&.${qn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${qn.selected}`]:{[`&.${qn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Lt(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${qn.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}},[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Lt(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${qn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:xe(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:xe(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}))`:xe(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),gU=Q("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})($e(({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)}}]}))),yU=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:i,components:a={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:f="medium",slots:m={},slotProps:g={},type:y="page",variant:x="text",...v}=r,w={...r,color:s,disabled:l,selected:u,shape:d,size:f,type:y,variant:x},b=Nt(),C=pU(w),k={slots:{previous:m.previous??a.previous,next:m.next??a.next,first:m.first??a.first,last:m.last??a.last},slotProps:g},[M,T]=qt("previous",{elementType:dU,externalForwardedProps:k,ownerState:w}),[E,$]=qt("next",{elementType:fU,externalForwardedProps:k,ownerState:w}),[S,D]=qt("first",{elementType:h$,externalForwardedProps:k,ownerState:w}),[j,F]=qt("last",{elementType:m$,externalForwardedProps:k,ownerState:w}),A=b?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,R={previous:M,next:E,first:S,last:j}[A],I={previous:T,next:$,first:D,last:F}[A];return y==="start-ellipsis"||y==="end-ellipsis"?p.jsx(hU,{ref:n,ownerState:w,className:se(C.root,o),children:"…"}):p.jsxs(mU,{ref:n,ownerState:w,component:i,disabled:l,className:se(C.root,o),...v,children:[y==="page"&&c,R?p.jsx(gU,{...I,className:C.icon,as:R}):null]})}),vU=e=>{const{classes:t,variant:n}=e;return le({root:["root",n],ul:["ul"]},lU,t)},xU=Q("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),bU=Q("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function wU(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const CU=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:i="standard",count:a=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=wU,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:m,page:g,renderItem:y=S=>p.jsx(yU,{...S}),shape:x="circular",showFirstButton:v=!1,showLastButton:w=!1,siblingCount:b=1,size:C="medium",variant:k="text",...M}=r,{items:T}=cU({...r,componentName:"Pagination"}),E={...r,boundaryCount:o,color:i,count:a,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:f,renderItem:y,shape:x,showFirstButton:v,showLastButton:w,siblingCount:b,size:C,variant:k},$=vU(E);return p.jsx(xU,{"aria-label":"pagination navigation",className:se($.root,s),ownerState:E,ref:n,...M,children:p.jsx(bU,{className:$.ul,ownerState:E,children:T.map((S,D)=>p.jsx("li",{children:y({...S,color:i,"aria-label":u(S.type,S.page,S.selected),shape:x,size:C,variant:k})},D))})})}),SU=Re(p.jsx("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded"),kU=[{tag:"Engineering",title:"The future of AI in software engineering",description:"Artificial intelligence is revolutionizing software engineering. Explore how AI-driven tools are enhancing development processes and improving software quality.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/1.jpg"}]},{tag:"Product",title:"Driving growth with user-centric product design",description:"Our user-centric product design approach is driving significant growth. Learn about the strategies we employ to create products that resonate with users.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/6.jpg"}]},{tag:"Design",title:"Embracing minimalism in modern design",description:"Minimalism is a key trend in modern design. Discover how our design team incorporates minimalist principles to create clean and impactful user experiences.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/7.jpg"}]},{tag:"Company",title:"Cultivating a culture of innovation",description:"Innovation is at the heart of our company culture. Learn about the initiatives we have in place to foster creativity and drive groundbreaking solutions.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]}],PU=Q(we)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis"}),MU=Q(we)(({theme:e})=>({position:"relative",textDecoration:"none","&:hover":{cursor:"pointer"},"& .arrow":{visibility:"hidden",position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"},"&:hover .arrow":{visibility:"visible",opacity:.7},"&:focus-visible":{outline:"3px solid",outlineColor:"hsla(210, 98%, 48%, 0.5)",outlineOffset:"3px",borderRadius:"8px"},"&::before":{content:'""',position:"absolute",width:0,height:"1px",bottom:0,left:0,backgroundColor:e.palette.text.primary,opacity:.3,transition:"width 0.3s ease, opacity 0.3s ease"},"&:hover::before":{width:"100%"}}));function IU({authors:e}){return p.jsxs(We,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"center",justifyContent:"space-between"},children:[p.jsxs(We,{sx:{display:"flex",flexDirection:"row",gap:1,alignItems:"center"},children:[p.jsx(p$,{max:3,children:e.map((t,n)=>p.jsx($s,{alt:t.name,src:t.avatar,sx:{width:24,height:24}},n))}),p.jsx(we,{variant:"caption",children:e.map(t=>t.name).join(", ")})]}),p.jsx(we,{variant:"caption",children:"November 9, 2024"})]})}function EU(){const[e,t]=h.useState(null),n=o=>{t(o)},r=()=>{t(null)};return p.jsxs("div",{children:[p.jsx(we,{variant:"h2",gutterBottom:!0,children:"Latest"}),p.jsx(dr,{container:!0,spacing:8,columns:12,sx:{my:4},children:kU.map((o,s)=>p.jsx(dr,{size:{xs:12,sm:6},children:p.jsxs(We,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",gap:1,height:"100%"},children:[p.jsx(we,{gutterBottom:!0,variant:"caption",component:"div",children:o.tag}),p.jsxs(MU,{gutterBottom:!0,variant:"h6",onFocus:()=>n(s),onBlur:r,tabIndex:0,className:e===s?"Mui-focused":"",children:[o.title,p.jsx(SU,{className:"arrow",sx:{fontSize:"1rem"}})]}),p.jsx(PU,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:o.description}),p.jsx(IU,{authors:o.authors})]})},s))}),p.jsx(We,{sx:{display:"flex",flexDirection:"row",pt:4},children:p.jsx(CU,{hidePrevButton:!0,hideNextButton:!0,count:10,boundaryCount:10})})]})}function TU(e){return p.jsxs(g0,{...e,children:[p.jsx(i0,{enableColorScheme:!0}),p.jsxs(Uo,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:16,gap:4},children:[p.jsx(aU,{}),p.jsx(EU,{})]})]})}const DU=Re(p.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");function Fk(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function y$(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Fk(u));const d=u?a.filter(f=>{let m=(s||c)(f);return n&&(m=m.toLowerCase()),t&&(m=Fk(m)),o==="start"?m.startsWith(u):m.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const $U=y$(),Lk=5,RU=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},AU=[];function OU(e){const{unstable_isActiveElementInListbox:t=RU,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?AU:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:x=$U,filterSelectedOptions:v=!1,freeSolo:w=!1,getOptionDisabled:b,getOptionKey:C,getOptionLabel:k=pe=>pe.label??pe,groupBy:M,handleHomeEndKeys:T=!e.freeSolo,id:E,includeInputInList:$=!1,inputValue:S,isOptionEqualToValue:D=(pe,fe)=>pe===fe,multiple:j=!1,onChange:F,onClose:A,onHighlightChange:R,onInputChange:I,onOpen:L,open:O,openOnFocus:_=!1,options:N,readOnly:z=!1,selectOnFocus:U=!e.freeSolo,value:J}=e,Y=pt(E);let B=k;B=pe=>{const fe=k(pe);return typeof fe!="string"?String(fe):fe};const W=h.useRef(!1),te=h.useRef(!0),X=h.useRef(null),q=h.useRef(null),[G,ee]=h.useState(null),[H,Z]=h.useState(-1),ne=o?0:-1,oe=h.useRef(ne),[re,ue]=On({controlled:J,default:u,name:c}),[ie,be]=On({controlled:S,default:"",name:c,state:"inputValue"}),[Te,Fe]=h.useState(!1),Xe=h.useCallback((pe,fe,Ne)=>{if(!(j?re.length!(v&&(j?re:[re]).some(fe=>fe!==null&&D(pe,fe)))),{inputValue:Ae&&Be?"":ie,getOptionLabel:B}):[],Ee=qb({filteredOptions:He,value:re,inputValue:ie});h.useEffect(()=>{const pe=re!==Ee.value;Te&&!pe||w&&!pe||Xe(null,re,"reset")},[re,Xe,Te,Ee.value,w]);const Me=Pe&&He.length>0&&!z,Ve=ye(pe=>{pe===-1?X.current.focus():G.querySelector(`[data-tag-index="${pe}"]`).focus()});h.useEffect(()=>{j&&H>re.length-1&&(Z(-1),Ve(-1))},[re,j,H,Ve]);function bt(pe,fe){if(!q.current||pe<0||pe>=He.length)return-1;let Ne=pe;for(;;){const st=q.current.querySelector(`[data-option-index="${Ne}"]`),ct=g?!1:!st||st.disabled||st.getAttribute("aria-disabled")==="true";if(st&&st.hasAttribute("tabindex")&&!ct)return Ne;if(fe==="next"?Ne=(Ne+1)%He.length:Ne=(Ne-1+He.length)%He.length,Ne===pe)return-1}}const ge=ye(({event:pe,index:fe,reason:Ne="auto"})=>{if(oe.current=fe,fe===-1?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${Y}-option-${fe}`),R&&R(pe,fe===-1?null:He[fe],Ne),!q.current)return;const st=q.current.querySelector(`[role="option"].${n}-focused`);st&&(st.classList.remove(`${n}-focused`),st.classList.remove(`${n}-focusVisible`));let ct=q.current;if(q.current.getAttribute("role")!=="listbox"&&(ct=q.current.parentElement.querySelector('[role="listbox"]')),!ct)return;if(fe===-1){ct.scrollTop=0;return}const Jt=q.current.querySelector(`[data-option-index="${fe}"]`);if(Jt&&(Jt.classList.add(`${n}-focused`),Ne==="keyboard"&&Jt.classList.add(`${n}-focusVisible`),ct.scrollHeight>ct.clientHeight&&Ne!=="mouse"&&Ne!=="touch")){const kt=Jt,Do=ct.clientHeight+ct.scrollTop,up=kt.offsetTop+kt.offsetHeight;up>Do?ct.scrollTop=up-ct.clientHeight:kt.offsetTop-kt.offsetHeight*(M?1.3:0){if(!Oe)return;const Jt=bt((()=>{const kt=He.length-1;if(fe==="reset")return ne;if(fe==="start")return 0;if(fe==="end")return kt;const Do=oe.current+fe;return Do<0?Do===-1&&$?-1:y&&oe.current!==-1||Math.abs(fe)>1?0:kt:Do>kt?Do===kt+1&&$?-1:y||Math.abs(fe)>1?kt:0:Do})(),Ne);if(ge({index:Jt,reason:st,event:pe}),r&&fe!=="reset")if(Jt===-1)X.current.value=ie;else{const kt=B(He[Jt]);X.current.value=kt,kt.toLowerCase().indexOf(ie.toLowerCase())===0&&ie.length>0&&X.current.setSelectionRange(ie.length,kt.length)}}),qe=()=>{const pe=(fe,Ne)=>{const st=fe?B(fe):"",ct=Ne?B(Ne):"";return st===ct};if(oe.current!==-1&&Ee.filteredOptions&&Ee.filteredOptions.length!==He.length&&Ee.inputValue===ie&&(j?re.length===Ee.value.length&&Ee.value.every((fe,Ne)=>B(re[Ne])===B(fe)):pe(Ee.value,re))){const fe=Ee.filteredOptions[oe.current];if(fe)return He.findIndex(Ne=>B(Ne)===B(fe))}return-1},ft=h.useCallback(()=>{if(!Oe)return;const pe=qe();if(pe!==-1){oe.current=pe;return}const fe=j?re[0]:re;if(He.length===0||fe==null){De({diff:"reset"});return}if(q.current){if(fe!=null){const Ne=He[oe.current];if(j&&Ne&&re.findIndex(ct=>D(Ne,ct))!==-1)return;const st=He.findIndex(ct=>D(ct,fe));st===-1?De({diff:"reset"}):ge({index:st});return}if(oe.current>=He.length-1){ge({index:He.length-1});return}ge({index:oe.current})}},[He.length,j?!1:re,v,De,ge,Oe,ie,j]),Yn=ye(pe=>{gm(q,pe),pe&&ft()});h.useEffect(()=>{ft()},[ft]);const it=pe=>{Pe||(Ie(!0),Ge(!0),L&&L(pe))},At=(pe,fe)=>{Pe&&(Ie(!1),A&&A(pe,fe))},on=(pe,fe,Ne,st)=>{if(j){if(re.length===fe.length&&re.every((ct,Jt)=>ct===fe[Jt]))return}else if(re===fe)return;F&&F(pe,fe,Ne,st),ue(fe)},Zt=h.useRef(!1),or=(pe,fe,Ne="selectOption",st="options")=>{let ct=Ne,Jt=fe;if(j){Jt=Array.isArray(re)?re.slice():[];const kt=Jt.findIndex(Do=>D(fe,Do));kt===-1?Jt.push(fe):st!=="freeSolo"&&(Jt.splice(kt,1),ct="removeOption")}Xe(pe,Jt,ct),on(pe,Jt,ct,{option:fe}),!f&&(!pe||!pe.ctrlKey&&!pe.metaKey)&&At(pe,ct),(i===!0||i==="touch"&&Zt.current||i==="mouse"&&!Zt.current)&&X.current.blur()};function Ln(pe,fe){if(pe===-1)return-1;let Ne=pe;for(;;){if(fe==="next"&&Ne===re.length||fe==="previous"&&Ne===-1)return-1;const st=G.querySelector(`[data-tag-index="${Ne}"]`);if(!st||!st.hasAttribute("tabindex")||st.disabled||st.getAttribute("aria-disabled")==="true")Ne+=fe==="next"?1:-1;else return Ne}}const kr=(pe,fe)=>{if(!j)return;ie===""&&At(pe,"toggleInput");let Ne=H;H===-1?ie===""&&fe==="previous"&&(Ne=re.length-1):(Ne+=fe==="next"?1:-1,Ne<0&&(Ne=0),Ne===re.length&&(Ne=-1)),Ne=Ln(Ne,fe),Z(Ne),Ve(Ne)},qo=pe=>{W.current=!0,be(""),I&&I(pe,"","clear"),on(pe,j?[]:null,"clear")},tt=pe=>fe=>{if(pe.onKeyDown&&pe.onKeyDown(fe),!fe.defaultMuiPrevented&&(H!==-1&&!["ArrowLeft","ArrowRight"].includes(fe.key)&&(Z(-1),Ve(-1)),fe.which!==229))switch(fe.key){case"Home":Oe&&T&&(fe.preventDefault(),De({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":Oe&&T&&(fe.preventDefault(),De({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),De({diff:-Lk,direction:"previous",reason:"keyboard",event:fe}),it(fe);break;case"PageDown":fe.preventDefault(),De({diff:Lk,direction:"next",reason:"keyboard",event:fe}),it(fe);break;case"ArrowDown":fe.preventDefault(),De({diff:1,direction:"next",reason:"keyboard",event:fe}),it(fe);break;case"ArrowUp":fe.preventDefault(),De({diff:-1,direction:"previous",reason:"keyboard",event:fe}),it(fe);break;case"ArrowLeft":kr(fe,"previous");break;case"ArrowRight":kr(fe,"next");break;case"Enter":if(oe.current!==-1&&Oe){const Ne=He[oe.current],st=b?b(Ne):!1;if(fe.preventDefault(),st)return;or(fe,Ne,"selectOption"),r&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else w&&ie!==""&&Ae===!1&&(j&&fe.preventDefault(),or(fe,ie,"createOption","freeSolo"));break;case"Escape":Oe?(fe.preventDefault(),fe.stopPropagation(),At(fe,"escape")):l&&(ie!==""||j&&re.length>0)&&(fe.preventDefault(),fe.stopPropagation(),qo(fe));break;case"Backspace":if(j&&!z&&ie===""&&re.length>0){const Ne=H===-1?re.length-1:H,st=re.slice();st.splice(Ne,1),on(fe,st,"removeOption",{option:re[Ne]})}break;case"Delete":if(j&&!z&&ie===""&&re.length>0&&H!==-1){const Ne=H,st=re.slice();st.splice(Ne,1),on(fe,st,"removeOption",{option:re[Ne]})}break}},Kn=pe=>{Fe(!0),_&&!W.current&&it(pe)},lp=pe=>{if(t(q)){X.current.focus();return}Fe(!1),te.current=!0,W.current=!1,s&&oe.current!==-1&&Oe?or(pe,He[oe.current],"blur"):s&&w&&ie!==""?or(pe,ie,"blur","freeSolo"):a&&Xe(pe,re,"blur"),At(pe,"blur")},ll=pe=>{const fe=pe.target.value;ie!==fe&&(be(fe),Ge(!1),I&&I(pe,fe,"input")),fe===""?!d&&!j&&on(pe,null,"clear"):it(pe)},vu=pe=>{const fe=Number(pe.currentTarget.getAttribute("data-option-index"));oe.current!==fe&&ge({event:pe,index:fe,reason:"mouse"})},xu=pe=>{ge({event:pe,index:Number(pe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},sy=pe=>{const fe=Number(pe.currentTarget.getAttribute("data-option-index"));or(pe,He[fe],"selectOption"),Zt.current=!1},iy=pe=>fe=>{const Ne=re.slice();Ne.splice(pe,1),on(fe,Ne,"removeOption",{option:re[pe]})},cp=pe=>{Pe?At(pe,"toggleInput"):it(pe)},UC=pe=>{pe.currentTarget.contains(pe.target)&&pe.target.getAttribute("id")!==Y&&pe.preventDefault()},bu=pe=>{pe.currentTarget.contains(pe.target)&&(X.current.focus(),U&&te.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.current.select(),te.current=!1)},_n=pe=>{!m&&(ie===""||!Pe)&&cp(pe)};let cn=w&&ie.length>0;cn=cn||(j?re.length>0:re!==null);let ks=He;return M&&(ks=He.reduce((pe,fe,Ne)=>{const st=M(fe);return pe.length>0&&pe[pe.length-1].group===st?pe[pe.length-1].options.push(fe):pe.push({key:Ne,index:Ne,group:st,options:[fe]}),pe},[])),m&&Te&&lp(),{getRootProps:(pe={})=>({"aria-owns":Me?`${Y}-listbox`:null,...pe,onKeyDown:tt(pe),onMouseDown:UC,onClick:bu}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:ie,onBlur:lp,onFocus:Kn,onChange:ll,onMouseDown:_n,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Me?`${Y}-listbox`:void 0,"aria-expanded":Me,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:qo}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:cp}),getTagProps:({index:pe})=>({key:pe,"data-tag-index":pe,tabIndex:-1,...!z&&{onDelete:iy(pe)}}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:Yn,onMouseDown:pe=>{pe.preventDefault()}}),getOptionProps:({index:pe,option:fe})=>{const Ne=(j?re:[re]).some(ct=>ct!=null&&D(fe,ct)),st=b?b(fe):!1;return{key:(C==null?void 0:C(fe))??B(fe),tabIndex:-1,role:"option",id:`${Y}-option-${pe}`,onMouseMove:vu,onClick:sy,onTouchStart:xu,"data-option-index":pe,"aria-disabled":st,"aria-selected":Ne}},id:Y,inputValue:ie,value:re,dirty:cn,expanded:Oe&&G,popupOpen:Oe,focused:Te||H!==-1,anchorEl:G,setAnchorEl:ee,focusedTag:H,groupedOptions:ks}}var vr="top",bo="bottom",wo="right",xr="left",vw="auto",Gf=[vr,bo,wo,xr],jc="start",sf="end",jU="clippingParents",v$="viewport",Ou="popper",FU="reference",_k=Gf.reduce(function(e,t){return e.concat([t+"-"+jc,t+"-"+sf])},[]),x$=[].concat(Gf,[vw]).reduce(function(e,t){return e.concat([t,t+"-"+jc,t+"-"+sf])},[]),LU="beforeRead",_U="read",NU="afterRead",zU="beforeMain",BU="main",HU="afterMain",VU="beforeWrite",GU="write",WU="afterWrite",UU=[LU,_U,NU,zU,BU,HU,VU,GU,WU];function xs(e){return e?(e.nodeName||"").toLowerCase():null}function Vr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ga(e){var t=Vr(e).Element;return e instanceof t||e instanceof Element}function go(e){var t=Vr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xw(e){if(typeof ShadowRoot>"u")return!1;var t=Vr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function YU(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!go(s)||!xs(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function KU(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],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!go(o)||!xs(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const qU={name:"applyStyles",enabled:!0,phase:"write",fn:YU,effect:KU,requires:["computeStyles"]};function ps(e){return e.split("-")[0]}var Ta=Math.max,Dm=Math.min,Fc=Math.round;function G1(){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 b$(){return!/^((?!chrome|android).)*safari/i.test(G1())}function Lc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&go(e)&&(o=e.offsetWidth>0&&Fc(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Fc(r.height)/e.offsetHeight||1);var i=Ga(e)?Vr(e):window,a=i.visualViewport,l=!b$()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function bw(e){var t=Lc(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 w$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xs(e){return Vr(e).getComputedStyle(e)}function XU(e){return["table","td","th"].indexOf(xs(e))>=0}function Ji(e){return((Ga(e)?e.ownerDocument:e.document)||window.document).documentElement}function v0(e){return xs(e)==="html"?e:e.assignedSlot||e.parentNode||(xw(e)?e.host:null)||Ji(e)}function Nk(e){return!go(e)||Xs(e).position==="fixed"?null:e.offsetParent}function QU(e){var t=/firefox/i.test(G1()),n=/Trident/i.test(G1());if(n&&go(e)){var r=Xs(e);if(r.position==="fixed")return null}var o=v0(e);for(xw(o)&&(o=o.host);go(o)&&["html","body"].indexOf(xs(o))<0;){var s=Xs(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Wf(e){for(var t=Vr(e),n=Nk(e);n&&XU(n)&&Xs(n).position==="static";)n=Nk(n);return n&&(xs(n)==="html"||xs(n)==="body"&&Xs(n).position==="static")?t:n||QU(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kd(e,t,n){return Ta(e,Dm(t,n))}function ZU(e,t,n){var r=kd(e,t,n);return r>n?n:r}function C$(){return{top:0,right:0,bottom:0,left:0}}function S$(e){return Object.assign({},C$(),e)}function k$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var JU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,S$(typeof t!="number"?t:k$(t,Gf))};function eY(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=ps(n.placement),l=ww(a),c=[xr,wo].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=JU(o.padding,n),f=bw(s),m=l==="y"?vr:xr,g=l==="y"?bo:wo,y=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],v=Wf(s),w=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=y/2-x/2,C=d[m],k=w-f[u]-d[g],M=w/2-f[u]/2+b,T=kd(C,M,k),E=l;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-M,t)}}function tY(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)||w$(t.elements.popper,o)&&(t.elements.arrow=o))}const nY={name:"arrow",enabled:!0,phase:"main",fn:eY,effect:tY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _c(e){return e.split("-")[1]}var rY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oY(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fc(n*o)/o||0,y:Fc(r*o)/o||0}}function zk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,m=f===void 0?0:f,g=i.y,y=g===void 0?0:g,x=typeof u=="function"?u({x:m,y}):{x:m,y};m=x.x,y=x.y;var v=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),b=xr,C=vr,k=window;if(c){var M=Wf(n),T="clientHeight",E="clientWidth";if(M===Vr(n)&&(M=Ji(n),Xs(M).position!=="static"&&a==="absolute"&&(T="scrollHeight",E="scrollWidth")),M=M,o===vr||(o===xr||o===wo)&&s===sf){C=bo;var $=d&&M===k&&k.visualViewport?k.visualViewport.height:M[T];y-=$-r.height,y*=l?1:-1}if(o===xr||(o===vr||o===bo)&&s===sf){b=wo;var S=d&&M===k&&k.visualViewport?k.visualViewport.width:M[E];m-=S-r.width,m*=l?1:-1}}var D=Object.assign({position:a},c&&rY),j=u===!0?oY({x:m,y},Vr(n)):{x:m,y};if(m=j.x,y=j.y,l){var F;return Object.assign({},D,(F={},F[C]=w?"0":"",F[b]=v?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",F))}return Object.assign({},D,(t={},t[C]=w?y+"px":"",t[b]=v?m+"px":"",t.transform="",t))}function sY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:ps(t.placement),variation:_c(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,zk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zk(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 iY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sY,data:{}};var Yp={passive:!0};function aY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Vr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Yp)}),a&&l.addEventListener("resize",n.update,Yp),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Yp)}),a&&l.removeEventListener("resize",n.update,Yp)}}const lY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aY,data:{}};var cY={left:"right",right:"left",bottom:"top",top:"bottom"};function Ah(e){return e.replace(/left|right|bottom|top/g,function(t){return cY[t]})}var uY={start:"end",end:"start"};function Bk(e){return e.replace(/start|end/g,function(t){return uY[t]})}function Cw(e){var t=Vr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sw(e){return Lc(Ji(e)).left+Cw(e).scrollLeft}function dY(e,t){var n=Vr(e),r=Ji(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=b$();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Sw(e),y:l}}function fY(e){var t,n=Ji(e),r=Cw(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ta(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ta(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Sw(e),l=-r.scrollTop;return Xs(o||n).direction==="rtl"&&(a+=Ta(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function kw(e){var t=Xs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function P$(e){return["html","body","#document"].indexOf(xs(e))>=0?e.ownerDocument.body:go(e)&&kw(e)?e:P$(v0(e))}function Pd(e,t){var n;t===void 0&&(t=[]);var r=P$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Vr(r),i=o?[s].concat(s.visualViewport||[],kw(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Pd(v0(i)))}function W1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pY(e,t){var n=Lc(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 Hk(e,t,n){return t===v$?W1(dY(e,n)):Ga(t)?pY(t,n):W1(fY(Ji(e)))}function hY(e){var t=Pd(v0(e)),n=["absolute","fixed"].indexOf(Xs(e).position)>=0,r=n&&go(e)?Wf(e):e;return Ga(r)?t.filter(function(o){return Ga(o)&&w$(o,r)&&xs(o)!=="body"}):[]}function mY(e,t,n,r){var o=t==="clippingParents"?hY(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=Hk(e,c,r);return l.top=Ta(u.top,l.top),l.right=Dm(u.right,l.right),l.bottom=Dm(u.bottom,l.bottom),l.left=Ta(u.left,l.left),l},Hk(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function M$(e){var t=e.reference,n=e.element,r=e.placement,o=r?ps(r):null,s=r?_c(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case vr:l={x:i,y:t.y-n.height};break;case bo:l={x:i,y:t.y+t.height};break;case wo:l={x:t.x+t.width,y:a};break;case xr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?ww(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case jc:l[c]=l[c]-(t[u]/2-n[u]/2);break;case sf:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function af(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?jU:a,c=n.rootBoundary,u=c===void 0?v$:c,d=n.elementContext,f=d===void 0?Ou:d,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,v=S$(typeof x!="number"?x:k$(x,Gf)),w=f===Ou?FU:Ou,b=e.rects.popper,C=e.elements[g?w:f],k=mY(Ga(C)?C:C.contextElement||Ji(e.elements.popper),l,u,i),M=Lc(e.elements.reference),T=M$({reference:M,element:b,placement:o}),E=W1(Object.assign({},b,T)),$=f===Ou?E:M,S={top:k.top-$.top+v.top,bottom:$.bottom-k.bottom+v.bottom,left:k.left-$.left+v.left,right:$.right-k.right+v.right},D=e.modifiersData.offset;if(f===Ou&&D){var j=D[o];Object.keys(S).forEach(function(F){var A=[wo,bo].indexOf(F)>=0?1:-1,R=[vr,bo].indexOf(F)>=0?"y":"x";S[F]+=j[R]*A})}return S}function gY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?x$:l,u=_c(r),d=u?a?_k:_k.filter(function(g){return _c(g)===u}):Gf,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var m=f.reduce(function(g,y){return g[y]=af(e,{placement:y,boundary:o,rootBoundary:s,padding:i})[ps(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function yY(e){if(ps(e)===vw)return[];var t=Ah(e);return[Bk(e),t,Bk(t)]}function vY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,v=ps(x),w=v===x,b=l||(w||!g?[Ah(x)]:yY(x)),C=[x].concat(b).reduce(function(Y,B){return Y.concat(ps(B)===vw?gY(t,{placement:B,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:y}):B)},[]),k=t.rects.reference,M=t.rects.popper,T=new Map,E=!0,$=C[0],S=0;S=0,R=A?"width":"height",I=af(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),L=A?F?wo:xr:F?bo:vr;k[R]>M[R]&&(L=Ah(L));var O=Ah(L),_=[];if(s&&_.push(I[j]<=0),a&&_.push(I[L]<=0,I[O]<=0),_.every(function(Y){return Y})){$=D,E=!1;break}T.set(D,_)}if(E)for(var N=g?3:1,z=function(B){var W=C.find(function(te){var X=T.get(te);if(X)return X.slice(0,B).every(function(q){return q})});if(W)return $=W,"break"},U=N;U>0;U--){var J=z(U);if(J==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const xY={name:"flip",enabled:!0,phase:"main",fn:vY,requiresIfExists:["offset"],data:{_skip:!1}};function Vk(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 Gk(e){return[vr,wo,bo,xr].some(function(t){return e[t]>=0})}function bY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=af(t,{elementContext:"reference"}),a=af(t,{altBoundary:!0}),l=Vk(i,r),c=Vk(a,o,s),u=Gk(l),d=Gk(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 wY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bY};function CY(e,t,n){var r=ps(e),o=[xr,vr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[xr,wo].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function SY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=x$.reduce(function(u,d){return u[d]=CY(d,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const kY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SY};function PY(e){var t=e.state,n=e.name;t.modifiersData[n]=M$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MY={name:"popperOffsets",enabled:!0,phase:"read",fn:PY,data:{}};function IY(e){return e==="x"?"y":"x"}function EY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,g=n.tetherOffset,y=g===void 0?0:g,x=af(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=ps(t.placement),w=_c(t.placement),b=!w,C=ww(v),k=IY(C),M=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,$=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,S=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(M){if(s){var F,A=C==="y"?vr:xr,R=C==="y"?bo:wo,I=C==="y"?"height":"width",L=M[C],O=L+x[A],_=L-x[R],N=m?-E[I]/2:0,z=w===jc?T[I]:E[I],U=w===jc?-E[I]:-T[I],J=t.elements.arrow,Y=m&&J?bw(J):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C$(),W=B[A],te=B[R],X=kd(0,T[I],Y[I]),q=b?T[I]/2-N-X-W-S.mainAxis:z-X-W-S.mainAxis,G=b?-T[I]/2+N+X+te+S.mainAxis:U+X+te+S.mainAxis,ee=t.elements.arrow&&Wf(t.elements.arrow),H=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,Z=(F=D==null?void 0:D[C])!=null?F:0,ne=L+q-Z-H,oe=L+G-Z,re=kd(m?Dm(O,ne):O,L,m?Ta(_,oe):_);M[C]=re,j[C]=re-L}if(a){var ue,ie=C==="x"?vr:xr,be=C==="x"?bo:wo,Te=M[k],Fe=k==="y"?"height":"width",Xe=Te+x[ie],Pe=Te-x[be],Ie=[vr,xr].indexOf(v)!==-1,Be=(ue=D==null?void 0:D[k])!=null?ue:0,Ge=Ie?Xe:Te-T[Fe]-E[Fe]-Be+S.altAxis,Ae=Ie?Te+T[Fe]+E[Fe]-Be-S.altAxis:Pe,Oe=m&&Ie?ZU(Ge,Te,Ae):kd(m?Ge:Xe,Te,m?Ae:Pe);M[k]=Oe,j[k]=Oe-Te}t.modifiersData[r]=j}}const TY={name:"preventOverflow",enabled:!0,phase:"main",fn:EY,requiresIfExists:["offset"]};function DY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $Y(e){return e===Vr(e)||!go(e)?Cw(e):DY(e)}function RY(e){var t=e.getBoundingClientRect(),n=Fc(t.width)/e.offsetWidth||1,r=Fc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function AY(e,t,n){n===void 0&&(n=!1);var r=go(t),o=go(t)&&RY(t),s=Ji(t),i=Lc(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((xs(t)!=="body"||kw(s))&&(a=$Y(t)),go(t)?(l=Lc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Sw(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function OY(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function jY(e){var t=OY(e);return UU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function FY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function LY(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 Wk={placement:"bottom",modifiers:[],strategy:"absolute"};function Uk(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return le({root:["root"]},BY,t)},WY={},UY=h.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:m={},TransitionProps:g,ownerState:y,...x}=t,v=h.useRef(null),w=et(v,n),b=h.useRef(null),C=et(b,d),k=h.useRef(C);ot(()=>{k.current=C},[C]),h.useImperativeHandle(d,()=>b.current,[]);const M=HY(c,s),[T,E]=h.useState(M),[$,S]=h.useState(U1(r));h.useEffect(()=>{b.current&&b.current.forceUpdate()}),h.useEffect(()=>{r&&S(U1(r))},[r]),ot(()=>{if(!$||!l)return;const R=O=>{E(O.placement)};let I=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{R(O)}}];a!=null&&(I=I.concat(a)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const L=zY($,v.current,{placement:M,...u,modifiers:I});return k.current(L),()=>{L.destroy(),k.current(null)}},[$,i,a,l,u,M]);const D={placement:T};g!==null&&(D.TransitionProps=g);const j=GY(t),F=m.root??"div",A=Je({elementType:F,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:j.root});return p.jsx(F,{...A,children:typeof o=="function"?o(D):o})}),YY=h.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=WY,popperRef:m,style:g,transition:y=!1,slotProps:x={},slots:v={},...w}=t,[b,C]=h.useState(!0),k=()=>{C(!1)},M=()=>{C(!0)};if(!l&&!u&&(!y||b))return null;let T;if(s)T=s;else if(r){const S=U1(r);T=S&&VY(S)?_t(S).body:_t(null).body}const E=!u&&l&&(!y||b)?"none":void 0,$=y?{in:u,onEnter:k,onExited:M}:void 0;return p.jsx(UD,{disablePortal:a,container:T,children:p.jsx(UY,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:y?!b:u,placement:d,popperOptions:f,popperRef:m,slotProps:x,slots:v,...w,style:{position:"fixed",top:0,left:0,display:E,...g},TransitionProps:$,children:o})})}),KY=Q(YY,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oi=h.forwardRef(function(t,n){const r=Nt(),o=Le({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:m,placement:g,popperOptions:y,popperRef:x,transition:v,slots:w,slotProps:b,...C}=o,k=(w==null?void 0:w.root)??(a==null?void 0:a.Root),M={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:m,placement:g,popperOptions:y,popperRef:x,transition:v,...C};return p.jsx(KY,{as:i,direction:r?"rtl":"ltr",slots:{root:k},slotProps:b??l,...M,ref:n})});function qY(e){return ve("MuiListSubheader",e)}me("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const XY=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${ae(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return le(i,qY,t)},QY=Q("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})($e(({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}}]}))),Y1=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:s,component:i,disableGutters:a,disableSticky:l,inset:c},f=XY(d);return p.jsx(QY,{as:i,className:se(f.root,o),ref:n,ownerState:d,...u})});Y1&&(Y1.muiSkipListHighlight=!0);function ZY(e){return ve("MuiAutocomplete",e)}const at=me("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 Yk,Kk;const JY=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ae(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 le(d,ZY,t)},eK=Q("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:a}=n;return[{[`& .${at.tag}`]:t.tag},{[`& .${at.tag}`]:t[`tagSize${ae(a)}`]},{[`& .${at.inputRoot}`]:t.inputRoot},{[`& .${at.input}`]:t.input},{[`& .${at.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${at.focused} .${at.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${at.clearIndicator}`]:{visibility:"visible"}},[`& .${at.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${at.inputRoot}`]:{[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:30},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:56},[`& .${at.input}`]:{width:0,minWidth:30}},[`& .${Si.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Si.root}.${Tr.sizeSmall}`]:{[`& .${Si.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mr.root}`]:{padding:9,[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:39},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:65},[`& .${at.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${at.endAdornment}`]:{right:9}},[`& .${Mr.root}.${Tr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${at.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Dr.root}`]:{paddingTop:19,paddingLeft:8,[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:39},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:65},[`& .${Dr.input}`]:{padding:"7px 4px"},[`& .${at.endAdornment}`]:{right:9}},[`& .${Dr.root}.${Tr.sizeSmall}`]:{paddingBottom:1,[`& .${Dr.input}`]:{padding:"2.5px 4px"}},[`& .${Tr.hiddenLabel}`]:{paddingTop:8},[`& .${Dr.root}.${Tr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${at.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Dr.root}.${Tr.hiddenLabel}.${Tr.sizeSmall}`]:{[`& .${at.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${at.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${at.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${at.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${at.inputRoot}`]:{flexWrap:"wrap"}}}]}),tK=Q("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),nK=Q(gn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),rK=Q(gn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),oK=Q(oi,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${at.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),sK=Q(Io,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})($e(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),iK=Q("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),aK=Q("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),lK=Q("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})($e(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${at.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"},[`&.${at.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"},[`&.${at.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})`:xe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${at.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),cK=Q(Y1,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})($e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),uK=Q("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${at.option}`]:{paddingLeft:24}}),I$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=Yk||(Yk=p.jsx(DU,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:m="Clear",closeText:g="Close",componentsProps:y,defaultValue:x=r.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:w=!1,disabled:b=!1,disabledItemsFocusable:C=!1,disableListWrap:k=!1,disablePortal:M=!1,filterOptions:T,filterSelectedOptions:E=!1,forcePopupIcon:$="auto",freeSolo:S=!1,fullWidth:D=!1,getLimitTagsText:j=ht=>`+${ht}`,getOptionDisabled:F,getOptionKey:A,getOptionLabel:R,isOptionEqualToValue:I,groupBy:L,handleHomeEndKeys:O=!r.freeSolo,id:_,includeInputInList:N=!1,inputValue:z,limitTags:U=-1,ListboxComponent:J,ListboxProps:Y,loading:B=!1,loadingText:W="Loading…",multiple:te=!1,noOptionsText:X="No options",onChange:q,onClose:G,onHighlightChange:ee,onInputChange:H,onOpen:Z,open:ne,openOnFocus:oe=!1,openText:re="Open",options:ue,PaperComponent:ie,PopperComponent:be,popupIcon:Te=Kk||(Kk=p.jsx(o$,{})),readOnly:Fe=!1,renderGroup:Xe,renderInput:Pe,renderOption:Ie,renderTags:Be,selectOnFocus:Ge=!r.freeSolo,size:Ae="medium",slots:Oe={},slotProps:He={},value:Ee,...Me}=r,{getRootProps:Ve,getInputProps:bt,getInputLabelProps:ge,getPopupIndicatorProps:De,getClearProps:qe,getTagProps:ft,getListboxProps:Yn,getOptionProps:it,value:At,dirty:on,expanded:Zt,id:or,popupOpen:Ln,focused:kr,focusedTag:qo,anchorEl:tt,setAnchorEl:Kn,inputValue:lp,groupedOptions:ll}=OU({...r,componentName:"Autocomplete"}),vu=!v&&!b&&on&&!Fe,xu=(!S||$===!0)&&$!==!1,{onMouseDown:sy}=bt(),{ref:iy,...cp}=Yn(),bu=R||(ht=>ht.label??ht),_n={...r,disablePortal:M,expanded:Zt,focused:kr,fullWidth:D,getOptionLabel:bu,hasClearIcon:vu,hasPopupIcon:xu,inputFocused:qo===-1,popupOpen:Ln,size:Ae},cn=JY(_n),ks={slots:{paper:ie,popper:be,...Oe},slotProps:{chip:l,listbox:Y,...y,...He}},[pe,fe]=qt("listbox",{elementType:lK,externalForwardedProps:ks,ownerState:_n,className:cn.listbox,additionalProps:cp,ref:iy}),[Ne,st]=qt("paper",{elementType:Io,externalForwardedProps:ks,ownerState:_n,className:cn.paper}),[ct,Jt]=qt("popper",{elementType:oi,externalForwardedProps:ks,ownerState:_n,className:cn.popper,additionalProps:{disablePortal:M,style:{width:tt?tt.clientWidth:null},role:"presentation",anchorEl:tt,open:Ln}});let kt;if(te&&At.length>0){const ht=Xo=>({className:cn.tag,disabled:b,...ft(Xo)});Be?kt=Be(At,ht,_n):kt=At.map((Xo,ci)=>{const{key:wu,...DA}=ht({index:ci});return p.jsx(as,{label:bu(Xo),size:Ae,...DA,...ks.slotProps.chip},wu)})}if(U>-1&&Array.isArray(kt)){const ht=kt.length-U;!kr&&ht>0&&(kt=kt.splice(0,U),kt.push(p.jsx("span",{className:cn.tag,children:j(ht)},kt.length)))}const up=Xe||(ht=>p.jsxs("li",{children:[p.jsx(cK,{className:cn.groupLabel,ownerState:_n,component:"div",children:ht.group}),p.jsx(uK,{className:cn.groupUl,ownerState:_n,children:ht.children})]},ht.key)),TA=Ie||((ht,Xo)=>{const{key:ci,...wu}=ht;return p.jsx("li",{...wu,children:bu(Xo)},ci)}),YC=(ht,Xo)=>{const ci=it({option:ht,index:Xo});return TA({...ci,className:cn.option},ht,{selected:ci["aria-selected"],index:Xo,inputValue:lp},_n)},dp=ks.slotProps.clearIndicator,fp=ks.slotProps.popupIndicator,ay=ht=>p.jsx(oK,{as:ct,...Jt,children:p.jsx(sK,{as:Ne,...st,children:ht})});let pp=null;return ll.length>0?pp=ay(p.jsx(pe,{as:J,...fe,children:ll.map((ht,Xo)=>L?up({key:ht.key,group:ht.group,children:ht.options.map((ci,wu)=>YC(ci,ht.index+wu))}):YC(ht,Xo))})):B&&ll.length===0?pp=ay(p.jsx(iK,{className:cn.loading,ownerState:_n,children:W})):ll.length===0&&!S&&!B&&(pp=ay(p.jsx(aK,{className:cn.noOptions,ownerState:_n,role:"presentation",onMouseDown:ht=>{ht.preventDefault()},children:X}))),p.jsxs(h.Fragment,{children:[p.jsx(eK,{ref:n,className:se(cn.root,c),ownerState:_n,...Ve(Me),children:Pe({id:or,disabled:b,fullWidth:!0,size:Ae==="small"?"small":void 0,InputLabelProps:ge(),InputProps:{ref:Kn,className:cn.inputRoot,startAdornment:kt,onMouseDown:ht=>{ht.target===ht.currentTarget&&sy(ht)},...(vu||xu)&&{endAdornment:p.jsxs(tK,{className:cn.endAdornment,ownerState:_n,children:[vu?p.jsx(nK,{...qe(),"aria-label":m,title:m,ownerState:_n,...dp,className:se(cn.clearIndicator,dp==null?void 0:dp.className),children:u}):null,xu?p.jsx(rK,{...De(),disabled:b,"aria-label":Ln?g:re,title:Ln?g:re,ownerState:_n,...fp,className:se(cn.popupIndicator,fp==null?void 0:fp.className),children:Te}):null]})}},inputProps:{className:cn.input,disabled:b,readOnly:Fe,...bt()}})}),tt?pp:null]})});function dK(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=qb({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:a,max:l=r}=i?s:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:i,max:l,displayValue:c}}function fK(e){return ve("MuiBadge",e)}const fi=me("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"]),Zy=10,Jy=4,pK=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,a={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${ae(n.vertical)}${ae(n.horizontal)}`,`anchorOrigin${ae(n.vertical)}${ae(n.horizontal)}${ae(o)}`,`overlap${ae(o)}`,t!=="default"&&`color${ae(t)}`]};return le(a,fK,i)},hK=Q("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),mK=Q("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ae(n.anchorOrigin.vertical)}${ae(n.anchorOrigin.horizontal)}${ae(n.overlap)}`],n.color!=="default"&&t[`color${ae(n.color)}`],n.invisible&&t.invisible]}})($e(({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:Zy*2,lineHeight:1,padding:"0 6px",height:Zy*2,borderRadius:Zy,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Lt(["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:Jy,height:Jy*2,minWidth:Jy*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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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%",[`&.${fi.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 qk(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const gK=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:i,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:m=!1,max:g=99,badgeContent:y,slots:x,slotProps:v,showZero:w=!1,variant:b="standard",...C}=r,{badgeContent:k,invisible:M,max:T,displayValue:E}=dK({max:g,invisible:m,badgeContent:y,showZero:w}),$=qb({anchorOrigin:qk(o),color:f,overlap:d,variant:b,badgeContent:y}),S=M||k==null&&b!=="dot",{color:D=f,overlap:j=d,anchorOrigin:F,variant:A=b}=S?$:r,R=qk(F),I=A!=="dot"?E:void 0,L={...r,badgeContent:k,invisible:S,max:T,displayValue:I,showZero:w,anchorOrigin:R,color:D,overlap:j,variant:A},O=pK(L),_=(x==null?void 0:x.root)??l.Root??hK,N=(x==null?void 0:x.badge)??l.Badge??mK,z=(v==null?void 0:v.root)??c.root,U=(v==null?void 0:v.badge)??c.badge,J=Je({elementType:_,externalSlotProps:z,externalForwardedProps:C,additionalProps:{ref:n,as:a},ownerState:L,className:se(z==null?void 0:z.className,O.root,s)}),Y=Je({elementType:N,externalSlotProps:U,ownerState:L,className:se(O.badge,U==null?void 0:U.className)});return p.jsxs(_,{...J,children:[u,p.jsx(N,{...Y,children:I})]})});function yK(e){return ve("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pi=44,K1=Ss` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,q1=Ss` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`,vK=typeof K1!="string"?Xi` - animation: ${K1} 1.4s linear infinite; - `:null,xK=typeof q1!="string"?Xi` - animation: ${q1} 1.4s ease-in-out infinite; - `:null,bK=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ae(r)}`],svg:["svg"],circle:["circle",`circle${ae(n)}`,o&&"circleDisableShrink"]};return le(s,yK,t)},wK=Q("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ae(n.color)}`]]}})($e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:vK||{animation:`${K1} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),CK=Q("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),SK=Q("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ae(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})($e(({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:xK||{animation:`${q1} 1.4s ease-in-out infinite`}}]}))),kK=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,m={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},g=bK(m),y={},x={},v={};if(d==="determinate"){const w=2*Math.PI*((pi-c)/2);y.strokeDasharray=w.toFixed(3),v["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return p.jsx(wK,{className:se(g.root,o),style:{width:a,height:a,...x,...l},ownerState:m,ref:n,role:"progressbar",...v,...f,children:p.jsx(CK,{className:g.svg,ownerState:m,viewBox:`${pi/2} ${pi/2} ${pi} ${pi}`,children:p.jsx(SK,{className:g.circle,style:y,ownerState:m,cx:pi,cy:pi,r:(pi-c)/2,fill:"none",strokeWidth:c})})})});function Xk(e){return e.substring(2).toLowerCase()}function PK(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=et(Qi(t),a),d=ye(g=>{const y=c.current;c.current=!1;const x=_t(a.current);if(!l.current||!a.current||"clientX"in g&&PK(g,x))return;if(i.current){i.current=!1;return}let v;g.composedPath?v=g.composedPath().includes(a.current):v=!x.documentElement.contains(g.target)||a.current.contains(g.target),!v&&(n||!y)&&o(g)}),f=g=>y=>{c.current=!0;const x=t.props[g];x&&x(y)},m={ref:u};return s!==!1&&(m[s]=f(s)),h.useEffect(()=>{if(s!==!1){const g=Xk(s),y=_t(a.current),x=()=>{i.current=!0};return y.addEventListener(g,d),y.addEventListener("touchmove",x),()=>{y.removeEventListener(g,d),y.removeEventListener("touchmove",x)}}},[d,s]),r!==!1&&(m[r]=f(r)),h.useEffect(()=>{if(r!==!1){const g=Xk(r),y=_t(a.current);return y.addEventListener(g,d),()=>{y.removeEventListener(g,d)}}},[d,r]),p.jsx(h.Fragment,{children:h.cloneElement(t,m)})}const T$=eD({themeId:mo});function MK(e){return ve("MuiLinearProgress",e)}me("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const X1=4,Q1=Ss` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`,IK=typeof Q1!="string"?Xi` - animation: ${Q1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,Z1=Ss` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`,EK=typeof Z1!="string"?Xi` - animation: ${Z1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,J1=Ss` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`,TK=typeof J1!="string"?Xi` - animation: ${J1} 3s infinite linear; - `:null,DK=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ae(r)}`,n],dashed:["dashed",`dashedColor${ae(r)}`],bar1:["bar",`barColor${ae(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ae(r)}`,n==="buffer"&&`color${ae(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return le(o,MK,t)},Pw=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?tl(e.palette[t].main,.62):el(e.palette[t].main,.5),$K=Q("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ae(n.color)}`],t[n.variant]]}})($e(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{backgroundColor:Pw(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)"}}]}))),RK=Q("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ae(n.color)}`]]}})($e(({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(Lt()).map(([t])=>{const n=Pw(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),TK||{animation:`${J1} 3s infinite linear`}),AK=Q("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})($e(({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(Lt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${X1}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${X1}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:IK||{animation:`${Q1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),OK=Q("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})($e(({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(Lt()).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(Lt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Pw(e,t),transition:`transform .${X1}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:EK||{animation:`${Z1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jK=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:s,variant:l},d=DK(u),f=Nt(),m={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let y=i-100;f&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&a!==void 0){let y=(a||0)-100;f&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return p.jsxs($K,{className:se(d.root,o),ownerState:u,role:"progressbar",...m,ref:n,...c,children:[l==="buffer"?p.jsx(RK,{className:d.dashed,ownerState:u}):null,p.jsx(AK,{className:d.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:p.jsx(OK,{className:d.bar2,ownerState:u,style:g.bar2})]})});function FK(e){return ve("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const LK=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function _K(e){return ve("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const NK=e=>{const{disableGutters:t,classes:n}=e;return le({root:["root",t&&"disableGutters"]},_K,n)},zK=Q("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}}]}),D$=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=h.useContext(Ls),a={...r,disableGutters:i.disableGutters},l=NK(a);return p.jsx(zK,{className:se(l.root,o),ownerState:a,ref:n,...s})});D$.muiName="ListItemSecondaryAction";const BK=(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]},HK=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return le({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},FK,n)},VK=Q("div",{name:"MuiListItem",slot:"Root",overridesResolver:BK})($e(({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:{[`& > .${LK.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}}]}))),GK=Q("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),WK=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:m=!1,disableGutters:g=!1,disablePadding:y=!1,divider:x=!1,secondaryAction:v,slotProps:w={},slots:b={},...C}=r,k=h.useContext(Ls),M=h.useMemo(()=>({dense:m||k.dense||!1,alignItems:o,disableGutters:g}),[o,k.dense,m,g]),T=h.useRef(null),E=h.Children.toArray(s),$=E.length&&xd(E[E.length-1],["ListItemSecondaryAction"]),S={...r,alignItems:o,dense:M.dense,disableGutters:g,disablePadding:y,divider:x,hasSecondaryAction:$},D=HK(S),j=et(T,n),F=b.root||l.Root||VK,A=w.root||c.root||{},R={className:se(D.root,A.className,i),...C};let I=a||"li";return $?(I=!R.component&&!a?"div":I,u==="li"&&(I==="li"?I="div":R.component==="li"&&(R.component="div")),p.jsx(Ls.Provider,{value:M,children:p.jsxs(GK,{as:u,className:se(D.container,d),ref:j,ownerState:S,...f,children:[p.jsx(F,{...A,...!Ac(F)&&{as:I,ownerState:{...S,...A.ownerState}},...R,children:E}),E.pop()]})})):p.jsx(Ls.Provider,{value:M,children:p.jsxs(F,{...A,as:I,ref:j,...!Ac(F)&&{ownerState:{...S,...A.ownerState}},...R,children:[E,v&&p.jsx(D$,{children:v})]})})});function $$(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,s]=h.useState(!1);return ot(()=>{n||s(!0)},[n]),h.useEffect(()=>{n&&s(!0)},[n]),p.jsx(h.Fragment,{children:o?t:r})}function UK(e){return ve("MuiSkeleton",e)}me("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const YK=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},UK,t)},ex=Ss` - 0% { - opacity: 1; - } - - 50% { - opacity: 0.4; - } - - 100% { - opacity: 1; - } -`,tx=Ss` - 0% { - transform: translateX(-100%); - } - - 50% { - /* +0.5s of delay between each loop */ - transform: translateX(100%); - } - - 100% { - transform: translateX(100%); - } -`,KK=typeof ex!="string"?Xi` - animation: ${ex} 2s ease-in-out 0.5s infinite; - `:null,qK=typeof tx!="string"?Xi` - &::after { - animation: ${tx} 2s linear 0.5s infinite; - } - `:null,XK=Q("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]}})($e(({theme:e})=>{const t=Mz(e.shape.borderRadius)||"px",n=Iz(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:xe(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:KK||{animation:`${ex} 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:qK||{"&::after":{animation:`${tx} 2s linear 0.5s infinite`}}}]}})),QK=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:a,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:i,variant:c,hasChildren:!!d.children},m=YK(f);return p.jsx(XK,{as:i,ref:n,className:se(m.root,s),ownerState:f,...d,style:{width:u,height:a,...l}})});function ZK(e){return ve("MuiTooltip",e)}const nn=me("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function JK(e){return Math.round(e*1e5)/1e5}const eq=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ae(s.split("-")[0])}`],arrow:["arrow"]};return le(i,ZK,t)},tq=Q(oi,{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]}})($e(({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"] .${nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${nn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${nn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${nn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${nn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${nn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),nq=Q("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${ae(n.placement.split("-")[0])}`]]}})($e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xe(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,[`.${nn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${nn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${nn.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:`${JK(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${nn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${nn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),rq=Q("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})($e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kp=!1;const Qk=new n0;let ju={x:0,y:0};function qp(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const oq=h.forwardRef(function(t,n){var Ln,kr,qo;const r=Le({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:i,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:x=700,followCursor:v=!1,id:w,leaveDelay:b=0,leaveTouchDelay:C=1500,onClose:k,onOpen:M,open:T,placement:E="bottom",PopperComponent:$,PopperProps:S={},slotProps:D={},slots:j={},title:F,TransitionComponent:A=Ha,TransitionProps:R,...I}=r,L=h.isValidElement(s)?s:p.jsx("span",{children:s}),O=Mn(),_=Nt(),[N,z]=h.useState(),[U,J]=h.useState(null),Y=h.useRef(!1),B=f||v,W=jr(),te=jr(),X=jr(),q=jr(),[G,ee]=On({controlled:T,default:!1,name:"Tooltip",state:"open"});let H=G;const Z=pt(w),ne=h.useRef(),oe=ye(()=>{ne.current!==void 0&&(document.body.style.WebkitUserSelect=ne.current,ne.current=void 0),q.clear()});h.useEffect(()=>oe,[oe]);const re=tt=>{Qk.clear(),Kp=!0,ee(!0),M&&!H&&M(tt)},ue=ye(tt=>{Qk.start(800+b,()=>{Kp=!1}),ee(!1),k&&H&&k(tt),W.start(O.transitions.duration.shortest,()=>{Y.current=!1})}),ie=tt=>{Y.current&&tt.type!=="touchstart"||(N&&N.removeAttribute("title"),te.clear(),X.clear(),g||Kp&&y?te.start(Kp?y:g,()=>{re(tt)}):re(tt))},be=tt=>{te.clear(),X.start(b,()=>{ue(tt)})},[,Te]=h.useState(!1),Fe=tt=>{$c(tt.target)||(Te(!1),be(tt))},Xe=tt=>{N||z(tt.currentTarget),$c(tt.target)&&(Te(!0),ie(tt))},Pe=tt=>{Y.current=!0;const Kn=L.props;Kn.onTouchStart&&Kn.onTouchStart(tt)},Ie=tt=>{Pe(tt),X.clear(),W.clear(),oe(),ne.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",q.start(x,()=>{document.body.style.WebkitUserSelect=ne.current,ie(tt)})},Be=tt=>{L.props.onTouchEnd&&L.props.onTouchEnd(tt),oe(),X.start(C,()=>{ue(tt)})};h.useEffect(()=>{if(!H)return;function tt(Kn){Kn.key==="Escape"&&ue(Kn)}return document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}},[ue,H]);const Ge=et(Qi(L),z,n);!F&&F!==0&&(H=!1);const Ae=h.useRef(),Oe=tt=>{const Kn=L.props;Kn.onMouseMove&&Kn.onMouseMove(tt),ju={x:tt.clientX,y:tt.clientY},Ae.current&&Ae.current.update()},He={},Ee=typeof F=="string";c?(He.title=!H&&Ee&&!d?F:null,He["aria-describedby"]=H?Z:null):(He["aria-label"]=Ee?F:null,He["aria-labelledby"]=H&&!Ee?Z:null);const Me={...He,...I,...L.props,className:se(I.className,L.props.className),onTouchStart:Pe,ref:Ge,...v?{onMouseMove:Oe}:{}},Ve={};m||(Me.onTouchStart=Ie,Me.onTouchEnd=Be),d||(Me.onMouseOver=qp(ie,Me.onMouseOver),Me.onMouseLeave=qp(be,Me.onMouseLeave),B||(Ve.onMouseOver=ie,Ve.onMouseLeave=be)),u||(Me.onFocus=qp(Xe,Me.onFocus),Me.onBlur=qp(Fe,Me.onBlur),B||(Ve.onFocus=Xe,Ve.onBlur=Fe));const bt=h.useMemo(()=>{var Kn;let tt=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return(Kn=S.popperOptions)!=null&&Kn.modifiers&&(tt=tt.concat(S.popperOptions.modifiers)),{...S.popperOptions,modifiers:tt}},[U,S]),ge={...r,isRtl:_,arrow:o,disableInteractive:B,placement:E,PopperComponentProp:$,touch:Y.current},De=eq(ge),qe=j.popper??a.Popper??tq,ft=j.transition??a.Transition??A??Ha,Yn=j.tooltip??a.Tooltip??nq,it=j.arrow??a.Arrow??rq,At=Yl(qe,{...S,...D.popper??l.popper,className:se(De.popper,S==null?void 0:S.className,(Ln=D.popper??l.popper)==null?void 0:Ln.className)},ge),on=Yl(ft,{...R,...D.transition??l.transition},ge),Zt=Yl(Yn,{...D.tooltip??l.tooltip,className:se(De.tooltip,(kr=D.tooltip??l.tooltip)==null?void 0:kr.className)},ge),or=Yl(it,{...D.arrow??l.arrow,className:se(De.arrow,(qo=D.arrow??l.arrow)==null?void 0:qo.className)},ge);return p.jsxs(h.Fragment,{children:[h.cloneElement(L,Me),p.jsx(qe,{as:$??oi,placement:E,anchorEl:v?{getBoundingClientRect:()=>({top:ju.y,left:ju.x,right:ju.x,bottom:ju.y,width:0,height:0})}:N,popperRef:Ae,open:N?H:!1,id:Z,transition:!0,...Ve,...At,popperOptions:bt,children:({TransitionProps:tt})=>p.jsx(ft,{timeout:O.transitions.duration.shorter,...tt,...on,children:p.jsxs(Yn,{...Zt,children:[F,o?p.jsx(it,{...or,ref:J}):null]})})})]})});function sq(e){return ve("MuiSwitch",e)}const Xn=me("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),iq=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,a={root:["root",n&&`edge${ae(n)}`,`size${ae(r)}`],switchBase:["switchBase",`color${ae(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=le(a,sq,t);return{...t,...l}},aq=Q("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(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,[`& .${Xn.thumb}`]:{width:16,height:16},[`& .${Xn.switchBase}`]:{padding:4,[`&.${Xn.checked}`]:{transform:"translateX(16px)"}}}}]}),lq=Q(a$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xn.input}`]:t.input},n.color!=="default"&&t[`color${ae(n.color)}`]]}})($e(({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}),[`&.${Xn.checked}`]:{transform:"translateX(20px)"},[`&.${Xn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xn.checked} + .${Xn.track}`]:{opacity:.5},[`&.${Xn.disabled} + .${Xn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xn.input}`]:{left:"-100%",width:"300%"}})),$e(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Lt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Xn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?tl(e.palette[t].main,.62):el(e.palette[t].main,.55)}`}},[`&.${Xn.checked} + .${Xn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),cq=Q("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})($e(({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}`}))),uq=Q("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})($e(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),vi=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:a="medium",sx:l,...c}=r,u={...r,color:s,edge:i,size:a},d=iq(u),f=p.jsx(uq,{className:d.thumb,ownerState:u});return p.jsxs(aq,{className:se(d.root,o),sx:l,ownerState:u,children:[p.jsx(lq,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),p.jsx(cq,{className:d.track,ownerState:u})]})}),dq=h.createContext(),fq=h.createContext();function pq(e){return ve("MuiTableCell",e)}const hq=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),mq=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,a={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${ae(r)}`,o!=="normal"&&`padding${ae(o)}`,`size${ae(s)}`]};return le(a,pq,t)},gq=Q("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.padding!=="normal"&&t[`padding${ae(n.padding)}`],n.align!=="inherit"&&t[`align${ae(n.align)}`],n.stickyHeader&&t.stickyHeader]}})($e(({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"?tl(xe(e.palette.divider,1),.88):el(xe(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",[`&.${hq.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}}]}))),nx=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:a,scope:l,size:c,sortDirection:u,variant:d,...f}=r,m=h.useContext(dq),g=h.useContext(fq),y=g&&g.variant==="head";let x;i?x=i:x=y?"th":"td";let v=l;x==="td"?v=void 0:!v&&y&&(v="col");const w=d||g&&g.variant,b={...r,align:o,component:x,padding:a||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&m&&m.stickyHeader,variant:w},C=mq(b);let k=null;return u&&(k=u==="asc"?"ascending":"descending"),p.jsx(gq,{as:x,ref:n,className:se(C.root,s),"aria-sort":k,scope:v,ownerState:b,...f})}),yq=Re(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vq=Re(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),xq=h.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:s=!1,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:m={},slotProps:g={},...y}=t,x=Nt(),v=z=>{l(z,0)},w=z=>{l(z,c-1)},b=z=>{l(z,c+1)},C=z=>{l(z,Math.max(0,Math.ceil(o/u)-1))},k=m.firstButton??gn,M=m.lastButton??gn,T=m.nextButton??gn,E=m.previousButton??gn,$=m.firstButtonIcon??h$,S=m.lastButtonIcon??m$,D=m.nextButtonIcon??vq,j=m.previousButtonIcon??yq,F=x?M:k,A=x?T:E,R=x?E:T,I=x?k:M,L=x?g.lastButton:g.firstButton,O=x?g.nextButton:g.previousButton,_=x?g.previousButton:g.nextButton,N=x?g.firstButton:g.lastButton;return p.jsxs("div",{ref:n,...y,children:[d&&p.jsx(F,{onClick:v,disabled:s||c===0,"aria-label":i("first",c),title:i("first",c),...L,children:x?p.jsx(S,{...g.lastButtonIcon}):p.jsx($,{...g.firstButtonIcon})}),p.jsx(A,{onClick:w,disabled:s||c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c),...O??r,children:x?p.jsx(D,{...g.nextButtonIcon}):p.jsx(j,{...g.previousButtonIcon})}),p.jsx(R,{onClick:b,disabled:s||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":i("next",c),title:i("next",c),..._??a,children:x?p.jsx(j,{...g.previousButtonIcon}):p.jsx(D,{...g.nextButtonIcon})}),f&&p.jsx(I,{onClick:C,disabled:s||c>=Math.ceil(o/u)-1,"aria-label":i("last",c),title:i("last",c),...N,children:x?p.jsx($,{...g.firstButtonIcon}):p.jsx(S,{...g.lastButtonIcon})})]})});function bq(e){return ve("MuiTablePagination",e)}const Da=me("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Zk;const wq=Q(nx,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})($e(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),Cq=Q(sw,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Da.actions}`]:t.actions,...t.toolbar})})($e(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Da.actions}`]:{flexShrink:0,marginLeft:20}}))),Sq=Q("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),kq=Q("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})($e(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Pq=Q(Vf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Da.selectIcon}`]:t.selectIcon,[`& .${Da.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Da.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Mq=Q(Bt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Iq=Q("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})($e(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Eq({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Tq(e){return`Go to ${e} page`}const Dq=e=>{const{classes:t}=e;return le({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},bq,t)},$q=h.forwardRef(function(t,n){const r=Le({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=xq,backIconButtonProps:s,className:i,colSpan:a,component:l=nx,count:c,disabled:u=!1,getItemAriaLabel:d=Tq,labelDisplayedRows:f=Eq,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:y,onRowsPerPageChange:x,page:v,rowsPerPage:w,rowsPerPageOptions:b=[10,25,50,100],SelectProps:C={},showFirstButton:k=!1,showLastButton:M=!1,slotProps:T={},slots:E={},...$}=r,S=r,D=Dq(S),j=(T==null?void 0:T.select)??C,F=j.native?"option":Mq;let A;(l===nx||l==="td")&&(A=a||1e3);const R=pt(j.id),I=pt(j.labelId),L=()=>c===-1?(v+1)*w:w===-1?c:Math.min(c,(v+1)*w);return p.jsx(wq,{colSpan:A,ref:n,as:l,ownerState:S,className:se(D.root,i),...$,children:p.jsxs(Cq,{className:D.toolbar,children:[p.jsx(Sq,{className:D.spacer}),b.length>1&&p.jsx(kq,{className:D.selectLabel,id:I,children:m}),b.length>1&&p.jsx(Pq,{variant:"standard",...!j.variant&&{input:Zk||(Zk=p.jsx(au,{}))},value:w,onChange:x,id:R,labelId:I,...j,classes:{...j.classes,root:se(D.input,D.selectRoot,(j.classes||{}).root),select:se(D.select,(j.classes||{}).select),icon:se(D.selectIcon,(j.classes||{}).icon)},disabled:u,children:b.map(O=>h.createElement(F,{...!Ac(F)&&{ownerState:S},className:D.menuItem,key:O.label?O.label:O,value:O.value?O.value:O},O.label?O.label:O))}),p.jsx(Iq,{className:D.displayedRows,children:f({from:c===0?0:v*w+1,to:L(),count:c===-1?-1:c,page:v})}),p.jsx(o,{className:D.actions,backIconButtonProps:s,count:c,nextIconButtonProps:g,onPageChange:y,page:v,rowsPerPage:w,showFirstButton:k,showLastButton:M,slotProps:T.actions,slots:E.actions,getItemAriaLabel:d,disabled:u})]})})}),Rq=["localeText"],rx=h.createContext(null),rl=function(t){const{localeText:n}=t,r=ce(t,Rq),{utils:o,localeText:s}=h.useContext(rx)??{utils:void 0,localeText:void 0},i=yt({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=i,m=h.useMemo(()=>P({},f,s,n),[f,s,n]),g=h.useMemo(()=>{if(!l)return o||null;const v=new l({locale:d,formats:c,instance:u});if(!v.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 v},[l,d,c,u,o]),y=h.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),x=h.useMemo(()=>({utils:g,defaultDates:y,localeText:m}),[y,g,m]);return p.jsx(rx.Provider,{value:x,children:a})},Aq=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:P({},e)}}}}),R$=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return s=>{const i=s!==null&&t.isValid(s)?t.format(s,n):null;return(o??r)(s,t,i)}},A$={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"},Oq=A$;Aq(A$);const ol=()=>{const e=h.useContext(rx);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=h.useMemo(()=>P({},Oq,e.localeText),[e.localeText]);return h.useMemo(()=>P({},e,{localeText:t}),[e,t])},Gt=()=>ol().utils,Uf=()=>ol().defaultDates,x0=e=>{const t=Gt(),n=h.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},si=()=>ol().localeText,jq=Re(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Fq=Re(p.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Lq=Re(p.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),_q=Re(p.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");Re(p.jsxs(h.Fragment,{children:[p.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"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Re(p.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");Re(p.jsxs(h.Fragment,{children:[p.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"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const Nq=Re(p.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 zq(e){return ve("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Bq=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Hq=["ownerState"],Vq=["ownerState"],Gq=Q("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Wq=Q("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Jk=Q(gn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Uq=e=>{const{classes:t}=e;return le({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},zq,t)},Yq=h.forwardRef(function(t,n){const r=Nt(),o=yt({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:m,isPreviousHidden:g,onGoToPrevious:y,previousLabel:x,labelId:v}=o,w=ce(o,Bq),b=o,C=Uq(b),k={isDisabled:c,isHidden:u,goTo:d,label:f},M={isDisabled:m,isHidden:g,goTo:y,label:x},T=(a==null?void 0:a.previousIconButton)??Jk,E=Je({elementType:T,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:P({},b,{hidden:M.isHidden}),className:se(C.button,C.previousIconButton)}),$=(a==null?void 0:a.nextIconButton)??Jk,S=Je({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"start",onClick:k.goTo},ownerState:P({},b,{hidden:k.isHidden}),className:se(C.button,C.nextIconButton)}),D=(a==null?void 0:a.leftArrowIcon)??Fq,j=Je({elementType:D,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:C.leftArrowIcon}),F=ce(j,Hq),A=(a==null?void 0:a.rightArrowIcon)??Lq,R=Je({elementType:A,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:C.rightArrowIcon}),I=ce(R,Vq);return p.jsxs(Gq,P({ref:n,className:se(C.root,i),ownerState:b},w,{children:[p.jsx(T,P({},E,{children:r?p.jsx(A,P({},I)):p.jsx(D,P({},F))})),s?p.jsx(we,{variant:"subtitle1",component:"span",id:v,children:s}):p.jsx(Wq,{className:C.spacer,ownerState:b}),p.jsx($,P({},S,{children:r?p.jsx(D,P({},F)):p.jsx(A,P({},I))}))]}))}),Fu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Kq=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},qq=["hours","minutes","seconds"],Xq=e=>qq.includes(e),eP=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Qq=(e,t)=>(n,r)=>e?t.isAfter(n,r):eP(n,t)>eP(r,t);function O$({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=h.useRef(n),c=h.useRef(o),u=h.useRef(o.includes(n)?n:o[0]),[d,f]=On({name:"useViews",state:"view",controlled:r,default:u.current}),m=h.useRef(s?d:null),[g,y]=On({name:"useViews",state:"focusedView",controlled:i,default:m.current});h.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(T=>!o.includes(T)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const x=o.indexOf(d),v=o[x-1]??null,w=o[x+1]??null,b=ye((T,E)=>{y(E?T:$=>T===$?null:$),a==null||a(T,E)}),C=ye(T=>{b(T,!0),T!==d&&(f(T),t&&t(T))}),k=ye(()=>{w&&C(w)}),M=ye((T,E,$)=>{const S=E==="finish",D=$?o.indexOf($){const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function Jq(e,{disablePast:t,minDate:n,timezone:r}){const o=Gt();return h.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const lf=36,b0=2,w0=320,eX=280,Mw=336,tX=Q("div")({overflow:"hidden",width:w0,maxHeight:Mw,display:"flex",flexDirection:"column",margin:"0 auto"}),$m=(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},Md=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=$m(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},nX=(e,t)=>t==null||!e.isValid(t)?null:t,Co=(e,t,n)=>t==null||!e.isValid(t)?n:t,rX=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Iw=(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},j$=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),oX=["year","month","day"],tP=e=>oX.includes(e),Ew=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Fu(n,["year"])?o.year:Fu(n,["month"])?o.month:Fu(n,["day"])?o.dayOfMonth:Fu(n,["month","year"])?`${o.month} ${o.year}`:Fu(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},sX=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Tw=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{const s=Gt(),i=h.useRef(n),a=t??i.current??o.emptyValue,l=h.useMemo(()=>o.getTimezone(s,a),[s,o,a]),c=ye(m=>l==null?m:o.setTimezone(s,l,m)),u=e??l??"default",d=h.useMemo(()=>o.setTimezone(s,u,a),[o,s,u,a]),f=ye((m,...g)=>{const y=c(m);r==null||r(y,...g)});return{value:d,handleValueChange:f,timezone:u}},Dw=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,a]=On({name:e,state:"value",controlled:n,default:r??s.emptyValue}),l=ye((c,...u)=>{a(c),o==null||o(c,...u)});return Tw({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:s})},os={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},iX=e=>Math.max(...e.map(t=>os[t.type]??1)),Lu=(e,t,n)=>{if(t===os.year)return e.startOfYear(n);if(t===os.month)return e.startOfMonth(n);if(t===os.day)return e.startOfDay(n);let r=n;return t{let s=o?o():Lu(t,n,j$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Lu(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Lu(t,n,e.maxDate));const i=Qq(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Lu(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$m(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Lu(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$m(t,s,e.maxTime))),s},F$=(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}},lX=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},C0=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},L$=(e,t,n,r)=>{switch(n){case"month":return Iw(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return C0(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},nP="s",cX=["0","1","2","3","4","5","6","7","8","9"],uX=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),nP)==="0"?cX:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),nP))},Wa=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(s.toString()),r="")}return n.join("")},$w=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),rP=(e,t)=>{const n=Wa(e,t);return n!==" "&&!Number.isNaN(Number(n))},_$=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=_$(s,o.maxLength)),$w(s,r)},dX=(e,t,n,r,o,s,i,a)=>{const l=lX(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const g=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),y=b=>N$(e,b,g,s,n),x=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let w=parseInt(Wa(n.value,s),10)+l*x;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=g.minimum:w=g.maximum}return w%x!==0&&((l<0||c)&&(w+=x-(x+w)%x),(l>0||u)&&(w-=w%x)),w>g.maximum?y(g.minimum+(w-g.maximum-1)%(g.maximum-g.minimum+1)):w{const g=L$(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const v=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():m()},Rw=(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(Wa(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},oP=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),z$=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,B$=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return z$(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")}},fX=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),hX=(e,t,n)=>{const o=e.map(s=>{const i=Rw(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},mX=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=Iw(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:z$(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):i,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=C0(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(s);return Wa(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Wa(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},gX=(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=C0(e,t.format),s=e.formatByString(n,t.format),i=o.indexOf(s),l=o.indexOf(t.value)-i;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,s=e.getHours(r);return o&&s>=12?e.addHours(r,-12):!o&&s<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}},sP={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},iP=(e,t,n,r,o)=>[...n].sort((s,i)=>sP[s.type]-sP[i.type]).reduce((s,i)=>!o||i.modified?gX(e,i,t,s):s,r),yX=()=>navigator.userAgent.toLowerCase().includes("android"),vX=(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 s=0,i=0,a=e.length-1;for(;a>=0;){i=e.findIndex((l,c)=>{var u;return c>=s&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=s;l-=1)o[l]=a,r[a]=l,a-=1;s=i+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]}},ox=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,xX=(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}},bX=(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}},wX=["value","referenceDate"],bs={emptyValue:null,getTodayValue:j$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ce(e,wX);return t!=null&&r.utils.isValid(t)?t:n??aX(r)},cleanValue:nX,areValuesEqual:rX,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)},CX={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:pX,getV6InputValueFromSections:hX,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)};function SX(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const kX=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},$r=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$r(t.shadowRoot):t:null},PX="@media (pointer: fine)";function MX(e){return ve("MuiPickersDay",e)}const ia=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),IX=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],EX=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return le({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},MX,l)},H$=({theme:e})=>P({},e.typography.caption,{width:lf,height:lf,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})`:xe(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xe(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ia.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ia.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}},[`&.${ia.disabled}:not(.${ia.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ia.disabled}&.${ia.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${b0}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ia.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),V$=(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]},TX=Q(qs,{name:"MuiPickersDay",slot:"Root",overridesResolver:V$})(H$),DX=Q("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:V$})(({theme:e})=>P({},H$({theme:e}),{opacity:0,pointerEvents:"none"})),_u=()=>{},$X=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:m=_u,onBlur:g=_u,onKeyDown:y=_u,onMouseDown:x=_u,onMouseEnter:v=_u,outsideCurrentMonth:w,selected:b=!1,showDaysOutsideCurrentMonth:C=!1,children:k,today:M=!1}=r,T=ce(r,IX),E=P({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:C,today:M}),$=EX(E),S=Gt(),D=h.useRef(null),j=et(D,n);ot(()=>{o&&!a&&!u&&!w&&D.current.focus()},[o,a,u,w]);const F=R=>{x(R),w&&R.preventDefault()},A=R=>{a||f(i),w&&R.currentTarget.focus(),d&&d(R)};return w&&!C?p.jsx(DX,{className:se($.root,$.hiddenDaySpacingFiller,s),ownerState:E,role:T.role}):p.jsx(TX,P({className:se($.root,s),ref:j,centerRipple:!0,disabled:a,tabIndex:b?0:-1,onKeyDown:R=>y(R,i),onFocus:R=>m(R,i),onBlur:R=>g(R,i),onMouseEnter:R=>v(R,i),onClick:A,onMouseDown:F},T,{ownerState:E,children:k||S.format(i,"dayOfMonth")}))}),RX=h.memo($X),Yf=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Co(r.utils,e.minDate,r.defaultDates.minDate),d=Co(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&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}};Yf.valueManager=bs;const G$=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],AX=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],OX=["minDateTime","maxDateTime"],jX=[...G$,...AX,...OX],W$=e=>jX.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function U$(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=ol(),a=h.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);h.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=ye(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const FX=({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},LX=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},_X=(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}},NX=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=F$(e,i),c=B$(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,i):"",m=null;if(u)if(c)m=f===""?e.formatByString(s,i).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);m=l.maxLength,d&&(f=$w(_$(Wa(f,o),m),o))}return P({},l,{format:i,maxLength:m,value:f,placeholder:_X(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},zX=e=>{var m;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((g,y)=>y.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=g=>r.find(y=>y.start<=g&&y.end>=g);let f=0;for(;f0;){const w=u.exec(v)[1];v=v.slice(w.length),s.push(NX(P({},e,{now:o,token:w,startSeparator:i}))),i=""}f+=x.length}else{const v=n[f];y&&(g==null?void 0:g.start)===f||(g==null?void 0:g.end)===f||(s.length===0?i+=v:s[s.length-1].endSeparator+=v),f+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},BX=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`⁩${i}⁦`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),aP=e=>{let t=FX(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=LX(P({},e,{expandedFormat:t})),r=zX(P({},e,{expandedFormat:t,escapedParts:n}));return BX(P({},e,{sections:r}))},HX=e=>{const t=Gt(),n=si(),r=ol(),o=Nt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:m,format:g,formatDensity:y="dense",selectedSections:x,onSelectedSectionsChange:v,shouldRespectLeadingZeros:w=!1,timezone:b,enableAccessibleFieldDOMStructure:C=!1}}=e,{timezone:k,value:M,handleValueChange:T}=Tw({timezone:b,value:u,defaultValue:d,onChange:m,valueManager:s}),E=h.useMemo(()=>uX(t),[t]),$=h.useMemo(()=>mX(t,E,k),[t,E,k]),S=h.useCallback((B,W=null)=>i.getSectionsFromValue(t,B,W,te=>aP({utils:t,localeText:n,localizedDigits:E,format:g,date:te,formatDensity:y,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:C,isRtl:o})),[i,g,n,E,o,w,t,y,C]),[D,j]=h.useState(()=>{const B=S(M),W={sections:B,value:M,referenceValue:s.emptyValue,tempValueStrAndroid:null},te=iX(B),X=s.getInitialReferenceValue({referenceDate:f,value:M,utils:t,props:c,granularity:te,timezone:k});return P({},W,{referenceValue:X})}),[F,A]=On({controlled:x,default:null,name:"useField",state:"selectedSections"}),R=B=>{A(B),v==null||v(B)},I=h.useMemo(()=>ox(F,D.sections),[F,D.sections]),L=I==="all"?0:I,O=({value:B,referenceValue:W,sections:te})=>{if(j(q=>P({},q,{sections:te,value:B,referenceValue:W,tempValueStrAndroid:null})),s.areValuesEqual(t,D.value,B))return;const X={validationError:l({adapter:r,value:B,timezone:k,props:c})};T(B,X)},_=(B,W)=>{const te=[...D.sections];return te[B]=P({},te[B],{value:W,modified:!0}),te},N=()=>{O({value:s.emptyValue,referenceValue:D.referenceValue,sections:S(s.emptyValue)})},z=()=>{if(L==null)return;const B=D.sections[L],W=i.getActiveDateManager(t,D,B),X=W.getSections(D.sections).filter(H=>H.value!=="").length===(B.value===""?0:1),q=_(L,""),G=X?null:t.getInvalidDate(),ee=W.getNewValuesFromNewActiveDate(G);O(P({},ee,{sections:q}))},U=B=>{const W=(q,G)=>{const ee=t.parse(q,g);if(ee==null||!t.isValid(ee))return null;const H=aP({utils:t,localeText:n,localizedDigits:E,format:g,date:ee,formatDensity:y,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:C,isRtl:o});return iP(t,ee,H,G,!1)},te=i.parseValueStr(B,D.referenceValue,W),X=i.updateReferenceValue(t,te,D.referenceValue);O({value:te,referenceValue:X,sections:S(te,D.sections)})},J=({activeSection:B,newSectionValue:W,shouldGoToNextSection:te})=>{te&&LP({},ne,H,{sections:q,tempValueStrAndroid:null}))},Y=B=>j(W=>P({},W,{tempValueStrAndroid:B}));return h.useEffect(()=>{const B=S(D.value);j(W=>P({},W,{sections:B}))},[g,t.locale,o]),h.useEffect(()=>{let B;s.areValuesEqual(t,D.value,M)?B=s.getTimezone(t,D.value)!==s.getTimezone(t,M):B=!0,B&&j(W=>P({},W,{value:M,referenceValue:i.updateReferenceValue(t,M,W.referenceValue),sections:S(M)}))},[M]),{state:D,activeSectionIndex:L,parsedSelectedSections:I,setSelectedSections:R,clearValue:N,clearActiveSection:z,updateSectionValue:J,updateValueFromValueStr:U,setTempAndroidValueStr:Y,getSectionsFromValue:S,sectionsValueBoundaries:$,localizedDigits:E,timezone:k}},VX=5e3,wl=e=>e.saveQuery!=null,GX=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Gt(),[a,l]=h.useState(null),c=ye(()=>l(null));h.useEffect(()=>{var g;a!=null&&((g=e[a.sectionIndex])==null?void 0:g.type)!==a.sectionType&&c()},[e,a,c]),h.useEffect(()=>{if(a!=null){const g=setTimeout(()=>c(),VX);return()=>{clearTimeout(g)}}return()=>{}},[a,c]);const u=({keyPressed:g,sectionIndex:y},x,v)=>{const w=g.toLowerCase(),b=e[y];if(a!=null&&(!v||v(a.value))&&a.sectionIndex===y){const k=`${a.value}${w}`,M=x(k,b);if(!wl(M))return l({sectionIndex:y,value:k,sectionType:b.type}),M}const C=x(w,b);return wl(C)&&!C.saveQuery?(c(),null):(l({sectionIndex:y,value:w,sectionType:b.type}),wl(C)?null:C)},d=g=>{const y=(w,b,C)=>{const k=b.filter(M=>M.toLowerCase().startsWith(C));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},x=(w,b,C,k)=>{const M=T=>L$(i,s,b.type,T);if(b.contentType==="letter")return y(b.format,M(b.format),w);if(C&&k!=null&&F$(i,C).contentType==="letter"){const T=M(C),E=y(C,T,w);return wl(E)?{saveQuery:!1}:P({},E,{sectionValue:k(E.sectionValue,T)})}return{saveQuery:!1}};return u(g,(w,b)=>{switch(b.type){case"month":{const C=k=>oP(i,k,i.formats.month,b.format);return x(w,b,i.formats.month,C)}case"weekDay":{const C=(k,M)=>M.indexOf(k).toString();return x(w,b,i.formats.weekday,C)}case"meridiem":return x(w,b);default:return{saveQuery:!1}}})},f=g=>{const y=(v,w)=>{const b=Wa(v,r),C=Number(b),k=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(C>k.maximum)return{saveQuery:!1};if(Ck.maximum||b.length===k.maximum.toString().length;return{sectionValue:N$(i,C,k,r,w),shouldGoToNextSection:M}};return u(g,(v,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return y(v,w);if(w.type==="month"){B$(i,"digit","month","MM");const b=y(v,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wl(b))return b;const C=oP(i,b.sectionValue,"MM",w.format);return P({},b,{sectionValue:C})}if(w.type==="weekDay"){const b=y(v,w);if(wl(b))return b;const C=C0(i,w.format)[Number(b.sectionValue)-1];return P({},b,{sectionValue:C})}return{saveQuery:!1}},v=>rP(v,r))};return{applyCharacterEditing:ye(g=>{const y=e[g.sectionIndex],v=rP(g.keyPressed,r)?f(P({},g,{keyPressed:$w(g.keyPressed,r)})):d(g);if(v==null){o(null);return}t({activeSection:y,newSectionValue:v.sectionValue,shouldGoToNextSection:v.shouldGoToNextSection})}),resetCharacterQuery:c}},WX=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:m,setSelectedSections:g,parsedSelectedSections:y,state:x,clearActiveSection:v,clearValue:w,updateSectionValue:b,updateValueFromValueStr:C,sectionOrder:k,areAllSectionsEmpty:M,sectionsValueBoundaries:T}=e,E=h.useRef(null),$=et(r,E),S=si(),D=Gt(),j=pt(),[F,A]=h.useState(!1),R=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!E.current)return;const Z=document.getSelection();if(!Z)return;if(y==null){Z.rangeCount>0&&E.current.getRoot().contains(Z.getRangeAt(0).startContainer)&&Z.removeAllRanges(),F&&E.current.getRoot().blur();return}if(!E.current.getRoot().contains($r(document)))return;const ne=new window.Range;let oe;y==="all"?oe=E.current.getRoot():x.sections[y].type==="empty"?oe=E.current.getSectionContainer(y):oe=E.current.getSectionContent(y),ne.selectNodeContents(oe),oe.focus(),Z.removeAllRanges(),Z.addRange(ne)},getActiveSectionIndexFromDOM:()=>{const Z=$r(document);return!Z||!E.current||!E.current.getRoot().contains(Z)?null:E.current.getSectionIndexFromDOMElement(Z)},focusField:(Z=0)=>{if(!E.current)return;const ne=ox(Z,x.sections);A(!0),E.current.getSectionContent(ne).focus()},setSelectedSections:Z=>{if(!E.current)return;const ne=ox(Z,x.sections);A((ne==="all"?0:ne)!==null),g(Z)},isFieldFocused:()=>{const Z=$r(document);return!!E.current&&E.current.getRoot().contains(Z)}}),[y,g,x.sections,F]),I=ye(Z=>{if(!E.current)return;const ne=x.sections[Z];E.current.getSectionContent(Z).innerHTML=ne.value||ne.placeholder,R.syncSelectionToDOM()}),L=ye((Z,...ne)=>{Z.isDefaultPrevented()||!E.current||(A(!0),s==null||s(Z,...ne),y==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){g(k.startIndex);return}let re=0,ue=0;for(;ue{if(a==null||a(Z),!E.current||y!=="all")return;const oe=Z.target.textContent??"";E.current.getRoot().innerHTML=x.sections.map(re=>`${re.startSeparator}${re.value||re.placeholder}${re.endSeparator}`).join(""),R.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(m(),w(),g("all")):oe.length>1?C(oe):f({keyPressed:oe,sectionIndex:0})}),_=ye(Z=>{if(l==null||l(Z),n||y!=="all"){Z.preventDefault();return}const ne=Z.clipboardData.getData("text");Z.preventDefault(),m(),C(ne)}),N=ye((...Z)=>{if(i==null||i(...Z),F||!E.current)return;A(!0),E.current.getSectionIndexFromDOMElement($r(document))!=null||g(k.startIndex)}),z=ye((...Z)=>{o==null||o(...Z),setTimeout(()=>{if(!E.current)return;const ne=$r(document);!E.current.getRoot().contains(ne)&&(A(!1),g(null))})}),U=ye(Z=>ne=>{ne.isDefaultPrevented()||g(Z)}),J=ye(Z=>{Z.preventDefault()}),Y=ye(Z=>()=>{g(Z)}),B=ye(Z=>{if(Z.preventDefault(),n||t||typeof y!="number")return;const ne=x.sections[y],oe=Z.clipboardData.getData("text"),re=/^[a-zA-Z]+$/.test(oe),ue=/^[0-9]+$/.test(oe),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);ne.contentType==="letter"&&re||ne.contentType==="digit"&&ue||ne.contentType==="digit-with-letter"&&ie?(m(),b({activeSection:ne,newSectionValue:oe,shouldGoToNextSection:!0})):!re&&!ue&&(m(),C(oe))}),W=ye(Z=>{Z.preventDefault(),Z.dataTransfer.dropEffect="none"}),te=ye(Z=>{if(!E.current)return;const ne=Z.target,oe=ne.textContent??"",re=E.current.getSectionIndexFromDOMElement(ne),ue=x.sections[re];if(n||!E.current){I(re);return}if(oe.length===0){if(ue.value===""){I(re);return}const ie=Z.nativeEvent.inputType;if(ie==="insertParagraph"||ie==="insertLineBreak"){I(re);return}m(),v();return}f({keyPressed:oe,sectionIndex:re}),I(re)});ot(()=>{if(!(!F||!E.current)){if(y==="all")E.current.getRoot().focus();else if(typeof y=="number"){const Z=E.current.getSectionContent(y);Z&&Z.focus()}}},[y,F]);const X=h.useMemo(()=>x.sections.reduce((Z,ne)=>(Z[ne.type]=T[ne.type]({currentDate:null,contentType:ne.contentType,format:ne.format}),Z),{}),[T,x.sections]),q=y==="all",G=h.useMemo(()=>x.sections.map((Z,ne)=>{const oe=!q&&!t&&!n;return{container:{"data-sectionindex":ne,onClick:U(ne)},content:{tabIndex:q||ne>0?-1:0,contentEditable:!q&&!t&&!n,role:"spinbutton",id:`${j}-${Z.type}`,"aria-labelledby":`${j}-${Z.type}`,"aria-readonly":n,"aria-valuenow":bX(Z,D),"aria-valuemin":X[Z.type].minimum,"aria-valuemax":X[Z.type].maximum,"aria-valuetext":Z.value?xX(Z,D):S.empty,"aria-label":S[Z.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(h.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:Z.value||Z.placeholder,onInput:te,onPaste:B,onFocus:Y(ne),onDragOver:W,onMouseUp:J,inputMode:Z.contentType==="letter"?"text":"numeric"},before:{children:Z.startSeparator},after:{children:Z.endSeparator}}}),[x.sections,Y,B,W,te,U,J,t,n,q,S,D,X,j]),ee=ye(Z=>{C(Z.target.value)}),H=h.useMemo(()=>M?"":d.getV7HiddenInputValueFromSections(x.sections),[M,x.sections,d]);return h.useEffect(()=>{if(E.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 `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","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&&E.current&&E.current.getSectionContent(k.startIndex).focus()},[]),{interactions:R,returnedValue:{autoFocus:u,readOnly:n,focused:c??F,sectionListRef:$,onBlur:z,onClick:L,onFocus:N,onInput:O,onPaste:_,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:y===0?-1:0,contentEditable:q,value:H,onChange:ee,areAllSectionsEmpty:M}}},Xl=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),UX=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i{const t=Nt(),n=h.useRef(),r=h.useRef(),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:m,state:g,fieldValueManager:y,valueManager:x,applyCharacterEditing:v,resetCharacterQuery:w,updateSectionValue:b,updateValueFromValueStr:C,clearActiveSection:k,clearValue:M,setTempAndroidValueStr:T,setSelectedSections:E,getSectionsFromValue:$,areAllSectionsEmpty:S,localizedDigits:D}=e,j=h.useRef(null),F=et(l,j),A=h.useMemo(()=>UX(g.sections,D,t),[g.sections,D,t]),R=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!j.current)return;if(f==null){j.current.scrollLeft&&(j.current.scrollLeft=0);return}if(j.current!==$r(document))return;const te=j.current.scrollTop;if(f==="all")j.current.select();else{const X=A[f],q=X.type==="empty"?X.startInInput-X.startSeparator.length:X.startInInput,G=X.type==="empty"?X.endInInput+X.endSeparator.length:X.endInInput;(q!==j.current.selectionStart||G!==j.current.selectionEnd)&&j.current===$r(document)&&j.current.setSelectionRange(q,G),clearTimeout(r.current),r.current=setTimeout(()=>{j.current&&j.current===$r(document)&&j.current.selectionStart===j.current.selectionEnd&&(j.current.selectionStart!==q||j.current.selectionEnd!==G)&&R.syncSelectionToDOM()})}j.current.scrollTop=te},getActiveSectionIndexFromDOM:()=>{const te=j.current.selectionStart??0,X=j.current.selectionEnd??0;if(te===0&&X===0)return null;const q=te<=A[0].startInInput?1:A.findIndex(G=>G.startInInput-G.startSeparator.length>te);return q===-1?A.length-1:q-1},focusField:(te=0)=>{var X;(X=j.current)==null||X.focus(),E(te)},setSelectedSections:te=>E(te),isFieldFocused:()=>j.current===$r(document)}),[j,f,A,E]),I=()=>{const te=j.current.selectionStart??0;let X;te<=A[0].startInInput||te>=A[A.length-1].endInInput?X=1:X=A.findIndex(G=>G.startInInput-G.startSeparator.length>te);const q=X===-1?A.length-1:X-1;E(q)},L=ye((...te)=>{o==null||o(...te);const X=j.current;clearTimeout(n.current),n.current=setTimeout(()=>{!X||X!==j.current||m==null&&(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?E("all"):I())})}),O=ye((te,...X)=>{te.isDefaultPrevented()||(s==null||s(te,...X),I())}),_=ye(te=>{if(i==null||i(te),te.preventDefault(),u||d)return;const X=te.clipboardData.getData("text");if(typeof f=="number"){const q=g.sections[f],G=/^[a-zA-Z]+$/.test(X),ee=/^[0-9]+$/.test(X),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(q.contentType==="letter"&&G||q.contentType==="digit"&&ee||q.contentType==="digit-with-letter"&&H){w(),b({activeSection:q,newSectionValue:X,shouldGoToNextSection:!0});return}if(G||ee)return}w(),C(X)}),N=ye((...te)=>{a==null||a(...te),E(null)}),z=ye(te=>{if(u)return;const X=te.target.value;if(X===""){w(),M();return}const q=te.nativeEvent.data,G=q&&q.length>1,ee=G?q:X,H=Xl(ee);if(m==null||G){C(G?q:H);return}let Z;if(f==="all"&&H.length===1)Z=H;else{const ne=Xl(y.getV6InputValueFromSections(A,D,t));let oe=-1,re=-1;for(let Te=0;Teue.end)return;const be=H.length-ne.length+ue.end-Xl(ue.endSeparator||"").length;Z=H.slice(ue.start+Xl(ue.startSeparator||"").length,be)}if(Z.length===0){yX()&&T(ee),w(),k();return}v({keyPressed:Z,sectionIndex:m})}),U=h.useMemo(()=>c!==void 0?c:y.getV6InputValueFromSections($(x.emptyValue),D,t),[c,y,$,x.emptyValue,D,t]),J=h.useMemo(()=>g.tempValueStrAndroid??y.getV6InputValueFromSections(g.sections,D,t),[g.sections,y,g.tempValueStrAndroid,D,t]);h.useEffect(()=>(j.current&&j.current===$r(document)&&E("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const Y=h.useMemo(()=>m==null||g.sections[m].contentType==="letter"?"text":"numeric",[m,g.sections]),W=!(j.current&&j.current===$r(document))&&S;return{interactions:R,returnedValue:{readOnly:u,onBlur:N,onClick:O,onFocus:L,onPaste:_,inputRef:F,enableAccessibleFieldDOMStructure:!1,placeholder:U,inputMode:Y,autoComplete:"off",value:W?"":J,onChange:z}}},KX=e=>{const t=Gt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:m,validator:g}=e,y=Nt(),x=HX(e),{state:v,activeSectionIndex:w,parsedSelectedSections:b,setSelectedSections:C,clearValue:k,clearActiveSection:M,updateSectionValue:T,setTempAndroidValueStr:E,sectionsValueBoundaries:$,localizedDigits:S,timezone:D}=x,j=GX({sections:v.sections,updateSectionValue:T,sectionsValueBoundaries:$,localizedDigits:S,setTempAndroidValueStr:E,timezone:D}),{resetCharacterQuery:F}=j,A=m.areValuesEqual(t,v.value,m.emptyValue),R=s?WX:YX,I=h.useMemo(()=>vX(v.sections,y&&!s),[v.sections,y,s]),{returnedValue:L,interactions:O}=R(P({},e,x,j,{areAllSectionsEmpty:A,sectionOrder:I})),_=ye(B=>{if(l==null||l(B),!i)switch(!0){case((B.ctrlKey||B.metaKey)&&String.fromCharCode(B.keyCode)==="A"&&!B.shiftKey&&!B.altKey):{B.preventDefault(),C("all");break}case B.key==="ArrowRight":{if(B.preventDefault(),b==null)C(I.startIndex);else if(b==="all")C(I.endIndex);else{const W=I.neighbors[b].rightIndex;W!==null&&C(W)}break}case B.key==="ArrowLeft":{if(B.preventDefault(),b==null)C(I.endIndex);else if(b==="all")C(I.startIndex);else{const W=I.neighbors[b].leftIndex;W!==null&&C(W)}break}case B.key==="Delete":{if(B.preventDefault(),a)break;b==null||b==="all"?k():M(),F();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(B.key):{if(B.preventDefault(),a||w==null)break;const W=v.sections[w],te=f.getActiveDateManager(t,v,W),X=dX(t,D,W,B.key,$,S,te.date,{minutesStep:o});T({activeSection:W,newSectionValue:X,shouldGoToNextSection:!1});break}}});ot(()=>{O.syncSelectionToDOM()});const{hasValidationError:N}=U$({props:n,validator:g,timezone:D,value:v.value,onError:n.onError}),z=h.useMemo(()=>c!==void 0?c:N,[N,c]);h.useEffect(()=>{!z&&w==null&&F()},[v.referenceValue,w,z]),h.useEffect(()=>{v.tempValueStrAndroid!=null&&w!=null&&(F(),M())},[v.sections]),h.useImperativeHandle(r,()=>({getSections:()=>v.sections,getActiveSectionIndex:O.getActiveSectionIndexFromDOM,setSelectedSections:O.setSelectedSections,focusField:O.focusField,isFieldFocused:O.isFieldFocused}));const U=ye((B,...W)=>{B.preventDefault(),d==null||d(B,...W),k(),O.isFieldFocused()?C(I.startIndex):O.focusField(0)}),J={onKeyDown:_,onClear:U,error:z,clearable:!!(u&&!A&&!a&&!i)},Y={disabled:i,readOnly:a};return P({},e.forwardedProps,J,Y,L)},qX=["clearable","onClear","InputProps","sx","slots","slotProps"],XX=["ownerState"],QX=e=>{const t=si(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ce(e,qX),c=(i==null?void 0:i.clearButton)??gn,u=Je({elementType:c,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ce(u,XX),f=(i==null?void 0:i.clearIcon)??Nq,m=Je({elementType:f,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return P({},l,{InputProps:P({},o,{endAdornment:p.jsxs(h.Fragment,{children:[n&&p.jsx(y0,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:p.jsx(c,P({},d,{onClick:r,children:p.jsx(f,P({fontSize:"small"},m))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},ZX=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],JX=(e,t)=>h.useMemo(()=>{const n=P({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return ZX.forEach(o),G$.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),eQ=h.createContext(null);function Y$(e){const{contextValue:t,localeText:n,children:r}=e;return p.jsx(eQ.Provider,{value:t,children:p.jsx(rl,{localeText:n,children:r})})}const tQ=e=>{const t=Gt(),n=Uf();return P({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Co(t,e.minDate,n.minDate),maxDate:Co(t,e.maxDate,n.maxDate)})},nQ=e=>{const t=tQ(e),{forwardedProps:n,internalProps:r}=JX(t,"date");return KX({forwardedProps:n,internalProps:r,valueManager:bs,fieldValueManager:CX,validator:Yf,valueType:"date"})};function rQ(e){return ve("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function oQ(e){return ve("MuiPickersInputBase",e)}const dc=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function sQ(e){return ve("MuiPickersSectionList",e)}const Nu=me("MuiPickersSectionList",["root","section","sectionContent"]),iQ=["slots","slotProps","elements","sectionListRef"],K$=Q("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),q$=Q("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),X$=Q("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Q$=Q("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),aQ=e=>{const{classes:t}=e;return le({root:["root"],section:["section"],sectionContent:["sectionContent"]},sQ,t)};function lQ(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=(t==null?void 0:t.section)??q$,i=Je({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=(t==null?void 0:t.sectionContent)??Q$,l=Je({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??X$,u=Je({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Je({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return p.jsxs(s,P({},i,{children:[p.jsx(c,P({},u)),p.jsx(a,P({},l)),p.jsx(c,P({},d))]}))}const cQ=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ce(r,iQ),c=aQ(r),u=h.useRef(null),d=et(n,u),f=y=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${y} before the mount of the component.`);return u.current};h.useImperativeHandle(a,()=>({getRoot(){return f("getRoot")},getSectionContainer(y){return f("getSectionContainer").querySelector(`.${Nu.section}[data-sectionindex="${y}"]`)},getSectionContent(y){return f("getSectionContent").querySelector(`.${Nu.section}[data-sectionindex="${y}"] .${Nu.sectionContent}`)},getSectionIndexFromDOMElement(y){const x=f("getSectionIndexFromDOMElement");if(y==null||!x.contains(y))return null;let v=null;return y.classList.contains(Nu.section)?v=y:y.classList.contains(Nu.sectionContent)&&(v=y.parentElement),v==null?null:Number(v.dataset.sectionindex)}}));const m=(o==null?void 0:o.root)??K$,g=Je({elementType:m,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return p.jsx(m,P({},g,{children:g.contentEditable?i.map(({content:y,before:x,after:v})=>`${x.children}${y.children}${v.children}`).join(""):p.jsx(h.Fragment,{children:i.map((y,x)=>p.jsx(lQ,{slots:o,slotProps:s,element:y,classes:c},x))})}))}),uQ=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],dQ=e=>Math.round(e*1e5)/1e5,S0=Q("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>P({},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:`${dQ(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Aw=Q(K$,{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}}]})),fQ=Q(q$,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),pQ=Q(Q$,{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"})),hQ=Q(X$,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),mQ=Q("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(P({},oD)),gQ=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ae(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return le(d,oQ,o)},Ow=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:m,contentEditable:g,tabIndex:y,onInput:x,onPaste:v,onKeyDown:w,name:b,readOnly:C,inputProps:k,inputRef:M,sectionListRef:T}=r,E=ce(r,uQ),$=h.useRef(null),S=et(n,$),D=et(k==null?void 0:k.ref,M),j=Nt(),F=Kr();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const A=N=>{var z;if(F.disabled){N.stopPropagation();return}(z=F.onFocus)==null||z.call(F,N)};h.useEffect(()=>{F&&F.setAdornedStart(!!u)},[F,u]),h.useEffect(()=>{F&&(s?F.onEmpty():F.onFilled())},[F,s]);const R=P({},r,F,{isRtl:j}),I=gQ(R),L=(f==null?void 0:f.root)||S0,O=Je({elementType:L,externalSlotProps:m==null?void 0:m.root,externalForwardedProps:E,additionalProps:{"aria-invalid":F.error,ref:S},className:I.root,ownerState:R}),_=(f==null?void 0:f.input)||Aw;return p.jsxs(L,P({},O,{children:[u,p.jsx(cQ,{sectionListRef:T,elements:o,contentEditable:g,tabIndex:y,className:I.sectionsContainer,onFocus:A,onBlur:F.onBlur,onInput:x,onPaste:v,onKeyDown:w,slots:{root:_,section:fQ,sectionContent:pQ,sectionSeparator:hQ},slotProps:{root:{ownerState:R},sectionContent:{className:dc.sectionContent},sectionSeparator:({position:N})=>({className:N==="before"?dc.sectionBefore:dc.sectionAfter})}}),c,d?d(P({},F)):null,p.jsx(mQ,P({name:b,className:I.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:F.required,disabled:F.disabled},k,{ref:D}))]}))});function yQ(e){return ve("MuiPickersOutlinedInput",e)}const Ro=P({},dc,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),vQ=["children","className","label","notched","shrink"],xQ=Q("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}}),lP=Q("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),bQ=Q("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 wQ(e){const{className:t,label:n}=e,r=ce(e,vQ),o=n!=null&&n!=="",s=P({},e,{withLabel:o});return p.jsx(xQ,P({"aria-hidden":!0,className:t},r,{ownerState:s,children:p.jsx(bQ,{ownerState:s,children:o?p.jsx(lP,{children:n}):p.jsx(lP,{className:"notranslate",children:"​"})})}))}const CQ=["label","autoFocus","ownerState","notched"],SQ=Q(S0,{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 .${Ro.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ro.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ro.focused} .${Ro.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Ro.disabled}`]:{[`& .${Ro.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Ro.error} .${Ro.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:{[`&.${Ro.focused}:not(.${Ro.error}) .${Ro.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),kQ=Q(Aw,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),PQ=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yQ,t);return P({},t,r)},Z$=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ce(r,CQ),l=Kr(),c=P({},r,s,l,{color:(l==null?void 0:l.color)||"primary"}),u=PQ(c);return p.jsx(Ow,P({slots:{root:SQ,input:kQ},renderSuffix:d=>p.jsx(wQ,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?p.jsxs(h.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Z$.muiName="Input";function MQ(e){return ve("MuiPickersFilledInput",e)}const aa=P({},dc,me("MuiPickersFilledInput",["root","underline","input"])),IQ=["label","autoFocus","disableUnderline","ownerState"],EQ=Q(S0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vd(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)",s=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}},[`&.${aa.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${aa.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>{var a;return{props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[i])==null?void 0:a.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"},[`&.${aa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${aa.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(.${aa.disabled}, .${aa.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${aa.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),TQ=Q(Aw,{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}}]}),DQ=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},MQ,t);return P({},t,o)},J$=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ce(r,IQ),l=Kr(),c=P({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=DQ(c);return p.jsx(Ow,P({slots:{root:EQ,input:TQ},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});J$.muiName="Input";function $Q(e){return ve("MuiPickersFilledInput",e)}const zu=P({},dc,me("MuiPickersInput",["root","input"])),RQ=["label","autoFocus","disableUnderline","ownerState"],AQ=Q(S0,{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"},[`&.${zu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zu.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(.${zu.disabled}, .${zu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${zu.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),OQ=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},$Q,t);return P({},t,o)},eR=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ce(r,RQ),l=Kr(),c=P({},r,i,l,{disableUnderline:s,color:(l==null?void 0:l.color)||"primary"}),u=OQ(c);return p.jsx(Ow,P({slots:{root:AQ}},a,{label:o,classes:u,ref:n}))});eR.muiName="Input";const jQ=["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"],FQ={standard:eR,filled:J$,outlined:Z$},LQ=Q(_s,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_Q=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return le({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},rQ,r)},NQ=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:m,inputRef:g,sectionListRef:y,elements:x,areAllSectionsEmpty:v,onClick:w,onKeyDown:b,onKeyUp:C,onPaste:k,onInput:M,endAdornment:T,startAdornment:E,tabIndex:$,contentEditable:S,focused:D,value:j,onChange:F,fullWidth:A,id:R,name:I,helperText:L,FormHelperTextProps:O,label:_,InputLabelProps:N}=r,z=ce(r,jQ),U=h.useRef(null),J=et(n,U),Y=pt(R),B=L&&Y?`${Y}-helper-text`:void 0,W=_&&Y?`${Y}-label`:void 0,te=P({},r,{color:a,disabled:l,error:c,focused:D,required:d,variant:u}),X=_Q(te),q=FQ[u];return p.jsxs(LQ,P({className:se(X.root,i),ref:J,focused:D,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:A,required:d,ownerState:te},z,{children:[p.jsx(Hf,P({htmlFor:Y,id:W},N,{children:_})),p.jsx(q,P({elements:x,areAllSectionsEmpty:v,onClick:w,onKeyDown:b,onKeyUp:C,onInput:M,onPaste:k,endAdornment:T,startAdornment:E,tabIndex:$,contentEditable:S,value:j,onChange:F,id:Y,fullWidth:A,inputProps:m,inputRef:g,sectionListRef:y,label:_,name:I,role:"group","aria-labelledby":W},f)),L&&p.jsx(t$,P({id:B},O,{children:L}))]}))}),zQ=["enableAccessibleFieldDOMStructure"],BQ=["InputProps","readOnly"],HQ=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],VQ=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ce(e,zQ);if(t){const{InputProps:d,readOnly:f}=n,m=ce(n,BQ);return P({},m,{InputProps:P({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ce(n,HQ);return P({},u,{InputProps:P({},a??{},{readOnly:i}),inputProps:P({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},GQ=["slots","slotProps","InputProps","inputProps"],tR=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ce(r,GQ),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?NQ:Ns),d=Je({elementType:u,externalSlotProps:s==null?void 0:s.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=P({},a,d.inputProps),d.InputProps=P({},i,d.InputProps);const f=nQ(d),m=VQ(f),g=QX(P({},m,{slots:o,slotProps:s}));return p.jsx(u,P({},g))}),nR=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=ol();return h.useCallback(c=>Yf({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},WQ=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return P({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),P({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return P({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return P({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},UQ=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=Gt(),m=h.useRef(WQ(!!c,s,f)).current,g=h.useMemo(()=>bs.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:os.day}),[n,d]),[y,x]=h.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"});h.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:f.getTimezone(g)})},[g,f]);const v=h.useCallback(M=>{x(P({type:"changeMonth"},M)),l&&l(M.newMonth)},[l]),w=h.useCallback(M=>{const T=M;f.isSameMonth(T,y.currentMonth)||v({newMonth:f.startOfMonth(T),direction:f.isAfterDay(T,y.currentMonth)?"left":"right"})},[y.currentMonth,v,f]),b=nR({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),C=h.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),k=ye((M,T)=>{b(M)||x({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:T})});return{referenceDate:g,calendarState:y,changeMonth:w,changeFocusedDay:k,isDateDisabled:b,onMonthSwitchingAnimationEnd:C,handleChangeMonth:v}},YQ=e=>ve("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const KQ=e=>{const{classes:t}=e;return le({root:["root"]},YQ,t)},qQ=Q(Bf,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function rR(e){const t=yt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=KQ(t),a=Mn();return o?n:p.jsx(qQ,{className:se(i.root,r),children:p.jsx(iu,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}const XQ=e=>ve("MuiPickersSlideTransition",e),qr=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),QQ=["children","className","reduceAnimations","slideDirection","transKey","classes"],ZQ=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return le(r,XQ,t)},JQ=Q(Bf,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${qr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${qr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${qr.slideEnterActive}`]:t.slideEnterActive},{[`.${qr.slideExit}`]:t.slideExit},{[`.${qr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${qr["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},[`& .${qr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${qr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${qr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${qr.slideExit}`]:{transform:"translate(0%)"},[`& .${qr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${qr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function eZ(e){const t=yt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ce(t,QQ),a=ZQ(t),l=Mn();if(o)return p.jsx("div",{className:se(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return p.jsx(JQ,{className:se(a.root,r),childFactory:u=>h.cloneElement(u,{classNames:c}),role:"presentation",children:p.jsx(aw,P({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const tZ=e=>ve("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const nZ=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],rZ=["ownerState"],oZ=e=>{const{classes:t}=e;return le({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},tZ,t)},oR=(lf+b0*2)*6,sZ=Q("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iZ=Q("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),aZ=Q(we,{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})),lZ=Q(we,{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})),cZ=Q(we,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>P({},e.typography.caption,{width:lf,height:lf,padding:0,margin:`0 ${b0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),uZ=Q("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:oR}),dZ=Q(eZ,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:oR}),fZ=Q("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),pZ=Q("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${b0}px 0`,display:"flex",justifyContent:"center"});function hZ(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ce(e,nZ);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:m,slotProps:g,timezone:y}=t,x=Gt(),v=x0(y),w=r!==null&&x.isSameDay(n,r),b=o.some(j=>x.isSameDay(j,n)),C=x.isSameDay(n,v),k=(m==null?void 0:m.day)??RX,M=Je({elementType:k,externalSlotProps:g==null?void 0:g.day,additionalProps:P({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":x.toJsDate(n).valueOf()},l),ownerState:P({},t,{day:n,selected:b})}),T=ce(M,rZ),E=h.useMemo(()=>c||s(n),[c,s,n]),$=h.useMemo(()=>x.getMonth(n)!==i,[x,n,i]),S=h.useMemo(()=>{const j=x.startOfMonth(x.setMonth(n,i));return f?x.isSameDay(n,x.startOfWeek(j)):x.isSameDay(n,j)},[i,n,f,x]),D=h.useMemo(()=>{const j=x.endOfMonth(x.setMonth(n,i));return f?x.isSameDay(n,x.endOfWeek(j)):x.isSameDay(n,j)},[i,n,f,x]);return p.jsx(k,P({},T,{day:n,disabled:E,autoFocus:a&&w,today:C,outsideCurrentMonth:$,isFirstVisibleCell:S,isLastVisibleCell:D,selected:b,tabIndex:w?0:-1,"aria-selected":b,"aria-current":C?"date":void 0}))}function mZ(e){const t=yt({props:e,name:"MuiDayCalendar"}),n=Gt(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:m=()=>p.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:x,disableFuture:v,minDate:w,maxDate:b,shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:M,dayOfWeekFormatter:T=re=>n.format(re,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:$,gridLabelId:S,displayWeekNumber:D,fixedWeekNumber:j,autoFocus:F,timezone:A}=t,R=x0(A),I=oZ(t),L=Nt(),O=nR({shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:M,minDate:w,maxDate:b,disablePast:x,disableFuture:v,timezone:A}),_=si(),[N,z]=On({name:"DayCalendar",state:"hasFocus",controlled:E,default:F??!1}),[U,J]=h.useState(()=>a||R),Y=ye(re=>{d||c(re)}),B=re=>{O(re)||(r(re),J(re),$==null||$(!0),z(!0))},W=ye((re,ue)=>{switch(re.key){case"ArrowUp":B(n.addDays(ue,-7)),re.preventDefault();break;case"ArrowDown":B(n.addDays(ue,7)),re.preventDefault();break;case"ArrowLeft":{const ie=n.addDays(ue,L?1:-1),be=n.addMonths(ue,L?1:-1),Te=Md({utils:n,date:ie,minDate:L?ie:n.startOfMonth(be),maxDate:L?n.endOfMonth(be):ie,isDateDisabled:O,timezone:A});B(Te||ie),re.preventDefault();break}case"ArrowRight":{const ie=n.addDays(ue,L?-1:1),be=n.addMonths(ue,L?-1:1),Te=Md({utils:n,date:ie,minDate:L?n.startOfMonth(be):ie,maxDate:L?ie:n.endOfMonth(be),isDateDisabled:O,timezone:A});B(Te||ie),re.preventDefault();break}case"Home":B(n.startOfWeek(ue)),re.preventDefault();break;case"End":B(n.endOfWeek(ue)),re.preventDefault();break;case"PageUp":B(n.addMonths(ue,1)),re.preventDefault();break;case"PageDown":B(n.addMonths(ue,-1)),re.preventDefault();break}}),te=ye((re,ue)=>B(ue)),X=ye((re,ue)=>{N&&n.isSameDay(U,ue)&&($==null||$(!1))}),q=n.getMonth(s),G=n.getYear(s),ee=h.useMemo(()=>i.filter(re=>!!re).map(re=>n.startOfDay(re)),[n,i]),H=`${G}-${q}`,Z=h.useMemo(()=>h.createRef(),[H]),ne=h.useMemo(()=>{const re=n.startOfMonth(s),ue=n.endOfMonth(s);return O(U)||n.isAfterDay(U,ue)||n.isBeforeDay(U,re)?Md({utils:n,date:U,minDate:re,maxDate:ue,disablePast:x,disableFuture:v,isDateDisabled:O,timezone:A}):U},[s,v,x,U,O,n,A]),oe=h.useMemo(()=>{const re=n.getWeekArray(s);let ue=n.addMonths(s,1);for(;j&&re.length{re.lengthp.jsx(aZ,{variant:"caption",role:"columnheader","aria-label":n.format(re,"weekday"),className:I.weekDayLabel,children:T(re)},ue.toString()))]}),l?p.jsx(uZ,{className:I.loadingContainer,children:m()}):p.jsx(dZ,P({transKey:H,onExited:u,reduceAnimations:f,slideDirection:g,className:se(o,I.slideTransition)},y,{nodeRef:Z,children:p.jsx(fZ,{ref:Z,role:"rowgroup",className:I.monthContainer,children:oe.map((re,ue)=>p.jsxs(pZ,{role:"row",className:I.weekContainer,"aria-rowindex":ue+1,children:[D&&p.jsx(cZ,{className:I.weekNumber,role:"rowheader","aria-label":_.calendarWeekNumberAriaLabelText(n.getWeekNumber(re[0])),children:_.calendarWeekNumberText(n.getWeekNumber(re[0]))}),re.map((ie,be)=>p.jsx(hZ,{parentProps:t,day:ie,selectedDays:ee,focusableDay:ne,onKeyDown:W,onFocus:te,onBlur:X,onDaySelect:Y,isDateDisabled:O,currentMonthNumber:q,isViewFocused:N,"aria-colindex":be+1},ie.toString()))]},`week-${re[0]}`))})}))]})}function gZ(e){return ve("MuiPickersMonth",e)}const Xp=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),yZ=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],vZ=e=>{const{disabled:t,selected:n,classes:r}=e;return le({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},gZ,r)},xZ=Q("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%"}}]}),bZ=Q("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Xp.disabled}`]:t.disabled},{[`&.${Xp.selected}`]:t.selected}]})(({theme:e})=>P({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})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Xp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Xp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wZ=h.memo(function(t){const n=yt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:m,"aria-current":g,"aria-label":y,slots:x,slotProps:v}=n,w=ce(n,yZ),b=h.useRef(null),C=vZ(n);ot(()=>{var T;r&&((T=b.current)==null||T.focus())},[r]);const k=(x==null?void 0:x.monthButton)??bZ,M=Je({elementType:k,externalSlotProps:v==null?void 0:v.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:b,type:"button",role:"radio","aria-current":g,"aria-checked":a,"aria-label":y,onClick:T=>u(T,l),onKeyDown:T=>d(T,l),onFocus:T=>f(T,l),onBlur:T=>m(T,l)},ownerState:n,className:C.monthButton});return p.jsx(xZ,P({className:se(C.root,o),ownerState:n},w,{children:p.jsx(k,P({},M))}))});function CZ(e){return ve("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const SZ=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],kZ=e=>{const{classes:t}=e;return le({root:["root"]},CZ,t)};function PZ(e,t){const n=Gt(),r=Uf(),o=yt({props:e,name:t});return P({disableFuture:!1,disablePast:!1},o,{minDate:Co(n,o.minDate,r.minDate),maxDate:Co(n,o.maxDate,r.maxDate)})}const MZ=Q("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:w0,boxSizing:"border-box"}),IZ=h.forwardRef(function(t,n){const r=PZ(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:m,shouldDisableMonth:g,readOnly:y,autoFocus:x=!1,onMonthFocus:v,hasFocus:w,onFocusedViewChange:b,monthsPerRow:C=3,timezone:k,gridLabelId:M,slots:T,slotProps:E}=r,$=ce(r,SZ),{value:S,handleValueChange:D,timezone:j}=Dw({name:"MonthCalendar",timezone:k,value:s,defaultValue:i,onChange:m,valueManager:bs}),F=x0(j),A=Nt(),R=Gt(),I=h.useMemo(()=>bs.getInitialReferenceValue({value:S,utils:R,props:r,timezone:j,referenceDate:a,granularity:os.month}),[]),L=r,O=kZ(L),_=h.useMemo(()=>R.getMonth(F),[R,F]),N=h.useMemo(()=>S!=null?R.getMonth(S):null,[S,R]),[z,U]=h.useState(()=>N||R.getMonth(I)),[J,Y]=On({name:"MonthCalendar",state:"hasFocus",controlled:w,default:x??!1}),B=ye(H=>{Y(H),b&&b(H)}),W=h.useCallback(H=>{const Z=R.startOfMonth(u&&R.isAfter(F,f)?F:f),ne=R.startOfMonth(c&&R.isBefore(F,d)?F:d),oe=R.startOfMonth(H);return R.isBefore(oe,Z)||R.isAfter(oe,ne)?!0:g?g(oe):!1},[c,u,d,f,F,g,R]),te=ye((H,Z)=>{if(y)return;const ne=R.setMonth(S??I,Z);D(ne)}),X=ye(H=>{W(R.setMonth(S??I,H))||(U(H),B(!0),v&&v(H))});h.useEffect(()=>{U(H=>N!==null&&H!==N?N:H)},[N]);const q=ye((H,Z)=>{switch(H.key){case"ArrowUp":X((12+Z-3)%12),H.preventDefault();break;case"ArrowDown":X((12+Z+3)%12),H.preventDefault();break;case"ArrowLeft":X((12+Z+(A?1:-1))%12),H.preventDefault();break;case"ArrowRight":X((12+Z+(A?-1:1))%12),H.preventDefault();break}}),G=ye((H,Z)=>{X(Z)}),ee=ye((H,Z)=>{z===Z&&B(!1)});return p.jsx(MZ,P({ref:n,className:se(O.root,o),ownerState:L,role:"radiogroup","aria-labelledby":M},$,{children:Iw(R,S??I).map(H=>{const Z=R.getMonth(H),ne=R.format(H,"monthShort"),oe=R.format(H,"month"),re=Z===N,ue=l||W(H);return p.jsx(wZ,{selected:re,value:Z,onClick:te,onKeyDown:q,autoFocus:J&&Z===z,disabled:ue,tabIndex:Z===z&&!ue?0:-1,onFocus:G,onBlur:ee,"aria-current":_===Z?"date":void 0,"aria-label":oe,monthsPerRow:C,slots:T,slotProps:E,children:ne},ne)})}))});function EZ(e){return ve("MuiPickersYear",e)}const Qp=me("MuiPickersYear",["root","yearButton","selected","disabled"]),TZ=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],DZ=e=>{const{disabled:t,selected:n,classes:r}=e;return le({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},EZ,r)},$Z=Q("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%"}}]}),RZ=Q("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Qp.disabled}`]:t.disabled},{[`&.${Qp.selected}`]:t.selected}]})(({theme:e})=>P({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})`:xe(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),AZ=h.memo(function(t){const n=yt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:m,"aria-current":g,slots:y,slotProps:x}=n,v=ce(n,TZ),w=h.useRef(null),b=DZ(n);ot(()=>{var M;r&&((M=w.current)==null||M.focus())},[r]);const C=(y==null?void 0:y.yearButton)??RZ,k=Je({elementType:C,externalSlotProps:x==null?void 0:x.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":g,"aria-checked":a,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>m(M,l)},ownerState:n,className:b.yearButton});return p.jsx($Z,P({className:se(b.root,o),ownerState:n},v,{children:p.jsx(C,P({},k))}))});function OZ(e){return ve("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const jZ=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],FZ=e=>{const{classes:t}=e;return le({root:["root"]},OZ,t)};function LZ(e,t){const n=Gt(),r=Uf(),o=yt({props:e,name:t});return P({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Co(n,o.minDate,r.minDate),maxDate:Co(n,o.maxDate,r.maxDate)})}const _Z=Q("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:w0,maxHeight:eX,boxSizing:"border-box",position:"relative"}),NZ=h.forwardRef(function(t,n){const r=LZ(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:m,onChange:g,readOnly:y,shouldDisableYear:x,onYearFocus:v,hasFocus:w,onFocusedViewChange:b,yearsOrder:C="asc",yearsPerRow:k,timezone:M,gridLabelId:T,slots:E,slotProps:$}=r,S=ce(r,jZ),{value:D,handleValueChange:j,timezone:F}=Dw({name:"YearCalendar",timezone:M,value:i,defaultValue:a,onChange:g,valueManager:bs}),A=x0(F),R=Nt(),I=Gt(),L=h.useMemo(()=>bs.getInitialReferenceValue({value:D,utils:I,props:r,timezone:F,referenceDate:l,granularity:os.year}),[]),O=r,_=FZ(O),N=h.useMemo(()=>I.getYear(A),[I,A]),z=h.useMemo(()=>D!=null?I.getYear(D):null,[D,I]),[U,J]=h.useState(()=>z||I.getYear(L)),[Y,B]=On({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),W=ye(ie=>{B(ie),b&&b(ie)}),te=h.useCallback(ie=>{if(d&&I.isBeforeYear(ie,A)||u&&I.isAfterYear(ie,A)||m&&I.isBeforeYear(ie,m)||f&&I.isAfterYear(ie,f))return!0;if(!x)return!1;const be=I.startOfYear(ie);return x(be)},[u,d,f,m,A,x,I]),X=ye((ie,be)=>{if(y)return;const Te=I.setYear(D??L,be);j(Te)}),q=ye(ie=>{te(I.setYear(D??L,ie))||(J(ie),W(!0),v==null||v(ie))});h.useEffect(()=>{J(ie=>z!==null&&ie!==z?z:ie)},[z]);const G=C!=="desc"?k*1:k*-1,ee=R&&C==="asc"||!R&&C==="desc"?-1:1,H=ye((ie,be)=>{switch(ie.key){case"ArrowUp":q(be-G),ie.preventDefault();break;case"ArrowDown":q(be+G),ie.preventDefault();break;case"ArrowLeft":q(be-ee),ie.preventDefault();break;case"ArrowRight":q(be+ee),ie.preventDefault();break}}),Z=ye((ie,be)=>{q(be)}),ne=ye((ie,be)=>{U===be&&W(!1)}),oe=h.useRef(null),re=et(n,oe);h.useEffect(()=>{if(o||oe.current===null)return;const ie=oe.current.querySelector('[tabindex="0"]');if(!ie)return;const be=ie.offsetHeight,Te=ie.offsetTop,Fe=oe.current.clientHeight,Xe=oe.current.scrollTop,Pe=Te+be;be>Fe||Te{const be=I.getYear(ie),Te=be===z,Fe=c||te(ie);return p.jsx(AZ,{selected:Te,value:be,onClick:X,onKeyDown:H,autoFocus:Y&&be===U,disabled:Fe,tabIndex:be===U&&!Fe?0:-1,onFocus:Z,onBlur:ne,"aria-current":N===be?"date":void 0,yearsPerRow:k,slots:E,slotProps:$,children:I.format(ie,"year")},I.format(ie,"year"))})}))}),zZ=e=>ve("MuiPickersCalendarHeader",e),BZ=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),HZ=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],VZ=["ownerState"],GZ=e=>{const{classes:t}=e;return le({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zZ,t)},WZ=Q("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}),UZ=Q("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>P({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),YZ=Q("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),KZ=Q(gn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${BZ.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),qZ=Q(jq,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),XZ=h.forwardRef(function(t,n){const r=si(),o=Gt(),s=yt({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:m,onMonthChange:g,onViewChange:y,view:x,reduceAnimations:v,views:w,labelId:b,className:C,timezone:k,format:M=`${o.formats.month} ${o.formats.year}`}=s,T=ce(s,HZ),E=s,$=GZ(s),S=(i==null?void 0:i.switchViewButton)??KZ,D=Je({elementType:S,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(x)},ownerState:E,className:$.switchViewButton}),j=(i==null?void 0:i.switchViewIcon)??qZ,F=Je({elementType:j,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:E,className:$.switchViewIcon}),A=ce(F,VZ),R=()=>g(o.addMonths(l,1),"left"),I=()=>g(o.addMonths(l,-1),"right"),L=Zq(l,{disableFuture:u,maxDate:f,timezone:k}),O=Jq(l,{disablePast:d,minDate:m,timezone:k}),_=()=>{if(!(w.length===1||!y||c))if(w.length===2)y(w.find(z=>z!==x)||w[0]);else{const z=w.indexOf(x)!==0?0:1;y(w[z])}};if(w.length===1&&w[0]==="year")return null;const N=o.formatByString(l,M);return p.jsxs(WZ,P({},T,{ownerState:E,className:se($.root,C),ref:n,children:[p.jsxs(UZ,{role:"presentation",onClick:_,ownerState:E,"aria-live":"polite",className:$.labelContainer,children:[p.jsx(rR,{reduceAnimations:v,transKey:N,children:p.jsx(YZ,{id:b,ownerState:E,className:$.label,children:N})}),w.length>1&&!c&&p.jsx(S,P({},D,{children:p.jsx(j,P({},A))}))]}),p.jsx(iu,{in:x==="day",children:p.jsx(Yq,{slots:i,slotProps:a,onGoToPrevious:I,isPreviousDisabled:O,previousLabel:r.previousMonth,onGoToNext:R,isNextDisabled:L,nextLabel:r.nextMonth})})]}))}),QZ="@media (prefers-reduced-motion: reduce)",fc=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),cP=fc&&fc[1]?parseInt(fc[1],10):null,uP=fc&&fc[2]?parseInt(fc[2],10):null,ZZ=cP&&cP<10||uP&&uP<13||!1,sR=()=>T$(QZ,{defaultMatches:!1})||ZZ,JZ=e=>ve("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const eJ=["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"],tJ=e=>{const{classes:t}=e;return le({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},JZ,t)};function nJ(e,t){const n=Gt(),r=Uf(),o=sR(),s=yt({props:e,name:t});return P({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>p.jsx("span",{children:"..."})),minDate:Co(n,s.minDate,r.minDate),maxDate:Co(n,s.maxDate,r.maxDate)})}const rJ=Q(tX,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Mw}),oJ=Q(rR,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),sJ=h.forwardRef(function(t,n){const r=Gt(),o=pt(),s=nJ(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:m,onYearChange:g,onMonthChange:y,reduceAnimations:x,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:b,view:C,views:k,openTo:M,className:T,disabled:E,readOnly:$,minDate:S,maxDate:D,disableHighlightToday:j,focusedView:F,onFocusedViewChange:A,showDaysOutsideCurrentMonth:R,fixedWeekNumber:I,dayOfWeekFormatter:L,slots:O,slotProps:_,loading:N,renderLoading:z,displayWeekNumber:U,yearsOrder:J,yearsPerRow:Y,monthsPerRow:B,timezone:W}=s,te=ce(s,eJ),{value:X,handleValueChange:q,timezone:G}=Dw({name:"DateCalendar",timezone:W,value:l,defaultValue:c,onChange:m,valueManager:bs}),{view:ee,setView:H,focusedView:Z,setFocusedView:ne,goToNextView:oe,setValueAndGoToNextView:re}=O$({view:C,views:k,openTo:M,onChange:q,onViewChange:a,autoFocus:i,focusedView:F,onFocusedViewChange:A}),{referenceDate:ue,calendarState:ie,changeFocusedDay:be,changeMonth:Te,handleChangeMonth:Fe,isDateDisabled:Xe,onMonthSwitchingAnimationEnd:Pe}=UQ({value:X,referenceDate:u,reduceAnimations:x,onMonthChange:y,minDate:S,maxDate:D,shouldDisableDate:v,disablePast:f,disableFuture:d,timezone:G}),Ie=E&&X||S,Be=E&&X||D,Ge=`${o}-grid-label`,Ae=Z!==null,Oe=(O==null?void 0:O.calendarHeader)??XZ,He=Je({elementType:Oe,externalSlotProps:_==null?void 0:_.calendarHeader,additionalProps:{views:k,view:ee,currentMonth:ie.currentMonth,onViewChange:H,onMonthChange:(it,At)=>Fe({newMonth:it,direction:At}),minDate:Ie,maxDate:Be,disabled:E,disablePast:f,disableFuture:d,reduceAnimations:x,timezone:G,labelId:Ge},ownerState:s}),Ee=ye(it=>{const At=r.startOfMonth(it),on=r.endOfMonth(it),Zt=Xe(it)?Md({utils:r,date:it,minDate:r.isBefore(S,At)?At:S,maxDate:r.isAfter(D,on)?on:D,disablePast:f,disableFuture:d,isDateDisabled:Xe,timezone:G}):it;Zt?(re(Zt,"finish"),y==null||y(At)):(oe(),Te(At)),be(Zt,!0)}),Me=ye(it=>{const At=r.startOfYear(it),on=r.endOfYear(it),Zt=Xe(it)?Md({utils:r,date:it,minDate:r.isBefore(S,At)?At:S,maxDate:r.isAfter(D,on)?on:D,disablePast:f,disableFuture:d,isDateDisabled:Xe,timezone:G}):it;Zt?(re(Zt,"finish"),g==null||g(Zt)):(oe(),Te(At)),be(Zt,!0)}),Ve=ye(it=>q(it&&$m(r,it,X??ue),"finish",ee));h.useEffect(()=>{X!=null&&r.isValid(X)&&Te(X)},[X]);const bt=s,ge=tJ(bt),De={disablePast:f,disableFuture:d,maxDate:D,minDate:S},qe={disableHighlightToday:j,readOnly:$,disabled:E,timezone:G,gridLabelId:Ge,slots:O,slotProps:_},ft=h.useRef(ee);h.useEffect(()=>{ft.current!==ee&&(Z===ft.current&&ne(ee,!0),ft.current=ee)},[Z,ne,ee]);const Yn=h.useMemo(()=>[X],[X]);return p.jsxs(rJ,P({ref:n,className:se(ge.root,T),ownerState:bt},te,{children:[p.jsx(Oe,P({},He,{slots:O,slotProps:_})),p.jsx(oJ,{reduceAnimations:x,className:ge.viewTransitionContainer,transKey:ee,ownerState:bt,children:p.jsxs("div",{children:[ee==="year"&&p.jsx(NZ,P({},De,qe,{value:X,onChange:Me,shouldDisableYear:b,hasFocus:Ae,onFocusedViewChange:it=>ne("year",it),yearsOrder:J,yearsPerRow:Y,referenceDate:ue})),ee==="month"&&p.jsx(IZ,P({},De,qe,{hasFocus:Ae,className:T,value:X,onChange:Ee,shouldDisableMonth:w,onFocusedViewChange:it=>ne("month",it),monthsPerRow:B,referenceDate:ue})),ee==="day"&&p.jsx(mZ,P({},ie,De,qe,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:be,reduceAnimations:x,selectedDays:Yn,onSelectedDaysChange:Ve,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:b,hasFocus:Ae,onFocusedViewChange:it=>ne("day",it),showDaysOutsideCurrentMonth:R,fixedWeekNumber:I,dayOfWeekFormatter:L,displayWeekNumber:U,loading:N,renderLoading:z}))]})})]}))});function iJ(e){return ve("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const aJ=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],lJ=e=>{const{classes:t,isLandscape:n}=e;return le({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},iJ,t)},cJ=Q("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"}}]})),uJ=Q("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"}}]}),dJ=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ce(r,aJ),u=r,d=lJ(u);return a?null:p.jsxs(cJ,P({ref:n,className:se(d.root,s),ownerState:u},c,{children:[p.jsx(we,{color:"text.secondary",variant:"overline",id:l,children:i}),p.jsx(uJ,{className:d.content,ownerState:u,children:o})]}))});function fJ(e){return ve("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const pJ=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],hJ=e=>{const{classes:t}=e;return le({root:["root"],title:["title"]},fJ,t)},mJ=Q(dJ,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gJ=Q(we,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),yJ=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ce(r,pJ),d=Gt(),f=si(),m=hJ(r),g=h.useMemo(()=>{if(!o)return a;const x=Ew(d,{format:i,views:l},!0);return d.formatByString(o,x)},[o,i,a,d,l]),y=r;return p.jsx(mJ,P({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:s,className:se(m.root,c)},u,{children:p.jsx(gJ,{variant:"h4",align:s?"left":"center",ownerState:y,className:m.title,children:g})}))});function iR(e,t){const n=Gt(),r=Uf(),o=yt({props:e,name:t}),s=h.useMemo(()=>{var i;return((i=o.localeText)==null?void 0:i.toolbarTitle)==null?o.localeText:P({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return P({},o,{localeText:s},Kq({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Co(n,o.minDate,r.minDate),maxDate:Co(n,o.maxDate,r.maxDate),slots:P({toolbar:yJ},o.slots)})}function vJ(e){return ve("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const xJ=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],bJ=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},vJ,t)},wJ=Q(oi,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),CJ=Q(Io,{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 SJ(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=ye(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=_t(o.current);if(!o.current||"clientX"in l&&SJ(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)}),a=()=>{r.current=!0};return h.useEffect(()=>{if(e){const l=_t(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),h.useEffect(()=>{if(e){const l=_t(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const PJ=h.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ce(e,xJ),d=P({},o,{placement:r}),f=Je({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return p.jsx(n,P({},u,f,{onClick:m=>{var g;l(m),(g=f.onClick)==null||g.call(f,m)},onTouchStart:m=>{var g;c(m),(g=f.onTouchStart)==null||g.call(f,m)},ownerState:d,children:s}))});function MJ(e){const t=yt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:m}=t;h.useEffect(()=>{function R(I){l&&I.key==="Escape"&&a()}return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[a,l]);const g=h.useRef(null);h.useEffect(()=>{c==="tooltip"||s&&!s()||(l?g.current=$r(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,s]);const[y,x,v]=kJ(l,i??a),w=h.useRef(null),b=et(w,o),C=et(b,y),k=t,M=bJ(k),T=sR(),E=m??T,$=R=>{R.key==="Escape"&&(R.stopPropagation(),a())},S=(d==null?void 0:d.desktopTransition)??E?iu:Ha,D=(d==null?void 0:d.desktopTrapFocus)??uw,j=(d==null?void 0:d.desktopPaper)??CJ,F=(d==null?void 0:d.popper)??wJ,A=Je({elementType:F,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:$},className:M.root,ownerState:t});return p.jsx(F,P({},A,{children:({TransitionProps:R,placement:I})=>p.jsx(D,P({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:p.jsx(S,P({},R,f==null?void 0:f.desktopTransition,{children:p.jsx(PJ,{PaperComponent:j,ownerState:k,popperPlacement:I,ref:C,onPaperClick:x,onPaperTouchStart:v,paperClasses:M.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const IJ=({open:e,onOpen:t,onClose:n})=>{const r=h.useRef(typeof e=="boolean").current,[o,s]=h.useState(!1);h.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=h.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},EJ=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},TJ=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},DJ=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},$J=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u}=e,{current:d}=h.useRef(l),{current:f}=h.useRef(a!==void 0),m=Gt(),g=ol(),{isOpen:y,setIsOpen:x}=IJ(e),{timezone:v,value:w,handleValueChange:b}=Tw({timezone:u,value:a,defaultValue:d,onChange:i,valueManager:t}),[C,k]=h.useState(()=>{let B;return w!==void 0?B=w:d!==void 0?B=d:B=t.emptyValue,{draft:B,lastPublishedValue:B,lastCommittedValue:B,lastControlledValue:w,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:M}=U$({props:e,validator:o,timezone:v,value:C.draft,onError:e.onError}),T=ye(B=>{const W={action:B,dateState:C,hasChanged:H=>!t.areValuesEqual(m,B.value,H),isControlled:f,closeOnSelect:c},te=EJ(W),X=TJ(W),q=DJ(W);k(H=>P({},H,{draft:B.value,lastPublishedValue:te?B.value:H.lastPublishedValue,lastCommittedValue:X?B.value:H.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let G=null;const ee=()=>(G||(G={validationError:B.name==="setValueFromField"?B.context.validationError:M(B.value)},B.name==="setValueFromShortcut"&&(G.shortcut=B.shortcut)),G);te&&b(B.value,ee()),X&&s&&s(B.value,ee()),q&&x(!1)});if(w!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(m,C.lastControlledValue,w))){const B=t.areValuesEqual(m,C.draft,w);k(W=>P({},W,{lastControlledValue:w},B?{}:{lastCommittedValue:w,lastPublishedValue:w,draft:w,hasBeenModifiedSinceMount:!0}))}const E=ye(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),$=ye(()=>{T({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),S=ye(()=>{T({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),D=ye(()=>{T({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=ye(()=>{T({value:t.getTodayValue(m,v,n),name:"setValueFromAction",pickerAction:"today"})}),F=ye(B=>{B.preventDefault(),x(!0)}),A=ye(B=>{B==null||B.preventDefault(),x(!1)}),R=ye((B,W="partial")=>T({name:"setValueFromView",value:B,selectionState:W})),I=ye((B,W,te)=>T({name:"setValueFromShortcut",value:B,changeImportance:W,shortcut:te})),L=ye((B,W)=>T({name:"setValueFromField",value:B,context:W})),O={onClear:E,onAccept:$,onDismiss:S,onCancel:D,onSetToday:j,onOpen:F,onClose:A},_={value:C.draft,onChange:L},N=h.useMemo(()=>t.cleanValue(m,C.draft),[m,t,C.draft]),z={value:N,onChange:R,onClose:A,open:y},J=P({},O,{value:N,onChange:R,onSelectShortcut:I,isValid:B=>{const W=o({adapter:g,value:B,timezone:v,props:e});return!t.hasError(W)}}),Y=h.useMemo(()=>({onOpen:F,onClose:A,open:y}),[y,A,F]);return{open:y,fieldProps:_,viewProps:z,layoutProps:J,actions:O,contextValue:Y}},RJ=["className","sx"],AJ=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:m,timezone:g}=e,y=ce(e,RJ),{view:x,setView:v,defaultView:w,focusedView:b,setFocusedView:C,setValueAndGoToNextView:k}=O$({view:c,views:u,openTo:d,onChange:i,onViewChange:f,autoFocus:r}),{hasUIView:M,viewModeLookup:T}=h.useMemo(()=>u.reduce((A,R)=>{let I;return m[R]!=null?I="UI":I="field",A.viewModeLookup[R]=I,I==="UI"&&(A.hasUIView=!0),A},{hasUIView:!1,viewModeLookup:{}}),[m,u]),E=h.useMemo(()=>u.reduce((A,R)=>m[R]!=null&&Xq(R)?A+1:A,0),[m,u]),$=T[x],S=ye(()=>$==="UI"),[D,j]=h.useState($==="UI"?x:null);return D!==x&&T[x]==="UI"&&j(x),ot(()=>{$==="field"&&a&&(l(),setTimeout(()=>{var A,R;(A=s==null?void 0:s.current)==null||A.setSelectedSections(x),(R=s==null?void 0:s.current)==null||R.focusField(x)}))},[x]),ot(()=>{if(!a)return;let A=x;$==="field"&&D!=null&&(A=D),A!==w&&T[A]==="UI"&&T[w]==="UI"&&(A=w),A!==x&&v(A),C(A,!0)},[a]),{hasUIView:M,shouldRestoreFocus:S,layoutProps:{views:u,view:D,onViewChange:v},renderCurrentView:()=>{if(D==null)return null;const A=m[D];if(A==null)return null;const R=P({},y,n,t,{views:u,timezone:g,onChange:k,view:D,onViewChange:v,focusedView:b,onFocusedViewChange:C,showViewSwitcher:E>1,timeViewsCount:E});return o?o(m,D,R):A(R)}}};function dP(){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 OJ=(e,t)=>{const[n,r]=h.useState(dP);return ot(()=>{const s=()=>{r(dP())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),SX(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},jJ=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=OJ(n.views,o),i=Nt();return{layoutProps:P({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function FJ(e){const{props:t,pickerValueResponse:n}=e;return h.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 aR=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=$J({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=AJ({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=jJ({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=FJ({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 lR(e){return ve("MuiPickersLayout",e)}const la=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),LJ=["onAccept","onClear","onCancel","onSetToday","actions"];function _J(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ce(e,LJ),a=si();if(s==null||s.length===0)return null;const l=s==null?void 0:s.map(c=>{switch(c){case"clear":return p.jsx(ut,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return p.jsx(ut,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return p.jsx(ut,{onClick:t,children:a.okButtonLabel},c);case"today":return p.jsx(ut,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return p.jsx(u$,P({},i,{children:l}))}const NJ=["items","changeImportance","isLandscape","onChange","isValid"],zJ=["getValue"];function BJ(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ce(e,NJ);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ce(a,zJ);const u=l({isValid:o});return P({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return p.jsx(QD,P({dense:!0,sx:[{maxHeight:Mw,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>p.jsx(WK,{children:p.jsx(as,P({},a))},a.id??a.label))}))}function HJ(e){return e.view!==null}const VJ=e=>{const{classes:t,isLandscape:n}=e;return le({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},lR,t)},GJ=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:m,disabled:g,readOnly:y,children:x,slots:v,slotProps:w}=e,b=VJ(e),C=(v==null?void 0:v.actionBar)??_J,k=Je({elementType:C,externalSlotProps:w==null?void 0:w.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:b.actionBar,ownerState:P({},e,{wrapperVariant:t})}),M=p.jsx(C,P({},k)),T=v==null?void 0:v.toolbar,E=Je({elementType:T,externalSlotProps:w==null?void 0:w.toolbar,additionalProps:{isLandscape:m,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:g,readOnly:y},className:b.toolbar,ownerState:P({},e,{wrapperVariant:t})}),$=HJ(E)&&T?p.jsx(T,P({},E)):null,S=x,D=v==null?void 0:v.tabs,j=i&&D?p.jsx(D,P({view:i,onViewChange:l,className:b.tabs},w==null?void 0:w.tabs)):null,F=(v==null?void 0:v.shortcuts)??BJ,A=Je({elementType:F,externalSlotProps:w==null?void 0:w.shortcuts,additionalProps:{isValid:f,isLandscape:m,onChange:d},className:b.shortcuts,ownerState:{isValid:f,isLandscape:m,onChange:d,wrapperVariant:t}}),R=i&&F?p.jsx(F,P({},A)):null;return{toolbar:$,content:S,tabs:j,actionBar:M,shortcuts:R}},WJ=e=>{const{isLandscape:t,classes:n}=e;return le({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},lR,n)},UJ=Q("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${la.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${la.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${la.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${la.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${la.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${la.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${la.shortcuts}`]:{gridColumn:3}}}]}),YJ=Q("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),cR=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=GJ(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,m=WJ(r);return p.jsxs(UJ,{ref:n,sx:c,className:se(m.root,u),ownerState:r,children:[d?l:o,d?o:l,p.jsx(YJ,{className:m.contentWrapper,children:f==="desktop"?p.jsxs(h.Fragment,{children:[s,i]}):p.jsxs(h.Fragment,{children:[i,s]})}),a]})}),KJ=["props","getOpenDialogAriaText"],qJ=["ownerState"],XJ=["ownerState"],QJ=e=>{var oe;let{props:t,getOpenDialogAriaText:n}=e,r=ce(e,KJ);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:m,name:g,label:y,inputRef:x,readOnly:v,disabled:w,autoFocus:b,localeText:C,reduceAnimations:k}=t,M=h.useRef(null),T=h.useRef(null),E=pt(),$=((oe=s==null?void 0:s.toolbar)==null?void 0:oe.hidden)??!1,{open:S,actions:D,hasUIView:j,layoutProps:F,renderCurrentView:A,shouldRestoreFocus:R,fieldProps:I,contextValue:L,ownerState:O}=aR(P({},r,{props:t,fieldRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),_=o.inputAdornment??y0,N=Je({elementType:_,externalSlotProps:s==null?void 0:s.inputAdornment,additionalProps:{position:"end"},ownerState:t}),z=ce(N,qJ),U=o.openPickerButton??gn,J=Je({elementType:U,externalSlotProps:s==null?void 0:s.openPickerButton,additionalProps:{disabled:w||v,onClick:S?D.onClose:D.onOpen,"aria-label":n(I.value),edge:z.position},ownerState:t}),Y=ce(J,XJ),B=o.openPickerIcon,W=Je({elementType:B,externalSlotProps:s==null?void 0:s.openPickerIcon,ownerState:O}),te=o.field,X=Je({elementType:te,externalSlotProps:s==null?void 0:s.field,additionalProps:P({},I,$&&{id:E},{readOnly:v,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:m,label:y,name:g,autoFocus:b&&!t.open,focused:S?!0:void 0},x?{inputRef:x}:{}),ownerState:t});j&&(X.InputProps=P({},X.InputProps,{ref:M},!t.disableOpenPicker&&{[`${z.position}Adornment`]:p.jsx(_,P({},z,{children:p.jsx(U,P({},Y,{children:p.jsx(B,P({},W))}))}))}));const q=P({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},X.slots),G=o.layout??cR;let ee=E;$&&(y?ee=`${E}-label`:ee=void 0);const H=P({},s,{toolbar:P({},s==null?void 0:s.toolbar,{titleId:E}),popper:P({"aria-labelledby":ee},s==null?void 0:s.popper)}),Z=et(T,X.unstableFieldRef);return{renderPicker:()=>p.jsxs(Y$,{contextValue:L,localeText:C,children:[p.jsx(te,P({},X,{slots:q,slotProps:H,unstableFieldRef:Z})),p.jsx(MJ,P({role:"dialog",placement:"bottom-start",anchorEl:M.current},D,{open:S,slots:o,slotProps:H,shouldRestoreFocus:R,reduceAnimations:k,children:p.jsx(G,P({},F,H==null?void 0:H.layout,{slots:o,slotProps:H,children:A()}))}))]})}},pc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:v,reduceAnimations:w,onMonthChange:b,monthsPerRow:C,onYearChange:k,yearsOrder:M,yearsPerRow:T,slots:E,slotProps:$,loading:S,renderLoading:D,disableHighlightToday:j,readOnly:F,disabled:A,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:I,sx:L,autoFocus:O,fixedWeekNumber:_,displayWeekNumber:N,timezone:z})=>p.jsx(sJ,{view:e,onViewChange:t,views:n.filter(tP),focusedView:r&&tP(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:v,reduceAnimations:w,onMonthChange:b,monthsPerRow:C,onYearChange:k,yearsOrder:M,yearsPerRow:T,slots:E,slotProps:$,loading:S,renderLoading:D,disableHighlightToday:j,readOnly:F,disabled:A,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:I,sx:L,autoFocus:O,fixedWeekNumber:_,displayWeekNumber:N,timezone:z}),uR=h.forwardRef(function(t,n){var c,u;const r=si(),o=Gt(),s=iR(t,"MuiDesktopDatePicker"),i=P({day:pc,month:pc,year:pc},s.viewRenderers),a=P({},s,{viewRenderers:i,format:Ew(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:P({openPickerIcon:_q,field:tR},s.slots),slotProps:P({},s.slotProps,{field:d=>{var f;return P({},r0((f=s.slotProps)==null?void 0:f.field,d),W$(s),{ref:n})},toolbar:P({hidden:!0},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=QJ({props:a,valueManager:bs,valueType:"date",getOpenDialogAriaText:R$({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=a.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Yf});return l()});uR.propTypes={autoFocus:V.bool,className:V.string,closeOnSelect:V.bool,dayOfWeekFormatter:V.func,defaultValue:V.object,disabled:V.bool,disableFuture:V.bool,disableHighlightToday:V.bool,disableOpenPicker:V.bool,disablePast:V.bool,displayWeekNumber:V.bool,enableAccessibleFieldDOMStructure:V.any,fixedWeekNumber:V.number,format:V.string,formatDensity:V.oneOf(["dense","spacious"]),inputRef:nD,label:V.node,loading:V.bool,localeText:V.object,maxDate:V.object,minDate:V.object,monthsPerRow:V.oneOf([3,4]),name:V.string,onAccept:V.func,onChange:V.func,onClose:V.func,onError:V.func,onMonthChange:V.func,onOpen:V.func,onSelectedSectionsChange:V.func,onViewChange:V.func,onYearChange:V.func,open:V.bool,openTo:V.oneOf(["day","month","year"]),orientation:V.oneOf(["landscape","portrait"]),readOnly:V.bool,reduceAnimations:V.bool,referenceDate:V.object,renderLoading:V.func,selectedSections:V.oneOfType([V.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),V.number]),shouldDisableDate:V.func,shouldDisableMonth:V.func,shouldDisableYear:V.func,showDaysOutsideCurrentMonth:V.bool,slotProps:V.object,slots:V.object,sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),timezone:V.string,value:V.object,view:V.oneOf(["day","month","year"]),viewRenderers:V.shape({day:V.func,month:V.func,year:V.func}),views:V.arrayOf(V.oneOf(["day","month","year"]).isRequired),yearsOrder:V.oneOf(["asc","desc"]),yearsPerRow:V.oneOf([3,4])};const ZJ=Q(c$)({[`& .${Sd.container}`]:{outline:0},[`& .${Sd.paper}`]:{outline:0,minWidth:w0}}),JJ=Q(d$)({"&:first-of-type":{padding:0}});function eee(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=(o==null?void 0:o.dialog)??ZJ,a=(o==null?void 0:o.mobileTransition)??iu;return p.jsx(i,P({open:r,onClose:n},s==null?void 0:s.dialog,{TransitionComponent:a,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:p.jsx(JJ,{children:t})}))}const tee=["props","getOpenDialogAriaText"],nee=e=>{var z;let{props:t,getOpenDialogAriaText:n}=e,r=ce(e,tee);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:m,name:g,label:y,inputRef:x,readOnly:v,disabled:w,localeText:b}=t,C=h.useRef(null),k=pt(),M=((z=s==null?void 0:s.toolbar)==null?void 0:z.hidden)??!1,{open:T,actions:E,layoutProps:$,renderCurrentView:S,fieldProps:D,contextValue:j}=aR(P({},r,{props:t,fieldRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=o.field,A=Je({elementType:F,externalSlotProps:s==null?void 0:s.field,additionalProps:P({},D,M&&{id:k},!(w||v)&&{onClick:E.onOpen,onKeyDown:kX(E.onOpen)},{readOnly:v??!0,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:m,label:y,name:g},x?{inputRef:x}:{}),ownerState:t});A.inputProps=P({},A.inputProps,{"aria-label":n(D.value)});const R=P({textField:o.textField},A.slots),I=o.layout??cR;let L=k;M&&(y?L=`${k}-label`:L=void 0);const O=P({},s,{toolbar:P({},s==null?void 0:s.toolbar,{titleId:k}),mobilePaper:P({"aria-labelledby":L},s==null?void 0:s.mobilePaper)}),_=et(C,A.unstableFieldRef);return{renderPicker:()=>p.jsxs(Y$,{contextValue:j,localeText:b,children:[p.jsx(F,P({},A,{slots:R,slotProps:O,unstableFieldRef:_})),p.jsx(eee,P({},E,{open:T,slots:o,slotProps:O,children:p.jsx(I,P({},$,O==null?void 0:O.layout,{slots:o,slotProps:O,children:S()}))}))]})}},dR=h.forwardRef(function(t,n){var c,u;const r=si(),o=Gt(),s=iR(t,"MuiMobileDatePicker"),i=P({day:pc,month:pc,year:pc},s.viewRenderers),a=P({},s,{viewRenderers:i,format:Ew(o,s,!1),slots:P({field:tR},s.slots),slotProps:P({},s.slotProps,{field:d=>{var f;return P({},r0((f=s.slotProps)==null?void 0:f.field,d),W$(s),{ref:n})},toolbar:P({hidden:!1},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=nee({props:a,valueManager:bs,valueType:"date",getOpenDialogAriaText:R$({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=a.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Yf});return l()});dR.propTypes={autoFocus:V.bool,className:V.string,closeOnSelect:V.bool,dayOfWeekFormatter:V.func,defaultValue:V.object,disabled:V.bool,disableFuture:V.bool,disableHighlightToday:V.bool,disableOpenPicker:V.bool,disablePast:V.bool,displayWeekNumber:V.bool,enableAccessibleFieldDOMStructure:V.any,fixedWeekNumber:V.number,format:V.string,formatDensity:V.oneOf(["dense","spacious"]),inputRef:nD,label:V.node,loading:V.bool,localeText:V.object,maxDate:V.object,minDate:V.object,monthsPerRow:V.oneOf([3,4]),name:V.string,onAccept:V.func,onChange:V.func,onClose:V.func,onError:V.func,onMonthChange:V.func,onOpen:V.func,onSelectedSectionsChange:V.func,onViewChange:V.func,onYearChange:V.func,open:V.bool,openTo:V.oneOf(["day","month","year"]),orientation:V.oneOf(["landscape","portrait"]),readOnly:V.bool,reduceAnimations:V.bool,referenceDate:V.object,renderLoading:V.func,selectedSections:V.oneOfType([V.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),V.number]),shouldDisableDate:V.func,shouldDisableMonth:V.func,shouldDisableYear:V.func,showDaysOutsideCurrentMonth:V.bool,slotProps:V.object,slots:V.object,sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),timezone:V.string,value:V.object,view:V.oneOf(["day","month","year"]),viewRenderers:V.shape({day:V.func,month:V.func,year:V.func}),views:V.arrayOf(V.oneOf(["day","month","year"]).isRequired),yearsOrder:V.oneOf(["asc","desc"]),yearsPerRow:V.oneOf([3,4])};const ree=["desktopModeMediaQuery"],So=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=PX}=r,s=ce(r,ree);return T$(o,{defaultMatches:!0})?p.jsx(uR,P({ref:n},s)):p.jsx(dR,P({ref:n},s))});var fR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qc,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",m="year",g="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var R=["th","st","nd","rd"],I=A%100;return"["+A+(R[(I-20)%10]||R[I]||R[0])+"]"}},b=function(A,R,I){var L=String(A);return!L||L.length>=R?A:""+Array(R+1-L.length).join(I)+A},C={s:b,z:function(A){var R=-A.utcOffset(),I=Math.abs(R),L=Math.floor(I/60),O=I%60;return(R<=0?"+":"-")+b(L,2,"0")+":"+b(O,2,"0")},m:function A(R,I){if(R.date()1)return A(N[0])}else{var z=R.name;M[z]=R,O=z}return!L&&O&&(k=O),O||!L&&k},S=function(A,R){if(E(A))return A.clone();var I=typeof R=="object"?R:{};return I.date=A,I.args=arguments,new j(I)},D=C;D.l=$,D.i=E,D.w=function(A,R){return S(A,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var j=function(){function A(I){this.$L=$(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[T]=!0}var R=A.prototype;return R.parse=function(I){this.$d=function(L){var O=L.date,_=L.utc;if(O===null)return new Date(NaN);if(D.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var N=O.match(x);if(N){var z=N[2]-1||0,U=(N[7]||"0").substring(0,3);return _?new Date(Date.UTC(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)):new Date(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)}}return new Date(O)}(I),this.init()},R.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},R.$utils=function(){return D},R.isValid=function(){return this.$d.toString()!==y},R.isSame=function(I,L){var O=S(I);return this.startOf(L)<=O&&O<=this.endOf(L)},R.isAfter=function(I,L){return S(I)25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var f=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(f,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(pR);var see=pR.exports;const iee=ei(see);var hR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qc,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(x){return(x=+x)+(x>68?1900:2e3)},u=function(x){return function(v){this[x]=+v}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(x)}],f=function(x){var v=l[x];return v&&(v.indexOf?v:v.s.concat(v.f))},m=function(x,v){var w,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(x.indexOf(b(C,0,v))>-1){w=C>12;break}}else w=x===(v?"pm":"PM");return w},g={A:[a,function(x){this.afternoon=m(x,!1)}],a:[a,function(x){this.afternoon=m(x,!0)}],Q:[o,function(x){this.month=3*(x-1)+1}],S:[o,function(x){this.milliseconds=100*+x}],SS:[s,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(x){var v=l.ordinal,w=x.match(/\d+/);if(this.day=w[0],v)for(var b=1;b<=31;b+=1)v(b).replace(/\[|\]/g,"")===x&&(this.day=b)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(x){var v=f("months"),w=(f("monthsShort")||v.map(function(b){return b.slice(0,3)})).indexOf(x)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(x){var v=f("months").indexOf(x)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(x){this.year=c(x)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function y(x){var v,w;v=x,w=l&&l.formats;for(var b=(x=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,D,j){var F=j&&j.toUpperCase();return D||w[j]||n[j]||w[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,R,I){return R||I.slice(1)})})).match(r),C=b.length,k=0;k-1)return new Date((O==="X"?1e3:1)*L);var z=y(O)(L),U=z.year,J=z.month,Y=z.day,B=z.hours,W=z.minutes,te=z.seconds,X=z.milliseconds,q=z.zone,G=z.week,ee=new Date,H=Y||(U||J?1:ee.getDate()),Z=U||ee.getFullYear(),ne=0;U&&!J||(ne=J>0?J-1:ee.getMonth());var oe,re=B||0,ue=W||0,ie=te||0,be=X||0;return q?new Date(Date.UTC(Z,ne,H,re,ue,ie,be+60*q.offset*1e3)):_?new Date(Date.UTC(Z,ne,H,re,ue,ie,be)):(oe=new Date(Z,ne,H,re,ue,ie,be),G&&(oe=N(oe).week(G).toDate()),oe)}catch{return new Date("")}}(M,$,T,w),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),j&&M!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var A=$.length,R=1;R<=A;R+=1){E[1]=$[R-1];var I=w.apply(this,E);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}R===A&&(this.$d=new Date(""))}else C.call(this,k)}}})})(hR);var aee=hR.exports;const lee=ei(aee);var mR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qc,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,g,y){var x=y&&y.toUpperCase();return g||f[y]||n[y]||f[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,w,b){return w||b.slice(1)})})}(l,c===void 0?{}:c);return a.call(this,u)}}})})(mR);var cee=mR.exports;const uee=ei(cee);var gR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qc,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(f?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(f?this.isAfter(u,a):!this.isBefore(u,a))}}})})(gR);var dee=gR.exports;const fee=ei(dee);var yR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qc,function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}});return s.bind(this)(u)}}})})(yR);var pee=yR.exports;const hee=ei(pee);Ut.extend(uee);Ut.extend(iee);Ut.extend(fee);Ut.extend(hee);const mee={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},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",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",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"},gee={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},ev=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),fP=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),yee=(e,t)=>t?(...n)=>e(...n).locale(t):e;class lu{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=mee,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Ut.utc<"u",this.hasTimezonePlugin=()=>typeof Ut.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ut.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Ut.tz.guess();return o!=="UTC"?Ut.tz(r,o):Ut(r)}return Ut(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(ev);return Ut.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(ev);if(!this.hasTimezonePlugin())throw new Error(fP);const s=r!==void 0&&!r.endsWith("Z");return Ut(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=Ut.Ls,o=this.locale||"en";let s=r[o];return s===void 0&&(s=r.en),s.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const s=r.tz(this.cleanTimezone(o),!0);if(s.$offset===(r.$offset??0))return r;r.$offset=s.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let s;return o==="UTC"?s=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(r):s=this.createTZDate(r,o),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Ut(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const s=(o=r.$x)==null?void 0:o.$timezone;if(s)return s}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(ev);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(fP)}return Ut.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),s=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,l)=>{const c=l&&l.toUpperCase();return a||o[l]||s(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=s,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),s=this.endOfWeek(this.endOfMonth(r));let i=0,a=o;const l=[];for(;ar.week(),this.getYearRange=([r,o])=>{const s=this.startOfYear(r),i=this.endOfYear(o),a=[];let l=s;for(;this.isBefore(l,i);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=yee(Ut,t),this.locale=t,this.formats=P({},gee,n),Ut.extend(lee)}getDayOfWeek(t){return t.day()+1}}const vR=h.createContext(void 0);function Qe(){const e=h.useContext(vR);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 xR=h.createContext(void 0),_e=()=>{const e=h.useContext(xR);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},vee=Object.is;function bR(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,!vee(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function ea(e){return h.memo(e,bR)}const xee={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",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 lt(e){return ve("MuiDataGrid",e)}const K=me("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","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"]),pP=1e3;class bee{constructor(t=pP){this.timeouts=new Map,this.cleanupTimeout=pP,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 wee{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 yo=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(yo||{});class Cee{}function See(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new wee:new bee);const[a]=h.useState(new Cee),l=h.useRef(null),c=h.useRef();c.current=s;const u=h.useRef(null);if(!l.current&&c.current){const d=(f,m,g)=>{var y;m.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,m,g)};l.current=r.current.subscribeEvent(o,d,i),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{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));h.useEffect(()=>{if(!l.current&&c.current){const d=(f,m,g)=>{var y;m.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,m,g)};l.current=r.current.subscribeEvent(o,d,i)}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,i])}}const kee={registry:null},je=See(kee),Pee={isFirst:!0};function Dt(e,t,n){je(e,t,n,Pee)}function Mee(e){return e.acceptsApiRef}function hP(e,t){return Mee(t)?t(e):t(e.current.state)}const Iee=Object.is,wR=bR,Eee=()=>({state:null,equals:null,selector:null}),he=(e,t,n=Iee)=>{const r=Yo(Eee),o=r.current.selector!==null,[s,i]=h.useState(o?null:hP(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,t0(()=>e.current.store.subscribe(()=>{const a=hP(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,i(a))})),s},Fn=e=>e.dimensions,Tee=LD({memoize:jD,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),mP=new WeakMap;function $l(e){return"current"in e&&"instanceId"in e.current}const Rl={id:"default"},Ye=(e,t,n,r,o,s,...i)=>{i.length>0;let a;if(e&&t&&n&&r&&o&&s)a=(l,c)=>{const u=$l(l),d=c??(u?l.current.instanceId:Rl),f=u?l.current.state:l,m=e(f,d),g=t(f,d),y=n(f,d),x=r(f,d),v=o(f,d);return s(m,g,y,x,v)};else if(e&&t&&n&&r&&o)a=(l,c)=>{const u=$l(l),d=c??(u?l.current.instanceId:Rl),f=u?l.current.state:l,m=e(f,d),g=t(f,d),y=n(f,d),x=r(f,d);return o(m,g,y,x)};else if(e&&t&&n&&r)a=(l,c)=>{const u=$l(l),d=c??(u?l.current.instanceId:Rl),f=u?l.current.state:l,m=e(f,d),g=t(f,d),y=n(f,d);return r(m,g,y)};else if(e&&t&&n)a=(l,c)=>{const u=$l(l),d=c??(u?l.current.instanceId:Rl),f=u?l.current.state:l,m=e(f,d),g=t(f,d);return n(m,g)};else if(e&&t)a=(l,c)=>{const u=$l(l),d=c??(u?l.current.instanceId:Rl),f=u?l.current.state:l,m=e(f,d);return t(m)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},It=(...e)=>{const t=(n,r)=>{const o=$l(n),s=o?n.current.instanceId:r??Rl,i=o?n.current.state:n,a=mP.get(s),l=a??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(i,s);const u=Tee(...e);return a||mP.set(s,l),l.set(e,u),u(i,s)};return t.acceptsApiRef=!0,t},Dee=.7,$ee=1.3,Ree={compact:Dee,comfortable:$ee,standard:1},Ql=e=>e.density,Kf=Ye(Ql,e=>Ree[e]);let $t=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const sx={left:[],right:[]},Aee=e=>e.isRtl,hs=e=>e.columns,zs=Ye(hs,e=>e.orderedFields),ii=Ye(hs,e=>e.lookup),Vo=It(zs,ii,(e,t)=>e.map(n=>t[n])),uo=Ye(hs,e=>e.columnVisibilityModel),fn=It(Vo,uo,(e,t)=>e.filter(n=>t[n.field]!==!1)),cu=It(fn,e=>e.map(t=>t.field)),Oee=e=>e.pinnedColumns,qf=It(hs,Oee,cu,Aee,(e,t,n,r)=>{const o=jee(t,n,r);return{left:o.left.map(i=>e.lookup[i]),right:o.right.map(i=>e.lookup[i])}});function jee(e,t,n){var a,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((l=e.right)==null?void 0:l.length)===0)return sx;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),s=t.filter(c=>!o.includes(c)),i=r(e.right,s);return n?{left:i,right:o}:{left:o,right:i}}const ta=It(fn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),CR=It(Vo,e=>e.filter(t=>t.filterable)),Fee=It(Vo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Lee=It(Vo,e=>e.some(t=>t.colSpan!==void 0)),_ee=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Nee=e=>{const{classes:t}=e;return le({root:["editInputCell"]},lt,t)},zee=Q(au,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Bee=h.forwardRef((e,t)=>{const n=_e(),{id:r,value:o,field:s,colDef:i,hasFocus:a,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=ce(e,_ee),f=Qe(),m=h.useRef(),[g,y]=h.useState(o),x=Nee(n),v=h.useCallback(async b=>{const C=b.target.value;u&&await u(b,C);const k=f.current.getColumn(s);let M=C;k.valueParser&&(M=k.valueParser(C,f.current.getRow(r),k,f)),y(M),f.current.setEditCellValue({id:r,field:s,value:M,debounceMs:l,unstable_skipValueParser:!0},b)},[f,l,s,r,u]),w=f.current.unstable_getEditCellMeta(r,s);return h.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&y(o)},[w,o]),ot(()=>{a&&m.current.focus()},[a]),p.jsx(zee,P({ref:t,inputRef:m,className:x.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:g??"",onChange:v,endAdornment:c?p.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),Hee=e=>p.jsx(Bee,P({},e)),SR=(e,t)=>t&&e.length>1?[e[0]]:e,gP=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:SR(e,t)})}),Vee=e=>e==="desc",Gee=(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=Vee(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator,r?{getSortCellParams:s=>({id:s,field:n.field,rowNode:t.current.getRowNode(s),value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}:null},Wee=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const i=t.params[s],a=n.params[s];return r=o.comparator(i.value,a.value,i,a),r},0),Uee=(e,t)=>{const n=e.map(r=>Gee(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>Wee(n,o,s)).map(o=>o.node.id)},yP=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Fw=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Yee=new Intl.Collator,Kee=(e,t)=>{const n=Fw(e,t);return n!==null?n:typeof e=="string"?Yee.compare(e.toString(),t.toString()):e-t},kR=(e,t)=>{const n=Fw(e,t);return n!==null?n:Number(e)-Number(t)},PR=(e,t)=>{const n=Fw(e,t);return n!==null?n:e>t?1:e{const{value:M}=k.target;g(String(M)),x(!0),f.start(w.filterDebounceMs,()=>{const T=P({},t,{value:r==="number"?Number(M):M,fromInput:v});n(T),x(!1)})},[f,w.filterDebounceMs,t,r,v,n]);return h.useEffect(()=>{(t.fromInput!==v||t.value===void 0)&&g(String(t.value??""))},[v,t]),p.jsx(w.slots.baseTextField,P({id:v,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:b,variant:u,type:r||"text",InputProps:P({},y||l?{endAdornment:y?p.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:a},c,{inputProps:P({tabIndex:i},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},d,(C=w.slotProps)==null?void 0:C.baseTextField))}function Xee(e){return typeof e=="number"&&!Number.isNaN(e)}function MR(e){return typeof e=="function"}function Lw(e){return typeof e=="object"&&e!==null}function Qee(){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 Rm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const ms=(e,t,n)=>Math.max(t,Math.min(n,e));function vP(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function hc(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 s=0;s{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 Jee(e){const t=Zee(e);return(n,r)=>n+(r-n)*t()}function IR(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const ete=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],tte=["key"];function ER(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:a,helperText:l,size:c,variant:u="standard"}=e,d=ce(e,ete),f={color:i,error:a,helperText:l,size:c,variant:u},[m,g]=h.useState(t.value||[]),y=pt(),x=_e();h.useEffect(()=>{const w=t.value??[];g(w.map(String))},[t.value]);const v=h.useCallback((w,b)=>{g(b.map(String)),n(P({},t,{value:[...b.map(C=>r==="number"?Number(C):C)]}))},[n,t,r]);return p.jsx(I$,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,b)=>{const{inputValue:C}=b;return C==null||C===""?[]:[C]},id:y,value:m,onChange:v,renderTags:(w,b)=>w.map((C,k)=>{const M=b({index:k}),{key:T}=M,E=ce(M,tte);return p.jsx(x.slots.baseChip,P({variant:"outlined",size:"small",label:C},E),T)}),renderInput:w=>{var b;return p.jsx(x.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},f,(b=x.slotProps)==null?void 0:b.baseTextField))}},d))}var ws=function(e){return e.Cell="cell",e.Row="row",e}(ws||{}),St=function(e){return e.Edit="edit",e.View="view",e}(St||{}),Tt=function(e){return e.Edit="edit",e.View="view",e}(Tt||{}),Jn=function(e){return e.And="and",e.Or="or",e}(Jn||{}),Ms=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Ms||{}),Oo=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Oo||{}),mi=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(mi||{}),Jo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Jo||{});function TR(e){return e.field!==void 0}const cf=()=>({items:[],logicOperator:Jn.And,quickFilterValues:[],quickFilterLogicOperator:Jn.And});function DR(e){return{current:e.current.getPublicApi()}}let Bu;function nte(){if(Bu!==void 0)return Bu;try{Bu=new Function("return true")()}catch{Bu=!1}return Bu}const ix=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=ii(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},_w=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const s=r&&o.some(a=>a.id==null);return o.some(a=>a.operator==null)||s?P({},e,{items:o.map(a=>ix(a,n))}):e.items!==o?P({},e,{items:o}):e},xP=(e,t,n)=>r=>P({},r,{filterModel:_w(e,t,n)}),uf=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,$R=(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=uf(r));const s=P({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=i.find(d=>d.value===s.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const l=DR(t),c=a.getApplyFilterFn(s,n);return typeof c!="function"?null:{item:s,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=uf(f)),c(f,d,n,l)}}};let bP=1;const rte=(e,t,n)=>{const{items:r}=e,o=r.map(a=>$R(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!nte())return(a,l)=>{const c={};for(let u=0;u`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(` -`)} - -const result$$ = { -${o.map((a,l)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${l} ? false : appliers[${l}].fn(row),`).join(` -`)} -}; - -return result$$;`.replaceAll("$$",String(bP)));return bP+=1,(a,l)=>s(o,a,l)},RR=e=>e.quickFilterExcludeHiddenColumns??!0,ote=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=RR(e)?cu(t):zs(t),o=[],{ignoreDiacritics:s}=t.current.rootProps,i=DR(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=s?uf(d):d;return{fn:u(f,c,i)}})})}),function(c,u){const d={};e:for(let f=0;f{const r=rte(e,t,n),o=ote(e,t);return function(i,a,l){l.passingFilterItems=(r==null?void 0:r(i,a))??null,l.passingQuickFilterValues=(o==null?void 0:o(i,a))??null}},wP=e=>e!=null,ite=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>$R(r,t)!==null)),e.cleanedFilterItems),ate=(e,t,n,r,o)=>{const s=ite(o,r,n.items),i=e.filter(wP),a=t.filter(wP);if(i.length>0){const l=u=>i.some(d=>d[u.id]);if((n.logicOperator??cf().logicOperator)===Jn.And){if(!s.every(l))return!1}else if(!s.some(l))return!1}if(a.length>0&&n.quickFilterValues!=null){const l=u=>a.some(d=>d[u]);if((n.quickFilterLogicOperator??cf().quickFilterLogicOperator)===Jn.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},lte=e=>{if(!e)return null;const t=new RegExp(Rm(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=uf(i)),i!=null?t.test(i.toString()):!1}},CP=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(Rm(r),"i");return s=>{if(s==null)return t;const i=o.test(String(s));return t?!i:i}},SP=(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 s=>{if(s==null)return t;const i=o.compare(r,s.toString())===0;return t?!i:i}},kP=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},cte=(e=!1)=>[{value:"contains",getApplyFilterFn:CP(e,!1),InputComponent:io},{value:"doesNotContain",getApplyFilterFn:CP(e,!0),InputComponent:io},{value:"equals",getApplyFilterFn:SP(e,!1),InputComponent:io},{value:"doesNotEqual",getApplyFilterFn:SP(e,!0),InputComponent:io},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Rm(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:io},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Rm(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:io},{value:"isEmpty",getApplyFilterFn:kP(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:kP(!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(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:ER}],Go={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Kee,type:"string",align:"left",filterOperators:cte(),renderEditCell:Hee,getApplyQuickFilterFn:lte},ute=["open","target","onClose","children","position","className","onExited"],dte=e=>{const{classes:t}=e;return le({root:["menu"]},lt,t)},fte=Q(oi,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${K.menuList}`]:{outline:0}})),pte={"bottom-start":"top left","bottom-end":"top right"};function AR(e){var y;const{open:t,target:n,onClose:r,children:o,position:s,className:i,onExited:a}=e,l=ce(e,ute),c=Qe(),u=_e(),d=dte(u),f=h.useRef(null);ot(()=>{var x,v;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((v=(x=f.current)==null?void 0:x.focus)==null||v.call(x),f.current=null)},[t]),h.useEffect(()=>{const x=t?"menuOpen":"menuClose";c.current.publishEvent(x,{target:n})},[c,t,n]);const m=x=>v=>{x&&x(),a&&a(v)},g=x=>{x.target&&(n===x.target||n!=null&&n.contains(x.target))||r(x)};return p.jsx(fte,P({as:u.slots.basePopper,className:se(d.root,i),ownerState:u,open:t,anchorEl:n,transition:!0,placement:s},l,(y=u.slotProps)==null?void 0:y.basePopper,{children:({TransitionProps:x,placement:v})=>p.jsx(E$,{onClickAway:g,mouseEvent:"onMouseDown",children:p.jsx(Ha,P({},x,{style:{transformOrigin:pte[v]},onExited:m(x==null?void 0:x.onExited),children:p.jsx(Io,{children:o})}))})}))}const hte=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],mte=e=>typeof e.getActions=="function";function gte(e){var R;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:s="bottom-end",focusElementRef:i}=e,a=ce(e,hte),[l,c]=h.useState(-1),[u,d]=h.useState(!1),f=Qe(),m=h.useRef(null),g=h.useRef(null),y=h.useRef(!1),x=h.useRef({}),v=Nt(),w=pt(),b=pt(),C=_e();if(!mte(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const k=t.getActions(f.current.getRowParams(n)),M=k.filter(I=>!I.props.showInMenu),T=k.filter(I=>I.props.showInMenu),E=M.length+(T.length?1:0);h.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([I,L])=>{L==null||L.stop({},()=>{delete x.current[I]})})},[r]),h.useEffect(()=>{if(l<0||!m.current||l>=m.current.children.length)return;m.current.children[l].focus({preventScroll:!0})},[l]),h.useEffect(()=>{r||(c(-1),y.current=!1)},[r]),h.useImperativeHandle(i,()=>({focus(){if(!y.current){const I=k.findIndex(L=>!L.props.disabled);c(I)}}}),[k]),h.useEffect(()=>{l>=E&&c(E-1)},[l,E]);const $=()=>{d(!0),c(E-1),y.current=!0},S=()=>{d(!1)},D=I=>L=>{x.current[I]=L},j=(I,L)=>O=>{c(I),y.current=!0,L&&L(O)},F=I=>{if(E<=1)return;const L=(_,N)=>{var J;if(_<0||_>k.length)return _;const U=(N==="left"?-1:1)*(v?-1:1);return(J=k[_+U])!=null&&J.props.disabled?L(_+U,N):_+U};let O=l;I.key==="ArrowRight"?O=L(l,"right"):I.key==="ArrowLeft"&&(O=L(l,"left")),!(O<0||O>=E)&&O!==l&&(I.preventDefault(),I.stopPropagation(),c(O))},A=I=>{I.key==="Tab"&&I.preventDefault(),["Tab","Escape"].includes(I.key)&&S()};return p.jsxs("div",P({role:"menu",ref:m,tabIndex:-1,className:K.actionsCell,onKeyDown:F},a,{children:[M.map((I,L)=>h.cloneElement(I,{key:L,touchRippleRef:D(L),onClick:j(L,I.props.onClick),tabIndex:l===L?o:-1})),T.length>0&&b&&p.jsx(C.slots.baseIconButton,P({ref:g,id:b,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?w:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:D(b),tabIndex:l===M.length?o:-1},(R=C.slotProps)==null?void 0:R.baseIconButton,{children:p.jsx(C.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&p.jsx(AR,{open:u,target:g.current,position:s,onClose:S,children:p.jsx(pw,{id:w,className:K.menuList,onKeyDown:A,"aria-labelledby":b,variant:"menu",autoFocusItem:!0,children:T.map((I,L)=>h.cloneElement(I,{key:L,closeMenu:S}))})})]}))}const yte=e=>p.jsx(gte,P({},e)),k0="actions",vte=P({},Go,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:yte,getApplyQuickFilterFn:void 0}),Eo=e=>e.rows,P0=Ye(Eo,e=>e.totalRowCount),xte=Ye(Eo,e=>e.loading),bte=Ye(Eo,e=>e.totalTopLevelRowCount),Ii=Ye(Eo,e=>e.dataRowIdToModelLookup),Am=Ye(Eo,e=>e.dataRowIdToIdLookup),Vn=Ye(Eo,e=>e.tree),wte=Ye(Eo,e=>e.groupsToFetch),Cte=Ye(Eo,e=>e.groupingName),PP=Ye(Eo,e=>e.treeDepths),uu=It(Eo,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}),Zp=Ye(Eo,e=>e.dataRowIds),Ste=Ye(Eo,e=>e==null?void 0:e.additionalRowGroups),sl=It(Ste,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??{}})))??[]}}),kte=Ye(sl,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)}),Rn="auto-generated-group-node-root",mc=Symbol("mui.id_autogenerated"),Pte=()=>({type:"group",id:Rn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Mte(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 M0=(e,t,n)=>{const r=t?t(e):e.id;return Mte(r,e,n),r},Oh=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},i={};for(let a=0;a{const n=e[Rn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},jR=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:s})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup,previousGroupsToFetch:s}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:OR({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},Nc=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Nw=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s{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=M0(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,P({},o.get(d),u)):o.set(d,u)});const s={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:P({},e.updates.idToActionLookup),groupKeys:r},i=P({},e.dataRowIdToModelLookup),a=P({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=s.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!i[d])return;f!=null&&(l[f][d]=!0),s.actions.remove.push(d),delete i[d],delete a[d];return}const m=i[d];if(m){f==="remove"?(l.remove[d]=!0,s.actions.modify.push(d)):f==null&&s.actions.modify.push(d),i[d]=P({},m,u);return}f==="remove"?(l.remove[d]=!0,s.actions.insert.push(d)):f==null&&s.actions.insert.push(d),i[d]=u,a[d]=d});const c=Object.keys(l);for(let u=0;u0&&(s.actions[d]=s.actions[d].filter(m=>!f[m]))}return{dataRowIdToModelLookup:i,dataRowIdToIdLookup:a,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Ite(e){var o,s;const t=sl(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((i,a)=>(i+=e.current.unstable_getRowHeight(a.id),i),0))||0,r=((s=t==null?void 0:t.bottom)==null?void 0:s.reduce((i,a)=>(i+=e.current.unstable_getRowHeight(a.id),i),0))||0;return{top:n,bottom:r}}function FR(e){return`var(--DataGrid-overlayHeight, ${2*Fn(e.current.state).rowHeight}px)`}function IP(e,t,n){const r=[];return t.forEach(o=>{const s=M0(o,n,"A row was provided without id when calling updateRows():"),i=e.current.getRowNode(s);if((i==null?void 0:i.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,l=a.idLookup[s];l&&(a.idLookup[s]=P({},l,o))}else r.push(o)}),r}const LR=(e,t,n)=>typeof e=="number"&&e>0?e:t,Ete="__tree_data_group__",_R="__row_group_by_columns_group__",I0="__detail_panel_toggle__",Tte=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],Dte=e=>{const{classes:t}=e;return le({root:["booleanCell"]},lt,t)};function $te(e){const{value:t,rowNode:n}=e,r=ce(e,Tte),o=Qe(),s=_e(),i={classes:s.classes},a=Dte(i),c=he(o,uu)>0&&n.type==="group"&&s.treeData===!1,u=h.useMemo(()=>t?s.slots.booleanCellTrueIcon:s.slots.booleanCellFalseIcon,[s.slots.booleanCellFalseIcon,s.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:p.jsx(u,P({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const Rte=h.memo($te),Ate=e=>e.field!==_R&&Nc(e.rowNode)?"":p.jsx(Rte,P({},e)),Ote=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],jte=e=>{const{classes:t}=e;return le({root:["editBooleanCell"]},lt,t)};function Fte(e){var v;const{id:t,value:n,field:r,className:o,hasFocus:s,onValueChange:i}=e,a=ce(e,Ote),l=Qe(),c=h.useRef(null),u=pt(),[d,f]=h.useState(n),m=_e(),g={classes:m.classes},y=jte(g),x=h.useCallback(async w=>{const b=w.target.checked;i&&await i(w,b),f(b),await l.current.setEditCellValue({id:t,field:r,value:b},w)},[l,r,t,i]);return h.useEffect(()=>{f(n)},[n]),ot(()=>{s&&c.current.focus()},[s]),p.jsx("label",P({htmlFor:u,className:se(y.root,o)},a,{children:p.jsx(m.slots.baseCheckbox,P({id:u,inputRef:c,checked:!!d,onChange:x,size:"small"},(v=m.slotProps)==null?void 0:v.baseCheckbox))}))}const Lte=e=>p.jsx(Fte,P({},e)),_te=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],jh=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},Nte=Q("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function zte(e){var C,k,M;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:s,tabIndex:i,label:a,variant:l="standard"}=e,c=ce(e,_te),[u,d]=h.useState(jh(t.value)),f=_e(),m=pt(),g=pt(),y=((C=f.slotProps)==null?void 0:C.baseSelect)||{},x=y.native??!1,v=((k=f.slotProps)==null?void 0:k.baseSelectOption)||{},w=h.useCallback(T=>{const E=jh(T.target.value);d(E),n(P({},t,{value:E}))},[n,t]);h.useEffect(()=>{d(jh(t.value))},[t.value]);const b=a??r.current.getLocaleText("filterPanelInputLabel");return p.jsxs(Nte,{children:[p.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[p.jsx(f.slots.baseInputLabel,P({},(M=f.slotProps)==null?void 0:M.baseInputLabel,{id:m,shrink:!0,variant:l,children:b})),p.jsxs(f.slots.baseSelect,P({labelId:m,id:g,label:b,value:u===void 0?"":String(u),onChange:w,variant:l,notched:l==="outlined"?!0:void 0,native:x,displayEmpty:!0,inputProps:{ref:o,tabIndex:i}},c,y,{children:[p.jsx(f.slots.baseSelectOption,P({},v,{native:x,value:"",children:r.current.getLocaleText("filterValueAny")})),p.jsx(f.slots.baseSelectOption,P({},v,{native:x,value:"true",children:r.current.getLocaleText("filterValueTrue")})),p.jsx(f.slots.baseSelectOption,P({},v,{native:x,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),s]})}const Bte=()=>[{value:"is",getApplyFilterFn:e=>{const t=jh(e.value);return t===void 0?null:n=>!!n===t},InputComponent:zte}],Hte=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),Vte=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}},NR=P({},Go,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Ate,renderEditCell:Lte,sortComparator:kR,valueFormatter:Hte,filterOperators:Bte(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>Vte(e)}),zR=e=>e.sorting,Xf=Ye(zR,e=>e.sortedRows),zw=It(Xf,Ii,Vn,(e,t,n)=>e.reduce((r,o)=>{const s=t[o];s&&r.push({id:o,model:s});const i=n[o];return i&&Nc(i)&&r.push({id:o,model:{[mc]:o}}),r},[])),Zr=Ye(zR,e=>e.sortModel),Gte=It(Zr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),E0=e=>e.filter,Dn=Ye(E0,e=>e.filterModel);Ye(Dn,e=>e.quickFilterValues);const Wte=e=>e.visibleRowsLookup,du=Ye(E0,e=>e.filteredRowsLookup);Ye(E0,e=>e.filteredChildrenCountLookup);Ye(E0,e=>e.filteredDescendantCountLookup);const na=It(Wte,zw,(e,t)=>t.filter(n=>e[n.id]!==!1)),gc=It(na,e=>e.map(t=>t.id)),BR=It(du,zw,(e,t)=>t.filter(n=>e[n.id]!==!1)),HR=It(BR,e=>e.map(t=>t.id));It(gc,Vn,(e,t)=>{const n={};let r=0;return e.reduce((o,s)=>{const i=t[s];return n[i.depth]||(n[i.depth]=0),i.depth>r&&(n[i.depth]=0),r=i.depth,n[i.depth]+=1,o[s]=n[i.depth],o},{})});const VR=It(na,Vn,uu,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),Bw=Ye(na,e=>e.length),Hw=Ye(VR,e=>e.length),Ute=Ye(BR,e=>e.length);Ye(Ute,Hw,(e,t)=>e-t);const Yte=It(Dn,ii,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var i,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((i=o==null?void 0:o.filterOperators)==null?void 0:i.length)===0)return!1;const s=o.filterOperators.find(l=>l.value===r.operator);return s?!s.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),Kte=It(Yte,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Jr=e=>e.rowSelection,qte=Ye(Jr,e=>e.length),Xte=It(Jr,Ii,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Bs=It(Jr,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function GR(e,t){var l;const n=Vn(e),r=Xf(e),o=du(e),s=n[t];if(!s||s.type!=="group")return[];const i=[],a=r.findIndex(c=>c===t)+1;for(let c=a;cs.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&i.push(u)}return i}function Qte(e,t){return Ye(Vn,Xf,du,Bs,(n,r,o,s)=>{var u;const i=n[e];if(!i||i.type!=="group")return{isIndeterminate:!1,isChecked:s[e]===e};if(s[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;di.depth;d+=1){const f=r[d];o[f]!==!1&&(a+=1,s[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l0:s[e]===e}})}function Vw(e){return e.signature===yo.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const Zte=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Rn;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Jte=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(i=>i!==n&&t[i])},Jp=(e,t,n,r,o,s)=>{const i=du(e),a=Bs(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&GR(e,n).forEach(d=>{s(d),l.add(d)})}if(o){const c=d=>{if(a[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=Jte(t,i,d);if(f.length===0||f.every(c)){const g=t[d].parent;g!=null&&g!==Rn&&e.current.isRowSelectable(g)&&(s(g),l.add(g),u(g))}};u(n)}}},EP=(e,t,n,r,o,s)=>{const i=Bs(e);if(!(!o&&!r)&&(o&&Zte(t,n).forEach(l=>{i[l]===l&&s(l)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&GR(e,n).forEach(c=>{s(c)})}},ene=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],tne=e=>{const{classes:t}=e;return le({root:["checkboxInput"]},lt,t)},nne=h.forwardRef(function(t,n){var E,$;const{field:r,id:o,rowNode:s,hasFocus:i,tabIndex:a}=t,l=ce(t,ene),c=Qe(),u=_e(),d={classes:u.classes},f=tne(d),m=h.useRef(null),g=h.useRef(null),y=et(m,n),x=S=>{const D={value:S.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",D,S)};h.useLayoutEffect(()=>{if(a===0){const S=c.current.getCellElement(o,r);S&&(S.tabIndex=-1)}},[c,a,o,r]),h.useEffect(()=>{var S;if(i){const D=(S=m.current)==null?void 0:S.querySelector("input");D==null||D.focus({preventScroll:!0})}else g.current&&g.current.stop({})},[i]);const v=h.useCallback(S=>{S.key===" "&&S.stopPropagation()},[]),w=c.current.isRowSelectable(o),b=Qte(o,((E=u.rowSelectionPropagation)==null?void 0:E.parents)??!1),{isIndeterminate:C,isChecked:k}=he(c,b);if(s.type==="footer"||s.type==="pinnedRow")return null;const M=c.current.getLocaleText(k?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow"),T=u.indeterminateCheckboxAction==="select"?k&&!C:k;return p.jsx(u.slots.baseCheckbox,P({ref:y,tabIndex:a,checked:T,onChange:x,className:f.root,inputProps:{"aria-label":M},onKeyDown:v,indeterminate:C,disabled:!w,touchRippleRef:g},($=u.slotProps)==null?void 0:$.baseCheckbox,l))}),rne=nne,T0=e=>e.focus,Ir=Ye(T0,e=>e.cell),one=Ye(T0,e=>e.columnHeader);Ye(T0,e=>e.columnHeaderFilter);const Om=Ye(T0,e=>e.columnGroupHeader),D0=e=>e.tabIndex,Gw=Ye(D0,e=>e.cell),WR=Ye(D0,e=>e.columnHeader);Ye(D0,e=>e.columnHeaderFilter);const sne=Ye(D0,e=>e.columnGroupHeader);function nt(e,t,n){const r=h.useRef(!0);ot(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function vn(e,t){const n=h.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const UR=(e,t,n,r,o)=>{const s=vn(e,"useNativeEventListener"),[i,a]=h.useState(!1),l=h.useRef(r),c=MR(t)?t():(t==null?void 0:t.current)??null,u=h.useCallback(d=>l.current&&l.current(d),[]);h.useEffect(()=>{l.current=r},[r]),h.useEffect(()=>{if(c&&n&&!i){s.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),a(!0);const d=()=>{s.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,i,s,o,e])},Qf=e=>{const t=h.useRef(!0);t.current&&(t.current=!1,e())},ine=()=>{},ane=(e,t)=>{const n=h.useRef(!1);ot(()=>n.current||!e?ine:(n.current=!0,t()),[n.current||e])},lne=100,cne=e=>e?0:100,YR=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,KR=e=>({page:0,pageSize:e?0:100}),une=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),qR=(e,t)=>{if(t===yo.DataGrid&&e>lne)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(` -`))},dne=-1,$0=e=>e.pagination,Zn=Ye($0,e=>e.paginationModel),Zl=Ye($0,e=>e.rowCount),sd=Ye($0,e=>e.meta),fne=Ye(Zn,e=>e.page),pne=Ye(Zn,e=>e.pageSize),XR=Ye(Zn,Zl,(e,t)=>YR(t,e.pageSize,e.page)),Ww=It(Zn,Vn,uu,na,VR,(e,t,n,r,o)=>{var m;const s=o.length,i=Math.min(e.pageSize*e.page,s-1),a=e.pageSize===dne?s-1:Math.min(i+e.pageSize-1,s-1);if(i===-1||a===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:a};const l=o[i],c=a-i+1,u=r.findIndex(g=>g.id===l.id);let d=u,f=0;for(;d0)&&(d+=1),y===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),hne=It(na,Ww,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),QR=It(gc,Ww,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),mne=["field","colDef"],gne=e=>{const{classes:t}=e;return le({root:["checkboxInput"]},lt,t)},yne=h.forwardRef(function(t,n){var E;const r=ce(t,mne),[,o]=h.useState(!1),s=Qe(),i=_e(),a={classes:i.classes},l=gne(a),c=he(s,WR),u=he(s,Jr),d=he(s,gc),f=he(s,QR),m=h.useMemo(()=>typeof i.isRowSelectable!="function"?u:u.filter($=>s.current.getRow($)?i.isRowSelectable(s.current.getRowParams($)):!1),[s,i.isRowSelectable,u]),g=h.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?d:f).reduce((S,D)=>(S[D]=!0,S),{}),[i.pagination,i.checkboxSelectionVisibleOnly,f,d]),y=h.useMemo(()=>m.filter($=>g[$]).length,[m,g]),x=y>0&&y0,w=$=>{const S={value:$.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",S)},b=c!==null&&c.field===t.field?0:-1;h.useLayoutEffect(()=>{const $=s.current.getColumnHeaderElement(t.field);b===0&&$&&($.tabIndex=-1)},[b,s,t.field]);const C=h.useCallback($=>{$.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!v})},[s,v]),k=h.useCallback(()=>{o($=>!$)},[]);h.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",k),[s,k]);const M=s.current.getLocaleText(v?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows"),T=i.indeterminateCheckboxAction==="select"?v&&!x:v;return p.jsx(i.slots.baseCheckbox,P({ref:n,indeterminate:x,checked:T,onChange:w,className:l.root,inputProps:{"aria-label":M},tabIndex:b,onKeyDown:C,disabled:!Vw(i)},(E=i.slotProps)==null?void 0:E.baseCheckbox,r))}),Es="__check__",fu=P({},NR,{type:"custom",field:Es,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=Bs(r),s=r.current.getRowId(t);return o[s]!==void 0},renderHeader:e=>p.jsx(yne,P({},e)),renderCell:e=>p.jsx(rne,P({},e))}),vne=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function TP(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 Cl(e){var b;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,InputProps:i,clearButton:a,tabIndex:l,disabled:c}=e,u=ce(e,vne),d=jr(),[f,m]=h.useState(()=>TP(t.value,r)),[g,y]=h.useState(!1),x=pt(),v=_e(),w=h.useCallback(C=>{d.clear();const k=C.target.value;m(k),y(!0),d.start(v.filterDebounceMs,()=>{const M=new Date(k);n(P({},t,{value:Number.isNaN(M.getTime())?void 0:M})),y(!1)})},[n,t,v.filterDebounceMs,d]);return h.useEffect(()=>{const C=TP(t.value,r);m(C)},[t.value,r]),p.jsx(v.slots.baseTextField,P({fullWidth:!0,id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:w,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},g||a?{endAdornment:g?p.jsx(v.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:c},i,{inputProps:P({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},i==null?void 0:i.inputProps)})},u,(b=v.slotProps)==null?void 0:b.baseTextField))}function Sl(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 s=o.getTime();return i=>{if(!i)return!1;if(r)return t(i.getTime(),s);const a=new Date(i);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),s)}}const ZR=e=>[{value:"is",getApplyFilterFn:t=>Sl(t,(n,r)=>n===r,e),InputComponent:Cl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Sl(t,(n,r)=>n!==r,e),InputComponent:Cl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Sl(t,(n,r)=>n>r,e),InputComponent:Cl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Sl(t,(n,r)=>n>=r,e),InputComponent:Cl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Sl(t,(n,r)=>nSl(t,(n,r)=>n<=r,e),InputComponent:Cl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],xne=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],bne=Q(au)({fontSize:"inherit"}),wne=e=>{const{classes:t}=e;return le({root:["editInputCell"]},lt,t)};function Cne(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:a}=e,l=ce(e,xne),c=o.type==="dateTime",u=Qe(),d=h.useRef(),f=h.useMemo(()=>{let C;n==null?C=null:n instanceof Date?C=n:C=new Date((n??"").toString());let k;return C==null||Number.isNaN(C.getTime())?k="":k=new Date(C.getTime()-C.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:C,formatted:k}},[n,c]),[m,g]=h.useState(f),x={classes:_e().classes},v=wne(x),w=h.useCallback(C=>{if(C==="")return null;const[k,M]=C.split("T"),[T,E,$]=k.split("-"),S=new Date;if(S.setFullYear(Number(T),Number(E)-1,Number($)),S.setHours(0,0,0,0),M){const[D,j]=M.split(":");S.setHours(Number(D),Number(j),0,0)}return S},[]),b=h.useCallback(async C=>{const k=C.target.value,M=w(k);a&&await a(C,M),g({parsed:M,formatted:k}),u.current.setEditCellValue({id:t,field:r,value:M},C)},[u,r,t,a,w]);return h.useEffect(()=>{g(C=>{var k,M;return f.parsed!==C.parsed&&((k=f.parsed)==null?void 0:k.getTime())!==((M=C.parsed)==null?void 0:M.getTime())?f:C})},[f]),ot(()=>{s&&d.current.focus()},[s]),p.jsx(bne,P({inputRef:d,fullWidth:!0,className:v.root,type:c?"datetime-local":"date",inputProps:P({max:c?"9999-12-31T23:59":"9999-12-31"},i),value:m.formatted,onChange:b},l))}const JR=e=>p.jsx(Cne,P({},e));function e3({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 Sne=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return e3({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},kne=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return e3({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},Pne=P({},Go,{type:"date",sortComparator:PR,valueFormatter:Sne,filterOperators:ZR(),renderEditCell:JR,pastedValueParser:e=>new Date(e)}),Mne=P({},Go,{type:"dateTime",sortComparator:PR,valueFormatter:kne,filterOperators:ZR(!0),renderEditCell:JR,pastedValueParser:e=>new Date(e)}),xi=e=>e==null?null:Number(e),Ine=e=>e==null||Number.isNaN(e)||e===""?null:t=>xi(t)===xi(e),Ene=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>xi(t)===e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>xi(t)!==e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xi(t)>e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xi(t)>=e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xi(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xi(t)<=e.value,InputComponent:io,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:ER,InputComponentProps:{type:"number"}}],Tne=P({},Go,{type:"number",align:"right",headerAlign:"right",sortComparator:kR,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Xee(e)?e.toLocaleString():e||"",filterOperators:Ene(),getApplyQuickFilterFn:Ine});function zc(e){return(e==null?void 0:e.type)==="singleSelect"}function Ua(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(P({field:e.field},t)):e.valueOptions}function jm(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const Dne=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],$ne=["MenuProps"];function Rne(e){return!!e.key}function Ane(e){var j,F;const t=_e(),{id:n,value:r,field:o,row:s,colDef:i,hasFocus:a,error:l,onValueChange:c,initialOpen:u=t.editMode===ws.Cell}=e,d=ce(e,Dne),f=Qe(),m=h.useRef(),g=h.useRef(),[y,x]=h.useState(u),w=(((j=t.slotProps)==null?void 0:j.baseSelect)||{}).native??!1,b=((F=t.slotProps)==null?void 0:F.baseSelect)||{},{MenuProps:C}=b,k=ce(b,$ne);if(ot(()=>{var A;a&&((A=g.current)==null||A.focus())},[a]),!zc(i))return null;const M=Ua(i,{id:n,row:s});if(!M)return null;const T=i.getOptionValue,E=i.getOptionLabel,$=async A=>{if(!zc(i)||!M)return;x(!1);const R=A.target,I=jm(R.value,M,T);c&&await c(A,I),await f.current.setEditCellValue({id:n,field:o,value:I},A)},S=(A,R)=>{if(t.editMode===ws.Row){x(!1);return}if(R==="backdropClick"||A.key==="Escape"){const I=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",P({},I,{reason:A.key==="Escape"?Oo.escapeKeyDown:Oo.cellFocusOut}))}},D=A=>{Rne(A)&&A.key==="Enter"||x(!0)};return!M||!i?null:p.jsx(t.slots.baseSelect,P({ref:m,inputRef:g,value:r,onChange:$,open:y,onOpen:D,MenuProps:P({onClose:S},C),error:l,native:w,fullWidth:!0},d,k,{children:M.map(A=>{var I;const R=T(A);return h.createElement(t.slots.baseSelectOption,P({},((I=t.slotProps)==null?void 0:I.baseSelectOption)||{},{native:w,key:R,value:R}),E(A))})}))}const One=e=>p.jsx(Ane,P({},e)),jne=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],Fne=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:s})=>["",...Ua(e)||[]].map(a=>{const l=r(a);let c=n(a);return c===""&&(c=" "),h.createElement(t,P({},s,{native:o,key:l,value:l}),c)}),Lne=Q("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function DP(e){var T,E,$,S,D;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,placeholder:i,tabIndex:a,label:l,variant:c="standard",clearButton:u}=e,d=ce(e,jne),f=t.value??"",m=pt(),g=pt(),y=_e(),x=((E=(T=y.slotProps)==null?void 0:T.baseSelect)==null?void 0:E.native)??!1;let v=null;if(t.field){const j=o.current.getColumn(t.field);zc(j)&&(v=j)}const w=v==null?void 0:v.getOptionValue,b=v==null?void 0:v.getOptionLabel,C=h.useMemo(()=>Ua(v),[v]),k=h.useCallback(j=>{let F=j.target.value;F=jm(F,C,w),n(P({},t,{value:F}))},[C,w,n,t]);if(!zc(v))return null;const M=l??o.current.getLocaleText("filterPanelInputLabel");return p.jsxs(Lne,{children:[p.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[p.jsx(y.slots.baseInputLabel,P({},($=y.slotProps)==null?void 0:$.baseInputLabel,{id:g,htmlFor:m,shrink:!0,variant:c,children:M})),p.jsx(y.slots.baseSelect,P({id:m,label:M,labelId:g,value:f,onChange:k,variant:c,type:r||"text",inputProps:{tabIndex:a,ref:s,placeholder:i??o.current.getLocaleText("filterPanelInputPlaceholder")},native:x,notched:c==="outlined"?!0:void 0},d,(S=y.slotProps)==null?void 0:S.baseSelect,{children:Fne({column:v,OptionComponent:y.slots.baseSelectOption,getOptionLabel:b,getOptionValue:w,isSelectNative:x,baseSelectOptionProps:(D=y.slotProps)==null?void 0:D.baseSelectOption})}))]}),u]})}const _ne=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Nne=["key"],zne=y$();function Bne(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:s,error:i,helperText:a,size:l,variant:c="standard"}=e,u=ce(e,_ne),d={color:s,error:i,helperText:a,size:l,variant:c},f=pt(),m=_e();let g=null;if(t.field){const k=r.current.getColumn(t.field);zc(k)&&(g=k)}const y=g==null?void 0:g.getOptionValue,x=g==null?void 0:g.getOptionLabel,v=h.useCallback((k,M)=>y(k)===y(M),[y]),w=h.useMemo(()=>Ua(g)||[],[g]),b=h.useMemo(()=>Array.isArray(t.value)?t.value.reduce((k,M)=>{const T=w.find(E=>y(E)===M);return T!=null&&k.push(T),k},[]):[],[y,t.value,w]),C=h.useCallback((k,M)=>{n(P({},t,{value:M.map(y)}))},[n,t,y]);return p.jsx(I$,P({multiple:!0,options:w,isOptionEqualToValue:v,filterOptions:zne,id:f,value:b,onChange:C,getOptionLabel:x,renderTags:(k,M)=>k.map((T,E)=>{const $=M({index:E}),{key:S}=$,D=ce($,Nne);return p.jsx(m.slots.baseChip,P({variant:"outlined",size:"small",label:x(T)},D),S)}),renderInput:k=>{var M;return p.jsx(m.slots.baseTextField,P({},k,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},k.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(M=m.slotProps)==null?void 0:M.baseTextField))}},u))}const kl=e=>e==null||!Lw(e)?e:e.value,Hne=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>kl(t)===kl(e.value),InputComponent:DP},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>kl(t)!==kl(e.value),InputComponent:DP},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(kl);return n=>t.includes(kl(n))},InputComponent:Bne}],Vne=e=>typeof e[0]=="object",Gne=e=>Lw(e)?e.value:e,Wne=e=>Lw(e)?e.label:String(e),Une=P({},Go,{type:"singleSelect",getOptionLabel:Wne,getOptionValue:Gne,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!zc(n))return"";const s=Ua(n,{id:o,row:t});if(e==null)return"";if(!s)return e;if(!Vne(s))return n.getOptionLabel(e);const i=s.find(a=>n.getOptionValue(a)===e);return i?n.getOptionLabel(i):""},renderEditCell:One,filterOperators:Hne(),pastedValueParser:(e,t,n)=>{const r=n,o=Ua(r)||[],s=r.getOptionValue;if(o.find(a=>s(a)===e))return e}}),Yne="string",Kne=()=>({string:Go,number:Tne,date:Pne,dateTime:Mne,boolean:NR,singleSelect:Une,[k0]:vte,custom:Go}),Uw=e=>e.headerFiltering,qne=Ye(Uw,e=>(e==null?void 0:e.enabled)??!1),Xne=Ye(Uw,e=>e.editing),Qne=Ye(Uw,e=>e.menuOpen),R0=e=>e.columnGrouping,t3=It(R0,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),n3=It(R0,e=>(e==null?void 0:e.lookup)??{}),Zne=It(R0,e=>(e==null?void 0:e.headerStructure)??[]),Zf=Ye(R0,e=>(e==null?void 0:e.maxDepth)??0),r3=["maxWidth","minWidth","width","flex"],tv=Kne();function Jne({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const a=o.all[i];a&&a.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let a=e,l=t,c=0;o.frozenFields.forEach(u=>{a-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;ud.maxWidth&&(c+=d.maxWidth-m,m=d.maxWidth,i.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}c<0?Object.keys(i.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(i.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),s()}return s(),o.all}const ax=(e,t)=>{const n={};let r=0,o=0;const s=[];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=ms(c.width||Go.width,c.minWidth||Go.minWidth,c.maxWidth||Go.maxWidth),o+=u),c.computedWidth!==u&&(c=P({},c,{computedWidth:u})),d&&s.push(c),n[l]=c});const i=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(i-o,0);if(r>0&&i>0){const l=Jne({initialFreeSpace:a,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return P({},e,{lookup:n})},ere=(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 s={},i=[];for(let u=0;u!s[u])],l=P({},e.lookup);for(let u=0;u{f[m]=g===-1?1/0:g}),l[d]=f}return P({},e,{orderedFields:a,lookup:l})};function $P(e){let t=tv[Yne];return e&&tv[e]&&(t=tv[e]),t}const Al=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=uo(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const s=!e.current.state.columns;let i;if(s)i={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=hs(e.current.state);i={orderedFields:o?[]:[...f.orderedFields],lookup:P({},f.lookup),columnVisibilityModel:r}}let a={};o&&!s&&(a=Object.keys(i.lookup).reduce((f,m)=>P({},f,{[m]:!1}),{})),t.forEach(f=>{const{field:m}=f;a[m]=!0;let g=i.lookup[m];g==null?(g=P({},$P(f.type),{field:m,hasBeenResized:!1}),i.orderedFields.push(m)):o&&i.orderedFields.push(m),g&&g.type!==f.type&&(g=P({},$P(f.type),{field:m}));let y=g.hasBeenResized;r3.forEach(x=>{f[x]!==void 0&&(y=!0,f[x]===-1&&(f[x]=1/0))}),i.lookup[m]=Dc(g,P({},f,{hasBeenResized:y}))}),o&&!s&&Object.keys(i.lookup).forEach(f=>{a[f]||delete i.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",i),c=ere(l,n);return ax(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function tre({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return le(r,lt,n)},ore=xt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${K["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${K["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${K["scrollArea--left"]}`]:{left:0},[`&.${K["scrollArea--right"]}`]:{right:0}}));function sre(e){const{scrollDirection:t}=e,n=h.useRef(null),r=Qe(),o=jr(),s=he(r,Kf),i=he(r,jw),a=he(r,Fn),l=h.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const E=i-a.viewportInnerSize.width;return l.current.left{l.current=E,m(c)},k=ye(E=>{let $;if(E.preventDefault(),t==="left")$=E.clientX-n.current.getBoundingClientRect().right;else if(t==="right")$=Math.max(1,E.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");$=($-RP)*nre+RP,o.start(0,()=>{r.current.scroll({left:l.current.left+$,top:l.current.top})})}),M=ye(()=>{d(!0)}),T=ye(()=>{d(!1)});return je(r,"scrollPositionChange",C),je(r,"columnHeaderDragStart",M),je(r,"columnHeaderDragEnd",T),!u||!f?null:p.jsx(ore,{ref:n,className:se(x.root),ownerState:y,onDragOver:k,style:b})}const AP=ea(sre),ire=()=>{};function are(e,t,n){const r=h.useRef(null);r.current=t,ot(()=>{if(typeof ResizeObserver>"u")return ire;const o=e.current,s=new ResizeObserver(i=>{r.current(i)});return o&&s.observe(o),()=>{s.disconnect()}},[e,n])}const o3=h.createContext(void 0);function To(){const e=h.useContext(o3);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 yc=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Ww(e),n=hne(e)):(n=na(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},ra=(e,t)=>{const n=yc(e,t);return h.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},lre=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",cre=lre.includes("firefox"),pu=e=>e.rowsMeta,A0=e=>e.virtualization;Ye(A0,e=>e.enabled);const Kw=Ye(A0,e=>e.enabledForColumns),ure=Ye(A0,e=>e.enabledForRows),O0=Ye(A0,e=>e.renderContext),dre=It(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),s3={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},fre=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return P({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:s3}})};function pre(e,t){const n=s=>{e.current.setState(i=>P({},i,{virtualization:P({},i.virtualization,{enabled:s,enabledForColumns:s,enabledForRows:s&&!t.autoHeight})}))};nt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>P({},i,{virtualization:P({},i.virtualization,{enabledForColumns:s})}))}},"public"),h.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const qw=e=>e.rowSpanning,i3=Ye(qw,e=>e.hiddenCells),hre=Ye(qw,e=>e.spannedCells),mre=Ye(qw,e=>e.hiddenCellOriginMap),Bc=e=>e.listViewColumn,nv=50;var sn=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}(sn||{});const OP={top:0,left:0},gre=Object.freeze(new Map),yre=(e,t,n,r,o)=>({direction:sn.NONE,buffer:l3(e,sn.NONE,t,n,r,o)});let lx=!1;try{typeof window<"u"&&(lx=/jsdom/.test(window.navigator.userAgent))}catch{}const vre=()=>{const e=To(),t=_e(),{unstable_listView:n}=t,r=he(e,()=>n?[Bc(e.current.state)]:fn(e)),o=he(e,ure)&&!lx,s=he(e,Kw)&&!lx,i=he(e,Fn),a=i.viewportOuterSize,l=he(e,sl),c=he(e,qf),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,m]=h.useState(gre),g=Nt(),y=he(e,Ir),x=he(e,Gw),v=he(e,pu),w=he(e,Bs),b=ra(e,t),C=e.current.rootElementRef,k=e.current.mainElementRef,M=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,E=e.current.virtualScrollbarHorizontalRef,$=i.contentSize.height,S=i.columnsTotalWidth,D=he(e,Lee);are(k,()=>e.current.resize());const j=h.useRef(OP),F=h.useRef(OP),A=h.useRef(s3),R=he(e,O0),I=jr(),L=h.useRef(void 0),O=Yo(()=>yre(g,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,nv*6)).current,_={rowIndex:h.useMemo(()=>y?b.rows.findIndex(G=>G.id===y.id):-1,[y,b.rows]),columnIndex:h.useMemo(()=>y?r.findIndex(G=>G.field===y.field):-1,[y,r])},N=h.useCallback(G=>{if(wre(G,e.current.state.virtualization.renderContext))return;const ee=G.firstRowIndex!==A.current.firstRowIndex||G.lastRowIndex!==A.current.lastRowIndex;e.current.setState(H=>P({},H,{virtualization:P({},H.virtualization,{renderContext:G})})),i.isReady&&ee&&(A.current=G,e.current.publishEvent("renderedRowsIntervalChange",G)),F.current=j.current},[e,i.isReady]),z=ye(()=>{const G={top:M.current.scrollTop,left:M.current.scrollLeft},ee=G.left-j.current.left,H=G.top-j.current.top,Z=ee!==0||H!==0;j.current=G;const ne=Z?Cre(ee,H):sn.NONE,oe=Math.abs(j.current.top-F.current.top),re=Math.abs(j.current.left-F.current.left),ue=oe>=i.rowHeight||re>=nv,ie=O.direction!==ne;if(!(ue||ie))return R;if(ie)switch(ne){case sn.NONE:case sn.LEFT:case sn.RIGHT:L.current=void 0;break;default:L.current=R;break}O.direction=ne,O.buffer=l3(g,ne,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,nv*6);const Te=rv(e,t,o,s),Fe=ov(Te,j.current,O);return Af.flushSync(()=>{N(Fe)}),I.start(1e3,z),Fe}),U=()=>{const G=rv(e,t,o,s),ee=ov(G,j.current,O);L.current=void 0,N(ee)},J=ye(G=>{const{scrollTop:ee,scrollLeft:H}=G.currentTarget;if(ee<0||!g&&H<0||g&&H>0)return;const Z=z();e.current.publishEvent("scrollPositionChange",{top:ee,left:H,renderContext:Z})}),Y=ye(G=>{e.current.publishEvent("virtualScrollerWheel",{},G)}),B=ye(G=>{e.current.publishEvent("virtualScrollerTouchMove",{},G)}),W=(G={})=>{var Pe;if(!G.rows&&!b.range)return[];const ee=G.renderContext??R,H=!d&&G.position===void 0||d&&G.position==="bottom",Z=G.position!==void 0;let ne;switch(G.position){case"top":ne=0;break;case"bottom":ne=l.top.length+b.rows.length;break;case void 0:ne=l.top.length;break}const oe=G.rows??b.rows,re=ee.firstRowIndex,ue=Math.min(ee.lastRowIndex,oe.length),ie=G.rows?vP(0,G.rows.length):vP(re,ue);let be=-1;!Z&&_.rowIndex!==-1&&(_.rowIndex=ue&&(be=_.rowIndex,ie.push(be)));const Te=[],Fe=(Pe=t.slotProps)==null?void 0:Pe.row,Xe=ta(e);return ie.forEach(Ie=>{var on,Zt,or;const{id:Be,model:Ge}=oe[Ie],Ae=(((on=b==null?void 0:b.range)==null?void 0:on.firstRowIndex)||0)+ne+Ie;if(D){const Ln=u.left.length,kr=r.length-u.right.length;e.current.calculateColSpan({rowId:Be,minFirstColumn:Ln,maxLastColumn:kr,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:Be,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:Be,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const Oe=(y==null?void 0:y.id)===Be,He=e.current.rowHasAutoHeight(Be)?"auto":e.current.unstable_getRowHeight(Be);let Ee;w[Be]==null?Ee=!1:Ee=e.current.isRowSelectable(Be);let Me=!1;G.position===void 0&&(Me=Ie===0);let Ve=!1;const bt=Ie===oe.length-1;if(H)if(Z)Ve=bt;else{const Ln=b.rows.length-1;Ie===Ln&&(Ve=!0)}const De=Ie===be;let qe=null;x!==null&&x.id===Be&&(qe=e.current.getCellParams(Be,x.field).cellMode==="view"?x.field:null);let ft=ee;!Z&&L.current&&Ie>=L.current.firstRowIndex&&Iea.width,X=h.useMemo(()=>({overflowX:!te||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[te,t.autoHeight,n]),q=h.useMemo(()=>{const G={width:te?S:"auto",flexBasis:$,flexShrink:0};return t.autoHeight&&b.rows.length===0&&(G.flexBasis=FR(e)),G},[e,S,$,te,t.autoHeight,b.rows.length]);return h.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,q]),ot(()=>{e.current.resize()},[e,v.currentPageTotalHeight]),ot(()=>{s&&(M.current.scrollLeft=0),o&&(M.current.scrollTop=0)},[s,o,C,M]),ot(()=>{n&&(M.current.scrollLeft=0)},[n,M]),ane(a.width!==0,()=>{const G=rv(e,t,o,s),ee=ov(G,j.current,O);N(ee),e.current.publishEvent("scrollPositionChange",{top:j.current.top,left:j.current.left,renderContext:ee})}),e.current.register("private",{updateRenderContext:U}),je(e,"columnsChange",U),je(e,"filteredRowsSet",U),je(e,"rowExpansionChange",U),{renderContext:R,setPanels:m,getRows:W,getContainerProps:()=>({ref:k}),getScrollerProps:()=>({ref:M,onScroll:J,onWheel:Y,onTouchMove:B,style:X,role:"presentation",tabIndex:cre?-1:void 0}),getContentProps:()=>({style:q,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:E,role:"presentation"})}};function rv(e,t,n,r){const o=Fn(e.current.state),s=yc(e,t),i=t.unstable_listView?[Bc(e.current.state)]:fn(e),a=mre(e),l=e.current.state.rows.dataRowIds.at(-1),c=i.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:pu(e.current.state),columnPositions:ta(e),rows:s.rows,range:s.range,pinnedColumns:qf(e),visibleColumns:i,hiddenCellsOriginMap:a,listView:t.unstable_listView??!1}}function ov(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:s}=t,i=Math.abs(s)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(jP(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:jP(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]=cx({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});for(let m=d;m=e.range.lastRowIndex);const s=ms(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[s]>=t?Wi(t,e.rowsMeta.positions,n):bre(t,e.rowsMeta.positions,s,n)}function xre(e,t,n){const[r,o]=cx({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}),[s,i]=cx({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}),a=tre({firstColumnToRender:s,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:i}}function Wi(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const s=r+Math.floor((o-r)/2),i=t[s];let a;if(n!=null&&n.atStart){const l=(s===t.length-1?n.lastPosition:t[s+1])-i;a=e-l=Math.abs(e)?t>0?sn.DOWN:sn.UP:e>0?sn.RIGHT:sn.LEFT}function l3(e,t,n,r,o,s){if(e)switch(t){case sn.LEFT:t=sn.RIGHT;break;case sn.RIGHT:t=sn.LEFT;break}switch(t){case sn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case sn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:s};case sn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:s,columnBefore:0};case sn.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case sn.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Sre=()=>{var u,d;const e=Qe(),t=_e(),n=he(e,P0),r=he(e,Bw),o=n===0,s=he(e,xte),i=!s&&o,a=!s&&n>0&&r===0;let l=null,c=null;return i&&(l="noRowsOverlay"),a&&(l="noResultsOverlay"),s&&(l="loadingOverlay",c=((d=(u=t.slotProps)==null?void 0:u.loadingOverlay)==null?void 0:d[o?"noRowsVariant":"variant"])||null),{overlayType:l,loadingOverlayVariant:c}},kre=xt("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}:{}),Pre=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Mre=e=>{const{classes:t}=e;return le({root:["overlayWrapper"],inner:["overlayWrapperInner"]},lt,t)};function Ire(e){const t=Qe(),n=_e(),r=ra(t,n),o=he(t,Fn);let s=o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||s===0)&&(s=FR(t));const i=Mre(P({},e,{classes:n.classes}));return p.jsx(kre,P({className:se(i.root)},e,{children:p.jsx(Pre,P({className:se(i.inner),style:{height:s,width:o.viewportOuterSize.width}},e))}))}function Ere(e){var s,i;const{overlayType:t}=e,n=_e();if(!t)return null;const r=(s=n.slots)==null?void 0:s[t],o=(i=n.slotProps)==null?void 0:i[t];return p.jsx(Ire,P({},e,{children:p.jsx(r,P({},o))}))}const Fh=e=>e.columnMenu;function Tre(){var x;const e=To(),t=_e(),n=he(e,fn),r=he(e,Kte),o=he(e,Gte),s=he(e,WR),i=he(e,Gw),a=he(e,sne),l=he(e,one),c=he(e,Om),u=he(e,Zf),d=he(e,Fh),f=he(e,uo),m=he(e,Zne),g=!(a===null&&s===null&&i===null),y=e.current.columnHeadersContainerRef;return p.jsx(t.slots.columnHeaders,P({ref:y,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g},(x=t.slotProps)==null?void 0:x.columnHeaders))}const Dre=ea(Tre),c3=h.createContext(void 0),u3=()=>{const e=h.useContext(c3);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},$re=xt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),Rre=xt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),Are=h.forwardRef((e,t)=>{const n=_e(),o=u3().hooks.useGridAriaAttributes();return p.jsxs(Rre,P({ref:t,ownerState:n,className:e.className,tabIndex:-1},o,{children:[p.jsx($re,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),Ore=()=>le({root:["topContainer"]},lt,{}),jre=xt("div")({position:"sticky",zIndex:4,top:0});function Fre(e){const t=Ore();return p.jsx(jre,P({},e,{className:se(t.root,K["container--top"]),role:"presentation"}))}const Lre=()=>le({root:["bottomContainer"]},lt,{}),_re=xt("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Nre(e){const t=Lre();return p.jsx(_re,P({},e,{className:se(t.root,K["container--bottom"]),role:"presentation"}))}const zre=(e,t)=>{const{classes:n}=e;return le({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},lt,n)},Bre=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Hre=h.forwardRef(function(t,n){var i;const r=_e(),o=!r.autoHeight&&((i=t.style)==null?void 0:i.minHeight)==="auto",s=zre(r,o);return p.jsx(Bre,P({ref:n},t,{ownerState:r,className:se(s.root,t.className)}))}),Vre=xt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),d3=xt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),Gre=xt(d3)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Wre=xt(d3)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Ure=xt("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Yre({rowsLength:e}){const t=Qe(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:s,scrollbarSize:i,leftPinnedWidth:a,rightPinnedWidth:l}=he(t,Fn),c=o?i:0,u=n.height-r.height>0;return c===0&&!u?null:p.jsxs(Vre,{className:K.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&p.jsx(Gre,{className:K["filler--pinnedLeft"],style:{width:a}}),p.jsx(Ure,{}),l>0&&p.jsx(Wre,{className:K["filler--pinnedRight"],style:{width:l+(s?i:0)}})]})}const Kre=ea(Yre),qre=["className"],Xre=e=>{const{classes:t}=e;return le({root:["virtualScrollerRenderZone"]},lt,t)},Qre=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Zre=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,qre),s=Qe(),i=_e(),a=Xre(i),l=he(s,()=>{const c=O0(s);return pu(s.current.state).positions[c.firstRowIndex]??0});return p.jsx(Qre,P({ref:n,className:se(a.root,r),ownerState:i,style:{transform:`translate3d(0, ${l}px, 0)`}},o))}),Jre={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},wn=e=>e.editRows,df=e=>e.preferencePanel;var Ya=function(e){return e.filters="filters",e.columns="columns",e}(Ya||{});const eoe=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return le(r,lt,n)},f3=xt("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),toe=xt(f3)({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"}),noe=xt(f3)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),FP=h.forwardRef(function(t,n){const r=To(),o=_e(),s=h.useRef(!1),i=h.useRef(0),a=h.useRef(null),l=h.useRef(null),c=eoe(o,t.position),u=he(r,Fn),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",m=t.position==="vertical"?u.hasScrollX:u.hasScrollY,g=u.minimumSize[d]+(m?u.scrollbarSize:0),x=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(g/u.viewportOuterSize[d]),v=ye(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;if(!k||C[f]===i.current)return;if(i.current=C[f],s.current){s.current=!1;return}s.current=!0;const M=C[f]/g;k[f]=M*x}),w=ye(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;if(!k)return;if(s.current){s.current=!1;return}s.current=!0;const M=k[f]/x;C[f]=M*g});t0(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;return C.addEventListener("scroll",v,{capture:!0}),k.addEventListener("scroll",w,{capture:!0}),()=>{C.removeEventListener("scroll",v,{capture:!0}),k.removeEventListener("scroll",w,{capture:!0})}}),h.useEffect(()=>{l.current.style.setProperty(d,`${x}px`)},[x,d]);const b=t.position==="vertical"?toe:noe;return p.jsx(b,{ref:et(n,a),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:p.jsx("div",{ref:l,className:c.content})})}),roe=(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 le(o,lt,r)},ooe=xt("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 soe(e){const t=Qe(),n=_e(),r=he(t,Fn),o=Sre(),s=roe(n,r,o.loadingOverlayVariant),i=vre(),{getContainerProps:a,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:m}=i,g=m();return p.jsxs(Are,P({className:s.root},a(),{children:[p.jsx(AP,{scrollDirection:"left"}),p.jsx(AP,{scrollDirection:"right"}),p.jsxs(ooe,P({className:s.scroller},l(),{ownerState:n,children:[p.jsxs(Fre,{children:[!n.unstable_listView&&p.jsx(Dre,{}),p.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:i})]}),p.jsx(Ere,P({},o)),p.jsx(Hre,P({},c(),{children:p.jsxs(Zre,P({},u(),{children:[g,p.jsx(n.slots.detailPanels,{virtualScroller:i})]}))})),p.jsx(Kre,{rowsLength:g.length}),p.jsx(Nre,{children:p.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:i})})]})),r.hasScrollY&&p.jsx(FP,P({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&p.jsx(FP,P({position:"horizontal"},f())),e.children]}))}function ioe(){var t;const e=_e();return e.hideFooter?null:p.jsx(e.slots.footer,P({},(t=e.slotProps)==null?void 0:t.footer))}let sv;function aoe(){return sv===void 0&&document.createElement("div").focus({get preventScroll(){return sv=!0,!1}}),sv}function loe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Fm(e,t){return e.closest(`.${t}`)}function ai(e){return e.replace(/["\\]/g,"\\$&")}function coe(e,t){return e.querySelector(`[role="columnheader"][data-field="${ai(t)}"]`)}function p3(e){return`.${K.row}[data-id="${ai(String(e))}"]`}function uoe(e,t){return e.querySelector(p3(t))}function doe(e,{id:t,field:n}){const r=p3(t),o=`.${K.cell}[data-field="${ai(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function Jf(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function foe(e){return e.getAttribute("data-field")}function poe(e,t){return e.querySelector(`[data-field="${ai(t)}"]`)}function hoe(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function moe(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${ai(t)}-|"]`)??[])}function goe(e,t){var i;if(!Fm(e,K.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,s=[];return(i=t.virtualScrollerRef)!=null&&i.current?(g3(t).forEach(a=>{const l=a.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=a.querySelector(`[data-colindex="${c}"]`);d&&s.push(d)}),s):[]}function LP(e,t){return e.rootElementRef.current.querySelector(`.${K[t]}`)}const h3=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return g3(e).forEach(s=>{s.getAttribute("data-id")&&s.querySelectorAll(`.${K[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const l=hu(a);l!==null&&r(l)&&o.push(a)})}),o};function yoe(e,t,n){const r=hu(t);return h3({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?or})}function voe(e,t,n){const r=hu(t);return h3({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o{var s;if(!((s=e.columnHeadersContainerRef)!=null&&s.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${K[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const a=hu(i);a!==null&&r(a)&&o.push(i)}),o};function xoe(e,t,n){const r=hu(t);return m3({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?or})}function boe(e,t,n){const r=hu(t);return m3({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o div > [data-field="${ai(t)}"][role="columnheader"]`)}function Coe(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${ai(t)}"][role="gridcell"]`))}function g3(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${K.row}`)}function hu(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class Lh extends Error{}function Soe(e,t){const n=h.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=h.useCallback(f=>{const m=e.current.getRow(f);if(!m)throw new Lh(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:m}},[e]),o=h.useCallback((f,m)=>{const g=t.unstable_listView?Bc(e.current.state):e.current.getColumn(m),y=e.current.getRow(f),x=e.current.getRowNode(f);if(!y||!x)throw new Lh(`No row with id #${f} found`);const v=y[m],w=g!=null&&g.valueGetter?g.valueGetter(v,y,g,e):v,b=Ir(e),C=Gw(e),k={id:f,field:m,row:y,rowNode:x,colDef:g,cellMode:e.current.getCellMode(f,m),hasFocus:b!==null&&b.field===m&&b.id===f,tabIndex:C&&C.field===m&&C.id===f?0:-1,value:w,formattedValue:w,isEditable:!1,api:{}};return g&&g.valueFormatter&&(k.formattedValue=g.valueFormatter(w,y,g,e)),k.isEditable=g&&e.current.isCellEditable(k),k},[e,t.unstable_listView]),s=h.useCallback((f,m)=>{const g=e.current.getColumn(m),y=e.current.getRow(f);if(!y)throw new Lh(`No row with id #${f} found`);return!g||!g.valueGetter?y[m]:g.valueGetter(y[g.field],y,g,e)},[e]),i=h.useCallback((f,m)=>{const g=m.field;if(!m||!m.valueGetter)return f[g];const y=f[m.field];return m.valueGetter(y,f,m,e)},[e]),a=h.useCallback((f,m)=>{const g=i(f,m);return!m||!m.valueFormatter?g:m.valueFormatter(g,f,m,e)},[e,i]),l=h.useCallback(f=>e.current.rootElementRef.current?coe(e.current.rootElementRef.current,f):null,[e]),c=h.useCallback(f=>e.current.rootElementRef.current?uoe(e.current.rootElementRef.current,f):null,[e]),u=h.useCallback((f,m)=>e.current.rootElementRef.current?doe(e.current.rootElementRef.current,{id:f,field:m}):null,[e]);nt(e,{getCellValue:s,getCellParams:o,getCellElement:u,getRowValue:i,getRowFormattedValue:a,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const j0=(e,t,n,r,o)=>{const s=t===n-1;return e===$t.LEFT&&s?!0:r?e===$t.LEFT?!0:e===$t.RIGHT?!s:!s||o:!1},F0=(e,t)=>e===$t.RIGHT&&t===0,koe=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Poe=["changeReason","unstable_updateValueOnRender"];let fr=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 y3={[fr.LEFT]:$t.LEFT,[fr.RIGHT]:$t.RIGHT,[fr.NONE]:void 0,[fr.VIRTUAL]:void 0},_P={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:St.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Moe=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:s,isSelected:i,isSelectionMode:a,classes:l}=e,c={root:["cell",`cell--text${ae(t)}`,i&&"selected",s&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===fr.LEFT&&"cell--pinnedLeft",o===fr.RIGHT&&"cell--pinnedRight",a&&!s&&"cell--selectionMode"]};return le(c,lt,l)},Ioe=h.forwardRef(function(t,n){var Me,Ve,bt;const{column:r,rowId:o,editCellState:s,align:i,colIndex:a,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:m,pinnedOffset:g,pinnedPosition:y,sectionIndex:x,sectionLength:v,gridHasFiller:w,onClick:b,onDoubleClick:C,onMouseDown:k,onMouseUp:M,onMouseOver:T,onKeyDown:E,onKeyUp:$,onDragEnter:S,onDragOver:D}=t,j=ce(t,koe),F=Qe(),A=_e(),R=Nt(),I=r.field,L=he(F,()=>{try{const ge=F.current.getCellParams(o,I);return ge.api=F.current,ge}catch(ge){if(ge instanceof Lh)return _P;throw ge}},wR),O=he(F,()=>F.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:I})),_=he(F,i3),N=he(F,hre),{cellMode:z,hasFocus:U,isEditable:J=!1,value:Y}=L,B=r.type==="actions"&&((Me=r.getActions)==null?void 0:Me.call(r,F.current.getRowParams(o)).some(ge=>!ge.props.disabled)),W=(z==="view"||!J)&&!B?L.tabIndex:-1,{classes:te,getCellClassName:X}=A,G=[he(F,()=>F.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:I}).filter(Boolean).join(" "))];r.cellClassName&&G.push(typeof r.cellClassName=="function"?r.cellClassName(L):r.cellClassName),r.display==="flex"&&G.push(K["cell--flex"]),X&&G.push(X(L));const ee=L.formattedValue??Y,H=h.useRef(null),Z=et(n,H),ne=h.useRef(null),oe=A.cellSelection??!1,re=y3[y],ue=F0(re,x),ie=j0(re,x,v,A.showCellVerticalBorder,w),be={align:i,showLeftBorder:ue,showRightBorder:ie,isEditable:J,classes:A.classes,pinnedPosition:y,isSelected:O,isSelectionMode:oe},Te=Moe(be),Fe=h.useCallback(ge=>De=>{const qe=F.current.getCellParams(o,I||"");F.current.publishEvent(ge,qe,De),M&&M(De)},[F,I,M,o]),Xe=h.useCallback(ge=>De=>{const qe=F.current.getCellParams(o,I||"");F.current.publishEvent(ge,qe,De),k&&k(De)},[F,I,k,o]),Pe=h.useCallback((ge,De)=>qe=>{if(!F.current.getRow(o))return;const ft=F.current.getCellParams(o,I||"");F.current.publishEvent(ge,ft,qe),De&&De(qe)},[F,I,o]),Ie=((Ve=_[o])==null?void 0:Ve[I])??!1,Be=((bt=N[o])==null?void 0:bt[I])??1,Ge=h.useMemo(()=>{if(m)return{padding:0,opacity:0,width:0,border:0};const ge=P({"--width":`${l}px`},u),De=y===fr.LEFT,qe=y===fr.RIGHT;if(De||qe){let ft=De?"left":"right";R&&(ft=De?"right":"left"),ge[ft]=g}return Be>1&&(ge.height=`calc(var(--height) * ${Be})`,ge.zIndex=5),ge},[l,m,u,g,y,R,Be]);if(h.useEffect(()=>{if(!U||z===St.Edit)return;const ge=_t(F.current.rootElementRef.current);if(H.current&&!H.current.contains(ge.activeElement)){const De=H.current.querySelector('[tabindex="0"]'),qe=ne.current||De||H.current;if(aoe())qe.focus({preventScroll:!0});else{const ft=F.current.getScrollPosition();qe.focus(),F.current.scroll(ft)}}},[U,z,F]),Ie)return p.jsx("div",{"data-colindex":a,role:"presentation",style:P({width:"var(--width)"},Ge)});if(L===_P)return null;let Ae=j.onFocus,Oe,He;if(s===null&&r.renderCell&&(Oe=r.renderCell(L)),s!==null&&r.renderEditCell){const ge=F.current.getRowWithUpdatedValues(o,r.field),De=ce(s,Poe),qe=r.valueFormatter?r.valueFormatter(s.value,ge,r,F):L.formattedValue,ft=P({},L,{row:ge,formattedValue:qe},De);Oe=r.renderEditCell(ft),G.push(K["cell--editing"]),G.push(te==null?void 0:te["cell--editing"])}if(Oe===void 0){const ge=ee==null?void 0:ee.toString();Oe=ge,He=ge}h.isValidElement(Oe)&&B&&(Oe=h.cloneElement(Oe,{focusElementRef:ne}));const Ee=f?null:{onDragEnter:Pe("cellDragEnter",S),onDragOver:Pe("cellDragOver",D)};return p.jsx("div",P({ref:Z,className:se(Te.root,G,c),role:"gridcell","data-field":I,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":d,"aria-rowspan":Be,style:Ge,title:He,tabIndex:W,onClick:Pe("cellClick",b),onDoubleClick:Pe("cellDoubleClick",C),onMouseOver:Pe("cellMouseOver",T),onMouseDown:Xe("cellMouseDown"),onMouseUp:Fe("cellMouseUp"),onKeyDown:Pe("cellKeyDown",E),onKeyUp:Pe("cellKeyUp",$)},Ee,j,{onFocus:Ae,children:Oe}))}),Eoe=ea(Ioe),Toe=["field","type","align","width","height","empty","style","className"],NP="1.3em",Doe="1.2em",zP=[40,80],$oe={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},Roe=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?ae(t):"Left"}`,r&&"cellEmpty"]};return le(o,lt,n)},Aoe=Jee(12345);function Ooe(e){const{field:t,type:n,align:r,width:o,height:s,empty:i=!1,style:a,className:l}=e,c=ce(e,Toe),d={classes:_e().classes,align:r,empty:i},f=Roe(d),m=h.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:NP,height:NP};const[y,x]=n?$oe[n]??zP:zP;return{variant:"text",width:`${Math.round(Aoe(y,x))}%`,height:Doe}},[n]);return p.jsx("div",P({"data-field":t,className:se(f.root,l),style:P({height:s,maxWidth:o,minWidth:o},a)},c,{children:!i&&p.jsx(QK,P({},m))}))}const joe=ea(Ooe);function Foe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?tl(xe(e.palette.divider,1),.88):el(xe(e.palette.divider,1),.68)}const BP={[`& .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.menuIcon}`]:{width:"auto",visibility:"visible"}},Loe=10,eh=-5,Pl=1,HP={width:3,rx:1.5,x:10.5},_oe="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Noe=Q("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${K.autoHeight}`]:t.autoHeight},{[`&.${K.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${K["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${K["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${K["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${K.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${K["root--disableUserSelection"]} .${K.cell}`]:t["root--disableUserSelection"]},{[`&.${K.autosizing}`]:t.autosizing},{[`& .${K.editBooleanCell}`]:t.editBooleanCell},{[`& .${K.cell}`]:t.cell},{[`& .${K["cell--editing"]}`]:t["cell--editing"]},{[`& .${K["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${K["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${K["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${K["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${K["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${K["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${K["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${K["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${K.cellCheckbox}`]:t.cellCheckbox},{[`& .${K.cellSkeleton}`]:t.cellSkeleton},{[`& .${K.checkboxInput}`]:t.checkboxInput},{[`& .${K["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${K["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${K["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${K["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${K["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${K["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${K["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${K["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${K["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${K.columnHeader}`]:t.columnHeader},{[`& .${K.headerFilterRow}`]:t.headerFilterRow},{[`& .${K.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${K.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${K.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${K["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${K["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${K.columnSeparator}`]:t.columnSeparator},{[`& .${K.filterIcon}`]:t.filterIcon},{[`& .${K.iconSeparator}`]:t.iconSeparator},{[`& .${K.menuIcon}`]:t.menuIcon},{[`& .${K.menuIconButton}`]:t.menuIconButton},{[`& .${K.menuOpen}`]:t.menuOpen},{[`& .${K.menuList}`]:t.menuList},{[`& .${K["row--editable"]}`]:t["row--editable"]},{[`& .${K["row--editing"]}`]:t["row--editing"]},{[`& .${K["row--dragging"]}`]:t["row--dragging"]},{[`& .${K.row}`]:t.row},{[`& .${K.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${K.rowReorderCell}`]:t.rowReorderCell},{[`& .${K["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${K.sortIcon}`]:t.sortIcon},{[`& .${K.withBorderColor}`]:t.withBorderColor},{[`& .${K.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${K.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${K.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${K.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${K.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${K["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var E,$;const t=To(),n=he(t,Fn),r=Foe(e),o=e.shape.borderRadius,s=e.vars?e.vars.palette.background.default:((E=e.mixins.MuiDataGrid)==null?void 0:E.containerBackground)??e.palette.background.default,i=(($=e.mixins.MuiDataGrid)==null?void 0:$.pinnedBackground)??s,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:xe(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})`:xe(e.palette.primary.main,u),m=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:xe(e.palette.primary.main,d),g=e.vars?Hoe:zoe,y=S=>({[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:S,"&.Mui-selected":{backgroundColor:g(S,f,u),"&:hover":{backgroundColor:g(S,f,d)}}}}),x=g(i,c,l),v=y(x),w=g(i,f,u),b=y(w),C=g(i,m,d),k=y(C),M={backgroundColor:f,"&:hover":{backgroundColor:m,"@media (hover: none)":{backgroundColor:f}}};return P({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":i,"--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",[`.${K.main} > *:first-child${_oe}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${K.autoHeight}`]:{height:"auto"},[`&.${K.autosizing}`]:{[`& .${K.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${K.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${K.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${K.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${K.groupingCriteriaCell}`]:{width:"unset"},[`& .${K.treeDataGroupingCell}`]:{width:"unset"}},[`& .${K.columnHeader}, & .${K.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${K.columnHeader}:focus-within, & .${K.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:xe(e.palette.primary.main,.5)} ${Pl}px`,outlineOffset:Pl*-1},[`& .${K.columnHeader}:focus, & .${K.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${Pl}px`,outlineOffset:Pl*-1},[`& .${K.columnHeader}:focus, - & .${K["columnHeader--withLeftBorder"]}, - & .${K["columnHeader--withRightBorder"]}, - & .${K["columnHeader--siblingFocused"]}, - & .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--lastUnpinned"]}, - & .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--last"]} - `]:{[`& .${K.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${K["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${K["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${K["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${K["root--noToolbar"]} [aria-rowindex="1"] .${K["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${K.columnHeaderCheckbox}, & .${K.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${K.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${K["columnHeader--sorted"]} .${K.iconButtonContainer}, & .${K["columnHeader--filtered"]} .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}) .${K.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${K.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${K.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${K["columnHeader--filledGroup"]} .${K.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${K.sortIcon}, & .${K.filterIcon}`]:{fontSize:"inherit"},[`& .${K["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${K["columnHeader--alignCenter"]} .${K.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${K["columnHeader--alignRight"]} .${K.columnHeaderDraggableContainer}, & .${K["columnHeader--alignRight"]} .${K.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${K["columnHeader--alignCenter"]} .${K.menuIcon}`]:{marginLeft:"auto"},[`& .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${K["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${K["columnHeader--pinnedLeft"]}, & .${K["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${K.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:Loe,color:r},[`& .${K.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${K.columnHeader}:hover`]:BP,[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}):hover .${K.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${K.columnHeader}`]:BP,[`& .${K.columnHeader}:focus, - & .${K["columnHeader--siblingFocused"]}`]:{[`.${K["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${K["columnSeparator--sideLeft"]}`]:{left:eh},[`& .${K["columnSeparator--sideRight"]}`]:{right:eh},[`& .${K["columnHeader--withRightBorder"]} .${K["columnSeparator--sideLeft"]}`]:{left:eh-.5},[`& .${K["columnHeader--withRightBorder"]} .${K["columnSeparator--sideRight"]}`]:{right:eh-.5},[`& .${K["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${K["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${K.iconSeparator} rect`]:HP},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${K.iconSeparator} rect`]:HP}},"& svg":{pointerEvents:"none"}},[`& .${K.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${K.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${K.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${K.headerFilterRow}`]:{[`& .${K.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${K["row--borderBottom"]} .${K.columnHeader}, - & .${K["row--borderBottom"]} .${K.filler}, - & .${K["row--borderBottom"]} .${K.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${K["row--borderBottom"]} .${K.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${K.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${K["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${K.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":M},[`& .${K["container--top"]}, & .${K["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${K.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":M},[`& .${K["virtualScrollerContent--overflowed"]} .${K["row--lastVisible"]} .${K.cell}`]:{borderTopColor:"transparent"},[`& .${K["pinnedRows--top"]} :first-of-type`]:{[`& .${K.cell}, .${K.scrollbarFiller}`]:{borderTop:"none"}},[`&.${K["root--disableUserSelection"]} .${K.cell}`]:{userSelect:"none"},[`& .${K["row--dynamicHeight"]} > .${K.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${K.cellEmpty}`]:{padding:0,height:"unset"},[`& .${K.cell}.${K["cell--selectionMode"]}`]:{cursor:"default"},[`& .${K.cell}.${K["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${Pl}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:Pl*-1}},[`& .${K["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${K["row--editing"]} .${K.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${K.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${K.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${K.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${K.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${K.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${K.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${K.withBorderColor}`]:{borderColor:r},[`& .${K["cell--withLeftBorder"]}, & .${K["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${K["cell--withRightBorder"]}, & .${K["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${K["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${K["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${K["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${K["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:w}},[`& .${K.virtualScrollerContent} .${K.row}`]:{"&:hover":v,"&.Mui-selected":b,"&.Mui-selected:hover":k},[`& .${K.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${K.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${K.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${K.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${K["columnHeader--dragging"]}, & .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${K.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${K.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${K.treeDataGroupingCellLoadingContainer}, .${K.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${K.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${K.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${K["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${K.filler}`]:{flex:"1 0 auto"},[`& .${K["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${K["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${K.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${K["scrollbar--vertical"]}, & .${K.pinnedRows}, & .${K.virtualScroller} > .${K.filler}`]:{display:"none"}}})});function zoe(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),s=ys(e),i=ys(t),a=[o(s.values[0],i.values[0]),o(s.values[1],i.values[1]),o(s.values[2],i.values[2])];return _f({type:"rgb",values:a})}const Boe=e=>`rgb(from ${e} r g b / 1)`;function Hoe(e,t,n){return`color-mix(in srgb,${e}, ${Boe(t)} calc(${n} * 100%))`}const Voe=["className"],Goe=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,s={root:["root",n&&"autoHeight",`root--density${ae(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return le(s,lt,r)},Woe=h.forwardRef(function(t,n){const r=_e(),{className:o}=t,s=ce(t,Voe),i=To(),a=he(i,Ql),l=i.current.rootElementRef,c=et(l,n),u=r,d=Goe(u,a),[f,m]=h.useState(!1);return ot(()=>{m(!0)},[]),f?p.jsx(Noe,P({ref:c,className:se(d.root,o),ownerState:u},s)):null}),Uoe=["className"],Yoe=e=>{const{classes:t}=e;return le({root:["footerContainer","withBorderColor"]},lt,t)},Koe=xt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),qoe=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Uoe),s=_e(),i=Yoe(s);return p.jsx(Koe,P({ref:n,className:se(i.root,r),ownerState:s},o))}),Xoe=["className"],Qoe=e=>{const{classes:t}=e;return le({root:["overlay"]},lt,t)},Zoe=xt("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)"}),Xw=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Xoe),s=_e(),i=Qoe(s);return p.jsx(Zoe,P({ref:n,className:se(i.root,r),ownerState:s},o))}),Joe=["className","children"],ese=e=>{const{classes:t}=e;return le({root:["toolbarContainer"]},lt,t)},tse=xt("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),mu=h.forwardRef(function(t,n){const{className:r,children:o}=t,s=ce(t,Joe),i=_e(),a=ese(i);return o?p.jsx(tse,P({ref:n,className:se(a.root,r),ownerState:i},s,{children:o})):null}),nse=e=>{const{classes:t,open:n}=e;return le({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},lt,t)},rse=h.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:s}=e,i=Qe(),a=_e(),l=P({},e,{classes:a.classes}),c=nse(l),u=h.useCallback(m=>{m.preventDefault(),m.stopPropagation(),i.current.toggleColumnMenu(t.field)},[i,t.field]);return p.jsx("div",{className:c.root,children:p.jsx(a.slots.baseTooltip,P({title:i.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=a.slotProps)==null?void 0:d.baseTooltip,{children:p.jsx(a.slots.baseIconButton,P({ref:s,tabIndex:-1,className:c.button,"aria-label":i.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=a.slotProps)==null?void 0:f.baseIconButton,{children:p.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function ose({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:a}){const l=Qe(),c=l.current.getColumn(o),u=ye(d=>{d&&(d.stopPropagation(),i!=null&&i.contains(d.target))||l.current.hideColumnMenu()});return!i||!c?null:p.jsx(AR,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:s,target:i,onClose:u,onExited:a,children:p.jsx(n,P({colDef:c,hideMenu:u,open:s,id:e,labelledby:t},r))})}const sse=["className","aria-label"],ise=e=>{const{classes:t}=e;return le({root:["columnHeaderTitle"]},lt,t)},ase=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),lse=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,sse),s=_e(),i=ise(s);return p.jsx(ase,P({ref:n,className:se(i.root,r),ownerState:s},o))});function cse(e){var l;const{label:t,description:n}=e,r=_e(),o=h.useRef(null),[s,i]=h.useState(""),a=h.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=loe(o.current);i(c?t:"")}},[n,t]);return p.jsx(r.slots.baseTooltip,P({title:n||s},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:p.jsx(lse,{onMouseOver:a,ref:o,children:t})}))}const use=["resizable","resizing","height","side"];var Qw=function(e){return e.Left="left",e.Right="right",e}(Qw||{});const dse=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ae(o)}`],icon:["iconSeparator"]};return le(s,lt,r)};function fse(e){const{height:t,side:n=Qw.Right}=e,r=ce(e,use),o=_e(),s=P({},e,{side:n,classes:o.classes}),i=dse(s),a=h.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return p.jsx("div",P({className:i.root,style:{minHeight:t}},r,{onClick:a,children:p.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const pse=h.memo(fse),hse=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],v3=h.forwardRef(function(t,n){const{classes:r,colIndex:o,height:s,isResizing:i,sortDirection:a,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:m,width:g,columnMenuIconButton:y=null,columnMenu:x=null,columnTitleIconButtons:v=null,headerClassName:w,label:b,resizable:C,draggableContainerProps:k,columnHeaderSeparatorProps:M,style:T}=t,E=ce(t,hse),$=To(),S=_e(),D=h.useRef(null),j=et(D,n);let F="none";return a!=null&&(F=a==="asc"?"ascending":"descending"),h.useLayoutEffect(()=>{var R;const A=$.current.state.columnMenu;if(l&&!A.open){const L=D.current.querySelector('[tabindex="0"]')||D.current;L==null||L.focus(),(R=$.current.columnHeadersContainerRef)!=null&&R.current&&($.current.columnHeadersContainerRef.current.scrollLeft=0)}},[$,l]),p.jsxs("div",P({ref:j,className:se(r.root,w),style:P({},T,{height:s,width:g}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":F},E,{children:[p.jsxs("div",P({className:r.draggableContainer,draggable:d,role:"presentation"},k,{children:[p.jsxs("div",{className:r.titleContainer,role:"presentation",children:[p.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:p.jsx(cse,{label:b,description:m,columnWidth:g})}),v]}),y]})),p.jsx(pse,P({resizable:!S.disableColumnResize&&!!C,resizing:i,height:s,side:u},M)),x]}))}),mse=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,showLeftBorder:i,filterItemsCounter:a,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=a!=null&&a>0,m=t.type==="number",g={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",m&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return le(g,lt,n)};function gse(e){var q,G,ee;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:s,isLast:i,sortDirection:a,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:m,style:g,pinnedPosition:y,indexInSection:x,sectionLength:v,gridHasFiller:w}=e,b=To(),C=_e(),k=h.useRef(null),M=pt(),T=pt(),E=h.useRef(null),[$,S]=h.useState(n),D=h.useMemo(()=>!C.disableColumnReorder&&!f&&!t.disableReorder,[C.disableColumnReorder,f,t.disableReorder]);let j;t.renderHeader&&(j=t.renderHeader(b.current.getColumnHeaderParams(t.field)));const F=F0(y,x),A=j0(y,x,v,C.showColumnVerticalBorder,w),R=P({},e,{classes:C.classes,showRightBorder:A,showLeftBorder:F}),I=mse(R),L=h.useCallback(H=>Z=>{Jf(Z)||b.current.publishEvent(H,b.current.getColumnHeaderParams(t.field),Z)},[b,t.field]),O=h.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),_=h.useMemo(()=>D?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[D,L]),N=h.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);h.useEffect(()=>{$||S(n)},[$,n]);const z=h.useCallback(()=>{S(!1)},[]),U=!C.disableColumnMenu&&!t.disableColumnMenu&&p.jsx(rse,{colDef:t,columnMenuId:M,columnMenuButtonId:T,open:$,iconButtonRef:E}),J=p.jsx(ose,{columnMenuId:M,columnMenuButtonId:T,field:t.field,open:n,target:E.current,ContentComponent:C.slots.columnMenu,contentComponentProps:(q=C.slotProps)==null?void 0:q.columnMenu,onExited:z}),Y=t.sortingOrder??C.sortingOrder,B=(t.sortable||a!=null)&&!t.hideSortIcons&&!C.disableColumnSorting,W=p.jsxs(h.Fragment,{children:[!C.disableColumnFilter&&p.jsx(C.slots.columnHeaderFilterIconButton,P({field:t.field,counter:c},(G=C.slotProps)==null?void 0:G.columnHeaderFilterIconButton)),B&&p.jsx(C.slots.columnHeaderSortIcon,P({field:t.field,direction:a,index:l,sortingOrder:Y,disabled:!t.sortable},(ee=C.slotProps)==null?void 0:ee.columnHeaderSortIcon))]});h.useLayoutEffect(()=>{var Z;const H=b.current.state.columnMenu;if(u&&!H.open){const oe=k.current.querySelector('[tabindex="0"]')||k.current;oe==null||oe.focus(),(Z=b.current.columnHeadersContainerRef)!=null&&Z.current&&(b.current.columnHeadersContainerRef.current.scrollLeft=0)}},[b,u]);const te=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=t.headerName??t.field;return p.jsx(v3,P({ref:k,classes:I,columnMenuOpen:n,colIndex:r,height:o,isResizing:s,sortDirection:a,hasFocus:u,tabIndex:d,separatorSide:m,isDraggable:D,headerComponent:j,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:U,columnTitleIconButtons:W,headerClassName:se(te,i&&K["columnHeader--last"]),label:X,resizable:!C.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:J,draggableContainerProps:_,columnHeaderSeparatorProps:N,style:g},O))}const yse=ea(gse),vse=["className"],xse=e=>{const{classes:t}=e;return le({root:["iconButtonContainer"]},lt,t)},bse=xt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),x3=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,vse),s=_e(),i=xse(s);return p.jsx(bse,P({ref:n,className:se(i.root,r),ownerState:s},o))}),wse=["direction","index","sortingOrder","disabled"],Cse=e=>{const{classes:t}=e;return le({icon:["sortIcon"]},lt,t)};function Sse(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?p.jsx(o,P({fontSize:"small",className:n},s)):null}function kse(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,s=ce(e,wse),i=Qe(),a=_e(),l=P({},e,{classes:a.classes}),c=Cse(l),u=Sse(a.slots,t,c.icon,r);if(!u)return null;const d=p.jsx(a.slots.baseIconButton,P({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=a.slotProps)==null?void 0:f.baseIconButton,s,{children:u}));return p.jsxs(x3,{children:[n!=null&&p.jsx(a.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const Pse=h.memo(kse),Mse=e=>{const{classes:t}=e;return le({icon:["filterIcon"]},lt,t)};function Ise(e){var g,y;const{counter:t,field:n,onClick:r}=e,o=Qe(),s=_e(),i=P({},e,{classes:s.classes}),a=Mse(i),l=he(o,df),c=pt(),u=pt(),d=h.useCallback(x=>{x.preventDefault(),x.stopPropagation();const{open:v,openedPanelValue:w}=df(o.current.state);v&&w===Ya.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),x)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,m=p.jsx(s.slots.baseIconButton,P({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},(g=s.slotProps)==null?void 0:g.baseIconButton,{children:p.jsx(s.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return p.jsx(s.slots.baseTooltip,P({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=s.slotProps)==null?void 0:y.baseTooltip,{children:p.jsxs(x3,{children:[t>1&&p.jsx(s.slots.baseBadge,{badgeContent:t,color:"default",children:m}),t===1&&m]})}))}const VP=Re(p.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),GP=Re(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),WP=Re(p.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),UP=Re(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Ese=Re(p.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),YP=Re(p.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"),Tse=Re(p.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");Re(p.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Re(p.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 Dse=Re(p.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"),$se=Re(p.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),Rse=Re(p.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Ase=Re(p.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Ose=Re(p.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),jse=Re(p.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"),iv=Re(p.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"),KP=Re(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Fse=Re(p.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Lse=Re(p.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"),qP=Re(p.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"),_se=Re(p.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"),Nse=Re(p.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),zse=Re(p.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"),Bse=Re(p.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"),Hse=Re(p.jsx("g",{children:p.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Vse=Re(p.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");Re(p.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 Gse=Re(p.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 b3(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Lm=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Wse=e=>!!e.key,Use=e=>e==="Tab"||e==="Escape";function w3(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Yse(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Kse=["hideMenu","colDef","id","labelledby","className","children","open"],qse=Q(pw)(()=>({minWidth:248})),Xse=h.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:a,open:l}=t,c=ce(t,Kse),u=h.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),Use(d.key)&&r(d)},[r]);return p.jsx(qse,P({id:o,ref:n,className:se(K.menuList,i),"aria-labelledby":s,onKeyDown:u,autoFocus:l},c,{children:a}))}),Qse=["displayOrder"],Zse=e=>{const t=To(),n=_e(),{defaultSlots:r,defaultSlotProps:o,slots:s={},slotProps:i={},hideMenu:a,colDef:l,addDividers:c=!0}=e,u=h.useMemo(()=>P({},r,s),[r,s]),d=h.useMemo(()=>{if(!i||Object.keys(i).length===0)return o;const g=P({},i);return Object.entries(o).forEach(([y,x])=>{g[y]=P({},x,i[y]||{})}),g},[o,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=h.useMemo(()=>{const g=Object.keys(r);return Object.keys(s).filter(y=>!g.includes(y))},[s,r]);return h.useMemo(()=>{const x=Array.from(new Set([...f,...m])).filter(v=>u[v]!=null).sort((v,w)=>{const b=d[v],C=d[w],k=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,M=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100;return k-M});return x.reduce((v,w,b)=>{let C={colDef:l,onClick:a};const k=d[w];if(k){const M=ce(k,Qse);C=P({},C,M)}return c&&b!==x.length-1?[...v,[u[w],C],[n.slots.baseDivider,{}]]:[...v,[u[w],C]]},[])},[c,l,f,a,u,d,m,n.slots.baseDivider])};function Jse(e){const{colDef:t,onClick:n}=e,r=Qe(),o=_e(),a=fn(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=h.useCallback(c=>{a||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:p.jsxs(Bt,{onClick:l,disabled:a,children:[p.jsx(lc,{children:p.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),p.jsx(cc,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function eie(e){const{onClick:t}=e,n=Qe(),r=_e(),o=h.useCallback(s=>{t(s),n.current.showPreferences(Ya.columns)},[n,t]);return r.disableColumnSelector?null:p.jsxs(Bt,{onClick:o,children:[p.jsx(lc,{children:p.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),p.jsx(cc,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function tie(e){return p.jsxs(h.Fragment,{children:[p.jsx(Jse,P({},e)),p.jsx(eie,P({},e))]})}function nie(e){const{colDef:t,onClick:n}=e,r=Qe(),o=_e(),s=h.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:p.jsxs(Bt,{onClick:s,children:[p.jsx(lc,{children:p.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),p.jsx(cc,{children:r.current.getLocaleText("columnMenuFilter")})]})}function rie(e){const{colDef:t,onClick:n}=e,r=Qe(),o=he(r,Zr),s=_e(),i=h.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),a=t.sortingOrder??s.sortingOrder,l=h.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===i?null:d)},[r,t,n,i]);if(s.disableColumnSorting||!t||!t.sortable||!a.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return p.jsxs(h.Fragment,{children:[a.includes("asc")&&i!=="asc"?p.jsxs(Bt,{onClick:l,"data-value":"asc",children:[p.jsx(lc,{children:p.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),p.jsx(cc,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?p.jsxs(Bt,{onClick:l,"data-value":"desc",children:[p.jsx(lc,{children:p.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),p.jsx(cc,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?p.jsxs(Bt,{onClick:l,children:[p.jsx(lc,{}),p.jsx(cc,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const oie=["defaultSlots","defaultSlotProps","slots","slotProps"],sie={columnMenuSortItem:rie,columnMenuFilterItem:nie,columnMenuColumnsItem:tie},iie={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},aie=h.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,a=ce(t,oie),l=Zse(P({},a,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return p.jsx(Xse,P({ref:n},a,{children:l.map(([c,u],d)=>p.jsx(c,P({},u),d))}))}),lie=h.forwardRef(function(t,n){return p.jsx(aie,P({},t,{ref:n,defaultSlots:sie,defaultSlotProps:iie}))}),cie=["className","slotProps"],uie=e=>{const{classes:t}=e;return le({root:["panelWrapper"]},lt,t)},die=Q("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),fie=()=>!0,C3=h.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=ce(t,cie),i=_e(),a=uie(i);return p.jsx(uw,P({open:!0,disableEnforceFocus:!0,isEnabled:fie},o.TrapFocus,{children:p.jsx(die,P({ref:n,tabIndex:-1,className:se(a.root,r),ownerState:i},s))}))}),pie=(e,t)=>{const n=new Set(Object.keys(e).filter(s=>e[s]===!1)),r=new Set(Object.keys(t).filter(s=>t[s]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(s=>{r.has(s)||(o=!1)}),o},hie=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,mie=e=>{const{classes:t}=e;return le({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},lt,t)},XP=new Intl.Collator;function S3(e){var F,A,R;const t=Qe(),n=h.useRef(null),r=he(t,Vo),o=Yo(()=>uo(t)).current,s=he(t,uo),i=_e(),[a,l]=h.useState(""),c=mie(i),{sort:u,searchPredicate:d=hie,autoFocusSearchField:f=!0,disableShowHideToggle:m=!1,disableResetButton:g=!1,toggleAllMode:y="all",getTogglableColumns:x}=e,v=h.useMemo(()=>pie(s,o),[s,o]),w=h.useMemo(()=>{switch(u){case"asc":return[...r].sort((I,L)=>XP.compare(I.headerName||I.field,L.headerName||L.field));case"desc":return[...r].sort((I,L)=>-XP.compare(I.headerName||I.field,L.headerName||L.field));default:return r}},[r,u]),b=I=>{const{name:L}=I.target;t.current.setColumnVisibility(L,s[L]===!1)},C=h.useMemo(()=>{const I=x?x(w):null,L=I?w.filter(({field:O})=>I.includes(O)):w;return a?L.filter(O=>d(O,a.toLowerCase())):L},[w,a,d,x]),k=h.useCallback(I=>{const L=uo(t),O=P({},L),_=x?x(r):null;return(y==="filteredOnly"?C:r).forEach(N=>{N.hideable&&(_==null||_.includes(N.field))&&(I?delete O[N.field]:O[N.field]=!1)}),t.current.setColumnVisibilityModel(O)},[t,r,x,y,C]),M=h.useCallback(I=>{l(I.target.value)},[]),T=h.useMemo(()=>C.filter(I=>I.hideable),[C]),E=h.useMemo(()=>T.every(I=>s[I.field]==null||s[I.field]!==!1),[s,T]),$=h.useMemo(()=>T.every(I=>s[I.field]===!1),[s,T]),S=h.useRef(null);h.useEffect(()=>{f?n.current.focus():S.current&&typeof S.current.focus=="function"&&S.current.focus()},[f]);let D=!1;const j=I=>D===!1&&I.hideable!==!1?(D=!0,!0):!1;return p.jsxs(h.Fragment,{children:[p.jsx(yie,{className:c.header,ownerState:i,children:p.jsx(i.slots.baseTextField,P({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:M,variant:"outlined",size:"small",InputProps:{startAdornment:p.jsx(i.slots.baseInputAdornment,{position:"start",children:p.jsx(i.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(F=i.slotProps)==null?void 0:F.baseTextField))}),p.jsxs(gie,{className:c.root,ownerState:i,children:[C.map(I=>{var L;return p.jsx(so,{className:c.row,control:p.jsx(i.slots.baseCheckbox,P({disabled:I.hideable===!1,checked:s[I.field]!==!1,onClick:b,name:I.field,sx:{p:.5},inputRef:j(I)?S:void 0},(L=i.slotProps)==null?void 0:L.baseCheckbox)),label:I.headerName||I.field},I.field)}),C.length===0&&p.jsx(xie,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!m||!g)&&C.length>0?p.jsxs(vie,{ownerState:i,className:c.footer,children:[m?p.jsx("span",{}):p.jsx(so,{control:p.jsx(i.slots.baseCheckbox,P({disabled:T.length===0,checked:E,indeterminate:!E&&!$,onClick:()=>k(!E),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(A=i.slotProps)==null?void 0:A.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),g?null:p.jsx(i.slots.baseButton,P({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:v},(R=i.slotProps)==null?void 0:R.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const gie=Q("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"})),yie=Q("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),vie=Q("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}`})),xie=Q("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function bie(e){var n;const t=_e();return p.jsx(C3,P({},e,{children:p.jsx(S3,P({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const wie=["children","className","classes"],Cie=me("MuiDataGrid",["panel","paper"]),Sie=Q(oi,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),kie=Q(Io,{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"})),Pie=h.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ce(e,wie),s=Qe(),i=_e(),a=Cie,[l,c]=h.useState(!1),u=h.useCallback(()=>{s.current.hidePreferences()},[s]),d=h.useCallback(y=>{y.key==="Escape"&&s.current.hidePreferences()},[s]),f=h.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[m,g]=h.useState(null);return h.useEffect(()=>{var x,v;const y=(v=(x=s.current.rootElementRef)==null?void 0:x.current)==null?void 0:v.querySelector('[data-id="gridPanelAnchor"]');y&&g(y)},[s]),m?p.jsx(Sie,P({ref:t,placement:"bottom-start",className:se(a.panel,r),ownerState:i,anchorEl:m,modifiers:f},o,{children:p.jsx(E$,{mouseEvent:"onMouseUp",onClickAway:u,children:p.jsx(kie,{className:a.paper,ownerState:i,elevation:8,onKeyDown:d,children:l&&n})})})):null}),Mie=["className"],Iie=e=>{const{classes:t}=e;return le({root:["panelContent"]},lt,t)},Eie=xt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Tie(e){const{className:t}=e,n=ce(e,Mie),r=_e(),o=Iie(r);return p.jsx(Eie,P({className:se(o.root,t),ownerState:r},n))}const Die=["className"],$ie=e=>{const{classes:t}=e;return le({root:["panelFooter"]},lt,t)},Rie=xt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Aie(e){const{className:t}=e,n=ce(e,Die),r=_e(),o=$ie(r);return p.jsx(Rie,P({className:se(o.root,t),ownerState:r},n))}const Oie=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],jie=["InputComponentProps"],Fie=e=>{const{classes:t}=e;return le({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},lt,t)},Lie=Q("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),_ie=Q("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)})),Nie=Q("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),zie=Q("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Bie=Q("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),Hie=Q("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Vie=e=>{switch(e){case Jn.And:return"filterPanelOperatorAnd";case Jn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Hu=e=>e.headerName||e.field,QP=new Intl.Collator,ZP=h.forwardRef(function(t,n){var oe,re,ue,ie,be,Te,Fe,Xe,Pe;const{item:r,hasMultipleFilters:o,deleteFilter:s,applyFilterChanges:i,showMultiFilterOperators:a,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[Jn.And,Jn.Or],columnsSort:f,filterColumns:m,deleteIconProps:g={},logicOperatorInputProps:y={},operatorInputProps:x={},columnInputProps:v={},valueInputProps:w={},readOnly:b}=t,C=ce(t,Oie),k=Qe(),M=he(k,ii),T=he(k,CR),E=he(k,Dn),$=pt(),S=pt(),D=pt(),j=pt(),F=_e(),A=Fie(F),R=h.useRef(null),I=h.useRef(null),L=E.logicOperator??Jn.And,O=o&&d.length>0,_=((oe=F.slotProps)==null?void 0:oe.baseFormControl)||{},z=(((re=F.slotProps)==null?void 0:re.baseSelect)||{}).native??!1,U=((ue=F.slotProps)==null?void 0:ue.baseInputLabel)||{},J=((ie=F.slotProps)==null?void 0:ie.baseSelectOption)||{},{InputComponentProps:Y}=w,B=ce(w,jie),{filteredColumns:W,selectedField:te}=h.useMemo(()=>{let Ie=r.field;const Be=M[r.field].filterable===!1?M[r.field]:null;if(Be)return{filteredColumns:[Be],selectedField:Ie};if(m===void 0||typeof m!="function")return{filteredColumns:T,selectedField:Ie};const Ge=m({field:r.field,columns:T,currentFilters:(E==null?void 0:E.items)||[]});return{filteredColumns:T.filter(Ae=>{const Oe=Ge.includes(Ae.field);return Ae.field===r.field&&!Oe&&(Ie=void 0),Oe}),selectedField:Ie}},[m,E==null?void 0:E.items,T,r.field,M]),X=h.useMemo(()=>{switch(f){case"asc":return W.sort((Ie,Be)=>QP.compare(Hu(Ie),Hu(Be)));case"desc":return W.sort((Ie,Be)=>-QP.compare(Hu(Ie),Hu(Be)));default:return W}},[W,f]),q=r.field?k.current.getColumn(r.field):null,G=h.useMemo(()=>{var Ie;return!r.operator||!q?null:(Ie=q.filterOperators)==null?void 0:Ie.find(Be=>Be.value===r.operator)},[r,q]),ee=h.useCallback(Ie=>{const Be=Ie.target.value,Ge=k.current.getColumn(Be);if(Ge.field===q.field)return;const Ae=Ge.filterOperators.find(Ee=>Ee.value===r.operator)||Ge.filterOperators[0];let He=!Ae.InputComponent||Ae.InputComponent!==(G==null?void 0:G.InputComponent)||Ge.type!==q.type?void 0:r.value;if(Ge.type==="singleSelect"&&He!==void 0){const Ee=Ge,Me=Ua(Ee);Array.isArray(He)?He=He.filter(Ve=>jm(Ve,Me,Ee==null?void 0:Ee.getOptionValue)!==void 0):jm(r.value,Me,Ee==null?void 0:Ee.getOptionValue)===void 0&&(He=void 0)}i(P({},r,{field:Be,operator:Ae.value,value:He}))},[k,i,r,q,G]),H=h.useCallback(Ie=>{const Be=Ie.target.value,Ge=q==null?void 0:q.filterOperators.find(Oe=>Oe.value===Be),Ae=!(Ge!=null&&Ge.InputComponent)||(Ge==null?void 0:Ge.InputComponent)!==(G==null?void 0:G.InputComponent);i(P({},r,{operator:Be,value:Ae?void 0:r.value}))},[i,r,q,G]),Z=h.useCallback(Ie=>{const Be=Ie.target.value===Jn.And.toString()?Jn.And:Jn.Or;c(Be)},[c]),ne=()=>{s(r)};return h.useImperativeHandle(u,()=>({focus:()=>{var Ie;G!=null&&G.InputComponent?(Ie=R==null?void 0:R.current)==null||Ie.focus():I.current.focus()}}),[G]),p.jsxs(Lie,P({ref:n,className:A.root,"data-id":r.id,ownerState:F},C,{children:[p.jsx(_ie,P({variant:"standard",as:F.slots.baseFormControl},_,g,{className:se(A.deleteIcon,_.className,g.className),ownerState:F,children:p.jsx(F.slots.baseIconButton,P({"aria-label":k.current.getLocaleText("filterPanelDeleteIconLabel"),title:k.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ne,size:"small",disabled:b},(be=F.slotProps)==null?void 0:be.baseIconButton,{children:p.jsx(F.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),p.jsx(Nie,P({variant:"standard",as:F.slots.baseFormControl},_,y,{sx:[O?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},_.sx,y.sx],className:se(A.logicOperatorInput,_.className,y.className),ownerState:F,children:p.jsx(F.slots.baseSelect,P({inputProps:{"aria-label":k.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:Z,disabled:!!l||d.length===1,native:z},(Te=F.slotProps)==null?void 0:Te.baseSelect,{children:d.map(Ie=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ie.toString(),value:Ie.toString()}),k.current.getLocaleText(Vie(Ie))))}))})),p.jsxs(zie,P({variant:"standard",as:F.slots.baseFormControl},_,v,{className:se(A.columnInput,_.className,v.className),ownerState:F,children:[p.jsx(F.slots.baseInputLabel,P({},U,{htmlFor:$,id:S,children:k.current.getLocaleText("filterPanelColumns")})),p.jsx(F.slots.baseSelect,P({labelId:S,id:$,label:k.current.getLocaleText("filterPanelColumns"),value:te??"",onChange:ee,native:z,disabled:b},(Fe=F.slotProps)==null?void 0:Fe.baseSelect,{children:X.map(Ie=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ie.field,value:Ie.field}),Hu(Ie)))}))]})),p.jsxs(Bie,P({variant:"standard",as:F.slots.baseFormControl},_,x,{className:se(A.operatorInput,_.className,x.className),ownerState:F,children:[p.jsx(F.slots.baseInputLabel,P({},U,{htmlFor:D,id:j,children:k.current.getLocaleText("filterPanelOperator")})),p.jsx(F.slots.baseSelect,P({labelId:j,label:k.current.getLocaleText("filterPanelOperator"),id:D,value:r.operator,onChange:H,native:z,inputRef:I,disabled:b},(Xe=F.slotProps)==null?void 0:Xe.baseSelect,{children:(Pe=q==null?void 0:q.filterOperators)==null?void 0:Pe.map(Ie=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ie.value,value:Ie.value}),Ie.label||k.current.getLocaleText(`filterOperator${ae(Ie.value)}`)))}))]})),p.jsx(Hie,P({variant:"standard",as:F.slots.baseFormControl},_,B,{className:se(A.valueInput,_.className,B.className),ownerState:F,children:G!=null&&G.InputComponent?p.jsx(G.InputComponent,P({apiRef:k,item:r,applyValue:i,focusElementRef:R,disabled:b},G.InputComponentProps,Y),r.field):null}))]}))}),Gie=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],JP=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Wie=h.forwardRef(function(t,n){var j,F;const r=Qe(),o=_e(),s=he(r,Dn),i=he(r,CR),a=he(r,Fee),l=h.useRef(null),c=h.useRef(null),{logicOperators:u=[Jn.And,Jn.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:m,disableAddFilterButton:g=!1,disableRemoveAllButton:y=!1}=t,x=ce(t,Gie),v=r.current.upsertFilterItem,w=h.useCallback(A=>{r.current.setFilterLogicOperator(A)},[r]),b=h.useCallback(()=>{let A;if(m&&typeof m=="function"){const R=m({currentFilters:(s==null?void 0:s.items)||[],columns:i});if(R===null)return null;A=i.find(({field:I})=>I===R)}else A=i.find(R=>{var I;return(I=R.filterOperators)==null?void 0:I.length});return A?JP(A):null},[s==null?void 0:s.items,i,m]),C=h.useCallback(()=>{if(m===void 0||typeof m!="function")return b();const A=s.items.length?s.items:[b()].filter(Boolean),R=m({currentFilters:A,columns:i});if(R===null)return null;const I=i.find(({field:L})=>L===R);return I?JP(I):null},[s.items,i,m,b]),k=h.useMemo(()=>s.items.length?s.items:(c.current||(c.current=b()),c.current?[c.current]:[]),[s.items,b]),M=k.length>1,{readOnlyFilters:T,validFilters:E}=h.useMemo(()=>k.reduce((A,R)=>(a[R.field]?A.validFilters.push(R):A.readOnlyFilters.push(R),A),{readOnlyFilters:[],validFilters:[]}),[k,a]),$=h.useCallback(()=>{const A=C();A&&r.current.upsertFilterItems([...k,A])},[r,C,k]),S=h.useCallback(A=>{const R=E.length===1;r.current.deleteFilterItem(A),R&&r.current.hideFilterPanel()},[r,E.length]),D=h.useCallback(()=>E.length===1&&E[0].value===void 0?(r.current.deleteFilterItem(E[0]),r.current.hideFilterPanel()):r.current.setFilterModel(P({},s,{items:T}),"removeAllFilterItems"),[r,T,s,E]);return h.useEffect(()=>{u.length>0&&s.logicOperator&&!u.includes(s.logicOperator)&&w(u[0])},[u,w,s.logicOperator]),h.useEffect(()=>{E.length>0&&l.current.focus()},[E.length]),p.jsxs(C3,P({ref:n},x,{children:[p.jsxs(Tie,{children:[T.map((A,R)=>p.jsx(ZP,P({item:A,applyFilterChanges:v,deleteFilter:S,hasMultipleFilters:M,showMultiFilterOperators:R>0,disableMultiFilterOperator:R!==1,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),A.id==null?R:A.id)),E.map((A,R)=>p.jsx(ZP,P({item:A,applyFilterChanges:v,deleteFilter:S,hasMultipleFilters:M,showMultiFilterOperators:T.length+R>0,disableMultiFilterOperator:T.length+R!==1,applyMultiFilterOperatorChanges:w,focusElementRef:R===E.length-1?l:null,logicOperators:u,columnsSort:d},f),A.id==null?R+T.length:A.id))]}),!o.disableMultipleColumnsFiltering&&!(g&&y)?p.jsxs(Aie,{children:[g?p.jsx("span",{}):p.jsx(o.slots.baseButton,P({onClick:$,startIcon:p.jsx(o.slots.filterPanelAddIcon,{})},(j=o.slotProps)==null?void 0:j.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!y&&E.length>0?p.jsx(o.slots.baseButton,P({onClick:D,startIcon:p.jsx(o.slots.filterPanelRemoveAllIcon,{})},(F=o.slotProps)==null?void 0:F.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),Uie=["hideMenu","options"],Yie=["hideMenu","options"];function Kie(e){const t=Qe(),{hideMenu:n,options:r}=e,o=ce(e,Uie);return p.jsx(Bt,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function qie(e){const t=Qe(),{hideMenu:n,options:r}=e,o=ce(e,Yie);return p.jsx(Bt,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Xie=["className","selectedRowCount"],Qie=e=>{const{classes:t}=e;return le({root:["selectedRowCount"]},lt,t)},Zie=xt("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"}})),Jie=h.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=ce(t,Xie),i=Qe(),a=_e(),l=Qie(a),c=i.current.getLocaleText("footerRowSelected")(o);return p.jsx(Zie,P({ref:n,className:se(l.root,r),ownerState:a},s,{children:c}))}),eae=h.forwardRef(function(t,n){var d,f;const r=Qe(),o=_e(),s=he(r,bte),i=he(r,qte),a=he(r,Hw),l=!o.hideFooterSelectedRowCount&&i>0?p.jsx(Jie,{selectedRowCount:i}):p.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?p.jsx(o.slots.footerRowCount,P({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:s,visibleRowCount:a})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&p.jsx(o.slots.pagination,P({},(f=o.slotProps)==null?void 0:f.pagination));return p.jsxs(qoe,P({ref:n},t,{children:[l,c,u]}))});function tae(){var s,i;const e=Qe(),t=he(e,Vo),n=_e(),r=he(e,df),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Ya.filters);return p.jsx(n.slots.panel,P({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(s=n.slotProps)==null?void 0:s.panel,(i=n.slotProps)==null?void 0:i.basePopper,{children:o}))}function nae(){var t;const e=_e();return p.jsxs(h.Fragment,{children:[p.jsx(tae,{}),e.slots.toolbar&&p.jsx(e.slots.toolbar,P({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const Zw=(e,t,n,r,o)=>{const s=o.hasScrollY?o.scrollbarSize:0;let i;switch(e){case $t.LEFT:i=r[n];break;case $t.RIGHT:i=o.columnsTotalWidth-r[n]-t+s;break;default:i=0;break}return i},Vu={root:K.scrollbarFiller,header:K["scrollbarFiller--header"],borderTop:K["scrollbarFiller--borderTop"],borderBottom:K["scrollbarFiller--borderBottom"],pinnedRight:K["scrollbarFiller--pinnedRight"]};function Jw({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return p.jsx("div",{role:"presentation",className:se(Vu.root,e&&Vu.header,t&&Vu.borderTop,n&&Vu.borderBottom,r&&Vu.pinnedRight)})}const rae=xt("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),oae=e=>{const{classes:t}=e;return le({root:["skeletonLoadingOverlay"]},lt,t)},eM=e=>parseInt(e.getAttribute("data-colindex"),10),sae=h.forwardRef(function(t,n){const r=_e(),{slots:o}=r,s=oae({classes:r.classes}),i=h.useRef(null),a=et(i,n),l=Qe(),c=he(l,Fn),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=he(l,jw),m=he(l,ta),g=h.useMemo(()=>m.filter(M=>M<=f).length,[f,m]),y=he(l,fn),x=h.useMemo(()=>y.slice(0,g),[y,g]),v=he(l,qf),w=h.useCallback((M,T,E)=>{const $=Zw(E,M,T,m,c);return{[E]:$}},[c,m]),b=h.useCallback(M=>{if(v.left.findIndex(T=>T.field===M)!==-1)return $t.LEFT;if(v.right.findIndex(T=>T.field===M)!==-1)return $t.RIGHT},[v.left,v.right]),C=h.useMemo(()=>{const M=[];for(let T=0;Tq.field===S.field):$-v.left.length,I=D&&w(S.computedWidth,$,D),L=c.columnsTotalWidth0},`skeleton-scrollbar-filler-${T}`))}M.push(p.jsx("div",{className:se(K.row,K.rowSkeleton,T===0&&K["row--firstVisible"]),children:E},`skeleton-row-${T}`))}return M},[o,x,v,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,b,w]);return je(l,"columnResize",M=>{var I,L,O;const{colDef:T,width:E}=M,$=(I=i.current)==null?void 0:I.querySelectorAll(`[data-field="${ai(T.field)}"]`);if(!$)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const S=x.findIndex(_=>_.field===T.field),D=b(T.field),j=D===$t.LEFT,F=D===$t.RIGHT,A=getComputedStyle($[0]).getPropertyValue("--width"),R=parseInt(A,10)-E;if($&&$.forEach(_=>{_.style.setProperty("--width",`${E}px`)}),j){const _=(L=i.current)==null?void 0:L.querySelectorAll(`.${K["cell--pinnedLeft"]}`);_==null||_.forEach(N=>{eM(N)>S&&(N.style.left=`${parseInt(getComputedStyle(N).left,10)-R}px`)})}if(F){const _=(O=i.current)==null?void 0:O.querySelectorAll(`.${K["cell--pinnedRight"]}`);_==null||_.forEach(N=>{eM(N)({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Da.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Da.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),dae=(e,t)=>({from:n,to:r,count:o,page:s})=>e({from:n,to:r,count:o,page:s,estimated:t}),fae=({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}`}`,pae=h.forwardRef(function(t,n){const r=Qe(),o=_e(),s=he(r,Zn),i=he(r,Zl),a=he(r,XR),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=h.useMemo(()=>i===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,i]),f=h.useMemo(()=>Math.max(0,a-1),[a]),m=h.useMemo(()=>i===-1||s.page<=f?s.page:f,[f,s.page,i]),g=h.useCallback(C=>{const k=Number(C.target.value);r.current.setPageSize(k)},[r]),y=h.useCallback((C,k)=>{r.current.setPage(k)},[r]),v=(C=>{for(let k=0;k{const{classes:t}=e;return le({root:["rowCount"]},lt,t)},gae=xt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),yae=h.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=ce(t,hae),a=Qe(),l=_e(),c=mae(l);if(o===0)return null;const u=s=d.left.length&&y=g.lastColumnIndex,q=vae(A.classes,{root:["row",r&&"selected",B&&"row--editable",Y&&"row--editing",x&&"row--firstVisible",v&&"row--lastVisible",b&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),G=j.hooks.useGridRowAriaAttributes();h.useLayoutEffect(()=>{if(R.range){const Ee=D.current.getRowIndexRelativeToVisibleRows(o);Ee!==void 0&&D.current.unstable_setLastMeasuredRowIndex(Ee)}if(F.current&&l==="auto")return D.current.observeRowHeight(F.current,o)},[D,R.range,l,o]);const ee=h.useCallback((Ee,Me)=>Ve=>{Jf(Ve)||D.current.getRow(o)&&(D.current.publishEvent(Ee,D.current.getRowParams(o),Ve),Me&&Me(Ve))},[D,o]),H=h.useCallback(Ee=>{const Me=Fm(Ee.target,K.cell),Ve=Me==null?void 0:Me.getAttribute("data-field");if(Ve){if(Ve===fu.field||Ve===I0||Ve==="__reorder__"||D.current.getCellMode(o,Ve)===St.Edit)return;const bt=D.current.getColumn(Ve);if((bt==null?void 0:bt.type)===k0)return}ee("rowClick",C)(Ee)},[D,C,ee,o]),{slots:Z,slotProps:ne,disableColumnReorder:oe}=A,re=A.rowReordering,ue=he(D,()=>P({},D.current.getRowHeightEntry(o)),wR),ie=h.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const Ee=P({},a,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(ue.spacingTop){const Me=A.rowSpacingType==="border"?"borderTopWidth":"marginTop";Ee[Me]=ue.spacingTop}if(ue.spacingBottom){const Me=A.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ve=Ee[Me];typeof Ve!="number"&&(Ve=parseInt(Ve||"0",10)),Ve+=ue.spacingBottom,Ee[Me]=Ve}return Ee},[w,l,a,ue,A.rowSpacingType]),be=D.current.unstable_applyPipeProcessors("rowClassName",[],o),Te=z?G(z,i):void 0;if(typeof A.getRowClassName=="function"){const Ee=i-(((He=R.range)==null?void 0:He.firstRowIndex)||0),Me=P({},D.current.getRowParams(o),{isFirstVisible:Ee===0,isLastVisible:Ee===R.rows.length-1,indexRelativeToCurrentPage:Ee});be.push(A.getRowClassName(Me))}const Fe=(Ee,Me,Ve,bt,ge=fr.NONE)=>{var qo;const De=D.current.unstable_getCellColSpanInfo(o,Ve);if(De!=null&&De.spannedByColSpan)return null;const qe=(De==null?void 0:De.cellProps.width)??Ee.computedWidth,ft=(De==null?void 0:De.cellProps.colSpan)??1,Yn=Zw(y3[ge],Ee.computedWidth,Ve,O,m);if((z==null?void 0:z.type)==="skeletonRow")return p.jsx(Z.skeletonCell,{type:Ee.type,width:qe,height:l,field:Ee.field,align:Ee.align},Ee.field);const it=((qo=_[o])==null?void 0:qo[Ee.field])??null,At=Ee.field==="__reorder__",on=Object.keys(_).length>0,Zt=!(oe||Ee.disableReorder),or=re&&!I.length&&L<=1&&!on,Ln=!(Zt||At&&or),kr=ge===fr.VIRTUAL;return p.jsx(Z.cell,P({column:Ee,width:qe,rowId:o,align:Ee.align||"left",colIndex:Ve,colSpan:ft,disableDragEvents:Ln,editCellState:it,isNotVisible:kr,pinnedOffset:Yn,pinnedPosition:ge,sectionIndex:Me,sectionLength:bt,gridHasFiller:J},ne==null?void 0:ne.cell),Ee.field)};if(!z)return null;const Xe=d.left.map((Ee,Me)=>Fe(Ee,Me,Me,d.left.length,fr.LEFT)),Pe=d.right.map((Ee,Me)=>{const Ve=u.length-d.right.length+Me;return Fe(Ee,Me,Ve,d.right.length,fr.RIGHT)}),Ie=u.length-d.left.length-d.right.length,Be=[];te&&Be.push(Fe(u[y],y-d.left.length,y,Ie,fr.VIRTUAL));for(let Ee=g.firstColumnIndex;Ee0&&p.jsx(bae,{width:Oe}),Pe.length>0&&p.jsx("div",{role:"presentation",className:K.filler}),Pe,U!==0&&p.jsx(Jw,{pinnedRight:d.right.length>0})]}))}),Cae=ea(wae),Sae=()=>{const e=To(),t=_e(),n=he(e,fn),r=he(e,Bw),o=he(e,Zf),s=he(e,kte);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+s+r,"aria-multiselectable":Vw(t)}},kae=()=>{const e=To(),t=he(e,Bs),n=he(e,Zf);return h.useCallback((r,o)=>{const s={},i=o+n+2;return s["aria-rowindex"]=i,e.current.isRowSelectable(r.id)&&(s["aria-selected"]=t[r.id]!==void 0),s},[e,t,n])};function Pae({privateApiRef:e,configuration:t,props:n,children:r}){const o=h.useRef(e.current.getPublicApi());return p.jsx(c3.Provider,{value:t,children:p.jsx(xR.Provider,{value:n,children:p.jsx(o3.Provider,{value:e,children:p.jsx(vR.Provider,{value:o,children:r})})})})}const Mae=e=>{const t=h.useRef(null),n=h.useRef(null),r=h.useRef(null),o=h.useRef(null),s=h.useRef(null),i=h.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:s,columnHeadersContainerRef:i})},Iae=e=>{const t=Nt();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=h.useRef(!0);h.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>P({},r,{isRtl:t}))},[e,t])},Eae=Qee()&&window.localStorage.getItem("DEBUG")!=null,id=()=>{},Tae={debug:id,info:id,warn:id,error:id},tM=["debug","info","warn","error"];function nM(e,t,n=console){const r=tM.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return tM.reduce((s,i,a)=>(a>=r?s[i]=(...l)=>{const[c,...u]=l;n[i](`MUI X: ${e} - ${c}`,...u)}:s[i]=id,s),{})}const Dae=(e,t)=>{const n=h.useCallback(r=>Eae?nM(r,"debug",t.logger):t.logLevel?nM(r,t.logLevel.toString(),t.logger):Tae,[t.logLevel,t.logger]);nt(e,{getLogger:n},"private")};class $ae{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()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const a=o[i];r.highPriority.has(a)&&a.apply(this,n)}for(let i=0;i(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 k3=Symbol("mui.api_private"),Rae=e=>e.isPropagationStopped!==void 0;let rM=0;function Aae(e){var o;const t=(o=e.current)==null?void 0:o[k3];if(t)return t;const n={},r={state:n,store:eC.create(n),instanceId:{id:rM}};return rM+=1,r.getPublicApi=()=>e.current,r.register=(s,i)=>{Object.keys(i).forEach(a=>{const l=i[a],c=r[a];if((c==null?void 0:c.spying)===!0?c.target=l:r[a]=l,s==="public"){const u=e.current,d=u[a];(d==null?void 0:d.spying)===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new $ae}),r}function Oae(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[k3]:e.current}}function jae(e,t){var i;const n=h.useRef(),r=h.useRef();r.current||(r.current=Aae(n)),n.current||(n.current=Oae(r));const o=h.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,Rae(u)&&u.isPropagationStopped())return;const d=t.signature===yo.DataGridPro||t.signature===yo.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),s=h.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return nt(r,{subscribeEvent:s,publishEvent:o},"public"),e&&!((i=e.current)!=null&&i.state)&&(e.current=n.current),h.useImperativeHandle(e,()=>n.current,[n]),h.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const Fae=(e,t)=>{const n=h.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})};function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function Lae(e,t){if(ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pf(e){var t=Lae(e,"string");return ff(t)=="symbol"?t:t+""}const _ae=e=>{const t=h.useRef({}),n=h.useRef(!1),r=h.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=h.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const m=t.current[u];return m.processors.get(d)!==f&&(m.processors.set(d,f),m.processorsAsArray=Array.from(t.current[u].processors.values()),r(m)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),s=h.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const m=t.current[u].appliers,g=ce(m,[d].map(pf));t.current[u].appliers=g}),[]),i=h.useCallback(u=>{r(t.current[u])},[r]),a=h.useCallback((...u)=>{const[d,f,m]=u;if(!t.current[d])return f;const g=t.current[d].processorsAsArray;let y=f;for(let x=0;x{const r=h.useRef(),o=h.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=h.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Qf(()=>{s()});const i=h.useRef(!0);h.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},tC=(e,t,n)=>{const r=h.useRef(),o=h.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=h.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Qf(()=>{s()});const i=h.useRef(!0);h.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},_m=(e,t,n,r)=>{const o=h.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Qf(()=>{o()});const s=h.useRef(!0);h.useEffect(()=>{s.current?s.current=!1:o()},[o])},Ka="none",oM={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Nae=e=>{const t=h.useRef(new Map),n=h.useRef({}),r=h.useCallback((l,c,u)=>{const d=()=>{const g=n.current[c],y=ce(g,[l].map(pf));n.current[c]=y};n.current[c]||(n.current[c]={});const f=n.current[c],m=f[l];return f[l]=u,!m||m===u||l===e.current.getActiveStrategy(oM[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=h.useCallback((l,c)=>{const u=e.current.getActiveStrategy(oM[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]),s=h.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??Ka},[]),i=h.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);nt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},zae=e=>{const t=h.useRef({}),[,n]=h.useState(),r=h.useCallback(c=>{t.current[c.stateId]=c},[]),o=h.useCallback((c,u)=>{let d;if(MR(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const m=[];if(Object.keys(t.current).forEach(g=>{const y=t.current[g],x=y.stateSelector(e.current.state,e.current.instanceId),v=y.stateSelector(d,e.current.instanceId);v!==x&&(m.push({stateId:y.stateId,hasPropChanged:v!==y.propModel}),y.propModel!==void 0&&v!==y.propModel&&(f=!0))}),m.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${m[0].stateId}, therefore, you're not allowed to update ${m.map(g=>g.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),m.length===1){const{stateId:g,hasPropChanged:y}=m[0],x=t.current[g],v=x.stateSelector(d,e.current.instanceId);x.propOnChange&&y&&x.propOnChange(v,{reason:u,api:e.current}),f||e.current.publishEvent(x.changeEvent,v,{reason:u})}return!f},[e]),s=h.useCallback((c,u,d)=>e.current.setState(f=>P({},f,{[c]:u(f[c])}),d),[e]),i=h.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:i},l={updateControlState:s,registerControlState:r};nt(e,a,"public"),nt(e,l,"private")},Bae=(e,t)=>{const n=jae(e,t);return Mae(n),Iae(n),Dae(n,t),zae(n),_ae(n),Nae(n),Fae(n,t),n.current.register("private",{rootProps:t}),n},bn=(e,t,n)=>{const r=h.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function ux(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 P3=(e,t)=>{var s,i;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(s=e.value)==null?void 0:s.toISOString():typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return ux(o,n)};class dx{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 Hae=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const s=new dx({csvOptions:r});return t.forEach(i=>{const a=n(e,i.field);s.addValue(P3(a,{ignoreValueFormatter:o,csvOptions:r}))}),s.getRowString()};function Vae(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:s}=e,i=n.reduce((d,f)=>`${d}${Hae({id:f,columns:t,getCellParams:s.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r -`,"").trim();if(!r.includeHeaders)return i;const a=t.filter(d=>d.field!==fu.field),l=[];if(r.includeColumnGroupsHeaders){const d=s.current.getAllGroupDetails();let f=0;const m=a.reduce((g,y)=>{const x=s.current.getColumnGroupPath(y.field);return g[y.field]=x,f=Math.max(f,x.length),g},{});for(let g=0;g{const v=(m[x.field]||[])[g],w=d[v];y.addValue(w?w.headerName||w.groupId:"")})}}const c=new dx({csvOptions:r,sanitizeCellValue:ux});return a.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r -`)}\r -`}${i}`.trim()}function sM(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 Gae(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{sM(e)}):sM(e)}function Wae(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Uae=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=h.useCallback(i=>{if(!Yse(i)||Wae(i.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Ir(e);if(c){const u=e.current.getCellParams(c.id,c.field);a=P3(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(Gae(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);UR(e,e.current.rootElementRef,"keydown",s),Dt(e,"clipboardCopy",t.onClipboardCopy)},Yae=e=>P({},e,{columnMenu:{open:!1}}),Kae=e=>{const t=vn(e,"useGridColumnMenu"),n=h.useCallback(i=>{const a=Fh(e.current.state),l={open:!0,field:i};(l.open!==a.open||l.field!==a.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===i?u:(t.debug("Opening Column Menu"),P({},u,{columnMenu:{open:!0,field:i}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=h.useCallback(()=>{const i=Fh(e.current.state);if(i.field){const c=ii(e),u=uo(e),d=zs(e);let f=i.field;if(c[f]||(f=d[0]),u[f]===!1){const m=d.filter(y=>y===f?!0:u[y]!==!1),g=m.indexOf(f);f=m[g+1]||m[g-1]}e.current.setColumnHeaderFocus(f)}const a={open:!1,field:void 0};(a.open!==i.open||a.field!==i.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),P({},c,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=h.useCallback(i=>{t.debug("Toggle Column Menu");const a=Fh(e.current.state);!a.open||a.field!==i?n(i):r()},[e,t,n,r]);nt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),je(e,"columnResizeStart",r),je(e,"virtualScrollerWheel",e.current.hideColumnMenu),je(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},qae=(e,t,n)=>{var o,s,i;const r=Al({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((i=(s=t.initialState)==null?void 0:s.columns)==null?void 0:i.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:r,pinnedColumns:e.pinnedColumns??sx})};function Xae(e,t){var S,D;const n=vn(e,"useGridColumns"),r=h.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:uo,changeEvent:"columnVisibilityModelChange"});const o=h.useCallback(j=>{var F,A;n.debug("Updating columns state."),e.current.setState(iM(j)),e.current.publishEvent("columnsChange",j.orderedFields),(A=(F=e.current).updateRenderContext)==null||A.call(F),e.current.forceUpdate()},[n,e]),s=h.useCallback(j=>ii(e)[j],[e]),i=h.useCallback(()=>Vo(e),[e]),a=h.useCallback(()=>fn(e),[e]),l=h.useCallback((j,F=!0)=>(F?fn(e):Vo(e)).findIndex(R=>R.field===j),[e]),c=h.useCallback(j=>{const F=l(j);return ta(e)[F]},[e,l]),u=h.useCallback(j=>{var A,R;uo(e)!==j&&(e.current.setState(I=>P({},I,{columns:Al({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),(R=(A=e.current).updateRenderContext)==null||R.call(A),e.current.forceUpdate())},[e]),d=h.useCallback(j=>{const F=Al({apiRef:e,columnsToUpsert:j,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(F)},[e,o]),f=h.useCallback((j,F)=>{const A=uo(e),R=A[j]??!0;if(F!==R){const I=P({},A,{[j]:F});e.current.setColumnVisibilityModel(I)}},[e]),m=h.useCallback(j=>zs(e).findIndex(A=>A===j),[e]),g=h.useCallback((j,F)=>{const A=zs(e),R=m(j);if(R===F)return;n.debug(`Moving column ${j} to index ${F}`);const I=[...A],L=I.splice(R,1)[0];I.splice(F,0,L),o(P({},hs(e.current.state),{orderedFields:I}));const O={column:e.current.getColumn(j),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(j),oldIndex:R};e.current.publishEvent("columnIndexChange",O)},[e,n,o,m]),y=h.useCallback((j,F)=>{n.debug(`Updating column ${j} width to ${F}`);const A=hs(e.current.state),R=A.lookup[j],I=P({},R,{width:F,hasBeenResized:!0});o(ax(P({},A,{lookup:P({},A.lookup,{[j]:I})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:I,width:F})},[e,n,o]),x={getColumn:s,getAllColumns:i,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:m,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:y},v={setColumnIndex:g};nt(e,x,"public"),nt(e,v,t.signature===yo.DataGrid?"private":"public");const w=h.useCallback((j,F)=>{var _,N;const A={},R=uo(e);(!F.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((N=(_=t.initialState)==null?void 0:_.columns)==null?void 0:N.columnVisibilityModel)??{}).length>0||Object.keys(R).length>0)&&(A.columnVisibilityModel=R),A.orderedFields=zs(e);const L=Vo(e),O={};return L.forEach(z=>{if(z.hasBeenResized){const U={};r3.forEach(J=>{let Y=z[J];Y===1/0&&(Y=-1),U[J]=Y}),O[z.field]=U}}),Object.keys(O).length>0&&(A.dimensions=O),P({},j,{columns:A})},[e,t.columnVisibilityModel,(S=t.initialState)==null?void 0:S.columns]),b=h.useCallback((j,F)=>{var L;const A=(L=F.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,R=F.stateToRestore.columns;if(A==null&&R==null)return j;const I=Al({apiRef:e,columnsToUpsert:[],initialState:R,columnVisibilityModel:A,keepOnlyColumnsToUpsert:!1});return e.current.setState(iM(I)),R!=null&&e.current.publishEvent("columnsChange",I.orderedFields),j},[e]),C=h.useCallback((j,F)=>{var A;if(F===Ya.columns){const R=t.slots.columnsPanel;return p.jsx(R,P({},(A=t.slotProps)==null?void 0:A.columnsPanel))}return j},[t.slots.columnsPanel,(D=t.slotProps)==null?void 0:D.columnsPanel]),k=h.useCallback(j=>t.disableColumnSelector?j:[...j,"columnMenuColumnsItem"],[t.disableColumnSelector]);Vt(e,"columnMenu",k),Vt(e,"exportState",w),Vt(e,"restoreState",b),Vt(e,"preferencePanel",C);const M=h.useRef(null);je(e,"viewportInnerSizeChange",j=>{M.current!==j.width&&(M.current=j.width,o(ax(hs(e.current.state),e.current.getRootDimensions())))});const E=h.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const j=Al({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(j)},[e,n,o]);tC(e,"hydrateColumns",E);const $=h.useRef(!0);h.useEffect(()=>{if($.current){$.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const j=Al({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(j)},[n,e,o,t.columns]),h.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function iM(e){return t=>P({},t,{columns:e})}const Qae=(e,t)=>{var n;return P({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},Zae=(e,t)=>{var a;const n=vn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Ql,changeEvent:"densityChange"});const o={setDensity:ye(l=>{Ql(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>P({},u,{density:l})))})};nt(e,o,"public");const s=h.useCallback((l,c)=>{var f;const u=Ql(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?P({},l,{density:u}):l},[e,t.density,(a=t.initialState)==null?void 0:a.density]),i=h.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:Ql(e.current.state);return e.current.setState(f=>P({},f,{density:u})),l},[e]);Vt(e,"exportState",s),Vt(e,"restoreState",i),h.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function Jae(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const M3=({apiRef:e,options:t})=>{const n=Vo(e);return t.fields?t.fields.reduce((o,s)=>{const i=n.find(a=>a.field===s);return i&&o.push(i),o},[]):(t.allColumns?n:fn(e)).filter(o=>!o.disableExport)},I3=({apiRef:e})=>{var l,c;const t=HR(e),n=Vn(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),s=sl(e),i=((l=s==null?void 0:s.top)==null?void 0:l.map(u=>u.id))||[],a=((c=s==null?void 0:s.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...i),o.push(...a),r.size>0?o.filter(u=>r.has(u)):o},ele=(e,t)=>{const n=vn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=h.useCallback((c={})=>{n.debug("Get data as CSV");const u=M3({apiRef:e,options:c}),f=(c.getRowsToExport??I3)({apiRef:e});return Vae({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]),i=h.useCallback(c=>{n.debug("Export data as CSV");const u=s(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});Jae(d,"csv",c==null?void 0:c.fileName)},[n,s]);nt(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const l=h.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:p.jsx(Kie,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Vt(e,"exportMenu",l)},_h=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,s=(n==null?void 0:n.pageSize)??r.pageSize,i=(n==null?void 0:n.page)??r.page,a=YR(o,s,i);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=une(r.page,a);return l!==r.page&&(r=P({},r,{page:l})),qR(r.pageSize,t),r},tle=(e,t)=>{var g,y;const n=vn(e,"useGridPaginationModel"),r=he(e,Kf),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Zn,changeEvent:"paginationModelChange"});const s=h.useCallback(x=>{const v=Zn(e);x!==v.page&&(n.debug(`Setting page to ${x}`),e.current.setPaginationModel({page:x,pageSize:v.pageSize}))},[e,n]),i=h.useCallback(x=>{const v=Zn(e);x!==v.pageSize&&(n.debug(`Setting page size to ${x}`),e.current.setPaginationModel({pageSize:x,page:v.page}))},[e,n]),a=h.useCallback(x=>{const v=Zn(e);x!==v&&(n.debug("Setting 'paginationModel' to",x),e.current.setState(w=>P({},w,{pagination:P({},w.pagination,{paginationModel:_h(w.pagination,t.signature,x)})})))},[e,n,t.signature]);nt(e,{setPage:s,setPageSize:i,setPaginationModel:a},"public");const c=h.useCallback((x,v)=>{var C,k;const w=Zn(e);return!v.exportOnlyDirtyModels||t.paginationModel!=null||((k=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:k.paginationModel)!=null||w.page!==0&&w.pageSize!==cne(t.autoPageSize)?P({},x,{pagination:P({},x.pagination,{paginationModel:w})}):x},[e,t.paginationModel,(y=(g=t.initialState)==null?void 0:g.pagination)==null?void 0:y.paginationModel,t.autoPageSize]),u=h.useCallback((x,v)=>{var b,C;const w=(b=v.stateToRestore.pagination)!=null&&b.paginationModel?P({},KR(t.autoPageSize),(C=v.stateToRestore.pagination)==null?void 0:C.paginationModel):Zn(e);return e.current.setState(k=>P({},k,{pagination:P({},k.pagination,{paginationModel:_h(k.pagination,t.signature,w)})})),x},[e,t.autoPageSize,t.signature]);Vt(e,"exportState",c),Vt(e,"restoreState",u);const d=()=>{var v;const x=Zn(e);(v=e.current.virtualScrollerRef)!=null&&v.current&&e.current.scrollToIndexes({rowIndex:x.page*x.pageSize})},f=h.useCallback(()=>{if(!t.autoPageSize)return;const x=e.current.getRootDimensions(),v=Math.floor(x.viewportInnerSize.height/o);e.current.setPageSize(v)},[e,t.autoPageSize,o]),m=h.useCallback(x=>{if(x==null)return;const v=Zn(e),w=XR(e);v.page>w-1&&e.current.setPage(Math.max(0,w-1))},[e]);je(e,"viewportInnerSizeChange",f),je(e,"paginationModelChange",d),je(e,"rowCountChange",m),h.useEffect(()=>{e.current.setState(x=>P({},x,{pagination:P({},x.pagination,{paginationModel:_h(x.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),h.useEffect(f,[f])};function nle(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function rle(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 ole=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=vn(e,"useGridPrintExport"),o=h.useRef(null),s=h.useRef(null),i=h.useRef({}),a=h.useRef([]),l=h.useRef();h.useEffect(()=>{o.current=_t(e.current.rootElementRef.current)},[e,n]);const c=h.useCallback((x,v,w)=>new Promise(b=>{const C=M3({apiRef:e,options:{fields:x,allColumns:v}}).map(T=>T.field),k=Vo(e),M={};k.forEach(T=>{M[T.field]=C.includes(T.field)}),w&&(M[fu.field]=!0),e.current.setColumnVisibilityModel(M),b()}),[e]),u=h.useCallback(x=>{const w=x({apiRef:e}).reduce((b,C)=>{const k=e.current.getRow(C);return k[mc]||b.push(k),b},[]);e.current.setRows(w)},[e]),d=h.useCallback((x,v)=>{var A,R,I,L;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},v),b=x.contentDocument;if(!b)return;const C=pu(e.current.state),k=e.current.rootElementRef.current,M=k.cloneNode(!0),T=M.querySelector(`.${K.main}`);T.style.overflow="visible",M.style.contain="size";let E=((A=k.querySelector(`.${K.toolbarContainer}`))==null?void 0:A.offsetHeight)||0,$=((R=k.querySelector(`.${K.footerContainer}`))==null?void 0:R.offsetHeight)||0;w.hideToolbar&&((I=M.querySelector(`.${K.toolbarContainer}`))==null||I.remove(),E=0),w.hideFooter&&((L=M.querySelector(`.${K.footerContainer}`))==null||L.remove(),$=0);const S=C.currentPageTotalHeight+Yw(e,t)+E+$;if(M.style.height=`${S}px`,M.style.boxSizing="content-box",!w.hideFooter){const O=M.querySelector(`.${K.footerContainer}`);O.style.position="absolute",O.style.width="100%",O.style.top=`${S-$}px`}const D=document.createElement("div");D.appendChild(M),b.body.style.marginTop="0px",b.body.innerHTML=D.innerHTML;const j=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof j=="string"){const O=b.createElement("style");O.appendChild(b.createTextNode(j)),b.head.appendChild(O)}w.bodyClassName&&b.body.classList.add(...w.bodyClassName.split(" "));const F=[];if(w.copyStyles){const O=k.getRootNode(),N=(O.constructor.name==="ShadowRoot"?O:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z{J.addEventListener("load",()=>Y())})),b.head.appendChild(J)}}}Promise.all(F).then(()=>{x.contentWindow.print()})},[e,o,t]),f=h.useCallback(x=>{var v,w;o.current.body.removeChild(x),e.current.restoreState(s.current||{}),(w=(v=s.current)==null?void 0:v.columns)!=null&&w.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.setState(b=>P({},b,{virtualization:l.current})),e.current.setRows(a.current),s.current=null,i.current={},a.current=[]},[e]),g={exportDataAsPrint:h.useCallback(async x=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(s.current=e.current.exportState(),i.current=uo(e),a.current=e.current.getSortedRows().filter(w=>!w[mc]),t.pagination){const b={page:0,pageSize:Bw(e)};e.current.setState(C=>P({},C,{pagination:P({},C.pagination,{paginationModel:_h(C.pagination,"DataGridPro",b)})}))}l.current=e.current.state.virtualization,e.current.setState(w=>P({},w,{virtualization:P({},w.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(x==null?void 0:x.fields,x==null?void 0:x.allColumns,x==null?void 0:x.includeCheckboxes),u((x==null?void 0:x.getRowsToExport)??I3),await nle();const v=rle(x==null?void 0:x.fileName);v.onload=()=>{d(v,x),v.contentWindow.matchMedia("print").addEventListener("change",b=>{b.matches===!1&&f(v)})},o.current.body.appendChild(v)},[t,r,e,d,f,c,u])};nt(e,g,"public");const y=h.useCallback((x,v)=>{var w;return(w=v.printOptions)!=null&&w.disableToolbarButton?x:[...x,{component:p.jsx(qie,{options:v.printOptions}),componentName:"printExport"}]},[]);Vt(e,"exportMenu",y)},sle=(e,t,n)=>{var o,s;const r=t.filterModel??((s=(o=t.initialState)==null?void 0:o.filter)==null?void 0:s.filterModel)??cf();return P({},e,{filter:{filterModel:_w(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},ile=e=>e.filteredRowsLookup;function aM(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function ale(){return jD(Object.values)}const lle=(e,t)=>{var $,S,D;const n=vn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Dn,changeEvent:"filterModelChange"});const r=h.useCallback(()=>{e.current.setState(j=>{const F=Dn(j,e.current.instanceId),A=e.current.getFilterState(F),R=P({},j,{filter:P({},j.filter,A)}),I=aM(e,R);return P({},R,{visibleRowsLookup:I})}),e.current.publishEvent("filteredRowsSet")},[e]),o=h.useCallback((j,F)=>F==null||F.filterable===!1||t.disableColumnFilter?j:[...j,"columnMenuFilterItem"],[t.disableColumnFilter]),s=h.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),i=h.useCallback(j=>{const F=Dn(e),A=[...F.items],R=A.findIndex(I=>I.id===j.id);R===-1?A.push(j):A[R]=j,e.current.setFilterModel(P({},F,{items:A}),"upsertFilterItem")},[e]),a=h.useCallback(j=>{const F=Dn(e),A=[...F.items];j.forEach(R=>{const I=A.findIndex(L=>L.id===R.id);I===-1?A.push(R):A[I]=R}),e.current.setFilterModel(P({},F,{items:A}),"upsertFilterItems")},[e]),l=h.useCallback(j=>{const F=Dn(e),A=F.items.filter(R=>R.id!==j.id);A.length!==F.items.length&&e.current.setFilterModel(P({},F,{items:A}),"deleteFilterItem")},[e]),c=h.useCallback((j,F,A)=>{if(n.debug("Displaying filter panel"),j){const R=Dn(e),I=R.items.filter(N=>{var Y;if(N.value!==void 0)return!(Array.isArray(N.value)&&N.value.length===0);const U=(Y=e.current.getColumn(N.field).filterOperators)==null?void 0:Y.find(B=>B.value===N.operator);return!(typeof(U==null?void 0:U.requiresFilterValue)>"u"?!0:U==null?void 0:U.requiresFilterValue)});let L;const O=I.find(N=>N.field===j),_=e.current.getColumn(j);O?L=I:t.disableMultipleColumnsFiltering?L=[ix({field:j,operator:_.filterOperators[0].value},e)]:L=[...I,ix({field:j,operator:_.filterOperators[0].value},e)],e.current.setFilterModel(P({},R,{items:L}))}e.current.showPreferences(Ya.filters,F,A)},[e,n,t.disableMultipleColumnsFiltering]),u=h.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=h.useCallback(j=>{const F=Dn(e);F.logicOperator!==j&&e.current.setFilterModel(P({},F,{logicOperator:j}),"changeLogicOperator")},[e]),f=h.useCallback(j=>{const F=Dn(e);hc(F.quickFilterValues,j)||e.current.setFilterModel(P({},F,{quickFilterValues:[...j]}))},[e]),m=h.useCallback((j,F)=>{Dn(e)!==j&&(n.debug("Setting filter model"),e.current.updateControlState("filter",xP(j,t.disableMultipleColumnsFiltering,e),F),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),g=h.useCallback(j=>{const F=_w(j,t.disableMultipleColumnsFiltering,e),A=t.filterMode==="client"?ste(F,e,t.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:A,filterModel:F??cf()});return P({},R,{filterModel:F})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:d,unstable_applyFilters:s,deleteFilterItem:l,upsertFilterItem:i,upsertFilterItems:a,setFilterModel:m,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:g};nt(e,y,"public");const x=h.useCallback((j,F)=>{var I,L;const A=Dn(e);return!F.exportOnlyDirtyModels||t.filterModel!=null||((L=(I=t.initialState)==null?void 0:I.filter)==null?void 0:L.filterModel)!=null||!hc(A,cf())?P({},j,{filter:{filterModel:A}}):j},[e,t.filterModel,(S=($=t.initialState)==null?void 0:$.filter)==null?void 0:S.filterModel]),v=h.useCallback((j,F)=>{var R;const A=(R=F.stateToRestore.filter)==null?void 0:R.filterModel;return A==null?j:(e.current.updateControlState("filter",xP(A,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},j,{callbacks:[...j.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),w=h.useCallback((j,F)=>{var A;if(F===Ya.filters){const R=t.slots.filterPanel;return p.jsx(R,P({},(A=t.slotProps)==null?void 0:A.filterPanel))}return j},[t.slots.filterPanel,(D=t.slotProps)==null?void 0:D.filterPanel]),{getRowId:b}=t,C=Yo(ale),k=h.useCallback(j=>{if(t.filterMode!=="client"||!j.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const F=Ii(e),A={},{isRowMatchingFilters:R}=j,I={},L={passingFilterItems:null,passingQuickFilterValues:null},O=C.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z{n.debug("onColUpdated - GridColumns changed, applying filters");const j=Dn(e),F=ii(e),A=j.items.filter(R=>R.field&&F[R.field]);A.length{j==="filtering"&&e.current.unstable_applyFilters()},[e]),E=h.useCallback(()=>{e.current.setState(j=>P({},j,{visibleRowsLookup:aM(e,j)})),e.current.forceUpdate()},[e]);je(e,"rowsSet",r),je(e,"columnsChange",M),je(e,"activeStrategyProcessorChange",T),je(e,"rowExpansionChange",E),je(e,"columnVisibilityModelChange",()=>{const j=Dn(e);j.quickFilterValues&&RR(j)&&e.current.unstable_applyFilters()}),Qf(()=>{e.current.unstable_applyFilters()}),ot(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},cle=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),ule=(e,t)=>{const n=vn(e,"useGridFocus"),r=h.useRef(null),o=e.current.rootElementRef.current!==null,s=h.useCallback((E,$)=>{E&&e.current.getRow(E.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),$)},[e]),i=h.useCallback((E,$)=>{const S=Ir(e);(S==null?void 0:S.id)===E&&(S==null?void 0:S.field)===$||(e.current.setState(D=>(n.debug(`Focusing on cell with id=${E} and field=${$}`),P({},D,{tabIndex:{cell:{id:E,field:$},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:E,field:$},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(E)&&(S&&s(S,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(E,$))))},[e,n,s]),a=h.useCallback((E,$={})=>{const S=Ir(e);s(S,$),e.current.setState(D=>(n.debug(`Focusing on column header with colIndex=${E}`),P({},D,{tabIndex:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),l=h.useCallback((E,$={})=>{const S=Ir(e);s(S,$),e.current.setState(D=>(n.debug(`Focusing on column header filter with colIndex=${E}`),P({},D,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),c=h.useCallback((E,$,S={})=>{const D=Ir(e);D&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(D.id,D.field),S),e.current.setState(j=>P({},j,{tabIndex:{columnGroupHeader:{field:E,depth:$},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:E,depth:$},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=h.useCallback(()=>Om(e),[e]),d=h.useCallback((E,$,S)=>{let D=e.current.getColumnIndex($);const j=fn(e),F=yc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),A=sl(e),R=[].concat(A.top||[],F.rows,A.bottom||[]);let I=R.findIndex(N=>N.id===E);S==="right"?D+=1:S==="left"?D-=1:I+=1,D>=j.length?(I+=1,I=0&&(D=j.length-1)),I=ms(I,0,R.length-1);const L=R[I];if(!L)return;const O=e.current.unstable_getCellColSpanInfo(L.id,D);O&&O.spannedByColSpan&&(S==="left"||S==="below"?D=O.leftVisibleCellIndex:S==="right"&&(D=O.rightVisibleCellIndex)),D=ms(D,0,j.length-1);const _=j[D];e.current.setCellFocus(L.id,_.field)},[e,t.pagination,t.paginationMode]),f=h.useCallback(({id:E,field:$})=>{e.current.setCellFocus(E,$)},[e]),m=h.useCallback((E,$)=>{$.key==="Enter"||$.key==="Tab"||$.key==="Shift"||Lm($.key)||e.current.setCellFocus(E.id,E.field)},[e]),g=h.useCallback(({field:E},$)=>{$.target===$.currentTarget&&e.current.setColumnHeaderFocus(E,$)},[e]),y=h.useCallback(({fields:E,depth:$},S)=>{if(S.target!==S.currentTarget)return;const D=Om(e);D!==null&&D.depth===$&&E.includes(D.field)||e.current.setColumnGroupHeaderFocus(E[0],$,S)},[e]),x=h.useCallback((E,$)=>{var S,D;(D=(S=$.relatedTarget)==null?void 0:S.getAttribute("class"))!=null&&D.includes(K.columnHeader)||(n.debug("Clearing focus"),e.current.setState(j=>P({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),v=h.useCallback(E=>{r.current=E},[]),w=h.useCallback(E=>{const $=r.current;r.current=null;const S=Ir(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:E,cell:$}))return;if(!S){$&&e.current.setCellFocus($.id,$.field);return}if(($==null?void 0:$.id)===S.id&&($==null?void 0:$.field)===S.field)return;const j=e.current.getCellElement(S.id,S.field);j!=null&&j.contains(E.target)||($?e.current.setCellFocus($.id,$.field):(e.current.setState(F=>P({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),s(S,E)))},[e,s]),b=h.useCallback(E=>{if(E.cellMode==="view")return;const $=Ir(e);(($==null?void 0:$.id)!==E.id||($==null?void 0:$.field)!==E.field)&&e.current.setCellFocus(E.id,E.field)},[e]),C=h.useCallback(()=>{var $;const E=Ir(e);if(E&&!e.current.getRow(E.id)){const S=($=Ir(e))==null?void 0:$.id;let D=null;if(typeof S<"u"){const j=e.current.getRowIndexRelativeToVisibleRows(S),F=yc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),A=F.rows[ms(j,0,F.rows.length-1)];D=(A==null?void 0:A.id)??null}e.current.setState(j=>P({},j,{focus:{cell:D===null?null:{id:D,field:E.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),k=ye(()=>{const E=Ir(e);if(!E)return;const $=yc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if($.rows.find(j=>j.id===E.id))return;const D=fn(e);e.current.setState(j=>P({},j,{tabIndex:{cell:{id:$.rows[0].id,field:D[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),M={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},T={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};nt(e,M,"public"),nt(e,T,"private"),h.useEffect(()=>{const E=_t(e.current.rootElementRef.current);return E.addEventListener("mouseup",w),()=>{E.removeEventListener("mouseup",w)}},[e,o,w]),je(e,"columnHeaderBlur",x),je(e,"cellDoubleClick",f),je(e,"cellMouseDown",v),je(e,"cellKeyDown",m),je(e,"cellModeChange",b),je(e,"columnHeaderFocus",g),je(e,"columnGroupHeaderFocus",y),je(e,"rowsSet",C),je(e,"paginationModelChange",k)},dle=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},fle=e=>e===_R||dle(e)!==null;function ple(e,t){const n=sl(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const av=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(et)return e-1;return null},lv=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e=0&&i{const n=vn(e,"useGridKeyboardNavigation"),r=ra(e,t).rows,o=Nt(),s=t.unstable_listView,i=h.useMemo(()=>ple(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.headerFilters,l=h.useCallback((w,b,C="left",k="up")=>{const M=na(e),T=e.current.unstable_getCellColSpanInfo(b,w);T&&T.spannedByColSpan&&(C==="left"?w=T.leftVisibleCellIndex:C==="right"&&(w=T.rightVisibleCellIndex));const E=s?Bc(e.current.state).field:cu(e)[w],$=hle(e,b,E,k),S=M.findIndex(D=>D.id===$);n.debug(`Navigating to cell row ${S}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:S}),e.current.setCellFocus($,E)},[e,n,s]),c=h.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const C=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(C,b)},[e,n]),u=h.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const C=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(C,b)},[e,n]),d=h.useCallback((w,b,C)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:k}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(k,b,C)},[e,n]),f=h.useCallback(w=>{var b;return(b=i[w])==null?void 0:b.id},[i]),m=h.useCallback((w,b)=>{const C=b.currentTarget.querySelector(`.${K.columnHeaderTitleContainerContent}`);if(!!C&&C.contains(b.target)&&w.field!==fu.field)return;const M=e.current.getViewportPageSize(),T=w.field?e.current.getColumnIndex(w.field):0,E=i.length>0?0:null,$=i.length-1,S=0,D=fn(e).length-1,j=Zf(e);let F=!0;switch(b.key){case"ArrowDown":{E!==null&&(a?u(T,b):l(T,f(E)));break}case"ArrowRight":{const A=lv({currentColIndex:T,firstColIndex:S,lastColIndex:D,isRtl:o});A!==null&&c(A,b);break}case"ArrowLeft":{const A=av({currentColIndex:T,firstColIndex:S,lastColIndex:D,isRtl:o});A!==null&&c(A,b);break}case"ArrowUp":{j>0&&d(T,j-1,b);break}case"PageDown":{E!==null&&$!==null&&l(T,f(Math.min(E+M,$)));break}case"Home":{c(S,b);break}case"End":{c(D,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:F=!1}F&&b.preventDefault()},[e,i.length,a,u,l,f,o,c,d]),g=h.useCallback((w,b)=>{const C=Xne(e)===w.field,k=Qne(e)===w.field;if(C||k||!Lm(b.key))return;const M=e.current.getViewportPageSize(),T=w.field?e.current.getColumnIndex(w.field):0,E=0,$=i.length-1,S=0,D=fn(e).length-1;let j=!0;switch(b.key){case"ArrowDown":{const F=f(E);F!=null&&l(T,F);break}case"ArrowRight":{const F=lv({currentColIndex:T,firstColIndex:S,lastColIndex:D,isRtl:o});F!==null&&u(F,b);break}case"ArrowLeft":{const F=av({currentColIndex:T,firstColIndex:S,lastColIndex:D,isRtl:o});F!==null?u(F,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{c(T,b);break}case"PageDown":{$!==null&&l(T,f(Math.min(E+M,$)));break}case"Home":{u(S,b);break}case"End":{u(D,b);break}case" ":break;default:j=!1}j&&b.preventDefault()},[e,i.length,u,o,c,l,f]),y=h.useCallback((w,b)=>{const C=Om(e);if(C===null)return;const{field:k,depth:M}=C,{fields:T,depth:E,maxDepth:$}=w,S=e.current.getViewportPageSize(),D=e.current.getColumnIndex(k),j=k?e.current.getColumnIndex(k):0,F=0,A=i.length-1,R=0,I=fn(e).length-1;let L=!0;switch(b.key){case"ArrowDown":{E===$-1?c(D,b):d(D,M+1,b);break}case"ArrowUp":{E>0&&d(D,M-1,b);break}case"ArrowRight":{const O=T.length-T.indexOf(k)-1;D+O+1<=I&&d(D+O+1,M,b);break}case"ArrowLeft":{const O=T.indexOf(k);D-O-1>=R&&d(D-O-1,M,b);break}case"PageDown":{A!==null&&l(j,f(Math.min(F+S,A)));break}case"Home":{d(R,M,b);break}case"End":{d(I,M,b);break}case" ":break;default:L=!1}L&&b.preventDefault()},[e,i.length,c,d,l,f]),x=h.useCallback((w,b)=>{if(Jf(b))return;const C=e.current.getCellParams(w.id,w.field);if(C.cellMode===St.Edit||!Lm(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:C})||i.length===0)return;const M=e.current.getViewportPageSize(),T=s?()=>0:e.current.getColumnIndex,E=w.field?T(w.field):0,$=i.findIndex(I=>I.id===w.id),S=0,D=i.length-1,j=0,A=(s?[Bc(e.current.state)]:fn(e)).length-1;let R=!0;switch(b.key){case"ArrowDown":{$S?l(E,f($-1)):a?u(E,b):c(E,b);break}case"ArrowRight":{const I=lv({currentColIndex:E,firstColIndex:j,lastColIndex:A,isRtl:o});I!==null&&l(I,f($),o?"left":"right");break}case"ArrowLeft":{const I=av({currentColIndex:E,firstColIndex:j,lastColIndex:A,isRtl:o});I!==null&&l(I,f($),o?"right":"left");break}case"Tab":{b.shiftKey&&E>j?l(E-1,f($),"left"):!b.shiftKey&&E=S?l(E,f(I)):c(E,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(j,f(S)):l(j,f($));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(A,f(D)):l(A,f($));break}default:R=!1}R&&b.preventDefault()},[e,i,o,l,f,a,u,c,s]),v=h.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);Vt(e,"canStartEditing",v),je(e,"columnHeaderKeyDown",m),je(e,"headerFilterKeyDown",g),je(e,"columnGroupHeaderKeyDown",y),je(e,"cellKeyDown",x)},gle=(e,t)=>{var g,y;const n=vn(e,"useGridRowCount"),r=he(e,Hw),o=he(e,Zl),s=he(e,sd),i=he(e,Zn),a=Yo(()=>Zn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Zl,changeEvent:"rowCountChange"});const c={setRowCount:h.useCallback(x=>{o!==x&&(n.debug("Setting 'rowCount' to",x),e.current.setState(v=>P({},v,{pagination:P({},v.pagination,{rowCount:x})})))},[e,n,o])};nt(e,c,"public");const u=h.useCallback((x,v)=>{var C,k;const w=Zl(e);return!v.exportOnlyDirtyModels||t.rowCount!=null||((k=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:k.rowCount)!=null?P({},x,{pagination:P({},x.pagination,{rowCount:w})}):x},[e,t.rowCount,(y=(g=t.initialState)==null?void 0:g.pagination)==null?void 0:y.rowCount]),d=h.useCallback((x,v)=>{var b;const w=(b=v.stateToRestore.pagination)!=null&&b.rowCount?v.stateToRestore.pagination.rowCount:Zl(e);return e.current.setState(C=>P({},C,{pagination:P({},C.pagination,{rowCount:w})})),x},[e]);Vt(e,"exportState",u),Vt(e,"restoreState",d);const f=h.useCallback(x=>{t.paginationMode==="client"||!a.current||x.pageSize!==a.current&&(a.current=x.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);je(e,"paginationModelChange",f),h.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const m=s.hasNextPage===!1;h.useEffect(()=>{m&&o===-1&&e.current.setRowCount(i.pageSize*i.page+r)},[e,r,m,o,i])},yle=(e,t)=>{var l,c;const n=vn(e,"useGridPaginationMeta"),r=he(e,sd);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:sd,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:h.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>P({},d,{pagination:P({},d.pagination,{meta:u})})))},[e,n,r])};nt(e,s,"public");const i=h.useCallback((u,d)=>{var g,y;const f=sd(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((y=(g=t.initialState)==null?void 0:g.pagination)==null?void 0:y.meta)!=null?P({},u,{pagination:P({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),a=h.useCallback((u,d)=>{var m;const f=(m=d.stateToRestore.pagination)!=null&&m.meta?d.stateToRestore.pagination.meta:sd(e);return e.current.setState(g=>P({},g,{pagination:P({},g.pagination,{meta:f})})),u},[e]);Vt(e,"exportState",i),Vt(e,"restoreState",a),h.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},vle=(e,t)=>{var s,i,a,l,c,u;const n=P({},KR(t.autoPageSize),t.paginationModel??((i=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:i.paginationModel));qR(n.pageSize,t.signature);const r=t.rowCount??((l=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return P({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},xle=(e,t)=>{yle(e,t),tle(e,t),gle(e,t)},ble=(e,t)=>{var n;return P({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},wle=(e,t)=>{var d;const n=vn(e,"useGridPreferencesPanel"),r=h.useRef(),o=h.useRef(),s=h.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=df(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(m=>P({},m,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),i=h.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=h.useCallback(()=>{r.current=setTimeout(s,100)},[s]),l=h.useCallback((f,m,g)=>{n.debug("Opening Preferences Panel"),i(),e.current.setState(y=>P({},y,{preferencePanel:P({},y.preferencePanel,{open:!0,openedPanelValue:f,panelId:m,labelId:g})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,i,e]);nt(e,{showPreferences:l,hidePreferences:a},"public");const c=h.useCallback((f,m)=>{var x;const g=df(e.current.state);return!m.exportOnlyDirtyModels||((x=t.initialState)==null?void 0:x.preferencePanel)!=null||g.open?P({},f,{preferencePanel:g}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=h.useCallback((f,m)=>{const g=m.stateToRestore.preferencePanel;return g!=null&&e.current.setState(y=>P({},y,{preferencePanel:g})),f},[e]);Vt(e,"exportState",c),Vt(e,"restoreState",u),h.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},fx=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Cle=["id","field"],Sle=["id","field"],kle=(e,t)=>{const[n,r]=h.useState({}),o=h.useRef(n),s=h.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:a,cellModesModel:l,onCellModesModelChange:c}=t,u=R=>(...I)=>{t.editMode===ws.Cell&&R(...I)},d=h.useCallback((R,I)=>{const L=e.current.getCellParams(R,I);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${R} and field=${I} is not editable.`)},[e]),f=h.useCallback((R,I,L)=>{if(e.current.getCellMode(R,I)!==L)throw new Error(`MUI X: The cell with id=${R} and field=${I} is not in ${L} mode.`)},[e]),m=h.useCallback((R,I)=>{if(!R.isEditable||R.cellMode===St.Edit)return;const L=P({},R,{reason:Ms.cellDoubleClick});e.current.publishEvent("cellEditStart",L,I)},[e]),g=h.useCallback((R,I)=>{if(R.cellMode===St.View||e.current.getCellMode(R.id,R.field)===St.View)return;const L=P({},R,{reason:Oo.cellFocusOut});e.current.publishEvent("cellEditStop",L,I)},[e]),y=h.useCallback((R,I)=>{if(R.cellMode===St.Edit){if(I.which===229)return;let L;if(I.key==="Escape"?L=Oo.escapeKeyDown:I.key==="Enter"?L=Oo.enterKeyDown:I.key==="Tab"&&(L=I.shiftKey?Oo.shiftTabKeyDown:Oo.tabKeyDown,I.preventDefault()),L){const O=P({},R,{reason:L});e.current.publishEvent("cellEditStop",O,I)}}else if(R.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:I,cellParams:R,editMode:"cell"}))return;if(b3(I)?L=Ms.printableKeyDown:w3(I)?L=Ms.pasteKeyDown:I.key==="Enter"?L=Ms.enterKeyDown:(I.key==="Backspace"||I.key==="Delete")&&(L=Ms.deleteKeyDown),L){const _=P({},R,{reason:L,key:I.key});e.current.publishEvent("cellEditStart",_,I)}}},[e]),x=h.useCallback(R=>{const{id:I,field:L,reason:O}=R,_={id:I,field:L};(O===Ms.printableKeyDown||O===Ms.deleteKeyDown||O===Ms.pasteKeyDown)&&(_.deleteValue=!0),e.current.startCellEditMode(_)},[e]),v=h.useCallback(R=>{const{id:I,field:L,reason:O}=R;e.current.runPendingEditCellValueMutation(I,L);let _;O===Oo.enterKeyDown?_="below":O===Oo.tabKeyDown?_="right":O===Oo.shiftTabKeyDown&&(_="left");const N=O==="escapeKeyDown";e.current.stopCellEditMode({id:I,field:L,ignoreModifications:N,cellToFocusAfter:_})},[e]),w=R=>async(...I)=>{var L;if(R){const{id:O,field:_}=I[0];((L=e.current.state.editRows[O][_])==null?void 0:L.error)||R(...I)}};je(e,"cellDoubleClick",u(m)),je(e,"cellFocusOut",u(g)),je(e,"cellKeyDown",u(y)),je(e,"cellEditStart",u(x)),je(e,"cellEditStop",u(v)),Dt(e,"cellEditStart",t.onCellEditStart),Dt(e,"cellEditStop",w(t.onCellEditStop));const b=h.useCallback((R,I)=>{const L=wn(e.current.state);return L[R]&&L[R][I]?St.Edit:St.View},[e]),C=ye(R=>{const I=R!==t.cellModesModel;c&&I&&c(R,{api:e.current}),!(t.cellModesModel&&I)&&(r(R),o.current=R,e.current.publishEvent("cellModesModelChange",R))}),k=h.useCallback((R,I,L)=>{const O=P({},o.current);if(L!==null)O[R]=P({},O[R],{[I]:P({},L)});else{const _=O[R],N=ce(_,[I].map(pf));O[R]=N,Object.keys(O[R]).length===0&&delete O[R]}C(O)},[C]),M=h.useCallback((R,I,L)=>{e.current.setState(O=>{const _=P({},O.editRows);return L!==null?_[R]=P({},_[R],{[I]:P({},L)}):(delete _[R][I],Object.keys(_[R]).length===0&&delete _[R]),P({},O,{editRows:_})}),e.current.forceUpdate()},[e]),T=h.useCallback(R=>{const{id:I,field:L}=R,O=ce(R,Cle);d(I,L),f(I,L,St.View),k(I,L,P({mode:St.Edit},O))},[d,f,k]),E=ye(async R=>{const{id:I,field:L,deleteValue:O,initialValue:_}=R,N=e.current.getCellValue(I,L);let z=N;O?z=fx(e.current.getColumn(L)):_&&(z=_);const U=e.current.getColumn(L),J=!!U.preProcessEditCellProps&&O;let Y={value:z,error:!1,isProcessingProps:J};if(M(I,L,Y),e.current.setCellFocus(I,L),J&&(Y=await Promise.resolve(U.preProcessEditCellProps({id:I,row:e.current.getRow(I),props:Y,hasChanged:z!==N})),e.current.getCellMode(I,L)===St.Edit)){const B=wn(e.current.state);M(I,L,P({},Y,{value:B[I][L].value,isProcessingProps:!1}))}}),$=h.useCallback(R=>{const{id:I,field:L}=R,O=ce(R,Sle);f(I,L,St.Edit),k(I,L,P({mode:St.View},O))},[f,k]),S=ye(async R=>{const{id:I,field:L,ignoreModifications:O,cellToFocusAfter:_="none"}=R;f(I,L,St.Edit),e.current.runPendingEditCellValueMutation(I,L);const N=()=>{M(I,L,null),k(I,L,null),_!=="none"&&e.current.moveFocusToRelativeCell(I,L,_)};if(O){N();return}const z=wn(e.current.state),{error:U,isProcessingProps:J}=z[I][L];if(U||J){s.current[I][L].mode=St.Edit,k(I,L,{mode:St.Edit});return}const Y=e.current.getRowWithUpdatedValuesFromCellEditing(I,L);if(i){const B=W=>{s.current[I][L].mode=St.Edit,k(I,L,{mode:St.Edit}),a&&a(W)};try{const W=e.current.getRow(I);Promise.resolve(i(Y,W,{rowId:I})).then(te=>{e.current.updateRows([te]),N()}).catch(B)}catch(W){B(W)}}else e.current.updateRows([Y]),N()}),D=h.useCallback(async R=>{var W,te;const{id:I,field:L,value:O,debounceMs:_,unstable_skipValueParser:N}=R;d(I,L),f(I,L,St.Edit);const z=e.current.getColumn(L),U=e.current.getRow(I);let J=O;z.valueParser&&!N&&(J=z.valueParser(O,U,z,e));let Y=wn(e.current.state),B=P({},Y[I][L],{value:J,changeReason:_?"debouncedSetEditCellValue":"setEditCellValue"});if(z.preProcessEditCellProps){const X=O!==Y[I][L].value;B=P({},B,{isProcessingProps:!0}),M(I,L,B),B=await Promise.resolve(z.preProcessEditCellProps({id:I,row:U,props:B,hasChanged:X}))}return e.current.getCellMode(I,L)===St.View?!1:(Y=wn(e.current.state),B=P({},B,{isProcessingProps:!1}),B.value=z.preProcessEditCellProps?Y[I][L].value:J,M(I,L,B),Y=wn(e.current.state),!((te=(W=Y[I])==null?void 0:W[L])!=null&&te.error))},[e,d,f,M]),j=h.useCallback((R,I)=>{const L=e.current.getColumn(I),O=wn(e.current.state),_=e.current.getRow(R);if(!O[R]||!O[R][I])return e.current.getRow(R);const{value:N}=O[R][I];return L.valueSetter?L.valueSetter(N,_,L,e):P({},_,{[I]:N})},[e]),F={getCellMode:b,startCellEditMode:T,stopCellEditMode:$},A={setCellEditingEditCellValue:D,getRowWithUpdatedValuesFromCellEditing:j};nt(e,F,"public"),nt(e,A,"private"),h.useEffect(()=>{l&&C(l)},[l,C]),ot(()=>{const R=Am(e),I=s.current;s.current=IR(n),Object.entries(n).forEach(([L,O])=>{Object.entries(O).forEach(([_,N])=>{var J,Y;const z=((Y=(J=I[L])==null?void 0:J[_])==null?void 0:Y.mode)||St.View,U=R[L]??L;N.mode===St.Edit&&z===St.View?E(P({id:U,field:_},N)):N.mode===St.View&&z===St.Edit&&S(P({id:U,field:_},N))})})},[e,n,E,S])},Ple=["id"],Mle=["id"],Ile=(e,t)=>{const[n,r]=h.useState({}),o=h.useRef(n),s=h.useRef({}),i=h.useRef(),a=h.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=_=>(...N)=>{t.editMode===ws.Row&&_(...N)},m=h.useCallback((_,N)=>{const z=e.current.getCellParams(_,N);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${_} and field=${N} is not editable.`)},[e]),g=h.useCallback((_,N)=>{if(e.current.getRowMode(_)!==N)throw new Error(`MUI X: The row with id=${_} is not in ${N} mode.`)},[e]),y=h.useCallback(_=>{const N=wn(e.current.state);return Object.values(N[_]).some(z=>z.error)},[e]),x=h.useCallback((_,N)=>{if(!_.isEditable||e.current.getRowMode(_.id)===Tt.Edit)return;const z=e.current.getRowParams(_.id),U=P({},z,{field:_.field,reason:mi.cellDoubleClick});e.current.publishEvent("rowEditStart",U,N)},[e]),v=h.useCallback(_=>{a.current=_},[]),w=h.useCallback((_,N)=>{_.isEditable&&e.current.getRowMode(_.id)!==Tt.View&&(a.current=null,i.current=setTimeout(()=>{var z;if(((z=a.current)==null?void 0:z.id)!==_.id){if(!e.current.getRow(_.id)||e.current.getRowMode(_.id)===Tt.View||y(_.id))return;const U=e.current.getRowParams(_.id),J=P({},U,{field:_.field,reason:Jo.rowFocusOut});e.current.publishEvent("rowEditStop",J,N)}}))},[e,y]);h.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=h.useCallback((_,N)=>{if(_.cellMode===Tt.Edit){if(N.which===229)return;let z;if(N.key==="Escape")z=Jo.escapeKeyDown;else if(N.key==="Enter")z=Jo.enterKeyDown;else if(N.key==="Tab"){const U=cu(e).filter(J=>e.current.getColumn(J).type===k0?!0:e.current.isCellEditable(e.current.getCellParams(_.id,J)));if(N.shiftKey?_.field===U[0]&&(z=Jo.shiftTabKeyDown):_.field===U[U.length-1]&&(z=Jo.tabKeyDown),N.preventDefault(),!z){const J=U.findIndex(B=>B===_.field),Y=U[N.shiftKey?J-1:J+1];e.current.setCellFocus(_.id,Y)}}if(z){if(z!==Jo.escapeKeyDown&&y(_.id))return;const U=P({},e.current.getRowParams(_.id),{reason:z,field:_.field});e.current.publishEvent("rowEditStop",U,N)}}else if(_.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:_,editMode:"row"}))return;if(b3(N)||w3(N)?z=mi.printableKeyDown:N.key==="Enter"?z=mi.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(z=mi.deleteKeyDown),z){const J=e.current.getRowParams(_.id),Y=P({},J,{field:_.field,reason:z});e.current.publishEvent("rowEditStart",Y,N)}}},[e,y]),C=h.useCallback(_=>{const{id:N,field:z,reason:U}=_,J={id:N,fieldToFocus:z};(U===mi.printableKeyDown||U===mi.deleteKeyDown)&&(J.deleteValue=!!z),e.current.startRowEditMode(J)},[e]),k=h.useCallback(_=>{const{id:N,reason:z,field:U}=_;e.current.runPendingEditCellValueMutation(N);let J;z===Jo.enterKeyDown?J="below":z===Jo.tabKeyDown?J="right":z===Jo.shiftTabKeyDown&&(J="left");const Y=z==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:Y,field:U,cellToFocusAfter:J})},[e]);je(e,"cellDoubleClick",f(x)),je(e,"cellFocusIn",f(v)),je(e,"cellFocusOut",f(w)),je(e,"cellKeyDown",f(b)),je(e,"rowEditStart",f(C)),je(e,"rowEditStop",f(k)),Dt(e,"rowEditStart",t.onRowEditStart),Dt(e,"rowEditStop",t.onRowEditStop);const M=h.useCallback(_=>{if(t.editMode===ws.Cell)return Tt.View;const N=wn(e.current.state);return N[_]&&Object.keys(N[_]).length>0?Tt.Edit:Tt.View},[e,t.editMode]),T=ye(_=>{const N=_!==t.rowModesModel;d&&N&&d(_,{api:e.current}),!(t.rowModesModel&&N)&&(r(_),o.current=_,e.current.publishEvent("rowModesModelChange",_))}),E=h.useCallback((_,N)=>{const z=P({},o.current);N!==null?z[_]=P({},N):delete z[_],T(z)},[T]),$=h.useCallback((_,N)=>{e.current.setState(z=>{const U=P({},z.editRows);return N!==null?U[_]=N:delete U[_],P({},z,{editRows:U})}),e.current.forceUpdate()},[e]),S=h.useCallback((_,N,z)=>{e.current.setState(U=>{const J=P({},U.editRows);return z!==null?J[_]=P({},J[_],{[N]:P({},z)}):(delete J[_][N],Object.keys(J[_]).length===0&&delete J[_]),P({},U,{editRows:J})}),e.current.forceUpdate()},[e]),D=h.useCallback(_=>{const{id:N}=_,z=ce(_,Ple);g(N,Tt.View),E(N,P({mode:Tt.Edit},z))},[g,E]),j=ye(_=>{const{id:N,fieldToFocus:z,deleteValue:U,initialValue:J}=_,Y=zs(e),B=Y.reduce((W,te)=>{if(!e.current.getCellParams(N,te).isEditable)return W;const q=e.current.getColumn(te);let G=e.current.getCellValue(N,te);return z===te&&(U||J)&&(U?G=fx(q):J&&(G=J)),W[te]={value:G,error:!1,isProcessingProps:!!q.preProcessEditCellProps&&U},W},{});$(N,B),z&&e.current.setCellFocus(N,z),Y.filter(W=>!!e.current.getColumn(W).preProcessEditCellProps&&U).forEach(W=>{const te=e.current.getColumn(W),X=e.current.getCellValue(N,W),q=U?fx(te):J??X;Promise.resolve(te.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:B[W],hasChanged:q!==X})).then(G=>{if(e.current.getRowMode(N)===Tt.Edit){const ee=wn(e.current.state);S(N,W,P({},G,{value:ee[N][W].value,isProcessingProps:!1}))}})})}),F=h.useCallback(_=>{const{id:N}=_,z=ce(_,Mle);g(N,Tt.Edit),E(N,P({mode:Tt.View},z))},[g,E]),A=ye(_=>{const{id:N,ignoreModifications:z,field:U,cellToFocusAfter:J="none"}=_;e.current.runPendingEditCellValueMutation(N);const Y=()=>{J!=="none"&&U&&e.current.moveFocusToRelativeCell(N,U,J),$(N,null),E(N,null)};if(z){Y();return}const B=wn(e.current.state),W=e.current.getRow(N);if(Object.values(B[N]).some(q=>q.isProcessingProps)){s.current[N].mode=Tt.Edit;return}if(y(N)){s.current[N].mode=Tt.Edit,E(N,{mode:Tt.Edit});return}const X=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(l){const q=G=>{s.current[N].mode=Tt.Edit,E(N,{mode:Tt.Edit}),c&&c(G)};try{Promise.resolve(l(X,W,{rowId:N})).then(G=>{e.current.updateRows([G]),Y()}).catch(q)}catch(G){q(G)}}else e.current.updateRows([X]),Y()}),R=h.useCallback(_=>{const{id:N,field:z,value:U,debounceMs:J,unstable_skipValueParser:Y}=_;m(N,z);const B=e.current.getColumn(z),W=e.current.getRow(N);let te=U;B.valueParser&&!Y&&(te=B.valueParser(U,W,B,e));let X=wn(e.current.state),q=P({},X[N][z],{value:te,changeReason:J?"debouncedSetEditCellValue":"setEditCellValue"});return B.preProcessEditCellProps||S(N,z,q),new Promise(G=>{const ee=[];if(B.preProcessEditCellProps){const H=q.value!==X[N][z].value;q=P({},q,{isProcessingProps:!0}),S(N,z,q);const Z=X[N],ne=ce(Z,[z].map(pf)),oe=Promise.resolve(B.preProcessEditCellProps({id:N,row:W,props:q,hasChanged:H,otherFieldsProps:ne})).then(re=>{if(e.current.getRowMode(N)===Tt.View){G(!1);return}X=wn(e.current.state),re=P({},re,{isProcessingProps:!1}),re.value=B.preProcessEditCellProps?X[N][z].value:te,S(N,z,re)});ee.push(oe)}Object.entries(X[N]).forEach(([H,Z])=>{if(H===z)return;const ne=e.current.getColumn(H);if(!ne.preProcessEditCellProps)return;Z=P({},Z,{isProcessingProps:!0}),S(N,H,Z),X=wn(e.current.state);const oe=X[N],re=ce(oe,[H].map(pf)),ue=Promise.resolve(ne.preProcessEditCellProps({id:N,row:W,props:Z,hasChanged:!1,otherFieldsProps:re})).then(ie=>{if(e.current.getRowMode(N)===Tt.View){G(!1);return}ie=P({},ie,{isProcessingProps:!1}),S(N,H,ie)});ee.push(ue)}),Promise.all(ee).then(()=>{e.current.getRowMode(N)===Tt.Edit?(X=wn(e.current.state),G(!X[N][z].error)):G(!1)})})},[e,m,S]),I=h.useCallback(_=>{const N=wn(e.current.state),z=e.current.getRow(_);if(!N[_])return e.current.getRow(_);let U=P({},z);return Object.entries(N[_]).forEach(([J,Y])=>{const B=e.current.getColumn(J);B.valueSetter?U=B.valueSetter(Y.value,U,B,e):U[J]=Y.value}),U},[e]),L={getRowMode:M,startRowEditMode:D,stopRowEditMode:F},O={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:I};nt(e,L,"public"),nt(e,O,"private"),h.useEffect(()=>{u&&T(u)},[u,T]),ot(()=>{const _=Am(e),N=s.current;s.current=IR(n);const z=new Set([...Object.keys(n),...Object.keys(N)]);Array.from(z).forEach(U=>{var W;const J=n[U]??{mode:Tt.View},Y=((W=N[U])==null?void 0:W.mode)||Tt.View,B=_[U]??U;J.mode===Tt.Edit&&Y===Tt.View?j(P({id:B},J)):J.mode===Tt.View&&Y===Tt.Edit&&A(P({id:B},J))})},[e,n,j,A])},Ele=e=>P({},e,{editRows:{}}),Tle=(e,t)=>{kle(e,t),Ile(e,t);const n=h.useRef({}),{isCellEditable:r}=t,o=h.useCallback(f=>Nc(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),s=(f,m,g,y)=>{if(!g){y();return}if(n.current[f]||(n.current[f]={}),n.current[f][m]){const[w]=n.current[f][m];clearTimeout(w)}const x=()=>{const[w]=n.current[f][m];clearTimeout(w),y(),delete n.current[f][m]},v=setTimeout(()=>{y(),delete n.current[f][m]},g);n.current[f][m]=[v,x]};h.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([m,g])=>{Object.keys(g).forEach(y=>{const[x]=f[m][y];clearTimeout(x),delete f[m][y]})})}},[]);const i=h.useCallback((f,m)=>{if(n.current[f]){if(!m)Object.keys(n.current[f]).forEach(g=>{const[,y]=n.current[f][g];y()});else if(n.current[f][m]){const[,g]=n.current[f][m];g()}}},[]),a=h.useCallback(f=>{const{id:m,field:g,debounceMs:y}=f;return new Promise(x=>{s(m,g,y,async()=>{const v=t.editMode===ws.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,g)===St.Edit){const w=await v(f);x(w)}})})},[e,t.editMode]),l=h.useCallback((f,m)=>t.editMode===ws.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,m):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=h.useCallback((f,m)=>{var y;return((y=wn(e.current.state)[f])==null?void 0:y[m])??null},[e]),u={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:i};nt(e,u,"public"),nt(e,d,"private")},Dle=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=Oh({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:jR({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},$le=(e,t)=>{const n=vn(e,"useGridRows"),r=ra(e,t),o=h.useRef(Date.now()),s=h.useRef(t.rowCount),i=jr(),a=h.useCallback(O=>{const _=Ii(e)[O];if(_)return _;const N=e.current.getRowNode(O);return N&&Nc(N)?{[mc]:O}:null},[e]),l=t.getRowId,c=h.useCallback(O=>mc in O?O[mc]:l?l(O):O.id,[l]),u=h.useMemo(()=>r.rows.reduce((O,{id:_},N)=>(O[_]=N,O),{}),[r.rows]),d=h.useCallback(({cache:O,throttle:_})=>{const N=()=>{o.current=Date.now(),e.current.setState(U=>P({},U,{rows:jR({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Vn(e),previousTreeDepths:PP(e),previousGroupsToFetch:wte(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=O,!_){N();return}const z=t.throttleRowsMs-(Date.now()-o.current);if(z>0){i.start(z,N);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=h.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const _=Oh({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),N=e.current.caches.rows;_.rowsBeforePartialUpdates=N.rowsBeforePartialUpdates,d({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),m=h.useCallback(O=>{if(t.signature===yo.DataGrid&&O.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 _=IP(e,O,t.getRowId),N=MP({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:N,throttle:!0})},[t.signature,t.getRowId,d,e]),g=h.useCallback((O,_)=>{const N=IP(e,O,t.getRowId),z=MP({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:_??[]});d({cache:z,throttle:!1})},[t.getRowId,d,e]),y=h.useCallback(O=>{O!==t.loading&&(n.debug(`Setting loading to ${O}`),e.current.setState(_=>P({},_,{rows:P({},_.rows,{loading:O})})),e.current.caches.rows.loadingPropBeforePartialUpdates=O)},[t.loading,e,n]),x=h.useCallback(()=>{const O=Zp(e),_=Ii(e);return new Map(O.map(N=>[N,_[N]??{}]))},[e]),v=h.useCallback(()=>P0(e),[e]),w=h.useCallback(()=>Zp(e),[e]),b=h.useCallback(O=>u[O],[u]),C=h.useCallback((O,_)=>{const N=e.current.getRowNode(O);if(!N)throw new Error(`MUI X: No row with id #${O} found.`);if(N.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=P({},N,{childrenExpanded:_});e.current.setState(U=>P({},U,{rows:P({},U.rows,{tree:P({},U.rows.tree,{[O]:z})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",z)},[e]),k=h.useCallback(O=>Vn(e)[O]??null,[e]),M=h.useCallback(({skipAutoGeneratedRows:O=!0,groupId:_,applySorting:N,applyFiltering:z})=>{const U=Vn(e);let J;if(N){const Y=U[_];if(!Y)return[];const B=Xf(e);J=[];const W=B.findIndex(te=>te===_)+1;for(let te=W;teY.depth;te+=1){const X=B[te];(!O||!Nc(U[X]))&&J.push(X)}}else J=Nw(U,_,O);if(z){const Y=du(e);J=J.filter(B=>Y[B]!==!1)}return J},[e]),T=h.useCallback((O,_)=>{const N=e.current.getRowNode(O);if(!N)throw new Error(`MUI X: No row with id #${O} found.`);if(N.parent!==Rn)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(N.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(z=>{const U=Vn(z,e.current.instanceId)[Rn],J=U.children,Y=J.findIndex(W=>W===O);if(Y===-1||Y===_)return z;n.debug(`Moving row ${O} to index ${_}`);const B=[...J];return B.splice(_,0,B.splice(Y,1)[0]),P({},z,{rows:P({},z.rows,{tree:P({},z.rows.tree,{[Rn]:P({},U,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),E=h.useCallback((O,_)=>{if(t.signature===yo.DataGrid&&_.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(_.length===0)return;if(uu(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=P({},Vn(e)),U=P({},Ii(e)),J=P({},Am(e)),Y=z[Rn],B=[...Y.children],W=new Set;for(let X=0;X<_.length;X+=1){const q=_[X],G=M0(q,t.getRowId,"A row was provided without id when calling replaceRows()."),[ee]=B.splice(O+X,1,G);W.has(ee)||(delete U[ee],delete J[ee],delete z[ee]);const H={id:G,depth:0,parent:Rn,type:"leaf",groupingKey:null};U[G]=q,J[G]=G,z[G]=H,W.add(G)}z[Rn]=P({},Y,{children:B});const te=B.filter(X=>{var q;return((q=z[X])==null?void 0:q.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=U,e.current.caches.rows.dataRowIdToIdLookup=J,e.current.setState(X=>P({},X,{rows:P({},X.rows,{dataRowIdToModelLookup:U,dataRowIdToIdLookup:J,dataRowIds:te,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),$={getRow:a,setLoading:y,getRowId:c,getRowModels:x,getRowsCount:v,getAllRowIds:w,setRows:f,updateRows:m,getRowNode:k,getRowIndexRelativeToVisibleRows:b,unstable_replaceRows:E},S={setRowIndex:T,setRowChildrenExpansion:C,getRowGroupChildren:M},D={updateServerRows:g},j=h.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=P({},e.current.caches.rows,{updates:{type:"full",rows:Zp(e)}}):O=Oh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),F=Yo(()=>t.unstable_dataSource),A=h.useCallback(O=>{if(t.unstable_dataSource&&t.unstable_dataSource!==F.current){F.current=t.unstable_dataSource;return}O==="rowTreeCreation"&&j()},[j,F,t.unstable_dataSource]),R=h.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Cte(e)&&j()},[e,j]);je(e,"activeStrategyProcessorChange",A),je(e,"strategyAvailabilityChange",R);const I=h.useCallback(()=>{e.current.setState(O=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Vn(O,e.current.instanceId),treeDepths:PP(O,e.current.instanceId),dataRowIds:Zp(O,e.current.instanceId),dataRowIdToModelLookup:Ii(O,e.current.instanceId),dataRowIdToIdLookup:Am(O,e.current.instanceId)});return P({},O,{rows:P({},O.rows,_,{totalTopLevelRowCount:OR({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);tC(e,"hydrateRows",I),nt(e,$,"public"),nt(e,S,t.signature===yo.DataGrid?"private":"public"),nt(e,D,"private");const L=h.useRef(!0);h.useEffect(()=>{var U;if(L.current){L.current=!1;return}let O=!1;t.rowCount!==s.current&&(O=!0,s.current=t.rowCount);const _=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,N=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,z=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;_&&(N||(e.current.setState(J=>P({},J,{rows:P({},J.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),z||(e.current.setState(J=>P({},J,{rows:P({},J.rows,{totalRowCount:Math.max(t.rowCount||0,J.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,J.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!O)||(n.debug(`Updating all rows, new length ${(U=t.rows)==null?void 0:U.length}`),d({cache:Oh({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])},Rle=e=>{const t={[Rn]:P({},Pte(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let i=0;i!r[i])),n[Rn]=P({},o,{children:s}),{groupingName:Ka,tree:n,treeDepths:{0:s.length},dataRowIds:s}},Ole=e=>e.updates.type==="full"?Rle(e.updates.rows):Ale({previousTree:e.previousTree,actions:e.updates.actions}),jle=e=>{_m(e,Ka,"rowTreeCreation",Ole)},E3=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Fle=(e,t)=>P({},e,{rowSelection:t.rowSelection?E3(t.rowSelectionModel)??[]:[]}),Lle=(e,t)=>{var L,O,_,N,z,U,J;const n=vn(e,"useGridSelection"),r=h.useCallback(Y=>(...B)=>{t.rowSelection&&Y(...B)},[t.rowSelection]),o=t.signature!==yo.DataGrid&&(((L=t.rowSelectionPropagation)==null?void 0:L.parents)||((O=t.rowSelectionPropagation)==null?void 0:O.descendants)),s=h.useMemo(()=>E3(t.rowSelectionModel,Jr(e.current.state)),[e,t.rowSelectionModel]),i=h.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:s,propOnChange:t.onRowSelectionModelChange,stateSelector:Jr,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=Vw(t),d=ra(e,t),f=he(e,Vn),m=he(e,uu)>1,g=h.useCallback(Y=>{let B=Y;const W=i.current??Y,te=e.current.isRowSelected(Y);if(te){const X=gc(e),q=X.findIndex(ee=>ee===W),G=X.findIndex(ee=>ee===B);if(q===G)return;q>G?B=X[G+1]:B=X[G-1]}i.current=Y,e.current.selectRowRange({startId:W,endId:B},!te)},[e]),y=h.useCallback(Y=>{if(t.signature===yo.DataGrid&&!u&&Array.isArray(Y)&&Y.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(` -`));Jr(e.current.state)!==Y&&(n.debug("Setting selection model"),e.current.setState(W=>P({},W,{rowSelection:t.rowSelection?Y:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),x=h.useCallback(Y=>Jr(e.current.state).includes(Y),[e]),v=h.useCallback(Y=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(Y)))return!1;const B=e.current.getRowNode(Y);return!((B==null?void 0:B.type)==="footer"||(B==null?void 0:B.type)==="pinnedRow")},[e,t.rowSelection,c]),w=h.useCallback(()=>Xte(e),[e]),b=h.useCallback((Y,B=!0,W=!1)=>{var te,X,q,G,ee,H;if(e.current.isRowSelectable(Y))if(i.current=Y,W){n.debug(`Setting selection for row ${Y}`);const Z=[],ne=oe=>{Z.push(oe)};B&&(ne(Y),o&&Jp(e,f,Y,((te=t.rowSelectionPropagation)==null?void 0:te.descendants)??!1,((X=t.rowSelectionPropagation)==null?void 0:X.parents)??!1,ne)),e.current.setRowSelectionModel(Z)}else{n.debug(`Toggling selection for row ${Y}`);const Z=Jr(e.current.state),ne=new Set(Z);ne.delete(Y);const oe=ie=>{ne.add(ie)},re=ie=>{ne.delete(ie)};B?(oe(Y),o&&Jp(e,f,Y,((q=t.rowSelectionPropagation)==null?void 0:q.descendants)??!1,((G=t.rowSelectionPropagation)==null?void 0:G.parents)??!1,oe)):o&&EP(e,f,Y,((ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)??!1,((H=t.rowSelectionPropagation)==null?void 0:H.parents)??!1,re),(ne.size<2||u)&&e.current.setRowSelectionModel(Array.from(ne))}},[e,n,o,f,(_=t.rowSelectionPropagation)==null?void 0:_.descendants,(N=t.rowSelectionPropagation)==null?void 0:N.parents,u]),C=h.useCallback((Y,B=!0,W=!1)=>{n.debug("Setting selection for several rows");const te=Y.filter(G=>e.current.isRowSelectable(G));let X;if(W){if(B){if(X=new Set(te),o){const ee=H=>{X.add(H)};te.forEach(H=>{var Z,ne;Jp(e,f,H,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((ne=t.rowSelectionPropagation)==null?void 0:ne.parents)??!1,ee)})}}else X=new Set;const G=Bs(e);if(X.size===Object.keys(G).length&&Array.from(X).every(ee=>G[ee]===ee))return}else{X=new Set(Object.values(Bs(e)));const G=H=>{X.add(H)},ee=H=>{X.delete(H)};te.forEach(H=>{var Z,ne,oe,re;B?(X.add(H),o&&Jp(e,f,H,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((ne=t.rowSelectionPropagation)==null?void 0:ne.parents)??!1,G)):(ee(H),o&&EP(e,f,H,((oe=t.rowSelectionPropagation)==null?void 0:oe.descendants)??!1,((re=t.rowSelectionPropagation)==null?void 0:re.parents)??!1,ee))})}(X.size<2||u)&&e.current.setRowSelectionModel(Array.from(X))},[n,o,u,e,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(U=t.rowSelectionPropagation)==null?void 0:U.parents]),k=h.useCallback(({startId:Y,endId:B},W=!0,te=!1)=>{if(!e.current.getRow(Y)||!e.current.getRow(B))return;n.debug(`Expanding selection from row ${Y} to row ${B}`);const X=gc(e),q=X.indexOf(Y),G=X.indexOf(B),[ee,H]=q>G?[G,q]:[q,G],Z=X.slice(ee,H+1);e.current.selectRows(Z,W,te)},[e,n]),M={selectRow:b,setRowSelectionModel:y,getSelectedRows:w,isRowSelected:x,isRowSelectable:v},T={selectRows:C,selectRowRange:k};nt(e,M,"public"),nt(e,T,t.signature===yo.DataGrid?"private":"public");const E=h.useRef(!0),$=h.useCallback((Y=!1)=>{var H;if(E.current)return;const B=Jr(e.current.state),W=Ii(e),te=du(e),X=P({},Bs(e)),q=Z=>t.filterMode==="server"?!W[Z]:te[Z]!==!0;let G=!1;B.forEach(Z=>{var oe;if(q(Z)){if(t.keepNonExistentRowsSelected)return;delete X[Z],G=!0;return}if(!((oe=t.rowSelectionPropagation)!=null&&oe.parents))return;const ne=f[Z];if(ne.type==="group"){if(ne.isAutoGenerated){delete X[Z],G=!0;return}ne.children.every(ue=>te[ue]===!1)||(delete X[Z],G=!0)}});const ee=m&&((H=t.rowSelectionPropagation)==null?void 0:H.parents)&&Object.keys(X).length>0;if(G||ee&&!Y){const Z=Object.values(X);ee?e.current.selectRows(Z,!0,!0):e.current.setRowSelectionModel(Z)}},[e,m,(J=t.rowSelectionPropagation)==null?void 0:J.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),S=h.useCallback((Y,B)=>{const W=B.metaKey||B.ctrlKey,te=!a&&!W&&!Wse(B),X=!u||te,q=e.current.isRowSelected(Y);X?e.current.selectRow(Y,te?!0:!q,!0):e.current.selectRow(Y,!q,!1)},[e,u,a]),D=h.useCallback((Y,B)=>{var X;if(l)return;const W=(X=B.target.closest(`.${K.cell}`))==null?void 0:X.getAttribute("data-field");if(W===fu.field||W===I0)return;if(W){const q=e.current.getColumn(W);if((q==null?void 0:q.type)===k0)return}e.current.getRowNode(Y.id).type!=="pinnedRow"&&(B.shiftKey&&u?g(Y.id):S(Y.id,B))},[l,u,e,g,S]),j=h.useCallback((Y,B)=>{var W;u&&B.shiftKey&&((W=window.getSelection())==null||W.removeAllRanges())},[u]),F=h.useCallback((Y,B)=>{u&&B.nativeEvent.shiftKey?g(Y.id):e.current.selectRow(Y.id,Y.value,!u)},[e,g,u]),A=h.useCallback(Y=>{const B=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?QR(e):gc(e);e.current.selectRows(B,Y.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),R=h.useCallback((Y,B)=>{if(e.current.getCellMode(Y.id,Y.field)!==St.Edit&&!Jf(B)){if(Lm(B.key)&&B.shiftKey){const W=Ir(e);if(W&&W.id!==Y.id){B.preventDefault();const te=e.current.isRowSelected(W.id);if(!u){e.current.selectRow(W.id,!te,!0);return}const X=e.current.getRowIndexRelativeToVisibleRows(W.id),q=e.current.getRowIndexRelativeToVisibleRows(Y.id);let G,ee;X>q?te?(G=q,ee=X-1):(G=q,ee=X):te?(G=X+1,ee=q):(G=X,ee=q);const H=d.rows.slice(G,ee+1).map(Z=>Z.id);e.current.selectRows(H,!te);return}}if(B.key===" "&&B.shiftKey){B.preventDefault(),S(Y.id,B);return}String.fromCharCode(B.keyCode)==="A"&&(B.ctrlKey||B.metaKey)&&(B.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,S,C,d.rows,u]);je(e,"sortedRowsSet",r(()=>$(!0))),je(e,"filteredRowsSet",r($)),je(e,"rowClick",r(D)),je(e,"rowSelectionCheckboxChange",r(F)),je(e,"headerSelectionCheckboxChange",A),je(e,"cellMouseDown",r(j)),je(e,"cellKeyDown",r(R)),h.useEffect(()=>{s!==void 0&&e.current.setRowSelectionModel(s)},[e,s,t.rowSelection]),h.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const I=s!=null;h.useEffect(()=>{if(I||!t.rowSelection)return;const Y=Jr(e.current.state);if(v){const B=Y.filter(W=>v(W));B.length{if(!t.rowSelection||I)return;const Y=Jr(e.current.state);!u&&Y.length>1&&e.current.setRowSelectionModel([])},[e,u,a,I,t.rowSelection]),h.useEffect(()=>{r($)},[$,r]),h.useEffect(()=>{E.current&&(E.current=!1)},[])},_le=e=>{const{classes:t}=e;return h.useMemo(()=>le({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},lt,t),[t])},Nle=(e,t)=>{const n={classes:t.classes},r=_le(n),o=h.useCallback(s=>{const i=P({},fu,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,l=s.lookup[Es]!=null;return a&&!l?(s.lookup[Es]=i,s.orderedFields=[Es,...s.orderedFields]):!a&&l?(delete s.lookup[Es],s.orderedFields=s.orderedFields.filter(c=>c!==Es)):a&&l&&(s.lookup[Es]=P({},i,s.lookup[Es])),s},[e,r,t.checkboxSelection]);Vt(e,"hydrateColumns",o)},zle=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return P({},e,{sorting:{sortModel:SR(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Ble=(e,t)=>{var k,M;const n=vn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Zr,changeEvent:"sortModelChange"});const r=h.useCallback((T,E)=>{const $=Zr(e),S=$.findIndex(j=>j.field===T);let D=[...$];return S>-1?(E==null?void 0:E.sort)==null?D.splice(S,1):D.splice(S,1,E):D=[...$,E],D},[e]),o=h.useCallback((T,E)=>{const S=Zr(e).find(D=>D.field===T.field);if(S){const D=E===void 0?yP(T.sortingOrder??t.sortingOrder,S.sort):E;return D===void 0?void 0:P({},S,{sort:D})}return{field:T.field,sort:E===void 0?yP(T.sortingOrder??t.sortingOrder):E}},[e,t.sortingOrder]),s=h.useCallback((T,E)=>E==null||E.sortable===!1||t.disableColumnSorting?T:(E.sortingOrder||t.sortingOrder).some(S=>!!S)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),i=h.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),P({},T,{sorting:P({},T.sorting,{sortedRows:Nw(Vn(e),Rn,!1)})});const E=Zr(T,e.current.instanceId),$=Uee(E,e),S=e.current.applyStrategyProcessor("sorting",{sortRowList:$});return P({},T,{sorting:P({},T.sorting,{sortedRows:S})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=h.useCallback(T=>{Zr(e)!==T&&(n.debug("Setting sort model"),e.current.setState(gP(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=h.useCallback((T,E,$)=>{const S=e.current.getColumn(T),D=o(S,E);let j;!$||t.disableMultipleColumnsSorting?j=(D==null?void 0:D.sort)==null?[]:[D]:j=r(S.field,D),e.current.setSortModel(j)},[e,r,o,t.disableMultipleColumnsSorting]),c=h.useCallback(()=>Zr(e),[e]),u=h.useCallback(()=>zw(e).map(E=>E.model),[e]),d=h.useCallback(()=>Xf(e),[e]),f=h.useCallback(T=>e.current.getSortedRowIds()[T],[e]);nt(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:a,sortColumn:l,applySorting:i},"public");const g=h.useCallback((T,E)=>{var D,j;const $=Zr(e);return!E.exportOnlyDirtyModels||t.sortModel!=null||((j=(D=t.initialState)==null?void 0:D.sorting)==null?void 0:j.sortModel)!=null||$.length>0?P({},T,{sorting:{sortModel:$}}):T},[e,t.sortModel,(M=(k=t.initialState)==null?void 0:k.sorting)==null?void 0:M.sortModel]),y=h.useCallback((T,E)=>{var S;const $=(S=E.stateToRestore.sorting)==null?void 0:S.sortModel;return $==null?T:(e.current.setState(gP($,t.disableMultipleColumnsSorting)),P({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),x=h.useCallback(T=>{const E=Vn(e),$=E[Rn],S=T.sortRowList?T.sortRowList($.children.map(D=>E[D])):[...$.children];return $.footerId!=null&&S.push($.footerId),S},[e]);Vt(e,"exportState",g),Vt(e,"restoreState",y),_m(e,Ka,"sorting",x);const v=h.useCallback(({field:T,colDef:E},$)=>{if(!E.sortable||t.disableColumnSorting)return;const S=$.shiftKey||$.metaKey||$.ctrlKey;l(T,void 0,S)},[l,t.disableColumnSorting]),w=h.useCallback(({field:T,colDef:E},$)=>{!E.sortable||t.disableColumnSorting||$.key==="Enter"&&!$.ctrlKey&&!$.metaKey&&l(T,void 0,$.shiftKey)},[l,t.disableColumnSorting]),b=h.useCallback(()=>{const T=Zr(e),E=ii(e);if(T.length>0){const $=T.filter(S=>E[S.field]);$.length{T==="sorting"&&e.current.applySorting()},[e]);Vt(e,"columnMenu",s),je(e,"columnHeaderClick",v),je(e,"columnHeaderKeyDown",w),je(e,"rowsSet",e.current.applySorting),je(e,"columnsChange",b),je(e,"activeStrategyProcessorChange",C),Qf(()=>{e.current.applySorting()}),ot(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function lM(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o{const n=Nt(),r=vn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,i=he(e,na),a=h.useCallback(d=>{var v;const f=Fn(e.current.state),m=P0(e),g=t.unstable_listView?[Bc(e.current.state)]:fn(e);if(!(d.rowIndex==null)&&m===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let x={};if(d.colIndex!==void 0){const w=ta(e);let b;if(typeof d.rowIndex<"u"){const C=(v=i[d.rowIndex])==null?void 0:v.id,k=e.current.unstable_getCellColSpanInfo(C,d.colIndex);k&&!k.spannedByColSpan&&(b=k.cellProps.width)}typeof b>"u"&&(b=g[d.colIndex].computedWidth),x.left=lM({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:b,elementOffset:w[d.colIndex]})}if(d.rowIndex!==void 0){const w=pu(e.current.state),b=fne(e),C=pne(e),k=t.pagination?d.rowIndex-b*C:d.rowIndex,M=w.positions[k+1]?w.positions[k+1]-w.positions[k]:w.currentPageTotalHeight-w.positions[k];x.top=lM({containerSize:f.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:M,elementOffset:w.positions[k]})}return x=e.current.unstable_applyPipeProcessors("scrollToIndexes",x,d),typeof x.left!==void 0||typeof x.top!==void 0?(e.current.scroll(x),!0):!1},[r,e,s,t.pagination,i,t.unstable_listView]),l=h.useCallback(d=>{if(s.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,s.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}s.current&&d.top!==void 0&&(s.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n,o,r]),c=h.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);nt(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function Vle(e,t){Dt(e,"columnHeaderClick",t.onColumnHeaderClick),Dt(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Dt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Dt(e,"columnHeaderOver",t.onColumnHeaderOver),Dt(e,"columnHeaderOut",t.onColumnHeaderOut),Dt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Dt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Dt(e,"cellClick",t.onCellClick),Dt(e,"cellDoubleClick",t.onCellDoubleClick),Dt(e,"cellKeyDown",t.onCellKeyDown),Dt(e,"preferencePanelClose",t.onPreferencePanelClose),Dt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Dt(e,"menuOpen",t.onMenuOpen),Dt(e,"menuClose",t.onMenuClose),Dt(e,"rowDoubleClick",t.onRowDoubleClick),Dt(e,"rowClick",t.onRowClick),Dt(e,"stateChange",t.onStateChange)}function Gle(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function s(...i){r=i,n===void 0&&(n=setTimeout(o,t))}return s.clear=()=>{clearTimeout(n),n=void 0},s}const px={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:ws.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},Ol={width:0,height:0},Wle={isReady:!1,root:Ol,viewportOuterSize:Ol,viewportInnerSize:Ol,contentSize:Ol,minimumSize:Ol,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},Ule=e=>P({},e,{dimensions:Wle});function Yle(e,t){const n=vn(e,"useResizeContainer"),r=h.useRef(!1),o=h.useRef(Ol),s=he(e,Fn),i=he(e,pu),a=he(e,qf),l=he(e,Kf),c=h.useMemo(()=>LR(t.rowHeight,px.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),m=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),g=qle(jw(e),6),y=Yw(e,t),x=a.left.reduce((I,L)=>I+L.computedWidth,0),v=a.right.reduce((I,L)=>I+L.computedWidth,0),[w,b]=h.useState(),C=h.useMemo(()=>Gle(b,t.resizeThrottleMs),[t.resizeThrottleMs]),k=h.useRef(),M=()=>e.current.state.dimensions,T=ye(I=>{e.current.setState(L=>P({},L,{dimensions:I}))}),E=h.useCallback(()=>{const I=e.current.mainElementRef.current;if(!I)return;const L=zr(I).getComputedStyle(I),O={width:parseFloat(L.width)||0,height:parseFloat(L.height)||0};(!k.current||!cM(k.current,O))&&(e.current.publishEvent("resize",O),k.current=O)},[e]),$=h.useCallback(()=>{const I=Fn(e.current.state);if(!I.isReady)return 0;const L=yc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const _=O0(e),N=_.lastRowIndex-_.firstRowIndex;return Math.min(N-1,L.rows.length)}const O=Math.floor(I.viewportInnerSize.height/u);return Math.min(O,L.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),S=h.useCallback(()=>{var ee,H;const I=e.current.rootElementRef.current,L=Ite(e),O=Kle(I,g,t.scrollbarSize),_=y+L.top,N=L.bottom,U={width:g-x-v,height:i.currentPageTotalHeight};let J,Y,B=!1,W=!1;if(t.autoHeight)W=!1,B=Math.round(g)>Math.round(o.current.width),J={width:o.current.width,height:_+N+U.height},Y={width:Math.max(0,J.width-(W?O:0)),height:Math.max(0,J.height-(B?O:0))};else{J={width:o.current.width,height:o.current.height},Y={width:Math.max(0,J.width-x-v),height:Math.max(0,J.height-_-N)};const Z=U,ne=Y,oe=Z.width>ne.width,re=Z.height>ne.height;(oe||re)&&(W=re,B=Z.width+(W?O:0)>ne.width,B&&(W=Z.height+O>ne.height)),W&&(Y.width-=O),B&&(Y.height-=O)}const te=Math.max(J.width,g+(W?O:0)),X={width:g,height:_+U.height+N},q={isReady:!0,root:o.current,viewportOuterSize:J,viewportInnerSize:Y,contentSize:U,minimumSize:X,hasScrollX:B,hasScrollY:W,scrollbarSize:O,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:m,rowWidth:te,rowHeight:u,columnsTotalWidth:g,leftPinnedWidth:x,rightPinnedWidth:v,headersTotalHeight:y,topContainerHeight:_,bottomContainerHeight:N},G=e.current.state.dimensions;T(q),cM(q.viewportInnerSize,G.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",q.viewportInnerSize),(H=(ee=e.current).updateRenderContext)==null||H.call(ee)},[e,T,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u,d,f,m,g,y,x,v]),D={resize:E,getRootDimensions:M},j={updateDimensions:S,getViewportPageSize:$};nt(e,D,"public"),nt(e,j,"private"),ot(()=>{w&&(S(),e.current.publishEvent("debouncedResize",o.current))},[e,w,S]);const F=e.current.rootElementRef.current;ot(()=>{if(!F)return;const I=(L,O)=>F.style.setProperty(L,O);I("--DataGrid-width",`${s.viewportOuterSize.width}px`),I("--DataGrid-hasScrollX",`${Number(s.hasScrollX)}`),I("--DataGrid-hasScrollY",`${Number(s.hasScrollY)}`),I("--DataGrid-scrollbarSize",`${s.scrollbarSize}px`),I("--DataGrid-rowWidth",`${s.rowWidth}px`),I("--DataGrid-columnsTotalWidth",`${s.columnsTotalWidth}px`),I("--DataGrid-leftPinnedWidth",`${s.leftPinnedWidth}px`),I("--DataGrid-rightPinnedWidth",`${s.rightPinnedWidth}px`),I("--DataGrid-headerHeight",`${s.headerHeight}px`),I("--DataGrid-headersTotalHeight",`${s.headersTotalHeight}px`),I("--DataGrid-topContainerHeight",`${s.topContainerHeight}px`),I("--DataGrid-bottomContainerHeight",`${s.bottomContainerHeight}px`),I("--height",`${s.rowHeight}px`)},[F,s]);const A=h.useRef(!0),R=h.useCallback(I=>{o.current=I;const L=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!L&&(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),I.width===0&&!r.current&&!L&&(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),A.current){b(I),A.current=!1;return}C(I)},[t.autoHeight,C,n]);ot(S,[S]),Dt(e,"sortedRowsSet",S),Dt(e,"paginationModelChange",S),Dt(e,"columnsChange",S),je(e,"resize",R),Dt(e,"debouncedResize",t.onResize)}function Kle(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=_t(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 s=o.offsetWidth-o.clientWidth;return e.removeChild(o),s}function qle(e,t){return Math.round(e*10**t)/10**t}function cM(e,t){return e.width===t.width&&e.height===t.height}const Xle=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Qle=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),Zle=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=e.current.caches.rowsMeta.heights,i=h.useRef(-1),a=h.useRef(!1),l=h.useRef(!1),c=he(e,Kf),u=he(e,Dn),d=he(e,$0),f=he(e,Zr),m=ra(e,t),g=he(e,sl),y=he(e,()=>Fn(e.current.state).rowHeight),x=F=>{let A=s.get(F);return A===void 0&&(A={content:y,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},s.set(F,A)),A},v=h.useCallback(F=>{const A=Fn(e.current.state).rowHeight,R=e.current.getRowHeightEntry(F.id);if(!n)R.content=A,R.needsFirstMeasurement=!1;else{const I=n(P({},F,{densityFactor:c}));if(I==="auto"){if(R.needsFirstMeasurement){const L=o?o(P({},F,{densityFactor:c})):A;R.content=L??A}a.current=!0,R.autoHeight=!0}else R.content=LR(I,A),R.needsFirstMeasurement=!1,R.autoHeight=!1}if(r){const I=e.current.getRowIndexRelativeToVisibleRows(F.id),L=r(P({},F,{isFirstVisible:I===0,isLastVisible:I===m.rows.length-1,indexRelativeToCurrentPage:I}));R.spacingTop=L.top??0,R.spacingBottom=L.bottom??0}else R.spacingTop=0,R.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",R,F),R},[e,m.rows.length,n,o,y,r,c]),w=h.useCallback(()=>{a.current=!1,g.top.forEach(v),g.bottom.forEach(v);const F=[],A=m.rows.reduce((R,I)=>{F.push(R);const L=v(I),O=L.content+L.spacingTop+L.spacingBottom+L.detail;return R+O},0);a.current||(i.current=1/0),e.current.setState(R=>P({},R,{rowsMeta:{currentPageTotalHeight:A,positions:F}})),l.current=!0},[e,g,m.rows,v]),b=F=>{var A;return((A=s.get(F))==null?void 0:A.content)??y},C=(F,A)=>{const R=e.current.getRowHeightEntry(F),I=R.content!==A;R.needsFirstMeasurement=!1,R.content=A,l.current&&(l.current=!I)},k=F=>{var A;return((A=s.get(F))==null?void 0:A.autoHeight)??!1},M=()=>i.current,T=F=>{a.current&&F>i.current&&(i.current=F)},E=()=>{s.clear(),w()},$=Yo(()=>new Xle(F=>{for(let A=0;A0?R.borderBoxSize[0].blockSize:R.contentRect.height,L=R.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(L,I)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,S=(F,A)=>(F.__mui_id=A,$.observe(F),()=>$.unobserve(F));tC(e,"rowHeight",w),h.useEffect(()=>{w()},[u,d,f,w]);const D={unstable_getRowHeight:b,unstable_setLastMeasuredRowIndex:T,unstable_storeRowHeightMeasurement:C,resetRowHeights:E},j={hydrateRowsMeta:w,observeRowHeight:S,rowHasAutoHeight:k,getRowHeightEntry:x,getLastMeasuredRowIndex:M};nt(e,D,"public"),nt(e,j,"private")},Jle=e=>{const t=h.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=h.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);nt(e,{exportState:t,restoreState:n},"public")},ece=e=>{const t=h.useRef({}),n=(a,l)=>{var c;return(c=t.current[a])==null?void 0:c[l]},r=()=>{t.current={}},o=h.useCallback(({rowId:a,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d1&&(d+=f.colSpan-1)}},[e]),s={unstable_getCellColSpanInfo:n},i={resetColSpan:r,calculateColSpan:o};nt(e,s,"public"),nt(e,i,"private"),je(e,"columnOrderChange",r)};function tce(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:s,maxLastColumnIndex:i,columns:a}=e,l=a.length,c=a[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 cv(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let m=c.computedWidth;for(let g=1;g=s&&y{if(TR(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(s=>{T3(s,[...t,r],n)})},hx=e=>{if(!e)return{};const t={};return e.forEach(n=>{T3(n,[],t)}),t},mx=(e,t,n)=>{const r=l=>t[l]??[],o=[],s=Math.max(...e.map(l=>r(l).length)),i=(l,c,u)=>hc(r(l).slice(0,u+1),r(c).slice(0,u+1)),a=(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{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const m=u[u.length-1],g=m.columnFields[m.columnFields.length-1];return m.groupId!==f||!i(g,d,l)||a(g,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...m.columnFields,d],groupId:f}]},[]);o.push(c)}return o},nce=["groupId","children"],nC=e=>{let t={};return e.forEach(n=>{if(TR(n))return;const{groupId:r,children:o}=n,s=ce(n,nce);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=P({},s,{groupId:r}),a=nC(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=P({},t,a,{[r]:i})}),P({},t)},rce=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=zs(n),o=cu(n),s=nC(t.columnGroupingModel??[]),i=hx(t.columnGroupingModel??[]),a=mx(r,i,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=i[c])==null?void 0:u.length)??0}));return P({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:i,headerStructure:a,maxDepth:l}})},oce=(e,t)=>{const n=h.useCallback(a=>t3(e)[a]??[],[e]),r=h.useCallback(()=>n3(e),[e]);nt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=h.useCallback(()=>{const a=hx(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=mx(c,a,u);return P({},l,{columnGrouping:P({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),i=h.useCallback(a=>{var y,x;const l=((x=(y=e.current).getPinnedColumns)==null?void 0:x.call(y))??{},c=zs(e),u=cu(e),d=nC(a??[]),f=hx(a??[]),m=mx(c,f,l),g=u.length===0?0:Math.max(...u.map(v=>{var w;return((w=f[v])==null?void 0:w.length)??0}));e.current.setState(v=>P({},v,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:m,maxDepth:g}}))},[e]);je(e,"columnIndexChange",s),je(e,"columnsChange",()=>{i(t.columnGroupingModel)}),je(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),h.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])};function sce(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function uM(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;nKw(e),r=he(e,n);return h.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=sce()}return t.current}}function uce(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,l)=>a-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,i=s<5?5:s*t;return n.filter(a=>a>r-i&&a{const a=Coe(e.current,s.field).map(g=>g.getBoundingClientRect().width??0),l=t.includeOutliers?a:uce(a,t.outliersFactor);if(t.includeHeaders){const g=woe(e.current,s.field);if(g){const y=g.querySelector(`.${K.columnHeaderTitle}`),x=g.querySelector(`.${K.columnHeaderTitleContainerContent}`),v=g.querySelector(`.${K.iconButtonContainer}`),w=g.querySelector(`.${K.menuIcon}`),b=y??x,C=window.getComputedStyle(g,null),k=parseInt(C.paddingLeft,10)+parseInt(C.paddingRight,10),T=b.scrollWidth+1+k+((v==null?void 0:v.clientWidth)??0)+((w==null?void 0:w.clientWidth)??0);l.push(T)}}const c=s.minWidth!==-1/0&&s.minWidth!==void 0,u=s.maxWidth!==1/0&&s.maxWidth!==void 0,d=c?s.minWidth:0,f=u?s.maxWidth:1/0,m=l.length===0?0:Math.max(...l);r[s.field]=ms(m,d,f)}),o.classList.remove(K.autosizing),r}const fce=e=>P({},e,{columnResize:{resizingColumnField:""}});function pce(){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 hce=(e,t)=>{const n=Nt(),r=vn(e,"useGridColumnResize"),o=Yo(pce).current,s=h.useRef(),i=h.useRef(),a=jr(),l=h.useRef(),c=$=>{var I,L;r.debug(`Updating width to ${$} for col ${o.colDef.field}`);const S=o.columnHeaderElement.offsetWidth,D=$-S,j=$-o.initialColWidth,F=o.initialTotalWidth+j;(L=(I=e.current.rootElementRef)==null?void 0:I.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${F}px`),o.colDef.computedWidth=$,o.colDef.width=$,o.colDef.flex=0,o.columnHeaderElement.style.width=`${$}px`;const A=o.headerFilterElement;A&&(A.style.width=`${$}px`),o.groupHeaderElements.forEach(O=>{const _=O;let N;_.getAttribute("aria-colspan")==="1"?N=`${$}px`:N=`${_.offsetWidth+D}px`,_.style.width=N}),o.cellElements.forEach(O=>{const _=O;let N;_.getAttribute("aria-colspan")==="1"?N=`${$}px`:N=`${_.offsetWidth+D}px`,_.style.setProperty("--width",N)});const R=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);R===$t.LEFT&&(Ml(o.fillerLeft,"width",D),o.leftPinnedCellsAfter.forEach(O=>{Ml(O,"left",D)}),o.leftPinnedHeadersAfter.forEach(O=>{Ml(O,"left",D)})),R===$t.RIGHT&&(Ml(o.fillerRight,"width",D),o.rightPinnedCellsBefore.forEach(O=>{Ml(O,"right",D)}),o.rightPinnedHeadersBefore.forEach(O=>{Ml(O,"right",D)}))},u=$=>{if(v(),o.previousMouseClickEvent){const S=o.previousMouseClickEvent,D=S.timeStamp,j=S.clientX,F=S.clientY;if($.timeStamp-D<300&&$.clientX===j&&$.clientY===F){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,$);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 S=hs(e.current.state);o.groupHeaderElements.forEach(D=>{const j=hoe(D),F=D,R=`${j.reduce((I,L)=>S.columnVisibilityModel[L]!==!1?I+S.lookup[L].computedWidth:I,0)}px`;F.style.width=R})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,$)})},d=($,S,D)=>{var R;const j=e.current.rootElementRef.current;o.initialColWidth=$.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=$,o.columnHeaderElement=poe(e.current.columnHeadersContainerRef.current,$.field);const F=j.querySelector(`.${K.headerFilterRow} [data-field="${ai($.field)}"]`);F&&(o.headerFilterElement=F),o.groupHeaderElements=moe((R=e.current.columnHeadersContainerRef)==null?void 0:R.current,$.field),o.cellElements=goe(o.columnHeaderElement,e.current),o.fillerLeft=LP(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=LP(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const A=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=A!==$t.LEFT?[]:yoe(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=A!==$t.RIGHT?[]:voe(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=A!==$t.LEFT?[]:xoe(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=A!==$t.RIGHT?[]:boe(e.current,o.columnHeaderElement,n),i.current=lce(S,n),s.current=ice(D,o.columnHeaderElement.getBoundingClientRect(),i.current)},f=ye(u),m=ye($=>{if($.buttons===0){f($);return}let S=dM(s.current,$.clientX,o.columnHeaderElement.getBoundingClientRect(),i.current);S=ms(S,o.colDef.minWidth,o.colDef.maxWidth),c(S);const D={element:o.columnHeaderElement,colDef:o.colDef,width:S};e.current.publishEvent("columnResize",D,$)}),g=ye($=>{uM($,l.current)&&u($)}),y=ye($=>{const S=uM($,l.current);if(!S)return;if($.type==="mousemove"&&$.buttons===0){g($);return}let D=dM(s.current,S.x,o.columnHeaderElement.getBoundingClientRect(),i.current);D=ms(D,o.colDef.minWidth,o.colDef.maxWidth),c(D);const j={element:o.columnHeaderElement,colDef:o.colDef,width:D};e.current.publishEvent("columnResize",j,$)}),x=ye($=>{const S=Fm($.target,K["columnSeparator--resizable"]);if(!S)return;const D=$.changedTouches[0];D!=null&&(l.current=D.identifier);const j=Fm($.target,K.columnHeader),F=foe(j),A=e.current.getColumn(F);r.debug(`Start Resize on col ${A.field}`),e.current.publishEvent("columnResizeStart",{field:F},$),d(A,S,D.clientX);const R=_t($.currentTarget);R.addEventListener("touchmove",y),R.addEventListener("touchend",g)}),v=h.useCallback(()=>{const $=_t(e.current.rootElementRef.current);$.body.style.removeProperty("cursor"),$.removeEventListener("mousemove",m),$.removeEventListener("mouseup",f),$.removeEventListener("touchmove",y),$.removeEventListener("touchend",g),setTimeout(()=>{$.removeEventListener("click",fM,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,m,f,y,g]),w=h.useCallback(({field:$})=>{e.current.setState(S=>P({},S,{columnResize:P({},S.columnResize,{resizingColumnField:$})})),e.current.forceUpdate()},[e]),b=h.useCallback(()=>{e.current.setState($=>P({},$,{columnResize:P({},$.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),C=ye(({colDef:$},S)=>{if(S.button!==0||!S.currentTarget.classList.contains(K["columnSeparator--resizable"]))return;S.preventDefault(),r.debug(`Start Resize on col ${$.field}`),e.current.publishEvent("columnResizeStart",{field:$.field},S),d($,S.currentTarget,S.clientX);const D=_t(e.current.rootElementRef.current);D.body.style.cursor="col-resize",o.previousMouseClickEvent=S.nativeEvent,D.addEventListener("mousemove",m),D.addEventListener("mouseup",f),D.addEventListener("click",fM,!0)}),k=ye(($,S)=>{if(t.disableAutosize||S.button!==0)return;const D=e.current.state.columns.lookup[$.field];D.resizable!==!1&&e.current.autosizeColumns(P({},t.autosizeOptions,{columns:[D.field]}))}),M=cce(e),T=h.useRef(!1),E=h.useCallback(async $=>{var A;if(!((A=e.current.rootElementRef)==null?void 0:A.current)||T.current)return;T.current=!0;const D=hs(e.current.state),j=P({},Jre,$,{columns:($==null?void 0:$.columns)??D.orderedFields});j.columns=j.columns.filter(R=>D.columnVisibilityModel[R]!==!1);const F=j.columns.map(R=>e.current.state.columns.lookup[R]);try{e.current.unstable_setColumnVirtualization(!1),await M();const R=dce(e,j,F),I=F.map(L=>P({},L,{width:R[L.field],computedWidth:R[L.field]}));if(j.expand){const O=D.orderedFields.map(z=>D.lookup[z]).filter(z=>D.columnVisibilityModel[z.field]!==!1).reduce((z,U)=>z+(R[U.field]??U.computedWidth??U.width),0),N=e.current.getRootDimensions().viewportInnerSize.width-O;if(N>0){const z=N/(I.length||1);I.forEach(U=>{U.width+=z,U.computedWidth+=z})}}e.current.updateColumns(I),I.forEach((L,O)=>{if(L.width!==F[O].width){const _=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:_})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,M]);h.useEffect(()=>v,[v]),t0(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),UR(e,()=>{var $;return($=e.current.columnHeadersContainerRef)==null?void 0:$.current},"touchstart",x,{passive:!0}),nt(e,{autosizeColumns:E},"public"),je(e,"columnResizeStop",b),je(e,"columnResizeStart",w),je(e,"columnSeparatorMouseDown",C),je(e,"columnSeparatorDoubleClick",k),Dt(e,"columnResize",t.onColumnResize),Dt(e,"columnWidthChange",t.onColumnWidthChange)};function Ml(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function mce(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{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},Nm={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Id={firstRowIndex:0,lastRowIndex:0},yce=new Set([Es,"__reorder__",I0]),D3=20,$3=(e,t,n,r,o,s,i)=>{const a=s?{}:P({},e.current.state.rowSpanning.spannedCells),l=s?{}:P({},e.current.state.rowSpanning.hiddenCells),c=s?{}:P({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(i=Id),t.forEach(u=>{var d;if(!yce.has(u.field)){for(let f=o.firstRowIndex;f<=o.lastRowIndex;f+=1){const m=n[f];if((d=l[m.id])!=null&&d[u.field])continue;const g=uv(m.model,u,e);if(g==null)continue;let y=m.id,x=f,v=0;const w=[];if(f===o.firstRowIndex){let C=f-1;const k=n[C];for(;C>=r.firstRowIndex&&uv(k.model,u,e)===g;){const M=n[C+1];l[M.id]?l[M.id][u.field]=!0:l[M.id]={[u.field]:!0},w.push(f),v+=1,y=k.id,x=C,C-=1}}w.forEach(C=>{c[C]?c[C][u.field]=x:c[C]={[u.field]:x}});let b=f+1;for(;b<=r.lastRowIndex&&n[b]&&uv(n[b].model,u,e)===g;){const C=n[b];l[C.id]?l[C.id][u.field]=!0:l[C.id]={[u.field]:!0},c[b]?c[b][u.field]=x:c[b]={[u.field]:x},b+=1,v+=1}v>0&&(a[y]?a[y][u.field]=v+1:a[y]={[u.field]:v+1})}i={firstRowIndex:Math.min(i.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(i.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:l,hiddenCellOriginMap:c,processedRange:i}},vce=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],s=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!s.length||!i||!a||l)return P({},e,{rowSpanning:Nm});const c={firstRowIndex:0,lastRowIndex:Math.min(D3-1,Math.max(o.length-1,0))},u=o.map(y=>({id:y,model:i[y]})),d=s.map(y=>a[y]),{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:g}=$3(n,d,u,c,c,!0,Id);return P({},e,{rowSpanning:{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:g}})}return P({},e,{rowSpanning:Nm})},xce=(e,t)=>{const{range:n,rows:r}=ra(e,t),o=he(e,O0),s=he(e,fn),i=Yo(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(D3-1,Math.max(e.current.state.rows.dataRowIds.length-1,0))}:Id),a=h.useRef(Id),l=h.useCallback((f=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==Nm&&e.current.setState(T=>P({},T,{rowSpanning:Nm}));return}if(n===null||!gce(o))return;f&&(i.current=Id);const m=mce({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex-1,n.lastRowIndex)},i.current);if(m===null)return;const{spannedCells:g,hiddenCells:y,hiddenCellOriginMap:x,processedRange:v}=$3(e,s,r,n,m,f,i.current);i.current=v;const w=Object.keys(g).length,b=Object.keys(y).length,C=Object.keys(e.current.state.rowSpanning.spannedCells).length,k=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(f||w!==C||b!==k)&&e.current.setState(T=>P({},T,{rowSpanning:{spannedCells:g,hiddenCells:y,hiddenCellOriginMap:x}}))},[e,t.unstable_rowSpanning,n,o,r,s,i]),c=h.useRef(o),u=h.useRef(!0),d=h.useRef(!1);h.useEffect(()=>{const f=u.current;if(u.current&&(u.current=!1),n&&a.current&&pM(n,a.current)&&(a.current=n,d.current=!0),!f&&c.current!==o){pM(c.current,o)&&(l(d.current),d.current=!1),c.current=o;return}l()},[l,o,n,a])},bce=(e,t,n)=>P({},e,{listViewColumn:t.unstable_listColumn?P({},t.unstable_listColumn,{computedWidth:gx(n)}):void 0});function wce(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?P({},s,{listViewColumn:P({},s.listViewColumn,{computedWidth:gx(e)})}):s)},r=h.useRef(null);je(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),je(e,"columnVisibilityModelChange",n),h.useEffect(()=>{const s=t.unstable_listColumn;s&&e.current.setState(i=>P({},i,{listViewColumn:P({},s,{computedWidth:gx(e)})}))},[e,t.unstable_listColumn]),h.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function gx(e){return Fn(e.current.state).viewportInnerSize.width}const Cce=(e,t)=>{const n=Bae(e,t);return Nle(n,t),jle(n),bn(Ule,n,t),bn(Fle,n,t),bn(qae,n,t),bn(Dle,n,t),bn(Ele,n,t),bn(cle,n,t),bn(zle,n,t),bn(ble,n,t),bn(sle,n,t),bn(vce,n,t),bn(Qae,n,t),bn(fce,n,t),bn(vle,n,t),bn(Qle,n,t),bn(Yae,n,t),bn(rce,n,t),bn(fre,n,t),bn(bce,n,t),mle(n,t),Lle(n,t),Xae(n,t),$le(n,t),xce(n,t),Soe(n,t),ece(n),oce(n,t),Tle(n,t),ule(n,t),wle(n,t),lle(n,t),Ble(n,t),Zae(n,t),hce(n,t),xle(n,t),Zle(n,t),Hle(n,t),Kae(n),ele(n,t),ole(n,t),Uae(n,t),Yle(n,t),Vle(n,t),Jle(n),pre(n,t),wce(n,t),n},Sce=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:i,groupId:a,pinnedPosition:l}=e;return le({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},lt,t)};function kce(e){var z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:i,colIndex:a,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:m,sectionLength:g,gridHasFiller:y}=e,x=_e(),v=h.useRef(null),w=Qe(),b=he(w,n3),C=t?b[t]:{},{headerName:k=t??"",description:M="",headerAlign:T=void 0}=C;let E;const $=t&&((z=b[t])==null?void 0:z.renderHeaderGroup),S=h.useMemo(()=>({groupId:t,headerName:k,description:M,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:u}),[t,k,M,r,o,s,a,u]);t&&$&&(E=$(S));const D=F0(d,m),j=j0(d,m,g,x.showColumnVerticalBorder,y),F=P({},e,{classes:x.classes,showLeftBorder:D,showRightBorder:j,headerAlign:T,depth:r,isDragging:!1}),A=k??t,R=pt(),I=t===null?`empty-group-cell-${R}`:t,L=Sce(F);h.useLayoutEffect(()=>{if(l){const J=v.current.querySelector('[tabindex="0"]')||v.current;J==null||J.focus()}},[w,l]);const O=h.useCallback(U=>J=>{Jf(J)||w.current.publishEvent(U,S,J)},[w,S]),_=h.useMemo(()=>({onKeyDown:O("columnGroupHeaderKeyDown"),onFocus:O("columnGroupHeaderFocus"),onBlur:O("columnGroupHeaderBlur")}),[O]),N=typeof C.headerClassName=="function"?C.headerClassName(S):C.headerClassName;return p.jsx(v3,P({ref:v,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:E,headerClassName:N,description:M,elementId:I,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:A,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:f},_))}const hM=Q("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Pce=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:i,columnGroupHeaderFocus:a,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[m,g]=h.useState(""),[y,x]=h.useState(""),v=To(),w=Nt(),b=_e(),C=he(v,Fn),k=he(v,Kw),M=he(v,t3),T=he(v,ta),E=he(v,dre),$=he(v,qf),S=he(v,ii),D=a3(T,E,$.left.length),j=C.columnsTotalWidth{v.current.columnHeadersContainerRef.current&&(v.current.columnHeadersContainerRef.current.scrollLeft=0)},[v]);const F=h.useCallback(W=>x(W.field),[]),A=h.useCallback(()=>x(""),[]),R=h.useCallback(W=>g(W.field),[]),I=h.useCallback(()=>g(""),[]),L=h.useMemo(()=>$.left.length?{firstColumnIndex:0,lastColumnIndex:$.left.length}:null,[$.left.length]),O=h.useMemo(()=>$.right.length?{firstColumnIndex:t.length-$.right.length,lastColumnIndex:t.length}:null,[$.right.length,t.length]);je(v,"columnResizeStart",F),je(v,"columnResizeStop",A),je(v,"columnHeaderDragStart",R),je(v,"columnHeaderDragEnd",I);const _=W=>{const{renderContext:te=E,maxLastColumn:X=t.length}=W||{},q=te.firstColumnIndex,G=k?te.lastColumnIndex:X;return{renderedColumns:t.slice(q,G),firstColumnToRender:q,lastColumnToRender:G}},N=(W,te,X,q=!1)=>{const G=(W==null?void 0:W.position)===$t.RIGHT,ee=(W==null?void 0:W.position)===void 0,H=$.right.length>0&&G||$.right.length===0&&ee,Z=D-X;return p.jsxs(h.Fragment,{children:[ee&&p.jsx("div",{role:"presentation",style:{width:Z}}),te,ee&&p.jsx("div",{role:"presentation",className:se(K.filler,q&&K["filler--borderBottom"])}),H&&p.jsx(Jw,{header:!0,pinnedRight:G,borderBottom:q,borderTop:!1})]})},z=({pinnedPosition:W,columnIndex:te,computedWidth:X})=>{let q;const G=W===$t.LEFT,ee=W===$t.RIGHT;if(G||ee){const H=Zw(W,X,te,T,C);let Z=G?"left":"right";w&&(Z=G?"right":"left"),W==="left"&&(q={[Z]:H}),W==="right"&&(q={[Z]:H})}return q},U=(W,te={})=>{const{renderedColumns:X,firstColumnToRender:q}=_(W),G=[];for(let ee=0;eep.jsxs(hM,{role:"row","aria-rowindex":l+1,ownerState:b,className:K["row--borderBottom"],children:[L&&U({position:$t.LEFT,renderContext:L,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),U({renderContext:E,maxLastColumn:t.length-$.right.length}),O&&U({position:$t.RIGHT,renderContext:O,maxLastColumn:O.lastColumnIndex},{disableReorder:!0,separatorSide:Qw.Left})]}),Y=({depth:W,params:te})=>{var Ie,Be;const X=_(te);if(X.renderedColumns.length===0)return null;const{firstColumnToRender:q,lastColumnToRender:G}=X,ee=d[W],H=t[q].field,Z=((Ie=M[H])==null?void 0:Ie[W])??null,ne=ee.findIndex(({groupId:Ge,columnFields:Ae})=>Ge===Z&&Ae.includes(H)),oe=t[G-1].field,re=((Be=M[oe])==null?void 0:Be[W])??null,ue=ee.findIndex(({groupId:Ge,columnFields:Ae})=>Ge===re&&Ae.includes(oe)),ie=ee.slice(ne,ue+1).map(Ge=>P({},Ge,{columnFields:Ge.columnFields.filter(Ae=>u[Ae]!==!1)})).filter(Ge=>Ge.columnFields.length>0),be=ie[0].columnFields.indexOf(H),Fe=ie[0].columnFields.slice(0,be).reduce((Ge,Ae)=>{const Oe=S[Ae];return Ge+(Oe.computedWidth??0)},0);let Xe=q;const Pe=ie.map(({groupId:Ge,columnFields:Ae},Oe)=>{const He=a!==null&&a.depth===W&&Ae.includes(a.field),Ee=s!==null&&s.depth===W&&Ae.includes(s.field)?0:-1,Me={width:Ae.reduce((De,qe)=>De+S[qe].computedWidth,0),fields:Ae,colIndex:Xe},Ve=te.position,bt=z({pinnedPosition:Ve,columnIndex:Xe,computedWidth:Me.width});Xe+=Ae.length;let ge=Oe;return Ve==="left"&&(ge=Xe-1),p.jsx(kce,{groupId:Ge,width:Me.width,fields:Me.fields,colIndex:Me.colIndex,depth:W,isLastColumn:Me.colIndex===t.length-Me.fields.length,maxDepth:l,height:C.groupHeaderHeight,hasFocus:He,tabIndex:Ee,pinnedPosition:Ve,style:bt,indexInSection:ge,sectionLength:ee.length,gridHasFiller:j},Oe)});return N(te,Pe,Fe)};return{renderContext:E,leftRenderContext:L,rightRenderContext:O,pinnedColumns:$,visibleColumns:t,getCellOffsetStyle:z,getFillers:N,getColumnHeadersRow:J,getColumnsToRender:_,getColumnGroupHeadersRows:()=>{if(l===0)return null;const W=[];for(let te=0;te({role:"rowgroup"})}},Mce=["className"],Ice=e=>{const{classes:t}=e;return le({root:["columnHeaders"]},lt,t)},Ece=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Tce=h.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Mce),s=_e(),i=Ice(s);return p.jsx(Ece,P({ref:n,className:se(i.root,r),ownerState:s},o,{role:"presentation"}))}),Dce=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],$ce=h.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=t,y=ce(t,Dce),{getInnerProps:x,getColumnHeadersRow:v,getColumnGroupHeadersRows:w}=Pce({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g});return p.jsxs(Tce,P({ref:n},y,x(),{children:[w(),v()]}))}),Rce=ea($ce);function Ace(e){return null}function Oce(e){return null}const jce=h.forwardRef(function(t,n){const o=Qe().current.getLocaleText("noResultsOverlayLabel");return p.jsx(Xw,P({ref:n},t,{children:o}))}),Fce=["sortingOrder"],Lce=h.memo(function(t){const{sortingOrder:n}=t,r=ce(t,Fce),o=_e(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?p.jsx(i,P({},r)):null}),_ce=["native"];function Nce(e){let{native:t}=e,n=ce(e,_ce);return t?p.jsx("option",P({},n)):p.jsx(Bt,P({},n))}const zce={booleanCellTrueIcon:Nse,booleanCellFalseIcon:iv,columnMenuIcon:jse,openFilterButtonIcon:Ese,filterPanelDeleteIcon:iv,columnFilteredIcon:YP,columnSelectorIcon:Dse,columnUnsortedIcon:Lce,columnSortedAscendingIcon:VP,columnSortedDescendingIcon:GP,columnResizeIcon:$se,densityCompactIcon:Rse,densityStandardIcon:Ase,densityComfortableIcon:Ose,exportIcon:_se,moreActionsIcon:zse,treeDataCollapseIcon:UP,treeDataExpandIcon:WP,groupingCriteriaCollapseIcon:UP,groupingCriteriaExpandIcon:WP,detailPanelExpandIcon:KP,detailPanelCollapseIcon:Fse,rowReorderIcon:qP,quickFilterIcon:Tse,quickFilterClearIcon:iv,columnMenuHideIcon:Bse,columnMenuSortAscendingIcon:VP,columnMenuSortDescendingIcon:GP,columnMenuFilterIcon:YP,columnMenuManageColumnsIcon:Hse,columnMenuClearIcon:Vse,loadIcon:Lse,filterPanelAddIcon:KP,filterPanelRemoveAllIcon:Gse,columnReorderIcon:qP},Bce=P({},zce,{baseBadge:gK,baseCheckbox:yw,baseDivider:Gn,baseTextField:Ns,baseFormControl:_s,baseSelect:Vf,baseButton:ut,baseIconButton:gn,baseInputAdornment:y0,baseTooltip:oq,basePopper:oi,baseInputLabel:Hf,baseSelectOption:Nce,baseChip:as}),Hce=P({},Bce,{cell:Eoe,skeletonCell:joe,columnHeaderFilterIconButton:Ise,columnHeaderSortIcon:Pse,columnMenu:lie,columnHeaders:Rce,detailPanels:Ace,footer:eae,footerRowCount:yae,toolbar:null,pinnedRows:Oce,loadingOverlay:lae,noResultsOverlay:jce,noRowsOverlay:cae,pagination:pae,filterPanel:Wie,columnsPanel:bie,columnsManagement:S3,panel:Pie,row:Cae});function Vce({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=P({},e);return Object.keys(n).forEach(o=>{const s=o;n[s]!==void 0&&(r[s]=n[s])}),r}function Gce(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;oGce(e),[e])}const Uce={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},Yce=Hce,Kce=e=>{const t=Wce(yt({props:e,name:"MuiDataGrid"})),n=h.useMemo(()=>P({},xee,t.localeText),[t.localeText]),r=h.useMemo(()=>Vce({defaultSlots:Yce,slots:t.slots}),[t.slots]),o=h.useMemo(()=>Object.keys(px).reduce((s,i)=>(s[i]=t[i]??px[i],s),{}),[t]);return h.useMemo(()=>P({},t,o,{localeText:n,slots:r},Uce),[t,n,r,o])},qce={hooks:{useGridAriaAttributes:Sae,useGridRowAriaAttributes:kae}},R3=h.forwardRef(function(t,n){const r=Kce(t),o=Cce(r.apiRef,r);return p.jsx(Pae,{privateApiRef:o,configuration:qce,props:r,children:p.jsxs(Woe,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[p.jsx(nae,{}),p.jsx(soe,{}),p.jsx(ioe,{})]}))})}),gu=h.memo(R3);R3.propTypes={apiRef:V.shape({current:V.object.isRequired}),"aria-label":V.string,"aria-labelledby":V.string,autoHeight:V.bool,autoPageSize:V.bool,autosizeOnMount:V.bool,autosizeOptions:V.shape({columns:V.arrayOf(V.string),expand:V.bool,includeHeaders:V.bool,includeOutliers:V.bool,outliersFactor:V.number}),cellModesModel:V.object,checkboxSelection:V.bool,classes:V.object,clipboardCopyCellDelimiter:V.string,columnBufferPx:V.number,columnGroupHeaderHeight:V.number,columnGroupingModel:V.arrayOf(V.object),columnHeaderHeight:V.number,columns:V.arrayOf(V.object).isRequired,columnVisibilityModel:V.object,density:V.oneOf(["comfortable","compact","standard"]),disableAutosize:V.bool,disableColumnFilter:V.bool,disableColumnMenu:V.bool,disableColumnResize:V.bool,disableColumnSelector:V.bool,disableColumnSorting:V.bool,disableDensitySelector:V.bool,disableEval:V.bool,disableMultipleRowSelection:V.bool,disableRowSelectionOnClick:V.bool,disableVirtualization:V.bool,editMode:V.oneOf(["cell","row"]),estimatedRowCount:V.number,experimentalFeatures:V.shape({warnIfFocusStateIsNotSynced:V.bool}),filterDebounceMs:V.number,filterMode:V.oneOf(["client","server"]),filterModel:V.shape({items:V.arrayOf(V.shape({field:V.string.isRequired,id:V.oneOfType([V.number,V.string]),operator:V.string.isRequired,value:V.any})).isRequired,logicOperator:V.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:V.bool,quickFilterLogicOperator:V.oneOf(["and","or"]),quickFilterValues:V.array}),forwardedProps:V.object,getCellClassName:V.func,getDetailPanelContent:V.func,getEstimatedRowHeight:V.func,getRowClassName:V.func,getRowHeight:V.func,getRowId:V.func,getRowSpacing:V.func,hideFooter:V.bool,hideFooterPagination:V.bool,hideFooterSelectedRowCount:V.bool,ignoreDiacritics:V.bool,ignoreValueFormatterDuringExport:V.oneOfType([V.shape({clipboardExport:V.bool,csvExport:V.bool}),V.bool]),indeterminateCheckboxAction:V.oneOf(["deselect","select"]),initialState:V.object,isCellEditable:V.func,isRowSelectable:V.func,keepNonExistentRowsSelected:V.bool,loading:V.bool,localeText:V.object,logger:V.shape({debug:V.func.isRequired,error:V.func.isRequired,info:V.func.isRequired,warn:V.func.isRequired}),logLevel:V.oneOf(["debug","error","info","warn",!1]),nonce:V.string,onCellClick:V.func,onCellDoubleClick:V.func,onCellEditStart:V.func,onCellEditStop:V.func,onCellKeyDown:V.func,onCellModesModelChange:V.func,onClipboardCopy:V.func,onColumnHeaderClick:V.func,onColumnHeaderContextMenu:V.func,onColumnHeaderDoubleClick:V.func,onColumnHeaderEnter:V.func,onColumnHeaderLeave:V.func,onColumnHeaderOut:V.func,onColumnHeaderOver:V.func,onColumnOrderChange:V.func,onColumnResize:V.func,onColumnVisibilityModelChange:V.func,onColumnWidthChange:V.func,onDensityChange:V.func,onFilterModelChange:V.func,onMenuClose:V.func,onMenuOpen:V.func,onPaginationMetaChange:V.func,onPaginationModelChange:V.func,onPreferencePanelClose:V.func,onPreferencePanelOpen:V.func,onProcessRowUpdateError:V.func,onResize:V.func,onRowClick:V.func,onRowCountChange:V.func,onRowDoubleClick:V.func,onRowEditStart:V.func,onRowEditStop:V.func,onRowModesModelChange:V.func,onRowSelectionModelChange:V.func,onSortModelChange:V.func,onStateChange:V.func,pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.shape({label:V.string.isRequired,value:V.number.isRequired})]).isRequired),pagination:V.oneOf([!0]),paginationMeta:V.shape({hasNextPage:V.bool}),paginationMode:V.oneOf(["client","server"]),paginationModel:V.shape({page:V.number.isRequired,pageSize:V.number.isRequired}),processRowUpdate:V.func,resizeThrottleMs:V.number,rowBufferPx:V.number,rowCount:V.number,rowHeight:V.number,rowModesModel:V.object,rowPositionsDebounceMs:V.number,rows:V.arrayOf(V.object),rowSelection:V.bool,rowSelectionModel:V.oneOfType([V.arrayOf(V.oneOfType([V.number,V.string]).isRequired),V.number,V.string]),rowSpacingType:V.oneOf(["border","margin"]),scrollbarSize:V.number,showCellVerticalBorder:V.bool,showColumnVerticalBorder:V.bool,slotProps:V.object,slots:V.object,sortingMode:V.oneOf(["client","server"]),sortingOrder:V.arrayOf(V.oneOf(["asc","desc"])),sortModel:V.arrayOf(V.shape({field:V.string.isRequired,sort:V.oneOf(["asc","desc"])})),sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),unstable_rowSpanning:V.bool};const Xce=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function Qce(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function Zce(){return p.jsx(mu,{children:p.jsx(Qce,{})})}const mM=new Date().toISOString().slice(0,10),Jce=new Date,gM=new Date(Jce.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),eue=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=su(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=ou(d=>d.userAppointmentDataList.userData);return h.useEffect(()=>{n&&o($h({page:1,appointment_day_after:mM,appointment_day_before:gM,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,mM,gM,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const m=Ut(f.appointment_day);return m.isAfter(s)&&m.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Appointment"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(So,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(gu,{rows:e,columns:Xce,slots:{toolbar:Zce},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})};function mt(e){return function(){return e}}const A3=Math.cos,zm=Math.sin,Ko=Math.sqrt,yM=1e-12,Bm=Math.PI,$a=2*Bm,yx=Math.PI,vx=2*yx,ga=1e-6,tue=vx-ga;function O3(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O3;const n=10**t;return function(r){this._+=r[0];for(let o=1,s=r.length;oga)if(!(Math.abs(d*l-c*u)>ga)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-i,g=o-a,y=l*l+c*c,x=m*m+g*g,v=Math.sqrt(y),w=Math.sqrt(f),b=s*Math.tan((yx-Math.acos((y+f-x)/(2*v*w)))/2),C=b/w,k=b/v;Math.abs(C-1)>ga&&this._append`L${t+C*u},${n+C*d}`,this._append`A${s},${s},0,0,${+(d*m>u*g)},${this._x1=t+k*l},${this._y1=n+k*c}`}}arc(t,n,r,o,s,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),c=t+a,u=n+l,d=1^i,f=i?o-s:s-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ga||Math.abs(this._y1-u)>ga)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%vx+vx),f>tue?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ga&&this._append`A${r},${r},0,${+(f>=yx)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 rC(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 rue(t)}function L0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j3(e){this._context=e}j3.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 oC(e){return new j3(e)}function F3(e){return e[0]}function L3(e){return e[1]}function _3(e,t){var n=mt(!0),r=null,o=oC,s=null,i=rC(a);e=typeof e=="function"?e:e===void 0?F3:mt(e),t=typeof t=="function"?t:t===void 0?L3:mt(t);function a(l){var c,u=(l=L0(l)).length,d,f=!1,m;for(r==null&&(s=o(m=i())),c=0;c<=u;++c)!(c=m;--g)a.point(b[g],C[g]);a.lineEnd(),a.areaEnd()}v&&(b[f]=+e(x,f,d),C[f]=+t(x,f,d),a.point(r?+r(x,f,d):b[f],n?+n(x,f,d):C[f]))}if(w)return a=null,w+""||null}function u(){return _3().defined(o).curve(i).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:mt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:mt(+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:mt(!!d),c):o},c.curve=function(d){return arguments.length?(i=d,s!=null&&(a=i(s)),c):i},c.context=function(d){return arguments.length?(d==null?s=a=null:a=i(s=d),c):s},c}function sue(e,t){return te?1:t>=e?0:NaN}function iue(e){return e}function aue(){var e=iue,t=sue,n=null,r=mt(0),o=mt($a),s=mt(0);function i(a){var l,c=(a=L0(a)).length,u,d,f=0,m=new Array(c),g=new Array(c),y=+r.apply(this,arguments),x=Math.min($a,Math.max(-$a,o.apply(this,arguments)-y)),v,w=Math.min(Math.abs(x)/c,s.apply(this,arguments)),b=w*(x<0?-1:1),C;for(l=0;l0&&(f+=C);for(t!=null?m.sort(function(k,M){return t(g[k],g[M])}):n!=null&&m.sort(function(k,M){return n(a[k],a[M])}),l=0,d=f?(x-c*b)/f:0;l0?C*d:0)+b,g[u]={data:a[u],index:l,value:C,startAngle:y,endAngle:v,padAngle:w};return g}return i.value=function(a){return arguments.length?(e=typeof a=="function"?a:mt(+a),i):e},i.sortValues=function(a){return arguments.length?(t=a,n=null,i):t},i.sort=function(a){return arguments.length?(n=a,t=null,i):n},i.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:mt(+a),i):r},i.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:mt(+a),i):o},i.padAngle=function(a){return arguments.length?(s=typeof a=="function"?a:mt(+a),i):s},i}const N3={draw(e,t){const n=Ko(t/Bm);e.moveTo(n,0),e.arc(0,0,n,0,$a)}},lue={draw(e,t){const n=Ko(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()}},z3=Ko(1/3),cue=z3*2,uue={draw(e,t){const n=Ko(t/cue),r=n*z3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},due={draw(e,t){const n=Ko(t),r=-n/2;e.rect(r,r,n,n)}},fue=.8908130915292852,B3=zm(Bm/10)/zm(7*Bm/10),pue=zm($a/10)*B3,hue=-A3($a/10)*B3,mue={draw(e,t){const n=Ko(t*fue),r=pue*n,o=hue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const i=$a*s/5,a=A3(i),l=zm(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}},dv=Ko(3),gue={draw(e,t){const n=-Ko(t/(dv*3));e.moveTo(0,n*2),e.lineTo(-dv*n,-n),e.lineTo(dv*n,-n),e.closePath()}},Xr=-.5,Qr=Ko(3)/2,xx=1/Ko(12),yue=(xx/2+1)*3,vue={draw(e,t){const n=Ko(t/yue),r=n/2,o=n*xx,s=r,i=n*xx+n,a=-s,l=i;e.moveTo(r,o),e.lineTo(s,i),e.lineTo(a,l),e.lineTo(Xr*r-Qr*o,Qr*r+Xr*o),e.lineTo(Xr*s-Qr*i,Qr*s+Xr*i),e.lineTo(Xr*a-Qr*l,Qr*a+Xr*l),e.lineTo(Xr*r+Qr*o,Xr*o-Qr*r),e.lineTo(Xr*s+Qr*i,Xr*i-Qr*s),e.lineTo(Xr*a+Qr*l,Xr*l-Qr*a),e.closePath()}},xue=[N3,lue,uue,due,mue,gue,vue];function bue(e,t){let n=null,r=rC(o);e=typeof e=="function"?e:mt(e||N3),t=typeof t=="function"?t:mt(t===void 0?64:+t);function o(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:mt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:mt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function vM(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function sC(e,t){this._context=e,this._k=(1-t)/6}sC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vM(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:vM(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new sC(r,t)}return n.tension=function(r){return e(+r)},n})(0);function wue(e,t,n){var r=e._x1,o=e._y1,s=e._x2,i=e._y2;if(e._l01_a>yM){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>yM){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,i=(i*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,s,i,e._x2,e._y2)}function H3(e,t){this._context=e,this._alpha=t}H3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:wue(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Cue=function e(t){function n(r){return t?new H3(r,t):new sC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function xM(e){return e<0?-1:1}function bM(e,t,n){var r=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),a=(s*o+i*r)/(r+o);return(xM(s)+xM(i))*Math.min(Math.abs(s),Math.abs(i),.5*Math.abs(a))||0}function wM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fv(e,t,n){var r=e._x0,o=e._y0,s=e._x1,i=e._y1,a=(s-r)/3;e._context.bezierCurveTo(r+a,o+a*t,s-a,i-a*n,s,i)}function Hm(e){this._context=e}Hm.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:fv(this,this._t0,wM(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,fv(this,wM(this,n=bM(this,e,t)),n);break;default:fv(this,this._t0,n=bM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function V3(e){this._context=new G3(e)}(V3.prototype=Object.create(Hm.prototype)).point=function(e,t){Hm.prototype.point.call(this,t,e)};function G3(e){this._context=e}G3.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,s){this._context.bezierCurveTo(t,e,r,n,s,o)}};function CM(e){return new Hm(e)}function Sue(e){return new V3(e)}function W3(e){this._context=e}W3.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=SM(e),o=SM(t),s=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t=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 Pue(e){return new _0(e,.5)}function Mue(e){return new _0(e,0)}function Iue(e){return new _0(e,1)}function Hc(e,t){if((i=e.length)>1)for(var n=1,r,o,s=e[t[0]],i,a=s.length;n=0;)n[t]=t;return n}function Eue(e,t){return e[t]}function Tue(e){const t=[];return t.key=e,t}function U3(){var e=mt([]),t=Vc,n=Hc,r=Eue;function o(s){var i=Array.from(e.apply(this,arguments),Tue),a,l=i.length,c=-1,u;for(const d of s)for(a=0,++c;a0){for(var n,r,o=0,s=e[0].length,i;o0)for(var n,r=0,o,s,i,a,l,c=e[t[0]].length;r0?(o[0]=i,o[1]=i+=s):s<0?(o[1]=a,o[0]=a+=s):(o[0]=0,o[1]=s)}function Rue(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,s=r.length;n0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,s,i;rs&&(s=o,n=t);return n}function K3(e){var t=e.map(q3);return Vc(e).sort(function(n,r){return t[n]-t[r]})}function q3(e){for(var t=0,n=-1,r=e.length,o;++nt?1:e>=t?0:NaN}function _ue(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function iC(e){let t,n,r;e.length!==2?(t=Nh,n=(a,l)=>Nh(e(a),l),r=(a,l)=>e(a)-l):(t=e===Nh||e===_ue?e:Nue,n=e,r=e);function o(a,l,c=0,u=a.length){if(c>>1;n(a[d],l)<0?c=d+1:u=d}while(c>>1;n(a[d],l)<=0?c=d+1:u=d}while(cc&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:i,right:s}}function Nue(){return 0}function zue(e){return e===null?NaN:+e}const Bue=iC(Nh),X3=Bue.right;iC(zue).center;class kM extends Map{constructor(t,n=Gue){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(PM(this,t))}has(t){return super.has(PM(this,t))}set(t,n){return super.set(Hue(this,t),n)}delete(t){return super.delete(Vue(this,t))}}function PM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Hue({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Vue({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Gue(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Wue=Math.sqrt(50),Uue=Math.sqrt(10),Yue=Math.sqrt(2);function Vm(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),s=r/Math.pow(10,o),i=s>=Wue?10:s>=Uue?5:s>=Yue?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/i,a=Math.round(e*c),l=Math.round(t*c),a/ct&&--l,c=-c):(c=Math.pow(10,o)*i,a=Math.round(e/c),l=Math.round(t/c),a*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=s-o+1,l=new Array(a);if(r)if(i<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?th(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?th(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=Zue.exec(e))?new hr(t[1],t[2],t[3],1):(t=Jue.exec(e))?new hr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ede.exec(e))?th(t[1],t[2],t[3],t[4]):(t=tde.exec(e))?th(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nde.exec(e))?AM(t[1],t[2]/100,t[3]/100,1):(t=rde.exec(e))?AM(t[1],t[2]/100,t[3]/100,t[4]):IM.hasOwnProperty(e)?DM(IM[e]):e==="transparent"?new hr(NaN,NaN,NaN,0):null}function DM(e){return new hr(e>>16&255,e>>8&255,e&255,1)}function th(e,t,n,r){return r<=0&&(e=t=n=NaN),new hr(e,t,n,r)}function ide(e){return e instanceof ep||(e=Ui(e)),e?(e=e.rgb(),new hr(e.r,e.g,e.b,e.opacity)):new hr}function Sx(e,t,n,r){return arguments.length===1?ide(e):new hr(e,t,n,r??1)}function hr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lC(hr,Sx,Z3(ep,{brighter(e){return e=e==null?Wm:Math.pow(Wm,e),new hr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new hr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hr(Ra(this.r),Ra(this.g),Ra(this.b),Um(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:$M,formatHex:$M,formatHex8:ade,formatRgb:RM,toString:RM}));function $M(){return`#${Ca(this.r)}${Ca(this.g)}${Ca(this.b)}`}function ade(){return`#${Ca(this.r)}${Ca(this.g)}${Ca(this.b)}${Ca((isNaN(this.opacity)?1:this.opacity)*255)}`}function RM(){const e=Um(this.opacity);return`${e===1?"rgb(":"rgba("}${Ra(this.r)}, ${Ra(this.g)}, ${Ra(this.b)}${e===1?")":`, ${e})`}`}function Um(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ra(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ca(e){return e=Ra(e),(e<16?"0":"")+e.toString(16)}function AM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new No(e,t,n,r)}function J3(e){if(e instanceof No)return new No(e.h,e.s,e.l,e.opacity);if(e instanceof ep||(e=Ui(e)),!e)return new No;if(e instanceof No)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=NaN,a=s-o,l=(s+o)/2;return a?(t===s?i=(n-r)/a+(n0&&l<1?0:i,new No(i,a,l,e.opacity)}function lde(e,t,n,r){return arguments.length===1?J3(e):new No(e,t,n,r??1)}function No(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lC(No,lde,Z3(ep,{brighter(e){return e=e==null?Wm:Math.pow(Wm,e),new No(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new No(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 hr(pv(e>=240?e-240:e+120,o,r),pv(e,o,r),pv(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new No(OM(this.h),nh(this.s),nh(this.l),Um(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=Um(this.opacity);return`${e===1?"hsl(":"hsla("}${OM(this.h)}, ${nh(this.s)*100}%, ${nh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function OM(e){return e=(e||0)%360,e<0?e+360:e}function nh(e){return Math.max(0,Math.min(1,e||0))}function pv(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 cC=e=>()=>e;function cde(e,t){return function(n){return e+n*t}}function ude(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 dde(e){return(e=+e)==1?e4:function(t,n){return n-t?ude(t,n,e):cC(isNaN(t)?n:t)}}function e4(e,t){var n=t-e;return n?cde(e,n):cC(isNaN(e)?t:e)}const jM=function e(t){var n=dde(t);function r(o,s){var i=n((o=Sx(o)).r,(s=Sx(s)).r),a=n(o.g,s.g),l=n(o.b,s.b),c=e4(o.opacity,s.opacity);return function(u){return o.r=i(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function fde(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(s){for(o=0;on&&(s=t.slice(n,s),a[i]?a[i]+=s:a[++i]=s),(r=r[0])===(o=o[0])?a[i]?a[i]+=o:a[++i]=o:(a[++i]=null,l.push({i,x:gf(r,o)})),n=hv.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function wde(e,t,n){var r=e[0],o=e[1],s=t[0],i=t[1];return o2?Cde:wde,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?s:(l||(l=a(e.map(r),t,n)))(r(i(f)))}return d.invert=function(f){return i(o((c||(c=a(t,e.map(r),gf)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,xde),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=r4,u()},d.clamp=function(f){return arguments.length?(i=f?!0:fo,u()):i!==fo},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,m){return r=f,o=m,u()}}function o4(){return uC()(fo,fo)}function Sde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ym(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 Gc(e){return e=Ym(Math.abs(e)),e?e[1]:NaN}function kde(e,t){return function(n,r){for(var o=n.length,s=[],i=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),s.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[i=(i+1)%e.length];return s.reverse().join(t)}}function Pde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Mde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yf(e){if(!(t=Mde.exec(e)))throw new Error("invalid format: "+e);var t;return new dC({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]})}yf.prototype=dC.prototype;function dC(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+""}dC.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 Ide(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var s4;function Ede(e,t){var n=Ym(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(s4=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return s===i?r:s>i?r+new Array(s-i+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Ym(e,Math.max(0,t+s-1))[0]}function LM(e,t){var n=Ym(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 _M={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Sde,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)=>LM(e*100,t),r:LM,s:Ede,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function NM(e){return e}var zM=Array.prototype.map,BM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tde(e){var t=e.grouping===void 0||e.thousands===void 0?NM:kde(zM.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+"",s=e.numerals===void 0?NM:Pde(zM.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=yf(d);var f=d.fill,m=d.align,g=d.sign,y=d.symbol,x=d.zero,v=d.width,w=d.comma,b=d.precision,C=d.trim,k=d.type;k==="n"?(w=!0,k="g"):_M[k]||(b===void 0&&(b=12),C=!0,k="g"),(x||f==="0"&&m==="=")&&(x=!0,f="0",m="=");var M=y==="$"?n:y==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",T=y==="$"?r:/[%p]/.test(k)?i:"",E=_M[k],$=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(D){var j=M,F=T,A,R,I;if(k==="c")F=E(D)+F,D="";else{D=+D;var L=D<0||1/D<0;if(D=isNaN(D)?l:E(Math.abs(D),b),C&&(D=Ide(D)),L&&+D==0&&g!=="+"&&(L=!1),j=(L?g==="("?g:a:g==="-"||g==="("?"":g)+j,F=(k==="s"?BM[8+s4/3]:"")+F+(L&&g==="("?")":""),$){for(A=-1,R=D.length;++AI||I>57){F=(I===46?o+D.slice(A+1):D.slice(A))+F,D=D.slice(0,A);break}}}w&&!x&&(D=t(D,1/0));var O=j.length+D.length+F.length,_=O>1)+j+D+F+_.slice(O);break;default:D=_+j+D+F;break}return s(D)}return S.toString=function(){return d+""},S}function u(d,f){var m=c((d=yf(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Gc(f)/3)))*3,y=Math.pow(10,-g),x=BM[8+g/3];return function(v){return m(y*v)+x}}return{format:c,formatPrefix:u}}var rh,fC,i4;Dde({thousands:",",grouping:[3],currency:["$",""]});function Dde(e){return rh=Tde(e),fC=rh.format,i4=rh.formatPrefix,rh}function $de(e){return Math.max(0,-Gc(Math.abs(e)))}function Rde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gc(t)/3)))*3-Gc(Math.abs(e)))}function Ade(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Gc(t)-Gc(e))+1}function Ode(e,t,n,r){var o=Cx(e,t,n),s;switch(r=yf(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Rde(o,i))&&(r.precision=s),i4(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Ade(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=$de(o))&&(r.precision=s-(r.type==="%")*2);break}}return fC(r)}function pC(e){var t=e.domain;return e.ticks=function(n){var r=t();return bx(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Ode(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,s=r.length-1,i=r[o],a=r[s],l,c,u=10;for(a0;){if(c=wx(i,a,n),c===l)return r[o]=i,r[s]=a,t(r);if(c>0)i=Math.floor(i/c)*c,a=Math.ceil(a/c)*c;else if(c<0)i=Math.ceil(i*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function a4(){var e=o4();return e.copy=function(){return z0(e,a4())},oa.apply(e,arguments),pC(e)}function l4(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],s=e[r],i;return sMath.pow(e,t)}function Nde(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 GM(e){return(t,n)=>-e(-t,n)}function zde(e){const t=e(HM,VM),n=t.domain;let r=10,o,s;function i(){return o=Nde(r),s=_de(r),n()[0]<0?(o=GM(o),s=GM(s),e(jde,Fde)):e(HM,VM),t}return t.base=function(a){return arguments.length?(r=+a,i()):r},t.domain=function(a){return arguments.length?(n(a),i()):n()},t.ticks=a=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=m;++f)for(g=1;gu)break;v.push(y)}}else for(;f<=m;++f)for(g=r-1;g>=1;--g)if(y=f>0?g/s(-f):g*s(f),!(yu)break;v.push(y)}v.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=yf(l)).precision==null&&(l.trim=!0),l=fC(l)),a===1/0)return l;const c=Math.max(1,r*a/t.ticks().length);return u=>{let d=u/s(Math.round(o(u)));return d*rn(l4(n(),{floor:a=>s(Math.floor(o(a))),ceil:a=>s(Math.ceil(o(a)))})),t}function c4(){const e=zde(uC()).domain([1,10]);return e.copy=()=>z0(e,c4()).base(e.base()),oa.apply(e,arguments),e}function WM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Bde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Hde(e){return e<0?-e*e:e*e}function Vde(e){var t=e(fo,fo),n=1;function r(){return n===1?e(fo,fo):n===.5?e(Bde,Hde):e(WM(n),WM(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},pC(t)}function hC(){var e=Vde(uC());return e.copy=function(){return z0(e,hC()).exponent(e.exponent())},oa.apply(e,arguments),e}function Gde(){return hC.apply(null,arguments).exponent(.5)}function u4(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[X3(e,s,0,r)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var i=t.indexOf(s);return[e[i-1],e[i]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return u4().domain(e).range(t).unknown(n)},oa.apply(o,arguments)}const mv=new Date,gv=new Date;function xn(e,t,n,r){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const i=o(s),a=o.ceil(s);return s-i(t(s=new Date(+s),i==null?1:Math.floor(i)),s),o.range=(s,i,a)=>{const l=[];if(s=o.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let c;do l.push(c=new Date(+s)),t(s,a),e(s);while(cxn(i=>{if(i>=i)for(;e(i),!s(i);)i.setTime(i-1)},(i,a)=>{if(i>=i)if(a<0)for(;++a<=0;)for(;t(i,-1),!s(i););else for(;--a>=0;)for(;t(i,1),!s(i););}),n&&(o.count=(s,i)=>(mv.setTime(+s),gv.setTime(+i),e(mv),e(gv),Math.floor(n(mv,gv))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(r?i=>r(i)%s===0:i=>o.count(0,i)%s===0):o)),o}const Km=xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Km.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Km);Km.range;const Os=1e3,po=Os*60,js=po*60,Qs=js*24,mC=Qs*7,UM=Qs*30,yv=Qs*365,Sa=xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Os)},(e,t)=>(t-e)/Os,e=>e.getUTCSeconds());Sa.range;const gC=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Os)},(e,t)=>{e.setTime(+e+t*po)},(e,t)=>(t-e)/po,e=>e.getMinutes());gC.range;const yC=xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*po)},(e,t)=>(t-e)/po,e=>e.getUTCMinutes());yC.range;const vC=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Os-e.getMinutes()*po)},(e,t)=>{e.setTime(+e+t*js)},(e,t)=>(t-e)/js,e=>e.getHours());vC.range;const xC=xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*js)},(e,t)=>(t-e)/js,e=>e.getUTCHours());xC.range;const tp=xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*po)/Qs,e=>e.getDate()-1);tp.range;const B0=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qs,e=>e.getUTCDate()-1);B0.range;const d4=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qs,e=>Math.floor(e/Qs));d4.range;function il(e){return xn(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())*po)/mC)}const H0=il(0),qm=il(1),Wde=il(2),Ude=il(3),Wc=il(4),Yde=il(5),Kde=il(6);H0.range;qm.range;Wde.range;Ude.range;Wc.range;Yde.range;Kde.range;function al(e){return xn(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)/mC)}const V0=al(0),Xm=al(1),qde=al(2),Xde=al(3),Uc=al(4),Qde=al(5),Zde=al(6);V0.range;Xm.range;qde.range;Xde.range;Uc.range;Qde.range;Zde.range;const bC=xn(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());bC.range;const wC=xn(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());wC.range;const Zs=xn(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());Zs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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)});Zs.range;const Js=xn(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());Js.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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)});Js.range;function f4(e,t,n,r,o,s){const i=[[Sa,1,Os],[Sa,5,5*Os],[Sa,15,15*Os],[Sa,30,30*Os],[s,1,po],[s,5,5*po],[s,15,15*po],[s,30,30*po],[o,1,js],[o,3,3*js],[o,6,6*js],[o,12,12*js],[r,1,Qs],[r,2,2*Qs],[n,1,mC],[t,1,UM],[t,3,3*UM],[e,1,yv]];function a(c,u,d){const f=ux).right(i,f);if(m===i.length)return e.every(Cx(c/yv,u/yv,d));if(m===0)return Km.every(Math.max(Cx(c,u,d),1));const[g,y]=i[f/i[m-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(ne=xv(Gu(H.y,0,1)),oe=ne.getUTCDay(),ne=oe>4||oe===0?Xm.ceil(ne):Xm(ne),ne=B0.offset(ne,(H.V-1)*7),H.y=ne.getUTCFullYear(),H.m=ne.getUTCMonth(),H.d=ne.getUTCDate()+(H.w+6)%7):(ne=vv(Gu(H.y,0,1)),oe=ne.getDay(),ne=oe>4||oe===0?qm.ceil(ne):qm(ne),ne=tp.offset(ne,(H.V-1)*7),H.y=ne.getFullYear(),H.m=ne.getMonth(),H.d=ne.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),oe="Z"in H?xv(Gu(H.y,0,1)).getUTCDay():vv(Gu(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(oe+5)%7:H.w+H.U*7-(oe+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,xv(H)):vv(H)}}function E(q,G,ee,H){for(var Z=0,ne=G.length,oe=ee.length,re,ue;Z=oe)return-1;if(re=G.charCodeAt(Z++),re===37){if(re=G.charAt(Z++),ue=k[re in YM?G.charAt(Z++):re],!ue||(H=ue(q,ee,H))<0)return-1}else if(re!=ee.charCodeAt(H++))return-1}return H}function $(q,G,ee){var H=c.exec(G.slice(ee));return H?(q.p=u.get(H[0].toLowerCase()),ee+H[0].length):-1}function S(q,G,ee){var H=m.exec(G.slice(ee));return H?(q.w=g.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(q,G,ee){var H=d.exec(G.slice(ee));return H?(q.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function j(q,G,ee){var H=v.exec(G.slice(ee));return H?(q.m=w.get(H[0].toLowerCase()),ee+H[0].length):-1}function F(q,G,ee){var H=y.exec(G.slice(ee));return H?(q.m=x.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(q,G,ee){return E(q,t,G,ee)}function R(q,G,ee){return E(q,n,G,ee)}function I(q,G,ee){return E(q,r,G,ee)}function L(q){return i[q.getDay()]}function O(q){return s[q.getDay()]}function _(q){return l[q.getMonth()]}function N(q){return a[q.getMonth()]}function z(q){return o[+(q.getHours()>=12)]}function U(q){return 1+~~(q.getMonth()/3)}function J(q){return i[q.getUTCDay()]}function Y(q){return s[q.getUTCDay()]}function B(q){return l[q.getUTCMonth()]}function W(q){return a[q.getUTCMonth()]}function te(q){return o[+(q.getUTCHours()>=12)]}function X(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var G=M(q+="",b);return G.toString=function(){return q},G},parse:function(q){var G=T(q+="",!1);return G.toString=function(){return q},G},utcFormat:function(q){var G=M(q+="",C);return G.toString=function(){return q},G},utcParse:function(q){var G=T(q+="",!0);return G.toString=function(){return q},G}}}var YM={"-":"",_:" ",0:"0"},In=/^\s*\d+/,ofe=/^%/,sfe=/[\\^$*+?|[\]().{}]/g;function vt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",s=o.length;return r+(s[t.toLowerCase(),n]))}function afe(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lfe(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cfe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ufe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dfe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function KM(e,t,n){var r=In.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function qM(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ffe(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 pfe(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hfe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function XM(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function mfe(e,t,n){var r=In.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function QM(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gfe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function yfe(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vfe(e,t,n){var r=In.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xfe(e,t,n){var r=In.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bfe(e,t,n){var r=ofe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function wfe(e,t,n){var r=In.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Cfe(e,t,n){var r=In.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ZM(e,t){return vt(e.getDate(),t,2)}function Sfe(e,t){return vt(e.getHours(),t,2)}function kfe(e,t){return vt(e.getHours()%12||12,t,2)}function Pfe(e,t){return vt(1+tp.count(Zs(e),e),t,3)}function p4(e,t){return vt(e.getMilliseconds(),t,3)}function Mfe(e,t){return p4(e,t)+"000"}function Ife(e,t){return vt(e.getMonth()+1,t,2)}function Efe(e,t){return vt(e.getMinutes(),t,2)}function Tfe(e,t){return vt(e.getSeconds(),t,2)}function Dfe(e){var t=e.getDay();return t===0?7:t}function $fe(e,t){return vt(H0.count(Zs(e)-1,e),t,2)}function h4(e){var t=e.getDay();return t>=4||t===0?Wc(e):Wc.ceil(e)}function Rfe(e,t){return e=h4(e),vt(Wc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function Afe(e){return e.getDay()}function Ofe(e,t){return vt(qm.count(Zs(e)-1,e),t,2)}function jfe(e,t){return vt(e.getFullYear()%100,t,2)}function Ffe(e,t){return e=h4(e),vt(e.getFullYear()%100,t,2)}function Lfe(e,t){return vt(e.getFullYear()%1e4,t,4)}function _fe(e,t){var n=e.getDay();return e=n>=4||n===0?Wc(e):Wc.ceil(e),vt(e.getFullYear()%1e4,t,4)}function Nfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vt(t/60|0,"0",2)+vt(t%60,"0",2)}function JM(e,t){return vt(e.getUTCDate(),t,2)}function zfe(e,t){return vt(e.getUTCHours(),t,2)}function Bfe(e,t){return vt(e.getUTCHours()%12||12,t,2)}function Hfe(e,t){return vt(1+B0.count(Js(e),e),t,3)}function m4(e,t){return vt(e.getUTCMilliseconds(),t,3)}function Vfe(e,t){return m4(e,t)+"000"}function Gfe(e,t){return vt(e.getUTCMonth()+1,t,2)}function Wfe(e,t){return vt(e.getUTCMinutes(),t,2)}function Ufe(e,t){return vt(e.getUTCSeconds(),t,2)}function Yfe(e){var t=e.getUTCDay();return t===0?7:t}function Kfe(e,t){return vt(V0.count(Js(e)-1,e),t,2)}function g4(e){var t=e.getUTCDay();return t>=4||t===0?Uc(e):Uc.ceil(e)}function qfe(e,t){return e=g4(e),vt(Uc.count(Js(e),e)+(Js(e).getUTCDay()===4),t,2)}function Xfe(e){return e.getUTCDay()}function Qfe(e,t){return vt(Xm.count(Js(e)-1,e),t,2)}function Zfe(e,t){return vt(e.getUTCFullYear()%100,t,2)}function Jfe(e,t){return e=g4(e),vt(e.getUTCFullYear()%100,t,2)}function epe(e,t){return vt(e.getUTCFullYear()%1e4,t,4)}function tpe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Uc(e):Uc.ceil(e),vt(e.getUTCFullYear()%1e4,t,4)}function npe(){return"+0000"}function eI(){return"%"}function tI(e){return+e}function nI(e){return Math.floor(+e/1e3)}var Il,y4,v4;rpe({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 rpe(e){return Il=rfe(e),y4=Il.format,Il.parse,v4=Il.utcFormat,Il.utcParse,Il}function ope(e){return new Date(e)}function spe(e){return e instanceof Date?+e:+new Date(+e)}function CC(e,t,n,r,o,s,i,a,l,c){var u=o4(),d=u.invert,f=u.domain,m=c(".%L"),g=c(":%S"),y=c("%I:%M"),x=c("%I %p"),v=c("%a %d"),w=c("%b %d"),b=c("%B"),C=c("%Y");function k(M){return(l(M)n),e.colors).unknown(e.unknownColor??null)}function zh(e){return e.type==="ordinal"?Qm(e):dpe(e)}function qa(e){return e.bandwidth!==void 0}function SC(e){return typeof e=="number"&&!Number.isFinite(e)}function fpe(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:s}=e,i=n===void 0?999:Math.floor(Math.abs(s[1]-s[0])/n),a=t===void 0?2:Math.ceil(Math.abs(s[1]-s[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(i,Math.max(a,l))}const bv={start:0,extremities:0,end:1,middle:.5};function G0(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:i="middle"}=e;return h.useMemo(()=>{if(qa(t)){const c=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&c.filter(o)||typeof o=="object"&&o||c).map(f=>({value:f,formattedValue:(r==null?void 0:r(f,{location:"tick"}))??`${f}`,offset:t(f)-(t.step()-t.bandwidth())/2+bv[s]*t.step(),labelOffset:i==="tick"?0:t.step()*(bv[i]-bv[s])})),...s==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&c.filter(o)||typeof o=="object"&&o||c).map(d=>({value:d,formattedValue:(r==null?void 0:r(d,{location:"tick"}))??`${d}`,offset:t(d),labelOffset:0}))}return t.domain().some(SC)?[]:(typeof o=="object"?o:t.ticks(n)).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??t.tickFormat(n)(c),offset:t(c),labelOffset:0}))},[t,o,n,r,s,i])}function ppe(e,t,n){switch(e){case"log":return c4(t,n);case"pow":return hC(t,n);case"sqrt":return Gde(t,n);case"time":return x4(t,n);case"utc":return ipe(t,n);default:return a4(t,n)}}const wv=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,s=e[1]+(100-t[1])*n/r;return[o,s]},hpe=(e,t,n,r,o,s,i)=>{var m;const a=r[t],l=((m=s[t])==null?void 0:m.series)??{},[c,u]=(a==null?void 0:a({series:l,axis:n,axisIndex:o,isDefaultAxis:o===0,getFilters:i}))??[1/0,-1/0],[d,f]=e;return[Math.min(c,d),Math.max(u,f)]},mpe=(e,t,n,r,o)=>{const i=Object.keys(t).reduce((a,l)=>hpe(a,l,e,t,n,r,o),[1/0,-1/0]);return Number.isNaN(i[0])||Number.isNaN(i[1])?[1/0,-1/0]:i};function gpe(e,t,n){if(t==="rotation"){const{startAngle:o=0,endAngle:s=o+360}=n;return n.reverse?[Math.PI*o/180,Math.PI*s/180]:[Math.PI*s/180,Math.PI*o/180]}if(t==="radius"){const{minRadius:o=0,maxRadius:s=Math.min(e.width,e.height)/2}=n;return[o,s]}const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}const rI=e=>(e==null?void 0:e[0])instanceof Date;function oI(e,t){const n=x4(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const ype=.2,vpe=.1;function sI({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:r,axisDirection:o,zoomData:s,zoomOptions:i,getFilters:a}){const l={};return n.forEach((c,u)=>{const d=c,f=i==null?void 0:i[d.id],m=s==null?void 0:s.find(({axisId:A})=>A===d.id),g=m?[m.start,m.end]:[0,100],y=gpe(e,o,d),[x,v]=mpe(d,r,u,t,m===void 0&&!f?a:void 0),w=d.data??[];if(cpe(d)){const A=d.categoryGapRatio??ype,R=d.barGapRatio??vpe,I=o==="y"?[y[1],y[0]]:y,L=wv(I,g);if(l[d.id]=P({categoryGapRatio:A,barGapRatio:R},d,{data:w,scale:aC(d.data,L).paddingInner(A).paddingOuter(A/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Qm(P({values:d.data},d.colorMap)):zh(d.colorMap))}),rI(d.data)){const O=oI(d,I);l[d.id].valueFormatter=d.valueFormatter??O}}if(upe(d)){const A=o==="y"?[...y].reverse():y,R=wv(A,g);if(l[d.id]=P({},d,{data:w,scale:Xue(d.data,R),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Qm(P({values:d.data},d.colorMap)):zh(d.colorMap))}),rI(d.data)){const I=oI(d,A);l[d.id].valueFormatter=d.valueFormatter??I}}if(d.scaleType==="band"||d.scaleType==="point")return;const b=d.scaleType??"linear",C=d.domainLimit??"nice",k=[d.min??x,d.max??v];if(typeof C=="function"){const{min:A,max:R}=C(x,v);k[0]=A,k[1]=R}const M=fpe(P({},d,{range:y,domain:k})),T=M/((g[1]-g[0])/100),E=wv(y,g),$=ppe(b,k,E),S=C==="nice"?$.nice(M):$,[D,j]=S.domain(),F=[d.min??D,d.max??j];l[d.id]=P({},d,{data:w,scaleType:b,scale:S.domain(F),tickNumber:T,colorScale:d.colorMap&&zh(d.colorMap)})}),{axis:l,axisIds:n.map(({id:c})=>c)}}const W0="DEFAULT_X_AXIS_KEY",xpe="DEFAULT_Y_AXIS_KEY",bpe={top:50,bottom:50,left:50,right:50},wpe=(e,t,n)=>{const r=P({},bpe,n);return h.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},U0=h.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),w4=h.createContext({isInitialized:!1,data:{current:null}});function Cpe(e){const{width:t,height:n,margin:r,svgRef:o,children:s}=e,i=wpe(t,n,r),a=pt(),l=h.useCallback(({x:d,y:f},m)=>{if(m!=null&&m.targetElement&&(m!=null&&m.targetElement.closest("[data-drawing-container]")))return!0;const g=d>=i.left-1&&d<=i.left+i.width,y=f>=i.top-1&&f<=i.top+i.height;return(m==null?void 0:m.direction)==="x"?g:((m==null?void 0:m.direction)==="y"||g)&&y},[i]),c=h.useMemo(()=>P({chartId:a??""},i,{isPointInside:l}),[a,i,l]),u=h.useMemo(()=>({isInitialized:!0,data:o}),[o]);return p.jsx(w4.Provider,{value:u,children:p.jsx(U0.Provider,{value:c,children:s})})}function Cr(){const{left:e,top:t,width:n,height:r,bottom:o,right:s,isPointInside:i}=h.useContext(U0);return h.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:s,isPointInside:i}),[r,e,t,n,o,s,i])}const Spe=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function kpe(e,t,n=Spe){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Ppe=({series:e,colors:t,seriesFormatters:n,dataset:r})=>{const o={};e.forEach((i,a)=>{var u;const{id:l=`auto-generated-id-${a}`,type:c}=i;if(o[c]===void 0&&(o[c]={series:{},seriesOrder:[]}),((u=o[c])==null?void 0:u.series[l])!==void 0)throw new Error(`MUI X: series' id "${l}" is not unique.`);o[c].series[l]=P({id:l},kpe(i,a,t)),o[c].seriesOrder.push(l)});const s={};return Object.keys(n).forEach(i=>{var l;const a=o[i];a!==void 0&&(s[i]=((l=n[i])==null?void 0:l.call(n,a,r))??o[i])}),s},Mpe=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Ipe=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Epe=e=>e==="dark"?Ipe:Mpe,C4=h.createContext({isInitialized:!1,data:{}}),np=h.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}}),iI=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},S4=e=>{var l;const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n==null?void 0:n({currentAxisId:t.id,isDefaultAxis:r}),s=o?(l=t.data)==null?void 0:l.filter((c,u)=>o({x:null,y:null},u)):t.data,i=Math.min(...s??[]),a=Math.max(...s??[]);return[i,a]},k4=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:s}=t;return Object.keys(n).filter(i=>{const a=n[i].yAxisId??n[i].yAxisKey;return a===r.id||s&&a===void 0}).reduce((i,a)=>{const{stackedData:l}=n[a],c=o==null?void 0:o({currentAxisId:r.id,isDefaultAxis:s,seriesXAxisId:n[a].xAxisId??n[a].xAxisKey,seriesYAxisId:n[a].yAxisId??n[a].yAxisKey}),[u,d]=(l==null?void 0:l.reduce((f,m,g)=>c&&(!c(iI(m[0],e),g)||!c(iI(m[1],e),g))?f:[Math.min(...m,f[0]),Math.max(...m,f[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(u,i[0]),Math.max(d,i[1])]},[1/0,-1/0])},Tpe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?k4("x")(e):S4(e),Dpe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?S4(e):k4("y")(e),Cv={appearance:Y3,ascending:K3,descending:jue,insideOut:Fue,none:Vc,reverse:Lue},Sv={expand:Due,diverging:$ue,none:Hc,silhouette:Rue,wiggle:Aue},P4=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],s={};return n.forEach(i=>{const{stack:a,stackOrder:l,stackOffset:c}=t[i];a===void 0?o.push({ids:[i],stackingOrder:Cv.none,stackingOffset:Sv.none}):s[a]===void 0?(s[a]=o.length,o.push({ids:[i],stackingOrder:Cv[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:Sv[c??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[s[a]].ids.push(i),l!==void 0&&(o[s[a]].stackingOrder=Cv[l]),c!==void 0&&(o[s[a]].stackingOffset=Sv[c]))}),o};function M4(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const $pe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=P4(e),s=t??[];n.forEach(a=>{const l=r[a].data;if(l!==void 0)l.forEach((c,u)=>{s.length<=u?s.push({[a]:c}):s[u][a]=c});else if(t===void 0)throw new Error([`MUI X: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const i={};return o.forEach(a=>{const{ids:l,stackingOffset:c,stackingOrder:u}=a,d=U3().keys(l.map(f=>{const m=r[f].dataKey;return r[f].data===void 0&&m!==void 0?m:f})).value((f,m)=>f[m]??0).order(u).offset(c)(s);l.forEach((f,m)=>{const g=r[f].dataKey;i[f]=P({layout:"vertical"},r[f],{data:g?t.map(y=>{const x=y[g];return typeof x!="number"?0:x}):r[f].data,stackedData:d[m].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:M4(i,a=>a==null?"":a.toLocaleString())}},Rpe=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,s=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,i=r?t==null?void 0:t.data:n==null?void 0:n.data;return s?a=>{const l=e.data[a],c=l===null?e.color:s(l);return c===null?e.color:c}:o&&i?a=>{const l=i[a],c=l===null?e.color:o(l);return c===null?e.color:c}:()=>e.color},Ape={seriesType:"bar",seriesFormatter:$pe,colorProcessor:Rpe,xExtremumGetter:Tpe,yExtremumGetter:Dpe},Zm=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],Ope=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].xAxisId??t[s].xAxisKey;return i===n.id||i===void 0&&r}).reduce((s,i)=>{var c;const a=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),l=(c=t[i].data)==null?void 0:c.reduce((u,d,f)=>a&&!a(d,f)?u:Zm(u,[d.x,d.x]),[1/0,-1/0]);return Zm(s,l??[1/0,-1/0])},[1/0,-1/0])},jpe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].yAxisId??t[s].yAxisKey;return i===n.id||i===void 0&&r}).reduce((s,i)=>{var c;const a=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),l=(c=t[i].data)==null?void 0:c.reduce((u,d,f)=>a&&!a(d,f)?u:Zm(u,[d.y,d.y]),[1/0,-1/0]);return Zm(s,l??[1/0,-1/0])},[1/0,-1/0])},Fpe=({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([o,s])=>{const i=s==null?void 0:s.datasetKeys,a=["x","y","id"].filter(c=>typeof(i==null?void 0:i[c])!="string");if(s!=null&&s.datasetKeys&&a.length>0)throw new Error([`MUI X: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${a.map(c=>`"${c}"`).join(", ")} are missing.`].join(` -`));const l=i?(n==null?void 0:n.map(c=>({x:c[i.x],y:c[i.y],z:i.z&&c[i.z],id:c[i.id]})))??[]:s.data??[];return[o,P({},s,{data:l,valueFormatter:s.valueFormatter??(c=>`(${c.x}, ${c.y})`)})]})),seriesOrder:t}),Lpe=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,s=n==null?void 0:n.colorScale,i=t==null?void 0:t.colorScale;return o?a=>{var u,d;if(((u=r==null?void 0:r.data)==null?void 0:u[a])!==void 0){const f=o((d=r==null?void 0:r.data)==null?void 0:d[a]);if(f!==null)return f}const l=e.data[a],c=l===null?e.color:o(l.z);return c===null?e.color:c}:s?a=>{const l=e.data[a],c=l===null?e.color:s(l.y);return c===null?e.color:c}:i?a=>{const l=e.data[a],c=l===null?e.color:i(l.x);return c===null?e.color:c}:()=>e.color},_pe={seriesType:"scatter",seriesFormatter:Fpe,colorProcessor:Lpe,xExtremumGetter:Ope,yExtremumGetter:jpe},Npe=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function zpe(e,t,n){return t.reduce((r,o,s)=>{const[i,a]=e(o);return n&&(!n({y:i,x:null},s)||!n({y:a,x:null},s))?r:[Math.min(i,a,r[0]),Math.max(i,a,r[1])]},[1/0,-1/0])}const Bpe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].yAxisId??t[s].yAxisKey;return i===n.id||r&&i===void 0}).reduce((s,i)=>{const{area:a,stackedData:l}=t[i],c=a!==void 0,u=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),d=c&&n.scaleType!=="log"&&typeof t[i].baseline!="string"?y=>y:y=>[y[1],y[1]],f=zpe(d,l,u),[m,g]=f;return[Math.min(m,s[0]),Math.max(g,s[1])]},[1/0,-1/0])},Hpe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=P4(P({},e,{defaultStrategy:{stackOffset:"none"}})),s=t??[];n.forEach(a=>{const l=r[a].data;l!==void 0&&l.forEach((c,u)=>{s.length<=u?s.push({[a]:c}):s[u][a]=c})});const i={};return o.forEach(a=>{const{ids:l,stackingOrder:c,stackingOffset:u}=a,d=U3().keys(l.map(f=>{const m=r[f].dataKey;return r[f].data===void 0&&m!==void 0?m:f})).value((f,m)=>f[m]??0).order(c).offset(u)(s);l.forEach((f,m)=>{const g=r[f].dataKey;i[f]=P({},r[f],{data:g?t.map(y=>{const x=y[g];return typeof x!="number"?null:x}):r[f].data,stackedData:d[m].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:M4(i,a=>a==null?"":a.toLocaleString())}},kC=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?s=>{const i=e.data[s],a=i===null?e.color:r(i);return a===null?e.color:a}:o?s=>{var l;const i=(l=t.data)==null?void 0:l[s],a=i===null?e.color:o(i);return a===null?e.color:a}:()=>e.color},Vpe={seriesType:"line",colorProcessor:kC,seriesFormatter:Hpe,xExtremumGetter:Npe,yExtremumGetter:Bpe};function Hs(e,t){return typeof e=="function"?e(t):e}const Gpe=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Wpe=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const s=aue().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(Gpe(n[o].sortingValues??"none"))(n[o].data.map(i=>i.value));r[o]=P({valueFormatter:i=>i.value.toLocaleString()},n[o],{data:n[o].data.map((i,a)=>P({},i,{id:i.id??`auto-generated-pie-id-${o}-${a}`},s[a])).map((i,a)=>{var l,c;return P({},i,{formattedValue:((c=(l=n[o]).valueFormatter)==null?void 0:c.call(l,P({},i,{label:Hs(i.label,"arc")}),{dataIndex:a}))??i.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Upe=e=>t=>e.data[t].color,Ype={seriesType:"pie",colorProcessor:Upe,seriesFormatter:Wpe},Kpe=[Ape,_pe,Vpe,Ype];function qpe(e){const t=e??Kpe,n={},r={},o={},s={},i={},a={};for(let l=0;l({isInitialized:!0,data:qpe(n)}),[n]);return p.jsx(np.Provider,{value:r,children:t})}function I4(e){const{isInitialized:t,data:n}=h.useContext(np);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return n.colorProcessors}function Qpe(e){const{isInitialized:t,data:n}=h.useContext(np);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return n.seriesFormatters}function Zpe(e){const{isInitialized:t,data:n}=h.useContext(np);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return n.xExtremumGetters}function Jpe(e){const{isInitialized:t,data:n}=h.useContext(np);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return n.yExtremumGetters}function ehe(e){const{series:t,dataset:n,colors:r=Epe,children:o}=e,s=Qpe(),i=Mn(),a=h.useMemo(()=>({isInitialized:!0,data:Ppe({series:t,colors:typeof r=="function"?r(i.palette.mode):r,seriesFormatters:s,dataset:n})}),[t,r,i.palette.mode,s,n]);return p.jsx(C4.Provider,{value:a,children:o})}function sa(){const{isInitialized:e,data:t}=h.useContext(C4);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return t}function Y0(){const e=sa();return h.useMemo(()=>e.line,[e.line])}const E4=h.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});function the(e){const{xAxis:t,yAxis:n,children:r}=e,o=sa(),s=Cr(),i=Zpe(),a=Jpe(),l=h.useMemo(()=>sI({drawingArea:s,formattedSeries:o,axis:t,extremumGetters:i,axisDirection:"x"}),[s,o,t,i]),c=h.useMemo(()=>sI({drawingArea:s,formattedSeries:o,axis:n,extremumGetters:a,axisDirection:"y"}),[s,o,n,a]),u=h.useMemo(()=>({isInitialized:!0,data:{xAxis:l.axis,yAxis:c.axis,xAxisIds:l.axisIds,yAxisIds:c.axisIds}}),[l,c]);return p.jsx(E4.Provider,{value:u,children:r})}const Sr=()=>{const{data:e}=h.useContext(E4);return e},li=h.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),nhe=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:P({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return P({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:P({},e,{axis:t.data});default:return e}};function rhe(e){const{children:t}=e,[n,r]=h.useReducer(nhe,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=h.useMemo(()=>P({},n,{dispatch:r}),[n]);return p.jsx(li.Provider,{value:o,children:t})}const T4=h.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}}),ohe=(e,t)=>n=>e?e.fade==="series"?n.seriesId===(t==null?void 0:t.seriesId)&&n.dataIndex!==(t==null?void 0:t.dataIndex):e.fade==="global"?n.seriesId!==(t==null?void 0:t.seriesId)||n.dataIndex!==(t==null?void 0:t.dataIndex):!1:!1,she=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===(t==null?void 0:t.seriesId):e.highlight==="item"?n.dataIndex===(t==null?void 0:t.dataIndex)&&n.seriesId===(t==null?void 0:t.seriesId):!1:!1,ihe=["highlighted","faded"],ahe=e=>{const t=e??{},{highlighted:n,faded:r}=t,o=ce(t,ihe);return P({highlight:n,fade:r},o)};function lhe({children:e,highlightedItem:t,onHighlightChange:n}){const[r,o]=On({controlled:t,default:null,name:"HighlightedProvider",state:"highlightedItem"}),s=sa(),i=h.useMemo(()=>{const c=new Map;return Object.keys(s).forEach(u=>{const d=s[u];Object.keys((d==null?void 0:d.series)??{}).forEach(f=>{const m=d==null?void 0:d.series[f];c.set(f,ahe(m==null?void 0:m.highlightScope))})}),c},[s]),a=r&&r.seriesId?i.get(r.seriesId)??void 0:void 0,l=h.useMemo(()=>({isInitialized:!0,data:{highlightScope:a,highlightedItem:r,setHighlighted:c=>{o(c),n==null||n(c)},clearHighlighted:()=>{o(null),n==null||n(null)},isHighlighted:she(a,r),isFaded:ohe(a,r)}}),[r,a,o,n]);return p.jsx(T4.Provider,{value:l,children:e})}function D4(){const{isInitialized:e,data:t}=h.useContext(T4);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return t}function K0(e){const t=D4();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e),r=!n&&t.isFaded(e);return{isHighlighted:n,isFaded:r}}const PC=h.createContext({zAxis:{},zAxisIds:[]});function che(e){const{zAxis:t,dataset:n,children:r}=e,o=h.useMemo(()=>t==null?void 0:t.map(i=>{const a=i.dataKey;if(a===void 0||i.data!==void 0)return i;if(n===void 0)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return P({},i,{data:n.map(l=>l[a])})}),[t,n]),s=h.useMemo(()=>{const i=(o==null?void 0:o.map((l,c)=>P({id:`defaultized-z-axis-${c}`},l)))??[],a={};return i.forEach(l=>{a[l.id]=P({},l,{colorScale:l.colorMap&&(l.colorMap.type==="ordinal"&&l.data?Qm(P({values:l.data},l.colorMap)):zh(l.colorMap.type==="continuous"?P({min:l.min,max:l.max},l.colorMap):l.colorMap))})}),{zAxis:a,zAxisIds:i.map(({id:l})=>l)}},[o]);return p.jsx(PC.Provider,{value:s,children:r})}const q0=e=>{const{dispatch:t}=h.useContext(li),{setHighlighted:n,clearHighlighted:r}=D4();return s=>({onPointerEnter:()=>{t({type:"enterItem",data:s}),n({seriesId:s.seriesId,dataIndex:s.dataIndex})},onPointerLeave:c=>{c.currentTarget.releasePointerCapture(c.pointerId),t({type:"leaveItem",data:s}),r()},onPointerDown:c=>{c.currentTarget.hasPointerCapture(c.pointerId)&&c.currentTarget.releasePointerCapture(c.pointerId)}})};var MC=op(),rt=e=>rp(e,MC),IC=op();rt.write=e=>rp(e,IC);var X0=op();rt.onStart=e=>rp(e,X0);var EC=op();rt.onFrame=e=>rp(e,EC);var TC=op();rt.onFinish=e=>rp(e,TC);var xc=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const s=xc.findIndex(i=>i.cancel==r);~s&&xc.splice(s,1),Ti-=~s?1:0},o={time:n,handler:e,cancel:r};return xc.splice($4(n),0,o),Ti+=1,R4(),o};var $4=e=>~(~xc.findIndex(t=>t.time>e)||~xc.length);rt.cancel=e=>{X0.delete(e),EC.delete(e),TC.delete(e),MC.delete(e),IC.delete(e)};rt.sync=e=>{Mx=!0,rt.batchedUpdates(e),Mx=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,rt.onStart(n)}return r.handler=e,r.cancel=()=>{X0.delete(n),t=null},r};var DC=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>DC=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O4()};var Ei=-1,Ti=0,Mx=!1;function rp(e,t){Mx?(t.delete(e),e(0)):(t.add(e),R4())}function R4(){Ei<0&&(Ei=0,rt.frameLoop!=="demand"&&DC(A4))}function uhe(){Ei=-1}function A4(){~Ei&&(DC(A4),rt.batchedUpdates(O4))}function O4(){const e=Ei;Ei=rt.now();const t=$4(Ei);if(t&&(j4(xc.splice(0,t),n=>n.handler()),Ti-=t),!Ti){uhe();return}X0.flush(),MC.flush(e?Math.min(64,Ei-e):16.667),EC.flush(),IC.flush(),TC.flush()}function op(){let e=new Set,t=e;return{add(n){Ti+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Ti-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Ti-=t.size,j4(t,r=>r(n)&&e.add(r)),Ti+=e.size,t=e)}}}function j4(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var dhe=Object.defineProperty,fhe=(e,t)=>{for(var n in t)dhe(e,n,{get:t[n],enumerable:!0})},ko={};fhe(ko,{assign:()=>hhe,colors:()=>Ni,createStringInterpolator:()=>RC,skipAnimation:()=>L4,to:()=>F4,willAdvance:()=>AC});function Ix(){}var phe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ce={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ts(e,t){if(Ce.arr(e)){if(!Ce.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Cs(e,t,n){if(Ce.arr(e)){for(let r=0;rCe.und(e)?[]:Ce.arr(e)?e:[e];function Ed(e,t){if(e.size){const n=Array.from(e);e.clear(),Ze(n,t)}}var ad=(e,...t)=>Ed(e,n=>n(...t)),$C=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),RC,F4,Ni=null,L4=!1,AC=Ix,hhe=e=>{e.to&&(F4=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Ni=e.colors),e.skipAnimation!=null&&(L4=e.skipAnimation),e.createStringInterpolator&&(RC=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(AC=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},Td=new Set,lo=[],kv=[],Jm=0,Q0={get idle(){return!Td.size&&!lo.length},start(e){Jm>e.priority?(Td.add(e),rt.onStart(mhe)):(_4(e),rt(Ex))},advance:Ex,sort(e){if(Jm)rt.onFrame(()=>Q0.sort(e));else{const t=lo.indexOf(e);~t&&(lo.splice(t,1),N4(e))}},clear(){lo=[],Td.clear()}};function mhe(){Td.forEach(_4),Td.clear(),rt(Ex)}function _4(e){lo.includes(e)||N4(e)}function N4(e){lo.splice(ghe(lo,t=>t.priority>e.priority),0,e)}function Ex(e){const t=kv;for(let n=0;n0}function ghe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var yhe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},zo="[-+]?\\d*\\.?\\d+",eg=zo+"%";function Z0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var vhe=new RegExp("rgb"+Z0(zo,zo,zo)),xhe=new RegExp("rgba"+Z0(zo,zo,zo,zo)),bhe=new RegExp("hsl"+Z0(zo,eg,eg)),whe=new RegExp("hsla"+Z0(zo,eg,eg,zo)),Che=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,She=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,khe=/^#([0-9a-fA-F]{6})$/,Phe=/^#([0-9a-fA-F]{8})$/;function Mhe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=khe.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ni&&Ni[e]!==void 0?Ni[e]:(t=vhe.exec(e))?(El(t[1])<<24|El(t[2])<<16|El(t[3])<<8|255)>>>0:(t=xhe.exec(e))?(El(t[1])<<24|El(t[2])<<16|El(t[3])<<8|cI(t[4]))>>>0:(t=Che.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Phe.exec(e))?parseInt(t[1],16)>>>0:(t=She.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=bhe.exec(e))?(aI(lI(t[1]),oh(t[2]),oh(t[3]))|255)>>>0:(t=whe.exec(e))?(aI(lI(t[1]),oh(t[2]),oh(t[3]))|cI(t[4]))>>>0:null}function Pv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aI(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,s=Pv(o,r,e+1/3),i=Pv(o,r,e),a=Pv(o,r,e-1/3);return Math.round(s*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}function El(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function lI(e){return(parseFloat(e)%360+360)%360/360}function cI(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oh(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function uI(e){let t=Mhe(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${s})`}var vf=(e,t,n)=>{if(Ce.fun(e))return e;if(Ce.arr(e))return vf({range:e,output:t,extrapolate:n});if(Ce.str(e.output[0]))return RC(e);const r=e,o=r.output,s=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=Ehe(c,s);return Ihe(c,s[u],s[u+1],o[u],o[u+1],l,i,a,r.map)}};function Ihe(e,t,n,r,o,s,i,a,l){let c=l?l(e):e;if(cn){if(a==="identity")return c;a==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=s(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function Ehe(e,t){for(var n=1;n=e);++n);return n-1}var The={linear:e=>e},xf=Symbol.for("FluidValue.get"),Yc=Symbol.for("FluidValue.observers"),ao=e=>!!(e&&e[xf]),lr=e=>e&&e[xf]?e[xf]():e,dI=e=>e[Yc]||null;function Dhe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function bf(e,t){const n=e[Yc];n&&n.forEach(r=>{Dhe(r,t)})}var z4=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");$he(this,e)}},$he=(e,t)=>B4(e,xf,t);function yu(e,t){if(e[xf]){let n=e[Yc];n||B4(e,Yc,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function wf(e,t){const n=e[Yc];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yc]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var B4=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Bh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Rhe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,fI=new RegExp(`(${Bh.source})(%|[a-z]+)`,"i"),Ahe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,J0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,H4=e=>{const[t,n]=Ohe(e);if(!t||$C())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&J0.test(n))return H4(n);if(n)return n}return e},Ohe=e=>{const t=J0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Mv,jhe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,V4=e=>{Mv||(Mv=Ni?new RegExp(`(${Object.keys(Ni).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>lr(s).replace(J0,H4).replace(Rhe,uI).replace(Mv,uI)),n=t.map(s=>s.match(Bh).map(Number)),o=n[0].map((s,i)=>n.map(a=>{if(!(i in a))throw Error('The arity of each "output" value must be equal');return a[i]})).map(s=>vf({...e,output:s}));return s=>{var l;const i=!fI.test(t[0])&&((l=t.find(c=>fI.test(c)))==null?void 0:l.replace(Bh,""));let a=0;return t[0].replace(Bh,()=>`${o[a++](s)}${i||""}`).replace(Ahe,jhe)}},OC="react-spring: ",G4=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${OC}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Fhe=G4(console.warn);function Lhe(){Fhe(`${OC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var _he=G4(console.warn);function Nhe(){_he(`${OC}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ey(e){return Ce.str(e)&&(e[0]=="#"||/\d/.test(e)||!$C()&&J0.test(e)||e in(Ni||{}))}var Di=$C()?h.useEffect:h.useLayoutEffect,zhe=()=>{const e=h.useRef(!1);return Di(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function jC(){const e=h.useState()[1],t=zhe();return()=>{t.current&&e(Math.random())}}function Bhe(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),o=r.current;let s=o;return s?t&&s.inputs&&Hhe(t,s.inputs)||(s={inputs:t,result:e()}):s=n,h.useEffect(()=>{r.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Hhe(e,t){if(e.length!==t.length)return!1;for(let n=0;nh.useEffect(e,Vhe),Vhe=[];function Tx(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Cf=Symbol.for("Animated:node"),Ghe=e=>!!e&&e[Cf]===e,ts=e=>e&&e[Cf],LC=(e,t)=>phe(e,Cf,t),ty=e=>e&&e[Cf]&&e[Cf].getPayload(),W4=class{constructor(){LC(this,this)}getPayload(){return this.payload||[]}},sp=class extends W4{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ce.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new sp(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ce.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ce.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sf=class extends sp{constructor(e){super(0),this._string=null,this._toString=vf({output:[e,e]})}static create(e){return new Sf(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ce.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=vf({output:[this.getValue(),e]})),this._value=0,super.reset()}},tg={dependencies:null},ny=class extends W4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Cs(this.source,(n,r)=>{Ghe(n)?t[r]=n.getValue(e):ao(n)?t[r]=lr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ze(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Cs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){tg.dependencies&&ao(e)&&tg.dependencies.add(e);const t=ty(e);t&&Ze(t,n=>this.add(n))}},U4=class extends ny{constructor(e){super(e)}static create(e){return new U4(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Whe)),!0)}};function Whe(e){return(ey(e)?Sf:sp).create(e)}function Dx(e){const t=ts(e);return t?t.constructor:Ce.arr(e)?U4:ey(e)?Sf:sp}var pI=(e,t)=>{const n=!Ce.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,o)=>{const s=h.useRef(null),i=n&&h.useCallback(g=>{s.current=Khe(o,g)},[o]),[a,l]=Yhe(r,t),c=jC(),u=()=>{const g=s.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&c()},d=new Uhe(u,l),f=h.useRef();Di(()=>(f.current=d,Ze(l,g=>yu(g,d)),()=>{f.current&&(Ze(f.current.deps,g=>wf(g,f.current)),rt.cancel(f.current.update))})),h.useEffect(u,[]),FC(()=>()=>{const g=f.current;Ze(g.deps,y=>wf(y,g))});const m=t.getComponentProps(a.getValue());return h.createElement(e,{...m,ref:i})})},Uhe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function Yhe(e,t){const n=new Set;return tg.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ny(e),tg.dependencies=null,[e,n]}function Khe(e,t){return e&&(Ce.fun(e)?e(t):e.current=t),t}var hI=Symbol.for("AnimatedComponent"),qhe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new ny(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=i=>{const a=mI(i)||"Anonymous";return Ce.str(i)?i=s[i]||(s[i]=pI(i,o)):i=i[hI]||(i[hI]=pI(i,o)),i.displayName=`Animated(${a})`,i};return Cs(e,(i,a)=>{Ce.arr(e)&&(a=mI(i)),s[a]=s(i)}),{animated:s}},mI=e=>Ce.str(e)?e:e&&Ce.str(e.displayName)?e.displayName:Ce.fun(e)&&e.name||null;function cr(e,...t){return Ce.fun(e)?e(...t):e}var Dd=(e,t)=>e===!0||!!(t&&e&&(Ce.fun(e)?e(t):er(e).includes(t))),Y4=(e,t)=>Ce.obj(e)?t&&e[t]:e,K4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Xhe=e=>e,ry=(e,t=Xhe)=>{let n=Qhe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const s=t(e[o],o);Ce.und(s)||(r[o]=s)}return r},Qhe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Zhe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Jhe(e){const t={};let n=0;if(Cs(e,(r,o)=>{Zhe[o]||(t[o]=r,n++)}),n)return t}function _C(e){const t=Jhe(e);if(t){const n={to:t};return Cs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function kf(e){return e=lr(e),Ce.arr(e)?e.map(kf):ey(e)?ko.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function q4(e){for(const t in e)return!0;return!1}function $x(e){return Ce.fun(e)||Ce.arr(e)&&Ce.obj(e[0])}function Rx(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function X4(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var eme={default:{tension:170,friction:26}},Ax={...eme.default,mass:1,damping:1,easing:The.linear,clamp:!1},tme=class{constructor(){this.velocity=0,Object.assign(this,Ax)}};function nme(e,t,n){n&&(n={...n},gI(n,t),t={...n,...t}),gI(e,t),Object.assign(e,t);for(const i in Ax)e[i]==null&&(e[i]=Ax[i]);let{frequency:r,damping:o}=e;const{mass:s}=e;return Ce.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*o*s/r),e}function gI(e,t){if(!Ce.und(t.decay))e.duration=void 0;else{const n=!Ce.und(t.tension)||!Ce.und(t.friction);(n||!Ce.und(t.frequency)||!Ce.und(t.damping)||!Ce.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var yI=[],rme=class{constructor(){this.changed=!1,this.values=yI,this.toValues=null,this.fromValues=yI,this.config=new tme,this.immediate=!1}};function Q4(e,{key:t,props:n,defaultProps:r,state:o,actions:s}){return new Promise((i,a)=>{let l,c,u=Dd(n.cancel??(r==null?void 0:r.cancel),t);if(u)m();else{Ce.und(n.pause)||(o.paused=Dd(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=o.paused||Dd(g,t)),l=cr(n.delay||0,t),g?(o.resumeQueue.add(f),s.pause()):(s.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(c),c.cancel(),l=c.time-rt.now()}function f(){l>0&&!ko.skipAnimation?(o.delayed=!0,c=rt.setTimeout(m,l),o.pauseQueue.add(d),o.timeouts.add(c)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{s.start({...n,callId:e,cancel:u},i)}catch(g){a(g)}}})}var NC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?bc(e.get()):t.every(n=>n.noop)?Z4(e.get()):Lo(e.get(),t.every(n=>n.finished)),Z4=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Lo=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),bc=e=>({value:e,cancelled:!0,finished:!1});function J4(e,t,n,r){const{callId:o,parentId:s,onRest:i}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=ry(t,(x,v)=>v==="onRest"?void 0:x);let u,d;const f=new Promise((x,v)=>(u=x,d=v)),m=x=>{const v=o<=(n.cancelId||0)&&bc(r)||o!==n.asyncId&&Lo(r,!1);if(v)throw x.result=v,d(x),x},g=(x,v)=>{const w=new vI,b=new xI;return(async()=>{if(ko.skipAnimation)throw Pf(n),b.result=Lo(r,!1),d(b),b;m(w);const C=Ce.obj(x)?{...x}:{...v,to:x};C.parentId=o,Cs(c,(M,T)=>{Ce.und(C[T])&&(C[T]=M)});const k=await r.start(C);return m(w),n.paused&&await new Promise(M=>{n.resumeQueue.add(M)}),k})()};let y;if(ko.skipAnimation)return Pf(n),Lo(r,!1);try{let x;Ce.arr(e)?x=(async v=>{for(const w of v)await g(w)})(e):x=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([x.then(u),f]),y=Lo(r.get(),!0,!1)}catch(x){if(x instanceof vI)y=x.result;else if(x instanceof xI)y=x.result;else throw x}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return Ce.fun(i)&&rt.batchedUpdates(()=>{i(y,r,r.item)}),y})()}function Pf(e,t){Ed(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var vI=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xI=class extends Error{constructor(){super("SkipAnimationSignal")}},Ox=e=>e instanceof zC,ome=1,zC=class extends z4{constructor(){super(...arguments),this.id=ome++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ts(this);return e&&e.getValue()}to(...e){return ko.to(this,e)}interpolate(...e){return Lhe(),ko.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){bf(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Q0.sort(this),bf(this,{type:"priority",parent:this,priority:e})}},Xa=Symbol.for("SpringPhase"),eA=1,jx=2,Fx=4,Iv=e=>(e[Xa]&eA)>0,hi=e=>(e[Xa]&jx)>0,Yu=e=>(e[Xa]&Fx)>0,bI=(e,t)=>t?e[Xa]|=jx|eA:e[Xa]&=~jx,wI=(e,t)=>t?e[Xa]|=Fx:e[Xa]&=~Fx,sme=class extends zC{constructor(e,t){if(super(),this.animation=new rme,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ce.und(e)||!Ce.und(t)){const n=Ce.obj(e)?{...e}:{...t,from:e};Ce.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hi(this)||this._state.asyncTo)||Yu(this)}get goal(){return lr(this.animation.to)}get velocity(){const e=ts(this);return e instanceof sp?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Iv(this)}get isAnimating(){return hi(this)}get isPaused(){return Yu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:s}=r,i=ty(r.to);!i&&ao(r.to)&&(o=er(lr(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Sf?1:i?i[u].lastPosition:o[u];let f=r.immediate,m=d;if(!f){if(m=c.lastPosition,s.tension<=0){c.done=!0;return}let g=c.elapsedTime+=e;const y=r.fromValues[u],x=c.v0!=null?c.v0:c.v0=Ce.arr(s.velocity)?s.velocity[u]:s.velocity;let v;const w=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(Ce.und(s.duration))if(s.decay){const b=s.decay===!0?.998:s.decay,C=Math.exp(-(1-b)*g);m=y+x/(1-b)*(1-C),f=Math.abs(c.lastPosition-m)<=w,v=x*C}else{v=c.lastVelocity==null?x:c.lastVelocity;const b=s.restVelocity||w/10,C=s.clamp?0:s.bounce,k=!Ce.und(C),M=y==d?c.v0>0:yb,!(!T&&(f=Math.abs(d-m)<=w,f)));++D){k&&(E=m==d||m>d==M,E&&(v=-v*C,m=d));const j=-s.tension*1e-6*(m-d),F=-s.friction*.001*v,A=(j+F)/s.mass;v=v+A*$,m=m+v*$}}else{let b=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,c.durationProgress>0&&(c.elapsedTime=s.duration*c.durationProgress,g=c.elapsedTime+=e)),b=(s.progress||0)+g/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),m=y+s.easing(b)*(d-y),v=(m-c.lastPosition)/e,f=b==1}c.lastVelocity=v,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),f=!0)}i&&!i[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(m,s.round)&&(n=!0)});const a=ts(this),l=a.getValue();if(t){const c=lr(r.to);(l!==c||n)&&!s.decay?(a.setValue(c),this._onChange(c)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hi(this)){const{to:e,config:t}=this.animation;rt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ce.und(e)?(n=this.queue||[],this.queue=[]):n=[Ce.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>NC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Pf(this._state,e&&this._lastCallId),rt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ce.obj(n)?n[t]:n,(n==null||$x(n))&&(n=void 0),r=Ce.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Iv(this)||(e.reverse&&([n,r]=[r,n]),r=lr(r),Ce.und(r)?ts(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ry(e,(i,a)=>/^on/.test(a)?Y4(i,n):i)),SI(this,e,"onProps"),qu(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Q4(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{Yu(this)||(wI(this,!0),ad(s.pauseQueue),qu(this,"onPause",Lo(this,Ku(this,this.animation.to)),this))},resume:()=>{Yu(this)&&(wI(this,!1),hi(this)&&this._resume(),ad(s.resumeQueue),qu(this,"onResume",Lo(this,Ku(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){const a=tA(e);if(a)return this._update(a,!0)}return i})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(bc(this));const r=!Ce.und(e.to),o=!Ce.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(bc(this));const{key:s,defaultProps:i,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=e;o&&!r&&(!t.default||Ce.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!Ts(d,c);f&&(a.from=d),d=lr(d);const m=!Ts(u,l);m&&this._focus(u);const g=$x(t.to),{config:y}=a,{decay:x,velocity:v}=y;(r||o)&&(y.velocity=0),t.config&&!g&&nme(y,cr(t.config,s),t.config!==i.config?cr(i.config,s):void 0);let w=ts(this);if(!w||Ce.und(u))return n(Lo(this,!0));const b=Ce.und(t.reset)?o&&!t.default:!Ce.und(d)&&Dd(t.reset,s),C=b?d:this.get(),k=kf(u),M=Ce.num(k)||Ce.arr(k)||ey(k),T=!g&&(!M||Dd(i.immediate||t.immediate,s));if(m){const D=Dx(u);if(D!==w.constructor)if(T)w=this._set(k);else throw Error(`Cannot animate between ${w.constructor.name} and ${D.name}, as the "to" prop suggests`)}const E=w.constructor;let $=ao(u),S=!1;if(!$){const D=b||!Iv(this)&&f;(m||D)&&(S=Ts(kf(C),k),$=!S),(!Ts(a.immediate,T)&&!T||!Ts(y.decay,x)||!Ts(y.velocity,v))&&($=!0)}if(S&&hi(this)&&(a.changed&&!b?$=!0:$||this._stop(l)),!g&&(($||ao(l))&&(a.values=w.getPayload(),a.toValues=ao(u)?null:E==Sf?[1]:er(k)),a.immediate!=T&&(a.immediate=T,!T&&!b&&this._set(l)),$)){const{onRest:D}=a;Ze(ame,F=>SI(this,t,F));const j=Lo(this,Ku(this,l));ad(this._pendingCalls,j),this._pendingCalls.add(n),a.changed&&rt.batchedUpdates(()=>{var F;a.changed=!b,D==null||D(j,this),b?cr(i.onRest,j):(F=a.onStart)==null||F.call(a,j,this)})}b&&this._set(C),g?n(J4(t.to,t,this._state,this)):$?this._start():hi(this)&&!m?this._pendingCalls.add(n):n(Z4(C))}_focus(e){const t=this.animation;e!==t.to&&(dI(this)&&this._detach(),t.to=e,dI(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ao(t)&&(yu(t,this),Ox(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ao(e)&&wf(e,this)}_set(e,t=!0){const n=lr(e);if(!Ce.und(n)){const r=ts(this);if(!r||!Ts(n,r.getValue())){const o=Dx(n);!r||r.constructor!=o?LC(this,o.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return ts(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qu(this,"onStart",Lo(this,Ku(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),cr(this.animation.onChange,e,this)),cr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ts(this).reset(lr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hi(this)||(bI(this,!0),Yu(this)||this._resume())}_resume(){ko.skipAnimation?this.finish():Q0.start(this)}_stop(e,t){if(hi(this)){bI(this,!1);const n=this.animation;Ze(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bf(this,{type:"idle",parent:this});const r=t?bc(this.get()):Lo(this.get(),Ku(this,e??n.to));ad(this._pendingCalls,r),n.changed&&(n.changed=!1,qu(this,"onRest",r,this))}}};function Ku(e,t){const n=kf(t),r=kf(e.get());return Ts(r,n)}function tA(e,t=e.loop,n=e.to){const r=cr(t);if(r){const o=r!==!0&&_C(r),s=(o||e).reverse,i=!o||o.reset;return Mf({...e,loop:t,default:!1,pause:void 0,to:!s||$x(n)?n:void 0,from:i?e.from:void 0,reset:i,...o})}}function Mf(e){const{to:t,from:n}=e=_C(e),r=new Set;return Ce.obj(t)&&CI(t,r),Ce.obj(n)&&CI(n,r),e.keys=r.size?Array.from(r):null,e}function ime(e){const t=Mf(e);return Ce.und(t.default)&&(t.default=ry(t)),t}function CI(e,t){Cs(e,(n,r)=>n!=null&&t.add(r))}var ame=["onStart","onRest","onChange","onPause","onResume"];function SI(e,t,n){e.animation[n]=t[n]!==K4(t,n)?Y4(t[n],e.key):void 0}function qu(e,t,...n){var r,o,s,i;(o=(r=e.animation)[t])==null||o.call(r,...n),(i=(s=e.defaultProps)[t])==null||i.call(s,...n)}var lme=["onStart","onChange","onRest"],cme=1,nA=class{constructor(e,t){this.id=cme++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ce.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Mf(e)),this}start(e){let{queue:t}=this;return e?t=er(e).map(Mf):this.queue=[],this._flush?this._flush(this,t):(aA(this,t),Lx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ze(er(t),r=>n[r].stop(!!e))}else Pf(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ce.und(e))this.start({pause:!0});else{const t=this.springs;Ze(er(e),n=>t[n].pause())}return this}resume(e){if(Ce.und(e))this.start({pause:!1});else{const t=this.springs;Ze(er(e),n=>t[n].resume())}return this}each(e){Cs(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Ed(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,i=o||s&&n.size?this.get():null;o&&t.size&&Ed(t,([a,l])=>{l.value=i,a(l,this,this._item)}),s&&(this._started=!1,Ed(n,([a,l])=>{l.value=i,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;rt.onFrame(this._onFrame)}};function Lx(e,t){return Promise.all(t.map(n=>rA(e,n))).then(n=>NC(e,n))}async function rA(e,t,n){const{keys:r,to:o,from:s,loop:i,onRest:a,onResolve:l}=t,c=Ce.obj(t.default)&&t.default;i&&(t.loop=!1),o===!1&&(t.to=null),s===!1&&(t.from=null);const u=Ce.arr(o)||Ce.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ze(lme,y=>{const x=t[y];if(Ce.fun(x)){const v=e._events[y];t[y]=({finished:w,cancelled:b})=>{const C=v.get(x);C?(w||(C.finished=!1),b&&(C.cancelled=!0)):v.set(x,{value:null,finished:w||!1,cancelled:b||!1})},c&&(c[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ad(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),m=t.cancel===!0||K4(t,"cancel")===!0;(u||m&&d.asyncId)&&f.push(Q4(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ix,resume:Ix,start(y,x){m?(Pf(d,e._lastAsyncId),x(bc(e))):(y.onRest=a,x(J4(u,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const g=NC(e,await Promise.all(f));if(i&&g.finished&&!(n&&g.noop)){const y=tA(t,i,o);if(y)return aA(e,[y]),rA(e,y,!0)}return l&&rt.batchedUpdates(()=>l(g,e,e.item)),g}function _x(e,t){const n={...e.springs};return t&&Ze(er(t),r=>{Ce.und(r.keys)&&(r=Mf(r)),Ce.obj(r.to)||(r={...r,to:void 0}),iA(n,r,o=>sA(o))}),oA(e,n),n}function oA(e,t){Cs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,yu(n,e))})}function sA(e,t){const n=new sme;return n.key=e,t&&yu(n,t),n}function iA(e,t,n){t.keys&&Ze(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function aA(e,t){Ze(t,n=>{iA(e.springs,n,r=>sA(r,e))})}var ip=({children:e,...t})=>{const n=h.useContext(ng),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=Bhe(()=>({pause:r,immediate:o}),[r,o]);const{Provider:s}=ng;return h.createElement(s,{value:t},e)},ng=ume(ip,{});ip.Provider=ng.Provider;ip.Consumer=ng.Consumer;function ume(e,t){return Object.assign(e,h.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var lA=()=>{const e=[],t=function(r){Nhe();const o=[];return Ze(e,(s,i)=>{if(Ce.und(r))o.push(s.start());else{const a=n(r,s,i);a&&o.push(s.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Ze(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ze(e,r=>r.resume(...arguments)),this},t.set=function(r){Ze(e,(o,s)=>{const i=Ce.fun(r)?r(s,o):r;i&&o.set(i)})},t.start=function(r){const o=[];return Ze(e,(s,i)=>{if(Ce.und(r))o.push(s.start());else{const a=this._getProps(r,s,i);a&&o.push(s.start(a))}}),o},t.stop=function(){return Ze(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ze(e,(o,s)=>o.update(this._getProps(r,o,s))),this};const n=function(r,o,s){return Ce.fun(r)?r(s,o):r};return t._getProps=n,t};function dme(e,t,n){const r=Ce.fun(t)&&t;r&&!n&&(n=[]);const o=h.useMemo(()=>r||arguments.length==3?lA():void 0,[]),s=h.useRef(0),i=jC(),a=h.useMemo(()=>({ctrls:[],queue:[],flush(v,w){const b=_x(v,w);return s.current>0&&!a.queue.length&&!Object.keys(b).some(k=>!v.springs[k])?Lx(v,w):new Promise(k=>{oA(v,b),a.queue.push(()=>{k(Lx(v,w))}),i()})}}),[]),l=h.useRef([...a.ctrls]),c=[],u=Tx(e)||0;h.useMemo(()=>{Ze(l.current.slice(e,u),v=>{Rx(v,o),v.stop(!0)}),l.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(v,w){for(let b=v;b_x(v,c[w])),m=h.useContext(ip),g=Tx(m),y=m!==g&&q4(m);Di(()=>{s.current++,a.ctrls=l.current;const{queue:v}=a;v.length&&(a.queue=[],Ze(v,w=>w())),Ze(l.current,(w,b)=>{o==null||o.add(w),y&&w.start({default:m});const C=c[b];C&&(X4(w,C.ref),w.ref?w.queue.push(C):w.start(C))})}),FC(()=>()=>{Ze(a.ctrls,v=>v.stop(!0))});const x=f.map(v=>({...v}));return o?[x,o]:x}function cA(e,t){const n=Ce.fun(e),[[r],o]=dme(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}function BC(e,t,n){const r=Ce.fun(t)&&t,{reset:o,sort:s,trail:i=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?lA():void 0,[]),m=er(e),g=[],y=h.useRef(null),x=o?null:y.current;Di(()=>{y.current=g}),FC(()=>(Ze(g,A=>{f==null||f.add(A.ctrl),A.ctrl.ref=f}),()=>{Ze(y.current,A=>{A.expired&&clearTimeout(A.expirationId),Rx(A.ctrl,f),A.ctrl.stop(!0)})}));const v=pme(m,r?r():t,x),w=o&&y.current||[];Di(()=>Ze(w,({ctrl:A,item:R,key:I})=>{Rx(A,f),cr(c,R,I)}));const b=[];if(x&&Ze(x,(A,R)=>{A.expired?(clearTimeout(A.expirationId),w.push(A)):(R=b[R]=v.indexOf(A.key),~R&&(g[R]=A))}),Ze(m,(A,R)=>{g[R]||(g[R]={key:v[R],item:A,phase:"mount",ctrl:new nA},g[R].ctrl.item=A)}),b.length){let A=-1;const{leave:R}=r?r():t;Ze(b,(I,L)=>{const O=x[L];~I?(A=g.indexOf(O),g[A]={...O,item:m[I]}):R&&g.splice(++A,0,O)})}Ce.fun(s)&&g.sort((A,R)=>s(A.item,R.item));let C=-i;const k=jC(),M=ry(t),T=new Map,E=h.useRef(new Map),$=h.useRef(!1);Ze(g,(A,R)=>{const I=A.key,L=A.phase,O=r?r():t;let _,N;const z=cr(O.delay||0,I);if(L=="mount")_=O.enter,N="enter";else{const B=v.indexOf(I)<0;if(L!="leave")if(B)_=O.leave,N="leave";else if(_=O.update)N="update";else return;else if(!B)_=O.enter,N="enter";else return}if(_=cr(_,A.item,R),_=Ce.obj(_)?_C(_):{to:_},!_.config){const B=d||M.config;_.config=cr(B,A.item,R,N)}C+=i;const U={...M,delay:z+C,ref:u,immediate:O.immediate,reset:!1,..._};if(N=="enter"&&Ce.und(U.from)){const B=r?r():t,W=Ce.und(B.initial)||x?B.from:B.initial;U.from=cr(W,A.item,R)}const{onResolve:J}=U;U.onResolve=B=>{cr(J,B);const W=y.current,te=W.find(X=>X.key===I);if(te&&!(B.cancelled&&te.phase!="update")&&te.ctrl.idle){const X=W.every(q=>q.ctrl.idle);if(te.phase=="leave"){const q=cr(a,te.item);if(q!==!1){const G=q===!0?0:q;if(te.expired=!0,!X&&G>0){G<=2147483647&&(te.expirationId=setTimeout(k,G));return}}}X&&W.some(q=>q.expired)&&(E.current.delete(te),l&&($.current=!0),k())}};const Y=_x(A.ctrl,U);N==="leave"&&l?E.current.set(A,{phase:N,springs:Y,payload:U}):T.set(A,{phase:N,springs:Y,payload:U})});const S=h.useContext(ip),D=Tx(S),j=S!==D&&q4(S);Di(()=>{j&&Ze(g,A=>{A.ctrl.start({default:S})})},[S]),Ze(T,(A,R)=>{if(E.current.size){const I=g.findIndex(L=>L.key===R.key);g.splice(I,1)}}),Di(()=>{Ze(E.current.size?E.current:T,({phase:A,payload:R},I)=>{const{ctrl:L}=I;I.phase=A,f==null||f.add(L),j&&A=="enter"&&L.start({default:S}),R&&(X4(L,R.ref),(L.ref||f)&&!$.current?L.update(R):(L.start(R),$.current&&($.current=!1)))})},o?void 0:n);const F=A=>h.createElement(h.Fragment,null,g.map((R,I)=>{const{springs:L}=T.get(R)||R.ctrl,O=A({...L},R.item,R,I);return O&&O.type?h.createElement(O.type,{...O.props,key:Ce.str(R.key)||Ce.num(R.key)?R.key:R.ctrl.id,ref:O.ref}):O}));return f?[F,f]:F}var fme=1;function pme(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(s=>{const i=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!o.has(a));return i?(o.add(i),i.key):fme++})}return Ce.und(n)?e:Ce.fun(n)?e.map(n):er(n)}var uA=class extends zC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vf(...t);const n=this._get(),r=Dx(n);LC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Ts(t,n)||(ts(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&kI(this._active)&&Ev(this)}_get(){const e=Ce.arr(this.source)?this.source.map(lr):er(lr(this.source));return this.calc(...e)}_start(){this.idle&&!kI(this._active)&&(this.idle=!1,Ze(ty(this),e=>{e.done=!1}),ko.skipAnimation?(rt.batchedUpdates(()=>this.advance()),Ev(this)):Q0.start(this))}_attach(){let e=1;Ze(er(this.source),t=>{ao(t)&&yu(t,this),Ox(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ze(er(this.source),e=>{ao(e)&&wf(e,this)}),this._active.clear(),Ev(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=er(this.source).reduce((t,n)=>Math.max(t,(Ox(n)?n.priority:0)+1),0))}};function hme(e){return e.idle!==!1}function kI(e){return!e.size||Array.from(e).every(hme)}function Ev(e){e.idle||(e.idle=!0,Ze(ty(e),t=>{t.done=!0}),bf(e,{type:"idle",parent:e}))}var PI=(e,...t)=>new uA(e,t);ko.assign({createStringInterpolator:V4,to:(e,t)=>new uA(e,t)});var dA=/^--/;function mme(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!dA.test(e)&&!($d.hasOwnProperty(e)&&$d[e])?t+"px":(""+t).trim()}var MI={};function gme(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:o,children:s,scrollTop:i,scrollLeft:a,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:MI[f]||(MI[f]=f.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in o)if(o.hasOwnProperty(f)){const m=mme(f,o[f]);dA.test(f)?e.style.setProperty(f,m):e.style[f]=m}d.forEach((f,m)=>{e.setAttribute(f,u[m])}),r!==void 0&&(e.className=r),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),l!==void 0&&e.setAttribute("viewBox",l)}var $d={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},yme=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),vme=["Webkit","Ms","Moz","O"];$d=Object.keys($d).reduce((e,t)=>(vme.forEach(n=>e[yme(n,t)]=e[t]),e),$d);var xme=/^(matrix|translate|scale|rotate|skew)/,bme=/^(translate)/,wme=/^(rotate|skew)/,Tv=(e,t)=>Ce.num(e)&&e!==0?e+t:e,Hh=(e,t)=>Ce.arr(e)?e.every(n=>Hh(n,t)):Ce.num(e)?e===t:parseFloat(e)===t,Cme=class extends ny{constructor({x:e,y:t,z:n,...r}){const o=[],s=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),s.push(i=>[`translate3d(${i.map(a=>Tv(a,"px")).join(",")})`,Hh(i,0)])),Cs(r,(i,a)=>{if(a==="transform")o.push([i||""]),s.push(l=>[l,l===""]);else if(xme.test(a)){if(delete r[a],Ce.und(i))return;const l=bme.test(a)?"px":wme.test(a)?"deg":"";o.push(er(i)),s.push(a==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Tv(f,l)})`,Hh(f,0)]:c=>[`${a}(${c.map(u=>Tv(u,l)).join(",")})`,Hh(c,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Sme(o,s)),super(r)}},Sme=class extends z4{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ze(this.inputs,(n,r)=>{const o=lr(n[0]),[s,i]=this.transforms[r](Ce.arr(o)?o:n.map(lr));e+=" "+s,t=t&&i}),t?"none":e}observerAdded(e){e==1&&Ze(this.inputs,t=>Ze(t,n=>ao(n)&&yu(n,this)))}observerRemoved(e){e==0&&Ze(this.inputs,t=>Ze(t,n=>ao(n)&&wf(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bf(this,e)}},kme=["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","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"];ko.assign({batchedUpdates:Af.unstable_batchedUpdates,createStringInterpolator:V4,colors:yhe});var Pme=qhe(kme,{applyAnimatedValues:gme,createAnimatedStyle:e=>new Cme(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ap=Pme.animated;function Mme(e){const t=h.useRef({currentPath:e,previousPath:void 0});return t.current.currentPath!==e&&(t.current={currentPath:e,previousPath:t.current.currentPath}),t.current}const fA=e=>{const t=Mme(e);return h.useMemo(()=>t.previousPath?n4(t.previousPath,t.currentPath):()=>t.currentPath,[t.currentPath,t.previousPath])};function pA(e){return e.replace(" ","_")}function hA(){const{chartId:e}=h.useContext(U0);return h.useMemo(()=>e,[e])}function Kc(e){return qa(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function HC(){const{isInitialized:e,data:t}=h.useContext(w4);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return t}function mA(e){const t=Cr(),n=hA(),r=BC([t],{from:s=>({animatedWidth:s.left}),enter:s=>({animatedWidth:s.width+s.left+s.right}),leave:s=>({animatedWidth:s.width+s.left+s.right}),reset:!1,immediate:e.skipAnimation}),o=pA(`${n}-${e.id}`);return p.jsxs(h.Fragment,{children:[p.jsx("clipPath",{id:o,children:r(s=>p.jsx(ap.rect,{x:0,y:0,width:s.animatedWidth,height:t.top+t.height+t.bottom}))}),p.jsx("g",{clipPath:`url(#${o})`,children:e.children})]})}const Ime=["d","skipAnimation","ownerState"],Eme=Q(ap.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&Ui(e.color).brighter(1).formatHex()||Ui(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));function Tme(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=ce(e,Ime),s=fA(t),i=BC([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return p.jsx(mA,{skipAnimation:n,id:`${r.id}-area-clip`,children:i((a,l)=>p.jsx(Eme,P({},o,{ownerState:r,d:a.value.to(l)})))})}const Dme=["id","classes","color","gradientId","slots","slotProps","onClick"];function $me(e){return ve("MuiAreaElement",e)}me("MuiAreaElement",["root","highlighted","faded"]);const Rme=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,$me,t)};function Ame(e){const{id:t,classes:n,color:r,gradientId:o,slots:s,slotProps:i,onClick:a}=e,l=ce(e,Dme),c=q0(),{isFaded:u,isHighlighted:d}=K0({seriesId:t}),f={id:t,classes:n,color:r,gradientId:o,isFaded:u,isHighlighted:d},m=Rme(f),g=(s==null?void 0:s.area)??Tme,y=Je({elementType:g,externalSlotProps:i==null?void 0:i.area,additionalProps:P({},c({type:"line",seriesId:t}),{onClick:a,cursor:a?"pointer":"unset"}),className:m.root,ownerState:f});return p.jsx(g,P({},l,y))}function gA(e){switch(e){case"catmullRom":return Cue.alpha(.5);case"linear":return oC;case"monotoneX":return CM;case"monotoneY":return Sue;case"natural":return kue;case"step":return Pue;case"stepBefore":return Mue;case"stepAfter":return Iue;default:return CM}}function II(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:s,colorMap:i}=e;return p.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:i.thresholds.map((a,l)=>{const c=s(a);if(c===void 0)return null;const u=t?1-c/r:c/r;return p.jsxs(h.Fragment,{children:[p.jsx("stop",{offset:u,stopColor:i.colors[l],stopOpacity:1}),p.jsx("stop",{offset:u,stopColor:i.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}const Ome=10;function EI(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:s,scale:i,colorScale:a,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(i).filter(g=>g!==void 0);if(u.length!==2)return null;const d=typeof c[0]=="number"?gf(c[0],c[1]):t4(c[0],c[1]),f=Math.round((Math.max(...u)-Math.min(...u))/Ome),m=`${c[0]}-${c[1]}-`;return p.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(g,y)=>{const x=d(y/f);if(x===void 0)return null;const v=i(x);if(v===void 0)return null;const w=n?1-v/o:v/o,b=a(x);return b===null?null:p.jsx("stop",{offset:w,stopColor:b,stopOpacity:1},m+y)})})}function VC(){const{chartId:e}=h.useContext(U0);return h.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function jme(){const{top:e,height:t,bottom:n,left:r,width:o,right:s}=Cr(),i=e+t+n,a=r+o+s,l=VC(),{xAxisIds:c,xAxis:u,yAxisIds:d,yAxis:f}=Sr();return p.jsxs("defs",{children:[d.filter(m=>f[m].colorMap!==void 0).map(m=>{const g=l(m,"y"),{colorMap:y,scale:x,colorScale:v,reverse:w}=f[m];return(y==null?void 0:y.type)==="piecewise"?p.jsx(II,{isReversed:!w,scale:x,colorMap:y,size:i,gradientId:g,direction:"y"},g):(y==null?void 0:y.type)==="continuous"?p.jsx(EI,{isReversed:!w,scale:x,colorScale:v,colorMap:y,size:i,gradientId:g,direction:"y"},g):null}),c.filter(m=>u[m].colorMap!==void 0).map(m=>{const g=l(m,"x"),{colorMap:y,scale:x,reverse:v,colorScale:w}=u[m];return(y==null?void 0:y.type)==="piecewise"?p.jsx(II,{isReversed:v,scale:x,colorMap:y,size:a,gradientId:g,direction:"x"},g):(y==null?void 0:y.type)==="continuous"?p.jsx(EI,{isReversed:v,scale:x,colorScale:w,colorMap:y,size:a,gradientId:g,direction:"x"},g):null})]})}const yA=h.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function Fme(e){const{children:t,skipAnimation:n}=e,r=typeof window>"u"||!(window!=null&&window.matchMedia),[o,s]=h.useState(r||void 0);Di(()=>{var c;if(r)return;const a=u=>{const d=u.matches||void 0;s(d),ko.assign({skipAnimation:d})},l=window.matchMedia("(prefers-reduced-motion)");return a(l),(c=l==null?void 0:l.addEventListener)==null||c.call(l,"change",a),()=>{var u;(u=l==null?void 0:l.removeEventListener)==null||u.call(l,"change",a)}},[]);const i=h.useMemo(()=>({isInitialized:!0,data:{skipAnimation:n||o}}),[o,n]);return p.jsx(yA.Provider,{value:i,children:t})}function GC(e){const{isInitialized:t,data:n}=h.useContext(yA);if(!t)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` -`));return e||n.skipAnimation}const Lme=["slots","slotProps","onItemClick","skipAnimation"],_me=()=>{const e=Y0(),t=Sr();return h.useMemo(()=>{if(e===void 0)return[];const{series:r,stackingGroups:o}=e,{xAxis:s,yAxis:i,xAxisIds:a,yAxisIds:l}=t,c=a[0],u=l[0];return o.flatMap(({ids:d})=>[...d].reverse().map(f=>{const{xAxisId:m,yAxisId:g,xAxisKey:y=c,yAxisKey:x=u,stackedData:v,data:w,connectNulls:b,baseline:C}=r[f],k=m??y,M=g??x,T=Kc(s[k].scale),E=i[M].scale,$=s[k].data,S=i[M].colorScale&&[M,"y"]||s[k].colorScale&&[k,"x"]||void 0,D=oue().x(I=>T(I.x)).defined((I,L)=>b||w[L]!=null).y0(I=>{if(typeof C=="number")return E(C);if(C==="max")return E.range()[1];if(C==="min")return E.range()[0];const L=I.y&&E(I.y[0]);return Number.isNaN(L)?E.range()[0]:L}).y1(I=>I.y&&E(I.y[1])),j=gA(r[f].curve),F=($==null?void 0:$.map((I,L)=>({x:I,y:v[L]})))??[],A=b?F.filter((I,L)=>w[L]!=null):F,R=D.curve(j)(A)||"";return P({},r[f],{gradientUsed:S,d:R,seriesId:f})}))},[e,t])};function Nme(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,s=ce(e,Lme),i=GC(o),a=VC(),l=_me();return p.jsx("g",P({},s,{children:l.map(({d:c,seriesId:u,color:d,area:f,gradientUsed:m})=>!!f&&p.jsx(Ame,{id:u,d:c,color:d,gradientId:m&&a(...m),slots:t,slotProps:n,onClick:r&&(g=>r(g,{type:"line",seriesId:u})),skipAnimation:i},u))}))}const zme=["d","skipAnimation","ownerState"],Bme=Q(ap.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&Ui(e.color).brighter(.5).formatHex()||e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function Hme(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=ce(e,zme),s=fA(t),i=BC([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return p.jsx(mA,{skipAnimation:n,id:`${r.id}-line-clip`,children:i((a,l)=>p.jsx(Bme,P({},o,{ownerState:r,d:a.value.to(l)})))})}const Vme=["id","classes","color","gradientId","slots","slotProps","onClick"];function Gme(e){return ve("MuiLineElement",e)}me("MuiLineElement",["root","highlighted","faded"]);const Wme=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,Gme,t)};function Ume(e){const{id:t,classes:n,color:r,gradientId:o,slots:s,slotProps:i,onClick:a}=e,l=ce(e,Vme),c=q0(),{isFaded:u,isHighlighted:d}=K0({seriesId:t}),f={id:t,classes:n,color:r,gradientId:o,isFaded:u,isHighlighted:d},m=Wme(f),g=(s==null?void 0:s.line)??Hme,y=Je({elementType:g,externalSlotProps:i==null?void 0:i.line,additionalProps:P({},c({type:"line",seriesId:t}),{onClick:a,cursor:a?"pointer":"unset"}),className:m.root,ownerState:f});return p.jsx(g,P({},l,y))}const Yme=["slots","slotProps","skipAnimation","onItemClick"],Kme=()=>{const e=Y0(),t=Sr();return h.useMemo(()=>{if(e===void 0)return[];const{series:r,stackingGroups:o}=e,{xAxis:s,yAxis:i,xAxisIds:a,yAxisIds:l}=t,c=a[0],u=l[0];return o.flatMap(({ids:d})=>d.flatMap(f=>{const{xAxisId:m,yAxisId:g,xAxisKey:y=c,yAxisKey:x=u,stackedData:v,data:w,connectNulls:b}=r[f],C=m??y,k=g??x,M=Kc(s[C].scale),T=i[k].scale,E=s[C].data,$=i[k].colorScale&&[k,"y"]||s[C].colorScale&&[C,"x"]||void 0,S=_3().x(A=>M(A.x)).defined((A,R)=>b||w[R]!=null).y(A=>T(A.y[1])),D=(E==null?void 0:E.map((A,R)=>({x:A,y:v[R]})))??[],j=b?D.filter((A,R)=>w[R]!=null):D,F=S.curve(gA(r[f].curve))(j)||"";return P({},r[f],{gradientUsed:$,d:F,seriesId:f})}))},[e,t])};function qme(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,s=ce(e,Yme),i=GC(r),a=VC(),l=Kme();return p.jsx("g",P({},s,{children:l.map(({d:c,seriesId:u,color:d,gradientUsed:f})=>p.jsx(Ume,{id:u,d:c,color:d,gradientId:f&&a(...f),skipAnimation:i,slots:t,slotProps:n,onClick:o&&(m=>o(m,{type:"line",seriesId:u}))},u))}))}function Xme(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Tl(e){return e instanceof Date?e.getTime():e}const Qme=e=>{const t=HC(),n=Cr(),{xAxis:r,yAxis:o,xAxisIds:s,yAxisIds:i}=Sr(),{dispatch:a}=h.useContext(li),l=s[0],c=i[0],u=h.useRef({isInChart:!1,x:-1,y:-1});h.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(x,v){const{scale:w,data:b,reverse:C}=x;if(!qa(w)){const M=w.invert(v);if(b===void 0)return{value:M,index:-1};const T=Tl(M),E=b==null?void 0:b.findIndex(($,S)=>{const D=Tl($);return D>T&&(S===0||Math.abs(T-D)<=Math.abs(T-Tl(b[S-1])))||D<=T&&(S===b.length-1||Math.abs(Tl(M)-D)=0?b[E]:M,index:E}}const k=w.bandwidth()===0?Math.floor((v-Math.min(...w.range())+w.step()/2)/w.step()):Math.floor((v-Math.min(...w.range()))/w.step());if(k<0||k>=b.length)return null;if(C){const M=b.length-1-k;return{index:M,value:b[M]}}return{index:k,value:b[k]}}const m=()=>{u.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},g=x=>{const v="targetTouches"in x?x.targetTouches[0]:x,w=Xme(d,v);if(u.current.x=w.x,u.current.y=w.y,!n.isPointInside(w,{targetElement:x.target})){u.current.isInChart&&(a({type:"exitChart"}),u.current.isInChart=!1);return}u.current.isInChart=!0;const b=f(r[l],w.x),C=f(o[c],w.y);a({type:"updateAxis",data:{x:b,y:C}})},y=x=>{const v=x.currentTarget;v&&v.hasPointerCapture(x.pointerId)&&v.releasePointerCapture(x.pointerId)};return d.addEventListener("pointerdown",y),d.addEventListener("pointermove",g),d.addEventListener("pointerout",m),d.addEventListener("pointercancel",m),d.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerdown",y),d.removeEventListener("pointermove",g),d.removeEventListener("pointerout",m),d.removeEventListener("pointercancel",m),d.removeEventListener("pointerleave",m)}},[t,a,c,o,l,r,e,n])},Zme=["children","width","height","viewBox","disableAxisListener","className","title","desc"],Jme=Q("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),ege=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiChartsSurface"}),{children:o,width:s,height:i,viewBox:a,disableAxisListener:l=!1,className:c,title:u,desc:d}=r,f=ce(r,Zme),m=P({width:s,height:i,x:0,y:0},a);return Qme(l),p.jsxs(Jme,P({width:s,height:i,viewBox:`${m.x} ${m.y} ${m.width} ${m.height}`,ref:n,className:c},f,{children:[p.jsx("title",{children:u}),p.jsx("desc",{children:d}),o]}))}),TI=(e,t,n)=>{const r=n==="x"?W0:xpe;return[...(e==null?void 0:e.map((o,s)=>P({id:`defaultized-${n}-axis-${s}`},o)))??[],...e===void 0||e.findIndex(({id:o})=>o===r)===-1?[{id:r,scaleType:"linear"}]:[]].map(o=>{const s=o.dataKey;if(s===void 0||o.data!==void 0)return o;if(t===void 0)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return P({},o,{data:t.map(i=>i[s])})})},tge=(e,t,n)=>{const r=h.useMemo(()=>TI(e,n,"x"),[e,n]),o=h.useMemo(()=>TI(t,n,"y"),[t,n]);return[r,o]},nge=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],rge=(e,t)=>{const{width:n,height:r,series:o,margin:s,xAxis:i,yAxis:a,zAxis:l,colors:c,dataset:u,sx:d,title:f,desc:m,disableAxisListener:g,highlightedItem:y,onHighlightChange:x,plugins:v,children:w,skipAnimation:b}=e,C=ce(e,nge),k=h.useRef(null),M=et(t,k),[T,E]=tge(i,a,u),$={width:n,height:r,margin:s,svgRef:k},S={skipAnimation:b},D={plugins:v},j={series:o,colors:c,dataset:u},F={xAxis:T,yAxis:E,dataset:u},A={zAxis:l,dataset:u},R={highlightedItem:y,onHighlightChange:x},I=P({},C,{width:n,height:r,ref:M,sx:d,title:f,desc:m,disableAxisListener:g});return{children:w,drawingProviderProps:$,seriesProviderProps:j,cartesianProviderProps:F,zAxisContextProps:A,highlightedProviderProps:R,chartsSurfaceProps:I,pluginProviderProps:D,animationProviderProps:S,xAxis:T,yAxis:E}},oge=h.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:s,cartesianProviderProps:i,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:c,pluginProviderProps:u,animationProviderProps:d}=rge(t,n);return p.jsx(Cpe,P({},o,{children:p.jsx(Xpe,P({},u,{children:p.jsx(ehe,P({},s,{children:p.jsx(the,P({},i,{children:p.jsx(che,P({},a,{children:p.jsx(rhe,{children:p.jsx(lhe,P({},l,{children:p.jsxs(ege,P({},c,{children:[p.jsx(jme,{}),p.jsx(Fme,P({},d,{children:r}))]}))}))})}))}))}))}))}))}),sge=Q("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),ige=(e,t,n)=>{const r=h.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=h.useRef(null),[s,i]=h.useState(0),[a,l]=h.useState(0),c=h.useCallback(()=>{const u=o==null?void 0:o.current;if(!u)return{};const f=zr(u).getComputedStyle(u),m=Math.floor(parseFloat(f.height))||0,g=Math.floor(parseFloat(f.width))||0;return i(g),l(m),{width:g,height:m}},[]);return h.useEffect(()=>{r.current.displayError=!0},[]),ot(()=>{if(!n||!r.current.initialCompute||r.current.computeRun>20)return;const u=c();u.width!==s||u.height!==a?r.current.computeRun+=1:r.current.initialCompute&&(r.current.initialCompute=!1)},[s,a,c,n]),ot(()=>{if(e!==void 0&&t!==void 0)return()=>{};c();const u=o.current;if(typeof ResizeObserver>"u")return()=>{};let d;const f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{c()})});return u&&f.observe(u),()=>{d&&cancelAnimationFrame(d),u&&f.unobserve(u)}},[c,t,e]),{containerRef:o,width:e??s,height:t??a}},age=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],lge=(e,t)=>{const{width:n,height:r,resolveSizeBeforeRender:o,margin:s,children:i,series:a,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:f,onHighlightChange:m,plugins:g,sx:y,title:x,viewBox:v,xAxis:w,yAxis:b,zAxis:C,skipAnimation:k}=e,M=ce(e,age),{containerRef:T,width:E,height:$}=ige(n,r,o),S=P({},M,{ownerState:{width:n,height:r},ref:T});return{hasIntrinsicSize:E&&$,chartContainerProps:{margin:s,children:i,series:a,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:f,onHighlightChange:m,plugins:g,sx:y,title:x,viewBox:v,xAxis:w,yAxis:b,zAxis:C,skipAnimation:k,width:E,height:$,ref:t},resizableChartContainerProps:S}},cge=h.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:s}=lge(t,n);return p.jsx(sge,P({},s,{children:r?p.jsx(oge,P({},o)):null}))});function uge(e){return ve("MuiMarkElement",e)}me("MuiMarkElement",["root","highlighted","faded"]);const vA=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,uge,t)},dge=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function fge(e){var b;const{x:t,y:n,id:r,classes:o,color:s,dataIndex:i,onClick:a,skipAnimation:l,shape:c}=e,u=ce(e,dge),d=Mn(),f=q0(),{isFaded:m,isHighlighted:g}=K0({seriesId:r}),{axis:y}=h.useContext(li),x=cA({to:{x:t,y:n},immediate:l}),v={id:r,classes:o,isHighlighted:((b=y.x)==null?void 0:b.index)===i||g,isFaded:m},w=vA(v);return p.jsx(ap.circle,P({},u,{cx:x.x,cy:x.y,r:5,fill:(d.vars||d).palette.background.paper,stroke:s,strokeWidth:2,className:w.root,onClick:a,cursor:a?"pointer":"unset"},f({type:"line",seriesId:r,dataIndex:i})))}function pge(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const hge=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],mge=Q(ap.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));function gge(e){var w;const{x:t,y:n,id:r,classes:o,color:s,shape:i,dataIndex:a,onClick:l,skipAnimation:c}=e,u=ce(e,hge),d=q0(),{isFaded:f,isHighlighted:m}=K0({seriesId:r}),{axis:g}=h.useContext(li),y=cA({to:{x:t,y:n},immediate:c}),x={id:r,classes:o,isHighlighted:((w=g.x)==null?void 0:w.index)===a||m,isFaded:f,color:s},v=vA(x);return p.jsx(mge,P({},u,{style:{transform:PI([y.x,y.y],(b,C)=>`translate(${b}px, ${C}px)`),transformOrigin:PI([y.x,y.y],(b,C)=>`${b}px ${C}px`)},ownerState:x,className:v.root,d:bue(xue[pge(i)])(),onClick:l,cursor:l?"pointer":"unset"},d({type:"line",seriesId:r,dataIndex:a})))}const yge=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function vge(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o,experimentalRendering:s}=e,i=ce(e,yge),a=GC(r),l=Y0(),c=Sr(),u=hA(),d=Cr(),f=(t==null?void 0:t.mark)??(s?fge:gge);if(l===void 0)return null;const{series:m,stackingGroups:g}=l,{xAxis:y,yAxis:x,xAxisIds:v,yAxisIds:w}=c,b=v[0],C=w[0];return p.jsx("g",P({},i,{children:g.flatMap(({ids:k})=>k.map(M=>{const{xAxisId:T,yAxisId:E,xAxisKey:$=b,yAxisKey:S=C,stackedData:D,data:j,showMark:F=!0}=m[M];if(F===!1)return null;const A=T??$,R=E??S,I=Kc(y[A].scale),L=x[R].scale,O=y[A].data;if(O===void 0)throw new Error(`MUI X: ${A===W0?"The first `xAxis`":`The x-axis with id "${A}"`} should have data property to be able to display a line plot.`);const _=pA(`${u}-${M}-line-clip`),N=kC(m[M],y[A],x[R]);return p.jsx("g",{clipPath:`url(#${_})`,children:O==null?void 0:O.map((z,U)=>{const J=j[U]==null?null:D[U][1];return{x:I(z),y:J===null?null:L(J),position:z,value:J,index:U}}).filter(({x:z,y:U,index:J,position:Y,value:B})=>B===null||U===null||!d.isPointInside({x:z,y:U})?!1:F===!0?!0:F({x:z,y:U,index:J,position:Y,value:B})).map(({x:z,y:U,index:J})=>p.jsx(f,P({id:M,dataIndex:J,shape:"circle",color:N(J),x:z,y:U,skipAnimation:a,onClick:o&&(Y=>o(Y,{type:"line",seriesId:M,dataIndex:J}))},n==null?void 0:n.mark),`${M}-${J}`))},M)}))}))}function xA(e){return ve("MuiChartsAxis",e)}const sh=me("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),bA=Q("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${sh.tickLabel}`]:P({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${sh.label}`]:P({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${sh.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${sh.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function xge(){return typeof window>"u"}const ca={widthCache:{},cacheCount:0},bge=2e3,wge={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Cge=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],DI="mui_measurement_span";function wA(e,t){return Cge.indexOf(e)>=0&&t===+t?`${t}px`:t}function CA(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const Sge=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${CA(n)}:${wA(n,e[n])};`,"");let Dv;const kge=(e,t={})=>{if(e==null||xge())return{width:0,height:0};const n=`${e}`,r=Sge(t),o=`${n}-${r}`;if(ca.widthCache[o])return ca.widthCache[o];try{let s=document.getElementById(DI);s===null&&(s=document.createElement("span"),s.setAttribute("id",DI),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const i=P({},wge,t);Object.keys(i).map(c=>(s.style[CA(c)]=wA(c,i[c]),c)),s.textContent=n;const a=s.getBoundingClientRect(),l={width:a.width,height:a.height};return ca.widthCache[o]=l,ca.cacheCount+1>bge?(ca.cacheCount=0,ca.widthCache={}):ca.cacheCount+=1,Dv&&clearTimeout(Dv),Dv=setTimeout(()=>{s.textContent=""},0),l}catch{return{width:0,height:0}}};function WC({style:e,needsComputation:t,text:n}){return n.split(` -`).map(r=>P({text:r},t?kge(r,e):{width:0,height:0}))}const Pge=["x","y","style","text","ownerState"],Mge=["angle","textAnchor","dominantBaseline"];function If(e){const{x:t,y:n,style:r,text:o}=e,s=ce(e,Pge),i=r??{},{angle:a,textAnchor:l,dominantBaseline:c}=i,u=ce(i,Mge),d=h.useMemo(()=>WC({style:u,needsComputation:o.includes(` -`),text:o}),[u,o]);let f;switch(c){case"hanging":f=0;break;case"central":f=(d.length-1)/2*-d[0].height;break;default:f=(d.length-1)*-d[0].height;break}const m=[];return a&&m.push(`rotate(${a}, ${t}, ${n})`),p.jsx("text",P({},s,{transform:m.length>0?m.join(" "):void 0,x:t,y:n,textAnchor:l,dominantBaseline:c,style:u,children:d.map((g,y)=>p.jsx("tspan",{x:t,dy:`${y===0?f:d[0].height}px`,dominantBaseline:c,children:g.text},y))}))}const $I=5;function Ige(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<$I)return e;if(r>90-$I)return t;const o=r*Math.PI/180,s=Math.atan2(t,e);return o{e||n(!0)},[e]),h.useEffect(()=>{e&&n(!0)},[e]),t}const Tge=["scale","tickNumber","reverse"],Dge=e=>{const{classes:t,position:n}=e;return le({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},xA,t)};function $ge(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const s=e.map(c=>{if(!o||c.formattedValue===void 0)return P({},c,{width:0,height:0});const u=WC({style:t,needsComputation:!0,text:c.formattedValue});return P({},c,{width:Math.max(...u.map(d=>d.width)),height:Math.max(u.length*u[0].height)})});if(typeof n=="function")return s.map((c,u)=>P({},c,{skipLabel:!n(c.value,u)}));let i=0,a=0;const l=r?-1:1;return s.map((c,u)=>{const{width:d,offset:f,labelOffset:m,height:g}=c,y=Ige(d,g,t==null?void 0:t.angle),x=f+m,v=1.2;return i=x-l*(v*y)/2,u>0&&l*it.root})({}),Age={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function RI(e){const{xAxisIds:t,xAxis:n}=Sr(),r=n[e.axisId??t[0]],{scale:o,tickNumber:s,reverse:i}=r,a=ce(r,Tge),l=Ege(),c=yt({props:P({},a,e),name:"MuiChartsXAxis"}),u=P({},Age,c),{position:d,disableLine:f,disableTicks:m,tickLabelStyle:g,label:y,labelStyle:x,tickFontSize:v,labelFontSize:w,tickSize:b,valueFormatter:C,slots:k,slotProps:M,tickInterval:T,tickLabelInterval:E,tickPlacement:$,tickLabelPlacement:S,sx:D}=u,j=Mn(),F=Dge(P({},u,{theme:j})),{left:A,top:R,width:I,height:L,isPointInside:O}=Cr(),_=m?4:b,N=d==="bottom"?1:-1,z=(k==null?void 0:k.axisLine)??"line",U=(k==null?void 0:k.axisTick)??"line",J=(k==null?void 0:k.axisTickLabel)??If,Y=(k==null?void 0:k.axisLabel)??If,B=Je({elementType:J,externalSlotProps:M==null?void 0:M.axisTickLabel,additionalProps:{style:P({textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto",fontSize:v??12},g)},className:F.tickLabel,ownerState:{}}),W=G0({scale:o,tickNumber:s,valueFormatter:C,tickInterval:T,tickPlacement:$,tickLabelPlacement:S}),te=$ge(W,{tickLabelStyle:B.style,tickLabelInterval:E,reverse:i,isMounted:l}),X={x:A+I/2,y:N*(_+22)},q=Je({elementType:Y,externalSlotProps:M==null?void 0:M.axisLabel,additionalProps:{style:P({fontSize:w??14,textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto"},x)},ownerState:{}}),G=o.domain(),ee=qa(o);return ee&&G.length===0||!ee&&G.some(SC)?null:p.jsxs(Rge,{transform:`translate(0, ${d==="bottom"?R+L:R})`,className:F.root,sx:D,children:[!f&&p.jsx(z,P({x1:A,x2:A+I,className:F.line},M==null?void 0:M.axisLine)),te.map(({formattedValue:H,offset:Z,labelOffset:ne,skipLabel:oe},re)=>{const ue=ne??0,ie=N*(_+3),be=O({x:Z,y:-1},{direction:"x"}),Te=O({x:Z+ue,y:-1},{direction:"x"});return p.jsxs("g",{transform:`translate(${Z}, 0)`,className:F.tickContainer,children:[!m&&be&&p.jsx(U,P({y2:N*_,className:F.tick},M==null?void 0:M.axisTick)),H!==void 0&&!oe&&Te&&p.jsx(J,P({x:ue,y:ie},B,{text:H.toString()}))]},re)}),y&&p.jsx("g",{className:F.label,children:p.jsx(Y,P({},X,q,{text:y}))})]})}const Oge=["scale","tickNumber"],jge=e=>{const{classes:t,position:n}=e;return le({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},xA,t)},Fge=Q(bA,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lge={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function AI(e){const{yAxisIds:t,yAxis:n}=Sr(),r=n[e.axisId??t[0]],{scale:o,tickNumber:s}=r,i=ce(r,Oge),a=yt({props:P({},i,e),name:"MuiChartsYAxis"}),l=P({},Lge,a),{position:c,disableLine:u,disableTicks:d,tickFontSize:f,label:m,labelFontSize:g,labelStyle:y,tickLabelStyle:x,tickSize:v,valueFormatter:w,slots:b,slotProps:C,tickPlacement:k,tickLabelPlacement:M,tickInterval:T,tickLabelInterval:E,sx:$}=l,S=Mn(),D=Nt(),j=jge(P({},l,{theme:S})),{left:F,top:A,width:R,height:I,isPointInside:L}=Cr(),O=d?4:v,_=G0({scale:o,tickNumber:s,valueFormatter:w,tickPlacement:k,tickLabelPlacement:M,tickInterval:T}),N=c==="right"?1:-1,z={x:N*(f+O+10),y:A+I/2},U=(b==null?void 0:b.axisLine)??"line",J=(b==null?void 0:b.axisTick)??"line",Y=(b==null?void 0:b.axisTickLabel)??If,B=(b==null?void 0:b.axisLabel)??If,W=!D&&c==="right"||D&&c!=="right",te=Je({elementType:Y,externalSlotProps:C==null?void 0:C.axisTickLabel,additionalProps:{style:P({fontSize:f,textAnchor:W?"start":"end",dominantBaseline:"central"},x)},className:j.tickLabel,ownerState:{}}),X=Je({elementType:B,externalSlotProps:C==null?void 0:C.axisLabel,additionalProps:{style:P({fontSize:g,angle:N*90,textAnchor:"middle",dominantBaseline:"auto"},y)},ownerState:{}}),q=Je({elementType:U,externalSlotProps:C==null?void 0:C.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),G=o.domain(),ee=qa(o);return ee&&G.length===0||!ee&&G.some(SC)?null:p.jsxs(Fge,{transform:`translate(${c==="right"?F+R:F}, 0)`,className:j.root,sx:$,children:[!u&&p.jsx(U,P({y1:A,y2:A+I,className:j.line},q)),_.map(({formattedValue:H,offset:Z,labelOffset:ne,value:oe},re)=>{const ue=N*(O+2),ie=ne,be=typeof E=="function"&&!(E!=null&&E(oe,re));return L({x:-1,y:Z},{direction:"y"})?p.jsxs("g",{transform:`translate(0, ${Z})`,className:j.tickContainer,children:[!d&&p.jsx(J,P({x2:N*O,className:j.tick},C==null?void 0:C.axisTick)),H!==void 0&&!be&&p.jsx(Y,P({x:ue,y:ie,text:H.toString()},te))]},re):null}),m&&p.jsx("g",{className:j.label,children:p.jsx(B,P({},z,X,{text:m}))})]})}const ih=(e,t)=>e==null?null:typeof e=="object"?e.axisId??t??null:e,ah=(e,t,n)=>typeof e=="object"?P({},e,{slots:P({},t,e==null?void 0:e.slots),slotProps:P({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function _ge(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:s,slotProps:i}=e,{xAxis:a,xAxisIds:l,yAxis:c,yAxisIds:u}=Sr(),d=ih(n===void 0?u[0]:n,u[0]),f=ih(o===void 0?l[0]:o,l[0]),m=ih(t,l[0]),g=ih(r,u[0]);if(m!==null&&!a[m])throw new Error([`MUI X: id used for top axis "${m}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` -`));if(d!==null&&!c[d])throw new Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(` -`));if(g!==null&&!c[g])throw new Error([`MUI X: id used for right axis "${g}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(` -`));if(f!==null&&!a[f])throw new Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` -`));const y=ah(t,s,i),x=ah(o,s,i),v=ah(n,s,i),w=ah(r,s,i);return p.jsxs(h.Fragment,{children:[m&&p.jsx(RI,P({},y,{position:"top",axisId:m})),f&&p.jsx(RI,P({},x,{position:"bottom",axisId:f})),d&&p.jsx(AI,P({},v,{position:"left",axisId:d})),g&&p.jsx(AI,P({},w,{position:"right",axisId:g}))]})}function Nge(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>P({},r,{toJSON:()=>JSON.stringify(r)})}}function zge(){const e=HC(),[t,n]=h.useState(null);return h.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=i=>{i.pointerType!=="mouse"&&n(null)},s=i=>{n({x:i.clientX,y:i.clientY,height:i.height,pointerType:i.pointerType})};return r.addEventListener("pointerdown",s),r.addEventListener("pointermove",s),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",s),r.removeEventListener("pointermove",s),r.removeEventListener("pointerup",o)}},[e]),t}function Bge(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function Hge(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function Vge(e){return ve("MuiChartsTooltip",e)}const OI=me("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),SA=Q("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),kA=Q("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Nx=Q("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),ka=Q("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${OI.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${OI.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),PA=Q("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>vd(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Gge(e){var u;const{series:t,itemData:n,sx:r,classes:o,getColor:s}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:s(n.dataIndex),displayedLabel:Hs(t.data[n.dataIndex].label,"tooltip")}:{color:s(n.dataIndex),displayedLabel:Hs(t.label,"tooltip")},l=t.type==="pie"?P({},t.data[n.dataIndex],{label:Hs(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],c=(u=t.valueFormatter)==null?void 0:u.call(t,l,{dataIndex:n.dataIndex});return p.jsx(SA,{sx:r,className:o.paper,children:p.jsx(kA,{className:o.table,children:p.jsx("tbody",{children:p.jsxs(Nx,{className:o.row,children:[p.jsx(ka,{className:se(o.markCell,o.cell),children:p.jsx(PA,{color:a,className:o.mark})}),p.jsx(ka,{className:se(o.labelCell,o.cell),children:i}),p.jsx(ka,{className:se(o.valueCell,o.cell),children:c})]})})})})}function Wge(e){var C;const{content:t,itemData:n,sx:r,classes:o,contentProps:s}=e,i=sa()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:c,yAxisIds:u}=Sr(),{zAxis:d,zAxisIds:f}=h.useContext(PC),m=I4(),g=i.xAxisId??i.xAxisKey??c[0],y=i.yAxisId??i.yAxisKey??u[0],x=i.zAxisId??i.zAxisKey??f[0],v=((C=m[i.type])==null?void 0:C.call(m,i,g&&a[g],y&&l[y],x&&d[x]))??(()=>""),w=t??Gge,b=Je({elementType:w,externalSlotProps:s,additionalProps:{itemData:n,series:i,sx:r,classes:o,getColor:v},ownerState:{}});return p.jsx(w,P({},b))}let jI;class Uge{constructor(){if(this.types=new Set,jI)throw new Error("You can only create one instance!");jI=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const oy=new Uge;oy.addType("bar");oy.addType("line");oy.addType("scatter");function MA(e){return oy.getTypes().has(e)}function Yge(e){return MA(e.type)}function Kge(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:s,classes:i}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?Hge(l):l.toLocaleString());return p.jsx(SA,{sx:s,className:i.paper,children:p.jsxs(kA,{className:i.table,children:[o!=null&&!n.hideTooltip&&p.jsx("thead",{children:p.jsx(Nx,{children:p.jsx(ka,{colSpan:3,children:p.jsx(we,{children:a(o,{location:"tooltip"})})})})}),p.jsx("tbody",{children:t.filter(Yge).map(({id:l,label:c,valueFormatter:u,data:d,getColor:f})=>{const m=u(d[r]??null,{dataIndex:r});if(m==null)return null;const g=Hs(c,"tooltip"),y=f(r);return p.jsxs(Nx,{className:i.row,children:[p.jsx(ka,{className:se(i.markCell,i.cell),children:y&&p.jsx(PA,{color:y,className:i.mark})}),p.jsx(ka,{className:se(i.labelCell,i.cell),children:g?p.jsx(we,{children:g}):null}),p.jsx(ka,{className:se(i.valueCell,i.cell),children:p.jsx(we,{children:m})})]},l)})})]})})}function qge(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:s}=e,i=r.x&&r.x.index!==-1,a=i?r.x&&r.x.index:r.y&&r.y.index,l=i?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:c,xAxis:u,yAxisIds:d,yAxis:f}=Sr(),{zAxisIds:m,zAxis:g}=h.useContext(PC),y=sa(),x=I4(),v=i?c[0]:d[0],w=h.useMemo(()=>{const M=[];return Object.keys(y).filter(MA).forEach(T=>{y[T].seriesOrder.forEach(E=>{var F;const $=y[T].series[E],S=$.xAxisId??$.xAxisKey,D=$.yAxisId??$.yAxisKey,j=i?S:D;if(j===void 0||j===v){const A=y[T].series[E],R=S??c[0],I=D??d[0],L=A.zAxisId??A.zAxisKey??m[0],O=((F=x[T])==null?void 0:F.call(x,A,u[R],f[I],L&&g[L]))??(()=>"");M.push(P({},A,{getColor:O}))}})}),M},[v,x,i,y,u,c,f,d,g,m]),b=h.useMemo(()=>i?u[v]:f[v],[v,i,u,f]),C=t??Kge,k=Je({elementType:C,externalSlotProps:n,additionalProps:{axisData:r,series:w,axis:b,dataIndex:a,axisValue:l,sx:o,classes:s},ownerState:{}});return p.jsx(C,P({},k))}const Xge=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Vge,t)},Qge=Q(oi,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Zge(e){const t=yt({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:s,slotProps:i}=t,a=zge(),{item:l,axis:c}=h.useContext(li),u=n==="item"?l:c,d=Bge(n,u),f=a!==null&&d,m=Xge({classes:t.classes}),g=(s==null?void 0:s.popper)??Qge,y=Je({elementType:g,externalSlotProps:i==null?void 0:i.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:Nge(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:p.jsx($$,{children:f&&p.jsx(g,P({},y,{className:m.root,children:n==="item"?p.jsx(Wge,{itemData:u,content:(s==null?void 0:s.itemContent)??r,contentProps:i==null?void 0:i.itemContent,sx:{mx:2},classes:m}):p.jsx(qge,{axisData:u,content:(s==null?void 0:s.axisContent)??o,contentProps:i==null?void 0:i.axisContent,sx:{mx:2},classes:m})}))})}const Jge=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=Hs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},e0e=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=Hs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},t0e=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=Hs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},n0e=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(s=>{const i=Hs(s.label,"legend");i!==void 0&&r.push({id:s.id,seriesId:o,color:s.color,label:i,itemId:s.id})}),r),[])},r0e={bar:Jge,scatter:e0e,line:t0e,pie:n0e};function o0e(e){return Object.keys(e).flatMap(t=>{const n=r0e[t];return n===void 0?[]:n(e[t])})}function s0e(e){return ve("MuiChartsLegend",e)}me("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const i0e=["label"];function a0e(e,t,n,r,o,s,i){let a=0,l=0,c=0,u=0,d=0;const f=[0];return[e.map(g=>{let{label:y}=g,x=ce(g,i0e);const v=t(y,n),w=P({},x,{label:y,positionX:a,positionY:l,innerHeight:v.innerHeight,innerWidth:v.innerWidth,outerHeight:v.outerHeight,outerWidth:v.outerWidth,rowIndex:d});return r==="row"&&(a+v.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),w.positionX=a,w.positionY=l,w.rowIndex=d),c=Math.max(c,a+v.outerWidth),u=Math.max(u,l+v.outerHeight),f[d]=Math.max(f[d],v.outerHeight),a+=v.outerWidth),r==="column"&&(l+v.innerHeight>s&&(a=c+i,l=0,d=0,w.positionX=a,w.positionY=l,w.rowIndex=d),f.length<=d&&f.push(0),c=Math.max(c,a+v.outerWidth),u=Math.max(u,l+v.outerHeight),d+=1,l+=v.outerHeight),w}).map(g=>P({},g,{positionY:g.positionY+(r==="row"?f[g.rowIndex]/2:g.outerHeight/2)})),c,u]}function l0e(e){const t=Nt(),{id:n,positionY:r,label:o,positionX:s,innerHeight:i,innerWidth:a,legendWidth:l,color:c,gapX:u,gapY:d,itemMarkHeight:f,itemMarkWidth:m,markGap:g,labelStyle:y,classes:x,onClick:v}=e;return p.jsxs("g",{className:se(x==null?void 0:x.series,`${x==null?void 0:x.series}-${n}`),transform:`translate(${u+(t?l-s:s)} ${d+r})`,children:[p.jsx("rect",{x:t?-(a+2):-2,y:-f/2-2,width:a+4,height:i+4,fill:"transparent",className:x==null?void 0:x.itemBackground,onClick:v,style:{pointerEvents:v?"all":"none",cursor:v?"pointer":"unset"}}),p.jsx("rect",{className:x==null?void 0:x.mark,x:t?-m:0,y:-f/2,width:m,height:f,fill:c,style:{pointerEvents:"none"}}),p.jsx(If,{style:P({pointerEvents:"none"},y),text:o,x:(t?-1:1)*(m+g),y:0})]})}const c0e=["rotate","dominantBaseline"],u0e=Q("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d0e=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:P({left:0,right:0,top:0,bottom:0},e);function f0e(e){const{position:t,direction:n,itemsToDisplay:r,classes:o,itemMarkWidth:s=20,itemMarkHeight:i=20,markGap:a=5,itemGap:l=10,padding:c=10,labelStyle:u,onItemClick:d}=e,f=Mn(),m=Cr(),g=h.useMemo(()=>P({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},u),[u,f]),y=h.useMemo(()=>d0e(c),[c]),x=h.useCallback((S,D={})=>{const j=ce(D,c0e),F=WC({style:j,needsComputation:!0,text:S}),A={innerWidth:s+a+Math.max(...F.map(R=>R.width)),innerHeight:Math.max(i,F.length*F[0].height)};return P({},A,{outerWidth:A.innerWidth+l,outerHeight:A.innerHeight+l})},[l,i,s,a]),v=m.left+m.width+m.right,w=m.top+m.height+m.bottom,b=v-y.left-y.right,C=w-y.top-y.bottom,[k,M,T]=h.useMemo(()=>a0e(r,x,g,n,b,C,l),[r,x,g,n,b,C,l]),E=h.useMemo(()=>{switch(t.horizontal){case"left":return y.left;case"right":return v-y.right-M;default:return(v-M)/2}},[t.horizontal,y.left,y.right,v,M]),$=h.useMemo(()=>{switch(t.vertical){case"top":return y.top;case"bottom":return w-y.bottom-T;default:return(w-T)/2}},[t.vertical,y.top,y.bottom,w,T]);return p.jsx($$,{children:p.jsx(u0e,{className:o==null?void 0:o.root,children:k.map((S,D)=>h.createElement(l0e,P({},S,{key:S.id,gapX:E,gapY:$,legendWidth:M,itemMarkHeight:i,itemMarkWidth:s,markGap:a,labelStyle:g,classes:o,onClick:d?j=>d(j,D):void 0})))})})}const p0e=["drawingArea","seriesToDisplay","hidden","onItemClick"],h0e=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function m0e(e){const{seriesToDisplay:t,hidden:n,onItemClick:r}=e,o=ce(e,p0e);return n?null:p.jsx(f0e,P({},o,{itemsToDisplay:t,onItemClick:r?(s,i)=>r(s,h0e(t[i]),i):void 0}))}const g0e=["slots","slotProps"],y0e=e=>{const{classes:t,direction:n}=e;return le({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},s0e,t)};function v0e(e){const t=yt({props:e,name:"MuiChartsLegend"}),n=P({direction:"row"},t,{position:P({horizontal:"middle",vertical:"top"},t.position)}),{slots:r,slotProps:o}=n,s=ce(n,g0e),i=Mn(),a=y0e(P({},n,{theme:i})),l=Cr(),c=sa(),u=o0e(c),d=(r==null?void 0:r.legend)??m0e,f=Je({elementType:d,externalSlotProps:o==null?void 0:o.legend,additionalProps:P({},s,{classes:a,drawingArea:l,series:c,seriesToDisplay:u}),ownerState:{}});return p.jsx(d,P({},f))}function x0e(e){return ve("MuiChartsAxisHighlight",e)}me("MuiChartsAxisHighlight",["root"]);const b0e=()=>le({root:["root"]},x0e),lh=Q("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:P({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:P({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function w0e(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:s,yAxis:i}=Sr(),a=b0e(),l=r[0],c=s[0],u=o[l].scale,d=i[c].scale,{axis:f}=h.useContext(li),m=Kc(u),g=Kc(d),y=f.x,x=f.y,v=t==="band"&&y!==null&&qa(u),w=n==="band"&&x!==null&&qa(d);return p.jsxs(h.Fragment,{children:[v&&u(y.value)!==void 0&&p.jsx(lh,{d:`M ${u(y.value)-(u.step()-u.bandwidth())/2} ${d.range()[0]} l ${u.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-u.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),w&&d(x.value)!==void 0&&p.jsx(lh,{d:`M ${u.range()[0]} ${d(x.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${u.range()[1]-u.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&p.jsx(lh,{d:`M ${m(f.x.value)} ${d.range()[0]} L ${m(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&p.jsx(lh,{d:`M ${u.range()[0]} ${g(f.y.value)} L ${u.range()[1]} ${g(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function C0e(e){const{id:t,offset:n}=e,{left:r,top:o,width:s,height:i}=Cr(),a=P({top:0,right:0,bottom:0,left:0},n);return p.jsx("clipPath",{id:t,children:p.jsx("rect",{x:r-a.left,y:o-a.top,width:s+a.left+a.right,height:i+a.top+a.bottom})})}const S0e=["x","y","id","classes","color"];function k0e(e){return ve("MuiHighlightElement",e)}me("MuiHighlightElement",["root"]);const P0e=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return le(r,k0e,t)},M0e=Q("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function I0e(e){const{x:t,y:n,id:r,classes:o,color:s}=e,i=ce(e,S0e),a={id:r,classes:o,color:s,x:t,y:n},l=P0e(a);return p.jsx(M0e,P({pointerEvents:"none",ownerState:a,className:l.root,cx:0,cy:0,r:i.r===void 0?5:i.r},i))}const E0e=["slots","slotProps"];function T0e(e){var w;const{slots:t,slotProps:n}=e,r=ce(e,E0e),o=Y0(),s=Sr(),i=Cr(),{axis:a}=h.useContext(li),l=(w=a.x)==null?void 0:w.index;if(l===void 0||o===void 0)return null;const{series:c,stackingGroups:u}=o,{xAxis:d,yAxis:f,xAxisIds:m,yAxisIds:g}=s,y=m[0],x=g[0],v=(t==null?void 0:t.lineHighlight)??I0e;return p.jsx("g",P({},r,{children:u.flatMap(({ids:b})=>b.flatMap(C=>{const{xAxisId:k,yAxisId:M,xAxisKey:T=y,yAxisKey:E=x,stackedData:$,data:S,disableHighlight:D}=c[C],j=k??T,F=M??E;if(D||S[l]==null)return null;const A=Kc(d[j].scale),R=f[F].scale,I=d[j].data;if(I===void 0)throw new Error(`MUI X: ${j===W0?"The first `xAxis`":`The x-axis with id "${j}"`} should have data property to be able to display a line plot.`);const L=A(I[l]),O=R($[l][1]);if(!i.isPointInside({x:L,y:O}))return null;const _=kC(c[C],d[j],f[F]);return p.jsx(v,P({id:C,color:_(l),x:L,y:O},n==null?void 0:n.lineHighlight),`${C}`)}))}))}function D0e(e){return ve("MuiChartsGrid",e)}const FI=me("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),$0e=Q("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${FI.verticalLine}`]:t.verticalLine},{[`&.${FI.horizontalLine}`]:t.horizontalLine},t.root]})({}),IA=Q("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function R0e(e){const{axis:t,drawingArea:n,classes:r}=e,{scale:o,tickNumber:s,tickInterval:i}=t,a=G0({scale:o,tickNumber:s,tickInterval:i});return p.jsx(h.Fragment,{children:a.map(({formattedValue:l,offset:c})=>p.jsx(IA,{y1:n.top,y2:n.top+n.height,x1:c,x2:c,className:r.verticalLine},`vertical-${l}`))})}function A0e(e){const{axis:t,drawingArea:n,classes:r}=e,{scale:o,tickNumber:s,tickInterval:i}=t,a=G0({scale:o,tickNumber:s,tickInterval:i});return p.jsx(h.Fragment,{children:a.map(({formattedValue:l,offset:c})=>p.jsx(IA,{y1:c,y2:c,x1:n.left,x2:n.left+n.width,className:r.horizontalLine},`horizontal-${l}`))})}const O0e=["vertical","horizontal"],j0e=({classes:e})=>le({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},D0e,e);function F0e(e){const t=yt({props:e,name:"MuiChartsGrid"}),n=Cr(),{vertical:r,horizontal:o}=t,s=ce(t,O0e),{xAxis:i,xAxisIds:a,yAxis:l,yAxisIds:c}=Sr(),u=j0e(t),d=l[c[0]],f=i[a[0]];return p.jsxs($0e,P({},s,{className:u.root,children:[r&&p.jsx(R0e,{axis:f,drawingArea:n,classes:u}),o&&p.jsx(A0e,{axis:d,drawingArea:n,classes:u})]}))}function L0e(e){const{onAxisClick:t}=e,n=HC(),r=sa(),{axis:o}=h.useContext(li),{xAxisIds:s,xAxis:i,yAxisIds:a,yAxis:l}=Sr();return h.useEffect(()=>{const c=n.current;if(c===null||!t)return()=>{};const u=d=>{var v;d.preventDefault();const f=o.x&&o.x.index!==-1,m=f?s[0]:a[0],g=f?o.x&&o.x.index:o.y&&o.y.index;if(g==null)return;const y={};Object.keys(r).filter(w=>["bar","line"].includes(w)).forEach(w=>{var b;(b=r[w])==null||b.seriesOrder.forEach(C=>{const k=r[w].series[C],M=k.xAxisId??k.xAxisKey,T=k.yAxisId??k.yAxisKey,E=f?M:T;(E===void 0||E===m)&&(y[C]=k.data[g])})});const x=(v=(f?i:l)[m].data)==null?void 0:v[g];t(d,{dataIndex:g,axisValue:x,seriesValues:y})};return c.addEventListener("click",u),()=>{c.removeEventListener("click",u)}},[o.x,o.y,t,r,n,i,s,l,a]),p.jsx(h.Fragment,{})}const _0e=["message"],N0e=Q("text")(({theme:e})=>P({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function z0e(e){const{message:t}=e,n=ce(e,_0e),{top:r,left:o,height:s,width:i}=Cr();return p.jsx(N0e,P({x:o+i/2,y:r+s/2},n,{children:t??"Loading data…"}))}const B0e=["message"],H0e=Q("text")(({theme:e})=>P({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function V0e(e){const{message:t}=e,n=ce(e,B0e),{top:r,left:o,height:s,width:i}=Cr();return p.jsx(H0e,P({x:o+i/2,y:r+s/2},n,{children:t??"No data to display"}))}function G0e(){const e=sa();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function W0e(e){var n,r,o,s;const t=G0e();if(e.loading){const i=((n=e.slots)==null?void 0:n.loadingOverlay)??z0e;return p.jsx(i,P({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const i=((o=e.slots)==null?void 0:o.noDataOverlay)??V0e;return p.jsx(i,P({},(s=e.slotProps)==null?void 0:s.noDataOverlay))}return null}const U0e=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Y0e=e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:s,margin:i,colors:a,dataset:l,sx:c,tooltip:u,onAxisClick:d,onAreaClick:f,onLineClick:m,onMarkClick:g,axisHighlight:y,disableLineItemHighlight:x,legend:v,grid:w,topAxis:b,leftAxis:C,rightAxis:k,bottomAxis:M,children:T,slots:E,slotProps:$,skipAnimation:S,loading:D,highlightedItem:j,onHighlightChange:F,className:A,experimentalMarkRendering:R}=e,I=ce(e,U0e),O=`${pt()}-clip-path`,_=P({},I,{series:r.map(Z=>P({disableHighlight:!!x,type:"line"},Z)),width:o,height:s,margin:i,colors:a,dataset:l,xAxis:t??[{id:W0,scaleType:"point",data:Array.from({length:Math.max(...r.map(Z=>(Z.data??l??[]).length))},(Z,ne)=>ne)}],yAxis:n,sx:c,highlightedItem:j,onHighlightChange:F,disableAxisListener:(u==null?void 0:u.trigger)!=="axis"&&(y==null?void 0:y.x)==="none"&&(y==null?void 0:y.y)==="none"&&!d,className:A,skipAnimation:S}),N={onAxisClick:d},z={vertical:w==null?void 0:w.vertical,horizontal:w==null?void 0:w.horizontal},U={clipPath:`url(#${O})`},J={id:O},Y={slots:E,slotProps:$,onItemClick:f},B={slots:E,slotProps:$,onItemClick:m},W={slots:E,slotProps:$,onItemClick:g,skipAnimation:S,experimentalRendering:R},te={slots:E,slotProps:$,loading:D},X={topAxis:b,leftAxis:C,rightAxis:k,bottomAxis:M,slots:E,slotProps:$},q=P({x:"line"},y),G={slots:E,slotProps:$},ee=P({},v,{slots:E,slotProps:$}),H=P({},u,{slots:E,slotProps:$});return{chartContainerProps:_,axisClickHandlerProps:N,gridProps:z,clipPathProps:J,clipPathGroupProps:U,areaPlotProps:Y,linePlotProps:B,markPlotProps:W,overlayProps:te,chartsAxisProps:X,axisHighlightProps:q,lineHighlightPlotProps:G,legendProps:ee,tooltipProps:H,children:T}},EA=h.forwardRef(function(t,n){const r=yt({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:i,clipPathProps:a,clipPathGroupProps:l,areaPlotProps:c,linePlotProps:u,markPlotProps:d,overlayProps:f,chartsAxisProps:m,axisHighlightProps:g,lineHighlightPlotProps:y,legendProps:x,tooltipProps:v,children:w}=Y0e(r);return p.jsxs(cge,P({ref:n},o,{children:[r.onAxisClick&&p.jsx(L0e,P({},s)),p.jsx(F0e,P({},i)),p.jsxs("g",P({},l,{children:[p.jsx(Nme,P({},c)),p.jsx(qme,P({},u)),p.jsx(W0e,P({},f)),p.jsx(w0e,P({},g))]})),p.jsx(_ge,P({},m)),p.jsx("g",{"data-drawing-container":!0,children:p.jsx(vge,P({},d))}),p.jsx(T0e,P({},y)),p.jsx(v0e,P({},x)),!r.loading&&p.jsx(Zge,P({},v)),p.jsx(C0e,P({},a)),w]}))}),K0e=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function q0e(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function X0e(){return p.jsx(mu,{children:p.jsx(q0e,{})})}const LI=new Date().toISOString().slice(0,10),Q0e=new Date,_I=new Date(Q0e.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),Z0e=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),[o,s]=h.useState(!0),i=su(),[a,l]=h.useState(null),[c,u]=h.useState(null),d=1,f=ou(m=>m.userDiabetesDataList.userData);return h.useEffect(()=>{n&&i(Eh({page:1,appointment_day_after:LI,appointment_day_before:_I,user_id:d,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[i,LI,_I,d,n]),h.useEffect(()=>{if(a&&c){const m=f.filter(g=>{const y=Ut(g.appointment_day);return y.isAfter(a)&&y.isBefore(c)});t(m)}else t(f)},[f,a,c]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Diabetes Chart"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:a,onChange:m=>{l(m)}}),p.jsx(So,{label:"End Date",value:c,onChange:m=>{u(m)}})]}),p.jsx(so,{control:p.jsx(vi,{checked:o,onChange:()=>s(!o),name:"toggleView"}),label:o?"Show Data Grid":"Show Chart"}),o?p.jsx(EA,{xAxis:[{data:[1,2,3,5,8,10]}],series:[{data:[2,5.5,2,8.5,1.5,5]}],width:500,height:300}):p.jsx(gu,{rows:e,columns:K0e,slots:{toolbar:X0e},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},J0e=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function eye(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function tye(){return p.jsx(mu,{children:p.jsx(eye,{})})}const NI=new Date().toISOString().slice(0,10),nye=new Date,zI=new Date(nye.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),rye=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),[o,s]=h.useState(!0),i=su(),[a,l]=h.useState(null),[c,u]=h.useState(null),d=1,f=ou(m=>m.userWeightDataList.userData);return h.useEffect(()=>{n&&i(Ih({page:1,appointment_day_after:NI,appointment_day_before:zI,user_id:d,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[i,NI,zI,d,n]),h.useEffect(()=>{if(a&&c){const m=f.filter(g=>{const y=Ut(g.appointment_day);return y.isAfter(a)&&y.isBefore(c)});t(m)}else t(f)},[f,a,c]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Weight Chart"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:a,onChange:m=>{l(m)}}),p.jsx(So,{label:"End Date",value:c,onChange:m=>{u(m)}})]}),p.jsx(so,{control:p.jsx(vi,{checked:o,onChange:()=>s(!o),name:"toggleView"}),label:o?"Show Data Grid":"Show Chart"}),o?p.jsx(EA,{xAxis:[{data:[1,2,3,5,8,10]}],series:[{data:[2,5.5,2,8.5,1.5,5]}],width:500,height:300}):p.jsx(gu,{rows:e,columns:J0e,slots:{toolbar:tye},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},oye=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function sye(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function iye(){return p.jsx(mu,{children:p.jsx(sye,{})})}const BI=new Date().toISOString().slice(0,10),aye=new Date,HI=new Date(aye.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),lye=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=su(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=ou(d=>d.userMaternityDataList.userData);return h.useEffect(()=>{n&&o(Th({page:1,appointment_day_after:BI,appointment_day_before:HI,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,BI,HI,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const m=Ut(f.appointment_day);return m.isAfter(s)&&m.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Maternity Chart"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(So,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(gu,{rows:e,columns:oye,slots:{toolbar:iye},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},cye=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"patient_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1},{field:"heart_rate",headerName:"Heart Rate",width:150,editable:!1},{field:"blood_pressure_systolic",headerName:"B.P. systolic",width:150,editable:!1},{field:"blood_pressure_diastolic",headerName:"B.P. diastolic",width:150,editable:!1},{field:"oxygen_saturation",headerName:"Oxygen Saturation",width:150,editable:!1}];function uye(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function dye(){return p.jsx(mu,{children:p.jsx(uye,{})})}const VI=new Date().toISOString().slice(0,10),fye=new Date,GI=new Date(fye.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),pye=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=su(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=ou(d=>d.userHeartDataList.userData);return h.useEffect(()=>{n&&o(Mh({page:1,appointment_day_after:VI,appointment_day_before:GI,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,VI,GI,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const m=Ut(f.appointment_day);return m.isAfter(s)&&m.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Cardiac Chart"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(So,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(gu,{rows:e,columns:cye,slots:{toolbar:dye},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},hye=[{field:"id",headerName:"ID",width:90},{field:"expiration_date",headerName:"Expiration Date",width:150,editable:!1},{field:"issue_date",headerName:"Issue Date",width:150,editable:!1},{field:"doctor_full_name",headerName:"Doctor",width:150,editable:!1},{field:"medication",width:150,headerName:"Medication",editable:!1},{field:"dosage",headerName:"Dosage",width:150,editable:!1},{field:"frequency",headerName:"Frequency",width:150,editable:!1},{field:"refill_info",headerName:"Refill Info",width:150,editable:!1},{field:"instructions",headerName:"Instructions",width:150,editable:!1}];function mye(){const e=Qe(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(ut,{onClick:t,children:"Download CSV"})}function gye(){return p.jsx(mu,{children:p.jsx(mye,{})})}const WI=new Date().toISOString().slice(0,10),yye=new Date,UI=new Date(yye.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),vye=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=su(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=ou(d=>d.userPrescriptionDataList.userData);return h.useEffect(()=>{n&&o(Dh({page:1,expiration_date_after:WI,expiration_date_before:UI,user_id:c,rejectValue:"Failed to fetch Prescription."})).then(()=>r(!1))},[o,WI,UI,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const m=Ut(f.expiration_date);return m.isAfter(s)&&m.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(We,{sx:{height:"100%"},children:[p.jsx(we,{variant:"h6",gutterBottom:!0,children:"Prescription"}),p.jsxs(rl,{dateAdapter:lu,children:[p.jsx(So,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(So,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(gu,{rows:e,columns:hye,slots:{toolbar:gye},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})};class xye extends h.Component{constructor(n){super(n);ui(this,"handleChange",n=>r=>{this.setState({...this.state,[n]:r.target.checked})});this.state={showCardiacChart:!0,showMaternityChart:!1,showDiabetesChart:!0,showWeightChart:!0,showUserAppointments:!0,showPrescriptions:!0}}render(){return p.jsxs("div",{children:[p.jsxs(Uo,{children:[p.jsx(we,{variant:"h4",gutterBottom:!0,children:"User Information"}),p.jsxs(sw,{children:[p.jsx(so,{control:p.jsx(vi,{checked:this.state.showPrescriptions,onChange:this.handleChange("showPrescriptions"),value:"prescriptions",color:"primary"}),label:"Prescriptions"}),p.jsx(so,{control:p.jsx(vi,{checked:this.state.showCardiacChart,onChange:this.handleChange("showCardiacChart"),value:"cardiacChart",color:"primary"}),label:"Cardiac Chart"}),p.jsx(so,{control:p.jsx(vi,{checked:this.state.showMaternityChart,onChange:this.handleChange("showMaternityChart"),value:"maternityChart",color:"primary"}),label:"Maternity Chart"}),p.jsx(so,{control:p.jsx(vi,{checked:this.state.showDiabetesChart,onChange:this.handleChange("showDiabetesChart"),value:"diabetesChart",color:"primary"}),label:"Diabetes Chart"}),p.jsx(so,{control:p.jsx(vi,{checked:this.state.showWeightChart,onChange:this.handleChange("showWeightChart"),value:"weightChart",color:"primary"}),label:"Weight Chart"}),p.jsx(so,{control:p.jsx(vi,{checked:this.state.showUserAppointments,onChange:this.handleChange("showUserAppointments"),value:"userAppointments",color:"primary"}),label:"User Appointments"})]})]}),p.jsx(Uo,{children:p.jsxs(sr,{container:!0,spacing:2,children:[this.state.showPrescriptions&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(vye,{})}),this.state.showPrescriptions&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(Gn,{})}),this.state.showCardiacChart&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(pye,{})}),this.state.showCardiacChart&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(Gn,{})}),this.state.showMaternityChart&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(lye,{})}),this.state.showMaternityChart&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(Gn,{})}),p.jsxs(sr,{container:!0,spacing:2,children:[this.state.showDiabetesChart&&p.jsx(sr,{item:!0,xs:12,md:6,children:p.jsx(Z0e,{})}),this.state.showWeightChart&&p.jsx(sr,{item:!0,xs:12,md:6,children:p.jsx(rye,{})})]}),(this.state.showDiabetesChart||this.state.showWeightChart)&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(Gn,{})}),this.state.showUserAppointments&&p.jsx(sr,{item:!0,xs:12,children:p.jsx(eue,{})})]})})]})}}const YI=document.getElementById("root");YI?i5(YI).render(p.jsx(h.StrictMode,{children:p.jsx(sF,{children:p.jsx(DN,{store:wz,children:p.jsx(eL,{children:p.jsxs(g0,{children:[p.jsx(i0,{enableColorScheme:!0}),p.jsx(HB,{}),p.jsxs(QF,{children:[p.jsx(fa,{path:"/demo",element:p.jsx(xye,{})}),p.jsx(fa,{path:"/signin",element:p.jsx(zW,{})}),p.jsx(fa,{path:"/signup",element:p.jsx(UW,{})}),p.jsx(fa,{path:"/blog",element:p.jsx(TU,{})}),p.jsx(fa,{path:"/faq",element:p.jsx(TG,{})}),p.jsx(fa,{path:"/",element:p.jsxs(p.Fragment,{children:[p.jsx(XH,{}),p.jsx(Gn,{}),p.jsx(OG,{}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(fV,{}),p.jsx(WV,{}),p.jsx(Gn,{}),p.jsx(dG,{}),p.jsx(Gn,{}),p.jsx(SV,{}),p.jsx(Gn,{}),p.jsx(NV,{}),p.jsx(Gn,{})]})]})})]})]})})})})})):console.error("Root element not found"); diff --git a/assets/index-C4OoU55J.js b/assets/index-C4OoU55J.js new file mode 100644 index 0000000..c482bfc --- /dev/null +++ b/assets/index-C4OoU55J.js @@ -0,0 +1,383 @@ +var ij=Object.defineProperty;var aj=(e,t,n)=>t in e?ij(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yi=(e,t,n)=>aj(e,typeof t!="symbol"?t+"":t,n);function lj(e,t){for(var n=0;nr[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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var XE={exports:{}},kg={},QE={exports:{}},pt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vf=Symbol.for("react.element"),cj=Symbol.for("react.portal"),uj=Symbol.for("react.fragment"),dj=Symbol.for("react.strict_mode"),fj=Symbol.for("react.profiler"),pj=Symbol.for("react.provider"),hj=Symbol.for("react.context"),mj=Symbol.for("react.forward_ref"),gj=Symbol.for("react.suspense"),yj=Symbol.for("react.memo"),vj=Symbol.for("react.lazy"),FS=Symbol.iterator;function xj(e){return e===null||typeof e!="object"?null:(e=FS&&e[FS]||e["@@iterator"],typeof e=="function"?e:null)}var ZE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JE=Object.assign,eT={};function au(e,t,n){this.props=e,this.context=t,this.refs=eT,this.updater=n||ZE}au.prototype.isReactComponent={};au.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")};au.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tT(){}tT.prototype=au.prototype;function Sb(e,t,n){this.props=e,this.context=t,this.refs=eT,this.updater=n||ZE}var kb=Sb.prototype=new tT;kb.constructor=Sb;JE(kb,au.prototype);kb.isPureReactComponent=!0;var LS=Array.isArray,nT=Object.prototype.hasOwnProperty,Pb={current:null},rT={key:!0,ref:!0,__self:!0,__source:!0};function oT(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)nT.call(t,r)&&!rT.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,G=O[z];if(0>>1;zo(B,N))Wo(te,B)?(O[z]=te,O[W]=N,z=W):(O[z]=B,O[K]=N,z=K);else if(Wo(te,N))O[z]=te,O[W]=N,z=W;else break e}}return _}function o(O,_){var N=O.sortIndex-_.sortIndex;return N!==0?N:O.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,d=null,f=3,g=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=O)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function C(O){if(y=!1,b(O),!m)if(n(l)!==null)m=!0,E(k);else{var _=n(c);_!==null&&L(C,_.startTime-O)}}function k(O,_){m=!1,y&&(y=!1,x(I),I=-1),g=!0;var N=f;try{for(b(_),d=n(l);d!==null&&(!(d.expirationTime>_)||O&&!R());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var G=z(d.expirationTime<=_);_=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),b(_)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var K=n(c);K!==null&&L(C,K.startTime-_),J=!1}return J}finally{d=null,f=N,g=!1}}var M=!1,T=null,I=-1,D=5,S=-1;function R(){return!(e.unstable_now()-SO||125z?(O.sortIndex=N,t(c,O),n(l)===null&&O===n(c)&&(y?(x(I),I=-1):y=!0,L(C,N-z))):(O.sortIndex=G,t(l,O),m||g||(m=!0,E(k))),O},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(O){var _=f;return function(){var N=f;f=_;try{return O.apply(this,arguments)}finally{f=N}}}})(cT);lT.exports=cT;var Rj=lT.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dj=h,Wr=Rj;function ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),av=Object.prototype.hasOwnProperty,$j=/^[: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]*$/,NS={},zS={};function Aj(e){return av.call(zS,e)?!0:av.call(NS,e)?!1:$j.test(e)?zS[e]=!0:(NS[e]=!0,!1)}function Oj(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 jj(e,t,n,r){if(t===null||typeof t>"u"||Oj(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 ar(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zn[e]=new ar(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zn[t]=new ar(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zn[e]=new ar(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zn[e]=new ar(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){zn[e]=new ar(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zn[e]=new ar(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zn[e]=new ar(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zn[e]=new ar(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zn[e]=new ar(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ib=/[\-:]([a-z])/g;function Eb(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(Ib,Eb);zn[t]=new ar(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(Ib,Eb);zn[t]=new ar(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(Ib,Eb);zn[t]=new ar(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zn[e]=new ar(e,1,!1,e.toLowerCase(),null,!1,!1)});zn.xlinkHref=new ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zn[e]=new ar(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tb(e,t,n,r){var o=zn.hasOwnProperty(t)?zn[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Fy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ud(e):""}function Fj(e){switch(e.tag){case 5:return ud(e.type);case 16:return ud("Lazy");case 13:return ud("Suspense");case 19:return ud("SuspenseList");case 0:case 2:case 15:return e=Ly(e.type,!1),e;case 11:return e=Ly(e.type.render,!1),e;case 1:return e=Ly(e.type,!0),e;default:return""}}function dv(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 Kl:return"Fragment";case Gl:return"Portal";case lv:return"Profiler";case Rb:return"StrictMode";case cv:return"Suspense";case uv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fT:return(e.displayName||"Context")+".Consumer";case dT:return(e._context.displayName||"Context")+".Provider";case Db:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $b:return t=e.displayName||null,t!==null?t:dv(e.type)||"Memo";case ki:t=e._payload,e=e._init;try{return dv(e(t))}catch{}}return null}function Lj(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 dv(t);case 8:return t===Rb?"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 Yi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _j(e){var t=hT(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ap(e){e._valueTracker||(e._valueTracker=_j(e))}function mT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lm(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 fv(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function HS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yi(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 gT(e,t){t=t.checked,t!=null&&Tb(e,"checked",t,!1)}function pv(e,t){gT(e,t);var n=Yi(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")?hv(e,t.type,n):t.hasOwnProperty("defaultValue")&&hv(e,t.type,Yi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VS(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 hv(e,t,n){(t!=="number"||lm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dd=Array.isArray;function uc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Op.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cd={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},Nj=["Webkit","ms","Moz","O"];Object.keys(Cd).forEach(function(e){Nj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cd[t]=Cd[e]})});function bT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cd.hasOwnProperty(e)&&Cd[e]?(""+t).trim():t+"px"}function wT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zj=Jt({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 yv(e,t){if(t){if(zj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ke(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ke(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ke(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ke(62))}}function vv(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 xv=null;function Ab(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bv=null,dc=null,fc=null;function GS(e){if(e=Gf(e)){if(typeof bv!="function")throw Error(ke(280));var t=e.stateNode;t&&(t=Tg(t),bv(e.stateNode,e.type,t))}}function CT(e){dc?fc?fc.push(e):fc=[e]:dc=e}function ST(){if(dc){var e=dc,t=fc;if(fc=dc=null,GS(e),t)for(e=0;e>>=0,e===0?32:31-(Qj(e)/Zj|0)|0}var jp=64,Fp=4194304;function fd(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 fm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=fd(a):(s&=i,s!==0&&(r=fd(s)))}else i=n&~o,i!==0?r=fd(i):s!==0&&(r=fd(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Uf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ko(t),e[t]=n}function nF(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=kd),t2=" ",n2=!1;function VT(e,t){switch(e){case"keyup":return RF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function $F(e,t){switch(e){case"compositionend":return UT(t);case"keypress":return t.which!==32?null:(n2=!0,t2);case"textInput":return e=t.data,e===t2&&n2?null:e;default:return null}}function AF(e,t){if(Yl)return e==="compositionend"||!Bb&&VT(e,t)?(e=BT(),Th=_b=$i=null,Yl=!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)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=i2(n)}}function YT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qT(){for(var e=window,t=lm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lm(e.document)}return t}function Hb(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 HF(e){var t=qT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&YT(n.ownerDocument.documentElement,n)){if(r!==null&&Hb(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=a2(n,s);var i=a2(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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=document.documentMode,ql=null,Mv=null,Md=null,Iv=!1;function l2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Iv||ql==null||ql!==lm(r)||(r=ql,"selectionStart"in r&&Hb(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}),Md&&Jd(Md,r)||(Md=r,r=mm(Mv,"onSelect"),0Zl||(e.current=Av[Zl],Av[Zl]=null,Zl--)}function _t(e,t){Zl++,Av[Zl]=e.current,e.current=t}var qi={},qn=na(qi),vr=na(!1),Ua=qi;function Ac(e,t){var n=e.type.contextTypes;if(!n)return qi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xr(e){return e=e.childContextTypes,e!=null}function ym(){Ut(vr),Ut(qn)}function m2(e,t,n){if(qn.current!==qi)throw Error(ke(168));_t(qn,t),_t(vr,n)}function o5(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(ke(108,Lj(e)||"Unknown",o));return Jt({},n,r)}function vm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qi,Ua=qn.current,_t(qn,e),_t(vr,vr.current),!0}function g2(e,t,n){var r=e.stateNode;if(!r)throw Error(ke(169));n?(e=o5(e,t,Ua),r.__reactInternalMemoizedMergedChildContext=e,Ut(vr),Ut(qn),_t(qn,e)):Ut(vr),_t(vr,n)}var _s=null,Rg=!1,Qy=!1;function s5(e){_s===null?_s=[e]:_s.push(e)}function eL(e){Rg=!0,s5(e)}function ra(){if(!Qy&&_s!==null){Qy=!0;var e=0,t=It;try{var n=_s;for(It=1;e>=i,o-=i,zs=1<<32-Ko(t)+o|n<I?(D=T,T=null):D=T.sibling;var S=f(x,T,b[I],C);if(S===null){T===null&&(T=D);break}e&&T&&S.alternate===null&&t(x,T),w=s(S,w,I),M===null?k=S:M.sibling=S,M=S,T=D}if(I===b.length)return n(x,T),qt&&va(x,I),k;if(T===null){for(;II?(D=T,T=null):D=T.sibling;var R=f(x,T,S.value,C);if(R===null){T===null&&(T=D);break}e&&T&&R.alternate===null&&t(x,T),w=s(R,w,I),M===null?k=R:M.sibling=R,M=R,T=D}if(S.done)return n(x,T),qt&&va(x,I),k;if(T===null){for(;!S.done;I++,S=b.next())S=d(x,S.value,C),S!==null&&(w=s(S,w,I),M===null?k=S:M.sibling=S,M=S);return qt&&va(x,I),k}for(T=r(x,T);!S.done;I++,S=b.next())S=g(T,x,I,S.value,C),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?I:S.key),w=s(S,w,I),M===null?k=S:M.sibling=S,M=S);return e&&T.forEach(function(j){return t(x,j)}),qt&&va(x,I),k}function v(x,w,b,C){if(typeof b=="object"&&b!==null&&b.type===Kl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case $p:e:{for(var k=b.key,M=w;M!==null;){if(M.key===k){if(k=b.type,k===Kl){if(M.tag===7){n(x,M.sibling),w=o(M,b.props.children),w.return=x,x=w;break e}}else if(M.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ki&&x2(k)===M.type){n(x,M.sibling),w=o(M,b.props),w.ref=zu(x,M,b),w.return=x,x=w;break e}n(x,M);break}else t(x,M);M=M.sibling}b.type===Kl?(w=ja(b.props.children,x.mode,C,b.key),w.return=x,x=w):(C=Lh(b.type,b.key,b.props,null,x.mode,C),C.ref=zu(x,w,b),C.return=x,x=C)}return i(x);case Gl:e:{for(M=b.key;w!==null;){if(w.key===M)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(x,w.sibling),w=o(w,b.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=s1(b,x.mode,C),w.return=x,x=w}return i(x);case ki:return M=b._init,v(x,w,M(b._payload),C)}if(dd(b))return m(x,w,b,C);if(ju(b))return y(x,w,b,C);Vp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,b),w.return=x,x=w):(n(x,w),w=o1(b,x.mode,C),w.return=x,x=w),i(x)):n(x,w)}return v}var jc=c5(!0),u5=c5(!1),wm=na(null),Cm=null,tc=null,Gb=null;function Kb(){Gb=tc=Cm=null}function Yb(e){var t=wm.current;Ut(wm),e._currentValue=t}function Fv(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 hc(e,t){Cm=e,Gb=tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(Gb!==e)if(e={context:e,memoizedValue:t,next:null},tc===null){if(Cm===null)throw Error(ke(308));tc=e,Cm.dependencies={lanes:0,firstContext:e}}else tc=tc.next=e;return t}var Ia=null;function qb(e){Ia===null?Ia=[e]:Ia.push(e)}function d5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,qb(t)):(n.next=o.next,o.next=n),t.interleaved=n,Zs(e,r)}function Zs(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 Pi=!1;function Xb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f5(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 Us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,vt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Zs(e,n)}return o=r.interleaved,o===null?(t.next=t,qb(r)):(t.next=o.next,o.next=t),r.interleaved=t,Zs(e,n)}function Dh(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,jb(e,n)}}function b2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 Sm(e,t,n,r){var o=e.updateQueue;Pi=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,u=c=l=null,a=s;do{var f=a.lane,g=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(f=t,g=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(g,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(g,d,f):m,f==null)break e;d=Jt({},d,f);break e;case 2:Pi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=g,l=d):u=u.next=g,i|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=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 i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ka|=i,e.lanes=i,e.memoizedState=d}}function w2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Jy.transition;Jy.transition={};try{e(!1),t()}finally{It=n,Jy.transition=r}}function T5(){return Po().memoizedState}function oL(e,t,n){var r=Wi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},R5(e))D5(t,n);else if(n=d5(e,t,n,r),n!==null){var o=sr();Yo(n,e,r,o),$5(n,t,r)}}function sL(e,t,n){var r=Wi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(R5(e))D5(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Zo(a,i)){var l=t.interleaved;l===null?(o.next=o,qb(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=d5(e,t,o,r),n!==null&&(o=sr(),Yo(n,e,r,o),$5(n,t,r))}}function R5(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function D5(e,t){Id=Pm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $5(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jb(e,n)}}var Mm={readContext:ko,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useInsertionEffect:Un,useLayoutEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useMutableSource:Un,useSyncExternalStore:Un,useId:Un,unstable_isNewReconciler:!1},iL={readContext:ko,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:ko,useEffect:S2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ah(4194308,4,k5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ah(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ah(4,2,e,t)},useMemo:function(e,t){var n=ls();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ls();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=oL.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:C2,useDebugValue:ow,useDeferredValue:function(e){return ls().memoizedState=e},useTransition:function(){var e=C2(!1),t=e[0];return e=rL.bind(null,e[1]),ls().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,o=ls();if(qt){if(n===void 0)throw Error(ke(407));n=n()}else{if(n=t(),En===null)throw Error(ke(349));Ga&30||g5(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,S2(v5.bind(null,r,s,e),[e]),r.flags|=2048,lf(9,y5.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ls(),t=En.identifierPrefix;if(qt){var n=Bs,r=zs;n=(r&~(1<<32-Ko(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=sf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ps]=t,e[nf]=r,H5(e,t,!1,!1),t.stateNode=e;e:{switch(i=vv(n,r),n){case"dialog":Ht("cancel",e),Ht("close",e),o=r;break;case"iframe":case"object":case"embed":Ht("load",e),o=r;break;case"video":case"audio":for(o=0;o_c&&(t.flags|=128,r=!0,Bu(s,!1),t.lanes=4194304)}else{if(!r)if(e=km(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bu(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!qt)return Wn(t),null}else 2*un()-s.renderingStartTime>_c&&n!==1073741824&&(t.flags|=128,r=!0,Bu(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=un(),t.sibling=null,n=Xt.current,_t(Xt,r?n&1|2:n&1),t):(Wn(t),null);case 22:case 23:return uw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ar&1073741824&&(Wn(t),t.subtreeFlags&6&&(t.flags|=8192)):Wn(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function hL(e,t){switch(Ub(t),t.tag){case 1:return xr(t.type)&&ym(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fc(),Ut(vr),Ut(qn),Jb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zb(t),null;case 13:if(Ut(Xt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Oc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ut(Xt),null;case 4:return Fc(),null;case 10:return Yb(t.type._context),null;case 22:case 23:return uw(),null;case 24:return null;default:return null}}var Wp=!1,Kn=!1,mL=typeof WeakSet=="function"?WeakSet:Set,He=null;function nc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){sn(e,t,r)}else n.current=null}function Wv(e,t,n){try{n()}catch(r){sn(e,t,r)}}var O2=!1;function gL(e,t){if(Ev=pm,e=qT(),Hb(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=i),f===s&&++u===r&&(l=i),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tv={focusedElem:e,selectionRange:n},pm=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;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 y=m.memoizedProps,v=m.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:No(t.type,y),v);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(C){sn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return m=O2,O2=!1,m}function Ed(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Wv(t,n,s)}o=o.next}while(o!==r)}}function Ag(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 Gv(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 W5(e){var t=e.alternate;t!==null&&(e.alternate=null,W5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ps],delete t[nf],delete t[$v],delete t[ZF],delete t[JF])),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 G5(e){return e.tag===5||e.tag===3||e.tag===4}function j2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G5(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 Kv(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=gm));else if(r!==4&&(e=e.child,e!==null))for(Kv(e,t,n),e=e.sibling;e!==null;)Kv(e,t,n),e=e.sibling}function Yv(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(Yv(e,t,n),e=e.sibling;e!==null;)Yv(e,t,n),e=e.sibling}var On=null,Bo=!1;function vi(e,t,n){for(n=n.child;n!==null;)K5(e,t,n),n=n.sibling}function K5(e,t,n){if(ys&&typeof ys.onCommitFiberUnmount=="function")try{ys.onCommitFiberUnmount(Pg,n)}catch{}switch(n.tag){case 5:Kn||nc(n,t);case 6:var r=On,o=Bo;On=null,vi(e,t,n),On=r,Bo=o,On!==null&&(Bo?(e=On,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):On.removeChild(n.stateNode));break;case 18:On!==null&&(Bo?(e=On,n=n.stateNode,e.nodeType===8?Xy(e.parentNode,n):e.nodeType===1&&Xy(e,n),Qd(e)):Xy(On,n.stateNode));break;case 4:r=On,o=Bo,On=n.stateNode.containerInfo,Bo=!0,vi(e,t,n),On=r,Bo=o;break;case 0:case 11:case 14:case 15:if(!Kn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Wv(n,t,i),o=o.next}while(o!==r)}vi(e,t,n);break;case 1:if(!Kn&&(nc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){sn(n,t,a)}vi(e,t,n);break;case 21:vi(e,t,n);break;case 22:n.mode&1?(Kn=(r=Kn)||n.memoizedState!==null,vi(e,t,n),Kn=r):vi(e,t,n);break;default:vi(e,t,n)}}function F2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mL),t.forEach(function(r){var o=PL.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Lo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vL(r/1960))-r,10e?16:e,Ai===null)var r=!1;else{if(e=Ai,Ai=null,Tm=0,vt&6)throw Error(ke(331));var o=vt;for(vt|=4,He=e.current;He!==null;){var s=He,i=s.child;if(He.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lun()-lw?Oa(e,0):aw|=n),br(e,t)}function tR(e,t){t===0&&(e.mode&1?(t=Fp,Fp<<=1,!(Fp&130023424)&&(Fp=4194304)):t=1);var n=sr();e=Zs(e,t),e!==null&&(Uf(e,t,n),br(e,n))}function kL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tR(e,n)}function PL(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(ke(314))}r!==null&&r.delete(t),tR(e,n)}var nR;nR=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,fL(e,t,n);gr=!!(e.flags&131072)}else gr=!1,qt&&t.flags&1048576&&i5(t,bm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oh(e,t),e=t.pendingProps;var o=Ac(t,qn.current);hc(t,n),o=tw(null,t,r,e,o,n);var s=nw();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,xr(r)?(s=!0,vm(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xb(t),o.updater=$g,t.stateNode=o,o._reactInternals=t,_v(t,r,e,n),t=Bv(null,t,r,!0,s,n)):(t.tag=0,qt&&s&&Vb(t),tr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=IL(r),e=No(r,e),o){case 0:t=zv(null,t,r,e,n);break e;case 1:t=D2(null,t,r,e,n);break e;case 11:t=T2(null,t,r,e,n);break e;case 14:t=R2(null,t,r,No(r.type,e),n);break e}throw Error(ke(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:No(r,o),zv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:No(r,o),D2(e,t,r,o,n);case 3:e:{if(N5(t),e===null)throw Error(ke(387));r=t.pendingProps,s=t.memoizedState,o=s.element,f5(e,t),Sm(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Lc(Error(ke(423)),t),t=$2(e,t,r,n,o);break e}else if(r!==o){o=Lc(Error(ke(424)),t),t=$2(e,t,r,n,o);break e}else for(Nr=Hi(t.stateNode.containerInfo.firstChild),Hr=t,qt=!0,Ho=null,n=u5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oc(),r===o){t=Js(e,t,n);break e}tr(e,t,r,n)}t=t.child}return t;case 5:return p5(t),e===null&&jv(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Rv(r,o)?i=null:s!==null&&Rv(r,s)&&(t.flags|=32),_5(e,t),tr(e,t,i,n),t.child;case 6:return e===null&&jv(t),null;case 13:return z5(e,t,n);case 4:return Qb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jc(t,null,r,n):tr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:No(r,o),T2(e,t,r,o,n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:return tr(e,t,t.pendingProps.children,n),t.child;case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,_t(wm,r._currentValue),r._currentValue=i,s!==null)if(Zo(s.value,i)){if(s.children===o.children&&!vr.current){t=Js(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Us(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Fv(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(ke(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Fv(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}tr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hc(t,n),o=ko(o),r=r(o),t.flags|=1,tr(e,t,r,n),t.child;case 14:return r=t.type,o=No(r,t.pendingProps),o=No(r.type,o),R2(e,t,r,o,n);case 15:return F5(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:No(r,o),Oh(e,t),t.tag=1,xr(r)?(e=!0,vm(t)):e=!1,hc(t,n),A5(t,r,o),_v(t,r,o,n),Bv(null,t,r,!0,e,n);case 19:return B5(e,t,n);case 22:return L5(e,t,n)}throw Error(ke(156,t.tag))};function rR(e,t){return RT(e,t)}function ML(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 go(e,t,n,r){return new ML(e,t,n,r)}function fw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IL(e){if(typeof e=="function")return fw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Db)return 11;if(e===$b)return 14}return 2}function Gi(e,t){var n=e.alternate;return n===null?(n=go(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 Lh(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")fw(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kl:return ja(n.children,o,s,t);case Rb:i=8,o|=8;break;case lv:return e=go(12,n,t,o|2),e.elementType=lv,e.lanes=s,e;case cv:return e=go(13,n,t,o),e.elementType=cv,e.lanes=s,e;case uv:return e=go(19,n,t,o),e.elementType=uv,e.lanes=s,e;case pT:return jg(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dT:i=10;break e;case fT:i=9;break e;case Db:i=11;break e;case $b:i=14;break e;case ki:i=16,r=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=go(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function ja(e,t,n,r){return e=go(7,e,r,t),e.lanes=n,e}function jg(e,t,n,r){return e=go(22,e,r,t),e.elementType=pT,e.lanes=n,e.stateNode={isHidden:!1},e}function o1(e,t,n){return e=go(6,e,null,t),e.lanes=n,e}function s1(e,t,n){return t=go(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function EL(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=Ny(0),this.expirationTimes=Ny(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ny(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pw(e,t,n,r,o,s,i,a,l){return e=new EL(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=go(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xb(s),e}function TL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aR)}catch(e){console.error(e)}}aR(),aT.exports=Xr;var Yf=aT.exports;const Yp=ai(Yf);var lR,U2=Yf;lR=U2.createRoot,U2.hydrateRoot;class OL extends h.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Error caught by ErrorBoundary:",t,n)}render(){return this.state.hasError?p.jsx("h1",{children:"Something went wrong."}):this.props.children}}/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cR(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FL(){return Math.random().toString(36).substr(2,8)}function G2(e,t){return{usr:e.state,key:e.key,idx:t}}function Jv(e,t,n,r){return n===void 0&&(n=null),uf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uu(t):t,{state:n,key:t&&t.key||r||FL()})}function uR(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 uu(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 LL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Oi.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(uf({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){a=Oi.Pop;let v=u(),x=v==null?null:v-c;c=v,l&&l({action:a,location:y.location,delta:x})}function f(v,x){a=Oi.Push;let w=Jv(y.location,v,x);c=u()+1;let b=G2(w,c),C=y.createHref(w);try{i.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(C)}s&&l&&l({action:a,location:y.location,delta:1})}function g(v,x){a=Oi.Replace;let w=Jv(y.location,v,x);c=u();let b=G2(w,c),C=y.createHref(w);i.replaceState(b,"",C),s&&l&&l({action:a,location:y.location,delta:0})}function m(v){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof v=="string"?v:uR(v);return w=w.replace(/ $/,"%20"),Cn(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let y={get action(){return a},get location(){return e(o,i)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(W2,d),l=v,()=>{o.removeEventListener(W2,d),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let x=m(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:g,go(v){return i.go(v)}};return y}var K2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(K2||(K2={}));function _L(e,t,n){return n===void 0&&(n="/"),NL(e,t,n,!1)}function NL(e,t,n,r){let o=typeof t=="string"?uu(t):t,s=pR(o.pathname||"/",n);if(s==null)return null;let i=dR(e);zL(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Cn(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=Fa([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(Cn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),dR(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:KL(c,s.index),routesMeta:u})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of fR(s.path))o(s,i,l)}),t}function fR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=fR(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function zL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:YL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const BL=/^:[\w-]+$/,HL=3,VL=2,UL=1,WL=10,GL=-2,Y2=e=>e==="*";function KL(e,t){let n=e.split("/"),r=n.length;return n.some(Y2)&&(r+=GL),t&&(r+=VL),n.filter(o=>!Y2(o)).reduce((o,s)=>o+(BL.test(s)?HL:s===""?UL:WL),r)}function YL(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 qL(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:f,isOptional:g}=u;if(f==="*"){let y=a[d]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return g&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function XL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cR(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,(i,a,l)=>(r.push({paramName:a,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 QL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cR(!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 pR(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 ZL(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?uu(e):e;return{pathname:n?n.startsWith("/")?n:JL(n,t):t,search:o_(r),hash:s_(o)}}function JL(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 i1(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 and the router will parse it for you.'}function e_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function t_(e,t){let n=e_(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function n_(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=uu(e):(o=uf({},e),Cn(!o.pathname||!o.pathname.includes("?"),i1("?","pathname","search",o)),Cn(!o.pathname||!o.pathname.includes("#"),i1("#","pathname","hash",o)),Cn(!o.search||!o.search.includes("#"),i1("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=ZL(o,a),c=i&&i!=="/"&&i.endsWith("/"),u=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Fa=e=>e.join("/").replace(/\/\/+/g,"/"),r_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function i_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hR=["post","put","patch","delete"];new Set(hR);const a_=["get",...hR];new Set(a_);/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=n_(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Fa([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,s,e])}function d_(e,t){return f_(e,t)}function f_(e,t,n,r){Hg()||Cn(!1);let{navigator:o}=h.useContext(zg),{matches:s}=h.useContext(du),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=gR(),u;if(t){var d;let v=typeof t=="string"?uu(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||Cn(!1),u=v}else u=c;let f=u.pathname||"/",g=f;if(l!=="/"){let v=l.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=_L(e,{pathname:g}),y=y_(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Fa([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Fa([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),s,n,r);return t&&y?h.createElement(Bg.Provider,{value:{location:df({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Oi.Pop}},y):y}function p_(){let e=w_(),t=i_(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const h_=h.createElement(p_,null);class m_ extends h.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?h.createElement(du.Provider,{value:this.props.routeContext},h.createElement(mR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function g_(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(yw);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(du.Provider,{value:t},r)}function y_(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Cn(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let g,m=!1,y=null,v=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||h_,l&&(c<0&&f===0?(m=!0,v=null):c===f&&(m=!0,v=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,f+1)),w=()=>{let b;return g?b=y:m?b=v:d.route.Component?b=h.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,h.createElement(g_,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(m_,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):w()},null)}var vR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vR||{}),$m=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}($m||{});function v_(e){let t=h.useContext(yw);return t||Cn(!1),t}function x_(e){let t=h.useContext(l_);return t||Cn(!1),t}function b_(e){let t=h.useContext(du);return t||Cn(!1),t}function xR(e){let t=b_(),n=t.matches[t.matches.length-1];return n.route.id||Cn(!1),n.route.id}function w_(){var e;let t=h.useContext(mR),n=x_($m.UseRouteError),r=xR($m.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C_(){let{router:e}=v_(vR.UseNavigateStable),t=xR($m.UseNavigateStable),n=h.useRef(!1);return yR(()=>{n.current=!0}),h.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,df({fromRouteId:t},s)))},[e,t])}const X2={};function S_(e,t){X2[t]||(X2[t]=!0,console.warn(t))}const Q2=(e,t,n)=>S_(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function k_(e,t){e!=null&&e.v7_startTransition||Q2("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Q2("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function ba(e){Cn(!1)}function P_(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Oi.Pop,navigator:s,static:i=!1,future:a}=e;Hg()&&Cn(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:s,static:i,future:df({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=uu(r));let{pathname:u="/",search:d="",hash:f="",state:g=null,key:m="default"}=r,y=h.useMemo(()=>{let v=pR(u,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:g,key:m},navigationType:o}},[l,u,d,f,g,m,o]);return y==null?null:h.createElement(zg.Provider,{value:c},h.createElement(Bg.Provider,{children:n,value:y}))}function M_(e){let{children:t,location:n}=e;return d_(ex(t),n)}new Promise(()=>{});function ex(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let s=[...t,o];if(r.type===h.Fragment){n.push.apply(n,ex(r.props.children,s));return}r.type!==ba&&Cn(!1),!r.props.index||!r.props.children||Cn(!1);let i={id:r.props.id||s.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&&(i.children=ex(r.props.children,s)),n.push(i)}),n}/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const I_="6";try{window.__reactRouterVersion=I_}catch{}const E_="startTransition",Z2=Va[E_];function T_(e){let{basename:t,children:n,future:r,window:o}=e,s=h.useRef();s.current==null&&(s.current=jL({window:o,v5Compat:!0}));let i=s.current,[a,l]=h.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=h.useCallback(d=>{c&&Z2?Z2(()=>l(d)):l(d)},[l,c]);return h.useLayoutEffect(()=>i.listen(u),[i,u]),h.useEffect(()=>k_(r),[r]),h.createElement(P_,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var J2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(J2||(J2={}));var ek;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ek||(ek={}));var bR={exports:{}},R_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",D_=R_,$_=D_;function wR(){}function CR(){}CR.resetWarningCache=wR;var A_=function(){function e(r,o,s,i,a,l){if(l!==$_){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:CR,resetWarningCache:wR};return n.PropTypes=n,n};bR.exports=A_();var O_=bR.exports;const V=ai(O_);function ei(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 ae(e){if(typeof e!="string")throw new Error(ei(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hs(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 SR(e){if(!hs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=SR(e[n])}),t}function Tn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return hs(e)&&hs(t)&&Object.keys(t).forEach(o=>{hs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hs(e[o])?r[o]=Tn(e[o],t[o],n):n.clone?r[o]=hs(t[o])?SR(t[o]):t[o]:r[o]=t[o]}),r}function Dd(e,t){return t?Tn(e,t,{clone:!1}):e}function j_(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=r.match(s))==null?void 0:i[1])||0)-+(((a=o.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function F_(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function L_(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function __(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);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=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Vg={xs:0,sm:600,md:900,lg:1200,xl:1536},tk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vg[e]}px)`},N_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Pr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||tk;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||tk;return Object.keys(t).reduce((i,a)=>{if(F_(s.keys,a)){const l=L_(r.containerQueries?r:N_,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Vg).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function kR(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function PR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function z_(e,...t){const n=kR(e),r=[n,...t].reduce((o,s)=>Tn(o,s),{});return PR(Object.keys(n),r)}function B_(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s{e[o]!=null&&(n[o]=!0)}),n}function La({values:e,breakpoints:t,base:n}){const r=n||B_(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((i,a,l)=>(Array.isArray(e)?(i[a]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(i[a]=e[a]!=null?e[a]:e[s],s=a):i[a]=e,i),{})}function Nc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Am(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Nc(e,n)||r,t&&(o=t(o,r,e)),o}function fn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Nc(l,r)||{};return Pr(i,a,d=>{let f=Am(c,o,d);return d===f&&typeof d=="string"&&(f=Am(c,o,`${t}${d==="default"?"":ae(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function H_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const V_={m:"margin",p:"padding"},U_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},W_=H_(e=>{if(e.length>2)if(nk[e])e=nk[e];else return[e];const[t,n]=e.split(""),r=V_[t],o=U_[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),vw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vw,...xw];function qf(e,t,n,r){const o=Nc(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:`-${a}`}:typeof o=="function"?o:()=>{}}function Ug(e){return qf(e,"spacing",8)}function qa(e,t){return typeof t=="string"||t==null?t:e(t)}function G_(e,t){return n=>e.reduce((r,o)=>(r[o]=qa(t,n),r),{})}function K_(e,t,n,r){if(!t.includes(n))return null;const o=W_(n),s=G_(o,r),i=e[n];return Pr(e,i,s)}function MR(e,t){const n=Ug(e.theme);return Object.keys(e).map(r=>K_(e,t,r,n)).reduce(Dd,{})}function nn(e){return MR(e,vw)}nn.propTypes={};nn.filterProps=vw;function rn(e){return MR(e,xw)}rn.propTypes={};rn.filterProps=xw;function Wg(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Dd(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function uo(e){return typeof e!="number"?e:`${e}px solid`}function Do(e,t){return fn({prop:e,themeKey:"borders",transform:t})}const Y_=Do("border",uo),q_=Do("borderTop",uo),X_=Do("borderRight",uo),Q_=Do("borderBottom",uo),Z_=Do("borderLeft",uo),J_=Do("borderColor"),e6=Do("borderTopColor"),t6=Do("borderRightColor"),n6=Do("borderBottomColor"),r6=Do("borderLeftColor"),o6=Do("outline",uo),s6=Do("outlineColor"),Gg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=qf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:qa(t,r)});return Pr(e,e.borderRadius,n)}return null};Gg.propTypes={};Gg.filterProps=["borderRadius"];Wg(Y_,q_,X_,Q_,Z_,J_,e6,t6,n6,r6,Gg,o6,s6);const Kg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=qf(e.theme,"spacing",8),n=r=>({gap:qa(t,r)});return Pr(e,e.gap,n)}return null};Kg.propTypes={};Kg.filterProps=["gap"];const Yg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=qf(e.theme,"spacing",8),n=r=>({columnGap:qa(t,r)});return Pr(e,e.columnGap,n)}return null};Yg.propTypes={};Yg.filterProps=["columnGap"];const qg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=qf(e.theme,"spacing",8),n=r=>({rowGap:qa(t,r)});return Pr(e,e.rowGap,n)}return null};qg.propTypes={};qg.filterProps=["rowGap"];const i6=fn({prop:"gridColumn"}),a6=fn({prop:"gridRow"}),l6=fn({prop:"gridAutoFlow"}),c6=fn({prop:"gridAutoColumns"}),u6=fn({prop:"gridAutoRows"}),d6=fn({prop:"gridTemplateColumns"}),f6=fn({prop:"gridTemplateRows"}),p6=fn({prop:"gridTemplateAreas"}),h6=fn({prop:"gridArea"});Wg(Kg,Yg,qg,i6,a6,l6,c6,u6,d6,f6,p6,h6);function gc(e,t){return t==="grey"?t:e}const m6=fn({prop:"color",themeKey:"palette",transform:gc}),g6=fn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gc}),y6=fn({prop:"backgroundColor",themeKey:"palette",transform:gc});Wg(m6,g6,y6);function Lr(e){return e<=1&&e!==0?`${e*100}%`:e}const v6=fn({prop:"width",transform:Lr}),bw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,i,a,l;const r=((i=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||Vg[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Lr(n)}};return Pr(e,e.maxWidth,t)}return null};bw.filterProps=["maxWidth"];const x6=fn({prop:"minWidth",transform:Lr}),b6=fn({prop:"height",transform:Lr}),w6=fn({prop:"maxHeight",transform:Lr}),C6=fn({prop:"minHeight",transform:Lr});fn({prop:"size",cssProperty:"width",transform:Lr});fn({prop:"size",cssProperty:"height",transform:Lr});const S6=fn({prop:"boxSizing"});Wg(v6,bw,x6,b6,w6,C6,S6);const Xf={border:{themeKey:"borders",transform:uo},borderTop:{themeKey:"borders",transform:uo},borderRight:{themeKey:"borders",transform:uo},borderBottom:{themeKey:"borders",transform:uo},borderLeft:{themeKey:"borders",transform:uo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:uo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gg},color:{themeKey:"palette",transform:gc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gc},backgroundColor:{themeKey:"palette",transform:gc},p:{style:rn},pt:{style:rn},pr:{style:rn},pb:{style:rn},pl:{style:rn},px:{style:rn},py:{style:rn},padding:{style:rn},paddingTop:{style:rn},paddingRight:{style:rn},paddingBottom:{style:rn},paddingLeft:{style:rn},paddingX:{style:rn},paddingY:{style:rn},paddingInline:{style:rn},paddingInlineStart:{style:rn},paddingInlineEnd:{style:rn},paddingBlock:{style:rn},paddingBlockStart:{style:rn},paddingBlockEnd:{style:rn},m:{style:nn},mt:{style:nn},mr:{style:nn},mb:{style:nn},ml:{style:nn},mx:{style:nn},my:{style:nn},margin:{style:nn},marginTop:{style:nn},marginRight:{style:nn},marginBottom:{style:nn},marginLeft:{style:nn},marginX:{style:nn},marginY:{style:nn},marginInline:{style:nn},marginInlineStart:{style:nn},marginInlineEnd:{style:nn},marginBlock:{style:nn},marginBlockStart:{style:nn},marginBlockEnd:{style:nn},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:Kg},rowGap:{style:qg},columnGap:{style:Yg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Lr},maxWidth:{style:bw},minWidth:{transform:Lr},height:{transform:Lr},maxHeight:{transform:Lr},minHeight:{transform:Lr},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 k6(...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 P6(e,t){return typeof e=="function"?e(t):e}function M6(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Nc(o,c)||{};return d?d(i):Pr(i,r,m=>{let y=Am(f,u,m);return m===y&&typeof m=="string"&&(y=Am(f,u,`${n}${m==="default"?"":ae(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Xf;function i(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=kR(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const g=P6(l[f],o);if(g!=null)if(typeof g=="object")if(s[f])d=Dd(d,e(f,g,o,s));else{const m=Pr({theme:o},g,y=>({[f]:y}));k6(m,g)?d[f]=t({sx:g,theme:o}):d=Dd(d,m)}else d=Dd(d,e(f,g,o,s))}),j_(o,PR(u,d))}return Array.isArray(r)?r.map(i):i(r)}return t}const Xi=M6();Xi.filterProps=["sx"];const I6=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Xf;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Qf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=I6(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return hs(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Fn(fu,--Mr):0,zc--,hn===10&&(zc=1,Qg--),hn}function Vr(){return hn=Mr2||pf(hn)>3?"":" "}function U6(e,t){for(;--t&&Vr()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return Zf(e,_h()+(t<6&&xs()==32&&Vr()==32))}function nx(e){for(;Vr();)switch(hn){case e:return Mr;case 34:case 39:e!==34&&e!==39&&nx(hn);break;case 40:e===41&&nx(e);break;case 92:Vr();break}return Mr}function W6(e,t){for(;Vr()&&e+hn!==57;)if(e+hn===84&&xs()===47)break;return"/*"+Zf(t,Mr-1)+"*"+Xg(e===47?e:Vr())}function G6(e){for(;!pf(xs());)Vr();return Zf(e,Mr)}function K6(e){return AR(zh("",null,null,null,[""],e=$R(e),0,[0],e))}function zh(e,t,n,r,o,s,i,a,l){for(var c=0,u=0,d=i,f=0,g=0,m=0,y=1,v=1,x=1,w=0,b="",C=o,k=s,M=r,T=b;v;)switch(m=w,w=Vr()){case 40:if(m!=108&&Fn(T,d-1)==58){tx(T+=kt(Nh(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:T+=Nh(w);break;case 9:case 10:case 13:case 32:T+=V6(m);break;case 92:T+=U6(_h()-1,7);continue;case 47:switch(xs()){case 42:case 47:qp(Y6(W6(Vr(),_h()),t,n),l);break;default:T+="/"}break;case 123*y:a[c++]=us(T)*x;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:x==-1&&(T=kt(T,/\f/g,"")),g>0&&us(T)-d&&qp(g>32?ok(T+";",r,n,d-1):ok(kt(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(qp(M=rk(T,t,n,c,u,o,a,b,C=[],k=[],d),s),w===123)if(u===0)zh(T,t,M,M,C,s,d,a,k);else switch(f===99&&Fn(T,3)===110?100:f){case 100:case 108:case 109:case 115:zh(e,M,M,r&&qp(rk(e,M,M,0,0,o,a,b,o,C=[],d),k),o,k,d,a,r?C:k);break;default:zh(T,M,M,M,[""],k,0,a,k)}}c=u=g=0,y=x=1,b=T="",d=i;break;case 58:d=1+us(T),g=m;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&H6()==125)continue}switch(T+=Xg(w),w*y){case 38:x=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(us(T)-1)*x,x=1;break;case 64:xs()===45&&(T+=Nh(Vr())),f=xs(),u=d=us(b=T+=G6(_h())),w++;break;case 45:m===45&&us(T)==2&&(y=0)}}return s}function rk(e,t,n,r,o,s,i,a,l,c,u){for(var d=o-1,f=o===0?s:[""],g=Sw(f),m=0,y=0,v=0;m0?f[x]+" "+w:kt(w,/&\f/g,f[x])))&&(l[v++]=b);return Zg(e,t,n,o===0?ww:a,l,c,u)}function Y6(e,t,n){return Zg(e,t,n,ER,Xg(B6()),ff(e,2,-2),0)}function ok(e,t,n,r){return Zg(e,t,n,Cw,ff(e,0,r),ff(e,r+1,-1),r)}function yc(e,t){for(var n="",r=Sw(e),o=0;o6)switch(Fn(e,t+1)){case 109:if(Fn(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Om+(Fn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tx(e,"stretch")?OR(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fn(e,t+1)!==115)break;case 6444:switch(Fn(e,us(e)-3-(~tx(e,"!important")&&10))){case 107:return kt(e,":",":"+St)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+St+(Fn(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Gn+"$2box$3")+e}break;case 5936:switch(Fn(e,t+11)){case 114:return St+e+Gn+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Gn+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Gn+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return St+e+Gn+e+e}return e}var r9=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Cw:t.return=OR(t.value,t.length);break;case TR:return yc([Vu(t,{value:kt(t.value,"@","@"+St)})],o);case ww:if(t.length)return z6(t.props,function(s){switch(N6(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yc([Vu(t,{props:[kt(s,/:(read-\w+)/,":"+Om+"$1")]})],o);case"::placeholder":return yc([Vu(t,{props:[kt(s,/:(plac\w+)/,":"+St+"input-$1")]}),Vu(t,{props:[kt(s,/:(plac\w+)/,":"+Om+"$1")]}),Vu(t,{props:[kt(s,/:(plac\w+)/,Gn+"input-$1")]})],o)}return""})}},o9=[r9],s9=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(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||o9,s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),x=1;x=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 y9={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},v9=!1,x9=/[A-Z]|^ms/g,b9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BR=function(t){return t.charCodeAt(1)===45},ik=function(t){return t!=null&&typeof t!="boolean"},a1=IR(function(e){return BR(e)?e:e.replace(x9,"-$&").toLowerCase()}),ak=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(b9,function(r,o,s){return ds={name:o,styles:s,next:ds},o})}return y9[t]!==1&&!BR(t)&&typeof n=="number"&&n!==0?n+"px":n},w9="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hf(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 ds={name:o.name,styles:o.styles,next:ds},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)ds={name:i.name,styles:i.styles,next:ds},i=i.next;var a=s.styles+";";return a}return C9(e,t,n)}case"function":{if(e!==void 0){var l=ds,c=n(e);return ds=l,hf(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function C9(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?M9:I9},dk=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},E9=!1,T9=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return NR(n,r,o),k9(function(){return zR(n,r,o)}),null},R9=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var a=dk(t,n,r),l=a||uk(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,g=1;gt($9(o)?n:o):t;return p.jsx(P9,{styles:r})}/** + * @mui/styled-engine v6.1.7 + * + * @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 GR(e,t){return rx(e,t)}function A9(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fk=[];function pk(e){return fk[0]=e,c0(fk)}const O9=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 j9(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=O9(t),i=Object.keys(s);function a(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,g){const m=i.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:g)-r/100}${n})`}function u(f){return i.indexOf(f)+1(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function L9(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 pu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=j9(n),l=KR(o);let c=Tn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...F9,...s}},i);return c=__(c),c.applyStyles=L9,c=t.reduce((u,d)=>Tn(u,d),c),c.unstable_sxConfig={...Xf,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(d){return Xi({sx:d,theme:this})},c}function _9(e){return Object.keys(e).length===0}function Iw(e=null){const t=h.useContext(u0);return!t||_9(t)?e:t}const N9=pu();function ul(e=N9){return Iw(e)}function z9({styles:e,themeId:t,defaultTheme:n={}}){const r=ul(n),o=typeof e=="function"?e(t&&r[t]||r):e;return p.jsx(WR,{styles:o})}const hk=e=>e,B9=()=>{let e=hk;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hk}}},YR=B9();function qR(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(Xi);return h.forwardRef(function(l,c){const u=ul(n),{className:d,component:f="div",...g}=Qf(l);return p.jsx(s,{as:f,ref:c,className:se(d,o?o(r):r),theme:t&&u[t]||u,...g})})}const V9={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 xe(e,t,n="Mui"){const r=V9[t];return r?`${n}-${r}`:`${YR.generate(e)}-${t}`}function ge(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=xe(e,o,n)}),r}var Ot={};/** + * @license React + * 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 Ew=Symbol.for("react.element"),Tw=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),f0=Symbol.for("react.strict_mode"),p0=Symbol.for("react.profiler"),h0=Symbol.for("react.provider"),m0=Symbol.for("react.context"),U9=Symbol.for("react.server_context"),g0=Symbol.for("react.forward_ref"),y0=Symbol.for("react.suspense"),v0=Symbol.for("react.suspense_list"),x0=Symbol.for("react.memo"),b0=Symbol.for("react.lazy"),W9=Symbol.for("react.offscreen"),XR;XR=Symbol.for("react.module.reference");function $o(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ew:switch(e=e.type,e){case d0:case p0:case f0:case y0:case v0:return e;default:switch(e=e&&e.$$typeof,e){case U9:case m0:case g0:case b0:case x0:case h0:return e;default:return t}}case Tw:return t}}}Ot.ContextConsumer=m0;Ot.ContextProvider=h0;Ot.Element=Ew;Ot.ForwardRef=g0;Ot.Fragment=d0;Ot.Lazy=b0;Ot.Memo=x0;Ot.Portal=Tw;Ot.Profiler=p0;Ot.StrictMode=f0;Ot.Suspense=y0;Ot.SuspenseList=v0;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return $o(e)===m0};Ot.isContextProvider=function(e){return $o(e)===h0};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ew};Ot.isForwardRef=function(e){return $o(e)===g0};Ot.isFragment=function(e){return $o(e)===d0};Ot.isLazy=function(e){return $o(e)===b0};Ot.isMemo=function(e){return $o(e)===x0};Ot.isPortal=function(e){return $o(e)===Tw};Ot.isProfiler=function(e){return $o(e)===p0};Ot.isStrictMode=function(e){return $o(e)===f0};Ot.isSuspense=function(e){return $o(e)===y0};Ot.isSuspenseList=function(e){return $o(e)===v0};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===d0||e===p0||e===f0||e===y0||e===v0||e===W9||typeof e=="object"&&e!==null&&(e.$$typeof===b0||e.$$typeof===x0||e.$$typeof===h0||e.$$typeof===m0||e.$$typeof===g0||e.$$typeof===XR||e.getModuleId!==void 0)};Ot.typeOf=$o;function QR(e){const{variants:t,...n}=e,r={variants:t,style:pk(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=pk(o.style))}),r}const G9=pu();function $d(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function K9(e){return e?(t,n)=>n[e]:null}function Y9(e,t,n){e.theme=X9(e.theme)?n:e.theme[t]||e.theme}function Bh(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Bh(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...s}=n;r=s}return ZR(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function ZR(e,t,n=[]){var o;let r;e:for(let s=0;s{A9(a,k=>k.filter(M=>M!==Xi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:g=K9(Z9(u)),...m}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let x=$d;u==="Root"||u==="root"?x=r:u?x=o:Q9(a)&&(x=void 0);const w=GR(a,{shouldForwardProp:x,label:q9(),...m}),b=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(T){return Bh(T,k)};if(hs(k)){const M=QR(k);return M.variants?function(I){return Bh(I,M)}:M.style}return k},C=(...k)=>{const M=[],T=k.map(b),I=[];if(M.push(s),c&&g&&I.push(function(j){var E,L;const A=(L=(E=j.theme.components)==null?void 0:E[c])==null?void 0:L.styleOverrides;if(!A)return null;const $={};for(const O in A)$[O]=Bh(j,A[O]);return g(j,$)}),c&&!y&&I.push(function(j){var $,E;const F=j.theme,A=(E=($=F==null?void 0:F.components)==null?void 0:$[c])==null?void 0:E.variants;return A?ZR(j,A):null}),v||I.push(Xi),Array.isArray(T[0])){const R=T.shift(),j=new Array(M.length).fill(""),F=new Array(I.length).fill("");let A;A=[...j,...R,...F],A.raw=[...j,...R.raw,...F],M.unshift(A)}const D=[...M,...T,...I],S=w(...D);return a.muiName&&(S.muiName=a.muiName),S};return w.withConfig&&(C.withConfig=w.withConfig),C}}function q9(e,t){return void 0}function X9(e){for(const t in e)return!1;return!0}function Q9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Z9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const wt=JR();function Bc(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 s=e[o],i=t[o];if(!i)n[o]=s||{};else if(!s)n[o]=i;else{n[o]={...i};for(const a in s)if(Object.prototype.hasOwnProperty.call(s,a)){const l=a;n[o][l]=Bc(s[l],i[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function eD(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bc(t.components[n].defaultProps,r)}function w0({props:e,name:t,defaultTheme:n,themeId:r}){let o=ul(n);return r&&(o=o[r]||o),eD({theme:o,name:t,props:e})}const at=typeof window<"u"?h.useLayoutEffect:h.useEffect;function J9(e,t,n,r,o){const[s,i]=h.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return at(()=>{if(!n)return;const a=n(e),l=()=>{i(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),s}const eN={...Va},tD=eN.useSyncExternalStore;function tN(e,t,n,r,o){const s=h.useCallback(()=>t,[t]),i=h.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=h.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[s,n,e]);return tD(l,a,i)}function nD(e={}){const{themeId:t}=e;return function(r,o={}){let s=Iw();s&&t&&(s=s[t]||s);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=eD({name:"MuiUseMediaQuery",props:o,theme:s});let d=typeof r=="function"?r(s):r;return d=d.replace(/^@media( ?)/m,""),(tD!==void 0?tN:J9)(d,a,l,c,u)}}nD();function nN(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rw(e,t=0,n=1){return nN(e,t,n)}function rN(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 Ps(e){if(e.type)return e;if(e.charAt(0)==="#")return Ps(rN(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ei(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(ei(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const oN=e=>{const t=Ps(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},hd=(e,t)=>{try{return oN(e)}catch{return e}};function Jf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<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 rD(e){e=Ps(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Jf({type:a,values:l})}function ox(e){e=Ps(e);let t=e.type==="hsl"||e.type==="hsla"?Ps(rD(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 sN(e,t){const n=ox(e),r=ox(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function be(e,t){return e=Ps(e),t=Rw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jf(e)}function Xp(e,t,n){try{return be(e,t)}catch{return e}}function dl(e,t){if(e=Ps(e),t=Rw(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 Jf(e)}function Ft(e,t,n){try{return dl(e,t)}catch{return e}}function fl(e,t){if(e=Ps(e),t=Rw(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 Jf(e)}function Lt(e,t,n){try{return fl(e,t)}catch{return e}}function iN(e,t=.15){return ox(e)>.5?dl(e,t):fl(e,t)}function Qp(e,t,n){try{return iN(e,t)}catch{return e}}const oD=V.oneOfType([V.func,V.object]);function mk(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Dw(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ad(e,t){var n,r,o;return h.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 zt(e){return e&&e.ownerDocument||document}function Gr(e){return zt(e).defaultView||window}function jm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gk=0;function aN(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{t==null&&(gk+=1,n(`mui-${gk}`))},[t]),r}const lN={...Va},yk=lN.useId;function mt(e){if(yk!==void 0){const t=yk();return e??t}return aN(e)}function Nn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[s,i]=h.useState(t),a=o?e:s,l=h.useCallback(c=>{o||i(c)},[]);return[a,l]}function ve(e){const t=h.useRef(e);return at(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{jm(n,t)})},e)}const vk={};function es(e,t){const n=h.useRef(vk);return n.current===vk&&(n.current=e(t)),n}const cN=[];function C0(e){h.useEffect(e,cN)}class S0{constructor(){yi(this,"currentId",null);yi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});yi(this,"disposeEffect",()=>this.clear)}static create(){return new S0}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function zr(){const e=es(S0.create).current;return C0(e.disposeEffect),e}function Hc(e){try{return e.matches(":focus-visible")}catch{}return!1}function sD(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const $w=e=>{const t=h.useRef({});return h.useEffect(()=>{t.current=e}),t.current},iD={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function le(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function xk(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 lD(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const g=se(n==null?void 0:n.className,s,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},y={...n,...o,...r};return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const i=aD({...o,...r}),a=xk(r),l=xk(o),c=t(i),u=se(c==null?void 0:c.className,n==null?void 0:n.className,s,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,...a};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function k0(e,t,n){return typeof e=="function"?e(t,n):e}function et(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:k0(n,r),{props:a,internalRef:l}=lD({...s,externalSlotProps:i}),c=tt(l,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return oc(t,{...a,ref:c},r)}function sa(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const cD=h.createContext(null);function Aw(){return h.useContext(cD)}const dN=typeof Symbol=="function"&&Symbol.for,fN=dN?Symbol.for("mui.nested"):"__THEME_NESTED__";function pN(e,t){return typeof t=="function"?t(e):{...e,...t}}function hN(e){const{children:t,theme:n}=e,r=Aw(),o=h.useMemo(()=>{const s=r===null?{...n}:pN(r,n);return s!=null&&(s[fN]=r!==null),s},[n,r]);return p.jsx(cD.Provider,{value:o,children:t})}const uD=h.createContext();function mN({value:e,...t}){return p.jsx(uD.Provider,{value:e??!0,...t})}const Bt=()=>h.useContext(uD)??!1,dD=h.createContext(void 0);function gN({value:e,children:t}){return p.jsx(dD.Provider,{value:e,children:t})}function yN(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?Bc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Bc(o,r):r}function vN({props:e,name:t}){const n=h.useContext(dD);return yN({props:e,name:t,theme:{components:n}})}const bk={};function wk(e,t,n,r=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?{...t,[e]:s}:s;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function fD(e){const{children:t,theme:n,themeId:r}=e,o=Iw(bk),s=Aw()||bk,i=wk(r,o,n),a=wk(r,s,n,!0),l=(r?i[r]:i).direction==="rtl";return p.jsx(hN,{theme:a,children:p.jsx(u0.Provider,{value:i,children:p.jsx(mN,{value:l,children:p.jsx(gN,{value:r?i[r].components:i.components,children:t})})})})}const Ck={theme:void 0};function xN(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(Ck.theme=o.theme,s=QR(e(Ck)),t=s,n=o.theme),s}}const Ow="mode",jw="color-scheme",bN="data-color-scheme";function wN(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Ow,colorSchemeStorageKey:s=jw,attribute:i=bN,colorSchemeNode:a="document.documentElement",nonce:l}=e||{};let c="",u=i;if(i==="class"&&(u=".%s"),i==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${a}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,g]=d[1].split("=");g||(c+=`${a}.removeAttribute('${f}'.replace('%s', light)); + ${a}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${a}.setAttribute('${f}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else c+=`${a}.setAttribute('${u}', colorScheme);`;return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${s}-dark') || '${r}'; + const light = localStorage.getItem('${s}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function Sk(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function pD(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 CN(e){return pD(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function l1(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 SN(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=Ow,colorSchemeStorageKey:i=jw,storageWindow:a=typeof window>"u"?void 0:window}=e,l=o.join(","),c=o.length>1,[u,d]=h.useState(()=>{const b=l1(s,t),C=l1(`${i}-light`,n),k=l1(`${i}-dark`,r);return{mode:b,systemMode:Sk(b),lightColorScheme:C,darkColorScheme:k}}),[,f]=h.useState(!1),g=h.useRef(!1);h.useEffect(()=>{c&&f(!0),g.current=!0},[c]);const m=CN(u),y=h.useCallback(b=>{d(C=>{if(b===C.mode)return C;const k=b??t;try{localStorage.setItem(s,k)}catch{}return{...C,mode:k,systemMode:Sk(k)}})},[s,t]),v=h.useCallback(b=>{b?typeof b=="string"?b&&!l.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):d(C=>{const k={...C};return pD(C,M=>{try{localStorage.setItem(`${i}-${M}`,b)}catch{}M==="light"&&(k.lightColorScheme=b),M==="dark"&&(k.darkColorScheme=b)}),k}):d(C=>{const k={...C},M=b.light===null?n:b.light,T=b.dark===null?r:b.dark;if(M)if(!l.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${i}-light`,M)}catch{}}if(T)if(!l.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=T;try{localStorage.setItem(`${i}-dark`,T)}catch{}}return k}):d(C=>{try{localStorage.setItem(`${i}-light`,n),localStorage.setItem(`${i}-dark`,r)}catch{}return{...C,lightColorScheme:n,darkColorScheme:r}})},[l,i,n,r]),x=h.useCallback(b=>{u.mode==="system"&&d(C=>{const k=b!=null&&b.matches?"dark":"light";return C.systemMode===k?C:{...C,systemMode:k}})},[u.mode]),w=h.useRef(x);return w.current=x,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const b=(...k)=>w.current(...k),C=window.matchMedia("(prefers-color-scheme: dark)");return C.addListener(b),b(C),()=>{C.removeListener(b)}},[c]),h.useEffect(()=>{if(a&&c){const b=C=>{const k=C.newValue;typeof C.key=="string"&&C.key.startsWith(i)&&(!k||l.match(k))&&(C.key.endsWith("light")&&v({light:k}),C.key.endsWith("dark")&&v({dark:k})),C.key===s&&(!k||["light","dark","system"].includes(k))&&y(k||t)};return a.addEventListener("storage",b),()=>{a.removeEventListener("storage",b)}}},[v,y,s,i,l,t,a,c]),{...u,mode:g.current||!c?u.mode:void 0,systemMode:g.current||!c?u.systemMode:void 0,colorScheme:g.current||!c?m:void 0,setMode:y,setColorScheme:v}}const kN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function PN(e){const{themeId:t,theme:n={},modeStorageKey:r=Ow,colorSchemeStorageKey:o=jw,disableTransitionOnChange:s=!1,defaultColorScheme:i,resolveTheme:a}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=h.createContext(void 0),u=()=>h.useContext(c)||l;function d(y){var Qe,Me,Ee,Ve,Ge;const{children:v,theme:x,modeStorageKey:w=r,colorSchemeStorageKey:b=o,disableTransitionOnChange:C=s,storageWindow:k=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:D=!1,defaultMode:S="system"}=y,R=h.useRef(!1),j=Aw(),F=h.useContext(c),A=!!F&&!I,$=h.useMemo(()=>x||(typeof n=="function"?n():n),[x]),E=$[t],{colorSchemes:L={},components:O={},cssVarPrefix:_,...N}=E||$,z=Object.keys(L).filter(Oe=>!!L[Oe]).join(","),G=h.useMemo(()=>z.split(","),[z]),J=typeof i=="string"?i:i.light,K=typeof i=="string"?i:i.dark,B=L[J]&&L[K]?S:((Me=(Qe=L[N.defaultColorScheme])==null?void 0:Qe.palette)==null?void 0:Me.mode)||((Ee=N.palette)==null?void 0:Ee.mode),{mode:W,setMode:te,systemMode:X,lightColorScheme:q,darkColorScheme:U,colorScheme:ee,setColorScheme:H}=SN({supportedColorSchemes:G,defaultLightColorScheme:J,defaultDarkColorScheme:K,modeStorageKey:w,colorSchemeStorageKey:b,defaultMode:B,storageWindow:k});let Z=W,ne=ee;A&&(Z=F.mode,ne=F.colorScheme);const oe=ne||N.defaultColorScheme,re=((Ve=N.generateThemeVars)==null?void 0:Ve.call(N))||N.vars,de={...N,components:O,colorSchemes:L,cssVarPrefix:_,vars:re};if(typeof de.generateSpacing=="function"&&(de.spacing=de.generateSpacing()),oe){const Oe=L[oe];Oe&&typeof Oe=="object"&&Object.keys(Oe).forEach(je=>{Oe[je]&&typeof Oe[je]=="object"?de[je]={...de[je],...Oe[je]}:de[je]=Oe[je]})}const ie=N.colorSchemeSelector;h.useEffect(()=>{if(ne&&T&&ie&&ie!=="media"){const Oe=ie;let je=ie;if(Oe==="class"&&(je=".%s"),Oe==="data"&&(je="[data-%s]"),Oe!=null&&Oe.startsWith("data-")&&!Oe.includes("%s")&&(je=`[${Oe}="%s"]`),je.startsWith("."))T.classList.remove(...G.map(Ue=>je.substring(1).replace("%s",Ue))),T.classList.add(je.substring(1).replace("%s",ne));else{const Ue=je.replace("%s",ne).match(/\[([^\]]+)\]/);if(Ue){const[Te,Ie]=Ue[1].split("=");Ie||G.forEach(We=>{T.removeAttribute(Te.replace(ne,We))}),T.setAttribute(Te,Ie?Ie.replace(/"|'/g,""):"")}else T.setAttribute(je,ne)}}},[ne,ie,T,G]),h.useEffect(()=>{let Oe;if(C&&R.current&&M){const je=M.createElement("style");je.appendChild(M.createTextNode(kN)),M.head.appendChild(je),window.getComputedStyle(M.body),Oe=setTimeout(()=>{M.head.removeChild(je)},1)}return()=>{clearTimeout(Oe)}},[ne,C,M]),h.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const we=h.useMemo(()=>({allColorSchemes:G,colorScheme:ne,darkColorScheme:U,lightColorScheme:q,mode:Z,setColorScheme:H,setMode:te,systemMode:X}),[G,ne,U,q,Z,H,te,X]);let Re=!0;(D||N.cssVariables===!1||A&&(j==null?void 0:j.cssVarPrefix)===_)&&(Re=!1);const Le=p.jsxs(h.Fragment,{children:[p.jsx(fD,{themeId:E?t:void 0,theme:a?a(de):de,children:v}),Re&&p.jsx(WR,{styles:((Ge=de.generateStyleSheets)==null?void 0:Ge.call(de))||[]})]});return A?Le:p.jsx(c.Provider,{value:we,children:Le})}const f=typeof i=="string"?i:i.light,g=typeof i=="string"?i:i.dark;return{CssVarsProvider:d,useColorScheme:u,getInitColorSchemeScript:y=>wN({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:g,modeStorageKey:r,...y})}}function MN(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 kk=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},IN=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},EN=(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 c1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return IN(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=EN(a,l);Object.assign(o,{[u]:d}),kk(s,a,`var(${u})`,c),kk(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function TN(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:s={},components:i,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=c1(l,t);let f=d;const g={},{[a]:m,...y}=s;if(Object.entries(y||{}).forEach(([b,C])=>{const{vars:k,css:M,varsWithDefaults:T}=c1(C,t);f=Tn(f,T),g[b]={css:M,vars:k}}),m){const{css:b,vars:C,varsWithDefaults:k}=c1(m,t);f=Tn(f,k),g[a]={css:b,vars:C}}function v(b,C){var M,T;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),b){if(k==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((T=(M=s[b])==null?void 0:M.palette)==null?void 0:T.mode)||b})`]:{":root":C}};if(k)return e.defaultColorScheme===b?`:root, ${k.replace("%s",String(b))}`:k.replace("%s",String(b))}return":root"}return{vars:f,generateThemeVars:()=>{let b={...c};return Object.entries(g).forEach(([,{vars:C}])=>{b=Tn(b,C)}),b},generateStyleSheets:()=>{var I,D;const b=[],C=e.defaultColorScheme||"light";function k(S,R){Object.keys(R).length&&b.push(typeof S=="string"?{[S]:{...R}}:S)}k(n(void 0,{...u}),u);const{[C]:M,...T}=g;if(M){const{css:S}=M,R=(D=(I=s[C])==null?void 0:I.palette)==null?void 0:D.mode,j=!r&&R?{colorScheme:R,...S}:{...S};k(n(C,{...j}),j)}return Object.entries(T).forEach(([S,{css:R}])=>{var A,$;const j=($=(A=s[S])==null?void 0:A.palette)==null?void 0:$.mode,F=!r&&j?{colorScheme:j,...R}:{...R};k(n(S,{...F}),F)}),b}}}function RN(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 DN=pu(),$N=wt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),AN=e=>w0({props:e,name:"MuiContainer",defaultTheme:DN}),ON=(e,t)=>{const n=l=>xe(t,l),{classes:r,fixed:o,disableGutters:s,maxWidth:i}=e,a={root:["root",i&&`maxWidth${ae(String(i))}`,o&&"fixed",s&&"disableGutters"]};return le(a,n,r)};function jN(e={}){const{createStyledComponent:t=$N,useThemeProps:n=AN,componentName:r="MuiContainer"}=e,o=t(({theme:i,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:a})=>a.fixed&&Object.keys(i.breakpoints.values).reduce((l,c)=>{const u=c,d=i.breakpoints.values[u];return d!==0&&(l[i.breakpoints.up(u)]={maxWidth:`${d}${i.breakpoints.unit}`}),l},{}),({theme:i,ownerState:a})=>({...a.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[i.breakpoints.up(a.maxWidth)]:{maxWidth:`${i.breakpoints.values[a.maxWidth]}${i.breakpoints.unit}`}}}));return h.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:g=!1,maxWidth:m="lg",classes:y,...v}=c,x={...c,component:d,disableGutters:f,fixed:g,maxWidth:m},w=ON(x,r);return p.jsx(o,{as:d,ownerState:x,className:se(w.root,u),ref:l,...v})})}const FN=(e,t)=>e.filter(n=>t.includes(n)),hu=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((i,a)=>{s<=e.keys.length-1&&(s===0?Object.assign(i,a):i[e.up(e.keys[s])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:FN(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const i=t[s];i!==void 0&&n((a,l)=>{r===s?Object.assign(a,l):a[e.up(s)]=l},i)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Fm(e){return`--Grid-${e}Spacing`}function P0(e){return`--Grid-parent-${e}Spacing`}const Pk="--Grid-columns",vc="--Grid-parent-columns",LN=({theme:e,ownerState:t})=>{const n={};return hu(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${vc}) - (var(${vc}) - ${o}) * (var(${P0("column")}) / var(${vc})))`}),r(n,s)}),n},_N=({theme:e,ownerState:t})=>{const n={};return hu(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${vc}) + var(${P0("column")}) * ${o} / var(${vc}))`}),r(n,s)}),n},NN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Pk]:12};return hu(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[Pk]:s,"> *":{[vc]:s}})}),n},zN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hu(e.breakpoints,t.rowSpacing,(r,o)=>{var i;const s=typeof o=="string"?o:(i=e.spacing)==null?void 0:i.call(e,o);r(n,{[Fm("row")]:s,"> *":{[P0("row")]:s}})}),n},BN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hu(e.breakpoints,t.columnSpacing,(r,o)=>{var i;const s=typeof o=="string"?o:(i=e.spacing)==null?void 0:i.call(e,o);r(n,{[Fm("column")]:s,"> *":{[P0("column")]:s}})}),n},HN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hu(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},VN=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Fm("row")}) var(${Fm("column")})`}}),UN=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},WN=(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,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},GN=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],KN=pu(),YN=wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function qN(e){return w0({props:e,name:"MuiGrid",defaultTheme:KN})}function XN(e={}){const{createStyledComponent:t=YN,useThemeProps:n=qN,componentName:r="MuiGrid"}=e,o=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:g,size:m}=l,y={root:["root",u&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...GN(d),...UN(m),...u?WN(f,c.breakpoints.keys[0]):[]]};return le(y,v=>xe(r,v),{})};function s(l,c,u=()=>!0){const d={};return l===null||(Array.isArray(l)?l.forEach((f,g)=>{f!==null&&u(f)&&c.keys[g]&&(d[c.keys[g]]=f)}):typeof l=="object"?Object.keys(l).forEach(f=>{const g=l[f];g!=null&&u(g)&&(d[f]=g)}):d[c.keys[0]]=l),d}const i=t(NN,BN,zN,LN,HN,VN,_N),a=h.forwardRef(function(c,u){const d=ul(),f=n(c),g=Qf(f),{className:m,children:y,columns:v=12,container:x=!1,component:w="div",direction:b="row",wrap:C="wrap",size:k={},offset:M={},spacing:T=0,rowSpacing:I=T,columnSpacing:D=T,unstable_level:S=0,...R}=g,j=s(k,d.breakpoints,N=>N!==!1),F=s(M,d.breakpoints),A=c.columns??(S?void 0:v),$=c.spacing??(S?void 0:T),E=c.rowSpacing??c.spacing??(S?void 0:I),L=c.columnSpacing??c.spacing??(S?void 0:D),O={...g,level:S,columns:A,container:x,direction:b,wrap:C,spacing:$,rowSpacing:E,columnSpacing:L,size:j,offset:F},_=o(O,d);return p.jsx(i,{ref:u,as:w,ownerState:O,className:se(_.root,m),...R,children:h.Children.map(y,N=>{var z;return h.isValidElement(N)&&Ad(N,["Grid"])&&x&&N.props.container?h.cloneElement(N,{unstable_level:((z=N.props)==null?void 0:z.unstable_level)??S+1}):N})})});return a.muiName="Grid",a}const QN=pu(),ZN=wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function JN(e){return w0({props:e,name:"MuiStack",defaultTheme:QN})}function e8(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],n8=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Pr({theme:t},La({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Ug(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),{}),s=La({values:e.direction,base:o}),i=La({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((l,c,u)=>{if(!s[l]){const f=c>0?s[u[c-1]]:"column";s[l]=f}}),n=Tn(n,Pr({theme:t},i,(l,c)=>e.useFlexGap?{gap:qa(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${t8(c?s[c]:e.direction)}`]:qa(r,l)}}))}return n=z_(t.breakpoints,n),n};function r8(e={}){const{createStyledComponent:t=ZN,useThemeProps:n=JN,componentName:r="MuiStack"}=e,o=()=>le({root:["root"]},l=>xe(r,l),{}),s=t(n8);return h.forwardRef(function(l,c){const u=n(l),d=Qf(u),{component:f="div",direction:g="column",spacing:m=0,divider:y,children:v,className:x,useFlexGap:w=!1,...b}=d,C={direction:g,spacing:m,useFlexGap:w},k=o();return p.jsx(s,{as:f,ownerState:C,ref:c,className:se(k.root,x),...b,children:y?e8(v,y):v})})}const mf={black:"#000",white:"#fff"},o8={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"},wl={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"},Cl={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"},Uu={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"},Sl={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"},kl={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"},Pl={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 hD(){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:mf.white,default:mf.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 s8=hD();function mD(){return{text:{primary:mf.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:mf.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 Mk=mD();function Ik(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=fl(e.main,o):t==="dark"&&(e.dark=dl(e.main,s)))}function i8(e="light"){return e==="dark"?{main:Sl[200],light:Sl[50],dark:Sl[400]}:{main:Sl[700],light:Sl[400],dark:Sl[800]}}function a8(e="light"){return e==="dark"?{main:wl[200],light:wl[50],dark:wl[400]}:{main:wl[500],light:wl[300],dark:wl[700]}}function l8(e="light"){return e==="dark"?{main:Cl[500],light:Cl[300],dark:Cl[700]}:{main:Cl[700],light:Cl[400],dark:Cl[800]}}function c8(e="light"){return e==="dark"?{main:kl[400],light:kl[300],dark:kl[700]}:{main:kl[700],light:kl[500],dark:kl[900]}}function u8(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:Pl[800],light:Pl[500],dark:Pl[900]}}function d8(e="light"){return e==="dark"?{main:Uu[400],light:Uu[300],dark:Uu[700]}:{main:"#ed6c02",light:Uu[500],dark:Uu[900]}}function Fw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,s=e.primary||i8(t),i=e.secondary||a8(t),a=e.error||l8(t),l=e.info||c8(t),c=e.success||u8(t),u=e.warning||d8(t);function d(y){return sN(y,Mk.text.primary)>=n?Mk.text.primary:s8.text.primary}const f=({color:y,name:v,mainShade:x=500,lightShade:w=300,darkShade:b=700})=>{if(y={...y},!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(ei(11,v?` (${v})`:"",x));if(typeof y.main!="string")throw new Error(ei(12,v?` (${v})`:"",JSON.stringify(y.main)));return Ik(y,"light",w,r),Ik(y,"dark",b,r),y.contrastText||(y.contrastText=d(y.main)),y};let g;return t==="light"?g=hD():t==="dark"&&(g=mD()),Tn({common:{...mf},mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:o8,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...g},o)}function f8(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function p8(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function h8(e){return Math.round(e*1e5)/1e5}const Ek={textTransform:"uppercase"},Tk='"Roboto", "Helvetica", "Arial", sans-serif';function gD(e,t){const{fontFamily:n=Tk,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,g=u||(v=>`${v/l*f}rem`),m=(v,x,w,b,C)=>({fontFamily:n,fontWeight:v,fontSize:g(x),lineHeight:w,...n===Tk?{letterSpacing:`${h8(b/x)}em`}:{},...C,...c}),y={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(i,14,1.75,.4,Ek),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,Ek),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tn({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...y},d,{clone:!1})}const m8=.2,g8=.14,y8=.12;function Kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${m8})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${g8})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${y8})`].join(",")}const v8=["none",Kt(0,2,1,-1,0,1,1,0,0,1,3,0),Kt(0,3,1,-2,0,2,2,0,0,1,5,0),Kt(0,3,3,-2,0,3,4,0,0,1,8,0),Kt(0,2,4,-1,0,4,5,0,0,1,10,0),Kt(0,3,5,-1,0,5,8,0,0,1,14,0),Kt(0,3,5,-1,0,6,10,0,0,1,18,0),Kt(0,4,5,-2,0,7,10,1,0,2,16,1),Kt(0,5,5,-3,0,8,10,1,0,3,14,2),Kt(0,5,6,-3,0,9,12,1,0,3,16,2),Kt(0,6,6,-3,0,10,14,1,0,4,18,3),Kt(0,6,7,-4,0,11,15,1,0,4,20,3),Kt(0,7,8,-4,0,12,17,2,0,5,22,4),Kt(0,7,8,-4,0,13,19,2,0,5,24,4),Kt(0,7,9,-4,0,14,21,2,0,5,26,4),Kt(0,8,9,-5,0,15,22,2,0,6,28,5),Kt(0,8,10,-5,0,16,24,2,0,6,30,5),Kt(0,8,11,-5,0,17,26,2,0,6,32,5),Kt(0,9,11,-5,0,18,28,2,0,7,34,6),Kt(0,9,12,-6,0,19,29,2,0,7,36,6),Kt(0,10,13,-6,0,20,31,3,0,8,38,7),Kt(0,10,13,-6,0,21,33,3,0,8,40,7),Kt(0,10,14,-6,0,22,35,3,0,8,42,7),Kt(0,11,14,-7,0,23,36,3,0,9,44,8),Kt(0,11,15,-7,0,24,38,3,0,9,46,8)],x8={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)"},yD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rk(e){return`${Math.round(e)}ms`}function b8(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function w8(e){const t={...x8,...e.easing},n={...yD,...e.duration};return{getAutoHeightDuration:b8,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Rk(i)} ${a} ${typeof l=="string"?l:Rk(l)}`).join(",")},...e,easing:t,duration:n}}const C8={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function S8(e){return hs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function vD(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;sTn(g,m),f),f.unstable_sxConfig={...Xf,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return Xi({sx:m,theme:this})},f.toRuntimeSource=vD,f}function ix(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 k8=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ix(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function bD(e){return e==="dark"?k8:[]}function P8(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,s=Fw(t);return{palette:s,opacity:{...xD(s.mode),...n},overlays:r||bD(s.mode),...o}}function M8(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 I8=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],E8=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return I8(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function T8(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function fe(e,t,n){!e[t]&&n&&(e[t]=n)}function md(e){return!e||!e.startsWith("hsl")?e:rD(e)}function As(e,t){`${t}Channel`in e||(e[`${t}Channel`]=hd(md(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 R8(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const is=e=>{try{return e()}catch{}},D8=(e="mui")=>MN(e);function u1(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=P8({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...i}=sx({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...xD(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||bD(o)},i}function $8(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:i=M8,colorSchemeSelector:a=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=D8(s),{[d]:g,light:m,dark:y,...v}=n,x={...v};let w=g;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(ei(21,d));const b=u1(x,w,c,d);m&&!x.light&&u1(x,m,void 0,"light"),y&&!x.dark&&u1(x,y,void 0,"dark");let C={defaultColorScheme:d,...b,cssVarPrefix:s,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:x,font:{...f8(b.typography),...b.font},spacing:R8(c.spacing)};Object.keys(C.colorSchemes).forEach(D=>{const S=C.colorSchemes[D].palette,R=j=>{const F=j.split("-"),A=F[1],$=F[2];return f(j,S[A][$])};if(S.mode==="light"&&(fe(S.common,"background","#fff"),fe(S.common,"onBackground","#000")),S.mode==="dark"&&(fe(S.common,"background","#000"),fe(S.common,"onBackground","#fff")),T8(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){fe(S.Alert,"errorColor",Ft(S.error.light,.6)),fe(S.Alert,"infoColor",Ft(S.info.light,.6)),fe(S.Alert,"successColor",Ft(S.success.light,.6)),fe(S.Alert,"warningColor",Ft(S.warning.light,.6)),fe(S.Alert,"errorFilledBg",R("palette-error-main")),fe(S.Alert,"infoFilledBg",R("palette-info-main")),fe(S.Alert,"successFilledBg",R("palette-success-main")),fe(S.Alert,"warningFilledBg",R("palette-warning-main")),fe(S.Alert,"errorFilledColor",is(()=>S.getContrastText(S.error.main))),fe(S.Alert,"infoFilledColor",is(()=>S.getContrastText(S.info.main))),fe(S.Alert,"successFilledColor",is(()=>S.getContrastText(S.success.main))),fe(S.Alert,"warningFilledColor",is(()=>S.getContrastText(S.warning.main))),fe(S.Alert,"errorStandardBg",Lt(S.error.light,.9)),fe(S.Alert,"infoStandardBg",Lt(S.info.light,.9)),fe(S.Alert,"successStandardBg",Lt(S.success.light,.9)),fe(S.Alert,"warningStandardBg",Lt(S.warning.light,.9)),fe(S.Alert,"errorIconColor",R("palette-error-main")),fe(S.Alert,"infoIconColor",R("palette-info-main")),fe(S.Alert,"successIconColor",R("palette-success-main")),fe(S.Alert,"warningIconColor",R("palette-warning-main")),fe(S.AppBar,"defaultBg",R("palette-grey-100")),fe(S.Avatar,"defaultBg",R("palette-grey-400")),fe(S.Button,"inheritContainedBg",R("palette-grey-300")),fe(S.Button,"inheritContainedHoverBg",R("palette-grey-A100")),fe(S.Chip,"defaultBorder",R("palette-grey-400")),fe(S.Chip,"defaultAvatarColor",R("palette-grey-700")),fe(S.Chip,"defaultIconColor",R("palette-grey-700")),fe(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),fe(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),fe(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),fe(S.LinearProgress,"primaryBg",Lt(S.primary.main,.62)),fe(S.LinearProgress,"secondaryBg",Lt(S.secondary.main,.62)),fe(S.LinearProgress,"errorBg",Lt(S.error.main,.62)),fe(S.LinearProgress,"infoBg",Lt(S.info.main,.62)),fe(S.LinearProgress,"successBg",Lt(S.success.main,.62)),fe(S.LinearProgress,"warningBg",Lt(S.warning.main,.62)),fe(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),fe(S.Slider,"primaryTrack",Lt(S.primary.main,.62)),fe(S.Slider,"secondaryTrack",Lt(S.secondary.main,.62)),fe(S.Slider,"errorTrack",Lt(S.error.main,.62)),fe(S.Slider,"infoTrack",Lt(S.info.main,.62)),fe(S.Slider,"successTrack",Lt(S.success.main,.62)),fe(S.Slider,"warningTrack",Lt(S.warning.main,.62));const j=Qp(S.background.default,.8);fe(S.SnackbarContent,"bg",j),fe(S.SnackbarContent,"color",is(()=>S.getContrastText(j))),fe(S.SpeedDialAction,"fabHoverBg",Qp(S.background.paper,.15)),fe(S.StepConnector,"border",R("palette-grey-400")),fe(S.StepContent,"border",R("palette-grey-400")),fe(S.Switch,"defaultColor",R("palette-common-white")),fe(S.Switch,"defaultDisabledColor",R("palette-grey-100")),fe(S.Switch,"primaryDisabledColor",Lt(S.primary.main,.62)),fe(S.Switch,"secondaryDisabledColor",Lt(S.secondary.main,.62)),fe(S.Switch,"errorDisabledColor",Lt(S.error.main,.62)),fe(S.Switch,"infoDisabledColor",Lt(S.info.main,.62)),fe(S.Switch,"successDisabledColor",Lt(S.success.main,.62)),fe(S.Switch,"warningDisabledColor",Lt(S.warning.main,.62)),fe(S.TableCell,"border",Lt(Xp(S.divider,1),.88)),fe(S.Tooltip,"bg",Xp(S.grey[700],.92))}if(S.mode==="dark"){fe(S.Alert,"errorColor",Lt(S.error.light,.6)),fe(S.Alert,"infoColor",Lt(S.info.light,.6)),fe(S.Alert,"successColor",Lt(S.success.light,.6)),fe(S.Alert,"warningColor",Lt(S.warning.light,.6)),fe(S.Alert,"errorFilledBg",R("palette-error-dark")),fe(S.Alert,"infoFilledBg",R("palette-info-dark")),fe(S.Alert,"successFilledBg",R("palette-success-dark")),fe(S.Alert,"warningFilledBg",R("palette-warning-dark")),fe(S.Alert,"errorFilledColor",is(()=>S.getContrastText(S.error.dark))),fe(S.Alert,"infoFilledColor",is(()=>S.getContrastText(S.info.dark))),fe(S.Alert,"successFilledColor",is(()=>S.getContrastText(S.success.dark))),fe(S.Alert,"warningFilledColor",is(()=>S.getContrastText(S.warning.dark))),fe(S.Alert,"errorStandardBg",Ft(S.error.light,.9)),fe(S.Alert,"infoStandardBg",Ft(S.info.light,.9)),fe(S.Alert,"successStandardBg",Ft(S.success.light,.9)),fe(S.Alert,"warningStandardBg",Ft(S.warning.light,.9)),fe(S.Alert,"errorIconColor",R("palette-error-main")),fe(S.Alert,"infoIconColor",R("palette-info-main")),fe(S.Alert,"successIconColor",R("palette-success-main")),fe(S.Alert,"warningIconColor",R("palette-warning-main")),fe(S.AppBar,"defaultBg",R("palette-grey-900")),fe(S.AppBar,"darkBg",R("palette-background-paper")),fe(S.AppBar,"darkColor",R("palette-text-primary")),fe(S.Avatar,"defaultBg",R("palette-grey-600")),fe(S.Button,"inheritContainedBg",R("palette-grey-800")),fe(S.Button,"inheritContainedHoverBg",R("palette-grey-700")),fe(S.Chip,"defaultBorder",R("palette-grey-700")),fe(S.Chip,"defaultAvatarColor",R("palette-grey-300")),fe(S.Chip,"defaultIconColor",R("palette-grey-300")),fe(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),fe(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),fe(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),fe(S.LinearProgress,"primaryBg",Ft(S.primary.main,.5)),fe(S.LinearProgress,"secondaryBg",Ft(S.secondary.main,.5)),fe(S.LinearProgress,"errorBg",Ft(S.error.main,.5)),fe(S.LinearProgress,"infoBg",Ft(S.info.main,.5)),fe(S.LinearProgress,"successBg",Ft(S.success.main,.5)),fe(S.LinearProgress,"warningBg",Ft(S.warning.main,.5)),fe(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),fe(S.Slider,"primaryTrack",Ft(S.primary.main,.5)),fe(S.Slider,"secondaryTrack",Ft(S.secondary.main,.5)),fe(S.Slider,"errorTrack",Ft(S.error.main,.5)),fe(S.Slider,"infoTrack",Ft(S.info.main,.5)),fe(S.Slider,"successTrack",Ft(S.success.main,.5)),fe(S.Slider,"warningTrack",Ft(S.warning.main,.5));const j=Qp(S.background.default,.98);fe(S.SnackbarContent,"bg",j),fe(S.SnackbarContent,"color",is(()=>S.getContrastText(j))),fe(S.SpeedDialAction,"fabHoverBg",Qp(S.background.paper,.15)),fe(S.StepConnector,"border",R("palette-grey-600")),fe(S.StepContent,"border",R("palette-grey-600")),fe(S.Switch,"defaultColor",R("palette-grey-300")),fe(S.Switch,"defaultDisabledColor",R("palette-grey-600")),fe(S.Switch,"primaryDisabledColor",Ft(S.primary.main,.55)),fe(S.Switch,"secondaryDisabledColor",Ft(S.secondary.main,.55)),fe(S.Switch,"errorDisabledColor",Ft(S.error.main,.55)),fe(S.Switch,"infoDisabledColor",Ft(S.info.main,.55)),fe(S.Switch,"successDisabledColor",Ft(S.success.main,.55)),fe(S.Switch,"warningDisabledColor",Ft(S.warning.main,.55)),fe(S.TableCell,"border",Ft(Xp(S.divider,1),.68)),fe(S.Tooltip,"bg",Xp(S.grey[700],.92))}As(S.background,"default"),As(S.background,"paper"),As(S.common,"background"),As(S.common,"onBackground"),As(S,"divider"),Object.keys(S).forEach(j=>{const F=S[j];F&&typeof F=="object"&&(F.main&&fe(S[j],"mainChannel",hd(md(F.main))),F.light&&fe(S[j],"lightChannel",hd(md(F.light))),F.dark&&fe(S[j],"darkChannel",hd(md(F.dark))),F.contrastText&&fe(S[j],"contrastTextChannel",hd(md(F.contrastText))),j==="text"&&(As(S[j],"primary"),As(S[j],"secondary")),j==="action"&&(F.active&&As(S[j],"active"),F.selected&&As(S[j],"selected")))})}),C=t.reduce((D,S)=>Tn(D,S),C);const k={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:E8(C)},{vars:M,generateThemeVars:T,generateStyleSheets:I}=TN(C,k);return C.vars=M,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([D,S])=>{C[D]=S}),C.generateThemeVars=T,C.generateStyleSheets=I,C.generateSpacing=function(){return KR(c.spacing,Ug(this))},C.getColorSchemeSelector=RN(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=i,C.unstable_sxConfig={...Xf,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(S){return Xi({sx:S,theme:this})},C.toRuntimeSource=vD,C}function Dk(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Fw({...n===!0?{}:n.palette,mode:t})})}function ep(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return sx(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=sx({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Dk(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Dk(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),$8({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const M0=ep(),wo="$$material";function Dn(){const e=ul(M0);return e[wo]||e}function A8(e){return p.jsx(z9,{...e,defaultTheme:M0,themeId:wo})}function wD(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xn=e=>wD(e)&&e!=="classes",Q=JR({themeId:wo,defaultTheme:M0,rootShouldForwardProp:Xn});function Lw(e){return function(n){return p.jsx(A8,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function O8(){return Qf}function _e(e){return vN(e)}const ax=typeof Lw({})=="function",j8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),F8=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),CD=(e,t=!1)=>{var s,i;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var u,d;const c=e.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:j8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...F8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(i=(s=e.components)==null?void 0:s.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(r=[r,o]),r},Hh="mui-ecs",L8=e=>{const t=CD(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Hh})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var i,a;const s=e.getColorSchemeSelector(r);s.startsWith("@")?n[s]={[`:root:not(:has(.${Hh}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:n[s.replace(/\s*&/,"")]={[`&:not(:has(.${Hh}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}}),t},_8=Lw(ax?({theme:e,enableColorScheme:t})=>CD(e,t):({theme:e})=>L8(e));function I0(e){const t=_e({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return p.jsxs(h.Fragment,{children:[ax&&p.jsx(_8,{enableColorScheme:r}),!ax&&!r&&p.jsx("span",{className:Hh,style:{display:"none"}}),n]})}var SD={exports:{}},kD={};/** + * @license React + * use-sync-external-store-with-selector.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 tp=h;function N8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var z8=typeof Object.is=="function"?Object.is:N8,B8=tp.useSyncExternalStore,H8=tp.useRef,V8=tp.useEffect,U8=tp.useMemo,W8=tp.useDebugValue;kD.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=H8(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=U8(function(){function l(g){if(!c){if(c=!0,u=g,g=r(g),o!==void 0&&i.hasValue){var m=i.value;if(o(m,g))return d=m}return d=g}if(m=d,z8(u,g))return m;var y=r(g);return o!==void 0&&o(m,y)?m:(u=g,d=y)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var a=B8(e,s[0],s[1]);return V8(function(){i.hasValue=!0,i.value=a},[a]),W8(a),a};SD.exports=kD;var G8=SD.exports,Br="default"in Va?_r:Va,$k=Symbol.for("react-redux-context"),Ak=typeof globalThis<"u"?globalThis:{};function K8(){if(!Br.createContext)return{};const e=Ak[$k]??(Ak[$k]=new Map);let t=e.get(Br.createContext);return t||(t=Br.createContext(null),e.set(Br.createContext,t)),t}var Qi=K8(),Y8=()=>{throw new Error("uSES not initialized!")};function _w(e=Qi){return function(){return Br.useContext(e)}}var PD=_w(),MD=Y8,q8=e=>{MD=e},X8=(e,t)=>e===t;function Q8(e=Qi){const t=e===Qi?PD:_w(e),n=(r,o={})=>{const{equalityFn:s=X8,devModeChecks:i={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:c,stabilityCheck:u,identityFunctionCheck:d}=t();Br.useRef(!0);const f=Br.useCallback({[r.name](m){return r(m)}}[r.name],[r,u,i.stabilityCheck]),g=MD(l.addNestedSub,a.getState,c||a.getState,f,s);return Br.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var mu=Q8();function Z8(e){e()}function J8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Z8(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Ok={notify(){},get:()=>[]};function ez(e,t){let n,r=Ok,o=0,s=!1;function i(y){u();const v=r.subscribe(y);let x=!1;return()=>{x||(x=!0,v(),d())}}function a(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return s}function u(){o++,n||(n=e.subscribe(l),r=J8())}function d(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Ok)}function f(){s||(s=!0,u())}function g(){s&&(s=!1,d())}const m={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:g,getListeners:()=>r};return m}var tz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nz=typeof navigator<"u"&&navigator.product==="ReactNative",rz=tz||nz?Br.useLayoutEffect:Br.useEffect;function oz({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const i=Br.useMemo(()=>{const c=ez(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,r,o,s]),a=Br.useMemo(()=>e.getState(),[e]);rz(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,a]);const l=t||Qi;return Br.createElement(l.Provider,{value:i},n)}var sz=oz;function ID(e=Qi){const t=e===Qi?PD:_w(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var iz=ID();function az(e=Qi){const t=e===Qi?iz:ID(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var gu=az();q8(G8.useSyncExternalStoreWithSelector);function An(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lz=typeof Symbol=="function"&&Symbol.observable||"@@observable",jk=lz,d1=()=>Math.random().toString(36).substring(7).split("").join("."),cz={INIT:`@@redux/INIT${d1()}`,REPLACE:`@@redux/REPLACE${d1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${d1()}`},Lm=cz;function Nw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ED(e,t,n){if(typeof e!="function")throw new Error(An(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(ED)(e,t)}let r=e,o=t,s=new Map,i=s,a=0,l=!1;function c(){i===s&&(i=new Map,s.forEach((v,x)=>{i.set(x,v)}))}function u(){if(l)throw new Error(An(3));return o}function d(v){if(typeof v!="function")throw new Error(An(4));if(l)throw new Error(An(5));let x=!0;c();const w=a++;return i.set(w,v),function(){if(x){if(l)throw new Error(An(6));x=!1,c(),i.delete(w),s=null}}}function f(v){if(!Nw(v))throw new Error(An(7));if(typeof v.type>"u")throw new Error(An(8));if(typeof v.type!="string")throw new Error(An(17));if(l)throw new Error(An(9));try{l=!0,o=r(o,v)}finally{l=!1}return(s=i).forEach(w=>{w()}),v}function g(v){if(typeof v!="function")throw new Error(An(10));r=v,f({type:Lm.REPLACE})}function m(){const v=d;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(An(11));function w(){const C=x;C.next&&C.next(u())}return w(),{unsubscribe:v(w)}},[jk](){return this}}}return f({type:Lm.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:g,[jk]:m}}function uz(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Lm.INIT})>"u")throw new Error(An(12));if(typeof n(void 0,{type:Lm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function TD(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(An(14));c[d]=m,l=l||m!==g}return l=l||r.length!==Object.keys(i).length,l?c:i}}function _m(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function dz(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(An(15))};const i={getState:o.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(i));return s=_m(...a)(o.dispatch),{...o,dispatch:s}}}function fz(e){return Nw(e)&&"type"in e&&typeof e.type=="string"}var RD=Symbol.for("immer-nothing"),Fk=Symbol.for("immer-draftable"),Kr=Symbol.for("immer-state");function Uo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vc=Object.getPrototypeOf;function Xa(e){return!!e&&!!e[Kr]}function ti(e){var t;return e?DD(e)||Array.isArray(e)||!!e[Fk]||!!((t=e.constructor)!=null&&t[Fk])||T0(e)||R0(e):!1}var pz=Object.prototype.constructor.toString();function DD(e){if(!e||typeof e!="object")return!1;const t=Vc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===pz}function Nm(e,t){E0(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function E0(e){const t=e[Kr];return t?t.type_:Array.isArray(e)?1:T0(e)?2:R0(e)?3:0}function lx(e,t){return E0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $D(e,t,n){const r=E0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function hz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function T0(e){return e instanceof Map}function R0(e){return e instanceof Set}function wa(e){return e.copy_||e.base_}function cx(e,t){if(T0(e))return new Map(e);if(R0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=DD(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Kr];let o=Reflect.ownKeys(r);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=mz),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>zw(r,!0))),e}function mz(){Uo(2)}function D0(e){return Object.isFrozen(e)}var gz={};function Qa(e){const t=gz[e];return t||Uo(0,e),t}var gf;function AD(){return gf}function yz(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Lk(e,t){t&&(Qa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ux(e){dx(e),e.drafts_.forEach(vz),e.drafts_=null}function dx(e){e===gf&&(gf=e.parent_)}function _k(e){return gf=yz(gf,e)}function vz(e){const t=e[Kr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Nk(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Kr].modified_&&(ux(t),Uo(4)),ti(e)&&(e=zm(t,e),t.parent_||Bm(t,e)),t.patches_&&Qa("Patches").generateReplacementPatches_(n[Kr].base_,e,t.patches_,t.inversePatches_)):e=zm(t,n,[]),ux(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==RD?e:void 0}function zm(e,t,n){if(D0(t))return t;const r=t[Kr];if(!r)return Nm(t,(o,s)=>zk(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Bm(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,i=!1;r.type_===3&&(s=new Set(o),o.clear(),i=!0),Nm(s,(a,l)=>zk(e,r,o,a,l,n,i)),Bm(e,o,!1),n&&e.patches_&&Qa("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function zk(e,t,n,r,o,s,i){if(Xa(o)){const a=s&&t&&t.type_!==3&&!lx(t.assigned_,r)?s.concat(r):void 0,l=zm(e,o,a);if($D(n,r,l),Xa(l))e.canAutoFreeze_=!1;else return}else i&&n.add(o);if(ti(o)&&!D0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zm(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Bm(e,o)}}function Bm(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zw(t,n)}function xz(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:AD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Bw;n&&(o=[r],s=yf);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=i,a}var Bw={get(e,t){if(t===Kr)return e;const n=wa(e);if(!lx(n,t))return bz(e,n,t);const r=n[t];return e.finalized_||!ti(r)?r:r===f1(e.base_,t)?(p1(e),e.copy_[t]=px(r,e)):r},has(e,t){return t in wa(e)},ownKeys(e){return Reflect.ownKeys(wa(e))},set(e,t,n){const r=OD(wa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=f1(wa(e),t),s=o==null?void 0:o[Kr];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(hz(n,o)&&(n!==void 0||lx(e.base_,t)))return!0;p1(e),fx(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return f1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,p1(e),fx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Uo(11)},getPrototypeOf(e){return Vc(e.base_)},setPrototypeOf(){Uo(12)}},yf={};Nm(Bw,(e,t)=>{yf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});yf.deleteProperty=function(e,t){return yf.set.call(this,e,t,void 0)};yf.set=function(e,t,n){return Bw.set.call(this,e[0],t,n,e[0])};function f1(e,t){const n=e[Kr];return(n?wa(n):e)[t]}function bz(e,t,n){var o;const r=OD(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function OD(e,t){if(!(t in e))return;let n=Vc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Vc(n)}}function fx(e){e.modified_||(e.modified_=!0,e.parent_&&fx(e.parent_))}function p1(e){e.copy_||(e.copy_=cx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wz=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const i=this;return function(l=s,...c){return i.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Uo(6),r!==void 0&&typeof r!="function"&&Uo(7);let o;if(ti(t)){const s=_k(this),i=px(t,void 0);let a=!0;try{o=n(i),a=!1}finally{a?ux(s):dx(s)}return Lk(s,r),Nk(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===RD&&(o=void 0),this.autoFreeze_&&zw(o,!0),r){const s=[],i=[];Qa("Patches").generateReplacementPatches_(t,o,s,i),r(s,i)}return o}else Uo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,l=>t(l,...a));let r,o;return[this.produce(t,n,(i,a)=>{r=i,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ti(e)||Uo(8),Xa(e)&&(e=Cz(e));const t=_k(this),n=px(e,void 0);return n[Kr].isManual_=!0,dx(t),n}finishDraft(e,t){const n=e&&e[Kr];(!n||!n.isManual_)&&Uo(9);const{scope_:r}=n;return Lk(r,t),Nk(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Qa("Patches").applyPatches_;return Xa(e)?r(e,t):this.produce(e,o=>r(o,t))}};function px(e,t){const n=T0(e)?Qa("MapSet").proxyMap_(e,t):R0(e)?Qa("MapSet").proxySet_(e,t):xz(e,t);return(t?t.scope_:AD()).drafts_.push(n),n}function Cz(e){return Xa(e)||Uo(10,e),jD(e)}function jD(e){if(!ti(e)||D0(e))return e;const t=e[Kr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cx(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cx(e,!0);return Nm(n,(r,o)=>{$D(n,r,jD(o))}),t&&(t.finalized_=!1),n}var Yr=new wz,FD=Yr.produce;Yr.produceWithPatches.bind(Yr);Yr.setAutoFreeze.bind(Yr);Yr.setUseStrictShallowCopy.bind(Yr);Yr.applyPatches.bind(Yr);Yr.createDraft.bind(Yr);Yr.finishDraft.bind(Yr);var Hm=Symbol("NOT_FOUND");function Sz(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function kz(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Pz(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 Bk=e=>Array.isArray(e)?e:[e];function Mz(e){const t=Array.isArray(e[0])?e[0]:e;return Pz(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Iz(e,t){const n=[],{length:r}=e;for(let o=0;ot(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return Hm}function o(a,l){r(a)===Hm&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var Rz=(e,t)=>e===t;function Dz(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;ss(g.value,u));f&&(u=f.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var $z=class{constructor(e){this.value=e}deref(){return this.value}},Az=typeof WeakRef<"u"?WeakRef:$z,Oz=0,Hk=1;function Zp(){return{s:Oz,v:void 0,o:null,p:null}}function _D(e,t={}){let n=Zp();const{resultEqualityCheck:r}=t;let o,s=0;function i(){var d;let a=n;const{length:l}=arguments;for(let f=0,g=l;f{n=Zp(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function ND(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,i=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),Sz(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:g=_D,argsMemoizeOptions:m=[]}=u,y=Bk(f),v=Bk(m),x=Mz(o),w=d(function(){return s++,c.apply(null,arguments)},...y),b=g(function(){i++;const k=Iz(x,arguments);return a=w.apply(null,k),a},...v);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:d,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var jz=ND(_D),Fz=Object.assign((e,t=jz)=>{kz(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(s=>e[s]);return t(r,(...s)=>s.reduce((i,a,l)=>(i[n[l]]=a,i),{}))},{withTypes:()=>Fz});function zD(e){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,e):o(s)}var Lz=zD(),_z=zD,Nz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_m:_m.apply(null,arguments)},zz=e=>e&&typeof e.match=="function";function Od(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(bs(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fz(r)&&r.type===e,n}var BD=class gd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,gd.prototype)}static get[Symbol.species](){return gd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new gd(...t[0].concat(this)):new gd(...t.concat(this))}};function Vk(e){return ti(e)?FD(e,()=>{}):e}function Uk(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(bs(10));const r=n.insert(t,e);return e.set(t,r),r}function Bz(e){return typeof e=="boolean"}var Hz=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let i=new BD;return n&&(Bz(n)?i.push(Lz):i.push(_z(n.extraArgument))),i},Vz="RTK_autoBatch",HD=e=>t=>{setTimeout(t,e)},Uz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:HD(10),Wz=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Uz:e.type==="callback"?e.queueNotification:HD(e.timeout),c=()=>{i=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>o&&u(),f=r.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){var d;try{return o=!((d=u==null?void 0:u.meta)!=null&&d[Vz]),s=!o,s&&(i||(i=!0,l(c))),r.dispatch(u)}finally{o=!0}}})},Gz=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new BD(e);return r&&o.push(Wz(typeof r=="object"?r:void 0)),o};function Kz(e){const t=Hz(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:i=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Nw(n))a=TD(n);else throw new Error(bs(1));let l;typeof r=="function"?l=r(t):l=t();let c=_m;o&&(c=Nz({trace:!1,...typeof o=="object"&&o}));const u=dz(...l),d=Gz(u);let f=typeof i=="function"?i(d):d();const g=c(...f);return ED(a,s,g)}function VD(e){const t={},n=[];let r;const o={addCase(s,i){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(bs(28));if(a in t)throw new Error(bs(29));return t[a]=i,o},addMatcher(s,i){return n.push({matcher:s,reducer:i}),o},addDefaultCase(s){return r=s,o}};return e(o),[t,n,r]}function Yz(e){return typeof e=="function"}function qz(e,t){let[n,r,o]=VD(t),s;if(Yz(e))s=()=>Vk(e());else{const a=Vk(e);s=()=>a}function i(a=s(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(Xa(u)){const g=d(u,l);return g===void 0?u:g}else{if(ti(u))return FD(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return i.getInitialState=s,i}var Xz=(e,t)=>zz(e)?e.match(t):e(t);function Qz(...e){return t=>e.some(n=>Xz(n,t))}var Zz="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jz=(e=21)=>{let t="",n=e;for(;n--;)t+=Zz[Math.random()*64|0];return t},e7=["name","message","stack","code"],h1=class{constructor(e,t){yi(this,"_type");this.payload=e,this.meta=t}},Wk=class{constructor(e,t){yi(this,"_type");this.payload=e,this.meta=t}},t7=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of e7)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},ci=(()=>{function e(t,n,r){const o=Od(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=Od(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),i=Od(t+"/rejected",(l,c,u,d,f)=>({payload:d,error:(r&&r.serializeError||t7)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function a(l){return(c,u,d)=>{const f=r!=null&&r.idGenerator?r.idGenerator(l):Jz(),g=new AbortController;let m,y;function v(w){y=w,g.abort()}const x=async function(){var C,k;let w;try{let M=(C=r==null?void 0:r.condition)==null?void 0:C.call(r,l,{getState:u,extra:d});if(r7(M)&&(M=await M),M===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((I,D)=>{m=()=>{D({name:"AbortError",message:y||"Aborted"})},g.signal.addEventListener("abort",m)});c(s(f,l,(k=r==null?void 0:r.getPendingMeta)==null?void 0:k.call(r,{requestId:f,arg:l},{getState:u,extra:d}))),w=await Promise.race([T,Promise.resolve(n(l,{dispatch:c,getState:u,extra:d,requestId:f,signal:g.signal,abort:v,rejectWithValue:(I,D)=>new h1(I,D),fulfillWithValue:(I,D)=>new Wk(I,D)})).then(I=>{if(I instanceof h1)throw I;return I instanceof Wk?o(I.payload,f,l,I.meta):o(I,f,l)})])}catch(M){w=M instanceof h1?i(null,f,l,M.payload,M.meta):i(M,f,l)}finally{m&&g.signal.removeEventListener("abort",m)}return r&&!r.dispatchConditionRejection&&i.match(w)&&w.meta.condition||c(w),w}();return Object.assign(x,{abort:v,requestId:f,arg:l,unwrap(){return x.then(n7)}})}}return Object.assign(a,{pending:s,rejected:i,fulfilled:o,settled:Qz(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function n7(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function r7(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var o7=Symbol.for("rtk-slice-createasyncthunk");function s7(e,t){return`${e}/${t}`}function i7({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[o7];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(bs(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(l7()):o.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(b,C){const k=typeof b=="string"?b:b.type;if(!k)throw new Error(bs(12));if(k in c.sliceCaseReducersByType)throw new Error(bs(13));return c.sliceCaseReducersByType[k]=C,u},addMatcher(b,C){return c.sliceMatchers.push({matcher:b,reducer:C}),u},exposeAction(b,C){return c.actionCreators[b]=C,u},exposeCaseReducer(b,C){return c.sliceCaseReducersByName[b]=C,u}};l.forEach(b=>{const C=a[b],k={reducerName:b,type:s7(s,b),createNotation:typeof o.reducers=="function"};u7(C)?f7(k,C,u,t):c7(k,C,u)});function d(){const[b={},C=[],k=void 0]=typeof o.extraReducers=="function"?VD(o.extraReducers):[o.extraReducers],M={...b,...c.sliceCaseReducersByType};return qz(o.initialState,T=>{for(let I in M)T.addCase(I,M[I]);for(let I of c.sliceMatchers)T.addMatcher(I.matcher,I.reducer);for(let I of C)T.addMatcher(I.matcher,I.reducer);k&&T.addDefaultCase(k)})}const f=b=>b,g=new Map;let m;function y(b,C){return m||(m=d()),m(b,C)}function v(){return m||(m=d()),m.getInitialState()}function x(b,C=!1){function k(T){let I=T[b];return typeof I>"u"&&C&&(I=v()),I}function M(T=f){const I=Uk(g,C,{insert:()=>new WeakMap});return Uk(I,T,{insert:()=>{const D={};for(const[S,R]of Object.entries(o.selectors??{}))D[S]=a7(R,T,v,C);return D}})}return{reducerPath:b,getSelectors:M,get selectors(){return M(k)},selectSlice:k}}const w={name:s,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...x(i),injectInto(b,{reducerPath:C,...k}={}){const M=C??i;return b.inject({reducerPath:M,reducer:y},k),{...w,...x(M,!0)}}};return w}}function a7(e,t,n,r){function o(s,...i){let a=t(s);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var ui=i7();function l7(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function c7({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!d7(r))throw new Error(bs(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?Od(e,i):Od(e))}function u7(e){return e._reducerDefinitionType==="asyncThunk"}function d7(e){return e._reducerDefinitionType==="reducerWithPrepare"}function f7({type:e,reducerName:t},n,r,o){if(!o)throw new Error(bs(18));const{payloadCreator:s,fulfilled:i,pending:a,rejected:l,settled:c,options:u}=n,d=o(e,s,u);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:i||Jp,pending:a||Jp,rejected:l||Jp,settled:c||Jp})}function Jp(){}function bs(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const p7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",m1=ci("sanjeeviniApp/fetchUserAppData",async(e,t)=>{try{let n=p7+"userapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),h7={userData:[],loading:!1,error:null,page:1,totalPages:0},m7=ui({name:"user",initialState:h7,reducers:{},extraReducers:e=>{e.addCase(m1.pending,t=>{t.loading=!0,t.error=null}).addCase(m1.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(m1.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),g7=m7.reducer,y7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",g1=ci("sanjeeviniApp/fetchDoctorAppData",async(e,t)=>{try{let n=y7+"doctorapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.doctor_id&&(n+=`&doctor_id=${e.doctor_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch doctor.")}}),v7={doctorData:[],loading:!1,error:null,page:1,totalPages:0},x7=ui({name:"doctor",initialState:v7,reducers:{},extraReducers:e=>{e.addCase(g1.pending,t=>{t.loading=!0,t.error=null}).addCase(g1.fulfilled,(t,n)=>{t.loading=!1,t.doctorData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(g1.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),b7=x7.reducer,w7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Vh=ci("sanjeeviniApp/fetchUserHeartData",async(e,t)=>{try{let n=w7+"userheartapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations,heart_rate:i.heart_rate,blood_pressure_systolic:i.blood_pressure_systolic,blood_pressure_diastolic:i.blood_pressure_diastolic,oxygen_saturation:i.oxygen_saturation}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),C7={userData:[],loading:!1,error:null,page:1,totalPages:0},S7=ui({name:"user",initialState:C7,reducers:{},extraReducers:e=>{e.addCase(Vh.pending,t=>{t.loading=!0,t.error=null}).addCase(Vh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Vh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),k7=S7.reducer,P7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Uh=ci("sanjeeviniApp/fetchUserWeightData",async(e,t)=>{try{let n=P7+"userweightapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),M7={userData:[],loading:!1,error:null,page:1,totalPages:0},I7=ui({name:"user",initialState:M7,reducers:{},extraReducers:e=>{e.addCase(Uh.pending,t=>{t.loading=!0,t.error=null}).addCase(Uh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Uh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),E7=I7.reducer,T7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Wh=ci("sanjeeviniApp/fetchUserDiabetestData",async(e,t)=>{try{let n=T7+"userdiabetesapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),R7={userData:[],loading:!1,error:null,page:1,totalPages:0},D7=ui({name:"user",initialState:R7,reducers:{},extraReducers:e=>{e.addCase(Wh.pending,t=>{t.loading=!0,t.error=null}).addCase(Wh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Wh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),$7=D7.reducer,A7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Gh=ci("sanjeeviniApp/fetchUserMaternityData",async(e,t)=>{try{let n=A7+"usermaternityapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.doctor_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),O7={userData:[],loading:!1,error:null,page:1,totalPages:0},j7=ui({name:"user",initialState:O7,reducers:{},extraReducers:e=>{e.addCase(Gh.pending,t=>{t.loading=!0,t.error=null}).addCase(Gh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Gh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),F7=j7.reducer,L7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Kh=ci("sanjeeviniApp/fetchPrescriptionData",async(e,t)=>{try{let n=L7+"prescriptionapp/?page=";e.page&&(n+=e.page),e.expiration_date_after&&(n+=`&expiration_date_after=${e.expiration_date_after}`),e.expiration_date_before&&(n+=`&expiration_date_before=${e.expiration_date_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,expiration_date:i.expiration_date,issue_date:i.issue_date,doctor_full_name:i.doctor_full_name,medication:i.medication,dosage:i.dosage,frequency:i.frequency,refill_info:i.refill_info,instructions:i.instructions}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),_7={userData:[],loading:!1,error:null,page:1,totalPages:0},N7=ui({name:"user",initialState:_7,reducers:{},extraReducers:e=>{e.addCase(Kh.pending,t=>{t.loading=!0,t.error=null}).addCase(Kh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Kh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),z7=N7.reducer,B7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",Yh=ci("sanjeeviniApp/fetchUserAppointmentData",async(e,t)=>{try{let n=B7+"userappointmentapp/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.user_id&&(n+=`&user_id=${e.user_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,doctor_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch user.")}}),H7={userData:[],loading:!1,error:null,page:1,totalPages:0},V7=ui({name:"user",initialState:H7,reducers:{},extraReducers:e=>{e.addCase(Yh.pending,t=>{t.loading=!0,t.error=null}).addCase(Yh.fulfilled,(t,n)=>{t.loading=!1,t.userData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(Yh.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),U7=V7.reducer,W7="https://gaganyatri-sanjeevini-backend.hf.space/api/v1/",y1=ci("sanjeeviniApp/fetchDoctorAppointmentData",async(e,t)=>{try{let n=W7+"doctorappointment/?page=";e.page&&(n+=e.page),e.appointment_day_after&&(n+=`&appointment_day_after=${e.appointment_day_after}`),e.appointment_day_before&&(n+=`&appointment_day_before=${e.appointment_day_before}`),e.doctor_id&&(n+=`&doctor_id=${e.doctor_id}`);const r=await fetch(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).results.map(i=>({id:i.id,appointment_day:i.appointment_day,patient_name:i.patient_name,status:i.status,observations:i.observations}))}catch{return t.rejectWithValue("Failed to fetch doctor.")}}),G7={doctorData:[],loading:!1,error:null,page:1,totalPages:0},K7=ui({name:"doctor",initialState:G7,reducers:{},extraReducers:e=>{e.addCase(y1.pending,t=>{t.loading=!0,t.error=null}).addCase(y1.fulfilled,(t,n)=>{t.loading=!1,t.doctorData.push(...n.payload),t.totalPages=n.meta.arg.total_pages}).addCase(y1.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message||"Something went wrong"})}}),Y7=K7.reducer,q7=TD({userDataList:g7,doctorDataList:b7,userHeartDataList:k7,userWeightDataList:E7,userDiabetesDataList:$7,userMaternityDataList:F7,userPrescriptionDataList:z7,userAppointmentDataList:U7,doctorAppointmentDataList:Y7}),X7=Kz({reducer:q7}),Ae=xN;function Q7(e){return xe("MuiDivider",e)}const hx=ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Z7=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:a,variant:l}=e;return le({root:["root",t&&"absolute",l,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",a==="right"&&i!=="vertical"&&"textAlignRight",a==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Q7,r)},J7=Q("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]}})(Ae(({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)`:be(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%"}}}]}))),eB=Q("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ae(({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)`}}]}))),dn=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,orientation:a="horizontal",component:l=s||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:g="fullWidth",...m}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:g},v=Z7(y);return p.jsx(J7,{as:l,className:se(v.root,i),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...m,children:s?p.jsx(eB,{className:v.wrapper,ownerState:y,children:s}):null})});dn&&(dn.muiSkipListHighlight=!0);function tB(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function nB(e){return parseFloat(e)}function xt({props:e,name:t}){return w0({props:e,name:t,defaultTheme:M0,themeId:wo})}function Gk({theme:e,...t}){const n=wo in e?e[wo]:void 0;return p.jsx(fD,{...t,themeId:n?wo:void 0,theme:n||e})}const eh={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:rB,useColorScheme:UD}=PN({themeId:wo,theme:()=>ep({cssVariables:!0}),colorSchemeStorageKey:eh.colorSchemeStorageKey,modeStorageKey:eh.modeStorageKey,defaultColorScheme:{light:eh.defaultLightColorScheme,dark:eh.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:gD(e.palette,e.typography)};return t.unstable_sx=function(r){return Xi({sx:r,theme:this})},t}}),oB=rB;function sB({theme:e,...t}){return typeof e=="function"?p.jsx(Gk,{theme:e,...t}):"colorSchemes"in(wo in e?e[wo]:e)?p.jsx(oB,{theme:e,...t}):p.jsx(Gk,{theme:e,...t})}const iB=ge("MuiBox",["root"]),aB=ep(),Ne=H9({themeId:wo,defaultTheme:aB,defaultClassName:iB.root,generateClassName:YR.generate});function lB(e){return typeof e.main=="string"}function cB(e,t=[]){if(!lB(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Nt(e=[]){return([,t])=>t&&cB(t,e)}function uB(e){return xe("MuiPaper",e)}ge("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 dB=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return le(s,uB,o)},fB=Q("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}`]]}})(Ae(({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)"}}]}))),Ao=h.forwardRef(function(t,n){var g;const r=_e({props:t,name:"MuiPaper"}),o=Dn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},f=dB(d);return p.jsx(fB,{as:i,ownerState:d,className:se(f.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${be("#fff",ix(a))}, ${be("#fff",ix(a))})`}},...u.style}})});function pB(e){return xe("MuiAppBar",e)}ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hB=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ae(t)}`,`position${ae(n)}`]};return le(o,pB,r)},Kk=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mB=Q(Ao,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],t[`color${ae(n.color)}`]]}})(Ae(({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(Nt(["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?Kk(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Kk(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"})}}]}))),gB=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:a="fixed",...l}=r,c={...r,color:s,position:a,enableColorOnDark:i},u=hB(c);return p.jsx(mB,{square:!0,component:"header",ownerState:c,elevation:4,className:se(u.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function yB(e){return xe("MuiToolbar",e)}ge("MuiToolbar",["root","gutters","regular","dense"]);const vB=e=>{const{classes:t,disableGutters:n,variant:r}=e;return le({root:["root",!n&&"gutters",r]},yB,t)},xB=Q("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ae(({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}]}))),Hw=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:a="regular",...l}=r,c={...r,component:s,disableGutters:i,variant:a},u=vB(c);return p.jsx(xB,{as:s,className:se(u.root,o),ref:n,ownerState:c,...l})});class Vm{constructor(){yi(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 Vm}static use(){const t=es(Vm.create).current,[n,r]=h.useState(!1);return t.shouldMount=n,t.setShouldMount=r,h.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=wB(),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 bB(){return Vm.use()}function wB(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,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 mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mx(e,t)}function Vw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}function CB(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function SB(e,t){e.classList?e.classList.add(t):CB(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Yk(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function kB(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Yk(e.className,t):e.setAttribute("class",Yk(e.className&&e.className.baseVal||"",t))}const qk={disabled:!1},Um=_r.createContext(null);var WD=function(t){return t.scrollTop},yd="unmounted",Ca="exited",Sa="entering",Bl="entered",gx="exiting",Jr=function(e){Vw(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Ca,s.appearStatus=Sa):l=Bl:r.unmountOnExit||r.mountOnEnter?l=yd:l=Ca,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===yd?{status:Ca}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Sa&&i!==Bl&&(s=Sa):(i===Sa||i===Bl)&&(s=gx)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Sa){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Yp.findDOMNode(this);i&&WD(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ca&&this.setState({status:yd})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Yp.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!i||qk.disabled){this.safeSetState({status:Bl},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Sa},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:Bl},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Yp.findDOMNode(this);if(!s||qk.disabled){this.safeSetState({status:Ca},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:gx},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ca},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Yp.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,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===yd)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ue(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _r.createElement(Um.Provider,{value:null},typeof i=="function"?i(o,a):_r.cloneElement(_r.Children.only(i),a))},t}(_r.Component);Jr.contextType=Um;Jr.propTypes={};function Ml(){}Jr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ml,onEntering:Ml,onEntered:Ml,onExit:Ml,onExiting:Ml,onExited:Ml};Jr.UNMOUNTED=yd;Jr.EXITED=Ca;Jr.ENTERING=Sa;Jr.ENTERED=Bl;Jr.EXITING=gx;var PB=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return SB(t,r)})},v1=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return kB(t,r)})},Uw=function(e){Vw(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i{if(!a&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),p.jsx("span",{className:f,style:g,children:p.jsx("span",{className:m})})}const io=ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yx=550,AB=80,OB=Ds` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,jB=Ds` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,FB=Ds` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,LB=Q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_B=Q($B,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${io.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${OB}; + animation-duration: ${yx}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${io.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${io.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${io.childLeaving} { + opacity: 0; + animation-name: ${jB}; + animation-duration: ${yx}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${io.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${FB}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,NB=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),g=zr(),m=h.useRef(null),y=h.useRef(null),v=h.useCallback(C=>{const{pulsate:k,rippleX:M,rippleY:T,rippleSize:I,cb:D}=C;c(S=>[...S,p.jsx(_B,{classes:{ripple:se(s.ripple,io.ripple),rippleVisible:se(s.rippleVisible,io.rippleVisible),ripplePulsate:se(s.ripplePulsate,io.ripplePulsate),child:se(s.child,io.child),childLeaving:se(s.childLeaving,io.childLeaving),childPulsate:se(s.childPulsate,io.childPulsate)},timeout:yx,pulsate:k,rippleX:M,rippleY:T,rippleSize:I},u.current)]),u.current+=1,d.current=D},[s]),x=h.useCallback((C={},k={},M=()=>{})=>{const{pulsate:T=!1,center:I=o||k.pulsate,fakeElement:D=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&f.current){f.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(f.current=!0);const S=D?null:y.current,R=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,F,A;if(I||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)j=Math.round(R.width/2),F=Math.round(R.height/2);else{const{clientX:$,clientY:E}=C.touches&&C.touches.length>0?C.touches[0]:C;j=Math.round($-R.left),F=Math.round(E-R.top)}if(I)A=Math.sqrt((2*R.width**2+R.height**2)/3),A%2===0&&(A+=1);else{const $=Math.max(Math.abs((S?S.clientWidth:0)-j),j)*2+2,E=Math.max(Math.abs((S?S.clientHeight:0)-F),F)*2+2;A=Math.sqrt($**2+E**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{v({pulsate:T,rippleX:j,rippleY:F,rippleSize:A,cb:M})},g.start(AB,()=>{m.current&&(m.current(),m.current=null)})):v({pulsate:T,rippleX:j,rippleY:F,rippleSize:A,cb:M})},[o,v,g]),w=h.useCallback(()=>{x({},{pulsate:!0})},[x]),b=h.useCallback((C,k)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,g.start(0,()=>{b(C,k)});return}m.current=null,c(M=>M.length>0?M.slice(1):M),d.current=k},[g]);return h.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:b}),[w,x,b]),p.jsx(LB,{className:se(io.root,s.root,i),ref:y,...a,children:p.jsx(np,{component:null,exit:!0,children:l})})});function zB(e){return xe("MuiButtonBase",e)}const Gw=ge("MuiButtonBase",["root","disabled","focusVisible"]),BB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=le({root:["root",t&&"disabled",n&&"focusVisible"]},zB,o);return n&&r&&(i.root+=` ${r}`),i},HB=Q("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"},[`&.${Gw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ni=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:g,LinkComponent:m="a",onBlur:y,onClick:v,onContextMenu:x,onDragLeave:w,onFocus:b,onFocusVisible:C,onKeyDown:k,onKeyUp:M,onMouseDown:T,onMouseLeave:I,onMouseUp:D,onTouchEnd:S,onTouchMove:R,onTouchStart:j,tabIndex:F=0,TouchRippleProps:A,touchRippleRef:$,type:E,...L}=r,O=h.useRef(null),_=bB(),N=tt(_.ref,$),[z,G]=h.useState(!1);c&&z&&G(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),O.current.focus()}}),[]);const J=_.shouldMount&&!u&&!c;h.useEffect(()=>{z&&f&&!u&&_.pulsate()},[u,f,z,_]);function K(Me,Ee,Ve=d){return ve(Ge=>(Ee&&Ee(Ge),Ve||_[Me](Ge),!0))}const B=K("start",T),W=K("stop",x),te=K("stop",w),X=K("stop",D),q=K("stop",Me=>{z&&Me.preventDefault(),I&&I(Me)}),U=K("start",j),ee=K("stop",S),H=K("stop",R),Z=K("stop",Me=>{Hc(Me.target)||G(!1),y&&y(Me)},!1),ne=ve(Me=>{O.current||(O.current=Me.currentTarget),Hc(Me.target)&&(G(!0),C&&C(Me)),b&&b(Me)}),oe=()=>{const Me=O.current;return l&&l!=="button"&&!(Me.tagName==="A"&&Me.href)},re=ve(Me=>{f&&!Me.repeat&&z&&Me.key===" "&&_.stop(Me,()=>{_.start(Me)}),Me.target===Me.currentTarget&&oe()&&Me.key===" "&&Me.preventDefault(),k&&k(Me),Me.target===Me.currentTarget&&oe()&&Me.key==="Enter"&&!c&&(Me.preventDefault(),v&&v(Me))}),de=ve(Me=>{f&&Me.key===" "&&z&&!Me.defaultPrevented&&_.stop(Me,()=>{_.pulsate(Me)}),M&&M(Me),v&&Me.target===Me.currentTarget&&oe()&&Me.key===" "&&!Me.defaultPrevented&&v(Me)});let ie=l;ie==="button"&&(L.href||L.to)&&(ie=m);const we={};ie==="button"?(we.type=E===void 0?"button":E,we.disabled=c):(!L.href&&!L.to&&(we.role="button"),c&&(we["aria-disabled"]=c));const Re=tt(n,O),Le={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:F,focusVisible:z},Qe=BB(Le);return p.jsxs(HB,{as:ie,className:se(Qe.root,a),ownerState:Le,onBlur:Z,onClick:v,onContextMenu:W,onFocus:ne,onKeyDown:re,onKeyUp:de,onMouseDown:B,onMouseLeave:q,onMouseUp:X,onDragLeave:te,onTouchEnd:ee,onTouchMove:H,onTouchStart:U,ref:Re,tabIndex:c?-1:F,type:E,...we,...L,children:[i,J?p.jsx(NB,{ref:N,center:s,...A}):null]})});function VB(e){return xe("MuiButton",e)}const Il=ge("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"]),UB=h.createContext({}),WB=h.createContext(void 0),GB=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,a={root:["root",s,`${s}${ae(t)}`,`size${ae(o)}`,`${s}Size${ae(o)}`,`color${ae(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`]},l=le(a,VB,i);return{...i,...l}},GD=[{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}}}],KB=Q(ni,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ae(({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"},[`&.${Il.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]},[`&.${Il.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Il.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)",[`&.${Il.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(Nt()).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)`:be(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})`:be(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})`:be(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})`:be(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:be(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"},[`&.${Il.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Il.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),YB=Q("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...GD]}),qB=Q("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...GD]}),rt=h.forwardRef(function(t,n){const r=h.useContext(UB),o=h.useContext(WB),s=Bc(r,t),i=_e({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:y,fullWidth:v=!1,size:x="medium",startIcon:w,type:b,variant:C="text",...k}=i,M={...i,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:g,fullWidth:v,size:x,type:b,variant:C},T=GB(M),I=w&&p.jsx(YB,{className:T.startIcon,ownerState:M,children:w}),D=m&&p.jsx(qB,{className:T.endIcon,ownerState:M,children:m}),S=o||"";return p.jsxs(KB,{ownerState:M,className:se(r.className,T.root,u,S),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:se(T.focusVisible,y),ref:n,type:b,...k,classes:T,children:[I,a,D]})});function XB(e){return xe("MuiIconButton",e)}const KD=ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),QB=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${ae(r)}`,o&&`edge${ae(o)}`,`size${ae(s)}`]};return le(i,XB,t)},ZB=Q(ni,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})(Ae(({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})`:be(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}}]})),Ae(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:be((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)}}],[`&.${KD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),wn=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,size:u},g=QB(f);return p.jsx(ZB,{className:se(g.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:s})}),Jo=jN({createStyledComponent:Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>_e({props:e,name:"MuiContainer"})}),Ws=h.createContext({});function JB(e){return xe("MuiListItemIcon",e)}const Xk=ge("MuiListItemIcon",["root","alignItemsFlexStart"]),eH=e=>{const{alignItems:t,classes:n}=e;return le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JB,n)},tH=Q("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ae(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),xc=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiListItemIcon"}),{className:o,...s}=r,i=h.useContext(Ws),a={...r,alignItems:i.alignItems},l=eH(a);return p.jsx(tH,{className:se(l.root,o),ownerState:a,ref:n,...s})});function nH(e){return xe("MuiTypography",e)}const vf=ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),rH={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},oH=O8(),sH=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return le(a,nH,i)},iH=Q("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${ae(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ae(({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(Nt()).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${ae(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}}]}})),Qk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ce=h.forwardRef(function(t,n){const{color:r,...o}=_e({props:t,name:"MuiTypography"}),s=!rH[r],i=oH({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:g="body1",variantMapping:m=Qk,...y}=i,v={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:g,variantMapping:m},x=c||(f?"p":m[g]||Qk[g])||"span",w=sH(v);return p.jsx(iH,{as:x,ref:n,className:se(w.root,l),...y,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});function aH(e){return xe("MuiListItemText",e)}const sc=ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lH=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},aH,t)},cH=Q("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sc.primary}`]:t.primary},{[`& .${sc.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,[`.${vf.root}:where(& .${sc.primary})`]:{display:"block"},[`.${vf.root}:where(& .${sc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),bc=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,...f}=r,{dense:g}=h.useContext(Ws);let m=l??o,y=u;const v={...r,disableTypography:i,inset:a,primary:!!m,secondary:!!y,dense:g},x=lH(v);return m!=null&&m.type!==Ce&&!i&&(m=p.jsx(Ce,{variant:g?"body2":"body1",className:x.primary,component:c!=null&&c.variant?void 0:"span",...c,children:m})),y!=null&&y.type!==Ce&&!i&&(y=p.jsx(Ce,{variant:"body2",className:x.secondary,color:"textSecondary",...d,children:y})),p.jsxs(cH,{className:se(x.root,s),ownerState:v,ref:n,...f,children:[m,y]})});function uH(e){return xe("MuiMenuItem",e)}const Ri=ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),dH=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},fH=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,l=le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},uH,i);return{...i,...l}},pH=Q(ni,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dH})(Ae(({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"}},[`&.${Ri.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ri.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ri.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:be(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})`:be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ri.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ri.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hx.inset}`]:{marginLeft:52},[`& .${sc.root}`]:{marginTop:0,marginBottom:0},[`& .${sc.inset}`]:{paddingLeft:36},[`& .${Xk.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,[`& .${Xk.root} svg`]:{fontSize:"1.25rem"}}}]}))),Vt=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...g}=r,m=h.useContext(Ws),y=h.useMemo(()=>({dense:i||m.dense||!1,disableGutters:l}),[m.dense,i,l]),v=h.useRef(null);at(()=>{o&&v.current&&v.current.focus()},[o]);const x={...r,dense:y.dense,divider:a,disableGutters:l},w=fH(r),b=tt(v,n);let C;return r.disabled||(C=d!==void 0?d:-1),p.jsx(Ws.Provider,{value:y,children:p.jsx(pH,{ref:b,role:u,tabIndex:C,component:s,focusVisibleClassName:se(w.focusVisible,c),className:se(w.root,f),...g,ownerState:x,classes:w})})});function hH(e){const t=zt(e);return t.body===e?Gr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function jd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zk(e){return parseInt(Gr(e).getComputedStyle(e).paddingRight,10)||0}function mH(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 Jk(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!mH(i);a&&l&&jd(i,o)})}function x1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function gH(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(hH(r)){const i=sD(Gr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Zk(r)+i}px`;const a=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Zk(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=zt(r).body;else{const i=r.parentElement,a=Gr(r);s=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function yH(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class vH{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&&jd(t.modalRef,!1);const o=yH(n);Jk(n,t.mount,t.modalRef,o,!0);const s=x1(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=x1(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=gH(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=x1(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&jd(t.modalRef,n),Jk(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&jd(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bH(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 wH(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 CH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wH(e))}function SH(e){const t=[],n=[];return Array.from(e.querySelectorAll(xH)).forEach((r,o)=>{const s=bH(r);s===-1||!CH(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 kH(){return!0}function Kw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=SH,isEnabled:i=kH,open:a}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),g=h.useRef(!1),m=h.useRef(null),y=tt(sa(t),m),v=h.useRef(null);h.useEffect(()=>{!a||!m.current||(g.current=!n)},[n,a]),h.useEffect(()=>{if(!a||!m.current)return;const b=zt(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),h.useEffect(()=>{if(!a||!m.current)return;const b=zt(m.current),C=T=>{v.current=T,!(r||!i()||T.key!=="Tab")&&b.activeElement===m.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{var D,S;const T=m.current;if(T===null)return;if(!b.hasFocus()||!i()||l.current){l.current=!1;return}if(T.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let I=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(I=s(m.current)),I.length>0){const R=!!((D=v.current)!=null&&D.shiftKey&&((S=v.current)==null?void 0:S.key)==="Tab"),j=I[0],F=I[I.length-1];typeof j!="string"&&typeof F!="string"&&(R?F.focus():j.focus())}else T.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",C,!0);const M=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(M),b.removeEventListener("focusin",k),b.removeEventListener("keydown",C,!0)}},[n,r,o,i,a,s]);const x=b=>{d.current===null&&(d.current=b.relatedTarget),g.current=!0,f.current=b.target;const C=t.props.onFocus;C&&C(b)},w=b=>{d.current===null&&(d.current=b.relatedTarget),g.current=!0};return p.jsxs(h.Fragment,{children:[p.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:y,onFocus:x}),p.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function PH(e){return typeof e=="function"?e():e}const YD=h.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=h.useState(null),l=tt(h.isValidElement(r)?sa(r):null,n);if(at(()=>{s||a(PH(o)||document.body)},[o,s]),at(()=>{if(i&&!s)return jm(n,i),()=>{jm(n,null)}},[n,i,s]),s){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return p.jsx(h.Fragment,{children:r})}return p.jsx(h.Fragment,{children:i&&Yf.createPortal(r,i)})});function Qt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:i,internalForwardedProps:a,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=s,g=u[e]||r,m=k0(d[e],o),{props:{component:y,...v},internalRef:x}=lD({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),w=tt(x,m==null?void 0:m.ref,t.ref),b=i?i(v):{},C={...o,...b},k=e==="root"?y||c:y,M=oc(g,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...k&&{as:k},ref:w},C);return Object.keys(b).forEach(T=>{delete M[T]}),[g,M]}const Yw=e=>e.scrollTop;function Zi(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}}const MH={entering:{opacity:1},entered:{opacity:1}},yu=h.forwardRef(function(t,n){const r=Dn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:g,onExited:m,onExiting:y,style:v,timeout:x=o,TransitionComponent:w=Jr,...b}=t,C=h.useRef(null),k=tt(C,sa(a),n),M=A=>$=>{if(A){const E=C.current;$===void 0?A(E):A(E,$)}},T=M(f),I=M((A,$)=>{Yw(A);const E=Zi({style:v,timeout:x,easing:l},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",E),A.style.transition=r.transitions.create("opacity",E),u&&u(A,$)}),D=M(d),S=M(y),R=M(A=>{const $=Zi({style:v,timeout:x,easing:l},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",$),A.style.transition=r.transitions.create("opacity",$),g&&g(A)}),j=M(m),F=A=>{s&&s(C.current,A)};return p.jsx(w,{appear:i,in:c,nodeRef:C,onEnter:I,onEntered:D,onEntering:T,onExit:R,onExited:j,onExiting:S,addEndListener:F,timeout:x,...b,children:(A,$)=>h.cloneElement(a,{style:{opacity:0,visibility:A==="exited"&&!c?"hidden":void 0,...MH[A],...v,...a.props.style},ref:k,...$})})});function IH(e){return xe("MuiBackdrop",e)}ge("MuiBackdrop",["root","invisible"]);const EH=e=>{const{ownerState:t,...n}=e;return n},TH=e=>{const{classes:t,invisible:n}=e;return le({root:["root",n&&"invisible"]},IH,t)},RH=Q("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"}}]}),qD=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:g,transitionDuration:m,...y}=r,v={...r,component:i,invisible:a},x=TH(v),w={transition:g,root:c.Root,...f},b={...u,...d},C={slots:w,slotProps:b},[k,M]=Qt("root",{elementType:RH,externalForwardedProps:C,className:se(x.root,s),ownerState:v}),[T,I]=Qt("transition",{elementType:yu,externalForwardedProps:C,ownerState:v}),D=EH(I);return p.jsx(T,{in:l,timeout:m,...y,...D,children:p.jsx(k,{"aria-hidden":!0,...M,classes:x,ref:n,children:o})})});function DH(e){return typeof e=="function"?e():e}function $H(e){return e?e.props.hasOwnProperty("in"):!1}const th=new vH;function AH(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,d=h.useRef({}),f=h.useRef(null),g=h.useRef(null),m=tt(g,u),[y,v]=h.useState(!c),x=$H(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>zt(f.current),C=()=>(d.current.modalRef=g.current,d.current.mount=f.current,d.current),k=()=>{th.mount(C(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},M=ve(()=>{const $=DH(t)||b().body;th.add(C(),$),g.current&&k()}),T=()=>th.isTopModal(C()),I=ve($=>{f.current=$,$&&(c&&T()?k():g.current&&jd(g.current,w))}),D=h.useCallback(()=>{th.remove(C(),w)},[w]);h.useEffect(()=>()=>{D()},[D]),h.useEffect(()=>{c?M():(!x||!o)&&D()},[c,D,x,o,M]);const S=$=>E=>{var L;(L=$.onKeyDown)==null||L.call($,E),!(E.key!=="Escape"||E.which===229||!T())&&(n||(E.stopPropagation(),l&&l(E,"escapeKeyDown")))},R=$=>E=>{var L;(L=$.onClick)==null||L.call($,E),E.target===E.currentTarget&&l&&l(E,"backdropClick")};return{getRootProps:($={})=>{const E=aD(e);delete E.onTransitionEnter,delete E.onTransitionExited;const L={...E,...$};return{role:"presentation",...L,onKeyDown:S(L),ref:m}},getBackdropProps:($={})=>{const E=$;return{"aria-hidden":!0,...E,onClick:R(E),open:c}},getTransitionProps:()=>{const $=()=>{v(!1),s&&s()},E=()=>{v(!0),i&&i(),o&&D()};return{onEnter:mk($,a==null?void 0:a.props.onEnter),onExited:mk(E,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:I,isTopModal:T,exited:y,hasTransition:x}}function OH(e){return xe("MuiModal",e)}ge("MuiModal",["root","hidden","backdrop"]);function jH(e){return xe("MuiSvgIcon",e)}const qh=ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),FH=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return le(o,jH,r)},LH=Q("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(n.fontSize)}`]]}})(Ae(({theme:e})=>{var t,n,r,o,s,i,a,l,c,u,d,f,g,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:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,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(([,y])=>y&&y.main).map(([y])=>{var v,x;return{props:{color:y},style:{color:(x=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:x.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=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ms=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=r,m=h.isValidElement(o)&&o.type==="svg",y={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},v={};u||(v.viewBox=f);const x=FH(y);return p.jsxs(LH,{as:a,className:se(x.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...g,...m&&o.props,ownerState:y,children:[m?o.props.children:o,d?p.jsx("title",{children:d}):null]})});Ms&&(Ms.muiName="SvgIcon");function De(e,t){function n(r,o){return p.jsx(Ms,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Ms.muiName,h.memo(h.forwardRef(n))}const _H=e=>{const{open:t,exited:n,classes:r}=e;return le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OH,r)},NH=Q("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ae(({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"}}]}))),zH=Q(qD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qw=h.forwardRef(function(t,n){const r=_e({name:"MuiModal",props:t}),{BackdropComponent:o=zH,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:g={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:v=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:M,onClose:T,onTransitionEnter:I,onTransitionExited:D,open:S,slotProps:R={},slots:j={},theme:F,...A}=r,$={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:v,disablePortal:x,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:C,keepMounted:k},{getRootProps:E,getBackdropProps:L,getTransitionProps:O,portalRef:_,isTopModal:N,exited:z,hasTransition:G}=AH({...$,rootRef:n}),J={...$,exited:z},K=_H(J),B={};if(c.props.tabIndex===void 0&&(B.tabIndex="-1"),G){const{onEnter:H,onExited:Z}=O();B.onEnter=H,B.onExited=Z}const W={...A,slots:{root:f.Root,backdrop:f.Backdrop,...j},slotProps:{...g,...R}},[te,X]=Qt("root",{elementType:NH,externalForwardedProps:W,getSlotProps:E,additionalProps:{ref:n,as:d},ownerState:J,className:se(a,K==null?void 0:K.root,!J.open&&J.exited&&(K==null?void 0:K.hidden))}),[q,U]=Qt("backdrop",{elementType:o,externalForwardedProps:W,additionalProps:s,getSlotProps:H=>L({...H,onClick:Z=>{M&&M(Z),H!=null&&H.onClick&&H.onClick(Z)}}),className:se(s==null?void 0:s.className,K==null?void 0:K.backdrop),ownerState:J}),ee=tt(s==null?void 0:s.ref,U.ref);return!k&&!S&&(!G||z)?null:p.jsx(YD,{ref:_,container:u,disablePortal:x,children:p.jsxs(te,{...X,children:[!C&&o?p.jsx(q,{...U,ref:ee}):null,p.jsx(Kw,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:N,open:S,children:h.cloneElement(c,B)})]})})});function BH(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Gr(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=s.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${s.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${s.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function HH(e){return typeof e=="function"?e():e}function nh(e,t,n){const r=HH(n),o=BH(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const VH=h.forwardRef(function(t,n){const r=Dn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:g,onEntered:m,onEntering:y,onExit:v,onExited:x,onExiting:w,style:b,timeout:C=s,TransitionComponent:k=Jr,...M}=t,T=h.useRef(null),I=tt(sa(l),T,n),D=O=>_=>{O&&(_===void 0?O(T.current):O(T.current,_))},S=D((O,_)=>{nh(u,O,c),Yw(O),g&&g(O,_)}),R=D((O,_)=>{const N=Zi({timeout:C,style:b,easing:d},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",{...N}),O.style.transition=r.transitions.create("transform",{...N}),O.style.webkitTransform="none",O.style.transform="none",y&&y(O,_)}),j=D(m),F=D(w),A=D(O=>{const _=Zi({timeout:C,style:b,easing:d},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",_),O.style.transition=r.transitions.create("transform",_),nh(u,O,c),v&&v(O)}),$=D(O=>{O.style.webkitTransition="",O.style.transition="",x&&x(O)}),E=O=>{i&&i(T.current,O)},L=h.useCallback(()=>{T.current&&nh(u,T.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const O=Dw(()=>{T.current&&nh(u,T.current,c)}),_=Gr(T.current);return _.addEventListener("resize",O),()=>{O.clear(),_.removeEventListener("resize",O)}},[u,f,c]),h.useEffect(()=>{f||L()},[f,L]),p.jsx(k,{nodeRef:T,onEnter:S,onEntered:j,onEntering:R,onExit:A,onExited:$,onExiting:F,addEndListener:E,appear:a,in:f,timeout:C,...M,children:(O,_)=>h.cloneElement(l,{ref:I,style:{visibility:O==="exited"&&!f?"hidden":void 0,...b,...l.props.style},..._})})});function UH(e){return xe("MuiDrawer",e)}ge("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const XD=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},WH=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ae(n)}`,r!=="temporary"&&`paperAnchorDocked${ae(n)}`]};return le(o,UH,t)},GH=Q(qw,{name:"MuiDrawer",slot:"Root",overridesResolver:XD})(Ae(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),eP=Q("div",{shouldForwardProp:Xn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:XD})({flex:"0 0 auto"}),KH=Q(Ao,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ae(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ae(n.anchor)}`]]}})(Ae(({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}`}}]}))),QD={left:"right",right:"left",top:"down",bottom:"up"};function YH(e){return["left","right"].includes(e)}function qH({direction:e},t){return e==="rtl"&&YH(t)?QD[t]:t}const XH=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDrawer"}),o=Dn(),s=Bt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:g,...m}={},onClose:y,open:v=!1,PaperProps:x={},SlideProps:w,TransitionComponent:b=VH,transitionDuration:C=i,variant:k="temporary",...M}=r,T=h.useRef(!1);h.useEffect(()=>{T.current=!0},[]);const I=qH({direction:s?"rtl":"ltr"},a),S={...r,anchor:a,elevation:d,open:v,variant:k,...M},R=WH(S),j=p.jsx(KH,{elevation:k==="temporary"?d:0,square:!0,...x,className:se(R.paper,x.className),ownerState:S,children:c});if(k==="permanent")return p.jsx(eP,{className:se(R.root,R.docked,u),ownerState:S,ref:n,...M,children:j});const F=p.jsx(b,{in:v,direction:QD[I],timeout:C,appear:T.current,...w,children:j});return k==="persistent"?p.jsx(eP,{className:se(R.root,R.docked,u),ownerState:S,ref:n,...M,children:F}):p.jsx(GH,{BackdropProps:{...l,...g,transitionDuration:C},className:se(R.root,R.modal,u),open:v,ownerState:S,onClose:y,hideBackdrop:f,ref:n,...M,...m,children:F})}),QH=De(p.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),ZH=De(p.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),ZD=De(p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 50",children:p.jsx("text",{x:"10",y:"35",fontFamily:"Arial",fontSize:"24",fill:"currentColor",children:"Sanjeevini"})}),"Sanjeevini"),JH=De(p.jsx("path",{d:"M11.01 3.05C6.51 3.54 3 7.36 3 12c0 4.97 4.03 9 9 9 4.63 0 8.45-3.5 8.95-8 .09-.79-.78-1.42-1.54-.95-.84.54-1.84.85-2.91.85-2.98 0-5.4-2.42-5.4-5.4 0-1.06.31-2.06.84-2.89.45-.67-.04-1.63-.93-1.56"}),"DarkModeRounded"),eV=De(p.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeRounded");function tV(e){return xe("MuiList",e)}ge("MuiList",["root","padding","dense","subheader"]);const nV=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tV,t)},rV=Q("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}}]}),JD=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=h.useMemo(()=>({dense:a}),[a]),f={...r,component:i,dense:a,disablePadding:l},g=nV(f);return p.jsx(Ws.Provider,{value:d,children:p.jsxs(rV,{as:i,className:se(g.root,s),ref:n,ownerState:f,...u,children:[c,o]})})});function b1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function e$(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 Wu(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!e$(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Xw=h.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,g=h.useRef(null),m=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});at(()=>{o&&g.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:C})=>{const k=!g.current.style.width;if(b.clientHeight{const C=g.current,k=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const T=zt(C).activeElement;if(k==="ArrowDown")b.preventDefault(),Wu(C,T,c,l,b1);else if(k==="ArrowUp")b.preventDefault(),Wu(C,T,c,l,tP);else if(k==="Home")b.preventDefault(),Wu(C,null,c,l,b1);else if(k==="End")b.preventDefault(),Wu(C,null,c,l,tP);else if(k.length===1){const I=m.current,D=k.toLowerCase(),S=performance.now();I.keys.length>0&&(S-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&D!==I.keys[0]&&(I.repeating=!1)),I.lastTime=S,I.keys.push(D);const R=T&&!I.repeating&&e$(T,I);I.previousKeyMatched&&(R||Wu(C,T,!1,l,b1,I))?b.preventDefault():I.previousKeyMatched=!1}u&&u(b)},v=tt(g,n);let x=-1;h.Children.forEach(i,(b,C)=>{if(!h.isValidElement(b)){x===C&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||x===-1)&&(x=C),x===C&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const w=h.Children.map(i,(b,C)=>{if(C===x){const k={};return s&&(k.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),h.cloneElement(b,k)}return b});return p.jsx(JD,{role:"menu",ref:v,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:w})});function Uc(e){return typeof e=="string"}function vx(e){return`scale(${e}, ${e**2})`}const oV={entering:{opacity:1,transform:vx(1)},entered:{opacity:1,transform:"none"}},w1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Za=h.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:g,style:m,timeout:y="auto",TransitionComponent:v=Jr,...x}=t,w=zr(),b=h.useRef(),C=Dn(),k=h.useRef(null),M=tt(k,sa(s),n),T=$=>E=>{if($){const L=k.current;E===void 0?$(L):$(L,E)}},I=T(u),D=T(($,E)=>{Yw($);const{duration:L,delay:O,easing:_}=Zi({style:m,timeout:y,easing:i},{mode:"enter"});let N;y==="auto"?(N=C.transitions.getAutoHeightDuration($.clientHeight),b.current=N):N=L,$.style.transition=[C.transitions.create("opacity",{duration:N,delay:O}),C.transitions.create("transform",{duration:w1?N:N*.666,delay:O,easing:_})].join(","),l&&l($,E)}),S=T(c),R=T(g),j=T($=>{const{duration:E,delay:L,easing:O}=Zi({style:m,timeout:y,easing:i},{mode:"exit"});let _;y==="auto"?(_=C.transitions.getAutoHeightDuration($.clientHeight),b.current=_):_=E,$.style.transition=[C.transitions.create("opacity",{duration:_,delay:L}),C.transitions.create("transform",{duration:w1?_:_*.666,delay:w1?L:L||_*.333,easing:O})].join(","),$.style.opacity=0,$.style.transform=vx(.75),d&&d($)}),F=T(f),A=$=>{y==="auto"&&w.start(b.current||0,$),r&&r(k.current,$)};return p.jsx(v,{appear:o,in:a,nodeRef:k,onEnter:D,onEntered:S,onEntering:I,onExit:j,onExited:F,onExiting:R,addEndListener:A,timeout:y==="auto"?null:y,...x,children:($,E)=>h.cloneElement(s,{style:{opacity:0,transform:vx(.75),visibility:$==="exited"&&!a?"hidden":void 0,...oV[$],...m,...s.props.style},ref:M,...E})})});Za&&(Za.muiSupportAuto=!0);function sV(e){return xe("MuiPopover",e)}ge("MuiPopover",["root","paper"]);function nP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function rP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function oP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function C1(e){return typeof e=="function"?e():e}const iV=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},sV,t)},aV=Q(qw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t$=Q(Ao,{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}),lV=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:v={},slotProps:x={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b=Za,transitionDuration:C="auto",TransitionProps:{onEntering:k,...M}={},disableScrollLock:T=!1,...I}=r,D=(x==null?void 0:x.paper)??y,S=h.useRef(),R={...r,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:g,externalPaperSlotProps:D,transformOrigin:w,TransitionComponent:b,transitionDuration:C,TransitionProps:M},j=iV(R),F=h.useCallback(()=>{if(l==="anchorPosition")return a;const U=C1(s),H=(U&&U.nodeType===1?U:zt(S.current).body).getBoundingClientRect();return{top:H.top+nP(H,i.vertical),left:H.left+rP(H,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),A=h.useCallback(U=>({vertical:nP(U,w.vertical),horizontal:rP(U,w.horizontal)}),[w.horizontal,w.vertical]),$=h.useCallback(U=>{const ee={width:U.offsetWidth,height:U.offsetHeight},H=A(ee);if(l==="none")return{top:null,left:null,transformOrigin:oP(H)};const Z=F();let ne=Z.top-H.vertical,oe=Z.left-H.horizontal;const re=ne+ee.height,de=oe+ee.width,ie=Gr(C1(s)),we=ie.innerHeight-g,Re=ie.innerWidth-g;if(g!==null&&newe){const Le=re-we;ne-=Le,H.vertical+=Le}if(g!==null&&oeRe){const Le=de-Re;oe-=Le,H.horizontal+=Le}return{top:`${Math.round(ne)}px`,left:`${Math.round(oe)}px`,transformOrigin:oP(H)}},[s,l,F,A,g]),[E,L]=h.useState(m),O=h.useCallback(()=>{const U=S.current;if(!U)return;const ee=$(U);ee.top!==null&&U.style.setProperty("top",ee.top),ee.left!==null&&(U.style.left=ee.left),U.style.transformOrigin=ee.transformOrigin,L(!0)},[$]);h.useEffect(()=>(T&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[s,T,O]);const _=(U,ee)=>{k&&k(U,ee),O()},N=()=>{L(!1)};h.useEffect(()=>{m&&O()}),h.useImperativeHandle(o,()=>m?{updatePosition:()=>{O()}}:null,[m,O]),h.useEffect(()=>{if(!m)return;const U=Dw(()=>{O()}),ee=Gr(s);return ee.addEventListener("resize",U),()=>{U.clear(),ee.removeEventListener("resize",U)}},[s,m,O]);let z=C;C==="auto"&&!b.muiSupportAuto&&(z=void 0);const G=d||(s?zt(C1(s)).body:void 0),J={slots:v,slotProps:{...x,paper:D}},[K,B]=Qt("paper",{elementType:t$,externalForwardedProps:J,additionalProps:{elevation:f,className:se(j.paper,D==null?void 0:D.className),style:E?D.style:{...D.style,opacity:0}},ownerState:R}),[W,{slotProps:te,...X}]=Qt("root",{elementType:aV,externalForwardedProps:J,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:G,open:m},ownerState:R,className:se(j.root,u)}),q=tt(S,B.ref);return p.jsx(W,{...X,...!Uc(W)&&{slotProps:te,disableScrollLock:T},...I,ref:n,children:p.jsx(b,{appear:!0,in:m,onEntering:_,onExited:N,timeout:z,...M,children:p.jsx(K,{...B,ref:q,children:c})})})});function cV(e){return xe("MuiMenu",e)}ge("MuiMenu",["root","paper","list"]);const uV={vertical:"top",horizontal:"right"},dV={vertical:"top",horizontal:"left"},fV=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},cV,t)},pV=Q(lV,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hV=Q(t$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),mV=Q(Xw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),n$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:g="auto",TransitionProps:{onEntering:m,...y}={},variant:v="selectedMenu",slots:x={},slotProps:w={},...b}=r,C=Bt(),k={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:g,TransitionProps:y,variant:v},M=fV(k),T=o&&!a&&u,I=h.useRef(null),D=(E,L)=>{I.current&&I.current.adjustStyleForScrollbar(E,{direction:C?"rtl":"ltr"}),m&&m(E,L)},S=E=>{E.key==="Tab"&&(E.preventDefault(),c&&c(E,"tabKeyDown"))};let R=-1;h.Children.map(s,(E,L)=>{h.isValidElement(E)&&(E.props.disabled||(v==="selectedMenu"&&E.props.selected||R===-1)&&(R=L))});const j=x.paper??hV,F=w.paper??d,A=et({elementType:x.root,externalSlotProps:w.root,ownerState:k,className:[M.root,i]}),$=et({elementType:j,externalSlotProps:F,ownerState:k,className:M.paper});return p.jsx(pV,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?uV:dV,slots:{paper:j,root:x.root},slotProps:{root:A,paper:$},open:u,ref:n,transitionDuration:g,TransitionProps:{onEntering:D,...y},ownerState:k,...b,classes:f,children:p.jsx(mV,{onKeyDown:S,actions:I,autoFocus:o&&(R===-1||a),autoFocusItem:T,variant:v,...l,className:se(M.list,l.className),children:s})})});function sP(e){const{mode:t,systemMode:n,setMode:r}=UD(),[o,s]=h.useState(null),i=!!o,a=f=>{s(f.currentTarget)},l=()=>{s(null)},c=f=>()=>{r(f),l()};if(!t)return p.jsx(Ne,{"data-screenshot":"toggle-mode",sx:f=>({verticalAlign:"bottom",display:"inline-flex",width:"2.25rem",height:"2.25rem",borderRadius:f.shape.borderRadius,border:"1px solid",borderColor:f.palette.divider})});const u=n||t,d={light:p.jsx(eV,{}),dark:p.jsx(JH,{})}[u];return p.jsxs(h.Fragment,{children:[p.jsx(wn,{"data-screenshot":"toggle-mode",onClick:a,disableRipple:!0,size:"small","aria-controls":i?"color-scheme-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,...e,children:d}),p.jsxs(n$,{anchorEl:o,id:"account-menu",open:i,onClose:l,onClick:l,slotProps:{paper:{variant:"outlined",elevation:0,sx:{my:"4px"}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[p.jsx(Vt,{selected:t==="system",onClick:c("system"),children:"System"}),p.jsx(Vt,{selected:t==="light",onClick:c("light"),children:"Light"}),p.jsx(Vt,{selected:t==="dark",onClick:c("dark"),children:"Dark"})]})]})}const gV=Q(Hw)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,borderRadius:`calc(${e.shape.borderRadius}px + 8px)`,backdropFilter:"blur(24px)",border:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.background.default,boxShadow:e.shadows[1],padding:"8px 12px"}));function yV(){const[e,t]=h.useState(!1),n=c_(),r=u=>()=>{t(u)},o=()=>{n("/demo"),r(!1)()},s=()=>{n("/signin"),r(!1)()},i=()=>{n("/signup"),r(!1)()},a=()=>{n("/blog"),r(!1)()},l=()=>{n("/"),r(!1)()},c=()=>{n("/faq"),r(!1)()};return p.jsx(gB,{position:"fixed",enableColorOnDark:!0,sx:{boxShadow:0,bgcolor:"transparent",backgroundImage:"none",mt:"calc(var(--template-frame-height, 0px) + 28px)"},children:p.jsx(Jo,{maxWidth:"lg",children:p.jsxs(gV,{variant:"dense",disableGutters:!0,children:[p.jsxs(Ne,{sx:{flexGrow:1,display:"flex",alignItems:"center",px:0},children:[p.jsx(ZD,{}),p.jsxs(Ne,{sx:{display:{xs:"none",md:"flex"}},children:[p.jsx(rt,{variant:"text",color:"info",size:"small",onClick:l,children:"Features"}),p.jsx(rt,{variant:"text",color:"info",size:"small",onClick:o,children:"Demo"}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(rt,{variant:"text",color:"info",size:"small",children:"Testimonials"}),p.jsx(rt,{variant:"text",color:"info",size:"small",children:"Highlights"}),p.jsx(rt,{variant:"text",color:"info",size:"small",children:"Pricing"})]}),p.jsx(rt,{variant:"text",color:"info",size:"small",sx:{minWidth:0},onClick:c,children:"FAQ"}),p.jsx(rt,{variant:"text",color:"info",size:"small",sx:{minWidth:0},onClick:a,children:"Blog"})]})]}),p.jsxs(Ne,{sx:{display:{xs:"none",md:"flex"},gap:1,alignItems:"center"},children:[p.jsx(rt,{color:"primary",variant:"text",size:"small",onClick:s,children:"Sign in"}),p.jsx(rt,{color:"primary",variant:"contained",size:"small",onClick:i,children:"Sign up"}),p.jsx(sP,{})]}),p.jsxs(Ne,{sx:{display:{xs:"flex",md:"none"},gap:1},children:[p.jsx(sP,{size:"medium"}),p.jsx(wn,{"aria-label":"Menu button",onClick:r(!0),children:p.jsx(QH,{})}),p.jsx(XH,{anchor:"top",open:e,onClose:r(!1),PaperProps:{sx:{top:"var(--template-frame-height, 0px)"}},children:p.jsxs(Ne,{sx:{p:2,backgroundColor:"background.default"},children:[p.jsx(Ne,{sx:{display:"flex",justifyContent:"flex-end"},children:p.jsx(wn,{onClick:r(!1),children:p.jsx(ZH,{})})}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"contained",fullWidth:!0,onClick:l,children:"Features"})}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(Vt,{children:"Testimonials"}),p.jsx(Vt,{children:"Highlights"}),p.jsx(Vt,{children:"Pricing"})]}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"contained",fullWidth:!0,onClick:o,children:"Demo"})}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"contained",fullWidth:!0,onClick:c,children:"FAQ"})}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"contained",fullWidth:!0,onClick:a,children:"Blog"})}),p.jsx(dn,{sx:{my:3}}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"contained",fullWidth:!0,onClick:i,children:"Sign up"})}),p.jsx(Vt,{children:p.jsx(rt,{color:"primary",variant:"outlined",fullWidth:!0,onClick:s,children:"Sign in"})})]})})]})]})})})}function pl({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 $0=h.createContext(void 0);function eo(){return h.useContext($0)}function vV(e){return xe("MuiFormLabel",e)}const Fd=ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xV=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ae(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return le(l,vV,t)},bV=Q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ae(({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(Nt()).map(([t])=>({props:{color:t},style:{[`&.${Fd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Fd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),wV=Q("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ae(({theme:e})=>({[`&.${Fd.error}`]:{color:(e.vars||e).palette.error.main}}))),wc=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:f,...g}=r,m=eo(),y=pl({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},x=xV(v);return p.jsxs(bV,{as:a,ownerState:v,className:se(x.root,s),ref:n,...g,children:[o,y.required&&p.jsxs(wV,{ownerState:v,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});function CV(e){return xe("MuiInputLabel",e)}ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const SV=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ae(r)}`,i],asterisk:[a&&"asterisk"]},c=le(l,CV,t);return{...t,...c}},kV=Q(wc,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fd.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]]}})(Ae(({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)"}}]}))),rp=h.forwardRef(function(t,n){const r=_e({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=eo();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=pl({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=SV(g);return p.jsx(kV,{"data-shrink":d,ref:n,className:se(m.root,l),...c,ownerState:g,classes:m})});function PV(e){return xe("MuiLink",e)}const MV=ge("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),IV=({theme:e,ownerState:t})=>{const n=t.color,r=Nc(e,`palette.${n}`,!1)||t.color,o=Nc(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:be(r,.4)},iP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},EV=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${ae(o)}`,n==="button"&&"button",r&&"focusVisible"]};return le(s,PV,t)},TV=Q(Ce,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ae(n.underline)}`],n.component==="button"&&t.button]}})(Ae(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:be(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:be(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:be(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${MV.focusVisible}`]:{outline:"auto"}}}]}))),vn=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiLink"}),o=Dn(),{className:s,color:i="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:g,...m}=r,[y,v]=h.useState(!1),x=k=>{Hc(k.target)||v(!1),l&&l(k)},w=k=>{Hc(k.target)&&v(!0),c&&c(k)},b={...r,color:i,component:a,focusVisible:y,underline:d,variant:f},C=EV(b);return p.jsx(TV,{color:i,className:se(C.root,s),classes:u,component:a,onBlur:x,onFocus:w,ref:n,ownerState:b,variant:f,...m,sx:[...iP[i]===void 0?[{color:i}]:[],...Array.isArray(g)?g:[g]],style:{...m.style,...d==="always"&&i!=="inherit"&&!iP[i]&&{"--Link-underlineColor":IV({theme:o,ownerState:b})}}})}),Ja=r8({createStyledComponent:Q("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_e({props:e,name:"MuiStack"})});function rh(e){return parseInt(e,10)||0}const RV={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DV(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $V=h.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=h.useRef(a!=null),u=h.useRef(null),d=tt(n,u),f=h.useRef(null),g=h.useRef(null),m=h.useCallback(()=>{const x=u.current,b=Gr(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=g.current;C.style.width=b.width,C.value=x.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const k=b.boxSizing,M=rh(b.paddingBottom)+rh(b.paddingTop),T=rh(b.borderBottomWidth)+rh(b.borderTopWidth),I=C.scrollHeight;C.value="x";const D=C.scrollHeight;let S=I;s&&(S=Math.max(Number(s)*D,S)),o&&(S=Math.min(Number(o)*D,S)),S=Math.max(S,D);const R=S+(k==="border-box"?M+T:0),j=Math.abs(S-I)<=1;return{outerHeightStyle:R,overflowing:j}},[o,s,t.placeholder]),y=h.useCallback(()=>{const x=m();if(DV(x))return;const w=x.outerHeightStyle,b=u.current;f.current!==w&&(f.current=w,b.style.height=`${w}px`),b.style.overflow=x.overflowing?"hidden":""},[m]);at(()=>{const x=()=>{y()};let w;const b=Dw(x),C=u.current,k=Gr(C);k.addEventListener("resize",b);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(x),M.observe(C)),()=>{b.clear(),cancelAnimationFrame(w),k.removeEventListener("resize",b),M&&M.disconnect()}},[m,y]),at(()=>{y()});const v=x=>{c||y(),r&&r(x)};return p.jsxs(h.Fragment,{children:[p.jsx("textarea",{value:a,onChange:v,ref:d,rows:s,style:i,...l}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...RV.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function aP(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wm(e,t=!1){return e&&(aP(e.value)&&e.value!==""||t&&aP(e.defaultValue)&&e.defaultValue!=="")}function AV(e){return e.startAdornment}function OV(e){return xe("MuiInputBase",e)}const Or=ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var lP;const A0=(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${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},O0=(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]},jV=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:g,type:m}=e,y={root:["root",`color${ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",f&&f!=="medium"&&`size${ae(f)}`,u&&"multiline",g&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return le(y,OV,t)},j0=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:A0})(Ae(({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",[`&.${Or.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%"}}]}))),F0=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:O0})(Ae(({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] + .${Or.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},[`&.${Or.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),cP=Lw({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vu=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:g,endAdornment:m,error:y,fullWidth:v=!1,id:x,inputComponent:w="input",inputProps:b={},inputRef:C,margin:k,maxRows:M,minRows:T,multiline:I=!1,name:D,onBlur:S,onChange:R,onClick:j,onFocus:F,onKeyDown:A,onKeyUp:$,placeholder:E,readOnly:L,renderSuffix:O,rows:_,size:N,slotProps:z={},slots:G={},startAdornment:J,type:K="text",value:B,...W}=r,te=b.value!=null?b.value:B,{current:X}=h.useRef(te!=null),q=h.useRef(),U=h.useCallback(Ie=>{},[]),ee=tt(q,C,b.ref,U),[H,Z]=h.useState(!1),ne=eo(),oe=pl({props:r,muiFormControl:ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=ne?ne.focused:H,h.useEffect(()=>{!ne&&f&&H&&(Z(!1),S&&S())},[ne,f,H,S]);const re=ne&&ne.onFilled,de=ne&&ne.onEmpty,ie=h.useCallback(Ie=>{Wm(Ie)?re&&re():de&&de()},[re,de]);at(()=>{X&&ie({value:te})},[te,ie,X]);const we=Ie=>{F&&F(Ie),b.onFocus&&b.onFocus(Ie),ne&&ne.onFocus?ne.onFocus(Ie):Z(!0)},Re=Ie=>{S&&S(Ie),b.onBlur&&b.onBlur(Ie),ne&&ne.onBlur?ne.onBlur(Ie):Z(!1)},Le=(Ie,...We)=>{if(!X){const Ct=Ie.target||q.current;if(Ct==null)throw new Error(ei(1));ie({value:Ct.value})}b.onChange&&b.onChange(Ie,...We),R&&R(Ie,...We)};h.useEffect(()=>{ie(q.current)},[]);const Qe=Ie=>{q.current&&Ie.currentTarget===Ie.target&&q.current.focus(),j&&j(Ie)};let Me=w,Ee=b;I&&Me==="input"&&(_?Ee={type:void 0,minRows:_,maxRows:_,...Ee}:Ee={type:void 0,maxRows:M,minRows:T,...Ee},Me=$V);const Ve=Ie=>{ie(Ie.animationName==="mui-auto-fill-cancel"?q.current:{value:"x"})};h.useEffect(()=>{ne&&ne.setAdornedStart(!!J)},[ne,J]);const Ge={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:m,error:oe.error,focused:oe.focused,formControl:ne,fullWidth:v,hiddenLabel:oe.hiddenLabel,multiline:I,size:oe.size,startAdornment:J,type:K},Oe=jV(Ge),je=G.root||c.Root||j0,Ue=z.root||u.root||{},Te=G.input||c.Input||F0;return Ee={...Ee,...z.input??u.input},p.jsxs(h.Fragment,{children:[!g&&typeof cP=="function"&&(lP||(lP=p.jsx(cP,{}))),p.jsxs(je,{...Ue,ref:n,onClick:Qe,...W,...!Uc(je)&&{ownerState:{...Ge,...Ue.ownerState}},className:se(Oe.root,Ue.className,a,L&&"MuiInputBase-readOnly"),children:[J,p.jsx($0.Provider,{value:null,children:p.jsx(Te,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:oe.disabled,id:x,onAnimationStart:Ve,name:D,placeholder:E,readOnly:L,required:oe.required,rows:_,value:te,onKeyDown:A,onKeyUp:$,type:K,...Ee,...!Uc(Te)&&{as:Me,ownerState:{...Ge,...Ee.ownerState}},ref:ee,className:se(Oe.input,Ee.className,L&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Le,onFocus:we})}),m,O?O({...oe,startAdornment:J}):null]})]})});function FV(e){return xe("MuiInput",e)}const Di={...Or,...ge("MuiInput",["root","underline","input"])},LV=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},FV,t);return{...t,...o}},_V=Q(j0,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A0(e,t),!n.disableUnderline&&t.underline]}})(Ae(({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"},[`&.${Di.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Di.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(.${Di.disabled}, .${Di.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Di.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Nt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),NV=Q(F0,{name:"MuiInput",slot:"Input",overridesResolver:O0})({}),Gm=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...g}=r,m=LV(r),v={root:{ownerState:{disableUnderline:o}}},x=u??i?Tn(u??i,v):v,w=d.root??s.Root??_V,b=d.input??s.Input??NV;return p.jsx(vu,{slots:{root:w,input:b},slotProps:x,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...g,classes:m})});Gm&&(Gm.muiName="Input");function zV(e){return xe("MuiFilledInput",e)}const jr={...Or,...ge("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},BV=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ae(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=le(l,zV,t);return{...t,...c}},HV=Q(j0,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A0(e,t),!n.disableUnderline&&t.underline]}})(Ae(({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)",s=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}},[`&.${jr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${jr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.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"},[`&.${jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jr.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(.${jr.disabled}, .${jr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Nt()).map(([i])=>{var a;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[i])==null?void 0:a.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),VV=Q(F0,{name:"MuiFilledInput",slot:"Input",overridesResolver:O0})(Ae(({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}}]}))),Km=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:g="text",...m}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:g},v=BV(r),x={root:{ownerState:y},input:{ownerState:y}},w=d??i?Tn(x,d??i):x,b=f.root??s.Root??HV,C=f.input??s.Input??VV;return p.jsx(vu,{slots:{root:b,input:C},componentsProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:g,...m,classes:v})});Km&&(Km.muiName="Input");var uP;const UV=Q("fieldset",{shouldForwardProp:Xn})({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%"}),WV=Q("legend",{shouldForwardProp:Xn})(Ae(({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 GV(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return p.jsx(UV,{"aria-hidden":!0,className:r,ownerState:l,...i,children:p.jsx(WV,{ownerState:l,children:a?p.jsx("span",{children:o}):uP||(uP=p.jsx("span",{className:"notranslate",children:"​"}))})})}function KV(e){return xe("MuiOutlinedInput",e)}const Dr={...Or,...ge("MuiOutlinedInput",["root","notchedOutline","input"])},YV=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},KV,t);return{...t,...r}},qV=Q(j0,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:A0})(Ae(({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 .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Nt()).map(([n])=>({props:{color:n},style:{[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Dr.error} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dr.disabled} .${Dr.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"}}]}})),XV=Q(GV,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ae(({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}})),QV=Q(F0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:O0})(Ae(({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}}]}))),Wc=h.forwardRef(function(t,n){var r;const o=_e({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...g}=o,m=YV(o),y=eo(),v=pl({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...o,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:y,fullWidth:i,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:f},w=d.root??s.Root??qV,b=d.input??s.Input??QV;return p.jsx(vu,{slots:{root:w,input:b},renderSuffix:C=>p.jsx(XV,{ownerState:x,className:m.notchedOutline,label:l!=null&&l!==""&&v.required?r||(r=p.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:f,...g,classes:{...m,notchedOutline:null}})});Wc&&(Wc.muiName="Input");function ZV(e){return xe("MuiFormControl",e)}ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const JV=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ae(n)}`,r&&"fullWidth"]};return le(o,ZV,t)},eU=Q("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${ae(e.margin)}`],...e.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%"}}]}),Gs=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:g="none",required:m=!1,size:y="medium",variant:v="outlined",...x}=r,w={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:g,required:m,size:y,variant:v},b=JV(w),[C,k]=h.useState(()=>{let F=!1;return o&&h.Children.forEach(o,A=>{if(!Ad(A,["Input","Select"]))return;const $=Ad(A,["Select"])?A.props.input:A;$&&AV($.props)&&(F=!0)}),F}),[M,T]=h.useState(()=>{let F=!1;return o&&h.Children.forEach(o,A=>{Ad(A,["Input","Select"])&&(Wm(A.props,!0)||Wm(A.props.inputProps,!0))&&(F=!0)}),F}),[I,D]=h.useState(!1);l&&I&&D(!1);const S=u!==void 0&&!l?u:I;let R;h.useRef(!1);const j=h.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:i,disabled:l,error:c,filled:M,focused:S,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{D(!0)},registerEffect:R,required:m,variant:v}),[C,i,l,c,M,S,d,f,R,m,y,v]);return p.jsx($0.Provider,{value:j,children:p.jsx(eU,{as:a,ownerState:w,className:se(b.root,s),ref:n,...x,children:o})})});function tU(e){return xe("MuiFormHelperText",e)}const dP=ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var fP;const nU=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ae(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return le(c,tU,t)},rU=Q("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${dP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${dP.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}}]}))),r$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:f,variant:g,...m}=r,y=eo(),v=pl({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:i,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete x.ownerState;const w=nU(x);return p.jsx(rU,{as:i,className:se(w.root,s),ref:n,...m,ownerState:x,children:o===" "?fP||(fP=p.jsx("span",{className:"notranslate",children:"​"})):o})});function oU(e){return xe("MuiNativeSelect",e)}const Qw=ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),sU=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(n)}`,s&&"iconOpen",r&&"disabled"]};return le(a,oU,t)},o$=Q("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Qw.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}}}]})),iU=Q(o$,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Qw.multiple}`]:t.multiple}]}})({}),s$=Q("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Qw.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}}]})),aU=Q(s$,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),lU=h.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},d=sU(u);return p.jsxs(h.Fragment,{children:[p.jsx(iU,{ownerState:u,className:se(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:p.jsx(aU,{as:i,ownerState:u,className:d.icon})]})});function cU(e){return xe("MuiSelect",e)}const Pa=ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var pP;const uU=Q(o$,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Pa.select}`]:t.select},{[`&.${Pa.select}`]:t[n.variant]},{[`&.${Pa.error}`]:t.error},{[`&.${Pa.multiple}`]:t.multiple}]}})({[`&.${Pa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dU=Q(s$,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),fU=Q("input",{shouldForwardProp:e=>wD(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 hP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function pU(e){return e==null||typeof e=="string"&&!e.trim()}const hU=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return le(a,cU,t)},mU=h.forwardRef(function(t,n){var Ct;const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:g=!1,IconComponent:m,inputRef:y,labelId:v,MenuProps:x={},multiple:w,name:b,onBlur:C,onChange:k,onClose:M,onFocus:T,onOpen:I,open:D,readOnly:S,renderValue:R,SelectDisplayProps:j={},tabIndex:F,type:A,value:$,variant:E="standard",...L}=t,[O,_]=Nn({controlled:$,default:u,name:"Select"}),[N,z]=Nn({controlled:D,default:c,name:"Select"}),G=h.useRef(null),J=h.useRef(null),[K,B]=h.useState(null),{current:W}=h.useRef(D!=null),[te,X]=h.useState(),q=tt(n,y),U=h.useCallback(ye=>{J.current=ye,ye&&B(ye)},[]),ee=K==null?void 0:K.parentNode;h.useImperativeHandle(q,()=>({focus:()=>{J.current.focus()},node:G.current,value:O}),[O]),h.useEffect(()=>{c&&N&&K&&!W&&(X(i?null:ee.clientWidth),J.current.focus())},[K,i]),h.useEffect(()=>{s&&J.current.focus()},[s]),h.useEffect(()=>{if(!v)return;const ye=zt(J.current).getElementById(v);if(ye){const $e=()=>{getSelection().isCollapsed&&J.current.focus()};return ye.addEventListener("click",$e),()=>{ye.removeEventListener("click",$e)}}},[v]);const H=(ye,$e)=>{ye?I&&I($e):M&&M($e),W||(X(i?null:ee.clientWidth),z(ye))},Z=ye=>{ye.button===0&&(ye.preventDefault(),J.current.focus(),H(!0,ye))},ne=ye=>{H(!1,ye)},oe=h.Children.toArray(a),re=ye=>{const $e=oe.find(Xe=>Xe.props.value===ye.target.value);$e!==void 0&&(_($e.props.value),k&&k(ye,$e))},de=ye=>$e=>{let Xe;if($e.currentTarget.hasAttribute("tabindex")){if(w){Xe=Array.isArray(O)?O.slice():[];const ht=O.indexOf(ye.props.value);ht===-1?Xe.push(ye.props.value):Xe.splice(ht,1)}else Xe=ye.props.value;if(ye.props.onClick&&ye.props.onClick($e),O!==Xe&&(_(Xe),k)){const ht=$e.nativeEvent||$e,Qn=new ht.constructor(ht.type,ht);Object.defineProperty(Qn,"target",{writable:!0,value:{value:Xe,name:b}}),k(Qn,ye)}w||H(!1,$e)}},ie=ye=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),H(!0,ye))},we=K!==null&&N,Re=ye=>{!we&&C&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:O,name:b}}),C(ye))};delete L["aria-invalid"];let Le,Qe;const Me=[];let Ee=!1;(Wm({value:O})||f)&&(R?Le=R(O):Ee=!0);const Ve=oe.map(ye=>{if(!h.isValidElement(ye))return null;let $e;if(w){if(!Array.isArray(O))throw new Error(ei(2));$e=O.some(Xe=>hP(Xe,ye.props.value)),$e&&Ee&&Me.push(ye.props.children)}else $e=hP(O,ye.props.value),$e&&Ee&&(Qe=ye.props.children);return h.cloneElement(ye,{"aria-selected":$e?"true":"false",onClick:de(ye),onKeyUp:Xe=>{Xe.key===" "&&Xe.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(Xe)},role:"option",selected:$e,value:void 0,"data-value":ye.props.value})});Ee&&(w?Me.length===0?Le=null:Le=Me.reduce((ye,$e,Xe)=>(ye.push($e),Xe{const{classes:t}=e;return t},Zw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xn(e)&&e!=="variant",slot:"Root"},yU=Q(Gm,Zw)(""),vU=Q(Wc,Zw)(""),xU=Q(Km,Zw)(""),op=h.forwardRef(function(t,n){const r=_e({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=i$,id:d,input:f,inputProps:g,label:m,labelId:y,MenuProps:v,multiple:x=!1,native:w=!1,onClose:b,onOpen:C,open:k,renderValue:M,SelectDisplayProps:T,variant:I="outlined",...D}=r,S=w?lU:mU,R=eo(),j=pl({props:r,muiFormControl:R,states:["variant","error"]}),F=j.variant||I,A={...r,variant:F,classes:i},$=gU(A),{root:E,...L}=$,O=f||{standard:p.jsx(yU,{ownerState:A}),outlined:p.jsx(vU,{label:m,ownerState:A}),filled:p.jsx(xU,{ownerState:A})}[F],_=tt(n,sa(O));return p.jsx(h.Fragment,{children:h.cloneElement(O,{inputComponent:S,inputProps:{children:s,error:j.error,IconComponent:u,variant:F,type:void 0,multiple:x,...w?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:v,onClose:b,onOpen:C,open:k,renderValue:M,SelectDisplayProps:{id:d,...T}},...g,classes:g?Tn(L,g.classes):L,...f?f.props.inputProps:{}},...(x&&w||c)&&F==="outlined"?{notched:!0}:{},ref:_,className:se(O.props.className,a,$.root),...!f&&{variant:F},...D})})});op.muiName="Select";function bU(e){return xe("MuiTextField",e)}ge("MuiTextField",["root"]);const wU={standard:Gm,filled:Km,outlined:Wc},CU=e=>{const{classes:t}=e;return le({root:["root"]},bU,t)},SU=Q(Gs,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qo=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:g=!1,helperText:m,id:y,InputLabelProps:v,inputProps:x,InputProps:w,inputRef:b,label:C,maxRows:k,minRows:M,multiline:T=!1,name:I,onBlur:D,onChange:S,onFocus:R,placeholder:j,required:F=!1,rows:A,select:$=!1,SelectProps:E,slots:L={},slotProps:O={},type:_,value:N,variant:z="outlined",...G}=r,J={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:g,multiline:T,required:F,select:$,variant:z},K=CU(J),B=mt(y),W=m&&B?`${B}-helper-text`:void 0,te=C&&B?`${B}-label`:void 0,X=wU[z],q={slots:L,slotProps:{input:w,inputLabel:v,htmlInput:x,formHelperText:f,select:E,...O}},U={},ee=q.slotProps.inputLabel;z==="outlined"&&(ee&&typeof ee.shrink<"u"&&(U.notched=ee.shrink),U.label=C),$&&((!E||!E.native)&&(U.id=void 0),U["aria-describedby"]=void 0);const[H,Z]=Qt("input",{elementType:X,externalForwardedProps:q,additionalProps:U,ownerState:J}),[ne,oe]=Qt("inputLabel",{elementType:rp,externalForwardedProps:q,ownerState:J}),[re,de]=Qt("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:J}),[ie,we]=Qt("formHelperText",{elementType:r$,externalForwardedProps:q,ownerState:J}),[Re,Le]=Qt("select",{elementType:op,externalForwardedProps:q,ownerState:J}),Qe=p.jsx(H,{"aria-describedby":W,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:g,multiline:T,name:I,rows:A,maxRows:k,minRows:M,type:_,value:N,id:B,inputRef:b,onBlur:D,onChange:S,onFocus:R,placeholder:j,inputProps:de,slots:{input:L.htmlInput?re:void 0},...Z});return p.jsxs(SU,{className:se(K.root,a),disabled:u,error:d,fullWidth:g,ref:n,required:F,color:l,variant:z,ownerState:J,...G,children:[C!=null&&C!==""&&p.jsx(ne,{htmlFor:B,id:te,...oe,children:C}),$?p.jsx(Re,{"aria-describedby":W,id:B,labelId:te,value:N,input:Qe,...Le,children:i}):Qe,m&&p.jsx(ie,{id:W,...we,children:m})]})}),mn=XN({createStyledComponent:Q("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>_e({props:e,name:"MuiGrid2"})});function kU(e){return xe("MuiCollapse",e)}ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const PU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return le(r,kU,n)},MU=Q("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]}})(Ae(({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"}}]}))),IU=Q("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),EU=Q("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xx=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:g,onExit:m,onExited:y,onExiting:v,orientation:x="vertical",style:w,timeout:b=yD.standard,TransitionComponent:C=Jr,...k}=r,M={...r,orientation:x,collapsedSize:a},T=PU(M),I=Dn(),D=zr(),S=h.useRef(null),R=h.useRef(),j=typeof a=="number"?`${a}px`:a,F=x==="horizontal",A=F?"width":"height",$=h.useRef(null),E=tt(n,$),L=W=>te=>{if(W){const X=$.current;te===void 0?W(X):W(X,te)}},O=()=>S.current?S.current[F?"clientWidth":"clientHeight"]:0,_=L((W,te)=>{S.current&&F&&(S.current.style.position="absolute"),W.style[A]=j,d&&d(W,te)}),N=L((W,te)=>{const X=O();S.current&&F&&(S.current.style.position="");const{duration:q,easing:U}=Zi({style:w,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ee=I.transitions.getAutoHeightDuration(X);W.style.transitionDuration=`${ee}ms`,R.current=ee}else W.style.transitionDuration=typeof q=="string"?q:`${q}ms`;W.style[A]=`${X}px`,W.style.transitionTimingFunction=U,g&&g(W,te)}),z=L((W,te)=>{W.style[A]="auto",f&&f(W,te)}),G=L(W=>{W.style[A]=`${O()}px`,m&&m(W)}),J=L(y),K=L(W=>{const te=O(),{duration:X,easing:q}=Zi({style:w,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const U=I.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${U}ms`,R.current=U}else W.style.transitionDuration=typeof X=="string"?X:`${X}ms`;W.style[A]=j,W.style.transitionTimingFunction=q,v&&v(W)}),B=W=>{b==="auto"&&D.start(R.current||0,W),o&&o($.current,W)};return p.jsx(C,{in:u,onEnter:_,onEntered:z,onEntering:N,onExit:G,onExited:J,onExiting:K,addEndListener:B,nodeRef:$,timeout:b==="auto"?null:b,...k,children:(W,te)=>p.jsx(MU,{as:l,className:se(T.root,i,{entered:T.entered,exited:!u&&j==="0px"&&T.hidden}[W]),style:{[F?"minWidth":"minHeight"]:j,...w},ref:E,...te,ownerState:{...M,state:W},children:p.jsx(IU,{ownerState:{...M,state:W},className:T.wrapper,ref:S,children:p.jsx(EU,{ownerState:{...M,state:W},className:T.wrapperInner,children:s})})})})});xx&&(xx.muiSupportAuto=!0);const a$=h.createContext({});function TU(e){return xe("MuiAccordion",e)}const oh=ge("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),RU=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:s}=e;return le({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},TU,t)},DU=Q(Ao,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oh.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Ae(({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"}},[`&.${oh.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${oh.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Ae(({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:{[`&.${oh.expanded}`]:{margin:"16px 0"}}}]}))),$U=Q("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),sh=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:i=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:f={},slotProps:g={},TransitionComponent:m,TransitionProps:y,...v}=r,[x,w]=Nn({controlled:c,default:i,name:"Accordion",state:"expanded"}),b=h.useCallback(E=>{w(!x),u&&u(E,!x)},[x,u,w]),[C,...k]=h.Children.toArray(o),M=h.useMemo(()=>({expanded:x,disabled:a,disableGutters:l,toggle:b}),[x,a,l,b]),T={...r,square:d,disabled:a,disableGutters:l,expanded:x},I=RU(T),D={transition:m,...f},S={transition:y,...g},R={slots:D,slotProps:S},[j,F]=Qt("heading",{elementType:$U,externalForwardedProps:R,className:I.heading,ownerState:T}),[A,$]=Qt("transition",{elementType:xx,externalForwardedProps:R,ownerState:T});return p.jsxs(DU,{className:se(I.root,s),ref:n,ownerState:T,square:d,...v,children:[p.jsx(j,{...F,children:p.jsx(a$.Provider,{value:M,children:C})}),p.jsx(A,{in:x,timeout:"auto",...$,children:p.jsx("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:I.region,children:k})})]})});function AU(e){return xe("MuiAccordionDetails",e)}ge("MuiAccordionDetails",["root"]);const OU=e=>{const{classes:t}=e;return le({root:["root"]},AU,t)},jU=Q("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(Ae(({theme:e})=>({padding:e.spacing(1,2,2)}))),ih=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAccordionDetails"}),{className:o,...s}=r,i=r,a=OU(i);return p.jsx(jU,{className:se(a.root,o),ref:n,ownerState:i,...s})});function FU(e){return xe("MuiAccordionSummary",e)}const ic=ge("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),LU=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return le({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},FU,t)},_U=Q(ni,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(Ae(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${ic.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ic.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${ic.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${ic.expanded}`]:{minHeight:64}}}]}})),NU=Q("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(Ae(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${ic.expanded}`]:{margin:"20px 0"}}}]}))),zU=Q("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(Ae(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${ic.expanded}`]:{transform:"rotate(180deg)"}}))),ah=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:i,focusVisibleClassName:a,onClick:l,...c}=r,{disabled:u=!1,disableGutters:d,expanded:f,toggle:g}=h.useContext(a$),m=x=>{g&&g(x),l&&l(x)},y={...r,expanded:f,disabled:u,disableGutters:d},v=LU(y);return p.jsxs(_U,{focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":f,className:se(v.root,s),focusVisibleClassName:se(v.focusVisible,a),onClick:m,ref:n,ownerState:y,...c,children:[p.jsx(NU,{className:v.content,ownerState:y,children:o}),i&&p.jsx(zU,{className:v.expandIconWrapper,ownerState:y,children:i})]})}),BU=De(p.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");function mP(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function l$(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=mP(u));const d=u?a.filter(f=>{let g=(s||c)(f);return n&&(g=g.toLowerCase()),t&&(g=mP(g)),o==="start"?g.startsWith(u):g.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const HU=l$(),gP=5,VU=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},UU=[];function WU(e){const{unstable_isActiveElementInListbox:t=VU,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?UU:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:v=HU,filterSelectedOptions:x=!1,freeSolo:w=!1,getOptionDisabled:b,getOptionKey:C,getOptionLabel:k=he=>he.label??he,groupBy:M,handleHomeEndKeys:T=!e.freeSolo,id:I,includeInputInList:D=!1,inputValue:S,isOptionEqualToValue:R=(he,pe)=>he===pe,multiple:j=!1,onChange:F,onClose:A,onHighlightChange:$,onInputChange:E,onOpen:L,open:O,openOnFocus:_=!1,options:N,readOnly:z=!1,selectOnFocus:G=!e.freeSolo,value:J}=e,K=mt(I);let B=k;B=he=>{const pe=k(he);return typeof pe!="string"?String(pe):pe};const W=h.useRef(!1),te=h.useRef(!0),X=h.useRef(null),q=h.useRef(null),[U,ee]=h.useState(null),[H,Z]=h.useState(-1),ne=o?0:-1,oe=h.useRef(ne),[re,de]=Nn({controlled:J,default:u,name:c}),[ie,we]=Nn({controlled:S,default:"",name:c,state:"inputValue"}),[Re,Le]=h.useState(!1),Qe=h.useCallback((he,pe,Be)=>{if(!(j?re.length!(x&&(j?re:[re]).some(pe=>pe!==null&&R(he,pe)))),{inputValue:Oe&&Ve?"":ie,getOptionLabel:B}):[],Te=$w({filteredOptions:Ue,value:re,inputValue:ie});h.useEffect(()=>{const he=re!==Te.value;Re&&!he||w&&!he||Qe(null,re,"reset")},[re,Qe,Re,Te.value,w]);const Ie=Me&&Ue.length>0&&!z,We=ve(he=>{he===-1?X.current.focus():U.querySelector(`[data-tag-index="${he}"]`).focus()});h.useEffect(()=>{j&&H>re.length-1&&(Z(-1),We(-1))},[re,j,H,We]);function Ct(he,pe){if(!q.current||he<0||he>=Ue.length)return-1;let Be=he;for(;;){const lt=q.current.querySelector(`[data-option-index="${Be}"]`),ft=m?!1:!lt||lt.disabled||lt.getAttribute("aria-disabled")==="true";if(lt&<.hasAttribute("tabindex")&&!ft)return Be;if(pe==="next"?Be=(Be+1)%Ue.length:Be=(Be-1+Ue.length)%Ue.length,Be===he)return-1}}const ye=ve(({event:he,index:pe,reason:Be="auto"})=>{if(oe.current=pe,pe===-1?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${K}-option-${pe}`),$&&$(he,pe===-1?null:Ue[pe],Be),!q.current)return;const lt=q.current.querySelector(`[role="option"].${n}-focused`);lt&&(lt.classList.remove(`${n}-focused`),lt.classList.remove(`${n}-focusVisible`));let ft=q.current;if(q.current.getAttribute("role")!=="listbox"&&(ft=q.current.parentElement.querySelector('[role="listbox"]')),!ft)return;if(pe===-1){ft.scrollTop=0;return}const tn=q.current.querySelector(`[data-option-index="${pe}"]`);if(tn&&(tn.classList.add(`${n}-focused`),Be==="keyboard"&&tn.classList.add(`${n}-focusVisible`),ft.scrollHeight>ft.clientHeight&&Be!=="mouse"&&Be!=="touch")){const Mt=tn,Fo=ft.clientHeight+ft.scrollTop,Ip=Mt.offsetTop+Mt.offsetHeight;Ip>Fo?ft.scrollTop=Ip-ft.clientHeight:Mt.offsetTop-Mt.offsetHeight*(M?1.3:0){if(!je)return;const tn=Ct((()=>{const Mt=Ue.length-1;if(pe==="reset")return ne;if(pe==="start")return 0;if(pe==="end")return Mt;const Fo=oe.current+pe;return Fo<0?Fo===-1&&D?-1:y&&oe.current!==-1||Math.abs(pe)>1?0:Mt:Fo>Mt?Fo===Mt+1&&D?-1:y||Math.abs(pe)>1?Mt:0:Fo})(),Be);if(ye({index:tn,reason:lt,event:he}),r&&pe!=="reset")if(tn===-1)X.current.value=ie;else{const Mt=B(Ue[tn]);X.current.value=Mt,Mt.toLowerCase().indexOf(ie.toLowerCase())===0&&ie.length>0&&X.current.setSelectionRange(ie.length,Mt.length)}}),Xe=()=>{const he=(pe,Be)=>{const lt=pe?B(pe):"",ft=Be?B(Be):"";return lt===ft};if(oe.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Ue.length&&Te.inputValue===ie&&(j?re.length===Te.value.length&&Te.value.every((pe,Be)=>B(re[Be])===B(pe)):he(Te.value,re))){const pe=Te.filteredOptions[oe.current];if(pe)return Ue.findIndex(Be=>B(Be)===B(pe))}return-1},ht=h.useCallback(()=>{if(!je)return;const he=Xe();if(he!==-1){oe.current=he;return}const pe=j?re[0]:re;if(Ue.length===0||pe==null){$e({diff:"reset"});return}if(q.current){if(pe!=null){const Be=Ue[oe.current];if(j&&Be&&re.findIndex(ft=>R(Be,ft))!==-1)return;const lt=Ue.findIndex(ft=>R(ft,pe));lt===-1?$e({diff:"reset"}):ye({index:lt});return}if(oe.current>=Ue.length-1){ye({index:Ue.length-1});return}ye({index:oe.current})}},[Ue.length,j?!1:re,x,$e,ye,je,ie,j]),Qn=ve(he=>{jm(q,he),he&&ht()});h.useEffect(()=>{ht()},[ht]);const ct=he=>{Me||(Ee(!0),Ge(!0),L&&L(he))},jt=(he,pe)=>{Me&&(Ee(!1),A&&A(he,pe))},ln=(he,pe,Be,lt)=>{if(j){if(re.length===pe.length&&re.every((ft,tn)=>ft===pe[tn]))return}else if(re===pe)return;F&&F(he,pe,Be,lt),de(pe)},en=h.useRef(!1),lr=(he,pe,Be="selectOption",lt="options")=>{let ft=Be,tn=pe;if(j){tn=Array.isArray(re)?re.slice():[];const Mt=tn.findIndex(Fo=>R(pe,Fo));Mt===-1?tn.push(pe):lt!=="freeSolo"&&(tn.splice(Mt,1),ft="removeOption")}Qe(he,tn,ft),ln(he,tn,ft,{option:pe}),!f&&(!he||!he.ctrlKey&&!he.metaKey)&&jt(he,ft),(i===!0||i==="touch"&&en.current||i==="mouse"&&!en.current)&&X.current.blur()};function Hn(he,pe){if(he===-1)return-1;let Be=he;for(;;){if(pe==="next"&&Be===re.length||pe==="previous"&&Be===-1)return-1;const lt=U.querySelector(`[data-tag-index="${Be}"]`);if(!lt||!lt.hasAttribute("tabindex")||lt.disabled||lt.getAttribute("aria-disabled")==="true")Be+=pe==="next"?1:-1;else return Be}}const Tr=(he,pe)=>{if(!j)return;ie===""&&jt(he,"toggleInput");let Be=H;H===-1?ie===""&&pe==="previous"&&(Be=re.length-1):(Be+=pe==="next"?1:-1,Be<0&&(Be=0),Be===re.length&&(Be=-1)),Be=Hn(Be,pe),Z(Be),We(Be)},rs=he=>{W.current=!0,we(""),E&&E(he,"","clear"),ln(he,j?[]:null,"clear")},nt=he=>pe=>{if(he.onKeyDown&&he.onKeyDown(pe),!pe.defaultMuiPrevented&&(H!==-1&&!["ArrowLeft","ArrowRight"].includes(pe.key)&&(Z(-1),We(-1)),pe.which!==229))switch(pe.key){case"Home":je&&T&&(pe.preventDefault(),$e({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":je&&T&&(pe.preventDefault(),$e({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),$e({diff:-gP,direction:"previous",reason:"keyboard",event:pe}),ct(pe);break;case"PageDown":pe.preventDefault(),$e({diff:gP,direction:"next",reason:"keyboard",event:pe}),ct(pe);break;case"ArrowDown":pe.preventDefault(),$e({diff:1,direction:"next",reason:"keyboard",event:pe}),ct(pe);break;case"ArrowUp":pe.preventDefault(),$e({diff:-1,direction:"previous",reason:"keyboard",event:pe}),ct(pe);break;case"ArrowLeft":Tr(pe,"previous");break;case"ArrowRight":Tr(pe,"next");break;case"Enter":if(oe.current!==-1&&je){const Be=Ue[oe.current],lt=b?b(Be):!1;if(pe.preventDefault(),lt)return;lr(pe,Be,"selectOption"),r&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else w&&ie!==""&&Oe===!1&&(j&&pe.preventDefault(),lr(pe,ie,"createOption","freeSolo"));break;case"Escape":je?(pe.preventDefault(),pe.stopPropagation(),jt(pe,"escape")):l&&(ie!==""||j&&re.length>0)&&(pe.preventDefault(),pe.stopPropagation(),rs(pe));break;case"Backspace":if(j&&!z&&ie===""&&re.length>0){const Be=H===-1?re.length-1:H,lt=re.slice();lt.splice(Be,1),ln(pe,lt,"removeOption",{option:re[Be]})}break;case"Delete":if(j&&!z&&ie===""&&re.length>0&&H!==-1){const Be=H,lt=re.slice();lt.splice(Be,1),ln(pe,lt,"removeOption",{option:re[Be]})}break}},Zn=he=>{Le(!0),_&&!W.current&&ct(he)},Pp=he=>{if(t(q)){X.current.focus();return}Le(!1),te.current=!0,W.current=!1,s&&oe.current!==-1&&je?lr(he,Ue[oe.current],"blur"):s&&w&&ie!==""?lr(he,ie,"blur","freeSolo"):a&&Qe(he,re,"blur"),jt(he,"blur")},xl=he=>{const pe=he.target.value;ie!==pe&&(we(pe),Ge(!1),E&&E(he,pe,"input")),pe===""?!d&&!j&&ln(he,null,"clear"):ct(he)},Du=he=>{const pe=Number(he.currentTarget.getAttribute("data-option-index"));oe.current!==pe&&ye({event:he,index:pe,reason:"mouse"})},$u=he=>{ye({event:he,index:Number(he.currentTarget.getAttribute("data-option-index")),reason:"touch"}),en.current=!0},Dy=he=>{const pe=Number(he.currentTarget.getAttribute("data-option-index"));lr(he,Ue[pe],"selectOption"),en.current=!1},$y=he=>pe=>{const Be=re.slice();Be.splice(he,1),ln(pe,Be,"removeOption",{option:re[he]})},Mp=he=>{Me?jt(he,"toggleInput"):ct(he)},OS=he=>{he.currentTarget.contains(he.target)&&he.target.getAttribute("id")!==K&&he.preventDefault()},Au=he=>{he.currentTarget.contains(he.target)&&(X.current.focus(),G&&te.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.current.select(),te.current=!1)},Vn=he=>{!g&&(ie===""||!Me)&&Mp(he)};let pn=w&&ie.length>0;pn=pn||(j?re.length>0:re!==null);let $s=Ue;return M&&($s=Ue.reduce((he,pe,Be)=>{const lt=M(pe);return he.length>0&&he[he.length-1].group===lt?he[he.length-1].options.push(pe):he.push({key:Be,index:Be,group:lt,options:[pe]}),he},[])),g&&Re&&Pp(),{getRootProps:(he={})=>({"aria-owns":Ie?`${K}-listbox`:null,...he,onKeyDown:nt(he),onMouseDown:OS,onClick:Au}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:ie,onBlur:Pp,onFocus:Zn,onChange:xl,onMouseDown:Vn,"aria-activedescendant":je?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ie?`${K}-listbox`:void 0,"aria-expanded":Ie,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:rs}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Mp}),getTagProps:({index:he})=>({key:he,"data-tag-index":he,tabIndex:-1,...!z&&{onDelete:$y(he)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:Qn,onMouseDown:he=>{he.preventDefault()}}),getOptionProps:({index:he,option:pe})=>{const Be=(j?re:[re]).some(ft=>ft!=null&&R(pe,ft)),lt=b?b(pe):!1;return{key:(C==null?void 0:C(pe))??B(pe),tabIndex:-1,role:"option",id:`${K}-option-${he}`,onMouseMove:Du,onClick:Dy,onTouchStart:$u,"data-option-index":he,"aria-disabled":lt,"aria-selected":Be}},id:K,inputValue:ie,value:re,dirty:pn,expanded:je&&U,popupOpen:je,focused:Re||H!==-1,anchorEl:U,setAnchorEl:ee,focusedTag:H,groupedOptions:$s}}var wr="top",Mo="bottom",Io="right",Cr="left",Jw="auto",sp=[wr,Mo,Io,Cr],Gc="start",xf="end",GU="clippingParents",c$="viewport",Gu="popper",KU="reference",yP=sp.reduce(function(e,t){return e.concat([t+"-"+Gc,t+"-"+xf])},[]),u$=[].concat(sp,[Jw]).reduce(function(e,t){return e.concat([t,t+"-"+Gc,t+"-"+xf])},[]),YU="beforeRead",qU="read",XU="afterRead",QU="beforeMain",ZU="main",JU="afterMain",eW="beforeWrite",tW="write",nW="afterWrite",rW=[YU,qU,XU,QU,ZU,JU,eW,tW,nW];function Is(e){return e?(e.nodeName||"").toLowerCase():null}function qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function el(e){var t=qr(e).Element;return e instanceof t||e instanceof Element}function Co(e){var t=qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function eC(e){if(typeof ShadowRoot>"u")return!1;var t=qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Co(s)||!Is(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function sW(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],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Co(o)||!Is(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const iW={name:"applyStyles",enabled:!0,phase:"write",fn:oW,effect:sW,requires:["computeStyles"]};function ws(e){return e.split("-")[0]}var _a=Math.max,Ym=Math.min,Kc=Math.round;function bx(){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 d$(){return!/^((?!chrome|android).)*safari/i.test(bx())}function Yc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Co(e)&&(o=e.offsetWidth>0&&Kc(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Kc(r.height)/e.offsetHeight||1);var i=el(e)?qr(e):window,a=i.visualViewport,l=!d$()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function tC(e){var t=Yc(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 f$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&eC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ri(e){return qr(e).getComputedStyle(e)}function aW(e){return["table","td","th"].indexOf(Is(e))>=0}function ia(e){return((el(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return Is(e)==="html"?e:e.assignedSlot||e.parentNode||(eC(e)?e.host:null)||ia(e)}function vP(e){return!Co(e)||ri(e).position==="fixed"?null:e.offsetParent}function lW(e){var t=/firefox/i.test(bx()),n=/Trident/i.test(bx());if(n&&Co(e)){var r=ri(e);if(r.position==="fixed")return null}var o=L0(e);for(eC(o)&&(o=o.host);Co(o)&&["html","body"].indexOf(Is(o))<0;){var s=ri(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ip(e){for(var t=qr(e),n=vP(e);n&&aW(n)&&ri(n).position==="static";)n=vP(n);return n&&(Is(n)==="html"||Is(n)==="body"&&ri(n).position==="static")?t:n||lW(e)||t}function nC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ld(e,t,n){return _a(e,Ym(t,n))}function cW(e,t,n){var r=Ld(e,t,n);return r>n?n:r}function p$(){return{top:0,right:0,bottom:0,left:0}}function h$(e){return Object.assign({},p$(),e)}function m$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,h$(typeof t!="number"?t:m$(t,sp))};function dW(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=ws(n.placement),l=nC(a),c=[Cr,Io].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=uW(o.padding,n),f=tC(s),g=l==="y"?wr:Cr,m=l==="y"?Mo:Io,y=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],x=ip(s),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-v/2,C=d[g],k=w-f[u]-d[m],M=w/2-f[u]/2+b,T=Ld(C,M,k),I=l;n.modifiersData[r]=(t={},t[I]=T,t.centerOffset=T-M,t)}}function fW(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)||f$(t.elements.popper,o)&&(t.elements.arrow=o))}const pW={name:"arrow",enabled:!0,phase:"main",fn:dW,effect:fW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qc(e){return e.split("-")[1]}var hW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mW(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Kc(n*o)/o||0,y:Kc(r*o)/o||0}}function xP(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,g=f===void 0?0:f,m=i.y,y=m===void 0?0:m,v=typeof u=="function"?u({x:g,y}):{x:g,y};g=v.x,y=v.y;var x=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),b=Cr,C=wr,k=window;if(c){var M=ip(n),T="clientHeight",I="clientWidth";if(M===qr(n)&&(M=ia(n),ri(M).position!=="static"&&a==="absolute"&&(T="scrollHeight",I="scrollWidth")),M=M,o===wr||(o===Cr||o===Io)&&s===xf){C=Mo;var D=d&&M===k&&k.visualViewport?k.visualViewport.height:M[T];y-=D-r.height,y*=l?1:-1}if(o===Cr||(o===wr||o===Mo)&&s===xf){b=Io;var S=d&&M===k&&k.visualViewport?k.visualViewport.width:M[I];g-=S-r.width,g*=l?1:-1}}var R=Object.assign({position:a},c&&hW),j=u===!0?mW({x:g,y},qr(n)):{x:g,y};if(g=j.x,y=j.y,l){var F;return Object.assign({},R,(F={},F[C]=w?"0":"",F[b]=x?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",F))}return Object.assign({},R,(t={},t[C]=w?y+"px":"",t[b]=x?g+"px":"",t.transform="",t))}function gW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:ws(t.placement),variation:qc(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,xP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xP(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 yW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gW,data:{}};var lh={passive:!0};function vW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=qr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,lh)}),a&&l.addEventListener("resize",n.update,lh),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lh)}),a&&l.removeEventListener("resize",n.update,lh)}}const xW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vW,data:{}};var bW={left:"right",right:"left",bottom:"top",top:"bottom"};function Xh(e){return e.replace(/left|right|bottom|top/g,function(t){return bW[t]})}var wW={start:"end",end:"start"};function bP(e){return e.replace(/start|end/g,function(t){return wW[t]})}function rC(e){var t=qr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oC(e){return Yc(ia(e)).left+rC(e).scrollLeft}function CW(e,t){var n=qr(e),r=ia(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=d$();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+oC(e),y:l}}function SW(e){var t,n=ia(e),r=rC(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=_a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=_a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+oC(e),l=-r.scrollTop;return ri(o||n).direction==="rtl"&&(a+=_a(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function sC(e){var t=ri(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g$(e){return["html","body","#document"].indexOf(Is(e))>=0?e.ownerDocument.body:Co(e)&&sC(e)?e:g$(L0(e))}function _d(e,t){var n;t===void 0&&(t=[]);var r=g$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=qr(r),i=o?[s].concat(s.visualViewport||[],sC(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(_d(L0(i)))}function wx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kW(e,t){var n=Yc(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 wP(e,t,n){return t===c$?wx(CW(e,n)):el(t)?kW(t,n):wx(SW(ia(e)))}function PW(e){var t=_d(L0(e)),n=["absolute","fixed"].indexOf(ri(e).position)>=0,r=n&&Co(e)?ip(e):e;return el(r)?t.filter(function(o){return el(o)&&f$(o,r)&&Is(o)!=="body"}):[]}function MW(e,t,n,r){var o=t==="clippingParents"?PW(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=wP(e,c,r);return l.top=_a(u.top,l.top),l.right=Ym(u.right,l.right),l.bottom=Ym(u.bottom,l.bottom),l.left=_a(u.left,l.left),l},wP(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function y$(e){var t=e.reference,n=e.element,r=e.placement,o=r?ws(r):null,s=r?qc(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case wr:l={x:i,y:t.y-n.height};break;case Mo:l={x:i,y:t.y+t.height};break;case Io:l={x:t.x+t.width,y:a};break;case Cr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?nC(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Gc:l[c]=l[c]-(t[u]/2-n[u]/2);break;case xf:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function bf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?GU:a,c=n.rootBoundary,u=c===void 0?c$:c,d=n.elementContext,f=d===void 0?Gu:d,g=n.altBoundary,m=g===void 0?!1:g,y=n.padding,v=y===void 0?0:y,x=h$(typeof v!="number"?v:m$(v,sp)),w=f===Gu?KU:Gu,b=e.rects.popper,C=e.elements[m?w:f],k=MW(el(C)?C:C.contextElement||ia(e.elements.popper),l,u,i),M=Yc(e.elements.reference),T=y$({reference:M,element:b,placement:o}),I=wx(Object.assign({},b,T)),D=f===Gu?I:M,S={top:k.top-D.top+x.top,bottom:D.bottom-k.bottom+x.bottom,left:k.left-D.left+x.left,right:D.right-k.right+x.right},R=e.modifiersData.offset;if(f===Gu&&R){var j=R[o];Object.keys(S).forEach(function(F){var A=[Io,Mo].indexOf(F)>=0?1:-1,$=[wr,Mo].indexOf(F)>=0?"y":"x";S[F]+=j[$]*A})}return S}function IW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?u$:l,u=qc(r),d=u?a?yP:yP.filter(function(m){return qc(m)===u}):sp,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var g=f.reduce(function(m,y){return m[y]=bf(e,{placement:y,boundary:o,rootBoundary:s,padding:i})[ws(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function EW(e){if(ws(e)===Jw)return[];var t=Xh(e);return[bP(e),t,bP(t)]}function TW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,y=n.allowedAutoPlacements,v=t.options.placement,x=ws(v),w=x===v,b=l||(w||!m?[Xh(v)]:EW(v)),C=[v].concat(b).reduce(function(K,B){return K.concat(ws(B)===Jw?IW(t,{placement:B,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):B)},[]),k=t.rects.reference,M=t.rects.popper,T=new Map,I=!0,D=C[0],S=0;S=0,$=A?"width":"height",E=bf(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),L=A?F?Io:Cr:F?Mo:wr;k[$]>M[$]&&(L=Xh(L));var O=Xh(L),_=[];if(s&&_.push(E[j]<=0),a&&_.push(E[L]<=0,E[O]<=0),_.every(function(K){return K})){D=R,I=!1;break}T.set(R,_)}if(I)for(var N=m?3:1,z=function(B){var W=C.find(function(te){var X=T.get(te);if(X)return X.slice(0,B).every(function(q){return q})});if(W)return D=W,"break"},G=N;G>0;G--){var J=z(G);if(J==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const RW={name:"flip",enabled:!0,phase:"main",fn:TW,requiresIfExists:["offset"],data:{_skip:!1}};function CP(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 SP(e){return[wr,Io,Mo,Cr].some(function(t){return e[t]>=0})}function DW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=bf(t,{elementContext:"reference"}),a=bf(t,{altBoundary:!0}),l=CP(i,r),c=CP(a,o,s),u=SP(l),d=SP(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 $W={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DW};function AW(e,t,n){var r=ws(e),o=[Cr,wr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Cr,Io].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function OW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=u$.reduce(function(u,d){return u[d]=AW(d,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const jW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:OW};function FW(e){var t=e.state,n=e.name;t.modifiersData[n]=y$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const LW={name:"popperOffsets",enabled:!0,phase:"read",fn:FW,data:{}};function _W(e){return e==="x"?"y":"x"}function NW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,v=bf(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=ws(t.placement),w=qc(t.placement),b=!w,C=nC(x),k=_W(C),M=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,S=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(M){if(s){var F,A=C==="y"?wr:Cr,$=C==="y"?Mo:Io,E=C==="y"?"height":"width",L=M[C],O=L+v[A],_=L-v[$],N=g?-I[E]/2:0,z=w===Gc?T[E]:I[E],G=w===Gc?-I[E]:-T[E],J=t.elements.arrow,K=g&&J?tC(J):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:p$(),W=B[A],te=B[$],X=Ld(0,T[E],K[E]),q=b?T[E]/2-N-X-W-S.mainAxis:z-X-W-S.mainAxis,U=b?-T[E]/2+N+X+te+S.mainAxis:G+X+te+S.mainAxis,ee=t.elements.arrow&&ip(t.elements.arrow),H=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,Z=(F=R==null?void 0:R[C])!=null?F:0,ne=L+q-Z-H,oe=L+U-Z,re=Ld(g?Ym(O,ne):O,L,g?_a(_,oe):_);M[C]=re,j[C]=re-L}if(a){var de,ie=C==="x"?wr:Cr,we=C==="x"?Mo:Io,Re=M[k],Le=k==="y"?"height":"width",Qe=Re+v[ie],Me=Re-v[we],Ee=[wr,Cr].indexOf(x)!==-1,Ve=(de=R==null?void 0:R[k])!=null?de:0,Ge=Ee?Qe:Re-T[Le]-I[Le]-Ve+S.altAxis,Oe=Ee?Re+T[Le]+I[Le]-Ve-S.altAxis:Me,je=g&&Ee?cW(Ge,Re,Oe):Ld(g?Ge:Qe,Re,g?Oe:Me);M[k]=je,j[k]=je-Re}t.modifiersData[r]=j}}const zW={name:"preventOverflow",enabled:!0,phase:"main",fn:NW,requiresIfExists:["offset"]};function BW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HW(e){return e===qr(e)||!Co(e)?rC(e):BW(e)}function VW(e){var t=e.getBoundingClientRect(),n=Kc(t.width)/e.offsetWidth||1,r=Kc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function UW(e,t,n){n===void 0&&(n=!1);var r=Co(t),o=Co(t)&&VW(t),s=ia(t),i=Yc(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Is(t)!=="body"||sC(s))&&(a=HW(t)),Co(t)?(l=Yc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=oC(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function WW(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function GW(e){var t=WW(e);return rW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function KW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function YW(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 kP={placement:"bottom",modifiers:[],strategy:"absolute"};function PP(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return le({root:["root"]},ZW,t)},nG={},rG=h.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:g={},TransitionProps:m,ownerState:y,...v}=t,x=h.useRef(null),w=tt(x,n),b=h.useRef(null),C=tt(b,d),k=h.useRef(C);at(()=>{k.current=C},[C]),h.useImperativeHandle(d,()=>b.current,[]);const M=JW(c,s),[T,I]=h.useState(M),[D,S]=h.useState(Cx(r));h.useEffect(()=>{b.current&&b.current.forceUpdate()}),h.useEffect(()=>{r&&S(Cx(r))},[r]),at(()=>{if(!D||!l)return;const $=O=>{I(O.placement)};let E=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{$(O)}}];a!=null&&(E=E.concat(a)),u&&u.modifiers!=null&&(E=E.concat(u.modifiers));const L=QW(D,x.current,{placement:M,...u,modifiers:E});return k.current(L),()=>{L.destroy(),k.current(null)}},[D,i,a,l,u,M]);const R={placement:T};m!==null&&(R.TransitionProps=m);const j=tG(t),F=g.root??"div",A=et({elementType:F,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:j.root});return p.jsx(F,{...A,children:typeof o=="function"?o(R):o})}),oG=h.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=nG,popperRef:g,style:m,transition:y=!1,slotProps:v={},slots:x={},...w}=t,[b,C]=h.useState(!0),k=()=>{C(!1)},M=()=>{C(!0)};if(!l&&!u&&(!y||b))return null;let T;if(s)T=s;else if(r){const S=Cx(r);T=S&&eG(S)?zt(S).body:zt(null).body}const I=!u&&l&&(!y||b)?"none":void 0,D=y?{in:u,onEnter:k,onExited:M}:void 0;return p.jsx(YD,{disablePortal:a,container:T,children:p.jsx(rG,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:y?!b:u,placement:d,popperOptions:f,popperRef:g,slotProps:v,slots:x,...w,style:{position:"fixed",top:0,left:0,display:I,...m},TransitionProps:D,children:o})})}),sG=Q(oG,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),di=h.forwardRef(function(t,n){const r=Bt(),o=_e({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:x,slots:w,slotProps:b,...C}=o,k=(w==null?void 0:w.root)??(a==null?void 0:a.Root),M={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:x,...C};return p.jsx(sG,{as:i,direction:r?"rtl":"ltr",slots:{root:k},slotProps:b??l,...M,ref:n})});function iG(e){return xe("MuiListSubheader",e)}ge("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const aG=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${ae(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return le(i,iG,t)},lG=Q("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ae(({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}}]}))),Sx=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:s,component:i,disableGutters:a,disableSticky:l,inset:c},f=aG(d);return p.jsx(lG,{as:i,className:se(f.root,o),ref:n,ownerState:d,...u})});Sx&&(Sx.muiSkipListHighlight=!0);const cG=De(p.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 uG(e){return xe("MuiChip",e)}const qe=ge("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"]),dG=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ae(r)}`,`color${ae(o)}`,a&&"clickable",a&&`clickableColor${ae(o)}`,i&&"deletable",i&&`deletableColor${ae(o)}`,`${l}${ae(o)}`],label:["label",`label${ae(r)}`],avatar:["avatar",`avatar${ae(r)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(r)}`,`iconColor${ae(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(r)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(l)}Color${ae(o)}`]};return le(c,uG,t)},fG=Q("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${qe.avatar}`]:t.avatar},{[`& .${qe.avatar}`]:t[`avatar${ae(a)}`]},{[`& .${qe.avatar}`]:t[`avatarColor${ae(r)}`]},{[`& .${qe.icon}`]:t.icon},{[`& .${qe.icon}`]:t[`icon${ae(a)}`]},{[`& .${qe.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${qe.deleteIcon}`]:t.deleteIcon},{[`& .${qe.deleteIcon}`]:t[`deleteIcon${ae(a)}`]},{[`& .${qe.deleteIcon}`]:t[`deleteIconColor${ae(r)}`]},{[`& .${qe.deleteIcon}`]:t[`deleteIcon${ae(l)}Color${ae(r)}`]},t.root,t[`size${ae(a)}`],t[`color${ae(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ae(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ae(r)}`],t[l],t[`${l}${ae(r)}`]]}})(Ae(({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",[`&.${qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${qe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:be(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)`:be(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${qe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${qe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Nt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:be(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${qe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${qe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Nt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${qe.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}))`:be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Nt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${qe.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]}`,[`&.${qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qe.avatar}`]:{marginLeft:4},[`& .${qe.avatarSmall}`]:{marginLeft:2},[`& .${qe.icon}`]:{marginLeft:4},[`& .${qe.iconSmall}`]:{marginLeft:2},[`& .${qe.deleteIcon}`]:{marginRight:5},[`& .${qe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Nt()).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)`:be(e.palette[n].main,.7)}`,[`&.${qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:be(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:be(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),pG=Q("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ae(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 MP(e){return e.key==="Backspace"||e.key==="Delete"}const ms=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:g,onDelete:m,onKeyDown:y,onKeyUp:v,size:x="medium",variant:w="filled",tabIndex:b,skipFocusWhenDisabled:C=!1,...k}=r,M=h.useRef(null),T=tt(M,n),I=_=>{_.stopPropagation(),m&&m(_)},D=_=>{_.currentTarget===_.target&&MP(_)&&_.preventDefault(),y&&y(_)},S=_=>{_.currentTarget===_.target&&m&&MP(_)&&m(_),v&&v(_)},R=i!==!1&&g?!0:i,j=R||m?ni:l||"div",F={...r,component:j,disabled:u,size:x,color:a,iconColor:h.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:R,variant:w},A=dG(F),$=j===ni?{component:l||"div",focusVisibleClassName:A.focusVisible,...m&&{disableRipple:!0}}:{};let E=null;m&&(E=c&&h.isValidElement(c)?h.cloneElement(c,{className:se(c.props.className,A.deleteIcon),onClick:I}):p.jsx(cG,{className:se(A.deleteIcon),onClick:I}));let L=null;o&&h.isValidElement(o)&&(L=h.cloneElement(o,{className:se(A.avatar,o.props.className)}));let O=null;return d&&h.isValidElement(d)&&(O=h.cloneElement(d,{className:se(A.icon,d.props.className)})),p.jsxs(fG,{as:j,className:se(A.root,s),disabled:R&&u?!0:void 0,onClick:g,onKeyDown:D,onKeyUp:S,ref:T,tabIndex:C&&u?-1:b,ownerState:F,...$,...k,children:[L||O,p.jsx(pG,{className:se(A.label),ownerState:F,children:f}),E]})});function hG(e){return xe("MuiAutocomplete",e)}const ut=ge("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 IP,EP;const mG=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ae(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 le(d,hG,t)},gG=Q("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:a}=n;return[{[`& .${ut.tag}`]:t.tag},{[`& .${ut.tag}`]:t[`tagSize${ae(a)}`]},{[`& .${ut.inputRoot}`]:t.inputRoot},{[`& .${ut.input}`]:t.input},{[`& .${ut.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${ut.focused} .${ut.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ut.clearIndicator}`]:{visibility:"visible"}},[`& .${ut.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ut.inputRoot}`]:{[`.${ut.hasPopupIcon}&, .${ut.hasClearIcon}&`]:{paddingRight:30},[`.${ut.hasPopupIcon}.${ut.hasClearIcon}&`]:{paddingRight:56},[`& .${ut.input}`]:{width:0,minWidth:30}},[`& .${Di.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Di.root}.${Or.sizeSmall}`]:{[`& .${Di.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Dr.root}`]:{padding:9,[`.${ut.hasPopupIcon}&, .${ut.hasClearIcon}&`]:{paddingRight:39},[`.${ut.hasPopupIcon}.${ut.hasClearIcon}&`]:{paddingRight:65},[`& .${ut.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ut.endAdornment}`]:{right:9}},[`& .${Dr.root}.${Or.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ut.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${jr.root}`]:{paddingTop:19,paddingLeft:8,[`.${ut.hasPopupIcon}&, .${ut.hasClearIcon}&`]:{paddingRight:39},[`.${ut.hasPopupIcon}.${ut.hasClearIcon}&`]:{paddingRight:65},[`& .${jr.input}`]:{padding:"7px 4px"},[`& .${ut.endAdornment}`]:{right:9}},[`& .${jr.root}.${Or.sizeSmall}`]:{paddingBottom:1,[`& .${jr.input}`]:{padding:"2.5px 4px"}},[`& .${Or.hiddenLabel}`]:{paddingTop:8},[`& .${jr.root}.${Or.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ut.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${jr.root}.${Or.hiddenLabel}.${Or.sizeSmall}`]:{[`& .${ut.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ut.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ut.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ut.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ut.inputRoot}`]:{flexWrap:"wrap"}}}]}),yG=Q("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),vG=Q(wn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),xG=Q(wn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),bG=Q(di,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ut.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Ae(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),wG=Q(Ao,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ae(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),CG=Q("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),SG=Q("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),kG=Q("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ae(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ut.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"},[`&.${ut.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"},[`&.${ut.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})`:be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ut.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),PG=Q(Sx,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ae(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),MG=Q("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ut.option}`]:{paddingLeft:24}}),v$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=IP||(IP=p.jsx(BU,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:g="Clear",closeText:m="Close",componentsProps:y,defaultValue:v=r.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:w=!1,disabled:b=!1,disabledItemsFocusable:C=!1,disableListWrap:k=!1,disablePortal:M=!1,filterOptions:T,filterSelectedOptions:I=!1,forcePopupIcon:D="auto",freeSolo:S=!1,fullWidth:R=!1,getLimitTagsText:j=gt=>`+${gt}`,getOptionDisabled:F,getOptionKey:A,getOptionLabel:$,isOptionEqualToValue:E,groupBy:L,handleHomeEndKeys:O=!r.freeSolo,id:_,includeInputInList:N=!1,inputValue:z,limitTags:G=-1,ListboxComponent:J,ListboxProps:K,loading:B=!1,loadingText:W="Loading…",multiple:te=!1,noOptionsText:X="No options",onChange:q,onClose:U,onHighlightChange:ee,onInputChange:H,onOpen:Z,open:ne,openOnFocus:oe=!1,openText:re="Open",options:de,PaperComponent:ie,PopperComponent:we,popupIcon:Re=EP||(EP=p.jsx(i$,{})),readOnly:Le=!1,renderGroup:Qe,renderInput:Me,renderOption:Ee,renderTags:Ve,selectOnFocus:Ge=!r.freeSolo,size:Oe="medium",slots:je={},slotProps:Ue={},value:Te,...Ie}=r,{getRootProps:We,getInputProps:Ct,getInputLabelProps:ye,getPopupIndicatorProps:$e,getClearProps:Xe,getTagProps:ht,getListboxProps:Qn,getOptionProps:ct,value:jt,dirty:ln,expanded:en,id:lr,popupOpen:Hn,focused:Tr,focusedTag:rs,anchorEl:nt,setAnchorEl:Zn,inputValue:Pp,groupedOptions:xl}=WU({...r,componentName:"Autocomplete"}),Du=!x&&!b&&ln&&!Le,$u=(!S||D===!0)&&D!==!1,{onMouseDown:Dy}=Ct(),{ref:$y,...Mp}=Qn(),Au=$||(gt=>gt.label??gt),Vn={...r,disablePortal:M,expanded:en,focused:Tr,fullWidth:R,getOptionLabel:Au,hasClearIcon:Du,hasPopupIcon:$u,inputFocused:rs===-1,popupOpen:Hn,size:Oe},pn=mG(Vn),$s={slots:{paper:ie,popper:we,...je},slotProps:{chip:l,listbox:K,...y,...Ue}},[he,pe]=Qt("listbox",{elementType:kG,externalForwardedProps:$s,ownerState:Vn,className:pn.listbox,additionalProps:Mp,ref:$y}),[Be,lt]=Qt("paper",{elementType:Ao,externalForwardedProps:$s,ownerState:Vn,className:pn.paper}),[ft,tn]=Qt("popper",{elementType:di,externalForwardedProps:$s,ownerState:Vn,className:pn.popper,additionalProps:{disablePortal:M,style:{width:nt?nt.clientWidth:null},role:"presentation",anchorEl:nt,open:Hn}});let Mt;if(te&&jt.length>0){const gt=os=>({className:pn.tag,disabled:b,...ht(os)});Ve?Mt=Ve(jt,gt,Vn):Mt=jt.map((os,gi)=>{const{key:Ou,...sj}=gt({index:gi});return p.jsx(ms,{label:Au(os),size:Oe,...sj,...$s.slotProps.chip},Ou)})}if(G>-1&&Array.isArray(Mt)){const gt=Mt.length-G;!Tr&>>0&&(Mt=Mt.splice(0,G),Mt.push(p.jsx("span",{className:pn.tag,children:j(gt)},Mt.length)))}const Ip=Qe||(gt=>p.jsxs("li",{children:[p.jsx(PG,{className:pn.groupLabel,ownerState:Vn,component:"div",children:gt.group}),p.jsx(MG,{className:pn.groupUl,ownerState:Vn,children:gt.children})]},gt.key)),oj=Ee||((gt,os)=>{const{key:gi,...Ou}=gt;return p.jsx("li",{...Ou,children:Au(os)},gi)}),jS=(gt,os)=>{const gi=ct({option:gt,index:os});return oj({...gi,className:pn.option},gt,{selected:gi["aria-selected"],index:os,inputValue:Pp},Vn)},Ep=$s.slotProps.clearIndicator,Tp=$s.slotProps.popupIndicator,Ay=gt=>p.jsx(bG,{as:ft,...tn,children:p.jsx(wG,{as:Be,...lt,children:gt})});let Rp=null;return xl.length>0?Rp=Ay(p.jsx(he,{as:J,...pe,children:xl.map((gt,os)=>L?Ip({key:gt.key,group:gt.group,children:gt.options.map((gi,Ou)=>jS(gi,gt.index+Ou))}):jS(gt,os))})):B&&xl.length===0?Rp=Ay(p.jsx(CG,{className:pn.loading,ownerState:Vn,children:W})):xl.length===0&&!S&&!B&&(Rp=Ay(p.jsx(SG,{className:pn.noOptions,ownerState:Vn,role:"presentation",onMouseDown:gt=>{gt.preventDefault()},children:X}))),p.jsxs(h.Fragment,{children:[p.jsx(gG,{ref:n,className:se(pn.root,c),ownerState:Vn,...We(Ie),children:Me({id:lr,disabled:b,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:ye(),InputProps:{ref:Zn,className:pn.inputRoot,startAdornment:Mt,onMouseDown:gt=>{gt.target===gt.currentTarget&&Dy(gt)},...(Du||$u)&&{endAdornment:p.jsxs(yG,{className:pn.endAdornment,ownerState:Vn,children:[Du?p.jsx(vG,{...Xe(),"aria-label":g,title:g,ownerState:Vn,...Ep,className:se(pn.clearIndicator,Ep==null?void 0:Ep.className),children:u}):null,$u?p.jsx(xG,{...$e(),disabled:b,"aria-label":Hn?m:re,title:Hn?m:re,ownerState:Vn,...Tp,className:se(pn.popupIndicator,Tp==null?void 0:Tp.className),children:Re}):null]})}},inputProps:{className:pn.input,disabled:b,readOnly:Le,...Ct()}})}),nt?Rp:null]})}),IG=De(p.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 EG(e){return xe("MuiAvatar",e)}const TG=ge("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),RG=e=>{const{classes:t,variant:n,colorDefault:r}=e;return le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},EG,t)},DG=Q("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ae(({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]})}}}]}))),$G=Q("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AG=Q(IG,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function OG({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=h.useState(!1);return h.useEffect(()=>{if(!n&&!r)return;s(!1);let i=!0;const a=new Image;return a.onload=()=>{i&&s("loaded")},a.onerror=()=>{i&&s("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const Ns=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:i,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:g,variant:m="circular",...y}=r;let v=null;const x=OG({...u,src:f,srcSet:g}),w=f||g,b=w&&x!=="error",C={...r,colorDefault:!b,component:a,variant:m};delete C.ownerState;const k=RG(C),[M,T]=Qt("img",{className:k.img,elementType:$G,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:g,sizes:d},ownerState:C});return b?v=p.jsx(M,{...T}):s||s===0?v=s:w&&o?v=o[0]:v=p.jsx(AG,{ownerState:C,className:k.fallback}),p.jsx(DG,{as:a,className:se(k.root,i),ref:n,...y,ownerState:C,children:v})});function jG(e){return xe("MuiAvatarGroup",e)}const FG=ge("MuiAvatarGroup",["root","avatar"]),TP={small:-16,medium:-8},LG=e=>{const{classes:t}=e;return le({root:["root"],avatar:["avatar"]},jG,t)},_G=Q("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>({[`& .${FG.avatar}`]:t.avatar,...t.root})})(Ae(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${TG.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),x$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiAvatarGroup"}),{children:o,className:s,component:i="div",componentsProps:a,max:l=5,renderSurplus:c,slotProps:u={},slots:d={},spacing:f="medium",total:g,variant:m="circular",...y}=r;let v=l<2?2:l;const x={...r,max:l,spacing:f,component:i,variant:m},w=LG(x),b=h.Children.toArray(o).filter(j=>h.isValidElement(j)),C=g||b.length;C===v&&(v+=1),v=Math.min(C+1,v);const k=Math.min(b.length,v-1),M=Math.max(C-v,C-k,0),T=c?c(M):`+${M}`,I=x.spacing&&TP[x.spacing]!==void 0?TP[x.spacing]:-x.spacing||-8,D={slots:d,slotProps:{surplus:u.additionalAvatar??(a==null?void 0:a.additionalAvatar),...a,...u}},[S,R]=Qt("surplus",{elementType:Ns,externalForwardedProps:D,className:w.avatar,ownerState:x,additionalProps:{variant:m}});return p.jsxs(_G,{as:i,ownerState:x,className:se(w.root,s),ref:n,...y,style:{"--AvatarGroup-spacing":I?`${I}px`:void 0,...y.style},children:[M?p.jsx(S,{...R,children:T}):null,b.slice(0,k).reverse().map(j=>h.cloneElement(j,{className:se(j.props.className,w.avatar),variant:j.props.variant||m}))]})});function NG(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=$w({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:a,max:l=r}=i?s:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:i,max:l,displayValue:c}}function zG(e){return xe("MuiBadge",e)}const xi=ge("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"]),S1=10,k1=4,BG=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,a={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${ae(n.vertical)}${ae(n.horizontal)}`,`anchorOrigin${ae(n.vertical)}${ae(n.horizontal)}${ae(o)}`,`overlap${ae(o)}`,t!=="default"&&`color${ae(t)}`]};return le(a,zG,i)},HG=Q("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),VG=Q("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ae(n.anchorOrigin.vertical)}${ae(n.anchorOrigin.horizontal)}${ae(n.overlap)}`],n.color!=="default"&&t[`color${ae(n.color)}`],n.invisible&&t.invisible]}})(Ae(({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:S1*2,lineHeight:1,padding:"0 6px",height:S1*2,borderRadius:S1,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Nt(["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:k1,height:k1*2,minWidth:k1*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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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%",[`&.${xi.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 RP(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const UG=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:i,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:g=!1,max:m=99,badgeContent:y,slots:v,slotProps:x,showZero:w=!1,variant:b="standard",...C}=r,{badgeContent:k,invisible:M,max:T,displayValue:I}=NG({max:m,invisible:g,badgeContent:y,showZero:w}),D=$w({anchorOrigin:RP(o),color:f,overlap:d,variant:b,badgeContent:y}),S=M||k==null&&b!=="dot",{color:R=f,overlap:j=d,anchorOrigin:F,variant:A=b}=S?D:r,$=RP(F),E=A!=="dot"?I:void 0,L={...r,badgeContent:k,invisible:S,max:T,displayValue:E,showZero:w,anchorOrigin:$,color:R,overlap:j,variant:A},O=BG(L),_=(v==null?void 0:v.root)??l.Root??HG,N=(v==null?void 0:v.badge)??l.Badge??VG,z=(x==null?void 0:x.root)??c.root,G=(x==null?void 0:x.badge)??c.badge,J=et({elementType:_,externalSlotProps:z,externalForwardedProps:C,additionalProps:{ref:n,as:a},ownerState:L,className:se(z==null?void 0:z.className,O.root,s)}),K=et({elementType:N,externalSlotProps:G,ownerState:L,className:se(O.badge,G==null?void 0:G.className)});return p.jsxs(_,{...J,children:[u,p.jsx(N,{...K,children:E})]})});function WG(e){return xe("MuiCard",e)}ge("MuiCard",["root"]);const GG=e=>{const{classes:t}=e;return le({root:["root"]},WG,t)},KG=Q(Ao,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),aa=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...i}=r,a={...r,raised:s},l=GG(a);return p.jsx(KG,{className:se(l.root,o),elevation:s?8:void 0,ref:n,ownerState:a,...i})});function YG(e){return xe("MuiCardActions",e)}ge("MuiCardActions",["root","spacing"]);const qG=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},YG,t)},XG=Q("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}}}]}),QG=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:s,...i}=r,a={...r,disableSpacing:o},l=qG(a);return p.jsx(XG,{className:se(l.root,s),ownerState:a,ref:n,...i})});function ZG(e){return xe("MuiCardContent",e)}ge("MuiCardContent",["root"]);const JG=e=>{const{classes:t}=e;return le({root:["root"]},ZG,t)},eK=Q("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),iC=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...i}=r,a={...r,component:s},l=JG(a);return p.jsx(eK,{as:s,className:se(l.root,o),ownerState:a,ref:n,...i})});function tK(e){return xe("MuiCardHeader",e)}const qm=ge("MuiCardHeader",["root","avatar","action","content","title","subheader"]),nK=e=>{const{classes:t}=e;return le({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},tK,t)},rK=Q("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>({[`& .${qm.title}`]:t.title,[`& .${qm.subheader}`]:t.subheader,...t.root})})({display:"flex",alignItems:"center",padding:16}),oK=Q("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),sK=Q("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),iK=Q("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${vf.root}:where(& .${qm.title})`]:{display:"block"},[`.${vf.root}:where(& .${qm.subheader})`]:{display:"block"}}),aK=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCardHeader"}),{action:o,avatar:s,className:i,component:a="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,...g}=r,m={...r,component:a,disableTypography:l},y=nK(m);let v=d;v!=null&&v.type!==Ce&&!l&&(v=p.jsx(Ce,{variant:s?"body2":"h5",className:y.title,component:"span",...f,children:v}));let x=c;return x!=null&&x.type!==Ce&&!l&&(x=p.jsx(Ce,{variant:s?"body2":"body1",className:y.subheader,color:"textSecondary",component:"span",...u,children:x})),p.jsxs(rK,{className:se(y.root,i),as:a,ref:n,ownerState:m,...g,children:[s&&p.jsx(oK,{className:y.avatar,ownerState:m,children:s}),p.jsxs(iK,{className:y.content,ownerState:m,children:[v,x]}),o&&p.jsx(sK,{className:y.action,ownerState:m,children:o})]})});function lK(e){return xe("MuiCardMedia",e)}ge("MuiCardMedia",["root","media","img"]);const cK=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return le({root:["root",n&&"media",r&&"img"]},lK,t)},uK=Q("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"}}]}),dK=["video","audio","picture","iframe","img"],fK=["picture","img"],ch=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCardMedia"}),{children:o,className:s,component:i="div",image:a,src:l,style:c,...u}=r,d=dK.includes(i),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,g={...r,component:i,isMediaComponent:d,isImageComponent:fK.includes(i)},m=cK(g);return p.jsx(uK,{className:se(m.root,s),as:i,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:g,src:d?a||l:void 0,...u,children:o})});function pK(e){return xe("PrivateSwitchBase",e)}ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hK=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${ae(o)}`],input:["input"]};return le(s,pK,t)},mK=Q(ni)({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}}]}),gK=Q("input",{shouldForwardProp:Xn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b$=h.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:g,inputRef:m,name:y,onBlur:v,onChange:x,onFocus:w,readOnly:b,required:C=!1,tabIndex:k,type:M,value:T,...I}=t,[D,S]=Nn({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),R=eo(),j=_=>{w&&w(_),R&&R.onFocus&&R.onFocus(_)},F=_=>{v&&v(_),R&&R.onBlur&&R.onBlur(_)},A=_=>{if(_.nativeEvent.defaultPrevented)return;const N=_.target.checked;S(N),x&&x(_,N)};let $=l;R&&typeof $>"u"&&($=R.disabled);const E=M==="checkbox"||M==="radio",L={...t,checked:D,disabled:$,disableFocusRipple:c,edge:u},O=hK(L);return p.jsxs(mK,{component:"span",className:se(O.root,i),centerRipple:!0,focusRipple:!c,disabled:$,tabIndex:null,role:void 0,onFocus:j,onBlur:F,ownerState:L,ref:n,...I,children:[p.jsx(gK,{autoFocus:r,checked:o,defaultChecked:a,className:O.input,disabled:$,id:E?f:void 0,name:y,onChange:A,readOnly:b,ref:m,required:C,ownerState:L,tabIndex:k,type:M,...M==="checkbox"&&T===void 0?{}:{value:T},...g}),D?s:d]})}),yK=De(p.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"),vK=De(p.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"),xK=De(p.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 bK(e){return xe("MuiCheckbox",e)}const P1=ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),wK=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${ae(r)}`,`size${ae(o)}`]},i=le(s,bK,t);return{...t,...i}},CK=Q(b$,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ae(n.size)}`],n.color!=="default"&&t[`color${ae(n.color)}`]]}})(Ae(({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})`:be(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{[`&.${P1.checked}, &.${P1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${P1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),SK=p.jsx(vK,{}),kK=p.jsx(yK,{}),PK=p.jsx(xK,{}),aC=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCheckbox"}),{checkedIcon:o=SK,color:s="primary",icon:i=kK,indeterminate:a=!1,indeterminateIcon:l=PK,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...g}=r,m=a?l:i,y=a?l:o,v={...r,disableRipple:d,color:s,indeterminate:a,size:u},x=wK(v);return p.jsx(CK,{type:"checkbox",inputProps:{"data-indeterminate":a,...c},icon:h.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:h.cloneElement(y,{fontSize:y.props.fontSize??u}),ownerState:v,ref:n,className:se(x.root,f),disableRipple:d,...g,classes:x})});function MK(e){return xe("MuiCircularProgress",e)}ge("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bi=44,kx=Ds` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,Px=Ds` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,IK=typeof kx!="string"?oa` + animation: ${kx} 1.4s linear infinite; + `:null,EK=typeof Px!="string"?oa` + animation: ${Px} 1.4s ease-in-out infinite; + `:null,TK=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ae(r)}`],svg:["svg"],circle:["circle",`circle${ae(n)}`,o&&"circleDisableShrink"]};return le(s,MK,t)},RK=Q("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ae(n.color)}`]]}})(Ae(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:IK||{animation:`${kx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),DK=Q("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$K=Q("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ae(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ae(({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:EK||{animation:`${Px} 1.4s ease-in-out infinite`}}]}))),AK=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,g={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},m=TK(g),y={},v={},x={};if(d==="determinate"){const w=2*Math.PI*((bi-c)/2);y.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return p.jsx(RK,{className:se(m.root,o),style:{width:a,height:a,...v,...l},ownerState:g,ref:n,role:"progressbar",...x,...f,children:p.jsx(DK,{className:m.svg,ownerState:g,viewBox:`${bi/2} ${bi/2} ${bi} ${bi}`,children:p.jsx($K,{className:m.circle,style:y,ownerState:g,cx:bi,cy:bi,r:(bi-c)/2,fill:"none",strokeWidth:c})})})});function DP(e){return e.substring(2).toLowerCase()}function OK(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=tt(sa(t),a),d=ve(m=>{const y=c.current;c.current=!1;const v=zt(a.current);if(!l.current||!a.current||"clientX"in m&&OK(m,v))return;if(i.current){i.current=!1;return}let x;m.composedPath?x=m.composedPath().includes(a.current):x=!v.documentElement.contains(m.target)||a.current.contains(m.target),!x&&(n||!y)&&o(m)}),f=m=>y=>{c.current=!0;const v=t.props[m];v&&v(y)},g={ref:u};return s!==!1&&(g[s]=f(s)),h.useEffect(()=>{if(s!==!1){const m=DP(s),y=zt(a.current),v=()=>{i.current=!0};return y.addEventListener(m,d),y.addEventListener("touchmove",v),()=>{y.removeEventListener(m,d),y.removeEventListener("touchmove",v)}}},[d,s]),r!==!1&&(g[r]=f(r)),h.useEffect(()=>{if(r!==!1){const m=DP(r),y=zt(a.current);return y.addEventListener(m,d),()=>{y.removeEventListener(m,d)}}},[d,r]),p.jsx(h.Fragment,{children:h.cloneElement(t,g)})}function jK(e){return xe("MuiDialog",e)}const Nd=ge("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),C$=h.createContext({}),FK=Q(qD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),LK=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ae(n)}`],paper:["paper",`paperScroll${ae(n)}`,`paperWidth${ae(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return le(i,jK,t)},_K=Q(qw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),NK=Q("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ae(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"}}}]}),zK=Q(Ao,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ae(n.scroll)}`],t[`paperWidth${ae(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ae(({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)`,[`&.${Nd.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}`,[`&.${Nd.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,[`&.${Nd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),S$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDialog"}),o=Dn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:g=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:x,onClick:w,onClose:b,open:C,PaperComponent:k=Ao,PaperProps:M={},scroll:T="paper",TransitionComponent:I=yu,transitionDuration:D=s,TransitionProps:S,...R}=r,j={...r,disableEscapeKeyDown:g,fullScreen:m,fullWidth:y,maxWidth:v,scroll:T},F=LK(j),A=h.useRef(),$=_=>{A.current=_.target===_.currentTarget},E=_=>{w&&w(_),A.current&&(A.current=null,x&&x(_),b&&b(_,"backdropClick"))},L=mt(a),O=h.useMemo(()=>({titleId:L}),[L]);return p.jsx(_K,{className:se(F.root,f),closeAfterTransition:!0,components:{Backdrop:FK},componentsProps:{backdrop:{transitionDuration:D,as:c,...u}},disableEscapeKeyDown:g,onClose:b,open:C,ref:n,onClick:E,ownerState:j,...R,children:p.jsx(I,{appear:!0,in:C,timeout:D,role:"presentation",...S,children:p.jsx(NK,{className:se(F.container),onMouseDown:$,ownerState:j,children:p.jsx(zK,{as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...M,className:se(F.paper,M.className),ownerState:j,children:p.jsx(C$.Provider,{value:O,children:d})})})})})});function BK(e){return xe("MuiDialogActions",e)}ge("MuiDialogActions",["root","spacing"]);const HK=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},BK,t)},VK=Q("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}}}]}),k$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=HK(a);return p.jsx(VK,{className:se(l.root,o),ownerState:a,ref:n,...i})});function UK(e){return xe("MuiDialogContent",e)}ge("MuiDialogContent",["root","dividers"]);function WK(e){return xe("MuiDialogTitle",e)}const GK=ge("MuiDialogTitle",["root"]),KK=e=>{const{classes:t,dividers:n}=e;return le({root:["root",n&&"dividers"]},UK,t)},YK=Q("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ae(({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:{[`.${GK.root} + &`]:{paddingTop:0}}}]}))),P$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=KK(a);return p.jsx(YK,{className:se(l.root,o),ownerState:a,ref:n,...i})});function qK(e){return xe("MuiDialogContentText",e)}ge("MuiDialogContentText",["root"]);const XK=e=>{const{classes:t}=e,r=le({root:["root"]},qK,t);return{...t,...r}},QK=Q(Ce,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZK=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDialogContentText"}),{children:o,className:s,...i}=r,a=XK(i);return p.jsx(QK,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:i,className:se(a.root,s),...r,classes:a})}),JK=e=>{const{classes:t}=e;return le({root:["root"]},WK,t)},eY=Q(Ce,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),tY=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...i}=r,a=r,l=JK(a),{titleId:c=s}=h.useContext(C$);return p.jsx(eY,{component:"h2",className:se(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c,...i})});function nY(e){return xe("MuiFormControlLabel",e)}const vd=ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rY=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${ae(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return le(i,nY,t)},oY=Q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vd.label}`]:t.label},t.root,t[`labelPlacement${ae(n.labelPlacement)}`]]}})(Ae(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vd.disabled}`]:{cursor:"default"},[`& .${vd.label}`]:{[`&.${vd.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}}]}))),sY=Q("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ae(({theme:e})=>({[`&.${vd.error}`]:{color:(e.vars||e).palette.error.main}}))),fo=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:i={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:g,onChange:m,required:y,slots:v={},slotProps:x={},value:w,...b}=r,C=eo(),k=l??a.props.disabled??(C==null?void 0:C.disabled),M=y??a.props.required,T={disabled:k,required:M};["checked","name","onChange","value","inputRef"].forEach($=>{typeof a.props[$]>"u"&&typeof r[$]<"u"&&(T[$]=r[$])});const I=pl({props:r,muiFormControl:C,states:["error"]}),D={...r,disabled:k,labelPlacement:f,required:M,error:I.error},S=rY(D),R={slots:v,slotProps:{...i,...x}},[j,F]=Qt("typography",{elementType:Ce,externalForwardedProps:R,ownerState:D});let A=d;return A!=null&&A.type!==Ce&&!c&&(A=p.jsx(j,{component:"span",...F,className:se(S.label,F==null?void 0:F.className),children:A})),p.jsxs(oY,{className:se(S.root,s),ownerState:D,ref:n,...b,children:[h.cloneElement(a,T),M?p.jsxs("div",{children:[A,p.jsxs(sY,{ownerState:D,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):A]})}),$P=h.createContext();function iY(e){return xe("MuiGrid",e)}const aY=[0,1,2,3,4,5,6,7,8,9,10],lY=["column-reverse","column","row-reverse","row"],cY=["nowrap","wrap-reverse","wrap"],Ku=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],wf=ge("MuiGrid",["root","container","item","zeroMinWidth",...aY.map(e=>`spacing-xs-${e}`),...lY.map(e=>`direction-xs-${e}`),...cY.map(e=>`wrap-xs-${e}`),...Ku.map(e=>`grid-xs-${e}`),...Ku.map(e=>`grid-sm-${e}`),...Ku.map(e=>`grid-md-${e}`),...Ku.map(e=>`grid-lg-${e}`),...Ku.map(e=>`grid-xl-${e}`)]);function uY({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=La({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof i=="object"?i[o]:i;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${u})`;c={flexBasis:d,maxWidth:d}}}s={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function dY({theme:e,ownerState:t}){const n=La({values:t.direction,breakpoints:e.breakpoints.values});return Pr({theme:e},n,r=>{const o={flexDirection:r};return r.startsWith("column")&&(o[`& > .${wf.item}`]={maxWidth:"none"}),o})}function M$({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function fY({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=La({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=M$({breakpoints:e.breakpoints.values,values:s})),o=Pr({theme:e},s,(a,l)=>{const c=e.spacing(a);return c!=="0px"?{marginTop:`-${c}`,[`& > .${wf.item}`]:{paddingTop:c}}:i!=null&&i.includes(l)?{}:{marginTop:0,[`& > .${wf.item}`]:{paddingTop:0}}})}return o}function pY({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=La({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=M$({breakpoints:e.breakpoints.values,values:s})),o=Pr({theme:e},s,(a,l)=>{const c=e.spacing(a);if(c!=="0px"){const u=`-${c}`;return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${wf.item}`]:{paddingLeft:c}}}return i!=null&&i.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${wf.item}`]:{paddingLeft:0}}})}return o}function hY(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const mY=Q("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=hY(i,c,t));const d=[];return c.forEach(f=>{const g=n[f];g&&d.push(t[`grid-${f}-${String(g)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),dY,fY,pY,uY);function gY(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const yY=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=gY(s,l));const u=[];l.forEach(f=>{const g=e[f];g&&u.push(`grid-${f}-${String(g)}`)});const d={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return le(d,iY,t)},cr=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiGrid"}),{breakpoints:o}=Dn(),s=Qf(r),{className:i,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:g,spacing:m=0,wrap:y="wrap",zeroMinWidth:v=!1,...x}=s,w=g||m,b=l||m,C=h.useContext($P),k=u?a||12:C,M={},T={...x};o.keys.forEach(S=>{x[S]!=null&&(M[S]=x[S],delete T[S])});const I={...s,columns:k,container:u,direction:d,item:f,rowSpacing:w,columnSpacing:b,wrap:y,zeroMinWidth:v,spacing:m,...M,breakpoints:o.keys},D=yY(I);return p.jsx($P.Provider,{value:k,children:p.jsx(mY,{ownerState:I,className:se(D.root,i),as:c,ref:n,...T})})}),I$=nD({themeId:wo});function vY(e){return xe("MuiInputAdornment",e)}const AP=ge("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var OP;const xY=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},bY=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ae(o)}`,i,r&&"hiddenLabel",s&&`size${ae(s)}`]};return le(a,vY,t)},wY=Q("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xY})(Ae(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${AP.positionStart}&:not(.${AP.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),_0=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=eo()||{};let g=u;u&&f.variant,f&&!g&&(g=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:g},y=bY(m);return p.jsx($0.Provider,{value:null,children:p.jsx(wY,{as:i,ownerState:m,className:se(y.root,s),ref:n,...d,children:typeof o=="string"&&!l?p.jsx(Ce,{color:"textSecondary",children:o}):p.jsxs(h.Fragment,{children:[c==="start"?OP||(OP=p.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})});function CY(e){return xe("MuiLinearProgress",e)}ge("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Mx=4,Ix=Ds` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,SY=typeof Ix!="string"?oa` + animation: ${Ix} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Ex=Ds` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,kY=typeof Ex!="string"?oa` + animation: ${Ex} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Tx=Ds` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,PY=typeof Tx!="string"?oa` + animation: ${Tx} 3s infinite linear; + `:null,MY=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ae(r)}`,n],dashed:["dashed",`dashedColor${ae(r)}`],bar1:["bar",`barColor${ae(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ae(r)}`,n==="buffer"&&`color${ae(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return le(o,CY,t)},lC=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?fl(e.palette[t].main,.62):dl(e.palette[t].main,.5),IY=Q("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ae(n.color)}`],t[n.variant]]}})(Ae(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Nt()).map(([t])=>({props:{color:t},style:{backgroundColor:lC(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)"}}]}))),EY=Q("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ae(n.color)}`]]}})(Ae(({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(Nt()).map(([t])=>{const n=lC(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),PY||{animation:`${Tx} 3s infinite linear`}),TY=Q("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ae(({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(Nt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Mx}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Mx}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:SY||{animation:`${Ix} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),RY=Q("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ae(({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(Nt()).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(Nt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:lC(e,t),transition:`transform .${Mx}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:kY||{animation:`${Ex} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),cC=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:s,variant:l},d=MY(u),f=Bt(),g={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=i-100;f&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&a!==void 0){let y=(a||0)-100;f&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return p.jsxs(IY,{className:se(d.root,o),ownerState:u,role:"progressbar",...g,ref:n,...c,children:[l==="buffer"?p.jsx(EY,{className:d.dashed,ownerState:u}):null,p.jsx(TY,{className:d.bar1,ownerState:u,style:m.bar1}),l==="determinate"?null:p.jsx(RY,{className:d.bar2,ownerState:u,style:m.bar2})]})});function DY(e){return xe("MuiListItem",e)}ge("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const $Y=ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AY(e){return xe("MuiListItemSecondaryAction",e)}ge("MuiListItemSecondaryAction",["root","disableGutters"]);const OY=e=>{const{disableGutters:t,classes:n}=e;return le({root:["root",t&&"disableGutters"]},AY,n)},jY=Q("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}}]}),E$=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=h.useContext(Ws),a={...r,disableGutters:i.disableGutters},l=OY(a);return p.jsx(jY,{className:se(l.root,o),ownerState:a,ref:n,...s})});E$.muiName="ListItemSecondaryAction";const FY=(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]},LY=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return le({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},DY,n)},_Y=Q("div",{name:"MuiListItem",slot:"Root",overridesResolver:FY})(Ae(({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:{[`& > .${$Y.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}}]}))),NY=Q("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),zY=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:g=!1,disableGutters:m=!1,disablePadding:y=!1,divider:v=!1,secondaryAction:x,slotProps:w={},slots:b={},...C}=r,k=h.useContext(Ws),M=h.useMemo(()=>({dense:g||k.dense||!1,alignItems:o,disableGutters:m}),[o,k.dense,g,m]),T=h.useRef(null),I=h.Children.toArray(s),D=I.length&&Ad(I[I.length-1],["ListItemSecondaryAction"]),S={...r,alignItems:o,dense:M.dense,disableGutters:m,disablePadding:y,divider:v,hasSecondaryAction:D},R=LY(S),j=tt(T,n),F=b.root||l.Root||_Y,A=w.root||c.root||{},$={className:se(R.root,A.className,i),...C};let E=a||"li";return D?(E=!$.component&&!a?"div":E,u==="li"&&(E==="li"?E="div":$.component==="li"&&($.component="div")),p.jsx(Ws.Provider,{value:M,children:p.jsxs(NY,{as:u,className:se(R.container,d),ref:j,ownerState:S,...f,children:[p.jsx(F,{...A,...!Uc(F)&&{as:E,ownerState:{...S,...A.ownerState}},...$,children:I}),I.pop()]})})):p.jsx(Ws.Provider,{value:M,children:p.jsxs(F,{...A,as:E,ref:j,...!Uc(F)&&{ownerState:{...S,...A.ownerState}},...$,children:[I,x&&p.jsx(E$,{children:x})]})})});function T$(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,s]=h.useState(!1);return at(()=>{n||s(!0)},[n]),h.useEffect(()=>{n&&s(!0)},[n]),p.jsx(h.Fragment,{children:o?t:r})}function BY(e){return xe("MuiPagination",e)}ge("MuiPagination",["root","ul","outlined","text"]);function HY(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:i=!1,hidePrevButton:a=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1,...g}=e,[m,y]=Nn({controlled:c,default:o,name:n,state:"page"}),v=(D,S)=>{c||y(S),l&&l(D,S)},x=(D,S)=>{const R=S-D+1;return Array.from({length:R},(j,F)=>D+F)},w=x(1,Math.min(t,r)),b=x(Math.max(r-t+1,t+1),r),C=Math.max(Math.min(m-f,r-t-f*2-1),t+2),k=Math.min(Math.max(m+f,t+f*2+2),r-t-1),M=[...u?["first"]:[],...a?[]:["previous"],...w,...C>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],T=D=>{switch(D){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}};return{items:M.map(D=>typeof D=="number"?{onClick:S=>{v(S,D)},type:"page",page:D,selected:D===m,disabled:s,"aria-current":D===m?"true":void 0}:{onClick:S=>{v(S,T(D))},type:D,page:T(D),selected:!1,disabled:s||!D.includes("ellipsis")&&(D==="next"||D==="last"?m>=r:m<=1)}),...g}}function VY(e){return xe("MuiPaginationItem",e)}const Jn=ge("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),R$=De(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),D$=De(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),UY=De(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),WY=De(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),$$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.variant==="text"&&t[`text${ae(n.color)}`],n.variant==="outlined"&&t[`outlined${ae(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]},GY=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:i,type:a,variant:l}=e,c={root:["root",`size${ae(s)}`,l,i,n!=="standard"&&`color${ae(n)}`,n!=="standard"&&`${l}${ae(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]};return le(c,VY,t)},KY=Q("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:$$})(Ae(({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",[`&.${Jn.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)}}]}))),YY=Q(ni,{name:"MuiPaginationItem",slot:"Root",overridesResolver:$$})(Ae(({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,[`&.${Jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jn.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"}},[`&.${Jn.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}))`:be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Jn.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)"}`,[`&.${Jn.selected}`]:{[`&.${Jn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Jn.selected}`]:{[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Nt(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Jn.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}},[`&.${Jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Nt(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Jn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:be(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:be(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}))`:be(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),qY=Q("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(Ae(({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)}}]}))),XY=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:i,components:a={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:f="medium",slots:g={},slotProps:m={},type:y="page",variant:v="text",...x}=r,w={...r,color:s,disabled:l,selected:u,shape:d,size:f,type:y,variant:v},b=Bt(),C=GY(w),k={slots:{previous:g.previous??a.previous,next:g.next??a.next,first:g.first??a.first,last:g.last??a.last},slotProps:m},[M,T]=Qt("previous",{elementType:UY,externalForwardedProps:k,ownerState:w}),[I,D]=Qt("next",{elementType:WY,externalForwardedProps:k,ownerState:w}),[S,R]=Qt("first",{elementType:R$,externalForwardedProps:k,ownerState:w}),[j,F]=Qt("last",{elementType:D$,externalForwardedProps:k,ownerState:w}),A=b?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,$={previous:M,next:I,first:S,last:j}[A],E={previous:T,next:D,first:R,last:F}[A];return y==="start-ellipsis"||y==="end-ellipsis"?p.jsx(KY,{ref:n,ownerState:w,className:se(C.root,o),children:"…"}):p.jsxs(YY,{ref:n,ownerState:w,component:i,disabled:l,className:se(C.root,o),...x,children:[y==="page"&&c,$?p.jsx(qY,{...E,className:C.icon,as:$}):null]})}),QY=e=>{const{classes:t,variant:n}=e;return le({root:["root",n],ul:["ul"]},BY,t)},ZY=Q("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),JY=Q("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function eq(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const tq=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:i="standard",count:a=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=eq,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:g,page:m,renderItem:y=S=>p.jsx(XY,{...S}),shape:v="circular",showFirstButton:x=!1,showLastButton:w=!1,siblingCount:b=1,size:C="medium",variant:k="text",...M}=r,{items:T}=HY({...r,componentName:"Pagination"}),I={...r,boundaryCount:o,color:i,count:a,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:f,renderItem:y,shape:v,showFirstButton:x,showLastButton:w,siblingCount:b,size:C,variant:k},D=QY(I);return p.jsx(ZY,{"aria-label":"pagination navigation",className:se(D.root,s),ownerState:I,ref:n,...M,children:p.jsx(JY,{className:D.ul,ownerState:I,children:T.map((S,R)=>p.jsx("li",{children:y({...S,color:i,"aria-label":u(S.type,S.page,S.selected),shape:v,size:C,variant:k})},R))})})});function nq(e){return xe("MuiSkeleton",e)}ge("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const rq=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},nq,t)},Rx=Ds` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,Dx=Ds` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,oq=typeof Rx!="string"?oa` + animation: ${Rx} 2s ease-in-out 0.5s infinite; + `:null,sq=typeof Dx!="string"?oa` + &::after { + animation: ${Dx} 2s linear 0.5s infinite; + } + `:null,iq=Q("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]}})(Ae(({theme:e})=>{const t=tB(e.shape.borderRadius)||"px",n=nB(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:be(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:oq||{animation:`${Rx} 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:sq||{"&::after":{animation:`${Dx} 2s linear 0.5s infinite`}}}]}})),aq=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:a,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:i,variant:c,hasChildren:!!d.children},g=rq(f);return p.jsx(iq,{as:i,ref:n,className:se(g.root,s),ownerState:f,...d,style:{width:u,height:a,...l}})});function lq(e){return xe("MuiTooltip",e)}const on=ge("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function cq(e){return Math.round(e*1e5)/1e5}const uq=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ae(s.split("-")[0])}`],arrow:["arrow"]};return le(i,lq,t)},dq=Q(di,{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]}})(Ae(({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"] .${on.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${on.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${on.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${on.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${on.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${on.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${on.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${on.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),fq=Q("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${ae(n.placement.split("-")[0])}`]]}})(Ae(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:be(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,[`.${on.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${on.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${on.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${on.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:`${cq(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${on.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${on.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${on.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${on.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${on.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${on.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${on.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${on.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${on.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${on.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),pq=Q("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ae(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:be(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let uh=!1;const jP=new S0;let Yu={x:0,y:0};function dh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const hq=h.forwardRef(function(t,n){var Hn,Tr,rs;const r=_e({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:i,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:m=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:x=!1,id:w,leaveDelay:b=0,leaveTouchDelay:C=1500,onClose:k,onOpen:M,open:T,placement:I="bottom",PopperComponent:D,PopperProps:S={},slotProps:R={},slots:j={},title:F,TransitionComponent:A=Za,TransitionProps:$,...E}=r,L=h.isValidElement(s)?s:p.jsx("span",{children:s}),O=Dn(),_=Bt(),[N,z]=h.useState(),[G,J]=h.useState(null),K=h.useRef(!1),B=f||x,W=zr(),te=zr(),X=zr(),q=zr(),[U,ee]=Nn({controlled:T,default:!1,name:"Tooltip",state:"open"});let H=U;const Z=mt(w),ne=h.useRef(),oe=ve(()=>{ne.current!==void 0&&(document.body.style.WebkitUserSelect=ne.current,ne.current=void 0),q.clear()});h.useEffect(()=>oe,[oe]);const re=nt=>{jP.clear(),uh=!0,ee(!0),M&&!H&&M(nt)},de=ve(nt=>{jP.start(800+b,()=>{uh=!1}),ee(!1),k&&H&&k(nt),W.start(O.transitions.duration.shortest,()=>{K.current=!1})}),ie=nt=>{K.current&&nt.type!=="touchstart"||(N&&N.removeAttribute("title"),te.clear(),X.clear(),m||uh&&y?te.start(uh?y:m,()=>{re(nt)}):re(nt))},we=nt=>{te.clear(),X.start(b,()=>{de(nt)})},[,Re]=h.useState(!1),Le=nt=>{Hc(nt.target)||(Re(!1),we(nt))},Qe=nt=>{N||z(nt.currentTarget),Hc(nt.target)&&(Re(!0),ie(nt))},Me=nt=>{K.current=!0;const Zn=L.props;Zn.onTouchStart&&Zn.onTouchStart(nt)},Ee=nt=>{Me(nt),X.clear(),W.clear(),oe(),ne.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",q.start(v,()=>{document.body.style.WebkitUserSelect=ne.current,ie(nt)})},Ve=nt=>{L.props.onTouchEnd&&L.props.onTouchEnd(nt),oe(),X.start(C,()=>{de(nt)})};h.useEffect(()=>{if(!H)return;function nt(Zn){Zn.key==="Escape"&&de(Zn)}return document.addEventListener("keydown",nt),()=>{document.removeEventListener("keydown",nt)}},[de,H]);const Ge=tt(sa(L),z,n);!F&&F!==0&&(H=!1);const Oe=h.useRef(),je=nt=>{const Zn=L.props;Zn.onMouseMove&&Zn.onMouseMove(nt),Yu={x:nt.clientX,y:nt.clientY},Oe.current&&Oe.current.update()},Ue={},Te=typeof F=="string";c?(Ue.title=!H&&Te&&!d?F:null,Ue["aria-describedby"]=H?Z:null):(Ue["aria-label"]=Te?F:null,Ue["aria-labelledby"]=H&&!Te?Z:null);const Ie={...Ue,...E,...L.props,className:se(E.className,L.props.className),onTouchStart:Me,ref:Ge,...x?{onMouseMove:je}:{}},We={};g||(Ie.onTouchStart=Ee,Ie.onTouchEnd=Ve),d||(Ie.onMouseOver=dh(ie,Ie.onMouseOver),Ie.onMouseLeave=dh(we,Ie.onMouseLeave),B||(We.onMouseOver=ie,We.onMouseLeave=we)),u||(Ie.onFocus=dh(Qe,Ie.onFocus),Ie.onBlur=dh(Le,Ie.onBlur),B||(We.onFocus=Qe,We.onBlur=Le));const Ct=h.useMemo(()=>{var Zn;let nt=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(Zn=S.popperOptions)!=null&&Zn.modifiers&&(nt=nt.concat(S.popperOptions.modifiers)),{...S.popperOptions,modifiers:nt}},[G,S]),ye={...r,isRtl:_,arrow:o,disableInteractive:B,placement:I,PopperComponentProp:D,touch:K.current},$e=uq(ye),Xe=j.popper??a.Popper??dq,ht=j.transition??a.Transition??A??Za,Qn=j.tooltip??a.Tooltip??fq,ct=j.arrow??a.Arrow??pq,jt=oc(Xe,{...S,...R.popper??l.popper,className:se($e.popper,S==null?void 0:S.className,(Hn=R.popper??l.popper)==null?void 0:Hn.className)},ye),ln=oc(ht,{...$,...R.transition??l.transition},ye),en=oc(Qn,{...R.tooltip??l.tooltip,className:se($e.tooltip,(Tr=R.tooltip??l.tooltip)==null?void 0:Tr.className)},ye),lr=oc(ct,{...R.arrow??l.arrow,className:se($e.arrow,(rs=R.arrow??l.arrow)==null?void 0:rs.className)},ye);return p.jsxs(h.Fragment,{children:[h.cloneElement(L,Ie),p.jsx(Xe,{as:D??di,placement:I,anchorEl:x?{getBoundingClientRect:()=>({top:Yu.y,left:Yu.x,right:Yu.x,bottom:Yu.y,width:0,height:0})}:N,popperRef:Oe,open:N?H:!1,id:Z,transition:!0,...We,...jt,popperOptions:Ct,children:({TransitionProps:nt})=>p.jsx(ht,{timeout:O.transitions.duration.shorter,...nt,...ln,children:p.jsxs(Qn,{...en,children:[F,o?p.jsx(ct,{...lr,ref:J}):null]})})})]})});function mq(e){return xe("MuiSwitch",e)}const er=ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),gq=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,a={root:["root",n&&`edge${ae(n)}`,`size${ae(r)}`],switchBase:["switchBase",`color${ae(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=le(a,mq,t);return{...t,...l}},yq=Q("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(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,[`& .${er.thumb}`]:{width:16,height:16},[`& .${er.switchBase}`]:{padding:4,[`&.${er.checked}`]:{transform:"translateX(16px)"}}}}]}),vq=Q(b$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${er.input}`]:t.input},n.color!=="default"&&t[`color${ae(n.color)}`]]}})(Ae(({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}),[`&.${er.checked}`]:{transform:"translateX(20px)"},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${er.checked} + .${er.track}`]:{opacity:.5},[`&.${er.disabled} + .${er.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${er.input}`]:{left:"-100%",width:"300%"}})),Ae(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Nt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${er.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fl(e.palette[t].main,.62):dl(e.palette[t].main,.55)}`}},[`&.${er.checked} + .${er.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),xq=Q("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Ae(({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}`}))),bq=Q("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Ae(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Mi=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:a="medium",sx:l,...c}=r,u={...r,color:s,edge:i,size:a},d=gq(u),f=p.jsx(bq,{className:d.thumb,ownerState:u});return p.jsxs(yq,{className:se(d.root,o),sx:l,ownerState:u,children:[p.jsx(vq,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),p.jsx(xq,{className:d.track,ownerState:u})]})}),FP=ge("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),wq=h.createContext(),Cq=h.createContext();function Sq(e){return xe("MuiTableCell",e)}const kq=ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Pq=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,a={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${ae(r)}`,o!=="normal"&&`padding${ae(o)}`,`size${ae(s)}`]};return le(a,Sq,t)},Mq=Q("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.padding!=="normal"&&t[`padding${ae(n.padding)}`],n.align!=="inherit"&&t[`align${ae(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ae(({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"?fl(be(e.palette.divider,1),.88):dl(be(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",[`&.${kq.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}}]}))),$x=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:a,scope:l,size:c,sortDirection:u,variant:d,...f}=r,g=h.useContext(wq),m=h.useContext(Cq),y=m&&m.variant==="head";let v;i?v=i:v=y?"th":"td";let x=l;v==="td"?x=void 0:!x&&y&&(x="col");const w=d||m&&m.variant,b={...r,align:o,component:v,padding:a||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&g&&g.stickyHeader,variant:w},C=Pq(b);let k=null;return u&&(k=u==="asc"?"ascending":"descending"),p.jsx(Mq,{as:v,ref:n,className:se(C.root,s),"aria-sort":k,scope:x,ownerState:b,...f})}),Iq=De(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Eq=De(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Tq=h.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:s=!1,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:g={},slotProps:m={},...y}=t,v=Bt(),x=z=>{l(z,0)},w=z=>{l(z,c-1)},b=z=>{l(z,c+1)},C=z=>{l(z,Math.max(0,Math.ceil(o/u)-1))},k=g.firstButton??wn,M=g.lastButton??wn,T=g.nextButton??wn,I=g.previousButton??wn,D=g.firstButtonIcon??R$,S=g.lastButtonIcon??D$,R=g.nextButtonIcon??Eq,j=g.previousButtonIcon??Iq,F=v?M:k,A=v?T:I,$=v?I:T,E=v?k:M,L=v?m.lastButton:m.firstButton,O=v?m.nextButton:m.previousButton,_=v?m.previousButton:m.nextButton,N=v?m.firstButton:m.lastButton;return p.jsxs("div",{ref:n,...y,children:[d&&p.jsx(F,{onClick:x,disabled:s||c===0,"aria-label":i("first",c),title:i("first",c),...L,children:v?p.jsx(S,{...m.lastButtonIcon}):p.jsx(D,{...m.firstButtonIcon})}),p.jsx(A,{onClick:w,disabled:s||c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c),...O??r,children:v?p.jsx(R,{...m.nextButtonIcon}):p.jsx(j,{...m.previousButtonIcon})}),p.jsx($,{onClick:b,disabled:s||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":i("next",c),title:i("next",c),..._??a,children:v?p.jsx(j,{...m.previousButtonIcon}):p.jsx(R,{...m.nextButtonIcon})}),f&&p.jsx(E,{onClick:C,disabled:s||c>=Math.ceil(o/u)-1,"aria-label":i("last",c),title:i("last",c),...N,children:v?p.jsx(D,{...m.firstButtonIcon}):p.jsx(S,{...m.lastButtonIcon})})]})});function Rq(e){return xe("MuiTablePagination",e)}const Na=ge("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var LP;const Dq=Q($x,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Ae(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),$q=Q(Hw,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Na.actions}`]:t.actions,...t.toolbar})})(Ae(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Na.actions}`]:{flexShrink:0,marginLeft:20}}))),Aq=Q("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Oq=Q("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Ae(({theme:e})=>({...e.typography.body2,flexShrink:0}))),jq=Q(op,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Na.selectIcon}`]:t.selectIcon,[`& .${Na.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Na.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Fq=Q(Vt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Lq=Q("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Ae(({theme:e})=>({...e.typography.body2,flexShrink:0})));function _q({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Nq(e){return`Go to ${e} page`}const zq=e=>{const{classes:t}=e;return le({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Rq,t)},Bq=h.forwardRef(function(t,n){const r=_e({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Tq,backIconButtonProps:s,className:i,colSpan:a,component:l=$x,count:c,disabled:u=!1,getItemAriaLabel:d=Nq,labelDisplayedRows:f=_q,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:m,onPageChange:y,onRowsPerPageChange:v,page:x,rowsPerPage:w,rowsPerPageOptions:b=[10,25,50,100],SelectProps:C={},showFirstButton:k=!1,showLastButton:M=!1,slotProps:T={},slots:I={},...D}=r,S=r,R=zq(S),j=(T==null?void 0:T.select)??C,F=j.native?"option":Fq;let A;(l===$x||l==="td")&&(A=a||1e3);const $=mt(j.id),E=mt(j.labelId),L=()=>c===-1?(x+1)*w:w===-1?c:Math.min(c,(x+1)*w);return p.jsx(Dq,{colSpan:A,ref:n,as:l,ownerState:S,className:se(R.root,i),...D,children:p.jsxs($q,{className:R.toolbar,children:[p.jsx(Aq,{className:R.spacer}),b.length>1&&p.jsx(Oq,{className:R.selectLabel,id:E,children:g}),b.length>1&&p.jsx(jq,{variant:"standard",...!j.variant&&{input:LP||(LP=p.jsx(vu,{}))},value:w,onChange:v,id:$,labelId:E,...j,classes:{...j.classes,root:se(R.input,R.selectRoot,(j.classes||{}).root),select:se(R.select,(j.classes||{}).select),icon:se(R.selectIcon,(j.classes||{}).icon)},disabled:u,children:b.map(O=>h.createElement(F,{...!Uc(F)&&{ownerState:S},className:R.menuItem,key:O.label?O.label:O,value:O.value?O.value:O},O.label?O.label:O))}),p.jsx(Lq,{className:R.displayedRows,children:f({from:c===0?0:x*w+1,to:L(),count:c===-1?-1:c,page:x})}),p.jsx(o,{className:R.actions,backIconButtonProps:s,count:c,nextIconButtonProps:m,onPageChange:y,page:x,rowsPerPage:w,showFirstButton:k,showLastButton:M,slotProps:T.actions,slots:I.actions,getItemAriaLabel:d,disabled:u})]})})}),Hq=ge("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),_P=ge("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);function A$(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vq}=Object.prototype,{getPrototypeOf:uC}=Object,N0=(e=>t=>{const n=Vq.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ts=e=>(e=e.toLowerCase(),t=>N0(t)===e),z0=e=>t=>typeof t===e,{isArray:xu}=Array,Cf=z0("undefined");function Uq(e){return e!==null&&!Cf(e)&&e.constructor!==null&&!Cf(e.constructor)&&Ur(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O$=ts("ArrayBuffer");function Wq(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&O$(e.buffer),t}const Gq=z0("string"),Ur=z0("function"),j$=z0("number"),B0=e=>e!==null&&typeof e=="object",Kq=e=>e===!0||e===!1,Qh=e=>{if(N0(e)!=="object")return!1;const t=uC(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Yq=ts("Date"),qq=ts("File"),Xq=ts("Blob"),Qq=ts("FileList"),Zq=e=>B0(e)&&Ur(e.pipe),Jq=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ur(e.append)&&((t=N0(e))==="formdata"||t==="object"&&Ur(e.toString)&&e.toString()==="[object FormData]"))},eX=ts("URLSearchParams"),[tX,nX,rX,oX]=["ReadableStream","Request","Response","Headers"].map(ts),sX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ap(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),xu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,L$=e=>!Cf(e)&&e!==Ra;function Ax(){const{caseless:e}=L$(this)&&this||{},t={},n=(r,o)=>{const s=e&&F$(t,o)||o;Qh(t[s])&&Qh(r)?t[s]=Ax(t[s],r):Qh(r)?t[s]=Ax({},r):xu(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(ap(t,(o,s)=>{n&&Ur(o)?e[s]=A$(o,n):e[s]=o},{allOwnKeys:r}),e),aX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lX=(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)},cX=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&uC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uX=(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},dX=e=>{if(!e)return null;if(xu(e))return e;let t=e.length;if(!j$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uC(Uint8Array)),pX=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},hX=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mX=ts("HTMLFormElement"),gX=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),NP=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yX=ts("RegExp"),_$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ap(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},vX=e=>{_$(e,(t,n)=>{if(Ur(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ur(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+"'")})}})},xX=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return xu(e)?r(e):r(String(e).split(t)),n},bX=()=>{},wX=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,M1="abcdefghijklmnopqrstuvwxyz",zP="0123456789",N$={DIGIT:zP,ALPHA:M1,ALPHA_DIGIT:M1+M1.toUpperCase()+zP},CX=(e=16,t=N$.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function SX(e){return!!(e&&Ur(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kX=e=>{const t=new Array(10),n=(r,o)=>{if(B0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=xu(r)?[]:{};return ap(r,(i,a)=>{const l=n(i,o+1);!Cf(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},PX=ts("AsyncFunction"),MX=e=>e&&(B0(e)||Ur(e))&&Ur(e.then)&&Ur(e.catch),z$=((e,t)=>e?setImmediate:t?((n,r)=>(Ra.addEventListener("message",({source:o,data:s})=>{o===Ra&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ra.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ur(Ra.postMessage)),IX=typeof queueMicrotask<"u"?queueMicrotask.bind(Ra):typeof process<"u"&&process.nextTick||z$,ce={isArray:xu,isArrayBuffer:O$,isBuffer:Uq,isFormData:Jq,isArrayBufferView:Wq,isString:Gq,isNumber:j$,isBoolean:Kq,isObject:B0,isPlainObject:Qh,isReadableStream:tX,isRequest:nX,isResponse:rX,isHeaders:oX,isUndefined:Cf,isDate:Yq,isFile:qq,isBlob:Xq,isRegExp:yX,isFunction:Ur,isStream:Zq,isURLSearchParams:eX,isTypedArray:fX,isFileList:Qq,forEach:ap,merge:Ax,extend:iX,trim:sX,stripBOM:aX,inherits:lX,toFlatObject:cX,kindOf:N0,kindOfTest:ts,endsWith:uX,toArray:dX,forEachEntry:pX,matchAll:hX,isHTMLForm:mX,hasOwnProperty:NP,hasOwnProp:NP,reduceDescriptors:_$,freezeMethods:vX,toObjectSet:xX,toCamelCase:gX,noop:bX,toFiniteNumber:wX,findKey:F$,global:Ra,isContextDefined:L$,ALPHABET:N$,generateString:CX,isSpecCompliantForm:SX,toJSONObject:kX,isAsyncFn:PX,isThenable:MX,setImmediate:z$,asap:IX};function it(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)}ce.inherits(it,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:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const B$=it.prototype,H$={};["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=>{H$[e]={value:e}});Object.defineProperties(it,H$);Object.defineProperty(B$,"isAxiosError",{value:!0});it.from=(e,t,n,r,o,s)=>{const i=Object.create(B$);return ce.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),it.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const EX=null;function Ox(e){return ce.isPlainObject(e)||ce.isArray(e)}function V$(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function BP(e,t,n){return e?e.concat(t).map(function(o,s){return o=V$(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function TX(e){return ce.isArray(e)&&!e.some(Ox)}const RX=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function H0(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!ce.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(ce.isDate(m))return m.toISOString();if(!l&&ce.isBlob(m))throw new it("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(m)||ce.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,v){let x=m;if(m&&!v&&typeof m=="object"){if(ce.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(ce.isArray(m)&&TX(m)||(ce.isFileList(m)||ce.endsWith(y,"[]"))&&(x=ce.toArray(m)))return y=V$(y),x.forEach(function(b,C){!(ce.isUndefined(b)||b===null)&&t.append(i===!0?BP([y],C,s):i===null?y:y+"[]",c(b))}),!1}return Ox(m)?!0:(t.append(BP(v,y,s),c(m)),!1)}const d=[],f=Object.assign(RX,{defaultVisitor:u,convertValue:c,isVisitable:Ox});function g(m,y){if(!ce.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),ce.forEach(m,function(x,w){(!(ce.isUndefined(x)||x===null)&&o.call(t,x,ce.isString(w)?w.trim():w,y,f))===!0&&g(x,y?y.concat(w):[w])}),d.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return g(e),t}function HP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dC(e,t){this._pairs=[],e&&H0(e,this,t)}const U$=dC.prototype;U$.append=function(t,n){this._pairs.push([t,n])};U$.toString=function(t){const n=t?function(r){return t.call(this,r,HP)}:HP;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W$(e,t,n){if(!t)return e;const r=n&&n.encode||DX,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ce.isURLSearchParams(t)?t.toString():new dC(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class VP{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){ce.forEach(this.handlers,function(r){r!==null&&t(r)})}}const G$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$X=typeof URLSearchParams<"u"?URLSearchParams:dC,AX=typeof FormData<"u"?FormData:null,OX=typeof Blob<"u"?Blob:null,jX={isBrowser:!0,classes:{URLSearchParams:$X,FormData:AX,Blob:OX},protocols:["http","https","file","blob","url","data"]},fC=typeof window<"u"&&typeof document<"u",jx=typeof navigator=="object"&&navigator||void 0,FX=fC&&(!jx||["ReactNative","NativeScript","NS"].indexOf(jx.product)<0),LX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_X=fC&&window.location.href||"http://localhost",NX=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fC,hasStandardBrowserEnv:FX,hasStandardBrowserWebWorkerEnv:LX,navigator:jx,origin:_X},Symbol.toStringTag,{value:"Module"})),Sr={...NX,...jX};function zX(e,t){return H0(e,new Sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Sr.isNode&&ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function BX(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function HX(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&ce.isArray(o)?o.length:i,l?(ce.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!ce.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&ce.isArray(o[i])&&(o[i]=HX(o[i])),!a)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(r,o)=>{t(BX(r),o,n,0)}),n}return null}function VX(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lp={transitional:G$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ce.isObject(t);if(s&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return o?JSON.stringify(K$(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zX(t,this.formSerializer).toString();if((a=ce.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return H0(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),VX(t)):t}],transformResponse:[function(t){const n=this.transitional||lp.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?it.from(a,it.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sr.classes.FormData,Blob:Sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{lp.headers[e]={}});const UX=ce.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"]),WX=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&UX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},UP=Symbol("internals");function qu(e){return e&&String(e).trim().toLowerCase()}function Zh(e){return e===!1||e==null?e:ce.isArray(e)?e.map(Zh):String(e)}function GX(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 KX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function I1(e,t,n,r,o){if(ce.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ce.isString(t)){if(ce.isString(r))return t.indexOf(r)!==-1;if(ce.isRegExp(r))return r.test(t)}}function YX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function qX(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let kr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const u=qu(l);if(!u)throw new Error("header name must be a non-empty string");const d=ce.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Zh(a))}const i=(a,l)=>ce.forEach(a,(c,u)=>s(c,u,l));if(ce.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(ce.isString(t)&&(t=t.trim())&&!KX(t))i(WX(t),n);else if(ce.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=qu(t),t){const r=ce.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return GX(o);if(ce.isFunction(n))return n.call(this,o,r);if(ce.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qu(t),t){const r=ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||I1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=qu(i),i){const a=ce.findKey(r,i);a&&(!n||I1(r,r[a],a,n))&&(delete r[a],o=!0)}}return ce.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||I1(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return ce.forEach(this,(o,s)=>{const i=ce.findKey(r,s);if(i){n[i]=Zh(o),delete n[s];return}const a=t?YX(s):String(s).trim();a!==s&&delete n[s],n[a]=Zh(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ce.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ce.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[UP]=this[UP]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=qu(i);r[a]||(qX(o,i),r[a]=!0)}return ce.isArray(t)?t.forEach(s):s(t),this}};kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(kr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ce.freezeMethods(kr);function E1(e,t){const n=this||lp,r=t||n,o=kr.from(r.headers);let s=r.data;return ce.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Y$(e){return!!(e&&e.__CANCEL__)}function bu(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(bu,it,{__CANCEL__:!0});function q$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function XX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QX(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let d=s,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const Xm=(e,t,n=3)=>{let r=0;const o=QX(50,250);return ZX(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,c=o(l),u=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},WP=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},GP=e=>(...t)=>ce.asap(()=>e(...t)),JX=Sr.hasStandardBrowserEnv?function(){const t=Sr.navigator&&/(msie|trident)/i.test(Sr.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=ce.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),eQ=Sr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&i.push("path="+r),ce.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.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 tQ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nQ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function X$(e,t){return e&&!tQ(t)?nQ(e,t):t}const KP=e=>e instanceof kr?{...e}:e;function tl(e,t){t=t||{};const n={};function r(c,u,d){return ce.isPlainObject(c)&&ce.isPlainObject(u)?ce.merge.call({caseless:d},c,u):ce.isPlainObject(u)?ce.merge({},u):ce.isArray(u)?u.slice():u}function o(c,u,d){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function s(c,u){if(!ce.isUndefined(u))return r(void 0,u)}function i(c,u){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>o(KP(c),KP(u),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);ce.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Q$=e=>{const t=tl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=kr.from(i),t.url=W$(X$(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(ce.isFormData(n)){if(Sr.hasStandardBrowserEnv||Sr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Sr.hasStandardBrowserEnv&&(r&&ce.isFunction(r)&&(r=r(t)),r||r!==!1&&JX(t.url))){const c=o&&s&&eQ.read(s);c&&i.set(o,c)}return t},rQ=typeof XMLHttpRequest<"u",oQ=rQ&&function(e){return new Promise(function(n,r){const o=Q$(e);let s=o.data;const i=kr.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,g,m;function y(){g&&g(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const b=kr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};q$(function(T){n(T),y()},function(T){r(T),y()},k),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new it("Request aborted",it.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new it("Network Error",it.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||G$;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new it(C,k.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,v)),v=null},s===void 0&&i.setContentType(null),"setRequestHeader"in v&&ce.forEach(i.toJSON(),function(C,k){v.setRequestHeader(k,C)}),ce.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([f,m]=Xm(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,g]=Xm(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=b=>{v&&(r(!b||b.type?new bu(null,e,v):b),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=XX(o.url);if(w&&Sr.protocols.indexOf(w)===-1){r(new it("Unsupported protocol "+w+":",it.ERR_BAD_REQUEST,e));return}v.send(s||null)})},sQ=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof it?u:new bu(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new it(`timeout ${t} of ms exceeded`,it.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>ce.asap(a),l}},iQ=function*(e,t){let n=e.byteLength;if(n{const o=aQ(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let f=s+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},V0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Z$=V0&&typeof ReadableStream=="function",cQ=V0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),J$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uQ=Z$&&J$(()=>{let e=!1;const t=new Request(Sr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qP=64*1024,Fx=Z$&&J$(()=>ce.isReadableStream(new Response("").body)),Qm={stream:Fx&&(e=>e.body)};V0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qm[t]&&(Qm[t]=ce.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new it(`Response type '${t}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const dQ=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(Sr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await cQ(e)).byteLength},fQ=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n??dQ(t)},pQ=V0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Q$(e);c=c?(c+"").toLowerCase():"text";let g=sQ([o,s&&s.toAbortSignal()],i),m;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let v;try{if(l&&uQ&&n!=="get"&&n!=="head"&&(v=await fQ(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),M;if(ce.isFormData(r)&&(M=k.headers.get("content-type"))&&u.setContentType(M),k.body){const[T,I]=WP(v,Xm(GP(l)));r=YP(k.body,qP,T,I)}}ce.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let w=await fetch(m);const b=Fx&&(c==="stream"||c==="response");if(Fx&&(a||b&&y)){const k={};["status","statusText","headers"].forEach(D=>{k[D]=w[D]});const M=ce.toFiniteNumber(w.headers.get("content-length")),[T,I]=a&&WP(M,Xm(GP(a),!0))||[];w=new Response(YP(w.body,qP,T,()=>{I&&I(),y&&y()}),k)}c=c||"text";let C=await Qm[ce.findKey(Qm,c)||"text"](w,e);return!b&&y&&y(),await new Promise((k,M)=>{q$(k,M,{data:C,headers:kr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(x){throw y&&y(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,e,m),{cause:x.cause||x}):it.from(x,x&&x.code,e,m)}}),Lx={http:EX,xhr:oQ,fetch:pQ};ce.forEach(Lx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const XP=e=>`- ${e}`,hQ=e=>ce.isFunction(e)||e===null||e===!1,e3={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : +`+s.map(XP).join(` +`):" "+XP(s[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Lx};function T1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bu(null,e)}function QP(e){return T1(e),e.headers=kr.from(e.headers),e.data=E1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e3.getAdapter(e.adapter||lp.adapter)(e).then(function(r){return T1(e),r.data=E1.call(e,e.transformResponse,r),r.headers=kr.from(r.headers),r},function(r){return Y$(r)||(T1(e),r&&r.response&&(r.response.data=E1.call(e,e.transformResponse,r.response),r.response.headers=kr.from(r.response.headers))),Promise.reject(r)})}const t3="1.7.7",pC={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pC[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ZP={};pC.transitional=function(t,n,r){function o(s,i){return"[Axios v"+t3+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new it(o(i," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!ZP[i]&&(ZP[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function mQ(e,t,n){if(typeof e!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new it("option "+s+" must be "+l,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+s,it.ERR_BAD_OPTION)}}const _x={assertOptions:mQ,validators:pC},wi=_x.validators;let za=class{constructor(t){this.defaults=t,this.interceptors={request:new VP,response:new VP}}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 s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tl(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&_x.assertOptions(r,{silentJSONParsing:wi.transitional(wi.boolean),forcedJSONParsing:wi.transitional(wi.boolean),clarifyTimeoutError:wi.transitional(wi.boolean)},!1),o!=null&&(ce.isFunction(o)?n.paramsSerializer={serialize:o}:_x.assertOptions(o,{encode:wi.function,serialize:wi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&ce.merge(s.common,s[n.method]);s&&ce.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=kr.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const m=[QP.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new bu(s,i,a),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 n3(function(o){t=o}),cancel:t}}};function yQ(e){return function(n){return e.apply(null,n)}}function vQ(e){return ce.isObject(e)&&e.isAxiosError===!0}const Nx={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(Nx).forEach(([e,t])=>{Nx[t]=e});function r3(e){const t=new za(e),n=A$(za.prototype.request,t);return ce.extend(n,za.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return r3(tl(e,o))},n}const an=r3(lp);an.Axios=za;an.CanceledError=bu;an.CancelToken=gQ;an.isCancel=Y$;an.VERSION=t3;an.toFormData=H0;an.AxiosError=it;an.Cancel=an.CanceledError;an.all=function(t){return Promise.all(t)};an.spread=yQ;an.isAxiosError=vQ;an.mergeConfig=tl;an.AxiosHeaders=kr;an.formToJSON=e=>K$(ce.isHTMLForm(e)?new FormData(e):e);an.getAdapter=e3.getAdapter;an.HttpStatusCode=Nx;an.default=an;const{Axios:Rxe,AxiosError:Dxe,CanceledError:$xe,isCancel:Axe,CancelToken:Oxe,VERSION:jxe,all:Fxe,Cancel:Lxe,isAxiosError:_xe,spread:Nxe,toFormData:zxe,AxiosHeaders:Bxe,HttpStatusCode:Hxe,formToJSON:Vxe,getAdapter:Uxe,mergeConfig:Wxe}=an,o3=De(p.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic"),s3=De(p.jsx("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff"),xQ=()=>{const e="http://localhost:8000/api/v1/",t=h.useRef([]),[n,r]=h.useState(""),o=h.useRef(null),[s,i]=h.useState(!1),[a,l]=h.useState(null),[c,u]=h.useState(!0),[d,f]=h.useState(!1),[g,m]=h.useState(null),[y,v]=h.useState(!1),x=async()=>{i(!1);try{const k=await navigator.mediaDevices.getUserMedia({audio:!0});o.current=new MediaRecorder(k),o.current&&(o.current.ondataavailable=M=>{t.current.push(M.data)},o.current.onstop=()=>{const M=new Blob(t.current,{type:"audio/webm"}),T=URL.createObjectURL(M),I=new File([M],"recording.webm",{type:"audio/webm"});l(I),r(T),t.current=[]}),o.current.start()}catch(k){console.error("Error accessing microphone:",k)}},w=()=>{o.current&&o.current.stop()};h.useEffect(()=>{y?x():w(),u(!0)},[y]);const b=()=>{y?x():w(),v(!y)},C=async()=>{if(!a)return;f(!0);const k=e+"inference/speech_asr_url/",M=new FormData;M.append("audio",a);try{const I=(await an.post(k,M,{headers:{"Content-Type":"multipart/form-data"}})).data.response;return f(!1),m(I),I}catch(T){throw console.error("Error processing Text Prompt:",T.message),f(!1),T}};return p.jsx(p.Fragment,{children:p.jsxs(Ne,{className:"app-container",children:[p.jsxs(Ne,{children:[p.jsx("h2",{children:"Voice to Text"}),p.jsx(dn,{}),p.jsxs(Ne,{className:"input-container",children:[p.jsx(rt,{variant:"contained",color:y?"secondary":"primary",startIcon:y?p.jsx(o3,{}):p.jsx(s3,{}),onClick:b,disabled:s}),!c&&n&&p.jsx(rt,{variant:"contained",onClick:()=>{new Audio(n).play()},disabled:c,children:"Play Recording"}),p.jsx(rt,{variant:"contained",onClick:C,disabled:s,children:s?"Processing...":"Submit"})]}),p.jsx(Ne,{id:"botResult",children:d&&p.jsx(cC,{})}),g&&p.jsxs(Ne,{className:"response-container",children:[p.jsx("h4",{children:"Response:"}),p.jsx(qo,{value:JSON.stringify(g,null,2),disabled:!0,multiline:!0,fullWidth:!0,rows:4})]})]}),p.jsx(dn,{sx:{my:2}})]})})},bQ=()=>{const e="http://localhost:8000/api/v1/",t=h.useRef([]),[n,r]=h.useState(""),o=h.useRef(null),[s,i]=h.useState(!1),[a,l]=h.useState(null),[c,u]=h.useState(!0),[d,f]=h.useState(!1),[g,m]=h.useState(null),[y,v]=h.useState(!1),x=async()=>{i(!1);try{const k=await navigator.mediaDevices.getUserMedia({audio:!0});o.current=new MediaRecorder(k),o.current&&(o.current.ondataavailable=M=>{t.current.push(M.data)},o.current.onstop=()=>{const M=new Blob(t.current,{type:"audio/webm"}),T=URL.createObjectURL(M),I=new File([M],"recording.webm",{type:"audio/webm"});l(I),r(T),t.current=[]}),o.current.start()}catch(k){console.error("Error accessing microphone:",k)}},w=()=>{o.current&&o.current.stop()};h.useEffect(()=>{y?x():w(),u(!0)},[y]);const b=()=>{y?x():w(),v(!y)},C=async()=>{if(!a)return;f(!0);const k=e+"inference/speech_llm_url/",M=new FormData;M.append("audio",a);try{const I=(await an.post(k,M,{headers:{"Content-Type":"multipart/form-data"}})).data.response;return f(!1),m(I),I}catch(T){throw console.error("Error processing Text Prompt:",T.message),f(!1),T}};return p.jsx(p.Fragment,{children:p.jsxs(Ne,{className:"app-container",children:[p.jsxs(Ne,{children:[p.jsx("h2",{children:"Voice Query"}),p.jsx(dn,{}),p.jsxs(Ne,{className:"input-container",children:[p.jsx(rt,{variant:"contained",color:y?"secondary":"primary",startIcon:y?p.jsx(o3,{}):p.jsx(s3,{}),onClick:b,disabled:s}),!c&&n&&p.jsx(rt,{variant:"contained",onClick:()=>{new Audio(n).play()},disabled:c,children:"Play Recording"}),p.jsx(rt,{variant:"contained",onClick:C,disabled:s,children:s?"Processing...":"Submit"})]}),p.jsx(Ne,{id:"botResult",children:d&&p.jsx(cC,{})}),g&&p.jsxs(Ne,{className:"response-container",children:[p.jsx("h4",{children:"Response:"}),p.jsx(qo,{value:JSON.stringify(g,null,2),disabled:!0,multiline:!0,fullWidth:!0,rows:4})]})]}),p.jsx(dn,{sx:{my:2}})]})})},wQ=Q("div")(({theme:e})=>({alignSelf:"center",width:"100%",height:400,marginTop:e.spacing(8),borderRadius:e.shape.borderRadius,outline:"6px solid",outlineColor:"hsla(220, 25%, 80%, 0.2)",border:"1px solid",borderColor:e.palette.grey[200],boxShadow:"0 0 12px 8px hsla(220, 25%, 80%, 0.2)",backgroundImage:"url(https://mui.com/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)",backgroundSize:"cover",[e.breakpoints.up("sm")]:{marginTop:e.spacing(10),height:700},...e.applyStyles("dark",{boxShadow:"0 0 24px 12px hsla(210, 100%, 25%, 0.2)",backgroundImage:"url(https://mui.com/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)",outlineColor:"hsla(220, 20%, 42%, 0.1)",borderColor:e.palette.grey[700]})}));function CQ(){return p.jsx(Ne,{id:"hero",sx:e=>({width:"100%",backgroundRepeat:"no-repeat",backgroundImage:"radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 90%), transparent)",...e.applyStyles("dark",{backgroundImage:"radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 16%), transparent)"})}),children:p.jsxs(Jo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",pt:{xs:14,sm:20},pb:{xs:8,sm:12}},children:[p.jsxs(Ja,{spacing:2,useFlexGap:!0,sx:{alignItems:"center",width:{xs:"100%",sm:"70%"}},children:[p.jsx(Ce,{variant:"h3",sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",fontSize:"clamp(3rem, 10vw, 3.5rem)"},children:"Sanjeevini"}),p.jsx(Ce,{sx:{textAlign:"center",color:"text.secondary",width:{sm:"100%",md:"80%"}},children:"A privacy-focused, local AI-powered medical translation agent for doctors."}),p.jsx(Ce,{sx:{textAlign:"center",color:"text.secondary",width:{sm:"100%",md:"80%"}}}),"Enables accurate diagnosis across language barriers by processing sensitive patient data on-device.",p.jsxs(Ja,{direction:{xs:"column",sm:"row"},spacing:1,useFlexGap:!0,sx:{pt:2,width:{xs:"100%",sm:"350px"}},children:[p.jsx(mn,{container:!0,spacing:2,children:p.jsx(mn,{size:{xs:12},children:p.jsx("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/KHK_jaB4D0g?rel=0",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Watch the video"})})}),p.jsx("div",{style:{display:"none"},children:p.jsxs(mn,{container:!0,spacing:2,children:[p.jsx(mn,{size:{xs:12},children:p.jsx(xQ,{})}),p.jsx(mn,{size:{xs:12},children:p.jsx(dn,{})}),p.jsx(mn,{size:{xs:12},children:p.jsx(bQ,{})})]})}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(rp,{htmlFor:"email-hero",sx:iD,children:"Email"}),p.jsx(qo,{id:"email-hero",hiddenLabel:!0,size:"small",variant:"outlined","aria-label":"Enter your email address",placeholder:"Your email address",fullWidth:!0,slotProps:{htmlInput:{autoComplete:"off","aria-label":"Enter your email address"}}}),p.jsx(rt,{variant:"contained",color:"primary",size:"small",sx:{minWidth:"fit-content"},children:"Start now"})]})]}),p.jsx("div",{style:{display:"none"},children:p.jsxs(Ce,{variant:"caption",color:"text.secondary",sx:{textAlign:"center"},children:['By clicking "Start now" you agree to our ',p.jsx(vn,{href:"#",color:"primary",children:"Terms & Conditions"}),"."]})})]}),p.jsx("div",{style:{display:"none"},children:p.jsx(wQ,{id:"image"})})]})})}const SQ=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628e8573c43893fe0ace_Sydney-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d520d0517ae8e8ddf13_Bern-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f46794c159024c1af6d44_Montreal-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e891fa22f89efd7477a_TerraLight.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a09d1f6337b1dfed14ab_colorado-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5caa77bf7d69fb78792e_Ankara-white.svg"],kQ=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628889c3bdf1129952dc_Sydney-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d4d8b829a89976a419c_Bern-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f467502f091ccb929529d_Montreal-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e911fa22f2203d7514c_TerraDark.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a0990f3717787fd49245_colorado-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5ca4e548b0deb1041c33_Ankara-black.svg"],PQ={width:"100px",height:"80px",margin:"0 32px",opacity:.7};function MQ(){const t=ul().palette.mode==="light"?kQ:SQ;return p.jsx("div",{style:{display:"none"},children:p.jsxs(Ne,{id:"logoCollection",sx:{py:4},children:[p.jsx(Ce,{component:"p",variant:"subtitle2",align:"center",sx:{color:"text.secondary"},children:"Trusted by the best companies"}),p.jsx(cr,{container:!0,sx:{justifyContent:"center",mt:.5,opacity:.6},children:t.map((n,r)=>p.jsx(cr,{item:!0,children:p.jsx("img",{src:n,alt:`Fake company number ${r+1}`,style:PQ})},r))})]})})}const IQ=De(p.jsx("path",{d:"m20.45 6 .49-1.06L22 4.45c.39-.18.39-.73 0-.91l-1.06-.49L20.45 2c-.18-.39-.73-.39-.91 0l-.49 1.06-1.05.49c-.39.18-.39.73 0 .91l1.06.49.49 1.05c.17.39.73.39.9 0M8.95 6l.49-1.06 1.06-.49c.39-.18.39-.73 0-.91l-1.06-.48L8.95 2c-.17-.39-.73-.39-.9 0l-.49 1.06-1.06.49c-.39.18-.39.73 0 .91l1.06.49L8.05 6c.17.39.73.39.9 0m10.6 7.5-.49 1.06-1.06.49c-.39.18-.39.73 0 .91l1.06.49.49 1.06c.18.39.73.39.91 0l.49-1.06 1.05-.5c.39-.18.39-.73 0-.91l-1.06-.49-.49-1.06c-.17-.38-.73-.38-.9.01m-1.84-4.38-2.83-2.83a.996.996 0 0 0-1.41 0L2.29 17.46c-.39.39-.39 1.02 0 1.41l2.83 2.83c.39.39 1.02.39 1.41 0L17.7 10.53c.4-.38.4-1.02.01-1.41m-3.5 2.09L12.8 9.8l1.38-1.38 1.41 1.41z"}),"AutoFixHighRounded"),EQ=De(p.jsx("path",{d:"m20.99 17.99-4.94-4.94-2.12 2.12 4.94 4.94c.59.59 1.54.59 2.12 0s.58-1.54 0-2.12M17.65 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41-1.93 0-3.5 1.57-3.5 3.5 0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78c.39-.39.39-1.02 0-1.41l-.71-.71 2.12-2.12c-1.17-1.17-3.07-1.17-4.24 0L5.08 6.32c-.39.39-.39 1.02 0 1.41l.71.71H3.25c-.19 0-.37.07-.5.21-.28.28-.28.72 0 1l2.54 2.54c.28.28.72.28 1 0 .13-.13.21-.31.21-.5V9.15l.7.7c.39.39 1.02.39 1.41 0l1.78 1.78-6.35 6.35c-.59.59-.59 1.54 0 2.12.59.59 1.54.59 2.12 0L16.48 9.79c.37.13.76.21 1.17.21"}),"ConstructionRounded"),TQ=De(p.jsx("path",{d:"M19.88 18.47c.48-.77.75-1.67.69-2.66-.13-2.15-1.84-3.97-3.97-4.2-2.72-.3-5.02 1.81-5.02 4.47 0 2.49 2.01 4.5 4.49 4.5.88 0 1.7-.26 2.39-.7l2.41 2.41c.39.39 1.03.39 1.42 0s.39-1.03 0-1.42zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.08 5.01c-.36.58-1.17.64-1.61.13l-2.12-2.47-3.06 4.9c-.31.49-.97.62-1.44.28-.42-.31-.54-.89-.26-1.34l3.78-6.05c.36-.57 1.17-.63 1.61-.12L9 12.5l3.18-5.17c.38-.62 1.28-.64 1.68-.03zm2.59.5c-.64-.28-1.33-.45-2.05-.49L20.8 2.9c.31-.49.97-.61 1.43-.27.43.31.54.9.26 1.34z"}),"QueryStatsRounded"),RQ=De(p.jsx("path",{d:"m18.04 7.99-.63-1.4-1.4-.63c-.39-.18-.39-.73 0-.91l1.4-.63.63-1.4c.18-.39.73-.39.91 0l.63 1.4 1.4.63c.39.18.39.73 0 .91l-1.4.63-.63 1.4c-.17.39-.73.39-.91 0m3.24 4.73-.32-.72c-.18-.39-.73-.39-.91 0l-.32.72-.73.32c-.39.18-.39.73 0 .91l.72.32.32.73c.18.39.73.39.91 0l.32-.72.73-.32c.39-.18.39-.73 0-.91zm-5.04 1.65 1.23.93c.4.3.51.86.26 1.3l-1.62 2.8c-.25.44-.79.62-1.25.42l-1.43-.6c-.2.13-.42.26-.64.37l-.19 1.54c-.06.5-.49.88-.99.88H8.38c-.5 0-.93-.38-.99-.88l-.19-1.54c-.22-.11-.43-.23-.64-.37l-1.43.6c-.46.2-1 .02-1.25-.42l-1.62-2.8c-.25-.44-.14-.99.26-1.3l1.23-.93V14c0-.12 0-.25.01-.37l-1.23-.93c-.4-.3-.51-.86-.26-1.3l1.62-2.8c.25-.44.79-.62 1.25-.42l1.43.6c.2-.13.42-.26.64-.37l.19-1.54c.05-.49.48-.87.98-.87h3.23c.5 0 .93.38.99.88l.19 1.54c.22.11.43.23.64.37l1.43-.6c.46-.2 1-.02 1.25.42l1.62 2.8c.25.44.14.99-.26 1.3l-1.23.93c.01.12.01.24.01.37s0 .24-.01.36M13 14c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3"}),"SettingsSuggestRounded"),DQ=De([p.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2 .55 0 1-.45 1-1v-4.81c0-3.83 2.95-7.18 6.78-7.29 3.96-.12 7.22 3.06 7.22 7V19h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),p.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),p.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),p.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")],"SupportAgentRounded"),$Q=De(p.jsx("path",{d:"M13.12 2.06 7.58 7.6c-.37.37-.58.88-.58 1.41V19c0 1.1.9 2 2 2h9c.8 0 1.52-.48 1.84-1.21l3.26-7.61C23.94 10.2 22.49 8 20.34 8h-5.65l.95-4.58c.1-.5-.05-1.01-.41-1.37-.59-.58-1.53-.58-2.11.01M3 21c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2s-2 .9-2 2v8c0 1.1.9 2 2 2"}),"ThumbUpAltRounded"),AQ=[{icon:p.jsx(RQ,{}),title:"Adaptable performance",description:"Our product effortlessly adjusts to your needs, boosting efficiency and simplifying your tasks."},{icon:p.jsx(EQ,{}),title:"Built to last",description:"Experience unmatched durability that goes above and beyond with lasting investment."},{icon:p.jsx($Q,{}),title:"Great user experience",description:"Integrate our product into your routine with an intuitive and easy-to-use interface."},{icon:p.jsx(IQ,{}),title:"Innovative functionality",description:"Stay ahead with features that set new standards, addressing your evolving needs better than the rest."},{icon:p.jsx(DQ,{}),title:"Reliable support",description:"Count on our responsive customer support, offering assistance that goes beyond the purchase."},{icon:p.jsx(TQ,{}),title:"Precision in every detail",description:"Enjoy a meticulously crafted product where small touches make a significant impact on your overall experience."}];function OQ(){return p.jsx(Ne,{id:"highlights",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},color:"white",bgcolor:"grey.900"},children:p.jsxs(Jo,{sx:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(Ne,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(Ce,{component:"h2",variant:"h4",gutterBottom:!0,children:"Highlights"}),p.jsx(Ce,{variant:"body1",sx:{color:"grey.400"},children:"Explore why our product stands out: adaptability, durability, user-friendly design, and innovation. Enjoy reliable customer support and precision in every detail."})]}),p.jsx(mn,{container:!0,spacing:2,children:AQ.map((e,t)=>p.jsx(mn,{size:{xs:12,sm:6,md:4},children:p.jsxs(Ja,{direction:"column",component:aa,spacing:1,useFlexGap:!0,sx:{color:"inherit",p:3,height:"100%",borderColor:"hsla(220, 25%, 25%, 0.3)",backgroundColor:"grey.800"},children:[p.jsx(Ne,{sx:{opacity:"50%"},children:e.icon}),p.jsxs("div",{children:[p.jsx(Ce,{gutterBottom:!0,sx:{fontWeight:"medium"},children:e.title}),p.jsx(Ce,{variant:"body2",sx:{color:"grey.400"},children:e.description})]})]})},t))})]})})}const jQ=De(p.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),FQ=De(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded"),LQ=[{title:"Free",price:"0",description:["10 users included","2 GB of storage","Help center access","Email support"],buttonText:"Sign up for free",buttonVariant:"outlined",buttonColor:"primary"},{title:"Professional",subheader:"Recommended",price:"15",description:["20 users included","10 GB of storage","Help center access","Priority email support","Dedicated team","Best deals"],buttonText:"Start now",buttonVariant:"contained",buttonColor:"secondary"},{title:"Enterprise",price:"30",description:["50 users included","30 GB of storage","Help center access","Phone & email support"],buttonText:"Contact us",buttonVariant:"outlined",buttonColor:"primary"}];function _Q(){return p.jsxs(Jo,{id:"pricing",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(Ne,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(Ce,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Pricing"}),p.jsxs(Ce,{variant:"body1",sx:{color:"text.secondary"},children:["Request collaboration by sending an email to ",p.jsx("br",{}),"abc@zyc.com"]})]}),p.jsx("div",{style:{display:"none"},children:p.jsx(mn,{container:!0,spacing:3,sx:{alignItems:"center",justifyContent:"center",width:"100%"},children:LQ.map(e=>p.jsx(mn,{size:{xs:12,sm:e.title==="Enterprise"?12:6,md:4},children:p.jsxs(aa,{sx:[{p:2,display:"flex",flexDirection:"column",gap:4},e.title==="Professional"&&(t=>({border:"none",background:"radial-gradient(circle at 50% 0%, hsl(220, 20%, 35%), hsl(220, 30%, 6%))",boxShadow:"0 8px 12px hsla(220, 20%, 42%, 0.2)",...t.applyStyles("dark",{background:"radial-gradient(circle at 50% 0%, hsl(220, 20%, 20%), hsl(220, 30%, 16%))",boxShadow:"0 8px 12px hsla(0, 0%, 0%, 0.8)"})}))],children:[p.jsxs(iC,{children:[p.jsxs(Ne,{sx:[{mb:1,display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},e.title==="Professional"?{color:"grey.100"}:{color:""}],children:[p.jsx(Ce,{component:"h3",variant:"h6",children:e.title}),e.title==="Professional"&&p.jsx(ms,{icon:p.jsx(jQ,{}),label:e.subheader})]}),p.jsxs(Ne,{sx:[{display:"flex",alignItems:"baseline"},e.title==="Professional"?{color:"grey.50"}:{color:null}],children:[p.jsxs(Ce,{component:"h3",variant:"h2",children:["$",e.price]}),p.jsx(Ce,{component:"h3",variant:"h6",children:"  per month"})]}),p.jsx(dn,{sx:{my:2,opacity:.8,borderColor:"divider"}}),e.description.map(t=>p.jsxs(Ne,{sx:{py:1,display:"flex",gap:1.5,alignItems:"center"},children:[p.jsx(FQ,{sx:[{width:20},e.title==="Professional"?{color:"primary.light"}:{color:"primary.main"}]}),p.jsx(Ce,{variant:"subtitle2",component:"span",sx:[e.title==="Professional"?{color:"grey.50"}:{color:null}],children:t})]},t))]}),p.jsx(QG,{children:p.jsx(rt,{fullWidth:!0,variant:e.buttonVariant,color:e.buttonColor,children:e.buttonText})})]})},e.title))})})]})}const NQ=De(p.jsx("path",{d:"M4 7c0-.55.45-1 1-1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-1.1 0-2 .9-2 2v11h-.5c-.83 0-1.5.67-1.5 1.5S.67 20 1.5 20H14v-3H4zm19 1h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"DevicesRounded"),zQ=De(p.jsx("path",{d:"M4 7c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1m-3 3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1v-5c0-.55.45-1 1-1m22-3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1m-3 3c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1v-5c0-.55.45-1 1-1m-4-7.99L8 2c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V4c0-1.1-.9-1.99-2-1.99M16 17H8V7h8z"}),"EdgesensorHighRounded"),BQ=De(p.jsx("path",{d:"M21 6v4.5c0 .55-.45 1-1 1h-9.67c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1H20c.55 0 1 .45 1 1m-6.33 12v-4.5c0-.55-.45-1-1-1h-3.33c-.55 0-1 .45-1 1V18c0 .55.45 1 1 1h3.33c.55 0 1-.45 1-1m1-4.5V18c0 .55.45 1 1 1H20c.55 0 1-.45 1-1v-4.5c0-.55-.45-1-1-1h-3.33c-.56 0-1 .45-1 1M8.33 18V6c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3.33c.56 0 1-.45 1-1"}),"ViewQuiltRounded"),gs=[{icon:p.jsx(BQ,{}),title:"Dashboard",description:"This item could provide a snapshot of the most important metrics or data points related to the product.",imageLight:'url("https://mui.com/static/images/templates/templates-images/dash-light.png")',imageDark:`url("https://mui.com'/static/images/templates/templates-images/dash-dark.png")`},{icon:p.jsx(zQ,{}),title:"Mobile integration",description:"This item could provide information about the mobile app version of the product.",imageLight:'url("https://mui.com/static/images/templates/templates-images/mobile-light.png")',imageDark:'url("https://mui.com/static/images/templates/templates-images/mobile-dark.png")'},{icon:p.jsx(NQ,{}),title:"Available on all platforms",description:"This item could let users know the product is available on all platforms, such as web, mobile, and desktop.",imageLight:'url("https://mui.com/static/images/templates/templates-images/devices-light.png")',imageDark:'url("https://mui.com/static/images/templates/templates-images/devices-dark.png")'}],HQ=Q(ms)(({theme:e})=>({variants:[{props:({selected:t})=>t,style:{background:"linear-gradient(to bottom right, hsl(210, 98%, 48%), hsl(210, 98%, 35%))",color:"hsl(0, 0%, 100%)",borderColor:e.palette.primary.light,"& .MuiChip-label":{color:"hsl(0, 0%, 100%)"},...e.applyStyles("dark",{borderColor:e.palette.primary.dark})}}]}));function VQ({selectedItemIndex:e,handleItemClick:t,selectedFeature:n}){return gs[e]?p.jsxs(Ne,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"column",gap:2},children:[p.jsx(Ne,{sx:{display:"flex",gap:2,overflow:"auto"},children:gs.map(({title:r},o)=>p.jsx(HQ,{size:"medium",label:r,onClick:()=>t(o),selected:e===o},o))}),p.jsxs(aa,{variant:"outlined",children:[p.jsx(Ne,{sx:r=>({mb:2,backgroundSize:"cover",backgroundPosition:"center",minHeight:280,backgroundImage:"var(--items-imageLight)",...r.applyStyles("dark",{backgroundImage:"var(--items-imageDark)"})}),style:gs[e]?{"--items-imageLight":gs[e].imageLight,"--items-imageDark":gs[e].imageDark}:{}}),p.jsxs(Ne,{sx:{px:2,pb:2},children:[p.jsx(Ce,{gutterBottom:!0,sx:{color:"text.primary",fontWeight:"medium"},children:n.title}),p.jsx(Ce,{variant:"body2",sx:{color:"text.secondary",mb:1.5},children:n.description})]})]})]}):null}function UQ(){const[e,t]=h.useState(0),n=o=>{t(o)},r=gs[e];return p.jsxs(Jo,{id:"features",sx:{py:{xs:8,sm:16}},children:[p.jsxs(Ne,{sx:{width:{sm:"100%",md:"60%"}},children:[p.jsx(Ce,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Product features"}),p.jsx(Ce,{variant:"body1",sx:{color:"text.secondary",mb:{xs:2,sm:4}},children:"Provide a brief overview of the key features of the product. For example, you could list the number of features, their types or benefits, and add-ons."})]}),p.jsxs(Ne,{sx:{display:"flex",flexDirection:{xs:"column",md:"row-reverse"},gap:2},children:[p.jsxs("div",{children:[p.jsx(Ne,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:2,height:"100%"},children:gs.map(({icon:o,title:s,description:i},a)=>p.jsx(Ne,{component:rt,onClick:()=>n(a),sx:[l=>({p:2,height:"100%",width:"100%","&:hover":{backgroundColor:l.palette.action.hover}}),e===a&&{backgroundColor:"action.selected"}],children:p.jsxs(Ne,{sx:[{width:"100%",display:"flex",flexDirection:"column",alignItems:"left",gap:1,textAlign:"left",textTransform:"none",color:"text.secondary"},e===a&&{color:"text.primary"}],children:[o,p.jsx(Ce,{variant:"h6",children:s}),p.jsx(Ce,{variant:"body2",children:i})]})},a))}),p.jsx(VQ,{selectedItemIndex:e,handleItemClick:n,selectedFeature:r})]}),p.jsx(Ne,{sx:{display:{xs:"none",sm:"flex"},width:{xs:"100%",md:"70%"},height:"var(--items-image-height)"},children:p.jsx(aa,{variant:"outlined",sx:{height:"100%",width:"100%",display:{xs:"none",sm:"flex"},pointerEvents:"none"},children:p.jsx(Ne,{sx:o=>({m:"auto",width:420,height:500,backgroundSize:"contain",backgroundImage:"var(--items-imageLight)",...o.applyStyles("dark",{backgroundImage:"var(--items-imageDark)"})}),style:gs[e]?{"--items-imageLight":gs[e].imageLight,"--items-imageDark":gs[e].imageDark}:{}})})})]})]})}const WQ=[{avatar:p.jsx(Ns,{alt:"Remy Sharp",src:"/static/images/avatar/1.jpg"}),name:"Remy Sharp",occupation:"Senior Engineer",testimonial:"I absolutely love how versatile this product is! Whether I'm tackling work projects or indulging in my favorite hobbies, it seamlessly adapts to my changing needs. Its intuitive design has truly enhanced my daily routine, making tasks more efficient and enjoyable."},{avatar:p.jsx(Ns,{alt:"Travis Howard",src:"/static/images/avatar/2.jpg"}),name:"Travis Howard",occupation:"Lead Product Designer",testimonial:"One of the standout features of this product is the exceptional customer support. In my experience, the team behind this product has been quick to respond and incredibly helpful. It's reassuring to know that they stand firmly behind their product."},{avatar:p.jsx(Ns,{alt:"Cindy Baker",src:"/static/images/avatar/3.jpg"}),name:"Cindy Baker",occupation:"CTO",testimonial:"The level of simplicity and user-friendliness in this product has significantly simplified my life. I appreciate the creators for delivering a solution that not only meets but exceeds user expectations."},{avatar:p.jsx(Ns,{alt:"Remy Sharp",src:"/static/images/avatar/4.jpg"}),name:"Julia Stewart",occupation:"Senior Engineer",testimonial:"I appreciate the attention to detail in the design of this product. The small touches make a big difference, and it's evident that the creators focused on delivering a premium experience."},{avatar:p.jsx(Ns,{alt:"Travis Howard",src:"/static/images/avatar/5.jpg"}),name:"John Smith",occupation:"Product Designer",testimonial:"I've tried other similar products, but this one stands out for its innovative features. It's clear that the makers put a lot of thought into creating a solution that truly addresses user needs."},{avatar:p.jsx(Ns,{alt:"Cindy Baker",src:"/static/images/avatar/6.jpg"}),name:"Daniel Wolf",occupation:"CDO",testimonial:"The quality of this product exceeded my expectations. It's durable, well-designed, and built to last. Definitely worth the investment!"}],GQ=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628e8573c43893fe0ace_Sydney-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d520d0517ae8e8ddf13_Bern-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f46794c159024c1af6d44_Montreal-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e891fa22f89efd7477a_TerraLight.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a09d1f6337b1dfed14ab_colorado-white.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5caa77bf7d69fb78792e_Ankara-white.svg"],KQ=["https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560628889c3bdf1129952dc_Sydney-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f4d4d8b829a89976a419c_Bern-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f467502f091ccb929529d_Montreal-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/61f12e911fa22f2203d7514c_TerraDark.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/6560a0990f3717787fd49245_colorado-black.svg","https://assets-global.website-files.com/61ed56ae9da9fd7e0ef0a967/655f5ca4e548b0deb1041c33_Ankara-black.svg"],YQ={width:"64px",opacity:.3};function qQ(){const t=ul().palette.mode==="light"?KQ:GQ;return p.jsx("div",{style:{display:"none"},children:p.jsxs(Jo,{id:"testimonials",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsxs(Ne,{sx:{width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:[p.jsx(Ce,{component:"h2",variant:"h4",gutterBottom:!0,sx:{color:"text.primary"},children:"Testimonials"}),p.jsx(Ce,{variant:"body1",sx:{color:"text.secondary"},children:"See what our customers love about our products. Discover how we excel in efficiency, durability, and satisfaction. Join us for quality, innovation, and reliable support."})]}),p.jsx(mn,{container:!0,spacing:2,children:WQ.map((n,r)=>p.jsx(mn,{size:{xs:12,sm:6,md:4},sx:{display:"flex"},children:p.jsxs(aa,{variant:"outlined",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",flexGrow:1},children:[p.jsx(iC,{children:p.jsx(Ce,{variant:"body1",gutterBottom:!0,sx:{color:"text.secondary"},children:n.testimonial})}),p.jsxs(Ne,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[p.jsx(aK,{avatar:n.avatar,title:n.name,subheader:n.occupation}),p.jsx("img",{src:t[r],alt:`Logo ${r+1}`,style:YQ})]})]})},r))})]})})}const fh=De(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function XQ(){const[e,t]=h.useState([]),n=r=>(o,s)=>{t(s?[...e,r]:e.filter(i=>i!==r))};return p.jsxs(Jo,{id:"faq",sx:{pt:{xs:4,sm:12},pb:{xs:8,sm:16},position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:3,sm:6}},children:[p.jsx(Ce,{component:"h2",variant:"h4",sx:{color:"text.primary",width:{sm:"100%",md:"60%"},textAlign:{sm:"left",md:"center"}},children:"Frequently asked questions"}),p.jsxs(Ne,{sx:{width:"100%"},children:[p.jsxs(sh,{expanded:e.includes("panel1"),onChange:n("panel1"),children:[p.jsx(ah,{expandIcon:p.jsx(fh,{}),"aria-controls":"panel1d-content",id:"panel1d-header",children:p.jsx(Ce,{component:"h3",variant:"subtitle2",children:"How do I contact customer support if I have a question or issue?"})}),p.jsx(ih,{children:p.jsxs(Ce,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:["You can reach our customer support team by emailing ",p.jsx(vn,{href:"mailto:support@email.com",children:"support@email.com"})," or calling our toll-free number. We're here to assist you promptly."]})})]}),p.jsxs(sh,{expanded:e.includes("panel2"),onChange:n("panel2"),children:[p.jsx(ah,{expandIcon:p.jsx(fh,{}),"aria-controls":"panel2d-content",id:"panel2d-header",children:p.jsx(Ce,{component:"h3",variant:"subtitle2",children:"Can I return the product if it doesn't meet my expectations?"})}),p.jsx(ih,{children:p.jsx(Ce,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Absolutely! We offer a hassle-free return policy. If you're not completely satisfied, you can return the product within [number of days] days for a full refund or exchange."})})]}),p.jsxs(sh,{expanded:e.includes("panel3"),onChange:n("panel3"),children:[p.jsx(ah,{expandIcon:p.jsx(fh,{}),"aria-controls":"panel3d-content",id:"panel3d-header",children:p.jsx(Ce,{component:"h3",variant:"subtitle2",children:"What makes your product stand out from others in the market?"})}),p.jsx(ih,{children:p.jsx(Ce,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Our product distinguishes itself through its adaptability, durability, and innovative features. We prioritize user satisfaction and continually strive to exceed expectations in every aspect."})})]}),p.jsxs(sh,{expanded:e.includes("panel4"),onChange:n("panel4"),children:[p.jsx(ah,{expandIcon:p.jsx(fh,{}),"aria-controls":"panel4d-content",id:"panel4d-header",children:p.jsx(Ce,{component:"h3",variant:"subtitle2",children:"Is there a warranty on the product, and what does it cover?"})}),p.jsx(ih,{children:p.jsx(Ce,{variant:"body2",gutterBottom:!0,sx:{maxWidth:{sm:"100%",md:"70%"}},children:"Yes, our product comes with a [length of warranty] warranty. It covers defects in materials and workmanship. If you encounter any issues covered by the warranty, please contact our customer support for assistance."})})]})]})]})}const QQ=De(p.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),ZQ=De(p.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),JQ=De(p.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");function eZ(){return p.jsxs(Ce,{variant:"body2",sx:{color:"text.secondary",mt:1},children:["Copyright © ",p.jsx(vn,{color:"text.secondary",href:"https://sanjeevini.me/",children:"Sanjeevini"})," ",new Date().getFullYear()]})}function tZ(){return p.jsxs(Jo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:4,sm:8},py:{xs:8,sm:10},textAlign:{sm:"center",md:"left"}},children:[p.jsx("div",{style:{display:"none"},children:p.jsxs(Ne,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},width:"100%",justifyContent:"space-between"},children:[p.jsx(Ne,{sx:{display:"flex",flexDirection:"column",gap:4,minWidth:{xs:"100%",sm:"60%"}},children:p.jsxs(Ne,{sx:{width:{xs:"100%",sm:"60%"}},children:[p.jsx(ZD,{}),p.jsx(Ce,{variant:"body2",gutterBottom:!0,sx:{fontWeight:600,mt:2},children:"Join the newsletter"}),p.jsx(Ce,{variant:"body2",sx:{color:"text.secondary",mb:2},children:"Subscribe for weekly updates. No spams ever!"}),p.jsx(rp,{htmlFor:"email-newsletter",children:"Email"}),p.jsxs(Ja,{direction:"row",spacing:1,useFlexGap:!0,children:[p.jsx(qo,{id:"email-newsletter",hiddenLabel:!0,size:"small",variant:"outlined",fullWidth:!0,"aria-label":"Enter your email address",placeholder:"Your email address",slotProps:{htmlInput:{autoComplete:"off","aria-label":"Enter your email address"}},sx:{width:"250px"}}),p.jsx(rt,{variant:"contained",color:"primary",size:"small",sx:{flexShrink:0},children:"Subscribe"})]})]})}),p.jsxs(Ne,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(Ce,{variant:"body2",sx:{fontWeight:"medium"},children:"Product"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Features"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Testimonials"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Highlights"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Pricing"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"FAQs"})]}),p.jsxs(Ne,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(Ce,{variant:"body2",sx:{fontWeight:"medium"},children:"Company"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"About us"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Careers"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Press"})]}),p.jsxs(Ne,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"column",gap:1},children:[p.jsx(Ce,{variant:"body2",sx:{fontWeight:"medium"},children:"Legal"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Terms"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"https://slabstech.com/site/privacy/",children:"Privacy"}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Contact"})]})]})}),p.jsxs(Ne,{sx:{display:"flex",justifyContent:"space-between",pt:{xs:4,sm:8},width:"100%",borderTop:"1px solid",borderColor:"divider"},children:[p.jsxs("div",{children:[p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Privacy Policy"}),p.jsx(Ce,{sx:{display:"inline",mx:.5,opacity:.5},children:" • "}),p.jsx(vn,{color:"text.secondary",variant:"body2",href:"#",children:"Terms of Service"}),p.jsx(eZ,{})]}),p.jsxs(Ja,{direction:"row",spacing:1,useFlexGap:!0,sx:{justifyContent:"left",color:"text.secondary"},children:[p.jsx(wn,{color:"inherit",size:"small",href:"https://github.com/slabstech","aria-label":"GitHub",sx:{alignSelf:"center"},children:p.jsx(QQ,{})}),p.jsx(wn,{color:"inherit",size:"small",href:"https://x.com/try_sanjeevini","aria-label":"X",sx:{alignSelf:"center"},children:p.jsx(JQ,{})}),p.jsx(wn,{color:"inherit",size:"small",href:"https://in.linkedin.com/company/slabstech","aria-label":"LinkedIn",sx:{alignSelf:"center"},children:p.jsx(ZQ,{})})]})]})]})}const nZ=De(p.jsx("path",{d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlankRounded"),rZ=De(p.jsx("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded"),oZ=De(p.jsx("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"}),"RemoveRounded"),Rr=ep();[...Rr.shadows];const Ke={50:"hsl(210, 100%, 95%)",100:"hsl(210, 100%, 92%)",200:"hsl(210, 100%, 80%)",300:"hsl(210, 100%, 65%)",400:"hsl(210, 98%, 48%)",500:"hsl(210, 98%, 42%)",600:"hsl(210, 98%, 55%)",700:"hsl(210, 100%, 35%)",900:"hsl(210, 100%, 21%)"},Pe={50:"hsl(220, 35%, 97%)",100:"hsl(220, 30%, 94%)",200:"hsl(220, 20%, 88%)",300:"hsl(220, 20%, 80%)",400:"hsl(220, 20%, 65%)",500:"hsl(220, 20%, 42%)",600:"hsl(220, 20%, 35%)",700:"hsl(220, 20%, 25%)",800:"hsl(220, 30%, 6%)",900:"hsl(220, 35%, 3%)"},ur={50:"hsl(120, 80%, 98%)",200:"hsl(120, 75%, 87%)",300:"hsl(120, 61%, 77%)",400:"hsl(120, 44%, 53%)",500:"hsl(120, 59%, 30%)",700:"hsl(120, 75%, 16%)",800:"hsl(120, 84%, 10%)",900:"hsl(120, 87%, 6%)"},ao={100:"hsl(45, 92%, 90%)",300:"hsl(45, 90%, 65%)",400:"hsl(45, 90%, 40%)",500:"hsl(45, 90%, 35%)",700:"hsl(45, 94%, 20%)",800:"hsl(45, 95%, 16%)",900:"hsl(45, 93%, 12%)"},dr={50:"hsl(0, 100%, 97%)",100:"hsl(0, 92%, 90%)",200:"hsl(0, 94%, 80%)",300:"hsl(0, 90%, 65%)",400:"hsl(0, 90%, 40%)",500:"hsl(0, 90%, 30%)",700:"hsl(0, 94%, 18%)",800:"hsl(0, 95%, 12%)",900:"hsl(0, 93%, 6%)"},sZ={light:{palette:{primary:{light:Ke[200],main:Ke[400],dark:Ke[700],contrastText:Ke[50]},info:{light:Ke[100],main:Ke[300],dark:Ke[600],contrastText:Pe[50]},warning:{light:ao[300],main:ao[400],dark:ao[800]},error:{light:dr[300],main:dr[400],dark:dr[800]},success:{light:ur[300],main:ur[400],dark:ur[800]},grey:{...Pe},divider:be(Pe[300],.4),background:{default:"hsl(0, 0%, 99%)",paper:"hsl(220, 35%, 97%)"},text:{primary:Pe[800],secondary:Pe[600],warning:ao[400]},action:{hover:be(Pe[200],.2),selected:`${be(Pe[200],.3)}`},baseShadow:"hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px"}},dark:{palette:{primary:{contrastText:Ke[50],light:Ke[300],main:Ke[400],dark:Ke[700]},info:{contrastText:Ke[300],light:Ke[500],main:Ke[700],dark:Ke[900]},warning:{light:ao[400],main:ao[500],dark:ao[700]},error:{light:dr[400],main:dr[500],dark:dr[700]},success:{light:ur[400],main:ur[500],dark:ur[700]},grey:{...Pe},divider:be(Pe[700],.6),background:{default:Pe[900],paper:"hsl(220, 30%, 7%)"},text:{primary:"hsl(0, 0%, 100%)",secondary:Pe[400]},action:{hover:be(Pe[600],.2),selected:be(Pe[600],.3)},baseShadow:"hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"}}},iZ={fontFamily:"Inter, sans-serif",h1:{fontSize:Rr.typography.pxToRem(48),fontWeight:600,lineHeight:1.2,letterSpacing:-.5},h2:{fontSize:Rr.typography.pxToRem(36),fontWeight:600,lineHeight:1.2},h3:{fontSize:Rr.typography.pxToRem(30),lineHeight:1.2},h4:{fontSize:Rr.typography.pxToRem(24),fontWeight:600,lineHeight:1.5},h5:{fontSize:Rr.typography.pxToRem(20),fontWeight:600},h6:{fontSize:Rr.typography.pxToRem(18),fontWeight:600},subtitle1:{fontSize:Rr.typography.pxToRem(18)},subtitle2:{fontSize:Rr.typography.pxToRem(14),fontWeight:500},body1:{fontSize:Rr.typography.pxToRem(14)},body2:{fontSize:Rr.typography.pxToRem(14),fontWeight:400},caption:{fontSize:Rr.typography.pxToRem(12),fontWeight:400}},aZ={borderRadius:8},lZ=["none","var(--template-palette-baseShadow)",...Rr.shadows.slice(2)],cZ=lZ,uZ={MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0},styleOverrides:{root:({theme:e})=>({boxSizing:"border-box",transition:"all 100ms ease-in","&:focus-visible":{outline:`3px solid ${be(e.palette.primary.main,.5)}`,outlineOffset:"2px"}})}},MuiButton:{styleOverrides:{root:({theme:e})=>({boxShadow:"none",borderRadius:e.shape.borderRadius,textTransform:"none",variants:[{props:{size:"small"},style:{height:"2.25rem",padding:"8px 12px"}},{props:{size:"medium"},style:{height:"2.5rem"}},{props:{color:"primary",variant:"contained"},style:{color:"white",backgroundColor:Pe[900],backgroundImage:`linear-gradient(to bottom, ${Pe[700]}, ${Pe[800]})`,boxShadow:`inset 0 1px 0 ${Pe[600]}, inset 0 -1px 0 1px hsl(220, 0%, 0%)`,border:`1px solid ${Pe[700]}`,"&:hover":{backgroundImage:"none",backgroundColor:Pe[700],boxShadow:"none"},"&:active":{backgroundColor:Pe[800]},...e.applyStyles("dark",{color:"black",backgroundColor:Pe[50],backgroundImage:`linear-gradient(to bottom, ${Pe[100]}, ${Pe[50]})`,boxShadow:"inset 0 -1px 0 hsl(220, 30%, 80%)",border:`1px solid ${Pe[50]}`,"&:hover":{backgroundImage:"none",backgroundColor:Pe[300],boxShadow:"none"},"&:active":{backgroundColor:Pe[400]}})}},{props:{color:"secondary",variant:"contained"},style:{color:"white",backgroundColor:Ke[300],backgroundImage:`linear-gradient(to bottom, ${be(Ke[400],.8)}, ${Ke[500]})`,boxShadow:`inset 0 2px 0 ${be(Ke[200],.2)}, inset 0 -2px 0 ${be(Ke[700],.4)}`,border:`1px solid ${Ke[500]}`,"&:hover":{backgroundColor:Ke[700],boxShadow:"none"},"&:active":{backgroundColor:Ke[700],backgroundImage:"none"}}},{props:{variant:"outlined"},style:{color:e.palette.text.primary,border:"1px solid",borderColor:Pe[200],backgroundColor:be(Pe[50],.3),"&:hover":{backgroundColor:Pe[100],borderColor:Pe[300]},"&:active":{backgroundColor:Pe[200]},...e.applyStyles("dark",{backgroundColor:Pe[800],borderColor:Pe[700],"&:hover":{backgroundColor:Pe[900],borderColor:Pe[600]},"&:active":{backgroundColor:Pe[900]}})}},{props:{color:"secondary",variant:"outlined"},style:{color:Ke[700],border:"1px solid",borderColor:Ke[200],backgroundColor:Ke[50],"&:hover":{backgroundColor:Ke[100],borderColor:Ke[400]},"&:active":{backgroundColor:be(Ke[200],.7)},...e.applyStyles("dark",{color:Ke[50],border:"1px solid",borderColor:Ke[900],backgroundColor:be(Ke[900],.3),"&:hover":{borderColor:Ke[700],backgroundColor:be(Ke[900],.6)},"&:active":{backgroundColor:be(Ke[900],.5)}})}},{props:{variant:"text"},style:{color:Pe[600],"&:hover":{backgroundColor:Pe[100]},"&:active":{backgroundColor:Pe[200]},...e.applyStyles("dark",{color:Pe[50],"&:hover":{backgroundColor:Pe[700]},"&:active":{backgroundColor:be(Pe[700],.7)}})}},{props:{color:"secondary",variant:"text"},style:{color:Ke[700],"&:hover":{backgroundColor:be(Ke[100],.5)},"&:active":{backgroundColor:be(Ke[200],.7)},...e.applyStyles("dark",{color:Ke[100],"&:hover":{backgroundColor:be(Ke[900],.5)},"&:active":{backgroundColor:be(Ke[900],.3)}})}}]})}},MuiIconButton:{styleOverrides:{root:({theme:e})=>({boxShadow:"none",borderRadius:e.shape.borderRadius,textTransform:"none",fontWeight:e.typography.fontWeightMedium,letterSpacing:0,color:e.palette.text.primary,border:"1px solid ",borderColor:Pe[200],backgroundColor:be(Pe[50],.3),"&:hover":{backgroundColor:Pe[100],borderColor:Pe[300]},"&:active":{backgroundColor:Pe[200]},...e.applyStyles("dark",{backgroundColor:Pe[800],borderColor:Pe[700],"&:hover":{backgroundColor:Pe[900],borderColor:Pe[600]},"&:active":{backgroundColor:Pe[900]}}),variants:[{props:{size:"small"},style:{width:"2.25rem",height:"2.25rem",padding:"0.25rem",[`& .${qh.root}`]:{fontSize:"1rem"}}},{props:{size:"medium"},style:{width:"2.5rem",height:"2.5rem"}}]})}},MuiToggleButtonGroup:{styleOverrides:{root:({theme:e})=>({borderRadius:"10px",boxShadow:`0 4px 16px ${be(Pe[400],.2)}`,[`& .${_P.selected}`]:{color:Ke[500]},...e.applyStyles("dark",{[`& .${_P.selected}`]:{color:"#fff"},boxShadow:`0 4px 16px ${be(Ke[700],.5)}`})})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({padding:"12px 16px",textTransform:"none",borderRadius:"10px",fontWeight:500,...e.applyStyles("dark",{color:Pe[400],boxShadow:"0 4px 16px rgba(0, 0, 0, 0.5)",[`&.${Hq.selected}`]:{color:Ke[300]}})})}},MuiCheckbox:{defaultProps:{disableRipple:!0,icon:p.jsx(nZ,{sx:{color:"hsla(210, 0%, 0%, 0.0)"}}),checkedIcon:p.jsx(rZ,{sx:{height:14,width:14}}),indeterminateIcon:p.jsx(oZ,{sx:{height:14,width:14}})},styleOverrides:{root:({theme:e})=>({margin:10,height:16,width:16,borderRadius:5,border:"1px solid ",borderColor:be(Pe[300],.8),boxShadow:"0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",backgroundColor:be(Pe[100],.4),transition:"border-color, background-color, 120ms ease-in","&:hover":{borderColor:Ke[300]},"&.Mui-focusVisible":{outline:`3px solid ${be(Ke[500],.5)}`,outlineOffset:"2px",borderColor:Ke[400]},"&.Mui-checked":{color:"white",backgroundColor:Ke[500],borderColor:Ke[500],boxShadow:"none","&:hover":{backgroundColor:Ke[600]}},...e.applyStyles("dark",{borderColor:be(Pe[700],.8),boxShadow:"0 0 0 1.5px hsl(210, 0%, 0%) inset",backgroundColor:be(Pe[900],.8),"&:hover":{borderColor:Ke[300]},"&.Mui-focusVisible":{borderColor:Ke[400],outline:`3px solid ${be(Ke[500],.5)}`,outlineOffset:"2px"}})})}},MuiInputBase:{styleOverrides:{root:{border:"none"},input:{"&::placeholder":{opacity:.7,color:Pe[500]}}}},MuiOutlinedInput:{styleOverrides:{input:{padding:0},root:({theme:e})=>({padding:"8px 12px",color:e.palette.text.primary,borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.default,transition:"border 120ms ease-in","&:hover":{borderColor:Pe[400]},[`&.${Dr.focused}`]:{outline:`3px solid ${be(Ke[500],.5)}`,borderColor:Ke[400]},...e.applyStyles("dark",{"&:hover":{borderColor:Pe[500]}}),variants:[{props:{size:"small"},style:{height:"2.25rem"}},{props:{size:"medium"},style:{height:"2.5rem"}}]}),notchedOutline:{border:"none"}}},MuiInputAdornment:{styleOverrides:{root:({theme:e})=>({color:e.palette.grey[500],...e.applyStyles("dark",{color:e.palette.grey[400]})})}},MuiFormLabel:{styleOverrides:{root:({theme:e})=>({typography:e.typography.caption,marginBottom:8})}}},dZ={MuiList:{styleOverrides:{root:{padding:"8px",display:"flex",flexDirection:"column",gap:0}}},MuiListItem:{styleOverrides:{root:({theme:e})=>({[`& .${qh.root}`]:{width:"1rem",height:"1rem",color:e.palette.text.secondary},[`& .${vf.root}`]:{fontWeight:500},[`& .${Gw.root}`]:{display:"flex",gap:8,padding:"2px 8px",borderRadius:e.shape.borderRadius,opacity:.7,"&.Mui-selected":{opacity:1,backgroundColor:be(e.palette.action.selected,.3),[`& .${qh.root}`]:{color:e.palette.text.primary},"&:focus-visible":{backgroundColor:be(e.palette.action.selected,.3)},"&:hover":{backgroundColor:be(e.palette.action.selected,.5)}},"&:focus-visible":{backgroundColor:"transparent"}}})}},MuiListItemText:{styleOverrides:{primary:({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:500,lineHeight:e.typography.body2.lineHeight}),secondary:({theme:e})=>({fontSize:e.typography.caption.fontSize,lineHeight:e.typography.caption.lineHeight})}},MuiListSubheader:{styleOverrides:{root:({theme:e})=>({backgroundColor:"transparent",padding:"4px 8px",fontSize:e.typography.caption.fontSize,fontWeight:500,lineHeight:e.typography.caption.lineHeight})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:0}}},MuiChip:{defaultProps:{size:"small"},styleOverrides:{root:({theme:e})=>({border:"1px solid",borderRadius:"999px",[`& .${qe.label}`]:{fontWeight:600},variants:[{props:{color:"default"},style:{borderColor:Pe[200],backgroundColor:Pe[100],[`& .${qe.label}`]:{color:Pe[500]},[`& .${qe.icon}`]:{color:Pe[500]},...e.applyStyles("dark",{borderColor:Pe[700],backgroundColor:Pe[800],[`& .${qe.label}`]:{color:Pe[300]},[`& .${qe.icon}`]:{color:Pe[300]}})}},{props:{color:"success"},style:{borderColor:ur[200],backgroundColor:ur[50],[`& .${qe.label}`]:{color:ur[500]},[`& .${qe.icon}`]:{color:ur[500]},...e.applyStyles("dark",{borderColor:ur[800],backgroundColor:ur[900],[`& .${qe.label}`]:{color:ur[300]},[`& .${qe.icon}`]:{color:ur[300]}})}},{props:{color:"error"},style:{borderColor:dr[100],backgroundColor:dr[50],[`& .${qe.label}`]:{color:dr[500]},[`& .${qe.icon}`]:{color:dr[500]},...e.applyStyles("dark",{borderColor:dr[800],backgroundColor:dr[900],[`& .${qe.label}`]:{color:dr[200]},[`& .${qe.icon}`]:{color:dr[300]}})}},{props:{size:"small"},style:{maxHeight:20,[`& .${qe.label}`]:{fontSize:e.typography.caption.fontSize},[`& .${qh.root}`]:{fontSize:e.typography.caption.fontSize}}},{props:{size:"medium"},style:{[`& .${qe.label}`]:{fontSize:e.typography.caption.fontSize}}}]})}},MuiTablePagination:{styleOverrides:{actions:{display:"flex",gap:8,marginRight:6,[`& .${KD.root}`]:{minWidth:0,width:36,height:36}}}},MuiIcon:{defaultProps:{fontSize:"small"},styleOverrides:{root:{variants:[{props:{fontSize:"small"},style:{fontSize:"1rem"}}]}}}},fZ={MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:10,backgroundColor:ao[100],color:e.palette.text.primary,border:`1px solid ${be(ao[300],.5)}`,"& .MuiAlert-icon":{color:ao[500]},...e.applyStyles("dark",{backgroundColor:`${be(ao[900],.5)}`,border:`1px solid ${be(ao[800],.5)}`})})}},MuiDialog:{styleOverrides:{root:({theme:e})=>({"& .MuiDialog-paper":{borderRadius:"10px",border:"1px solid",borderColor:e.palette.divider}})}},MuiLinearProgress:{styleOverrides:{root:({theme:e})=>({height:8,borderRadius:8,backgroundColor:Pe[200],...e.applyStyles("dark",{backgroundColor:Pe[800]})})}}},pZ=De(p.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 3.7a.996.996 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0zm0 12.34-2.46-2.46a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"UnfoldMoreRounded"),hZ={MuiMenuItem:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"6px 8px",[`&.${Ri.focusVisible}`]:{backgroundColor:"transparent"},[`&.${Ri.selected}`]:{[`&.${Ri.focusVisible}`]:{backgroundColor:be(e.palette.action.selected,.3)}}})}},MuiMenu:{styleOverrides:{list:{gap:"0px",[`&.${hx.root}`]:{margin:"0 -8px"}},paper:({theme:e})=>({marginTop:"4px",borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,backgroundImage:"none",background:"hsl(0, 0%, 100%)",boxShadow:"hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px",[`& .${Gw.root}`]:{"&.Mui-selected":{backgroundColor:be(e.palette.action.selected,.3)}},...e.applyStyles("dark",{background:Pe[900],boxShadow:"hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"})})}},MuiSelect:{defaultProps:{IconComponent:h.forwardRef((e,t)=>p.jsx(pZ,{fontSize:"small",...e,ref:t}))},styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,border:"1px solid",borderColor:Pe[200],backgroundColor:e.palette.background.paper,boxShadow:"inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)","&:hover":{borderColor:Pe[300],backgroundColor:e.palette.background.paper,boxShadow:"none"},[`&.${Pa.focused}`]:{outlineOffset:0,borderColor:Pe[400]},"&:before, &:after":{display:"none"},...e.applyStyles("dark",{borderRadius:e.shape.borderRadius,borderColor:Pe[700],backgroundColor:e.palette.background.paper,boxShadow:`inset 0 1px 0 1px ${be(Pe[700],.15)}, inset 0 -1px 0 1px hsla(220, 0%, 0%, 0.7)`,"&:hover":{borderColor:be(Pe[700],.7),backgroundColor:e.palette.background.paper,boxShadow:"none"},[`&.${Pa.focused}`]:{outlineOffset:0,borderColor:Pe[900]},"&:before, &:after":{display:"none"}})}),select:({theme:e})=>({display:"flex",alignItems:"center",...e.applyStyles("dark",{display:"flex",alignItems:"center","&:focus-visible":{backgroundColor:Pe[900]}})})}},MuiLink:{defaultProps:{underline:"none"},styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontWeight:500,position:"relative",textDecoration:"none",width:"fit-content","&::before":{content:'""',position:"absolute",width:"100%",height:"1px",bottom:0,left:0,backgroundColor:e.palette.text.secondary,opacity:.3,transition:"width 0.3s ease, opacity 0.3s ease"},"&:hover::before":{width:0},"&:focus-visible":{outline:`3px solid ${be(Ke[500],.5)}`,outlineOffset:"4px",borderRadius:"2px"}})}},MuiDrawer:{styleOverrides:{paper:({theme:e})=>({backgroundColor:e.palette.background.default})}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:"white",backgroundColor:e.palette.grey[900]},...e.applyStyles("dark",{"&.Mui-selected":{color:"black",backgroundColor:e.palette.grey[50]}})})}},MuiTabs:{styleOverrides:{root:{minHeight:"fit-content"},indicator:({theme:e})=>({backgroundColor:e.palette.grey[800],...e.applyStyles("dark",{backgroundColor:e.palette.grey[200]})})}},MuiTab:{styleOverrides:{root:({theme:e})=>({padding:"6px 8px",marginBottom:"8px",textTransform:"none",minWidth:"fit-content",minHeight:"fit-content",color:e.palette.text.secondary,borderRadius:e.shape.borderRadius,border:"1px solid",borderColor:"transparent",":hover":{color:e.palette.text.primary,backgroundColor:Pe[100],borderColor:Pe[200]},[`&.${FP.selected}`]:{color:Pe[900]},...e.applyStyles("dark",{":hover":{color:e.palette.text.primary,backgroundColor:Pe[800],borderColor:Pe[700]},[`&.${FP.selected}`]:{color:"#fff"}})})}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderTop:"1px solid",borderColor:e.palette.divider,flex:1,borderRadius:"99px"})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:"transparent",border:`1px solid ${Pe[400]}`,width:12,height:12,borderRadius:"50%","& text":{display:"none"},"&.Mui-active":{border:"none",color:e.palette.primary.main},"&.Mui-completed":{border:"none",color:e.palette.success.main},...e.applyStyles("dark",{border:`1px solid ${Pe[700]}`,"&.Mui-active":{border:"none",color:e.palette.primary.light},"&.Mui-completed":{border:"none",color:e.palette.success.light}}),variants:[{props:{completed:!0},style:{width:12,height:12}}]})}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({"&.Mui-completed":{opacity:.6,...e.applyStyles("dark",{opacity:.5})}})}}},mZ={MuiAccordion:{defaultProps:{elevation:0,disableGutters:!0},styleOverrides:{root:({theme:e})=>({padding:4,overflow:"clip",backgroundColor:e.palette.background.default,border:"1px solid",borderColor:e.palette.divider,":before":{backgroundColor:"transparent"},"&:not(:last-of-type)":{borderBottom:"none"},"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({border:"none",borderRadius:8,"&:hover":{backgroundColor:Pe[50]},"&:focus-visible":{backgroundColor:"transparent"},...e.applyStyles("dark",{"&:hover":{backgroundColor:Pe[800]}})})}},MuiAccordionDetails:{styleOverrides:{root:{mb:20,border:"none"}}},MuiPaper:{defaultProps:{elevation:0}},MuiCard:{styleOverrides:{root:({theme:e})=>({padding:16,gap:16,transition:"all 100ms ease",backgroundColor:Pe[50],borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,boxShadow:"none",...e.applyStyles("dark",{backgroundColor:Pe[800]}),variants:[{props:{variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`,boxShadow:"none",background:"hsl(0, 0%, 100%)",...e.applyStyles("dark",{background:be(Pe[900],.4)})}}]})}},MuiCardContent:{styleOverrides:{root:{padding:0,"&:last-child":{paddingBottom:0}}}},MuiCardHeader:{styleOverrides:{root:{padding:0}}},MuiCardActions:{styleOverrides:{root:{padding:0}}}};function U0({children:e,disableCustomTheme:t,themeComponents:n}){const r=h.useMemo(()=>t?{}:ep({cssVariables:{colorSchemeSelector:"data-mui-color-scheme",cssVarPrefix:"template"},colorSchemes:sZ,typography:iZ,shadows:cZ,shape:aZ,components:{...uZ,...dZ,...fZ,...hZ,...mZ,...n}}),[t,n]);return t?p.jsx(h.Fragment,{children:e}):p.jsx(sB,{theme:r,disableTransitionOnChange:!0,children:e})}function gZ({open:e,handleClose:t}){return p.jsxs(S$,{open:e,onClose:t,PaperProps:{component:"form",onSubmit:n=>{n.preventDefault(),t()},sx:{backgroundImage:"none"}},children:[p.jsx(tY,{children:"Reset password"}),p.jsxs(P$,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:[p.jsx(ZK,{children:"Enter your account's email address, and we'll send you a link to reset your password."}),p.jsx(Wc,{autoFocus:!0,required:!0,margin:"dense",id:"email",name:"email",label:"Email address",placeholder:"Email address",type:"email",fullWidth:!0})]}),p.jsxs(k$,{sx:{pb:3,px:3},children:[p.jsx(rt,{onClick:t,children:"Cancel"}),p.jsx(rt,{variant:"contained",type:"submit",children:"Continue"})]})]})}function yZ(){return p.jsx(Ms,{sx:{height:21,width:100},children:p.jsxs("svg",{width:86,height:19,viewBox:"0 0 86 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{fill:"#B4C0D3",d:"m.787 12.567 6.055-2.675 3.485 2.006.704 6.583-4.295-.035.634-4.577-.74-.422-3.625 2.817-2.218-3.697Z"}),p.jsx("path",{fill:"#00D3AB",d:"m10.714 11.616 5.352 3.908 2.112-3.767-4.295-1.725v-.845l4.295-1.76-2.112-3.732-5.352 3.908v4.013Z"}),p.jsx("path",{fill:"#4876EF",d:"m10.327 7.286.704-6.583-4.295.07.634 4.577-.74.422-3.66-2.816L.786 6.617l6.055 2.676 3.485-2.007Z"}),p.jsx("path",{fill:"#4876EE",d:"M32.507 8.804v6.167h2.312v-7.86h-3.366v1.693h1.054ZM32.435 6.006c.212.22.535.33.968.33.434 0 .751-.11.953-.33.213-.23.318-.516.318-.86 0-.354-.105-.641-.318-.86-.202-.23-.52-.345-.953-.345-.433 0-.756.115-.968.344-.202.22-.303.507-.303.86 0 .345.101.632.303.861ZM24.46 14.799c.655.296 1.46.444 2.413.444.896 0 1.667-.139 2.312-.416.645-.277 1.141-.664 1.488-1.162.357-.506.535-1.094.535-1.764 0-.65-.169-1.2-.506-1.649-.328-.459-.785-.818-1.373-1.076-.587-.267-1.266-.435-2.037-.502l-.809-.071c-.481-.039-.828-.168-1.04-.388a1.08 1.08 0 0 1-.318-.774c0-.23.058-.44.173-.631.116-.201.29-.359.52-.474.241-.114.535-.172.882-.172.366 0 .67.067.91.201.053.029.104.059.15.09l.012.009.052.037c.146.111.263.243.35.395.125.21.188.444.188.703h2.311c0-.689-.159-1.286-.476-1.793-.318-.516-.776-.913-1.373-1.19-.588-.287-1.296-.43-2.124-.43-.79 0-1.474.133-2.052.4a3.131 3.131 0 0 0-1.358 1.12c-.318.487-.477 1.066-.477 1.735 0 .927.314 1.673.94 2.237.626.564 1.464.89 2.514.976l.794.071c.645.058 1.113.187 1.401.388a.899.899 0 0 1 .434.788 1.181 1.181 0 0 1-.231.717c-.154.201-.38.36-.68.474-.298.115-.669.172-1.112.172-.49 0-.89-.067-1.199-.2-.308-.144-.539-.33-.694-.56a1.375 1.375 0 0 1-.216-.746h-2.297c0 .679.168 1.281.505 1.807.337.517.834.928 1.489 1.234ZM39.977 15.07c-.8 0-1.445-.095-1.936-.286a2.03 2.03 0 0 1-1.084-.99c-.221-.469-.332-1.1-.332-1.893V8.789h-1.2V7.11h1.2V4.988h2.153V7.11h2.312V8.79h-2.312v3.198c0 .373.096.66.289.86.202.192.486.287.852.287h1.17v1.937h-1.112Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M43.873 14.899c.52.23 1.117.344 1.791.344.665 0 1.252-.115 1.763-.344.51-.23.934-.55 1.271-.96.337-.412.564-.88.679-1.407h-2.124c-.096.24-.279.44-.549.603-.27.162-.616.244-1.04.244-.262 0-.497-.031-.704-.093a1.572 1.572 0 0 1-.423-.194 1.662 1.662 0 0 1-.636-.803 3.159 3.159 0 0 1-.163-.645h5.784v-.775a4.28 4.28 0 0 0-.463-1.98 3.686 3.686 0 0 0-1.343-1.477c-.578-.382-1.291-.574-2.139-.574-.645 0-1.223.115-1.733.345-.501.22-.92.52-1.257.903a4.178 4.178 0 0 0-.78 1.305c-.174.478-.26.98-.26 1.506v.287c0 .507.086 1.004.26 1.492.183.478.443.913.78 1.305.347.382.775.688 1.286.918Zm-.094-4.674.02-.09a2.507 2.507 0 0 1 .117-.356c.145-.354.356-.622.636-.804.104-.067.217-.123.339-.165.204-.071.433-.107.686-.107.395 0 .723.09.983.272.27.173.472.426.607.76a2.487 2.487 0 0 1 .16.603h-3.57c.006-.038.013-.076.022-.113Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M50.476 14.97V7.112h1.835v1.98a4.54 4.54 0 0 1 .173-.603c.202-.536.506-.937.91-1.205.405-.277.9-.416 1.488-.416h.101c.598 0 1.094.139 1.489.416.404.268.707.67.91 1.205l.016.04.013.037.028-.077c.212-.536.52-.937.925-1.205.405-.277.901-.416 1.489-.416h.1c.598 0 1.098.139 1.503.416.414.268.727.67.94 1.205.211.535.317 1.205.317 2.008v4.475h-2.312v-4.604c0-.43-.115-.78-.346-1.047-.222-.268-.54-.402-.954-.402-.414 0-.742.139-.982.416-.241.268-.362.626-.362 1.076v4.56h-2.326v-4.603c0-.43-.115-.78-.346-1.047-.222-.268-.535-.402-.94-.402-.423 0-.756.139-.996.416-.241.268-.362.626-.362 1.076v4.56h-2.311Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M68.888 13.456v1.515h1.834v-4.82c0-.726-.144-1.319-.433-1.778-.289-.468-.712-.817-1.271-1.047-.549-.23-1.228-.344-2.037-.344a27.76 27.76 0 0 0-.896.014c-.318.01-.626.024-.924.043l-.229.016a36.79 36.79 0 0 0-.552.042v1.936a81.998 81.998 0 0 1 1.733-.09 37.806 37.806 0 0 1 1.171-.025c.424 0 .732.1.925.301.193.201.289.502.289.904v.029h-1.43c-.704 0-1.325.09-1.864.272-.54.172-.959.445-1.257.818-.299.363-.448.832-.448 1.405 0 .526.12.98.361 1.363.24.373.573.66.997.86.433.201.934.302 1.502.302.55 0 1.012-.1 1.388-.302.385-.2.683-.487.895-.86a2.443 2.443 0 0 0 .228-.498l.018-.056Zm-.39-1.397v-.63h-1.445c-.405 0-.718.1-.939.3-.212.192-.318.455-.318.79 0 .157.026.3.08.429a.99.99 0 0 0 .238.345c.221.191.534.287.939.287a2.125 2.125 0 0 0 .394-.038c.106-.021.206-.052.3-.092.212-.095.385-.253.52-.473.135-.22.212-.526.23-.918Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M72.106 14.97V7.11h1.835v2.595c.088-.74.31-1.338.665-1.791.481-.603 1.174-.904 2.08-.904h.303v1.98h-.578c-.635 0-1.127.172-1.473.516-.347.334-.52.822-.52 1.463v4.001h-2.312ZM79.92 11.298h.767l2.499 3.672h2.6l-3.169-4.51 2.606-3.35h-2.427l-2.875 3.737V4.5h-2.312v10.47h2.312v-3.672Z"})]})})}function vZ(){return p.jsx(Ms,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M6.68 15.92C2.88 15.24 0 11.96 0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 11.96 13.12 15.24 9.32 15.92L8.88 15.56H7.12L6.68 15.92Z",fill:"url(#paint0_linear_795_116)"}),p.jsx("path",{d:"M11.12 10.2391L11.48 7.99914H9.36V6.43914C9.36 5.79914 9.6 5.31914 10.56 5.31914H11.6V3.27914C11.04 3.19914 10.4 3.11914 9.84 3.11914C8 3.11914 6.72 4.23914 6.72 6.23914V7.99914H4.72V10.2391H6.72V15.8791C7.16 15.9591 7.6 15.9991 8.04 15.9991C8.48 15.9991 8.92 15.9591 9.36 15.8791V10.2391H11.12Z",fill:"white"}),p.jsx("defs",{children:p.jsxs("linearGradient",{id:"paint0_linear_795_116",x1:"8",y1:"0",x2:"8",y2:"15.9991",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#1AAFFF"}),p.jsx("stop",{offset:"1",stopColor:"#0163E0"})]})})]})})}function xZ(){return p.jsx(Ms,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M15.68 8.18182C15.68 7.61455 15.6291 7.06909 15.5345 6.54545H8V9.64364H12.3055C12.1164 10.64 11.5491 11.4836 10.6982 12.0509V14.0655H13.2945C14.8073 12.6691 15.68 10.6182 15.68 8.18182Z",fill:"#4285F4"}),p.jsx("path",{d:"M8 16C10.16 16 11.9709 15.2873 13.2945 14.0655L10.6982 12.0509C9.98545 12.5309 9.07636 12.8218 8 12.8218C5.92 12.8218 4.15273 11.4182 3.52 9.52727H0.858182V11.5927C2.17455 14.2036 4.87273 16 8 16Z",fill:"#34A853"}),p.jsx("path",{d:"M3.52 9.52C3.36 9.04 3.26545 8.53091 3.26545 8C3.26545 7.46909 3.36 6.96 3.52 6.48V4.41455H0.858182C0.312727 5.49091 0 6.70545 0 8C0 9.29455 0.312727 10.5091 0.858182 11.5855L2.93091 9.97091L3.52 9.52Z",fill:"#FBBC05"}),p.jsx("path",{d:"M8 3.18545C9.17818 3.18545 10.2255 3.59273 11.0618 4.37818L13.3527 2.08727C11.9636 0.792727 10.16 0 8 0C4.87273 0 2.17455 1.79636 0.858182 4.41455L3.52 6.48C4.15273 4.58909 5.92 3.18545 8 3.18545Z",fill:"#EA4335"})]})})}function i3(e){const{mode:t,setMode:n}=UD();return t?p.jsxs(op,{value:t,onChange:r=>n(r.target.value),SelectDisplayProps:{"data-screenshot":"toggle-mode"},...e,children:[p.jsx(Vt,{value:"system",children:"System"}),p.jsx(Vt,{value:"light",children:"Light"}),p.jsx(Vt,{value:"dark",children:"Dark"})]}):null}const bZ=Q(aa)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),margin:"auto",[e.breakpoints.up("sm")]:{maxWidth:"450px"},boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),wZ=Q(Ja)(({theme:e})=>({height:"calc((1 - var(--template-frame-height, 0)) * 100dvh)",minHeight:"100%",padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}}));function CZ(e){const[t,n]=h.useState(!1),[r,o]=h.useState(""),[s,i]=h.useState(!1),[a,l]=h.useState(""),[c,u]=h.useState(!1),d=()=>{u(!0)},f=()=>{u(!1)},g=y=>{if(t||s){y.preventDefault();return}const v=new FormData(y.currentTarget);console.log({email:v.get("email"),password:v.get("password")})},m=()=>{const y=document.getElementById("email"),v=document.getElementById("password");let x=!0;return!y.value||!/\S+@\S+\.\S+/.test(y.value)?(n(!0),o("Please enter a valid email address."),x=!1):(n(!1),o("")),!v.value||v.value.length<6?(i(!0),l("Password must be at least 6 characters long."),x=!1):(i(!1),l("")),x};return p.jsxs(U0,{...e,children:[p.jsx(I0,{enableColorScheme:!0}),p.jsxs(wZ,{direction:"column",justifyContent:"space-between",children:[p.jsx(i3,{sx:{position:"fixed",top:"1rem",right:"1rem"}}),p.jsxs(bZ,{variant:"outlined",children:[p.jsx(yZ,{}),p.jsx(Ce,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),p.jsxs(Ne,{component:"form",onSubmit:g,noValidate:!0,sx:{display:"flex",flexDirection:"column",width:"100%",gap:2},children:[p.jsxs(Gs,{children:[p.jsx(wc,{htmlFor:"email",children:"Email"}),p.jsx(qo,{error:t,helperText:r,id:"email",type:"email",name:"email",placeholder:"your@email.com",autoComplete:"email",autoFocus:!0,required:!0,fullWidth:!0,variant:"outlined",color:t?"error":"primary"})]}),p.jsxs(Gs,{children:[p.jsx(wc,{htmlFor:"password",children:"Password"}),p.jsx(qo,{error:s,helperText:a,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"current-password",autoFocus:!0,required:!0,fullWidth:!0,variant:"outlined",color:s?"error":"primary"})]}),p.jsx(fo,{control:p.jsx(aC,{value:"remember",color:"primary"}),label:"Remember me"}),p.jsx(gZ,{open:c,handleClose:f}),p.jsx(rt,{type:"submit",fullWidth:!0,variant:"contained",onClick:m,children:"Sign in"}),p.jsx(vn,{component:"button",type:"button",onClick:d,variant:"body2",sx:{alignSelf:"center"},children:"Forgot your password?"})]}),p.jsx(dn,{children:"or"}),p.jsxs(Ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsx(rt,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign in with Google"),startIcon:p.jsx(xZ,{}),children:"Sign in with Google"}),p.jsx(rt,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign in with Facebook"),startIcon:p.jsx(vZ,{}),children:"Sign in with Facebook"}),p.jsxs(Ce,{sx:{textAlign:"center"},children:["Don't have an account?"," ",p.jsx(vn,{href:"/material-ui/getting-started/templates/sign-in/",variant:"body2",sx:{alignSelf:"center"},children:"Sign up"})]})]})]})]})]})}function SZ(){return p.jsx(Ms,{sx:{height:21,width:100},children:p.jsxs("svg",{width:86,height:19,viewBox:"0 0 86 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{fill:"#B4C0D3",d:"m.787 12.567 6.055-2.675 3.485 2.006.704 6.583-4.295-.035.634-4.577-.74-.422-3.625 2.817-2.218-3.697Z"}),p.jsx("path",{fill:"#00D3AB",d:"m10.714 11.616 5.352 3.908 2.112-3.767-4.295-1.725v-.845l4.295-1.76-2.112-3.732-5.352 3.908v4.013Z"}),p.jsx("path",{fill:"#4876EF",d:"m10.327 7.286.704-6.583-4.295.07.634 4.577-.74.422-3.66-2.816L.786 6.617l6.055 2.676 3.485-2.007Z"}),p.jsx("path",{fill:"#4876EE",d:"M32.507 8.804v6.167h2.312v-7.86h-3.366v1.693h1.054ZM32.435 6.006c.212.22.535.33.968.33.434 0 .751-.11.953-.33.213-.23.318-.516.318-.86 0-.354-.105-.641-.318-.86-.202-.23-.52-.345-.953-.345-.433 0-.756.115-.968.344-.202.22-.303.507-.303.86 0 .345.101.632.303.861ZM24.46 14.799c.655.296 1.46.444 2.413.444.896 0 1.667-.139 2.312-.416.645-.277 1.141-.664 1.488-1.162.357-.506.535-1.094.535-1.764 0-.65-.169-1.2-.506-1.649-.328-.459-.785-.818-1.373-1.076-.587-.267-1.266-.435-2.037-.502l-.809-.071c-.481-.039-.828-.168-1.04-.388a1.08 1.08 0 0 1-.318-.774c0-.23.058-.44.173-.631.116-.201.29-.359.52-.474.241-.114.535-.172.882-.172.366 0 .67.067.91.201.053.029.104.059.15.09l.012.009.052.037c.146.111.263.243.35.395.125.21.188.444.188.703h2.311c0-.689-.159-1.286-.476-1.793-.318-.516-.776-.913-1.373-1.19-.588-.287-1.296-.43-2.124-.43-.79 0-1.474.133-2.052.4a3.131 3.131 0 0 0-1.358 1.12c-.318.487-.477 1.066-.477 1.735 0 .927.314 1.673.94 2.237.626.564 1.464.89 2.514.976l.794.071c.645.058 1.113.187 1.401.388a.899.899 0 0 1 .434.788 1.181 1.181 0 0 1-.231.717c-.154.201-.38.36-.68.474-.298.115-.669.172-1.112.172-.49 0-.89-.067-1.199-.2-.308-.144-.539-.33-.694-.56a1.375 1.375 0 0 1-.216-.746h-2.297c0 .679.168 1.281.505 1.807.337.517.834.928 1.489 1.234ZM39.977 15.07c-.8 0-1.445-.095-1.936-.286a2.03 2.03 0 0 1-1.084-.99c-.221-.469-.332-1.1-.332-1.893V8.789h-1.2V7.11h1.2V4.988h2.153V7.11h2.312V8.79h-2.312v3.198c0 .373.096.66.289.86.202.192.486.287.852.287h1.17v1.937h-1.112Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M43.873 14.899c.52.23 1.117.344 1.791.344.665 0 1.252-.115 1.763-.344.51-.23.934-.55 1.271-.96.337-.412.564-.88.679-1.407h-2.124c-.096.24-.279.44-.549.603-.27.162-.616.244-1.04.244-.262 0-.497-.031-.704-.093a1.572 1.572 0 0 1-.423-.194 1.662 1.662 0 0 1-.636-.803 3.159 3.159 0 0 1-.163-.645h5.784v-.775a4.28 4.28 0 0 0-.463-1.98 3.686 3.686 0 0 0-1.343-1.477c-.578-.382-1.291-.574-2.139-.574-.645 0-1.223.115-1.733.345-.501.22-.92.52-1.257.903a4.178 4.178 0 0 0-.78 1.305c-.174.478-.26.98-.26 1.506v.287c0 .507.086 1.004.26 1.492.183.478.443.913.78 1.305.347.382.775.688 1.286.918Zm-.094-4.674.02-.09a2.507 2.507 0 0 1 .117-.356c.145-.354.356-.622.636-.804.104-.067.217-.123.339-.165.204-.071.433-.107.686-.107.395 0 .723.09.983.272.27.173.472.426.607.76a2.487 2.487 0 0 1 .16.603h-3.57c.006-.038.013-.076.022-.113Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M50.476 14.97V7.112h1.835v1.98a4.54 4.54 0 0 1 .173-.603c.202-.536.506-.937.91-1.205.405-.277.9-.416 1.488-.416h.101c.598 0 1.094.139 1.489.416.404.268.707.67.91 1.205l.016.04.013.037.028-.077c.212-.536.52-.937.925-1.205.405-.277.901-.416 1.489-.416h.1c.598 0 1.098.139 1.503.416.414.268.727.67.94 1.205.211.535.317 1.205.317 2.008v4.475h-2.312v-4.604c0-.43-.115-.78-.346-1.047-.222-.268-.54-.402-.954-.402-.414 0-.742.139-.982.416-.241.268-.362.626-.362 1.076v4.56h-2.326v-4.603c0-.43-.115-.78-.346-1.047-.222-.268-.535-.402-.94-.402-.423 0-.756.139-.996.416-.241.268-.362.626-.362 1.076v4.56h-2.311Z"}),p.jsx("path",{fill:"#4876EE",fillRule:"evenodd",d:"M68.888 13.456v1.515h1.834v-4.82c0-.726-.144-1.319-.433-1.778-.289-.468-.712-.817-1.271-1.047-.549-.23-1.228-.344-2.037-.344a27.76 27.76 0 0 0-.896.014c-.318.01-.626.024-.924.043l-.229.016a36.79 36.79 0 0 0-.552.042v1.936a81.998 81.998 0 0 1 1.733-.09 37.806 37.806 0 0 1 1.171-.025c.424 0 .732.1.925.301.193.201.289.502.289.904v.029h-1.43c-.704 0-1.325.09-1.864.272-.54.172-.959.445-1.257.818-.299.363-.448.832-.448 1.405 0 .526.12.98.361 1.363.24.373.573.66.997.86.433.201.934.302 1.502.302.55 0 1.012-.1 1.388-.302.385-.2.683-.487.895-.86a2.443 2.443 0 0 0 .228-.498l.018-.056Zm-.39-1.397v-.63h-1.445c-.405 0-.718.1-.939.3-.212.192-.318.455-.318.79 0 .157.026.3.08.429a.99.99 0 0 0 .238.345c.221.191.534.287.939.287a2.125 2.125 0 0 0 .394-.038c.106-.021.206-.052.3-.092.212-.095.385-.253.52-.473.135-.22.212-.526.23-.918Z",clipRule:"evenodd"}),p.jsx("path",{fill:"#4876EE",d:"M72.106 14.97V7.11h1.835v2.595c.088-.74.31-1.338.665-1.791.481-.603 1.174-.904 2.08-.904h.303v1.98h-.578c-.635 0-1.127.172-1.473.516-.347.334-.52.822-.52 1.463v4.001h-2.312ZM79.92 11.298h.767l2.499 3.672h2.6l-3.169-4.51 2.606-3.35h-2.427l-2.875 3.737V4.5h-2.312v10.47h2.312v-3.672Z"})]})})}function kZ(){return p.jsx(Ms,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M6.68 15.92C2.88 15.24 0 11.96 0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 11.96 13.12 15.24 9.32 15.92L8.88 15.56H7.12L6.68 15.92Z",fill:"url(#paint0_linear_795_116)"}),p.jsx("path",{d:"M11.12 10.2391L11.48 7.99914H9.36V6.43914C9.36 5.79914 9.6 5.31914 10.56 5.31914H11.6V3.27914C11.04 3.19914 10.4 3.11914 9.84 3.11914C8 3.11914 6.72 4.23914 6.72 6.23914V7.99914H4.72V10.2391H6.72V15.8791C7.16 15.9591 7.6 15.9991 8.04 15.9991C8.48 15.9991 8.92 15.9591 9.36 15.8791V10.2391H11.12Z",fill:"white"}),p.jsx("defs",{children:p.jsxs("linearGradient",{id:"paint0_linear_795_116",x1:"8",y1:"0",x2:"8",y2:"15.9991",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#1AAFFF"}),p.jsx("stop",{offset:"1",stopColor:"#0163E0"})]})})]})})}function PZ(){return p.jsx(Ms,{children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M15.68 8.18182C15.68 7.61455 15.6291 7.06909 15.5345 6.54545H8V9.64364H12.3055C12.1164 10.64 11.5491 11.4836 10.6982 12.0509V14.0655H13.2945C14.8073 12.6691 15.68 10.6182 15.68 8.18182Z",fill:"#4285F4"}),p.jsx("path",{d:"M8 16C10.16 16 11.9709 15.2873 13.2945 14.0655L10.6982 12.0509C9.98545 12.5309 9.07636 12.8218 8 12.8218C5.92 12.8218 4.15273 11.4182 3.52 9.52727H0.858182V11.5927C2.17455 14.2036 4.87273 16 8 16Z",fill:"#34A853"}),p.jsx("path",{d:"M3.52 9.52C3.36 9.04 3.26545 8.53091 3.26545 8C3.26545 7.46909 3.36 6.96 3.52 6.48V4.41455H0.858182C0.312727 5.49091 0 6.70545 0 8C0 9.29455 0.312727 10.5091 0.858182 11.5855L2.93091 9.97091L3.52 9.52Z",fill:"#FBBC05"}),p.jsx("path",{d:"M8 3.18545C9.17818 3.18545 10.2255 3.59273 11.0618 4.37818L13.3527 2.08727C11.9636 0.792727 10.16 0 8 0C4.87273 0 2.17455 1.79636 0.858182 4.41455L3.52 6.48C4.15273 4.58909 5.92 3.18545 8 3.18545Z",fill:"#EA4335"})]})})}const MZ=Q(aa)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),margin:"auto",boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),IZ=Q(Ja)(({theme:e})=>({height:"calc((1 - var(--template-frame-height, 0)) * 100dvh)",minHeight:"100%",padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}}));function EZ(e){const[t,n]=h.useState(!1),[r,o]=h.useState(""),[s,i]=h.useState(!1),[a,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(""),g=()=>{const y=document.getElementById("email"),v=document.getElementById("password"),x=document.getElementById("name");let w=!0;return!y.value||!/\S+@\S+\.\S+/.test(y.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!v.value||v.value.length<6?(i(!0),l("Password must be at least 6 characters long."),w=!1):(i(!1),l("")),!x.value||x.value.length<1?(u(!0),f("Name is required."),w=!1):(u(!1),f("")),w},m=y=>{if(c||t||s){y.preventDefault();return}const v=new FormData(y.currentTarget);console.log({name:v.get("name"),lastName:v.get("lastName"),email:v.get("email"),password:v.get("password")})};return p.jsxs(U0,{...e,children:[p.jsx(I0,{enableColorScheme:!0}),p.jsx(i3,{sx:{position:"fixed",top:"1rem",right:"1rem"}}),p.jsx(IZ,{direction:"column",justifyContent:"space-between",children:p.jsxs(MZ,{variant:"outlined",children:[p.jsx(SZ,{}),p.jsx(Ce,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),p.jsxs(Ne,{component:"form",onSubmit:m,sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsxs(Gs,{children:[p.jsx(wc,{htmlFor:"name",children:"Full name"}),p.jsx(qo,{autoComplete:"name",name:"name",required:!0,fullWidth:!0,id:"name",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),p.jsxs(Gs,{children:[p.jsx(wc,{htmlFor:"email",children:"Email"}),p.jsx(qo,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:s?"error":"primary"})]}),p.jsxs(Gs,{children:[p.jsx(wc,{htmlFor:"password",children:"Password"}),p.jsx(qo,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:s,helperText:a,color:s?"error":"primary"})]}),p.jsx(fo,{control:p.jsx(aC,{value:"allowExtraEmails",color:"primary"}),label:"I want to receive updates via email."}),p.jsx(rt,{type:"submit",fullWidth:!0,variant:"contained",onClick:g,children:"Sign up"})]}),p.jsx(dn,{children:p.jsx(Ce,{sx:{color:"text.secondary"},children:"or"})}),p.jsxs(Ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsx(rt,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign up with Google"),startIcon:p.jsx(PZ,{}),children:"Sign up with Google"}),p.jsx(rt,{fullWidth:!0,variant:"outlined",onClick:()=>alert("Sign up with Facebook"),startIcon:p.jsx(kZ,{}),children:"Sign up with Facebook"}),p.jsxs(Ce,{sx:{textAlign:"center"},children:["Already have an account?"," ",p.jsx(vn,{href:"/material-ui/getting-started/templates/sign-in/",variant:"body2",sx:{alignSelf:"center"},children:"Sign in"})]})]})]})})]})}const TZ=De(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-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"}),"SearchRounded"),JP=De([p.jsx("circle",{cx:"6.18",cy:"17.82",r:"2.18"},"0"),p.jsx("path",{d:"M5.59 10.23c-.84-.14-1.59.55-1.59 1.4 0 .71.53 1.28 1.23 1.4 2.92.51 5.22 2.82 5.74 5.74.12.7.69 1.23 1.4 1.23.85 0 1.54-.75 1.41-1.59-.68-4.2-3.99-7.51-8.19-8.18m-.03-5.71C4.73 4.43 4 5.1 4 5.93c0 .73.55 1.33 1.27 1.4 6.01.6 10.79 5.38 11.39 11.39.07.73.67 1.28 1.4 1.28.84 0 1.5-.73 1.42-1.56-.73-7.34-6.57-13.19-13.92-13.92"},"1")],"RssFeedRounded"),Rt=[{img:"https://picsum.photos/800/450?random=1",tag:"Engineering",title:"Revolutionizing software development with cutting-edge tools",description:"Our latest engineering tools are designed to streamline workflows and boost productivity. Discover how these innovations are transforming the software development landscape.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/1.jpg"}]},{img:"https://picsum.photos/800/450?random=2",tag:"Product",title:"Innovative product features that drive success",description:"Explore the key features of our latest product release that are helping businesses achieve their goals. From user-friendly interfaces to robust functionality, learn why our product stands out.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/6.jpg"}]},{img:"https://picsum.photos/800/450?random=3",tag:"Design",title:"Designing for the future: trends and insights",description:"Stay ahead of the curve with the latest design trends and insights. Our design team shares their expertise on creating intuitive and visually stunning user experiences.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/7.jpg"}]},{img:"https://picsum.photos/800/450?random=4",tag:"Company",title:"Our company's journey: milestones and achievements",description:"Take a look at our company's journey and the milestones we've achieved along the way. From humble beginnings to industry leader, discover our story of growth and success.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]},{img:"https://picsum.photos/800/450?random=45",tag:"Engineering",title:"Pioneering sustainable engineering solutions",description:"Learn about our commitment to sustainability and the innovative engineering solutions we're implementing to create a greener future. Discover the impact of our eco-friendly initiatives.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]},{img:"https://picsum.photos/800/450?random=6",tag:"Product",title:"Maximizing efficiency with our latest product updates",description:"Our recent product updates are designed to help you maximize efficiency and achieve more. Get a detailed overview of the new features and improvements that can elevate your workflow.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]}],El=Q(aa)(({theme:e})=>({display:"flex",flexDirection:"column",padding:0,height:"100%",backgroundColor:e.palette.background.paper,"&:hover":{backgroundColor:"transparent",cursor:"pointer"},"&:focus-visible":{outline:"3px solid",outlineColor:"hsla(210, 98%, 48%, 0.5)",outlineOffset:"2px"}})),Tl=Q(iC)({display:"flex",flexDirection:"column",gap:4,padding:16,flexGrow:1,"&:last-child":{paddingBottom:16}}),Rl=Q(Ce)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis"});function Dl({authors:e}){return p.jsxs(Ne,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"center",justifyContent:"space-between",padding:"16px"},children:[p.jsxs(Ne,{sx:{display:"flex",flexDirection:"row",gap:1,alignItems:"center"},children:[p.jsx(x$,{max:3,children:e.map((t,n)=>p.jsx(Ns,{alt:t.name,src:t.avatar,sx:{width:24,height:24}},n))}),p.jsx(Ce,{variant:"caption",children:e.map(t=>t.name).join(", ")})]}),p.jsx(Ce,{variant:"caption",children:"Nov 9, 2024"})]})}function eM(){return p.jsx(Gs,{sx:{width:{xs:"100%",md:"25ch"}},variant:"outlined",children:p.jsx(Wc,{size:"small",id:"search",placeholder:"Search…",sx:{flexGrow:1},startAdornment:p.jsx(_0,{position:"start",sx:{color:"text.primary"},children:p.jsx(TZ,{fontSize:"small"})}),inputProps:{"aria-label":"search"}})})}function RZ(){const[e,t]=h.useState(null),n=s=>{t(s)},r=()=>{t(null)},o=()=>{console.info("You clicked the filter chip.")};return p.jsxs(Ne,{sx:{display:"flex",flexDirection:"column",gap:4},children:[p.jsxs("div",{children:[p.jsx(Ce,{variant:"h1",gutterBottom:!0,children:"Blog"}),p.jsx(Ce,{children:"Stay in the loop with the latest about our products"})]}),p.jsxs(Ne,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"row",gap:1,width:{xs:"100%",md:"fit-content"},overflow:"auto"},children:[p.jsx(eM,{}),p.jsx(wn,{size:"small","aria-label":"RSS feed",children:p.jsx(JP,{})})]}),p.jsxs(Ne,{sx:{display:"flex",flexDirection:{xs:"column-reverse",md:"row"},width:"100%",justifyContent:"space-between",alignItems:{xs:"start",md:"center"},gap:4,overflow:"auto"},children:[p.jsxs(Ne,{sx:{display:"inline-flex",flexDirection:"row",gap:3,overflow:"auto"},children:[p.jsx(ms,{onClick:o,size:"medium",label:"All categories"}),p.jsx(ms,{onClick:o,size:"medium",label:"Company",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(ms,{onClick:o,size:"medium",label:"Product",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(ms,{onClick:o,size:"medium",label:"Design",sx:{backgroundColor:"transparent",border:"none"}}),p.jsx(ms,{onClick:o,size:"medium",label:"Engineering",sx:{backgroundColor:"transparent",border:"none"}})]}),p.jsxs(Ne,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"row",gap:1,width:{xs:"100%",md:"fit-content"},overflow:"auto"},children:[p.jsx(eM,{}),p.jsx(wn,{size:"small","aria-label":"RSS feed",children:p.jsx(JP,{})})]})]}),p.jsxs(mn,{container:!0,spacing:2,columns:12,children:[p.jsx(mn,{size:{xs:12,md:6},children:p.jsxs(El,{variant:"outlined",onFocus:()=>n(0),onBlur:r,tabIndex:0,className:e===0?"Mui-focused":"",children:[p.jsx(ch,{component:"img",alt:"green iguana",image:Rt[0].img,sx:{aspectRatio:"16 / 9",borderBottom:"1px solid",borderColor:"divider"}}),p.jsxs(Tl,{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[0].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[0].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[0].description})]}),p.jsx(Dl,{authors:Rt[0].authors})]})}),p.jsx(mn,{size:{xs:12,md:6},children:p.jsxs(El,{variant:"outlined",onFocus:()=>n(1),onBlur:r,tabIndex:0,className:e===1?"Mui-focused":"",children:[p.jsx(ch,{component:"img",alt:"green iguana",image:Rt[1].img,"aspect-ratio":"16 / 9",sx:{borderBottom:"1px solid",borderColor:"divider"}}),p.jsxs(Tl,{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[1].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[1].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[1].description})]}),p.jsx(Dl,{authors:Rt[1].authors})]})}),p.jsx(mn,{size:{xs:12,md:4},children:p.jsxs(El,{variant:"outlined",onFocus:()=>n(2),onBlur:r,tabIndex:0,className:e===2?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(ch,{component:"img",alt:"green iguana",image:Rt[2].img,sx:{height:{sm:"auto",md:"50%"},aspectRatio:{sm:"16 / 9",md:""}}}),p.jsxs(Tl,{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[2].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[2].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[2].description})]}),p.jsx(Dl,{authors:Rt[2].authors})]})}),p.jsx(mn,{size:{xs:12,md:4},children:p.jsxs(Ne,{sx:{display:"flex",flexDirection:"column",gap:2,height:"100%"},children:[p.jsxs(El,{variant:"outlined",onFocus:()=>n(3),onBlur:r,tabIndex:0,className:e===3?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(Tl,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:p.jsxs("div",{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[3].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[3].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[3].description})]})}),p.jsx(Dl,{authors:Rt[3].authors})]}),p.jsxs(El,{variant:"outlined",onFocus:()=>n(4),onBlur:r,tabIndex:0,className:e===4?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(Tl,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:p.jsxs("div",{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[4].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[4].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[4].description})]})}),p.jsx(Dl,{authors:Rt[4].authors})]})]})}),p.jsx(mn,{size:{xs:12,md:4},children:p.jsxs(El,{variant:"outlined",onFocus:()=>n(5),onBlur:r,tabIndex:0,className:e===5?"Mui-focused":"",sx:{height:"100%"},children:[p.jsx(ch,{component:"img",alt:"green iguana",image:Rt[5].img,sx:{height:{sm:"auto",md:"50%"},aspectRatio:{sm:"16 / 9",md:""}}}),p.jsxs(Tl,{children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:Rt[5].tag}),p.jsx(Ce,{gutterBottom:!0,variant:"h6",component:"div",children:Rt[5].title}),p.jsx(Rl,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:Rt[5].description})]}),p.jsx(Dl,{authors:Rt[5].authors})]})})]})]})}const DZ=De(p.jsx("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded"),$Z=[{tag:"Engineering",title:"The future of AI in software engineering",description:"Artificial intelligence is revolutionizing software engineering. Explore how AI-driven tools are enhancing development processes and improving software quality.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/1.jpg"}]},{tag:"Product",title:"Driving growth with user-centric product design",description:"Our user-centric product design approach is driving significant growth. Learn about the strategies we employ to create products that resonate with users.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/6.jpg"}]},{tag:"Design",title:"Embracing minimalism in modern design",description:"Minimalism is a key trend in modern design. Discover how our design team incorporates minimalist principles to create clean and impactful user experiences.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/7.jpg"}]},{tag:"Company",title:"Cultivating a culture of innovation",description:"Innovation is at the heart of our company culture. Learn about the initiatives we have in place to foster creativity and drive groundbreaking solutions.",authors:[{name:"Gaganyatri",avatar:"/static/images/avatar/3.jpg"}]}],AZ=Q(Ce)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis"}),OZ=Q(Ce)(({theme:e})=>({position:"relative",textDecoration:"none","&:hover":{cursor:"pointer"},"& .arrow":{visibility:"hidden",position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"},"&:hover .arrow":{visibility:"visible",opacity:.7},"&:focus-visible":{outline:"3px solid",outlineColor:"hsla(210, 98%, 48%, 0.5)",outlineOffset:"3px",borderRadius:"8px"},"&::before":{content:'""',position:"absolute",width:0,height:"1px",bottom:0,left:0,backgroundColor:e.palette.text.primary,opacity:.3,transition:"width 0.3s ease, opacity 0.3s ease"},"&:hover::before":{width:"100%"}}));function jZ({authors:e}){return p.jsxs(Ne,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"center",justifyContent:"space-between"},children:[p.jsxs(Ne,{sx:{display:"flex",flexDirection:"row",gap:1,alignItems:"center"},children:[p.jsx(x$,{max:3,children:e.map((t,n)=>p.jsx(Ns,{alt:t.name,src:t.avatar,sx:{width:24,height:24}},n))}),p.jsx(Ce,{variant:"caption",children:e.map(t=>t.name).join(", ")})]}),p.jsx(Ce,{variant:"caption",children:"November 9, 2024"})]})}function FZ(){const[e,t]=h.useState(null),n=o=>{t(o)},r=()=>{t(null)};return p.jsxs("div",{children:[p.jsx(Ce,{variant:"h2",gutterBottom:!0,children:"Latest"}),p.jsx(mn,{container:!0,spacing:8,columns:12,sx:{my:4},children:$Z.map((o,s)=>p.jsx(mn,{size:{xs:12,sm:6},children:p.jsxs(Ne,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",gap:1,height:"100%"},children:[p.jsx(Ce,{gutterBottom:!0,variant:"caption",component:"div",children:o.tag}),p.jsxs(OZ,{gutterBottom:!0,variant:"h6",onFocus:()=>n(s),onBlur:r,tabIndex:0,className:e===s?"Mui-focused":"",children:[o.title,p.jsx(DZ,{className:"arrow",sx:{fontSize:"1rem"}})]}),p.jsx(AZ,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:o.description}),p.jsx(jZ,{authors:o.authors})]})},s))}),p.jsx(Ne,{sx:{display:"flex",flexDirection:"row",pt:4},children:p.jsx(tq,{hidePrevButton:!0,hideNextButton:!0,count:10,boundaryCount:10})})]})}function LZ(e){return p.jsxs(U0,{...e,children:[p.jsx(I0,{enableColorScheme:!0}),p.jsxs(Jo,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:16,gap:4},children:[p.jsx(RZ,{}),p.jsx(FZ,{})]})]})}const _Z=["localeText"],zx=h.createContext(null),hl=function(t){const{localeText:n}=t,r=ue(t,_Z),{utils:o,localeText:s}=h.useContext(zx)??{utils:void 0,localeText:void 0},i=xt({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=i,g=h.useMemo(()=>P({},f,s,n),[f,s,n]),m=h.useMemo(()=>{if(!l)return o||null;const x=new l({locale:d,formats:c,instance:u});if(!x.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 x},[l,d,c,u,o]),y=h.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=h.useMemo(()=>({utils:m,defaultDates:y,localeText:g}),[y,m,g]);return p.jsx(zx.Provider,{value:v,children:a})},NZ=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:P({},e)}}}}),a3=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return s=>{const i=s!==null&&t.isValid(s)?t.format(s,n):null;return(o??r)(s,t,i)}},l3={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"},zZ=l3;NZ(l3);const ml=()=>{const e=h.useContext(zx);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=h.useMemo(()=>P({},zZ,e.localeText),[e.localeText]);return h.useMemo(()=>P({},e,{localeText:t}),[e,t])},Gt=()=>ml().utils,cp=()=>ml().defaultDates,W0=e=>{const t=Gt(),n=h.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},fi=()=>ml().localeText,BZ=De(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),HZ=De(p.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VZ=De(p.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),UZ=De(p.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");De(p.jsxs(h.Fragment,{children:[p.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"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");De(p.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");De(p.jsxs(h.Fragment,{children:[p.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"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const WZ=De(p.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 GZ(e){return xe("MuiPickersArrowSwitcher",e)}ge("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const KZ=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],YZ=["ownerState"],qZ=["ownerState"],XZ=Q("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),QZ=Q("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),tM=Q(wn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ZZ=e=>{const{classes:t}=e;return le({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},GZ,t)},JZ=h.forwardRef(function(t,n){const r=Bt(),o=xt({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:g,isPreviousHidden:m,onGoToPrevious:y,previousLabel:v,labelId:x}=o,w=ue(o,KZ),b=o,C=ZZ(b),k={isDisabled:c,isHidden:u,goTo:d,label:f},M={isDisabled:g,isHidden:m,goTo:y,label:v},T=(a==null?void 0:a.previousIconButton)??tM,I=et({elementType:T,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:P({},b,{hidden:M.isHidden}),className:se(C.button,C.previousIconButton)}),D=(a==null?void 0:a.nextIconButton)??tM,S=et({elementType:D,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"start",onClick:k.goTo},ownerState:P({},b,{hidden:k.isHidden}),className:se(C.button,C.nextIconButton)}),R=(a==null?void 0:a.leftArrowIcon)??HZ,j=et({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:C.leftArrowIcon}),F=ue(j,YZ),A=(a==null?void 0:a.rightArrowIcon)??VZ,$=et({elementType:A,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:C.rightArrowIcon}),E=ue($,qZ);return p.jsxs(XZ,P({ref:n,className:se(C.root,i),ownerState:b},w,{children:[p.jsx(T,P({},I,{children:r?p.jsx(A,P({},E)):p.jsx(R,P({},F))})),s?p.jsx(Ce,{variant:"subtitle1",component:"span",id:x,children:s}):p.jsx(QZ,{className:C.spacer,ownerState:b}),p.jsx(D,P({},S,{children:r?p.jsx(R,P({},F)):p.jsx(A,P({},E))}))]}))}),Xu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),eJ=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},tJ=["hours","minutes","seconds"],nJ=e=>tJ.includes(e),nM=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),rJ=(e,t)=>(n,r)=>e?t.isAfter(n,r):nM(n,t)>nM(r,t);function c3({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=h.useRef(n),c=h.useRef(o),u=h.useRef(o.includes(n)?n:o[0]),[d,f]=Nn({name:"useViews",state:"view",controlled:r,default:u.current}),g=h.useRef(s?d:null),[m,y]=Nn({name:"useViews",state:"focusedView",controlled:i,default:g.current});h.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(T=>!o.includes(T)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const v=o.indexOf(d),x=o[v-1]??null,w=o[v+1]??null,b=ve((T,I)=>{y(I?T:D=>T===D?null:D),a==null||a(T,I)}),C=ve(T=>{b(T,!0),T!==d&&(f(T),t&&t(T))}),k=ve(()=>{w&&C(w)}),M=ve((T,I,D)=>{const S=I==="finish",R=D?o.indexOf(D){const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function sJ(e,{disablePast:t,minDate:n,timezone:r}){const o=Gt();return h.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const Sf=36,G0=2,K0=320,iJ=280,hC=336,aJ=Q("div")({overflow:"hidden",width:K0,maxHeight:hC,display:"flex",flexDirection:"column",margin:"0 auto"}),Zm=(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},zd=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=Zm(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},lJ=(e,t)=>t==null||!e.isValid(t)?null:t,Eo=(e,t,n)=>t==null||!e.isValid(t)?n:t,cJ=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),mC=(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},u3=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),uJ=["year","month","day"],rM=e=>uJ.includes(e),gC=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Xu(n,["year"])?o.year:Xu(n,["month"])?o.month:Xu(n,["day"])?o.dayOfMonth:Xu(n,["month","year"])?`${o.month} ${o.year}`:Xu(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},dJ=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},yC=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{const s=Gt(),i=h.useRef(n),a=t??i.current??o.emptyValue,l=h.useMemo(()=>o.getTimezone(s,a),[s,o,a]),c=ve(g=>l==null?g:o.setTimezone(s,l,g)),u=e??l??"default",d=h.useMemo(()=>o.setTimezone(s,u,a),[o,s,u,a]),f=ve((g,...m)=>{const y=c(g);r==null||r(y,...m)});return{value:d,handleValueChange:f,timezone:u}},vC=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,a]=Nn({name:e,state:"value",controlled:n,default:r??s.emptyValue}),l=ve((c,...u)=>{a(c),o==null||o(c,...u)});return yC({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:s})},fs={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},fJ=e=>Math.max(...e.map(t=>fs[t.type]??1)),Qu=(e,t,n)=>{if(t===fs.year)return e.startOfYear(n);if(t===fs.month)return e.startOfMonth(n);if(t===fs.day)return e.startOfDay(n);let r=n;return t{let s=o?o():Qu(t,n,u3(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Qu(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Qu(t,n,e.maxDate));const i=rJ(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Qu(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Zm(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Qu(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Zm(t,s,e.maxTime))),s},d3=(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}},hJ=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Y0=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},f3=(e,t,n,r)=>{switch(n){case"month":return mC(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Y0(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},oM="s",mJ=["0","1","2","3","4","5","6","7","8","9"],gJ=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),oM)==="0"?mJ:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),oM))},nl=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(s.toString()),r="")}return n.join("")},xC=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),sM=(e,t)=>{const n=nl(e,t);return n!==" "&&!Number.isNaN(Number(n))},p3=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=p3(s,o.maxLength)),xC(s,r)},yJ=(e,t,n,r,o,s,i,a)=>{const l=hJ(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const m=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),y=b=>h3(e,b,m,s,n),v=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let w=parseInt(nl(n.value,s),10)+l*v;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=m.minimum:w=m.maximum}return w%v!==0&&((l<0||c)&&(w+=v-(v+w)%v),(l>0||u)&&(w-=w%v)),w>m.maximum?y(m.minimum+(w-m.maximum-1)%(m.maximum-m.minimum+1)):w{const m=f3(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 x=((m.indexOf(n.value)+l)%m.length+m.length)%m.length;return m[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():g()},bC=(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(nl(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},iM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),m3=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,g3=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return m3(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")}},vJ=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),bJ=(e,t,n)=>{const o=e.map(s=>{const i=bC(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},wJ=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=mC(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:m3(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):i,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=Y0(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(s);return nl(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(nl(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},CJ=(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=Y0(e,t.format),s=e.formatByString(n,t.format),i=o.indexOf(s),l=o.indexOf(t.value)-i;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,s=e.getHours(r);return o&&s>=12?e.addHours(r,-12):!o&&s<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}},aM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},lM=(e,t,n,r,o)=>[...n].sort((s,i)=>aM[s.type]-aM[i.type]).reduce((s,i)=>!o||i.modified?CJ(e,i,t,s):s,r),SJ=()=>navigator.userAgent.toLowerCase().includes("android"),kJ=(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 s=0,i=0,a=e.length-1;for(;a>=0;){i=e.findIndex((l,c)=>{var u;return c>=s&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=s;l-=1)o[l]=a,r[a]=l,a-=1;s=i+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]}},Bx=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,PJ=(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}},MJ=(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}},IJ=["value","referenceDate"],Es={emptyValue:null,getTodayValue:u3,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ue(e,IJ);return t!=null&&r.utils.isValid(t)?t:n??pJ(r)},cleanValue:lJ,areValuesEqual:cJ,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)},EJ={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:xJ,getV6InputValueFromSections:bJ,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)};function TJ(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const RJ=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Fr=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Fr(t.shadowRoot):t:null},DJ="@media (pointer: fine)";function $J(e){return xe("MuiPickersDay",e)}const ha=ge("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),AJ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],OJ=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return le({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},$J,l)},y3=({theme:e})=>P({},e.typography.caption,{width:Sf,height:Sf,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})`:be(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:be(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ha.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ha.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}},[`&.${ha.disabled}:not(.${ha.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ha.disabled}&.${ha.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${G0}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ha.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),v3=(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]},jJ=Q(ni,{name:"MuiPickersDay",slot:"Root",overridesResolver:v3})(y3),FJ=Q("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:v3})(({theme:e})=>P({},y3({theme:e}),{opacity:0,pointerEvents:"none"})),Zu=()=>{},LJ=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:g=Zu,onBlur:m=Zu,onKeyDown:y=Zu,onMouseDown:v=Zu,onMouseEnter:x=Zu,outsideCurrentMonth:w,selected:b=!1,showDaysOutsideCurrentMonth:C=!1,children:k,today:M=!1}=r,T=ue(r,AJ),I=P({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:C,today:M}),D=OJ(I),S=Gt(),R=h.useRef(null),j=tt(R,n);at(()=>{o&&!a&&!u&&!w&&R.current.focus()},[o,a,u,w]);const F=$=>{v($),w&&$.preventDefault()},A=$=>{a||f(i),w&&$.currentTarget.focus(),d&&d($)};return w&&!C?p.jsx(FJ,{className:se(D.root,D.hiddenDaySpacingFiller,s),ownerState:I,role:T.role}):p.jsx(jJ,P({className:se(D.root,s),ref:j,centerRipple:!0,disabled:a,tabIndex:b?0:-1,onKeyDown:$=>y($,i),onFocus:$=>g($,i),onBlur:$=>m($,i),onMouseEnter:$=>x($,i),onClick:A,onMouseDown:F},T,{ownerState:I,children:k||S.format(i,"dayOfMonth")}))}),_J=h.memo(LJ),up=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Eo(r.utils,e.minDate,r.defaultDates.minDate),d=Eo(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&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}};up.valueManager=Es;const x3=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],NJ=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],zJ=["minDateTime","maxDateTime"],BJ=[...x3,...NJ,...zJ],b3=e=>BJ.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function w3(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=ml(),a=h.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);h.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=ve(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const HJ=({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},VJ=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},UJ=(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}},WJ=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=d3(e,i),c=g3(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,i):"",g=null;if(u)if(c)g=f===""?e.formatByString(s,i).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);g=l.maxLength,d&&(f=xC(p3(nl(f,o),g),o))}return P({},l,{format:i,maxLength:g,value:f,placeholder:UJ(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},GJ=e=>{var g;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((m,y)=>y.length-m.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=m=>r.find(y=>y.start<=m&&y.end>=m);let f=0;for(;f0;){const w=u.exec(x)[1];x=x.slice(w.length),s.push(WJ(P({},e,{now:o,token:w,startSeparator:i}))),i=""}f+=v.length}else{const x=n[f];y&&(m==null?void 0:m.start)===f||(m==null?void 0:m.end)===f||(s.length===0?i+=x:s[s.length-1].endSeparator+=x),f+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},KJ=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`⁩${i}⁦`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),cM=e=>{let t=HJ(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=VJ(P({},e,{expandedFormat:t})),r=GJ(P({},e,{expandedFormat:t,escapedParts:n}));return KJ(P({},e,{sections:r}))},YJ=e=>{const t=Gt(),n=fi(),r=ml(),o=Bt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:g,format:m,formatDensity:y="dense",selectedSections:v,onSelectedSectionsChange:x,shouldRespectLeadingZeros:w=!1,timezone:b,enableAccessibleFieldDOMStructure:C=!1}}=e,{timezone:k,value:M,handleValueChange:T}=yC({timezone:b,value:u,defaultValue:d,onChange:g,valueManager:s}),I=h.useMemo(()=>gJ(t),[t]),D=h.useMemo(()=>wJ(t,I,k),[t,I,k]),S=h.useCallback((B,W=null)=>i.getSectionsFromValue(t,B,W,te=>cM({utils:t,localeText:n,localizedDigits:I,format:m,date:te,formatDensity:y,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:C,isRtl:o})),[i,m,n,I,o,w,t,y,C]),[R,j]=h.useState(()=>{const B=S(M),W={sections:B,value:M,referenceValue:s.emptyValue,tempValueStrAndroid:null},te=fJ(B),X=s.getInitialReferenceValue({referenceDate:f,value:M,utils:t,props:c,granularity:te,timezone:k});return P({},W,{referenceValue:X})}),[F,A]=Nn({controlled:v,default:null,name:"useField",state:"selectedSections"}),$=B=>{A(B),x==null||x(B)},E=h.useMemo(()=>Bx(F,R.sections),[F,R.sections]),L=E==="all"?0:E,O=({value:B,referenceValue:W,sections:te})=>{if(j(q=>P({},q,{sections:te,value:B,referenceValue:W,tempValueStrAndroid:null})),s.areValuesEqual(t,R.value,B))return;const X={validationError:l({adapter:r,value:B,timezone:k,props:c})};T(B,X)},_=(B,W)=>{const te=[...R.sections];return te[B]=P({},te[B],{value:W,modified:!0}),te},N=()=>{O({value:s.emptyValue,referenceValue:R.referenceValue,sections:S(s.emptyValue)})},z=()=>{if(L==null)return;const B=R.sections[L],W=i.getActiveDateManager(t,R,B),X=W.getSections(R.sections).filter(H=>H.value!=="").length===(B.value===""?0:1),q=_(L,""),U=X?null:t.getInvalidDate(),ee=W.getNewValuesFromNewActiveDate(U);O(P({},ee,{sections:q}))},G=B=>{const W=(q,U)=>{const ee=t.parse(q,m);if(ee==null||!t.isValid(ee))return null;const H=cM({utils:t,localeText:n,localizedDigits:I,format:m,date:ee,formatDensity:y,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:C,isRtl:o});return lM(t,ee,H,U,!1)},te=i.parseValueStr(B,R.referenceValue,W),X=i.updateReferenceValue(t,te,R.referenceValue);O({value:te,referenceValue:X,sections:S(te,R.sections)})},J=({activeSection:B,newSectionValue:W,shouldGoToNextSection:te})=>{te&&LP({},ne,H,{sections:q,tempValueStrAndroid:null}))},K=B=>j(W=>P({},W,{tempValueStrAndroid:B}));return h.useEffect(()=>{const B=S(R.value);j(W=>P({},W,{sections:B}))},[m,t.locale,o]),h.useEffect(()=>{let B;s.areValuesEqual(t,R.value,M)?B=s.getTimezone(t,R.value)!==s.getTimezone(t,M):B=!0,B&&j(W=>P({},W,{value:M,referenceValue:i.updateReferenceValue(t,M,W.referenceValue),sections:S(M)}))},[M]),{state:R,activeSectionIndex:L,parsedSelectedSections:E,setSelectedSections:$,clearValue:N,clearActiveSection:z,updateSectionValue:J,updateValueFromValueStr:G,setTempAndroidValueStr:K,getSectionsFromValue:S,sectionsValueBoundaries:D,localizedDigits:I,timezone:k}},qJ=5e3,$l=e=>e.saveQuery!=null,XJ=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Gt(),[a,l]=h.useState(null),c=ve(()=>l(null));h.useEffect(()=>{var m;a!=null&&((m=e[a.sectionIndex])==null?void 0:m.type)!==a.sectionType&&c()},[e,a,c]),h.useEffect(()=>{if(a!=null){const m=setTimeout(()=>c(),qJ);return()=>{clearTimeout(m)}}return()=>{}},[a,c]);const u=({keyPressed:m,sectionIndex:y},v,x)=>{const w=m.toLowerCase(),b=e[y];if(a!=null&&(!x||x(a.value))&&a.sectionIndex===y){const k=`${a.value}${w}`,M=v(k,b);if(!$l(M))return l({sectionIndex:y,value:k,sectionType:b.type}),M}const C=v(w,b);return $l(C)&&!C.saveQuery?(c(),null):(l({sectionIndex:y,value:w,sectionType:b.type}),$l(C)?null:C)},d=m=>{const y=(w,b,C)=>{const k=b.filter(M=>M.toLowerCase().startsWith(C));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},v=(w,b,C,k)=>{const M=T=>f3(i,s,b.type,T);if(b.contentType==="letter")return y(b.format,M(b.format),w);if(C&&k!=null&&d3(i,C).contentType==="letter"){const T=M(C),I=y(C,T,w);return $l(I)?{saveQuery:!1}:P({},I,{sectionValue:k(I.sectionValue,T)})}return{saveQuery:!1}};return u(m,(w,b)=>{switch(b.type){case"month":{const C=k=>iM(i,k,i.formats.month,b.format);return v(w,b,i.formats.month,C)}case"weekDay":{const C=(k,M)=>M.indexOf(k).toString();return v(w,b,i.formats.weekday,C)}case"meridiem":return v(w,b);default:return{saveQuery:!1}}})},f=m=>{const y=(x,w)=>{const b=nl(x,r),C=Number(b),k=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(C>k.maximum)return{saveQuery:!1};if(Ck.maximum||b.length===k.maximum.toString().length;return{sectionValue:h3(i,C,k,r,w),shouldGoToNextSection:M}};return u(m,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return y(x,w);if(w.type==="month"){g3(i,"digit","month","MM");const b=y(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if($l(b))return b;const C=iM(i,b.sectionValue,"MM",w.format);return P({},b,{sectionValue:C})}if(w.type==="weekDay"){const b=y(x,w);if($l(b))return b;const C=Y0(i,w.format)[Number(b.sectionValue)-1];return P({},b,{sectionValue:C})}return{saveQuery:!1}},x=>sM(x,r))};return{applyCharacterEditing:ve(m=>{const y=e[m.sectionIndex],x=sM(m.keyPressed,r)?f(P({},m,{keyPressed:xC(m.keyPressed,r)})):d(m);if(x==null){o(null);return}t({activeSection:y,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:c}},QJ=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:g,setSelectedSections:m,parsedSelectedSections:y,state:v,clearActiveSection:x,clearValue:w,updateSectionValue:b,updateValueFromValueStr:C,sectionOrder:k,areAllSectionsEmpty:M,sectionsValueBoundaries:T}=e,I=h.useRef(null),D=tt(r,I),S=fi(),R=Gt(),j=mt(),[F,A]=h.useState(!1),$=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!I.current)return;const Z=document.getSelection();if(!Z)return;if(y==null){Z.rangeCount>0&&I.current.getRoot().contains(Z.getRangeAt(0).startContainer)&&Z.removeAllRanges(),F&&I.current.getRoot().blur();return}if(!I.current.getRoot().contains(Fr(document)))return;const ne=new window.Range;let oe;y==="all"?oe=I.current.getRoot():v.sections[y].type==="empty"?oe=I.current.getSectionContainer(y):oe=I.current.getSectionContent(y),ne.selectNodeContents(oe),oe.focus(),Z.removeAllRanges(),Z.addRange(ne)},getActiveSectionIndexFromDOM:()=>{const Z=Fr(document);return!Z||!I.current||!I.current.getRoot().contains(Z)?null:I.current.getSectionIndexFromDOMElement(Z)},focusField:(Z=0)=>{if(!I.current)return;const ne=Bx(Z,v.sections);A(!0),I.current.getSectionContent(ne).focus()},setSelectedSections:Z=>{if(!I.current)return;const ne=Bx(Z,v.sections);A((ne==="all"?0:ne)!==null),m(Z)},isFieldFocused:()=>{const Z=Fr(document);return!!I.current&&I.current.getRoot().contains(Z)}}),[y,m,v.sections,F]),E=ve(Z=>{if(!I.current)return;const ne=v.sections[Z];I.current.getSectionContent(Z).innerHTML=ne.value||ne.placeholder,$.syncSelectionToDOM()}),L=ve((Z,...ne)=>{Z.isDefaultPrevented()||!I.current||(A(!0),s==null||s(Z,...ne),y==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){m(k.startIndex);return}let re=0,de=0;for(;de{if(a==null||a(Z),!I.current||y!=="all")return;const oe=Z.target.textContent??"";I.current.getRoot().innerHTML=v.sections.map(re=>`${re.startSeparator}${re.value||re.placeholder}${re.endSeparator}`).join(""),$.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(g(),w(),m("all")):oe.length>1?C(oe):f({keyPressed:oe,sectionIndex:0})}),_=ve(Z=>{if(l==null||l(Z),n||y!=="all"){Z.preventDefault();return}const ne=Z.clipboardData.getData("text");Z.preventDefault(),g(),C(ne)}),N=ve((...Z)=>{if(i==null||i(...Z),F||!I.current)return;A(!0),I.current.getSectionIndexFromDOMElement(Fr(document))!=null||m(k.startIndex)}),z=ve((...Z)=>{o==null||o(...Z),setTimeout(()=>{if(!I.current)return;const ne=Fr(document);!I.current.getRoot().contains(ne)&&(A(!1),m(null))})}),G=ve(Z=>ne=>{ne.isDefaultPrevented()||m(Z)}),J=ve(Z=>{Z.preventDefault()}),K=ve(Z=>()=>{m(Z)}),B=ve(Z=>{if(Z.preventDefault(),n||t||typeof y!="number")return;const ne=v.sections[y],oe=Z.clipboardData.getData("text"),re=/^[a-zA-Z]+$/.test(oe),de=/^[0-9]+$/.test(oe),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);ne.contentType==="letter"&&re||ne.contentType==="digit"&&de||ne.contentType==="digit-with-letter"&&ie?(g(),b({activeSection:ne,newSectionValue:oe,shouldGoToNextSection:!0})):!re&&!de&&(g(),C(oe))}),W=ve(Z=>{Z.preventDefault(),Z.dataTransfer.dropEffect="none"}),te=ve(Z=>{if(!I.current)return;const ne=Z.target,oe=ne.textContent??"",re=I.current.getSectionIndexFromDOMElement(ne),de=v.sections[re];if(n||!I.current){E(re);return}if(oe.length===0){if(de.value===""){E(re);return}const ie=Z.nativeEvent.inputType;if(ie==="insertParagraph"||ie==="insertLineBreak"){E(re);return}g(),x();return}f({keyPressed:oe,sectionIndex:re}),E(re)});at(()=>{if(!(!F||!I.current)){if(y==="all")I.current.getRoot().focus();else if(typeof y=="number"){const Z=I.current.getSectionContent(y);Z&&Z.focus()}}},[y,F]);const X=h.useMemo(()=>v.sections.reduce((Z,ne)=>(Z[ne.type]=T[ne.type]({currentDate:null,contentType:ne.contentType,format:ne.format}),Z),{}),[T,v.sections]),q=y==="all",U=h.useMemo(()=>v.sections.map((Z,ne)=>{const oe=!q&&!t&&!n;return{container:{"data-sectionindex":ne,onClick:G(ne)},content:{tabIndex:q||ne>0?-1:0,contentEditable:!q&&!t&&!n,role:"spinbutton",id:`${j}-${Z.type}`,"aria-labelledby":`${j}-${Z.type}`,"aria-readonly":n,"aria-valuenow":MJ(Z,R),"aria-valuemin":X[Z.type].minimum,"aria-valuemax":X[Z.type].maximum,"aria-valuetext":Z.value?PJ(Z,R):S.empty,"aria-label":S[Z.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(h.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:Z.value||Z.placeholder,onInput:te,onPaste:B,onFocus:K(ne),onDragOver:W,onMouseUp:J,inputMode:Z.contentType==="letter"?"text":"numeric"},before:{children:Z.startSeparator},after:{children:Z.endSeparator}}}),[v.sections,K,B,W,te,G,J,t,n,q,S,R,X,j]),ee=ve(Z=>{C(Z.target.value)}),H=h.useMemo(()=>M?"":d.getV7HiddenInputValueFromSections(v.sections),[M,v.sections,d]);return h.useEffect(()=>{if(I.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 `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","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&&I.current&&I.current.getSectionContent(k.startIndex).focus()},[]),{interactions:$,returnedValue:{autoFocus:u,readOnly:n,focused:c??F,sectionListRef:D,onBlur:z,onClick:L,onFocus:N,onInput:O,onPaste:_,enableAccessibleFieldDOMStructure:!0,elements:U,tabIndex:y===0?-1:0,contentEditable:q,value:H,onChange:ee,areAllSectionsEmpty:M}}},ac=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),ZJ=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i{const t=Bt(),n=h.useRef(),r=h.useRef(),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:g,state:m,fieldValueManager:y,valueManager:v,applyCharacterEditing:x,resetCharacterQuery:w,updateSectionValue:b,updateValueFromValueStr:C,clearActiveSection:k,clearValue:M,setTempAndroidValueStr:T,setSelectedSections:I,getSectionsFromValue:D,areAllSectionsEmpty:S,localizedDigits:R}=e,j=h.useRef(null),F=tt(l,j),A=h.useMemo(()=>ZJ(m.sections,R,t),[m.sections,R,t]),$=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!j.current)return;if(f==null){j.current.scrollLeft&&(j.current.scrollLeft=0);return}if(j.current!==Fr(document))return;const te=j.current.scrollTop;if(f==="all")j.current.select();else{const X=A[f],q=X.type==="empty"?X.startInInput-X.startSeparator.length:X.startInInput,U=X.type==="empty"?X.endInInput+X.endSeparator.length:X.endInInput;(q!==j.current.selectionStart||U!==j.current.selectionEnd)&&j.current===Fr(document)&&j.current.setSelectionRange(q,U),clearTimeout(r.current),r.current=setTimeout(()=>{j.current&&j.current===Fr(document)&&j.current.selectionStart===j.current.selectionEnd&&(j.current.selectionStart!==q||j.current.selectionEnd!==U)&&$.syncSelectionToDOM()})}j.current.scrollTop=te},getActiveSectionIndexFromDOM:()=>{const te=j.current.selectionStart??0,X=j.current.selectionEnd??0;if(te===0&&X===0)return null;const q=te<=A[0].startInInput?1:A.findIndex(U=>U.startInInput-U.startSeparator.length>te);return q===-1?A.length-1:q-1},focusField:(te=0)=>{var X;(X=j.current)==null||X.focus(),I(te)},setSelectedSections:te=>I(te),isFieldFocused:()=>j.current===Fr(document)}),[j,f,A,I]),E=()=>{const te=j.current.selectionStart??0;let X;te<=A[0].startInInput||te>=A[A.length-1].endInInput?X=1:X=A.findIndex(U=>U.startInInput-U.startSeparator.length>te);const q=X===-1?A.length-1:X-1;I(q)},L=ve((...te)=>{o==null||o(...te);const X=j.current;clearTimeout(n.current),n.current=setTimeout(()=>{!X||X!==j.current||g==null&&(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?I("all"):E())})}),O=ve((te,...X)=>{te.isDefaultPrevented()||(s==null||s(te,...X),E())}),_=ve(te=>{if(i==null||i(te),te.preventDefault(),u||d)return;const X=te.clipboardData.getData("text");if(typeof f=="number"){const q=m.sections[f],U=/^[a-zA-Z]+$/.test(X),ee=/^[0-9]+$/.test(X),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(q.contentType==="letter"&&U||q.contentType==="digit"&&ee||q.contentType==="digit-with-letter"&&H){w(),b({activeSection:q,newSectionValue:X,shouldGoToNextSection:!0});return}if(U||ee)return}w(),C(X)}),N=ve((...te)=>{a==null||a(...te),I(null)}),z=ve(te=>{if(u)return;const X=te.target.value;if(X===""){w(),M();return}const q=te.nativeEvent.data,U=q&&q.length>1,ee=U?q:X,H=ac(ee);if(g==null||U){C(U?q:H);return}let Z;if(f==="all"&&H.length===1)Z=H;else{const ne=ac(y.getV6InputValueFromSections(A,R,t));let oe=-1,re=-1;for(let Re=0;Rede.end)return;const we=H.length-ne.length+de.end-ac(de.endSeparator||"").length;Z=H.slice(de.start+ac(de.startSeparator||"").length,we)}if(Z.length===0){SJ()&&T(ee),w(),k();return}x({keyPressed:Z,sectionIndex:g})}),G=h.useMemo(()=>c!==void 0?c:y.getV6InputValueFromSections(D(v.emptyValue),R,t),[c,y,D,v.emptyValue,R,t]),J=h.useMemo(()=>m.tempValueStrAndroid??y.getV6InputValueFromSections(m.sections,R,t),[m.sections,y,m.tempValueStrAndroid,R,t]);h.useEffect(()=>(j.current&&j.current===Fr(document)&&I("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const K=h.useMemo(()=>g==null||m.sections[g].contentType==="letter"?"text":"numeric",[g,m.sections]),W=!(j.current&&j.current===Fr(document))&&S;return{interactions:$,returnedValue:{readOnly:u,onBlur:N,onClick:O,onFocus:L,onPaste:_,inputRef:F,enableAccessibleFieldDOMStructure:!1,placeholder:G,inputMode:K,autoComplete:"off",value:W?"":J,onChange:z}}},eee=e=>{const t=Gt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:g,validator:m}=e,y=Bt(),v=YJ(e),{state:x,activeSectionIndex:w,parsedSelectedSections:b,setSelectedSections:C,clearValue:k,clearActiveSection:M,updateSectionValue:T,setTempAndroidValueStr:I,sectionsValueBoundaries:D,localizedDigits:S,timezone:R}=v,j=XJ({sections:x.sections,updateSectionValue:T,sectionsValueBoundaries:D,localizedDigits:S,setTempAndroidValueStr:I,timezone:R}),{resetCharacterQuery:F}=j,A=g.areValuesEqual(t,x.value,g.emptyValue),$=s?QJ:JJ,E=h.useMemo(()=>kJ(x.sections,y&&!s),[x.sections,y,s]),{returnedValue:L,interactions:O}=$(P({},e,v,j,{areAllSectionsEmpty:A,sectionOrder:E})),_=ve(B=>{if(l==null||l(B),!i)switch(!0){case((B.ctrlKey||B.metaKey)&&String.fromCharCode(B.keyCode)==="A"&&!B.shiftKey&&!B.altKey):{B.preventDefault(),C("all");break}case B.key==="ArrowRight":{if(B.preventDefault(),b==null)C(E.startIndex);else if(b==="all")C(E.endIndex);else{const W=E.neighbors[b].rightIndex;W!==null&&C(W)}break}case B.key==="ArrowLeft":{if(B.preventDefault(),b==null)C(E.endIndex);else if(b==="all")C(E.startIndex);else{const W=E.neighbors[b].leftIndex;W!==null&&C(W)}break}case B.key==="Delete":{if(B.preventDefault(),a)break;b==null||b==="all"?k():M(),F();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(B.key):{if(B.preventDefault(),a||w==null)break;const W=x.sections[w],te=f.getActiveDateManager(t,x,W),X=yJ(t,R,W,B.key,D,S,te.date,{minutesStep:o});T({activeSection:W,newSectionValue:X,shouldGoToNextSection:!1});break}}});at(()=>{O.syncSelectionToDOM()});const{hasValidationError:N}=w3({props:n,validator:m,timezone:R,value:x.value,onError:n.onError}),z=h.useMemo(()=>c!==void 0?c:N,[N,c]);h.useEffect(()=>{!z&&w==null&&F()},[x.referenceValue,w,z]),h.useEffect(()=>{x.tempValueStrAndroid!=null&&w!=null&&(F(),M())},[x.sections]),h.useImperativeHandle(r,()=>({getSections:()=>x.sections,getActiveSectionIndex:O.getActiveSectionIndexFromDOM,setSelectedSections:O.setSelectedSections,focusField:O.focusField,isFieldFocused:O.isFieldFocused}));const G=ve((B,...W)=>{B.preventDefault(),d==null||d(B,...W),k(),O.isFieldFocused()?C(E.startIndex):O.focusField(0)}),J={onKeyDown:_,onClear:G,error:z,clearable:!!(u&&!A&&!a&&!i)},K={disabled:i,readOnly:a};return P({},e.forwardedProps,J,K,L)},tee=["clearable","onClear","InputProps","sx","slots","slotProps"],nee=["ownerState"],ree=e=>{const t=fi(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ue(e,tee),c=(i==null?void 0:i.clearButton)??wn,u=et({elementType:c,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ue(u,nee),f=(i==null?void 0:i.clearIcon)??WZ,g=et({elementType:f,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return P({},l,{InputProps:P({},o,{endAdornment:p.jsxs(h.Fragment,{children:[n&&p.jsx(_0,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:p.jsx(c,P({},d,{onClick:r,children:p.jsx(f,P({fontSize:"small"},g))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},oee=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],see=(e,t)=>h.useMemo(()=>{const n=P({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return oee.forEach(o),x3.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),iee=h.createContext(null);function C3(e){const{contextValue:t,localeText:n,children:r}=e;return p.jsx(iee.Provider,{value:t,children:p.jsx(hl,{localeText:n,children:r})})}const aee=e=>{const t=Gt(),n=cp();return P({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Eo(t,e.minDate,n.minDate),maxDate:Eo(t,e.maxDate,n.maxDate)})},lee=e=>{const t=aee(e),{forwardedProps:n,internalProps:r}=see(t,"date");return eee({forwardedProps:n,internalProps:r,valueManager:Es,fieldValueManager:EJ,validator:up,valueType:"date"})};function cee(e){return xe("MuiPickersTextField",e)}ge("MuiPickersTextField",["root","focused","disabled","error","required"]);function uee(e){return xe("MuiPickersInputBase",e)}const Cc=ge("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function dee(e){return xe("MuiPickersSectionList",e)}const Ju=ge("MuiPickersSectionList",["root","section","sectionContent"]),fee=["slots","slotProps","elements","sectionListRef"],S3=Q("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),k3=Q("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),P3=Q("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),M3=Q("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),pee=e=>{const{classes:t}=e;return le({root:["root"],section:["section"],sectionContent:["sectionContent"]},dee,t)};function hee(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=(t==null?void 0:t.section)??k3,i=et({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=(t==null?void 0:t.sectionContent)??M3,l=et({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??P3,u=et({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=et({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return p.jsxs(s,P({},i,{children:[p.jsx(c,P({},u)),p.jsx(a,P({},l)),p.jsx(c,P({},d))]}))}const mee=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ue(r,fee),c=pee(r),u=h.useRef(null),d=tt(n,u),f=y=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${y} before the mount of the component.`);return u.current};h.useImperativeHandle(a,()=>({getRoot(){return f("getRoot")},getSectionContainer(y){return f("getSectionContainer").querySelector(`.${Ju.section}[data-sectionindex="${y}"]`)},getSectionContent(y){return f("getSectionContent").querySelector(`.${Ju.section}[data-sectionindex="${y}"] .${Ju.sectionContent}`)},getSectionIndexFromDOMElement(y){const v=f("getSectionIndexFromDOMElement");if(y==null||!v.contains(y))return null;let x=null;return y.classList.contains(Ju.section)?x=y:y.classList.contains(Ju.sectionContent)&&(x=y.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const g=(o==null?void 0:o.root)??S3,m=et({elementType:g,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return p.jsx(g,P({},m,{children:m.contentEditable?i.map(({content:y,before:v,after:x})=>`${v.children}${y.children}${x.children}`).join(""):p.jsx(h.Fragment,{children:i.map((y,v)=>p.jsx(hee,{slots:o,slotProps:s,element:y,classes:c},v))})}))}),gee=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],yee=e=>Math.round(e*1e5)/1e5,q0=Q("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>P({},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:`${yee(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),wC=Q(S3,{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}}]})),vee=Q(k3,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),xee=Q(M3,{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"})),bee=Q(P3,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),wee=Q("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(P({},iD)),Cee=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ae(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return le(d,uee,o)},CC=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:g,contentEditable:m,tabIndex:y,onInput:v,onPaste:x,onKeyDown:w,name:b,readOnly:C,inputProps:k,inputRef:M,sectionListRef:T}=r,I=ue(r,gee),D=h.useRef(null),S=tt(n,D),R=tt(k==null?void 0:k.ref,M),j=Bt(),F=eo();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const A=N=>{var z;if(F.disabled){N.stopPropagation();return}(z=F.onFocus)==null||z.call(F,N)};h.useEffect(()=>{F&&F.setAdornedStart(!!u)},[F,u]),h.useEffect(()=>{F&&(s?F.onEmpty():F.onFilled())},[F,s]);const $=P({},r,F,{isRtl:j}),E=Cee($),L=(f==null?void 0:f.root)||q0,O=et({elementType:L,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:I,additionalProps:{"aria-invalid":F.error,ref:S},className:E.root,ownerState:$}),_=(f==null?void 0:f.input)||wC;return p.jsxs(L,P({},O,{children:[u,p.jsx(mee,{sectionListRef:T,elements:o,contentEditable:m,tabIndex:y,className:E.sectionsContainer,onFocus:A,onBlur:F.onBlur,onInput:v,onPaste:x,onKeyDown:w,slots:{root:_,section:vee,sectionContent:xee,sectionSeparator:bee},slotProps:{root:{ownerState:$},sectionContent:{className:Cc.sectionContent},sectionSeparator:({position:N})=>({className:N==="before"?Cc.sectionBefore:Cc.sectionAfter})}}),c,d?d(P({},F)):null,p.jsx(wee,P({name:b,className:E.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:F.required,disabled:F.disabled},k,{ref:R}))]}))});function See(e){return xe("MuiPickersOutlinedInput",e)}const _o=P({},Cc,ge("MuiPickersOutlinedInput",["root","notchedOutline","input"])),kee=["children","className","label","notched","shrink"],Pee=Q("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}}),uM=Q("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Mee=Q("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 Iee(e){const{className:t,label:n}=e,r=ue(e,kee),o=n!=null&&n!=="",s=P({},e,{withLabel:o});return p.jsx(Pee,P({"aria-hidden":!0,className:t},r,{ownerState:s,children:p.jsx(Mee,{ownerState:s,children:o?p.jsx(uM,{children:n}):p.jsx(uM,{className:"notranslate",children:"​"})})}))}const Eee=["label","autoFocus","ownerState","notched"],Tee=Q(q0,{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 .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${_o.focused} .${_o.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${_o.disabled}`]:{[`& .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${_o.error} .${_o.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:{[`&.${_o.focused}:not(.${_o.error}) .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Ree=Q(wC,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Dee=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},See,t);return P({},t,r)},I3=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ue(r,Eee),l=eo(),c=P({},r,s,l,{color:(l==null?void 0:l.color)||"primary"}),u=Dee(c);return p.jsx(CC,P({slots:{root:Tee,input:Ree},renderSuffix:d=>p.jsx(Iee,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?p.jsxs(h.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});I3.muiName="Input";function $ee(e){return xe("MuiPickersFilledInput",e)}const ma=P({},Cc,ge("MuiPickersFilledInput",["root","underline","input"])),Aee=["label","autoFocus","disableUnderline","ownerState"],Oee=Q(q0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$d(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)",s=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}},[`&.${ma.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ma.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>{var a;return{props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[i])==null?void 0:a.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"},[`&.${ma.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ma.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(.${ma.disabled}, .${ma.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ma.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),jee=Q(wC,{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}}]}),Fee=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},$ee,t);return P({},t,o)},E3=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ue(r,Aee),l=eo(),c=P({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=Fee(c);return p.jsx(CC,P({slots:{root:Oee,input:jee},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});E3.muiName="Input";function Lee(e){return xe("MuiPickersFilledInput",e)}const ed=P({},Cc,ge("MuiPickersInput",["root","input"])),_ee=["label","autoFocus","disableUnderline","ownerState"],Nee=Q(q0,{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"},[`&.${ed.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ed.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(.${ed.disabled}, .${ed.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ed.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),zee=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},Lee,t);return P({},t,o)},T3=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ue(r,_ee),l=eo(),c=P({},r,i,l,{disableUnderline:s,color:(l==null?void 0:l.color)||"primary"}),u=zee(c);return p.jsx(CC,P({slots:{root:Nee}},a,{label:o,classes:u,ref:n}))});T3.muiName="Input";const Bee=["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"],Hee={standard:T3,filled:E3,outlined:I3},Vee=Q(Gs,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uee=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return le({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},cee,r)},Wee=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:g,inputRef:m,sectionListRef:y,elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:b,onKeyUp:C,onPaste:k,onInput:M,endAdornment:T,startAdornment:I,tabIndex:D,contentEditable:S,focused:R,value:j,onChange:F,fullWidth:A,id:$,name:E,helperText:L,FormHelperTextProps:O,label:_,InputLabelProps:N}=r,z=ue(r,Bee),G=h.useRef(null),J=tt(n,G),K=mt($),B=L&&K?`${K}-helper-text`:void 0,W=_&&K?`${K}-label`:void 0,te=P({},r,{color:a,disabled:l,error:c,focused:R,required:d,variant:u}),X=Uee(te),q=Hee[u];return p.jsxs(Vee,P({className:se(X.root,i),ref:J,focused:R,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:A,required:d,ownerState:te},z,{children:[p.jsx(rp,P({htmlFor:K,id:W},N,{children:_})),p.jsx(q,P({elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:b,onKeyUp:C,onInput:M,onPaste:k,endAdornment:T,startAdornment:I,tabIndex:D,contentEditable:S,value:j,onChange:F,id:K,fullWidth:A,inputProps:g,inputRef:m,sectionListRef:y,label:_,name:E,role:"group","aria-labelledby":W},f)),L&&p.jsx(r$,P({id:B},O,{children:L}))]}))}),Gee=["enableAccessibleFieldDOMStructure"],Kee=["InputProps","readOnly"],Yee=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],qee=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ue(e,Gee);if(t){const{InputProps:d,readOnly:f}=n,g=ue(n,Kee);return P({},g,{InputProps:P({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ue(n,Yee);return P({},u,{InputProps:P({},a??{},{readOnly:i}),inputProps:P({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},Xee=["slots","slotProps","InputProps","inputProps"],R3=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ue(r,Xee),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?Wee:qo),d=et({elementType:u,externalSlotProps:s==null?void 0:s.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=P({},a,d.inputProps),d.InputProps=P({},i,d.InputProps);const f=lee(d),g=qee(f),m=ree(P({},g,{slots:o,slotProps:s}));return p.jsx(u,P({},m))}),D3=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=ml();return h.useCallback(c=>up({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},Qee=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return P({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),P({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return P({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return P({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Zee=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=Gt(),g=h.useRef(Qee(!!c,s,f)).current,m=h.useMemo(()=>Es.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:fs.day}),[n,d]),[y,v]=h.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:f.startOfMonth(m),slideDirection:"left"});h.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:f.getTimezone(m)})},[m,f]);const x=h.useCallback(M=>{v(P({type:"changeMonth"},M)),l&&l(M.newMonth)},[l]),w=h.useCallback(M=>{const T=M;f.isSameMonth(T,y.currentMonth)||x({newMonth:f.startOfMonth(T),direction:f.isAfterDay(T,y.currentMonth)?"left":"right"})},[y.currentMonth,x,f]),b=D3({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),C=h.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),k=ve((M,T)=>{b(M)||v({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:T})});return{referenceDate:m,calendarState:y,changeMonth:w,changeFocusedDay:k,isDateDisabled:b,onMonthSwitchingAnimationEnd:C,handleChangeMonth:x}},Jee=e=>xe("MuiPickersFadeTransitionGroup",e);ge("MuiPickersFadeTransitionGroup",["root"]);const ete=e=>{const{classes:t}=e;return le({root:["root"]},Jee,t)},tte=Q(np,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function $3(e){const t=xt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ete(t),a=Dn();return o?n:p.jsx(tte,{className:se(i.root,r),children:p.jsx(yu,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}const nte=e=>xe("MuiPickersSlideTransition",e),to=ge("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),rte=["children","className","reduceAnimations","slideDirection","transKey","classes"],ote=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return le(r,nte,t)},ste=Q(np,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${to["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${to["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${to.slideEnterActive}`]:t.slideEnterActive},{[`.${to.slideExit}`]:t.slideExit},{[`.${to["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${to["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},[`& .${to["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${to["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${to.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${to.slideExit}`]:{transform:"translate(0%)"},[`& .${to["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${to["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function ite(e){const t=xt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ue(t,rte),a=ote(t),l=Dn();if(o)return p.jsx("div",{className:se(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return p.jsx(ste,{className:se(a.root,r),childFactory:u=>h.cloneElement(u,{classNames:c}),role:"presentation",children:p.jsx(Uw,P({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const ate=e=>xe("MuiDayCalendar",e);ge("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const lte=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],cte=["ownerState"],ute=e=>{const{classes:t}=e;return le({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},ate,t)},A3=(Sf+G0*2)*6,dte=Q("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fte=Q("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),pte=Q(Ce,{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})),hte=Q(Ce,{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})),mte=Q(Ce,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>P({},e.typography.caption,{width:Sf,height:Sf,padding:0,margin:`0 ${G0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),gte=Q("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:A3}),yte=Q(ite,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:A3}),vte=Q("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),xte=Q("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${G0}px 0`,display:"flex",justifyContent:"center"});function bte(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ue(e,lte);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:g,slotProps:m,timezone:y}=t,v=Gt(),x=W0(y),w=r!==null&&v.isSameDay(n,r),b=o.some(j=>v.isSameDay(j,n)),C=v.isSameDay(n,x),k=(g==null?void 0:g.day)??_J,M=et({elementType:k,externalSlotProps:m==null?void 0:m.day,additionalProps:P({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:P({},t,{day:n,selected:b})}),T=ue(M,cte),I=h.useMemo(()=>c||s(n),[c,s,n]),D=h.useMemo(()=>v.getMonth(n)!==i,[v,n,i]),S=h.useMemo(()=>{const j=v.startOfMonth(v.setMonth(n,i));return f?v.isSameDay(n,v.startOfWeek(j)):v.isSameDay(n,j)},[i,n,f,v]),R=h.useMemo(()=>{const j=v.endOfMonth(v.setMonth(n,i));return f?v.isSameDay(n,v.endOfWeek(j)):v.isSameDay(n,j)},[i,n,f,v]);return p.jsx(k,P({},T,{day:n,disabled:I,autoFocus:a&&w,today:C,outsideCurrentMonth:D,isFirstVisibleCell:S,isLastVisibleCell:R,selected:b,tabIndex:w?0:-1,"aria-selected":b,"aria-current":C?"date":void 0}))}function wte(e){const t=xt({props:e,name:"MuiDayCalendar"}),n=Gt(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:g=()=>p.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:y,disablePast:v,disableFuture:x,minDate:w,maxDate:b,shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:M,dayOfWeekFormatter:T=re=>n.format(re,"weekdayShort").charAt(0).toUpperCase(),hasFocus:I,onFocusedViewChange:D,gridLabelId:S,displayWeekNumber:R,fixedWeekNumber:j,autoFocus:F,timezone:A}=t,$=W0(A),E=ute(t),L=Bt(),O=D3({shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:M,minDate:w,maxDate:b,disablePast:v,disableFuture:x,timezone:A}),_=fi(),[N,z]=Nn({name:"DayCalendar",state:"hasFocus",controlled:I,default:F??!1}),[G,J]=h.useState(()=>a||$),K=ve(re=>{d||c(re)}),B=re=>{O(re)||(r(re),J(re),D==null||D(!0),z(!0))},W=ve((re,de)=>{switch(re.key){case"ArrowUp":B(n.addDays(de,-7)),re.preventDefault();break;case"ArrowDown":B(n.addDays(de,7)),re.preventDefault();break;case"ArrowLeft":{const ie=n.addDays(de,L?1:-1),we=n.addMonths(de,L?1:-1),Re=zd({utils:n,date:ie,minDate:L?ie:n.startOfMonth(we),maxDate:L?n.endOfMonth(we):ie,isDateDisabled:O,timezone:A});B(Re||ie),re.preventDefault();break}case"ArrowRight":{const ie=n.addDays(de,L?-1:1),we=n.addMonths(de,L?-1:1),Re=zd({utils:n,date:ie,minDate:L?n.startOfMonth(we):ie,maxDate:L?ie:n.endOfMonth(we),isDateDisabled:O,timezone:A});B(Re||ie),re.preventDefault();break}case"Home":B(n.startOfWeek(de)),re.preventDefault();break;case"End":B(n.endOfWeek(de)),re.preventDefault();break;case"PageUp":B(n.addMonths(de,1)),re.preventDefault();break;case"PageDown":B(n.addMonths(de,-1)),re.preventDefault();break}}),te=ve((re,de)=>B(de)),X=ve((re,de)=>{N&&n.isSameDay(G,de)&&(D==null||D(!1))}),q=n.getMonth(s),U=n.getYear(s),ee=h.useMemo(()=>i.filter(re=>!!re).map(re=>n.startOfDay(re)),[n,i]),H=`${U}-${q}`,Z=h.useMemo(()=>h.createRef(),[H]),ne=h.useMemo(()=>{const re=n.startOfMonth(s),de=n.endOfMonth(s);return O(G)||n.isAfterDay(G,de)||n.isBeforeDay(G,re)?zd({utils:n,date:G,minDate:re,maxDate:de,disablePast:v,disableFuture:x,isDateDisabled:O,timezone:A}):G},[s,x,v,G,O,n,A]),oe=h.useMemo(()=>{const re=n.getWeekArray(s);let de=n.addMonths(s,1);for(;j&&re.length{re.lengthp.jsx(pte,{variant:"caption",role:"columnheader","aria-label":n.format(re,"weekday"),className:E.weekDayLabel,children:T(re)},de.toString()))]}),l?p.jsx(gte,{className:E.loadingContainer,children:g()}):p.jsx(yte,P({transKey:H,onExited:u,reduceAnimations:f,slideDirection:m,className:se(o,E.slideTransition)},y,{nodeRef:Z,children:p.jsx(vte,{ref:Z,role:"rowgroup",className:E.monthContainer,children:oe.map((re,de)=>p.jsxs(xte,{role:"row",className:E.weekContainer,"aria-rowindex":de+1,children:[R&&p.jsx(mte,{className:E.weekNumber,role:"rowheader","aria-label":_.calendarWeekNumberAriaLabelText(n.getWeekNumber(re[0])),children:_.calendarWeekNumberText(n.getWeekNumber(re[0]))}),re.map((ie,we)=>p.jsx(bte,{parentProps:t,day:ie,selectedDays:ee,focusableDay:ne,onKeyDown:W,onFocus:te,onBlur:X,onDaySelect:K,isDateDisabled:O,currentMonthNumber:q,isViewFocused:N,"aria-colindex":we+1},ie.toString()))]},`week-${re[0]}`))})}))]})}function Cte(e){return xe("MuiPickersMonth",e)}const ph=ge("MuiPickersMonth",["root","monthButton","disabled","selected"]),Ste=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],kte=e=>{const{disabled:t,selected:n,classes:r}=e;return le({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Cte,r)},Pte=Q("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%"}}]}),Mte=Q("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${ph.disabled}`]:t.disabled},{[`&.${ph.selected}`]:t.selected}]})(({theme:e})=>P({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})`:be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ph.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ph.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ite=h.memo(function(t){const n=xt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:g,"aria-current":m,"aria-label":y,slots:v,slotProps:x}=n,w=ue(n,Ste),b=h.useRef(null),C=kte(n);at(()=>{var T;r&&((T=b.current)==null||T.focus())},[r]);const k=(v==null?void 0:v.monthButton)??Mte,M=et({elementType:k,externalSlotProps:x==null?void 0:x.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:b,type:"button",role:"radio","aria-current":m,"aria-checked":a,"aria-label":y,onClick:T=>u(T,l),onKeyDown:T=>d(T,l),onFocus:T=>f(T,l),onBlur:T=>g(T,l)},ownerState:n,className:C.monthButton});return p.jsx(Pte,P({className:se(C.root,o),ownerState:n},w,{children:p.jsx(k,P({},M))}))});function Ete(e){return xe("MuiMonthCalendar",e)}ge("MuiMonthCalendar",["root"]);const Tte=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Rte=e=>{const{classes:t}=e;return le({root:["root"]},Ete,t)};function Dte(e,t){const n=Gt(),r=cp(),o=xt({props:e,name:t});return P({disableFuture:!1,disablePast:!1},o,{minDate:Eo(n,o.minDate,r.minDate),maxDate:Eo(n,o.maxDate,r.maxDate)})}const $te=Q("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:K0,boxSizing:"border-box"}),Ate=h.forwardRef(function(t,n){const r=Dte(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:g,shouldDisableMonth:m,readOnly:y,autoFocus:v=!1,onMonthFocus:x,hasFocus:w,onFocusedViewChange:b,monthsPerRow:C=3,timezone:k,gridLabelId:M,slots:T,slotProps:I}=r,D=ue(r,Tte),{value:S,handleValueChange:R,timezone:j}=vC({name:"MonthCalendar",timezone:k,value:s,defaultValue:i,onChange:g,valueManager:Es}),F=W0(j),A=Bt(),$=Gt(),E=h.useMemo(()=>Es.getInitialReferenceValue({value:S,utils:$,props:r,timezone:j,referenceDate:a,granularity:fs.month}),[]),L=r,O=Rte(L),_=h.useMemo(()=>$.getMonth(F),[$,F]),N=h.useMemo(()=>S!=null?$.getMonth(S):null,[S,$]),[z,G]=h.useState(()=>N||$.getMonth(E)),[J,K]=Nn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:v??!1}),B=ve(H=>{K(H),b&&b(H)}),W=h.useCallback(H=>{const Z=$.startOfMonth(u&&$.isAfter(F,f)?F:f),ne=$.startOfMonth(c&&$.isBefore(F,d)?F:d),oe=$.startOfMonth(H);return $.isBefore(oe,Z)||$.isAfter(oe,ne)?!0:m?m(oe):!1},[c,u,d,f,F,m,$]),te=ve((H,Z)=>{if(y)return;const ne=$.setMonth(S??E,Z);R(ne)}),X=ve(H=>{W($.setMonth(S??E,H))||(G(H),B(!0),x&&x(H))});h.useEffect(()=>{G(H=>N!==null&&H!==N?N:H)},[N]);const q=ve((H,Z)=>{switch(H.key){case"ArrowUp":X((12+Z-3)%12),H.preventDefault();break;case"ArrowDown":X((12+Z+3)%12),H.preventDefault();break;case"ArrowLeft":X((12+Z+(A?1:-1))%12),H.preventDefault();break;case"ArrowRight":X((12+Z+(A?-1:1))%12),H.preventDefault();break}}),U=ve((H,Z)=>{X(Z)}),ee=ve((H,Z)=>{z===Z&&B(!1)});return p.jsx($te,P({ref:n,className:se(O.root,o),ownerState:L,role:"radiogroup","aria-labelledby":M},D,{children:mC($,S??E).map(H=>{const Z=$.getMonth(H),ne=$.format(H,"monthShort"),oe=$.format(H,"month"),re=Z===N,de=l||W(H);return p.jsx(Ite,{selected:re,value:Z,onClick:te,onKeyDown:q,autoFocus:J&&Z===z,disabled:de,tabIndex:Z===z&&!de?0:-1,onFocus:U,onBlur:ee,"aria-current":_===Z?"date":void 0,"aria-label":oe,monthsPerRow:C,slots:T,slotProps:I,children:ne},ne)})}))});function Ote(e){return xe("MuiPickersYear",e)}const hh=ge("MuiPickersYear",["root","yearButton","selected","disabled"]),jte=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Fte=e=>{const{disabled:t,selected:n,classes:r}=e;return le({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Ote,r)},Lte=Q("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%"}}]}),_te=Q("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${hh.disabled}`]:t.disabled},{[`&.${hh.selected}`]:t.selected}]})(({theme:e})=>P({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})`:be(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${hh.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${hh.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Nte=h.memo(function(t){const n=xt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:g,"aria-current":m,slots:y,slotProps:v}=n,x=ue(n,jte),w=h.useRef(null),b=Fte(n);at(()=>{var M;r&&((M=w.current)==null||M.focus())},[r]);const C=(y==null?void 0:y.yearButton)??_te,k=et({elementType:C,externalSlotProps:v==null?void 0:v.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":m,"aria-checked":a,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>g(M,l)},ownerState:n,className:b.yearButton});return p.jsx(Lte,P({className:se(b.root,o),ownerState:n},x,{children:p.jsx(C,P({},k))}))});function zte(e){return xe("MuiYearCalendar",e)}ge("MuiYearCalendar",["root"]);const Bte=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Hte=e=>{const{classes:t}=e;return le({root:["root"]},zte,t)};function Vte(e,t){const n=Gt(),r=cp(),o=xt({props:e,name:t});return P({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Eo(n,o.minDate,r.minDate),maxDate:Eo(n,o.maxDate,r.maxDate)})}const Ute=Q("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:K0,maxHeight:iJ,boxSizing:"border-box",position:"relative"}),Wte=h.forwardRef(function(t,n){const r=Vte(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onChange:m,readOnly:y,shouldDisableYear:v,onYearFocus:x,hasFocus:w,onFocusedViewChange:b,yearsOrder:C="asc",yearsPerRow:k,timezone:M,gridLabelId:T,slots:I,slotProps:D}=r,S=ue(r,Bte),{value:R,handleValueChange:j,timezone:F}=vC({name:"YearCalendar",timezone:M,value:i,defaultValue:a,onChange:m,valueManager:Es}),A=W0(F),$=Bt(),E=Gt(),L=h.useMemo(()=>Es.getInitialReferenceValue({value:R,utils:E,props:r,timezone:F,referenceDate:l,granularity:fs.year}),[]),O=r,_=Hte(O),N=h.useMemo(()=>E.getYear(A),[E,A]),z=h.useMemo(()=>R!=null?E.getYear(R):null,[R,E]),[G,J]=h.useState(()=>z||E.getYear(L)),[K,B]=Nn({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),W=ve(ie=>{B(ie),b&&b(ie)}),te=h.useCallback(ie=>{if(d&&E.isBeforeYear(ie,A)||u&&E.isAfterYear(ie,A)||g&&E.isBeforeYear(ie,g)||f&&E.isAfterYear(ie,f))return!0;if(!v)return!1;const we=E.startOfYear(ie);return v(we)},[u,d,f,g,A,v,E]),X=ve((ie,we)=>{if(y)return;const Re=E.setYear(R??L,we);j(Re)}),q=ve(ie=>{te(E.setYear(R??L,ie))||(J(ie),W(!0),x==null||x(ie))});h.useEffect(()=>{J(ie=>z!==null&&ie!==z?z:ie)},[z]);const U=C!=="desc"?k*1:k*-1,ee=$&&C==="asc"||!$&&C==="desc"?-1:1,H=ve((ie,we)=>{switch(ie.key){case"ArrowUp":q(we-U),ie.preventDefault();break;case"ArrowDown":q(we+U),ie.preventDefault();break;case"ArrowLeft":q(we-ee),ie.preventDefault();break;case"ArrowRight":q(we+ee),ie.preventDefault();break}}),Z=ve((ie,we)=>{q(we)}),ne=ve((ie,we)=>{G===we&&W(!1)}),oe=h.useRef(null),re=tt(n,oe);h.useEffect(()=>{if(o||oe.current===null)return;const ie=oe.current.querySelector('[tabindex="0"]');if(!ie)return;const we=ie.offsetHeight,Re=ie.offsetTop,Le=oe.current.clientHeight,Qe=oe.current.scrollTop,Me=Re+we;we>Le||Re{const we=E.getYear(ie),Re=we===z,Le=c||te(ie);return p.jsx(Nte,{selected:Re,value:we,onClick:X,onKeyDown:H,autoFocus:K&&we===G,disabled:Le,tabIndex:we===G&&!Le?0:-1,onFocus:Z,onBlur:ne,"aria-current":N===we?"date":void 0,yearsPerRow:k,slots:I,slotProps:D,children:E.format(ie,"year")},E.format(ie,"year"))})}))}),Gte=e=>xe("MuiPickersCalendarHeader",e),Kte=ge("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Yte=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],qte=["ownerState"],Xte=e=>{const{classes:t}=e;return le({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Gte,t)},Qte=Q("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}),Zte=Q("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>P({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Jte=Q("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),ene=Q(wn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Kte.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),tne=Q(BZ,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),nne=h.forwardRef(function(t,n){const r=fi(),o=Gt(),s=xt({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onMonthChange:m,onViewChange:y,view:v,reduceAnimations:x,views:w,labelId:b,className:C,timezone:k,format:M=`${o.formats.month} ${o.formats.year}`}=s,T=ue(s,Yte),I=s,D=Xte(s),S=(i==null?void 0:i.switchViewButton)??ene,R=et({elementType:S,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:I,className:D.switchViewButton}),j=(i==null?void 0:i.switchViewIcon)??tne,F=et({elementType:j,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:I,className:D.switchViewIcon}),A=ue(F,qte),$=()=>m(o.addMonths(l,1),"left"),E=()=>m(o.addMonths(l,-1),"right"),L=oJ(l,{disableFuture:u,maxDate:f,timezone:k}),O=sJ(l,{disablePast:d,minDate:g,timezone:k}),_=()=>{if(!(w.length===1||!y||c))if(w.length===2)y(w.find(z=>z!==v)||w[0]);else{const z=w.indexOf(v)!==0?0:1;y(w[z])}};if(w.length===1&&w[0]==="year")return null;const N=o.formatByString(l,M);return p.jsxs(Qte,P({},T,{ownerState:I,className:se(D.root,C),ref:n,children:[p.jsxs(Zte,{role:"presentation",onClick:_,ownerState:I,"aria-live":"polite",className:D.labelContainer,children:[p.jsx($3,{reduceAnimations:x,transKey:N,children:p.jsx(Jte,{id:b,ownerState:I,className:D.label,children:N})}),w.length>1&&!c&&p.jsx(S,P({},R,{children:p.jsx(j,P({},A))}))]}),p.jsx(yu,{in:v==="day",children:p.jsx(JZ,{slots:i,slotProps:a,onGoToPrevious:E,isPreviousDisabled:O,previousLabel:r.previousMonth,onGoToNext:$,isNextDisabled:L,nextLabel:r.nextMonth})})]}))}),rne="@media (prefers-reduced-motion: reduce)",Sc=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),dM=Sc&&Sc[1]?parseInt(Sc[1],10):null,fM=Sc&&Sc[2]?parseInt(Sc[2],10):null,one=dM&&dM<10||fM&&fM<13||!1,O3=()=>I$(rne,{defaultMatches:!1})||one,sne=e=>xe("MuiDateCalendar",e);ge("MuiDateCalendar",["root","viewTransitionContainer"]);const ine=["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"],ane=e=>{const{classes:t}=e;return le({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},sne,t)};function lne(e,t){const n=Gt(),r=cp(),o=O3(),s=xt({props:e,name:t});return P({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>p.jsx("span",{children:"..."})),minDate:Eo(n,s.minDate,r.minDate),maxDate:Eo(n,s.maxDate,r.maxDate)})}const cne=Q(aJ,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:hC}),une=Q($3,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),dne=h.forwardRef(function(t,n){const r=Gt(),o=mt(),s=lne(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:g,onYearChange:m,onMonthChange:y,reduceAnimations:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,view:C,views:k,openTo:M,className:T,disabled:I,readOnly:D,minDate:S,maxDate:R,disableHighlightToday:j,focusedView:F,onFocusedViewChange:A,showDaysOutsideCurrentMonth:$,fixedWeekNumber:E,dayOfWeekFormatter:L,slots:O,slotProps:_,loading:N,renderLoading:z,displayWeekNumber:G,yearsOrder:J,yearsPerRow:K,monthsPerRow:B,timezone:W}=s,te=ue(s,ine),{value:X,handleValueChange:q,timezone:U}=vC({name:"DateCalendar",timezone:W,value:l,defaultValue:c,onChange:g,valueManager:Es}),{view:ee,setView:H,focusedView:Z,setFocusedView:ne,goToNextView:oe,setValueAndGoToNextView:re}=c3({view:C,views:k,openTo:M,onChange:q,onViewChange:a,autoFocus:i,focusedView:F,onFocusedViewChange:A}),{referenceDate:de,calendarState:ie,changeFocusedDay:we,changeMonth:Re,handleChangeMonth:Le,isDateDisabled:Qe,onMonthSwitchingAnimationEnd:Me}=Zee({value:X,referenceDate:u,reduceAnimations:v,onMonthChange:y,minDate:S,maxDate:R,shouldDisableDate:x,disablePast:f,disableFuture:d,timezone:U}),Ee=I&&X||S,Ve=I&&X||R,Ge=`${o}-grid-label`,Oe=Z!==null,je=(O==null?void 0:O.calendarHeader)??nne,Ue=et({elementType:je,externalSlotProps:_==null?void 0:_.calendarHeader,additionalProps:{views:k,view:ee,currentMonth:ie.currentMonth,onViewChange:H,onMonthChange:(ct,jt)=>Le({newMonth:ct,direction:jt}),minDate:Ee,maxDate:Ve,disabled:I,disablePast:f,disableFuture:d,reduceAnimations:v,timezone:U,labelId:Ge},ownerState:s}),Te=ve(ct=>{const jt=r.startOfMonth(ct),ln=r.endOfMonth(ct),en=Qe(ct)?zd({utils:r,date:ct,minDate:r.isBefore(S,jt)?jt:S,maxDate:r.isAfter(R,ln)?ln:R,disablePast:f,disableFuture:d,isDateDisabled:Qe,timezone:U}):ct;en?(re(en,"finish"),y==null||y(jt)):(oe(),Re(jt)),we(en,!0)}),Ie=ve(ct=>{const jt=r.startOfYear(ct),ln=r.endOfYear(ct),en=Qe(ct)?zd({utils:r,date:ct,minDate:r.isBefore(S,jt)?jt:S,maxDate:r.isAfter(R,ln)?ln:R,disablePast:f,disableFuture:d,isDateDisabled:Qe,timezone:U}):ct;en?(re(en,"finish"),m==null||m(en)):(oe(),Re(jt)),we(en,!0)}),We=ve(ct=>q(ct&&Zm(r,ct,X??de),"finish",ee));h.useEffect(()=>{X!=null&&r.isValid(X)&&Re(X)},[X]);const Ct=s,ye=ane(Ct),$e={disablePast:f,disableFuture:d,maxDate:R,minDate:S},Xe={disableHighlightToday:j,readOnly:D,disabled:I,timezone:U,gridLabelId:Ge,slots:O,slotProps:_},ht=h.useRef(ee);h.useEffect(()=>{ht.current!==ee&&(Z===ht.current&&ne(ee,!0),ht.current=ee)},[Z,ne,ee]);const Qn=h.useMemo(()=>[X],[X]);return p.jsxs(cne,P({ref:n,className:se(ye.root,T),ownerState:Ct},te,{children:[p.jsx(je,P({},Ue,{slots:O,slotProps:_})),p.jsx(une,{reduceAnimations:v,className:ye.viewTransitionContainer,transKey:ee,ownerState:Ct,children:p.jsxs("div",{children:[ee==="year"&&p.jsx(Wte,P({},$e,Xe,{value:X,onChange:Ie,shouldDisableYear:b,hasFocus:Oe,onFocusedViewChange:ct=>ne("year",ct),yearsOrder:J,yearsPerRow:K,referenceDate:de})),ee==="month"&&p.jsx(Ate,P({},$e,Xe,{hasFocus:Oe,className:T,value:X,onChange:Te,shouldDisableMonth:w,onFocusedViewChange:ct=>ne("month",ct),monthsPerRow:B,referenceDate:de})),ee==="day"&&p.jsx(wte,P({},ie,$e,Xe,{onMonthSwitchingAnimationEnd:Me,onFocusedDayChange:we,reduceAnimations:v,selectedDays:Qn,onSelectedDaysChange:We,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,hasFocus:Oe,onFocusedViewChange:ct=>ne("day",ct),showDaysOutsideCurrentMonth:$,fixedWeekNumber:E,dayOfWeekFormatter:L,displayWeekNumber:G,loading:N,renderLoading:z}))]})})]}))});function fne(e){return xe("MuiPickersToolbar",e)}ge("MuiPickersToolbar",["root","content"]);const pne=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],hne=e=>{const{classes:t,isLandscape:n}=e;return le({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},fne,t)},mne=Q("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"}}]})),gne=Q("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"}}]}),yne=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ue(r,pne),u=r,d=hne(u);return a?null:p.jsxs(mne,P({ref:n,className:se(d.root,s),ownerState:u},c,{children:[p.jsx(Ce,{color:"text.secondary",variant:"overline",id:l,children:i}),p.jsx(gne,{className:d.content,ownerState:u,children:o})]}))});function vne(e){return xe("MuiDatePickerToolbar",e)}ge("MuiDatePickerToolbar",["root","title"]);const xne=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],bne=e=>{const{classes:t}=e;return le({root:["root"],title:["title"]},vne,t)},wne=Q(yne,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cne=Q(Ce,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Sne=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ue(r,xne),d=Gt(),f=fi(),g=bne(r),m=h.useMemo(()=>{if(!o)return a;const v=gC(d,{format:i,views:l},!0);return d.formatByString(o,v)},[o,i,a,d,l]),y=r;return p.jsx(wne,P({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:s,className:se(g.root,c)},u,{children:p.jsx(Cne,{variant:"h4",align:s?"left":"center",ownerState:y,className:g.title,children:m})}))});function j3(e,t){const n=Gt(),r=cp(),o=xt({props:e,name:t}),s=h.useMemo(()=>{var i;return((i=o.localeText)==null?void 0:i.toolbarTitle)==null?o.localeText:P({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return P({},o,{localeText:s},eJ({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Eo(n,o.minDate,r.minDate),maxDate:Eo(n,o.maxDate,r.maxDate),slots:P({toolbar:Sne},o.slots)})}function kne(e){return xe("MuiPickersPopper",e)}ge("MuiPickersPopper",["root","paper"]);const Pne=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Mne=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},kne,t)},Ine=Q(di,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Ene=Q(Ao,{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 Tne(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=ve(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=zt(o.current);if(!o.current||"clientX"in l&&Tne(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)}),a=()=>{r.current=!0};return h.useEffect(()=>{if(e){const l=zt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),h.useEffect(()=>{if(e){const l=zt(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const Dne=h.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ue(e,Pne),d=P({},o,{placement:r}),f=et({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return p.jsx(n,P({},u,f,{onClick:g=>{var m;l(g),(m=f.onClick)==null||m.call(f,g)},onTouchStart:g=>{var m;c(g),(m=f.onTouchStart)==null||m.call(f,g)},ownerState:d,children:s}))});function $ne(e){const t=xt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:g}=t;h.useEffect(()=>{function $(E){l&&E.key==="Escape"&&a()}return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[a,l]);const m=h.useRef(null);h.useEffect(()=>{c==="tooltip"||s&&!s()||(l?m.current=Fr(document):m.current&&m.current instanceof HTMLElement&&setTimeout(()=>{m.current instanceof HTMLElement&&m.current.focus()}))},[l,c,s]);const[y,v,x]=Rne(l,i??a),w=h.useRef(null),b=tt(w,o),C=tt(b,y),k=t,M=Mne(k),T=O3(),I=g??T,D=$=>{$.key==="Escape"&&($.stopPropagation(),a())},S=(d==null?void 0:d.desktopTransition)??I?yu:Za,R=(d==null?void 0:d.desktopTrapFocus)??Kw,j=(d==null?void 0:d.desktopPaper)??Ene,F=(d==null?void 0:d.popper)??Ine,A=et({elementType:F,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:D},className:M.root,ownerState:t});return p.jsx(F,P({},A,{children:({TransitionProps:$,placement:E})=>p.jsx(R,P({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:p.jsx(S,P({},$,f==null?void 0:f.desktopTransition,{children:p.jsx(Dne,{PaperComponent:j,ownerState:k,popperPlacement:E,ref:C,onPaperClick:v,onPaperTouchStart:x,paperClasses:M.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const Ane=({open:e,onOpen:t,onClose:n})=>{const r=h.useRef(typeof e=="boolean").current,[o,s]=h.useState(!1);h.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=h.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},One=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},jne=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Fne=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},Lne=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u}=e,{current:d}=h.useRef(l),{current:f}=h.useRef(a!==void 0),g=Gt(),m=ml(),{isOpen:y,setIsOpen:v}=Ane(e),{timezone:x,value:w,handleValueChange:b}=yC({timezone:u,value:a,defaultValue:d,onChange:i,valueManager:t}),[C,k]=h.useState(()=>{let B;return w!==void 0?B=w:d!==void 0?B=d:B=t.emptyValue,{draft:B,lastPublishedValue:B,lastCommittedValue:B,lastControlledValue:w,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:M}=w3({props:e,validator:o,timezone:x,value:C.draft,onError:e.onError}),T=ve(B=>{const W={action:B,dateState:C,hasChanged:H=>!t.areValuesEqual(g,B.value,H),isControlled:f,closeOnSelect:c},te=One(W),X=jne(W),q=Fne(W);k(H=>P({},H,{draft:B.value,lastPublishedValue:te?B.value:H.lastPublishedValue,lastCommittedValue:X?B.value:H.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let U=null;const ee=()=>(U||(U={validationError:B.name==="setValueFromField"?B.context.validationError:M(B.value)},B.name==="setValueFromShortcut"&&(U.shortcut=B.shortcut)),U);te&&b(B.value,ee()),X&&s&&s(B.value,ee()),q&&v(!1)});if(w!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(g,C.lastControlledValue,w))){const B=t.areValuesEqual(g,C.draft,w);k(W=>P({},W,{lastControlledValue:w},B?{}:{lastCommittedValue:w,lastPublishedValue:w,draft:w,hasBeenModifiedSinceMount:!0}))}const I=ve(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),D=ve(()=>{T({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),S=ve(()=>{T({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),R=ve(()=>{T({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=ve(()=>{T({value:t.getTodayValue(g,x,n),name:"setValueFromAction",pickerAction:"today"})}),F=ve(B=>{B.preventDefault(),v(!0)}),A=ve(B=>{B==null||B.preventDefault(),v(!1)}),$=ve((B,W="partial")=>T({name:"setValueFromView",value:B,selectionState:W})),E=ve((B,W,te)=>T({name:"setValueFromShortcut",value:B,changeImportance:W,shortcut:te})),L=ve((B,W)=>T({name:"setValueFromField",value:B,context:W})),O={onClear:I,onAccept:D,onDismiss:S,onCancel:R,onSetToday:j,onOpen:F,onClose:A},_={value:C.draft,onChange:L},N=h.useMemo(()=>t.cleanValue(g,C.draft),[g,t,C.draft]),z={value:N,onChange:$,onClose:A,open:y},J=P({},O,{value:N,onChange:$,onSelectShortcut:E,isValid:B=>{const W=o({adapter:m,value:B,timezone:x,props:e});return!t.hasError(W)}}),K=h.useMemo(()=>({onOpen:F,onClose:A,open:y}),[y,A,F]);return{open:y,fieldProps:_,viewProps:z,layoutProps:J,actions:O,contextValue:K}},_ne=["className","sx"],Nne=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:g,timezone:m}=e,y=ue(e,_ne),{view:v,setView:x,defaultView:w,focusedView:b,setFocusedView:C,setValueAndGoToNextView:k}=c3({view:c,views:u,openTo:d,onChange:i,onViewChange:f,autoFocus:r}),{hasUIView:M,viewModeLookup:T}=h.useMemo(()=>u.reduce((A,$)=>{let E;return g[$]!=null?E="UI":E="field",A.viewModeLookup[$]=E,E==="UI"&&(A.hasUIView=!0),A},{hasUIView:!1,viewModeLookup:{}}),[g,u]),I=h.useMemo(()=>u.reduce((A,$)=>g[$]!=null&&nJ($)?A+1:A,0),[g,u]),D=T[v],S=ve(()=>D==="UI"),[R,j]=h.useState(D==="UI"?v:null);return R!==v&&T[v]==="UI"&&j(v),at(()=>{D==="field"&&a&&(l(),setTimeout(()=>{var A,$;(A=s==null?void 0:s.current)==null||A.setSelectedSections(v),($=s==null?void 0:s.current)==null||$.focusField(v)}))},[v]),at(()=>{if(!a)return;let A=v;D==="field"&&R!=null&&(A=R),A!==w&&T[A]==="UI"&&T[w]==="UI"&&(A=w),A!==v&&x(A),C(A,!0)},[a]),{hasUIView:M,shouldRestoreFocus:S,layoutProps:{views:u,view:R,onViewChange:x},renderCurrentView:()=>{if(R==null)return null;const A=g[R];if(A==null)return null;const $=P({},y,n,t,{views:u,timezone:m,onChange:k,view:R,onViewChange:x,focusedView:b,onFocusedViewChange:C,showViewSwitcher:I>1,timeViewsCount:I});return o?o(g,R,$):A($)}}};function pM(){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 zne=(e,t)=>{const[n,r]=h.useState(pM);return at(()=>{const s=()=>{r(pM())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),TJ(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Bne=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=zne(n.views,o),i=Bt();return{layoutProps:P({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Hne(e){const{props:t,pickerValueResponse:n}=e;return h.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 F3=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Lne({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Nne({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=Bne({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=Hne({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 L3(e){return xe("MuiPickersLayout",e)}const ga=ge("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Vne=["onAccept","onClear","onCancel","onSetToday","actions"];function Une(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ue(e,Vne),a=fi();if(s==null||s.length===0)return null;const l=s==null?void 0:s.map(c=>{switch(c){case"clear":return p.jsx(rt,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return p.jsx(rt,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return p.jsx(rt,{onClick:t,children:a.okButtonLabel},c);case"today":return p.jsx(rt,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return p.jsx(k$,P({},i,{children:l}))}const Wne=["items","changeImportance","isLandscape","onChange","isValid"],Gne=["getValue"];function Kne(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ue(e,Wne);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ue(a,Gne);const u=l({isValid:o});return P({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return p.jsx(JD,P({dense:!0,sx:[{maxHeight:hC,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>p.jsx(zY,{children:p.jsx(ms,P({},a))},a.id??a.label))}))}function Yne(e){return e.view!==null}const qne=e=>{const{classes:t,isLandscape:n}=e;return le({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},L3,t)},Xne=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:g,disabled:m,readOnly:y,children:v,slots:x,slotProps:w}=e,b=qne(e),C=(x==null?void 0:x.actionBar)??Une,k=et({elementType:C,externalSlotProps:w==null?void 0:w.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:b.actionBar,ownerState:P({},e,{wrapperVariant:t})}),M=p.jsx(C,P({},k)),T=x==null?void 0:x.toolbar,I=et({elementType:T,externalSlotProps:w==null?void 0:w.toolbar,additionalProps:{isLandscape:g,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:m,readOnly:y},className:b.toolbar,ownerState:P({},e,{wrapperVariant:t})}),D=Yne(I)&&T?p.jsx(T,P({},I)):null,S=v,R=x==null?void 0:x.tabs,j=i&&R?p.jsx(R,P({view:i,onViewChange:l,className:b.tabs},w==null?void 0:w.tabs)):null,F=(x==null?void 0:x.shortcuts)??Kne,A=et({elementType:F,externalSlotProps:w==null?void 0:w.shortcuts,additionalProps:{isValid:f,isLandscape:g,onChange:d},className:b.shortcuts,ownerState:{isValid:f,isLandscape:g,onChange:d,wrapperVariant:t}}),$=i&&F?p.jsx(F,P({},A)):null;return{toolbar:D,content:S,tabs:j,actionBar:M,shortcuts:$}},Qne=e=>{const{isLandscape:t,classes:n}=e;return le({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},L3,n)},Zne=Q("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${ga.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${ga.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${ga.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${ga.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${ga.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${ga.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${ga.shortcuts}`]:{gridColumn:3}}}]}),Jne=Q("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),_3=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=Xne(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,g=Qne(r);return p.jsxs(Zne,{ref:n,sx:c,className:se(g.root,u),ownerState:r,children:[d?l:o,d?o:l,p.jsx(Jne,{className:g.contentWrapper,children:f==="desktop"?p.jsxs(h.Fragment,{children:[s,i]}):p.jsxs(h.Fragment,{children:[i,s]})}),a]})}),ere=["props","getOpenDialogAriaText"],tre=["ownerState"],nre=["ownerState"],rre=e=>{var oe;let{props:t,getOpenDialogAriaText:n}=e,r=ue(e,ere);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:m,label:y,inputRef:v,readOnly:x,disabled:w,autoFocus:b,localeText:C,reduceAnimations:k}=t,M=h.useRef(null),T=h.useRef(null),I=mt(),D=((oe=s==null?void 0:s.toolbar)==null?void 0:oe.hidden)??!1,{open:S,actions:R,hasUIView:j,layoutProps:F,renderCurrentView:A,shouldRestoreFocus:$,fieldProps:E,contextValue:L,ownerState:O}=F3(P({},r,{props:t,fieldRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),_=o.inputAdornment??_0,N=et({elementType:_,externalSlotProps:s==null?void 0:s.inputAdornment,additionalProps:{position:"end"},ownerState:t}),z=ue(N,tre),G=o.openPickerButton??wn,J=et({elementType:G,externalSlotProps:s==null?void 0:s.openPickerButton,additionalProps:{disabled:w||x,onClick:S?R.onClose:R.onOpen,"aria-label":n(E.value),edge:z.position},ownerState:t}),K=ue(J,nre),B=o.openPickerIcon,W=et({elementType:B,externalSlotProps:s==null?void 0:s.openPickerIcon,ownerState:O}),te=o.field,X=et({elementType:te,externalSlotProps:s==null?void 0:s.field,additionalProps:P({},E,D&&{id:I},{readOnly:x,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:y,name:m,autoFocus:b&&!t.open,focused:S?!0:void 0},v?{inputRef:v}:{}),ownerState:t});j&&(X.InputProps=P({},X.InputProps,{ref:M},!t.disableOpenPicker&&{[`${z.position}Adornment`]:p.jsx(_,P({},z,{children:p.jsx(G,P({},K,{children:p.jsx(B,P({},W))}))}))}));const q=P({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},X.slots),U=o.layout??_3;let ee=I;D&&(y?ee=`${I}-label`:ee=void 0);const H=P({},s,{toolbar:P({},s==null?void 0:s.toolbar,{titleId:I}),popper:P({"aria-labelledby":ee},s==null?void 0:s.popper)}),Z=tt(T,X.unstableFieldRef);return{renderPicker:()=>p.jsxs(C3,{contextValue:L,localeText:C,children:[p.jsx(te,P({},X,{slots:q,slotProps:H,unstableFieldRef:Z})),p.jsx($ne,P({role:"dialog",placement:"bottom-start",anchorEl:M.current},R,{open:S,slots:o,slotProps:H,shouldRestoreFocus:$,reduceAnimations:k,children:p.jsx(U,P({},F,H==null?void 0:H.layout,{slots:o,slotProps:H,children:A()}))}))]})}},kc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:g,maxDate:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:x,reduceAnimations:w,onMonthChange:b,monthsPerRow:C,onYearChange:k,yearsOrder:M,yearsPerRow:T,slots:I,slotProps:D,loading:S,renderLoading:R,disableHighlightToday:j,readOnly:F,disabled:A,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:E,sx:L,autoFocus:O,fixedWeekNumber:_,displayWeekNumber:N,timezone:z})=>p.jsx(dne,{view:e,onViewChange:t,views:n.filter(rM),focusedView:r&&rM(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:g,maxDate:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:x,reduceAnimations:w,onMonthChange:b,monthsPerRow:C,onYearChange:k,yearsOrder:M,yearsPerRow:T,slots:I,slotProps:D,loading:S,renderLoading:R,disableHighlightToday:j,readOnly:F,disabled:A,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:E,sx:L,autoFocus:O,fixedWeekNumber:_,displayWeekNumber:N,timezone:z}),N3=h.forwardRef(function(t,n){var c,u;const r=fi(),o=Gt(),s=j3(t,"MuiDesktopDatePicker"),i=P({day:kc,month:kc,year:kc},s.viewRenderers),a=P({},s,{viewRenderers:i,format:gC(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:P({openPickerIcon:UZ,field:R3},s.slots),slotProps:P({},s.slotProps,{field:d=>{var f;return P({},k0((f=s.slotProps)==null?void 0:f.field,d),b3(s),{ref:n})},toolbar:P({hidden:!0},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=rre({props:a,valueManager:Es,valueType:"date",getOpenDialogAriaText:a3({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=a.localeText)==null?void 0:u.openDatePickerDialogue}),validator:up});return l()});N3.propTypes={autoFocus:V.bool,className:V.string,closeOnSelect:V.bool,dayOfWeekFormatter:V.func,defaultValue:V.object,disabled:V.bool,disableFuture:V.bool,disableHighlightToday:V.bool,disableOpenPicker:V.bool,disablePast:V.bool,displayWeekNumber:V.bool,enableAccessibleFieldDOMStructure:V.any,fixedWeekNumber:V.number,format:V.string,formatDensity:V.oneOf(["dense","spacious"]),inputRef:oD,label:V.node,loading:V.bool,localeText:V.object,maxDate:V.object,minDate:V.object,monthsPerRow:V.oneOf([3,4]),name:V.string,onAccept:V.func,onChange:V.func,onClose:V.func,onError:V.func,onMonthChange:V.func,onOpen:V.func,onSelectedSectionsChange:V.func,onViewChange:V.func,onYearChange:V.func,open:V.bool,openTo:V.oneOf(["day","month","year"]),orientation:V.oneOf(["landscape","portrait"]),readOnly:V.bool,reduceAnimations:V.bool,referenceDate:V.object,renderLoading:V.func,selectedSections:V.oneOfType([V.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),V.number]),shouldDisableDate:V.func,shouldDisableMonth:V.func,shouldDisableYear:V.func,showDaysOutsideCurrentMonth:V.bool,slotProps:V.object,slots:V.object,sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),timezone:V.string,value:V.object,view:V.oneOf(["day","month","year"]),viewRenderers:V.shape({day:V.func,month:V.func,year:V.func}),views:V.arrayOf(V.oneOf(["day","month","year"]).isRequired),yearsOrder:V.oneOf(["asc","desc"]),yearsPerRow:V.oneOf([3,4])};const ore=Q(S$)({[`& .${Nd.container}`]:{outline:0},[`& .${Nd.paper}`]:{outline:0,minWidth:K0}}),sre=Q(P$)({"&:first-of-type":{padding:0}});function ire(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=(o==null?void 0:o.dialog)??ore,a=(o==null?void 0:o.mobileTransition)??yu;return p.jsx(i,P({open:r,onClose:n},s==null?void 0:s.dialog,{TransitionComponent:a,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:p.jsx(sre,{children:t})}))}const are=["props","getOpenDialogAriaText"],lre=e=>{var z;let{props:t,getOpenDialogAriaText:n}=e,r=ue(e,are);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:m,label:y,inputRef:v,readOnly:x,disabled:w,localeText:b}=t,C=h.useRef(null),k=mt(),M=((z=s==null?void 0:s.toolbar)==null?void 0:z.hidden)??!1,{open:T,actions:I,layoutProps:D,renderCurrentView:S,fieldProps:R,contextValue:j}=F3(P({},r,{props:t,fieldRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=o.field,A=et({elementType:F,externalSlotProps:s==null?void 0:s.field,additionalProps:P({},R,M&&{id:k},!(w||x)&&{onClick:I.onOpen,onKeyDown:RJ(I.onOpen)},{readOnly:x??!0,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:y,name:m},v?{inputRef:v}:{}),ownerState:t});A.inputProps=P({},A.inputProps,{"aria-label":n(R.value)});const $=P({textField:o.textField},A.slots),E=o.layout??_3;let L=k;M&&(y?L=`${k}-label`:L=void 0);const O=P({},s,{toolbar:P({},s==null?void 0:s.toolbar,{titleId:k}),mobilePaper:P({"aria-labelledby":L},s==null?void 0:s.mobilePaper)}),_=tt(C,A.unstableFieldRef);return{renderPicker:()=>p.jsxs(C3,{contextValue:j,localeText:b,children:[p.jsx(F,P({},A,{slots:$,slotProps:O,unstableFieldRef:_})),p.jsx(ire,P({},I,{open:T,slots:o,slotProps:O,children:p.jsx(E,P({},D,O==null?void 0:O.layout,{slots:o,slotProps:O,children:S()}))}))]})}},z3=h.forwardRef(function(t,n){var c,u;const r=fi(),o=Gt(),s=j3(t,"MuiMobileDatePicker"),i=P({day:kc,month:kc,year:kc},s.viewRenderers),a=P({},s,{viewRenderers:i,format:gC(o,s,!1),slots:P({field:R3},s.slots),slotProps:P({},s.slotProps,{field:d=>{var f;return P({},k0((f=s.slotProps)==null?void 0:f.field,d),b3(s),{ref:n})},toolbar:P({hidden:!1},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=lre({props:a,valueManager:Es,valueType:"date",getOpenDialogAriaText:a3({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=a.localeText)==null?void 0:u.openDatePickerDialogue}),validator:up});return l()});z3.propTypes={autoFocus:V.bool,className:V.string,closeOnSelect:V.bool,dayOfWeekFormatter:V.func,defaultValue:V.object,disabled:V.bool,disableFuture:V.bool,disableHighlightToday:V.bool,disableOpenPicker:V.bool,disablePast:V.bool,displayWeekNumber:V.bool,enableAccessibleFieldDOMStructure:V.any,fixedWeekNumber:V.number,format:V.string,formatDensity:V.oneOf(["dense","spacious"]),inputRef:oD,label:V.node,loading:V.bool,localeText:V.object,maxDate:V.object,minDate:V.object,monthsPerRow:V.oneOf([3,4]),name:V.string,onAccept:V.func,onChange:V.func,onClose:V.func,onError:V.func,onMonthChange:V.func,onOpen:V.func,onSelectedSectionsChange:V.func,onViewChange:V.func,onYearChange:V.func,open:V.bool,openTo:V.oneOf(["day","month","year"]),orientation:V.oneOf(["landscape","portrait"]),readOnly:V.bool,reduceAnimations:V.bool,referenceDate:V.object,renderLoading:V.func,selectedSections:V.oneOfType([V.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),V.number]),shouldDisableDate:V.func,shouldDisableMonth:V.func,shouldDisableYear:V.func,showDaysOutsideCurrentMonth:V.bool,slotProps:V.object,slots:V.object,sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),timezone:V.string,value:V.object,view:V.oneOf(["day","month","year"]),viewRenderers:V.shape({day:V.func,month:V.func,year:V.func}),views:V.arrayOf(V.oneOf(["day","month","year"]).isRequired),yearsOrder:V.oneOf(["asc","desc"]),yearsPerRow:V.oneOf([3,4])};const cre=["desktopModeMediaQuery"],To=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=DJ}=r,s=ue(r,cre);return I$(o,{defaultMatches:!0})?p.jsx(N3,P({ref:n},s)):p.jsx(z3,P({ref:n},s))});var B3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",m="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var $=["th","st","nd","rd"],E=A%100;return"["+A+($[(E-20)%10]||$[E]||$[0])+"]"}},b=function(A,$,E){var L=String(A);return!L||L.length>=$?A:""+Array($+1-L.length).join(E)+A},C={s:b,z:function(A){var $=-A.utcOffset(),E=Math.abs($),L=Math.floor(E/60),O=E%60;return($<=0?"+":"-")+b(L,2,"0")+":"+b(O,2,"0")},m:function A($,E){if($.date()1)return A(N[0])}else{var z=$.name;M[z]=$,O=z}return!L&&O&&(k=O),O||!L&&k},S=function(A,$){if(I(A))return A.clone();var E=typeof $=="object"?$:{};return E.date=A,E.args=arguments,new j(E)},R=C;R.l=D,R.i=I,R.w=function(A,$){return S(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var j=function(){function A(E){this.$L=D(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[T]=!0}var $=A.prototype;return $.parse=function(E){this.$d=function(L){var O=L.date,_=L.utc;if(O===null)return new Date(NaN);if(R.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var N=O.match(v);if(N){var z=N[2]-1||0,G=(N[7]||"0").substring(0,3);return _?new Date(Date.UTC(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)):new Date(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,G)}}return new Date(O)}(E),this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return R},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(E,L){var O=S(E);return this.startOf(L)<=O&&O<=this.endOf(L)},$.isAfter=function(E,L){return S(E)25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var f=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(H3);var dre=H3.exports;const fre=ai(dre);var V3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(x){this[v]=+x}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var w=x.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(v)}],f=function(v){var x=l[v];return x&&(x.indexOf?x:x.s.concat(x.f))},g=function(v,x){var w,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,x))>-1){w=C>12;break}}else w=v===(x?"pm":"PM");return w},m={A:[a,function(v){this.afternoon=g(v,!1)}],a:[a,function(v){this.afternoon=g(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(v){var x=l.ordinal,w=v.match(/\d+/);if(this.day=w[0],x)for(var b=1;b<=31;b+=1)x(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(v){var x=f("months"),w=(f("monthsShort")||x.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function y(v){var x,w;x=v,w=l&&l.formats;for(var b=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,R,j){var F=j&&j.toUpperCase();return R||w[j]||n[j]||w[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,$,E){return $||E.slice(1)})})).match(r),C=b.length,k=0;k-1)return new Date((O==="X"?1e3:1)*L);var z=y(O)(L),G=z.year,J=z.month,K=z.day,B=z.hours,W=z.minutes,te=z.seconds,X=z.milliseconds,q=z.zone,U=z.week,ee=new Date,H=K||(G||J?1:ee.getDate()),Z=G||ee.getFullYear(),ne=0;G&&!J||(ne=J>0?J-1:ee.getMonth());var oe,re=B||0,de=W||0,ie=te||0,we=X||0;return q?new Date(Date.UTC(Z,ne,H,re,de,ie,we+60*q.offset*1e3)):_?new Date(Date.UTC(Z,ne,H,re,de,ie,we)):(oe=new Date(Z,ne,H,re,de,ie,we),U&&(oe=N(oe).week(U).toDate()),oe)}catch{return new Date("")}}(M,D,T,w),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),j&&M!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var A=D.length,$=1;$<=A;$+=1){I[1]=D[$-1];var E=w.apply(this,I);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===A&&(this.$d=new Date(""))}else C.call(this,k)}}})})(V3);var pre=V3.exports;const hre=ai(pre);var U3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,m,y){var v=y&&y.toUpperCase();return m||f[y]||n[y]||f[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,w,b){return w||b.slice(1)})})}(l,c===void 0?{}:c);return a.call(this,u)}}})})(U3);var mre=U3.exports;const gre=ai(mre);var W3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(f?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(f?this.isAfter(u,a):!this.isBefore(u,a))}}})})(W3);var yre=W3.exports;const vre=ai(yre);var G3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}});return s.bind(this)(u)}}})})(G3);var xre=G3.exports;const bre=ai(xre);Yt.extend(gre);Yt.extend(fre);Yt.extend(vre);Yt.extend(bre);const wre={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},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",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",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"},Cre={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},R1=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),hM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),Sre=(e,t)=>t?(...n)=>e(...n).locale(t):e;class wu{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=wre,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Yt.utc<"u",this.hasTimezonePlugin=()=>typeof Yt.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Yt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Yt.tz.guess();return o!=="UTC"?Yt.tz(r,o):Yt(r)}return Yt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(R1);return Yt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(R1);if(!this.hasTimezonePlugin())throw new Error(hM);const s=r!==void 0&&!r.endsWith("Z");return Yt(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=Yt.Ls,o=this.locale||"en";let s=r[o];return s===void 0&&(s=r.en),s.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const s=r.tz(this.cleanTimezone(o),!0);if(s.$offset===(r.$offset??0))return r;r.$offset=s.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let s;return o==="UTC"?s=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(r):s=this.createTZDate(r,o),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Yt(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const s=(o=r.$x)==null?void 0:o.$timezone;if(s)return s}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(R1);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(hM)}return Yt.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),s=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,l)=>{const c=l&&l.toUpperCase();return a||o[l]||s(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=s,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),s=this.endOfWeek(this.endOfMonth(r));let i=0,a=o;const l=[];for(;ar.week(),this.getYearRange=([r,o])=>{const s=this.startOfYear(r),i=this.endOfYear(o),a=[];let l=s;for(;this.isBefore(l,i);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=Sre(Yt,t),this.locale=t,this.formats=P({},Cre,n),Yt.extend(hre)}getDayOfWeek(t){return t.day()+1}}const K3=h.createContext(void 0);function Ze(){const e=h.useContext(K3);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 Y3=h.createContext(void 0),ze=()=>{const e=h.useContext(Y3);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},kre=Object.is;function q3(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,!kre(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function la(e){return h.memo(e,q3)}const Pre={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",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 dt(e){return xe("MuiDataGrid",e)}const Y=ge("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","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"]),mM=1e3;class Mre{constructor(t=mM){this.timeouts=new Map,this.cleanupTimeout=mM,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 Ire{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 So=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(So||{});class Ere{}function Tre(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Ire:new Mre);const[a]=h.useState(new Ere),l=h.useRef(null),c=h.useRef();c.current=s;const u=h.useRef(null);if(!l.current&&c.current){const d=(f,g,m)=>{var y;g.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,g,m)};l.current=r.current.subscribeEvent(o,d,i),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{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));h.useEffect(()=>{if(!l.current&&c.current){const d=(f,g,m)=>{var y;g.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,g,m)};l.current=r.current.subscribeEvent(o,d,i)}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,i])}}const Rre={registry:null},Fe=Tre(Rre),Dre={isFirst:!0};function $t(e,t,n){Fe(e,t,n,Dre)}function $re(e){return e.acceptsApiRef}function gM(e,t){return $re(t)?t(e):t(e.current.state)}const Are=Object.is,X3=q3,Ore=()=>({state:null,equals:null,selector:null}),me=(e,t,n=Are)=>{const r=es(Ore),o=r.current.selector!==null,[s,i]=h.useState(o?null:gM(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,C0(()=>e.current.store.subscribe(()=>{const a=gM(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,i(a))})),s},Bn=e=>e.dimensions,jre=ND({memoize:LD,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),yM=new WeakMap;function Hl(e){return"current"in e&&"instanceId"in e.current}const Vl={id:"default"},Ye=(e,t,n,r,o,s,...i)=>{i.length>0;let a;if(e&&t&&n&&r&&o&&s)a=(l,c)=>{const u=Hl(l),d=c??(u?l.current.instanceId:Vl),f=u?l.current.state:l,g=e(f,d),m=t(f,d),y=n(f,d),v=r(f,d),x=o(f,d);return s(g,m,y,v,x)};else if(e&&t&&n&&r&&o)a=(l,c)=>{const u=Hl(l),d=c??(u?l.current.instanceId:Vl),f=u?l.current.state:l,g=e(f,d),m=t(f,d),y=n(f,d),v=r(f,d);return o(g,m,y,v)};else if(e&&t&&n&&r)a=(l,c)=>{const u=Hl(l),d=c??(u?l.current.instanceId:Vl),f=u?l.current.state:l,g=e(f,d),m=t(f,d),y=n(f,d);return r(g,m,y)};else if(e&&t&&n)a=(l,c)=>{const u=Hl(l),d=c??(u?l.current.instanceId:Vl),f=u?l.current.state:l,g=e(f,d),m=t(f,d);return n(g,m)};else if(e&&t)a=(l,c)=>{const u=Hl(l),d=c??(u?l.current.instanceId:Vl),f=u?l.current.state:l,g=e(f,d);return t(g)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Tt=(...e)=>{const t=(n,r)=>{const o=Hl(n),s=o?n.current.instanceId:r??Vl,i=o?n.current.state:n,a=yM.get(s),l=a??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(i,s);const u=jre(...e);return a||yM.set(s,l),l.set(e,u),u(i,s)};return t.acceptsApiRef=!0,t},Fre=.7,Lre=1.3,_re={compact:Fre,comfortable:Lre,standard:1},lc=e=>e.density,dp=Ye(lc,e=>_re[e]);let At=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const Hx={left:[],right:[]},Nre=e=>e.isRtl,Cs=e=>e.columns,Ks=Ye(Cs,e=>e.orderedFields),pi=Ye(Cs,e=>e.lookup),Xo=Tt(Ks,pi,(e,t)=>e.map(n=>t[n])),yo=Ye(Cs,e=>e.columnVisibilityModel),yn=Tt(Xo,yo,(e,t)=>e.filter(n=>t[n.field]!==!1)),Cu=Tt(yn,e=>e.map(t=>t.field)),zre=e=>e.pinnedColumns,fp=Tt(Cs,zre,Cu,Nre,(e,t,n,r)=>{const o=Bre(t,n,r);return{left:o.left.map(i=>e.lookup[i]),right:o.right.map(i=>e.lookup[i])}});function Bre(e,t,n){var a,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((l=e.right)==null?void 0:l.length)===0)return Hx;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),s=t.filter(c=>!o.includes(c)),i=r(e.right,s);return n?{left:i,right:o}:{left:o,right:i}}const ca=Tt(yn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Q3=Tt(Xo,e=>e.filter(t=>t.filterable)),Hre=Tt(Xo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Vre=Tt(Xo,e=>e.some(t=>t.colSpan!==void 0)),Ure=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Wre=e=>{const{classes:t}=e;return le({root:["editInputCell"]},dt,t)},Gre=Q(vu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Kre=h.forwardRef((e,t)=>{const n=ze(),{id:r,value:o,field:s,colDef:i,hasFocus:a,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=ue(e,Ure),f=Ze(),g=h.useRef(),[m,y]=h.useState(o),v=Wre(n),x=h.useCallback(async b=>{const C=b.target.value;u&&await u(b,C);const k=f.current.getColumn(s);let M=C;k.valueParser&&(M=k.valueParser(C,f.current.getRow(r),k,f)),y(M),f.current.setEditCellValue({id:r,field:s,value:M,debounceMs:l,unstable_skipValueParser:!0},b)},[f,l,s,r,u]),w=f.current.unstable_getEditCellMeta(r,s);return h.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&y(o)},[w,o]),at(()=>{a&&g.current.focus()},[a]),p.jsx(Gre,P({ref:t,inputRef:g,className:v.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:m??"",onChange:x,endAdornment:c?p.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),Yre=e=>p.jsx(Kre,P({},e)),Z3=(e,t)=>t&&e.length>1?[e[0]]:e,vM=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:Z3(e,t)})}),qre=e=>e==="desc",Xre=(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=qre(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator,r?{getSortCellParams:s=>({id:s,field:n.field,rowNode:t.current.getRowNode(s),value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}:null},Qre=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const i=t.params[s],a=n.params[s];return r=o.comparator(i.value,a.value,i,a),r},0),Zre=(e,t)=>{const n=e.map(r=>Xre(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>Qre(n,o,s)).map(o=>o.node.id)},xM=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},kC=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Jre=new Intl.Collator,eoe=(e,t)=>{const n=kC(e,t);return n!==null?n:typeof e=="string"?Jre.compare(e.toString(),t.toString()):e-t},J3=(e,t)=>{const n=kC(e,t);return n!==null?n:Number(e)-Number(t)},e4=(e,t)=>{const n=kC(e,t);return n!==null?n:e>t?1:e{const{value:M}=k.target;m(String(M)),v(!0),f.start(w.filterDebounceMs,()=>{const T=P({},t,{value:r==="number"?Number(M):M,fromInput:x});n(T),v(!1)})},[f,w.filterDebounceMs,t,r,x,n]);return h.useEffect(()=>{(t.fromInput!==x||t.value===void 0)&&m(String(t.value??""))},[x,t]),p.jsx(w.slots.baseTextField,P({id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:b,variant:u,type:r||"text",InputProps:P({},y||l?{endAdornment:y?p.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:a},c,{inputProps:P({tabIndex:i},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},d,(C=w.slotProps)==null?void 0:C.baseTextField))}function noe(e){return typeof e=="number"&&!Number.isNaN(e)}function t4(e){return typeof e=="function"}function PC(e){return typeof e=="object"&&e!==null}function roe(){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 Jm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ss=(e,t,n)=>Math.max(t,Math.min(n,e));function bM(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Pc(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 s=0;s{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 soe(e){const t=ooe(e);return(n,r)=>n+(r-n)*t()}function n4(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const ioe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],aoe=["key"];function r4(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:a,helperText:l,size:c,variant:u="standard"}=e,d=ue(e,ioe),f={color:i,error:a,helperText:l,size:c,variant:u},[g,m]=h.useState(t.value||[]),y=mt(),v=ze();h.useEffect(()=>{const w=t.value??[];m(w.map(String))},[t.value]);const x=h.useCallback((w,b)=>{m(b.map(String)),n(P({},t,{value:[...b.map(C=>r==="number"?Number(C):C)]}))},[n,t,r]);return p.jsx(v$,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,b)=>{const{inputValue:C}=b;return C==null||C===""?[]:[C]},id:y,value:g,onChange:x,renderTags:(w,b)=>w.map((C,k)=>{const M=b({index:k}),{key:T}=M,I=ue(M,aoe);return p.jsx(v.slots.baseChip,P({variant:"outlined",size:"small",label:C},I),T)}),renderInput:w=>{var b;return p.jsx(v.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},f,(b=v.slotProps)==null?void 0:b.baseTextField))}},d))}var Ts=function(e){return e.Cell="cell",e.Row="row",e}(Ts||{}),Pt=function(e){return e.Edit="edit",e.View="view",e}(Pt||{}),Dt=function(e){return e.Edit="edit",e.View="view",e}(Dt||{}),rr=function(e){return e.And="and",e.Or="or",e}(rr||{}),Os=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Os||{}),zo=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(zo||{}),Si=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Si||{}),as=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(as||{});function o4(e){return e.field!==void 0}const kf=()=>({items:[],logicOperator:rr.And,quickFilterValues:[],quickFilterLogicOperator:rr.And});function s4(e){return{current:e.current.getPublicApi()}}let td;function loe(){if(td!==void 0)return td;try{td=new Function("return true")()}catch{td=!1}return td}const Vx=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=pi(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},MC=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const s=r&&o.some(a=>a.id==null);return o.some(a=>a.operator==null)||s?P({},e,{items:o.map(a=>Vx(a,n))}):e.items!==o?P({},e,{items:o}):e},wM=(e,t,n)=>r=>P({},r,{filterModel:MC(e,t,n)}),Pf=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,i4=(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=Pf(r));const s=P({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=i.find(d=>d.value===s.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const l=s4(t),c=a.getApplyFilterFn(s,n);return typeof c!="function"?null:{item:s,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=Pf(f)),c(f,d,n,l)}}};let CM=1;const coe=(e,t,n)=>{const{items:r}=e,o=r.map(a=>i4(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!loe())return(a,l)=>{const c={};for(let u=0;u`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(` +`)} + +const result$$ = { +${o.map((a,l)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${l} ? false : appliers[${l}].fn(row),`).join(` +`)} +}; + +return result$$;`.replaceAll("$$",String(CM)));return CM+=1,(a,l)=>s(o,a,l)},a4=e=>e.quickFilterExcludeHiddenColumns??!0,uoe=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=a4(e)?Cu(t):Ks(t),o=[],{ignoreDiacritics:s}=t.current.rootProps,i=s4(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=s?Pf(d):d;return{fn:u(f,c,i)}})})}),function(c,u){const d={};e:for(let f=0;f{const r=coe(e,t,n),o=uoe(e,t);return function(i,a,l){l.passingFilterItems=(r==null?void 0:r(i,a))??null,l.passingQuickFilterValues=(o==null?void 0:o(i,a))??null}},SM=e=>e!=null,foe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>i4(r,t)!==null)),e.cleanedFilterItems),poe=(e,t,n,r,o)=>{const s=foe(o,r,n.items),i=e.filter(SM),a=t.filter(SM);if(i.length>0){const l=u=>i.some(d=>d[u.id]);if((n.logicOperator??kf().logicOperator)===rr.And){if(!s.every(l))return!1}else if(!s.some(l))return!1}if(a.length>0&&n.quickFilterValues!=null){const l=u=>a.some(d=>d[u]);if((n.quickFilterLogicOperator??kf().quickFilterLogicOperator)===rr.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},hoe=e=>{if(!e)return null;const t=new RegExp(Jm(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=Pf(i)),i!=null?t.test(i.toString()):!1}},kM=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(Jm(r),"i");return s=>{if(s==null)return t;const i=o.test(String(s));return t?!i:i}},PM=(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 s=>{if(s==null)return t;const i=o.compare(r,s.toString())===0;return t?!i:i}},MM=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},moe=(e=!1)=>[{value:"contains",getApplyFilterFn:kM(e,!1),InputComponent:po},{value:"doesNotContain",getApplyFilterFn:kM(e,!0),InputComponent:po},{value:"equals",getApplyFilterFn:PM(e,!1),InputComponent:po},{value:"doesNotEqual",getApplyFilterFn:PM(e,!0),InputComponent:po},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Jm(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:po},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Jm(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:po},{value:"isEmpty",getApplyFilterFn:MM(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:MM(!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(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:r4}],Qo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:eoe,type:"string",align:"left",filterOperators:moe(),renderEditCell:Yre,getApplyQuickFilterFn:hoe},goe=["open","target","onClose","children","position","className","onExited"],yoe=e=>{const{classes:t}=e;return le({root:["menu"]},dt,t)},voe=Q(di,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Y.menuList}`]:{outline:0}})),xoe={"bottom-start":"top left","bottom-end":"top right"};function l4(e){var y;const{open:t,target:n,onClose:r,children:o,position:s,className:i,onExited:a}=e,l=ue(e,goe),c=Ze(),u=ze(),d=yoe(u),f=h.useRef(null);at(()=>{var v,x;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((x=(v=f.current)==null?void 0:v.focus)==null||x.call(v),f.current=null)},[t]),h.useEffect(()=>{const v=t?"menuOpen":"menuClose";c.current.publishEvent(v,{target:n})},[c,t,n]);const g=v=>x=>{v&&v(),a&&a(x)},m=v=>{v.target&&(n===v.target||n!=null&&n.contains(v.target))||r(v)};return p.jsx(voe,P({as:u.slots.basePopper,className:se(d.root,i),ownerState:u,open:t,anchorEl:n,transition:!0,placement:s},l,(y=u.slotProps)==null?void 0:y.basePopper,{children:({TransitionProps:v,placement:x})=>p.jsx(w$,{onClickAway:m,mouseEvent:"onMouseDown",children:p.jsx(Za,P({},v,{style:{transformOrigin:xoe[x]},onExited:g(v==null?void 0:v.onExited),children:p.jsx(Ao,{children:o})}))})}))}const boe=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],woe=e=>typeof e.getActions=="function";function Coe(e){var $;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:s="bottom-end",focusElementRef:i}=e,a=ue(e,boe),[l,c]=h.useState(-1),[u,d]=h.useState(!1),f=Ze(),g=h.useRef(null),m=h.useRef(null),y=h.useRef(!1),v=h.useRef({}),x=Bt(),w=mt(),b=mt(),C=ze();if(!woe(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const k=t.getActions(f.current.getRowParams(n)),M=k.filter(E=>!E.props.showInMenu),T=k.filter(E=>E.props.showInMenu),I=M.length+(T.length?1:0);h.useLayoutEffect(()=>{r||Object.entries(v.current).forEach(([E,L])=>{L==null||L.stop({},()=>{delete v.current[E]})})},[r]),h.useEffect(()=>{if(l<0||!g.current||l>=g.current.children.length)return;g.current.children[l].focus({preventScroll:!0})},[l]),h.useEffect(()=>{r||(c(-1),y.current=!1)},[r]),h.useImperativeHandle(i,()=>({focus(){if(!y.current){const E=k.findIndex(L=>!L.props.disabled);c(E)}}}),[k]),h.useEffect(()=>{l>=I&&c(I-1)},[l,I]);const D=()=>{d(!0),c(I-1),y.current=!0},S=()=>{d(!1)},R=E=>L=>{v.current[E]=L},j=(E,L)=>O=>{c(E),y.current=!0,L&&L(O)},F=E=>{if(I<=1)return;const L=(_,N)=>{var J;if(_<0||_>k.length)return _;const G=(N==="left"?-1:1)*(x?-1:1);return(J=k[_+G])!=null&&J.props.disabled?L(_+G,N):_+G};let O=l;E.key==="ArrowRight"?O=L(l,"right"):E.key==="ArrowLeft"&&(O=L(l,"left")),!(O<0||O>=I)&&O!==l&&(E.preventDefault(),E.stopPropagation(),c(O))},A=E=>{E.key==="Tab"&&E.preventDefault(),["Tab","Escape"].includes(E.key)&&S()};return p.jsxs("div",P({role:"menu",ref:g,tabIndex:-1,className:Y.actionsCell,onKeyDown:F},a,{children:[M.map((E,L)=>h.cloneElement(E,{key:L,touchRippleRef:R(L),onClick:j(L,E.props.onClick),tabIndex:l===L?o:-1})),T.length>0&&b&&p.jsx(C.slots.baseIconButton,P({ref:m,id:b,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?w:void 0,role:"menuitem",size:"small",onClick:D,touchRippleRef:R(b),tabIndex:l===M.length?o:-1},($=C.slotProps)==null?void 0:$.baseIconButton,{children:p.jsx(C.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&p.jsx(l4,{open:u,target:m.current,position:s,onClose:S,children:p.jsx(Xw,{id:w,className:Y.menuList,onKeyDown:A,"aria-labelledby":b,variant:"menu",autoFocusItem:!0,children:T.map((E,L)=>h.cloneElement(E,{key:L,closeMenu:S}))})})]}))}const Soe=e=>p.jsx(Coe,P({},e)),X0="actions",koe=P({},Qo,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Soe,getApplyQuickFilterFn:void 0}),Oo=e=>e.rows,Q0=Ye(Oo,e=>e.totalRowCount),Poe=Ye(Oo,e=>e.loading),Moe=Ye(Oo,e=>e.totalTopLevelRowCount),ji=Ye(Oo,e=>e.dataRowIdToModelLookup),eg=Ye(Oo,e=>e.dataRowIdToIdLookup),Yn=Ye(Oo,e=>e.tree),Ioe=Ye(Oo,e=>e.groupsToFetch),Eoe=Ye(Oo,e=>e.groupingName),IM=Ye(Oo,e=>e.treeDepths),Su=Tt(Oo,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}),mh=Ye(Oo,e=>e.dataRowIds),Toe=Ye(Oo,e=>e==null?void 0:e.additionalRowGroups),gl=Tt(Toe,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??{}})))??[]}}),Roe=Ye(gl,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)}),Ln="auto-generated-group-node-root",Mc=Symbol("mui.id_autogenerated"),Doe=()=>({type:"group",id:Ln,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function $oe(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 Z0=(e,t,n)=>{const r=t?t(e):e.id;return $oe(r,e,n),r},Jh=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},i={};for(let a=0;a{const n=e[Ln];return Math.max(t,n.children.length+(n.footerId==null?0:1))},u4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:s})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup,previousGroupsToFetch:s}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:c4({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},Xc=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,IC=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s{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=Z0(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,P({},o.get(d),u)):o.set(d,u)});const s={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:P({},e.updates.idToActionLookup),groupKeys:r},i=P({},e.dataRowIdToModelLookup),a=P({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=s.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!i[d])return;f!=null&&(l[f][d]=!0),s.actions.remove.push(d),delete i[d],delete a[d];return}const g=i[d];if(g){f==="remove"?(l.remove[d]=!0,s.actions.modify.push(d)):f==null&&s.actions.modify.push(d),i[d]=P({},g,u);return}f==="remove"?(l.remove[d]=!0,s.actions.insert.push(d)):f==null&&s.actions.insert.push(d),i[d]=u,a[d]=d});const c=Object.keys(l);for(let u=0;u0&&(s.actions[d]=s.actions[d].filter(g=>!f[g]))}return{dataRowIdToModelLookup:i,dataRowIdToIdLookup:a,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Aoe(e){var o,s;const t=gl(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((i,a)=>(i+=e.current.unstable_getRowHeight(a.id),i),0))||0,r=((s=t==null?void 0:t.bottom)==null?void 0:s.reduce((i,a)=>(i+=e.current.unstable_getRowHeight(a.id),i),0))||0;return{top:n,bottom:r}}function d4(e){return`var(--DataGrid-overlayHeight, ${2*Bn(e.current.state).rowHeight}px)`}function TM(e,t,n){const r=[];return t.forEach(o=>{const s=Z0(o,n,"A row was provided without id when calling updateRows():"),i=e.current.getRowNode(s);if((i==null?void 0:i.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,l=a.idLookup[s];l&&(a.idLookup[s]=P({},l,o))}else r.push(o)}),r}const f4=(e,t,n)=>typeof e=="number"&&e>0?e:t,Ooe="__tree_data_group__",p4="__row_group_by_columns_group__",J0="__detail_panel_toggle__",joe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],Foe=e=>{const{classes:t}=e;return le({root:["booleanCell"]},dt,t)};function Loe(e){const{value:t,rowNode:n}=e,r=ue(e,joe),o=Ze(),s=ze(),i={classes:s.classes},a=Foe(i),c=me(o,Su)>0&&n.type==="group"&&s.treeData===!1,u=h.useMemo(()=>t?s.slots.booleanCellTrueIcon:s.slots.booleanCellFalseIcon,[s.slots.booleanCellFalseIcon,s.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:p.jsx(u,P({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const _oe=h.memo(Loe),Noe=e=>e.field!==p4&&Xc(e.rowNode)?"":p.jsx(_oe,P({},e)),zoe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Boe=e=>{const{classes:t}=e;return le({root:["editBooleanCell"]},dt,t)};function Hoe(e){var x;const{id:t,value:n,field:r,className:o,hasFocus:s,onValueChange:i}=e,a=ue(e,zoe),l=Ze(),c=h.useRef(null),u=mt(),[d,f]=h.useState(n),g=ze(),m={classes:g.classes},y=Boe(m),v=h.useCallback(async w=>{const b=w.target.checked;i&&await i(w,b),f(b),await l.current.setEditCellValue({id:t,field:r,value:b},w)},[l,r,t,i]);return h.useEffect(()=>{f(n)},[n]),at(()=>{s&&c.current.focus()},[s]),p.jsx("label",P({htmlFor:u,className:se(y.root,o)},a,{children:p.jsx(g.slots.baseCheckbox,P({id:u,inputRef:c,checked:!!d,onChange:v,size:"small"},(x=g.slotProps)==null?void 0:x.baseCheckbox))}))}const Voe=e=>p.jsx(Hoe,P({},e)),Uoe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],em=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},Woe=Q("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Goe(e){var C,k,M;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:s,tabIndex:i,label:a,variant:l="standard"}=e,c=ue(e,Uoe),[u,d]=h.useState(em(t.value)),f=ze(),g=mt(),m=mt(),y=((C=f.slotProps)==null?void 0:C.baseSelect)||{},v=y.native??!1,x=((k=f.slotProps)==null?void 0:k.baseSelectOption)||{},w=h.useCallback(T=>{const I=em(T.target.value);d(I),n(P({},t,{value:I}))},[n,t]);h.useEffect(()=>{d(em(t.value))},[t.value]);const b=a??r.current.getLocaleText("filterPanelInputLabel");return p.jsxs(Woe,{children:[p.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[p.jsx(f.slots.baseInputLabel,P({},(M=f.slotProps)==null?void 0:M.baseInputLabel,{id:g,shrink:!0,variant:l,children:b})),p.jsxs(f.slots.baseSelect,P({labelId:g,id:m,label:b,value:u===void 0?"":String(u),onChange:w,variant:l,notched:l==="outlined"?!0:void 0,native:v,displayEmpty:!0,inputProps:{ref:o,tabIndex:i}},c,y,{children:[p.jsx(f.slots.baseSelectOption,P({},x,{native:v,value:"",children:r.current.getLocaleText("filterValueAny")})),p.jsx(f.slots.baseSelectOption,P({},x,{native:v,value:"true",children:r.current.getLocaleText("filterValueTrue")})),p.jsx(f.slots.baseSelectOption,P({},x,{native:v,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),s]})}const Koe=()=>[{value:"is",getApplyFilterFn:e=>{const t=em(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Goe}],Yoe=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),qoe=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}},h4=P({},Qo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Noe,renderEditCell:Voe,sortComparator:J3,valueFormatter:Yoe,filterOperators:Koe(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>qoe(e)}),m4=e=>e.sorting,pp=Ye(m4,e=>e.sortedRows),EC=Tt(pp,ji,Yn,(e,t,n)=>e.reduce((r,o)=>{const s=t[o];s&&r.push({id:o,model:s});const i=n[o];return i&&Xc(i)&&r.push({id:o,model:{[Mc]:o}}),r},[])),oo=Ye(m4,e=>e.sortModel),Xoe=Tt(oo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ey=e=>e.filter,jn=Ye(ey,e=>e.filterModel);Ye(jn,e=>e.quickFilterValues);const Qoe=e=>e.visibleRowsLookup,ku=Ye(ey,e=>e.filteredRowsLookup);Ye(ey,e=>e.filteredChildrenCountLookup);Ye(ey,e=>e.filteredDescendantCountLookup);const ua=Tt(Qoe,EC,(e,t)=>t.filter(n=>e[n.id]!==!1)),Ic=Tt(ua,e=>e.map(t=>t.id)),g4=Tt(ku,EC,(e,t)=>t.filter(n=>e[n.id]!==!1)),y4=Tt(g4,e=>e.map(t=>t.id));Tt(Ic,Yn,(e,t)=>{const n={};let r=0;return e.reduce((o,s)=>{const i=t[s];return n[i.depth]||(n[i.depth]=0),i.depth>r&&(n[i.depth]=0),r=i.depth,n[i.depth]+=1,o[s]=n[i.depth],o},{})});const v4=Tt(ua,Yn,Su,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),TC=Ye(ua,e=>e.length),RC=Ye(v4,e=>e.length),Zoe=Ye(g4,e=>e.length);Ye(Zoe,RC,(e,t)=>e-t);const Joe=Tt(jn,pi,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var i,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((i=o==null?void 0:o.filterOperators)==null?void 0:i.length)===0)return!1;const s=o.filterOperators.find(l=>l.value===r.operator);return s?!s.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),ese=Tt(Joe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),so=e=>e.rowSelection,tse=Ye(so,e=>e.length),nse=Tt(so,ji,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Ys=Tt(so,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function x4(e,t){var l;const n=Yn(e),r=pp(e),o=ku(e),s=n[t];if(!s||s.type!=="group")return[];const i=[],a=r.findIndex(c=>c===t)+1;for(let c=a;cs.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&i.push(u)}return i}function rse(e,t){return Ye(Yn,pp,ku,Ys,(n,r,o,s)=>{var u;const i=n[e];if(!i||i.type!=="group")return{isIndeterminate:!1,isChecked:s[e]===e};if(s[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;di.depth;d+=1){const f=r[d];o[f]!==!1&&(a+=1,s[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l0:s[e]===e}})}function DC(e){return e.signature===So.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const ose=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Ln;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},sse=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(i=>i!==n&&t[i])},gh=(e,t,n,r,o,s)=>{const i=ku(e),a=Ys(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&x4(e,n).forEach(d=>{s(d),l.add(d)})}if(o){const c=d=>{if(a[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=sse(t,i,d);if(f.length===0||f.every(c)){const m=t[d].parent;m!=null&&m!==Ln&&e.current.isRowSelectable(m)&&(s(m),l.add(m),u(m))}};u(n)}}},RM=(e,t,n,r,o,s)=>{const i=Ys(e);if(!(!o&&!r)&&(o&&ose(t,n).forEach(l=>{i[l]===l&&s(l)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&x4(e,n).forEach(c=>{s(c)})}},ise=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],ase=e=>{const{classes:t}=e;return le({root:["checkboxInput"]},dt,t)},lse=h.forwardRef(function(t,n){var I,D;const{field:r,id:o,rowNode:s,hasFocus:i,tabIndex:a}=t,l=ue(t,ise),c=Ze(),u=ze(),d={classes:u.classes},f=ase(d),g=h.useRef(null),m=h.useRef(null),y=tt(g,n),v=S=>{const R={value:S.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",R,S)};h.useLayoutEffect(()=>{if(a===0){const S=c.current.getCellElement(o,r);S&&(S.tabIndex=-1)}},[c,a,o,r]),h.useEffect(()=>{var S;if(i){const R=(S=g.current)==null?void 0:S.querySelector("input");R==null||R.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[i]);const x=h.useCallback(S=>{S.key===" "&&S.stopPropagation()},[]),w=c.current.isRowSelectable(o),b=rse(o,((I=u.rowSelectionPropagation)==null?void 0:I.parents)??!1),{isIndeterminate:C,isChecked:k}=me(c,b);if(s.type==="footer"||s.type==="pinnedRow")return null;const M=c.current.getLocaleText(k?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow"),T=u.indeterminateCheckboxAction==="select"?k&&!C:k;return p.jsx(u.slots.baseCheckbox,P({ref:y,tabIndex:a,checked:T,onChange:v,className:f.root,inputProps:{"aria-label":M},onKeyDown:x,indeterminate:C,disabled:!w,touchRippleRef:m},(D=u.slotProps)==null?void 0:D.baseCheckbox,l))}),cse=lse,ty=e=>e.focus,$r=Ye(ty,e=>e.cell),use=Ye(ty,e=>e.columnHeader);Ye(ty,e=>e.columnHeaderFilter);const tg=Ye(ty,e=>e.columnGroupHeader),ny=e=>e.tabIndex,$C=Ye(ny,e=>e.cell),b4=Ye(ny,e=>e.columnHeader);Ye(ny,e=>e.columnHeaderFilter);const dse=Ye(ny,e=>e.columnGroupHeader);function ot(e,t,n){const r=h.useRef(!0);at(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Sn(e,t){const n=h.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const w4=(e,t,n,r,o)=>{const s=Sn(e,"useNativeEventListener"),[i,a]=h.useState(!1),l=h.useRef(r),c=t4(t)?t():(t==null?void 0:t.current)??null,u=h.useCallback(d=>l.current&&l.current(d),[]);h.useEffect(()=>{l.current=r},[r]),h.useEffect(()=>{if(c&&n&&!i){s.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),a(!0);const d=()=>{s.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,i,s,o,e])},hp=e=>{const t=h.useRef(!0);t.current&&(t.current=!1,e())},fse=()=>{},pse=(e,t)=>{const n=h.useRef(!1);at(()=>n.current||!e?fse:(n.current=!0,t()),[n.current||e])},hse=100,mse=e=>e?0:100,C4=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,S4=e=>({page:0,pageSize:e?0:100}),gse=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),k4=(e,t)=>{if(t===So.DataGrid&&e>hse)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(` +`))},yse=-1,ry=e=>e.pagination,nr=Ye(ry,e=>e.paginationModel),cc=Ye(ry,e=>e.rowCount),xd=Ye(ry,e=>e.meta),vse=Ye(nr,e=>e.page),xse=Ye(nr,e=>e.pageSize),P4=Ye(nr,cc,(e,t)=>C4(t,e.pageSize,e.page)),AC=Tt(nr,Yn,Su,ua,v4,(e,t,n,r,o)=>{var g;const s=o.length,i=Math.min(e.pageSize*e.page,s-1),a=e.pageSize===yse?s-1:Math.min(i+e.pageSize-1,s-1);if(i===-1||a===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:a};const l=o[i],c=a-i+1,u=r.findIndex(m=>m.id===l.id);let d=u,f=0;for(;d0)&&(d+=1),y===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),bse=Tt(ua,AC,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),M4=Tt(Ic,AC,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),wse=["field","colDef"],Cse=e=>{const{classes:t}=e;return le({root:["checkboxInput"]},dt,t)},Sse=h.forwardRef(function(t,n){var I;const r=ue(t,wse),[,o]=h.useState(!1),s=Ze(),i=ze(),a={classes:i.classes},l=Cse(a),c=me(s,b4),u=me(s,so),d=me(s,Ic),f=me(s,M4),g=h.useMemo(()=>typeof i.isRowSelectable!="function"?u:u.filter(D=>s.current.getRow(D)?i.isRowSelectable(s.current.getRowParams(D)):!1),[s,i.isRowSelectable,u]),m=h.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?d:f).reduce((S,R)=>(S[R]=!0,S),{}),[i.pagination,i.checkboxSelectionVisibleOnly,f,d]),y=h.useMemo(()=>g.filter(D=>m[D]).length,[g,m]),v=y>0&&y0,w=D=>{const S={value:D.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",S)},b=c!==null&&c.field===t.field?0:-1;h.useLayoutEffect(()=>{const D=s.current.getColumnHeaderElement(t.field);b===0&&D&&(D.tabIndex=-1)},[b,s,t.field]);const C=h.useCallback(D=>{D.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!x})},[s,x]),k=h.useCallback(()=>{o(D=>!D)},[]);h.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",k),[s,k]);const M=s.current.getLocaleText(x?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows"),T=i.indeterminateCheckboxAction==="select"?x&&!v:x;return p.jsx(i.slots.baseCheckbox,P({ref:n,indeterminate:v,checked:T,onChange:w,className:l.root,inputProps:{"aria-label":M},tabIndex:b,onKeyDown:C,disabled:!DC(i)},(I=i.slotProps)==null?void 0:I.baseCheckbox,r))}),Fs="__check__",Pu=P({},h4,{type:"custom",field:Fs,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=Ys(r),s=r.current.getRowId(t);return o[s]!==void 0},renderHeader:e=>p.jsx(Sse,P({},e)),renderCell:e=>p.jsx(cse,P({},e))}),kse=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function DM(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 Al(e){var b;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,InputProps:i,clearButton:a,tabIndex:l,disabled:c}=e,u=ue(e,kse),d=zr(),[f,g]=h.useState(()=>DM(t.value,r)),[m,y]=h.useState(!1),v=mt(),x=ze(),w=h.useCallback(C=>{d.clear();const k=C.target.value;g(k),y(!0),d.start(x.filterDebounceMs,()=>{const M=new Date(k);n(P({},t,{value:Number.isNaN(M.getTime())?void 0:M})),y(!1)})},[n,t,x.filterDebounceMs,d]);return h.useEffect(()=>{const C=DM(t.value,r);g(C)},[t.value,r]),p.jsx(x.slots.baseTextField,P({fullWidth:!0,id:v,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:w,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},m||a?{endAdornment:m?p.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:c},i,{inputProps:P({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},i==null?void 0:i.inputProps)})},u,(b=x.slotProps)==null?void 0:b.baseTextField))}function Ol(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 s=o.getTime();return i=>{if(!i)return!1;if(r)return t(i.getTime(),s);const a=new Date(i);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),s)}}const I4=e=>[{value:"is",getApplyFilterFn:t=>Ol(t,(n,r)=>n===r,e),InputComponent:Al,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Ol(t,(n,r)=>n!==r,e),InputComponent:Al,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Ol(t,(n,r)=>n>r,e),InputComponent:Al,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Ol(t,(n,r)=>n>=r,e),InputComponent:Al,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Ol(t,(n,r)=>nOl(t,(n,r)=>n<=r,e),InputComponent:Al,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],Pse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Mse=Q(vu)({fontSize:"inherit"}),Ise=e=>{const{classes:t}=e;return le({root:["editInputCell"]},dt,t)};function Ese(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:a}=e,l=ue(e,Pse),c=o.type==="dateTime",u=Ze(),d=h.useRef(),f=h.useMemo(()=>{let C;n==null?C=null:n instanceof Date?C=n:C=new Date((n??"").toString());let k;return C==null||Number.isNaN(C.getTime())?k="":k=new Date(C.getTime()-C.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:C,formatted:k}},[n,c]),[g,m]=h.useState(f),v={classes:ze().classes},x=Ise(v),w=h.useCallback(C=>{if(C==="")return null;const[k,M]=C.split("T"),[T,I,D]=k.split("-"),S=new Date;if(S.setFullYear(Number(T),Number(I)-1,Number(D)),S.setHours(0,0,0,0),M){const[R,j]=M.split(":");S.setHours(Number(R),Number(j),0,0)}return S},[]),b=h.useCallback(async C=>{const k=C.target.value,M=w(k);a&&await a(C,M),m({parsed:M,formatted:k}),u.current.setEditCellValue({id:t,field:r,value:M},C)},[u,r,t,a,w]);return h.useEffect(()=>{m(C=>{var k,M;return f.parsed!==C.parsed&&((k=f.parsed)==null?void 0:k.getTime())!==((M=C.parsed)==null?void 0:M.getTime())?f:C})},[f]),at(()=>{s&&d.current.focus()},[s]),p.jsx(Mse,P({inputRef:d,fullWidth:!0,className:x.root,type:c?"datetime-local":"date",inputProps:P({max:c?"9999-12-31T23:59":"9999-12-31"},i),value:g.formatted,onChange:b},l))}const E4=e=>p.jsx(Ese,P({},e));function T4({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 Tse=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return T4({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},Rse=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return T4({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},Dse=P({},Qo,{type:"date",sortComparator:e4,valueFormatter:Tse,filterOperators:I4(),renderEditCell:E4,pastedValueParser:e=>new Date(e)}),$se=P({},Qo,{type:"dateTime",sortComparator:e4,valueFormatter:Rse,filterOperators:I4(!0),renderEditCell:E4,pastedValueParser:e=>new Date(e)}),Ii=e=>e==null?null:Number(e),Ase=e=>e==null||Number.isNaN(e)||e===""?null:t=>Ii(t)===Ii(e),Ose=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ii(t)===e.value,InputComponent:po,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ii(t)!==e.value,InputComponent:po,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ii(t)>e.value,InputComponent:po,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ii(t)>=e.value,InputComponent:po,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ii(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ii(t)<=e.value,InputComponent:po,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:r4,InputComponentProps:{type:"number"}}],jse=P({},Qo,{type:"number",align:"right",headerAlign:"right",sortComparator:J3,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>noe(e)?e.toLocaleString():e||"",filterOperators:Ose(),getApplyQuickFilterFn:Ase});function Qc(e){return(e==null?void 0:e.type)==="singleSelect"}function rl(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(P({field:e.field},t)):e.valueOptions}function ng(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const Fse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],Lse=["MenuProps"];function _se(e){return!!e.key}function Nse(e){var j,F;const t=ze(),{id:n,value:r,field:o,row:s,colDef:i,hasFocus:a,error:l,onValueChange:c,initialOpen:u=t.editMode===Ts.Cell}=e,d=ue(e,Fse),f=Ze(),g=h.useRef(),m=h.useRef(),[y,v]=h.useState(u),w=(((j=t.slotProps)==null?void 0:j.baseSelect)||{}).native??!1,b=((F=t.slotProps)==null?void 0:F.baseSelect)||{},{MenuProps:C}=b,k=ue(b,Lse);if(at(()=>{var A;a&&((A=m.current)==null||A.focus())},[a]),!Qc(i))return null;const M=rl(i,{id:n,row:s});if(!M)return null;const T=i.getOptionValue,I=i.getOptionLabel,D=async A=>{if(!Qc(i)||!M)return;v(!1);const $=A.target,E=ng($.value,M,T);c&&await c(A,E),await f.current.setEditCellValue({id:n,field:o,value:E},A)},S=(A,$)=>{if(t.editMode===Ts.Row){v(!1);return}if($==="backdropClick"||A.key==="Escape"){const E=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",P({},E,{reason:A.key==="Escape"?zo.escapeKeyDown:zo.cellFocusOut}))}},R=A=>{_se(A)&&A.key==="Enter"||v(!0)};return!M||!i?null:p.jsx(t.slots.baseSelect,P({ref:g,inputRef:m,value:r,onChange:D,open:y,onOpen:R,MenuProps:P({onClose:S},C),error:l,native:w,fullWidth:!0},d,k,{children:M.map(A=>{var E;const $=T(A);return h.createElement(t.slots.baseSelectOption,P({},((E=t.slotProps)==null?void 0:E.baseSelectOption)||{},{native:w,key:$,value:$}),I(A))})}))}const zse=e=>p.jsx(Nse,P({},e)),Bse=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],Hse=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:s})=>["",...rl(e)||[]].map(a=>{const l=r(a);let c=n(a);return c===""&&(c=" "),h.createElement(t,P({},s,{native:o,key:l,value:l}),c)}),Vse=Q("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function $M(e){var T,I,D,S,R;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,placeholder:i,tabIndex:a,label:l,variant:c="standard",clearButton:u}=e,d=ue(e,Bse),f=t.value??"",g=mt(),m=mt(),y=ze(),v=((I=(T=y.slotProps)==null?void 0:T.baseSelect)==null?void 0:I.native)??!1;let x=null;if(t.field){const j=o.current.getColumn(t.field);Qc(j)&&(x=j)}const w=x==null?void 0:x.getOptionValue,b=x==null?void 0:x.getOptionLabel,C=h.useMemo(()=>rl(x),[x]),k=h.useCallback(j=>{let F=j.target.value;F=ng(F,C,w),n(P({},t,{value:F}))},[C,w,n,t]);if(!Qc(x))return null;const M=l??o.current.getLocaleText("filterPanelInputLabel");return p.jsxs(Vse,{children:[p.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[p.jsx(y.slots.baseInputLabel,P({},(D=y.slotProps)==null?void 0:D.baseInputLabel,{id:m,htmlFor:g,shrink:!0,variant:c,children:M})),p.jsx(y.slots.baseSelect,P({id:g,label:M,labelId:m,value:f,onChange:k,variant:c,type:r||"text",inputProps:{tabIndex:a,ref:s,placeholder:i??o.current.getLocaleText("filterPanelInputPlaceholder")},native:v,notched:c==="outlined"?!0:void 0},d,(S=y.slotProps)==null?void 0:S.baseSelect,{children:Hse({column:x,OptionComponent:y.slots.baseSelectOption,getOptionLabel:b,getOptionValue:w,isSelectNative:v,baseSelectOptionProps:(R=y.slotProps)==null?void 0:R.baseSelectOption})}))]}),u]})}const Use=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Wse=["key"],Gse=l$();function Kse(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:s,error:i,helperText:a,size:l,variant:c="standard"}=e,u=ue(e,Use),d={color:s,error:i,helperText:a,size:l,variant:c},f=mt(),g=ze();let m=null;if(t.field){const k=r.current.getColumn(t.field);Qc(k)&&(m=k)}const y=m==null?void 0:m.getOptionValue,v=m==null?void 0:m.getOptionLabel,x=h.useCallback((k,M)=>y(k)===y(M),[y]),w=h.useMemo(()=>rl(m)||[],[m]),b=h.useMemo(()=>Array.isArray(t.value)?t.value.reduce((k,M)=>{const T=w.find(I=>y(I)===M);return T!=null&&k.push(T),k},[]):[],[y,t.value,w]),C=h.useCallback((k,M)=>{n(P({},t,{value:M.map(y)}))},[n,t,y]);return p.jsx(v$,P({multiple:!0,options:w,isOptionEqualToValue:x,filterOptions:Gse,id:f,value:b,onChange:C,getOptionLabel:v,renderTags:(k,M)=>k.map((T,I)=>{const D=M({index:I}),{key:S}=D,R=ue(D,Wse);return p.jsx(g.slots.baseChip,P({variant:"outlined",size:"small",label:v(T)},R),S)}),renderInput:k=>{var M;return p.jsx(g.slots.baseTextField,P({},k,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},k.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(M=g.slotProps)==null?void 0:M.baseTextField))}},u))}const jl=e=>e==null||!PC(e)?e:e.value,Yse=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>jl(t)===jl(e.value),InputComponent:$M},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>jl(t)!==jl(e.value),InputComponent:$M},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(jl);return n=>t.includes(jl(n))},InputComponent:Kse}],qse=e=>typeof e[0]=="object",Xse=e=>PC(e)?e.value:e,Qse=e=>PC(e)?e.label:String(e),Zse=P({},Qo,{type:"singleSelect",getOptionLabel:Qse,getOptionValue:Xse,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!Qc(n))return"";const s=rl(n,{id:o,row:t});if(e==null)return"";if(!s)return e;if(!qse(s))return n.getOptionLabel(e);const i=s.find(a=>n.getOptionValue(a)===e);return i?n.getOptionLabel(i):""},renderEditCell:zse,filterOperators:Yse(),pastedValueParser:(e,t,n)=>{const r=n,o=rl(r)||[],s=r.getOptionValue;if(o.find(a=>s(a)===e))return e}}),Jse="string",eie=()=>({string:Qo,number:jse,date:Dse,dateTime:$se,boolean:h4,singleSelect:Zse,[X0]:koe,custom:Qo}),OC=e=>e.headerFiltering,tie=Ye(OC,e=>(e==null?void 0:e.enabled)??!1),nie=Ye(OC,e=>e.editing),rie=Ye(OC,e=>e.menuOpen),oy=e=>e.columnGrouping,R4=Tt(oy,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),D4=Tt(oy,e=>(e==null?void 0:e.lookup)??{}),oie=Tt(oy,e=>(e==null?void 0:e.headerStructure)??[]),mp=Ye(oy,e=>(e==null?void 0:e.maxDepth)??0),$4=["maxWidth","minWidth","width","flex"],D1=eie();function sie({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const a=o.all[i];a&&a.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let a=e,l=t,c=0;o.frozenFields.forEach(u=>{a-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;ud.maxWidth&&(c+=d.maxWidth-g,g=d.maxWidth,i.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:g,flex:d.flex}}c<0?Object.keys(i.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(i.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),s()}return s(),o.all}const Ux=(e,t)=>{const n={};let r=0,o=0;const s=[];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=Ss(c.width||Qo.width,c.minWidth||Qo.minWidth,c.maxWidth||Qo.maxWidth),o+=u),c.computedWidth!==u&&(c=P({},c,{computedWidth:u})),d&&s.push(c),n[l]=c});const i=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(i-o,0);if(r>0&&i>0){const l=sie({initialFreeSpace:a,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return P({},e,{lookup:n})},iie=(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 s={},i=[];for(let u=0;u!s[u])],l=P({},e.lookup);for(let u=0;u{f[g]=m===-1?1/0:m}),l[d]=f}return P({},e,{orderedFields:a,lookup:l})};function AM(e){let t=D1[Jse];return e&&D1[e]&&(t=D1[e]),t}const Ul=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=yo(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const s=!e.current.state.columns;let i;if(s)i={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=Cs(e.current.state);i={orderedFields:o?[]:[...f.orderedFields],lookup:P({},f.lookup),columnVisibilityModel:r}}let a={};o&&!s&&(a=Object.keys(i.lookup).reduce((f,g)=>P({},f,{[g]:!1}),{})),t.forEach(f=>{const{field:g}=f;a[g]=!0;let m=i.lookup[g];m==null?(m=P({},AM(f.type),{field:g,hasBeenResized:!1}),i.orderedFields.push(g)):o&&i.orderedFields.push(g),m&&m.type!==f.type&&(m=P({},AM(f.type),{field:g}));let y=m.hasBeenResized;$4.forEach(v=>{f[v]!==void 0&&(y=!0,f[v]===-1&&(f[v]=1/0))}),i.lookup[g]=Bc(m,P({},f,{hasBeenResized:y}))}),o&&!s&&Object.keys(i.lookup).forEach(f=>{a[f]||delete i.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",i),c=iie(l,n);return Ux(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function aie({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return le(r,dt,n)},uie=wt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Y["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Y["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Y["scrollArea--left"]}`]:{left:0},[`&.${Y["scrollArea--right"]}`]:{right:0}}));function die(e){const{scrollDirection:t}=e,n=h.useRef(null),r=Ze(),o=zr(),s=me(r,dp),i=me(r,SC),a=me(r,Bn),l=h.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const I=i-a.viewportInnerSize.width;return l.current.left{l.current=I,g(c)},k=ve(I=>{let D;if(I.preventDefault(),t==="left")D=I.clientX-n.current.getBoundingClientRect().right;else if(t==="right")D=Math.max(1,I.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");D=(D-OM)*lie+OM,o.start(0,()=>{r.current.scroll({left:l.current.left+D,top:l.current.top})})}),M=ve(()=>{d(!0)}),T=ve(()=>{d(!1)});return Fe(r,"scrollPositionChange",C),Fe(r,"columnHeaderDragStart",M),Fe(r,"columnHeaderDragEnd",T),!u||!f?null:p.jsx(uie,{ref:n,className:se(v.root),ownerState:y,onDragOver:k,style:b})}const jM=la(die),fie=()=>{};function pie(e,t,n){const r=h.useRef(null);r.current=t,at(()=>{if(typeof ResizeObserver>"u")return fie;const o=e.current,s=new ResizeObserver(i=>{r.current(i)});return o&&s.observe(o),()=>{s.disconnect()}},[e,n])}const A4=h.createContext(void 0);function jo(){const e=h.useContext(A4);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 Ec=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=AC(e),n=bse(e)):(n=ua(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},da=(e,t)=>{const n=Ec(e,t);return h.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},hie=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",mie=hie.includes("firefox"),Mu=e=>e.rowsMeta,sy=e=>e.virtualization;Ye(sy,e=>e.enabled);const FC=Ye(sy,e=>e.enabledForColumns),gie=Ye(sy,e=>e.enabledForRows),iy=Ye(sy,e=>e.renderContext),yie=Tt(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),O4={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},vie=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return P({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:O4}})};function xie(e,t){const n=s=>{e.current.setState(i=>P({},i,{virtualization:P({},i.virtualization,{enabled:s,enabledForColumns:s,enabledForRows:s&&!t.autoHeight})}))};ot(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>P({},i,{virtualization:P({},i.virtualization,{enabledForColumns:s})}))}},"public"),h.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const LC=e=>e.rowSpanning,j4=Ye(LC,e=>e.hiddenCells),bie=Ye(LC,e=>e.spannedCells),wie=Ye(LC,e=>e.hiddenCellOriginMap),Zc=e=>e.listViewColumn,$1=50;var cn=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}(cn||{});const FM={top:0,left:0},Cie=Object.freeze(new Map),Sie=(e,t,n,r,o)=>({direction:cn.NONE,buffer:L4(e,cn.NONE,t,n,r,o)});let Wx=!1;try{typeof window<"u"&&(Wx=/jsdom/.test(window.navigator.userAgent))}catch{}const kie=()=>{const e=jo(),t=ze(),{unstable_listView:n}=t,r=me(e,()=>n?[Zc(e.current.state)]:yn(e)),o=me(e,gie)&&!Wx,s=me(e,FC)&&!Wx,i=me(e,Bn),a=i.viewportOuterSize,l=me(e,gl),c=me(e,fp),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,g]=h.useState(Cie),m=Bt(),y=me(e,$r),v=me(e,$C),x=me(e,Mu),w=me(e,Ys),b=da(e,t),C=e.current.rootElementRef,k=e.current.mainElementRef,M=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,I=e.current.virtualScrollbarHorizontalRef,D=i.contentSize.height,S=i.columnsTotalWidth,R=me(e,Vre);pie(k,()=>e.current.resize());const j=h.useRef(FM),F=h.useRef(FM),A=h.useRef(O4),$=me(e,iy),E=zr(),L=h.useRef(void 0),O=es(()=>Sie(m,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,$1*6)).current,_={rowIndex:h.useMemo(()=>y?b.rows.findIndex(U=>U.id===y.id):-1,[y,b.rows]),columnIndex:h.useMemo(()=>y?r.findIndex(U=>U.field===y.field):-1,[y,r])},N=h.useCallback(U=>{if(Iie(U,e.current.state.virtualization.renderContext))return;const ee=U.firstRowIndex!==A.current.firstRowIndex||U.lastRowIndex!==A.current.lastRowIndex;e.current.setState(H=>P({},H,{virtualization:P({},H.virtualization,{renderContext:U})})),i.isReady&&ee&&(A.current=U,e.current.publishEvent("renderedRowsIntervalChange",U)),F.current=j.current},[e,i.isReady]),z=ve(()=>{const U={top:M.current.scrollTop,left:M.current.scrollLeft},ee=U.left-j.current.left,H=U.top-j.current.top,Z=ee!==0||H!==0;j.current=U;const ne=Z?Eie(ee,H):cn.NONE,oe=Math.abs(j.current.top-F.current.top),re=Math.abs(j.current.left-F.current.left),de=oe>=i.rowHeight||re>=$1,ie=O.direction!==ne;if(!(de||ie))return $;if(ie)switch(ne){case cn.NONE:case cn.LEFT:case cn.RIGHT:L.current=void 0;break;default:L.current=$;break}O.direction=ne,O.buffer=L4(m,ne,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,$1*6);const Re=A1(e,t,o,s),Le=O1(Re,j.current,O);return Yf.flushSync(()=>{N(Le)}),E.start(1e3,z),Le}),G=()=>{const U=A1(e,t,o,s),ee=O1(U,j.current,O);L.current=void 0,N(ee)},J=ve(U=>{const{scrollTop:ee,scrollLeft:H}=U.currentTarget;if(ee<0||!m&&H<0||m&&H>0)return;const Z=z();e.current.publishEvent("scrollPositionChange",{top:ee,left:H,renderContext:Z})}),K=ve(U=>{e.current.publishEvent("virtualScrollerWheel",{},U)}),B=ve(U=>{e.current.publishEvent("virtualScrollerTouchMove",{},U)}),W=(U={})=>{var Me;if(!U.rows&&!b.range)return[];const ee=U.renderContext??$,H=!d&&U.position===void 0||d&&U.position==="bottom",Z=U.position!==void 0;let ne;switch(U.position){case"top":ne=0;break;case"bottom":ne=l.top.length+b.rows.length;break;case void 0:ne=l.top.length;break}const oe=U.rows??b.rows,re=ee.firstRowIndex,de=Math.min(ee.lastRowIndex,oe.length),ie=U.rows?bM(0,U.rows.length):bM(re,de);let we=-1;!Z&&_.rowIndex!==-1&&(_.rowIndex=de&&(we=_.rowIndex,ie.push(we)));const Re=[],Le=(Me=t.slotProps)==null?void 0:Me.row,Qe=ca(e);return ie.forEach(Ee=>{var ln,en,lr;const{id:Ve,model:Ge}=oe[Ee],Oe=(((ln=b==null?void 0:b.range)==null?void 0:ln.firstRowIndex)||0)+ne+Ee;if(R){const Hn=u.left.length,Tr=r.length-u.right.length;e.current.calculateColSpan({rowId:Ve,minFirstColumn:Hn,maxLastColumn:Tr,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:Ve,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:Ve,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const je=(y==null?void 0:y.id)===Ve,Ue=e.current.rowHasAutoHeight(Ve)?"auto":e.current.unstable_getRowHeight(Ve);let Te;w[Ve]==null?Te=!1:Te=e.current.isRowSelectable(Ve);let Ie=!1;U.position===void 0&&(Ie=Ee===0);let We=!1;const Ct=Ee===oe.length-1;if(H)if(Z)We=Ct;else{const Hn=b.rows.length-1;Ee===Hn&&(We=!0)}const $e=Ee===we;let Xe=null;v!==null&&v.id===Ve&&(Xe=e.current.getCellParams(Ve,v.field).cellMode==="view"?v.field:null);let ht=ee;!Z&&L.current&&Ee>=L.current.firstRowIndex&&Eea.width,X=h.useMemo(()=>({overflowX:!te||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[te,t.autoHeight,n]),q=h.useMemo(()=>{const U={width:te?S:"auto",flexBasis:D,flexShrink:0};return t.autoHeight&&b.rows.length===0&&(U.flexBasis=d4(e)),U},[e,S,D,te,t.autoHeight,b.rows.length]);return h.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,q]),at(()=>{e.current.resize()},[e,x.currentPageTotalHeight]),at(()=>{s&&(M.current.scrollLeft=0),o&&(M.current.scrollTop=0)},[s,o,C,M]),at(()=>{n&&(M.current.scrollLeft=0)},[n,M]),pse(a.width!==0,()=>{const U=A1(e,t,o,s),ee=O1(U,j.current,O);N(ee),e.current.publishEvent("scrollPositionChange",{top:j.current.top,left:j.current.left,renderContext:ee})}),e.current.register("private",{updateRenderContext:G}),Fe(e,"columnsChange",G),Fe(e,"filteredRowsSet",G),Fe(e,"rowExpansionChange",G),{renderContext:$,setPanels:g,getRows:W,getContainerProps:()=>({ref:k}),getScrollerProps:()=>({ref:M,onScroll:J,onWheel:K,onTouchMove:B,style:X,role:"presentation",tabIndex:mie?-1:void 0}),getContentProps:()=>({style:q,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:I,role:"presentation"})}};function A1(e,t,n,r){const o=Bn(e.current.state),s=Ec(e,t),i=t.unstable_listView?[Zc(e.current.state)]:yn(e),a=wie(e),l=e.current.state.rows.dataRowIds.at(-1),c=i.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:Mu(e.current.state),columnPositions:ca(e),rows:s.rows,range:s.range,pinnedColumns:fp(e),visibleColumns:i,hiddenCellsOriginMap:a,listView:t.unstable_listView??!1}}function O1(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:s}=t,i=Math.abs(s)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(LM(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:LM(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]=Gx({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});for(let g=d;g=e.range.lastRowIndex);const s=Ss(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[s]>=t?Ji(t,e.rowsMeta.positions,n):Mie(t,e.rowsMeta.positions,s,n)}function Pie(e,t,n){const[r,o]=Gx({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}),[s,i]=Gx({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}),a=aie({firstColumnToRender:s,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:i}}function Ji(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const s=r+Math.floor((o-r)/2),i=t[s];let a;if(n!=null&&n.atStart){const l=(s===t.length-1?n.lastPosition:t[s+1])-i;a=e-l=Math.abs(e)?t>0?cn.DOWN:cn.UP:e>0?cn.RIGHT:cn.LEFT}function L4(e,t,n,r,o,s){if(e)switch(t){case cn.LEFT:t=cn.RIGHT;break;case cn.RIGHT:t=cn.LEFT;break}switch(t){case cn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case cn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:s};case cn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:s,columnBefore:0};case cn.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case cn.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Tie=()=>{var u,d;const e=Ze(),t=ze(),n=me(e,Q0),r=me(e,TC),o=n===0,s=me(e,Poe),i=!s&&o,a=!s&&n>0&&r===0;let l=null,c=null;return i&&(l="noRowsOverlay"),a&&(l="noResultsOverlay"),s&&(l="loadingOverlay",c=((d=(u=t.slotProps)==null?void 0:u.loadingOverlay)==null?void 0:d[o?"noRowsVariant":"variant"])||null),{overlayType:l,loadingOverlayVariant:c}},Rie=wt("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}:{}),Die=wt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),$ie=e=>{const{classes:t}=e;return le({root:["overlayWrapper"],inner:["overlayWrapperInner"]},dt,t)};function Aie(e){const t=Ze(),n=ze(),r=da(t,n),o=me(t,Bn);let s=o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||s===0)&&(s=d4(t));const i=$ie(P({},e,{classes:n.classes}));return p.jsx(Rie,P({className:se(i.root)},e,{children:p.jsx(Die,P({className:se(i.inner),style:{height:s,width:o.viewportOuterSize.width}},e))}))}function Oie(e){var s,i;const{overlayType:t}=e,n=ze();if(!t)return null;const r=(s=n.slots)==null?void 0:s[t],o=(i=n.slotProps)==null?void 0:i[t];return p.jsx(Aie,P({},e,{children:p.jsx(r,P({},o))}))}const tm=e=>e.columnMenu;function jie(){var v;const e=jo(),t=ze(),n=me(e,yn),r=me(e,ese),o=me(e,Xoe),s=me(e,b4),i=me(e,$C),a=me(e,dse),l=me(e,use),c=me(e,tg),u=me(e,mp),d=me(e,tm),f=me(e,yo),g=me(e,oie),m=!(a===null&&s===null&&i===null),y=e.current.columnHeadersContainerRef;return p.jsx(t.slots.columnHeaders,P({ref:y,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:m},(v=t.slotProps)==null?void 0:v.columnHeaders))}const Fie=la(jie),_4=h.createContext(void 0),N4=()=>{const e=h.useContext(_4);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},Lie=wt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),_ie=wt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),Nie=h.forwardRef((e,t)=>{const n=ze(),o=N4().hooks.useGridAriaAttributes();return p.jsxs(_ie,P({ref:t,ownerState:n,className:e.className,tabIndex:-1},o,{children:[p.jsx(Lie,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),zie=()=>le({root:["topContainer"]},dt,{}),Bie=wt("div")({position:"sticky",zIndex:4,top:0});function Hie(e){const t=zie();return p.jsx(Bie,P({},e,{className:se(t.root,Y["container--top"]),role:"presentation"}))}const Vie=()=>le({root:["bottomContainer"]},dt,{}),Uie=wt("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Wie(e){const t=Vie();return p.jsx(Uie,P({},e,{className:se(t.root,Y["container--bottom"]),role:"presentation"}))}const Gie=(e,t)=>{const{classes:n}=e;return le({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},dt,n)},Kie=wt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Yie=h.forwardRef(function(t,n){var i;const r=ze(),o=!r.autoHeight&&((i=t.style)==null?void 0:i.minHeight)==="auto",s=Gie(r,o);return p.jsx(Kie,P({ref:n},t,{ownerState:r,className:se(s.root,t.className)}))}),qie=wt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),z4=wt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),Xie=wt(z4)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Qie=wt(z4)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Zie=wt("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Jie({rowsLength:e}){const t=Ze(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:s,scrollbarSize:i,leftPinnedWidth:a,rightPinnedWidth:l}=me(t,Bn),c=o?i:0,u=n.height-r.height>0;return c===0&&!u?null:p.jsxs(qie,{className:Y.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&p.jsx(Xie,{className:Y["filler--pinnedLeft"],style:{width:a}}),p.jsx(Zie,{}),l>0&&p.jsx(Qie,{className:Y["filler--pinnedRight"],style:{width:l+(s?i:0)}})]})}const eae=la(Jie),tae=["className"],nae=e=>{const{classes:t}=e;return le({root:["virtualScrollerRenderZone"]},dt,t)},rae=wt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),oae=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,tae),s=Ze(),i=ze(),a=nae(i),l=me(s,()=>{const c=iy(s);return Mu(s.current.state).positions[c.firstRowIndex]??0});return p.jsx(rae,P({ref:n,className:se(a.root,r),ownerState:i,style:{transform:`translate3d(0, ${l}px, 0)`}},o))}),sae={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Mn=e=>e.editRows,Mf=e=>e.preferencePanel;var ol=function(e){return e.filters="filters",e.columns="columns",e}(ol||{});const iae=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return le(r,dt,n)},B4=wt("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),aae=wt(B4)({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"}),lae=wt(B4)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),_M=h.forwardRef(function(t,n){const r=jo(),o=ze(),s=h.useRef(!1),i=h.useRef(0),a=h.useRef(null),l=h.useRef(null),c=iae(o,t.position),u=me(r,Bn),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",g=t.position==="vertical"?u.hasScrollX:u.hasScrollY,m=u.minimumSize[d]+(g?u.scrollbarSize:0),v=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(m/u.viewportOuterSize[d]),x=ve(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;if(!k||C[f]===i.current)return;if(i.current=C[f],s.current){s.current=!1;return}s.current=!0;const M=C[f]/m;k[f]=M*v}),w=ve(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;if(!k)return;if(s.current){s.current=!1;return}s.current=!0;const M=k[f]/v;C[f]=M*m});C0(()=>{const C=r.current.virtualScrollerRef.current,k=a.current;return C.addEventListener("scroll",x,{capture:!0}),k.addEventListener("scroll",w,{capture:!0}),()=>{C.removeEventListener("scroll",x,{capture:!0}),k.removeEventListener("scroll",w,{capture:!0})}}),h.useEffect(()=>{l.current.style.setProperty(d,`${v}px`)},[v,d]);const b=t.position==="vertical"?aae:lae;return p.jsx(b,{ref:tt(n,a),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:p.jsx("div",{ref:l,className:c.content})})}),cae=(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 le(o,dt,r)},uae=wt("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 dae(e){const t=Ze(),n=ze(),r=me(t,Bn),o=Tie(),s=cae(n,r,o.loadingOverlayVariant),i=kie(),{getContainerProps:a,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:g}=i,m=g();return p.jsxs(Nie,P({className:s.root},a(),{children:[p.jsx(jM,{scrollDirection:"left"}),p.jsx(jM,{scrollDirection:"right"}),p.jsxs(uae,P({className:s.scroller},l(),{ownerState:n,children:[p.jsxs(Hie,{children:[!n.unstable_listView&&p.jsx(Fie,{}),p.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:i})]}),p.jsx(Oie,P({},o)),p.jsx(Yie,P({},c(),{children:p.jsxs(oae,P({},u(),{children:[m,p.jsx(n.slots.detailPanels,{virtualScroller:i})]}))})),p.jsx(eae,{rowsLength:m.length}),p.jsx(Wie,{children:p.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:i})})]})),r.hasScrollY&&p.jsx(_M,P({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&p.jsx(_M,P({position:"horizontal"},f())),e.children]}))}function fae(){var t;const e=ze();return e.hideFooter?null:p.jsx(e.slots.footer,P({},(t=e.slotProps)==null?void 0:t.footer))}let j1;function pae(){return j1===void 0&&document.createElement("div").focus({get preventScroll(){return j1=!0,!1}}),j1}function hae(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function rg(e,t){return e.closest(`.${t}`)}function hi(e){return e.replace(/["\\]/g,"\\$&")}function mae(e,t){return e.querySelector(`[role="columnheader"][data-field="${hi(t)}"]`)}function H4(e){return`.${Y.row}[data-id="${hi(String(e))}"]`}function gae(e,t){return e.querySelector(H4(t))}function yae(e,{id:t,field:n}){const r=H4(t),o=`.${Y.cell}[data-field="${hi(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function gp(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function vae(e){return e.getAttribute("data-field")}function xae(e,t){return e.querySelector(`[data-field="${hi(t)}"]`)}function bae(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function wae(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${hi(t)}-|"]`)??[])}function Cae(e,t){var i;if(!rg(e,Y.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,s=[];return(i=t.virtualScrollerRef)!=null&&i.current?(W4(t).forEach(a=>{const l=a.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=a.querySelector(`[data-colindex="${c}"]`);d&&s.push(d)}),s):[]}function NM(e,t){return e.rootElementRef.current.querySelector(`.${Y[t]}`)}const V4=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return W4(e).forEach(s=>{s.getAttribute("data-id")&&s.querySelectorAll(`.${Y[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const l=Iu(a);l!==null&&r(l)&&o.push(a)})}),o};function Sae(e,t,n){const r=Iu(t);return V4({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?or})}function kae(e,t,n){const r=Iu(t);return V4({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o{var s;if(!((s=e.columnHeadersContainerRef)!=null&&s.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Y[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const a=Iu(i);a!==null&&r(a)&&o.push(i)}),o};function Pae(e,t,n){const r=Iu(t);return U4({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?or})}function Mae(e,t,n){const r=Iu(t);return U4({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o div > [data-field="${hi(t)}"][role="columnheader"]`)}function Eae(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${hi(t)}"][role="gridcell"]`))}function W4(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Y.row}`)}function Iu(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class nm extends Error{}function Tae(e,t){const n=h.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=h.useCallback(f=>{const g=e.current.getRow(f);if(!g)throw new nm(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:g}},[e]),o=h.useCallback((f,g)=>{const m=t.unstable_listView?Zc(e.current.state):e.current.getColumn(g),y=e.current.getRow(f),v=e.current.getRowNode(f);if(!y||!v)throw new nm(`No row with id #${f} found`);const x=y[g],w=m!=null&&m.valueGetter?m.valueGetter(x,y,m,e):x,b=$r(e),C=$C(e),k={id:f,field:g,row:y,rowNode:v,colDef:m,cellMode:e.current.getCellMode(f,g),hasFocus:b!==null&&b.field===g&&b.id===f,tabIndex:C&&C.field===g&&C.id===f?0:-1,value:w,formattedValue:w,isEditable:!1,api:{}};return m&&m.valueFormatter&&(k.formattedValue=m.valueFormatter(w,y,m,e)),k.isEditable=m&&e.current.isCellEditable(k),k},[e,t.unstable_listView]),s=h.useCallback((f,g)=>{const m=e.current.getColumn(g),y=e.current.getRow(f);if(!y)throw new nm(`No row with id #${f} found`);return!m||!m.valueGetter?y[g]:m.valueGetter(y[m.field],y,m,e)},[e]),i=h.useCallback((f,g)=>{const m=g.field;if(!g||!g.valueGetter)return f[m];const y=f[g.field];return g.valueGetter(y,f,g,e)},[e]),a=h.useCallback((f,g)=>{const m=i(f,g);return!g||!g.valueFormatter?m:g.valueFormatter(m,f,g,e)},[e,i]),l=h.useCallback(f=>e.current.rootElementRef.current?mae(e.current.rootElementRef.current,f):null,[e]),c=h.useCallback(f=>e.current.rootElementRef.current?gae(e.current.rootElementRef.current,f):null,[e]),u=h.useCallback((f,g)=>e.current.rootElementRef.current?yae(e.current.rootElementRef.current,{id:f,field:g}):null,[e]);ot(e,{getCellValue:s,getCellParams:o,getCellElement:u,getRowValue:i,getRowFormattedValue:a,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const ay=(e,t,n,r,o)=>{const s=t===n-1;return e===At.LEFT&&s?!0:r?e===At.LEFT?!0:e===At.RIGHT?!s:!s||o:!1},ly=(e,t)=>e===At.RIGHT&&t===0,Rae=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Dae=["changeReason","unstable_updateValueOnRender"];let mr=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 G4={[mr.LEFT]:At.LEFT,[mr.RIGHT]:At.RIGHT,[mr.NONE]:void 0,[mr.VIRTUAL]:void 0},zM={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Pt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},$ae=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:s,isSelected:i,isSelectionMode:a,classes:l}=e,c={root:["cell",`cell--text${ae(t)}`,i&&"selected",s&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===mr.LEFT&&"cell--pinnedLeft",o===mr.RIGHT&&"cell--pinnedRight",a&&!s&&"cell--selectionMode"]};return le(c,dt,l)},Aae=h.forwardRef(function(t,n){var Ie,We,Ct;const{column:r,rowId:o,editCellState:s,align:i,colIndex:a,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:g,pinnedOffset:m,pinnedPosition:y,sectionIndex:v,sectionLength:x,gridHasFiller:w,onClick:b,onDoubleClick:C,onMouseDown:k,onMouseUp:M,onMouseOver:T,onKeyDown:I,onKeyUp:D,onDragEnter:S,onDragOver:R}=t,j=ue(t,Rae),F=Ze(),A=ze(),$=Bt(),E=r.field,L=me(F,()=>{try{const ye=F.current.getCellParams(o,E);return ye.api=F.current,ye}catch(ye){if(ye instanceof nm)return zM;throw ye}},X3),O=me(F,()=>F.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:E})),_=me(F,j4),N=me(F,bie),{cellMode:z,hasFocus:G,isEditable:J=!1,value:K}=L,B=r.type==="actions"&&((Ie=r.getActions)==null?void 0:Ie.call(r,F.current.getRowParams(o)).some(ye=>!ye.props.disabled)),W=(z==="view"||!J)&&!B?L.tabIndex:-1,{classes:te,getCellClassName:X}=A,U=[me(F,()=>F.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:E}).filter(Boolean).join(" "))];r.cellClassName&&U.push(typeof r.cellClassName=="function"?r.cellClassName(L):r.cellClassName),r.display==="flex"&&U.push(Y["cell--flex"]),X&&U.push(X(L));const ee=L.formattedValue??K,H=h.useRef(null),Z=tt(n,H),ne=h.useRef(null),oe=A.cellSelection??!1,re=G4[y],de=ly(re,v),ie=ay(re,v,x,A.showCellVerticalBorder,w),we={align:i,showLeftBorder:de,showRightBorder:ie,isEditable:J,classes:A.classes,pinnedPosition:y,isSelected:O,isSelectionMode:oe},Re=$ae(we),Le=h.useCallback(ye=>$e=>{const Xe=F.current.getCellParams(o,E||"");F.current.publishEvent(ye,Xe,$e),M&&M($e)},[F,E,M,o]),Qe=h.useCallback(ye=>$e=>{const Xe=F.current.getCellParams(o,E||"");F.current.publishEvent(ye,Xe,$e),k&&k($e)},[F,E,k,o]),Me=h.useCallback((ye,$e)=>Xe=>{if(!F.current.getRow(o))return;const ht=F.current.getCellParams(o,E||"");F.current.publishEvent(ye,ht,Xe),$e&&$e(Xe)},[F,E,o]),Ee=((We=_[o])==null?void 0:We[E])??!1,Ve=((Ct=N[o])==null?void 0:Ct[E])??1,Ge=h.useMemo(()=>{if(g)return{padding:0,opacity:0,width:0,border:0};const ye=P({"--width":`${l}px`},u),$e=y===mr.LEFT,Xe=y===mr.RIGHT;if($e||Xe){let ht=$e?"left":"right";$&&(ht=$e?"right":"left"),ye[ht]=m}return Ve>1&&(ye.height=`calc(var(--height) * ${Ve})`,ye.zIndex=5),ye},[l,g,u,m,y,$,Ve]);if(h.useEffect(()=>{if(!G||z===Pt.Edit)return;const ye=zt(F.current.rootElementRef.current);if(H.current&&!H.current.contains(ye.activeElement)){const $e=H.current.querySelector('[tabindex="0"]'),Xe=ne.current||$e||H.current;if(pae())Xe.focus({preventScroll:!0});else{const ht=F.current.getScrollPosition();Xe.focus(),F.current.scroll(ht)}}},[G,z,F]),Ee)return p.jsx("div",{"data-colindex":a,role:"presentation",style:P({width:"var(--width)"},Ge)});if(L===zM)return null;let Oe=j.onFocus,je,Ue;if(s===null&&r.renderCell&&(je=r.renderCell(L)),s!==null&&r.renderEditCell){const ye=F.current.getRowWithUpdatedValues(o,r.field),$e=ue(s,Dae),Xe=r.valueFormatter?r.valueFormatter(s.value,ye,r,F):L.formattedValue,ht=P({},L,{row:ye,formattedValue:Xe},$e);je=r.renderEditCell(ht),U.push(Y["cell--editing"]),U.push(te==null?void 0:te["cell--editing"])}if(je===void 0){const ye=ee==null?void 0:ee.toString();je=ye,Ue=ye}h.isValidElement(je)&&B&&(je=h.cloneElement(je,{focusElementRef:ne}));const Te=f?null:{onDragEnter:Me("cellDragEnter",S),onDragOver:Me("cellDragOver",R)};return p.jsx("div",P({ref:Z,className:se(Re.root,U,c),role:"gridcell","data-field":E,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":d,"aria-rowspan":Ve,style:Ge,title:Ue,tabIndex:W,onClick:Me("cellClick",b),onDoubleClick:Me("cellDoubleClick",C),onMouseOver:Me("cellMouseOver",T),onMouseDown:Qe("cellMouseDown"),onMouseUp:Le("cellMouseUp"),onKeyDown:Me("cellKeyDown",I),onKeyUp:Me("cellKeyUp",D)},Te,j,{onFocus:Oe,children:je}))}),Oae=la(Aae),jae=["field","type","align","width","height","empty","style","className"],BM="1.3em",Fae="1.2em",HM=[40,80],Lae={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},_ae=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?ae(t):"Left"}`,r&&"cellEmpty"]};return le(o,dt,n)},Nae=soe(12345);function zae(e){const{field:t,type:n,align:r,width:o,height:s,empty:i=!1,style:a,className:l}=e,c=ue(e,jae),d={classes:ze().classes,align:r,empty:i},f=_ae(d),g=h.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:BM,height:BM};const[y,v]=n?Lae[n]??HM:HM;return{variant:"text",width:`${Math.round(Nae(y,v))}%`,height:Fae}},[n]);return p.jsx("div",P({"data-field":t,className:se(f.root,l),style:P({height:s,maxWidth:o,minWidth:o},a)},c,{children:!i&&p.jsx(aq,P({},g))}))}const Bae=la(zae);function Hae(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?fl(be(e.palette.divider,1),.88):dl(be(e.palette.divider,1),.68)}const VM={[`& .${Y.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Y.menuIcon}`]:{width:"auto",visibility:"visible"}},Vae=10,yh=-5,Fl=1,UM={width:3,rx:1.5,x:10.5},Uae="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Wae=Q("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Y.autoHeight}`]:t.autoHeight},{[`&.${Y.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Y["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Y["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Y["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Y.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${Y["root--disableUserSelection"]} .${Y.cell}`]:t["root--disableUserSelection"]},{[`&.${Y.autosizing}`]:t.autosizing},{[`& .${Y.editBooleanCell}`]:t.editBooleanCell},{[`& .${Y.cell}`]:t.cell},{[`& .${Y["cell--editing"]}`]:t["cell--editing"]},{[`& .${Y["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Y["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Y["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Y["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${Y["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${Y["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${Y["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${Y["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${Y.cellCheckbox}`]:t.cellCheckbox},{[`& .${Y.cellSkeleton}`]:t.cellSkeleton},{[`& .${Y.checkboxInput}`]:t.checkboxInput},{[`& .${Y["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Y["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Y["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Y["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Y["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Y["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Y["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Y["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Y["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${Y.columnHeader}`]:t.columnHeader},{[`& .${Y.headerFilterRow}`]:t.headerFilterRow},{[`& .${Y.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Y.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Y.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Y["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Y["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Y.columnSeparator}`]:t.columnSeparator},{[`& .${Y.filterIcon}`]:t.filterIcon},{[`& .${Y.iconSeparator}`]:t.iconSeparator},{[`& .${Y.menuIcon}`]:t.menuIcon},{[`& .${Y.menuIconButton}`]:t.menuIconButton},{[`& .${Y.menuOpen}`]:t.menuOpen},{[`& .${Y.menuList}`]:t.menuList},{[`& .${Y["row--editable"]}`]:t["row--editable"]},{[`& .${Y["row--editing"]}`]:t["row--editing"]},{[`& .${Y["row--dragging"]}`]:t["row--dragging"]},{[`& .${Y.row}`]:t.row},{[`& .${Y.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Y.rowReorderCell}`]:t.rowReorderCell},{[`& .${Y["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Y.sortIcon}`]:t.sortIcon},{[`& .${Y.withBorderColor}`]:t.withBorderColor},{[`& .${Y.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Y.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Y.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${Y.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${Y.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Y["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var I,D;const t=jo(),n=me(t,Bn),r=Hae(e),o=e.shape.borderRadius,s=e.vars?e.vars.palette.background.default:((I=e.mixins.MuiDataGrid)==null?void 0:I.containerBackground)??e.palette.background.default,i=((D=e.mixins.MuiDataGrid)==null?void 0:D.pinnedBackground)??s,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:be(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})`:be(e.palette.primary.main,u),g=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:be(e.palette.primary.main,d),m=e.vars?Yae:Gae,y=S=>({[`& .${Y["cell--pinnedLeft"]}, & .${Y["cell--pinnedRight"]}`]:{backgroundColor:S,"&.Mui-selected":{backgroundColor:m(S,f,u),"&:hover":{backgroundColor:m(S,f,d)}}}}),v=m(i,c,l),x=y(v),w=m(i,f,u),b=y(w),C=m(i,g,d),k=y(C),M={backgroundColor:f,"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:f}}};return P({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":i,"--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",[`.${Y.main} > *:first-child${Uae}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Y.autoHeight}`]:{height:"auto"},[`&.${Y.autosizing}`]:{[`& .${Y.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Y.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${Y.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Y.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Y.groupingCriteriaCell}`]:{width:"unset"},[`& .${Y.treeDataGroupingCell}`]:{width:"unset"}},[`& .${Y.columnHeader}, & .${Y.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${Y.columnHeader}:focus-within, & .${Y.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:be(e.palette.primary.main,.5)} ${Fl}px`,outlineOffset:Fl*-1},[`& .${Y.columnHeader}:focus, & .${Y.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${Fl}px`,outlineOffset:Fl*-1},[`& .${Y.columnHeader}:focus, + & .${Y["columnHeader--withLeftBorder"]}, + & .${Y["columnHeader--withRightBorder"]}, + & .${Y["columnHeader--siblingFocused"]}, + & .${Y["virtualScroller--hasScrollX"]} .${Y["columnHeader--lastUnpinned"]}, + & .${Y["virtualScroller--hasScrollX"]} .${Y["columnHeader--last"]} + `]:{[`& .${Y.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${Y["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${Y["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${Y["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Y["root--noToolbar"]} [aria-rowindex="1"] .${Y["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Y.columnHeaderCheckbox}, & .${Y.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Y.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Y["virtualScroller--hasScrollX"]} .${Y["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Y["columnHeader--sorted"]} .${Y.iconButtonContainer}, & .${Y["columnHeader--filtered"]} .${Y.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Y.columnHeader}:not(.${Y["columnHeader--sorted"]}) .${Y.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Y.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Y.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Y["columnHeader--filledGroup"]} .${Y.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Y.sortIcon}, & .${Y.filterIcon}`]:{fontSize:"inherit"},[`& .${Y["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Y["columnHeader--alignCenter"]} .${Y.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Y["columnHeader--alignRight"]} .${Y.columnHeaderDraggableContainer}, & .${Y["columnHeader--alignRight"]} .${Y.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Y["columnHeader--alignCenter"]} .${Y.menuIcon}`]:{marginLeft:"auto"},[`& .${Y["columnHeader--alignRight"]} .${Y.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${Y["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${Y["columnHeader--pinnedLeft"]}, & .${Y["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${Y.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:Vae,color:r},[`& .${Y.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${Y.columnHeader}:hover`]:VM,[`& .${Y.columnHeader}:not(.${Y["columnHeader--sorted"]}):hover .${Y.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${Y.columnHeader}`]:VM,[`& .${Y.columnHeader}:focus, + & .${Y["columnHeader--siblingFocused"]}`]:{[`.${Y["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${Y["columnSeparator--sideLeft"]}`]:{left:yh},[`& .${Y["columnSeparator--sideRight"]}`]:{right:yh},[`& .${Y["columnHeader--withRightBorder"]} .${Y["columnSeparator--sideLeft"]}`]:{left:yh-.5},[`& .${Y["columnHeader--withRightBorder"]} .${Y["columnSeparator--sideRight"]}`]:{right:yh-.5},[`& .${Y["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${Y["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${Y.iconSeparator} rect`]:UM},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${Y.iconSeparator} rect`]:UM}},"& svg":{pointerEvents:"none"}},[`& .${Y.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${Y.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${Y.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Y.headerFilterRow}`]:{[`& .${Y.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Y["row--borderBottom"]} .${Y.columnHeader}, + & .${Y["row--borderBottom"]} .${Y.filler}, + & .${Y["row--borderBottom"]} .${Y.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Y["row--borderBottom"]} .${Y.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Y.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Y["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Y.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":M},[`& .${Y["container--top"]}, & .${Y["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${Y.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":M},[`& .${Y["virtualScrollerContent--overflowed"]} .${Y["row--lastVisible"]} .${Y.cell}`]:{borderTopColor:"transparent"},[`& .${Y["pinnedRows--top"]} :first-of-type`]:{[`& .${Y.cell}, .${Y.scrollbarFiller}`]:{borderTop:"none"}},[`&.${Y["root--disableUserSelection"]} .${Y.cell}`]:{userSelect:"none"},[`& .${Y["row--dynamicHeight"]} > .${Y.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Y.cellEmpty}`]:{padding:0,height:"unset"},[`& .${Y.cell}.${Y["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Y.cell}.${Y["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${Fl}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:Fl*-1}},[`& .${Y["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Y["row--editing"]} .${Y.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${Y.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Y.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${Y.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${Y.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Y.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Y["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Y.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Y.withBorderColor}`]:{borderColor:r},[`& .${Y["cell--withLeftBorder"]}, & .${Y["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Y["cell--withRightBorder"]}, & .${Y["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Y["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Y["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Y["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Y["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Y["cell--pinnedLeft"]}, & .${Y["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:w}},[`& .${Y.virtualScrollerContent} .${Y.row}`]:{"&:hover":x,"&.Mui-selected":b,"&.Mui-selected:hover":k},[`& .${Y.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Y.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Y.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Y.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Y["columnHeader--dragging"]}, & .${Y["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${Y["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${Y.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Y.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Y.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Y.treeDataGroupingCellLoadingContainer}, .${Y.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Y.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Y.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${Y.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${Y["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${Y["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${Y["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${Y.filler}`]:{flex:"1 0 auto"},[`& .${Y["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Y["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${Y.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${Y["scrollbar--vertical"]}, & .${Y.pinnedRows}, & .${Y.virtualScroller} > .${Y.filler}`]:{display:"none"}}})});function Gae(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),s=Ps(e),i=Ps(t),a=[o(s.values[0],i.values[0]),o(s.values[1],i.values[1]),o(s.values[2],i.values[2])];return Jf({type:"rgb",values:a})}const Kae=e=>`rgb(from ${e} r g b / 1)`;function Yae(e,t,n){return`color-mix(in srgb,${e}, ${Kae(t)} calc(${n} * 100%))`}const qae=["className"],Xae=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,s={root:["root",n&&"autoHeight",`root--density${ae(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return le(s,dt,r)},Qae=h.forwardRef(function(t,n){const r=ze(),{className:o}=t,s=ue(t,qae),i=jo(),a=me(i,lc),l=i.current.rootElementRef,c=tt(l,n),u=r,d=Xae(u,a),[f,g]=h.useState(!1);return at(()=>{g(!0)},[]),f?p.jsx(Wae,P({ref:c,className:se(d.root,o),ownerState:u},s)):null}),Zae=["className"],Jae=e=>{const{classes:t}=e;return le({root:["footerContainer","withBorderColor"]},dt,t)},ele=wt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),tle=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,Zae),s=ze(),i=Jae(s);return p.jsx(ele,P({ref:n,className:se(i.root,r),ownerState:s},o))}),nle=["className"],rle=e=>{const{classes:t}=e;return le({root:["overlay"]},dt,t)},ole=wt("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)"}),_C=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,nle),s=ze(),i=rle(s);return p.jsx(ole,P({ref:n,className:se(i.root,r),ownerState:s},o))}),sle=["className","children"],ile=e=>{const{classes:t}=e;return le({root:["toolbarContainer"]},dt,t)},ale=wt("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),Eu=h.forwardRef(function(t,n){const{className:r,children:o}=t,s=ue(t,sle),i=ze(),a=ile(i);return o?p.jsx(ale,P({ref:n,className:se(a.root,r),ownerState:i},s,{children:o})):null}),lle=e=>{const{classes:t,open:n}=e;return le({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},dt,t)},cle=h.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:s}=e,i=Ze(),a=ze(),l=P({},e,{classes:a.classes}),c=lle(l),u=h.useCallback(g=>{g.preventDefault(),g.stopPropagation(),i.current.toggleColumnMenu(t.field)},[i,t.field]);return p.jsx("div",{className:c.root,children:p.jsx(a.slots.baseTooltip,P({title:i.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=a.slotProps)==null?void 0:d.baseTooltip,{children:p.jsx(a.slots.baseIconButton,P({ref:s,tabIndex:-1,className:c.button,"aria-label":i.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=a.slotProps)==null?void 0:f.baseIconButton,{children:p.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function ule({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:a}){const l=Ze(),c=l.current.getColumn(o),u=ve(d=>{d&&(d.stopPropagation(),i!=null&&i.contains(d.target))||l.current.hideColumnMenu()});return!i||!c?null:p.jsx(l4,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:s,target:i,onClose:u,onExited:a,children:p.jsx(n,P({colDef:c,hideMenu:u,open:s,id:e,labelledby:t},r))})}const dle=["className","aria-label"],fle=e=>{const{classes:t}=e;return le({root:["columnHeaderTitle"]},dt,t)},ple=wt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),hle=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,dle),s=ze(),i=fle(s);return p.jsx(ple,P({ref:n,className:se(i.root,r),ownerState:s},o))});function mle(e){var l;const{label:t,description:n}=e,r=ze(),o=h.useRef(null),[s,i]=h.useState(""),a=h.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=hae(o.current);i(c?t:"")}},[n,t]);return p.jsx(r.slots.baseTooltip,P({title:n||s},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:p.jsx(hle,{onMouseOver:a,ref:o,children:t})}))}const gle=["resizable","resizing","height","side"];var NC=function(e){return e.Left="left",e.Right="right",e}(NC||{});const yle=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ae(o)}`],icon:["iconSeparator"]};return le(s,dt,r)};function vle(e){const{height:t,side:n=NC.Right}=e,r=ue(e,gle),o=ze(),s=P({},e,{side:n,classes:o.classes}),i=yle(s),a=h.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return p.jsx("div",P({className:i.root,style:{minHeight:t}},r,{onClick:a,children:p.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const xle=h.memo(vle),ble=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],K4=h.forwardRef(function(t,n){const{classes:r,colIndex:o,height:s,isResizing:i,sortDirection:a,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:g,width:m,columnMenuIconButton:y=null,columnMenu:v=null,columnTitleIconButtons:x=null,headerClassName:w,label:b,resizable:C,draggableContainerProps:k,columnHeaderSeparatorProps:M,style:T}=t,I=ue(t,ble),D=jo(),S=ze(),R=h.useRef(null),j=tt(R,n);let F="none";return a!=null&&(F=a==="asc"?"ascending":"descending"),h.useLayoutEffect(()=>{var $;const A=D.current.state.columnMenu;if(l&&!A.open){const L=R.current.querySelector('[tabindex="0"]')||R.current;L==null||L.focus(),($=D.current.columnHeadersContainerRef)!=null&&$.current&&(D.current.columnHeadersContainerRef.current.scrollLeft=0)}},[D,l]),p.jsxs("div",P({ref:j,className:se(r.root,w),style:P({},T,{height:s,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":F},I,{children:[p.jsxs("div",P({className:r.draggableContainer,draggable:d,role:"presentation"},k,{children:[p.jsxs("div",{className:r.titleContainer,role:"presentation",children:[p.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:p.jsx(mle,{label:b,description:g,columnWidth:m})}),x]}),y]})),p.jsx(xle,P({resizable:!S.disableColumnResize&&!!C,resizing:i,height:s,side:u},M)),v]}))}),wle=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,showLeftBorder:i,filterItemsCounter:a,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=a!=null&&a>0,g=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",g&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return le(m,dt,n)};function Cle(e){var q,U,ee;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:s,isLast:i,sortDirection:a,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:g,style:m,pinnedPosition:y,indexInSection:v,sectionLength:x,gridHasFiller:w}=e,b=jo(),C=ze(),k=h.useRef(null),M=mt(),T=mt(),I=h.useRef(null),[D,S]=h.useState(n),R=h.useMemo(()=>!C.disableColumnReorder&&!f&&!t.disableReorder,[C.disableColumnReorder,f,t.disableReorder]);let j;t.renderHeader&&(j=t.renderHeader(b.current.getColumnHeaderParams(t.field)));const F=ly(y,v),A=ay(y,v,x,C.showColumnVerticalBorder,w),$=P({},e,{classes:C.classes,showRightBorder:A,showLeftBorder:F}),E=wle($),L=h.useCallback(H=>Z=>{gp(Z)||b.current.publishEvent(H,b.current.getColumnHeaderParams(t.field),Z)},[b,t.field]),O=h.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),_=h.useMemo(()=>R?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[R,L]),N=h.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);h.useEffect(()=>{D||S(n)},[D,n]);const z=h.useCallback(()=>{S(!1)},[]),G=!C.disableColumnMenu&&!t.disableColumnMenu&&p.jsx(cle,{colDef:t,columnMenuId:M,columnMenuButtonId:T,open:D,iconButtonRef:I}),J=p.jsx(ule,{columnMenuId:M,columnMenuButtonId:T,field:t.field,open:n,target:I.current,ContentComponent:C.slots.columnMenu,contentComponentProps:(q=C.slotProps)==null?void 0:q.columnMenu,onExited:z}),K=t.sortingOrder??C.sortingOrder,B=(t.sortable||a!=null)&&!t.hideSortIcons&&!C.disableColumnSorting,W=p.jsxs(h.Fragment,{children:[!C.disableColumnFilter&&p.jsx(C.slots.columnHeaderFilterIconButton,P({field:t.field,counter:c},(U=C.slotProps)==null?void 0:U.columnHeaderFilterIconButton)),B&&p.jsx(C.slots.columnHeaderSortIcon,P({field:t.field,direction:a,index:l,sortingOrder:K,disabled:!t.sortable},(ee=C.slotProps)==null?void 0:ee.columnHeaderSortIcon))]});h.useLayoutEffect(()=>{var Z;const H=b.current.state.columnMenu;if(u&&!H.open){const oe=k.current.querySelector('[tabindex="0"]')||k.current;oe==null||oe.focus(),(Z=b.current.columnHeadersContainerRef)!=null&&Z.current&&(b.current.columnHeadersContainerRef.current.scrollLeft=0)}},[b,u]);const te=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=t.headerName??t.field;return p.jsx(K4,P({ref:k,classes:E,columnMenuOpen:n,colIndex:r,height:o,isResizing:s,sortDirection:a,hasFocus:u,tabIndex:d,separatorSide:g,isDraggable:R,headerComponent:j,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:G,columnTitleIconButtons:W,headerClassName:se(te,i&&Y["columnHeader--last"]),label:X,resizable:!C.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:J,draggableContainerProps:_,columnHeaderSeparatorProps:N,style:m},O))}const Sle=la(Cle),kle=["className"],Ple=e=>{const{classes:t}=e;return le({root:["iconButtonContainer"]},dt,t)},Mle=wt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),Y4=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,kle),s=ze(),i=Ple(s);return p.jsx(Mle,P({ref:n,className:se(i.root,r),ownerState:s},o))}),Ile=["direction","index","sortingOrder","disabled"],Ele=e=>{const{classes:t}=e;return le({icon:["sortIcon"]},dt,t)};function Tle(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?p.jsx(o,P({fontSize:"small",className:n},s)):null}function Rle(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,s=ue(e,Ile),i=Ze(),a=ze(),l=P({},e,{classes:a.classes}),c=Ele(l),u=Tle(a.slots,t,c.icon,r);if(!u)return null;const d=p.jsx(a.slots.baseIconButton,P({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=a.slotProps)==null?void 0:f.baseIconButton,s,{children:u}));return p.jsxs(Y4,{children:[n!=null&&p.jsx(a.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const Dle=h.memo(Rle),$le=e=>{const{classes:t}=e;return le({icon:["filterIcon"]},dt,t)};function Ale(e){var m,y;const{counter:t,field:n,onClick:r}=e,o=Ze(),s=ze(),i=P({},e,{classes:s.classes}),a=$le(i),l=me(o,Mf),c=mt(),u=mt(),d=h.useCallback(v=>{v.preventDefault(),v.stopPropagation();const{open:x,openedPanelValue:w}=Mf(o.current.state);x&&w===ol.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),v)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,g=p.jsx(s.slots.baseIconButton,P({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=s.slotProps)==null?void 0:m.baseIconButton,{children:p.jsx(s.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return p.jsx(s.slots.baseTooltip,P({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=s.slotProps)==null?void 0:y.baseTooltip,{children:p.jsxs(Y4,{children:[t>1&&p.jsx(s.slots.baseBadge,{badgeContent:t,color:"default",children:g}),t===1&&g]})}))}const WM=De(p.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),GM=De(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),KM=De(p.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),YM=De(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Ole=De(p.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qM=De(p.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"),jle=De(p.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");De(p.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");De(p.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 Fle=De(p.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"),Lle=De(p.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),_le=De(p.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Nle=De(p.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),zle=De(p.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ble=De(p.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"),F1=De(p.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"),XM=De(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Hle=De(p.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Vle=De(p.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"),QM=De(p.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"),Ule=De(p.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"),Wle=De(p.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Gle=De(p.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"),Kle=De(p.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"),Yle=De(p.jsx("g",{children:p.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),qle=De(p.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");De(p.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 Xle=De(p.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 q4(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const og=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Qle=e=>!!e.key,Zle=e=>e==="Tab"||e==="Escape";function X4(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Jle(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const ece=["hideMenu","colDef","id","labelledby","className","children","open"],tce=Q(Xw)(()=>({minWidth:248})),nce=h.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:a,open:l}=t,c=ue(t,ece),u=h.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),Zle(d.key)&&r(d)},[r]);return p.jsx(tce,P({id:o,ref:n,className:se(Y.menuList,i),"aria-labelledby":s,onKeyDown:u,autoFocus:l},c,{children:a}))}),rce=["displayOrder"],oce=e=>{const t=jo(),n=ze(),{defaultSlots:r,defaultSlotProps:o,slots:s={},slotProps:i={},hideMenu:a,colDef:l,addDividers:c=!0}=e,u=h.useMemo(()=>P({},r,s),[r,s]),d=h.useMemo(()=>{if(!i||Object.keys(i).length===0)return o;const m=P({},i);return Object.entries(o).forEach(([y,v])=>{m[y]=P({},v,i[y]||{})}),m},[o,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=h.useMemo(()=>{const m=Object.keys(r);return Object.keys(s).filter(y=>!m.includes(y))},[s,r]);return h.useMemo(()=>{const v=Array.from(new Set([...f,...g])).filter(x=>u[x]!=null).sort((x,w)=>{const b=d[x],C=d[w],k=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,M=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100;return k-M});return v.reduce((x,w,b)=>{let C={colDef:l,onClick:a};const k=d[w];if(k){const M=ue(k,rce);C=P({},C,M)}return c&&b!==v.length-1?[...x,[u[w],C],[n.slots.baseDivider,{}]]:[...x,[u[w],C]]},[])},[c,l,f,a,u,d,g,n.slots.baseDivider])};function sce(e){const{colDef:t,onClick:n}=e,r=Ze(),o=ze(),a=yn(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=h.useCallback(c=>{a||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:p.jsxs(Vt,{onClick:l,disabled:a,children:[p.jsx(xc,{children:p.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),p.jsx(bc,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function ice(e){const{onClick:t}=e,n=Ze(),r=ze(),o=h.useCallback(s=>{t(s),n.current.showPreferences(ol.columns)},[n,t]);return r.disableColumnSelector?null:p.jsxs(Vt,{onClick:o,children:[p.jsx(xc,{children:p.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),p.jsx(bc,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function ace(e){return p.jsxs(h.Fragment,{children:[p.jsx(sce,P({},e)),p.jsx(ice,P({},e))]})}function lce(e){const{colDef:t,onClick:n}=e,r=Ze(),o=ze(),s=h.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:p.jsxs(Vt,{onClick:s,children:[p.jsx(xc,{children:p.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),p.jsx(bc,{children:r.current.getLocaleText("columnMenuFilter")})]})}function cce(e){const{colDef:t,onClick:n}=e,r=Ze(),o=me(r,oo),s=ze(),i=h.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),a=t.sortingOrder??s.sortingOrder,l=h.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===i?null:d)},[r,t,n,i]);if(s.disableColumnSorting||!t||!t.sortable||!a.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return p.jsxs(h.Fragment,{children:[a.includes("asc")&&i!=="asc"?p.jsxs(Vt,{onClick:l,"data-value":"asc",children:[p.jsx(xc,{children:p.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),p.jsx(bc,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?p.jsxs(Vt,{onClick:l,"data-value":"desc",children:[p.jsx(xc,{children:p.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),p.jsx(bc,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?p.jsxs(Vt,{onClick:l,children:[p.jsx(xc,{}),p.jsx(bc,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const uce=["defaultSlots","defaultSlotProps","slots","slotProps"],dce={columnMenuSortItem:cce,columnMenuFilterItem:lce,columnMenuColumnsItem:ace},fce={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},pce=h.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,a=ue(t,uce),l=oce(P({},a,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return p.jsx(nce,P({ref:n},a,{children:l.map(([c,u],d)=>p.jsx(c,P({},u),d))}))}),hce=h.forwardRef(function(t,n){return p.jsx(pce,P({},t,{ref:n,defaultSlots:dce,defaultSlotProps:fce}))}),mce=["className","slotProps"],gce=e=>{const{classes:t}=e;return le({root:["panelWrapper"]},dt,t)},yce=Q("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),vce=()=>!0,Q4=h.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=ue(t,mce),i=ze(),a=gce(i);return p.jsx(Kw,P({open:!0,disableEnforceFocus:!0,isEnabled:vce},o.TrapFocus,{children:p.jsx(yce,P({ref:n,tabIndex:-1,className:se(a.root,r),ownerState:i},s))}))}),xce=(e,t)=>{const n=new Set(Object.keys(e).filter(s=>e[s]===!1)),r=new Set(Object.keys(t).filter(s=>t[s]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(s=>{r.has(s)||(o=!1)}),o},bce=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,wce=e=>{const{classes:t}=e;return le({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},dt,t)},ZM=new Intl.Collator;function Z4(e){var F,A,$;const t=Ze(),n=h.useRef(null),r=me(t,Xo),o=es(()=>yo(t)).current,s=me(t,yo),i=ze(),[a,l]=h.useState(""),c=wce(i),{sort:u,searchPredicate:d=bce,autoFocusSearchField:f=!0,disableShowHideToggle:g=!1,disableResetButton:m=!1,toggleAllMode:y="all",getTogglableColumns:v}=e,x=h.useMemo(()=>xce(s,o),[s,o]),w=h.useMemo(()=>{switch(u){case"asc":return[...r].sort((E,L)=>ZM.compare(E.headerName||E.field,L.headerName||L.field));case"desc":return[...r].sort((E,L)=>-ZM.compare(E.headerName||E.field,L.headerName||L.field));default:return r}},[r,u]),b=E=>{const{name:L}=E.target;t.current.setColumnVisibility(L,s[L]===!1)},C=h.useMemo(()=>{const E=v?v(w):null,L=E?w.filter(({field:O})=>E.includes(O)):w;return a?L.filter(O=>d(O,a.toLowerCase())):L},[w,a,d,v]),k=h.useCallback(E=>{const L=yo(t),O=P({},L),_=v?v(r):null;return(y==="filteredOnly"?C:r).forEach(N=>{N.hideable&&(_==null||_.includes(N.field))&&(E?delete O[N.field]:O[N.field]=!1)}),t.current.setColumnVisibilityModel(O)},[t,r,v,y,C]),M=h.useCallback(E=>{l(E.target.value)},[]),T=h.useMemo(()=>C.filter(E=>E.hideable),[C]),I=h.useMemo(()=>T.every(E=>s[E.field]==null||s[E.field]!==!1),[s,T]),D=h.useMemo(()=>T.every(E=>s[E.field]===!1),[s,T]),S=h.useRef(null);h.useEffect(()=>{f?n.current.focus():S.current&&typeof S.current.focus=="function"&&S.current.focus()},[f]);let R=!1;const j=E=>R===!1&&E.hideable!==!1?(R=!0,!0):!1;return p.jsxs(h.Fragment,{children:[p.jsx(Sce,{className:c.header,ownerState:i,children:p.jsx(i.slots.baseTextField,P({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:M,variant:"outlined",size:"small",InputProps:{startAdornment:p.jsx(i.slots.baseInputAdornment,{position:"start",children:p.jsx(i.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(F=i.slotProps)==null?void 0:F.baseTextField))}),p.jsxs(Cce,{className:c.root,ownerState:i,children:[C.map(E=>{var L;return p.jsx(fo,{className:c.row,control:p.jsx(i.slots.baseCheckbox,P({disabled:E.hideable===!1,checked:s[E.field]!==!1,onClick:b,name:E.field,sx:{p:.5},inputRef:j(E)?S:void 0},(L=i.slotProps)==null?void 0:L.baseCheckbox)),label:E.headerName||E.field},E.field)}),C.length===0&&p.jsx(Pce,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!g||!m)&&C.length>0?p.jsxs(kce,{ownerState:i,className:c.footer,children:[g?p.jsx("span",{}):p.jsx(fo,{control:p.jsx(i.slots.baseCheckbox,P({disabled:T.length===0,checked:I,indeterminate:!I&&!D,onClick:()=>k(!I),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(A=i.slotProps)==null?void 0:A.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:p.jsx(i.slots.baseButton,P({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:x},($=i.slotProps)==null?void 0:$.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Cce=Q("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"})),Sce=Q("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),kce=Q("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}`})),Pce=Q("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function Mce(e){var n;const t=ze();return p.jsx(Q4,P({},e,{children:p.jsx(Z4,P({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const Ice=["children","className","classes"],Ece=ge("MuiDataGrid",["panel","paper"]),Tce=Q(di,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Rce=Q(Ao,{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"})),Dce=h.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ue(e,Ice),s=Ze(),i=ze(),a=Ece,[l,c]=h.useState(!1),u=h.useCallback(()=>{s.current.hidePreferences()},[s]),d=h.useCallback(y=>{y.key==="Escape"&&s.current.hidePreferences()},[s]),f=h.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[g,m]=h.useState(null);return h.useEffect(()=>{var v,x;const y=(x=(v=s.current.rootElementRef)==null?void 0:v.current)==null?void 0:x.querySelector('[data-id="gridPanelAnchor"]');y&&m(y)},[s]),g?p.jsx(Tce,P({ref:t,placement:"bottom-start",className:se(a.panel,r),ownerState:i,anchorEl:g,modifiers:f},o,{children:p.jsx(w$,{mouseEvent:"onMouseUp",onClickAway:u,children:p.jsx(Rce,{className:a.paper,ownerState:i,elevation:8,onKeyDown:d,children:l&&n})})})):null}),$ce=["className"],Ace=e=>{const{classes:t}=e;return le({root:["panelContent"]},dt,t)},Oce=wt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function jce(e){const{className:t}=e,n=ue(e,$ce),r=ze(),o=Ace(r);return p.jsx(Oce,P({className:se(o.root,t),ownerState:r},n))}const Fce=["className"],Lce=e=>{const{classes:t}=e;return le({root:["panelFooter"]},dt,t)},_ce=wt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Nce(e){const{className:t}=e,n=ue(e,Fce),r=ze(),o=Lce(r);return p.jsx(_ce,P({className:se(o.root,t),ownerState:r},n))}const zce=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Bce=["InputComponentProps"],Hce=e=>{const{classes:t}=e;return le({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},dt,t)},Vce=Q("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Uce=Q("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)})),Wce=Q("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Gce=Q("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Kce=Q("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),Yce=Q("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),qce=e=>{switch(e){case rr.And:return"filterPanelOperatorAnd";case rr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},nd=e=>e.headerName||e.field,JM=new Intl.Collator,eI=h.forwardRef(function(t,n){var oe,re,de,ie,we,Re,Le,Qe,Me;const{item:r,hasMultipleFilters:o,deleteFilter:s,applyFilterChanges:i,showMultiFilterOperators:a,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[rr.And,rr.Or],columnsSort:f,filterColumns:g,deleteIconProps:m={},logicOperatorInputProps:y={},operatorInputProps:v={},columnInputProps:x={},valueInputProps:w={},readOnly:b}=t,C=ue(t,zce),k=Ze(),M=me(k,pi),T=me(k,Q3),I=me(k,jn),D=mt(),S=mt(),R=mt(),j=mt(),F=ze(),A=Hce(F),$=h.useRef(null),E=h.useRef(null),L=I.logicOperator??rr.And,O=o&&d.length>0,_=((oe=F.slotProps)==null?void 0:oe.baseFormControl)||{},z=(((re=F.slotProps)==null?void 0:re.baseSelect)||{}).native??!1,G=((de=F.slotProps)==null?void 0:de.baseInputLabel)||{},J=((ie=F.slotProps)==null?void 0:ie.baseSelectOption)||{},{InputComponentProps:K}=w,B=ue(w,Bce),{filteredColumns:W,selectedField:te}=h.useMemo(()=>{let Ee=r.field;const Ve=M[r.field].filterable===!1?M[r.field]:null;if(Ve)return{filteredColumns:[Ve],selectedField:Ee};if(g===void 0||typeof g!="function")return{filteredColumns:T,selectedField:Ee};const Ge=g({field:r.field,columns:T,currentFilters:(I==null?void 0:I.items)||[]});return{filteredColumns:T.filter(Oe=>{const je=Ge.includes(Oe.field);return Oe.field===r.field&&!je&&(Ee=void 0),je}),selectedField:Ee}},[g,I==null?void 0:I.items,T,r.field,M]),X=h.useMemo(()=>{switch(f){case"asc":return W.sort((Ee,Ve)=>JM.compare(nd(Ee),nd(Ve)));case"desc":return W.sort((Ee,Ve)=>-JM.compare(nd(Ee),nd(Ve)));default:return W}},[W,f]),q=r.field?k.current.getColumn(r.field):null,U=h.useMemo(()=>{var Ee;return!r.operator||!q?null:(Ee=q.filterOperators)==null?void 0:Ee.find(Ve=>Ve.value===r.operator)},[r,q]),ee=h.useCallback(Ee=>{const Ve=Ee.target.value,Ge=k.current.getColumn(Ve);if(Ge.field===q.field)return;const Oe=Ge.filterOperators.find(Te=>Te.value===r.operator)||Ge.filterOperators[0];let Ue=!Oe.InputComponent||Oe.InputComponent!==(U==null?void 0:U.InputComponent)||Ge.type!==q.type?void 0:r.value;if(Ge.type==="singleSelect"&&Ue!==void 0){const Te=Ge,Ie=rl(Te);Array.isArray(Ue)?Ue=Ue.filter(We=>ng(We,Ie,Te==null?void 0:Te.getOptionValue)!==void 0):ng(r.value,Ie,Te==null?void 0:Te.getOptionValue)===void 0&&(Ue=void 0)}i(P({},r,{field:Ve,operator:Oe.value,value:Ue}))},[k,i,r,q,U]),H=h.useCallback(Ee=>{const Ve=Ee.target.value,Ge=q==null?void 0:q.filterOperators.find(je=>je.value===Ve),Oe=!(Ge!=null&&Ge.InputComponent)||(Ge==null?void 0:Ge.InputComponent)!==(U==null?void 0:U.InputComponent);i(P({},r,{operator:Ve,value:Oe?void 0:r.value}))},[i,r,q,U]),Z=h.useCallback(Ee=>{const Ve=Ee.target.value===rr.And.toString()?rr.And:rr.Or;c(Ve)},[c]),ne=()=>{s(r)};return h.useImperativeHandle(u,()=>({focus:()=>{var Ee;U!=null&&U.InputComponent?(Ee=$==null?void 0:$.current)==null||Ee.focus():E.current.focus()}}),[U]),p.jsxs(Vce,P({ref:n,className:A.root,"data-id":r.id,ownerState:F},C,{children:[p.jsx(Uce,P({variant:"standard",as:F.slots.baseFormControl},_,m,{className:se(A.deleteIcon,_.className,m.className),ownerState:F,children:p.jsx(F.slots.baseIconButton,P({"aria-label":k.current.getLocaleText("filterPanelDeleteIconLabel"),title:k.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ne,size:"small",disabled:b},(we=F.slotProps)==null?void 0:we.baseIconButton,{children:p.jsx(F.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),p.jsx(Wce,P({variant:"standard",as:F.slots.baseFormControl},_,y,{sx:[O?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},_.sx,y.sx],className:se(A.logicOperatorInput,_.className,y.className),ownerState:F,children:p.jsx(F.slots.baseSelect,P({inputProps:{"aria-label":k.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:Z,disabled:!!l||d.length===1,native:z},(Re=F.slotProps)==null?void 0:Re.baseSelect,{children:d.map(Ee=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ee.toString(),value:Ee.toString()}),k.current.getLocaleText(qce(Ee))))}))})),p.jsxs(Gce,P({variant:"standard",as:F.slots.baseFormControl},_,x,{className:se(A.columnInput,_.className,x.className),ownerState:F,children:[p.jsx(F.slots.baseInputLabel,P({},G,{htmlFor:D,id:S,children:k.current.getLocaleText("filterPanelColumns")})),p.jsx(F.slots.baseSelect,P({labelId:S,id:D,label:k.current.getLocaleText("filterPanelColumns"),value:te??"",onChange:ee,native:z,disabled:b},(Le=F.slotProps)==null?void 0:Le.baseSelect,{children:X.map(Ee=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ee.field,value:Ee.field}),nd(Ee)))}))]})),p.jsxs(Kce,P({variant:"standard",as:F.slots.baseFormControl},_,v,{className:se(A.operatorInput,_.className,v.className),ownerState:F,children:[p.jsx(F.slots.baseInputLabel,P({},G,{htmlFor:R,id:j,children:k.current.getLocaleText("filterPanelOperator")})),p.jsx(F.slots.baseSelect,P({labelId:j,label:k.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:H,native:z,inputRef:E,disabled:b},(Qe=F.slotProps)==null?void 0:Qe.baseSelect,{children:(Me=q==null?void 0:q.filterOperators)==null?void 0:Me.map(Ee=>h.createElement(F.slots.baseSelectOption,P({},J,{native:z,key:Ee.value,value:Ee.value}),Ee.label||k.current.getLocaleText(`filterOperator${ae(Ee.value)}`)))}))]})),p.jsx(Yce,P({variant:"standard",as:F.slots.baseFormControl},_,B,{className:se(A.valueInput,_.className,B.className),ownerState:F,children:U!=null&&U.InputComponent?p.jsx(U.InputComponent,P({apiRef:k,item:r,applyValue:i,focusElementRef:$,disabled:b},U.InputComponentProps,K),r.field):null}))]}))}),Xce=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],tI=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Qce=h.forwardRef(function(t,n){var j,F;const r=Ze(),o=ze(),s=me(r,jn),i=me(r,Q3),a=me(r,Hre),l=h.useRef(null),c=h.useRef(null),{logicOperators:u=[rr.And,rr.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:g,disableAddFilterButton:m=!1,disableRemoveAllButton:y=!1}=t,v=ue(t,Xce),x=r.current.upsertFilterItem,w=h.useCallback(A=>{r.current.setFilterLogicOperator(A)},[r]),b=h.useCallback(()=>{let A;if(g&&typeof g=="function"){const $=g({currentFilters:(s==null?void 0:s.items)||[],columns:i});if($===null)return null;A=i.find(({field:E})=>E===$)}else A=i.find($=>{var E;return(E=$.filterOperators)==null?void 0:E.length});return A?tI(A):null},[s==null?void 0:s.items,i,g]),C=h.useCallback(()=>{if(g===void 0||typeof g!="function")return b();const A=s.items.length?s.items:[b()].filter(Boolean),$=g({currentFilters:A,columns:i});if($===null)return null;const E=i.find(({field:L})=>L===$);return E?tI(E):null},[s.items,i,g,b]),k=h.useMemo(()=>s.items.length?s.items:(c.current||(c.current=b()),c.current?[c.current]:[]),[s.items,b]),M=k.length>1,{readOnlyFilters:T,validFilters:I}=h.useMemo(()=>k.reduce((A,$)=>(a[$.field]?A.validFilters.push($):A.readOnlyFilters.push($),A),{readOnlyFilters:[],validFilters:[]}),[k,a]),D=h.useCallback(()=>{const A=C();A&&r.current.upsertFilterItems([...k,A])},[r,C,k]),S=h.useCallback(A=>{const $=I.length===1;r.current.deleteFilterItem(A),$&&r.current.hideFilterPanel()},[r,I.length]),R=h.useCallback(()=>I.length===1&&I[0].value===void 0?(r.current.deleteFilterItem(I[0]),r.current.hideFilterPanel()):r.current.setFilterModel(P({},s,{items:T}),"removeAllFilterItems"),[r,T,s,I]);return h.useEffect(()=>{u.length>0&&s.logicOperator&&!u.includes(s.logicOperator)&&w(u[0])},[u,w,s.logicOperator]),h.useEffect(()=>{I.length>0&&l.current.focus()},[I.length]),p.jsxs(Q4,P({ref:n},v,{children:[p.jsxs(jce,{children:[T.map((A,$)=>p.jsx(eI,P({item:A,applyFilterChanges:x,deleteFilter:S,hasMultipleFilters:M,showMultiFilterOperators:$>0,disableMultiFilterOperator:$!==1,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),A.id==null?$:A.id)),I.map((A,$)=>p.jsx(eI,P({item:A,applyFilterChanges:x,deleteFilter:S,hasMultipleFilters:M,showMultiFilterOperators:T.length+$>0,disableMultiFilterOperator:T.length+$!==1,applyMultiFilterOperatorChanges:w,focusElementRef:$===I.length-1?l:null,logicOperators:u,columnsSort:d},f),A.id==null?$+T.length:A.id))]}),!o.disableMultipleColumnsFiltering&&!(m&&y)?p.jsxs(Nce,{children:[m?p.jsx("span",{}):p.jsx(o.slots.baseButton,P({onClick:D,startIcon:p.jsx(o.slots.filterPanelAddIcon,{})},(j=o.slotProps)==null?void 0:j.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!y&&I.length>0?p.jsx(o.slots.baseButton,P({onClick:R,startIcon:p.jsx(o.slots.filterPanelRemoveAllIcon,{})},(F=o.slotProps)==null?void 0:F.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),Zce=["hideMenu","options"],Jce=["hideMenu","options"];function eue(e){const t=Ze(),{hideMenu:n,options:r}=e,o=ue(e,Zce);return p.jsx(Vt,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function tue(e){const t=Ze(),{hideMenu:n,options:r}=e,o=ue(e,Jce);return p.jsx(Vt,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const nue=["className","selectedRowCount"],rue=e=>{const{classes:t}=e;return le({root:["selectedRowCount"]},dt,t)},oue=wt("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"}})),sue=h.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=ue(t,nue),i=Ze(),a=ze(),l=rue(a),c=i.current.getLocaleText("footerRowSelected")(o);return p.jsx(oue,P({ref:n,className:se(l.root,r),ownerState:a},s,{children:c}))}),iue=h.forwardRef(function(t,n){var d,f;const r=Ze(),o=ze(),s=me(r,Moe),i=me(r,tse),a=me(r,RC),l=!o.hideFooterSelectedRowCount&&i>0?p.jsx(sue,{selectedRowCount:i}):p.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?p.jsx(o.slots.footerRowCount,P({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:s,visibleRowCount:a})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&p.jsx(o.slots.pagination,P({},(f=o.slotProps)==null?void 0:f.pagination));return p.jsxs(tle,P({ref:n},t,{children:[l,c,u]}))});function aue(){var s,i;const e=Ze(),t=me(e,Xo),n=ze(),r=me(e,Mf),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??ol.filters);return p.jsx(n.slots.panel,P({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(s=n.slotProps)==null?void 0:s.panel,(i=n.slotProps)==null?void 0:i.basePopper,{children:o}))}function lue(){var t;const e=ze();return p.jsxs(h.Fragment,{children:[p.jsx(aue,{}),e.slots.toolbar&&p.jsx(e.slots.toolbar,P({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const zC=(e,t,n,r,o)=>{const s=o.hasScrollY?o.scrollbarSize:0;let i;switch(e){case At.LEFT:i=r[n];break;case At.RIGHT:i=o.columnsTotalWidth-r[n]-t+s;break;default:i=0;break}return i},rd={root:Y.scrollbarFiller,header:Y["scrollbarFiller--header"],borderTop:Y["scrollbarFiller--borderTop"],borderBottom:Y["scrollbarFiller--borderBottom"],pinnedRight:Y["scrollbarFiller--pinnedRight"]};function BC({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return p.jsx("div",{role:"presentation",className:se(rd.root,e&&rd.header,t&&rd.borderTop,n&&rd.borderBottom,r&&rd.pinnedRight)})}const cue=wt("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),uue=e=>{const{classes:t}=e;return le({root:["skeletonLoadingOverlay"]},dt,t)},nI=e=>parseInt(e.getAttribute("data-colindex"),10),due=h.forwardRef(function(t,n){const r=ze(),{slots:o}=r,s=uue({classes:r.classes}),i=h.useRef(null),a=tt(i,n),l=Ze(),c=me(l,Bn),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=me(l,SC),g=me(l,ca),m=h.useMemo(()=>g.filter(M=>M<=f).length,[f,g]),y=me(l,yn),v=h.useMemo(()=>y.slice(0,m),[y,m]),x=me(l,fp),w=h.useCallback((M,T,I)=>{const D=zC(I,M,T,g,c);return{[I]:D}},[c,g]),b=h.useCallback(M=>{if(x.left.findIndex(T=>T.field===M)!==-1)return At.LEFT;if(x.right.findIndex(T=>T.field===M)!==-1)return At.RIGHT},[x.left,x.right]),C=h.useMemo(()=>{const M=[];for(let T=0;Tq.field===S.field):D-x.left.length,E=R&&w(S.computedWidth,D,R),L=c.columnsTotalWidth0},`skeleton-scrollbar-filler-${T}`))}M.push(p.jsx("div",{className:se(Y.row,Y.rowSkeleton,T===0&&Y["row--firstVisible"]),children:I},`skeleton-row-${T}`))}return M},[o,v,x,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,b,w]);return Fe(l,"columnResize",M=>{var E,L,O;const{colDef:T,width:I}=M,D=(E=i.current)==null?void 0:E.querySelectorAll(`[data-field="${hi(T.field)}"]`);if(!D)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const S=v.findIndex(_=>_.field===T.field),R=b(T.field),j=R===At.LEFT,F=R===At.RIGHT,A=getComputedStyle(D[0]).getPropertyValue("--width"),$=parseInt(A,10)-I;if(D&&D.forEach(_=>{_.style.setProperty("--width",`${I}px`)}),j){const _=(L=i.current)==null?void 0:L.querySelectorAll(`.${Y["cell--pinnedLeft"]}`);_==null||_.forEach(N=>{nI(N)>S&&(N.style.left=`${parseInt(getComputedStyle(N).left,10)-$}px`)})}if(F){const _=(O=i.current)==null?void 0:O.querySelectorAll(`.${Y["cell--pinnedRight"]}`);_==null||_.forEach(N=>{nI(N)({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Na.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Na.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),yue=(e,t)=>({from:n,to:r,count:o,page:s})=>e({from:n,to:r,count:o,page:s,estimated:t}),vue=({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}`}`,xue=h.forwardRef(function(t,n){const r=Ze(),o=ze(),s=me(r,nr),i=me(r,cc),a=me(r,P4),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=h.useMemo(()=>i===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,i]),f=h.useMemo(()=>Math.max(0,a-1),[a]),g=h.useMemo(()=>i===-1||s.page<=f?s.page:f,[f,s.page,i]),m=h.useCallback(C=>{const k=Number(C.target.value);r.current.setPageSize(k)},[r]),y=h.useCallback((C,k)=>{r.current.setPage(k)},[r]),x=(C=>{for(let k=0;k{const{classes:t}=e;return le({root:["rowCount"]},dt,t)},Cue=wt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Sue=h.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=ue(t,bue),a=Ze(),l=ze(),c=wue(l);if(o===0)return null;const u=s=d.left.length&&y=m.lastColumnIndex,q=kue(A.classes,{root:["row",r&&"selected",B&&"row--editable",K&&"row--editing",v&&"row--firstVisible",x&&"row--lastVisible",b&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),U=j.hooks.useGridRowAriaAttributes();h.useLayoutEffect(()=>{if($.range){const Te=R.current.getRowIndexRelativeToVisibleRows(o);Te!==void 0&&R.current.unstable_setLastMeasuredRowIndex(Te)}if(F.current&&l==="auto")return R.current.observeRowHeight(F.current,o)},[R,$.range,l,o]);const ee=h.useCallback((Te,Ie)=>We=>{gp(We)||R.current.getRow(o)&&(R.current.publishEvent(Te,R.current.getRowParams(o),We),Ie&&Ie(We))},[R,o]),H=h.useCallback(Te=>{const Ie=rg(Te.target,Y.cell),We=Ie==null?void 0:Ie.getAttribute("data-field");if(We){if(We===Pu.field||We===J0||We==="__reorder__"||R.current.getCellMode(o,We)===Pt.Edit)return;const Ct=R.current.getColumn(We);if((Ct==null?void 0:Ct.type)===X0)return}ee("rowClick",C)(Te)},[R,C,ee,o]),{slots:Z,slotProps:ne,disableColumnReorder:oe}=A,re=A.rowReordering,de=me(R,()=>P({},R.current.getRowHeightEntry(o)),X3),ie=h.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const Te=P({},a,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(de.spacingTop){const Ie=A.rowSpacingType==="border"?"borderTopWidth":"marginTop";Te[Ie]=de.spacingTop}if(de.spacingBottom){const Ie=A.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let We=Te[Ie];typeof We!="number"&&(We=parseInt(We||"0",10)),We+=de.spacingBottom,Te[Ie]=We}return Te},[w,l,a,de,A.rowSpacingType]),we=R.current.unstable_applyPipeProcessors("rowClassName",[],o),Re=z?U(z,i):void 0;if(typeof A.getRowClassName=="function"){const Te=i-(((Ue=$.range)==null?void 0:Ue.firstRowIndex)||0),Ie=P({},R.current.getRowParams(o),{isFirstVisible:Te===0,isLastVisible:Te===$.rows.length-1,indexRelativeToCurrentPage:Te});we.push(A.getRowClassName(Ie))}const Le=(Te,Ie,We,Ct,ye=mr.NONE)=>{var rs;const $e=R.current.unstable_getCellColSpanInfo(o,We);if($e!=null&&$e.spannedByColSpan)return null;const Xe=($e==null?void 0:$e.cellProps.width)??Te.computedWidth,ht=($e==null?void 0:$e.cellProps.colSpan)??1,Qn=zC(G4[ye],Te.computedWidth,We,O,g);if((z==null?void 0:z.type)==="skeletonRow")return p.jsx(Z.skeletonCell,{type:Te.type,width:Xe,height:l,field:Te.field,align:Te.align},Te.field);const ct=((rs=_[o])==null?void 0:rs[Te.field])??null,jt=Te.field==="__reorder__",ln=Object.keys(_).length>0,en=!(oe||Te.disableReorder),lr=re&&!E.length&&L<=1&&!ln,Hn=!(en||jt&&lr),Tr=ye===mr.VIRTUAL;return p.jsx(Z.cell,P({column:Te,width:Xe,rowId:o,align:Te.align||"left",colIndex:We,colSpan:ht,disableDragEvents:Hn,editCellState:ct,isNotVisible:Tr,pinnedOffset:Qn,pinnedPosition:ye,sectionIndex:Ie,sectionLength:Ct,gridHasFiller:J},ne==null?void 0:ne.cell),Te.field)};if(!z)return null;const Qe=d.left.map((Te,Ie)=>Le(Te,Ie,Ie,d.left.length,mr.LEFT)),Me=d.right.map((Te,Ie)=>{const We=u.length-d.right.length+Ie;return Le(Te,Ie,We,d.right.length,mr.RIGHT)}),Ee=u.length-d.left.length-d.right.length,Ve=[];te&&Ve.push(Le(u[y],y-d.left.length,y,Ee,mr.VIRTUAL));for(let Te=m.firstColumnIndex;Te0&&p.jsx(Mue,{width:je}),Me.length>0&&p.jsx("div",{role:"presentation",className:Y.filler}),Me,G!==0&&p.jsx(BC,{pinnedRight:d.right.length>0})]}))}),Eue=la(Iue),Tue=()=>{const e=jo(),t=ze(),n=me(e,yn),r=me(e,TC),o=me(e,mp),s=me(e,Roe);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+s+r,"aria-multiselectable":DC(t)}},Rue=()=>{const e=jo(),t=me(e,Ys),n=me(e,mp);return h.useCallback((r,o)=>{const s={},i=o+n+2;return s["aria-rowindex"]=i,e.current.isRowSelectable(r.id)&&(s["aria-selected"]=t[r.id]!==void 0),s},[e,t,n])};function Due({privateApiRef:e,configuration:t,props:n,children:r}){const o=h.useRef(e.current.getPublicApi());return p.jsx(_4.Provider,{value:t,children:p.jsx(Y3.Provider,{value:n,children:p.jsx(A4.Provider,{value:e,children:p.jsx(K3.Provider,{value:o,children:r})})})})}const $ue=e=>{const t=h.useRef(null),n=h.useRef(null),r=h.useRef(null),o=h.useRef(null),s=h.useRef(null),i=h.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:s,columnHeadersContainerRef:i})},Aue=e=>{const t=Bt();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=h.useRef(!0);h.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>P({},r,{isRtl:t}))},[e,t])},Oue=roe()&&window.localStorage.getItem("DEBUG")!=null,bd=()=>{},jue={debug:bd,info:bd,warn:bd,error:bd},rI=["debug","info","warn","error"];function oI(e,t,n=console){const r=rI.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return rI.reduce((s,i,a)=>(a>=r?s[i]=(...l)=>{const[c,...u]=l;n[i](`MUI X: ${e} - ${c}`,...u)}:s[i]=bd,s),{})}const Fue=(e,t)=>{const n=h.useCallback(r=>Oue?oI(r,"debug",t.logger):t.logLevel?oI(r,t.logLevel.toString(),t.logger):jue,[t.logLevel,t.logger]);ot(e,{getLogger:n},"private")};class Lue{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()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const a=o[i];r.highPriority.has(a)&&a.apply(this,n)}for(let i=0;i(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 J4=Symbol("mui.api_private"),_ue=e=>e.isPropagationStopped!==void 0;let sI=0;function Nue(e){var o;const t=(o=e.current)==null?void 0:o[J4];if(t)return t;const n={},r={state:n,store:HC.create(n),instanceId:{id:sI}};return sI+=1,r.getPublicApi=()=>e.current,r.register=(s,i)=>{Object.keys(i).forEach(a=>{const l=i[a],c=r[a];if((c==null?void 0:c.spying)===!0?c.target=l:r[a]=l,s==="public"){const u=e.current,d=u[a];(d==null?void 0:d.spying)===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new Lue}),r}function zue(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[J4]:e.current}}function Bue(e,t){var i;const n=h.useRef(),r=h.useRef();r.current||(r.current=Nue(n)),n.current||(n.current=zue(r));const o=h.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,_ue(u)&&u.isPropagationStopped())return;const d=t.signature===So.DataGridPro||t.signature===So.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),s=h.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return ot(r,{subscribeEvent:s,publishEvent:o},"public"),e&&!((i=e.current)!=null&&i.state)&&(e.current=n.current),h.useImperativeHandle(e,()=>n.current,[n]),h.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const Hue=(e,t)=>{const n=h.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})};function If(e){"@babel/helpers - typeof";return If=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},If(e)}function Vue(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ef(e){var t=Vue(e,"string");return If(t)=="symbol"?t:t+""}const Uue=e=>{const t=h.useRef({}),n=h.useRef(!1),r=h.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=h.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const g=t.current[u];return g.processors.get(d)!==f&&(g.processors.set(d,f),g.processorsAsArray=Array.from(t.current[u].processors.values()),r(g)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),s=h.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const g=t.current[u].appliers,m=ue(g,[d].map(Ef));t.current[u].appliers=m}),[]),i=h.useCallback(u=>{r(t.current[u])},[r]),a=h.useCallback((...u)=>{const[d,f,g]=u;if(!t.current[d])return f;const m=t.current[d].processorsAsArray;let y=f;for(let v=0;v{const r=h.useRef(),o=h.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=h.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);hp(()=>{s()});const i=h.useRef(!0);h.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},VC=(e,t,n)=>{const r=h.useRef(),o=h.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=h.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);hp(()=>{s()});const i=h.useRef(!0);h.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},sg=(e,t,n,r)=>{const o=h.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);hp(()=>{o()});const s=h.useRef(!0);h.useEffect(()=>{s.current?s.current=!1:o()},[o])},sl="none",iI={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Wue=e=>{const t=h.useRef(new Map),n=h.useRef({}),r=h.useCallback((l,c,u)=>{const d=()=>{const m=n.current[c],y=ue(m,[l].map(Ef));n.current[c]=y};n.current[c]||(n.current[c]={});const f=n.current[c],g=f[l];return f[l]=u,!g||g===u||l===e.current.getActiveStrategy(iI[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=h.useCallback((l,c)=>{const u=e.current.getActiveStrategy(iI[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]),s=h.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??sl},[]),i=h.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);ot(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},Gue=e=>{const t=h.useRef({}),[,n]=h.useState(),r=h.useCallback(c=>{t.current[c.stateId]=c},[]),o=h.useCallback((c,u)=>{let d;if(t4(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const g=[];if(Object.keys(t.current).forEach(m=>{const y=t.current[m],v=y.stateSelector(e.current.state,e.current.instanceId),x=y.stateSelector(d,e.current.instanceId);x!==v&&(g.push({stateId:y.stateId,hasPropChanged:x!==y.propModel}),y.propModel!==void 0&&x!==y.propModel&&(f=!0))}),g.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${g[0].stateId}, therefore, you're not allowed to update ${g.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)),g.length===1){const{stateId:m,hasPropChanged:y}=g[0],v=t.current[m],x=v.stateSelector(d,e.current.instanceId);v.propOnChange&&y&&v.propOnChange(x,{reason:u,api:e.current}),f||e.current.publishEvent(v.changeEvent,x,{reason:u})}return!f},[e]),s=h.useCallback((c,u,d)=>e.current.setState(f=>P({},f,{[c]:u(f[c])}),d),[e]),i=h.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:i},l={updateControlState:s,registerControlState:r};ot(e,a,"public"),ot(e,l,"private")},Kue=(e,t)=>{const n=Bue(e,t);return $ue(n),Aue(n),Fue(n,t),Gue(n),Uue(n),Wue(n),Hue(n,t),n.current.register("private",{rootProps:t}),n},Pn=(e,t,n)=>{const r=h.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function Kx(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 eA=(e,t)=>{var s,i;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(s=e.value)==null?void 0:s.toISOString():typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Kx(o,n)};class Yx{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 Yue=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const s=new Yx({csvOptions:r});return t.forEach(i=>{const a=n(e,i.field);s.addValue(eA(a,{ignoreValueFormatter:o,csvOptions:r}))}),s.getRowString()};function que(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:s}=e,i=n.reduce((d,f)=>`${d}${Yue({id:f,columns:t,getCellParams:s.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r +`,"").trim();if(!r.includeHeaders)return i;const a=t.filter(d=>d.field!==Pu.field),l=[];if(r.includeColumnGroupsHeaders){const d=s.current.getAllGroupDetails();let f=0;const g=a.reduce((m,y)=>{const v=s.current.getColumnGroupPath(y.field);return m[y.field]=v,f=Math.max(f,v.length),m},{});for(let m=0;m{const x=(g[v.field]||[])[m],w=d[x];y.addValue(w?w.headerName||w.groupId:"")})}}const c=new Yx({csvOptions:r,sanitizeCellValue:Kx});return a.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r +`)}\r +`}${i}`.trim()}function aI(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 Xue(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{aI(e)}):aI(e)}function Que(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Zue=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=h.useCallback(i=>{if(!Jle(i)||Que(i.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=$r(e);if(c){const u=e.current.getCellParams(c.id,c.field);a=eA(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(Xue(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);w4(e,e.current.rootElementRef,"keydown",s),$t(e,"clipboardCopy",t.onClipboardCopy)},Jue=e=>P({},e,{columnMenu:{open:!1}}),ede=e=>{const t=Sn(e,"useGridColumnMenu"),n=h.useCallback(i=>{const a=tm(e.current.state),l={open:!0,field:i};(l.open!==a.open||l.field!==a.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===i?u:(t.debug("Opening Column Menu"),P({},u,{columnMenu:{open:!0,field:i}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=h.useCallback(()=>{const i=tm(e.current.state);if(i.field){const c=pi(e),u=yo(e),d=Ks(e);let f=i.field;if(c[f]||(f=d[0]),u[f]===!1){const g=d.filter(y=>y===f?!0:u[y]!==!1),m=g.indexOf(f);f=g[m+1]||g[m-1]}e.current.setColumnHeaderFocus(f)}const a={open:!1,field:void 0};(a.open!==i.open||a.field!==i.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),P({},c,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=h.useCallback(i=>{t.debug("Toggle Column Menu");const a=tm(e.current.state);!a.open||a.field!==i?n(i):r()},[e,t,n,r]);ot(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Fe(e,"columnResizeStart",r),Fe(e,"virtualScrollerWheel",e.current.hideColumnMenu),Fe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},tde=(e,t,n)=>{var o,s,i;const r=Ul({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((i=(s=t.initialState)==null?void 0:s.columns)==null?void 0:i.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:r,pinnedColumns:e.pinnedColumns??Hx})};function nde(e,t){var S,R;const n=Sn(e,"useGridColumns"),r=h.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:yo,changeEvent:"columnVisibilityModelChange"});const o=h.useCallback(j=>{var F,A;n.debug("Updating columns state."),e.current.setState(lI(j)),e.current.publishEvent("columnsChange",j.orderedFields),(A=(F=e.current).updateRenderContext)==null||A.call(F),e.current.forceUpdate()},[n,e]),s=h.useCallback(j=>pi(e)[j],[e]),i=h.useCallback(()=>Xo(e),[e]),a=h.useCallback(()=>yn(e),[e]),l=h.useCallback((j,F=!0)=>(F?yn(e):Xo(e)).findIndex($=>$.field===j),[e]),c=h.useCallback(j=>{const F=l(j);return ca(e)[F]},[e,l]),u=h.useCallback(j=>{var A,$;yo(e)!==j&&(e.current.setState(E=>P({},E,{columns:Ul({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),($=(A=e.current).updateRenderContext)==null||$.call(A),e.current.forceUpdate())},[e]),d=h.useCallback(j=>{const F=Ul({apiRef:e,columnsToUpsert:j,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(F)},[e,o]),f=h.useCallback((j,F)=>{const A=yo(e),$=A[j]??!0;if(F!==$){const E=P({},A,{[j]:F});e.current.setColumnVisibilityModel(E)}},[e]),g=h.useCallback(j=>Ks(e).findIndex(A=>A===j),[e]),m=h.useCallback((j,F)=>{const A=Ks(e),$=g(j);if($===F)return;n.debug(`Moving column ${j} to index ${F}`);const E=[...A],L=E.splice($,1)[0];E.splice(F,0,L),o(P({},Cs(e.current.state),{orderedFields:E}));const O={column:e.current.getColumn(j),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(j),oldIndex:$};e.current.publishEvent("columnIndexChange",O)},[e,n,o,g]),y=h.useCallback((j,F)=>{n.debug(`Updating column ${j} width to ${F}`);const A=Cs(e.current.state),$=A.lookup[j],E=P({},$,{width:F,hasBeenResized:!0});o(Ux(P({},A,{lookup:P({},A.lookup,{[j]:E})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:E,width:F})},[e,n,o]),v={getColumn:s,getAllColumns:i,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:g,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:y},x={setColumnIndex:m};ot(e,v,"public"),ot(e,x,t.signature===So.DataGrid?"private":"public");const w=h.useCallback((j,F)=>{var _,N;const A={},$=yo(e);(!F.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((N=(_=t.initialState)==null?void 0:_.columns)==null?void 0:N.columnVisibilityModel)??{}).length>0||Object.keys($).length>0)&&(A.columnVisibilityModel=$),A.orderedFields=Ks(e);const L=Xo(e),O={};return L.forEach(z=>{if(z.hasBeenResized){const G={};$4.forEach(J=>{let K=z[J];K===1/0&&(K=-1),G[J]=K}),O[z.field]=G}}),Object.keys(O).length>0&&(A.dimensions=O),P({},j,{columns:A})},[e,t.columnVisibilityModel,(S=t.initialState)==null?void 0:S.columns]),b=h.useCallback((j,F)=>{var L;const A=(L=F.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,$=F.stateToRestore.columns;if(A==null&&$==null)return j;const E=Ul({apiRef:e,columnsToUpsert:[],initialState:$,columnVisibilityModel:A,keepOnlyColumnsToUpsert:!1});return e.current.setState(lI(E)),$!=null&&e.current.publishEvent("columnsChange",E.orderedFields),j},[e]),C=h.useCallback((j,F)=>{var A;if(F===ol.columns){const $=t.slots.columnsPanel;return p.jsx($,P({},(A=t.slotProps)==null?void 0:A.columnsPanel))}return j},[t.slots.columnsPanel,(R=t.slotProps)==null?void 0:R.columnsPanel]),k=h.useCallback(j=>t.disableColumnSelector?j:[...j,"columnMenuColumnsItem"],[t.disableColumnSelector]);Wt(e,"columnMenu",k),Wt(e,"exportState",w),Wt(e,"restoreState",b),Wt(e,"preferencePanel",C);const M=h.useRef(null);Fe(e,"viewportInnerSizeChange",j=>{M.current!==j.width&&(M.current=j.width,o(Ux(Cs(e.current.state),e.current.getRootDimensions())))});const I=h.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const j=Ul({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(j)},[e,n,o]);VC(e,"hydrateColumns",I);const D=h.useRef(!0);h.useEffect(()=>{if(D.current){D.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const j=Ul({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(j)},[n,e,o,t.columns]),h.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function lI(e){return t=>P({},t,{columns:e})}const rde=(e,t)=>{var n;return P({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},ode=(e,t)=>{var a;const n=Sn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:lc,changeEvent:"densityChange"});const o={setDensity:ve(l=>{lc(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>P({},u,{density:l})))})};ot(e,o,"public");const s=h.useCallback((l,c)=>{var f;const u=lc(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?P({},l,{density:u}):l},[e,t.density,(a=t.initialState)==null?void 0:a.density]),i=h.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:lc(e.current.state);return e.current.setState(f=>P({},f,{density:u})),l},[e]);Wt(e,"exportState",s),Wt(e,"restoreState",i),h.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function sde(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const tA=({apiRef:e,options:t})=>{const n=Xo(e);return t.fields?t.fields.reduce((o,s)=>{const i=n.find(a=>a.field===s);return i&&o.push(i),o},[]):(t.allColumns?n:yn(e)).filter(o=>!o.disableExport)},nA=({apiRef:e})=>{var l,c;const t=y4(e),n=Yn(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),s=gl(e),i=((l=s==null?void 0:s.top)==null?void 0:l.map(u=>u.id))||[],a=((c=s==null?void 0:s.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...i),o.push(...a),r.size>0?o.filter(u=>r.has(u)):o},ide=(e,t)=>{const n=Sn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=h.useCallback((c={})=>{n.debug("Get data as CSV");const u=tA({apiRef:e,options:c}),f=(c.getRowsToExport??nA)({apiRef:e});return que({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]),i=h.useCallback(c=>{n.debug("Export data as CSV");const u=s(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});sde(d,"csv",c==null?void 0:c.fileName)},[n,s]);ot(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const l=h.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:p.jsx(eue,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Wt(e,"exportMenu",l)},rm=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,s=(n==null?void 0:n.pageSize)??r.pageSize,i=(n==null?void 0:n.page)??r.page,a=C4(o,s,i);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=gse(r.page,a);return l!==r.page&&(r=P({},r,{page:l})),k4(r.pageSize,t),r},ade=(e,t)=>{var m,y;const n=Sn(e,"useGridPaginationModel"),r=me(e,dp),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:nr,changeEvent:"paginationModelChange"});const s=h.useCallback(v=>{const x=nr(e);v!==x.page&&(n.debug(`Setting page to ${v}`),e.current.setPaginationModel({page:v,pageSize:x.pageSize}))},[e,n]),i=h.useCallback(v=>{const x=nr(e);v!==x.pageSize&&(n.debug(`Setting page size to ${v}`),e.current.setPaginationModel({pageSize:v,page:x.page}))},[e,n]),a=h.useCallback(v=>{const x=nr(e);v!==x&&(n.debug("Setting 'paginationModel' to",v),e.current.setState(w=>P({},w,{pagination:P({},w.pagination,{paginationModel:rm(w.pagination,t.signature,v)})})))},[e,n,t.signature]);ot(e,{setPage:s,setPageSize:i,setPaginationModel:a},"public");const c=h.useCallback((v,x)=>{var C,k;const w=nr(e);return!x.exportOnlyDirtyModels||t.paginationModel!=null||((k=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:k.paginationModel)!=null||w.page!==0&&w.pageSize!==mse(t.autoPageSize)?P({},v,{pagination:P({},v.pagination,{paginationModel:w})}):v},[e,t.paginationModel,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.paginationModel,t.autoPageSize]),u=h.useCallback((v,x)=>{var b,C;const w=(b=x.stateToRestore.pagination)!=null&&b.paginationModel?P({},S4(t.autoPageSize),(C=x.stateToRestore.pagination)==null?void 0:C.paginationModel):nr(e);return e.current.setState(k=>P({},k,{pagination:P({},k.pagination,{paginationModel:rm(k.pagination,t.signature,w)})})),v},[e,t.autoPageSize,t.signature]);Wt(e,"exportState",c),Wt(e,"restoreState",u);const d=()=>{var x;const v=nr(e);(x=e.current.virtualScrollerRef)!=null&&x.current&&e.current.scrollToIndexes({rowIndex:v.page*v.pageSize})},f=h.useCallback(()=>{if(!t.autoPageSize)return;const v=e.current.getRootDimensions(),x=Math.floor(v.viewportInnerSize.height/o);e.current.setPageSize(x)},[e,t.autoPageSize,o]),g=h.useCallback(v=>{if(v==null)return;const x=nr(e),w=P4(e);x.page>w-1&&e.current.setPage(Math.max(0,w-1))},[e]);Fe(e,"viewportInnerSizeChange",f),Fe(e,"paginationModelChange",d),Fe(e,"rowCountChange",g),h.useEffect(()=>{e.current.setState(v=>P({},v,{pagination:P({},v.pagination,{paginationModel:rm(v.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),h.useEffect(f,[f])};function lde(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function cde(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 ude=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Sn(e,"useGridPrintExport"),o=h.useRef(null),s=h.useRef(null),i=h.useRef({}),a=h.useRef([]),l=h.useRef();h.useEffect(()=>{o.current=zt(e.current.rootElementRef.current)},[e,n]);const c=h.useCallback((v,x,w)=>new Promise(b=>{const C=tA({apiRef:e,options:{fields:v,allColumns:x}}).map(T=>T.field),k=Xo(e),M={};k.forEach(T=>{M[T.field]=C.includes(T.field)}),w&&(M[Pu.field]=!0),e.current.setColumnVisibilityModel(M),b()}),[e]),u=h.useCallback(v=>{const w=v({apiRef:e}).reduce((b,C)=>{const k=e.current.getRow(C);return k[Mc]||b.push(k),b},[]);e.current.setRows(w)},[e]),d=h.useCallback((v,x)=>{var A,$,E,L;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},x),b=v.contentDocument;if(!b)return;const C=Mu(e.current.state),k=e.current.rootElementRef.current,M=k.cloneNode(!0),T=M.querySelector(`.${Y.main}`);T.style.overflow="visible",M.style.contain="size";let I=((A=k.querySelector(`.${Y.toolbarContainer}`))==null?void 0:A.offsetHeight)||0,D=(($=k.querySelector(`.${Y.footerContainer}`))==null?void 0:$.offsetHeight)||0;w.hideToolbar&&((E=M.querySelector(`.${Y.toolbarContainer}`))==null||E.remove(),I=0),w.hideFooter&&((L=M.querySelector(`.${Y.footerContainer}`))==null||L.remove(),D=0);const S=C.currentPageTotalHeight+jC(e,t)+I+D;if(M.style.height=`${S}px`,M.style.boxSizing="content-box",!w.hideFooter){const O=M.querySelector(`.${Y.footerContainer}`);O.style.position="absolute",O.style.width="100%",O.style.top=`${S-D}px`}const R=document.createElement("div");R.appendChild(M),b.body.style.marginTop="0px",b.body.innerHTML=R.innerHTML;const j=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof j=="string"){const O=b.createElement("style");O.appendChild(b.createTextNode(j)),b.head.appendChild(O)}w.bodyClassName&&b.body.classList.add(...w.bodyClassName.split(" "));const F=[];if(w.copyStyles){const O=k.getRootNode(),N=(O.constructor.name==="ShadowRoot"?O:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z{J.addEventListener("load",()=>K())})),b.head.appendChild(J)}}}Promise.all(F).then(()=>{v.contentWindow.print()})},[e,o,t]),f=h.useCallback(v=>{var x,w;o.current.body.removeChild(v),e.current.restoreState(s.current||{}),(w=(x=s.current)==null?void 0:x.columns)!=null&&w.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.setState(b=>P({},b,{virtualization:l.current})),e.current.setRows(a.current),s.current=null,i.current={},a.current=[]},[e]),m={exportDataAsPrint:h.useCallback(async v=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(s.current=e.current.exportState(),i.current=yo(e),a.current=e.current.getSortedRows().filter(w=>!w[Mc]),t.pagination){const b={page:0,pageSize:TC(e)};e.current.setState(C=>P({},C,{pagination:P({},C.pagination,{paginationModel:rm(C.pagination,"DataGridPro",b)})}))}l.current=e.current.state.virtualization,e.current.setState(w=>P({},w,{virtualization:P({},w.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),u((v==null?void 0:v.getRowsToExport)??nA),await lde();const x=cde(v==null?void 0:v.fileName);x.onload=()=>{d(x,v),x.contentWindow.matchMedia("print").addEventListener("change",b=>{b.matches===!1&&f(x)})},o.current.body.appendChild(x)},[t,r,e,d,f,c,u])};ot(e,m,"public");const y=h.useCallback((v,x)=>{var w;return(w=x.printOptions)!=null&&w.disableToolbarButton?v:[...v,{component:p.jsx(tue,{options:x.printOptions}),componentName:"printExport"}]},[]);Wt(e,"exportMenu",y)},dde=(e,t,n)=>{var o,s;const r=t.filterModel??((s=(o=t.initialState)==null?void 0:o.filter)==null?void 0:s.filterModel)??kf();return P({},e,{filter:{filterModel:MC(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},fde=e=>e.filteredRowsLookup;function cI(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function pde(){return LD(Object.values)}const hde=(e,t)=>{var D,S,R;const n=Sn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:jn,changeEvent:"filterModelChange"});const r=h.useCallback(()=>{e.current.setState(j=>{const F=jn(j,e.current.instanceId),A=e.current.getFilterState(F),$=P({},j,{filter:P({},j.filter,A)}),E=cI(e,$);return P({},$,{visibleRowsLookup:E})}),e.current.publishEvent("filteredRowsSet")},[e]),o=h.useCallback((j,F)=>F==null||F.filterable===!1||t.disableColumnFilter?j:[...j,"columnMenuFilterItem"],[t.disableColumnFilter]),s=h.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),i=h.useCallback(j=>{const F=jn(e),A=[...F.items],$=A.findIndex(E=>E.id===j.id);$===-1?A.push(j):A[$]=j,e.current.setFilterModel(P({},F,{items:A}),"upsertFilterItem")},[e]),a=h.useCallback(j=>{const F=jn(e),A=[...F.items];j.forEach($=>{const E=A.findIndex(L=>L.id===$.id);E===-1?A.push($):A[E]=$}),e.current.setFilterModel(P({},F,{items:A}),"upsertFilterItems")},[e]),l=h.useCallback(j=>{const F=jn(e),A=F.items.filter($=>$.id!==j.id);A.length!==F.items.length&&e.current.setFilterModel(P({},F,{items:A}),"deleteFilterItem")},[e]),c=h.useCallback((j,F,A)=>{if(n.debug("Displaying filter panel"),j){const $=jn(e),E=$.items.filter(N=>{var K;if(N.value!==void 0)return!(Array.isArray(N.value)&&N.value.length===0);const G=(K=e.current.getColumn(N.field).filterOperators)==null?void 0:K.find(B=>B.value===N.operator);return!(typeof(G==null?void 0:G.requiresFilterValue)>"u"?!0:G==null?void 0:G.requiresFilterValue)});let L;const O=E.find(N=>N.field===j),_=e.current.getColumn(j);O?L=E:t.disableMultipleColumnsFiltering?L=[Vx({field:j,operator:_.filterOperators[0].value},e)]:L=[...E,Vx({field:j,operator:_.filterOperators[0].value},e)],e.current.setFilterModel(P({},$,{items:L}))}e.current.showPreferences(ol.filters,F,A)},[e,n,t.disableMultipleColumnsFiltering]),u=h.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=h.useCallback(j=>{const F=jn(e);F.logicOperator!==j&&e.current.setFilterModel(P({},F,{logicOperator:j}),"changeLogicOperator")},[e]),f=h.useCallback(j=>{const F=jn(e);Pc(F.quickFilterValues,j)||e.current.setFilterModel(P({},F,{quickFilterValues:[...j]}))},[e]),g=h.useCallback((j,F)=>{jn(e)!==j&&(n.debug("Setting filter model"),e.current.updateControlState("filter",wM(j,t.disableMultipleColumnsFiltering,e),F),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),m=h.useCallback(j=>{const F=MC(j,t.disableMultipleColumnsFiltering,e),A=t.filterMode==="client"?doe(F,e,t.disableEval):null,$=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:A,filterModel:F??kf()});return P({},$,{filterModel:F})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:d,unstable_applyFilters:s,deleteFilterItem:l,upsertFilterItem:i,upsertFilterItems:a,setFilterModel:g,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:m};ot(e,y,"public");const v=h.useCallback((j,F)=>{var E,L;const A=jn(e);return!F.exportOnlyDirtyModels||t.filterModel!=null||((L=(E=t.initialState)==null?void 0:E.filter)==null?void 0:L.filterModel)!=null||!Pc(A,kf())?P({},j,{filter:{filterModel:A}}):j},[e,t.filterModel,(S=(D=t.initialState)==null?void 0:D.filter)==null?void 0:S.filterModel]),x=h.useCallback((j,F)=>{var $;const A=($=F.stateToRestore.filter)==null?void 0:$.filterModel;return A==null?j:(e.current.updateControlState("filter",wM(A,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},j,{callbacks:[...j.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),w=h.useCallback((j,F)=>{var A;if(F===ol.filters){const $=t.slots.filterPanel;return p.jsx($,P({},(A=t.slotProps)==null?void 0:A.filterPanel))}return j},[t.slots.filterPanel,(R=t.slotProps)==null?void 0:R.filterPanel]),{getRowId:b}=t,C=es(pde),k=h.useCallback(j=>{if(t.filterMode!=="client"||!j.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const F=ji(e),A={},{isRowMatchingFilters:$}=j,E={},L={passingFilterItems:null,passingQuickFilterValues:null},O=C.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z{n.debug("onColUpdated - GridColumns changed, applying filters");const j=jn(e),F=pi(e),A=j.items.filter($=>$.field&&F[$.field]);A.length{j==="filtering"&&e.current.unstable_applyFilters()},[e]),I=h.useCallback(()=>{e.current.setState(j=>P({},j,{visibleRowsLookup:cI(e,j)})),e.current.forceUpdate()},[e]);Fe(e,"rowsSet",r),Fe(e,"columnsChange",M),Fe(e,"activeStrategyProcessorChange",T),Fe(e,"rowExpansionChange",I),Fe(e,"columnVisibilityModelChange",()=>{const j=jn(e);j.quickFilterValues&&a4(j)&&e.current.unstable_applyFilters()}),hp(()=>{e.current.unstable_applyFilters()}),at(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},mde=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),gde=(e,t)=>{const n=Sn(e,"useGridFocus"),r=h.useRef(null),o=e.current.rootElementRef.current!==null,s=h.useCallback((I,D)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),D)},[e]),i=h.useCallback((I,D)=>{const S=$r(e);(S==null?void 0:S.id)===I&&(S==null?void 0:S.field)===D||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${I} and field=${D}`),P({},R,{tabIndex:{cell:{id:I,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(S&&s(S,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,D))))},[e,n,s]),a=h.useCallback((I,D={})=>{const S=$r(e);s(S,D),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${I}`),P({},R,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),l=h.useCallback((I,D={})=>{const S=$r(e);s(S,D),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${I}`),P({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),c=h.useCallback((I,D,S={})=>{const R=$r(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),S),e.current.setState(j=>P({},j,{tabIndex:{columnGroupHeader:{field:I,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=h.useCallback(()=>tg(e),[e]),d=h.useCallback((I,D,S)=>{let R=e.current.getColumnIndex(D);const j=yn(e),F=Ec(e,{pagination:t.pagination,paginationMode:t.paginationMode}),A=gl(e),$=[].concat(A.top||[],F.rows,A.bottom||[]);let E=$.findIndex(N=>N.id===I);S==="right"?R+=1:S==="left"?R-=1:E+=1,R>=j.length?(E+=1,E<$.length&&(R=0)):R<0&&(E-=1,E>=0&&(R=j.length-1)),E=Ss(E,0,$.length-1);const L=$[E];if(!L)return;const O=e.current.unstable_getCellColSpanInfo(L.id,R);O&&O.spannedByColSpan&&(S==="left"||S==="below"?R=O.leftVisibleCellIndex:S==="right"&&(R=O.rightVisibleCellIndex)),R=Ss(R,0,j.length-1);const _=j[R];e.current.setCellFocus(L.id,_.field)},[e,t.pagination,t.paginationMode]),f=h.useCallback(({id:I,field:D})=>{e.current.setCellFocus(I,D)},[e]),g=h.useCallback((I,D)=>{D.key==="Enter"||D.key==="Tab"||D.key==="Shift"||og(D.key)||e.current.setCellFocus(I.id,I.field)},[e]),m=h.useCallback(({field:I},D)=>{D.target===D.currentTarget&&e.current.setColumnHeaderFocus(I,D)},[e]),y=h.useCallback(({fields:I,depth:D},S)=>{if(S.target!==S.currentTarget)return;const R=tg(e);R!==null&&R.depth===D&&I.includes(R.field)||e.current.setColumnGroupHeaderFocus(I[0],D,S)},[e]),v=h.useCallback((I,D)=>{var S,R;(R=(S=D.relatedTarget)==null?void 0:S.getAttribute("class"))!=null&&R.includes(Y.columnHeader)||(n.debug("Clearing focus"),e.current.setState(j=>P({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),x=h.useCallback(I=>{r.current=I},[]),w=h.useCallback(I=>{const D=r.current;r.current=null;const S=$r(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:D}))return;if(!S){D&&e.current.setCellFocus(D.id,D.field);return}if((D==null?void 0:D.id)===S.id&&(D==null?void 0:D.field)===S.field)return;const j=e.current.getCellElement(S.id,S.field);j!=null&&j.contains(I.target)||(D?e.current.setCellFocus(D.id,D.field):(e.current.setState(F=>P({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),s(S,I)))},[e,s]),b=h.useCallback(I=>{if(I.cellMode==="view")return;const D=$r(e);((D==null?void 0:D.id)!==I.id||(D==null?void 0:D.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),C=h.useCallback(()=>{var D;const I=$r(e);if(I&&!e.current.getRow(I.id)){const S=(D=$r(e))==null?void 0:D.id;let R=null;if(typeof S<"u"){const j=e.current.getRowIndexRelativeToVisibleRows(S),F=Ec(e,{pagination:t.pagination,paginationMode:t.paginationMode}),A=F.rows[Ss(j,0,F.rows.length-1)];R=(A==null?void 0:A.id)??null}e.current.setState(j=>P({},j,{focus:{cell:R===null?null:{id:R,field:I.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),k=ve(()=>{const I=$r(e);if(!I)return;const D=Ec(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(D.rows.find(j=>j.id===I.id))return;const R=yn(e);e.current.setState(j=>P({},j,{tabIndex:{cell:{id:D.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),M={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},T={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};ot(e,M,"public"),ot(e,T,"private"),h.useEffect(()=>{const I=zt(e.current.rootElementRef.current);return I.addEventListener("mouseup",w),()=>{I.removeEventListener("mouseup",w)}},[e,o,w]),Fe(e,"columnHeaderBlur",v),Fe(e,"cellDoubleClick",f),Fe(e,"cellMouseDown",x),Fe(e,"cellKeyDown",g),Fe(e,"cellModeChange",b),Fe(e,"columnHeaderFocus",m),Fe(e,"columnGroupHeaderFocus",y),Fe(e,"rowsSet",C),Fe(e,"paginationModelChange",k)},yde=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},vde=e=>e===p4||yde(e)!==null;function xde(e,t){const n=gl(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const L1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(et)return e-1;return null},_1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e=0&&i{const n=Sn(e,"useGridKeyboardNavigation"),r=da(e,t).rows,o=Bt(),s=t.unstable_listView,i=h.useMemo(()=>xde(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.headerFilters,l=h.useCallback((w,b,C="left",k="up")=>{const M=ua(e),T=e.current.unstable_getCellColSpanInfo(b,w);T&&T.spannedByColSpan&&(C==="left"?w=T.leftVisibleCellIndex:C==="right"&&(w=T.rightVisibleCellIndex));const I=s?Zc(e.current.state).field:Cu(e)[w],D=bde(e,b,I,k),S=M.findIndex(R=>R.id===D);n.debug(`Navigating to cell row ${S}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:S}),e.current.setCellFocus(D,I)},[e,n,s]),c=h.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const C=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(C,b)},[e,n]),u=h.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const C=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(C,b)},[e,n]),d=h.useCallback((w,b,C)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:k}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(k,b,C)},[e,n]),f=h.useCallback(w=>{var b;return(b=i[w])==null?void 0:b.id},[i]),g=h.useCallback((w,b)=>{const C=b.currentTarget.querySelector(`.${Y.columnHeaderTitleContainerContent}`);if(!!C&&C.contains(b.target)&&w.field!==Pu.field)return;const M=e.current.getViewportPageSize(),T=w.field?e.current.getColumnIndex(w.field):0,I=i.length>0?0:null,D=i.length-1,S=0,R=yn(e).length-1,j=mp(e);let F=!0;switch(b.key){case"ArrowDown":{I!==null&&(a?u(T,b):l(T,f(I)));break}case"ArrowRight":{const A=_1({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null&&c(A,b);break}case"ArrowLeft":{const A=L1({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null&&c(A,b);break}case"ArrowUp":{j>0&&d(T,j-1,b);break}case"PageDown":{I!==null&&D!==null&&l(T,f(Math.min(I+M,D)));break}case"Home":{c(S,b);break}case"End":{c(R,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:F=!1}F&&b.preventDefault()},[e,i.length,a,u,l,f,o,c,d]),m=h.useCallback((w,b)=>{const C=nie(e)===w.field,k=rie(e)===w.field;if(C||k||!og(b.key))return;const M=e.current.getViewportPageSize(),T=w.field?e.current.getColumnIndex(w.field):0,I=0,D=i.length-1,S=0,R=yn(e).length-1;let j=!0;switch(b.key){case"ArrowDown":{const F=f(I);F!=null&&l(T,F);break}case"ArrowRight":{const F=_1({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});F!==null&&u(F,b);break}case"ArrowLeft":{const F=L1({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});F!==null?u(F,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{c(T,b);break}case"PageDown":{D!==null&&l(T,f(Math.min(I+M,D)));break}case"Home":{u(S,b);break}case"End":{u(R,b);break}case" ":break;default:j=!1}j&&b.preventDefault()},[e,i.length,u,o,c,l,f]),y=h.useCallback((w,b)=>{const C=tg(e);if(C===null)return;const{field:k,depth:M}=C,{fields:T,depth:I,maxDepth:D}=w,S=e.current.getViewportPageSize(),R=e.current.getColumnIndex(k),j=k?e.current.getColumnIndex(k):0,F=0,A=i.length-1,$=0,E=yn(e).length-1;let L=!0;switch(b.key){case"ArrowDown":{I===D-1?c(R,b):d(R,M+1,b);break}case"ArrowUp":{I>0&&d(R,M-1,b);break}case"ArrowRight":{const O=T.length-T.indexOf(k)-1;R+O+1<=E&&d(R+O+1,M,b);break}case"ArrowLeft":{const O=T.indexOf(k);R-O-1>=$&&d(R-O-1,M,b);break}case"PageDown":{A!==null&&l(j,f(Math.min(F+S,A)));break}case"Home":{d($,M,b);break}case"End":{d(E,M,b);break}case" ":break;default:L=!1}L&&b.preventDefault()},[e,i.length,c,d,l,f]),v=h.useCallback((w,b)=>{if(gp(b))return;const C=e.current.getCellParams(w.id,w.field);if(C.cellMode===Pt.Edit||!og(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:C})||i.length===0)return;const M=e.current.getViewportPageSize(),T=s?()=>0:e.current.getColumnIndex,I=w.field?T(w.field):0,D=i.findIndex(E=>E.id===w.id),S=0,R=i.length-1,j=0,A=(s?[Zc(e.current.state)]:yn(e)).length-1;let $=!0;switch(b.key){case"ArrowDown":{DS?l(I,f(D-1)):a?u(I,b):c(I,b);break}case"ArrowRight":{const E=_1({currentColIndex:I,firstColIndex:j,lastColIndex:A,isRtl:o});E!==null&&l(E,f(D),o?"left":"right");break}case"ArrowLeft":{const E=L1({currentColIndex:I,firstColIndex:j,lastColIndex:A,isRtl:o});E!==null&&l(E,f(D),o?"right":"left");break}case"Tab":{b.shiftKey&&I>j?l(I-1,f(D),"left"):!b.shiftKey&&I=S?l(I,f(E)):c(I,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(j,f(S)):l(j,f(D));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(A,f(R)):l(A,f(D));break}default:$=!1}$&&b.preventDefault()},[e,i,o,l,f,a,u,c,s]),x=h.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);Wt(e,"canStartEditing",x),Fe(e,"columnHeaderKeyDown",g),Fe(e,"headerFilterKeyDown",m),Fe(e,"columnGroupHeaderKeyDown",y),Fe(e,"cellKeyDown",v)},Cde=(e,t)=>{var m,y;const n=Sn(e,"useGridRowCount"),r=me(e,RC),o=me(e,cc),s=me(e,xd),i=me(e,nr),a=es(()=>nr(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:cc,changeEvent:"rowCountChange"});const c={setRowCount:h.useCallback(v=>{o!==v&&(n.debug("Setting 'rowCount' to",v),e.current.setState(x=>P({},x,{pagination:P({},x.pagination,{rowCount:v})})))},[e,n,o])};ot(e,c,"public");const u=h.useCallback((v,x)=>{var C,k;const w=cc(e);return!x.exportOnlyDirtyModels||t.rowCount!=null||((k=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:k.rowCount)!=null?P({},v,{pagination:P({},v.pagination,{rowCount:w})}):v},[e,t.rowCount,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.rowCount]),d=h.useCallback((v,x)=>{var b;const w=(b=x.stateToRestore.pagination)!=null&&b.rowCount?x.stateToRestore.pagination.rowCount:cc(e);return e.current.setState(C=>P({},C,{pagination:P({},C.pagination,{rowCount:w})})),v},[e]);Wt(e,"exportState",u),Wt(e,"restoreState",d);const f=h.useCallback(v=>{t.paginationMode==="client"||!a.current||v.pageSize!==a.current&&(a.current=v.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Fe(e,"paginationModelChange",f),h.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const g=s.hasNextPage===!1;h.useEffect(()=>{g&&o===-1&&e.current.setRowCount(i.pageSize*i.page+r)},[e,r,g,o,i])},Sde=(e,t)=>{var l,c;const n=Sn(e,"useGridPaginationMeta"),r=me(e,xd);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:xd,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:h.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>P({},d,{pagination:P({},d.pagination,{meta:u})})))},[e,n,r])};ot(e,s,"public");const i=h.useCallback((u,d)=>{var m,y;const f=xd(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.meta)!=null?P({},u,{pagination:P({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),a=h.useCallback((u,d)=>{var g;const f=(g=d.stateToRestore.pagination)!=null&&g.meta?d.stateToRestore.pagination.meta:xd(e);return e.current.setState(m=>P({},m,{pagination:P({},m.pagination,{meta:f})})),u},[e]);Wt(e,"exportState",i),Wt(e,"restoreState",a),h.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},kde=(e,t)=>{var s,i,a,l,c,u;const n=P({},S4(t.autoPageSize),t.paginationModel??((i=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:i.paginationModel));k4(n.pageSize,t.signature);const r=t.rowCount??((l=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return P({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},Pde=(e,t)=>{Sde(e,t),ade(e,t),Cde(e,t)},Mde=(e,t)=>{var n;return P({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},Ide=(e,t)=>{var d;const n=Sn(e,"useGridPreferencesPanel"),r=h.useRef(),o=h.useRef(),s=h.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=Mf(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(g=>P({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),i=h.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=h.useCallback(()=>{r.current=setTimeout(s,100)},[s]),l=h.useCallback((f,g,m)=>{n.debug("Opening Preferences Panel"),i(),e.current.setState(y=>P({},y,{preferencePanel:P({},y.preferencePanel,{open:!0,openedPanelValue:f,panelId:g,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,i,e]);ot(e,{showPreferences:l,hidePreferences:a},"public");const c=h.useCallback((f,g)=>{var v;const m=Mf(e.current.state);return!g.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||m.open?P({},f,{preferencePanel:m}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=h.useCallback((f,g)=>{const m=g.stateToRestore.preferencePanel;return m!=null&&e.current.setState(y=>P({},y,{preferencePanel:m})),f},[e]);Wt(e,"exportState",c),Wt(e,"restoreState",u),h.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},qx=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Ede=["id","field"],Tde=["id","field"],Rde=(e,t)=>{const[n,r]=h.useState({}),o=h.useRef(n),s=h.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:a,cellModesModel:l,onCellModesModelChange:c}=t,u=$=>(...E)=>{t.editMode===Ts.Cell&&$(...E)},d=h.useCallback(($,E)=>{const L=e.current.getCellParams($,E);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${$} and field=${E} is not editable.`)},[e]),f=h.useCallback(($,E,L)=>{if(e.current.getCellMode($,E)!==L)throw new Error(`MUI X: The cell with id=${$} and field=${E} is not in ${L} mode.`)},[e]),g=h.useCallback(($,E)=>{if(!$.isEditable||$.cellMode===Pt.Edit)return;const L=P({},$,{reason:Os.cellDoubleClick});e.current.publishEvent("cellEditStart",L,E)},[e]),m=h.useCallback(($,E)=>{if($.cellMode===Pt.View||e.current.getCellMode($.id,$.field)===Pt.View)return;const L=P({},$,{reason:zo.cellFocusOut});e.current.publishEvent("cellEditStop",L,E)},[e]),y=h.useCallback(($,E)=>{if($.cellMode===Pt.Edit){if(E.which===229)return;let L;if(E.key==="Escape"?L=zo.escapeKeyDown:E.key==="Enter"?L=zo.enterKeyDown:E.key==="Tab"&&(L=E.shiftKey?zo.shiftTabKeyDown:zo.tabKeyDown,E.preventDefault()),L){const O=P({},$,{reason:L});e.current.publishEvent("cellEditStop",O,E)}}else if($.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:E,cellParams:$,editMode:"cell"}))return;if(q4(E)?L=Os.printableKeyDown:X4(E)?L=Os.pasteKeyDown:E.key==="Enter"?L=Os.enterKeyDown:(E.key==="Backspace"||E.key==="Delete")&&(L=Os.deleteKeyDown),L){const _=P({},$,{reason:L,key:E.key});e.current.publishEvent("cellEditStart",_,E)}}},[e]),v=h.useCallback($=>{const{id:E,field:L,reason:O}=$,_={id:E,field:L};(O===Os.printableKeyDown||O===Os.deleteKeyDown||O===Os.pasteKeyDown)&&(_.deleteValue=!0),e.current.startCellEditMode(_)},[e]),x=h.useCallback($=>{const{id:E,field:L,reason:O}=$;e.current.runPendingEditCellValueMutation(E,L);let _;O===zo.enterKeyDown?_="below":O===zo.tabKeyDown?_="right":O===zo.shiftTabKeyDown&&(_="left");const N=O==="escapeKeyDown";e.current.stopCellEditMode({id:E,field:L,ignoreModifications:N,cellToFocusAfter:_})},[e]),w=$=>async(...E)=>{var L;if($){const{id:O,field:_}=E[0];((L=e.current.state.editRows[O][_])==null?void 0:L.error)||$(...E)}};Fe(e,"cellDoubleClick",u(g)),Fe(e,"cellFocusOut",u(m)),Fe(e,"cellKeyDown",u(y)),Fe(e,"cellEditStart",u(v)),Fe(e,"cellEditStop",u(x)),$t(e,"cellEditStart",t.onCellEditStart),$t(e,"cellEditStop",w(t.onCellEditStop));const b=h.useCallback(($,E)=>{const L=Mn(e.current.state);return L[$]&&L[$][E]?Pt.Edit:Pt.View},[e]),C=ve($=>{const E=$!==t.cellModesModel;c&&E&&c($,{api:e.current}),!(t.cellModesModel&&E)&&(r($),o.current=$,e.current.publishEvent("cellModesModelChange",$))}),k=h.useCallback(($,E,L)=>{const O=P({},o.current);if(L!==null)O[$]=P({},O[$],{[E]:P({},L)});else{const _=O[$],N=ue(_,[E].map(Ef));O[$]=N,Object.keys(O[$]).length===0&&delete O[$]}C(O)},[C]),M=h.useCallback(($,E,L)=>{e.current.setState(O=>{const _=P({},O.editRows);return L!==null?_[$]=P({},_[$],{[E]:P({},L)}):(delete _[$][E],Object.keys(_[$]).length===0&&delete _[$]),P({},O,{editRows:_})}),e.current.forceUpdate()},[e]),T=h.useCallback($=>{const{id:E,field:L}=$,O=ue($,Ede);d(E,L),f(E,L,Pt.View),k(E,L,P({mode:Pt.Edit},O))},[d,f,k]),I=ve(async $=>{const{id:E,field:L,deleteValue:O,initialValue:_}=$,N=e.current.getCellValue(E,L);let z=N;O?z=qx(e.current.getColumn(L)):_&&(z=_);const G=e.current.getColumn(L),J=!!G.preProcessEditCellProps&&O;let K={value:z,error:!1,isProcessingProps:J};if(M(E,L,K),e.current.setCellFocus(E,L),J&&(K=await Promise.resolve(G.preProcessEditCellProps({id:E,row:e.current.getRow(E),props:K,hasChanged:z!==N})),e.current.getCellMode(E,L)===Pt.Edit)){const B=Mn(e.current.state);M(E,L,P({},K,{value:B[E][L].value,isProcessingProps:!1}))}}),D=h.useCallback($=>{const{id:E,field:L}=$,O=ue($,Tde);f(E,L,Pt.Edit),k(E,L,P({mode:Pt.View},O))},[f,k]),S=ve(async $=>{const{id:E,field:L,ignoreModifications:O,cellToFocusAfter:_="none"}=$;f(E,L,Pt.Edit),e.current.runPendingEditCellValueMutation(E,L);const N=()=>{M(E,L,null),k(E,L,null),_!=="none"&&e.current.moveFocusToRelativeCell(E,L,_)};if(O){N();return}const z=Mn(e.current.state),{error:G,isProcessingProps:J}=z[E][L];if(G||J){s.current[E][L].mode=Pt.Edit,k(E,L,{mode:Pt.Edit});return}const K=e.current.getRowWithUpdatedValuesFromCellEditing(E,L);if(i){const B=W=>{s.current[E][L].mode=Pt.Edit,k(E,L,{mode:Pt.Edit}),a&&a(W)};try{const W=e.current.getRow(E);Promise.resolve(i(K,W,{rowId:E})).then(te=>{e.current.updateRows([te]),N()}).catch(B)}catch(W){B(W)}}else e.current.updateRows([K]),N()}),R=h.useCallback(async $=>{var W,te;const{id:E,field:L,value:O,debounceMs:_,unstable_skipValueParser:N}=$;d(E,L),f(E,L,Pt.Edit);const z=e.current.getColumn(L),G=e.current.getRow(E);let J=O;z.valueParser&&!N&&(J=z.valueParser(O,G,z,e));let K=Mn(e.current.state),B=P({},K[E][L],{value:J,changeReason:_?"debouncedSetEditCellValue":"setEditCellValue"});if(z.preProcessEditCellProps){const X=O!==K[E][L].value;B=P({},B,{isProcessingProps:!0}),M(E,L,B),B=await Promise.resolve(z.preProcessEditCellProps({id:E,row:G,props:B,hasChanged:X}))}return e.current.getCellMode(E,L)===Pt.View?!1:(K=Mn(e.current.state),B=P({},B,{isProcessingProps:!1}),B.value=z.preProcessEditCellProps?K[E][L].value:J,M(E,L,B),K=Mn(e.current.state),!((te=(W=K[E])==null?void 0:W[L])!=null&&te.error))},[e,d,f,M]),j=h.useCallback(($,E)=>{const L=e.current.getColumn(E),O=Mn(e.current.state),_=e.current.getRow($);if(!O[$]||!O[$][E])return e.current.getRow($);const{value:N}=O[$][E];return L.valueSetter?L.valueSetter(N,_,L,e):P({},_,{[E]:N})},[e]),F={getCellMode:b,startCellEditMode:T,stopCellEditMode:D},A={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:j};ot(e,F,"public"),ot(e,A,"private"),h.useEffect(()=>{l&&C(l)},[l,C]),at(()=>{const $=eg(e),E=s.current;s.current=n4(n),Object.entries(n).forEach(([L,O])=>{Object.entries(O).forEach(([_,N])=>{var J,K;const z=((K=(J=E[L])==null?void 0:J[_])==null?void 0:K.mode)||Pt.View,G=$[L]??L;N.mode===Pt.Edit&&z===Pt.View?I(P({id:G,field:_},N)):N.mode===Pt.View&&z===Pt.Edit&&S(P({id:G,field:_},N))})})},[e,n,I,S])},Dde=["id"],$de=["id"],Ade=(e,t)=>{const[n,r]=h.useState({}),o=h.useRef(n),s=h.useRef({}),i=h.useRef(),a=h.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=_=>(...N)=>{t.editMode===Ts.Row&&_(...N)},g=h.useCallback((_,N)=>{const z=e.current.getCellParams(_,N);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${_} and field=${N} is not editable.`)},[e]),m=h.useCallback((_,N)=>{if(e.current.getRowMode(_)!==N)throw new Error(`MUI X: The row with id=${_} is not in ${N} mode.`)},[e]),y=h.useCallback(_=>{const N=Mn(e.current.state);return Object.values(N[_]).some(z=>z.error)},[e]),v=h.useCallback((_,N)=>{if(!_.isEditable||e.current.getRowMode(_.id)===Dt.Edit)return;const z=e.current.getRowParams(_.id),G=P({},z,{field:_.field,reason:Si.cellDoubleClick});e.current.publishEvent("rowEditStart",G,N)},[e]),x=h.useCallback(_=>{a.current=_},[]),w=h.useCallback((_,N)=>{_.isEditable&&e.current.getRowMode(_.id)!==Dt.View&&(a.current=null,i.current=setTimeout(()=>{var z;if(((z=a.current)==null?void 0:z.id)!==_.id){if(!e.current.getRow(_.id)||e.current.getRowMode(_.id)===Dt.View||y(_.id))return;const G=e.current.getRowParams(_.id),J=P({},G,{field:_.field,reason:as.rowFocusOut});e.current.publishEvent("rowEditStop",J,N)}}))},[e,y]);h.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=h.useCallback((_,N)=>{if(_.cellMode===Dt.Edit){if(N.which===229)return;let z;if(N.key==="Escape")z=as.escapeKeyDown;else if(N.key==="Enter")z=as.enterKeyDown;else if(N.key==="Tab"){const G=Cu(e).filter(J=>e.current.getColumn(J).type===X0?!0:e.current.isCellEditable(e.current.getCellParams(_.id,J)));if(N.shiftKey?_.field===G[0]&&(z=as.shiftTabKeyDown):_.field===G[G.length-1]&&(z=as.tabKeyDown),N.preventDefault(),!z){const J=G.findIndex(B=>B===_.field),K=G[N.shiftKey?J-1:J+1];e.current.setCellFocus(_.id,K)}}if(z){if(z!==as.escapeKeyDown&&y(_.id))return;const G=P({},e.current.getRowParams(_.id),{reason:z,field:_.field});e.current.publishEvent("rowEditStop",G,N)}}else if(_.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:_,editMode:"row"}))return;if(q4(N)||X4(N)?z=Si.printableKeyDown:N.key==="Enter"?z=Si.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(z=Si.deleteKeyDown),z){const J=e.current.getRowParams(_.id),K=P({},J,{field:_.field,reason:z});e.current.publishEvent("rowEditStart",K,N)}}},[e,y]),C=h.useCallback(_=>{const{id:N,field:z,reason:G}=_,J={id:N,fieldToFocus:z};(G===Si.printableKeyDown||G===Si.deleteKeyDown)&&(J.deleteValue=!!z),e.current.startRowEditMode(J)},[e]),k=h.useCallback(_=>{const{id:N,reason:z,field:G}=_;e.current.runPendingEditCellValueMutation(N);let J;z===as.enterKeyDown?J="below":z===as.tabKeyDown?J="right":z===as.shiftTabKeyDown&&(J="left");const K=z==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:K,field:G,cellToFocusAfter:J})},[e]);Fe(e,"cellDoubleClick",f(v)),Fe(e,"cellFocusIn",f(x)),Fe(e,"cellFocusOut",f(w)),Fe(e,"cellKeyDown",f(b)),Fe(e,"rowEditStart",f(C)),Fe(e,"rowEditStop",f(k)),$t(e,"rowEditStart",t.onRowEditStart),$t(e,"rowEditStop",t.onRowEditStop);const M=h.useCallback(_=>{if(t.editMode===Ts.Cell)return Dt.View;const N=Mn(e.current.state);return N[_]&&Object.keys(N[_]).length>0?Dt.Edit:Dt.View},[e,t.editMode]),T=ve(_=>{const N=_!==t.rowModesModel;d&&N&&d(_,{api:e.current}),!(t.rowModesModel&&N)&&(r(_),o.current=_,e.current.publishEvent("rowModesModelChange",_))}),I=h.useCallback((_,N)=>{const z=P({},o.current);N!==null?z[_]=P({},N):delete z[_],T(z)},[T]),D=h.useCallback((_,N)=>{e.current.setState(z=>{const G=P({},z.editRows);return N!==null?G[_]=N:delete G[_],P({},z,{editRows:G})}),e.current.forceUpdate()},[e]),S=h.useCallback((_,N,z)=>{e.current.setState(G=>{const J=P({},G.editRows);return z!==null?J[_]=P({},J[_],{[N]:P({},z)}):(delete J[_][N],Object.keys(J[_]).length===0&&delete J[_]),P({},G,{editRows:J})}),e.current.forceUpdate()},[e]),R=h.useCallback(_=>{const{id:N}=_,z=ue(_,Dde);m(N,Dt.View),I(N,P({mode:Dt.Edit},z))},[m,I]),j=ve(_=>{const{id:N,fieldToFocus:z,deleteValue:G,initialValue:J}=_,K=Ks(e),B=K.reduce((W,te)=>{if(!e.current.getCellParams(N,te).isEditable)return W;const q=e.current.getColumn(te);let U=e.current.getCellValue(N,te);return z===te&&(G||J)&&(G?U=qx(q):J&&(U=J)),W[te]={value:U,error:!1,isProcessingProps:!!q.preProcessEditCellProps&&G},W},{});D(N,B),z&&e.current.setCellFocus(N,z),K.filter(W=>!!e.current.getColumn(W).preProcessEditCellProps&&G).forEach(W=>{const te=e.current.getColumn(W),X=e.current.getCellValue(N,W),q=G?qx(te):J??X;Promise.resolve(te.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:B[W],hasChanged:q!==X})).then(U=>{if(e.current.getRowMode(N)===Dt.Edit){const ee=Mn(e.current.state);S(N,W,P({},U,{value:ee[N][W].value,isProcessingProps:!1}))}})})}),F=h.useCallback(_=>{const{id:N}=_,z=ue(_,$de);m(N,Dt.Edit),I(N,P({mode:Dt.View},z))},[m,I]),A=ve(_=>{const{id:N,ignoreModifications:z,field:G,cellToFocusAfter:J="none"}=_;e.current.runPendingEditCellValueMutation(N);const K=()=>{J!=="none"&&G&&e.current.moveFocusToRelativeCell(N,G,J),D(N,null),I(N,null)};if(z){K();return}const B=Mn(e.current.state),W=e.current.getRow(N);if(Object.values(B[N]).some(q=>q.isProcessingProps)){s.current[N].mode=Dt.Edit;return}if(y(N)){s.current[N].mode=Dt.Edit,I(N,{mode:Dt.Edit});return}const X=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(l){const q=U=>{s.current[N].mode=Dt.Edit,I(N,{mode:Dt.Edit}),c&&c(U)};try{Promise.resolve(l(X,W,{rowId:N})).then(U=>{e.current.updateRows([U]),K()}).catch(q)}catch(U){q(U)}}else e.current.updateRows([X]),K()}),$=h.useCallback(_=>{const{id:N,field:z,value:G,debounceMs:J,unstable_skipValueParser:K}=_;g(N,z);const B=e.current.getColumn(z),W=e.current.getRow(N);let te=G;B.valueParser&&!K&&(te=B.valueParser(G,W,B,e));let X=Mn(e.current.state),q=P({},X[N][z],{value:te,changeReason:J?"debouncedSetEditCellValue":"setEditCellValue"});return B.preProcessEditCellProps||S(N,z,q),new Promise(U=>{const ee=[];if(B.preProcessEditCellProps){const H=q.value!==X[N][z].value;q=P({},q,{isProcessingProps:!0}),S(N,z,q);const Z=X[N],ne=ue(Z,[z].map(Ef)),oe=Promise.resolve(B.preProcessEditCellProps({id:N,row:W,props:q,hasChanged:H,otherFieldsProps:ne})).then(re=>{if(e.current.getRowMode(N)===Dt.View){U(!1);return}X=Mn(e.current.state),re=P({},re,{isProcessingProps:!1}),re.value=B.preProcessEditCellProps?X[N][z].value:te,S(N,z,re)});ee.push(oe)}Object.entries(X[N]).forEach(([H,Z])=>{if(H===z)return;const ne=e.current.getColumn(H);if(!ne.preProcessEditCellProps)return;Z=P({},Z,{isProcessingProps:!0}),S(N,H,Z),X=Mn(e.current.state);const oe=X[N],re=ue(oe,[H].map(Ef)),de=Promise.resolve(ne.preProcessEditCellProps({id:N,row:W,props:Z,hasChanged:!1,otherFieldsProps:re})).then(ie=>{if(e.current.getRowMode(N)===Dt.View){U(!1);return}ie=P({},ie,{isProcessingProps:!1}),S(N,H,ie)});ee.push(de)}),Promise.all(ee).then(()=>{e.current.getRowMode(N)===Dt.Edit?(X=Mn(e.current.state),U(!X[N][z].error)):U(!1)})})},[e,g,S]),E=h.useCallback(_=>{const N=Mn(e.current.state),z=e.current.getRow(_);if(!N[_])return e.current.getRow(_);let G=P({},z);return Object.entries(N[_]).forEach(([J,K])=>{const B=e.current.getColumn(J);B.valueSetter?G=B.valueSetter(K.value,G,B,e):G[J]=K.value}),G},[e]),L={getRowMode:M,startRowEditMode:R,stopRowEditMode:F},O={setRowEditingEditCellValue:$,getRowWithUpdatedValuesFromRowEditing:E};ot(e,L,"public"),ot(e,O,"private"),h.useEffect(()=>{u&&T(u)},[u,T]),at(()=>{const _=eg(e),N=s.current;s.current=n4(n);const z=new Set([...Object.keys(n),...Object.keys(N)]);Array.from(z).forEach(G=>{var W;const J=n[G]??{mode:Dt.View},K=((W=N[G])==null?void 0:W.mode)||Dt.View,B=_[G]??G;J.mode===Dt.Edit&&K===Dt.View?j(P({id:B},J)):J.mode===Dt.View&&K===Dt.Edit&&A(P({id:B},J))})},[e,n,j,A])},Ode=e=>P({},e,{editRows:{}}),jde=(e,t)=>{Rde(e,t),Ade(e,t);const n=h.useRef({}),{isCellEditable:r}=t,o=h.useCallback(f=>Xc(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),s=(f,g,m,y)=>{if(!m){y();return}if(n.current[f]||(n.current[f]={}),n.current[f][g]){const[w]=n.current[f][g];clearTimeout(w)}const v=()=>{const[w]=n.current[f][g];clearTimeout(w),y(),delete n.current[f][g]},x=setTimeout(()=>{y(),delete n.current[f][g]},m);n.current[f][g]=[x,v]};h.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([g,m])=>{Object.keys(m).forEach(y=>{const[v]=f[g][y];clearTimeout(v),delete f[g][y]})})}},[]);const i=h.useCallback((f,g)=>{if(n.current[f]){if(!g)Object.keys(n.current[f]).forEach(m=>{const[,y]=n.current[f][m];y()});else if(n.current[f][g]){const[,m]=n.current[f][g];m()}}},[]),a=h.useCallback(f=>{const{id:g,field:m,debounceMs:y}=f;return new Promise(v=>{s(g,m,y,async()=>{const x=t.editMode===Ts.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,m)===Pt.Edit){const w=await x(f);v(w)}})})},[e,t.editMode]),l=h.useCallback((f,g)=>t.editMode===Ts.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,g):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=h.useCallback((f,g)=>{var y;return((y=Mn(e.current.state)[f])==null?void 0:y[g])??null},[e]),u={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:i};ot(e,u,"public"),ot(e,d,"private")},Fde=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=Jh({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:u4({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},Lde=(e,t)=>{const n=Sn(e,"useGridRows"),r=da(e,t),o=h.useRef(Date.now()),s=h.useRef(t.rowCount),i=zr(),a=h.useCallback(O=>{const _=ji(e)[O];if(_)return _;const N=e.current.getRowNode(O);return N&&Xc(N)?{[Mc]:O}:null},[e]),l=t.getRowId,c=h.useCallback(O=>Mc in O?O[Mc]:l?l(O):O.id,[l]),u=h.useMemo(()=>r.rows.reduce((O,{id:_},N)=>(O[_]=N,O),{}),[r.rows]),d=h.useCallback(({cache:O,throttle:_})=>{const N=()=>{o.current=Date.now(),e.current.setState(G=>P({},G,{rows:u4({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Yn(e),previousTreeDepths:IM(e),previousGroupsToFetch:Ioe(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=O,!_){N();return}const z=t.throttleRowsMs-(Date.now()-o.current);if(z>0){i.start(z,N);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=h.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const _=Jh({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),N=e.current.caches.rows;_.rowsBeforePartialUpdates=N.rowsBeforePartialUpdates,d({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),g=h.useCallback(O=>{if(t.signature===So.DataGrid&&O.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 _=TM(e,O,t.getRowId),N=EM({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:N,throttle:!0})},[t.signature,t.getRowId,d,e]),m=h.useCallback((O,_)=>{const N=TM(e,O,t.getRowId),z=EM({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:_??[]});d({cache:z,throttle:!1})},[t.getRowId,d,e]),y=h.useCallback(O=>{O!==t.loading&&(n.debug(`Setting loading to ${O}`),e.current.setState(_=>P({},_,{rows:P({},_.rows,{loading:O})})),e.current.caches.rows.loadingPropBeforePartialUpdates=O)},[t.loading,e,n]),v=h.useCallback(()=>{const O=mh(e),_=ji(e);return new Map(O.map(N=>[N,_[N]??{}]))},[e]),x=h.useCallback(()=>Q0(e),[e]),w=h.useCallback(()=>mh(e),[e]),b=h.useCallback(O=>u[O],[u]),C=h.useCallback((O,_)=>{const N=e.current.getRowNode(O);if(!N)throw new Error(`MUI X: No row with id #${O} found.`);if(N.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=P({},N,{childrenExpanded:_});e.current.setState(G=>P({},G,{rows:P({},G.rows,{tree:P({},G.rows.tree,{[O]:z})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",z)},[e]),k=h.useCallback(O=>Yn(e)[O]??null,[e]),M=h.useCallback(({skipAutoGeneratedRows:O=!0,groupId:_,applySorting:N,applyFiltering:z})=>{const G=Yn(e);let J;if(N){const K=G[_];if(!K)return[];const B=pp(e);J=[];const W=B.findIndex(te=>te===_)+1;for(let te=W;teK.depth;te+=1){const X=B[te];(!O||!Xc(G[X]))&&J.push(X)}}else J=IC(G,_,O);if(z){const K=ku(e);J=J.filter(B=>K[B]!==!1)}return J},[e]),T=h.useCallback((O,_)=>{const N=e.current.getRowNode(O);if(!N)throw new Error(`MUI X: No row with id #${O} found.`);if(N.parent!==Ln)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(N.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(z=>{const G=Yn(z,e.current.instanceId)[Ln],J=G.children,K=J.findIndex(W=>W===O);if(K===-1||K===_)return z;n.debug(`Moving row ${O} to index ${_}`);const B=[...J];return B.splice(_,0,B.splice(K,1)[0]),P({},z,{rows:P({},z.rows,{tree:P({},z.rows.tree,{[Ln]:P({},G,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),I=h.useCallback((O,_)=>{if(t.signature===So.DataGrid&&_.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(_.length===0)return;if(Su(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=P({},Yn(e)),G=P({},ji(e)),J=P({},eg(e)),K=z[Ln],B=[...K.children],W=new Set;for(let X=0;X<_.length;X+=1){const q=_[X],U=Z0(q,t.getRowId,"A row was provided without id when calling replaceRows()."),[ee]=B.splice(O+X,1,U);W.has(ee)||(delete G[ee],delete J[ee],delete z[ee]);const H={id:U,depth:0,parent:Ln,type:"leaf",groupingKey:null};G[U]=q,J[U]=U,z[U]=H,W.add(U)}z[Ln]=P({},K,{children:B});const te=B.filter(X=>{var q;return((q=z[X])==null?void 0:q.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=G,e.current.caches.rows.dataRowIdToIdLookup=J,e.current.setState(X=>P({},X,{rows:P({},X.rows,{dataRowIdToModelLookup:G,dataRowIdToIdLookup:J,dataRowIds:te,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),D={getRow:a,setLoading:y,getRowId:c,getRowModels:v,getRowsCount:x,getAllRowIds:w,setRows:f,updateRows:g,getRowNode:k,getRowIndexRelativeToVisibleRows:b,unstable_replaceRows:I},S={setRowIndex:T,setRowChildrenExpansion:C,getRowGroupChildren:M},R={updateServerRows:m},j=h.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=P({},e.current.caches.rows,{updates:{type:"full",rows:mh(e)}}):O=Jh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),F=es(()=>t.unstable_dataSource),A=h.useCallback(O=>{if(t.unstable_dataSource&&t.unstable_dataSource!==F.current){F.current=t.unstable_dataSource;return}O==="rowTreeCreation"&&j()},[j,F,t.unstable_dataSource]),$=h.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Eoe(e)&&j()},[e,j]);Fe(e,"activeStrategyProcessorChange",A),Fe(e,"strategyAvailabilityChange",$);const E=h.useCallback(()=>{e.current.setState(O=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Yn(O,e.current.instanceId),treeDepths:IM(O,e.current.instanceId),dataRowIds:mh(O,e.current.instanceId),dataRowIdToModelLookup:ji(O,e.current.instanceId),dataRowIdToIdLookup:eg(O,e.current.instanceId)});return P({},O,{rows:P({},O.rows,_,{totalTopLevelRowCount:c4({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);VC(e,"hydrateRows",E),ot(e,D,"public"),ot(e,S,t.signature===So.DataGrid?"private":"public"),ot(e,R,"private");const L=h.useRef(!0);h.useEffect(()=>{var G;if(L.current){L.current=!1;return}let O=!1;t.rowCount!==s.current&&(O=!0,s.current=t.rowCount);const _=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,N=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,z=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;_&&(N||(e.current.setState(J=>P({},J,{rows:P({},J.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),z||(e.current.setState(J=>P({},J,{rows:P({},J.rows,{totalRowCount:Math.max(t.rowCount||0,J.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,J.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!O)||(n.debug(`Updating all rows, new length ${(G=t.rows)==null?void 0:G.length}`),d({cache:Jh({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])},_de=e=>{const t={[Ln]:P({},Doe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let i=0;i!r[i])),n[Ln]=P({},o,{children:s}),{groupingName:sl,tree:n,treeDepths:{0:s.length},dataRowIds:s}},zde=e=>e.updates.type==="full"?_de(e.updates.rows):Nde({previousTree:e.previousTree,actions:e.updates.actions}),Bde=e=>{sg(e,sl,"rowTreeCreation",zde)},rA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Hde=(e,t)=>P({},e,{rowSelection:t.rowSelection?rA(t.rowSelectionModel)??[]:[]}),Vde=(e,t)=>{var L,O,_,N,z,G,J;const n=Sn(e,"useGridSelection"),r=h.useCallback(K=>(...B)=>{t.rowSelection&&K(...B)},[t.rowSelection]),o=t.signature!==So.DataGrid&&(((L=t.rowSelectionPropagation)==null?void 0:L.parents)||((O=t.rowSelectionPropagation)==null?void 0:O.descendants)),s=h.useMemo(()=>rA(t.rowSelectionModel,so(e.current.state)),[e,t.rowSelectionModel]),i=h.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:s,propOnChange:t.onRowSelectionModelChange,stateSelector:so,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=DC(t),d=da(e,t),f=me(e,Yn),g=me(e,Su)>1,m=h.useCallback(K=>{let B=K;const W=i.current??K,te=e.current.isRowSelected(K);if(te){const X=Ic(e),q=X.findIndex(ee=>ee===W),U=X.findIndex(ee=>ee===B);if(q===U)return;q>U?B=X[U+1]:B=X[U-1]}i.current=K,e.current.selectRowRange({startId:W,endId:B},!te)},[e]),y=h.useCallback(K=>{if(t.signature===So.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(` +`));so(e.current.state)!==K&&(n.debug("Setting selection model"),e.current.setState(W=>P({},W,{rowSelection:t.rowSelection?K:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),v=h.useCallback(K=>so(e.current.state).includes(K),[e]),x=h.useCallback(K=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(K)))return!1;const B=e.current.getRowNode(K);return!((B==null?void 0:B.type)==="footer"||(B==null?void 0:B.type)==="pinnedRow")},[e,t.rowSelection,c]),w=h.useCallback(()=>nse(e),[e]),b=h.useCallback((K,B=!0,W=!1)=>{var te,X,q,U,ee,H;if(e.current.isRowSelectable(K))if(i.current=K,W){n.debug(`Setting selection for row ${K}`);const Z=[],ne=oe=>{Z.push(oe)};B&&(ne(K),o&&gh(e,f,K,((te=t.rowSelectionPropagation)==null?void 0:te.descendants)??!1,((X=t.rowSelectionPropagation)==null?void 0:X.parents)??!1,ne)),e.current.setRowSelectionModel(Z)}else{n.debug(`Toggling selection for row ${K}`);const Z=so(e.current.state),ne=new Set(Z);ne.delete(K);const oe=ie=>{ne.add(ie)},re=ie=>{ne.delete(ie)};B?(oe(K),o&&gh(e,f,K,((q=t.rowSelectionPropagation)==null?void 0:q.descendants)??!1,((U=t.rowSelectionPropagation)==null?void 0:U.parents)??!1,oe)):o&&RM(e,f,K,((ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)??!1,((H=t.rowSelectionPropagation)==null?void 0:H.parents)??!1,re),(ne.size<2||u)&&e.current.setRowSelectionModel(Array.from(ne))}},[e,n,o,f,(_=t.rowSelectionPropagation)==null?void 0:_.descendants,(N=t.rowSelectionPropagation)==null?void 0:N.parents,u]),C=h.useCallback((K,B=!0,W=!1)=>{n.debug("Setting selection for several rows");const te=K.filter(U=>e.current.isRowSelectable(U));let X;if(W){if(B){if(X=new Set(te),o){const ee=H=>{X.add(H)};te.forEach(H=>{var Z,ne;gh(e,f,H,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((ne=t.rowSelectionPropagation)==null?void 0:ne.parents)??!1,ee)})}}else X=new Set;const U=Ys(e);if(X.size===Object.keys(U).length&&Array.from(X).every(ee=>U[ee]===ee))return}else{X=new Set(Object.values(Ys(e)));const U=H=>{X.add(H)},ee=H=>{X.delete(H)};te.forEach(H=>{var Z,ne,oe,re;B?(X.add(H),o&&gh(e,f,H,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((ne=t.rowSelectionPropagation)==null?void 0:ne.parents)??!1,U)):(ee(H),o&&RM(e,f,H,((oe=t.rowSelectionPropagation)==null?void 0:oe.descendants)??!1,((re=t.rowSelectionPropagation)==null?void 0:re.parents)??!1,ee))})}(X.size<2||u)&&e.current.setRowSelectionModel(Array.from(X))},[n,o,u,e,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(G=t.rowSelectionPropagation)==null?void 0:G.parents]),k=h.useCallback(({startId:K,endId:B},W=!0,te=!1)=>{if(!e.current.getRow(K)||!e.current.getRow(B))return;n.debug(`Expanding selection from row ${K} to row ${B}`);const X=Ic(e),q=X.indexOf(K),U=X.indexOf(B),[ee,H]=q>U?[U,q]:[q,U],Z=X.slice(ee,H+1);e.current.selectRows(Z,W,te)},[e,n]),M={selectRow:b,setRowSelectionModel:y,getSelectedRows:w,isRowSelected:v,isRowSelectable:x},T={selectRows:C,selectRowRange:k};ot(e,M,"public"),ot(e,T,t.signature===So.DataGrid?"private":"public");const I=h.useRef(!0),D=h.useCallback((K=!1)=>{var H;if(I.current)return;const B=so(e.current.state),W=ji(e),te=ku(e),X=P({},Ys(e)),q=Z=>t.filterMode==="server"?!W[Z]:te[Z]!==!0;let U=!1;B.forEach(Z=>{var oe;if(q(Z)){if(t.keepNonExistentRowsSelected)return;delete X[Z],U=!0;return}if(!((oe=t.rowSelectionPropagation)!=null&&oe.parents))return;const ne=f[Z];if(ne.type==="group"){if(ne.isAutoGenerated){delete X[Z],U=!0;return}ne.children.every(de=>te[de]===!1)||(delete X[Z],U=!0)}});const ee=g&&((H=t.rowSelectionPropagation)==null?void 0:H.parents)&&Object.keys(X).length>0;if(U||ee&&!K){const Z=Object.values(X);ee?e.current.selectRows(Z,!0,!0):e.current.setRowSelectionModel(Z)}},[e,g,(J=t.rowSelectionPropagation)==null?void 0:J.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),S=h.useCallback((K,B)=>{const W=B.metaKey||B.ctrlKey,te=!a&&!W&&!Qle(B),X=!u||te,q=e.current.isRowSelected(K);X?e.current.selectRow(K,te?!0:!q,!0):e.current.selectRow(K,!q,!1)},[e,u,a]),R=h.useCallback((K,B)=>{var X;if(l)return;const W=(X=B.target.closest(`.${Y.cell}`))==null?void 0:X.getAttribute("data-field");if(W===Pu.field||W===J0)return;if(W){const q=e.current.getColumn(W);if((q==null?void 0:q.type)===X0)return}e.current.getRowNode(K.id).type!=="pinnedRow"&&(B.shiftKey&&u?m(K.id):S(K.id,B))},[l,u,e,m,S]),j=h.useCallback((K,B)=>{var W;u&&B.shiftKey&&((W=window.getSelection())==null||W.removeAllRanges())},[u]),F=h.useCallback((K,B)=>{u&&B.nativeEvent.shiftKey?m(K.id):e.current.selectRow(K.id,K.value,!u)},[e,m,u]),A=h.useCallback(K=>{const B=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?M4(e):Ic(e);e.current.selectRows(B,K.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),$=h.useCallback((K,B)=>{if(e.current.getCellMode(K.id,K.field)!==Pt.Edit&&!gp(B)){if(og(B.key)&&B.shiftKey){const W=$r(e);if(W&&W.id!==K.id){B.preventDefault();const te=e.current.isRowSelected(W.id);if(!u){e.current.selectRow(W.id,!te,!0);return}const X=e.current.getRowIndexRelativeToVisibleRows(W.id),q=e.current.getRowIndexRelativeToVisibleRows(K.id);let U,ee;X>q?te?(U=q,ee=X-1):(U=q,ee=X):te?(U=X+1,ee=q):(U=X,ee=q);const H=d.rows.slice(U,ee+1).map(Z=>Z.id);e.current.selectRows(H,!te);return}}if(B.key===" "&&B.shiftKey){B.preventDefault(),S(K.id,B);return}String.fromCharCode(B.keyCode)==="A"&&(B.ctrlKey||B.metaKey)&&(B.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,S,C,d.rows,u]);Fe(e,"sortedRowsSet",r(()=>D(!0))),Fe(e,"filteredRowsSet",r(D)),Fe(e,"rowClick",r(R)),Fe(e,"rowSelectionCheckboxChange",r(F)),Fe(e,"headerSelectionCheckboxChange",A),Fe(e,"cellMouseDown",r(j)),Fe(e,"cellKeyDown",r($)),h.useEffect(()=>{s!==void 0&&e.current.setRowSelectionModel(s)},[e,s,t.rowSelection]),h.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const E=s!=null;h.useEffect(()=>{if(E||!t.rowSelection)return;const K=so(e.current.state);if(x){const B=K.filter(W=>x(W));B.length{if(!t.rowSelection||E)return;const K=so(e.current.state);!u&&K.length>1&&e.current.setRowSelectionModel([])},[e,u,a,E,t.rowSelection]),h.useEffect(()=>{r(D)},[D,r]),h.useEffect(()=>{I.current&&(I.current=!1)},[])},Ude=e=>{const{classes:t}=e;return h.useMemo(()=>le({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},dt,t),[t])},Wde=(e,t)=>{const n={classes:t.classes},r=Ude(n),o=h.useCallback(s=>{const i=P({},Pu,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,l=s.lookup[Fs]!=null;return a&&!l?(s.lookup[Fs]=i,s.orderedFields=[Fs,...s.orderedFields]):!a&&l?(delete s.lookup[Fs],s.orderedFields=s.orderedFields.filter(c=>c!==Fs)):a&&l&&(s.lookup[Fs]=P({},i,s.lookup[Fs])),s},[e,r,t.checkboxSelection]);Wt(e,"hydrateColumns",o)},Gde=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return P({},e,{sorting:{sortModel:Z3(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Kde=(e,t)=>{var k,M;const n=Sn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:oo,changeEvent:"sortModelChange"});const r=h.useCallback((T,I)=>{const D=oo(e),S=D.findIndex(j=>j.field===T);let R=[...D];return S>-1?(I==null?void 0:I.sort)==null?R.splice(S,1):R.splice(S,1,I):R=[...D,I],R},[e]),o=h.useCallback((T,I)=>{const S=oo(e).find(R=>R.field===T.field);if(S){const R=I===void 0?xM(T.sortingOrder??t.sortingOrder,S.sort):I;return R===void 0?void 0:P({},S,{sort:R})}return{field:T.field,sort:I===void 0?xM(T.sortingOrder??t.sortingOrder):I}},[e,t.sortingOrder]),s=h.useCallback((T,I)=>I==null||I.sortable===!1||t.disableColumnSorting?T:(I.sortingOrder||t.sortingOrder).some(S=>!!S)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),i=h.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),P({},T,{sorting:P({},T.sorting,{sortedRows:IC(Yn(e),Ln,!1)})});const I=oo(T,e.current.instanceId),D=Zre(I,e),S=e.current.applyStrategyProcessor("sorting",{sortRowList:D});return P({},T,{sorting:P({},T.sorting,{sortedRows:S})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=h.useCallback(T=>{oo(e)!==T&&(n.debug("Setting sort model"),e.current.setState(vM(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=h.useCallback((T,I,D)=>{const S=e.current.getColumn(T),R=o(S,I);let j;!D||t.disableMultipleColumnsSorting?j=(R==null?void 0:R.sort)==null?[]:[R]:j=r(S.field,R),e.current.setSortModel(j)},[e,r,o,t.disableMultipleColumnsSorting]),c=h.useCallback(()=>oo(e),[e]),u=h.useCallback(()=>EC(e).map(I=>I.model),[e]),d=h.useCallback(()=>pp(e),[e]),f=h.useCallback(T=>e.current.getSortedRowIds()[T],[e]);ot(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:a,sortColumn:l,applySorting:i},"public");const m=h.useCallback((T,I)=>{var R,j;const D=oo(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((j=(R=t.initialState)==null?void 0:R.sorting)==null?void 0:j.sortModel)!=null||D.length>0?P({},T,{sorting:{sortModel:D}}):T},[e,t.sortModel,(M=(k=t.initialState)==null?void 0:k.sorting)==null?void 0:M.sortModel]),y=h.useCallback((T,I)=>{var S;const D=(S=I.stateToRestore.sorting)==null?void 0:S.sortModel;return D==null?T:(e.current.setState(vM(D,t.disableMultipleColumnsSorting)),P({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),v=h.useCallback(T=>{const I=Yn(e),D=I[Ln],S=T.sortRowList?T.sortRowList(D.children.map(R=>I[R])):[...D.children];return D.footerId!=null&&S.push(D.footerId),S},[e]);Wt(e,"exportState",m),Wt(e,"restoreState",y),sg(e,sl,"sorting",v);const x=h.useCallback(({field:T,colDef:I},D)=>{if(!I.sortable||t.disableColumnSorting)return;const S=D.shiftKey||D.metaKey||D.ctrlKey;l(T,void 0,S)},[l,t.disableColumnSorting]),w=h.useCallback(({field:T,colDef:I},D)=>{!I.sortable||t.disableColumnSorting||D.key==="Enter"&&!D.ctrlKey&&!D.metaKey&&l(T,void 0,D.shiftKey)},[l,t.disableColumnSorting]),b=h.useCallback(()=>{const T=oo(e),I=pi(e);if(T.length>0){const D=T.filter(S=>I[S.field]);D.length{T==="sorting"&&e.current.applySorting()},[e]);Wt(e,"columnMenu",s),Fe(e,"columnHeaderClick",x),Fe(e,"columnHeaderKeyDown",w),Fe(e,"rowsSet",e.current.applySorting),Fe(e,"columnsChange",b),Fe(e,"activeStrategyProcessorChange",C),hp(()=>{e.current.applySorting()}),at(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function uI(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o{const n=Bt(),r=Sn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,i=me(e,ua),a=h.useCallback(d=>{var x;const f=Bn(e.current.state),g=Q0(e),m=t.unstable_listView?[Zc(e.current.state)]:yn(e);if(!(d.rowIndex==null)&&g===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let v={};if(d.colIndex!==void 0){const w=ca(e);let b;if(typeof d.rowIndex<"u"){const C=(x=i[d.rowIndex])==null?void 0:x.id,k=e.current.unstable_getCellColSpanInfo(C,d.colIndex);k&&!k.spannedByColSpan&&(b=k.cellProps.width)}typeof b>"u"&&(b=m[d.colIndex].computedWidth),v.left=uI({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:b,elementOffset:w[d.colIndex]})}if(d.rowIndex!==void 0){const w=Mu(e.current.state),b=vse(e),C=xse(e),k=t.pagination?d.rowIndex-b*C:d.rowIndex,M=w.positions[k+1]?w.positions[k+1]-w.positions[k]:w.currentPageTotalHeight-w.positions[k];v.top=uI({containerSize:f.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:M,elementOffset:w.positions[k]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,d),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,s,t.pagination,i,t.unstable_listView]),l=h.useCallback(d=>{if(s.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,s.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}s.current&&d.top!==void 0&&(s.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n,o,r]),c=h.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);ot(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function qde(e,t){$t(e,"columnHeaderClick",t.onColumnHeaderClick),$t(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),$t(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),$t(e,"columnHeaderOver",t.onColumnHeaderOver),$t(e,"columnHeaderOut",t.onColumnHeaderOut),$t(e,"columnHeaderEnter",t.onColumnHeaderEnter),$t(e,"columnHeaderLeave",t.onColumnHeaderLeave),$t(e,"cellClick",t.onCellClick),$t(e,"cellDoubleClick",t.onCellDoubleClick),$t(e,"cellKeyDown",t.onCellKeyDown),$t(e,"preferencePanelClose",t.onPreferencePanelClose),$t(e,"preferencePanelOpen",t.onPreferencePanelOpen),$t(e,"menuOpen",t.onMenuOpen),$t(e,"menuClose",t.onMenuClose),$t(e,"rowDoubleClick",t.onRowDoubleClick),$t(e,"rowClick",t.onRowClick),$t(e,"stateChange",t.onStateChange)}function Xde(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function s(...i){r=i,n===void 0&&(n=setTimeout(o,t))}return s.clear=()=>{clearTimeout(n),n=void 0},s}const Xx={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:Ts.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},Wl={width:0,height:0},Qde={isReady:!1,root:Wl,viewportOuterSize:Wl,viewportInnerSize:Wl,contentSize:Wl,minimumSize:Wl,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},Zde=e=>P({},e,{dimensions:Qde});function Jde(e,t){const n=Sn(e,"useResizeContainer"),r=h.useRef(!1),o=h.useRef(Wl),s=me(e,Bn),i=me(e,Mu),a=me(e,fp),l=me(e,dp),c=h.useMemo(()=>f4(t.rowHeight,Xx.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),g=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),m=tfe(SC(e),6),y=jC(e,t),v=a.left.reduce((E,L)=>E+L.computedWidth,0),x=a.right.reduce((E,L)=>E+L.computedWidth,0),[w,b]=h.useState(),C=h.useMemo(()=>Xde(b,t.resizeThrottleMs),[t.resizeThrottleMs]),k=h.useRef(),M=()=>e.current.state.dimensions,T=ve(E=>{e.current.setState(L=>P({},L,{dimensions:E}))}),I=h.useCallback(()=>{const E=e.current.mainElementRef.current;if(!E)return;const L=Gr(E).getComputedStyle(E),O={width:parseFloat(L.width)||0,height:parseFloat(L.height)||0};(!k.current||!dI(k.current,O))&&(e.current.publishEvent("resize",O),k.current=O)},[e]),D=h.useCallback(()=>{const E=Bn(e.current.state);if(!E.isReady)return 0;const L=Ec(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const _=iy(e),N=_.lastRowIndex-_.firstRowIndex;return Math.min(N-1,L.rows.length)}const O=Math.floor(E.viewportInnerSize.height/u);return Math.min(O,L.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),S=h.useCallback(()=>{var ee,H;const E=e.current.rootElementRef.current,L=Aoe(e),O=efe(E,m,t.scrollbarSize),_=y+L.top,N=L.bottom,G={width:m-v-x,height:i.currentPageTotalHeight};let J,K,B=!1,W=!1;if(t.autoHeight)W=!1,B=Math.round(m)>Math.round(o.current.width),J={width:o.current.width,height:_+N+G.height},K={width:Math.max(0,J.width-(W?O:0)),height:Math.max(0,J.height-(B?O:0))};else{J={width:o.current.width,height:o.current.height},K={width:Math.max(0,J.width-v-x),height:Math.max(0,J.height-_-N)};const Z=G,ne=K,oe=Z.width>ne.width,re=Z.height>ne.height;(oe||re)&&(W=re,B=Z.width+(W?O:0)>ne.width,B&&(W=Z.height+O>ne.height)),W&&(K.width-=O),B&&(K.height-=O)}const te=Math.max(J.width,m+(W?O:0)),X={width:m,height:_+G.height+N},q={isReady:!0,root:o.current,viewportOuterSize:J,viewportInnerSize:K,contentSize:G,minimumSize:X,hasScrollX:B,hasScrollY:W,scrollbarSize:O,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:g,rowWidth:te,rowHeight:u,columnsTotalWidth:m,leftPinnedWidth:v,rightPinnedWidth:x,headersTotalHeight:y,topContainerHeight:_,bottomContainerHeight:N},U=e.current.state.dimensions;T(q),dI(q.viewportInnerSize,U.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",q.viewportInnerSize),(H=(ee=e.current).updateRenderContext)==null||H.call(ee)},[e,T,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u,d,f,g,m,y,v,x]),R={resize:I,getRootDimensions:M},j={updateDimensions:S,getViewportPageSize:D};ot(e,R,"public"),ot(e,j,"private"),at(()=>{w&&(S(),e.current.publishEvent("debouncedResize",o.current))},[e,w,S]);const F=e.current.rootElementRef.current;at(()=>{if(!F)return;const E=(L,O)=>F.style.setProperty(L,O);E("--DataGrid-width",`${s.viewportOuterSize.width}px`),E("--DataGrid-hasScrollX",`${Number(s.hasScrollX)}`),E("--DataGrid-hasScrollY",`${Number(s.hasScrollY)}`),E("--DataGrid-scrollbarSize",`${s.scrollbarSize}px`),E("--DataGrid-rowWidth",`${s.rowWidth}px`),E("--DataGrid-columnsTotalWidth",`${s.columnsTotalWidth}px`),E("--DataGrid-leftPinnedWidth",`${s.leftPinnedWidth}px`),E("--DataGrid-rightPinnedWidth",`${s.rightPinnedWidth}px`),E("--DataGrid-headerHeight",`${s.headerHeight}px`),E("--DataGrid-headersTotalHeight",`${s.headersTotalHeight}px`),E("--DataGrid-topContainerHeight",`${s.topContainerHeight}px`),E("--DataGrid-bottomContainerHeight",`${s.bottomContainerHeight}px`),E("--height",`${s.rowHeight}px`)},[F,s]);const A=h.useRef(!0),$=h.useCallback(E=>{o.current=E;const L=/jsdom/.test(window.navigator.userAgent);if(E.height===0&&!r.current&&!t.autoHeight&&!L&&(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),E.width===0&&!r.current&&!L&&(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),A.current){b(E),A.current=!1;return}C(E)},[t.autoHeight,C,n]);at(S,[S]),$t(e,"sortedRowsSet",S),$t(e,"paginationModelChange",S),$t(e,"columnsChange",S),Fe(e,"resize",$),$t(e,"debouncedResize",t.onResize)}function efe(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=zt(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 s=o.offsetWidth-o.clientWidth;return e.removeChild(o),s}function tfe(e,t){return Math.round(e*10**t)/10**t}function dI(e,t){return e.width===t.width&&e.height===t.height}const nfe=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},rfe=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),ofe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=e.current.caches.rowsMeta.heights,i=h.useRef(-1),a=h.useRef(!1),l=h.useRef(!1),c=me(e,dp),u=me(e,jn),d=me(e,ry),f=me(e,oo),g=da(e,t),m=me(e,gl),y=me(e,()=>Bn(e.current.state).rowHeight),v=F=>{let A=s.get(F);return A===void 0&&(A={content:y,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},s.set(F,A)),A},x=h.useCallback(F=>{const A=Bn(e.current.state).rowHeight,$=e.current.getRowHeightEntry(F.id);if(!n)$.content=A,$.needsFirstMeasurement=!1;else{const E=n(P({},F,{densityFactor:c}));if(E==="auto"){if($.needsFirstMeasurement){const L=o?o(P({},F,{densityFactor:c})):A;$.content=L??A}a.current=!0,$.autoHeight=!0}else $.content=f4(E,A),$.needsFirstMeasurement=!1,$.autoHeight=!1}if(r){const E=e.current.getRowIndexRelativeToVisibleRows(F.id),L=r(P({},F,{isFirstVisible:E===0,isLastVisible:E===g.rows.length-1,indexRelativeToCurrentPage:E}));$.spacingTop=L.top??0,$.spacingBottom=L.bottom??0}else $.spacingTop=0,$.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",$,F),$},[e,g.rows.length,n,o,y,r,c]),w=h.useCallback(()=>{a.current=!1,m.top.forEach(x),m.bottom.forEach(x);const F=[],A=g.rows.reduce(($,E)=>{F.push($);const L=x(E),O=L.content+L.spacingTop+L.spacingBottom+L.detail;return $+O},0);a.current||(i.current=1/0),e.current.setState($=>P({},$,{rowsMeta:{currentPageTotalHeight:A,positions:F}})),l.current=!0},[e,m,g.rows,x]),b=F=>{var A;return((A=s.get(F))==null?void 0:A.content)??y},C=(F,A)=>{const $=e.current.getRowHeightEntry(F),E=$.content!==A;$.needsFirstMeasurement=!1,$.content=A,l.current&&(l.current=!E)},k=F=>{var A;return((A=s.get(F))==null?void 0:A.autoHeight)??!1},M=()=>i.current,T=F=>{a.current&&F>i.current&&(i.current=F)},I=()=>{s.clear(),w()},D=es(()=>new nfe(F=>{for(let A=0;A0?$.borderBoxSize[0].blockSize:$.contentRect.height,L=$.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(L,E)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,S=(F,A)=>(F.__mui_id=A,D.observe(F),()=>D.unobserve(F));VC(e,"rowHeight",w),h.useEffect(()=>{w()},[u,d,f,w]);const R={unstable_getRowHeight:b,unstable_setLastMeasuredRowIndex:T,unstable_storeRowHeightMeasurement:C,resetRowHeights:I},j={hydrateRowsMeta:w,observeRowHeight:S,rowHasAutoHeight:k,getRowHeightEntry:v,getLastMeasuredRowIndex:M};ot(e,R,"public"),ot(e,j,"private")},sfe=e=>{const t=h.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=h.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);ot(e,{exportState:t,restoreState:n},"public")},ife=e=>{const t=h.useRef({}),n=(a,l)=>{var c;return(c=t.current[a])==null?void 0:c[l]},r=()=>{t.current={}},o=h.useCallback(({rowId:a,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d1&&(d+=f.colSpan-1)}},[e]),s={unstable_getCellColSpanInfo:n},i={resetColSpan:r,calculateColSpan:o};ot(e,s,"public"),ot(e,i,"private"),Fe(e,"columnOrderChange",r)};function afe(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:s,maxLastColumnIndex:i,columns:a}=e,l=a.length,c=a[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 N1(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let g=c.computedWidth;for(let m=1;m=s&&y{if(o4(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(s=>{oA(s,[...t,r],n)})},Qx=e=>{if(!e)return{};const t={};return e.forEach(n=>{oA(n,[],t)}),t},Zx=(e,t,n)=>{const r=l=>t[l]??[],o=[],s=Math.max(...e.map(l=>r(l).length)),i=(l,c,u)=>Pc(r(l).slice(0,u+1),r(c).slice(0,u+1)),a=(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{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const g=u[u.length-1],m=g.columnFields[g.columnFields.length-1];return g.groupId!==f||!i(m,d,l)||a(m,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...g.columnFields,d],groupId:f}]},[]);o.push(c)}return o},lfe=["groupId","children"],UC=e=>{let t={};return e.forEach(n=>{if(o4(n))return;const{groupId:r,children:o}=n,s=ue(n,lfe);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=P({},s,{groupId:r}),a=UC(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=P({},t,a,{[r]:i})}),P({},t)},cfe=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=Ks(n),o=Cu(n),s=UC(t.columnGroupingModel??[]),i=Qx(t.columnGroupingModel??[]),a=Zx(r,i,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=i[c])==null?void 0:u.length)??0}));return P({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:i,headerStructure:a,maxDepth:l}})},ufe=(e,t)=>{const n=h.useCallback(a=>R4(e)[a]??[],[e]),r=h.useCallback(()=>D4(e),[e]);ot(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=h.useCallback(()=>{const a=Qx(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=Zx(c,a,u);return P({},l,{columnGrouping:P({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),i=h.useCallback(a=>{var y,v;const l=((v=(y=e.current).getPinnedColumns)==null?void 0:v.call(y))??{},c=Ks(e),u=Cu(e),d=UC(a??[]),f=Qx(a??[]),g=Zx(c,f,l),m=u.length===0?0:Math.max(...u.map(x=>{var w;return((w=f[x])==null?void 0:w.length)??0}));e.current.setState(x=>P({},x,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:g,maxDepth:m}}))},[e]);Fe(e,"columnIndexChange",s),Fe(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Fe(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),h.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])};function dfe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function fI(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;nFC(e),r=me(e,n);return h.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=dfe()}return t.current}}function gfe(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,l)=>a-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,i=s<5?5:s*t;return n.filter(a=>a>r-i&&a{const a=Eae(e.current,s.field).map(m=>m.getBoundingClientRect().width??0),l=t.includeOutliers?a:gfe(a,t.outliersFactor);if(t.includeHeaders){const m=Iae(e.current,s.field);if(m){const y=m.querySelector(`.${Y.columnHeaderTitle}`),v=m.querySelector(`.${Y.columnHeaderTitleContainerContent}`),x=m.querySelector(`.${Y.iconButtonContainer}`),w=m.querySelector(`.${Y.menuIcon}`),b=y??v,C=window.getComputedStyle(m,null),k=parseInt(C.paddingLeft,10)+parseInt(C.paddingRight,10),T=b.scrollWidth+1+k+((x==null?void 0:x.clientWidth)??0)+((w==null?void 0:w.clientWidth)??0);l.push(T)}}const c=s.minWidth!==-1/0&&s.minWidth!==void 0,u=s.maxWidth!==1/0&&s.maxWidth!==void 0,d=c?s.minWidth:0,f=u?s.maxWidth:1/0,g=l.length===0?0:Math.max(...l);r[s.field]=Ss(g,d,f)}),o.classList.remove(Y.autosizing),r}const vfe=e=>P({},e,{columnResize:{resizingColumnField:""}});function xfe(){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 bfe=(e,t)=>{const n=Bt(),r=Sn(e,"useGridColumnResize"),o=es(xfe).current,s=h.useRef(),i=h.useRef(),a=zr(),l=h.useRef(),c=D=>{var E,L;r.debug(`Updating width to ${D} for col ${o.colDef.field}`);const S=o.columnHeaderElement.offsetWidth,R=D-S,j=D-o.initialColWidth,F=o.initialTotalWidth+j;(L=(E=e.current.rootElementRef)==null?void 0:E.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${F}px`),o.colDef.computedWidth=D,o.colDef.width=D,o.colDef.flex=0,o.columnHeaderElement.style.width=`${D}px`;const A=o.headerFilterElement;A&&(A.style.width=`${D}px`),o.groupHeaderElements.forEach(O=>{const _=O;let N;_.getAttribute("aria-colspan")==="1"?N=`${D}px`:N=`${_.offsetWidth+R}px`,_.style.width=N}),o.cellElements.forEach(O=>{const _=O;let N;_.getAttribute("aria-colspan")==="1"?N=`${D}px`:N=`${_.offsetWidth+R}px`,_.style.setProperty("--width",N)});const $=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);$===At.LEFT&&(Ll(o.fillerLeft,"width",R),o.leftPinnedCellsAfter.forEach(O=>{Ll(O,"left",R)}),o.leftPinnedHeadersAfter.forEach(O=>{Ll(O,"left",R)})),$===At.RIGHT&&(Ll(o.fillerRight,"width",R),o.rightPinnedCellsBefore.forEach(O=>{Ll(O,"right",R)}),o.rightPinnedHeadersBefore.forEach(O=>{Ll(O,"right",R)}))},u=D=>{if(x(),o.previousMouseClickEvent){const S=o.previousMouseClickEvent,R=S.timeStamp,j=S.clientX,F=S.clientY;if(D.timeStamp-R<300&&D.clientX===j&&D.clientY===F){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,D);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 S=Cs(e.current.state);o.groupHeaderElements.forEach(R=>{const j=bae(R),F=R,$=`${j.reduce((E,L)=>S.columnVisibilityModel[L]!==!1?E+S.lookup[L].computedWidth:E,0)}px`;F.style.width=$})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,D)})},d=(D,S,R)=>{var $;const j=e.current.rootElementRef.current;o.initialColWidth=D.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=D,o.columnHeaderElement=xae(e.current.columnHeadersContainerRef.current,D.field);const F=j.querySelector(`.${Y.headerFilterRow} [data-field="${hi(D.field)}"]`);F&&(o.headerFilterElement=F),o.groupHeaderElements=wae(($=e.current.columnHeadersContainerRef)==null?void 0:$.current,D.field),o.cellElements=Cae(o.columnHeaderElement,e.current),o.fillerLeft=NM(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=NM(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const A=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=A!==At.LEFT?[]:Sae(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=A!==At.RIGHT?[]:kae(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=A!==At.LEFT?[]:Pae(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=A!==At.RIGHT?[]:Mae(e.current,o.columnHeaderElement,n),i.current=hfe(S,n),s.current=ffe(R,o.columnHeaderElement.getBoundingClientRect(),i.current)},f=ve(u),g=ve(D=>{if(D.buttons===0){f(D);return}let S=pI(s.current,D.clientX,o.columnHeaderElement.getBoundingClientRect(),i.current);S=Ss(S,o.colDef.minWidth,o.colDef.maxWidth),c(S);const R={element:o.columnHeaderElement,colDef:o.colDef,width:S};e.current.publishEvent("columnResize",R,D)}),m=ve(D=>{fI(D,l.current)&&u(D)}),y=ve(D=>{const S=fI(D,l.current);if(!S)return;if(D.type==="mousemove"&&D.buttons===0){m(D);return}let R=pI(s.current,S.x,o.columnHeaderElement.getBoundingClientRect(),i.current);R=Ss(R,o.colDef.minWidth,o.colDef.maxWidth),c(R);const j={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",j,D)}),v=ve(D=>{const S=rg(D.target,Y["columnSeparator--resizable"]);if(!S)return;const R=D.changedTouches[0];R!=null&&(l.current=R.identifier);const j=rg(D.target,Y.columnHeader),F=vae(j),A=e.current.getColumn(F);r.debug(`Start Resize on col ${A.field}`),e.current.publishEvent("columnResizeStart",{field:F},D),d(A,S,R.clientX);const $=zt(D.currentTarget);$.addEventListener("touchmove",y),$.addEventListener("touchend",m)}),x=h.useCallback(()=>{const D=zt(e.current.rootElementRef.current);D.body.style.removeProperty("cursor"),D.removeEventListener("mousemove",g),D.removeEventListener("mouseup",f),D.removeEventListener("touchmove",y),D.removeEventListener("touchend",m),setTimeout(()=>{D.removeEventListener("click",hI,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,g,f,y,m]),w=h.useCallback(({field:D})=>{e.current.setState(S=>P({},S,{columnResize:P({},S.columnResize,{resizingColumnField:D})})),e.current.forceUpdate()},[e]),b=h.useCallback(()=>{e.current.setState(D=>P({},D,{columnResize:P({},D.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),C=ve(({colDef:D},S)=>{if(S.button!==0||!S.currentTarget.classList.contains(Y["columnSeparator--resizable"]))return;S.preventDefault(),r.debug(`Start Resize on col ${D.field}`),e.current.publishEvent("columnResizeStart",{field:D.field},S),d(D,S.currentTarget,S.clientX);const R=zt(e.current.rootElementRef.current);R.body.style.cursor="col-resize",o.previousMouseClickEvent=S.nativeEvent,R.addEventListener("mousemove",g),R.addEventListener("mouseup",f),R.addEventListener("click",hI,!0)}),k=ve((D,S)=>{if(t.disableAutosize||S.button!==0)return;const R=e.current.state.columns.lookup[D.field];R.resizable!==!1&&e.current.autosizeColumns(P({},t.autosizeOptions,{columns:[R.field]}))}),M=mfe(e),T=h.useRef(!1),I=h.useCallback(async D=>{var A;if(!((A=e.current.rootElementRef)==null?void 0:A.current)||T.current)return;T.current=!0;const R=Cs(e.current.state),j=P({},sae,D,{columns:(D==null?void 0:D.columns)??R.orderedFields});j.columns=j.columns.filter($=>R.columnVisibilityModel[$]!==!1);const F=j.columns.map($=>e.current.state.columns.lookup[$]);try{e.current.unstable_setColumnVirtualization(!1),await M();const $=yfe(e,j,F),E=F.map(L=>P({},L,{width:$[L.field],computedWidth:$[L.field]}));if(j.expand){const O=R.orderedFields.map(z=>R.lookup[z]).filter(z=>R.columnVisibilityModel[z.field]!==!1).reduce((z,G)=>z+($[G.field]??G.computedWidth??G.width),0),N=e.current.getRootDimensions().viewportInnerSize.width-O;if(N>0){const z=N/(E.length||1);E.forEach(G=>{G.width+=z,G.computedWidth+=z})}}e.current.updateColumns(E),E.forEach((L,O)=>{if(L.width!==F[O].width){const _=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:_})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,M]);h.useEffect(()=>x,[x]),C0(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),w4(e,()=>{var D;return(D=e.current.columnHeadersContainerRef)==null?void 0:D.current},"touchstart",v,{passive:!0}),ot(e,{autosizeColumns:I},"public"),Fe(e,"columnResizeStop",b),Fe(e,"columnResizeStart",w),Fe(e,"columnSeparatorMouseDown",C),Fe(e,"columnSeparatorDoubleClick",k),$t(e,"columnResize",t.onColumnResize),$t(e,"columnWidthChange",t.onColumnWidthChange)};function Ll(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function wfe(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{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},ig={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Bd={firstRowIndex:0,lastRowIndex:0},Sfe=new Set([Fs,"__reorder__",J0]),sA=20,iA=(e,t,n,r,o,s,i)=>{const a=s?{}:P({},e.current.state.rowSpanning.spannedCells),l=s?{}:P({},e.current.state.rowSpanning.hiddenCells),c=s?{}:P({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(i=Bd),t.forEach(u=>{var d;if(!Sfe.has(u.field)){for(let f=o.firstRowIndex;f<=o.lastRowIndex;f+=1){const g=n[f];if((d=l[g.id])!=null&&d[u.field])continue;const m=z1(g.model,u,e);if(m==null)continue;let y=g.id,v=f,x=0;const w=[];if(f===o.firstRowIndex){let C=f-1;const k=n[C];for(;C>=r.firstRowIndex&&z1(k.model,u,e)===m;){const M=n[C+1];l[M.id]?l[M.id][u.field]=!0:l[M.id]={[u.field]:!0},w.push(f),x+=1,y=k.id,v=C,C-=1}}w.forEach(C=>{c[C]?c[C][u.field]=v:c[C]={[u.field]:v}});let b=f+1;for(;b<=r.lastRowIndex&&n[b]&&z1(n[b].model,u,e)===m;){const C=n[b];l[C.id]?l[C.id][u.field]=!0:l[C.id]={[u.field]:!0},c[b]?c[b][u.field]=v:c[b]={[u.field]:v},b+=1,x+=1}x>0&&(a[y]?a[y][u.field]=x+1:a[y]={[u.field]:x+1})}i={firstRowIndex:Math.min(i.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(i.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:l,hiddenCellOriginMap:c,processedRange:i}},kfe=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],s=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!s.length||!i||!a||l)return P({},e,{rowSpanning:ig});const c={firstRowIndex:0,lastRowIndex:Math.min(sA-1,Math.max(o.length-1,0))},u=o.map(y=>({id:y,model:i[y]})),d=s.map(y=>a[y]),{spannedCells:f,hiddenCells:g,hiddenCellOriginMap:m}=iA(n,d,u,c,c,!0,Bd);return P({},e,{rowSpanning:{spannedCells:f,hiddenCells:g,hiddenCellOriginMap:m}})}return P({},e,{rowSpanning:ig})},Pfe=(e,t)=>{const{range:n,rows:r}=da(e,t),o=me(e,iy),s=me(e,yn),i=es(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(sA-1,Math.max(e.current.state.rows.dataRowIds.length-1,0))}:Bd),a=h.useRef(Bd),l=h.useCallback((f=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==ig&&e.current.setState(T=>P({},T,{rowSpanning:ig}));return}if(n===null||!Cfe(o))return;f&&(i.current=Bd);const g=wfe({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex-1,n.lastRowIndex)},i.current);if(g===null)return;const{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:v,processedRange:x}=iA(e,s,r,n,g,f,i.current);i.current=x;const w=Object.keys(m).length,b=Object.keys(y).length,C=Object.keys(e.current.state.rowSpanning.spannedCells).length,k=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(f||w!==C||b!==k)&&e.current.setState(T=>P({},T,{rowSpanning:{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:v}}))},[e,t.unstable_rowSpanning,n,o,r,s,i]),c=h.useRef(o),u=h.useRef(!0),d=h.useRef(!1);h.useEffect(()=>{const f=u.current;if(u.current&&(u.current=!1),n&&a.current&&mI(n,a.current)&&(a.current=n,d.current=!0),!f&&c.current!==o){mI(c.current,o)&&(l(d.current),d.current=!1),c.current=o;return}l()},[l,o,n,a])},Mfe=(e,t,n)=>P({},e,{listViewColumn:t.unstable_listColumn?P({},t.unstable_listColumn,{computedWidth:Jx(n)}):void 0});function Ife(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?P({},s,{listViewColumn:P({},s.listViewColumn,{computedWidth:Jx(e)})}):s)},r=h.useRef(null);Fe(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),Fe(e,"columnVisibilityModelChange",n),h.useEffect(()=>{const s=t.unstable_listColumn;s&&e.current.setState(i=>P({},i,{listViewColumn:P({},s,{computedWidth:Jx(e)})}))},[e,t.unstable_listColumn]),h.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function Jx(e){return Bn(e.current.state).viewportInnerSize.width}const Efe=(e,t)=>{const n=Kue(e,t);return Wde(n,t),Bde(n),Pn(Zde,n,t),Pn(Hde,n,t),Pn(tde,n,t),Pn(Fde,n,t),Pn(Ode,n,t),Pn(mde,n,t),Pn(Gde,n,t),Pn(Mde,n,t),Pn(dde,n,t),Pn(kfe,n,t),Pn(rde,n,t),Pn(vfe,n,t),Pn(kde,n,t),Pn(rfe,n,t),Pn(Jue,n,t),Pn(cfe,n,t),Pn(vie,n,t),Pn(Mfe,n,t),wde(n,t),Vde(n,t),nde(n,t),Lde(n,t),Pfe(n,t),Tae(n,t),ife(n),ufe(n,t),jde(n,t),gde(n,t),Ide(n,t),hde(n,t),Kde(n,t),ode(n,t),bfe(n,t),Pde(n,t),ofe(n,t),Yde(n,t),ede(n),ide(n,t),ude(n,t),Zue(n,t),Jde(n,t),qde(n,t),sfe(n),xie(n,t),Ife(n,t),n},Tfe=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:i,groupId:a,pinnedPosition:l}=e;return le({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},dt,t)};function Rfe(e){var z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:i,colIndex:a,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:g,sectionLength:m,gridHasFiller:y}=e,v=ze(),x=h.useRef(null),w=Ze(),b=me(w,D4),C=t?b[t]:{},{headerName:k=t??"",description:M="",headerAlign:T=void 0}=C;let I;const D=t&&((z=b[t])==null?void 0:z.renderHeaderGroup),S=h.useMemo(()=>({groupId:t,headerName:k,description:M,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:u}),[t,k,M,r,o,s,a,u]);t&&D&&(I=D(S));const R=ly(d,g),j=ay(d,g,m,v.showColumnVerticalBorder,y),F=P({},e,{classes:v.classes,showLeftBorder:R,showRightBorder:j,headerAlign:T,depth:r,isDragging:!1}),A=k??t,$=mt(),E=t===null?`empty-group-cell-${$}`:t,L=Tfe(F);h.useLayoutEffect(()=>{if(l){const J=x.current.querySelector('[tabindex="0"]')||x.current;J==null||J.focus()}},[w,l]);const O=h.useCallback(G=>J=>{gp(J)||w.current.publishEvent(G,S,J)},[w,S]),_=h.useMemo(()=>({onKeyDown:O("columnGroupHeaderKeyDown"),onFocus:O("columnGroupHeaderFocus"),onBlur:O("columnGroupHeaderBlur")}),[O]),N=typeof C.headerClassName=="function"?C.headerClassName(S):C.headerClassName;return p.jsx(K4,P({ref:x,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:I,headerClassName:N,description:M,elementId:E,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:A,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:f},_))}const gI=Q("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Dfe=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:i,columnGroupHeaderFocus:a,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[g,m]=h.useState(""),[y,v]=h.useState(""),x=jo(),w=Bt(),b=ze(),C=me(x,Bn),k=me(x,FC),M=me(x,R4),T=me(x,ca),I=me(x,yie),D=me(x,fp),S=me(x,pi),R=F4(T,I,D.left.length),j=C.columnsTotalWidth{x.current.columnHeadersContainerRef.current&&(x.current.columnHeadersContainerRef.current.scrollLeft=0)},[x]);const F=h.useCallback(W=>v(W.field),[]),A=h.useCallback(()=>v(""),[]),$=h.useCallback(W=>m(W.field),[]),E=h.useCallback(()=>m(""),[]),L=h.useMemo(()=>D.left.length?{firstColumnIndex:0,lastColumnIndex:D.left.length}:null,[D.left.length]),O=h.useMemo(()=>D.right.length?{firstColumnIndex:t.length-D.right.length,lastColumnIndex:t.length}:null,[D.right.length,t.length]);Fe(x,"columnResizeStart",F),Fe(x,"columnResizeStop",A),Fe(x,"columnHeaderDragStart",$),Fe(x,"columnHeaderDragEnd",E);const _=W=>{const{renderContext:te=I,maxLastColumn:X=t.length}=W||{},q=te.firstColumnIndex,U=k?te.lastColumnIndex:X;return{renderedColumns:t.slice(q,U),firstColumnToRender:q,lastColumnToRender:U}},N=(W,te,X,q=!1)=>{const U=(W==null?void 0:W.position)===At.RIGHT,ee=(W==null?void 0:W.position)===void 0,H=D.right.length>0&&U||D.right.length===0&&ee,Z=R-X;return p.jsxs(h.Fragment,{children:[ee&&p.jsx("div",{role:"presentation",style:{width:Z}}),te,ee&&p.jsx("div",{role:"presentation",className:se(Y.filler,q&&Y["filler--borderBottom"])}),H&&p.jsx(BC,{header:!0,pinnedRight:U,borderBottom:q,borderTop:!1})]})},z=({pinnedPosition:W,columnIndex:te,computedWidth:X})=>{let q;const U=W===At.LEFT,ee=W===At.RIGHT;if(U||ee){const H=zC(W,X,te,T,C);let Z=U?"left":"right";w&&(Z=U?"right":"left"),W==="left"&&(q={[Z]:H}),W==="right"&&(q={[Z]:H})}return q},G=(W,te={})=>{const{renderedColumns:X,firstColumnToRender:q}=_(W),U=[];for(let ee=0;eep.jsxs(gI,{role:"row","aria-rowindex":l+1,ownerState:b,className:Y["row--borderBottom"],children:[L&&G({position:At.LEFT,renderContext:L,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),G({renderContext:I,maxLastColumn:t.length-D.right.length}),O&&G({position:At.RIGHT,renderContext:O,maxLastColumn:O.lastColumnIndex},{disableReorder:!0,separatorSide:NC.Left})]}),K=({depth:W,params:te})=>{var Ee,Ve;const X=_(te);if(X.renderedColumns.length===0)return null;const{firstColumnToRender:q,lastColumnToRender:U}=X,ee=d[W],H=t[q].field,Z=((Ee=M[H])==null?void 0:Ee[W])??null,ne=ee.findIndex(({groupId:Ge,columnFields:Oe})=>Ge===Z&&Oe.includes(H)),oe=t[U-1].field,re=((Ve=M[oe])==null?void 0:Ve[W])??null,de=ee.findIndex(({groupId:Ge,columnFields:Oe})=>Ge===re&&Oe.includes(oe)),ie=ee.slice(ne,de+1).map(Ge=>P({},Ge,{columnFields:Ge.columnFields.filter(Oe=>u[Oe]!==!1)})).filter(Ge=>Ge.columnFields.length>0),we=ie[0].columnFields.indexOf(H),Le=ie[0].columnFields.slice(0,we).reduce((Ge,Oe)=>{const je=S[Oe];return Ge+(je.computedWidth??0)},0);let Qe=q;const Me=ie.map(({groupId:Ge,columnFields:Oe},je)=>{const Ue=a!==null&&a.depth===W&&Oe.includes(a.field),Te=s!==null&&s.depth===W&&Oe.includes(s.field)?0:-1,Ie={width:Oe.reduce(($e,Xe)=>$e+S[Xe].computedWidth,0),fields:Oe,colIndex:Qe},We=te.position,Ct=z({pinnedPosition:We,columnIndex:Qe,computedWidth:Ie.width});Qe+=Oe.length;let ye=je;return We==="left"&&(ye=Qe-1),p.jsx(Rfe,{groupId:Ge,width:Ie.width,fields:Ie.fields,colIndex:Ie.colIndex,depth:W,isLastColumn:Ie.colIndex===t.length-Ie.fields.length,maxDepth:l,height:C.groupHeaderHeight,hasFocus:Ue,tabIndex:Te,pinnedPosition:We,style:Ct,indexInSection:ye,sectionLength:ee.length,gridHasFiller:j},je)});return N(te,Me,Le)};return{renderContext:I,leftRenderContext:L,rightRenderContext:O,pinnedColumns:D,visibleColumns:t,getCellOffsetStyle:z,getFillers:N,getColumnHeadersRow:J,getColumnsToRender:_,getColumnGroupHeadersRows:()=>{if(l===0)return null;const W=[];for(let te=0;te({role:"rowgroup"})}},$fe=["className"],Afe=e=>{const{classes:t}=e;return le({root:["columnHeaders"]},dt,t)},Ofe=wt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),jfe=h.forwardRef(function(t,n){const{className:r}=t,o=ue(t,$fe),s=ze(),i=Afe(s);return p.jsx(Ofe,P({ref:n,className:se(i.root,r),ownerState:s},o,{role:"presentation"}))}),Ffe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Lfe=h.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:m}=t,y=ue(t,Ffe),{getInnerProps:v,getColumnHeadersRow:x,getColumnGroupHeadersRows:w}=Dfe({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:m});return p.jsxs(jfe,P({ref:n},y,v(),{children:[w(),x()]}))}),_fe=la(Lfe);function Nfe(e){return null}function zfe(e){return null}const Bfe=h.forwardRef(function(t,n){const o=Ze().current.getLocaleText("noResultsOverlayLabel");return p.jsx(_C,P({ref:n},t,{children:o}))}),Hfe=["sortingOrder"],Vfe=h.memo(function(t){const{sortingOrder:n}=t,r=ue(t,Hfe),o=ze(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?p.jsx(i,P({},r)):null}),Ufe=["native"];function Wfe(e){let{native:t}=e,n=ue(e,Ufe);return t?p.jsx("option",P({},n)):p.jsx(Vt,P({},n))}const Gfe={booleanCellTrueIcon:Wle,booleanCellFalseIcon:F1,columnMenuIcon:Ble,openFilterButtonIcon:Ole,filterPanelDeleteIcon:F1,columnFilteredIcon:qM,columnSelectorIcon:Fle,columnUnsortedIcon:Vfe,columnSortedAscendingIcon:WM,columnSortedDescendingIcon:GM,columnResizeIcon:Lle,densityCompactIcon:_le,densityStandardIcon:Nle,densityComfortableIcon:zle,exportIcon:Ule,moreActionsIcon:Gle,treeDataCollapseIcon:YM,treeDataExpandIcon:KM,groupingCriteriaCollapseIcon:YM,groupingCriteriaExpandIcon:KM,detailPanelExpandIcon:XM,detailPanelCollapseIcon:Hle,rowReorderIcon:QM,quickFilterIcon:jle,quickFilterClearIcon:F1,columnMenuHideIcon:Kle,columnMenuSortAscendingIcon:WM,columnMenuSortDescendingIcon:GM,columnMenuFilterIcon:qM,columnMenuManageColumnsIcon:Yle,columnMenuClearIcon:qle,loadIcon:Vle,filterPanelAddIcon:XM,filterPanelRemoveAllIcon:Xle,columnReorderIcon:QM},Kfe=P({},Gfe,{baseBadge:UG,baseCheckbox:aC,baseDivider:dn,baseTextField:qo,baseFormControl:Gs,baseSelect:op,baseButton:rt,baseIconButton:wn,baseInputAdornment:_0,baseTooltip:hq,basePopper:di,baseInputLabel:rp,baseSelectOption:Wfe,baseChip:ms}),Yfe=P({},Kfe,{cell:Oae,skeletonCell:Bae,columnHeaderFilterIconButton:Ale,columnHeaderSortIcon:Dle,columnMenu:hce,columnHeaders:_fe,detailPanels:Nfe,footer:iue,footerRowCount:Sue,toolbar:null,pinnedRows:zfe,loadingOverlay:hue,noResultsOverlay:Bfe,noRowsOverlay:mue,pagination:xue,filterPanel:Qce,columnsPanel:Mce,columnsManagement:Z4,panel:Dce,row:Eue});function qfe({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=P({},e);return Object.keys(n).forEach(o=>{const s=o;n[s]!==void 0&&(r[s]=n[s])}),r}function Xfe(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;oXfe(e),[e])}const Zfe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},Jfe=Yfe,epe=e=>{const t=Qfe(xt({props:e,name:"MuiDataGrid"})),n=h.useMemo(()=>P({},Pre,t.localeText),[t.localeText]),r=h.useMemo(()=>qfe({defaultSlots:Jfe,slots:t.slots}),[t.slots]),o=h.useMemo(()=>Object.keys(Xx).reduce((s,i)=>(s[i]=t[i]??Xx[i],s),{}),[t]);return h.useMemo(()=>P({},t,o,{localeText:n,slots:r},Zfe),[t,n,r,o])},tpe={hooks:{useGridAriaAttributes:Tue,useGridRowAriaAttributes:Rue}},aA=h.forwardRef(function(t,n){const r=epe(t),o=Efe(r.apiRef,r);return p.jsx(Due,{privateApiRef:o,configuration:tpe,props:r,children:p.jsxs(Qae,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[p.jsx(lue,{}),p.jsx(dae,{}),p.jsx(fae,{})]}))})}),Tu=h.memo(aA);aA.propTypes={apiRef:V.shape({current:V.object.isRequired}),"aria-label":V.string,"aria-labelledby":V.string,autoHeight:V.bool,autoPageSize:V.bool,autosizeOnMount:V.bool,autosizeOptions:V.shape({columns:V.arrayOf(V.string),expand:V.bool,includeHeaders:V.bool,includeOutliers:V.bool,outliersFactor:V.number}),cellModesModel:V.object,checkboxSelection:V.bool,classes:V.object,clipboardCopyCellDelimiter:V.string,columnBufferPx:V.number,columnGroupHeaderHeight:V.number,columnGroupingModel:V.arrayOf(V.object),columnHeaderHeight:V.number,columns:V.arrayOf(V.object).isRequired,columnVisibilityModel:V.object,density:V.oneOf(["comfortable","compact","standard"]),disableAutosize:V.bool,disableColumnFilter:V.bool,disableColumnMenu:V.bool,disableColumnResize:V.bool,disableColumnSelector:V.bool,disableColumnSorting:V.bool,disableDensitySelector:V.bool,disableEval:V.bool,disableMultipleRowSelection:V.bool,disableRowSelectionOnClick:V.bool,disableVirtualization:V.bool,editMode:V.oneOf(["cell","row"]),estimatedRowCount:V.number,experimentalFeatures:V.shape({warnIfFocusStateIsNotSynced:V.bool}),filterDebounceMs:V.number,filterMode:V.oneOf(["client","server"]),filterModel:V.shape({items:V.arrayOf(V.shape({field:V.string.isRequired,id:V.oneOfType([V.number,V.string]),operator:V.string.isRequired,value:V.any})).isRequired,logicOperator:V.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:V.bool,quickFilterLogicOperator:V.oneOf(["and","or"]),quickFilterValues:V.array}),forwardedProps:V.object,getCellClassName:V.func,getDetailPanelContent:V.func,getEstimatedRowHeight:V.func,getRowClassName:V.func,getRowHeight:V.func,getRowId:V.func,getRowSpacing:V.func,hideFooter:V.bool,hideFooterPagination:V.bool,hideFooterSelectedRowCount:V.bool,ignoreDiacritics:V.bool,ignoreValueFormatterDuringExport:V.oneOfType([V.shape({clipboardExport:V.bool,csvExport:V.bool}),V.bool]),indeterminateCheckboxAction:V.oneOf(["deselect","select"]),initialState:V.object,isCellEditable:V.func,isRowSelectable:V.func,keepNonExistentRowsSelected:V.bool,loading:V.bool,localeText:V.object,logger:V.shape({debug:V.func.isRequired,error:V.func.isRequired,info:V.func.isRequired,warn:V.func.isRequired}),logLevel:V.oneOf(["debug","error","info","warn",!1]),nonce:V.string,onCellClick:V.func,onCellDoubleClick:V.func,onCellEditStart:V.func,onCellEditStop:V.func,onCellKeyDown:V.func,onCellModesModelChange:V.func,onClipboardCopy:V.func,onColumnHeaderClick:V.func,onColumnHeaderContextMenu:V.func,onColumnHeaderDoubleClick:V.func,onColumnHeaderEnter:V.func,onColumnHeaderLeave:V.func,onColumnHeaderOut:V.func,onColumnHeaderOver:V.func,onColumnOrderChange:V.func,onColumnResize:V.func,onColumnVisibilityModelChange:V.func,onColumnWidthChange:V.func,onDensityChange:V.func,onFilterModelChange:V.func,onMenuClose:V.func,onMenuOpen:V.func,onPaginationMetaChange:V.func,onPaginationModelChange:V.func,onPreferencePanelClose:V.func,onPreferencePanelOpen:V.func,onProcessRowUpdateError:V.func,onResize:V.func,onRowClick:V.func,onRowCountChange:V.func,onRowDoubleClick:V.func,onRowEditStart:V.func,onRowEditStop:V.func,onRowModesModelChange:V.func,onRowSelectionModelChange:V.func,onSortModelChange:V.func,onStateChange:V.func,pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.shape({label:V.string.isRequired,value:V.number.isRequired})]).isRequired),pagination:V.oneOf([!0]),paginationMeta:V.shape({hasNextPage:V.bool}),paginationMode:V.oneOf(["client","server"]),paginationModel:V.shape({page:V.number.isRequired,pageSize:V.number.isRequired}),processRowUpdate:V.func,resizeThrottleMs:V.number,rowBufferPx:V.number,rowCount:V.number,rowHeight:V.number,rowModesModel:V.object,rowPositionsDebounceMs:V.number,rows:V.arrayOf(V.object),rowSelection:V.bool,rowSelectionModel:V.oneOfType([V.arrayOf(V.oneOfType([V.number,V.string]).isRequired),V.number,V.string]),rowSpacingType:V.oneOf(["border","margin"]),scrollbarSize:V.number,showCellVerticalBorder:V.bool,showColumnVerticalBorder:V.bool,slotProps:V.object,slots:V.object,sortingMode:V.oneOf(["client","server"]),sortingOrder:V.arrayOf(V.oneOf(["asc","desc"])),sortModel:V.arrayOf(V.shape({field:V.string.isRequired,sort:V.oneOf(["asc","desc"])})),sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),unstable_rowSpanning:V.bool};const npe=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function rpe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function ope(){return p.jsx(Eu,{children:p.jsx(rpe,{})})}const yI=new Date().toISOString().slice(0,10),spe=new Date,vI=new Date(spe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),ipe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=gu(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=mu(d=>d.userAppointmentDataList.userData);return h.useEffect(()=>{n&&o(Yh({page:1,appointment_day_after:yI,appointment_day_before:vI,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,yI,vI,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const g=Yt(f.appointment_day);return g.isAfter(s)&&g.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Appointment"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(To,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(Tu,{rows:e,columns:npe,slots:{toolbar:ope},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})};function yt(e){return function(){return e}}const lA=Math.cos,ag=Math.sin,ns=Math.sqrt,xI=1e-12,lg=Math.PI,Ba=2*lg,eb=Math.PI,tb=2*eb,ka=1e-6,ape=tb-ka;function cA(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cA;const n=10**t;return function(r){this._+=r[0];for(let o=1,s=r.length;oka)if(!(Math.abs(d*l-c*u)>ka)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-i,m=o-a,y=l*l+c*c,v=g*g+m*m,x=Math.sqrt(y),w=Math.sqrt(f),b=s*Math.tan((eb-Math.acos((y+f-v)/(2*x*w)))/2),C=b/w,k=b/x;Math.abs(C-1)>ka&&this._append`L${t+C*u},${n+C*d}`,this._append`A${s},${s},0,0,${+(d*g>u*m)},${this._x1=t+k*l},${this._y1=n+k*c}`}}arc(t,n,r,o,s,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),c=t+a,u=n+l,d=1^i,f=i?o-s:s-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ka||Math.abs(this._y1-u)>ka)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%tb+tb),f>ape?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ka&&this._append`A${r},${r},0,${+(f>=eb)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 WC(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 cpe(t)}function cy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function uA(e){this._context=e}uA.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 GC(e){return new uA(e)}function dA(e){return e[0]}function fA(e){return e[1]}function pA(e,t){var n=yt(!0),r=null,o=GC,s=null,i=WC(a);e=typeof e=="function"?e:e===void 0?dA:yt(e),t=typeof t=="function"?t:t===void 0?fA:yt(t);function a(l){var c,u=(l=cy(l)).length,d,f=!1,g;for(r==null&&(s=o(g=i())),c=0;c<=u;++c)!(c=g;--m)a.point(b[m],C[m]);a.lineEnd(),a.areaEnd()}x&&(b[f]=+e(v,f,d),C[f]=+t(v,f,d),a.point(r?+r(v,f,d):b[f],n?+n(v,f,d):C[f]))}if(w)return a=null,w+""||null}function u(){return pA().defined(o).curve(i).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:yt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:yt(+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:yt(!!d),c):o},c.curve=function(d){return arguments.length?(i=d,s!=null&&(a=i(s)),c):i},c.context=function(d){return arguments.length?(d==null?s=a=null:a=i(s=d),c):s},c}function dpe(e,t){return te?1:t>=e?0:NaN}function fpe(e){return e}function ppe(){var e=fpe,t=dpe,n=null,r=yt(0),o=yt(Ba),s=yt(0);function i(a){var l,c=(a=cy(a)).length,u,d,f=0,g=new Array(c),m=new Array(c),y=+r.apply(this,arguments),v=Math.min(Ba,Math.max(-Ba,o.apply(this,arguments)-y)),x,w=Math.min(Math.abs(v)/c,s.apply(this,arguments)),b=w*(v<0?-1:1),C;for(l=0;l0&&(f+=C);for(t!=null?g.sort(function(k,M){return t(m[k],m[M])}):n!=null&&g.sort(function(k,M){return n(a[k],a[M])}),l=0,d=f?(v-c*b)/f:0;l0?C*d:0)+b,m[u]={data:a[u],index:l,value:C,startAngle:y,endAngle:x,padAngle:w};return m}return i.value=function(a){return arguments.length?(e=typeof a=="function"?a:yt(+a),i):e},i.sortValues=function(a){return arguments.length?(t=a,n=null,i):t},i.sort=function(a){return arguments.length?(n=a,t=null,i):n},i.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:yt(+a),i):r},i.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:yt(+a),i):o},i.padAngle=function(a){return arguments.length?(s=typeof a=="function"?a:yt(+a),i):s},i}const hA={draw(e,t){const n=ns(t/lg);e.moveTo(n,0),e.arc(0,0,n,0,Ba)}},hpe={draw(e,t){const n=ns(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()}},mA=ns(1/3),mpe=mA*2,gpe={draw(e,t){const n=ns(t/mpe),r=n*mA;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ype={draw(e,t){const n=ns(t),r=-n/2;e.rect(r,r,n,n)}},vpe=.8908130915292852,gA=ag(lg/10)/ag(7*lg/10),xpe=ag(Ba/10)*gA,bpe=-lA(Ba/10)*gA,wpe={draw(e,t){const n=ns(t*vpe),r=xpe*n,o=bpe*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const i=Ba*s/5,a=lA(i),l=ag(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}},B1=ns(3),Cpe={draw(e,t){const n=-ns(t/(B1*3));e.moveTo(0,n*2),e.lineTo(-B1*n,-n),e.lineTo(B1*n,-n),e.closePath()}},no=-.5,ro=ns(3)/2,nb=1/ns(12),Spe=(nb/2+1)*3,kpe={draw(e,t){const n=ns(t/Spe),r=n/2,o=n*nb,s=r,i=n*nb+n,a=-s,l=i;e.moveTo(r,o),e.lineTo(s,i),e.lineTo(a,l),e.lineTo(no*r-ro*o,ro*r+no*o),e.lineTo(no*s-ro*i,ro*s+no*i),e.lineTo(no*a-ro*l,ro*a+no*l),e.lineTo(no*r+ro*o,no*o-ro*r),e.lineTo(no*s+ro*i,no*i-ro*s),e.lineTo(no*a+ro*l,no*l-ro*a),e.closePath()}},Ppe=[hA,hpe,gpe,ype,wpe,Cpe,kpe];function Mpe(e,t){let n=null,r=WC(o);e=typeof e=="function"?e:yt(e||hA),t=typeof t=="function"?t:yt(t===void 0?64:+t);function o(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:yt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:yt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function bI(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function KC(e,t){this._context=e,this._k=(1-t)/6}KC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bI(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bI(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new KC(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Ipe(e,t,n){var r=e._x1,o=e._y1,s=e._x2,i=e._y2;if(e._l01_a>xI){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>xI){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,i=(i*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,s,i,e._x2,e._y2)}function yA(e,t){this._context=e,this._alpha=t}yA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Ipe(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Epe=function e(t){function n(r){return t?new yA(r,t):new KC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function wI(e){return e<0?-1:1}function CI(e,t,n){var r=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),a=(s*o+i*r)/(r+o);return(wI(s)+wI(i))*Math.min(Math.abs(s),Math.abs(i),.5*Math.abs(a))||0}function SI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function H1(e,t,n){var r=e._x0,o=e._y0,s=e._x1,i=e._y1,a=(s-r)/3;e._context.bezierCurveTo(r+a,o+a*t,s-a,i-a*n,s,i)}function cg(e){this._context=e}cg.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:H1(this,this._t0,SI(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,H1(this,SI(this,n=CI(this,e,t)),n);break;default:H1(this,this._t0,n=CI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function vA(e){this._context=new xA(e)}(vA.prototype=Object.create(cg.prototype)).point=function(e,t){cg.prototype.point.call(this,t,e)};function xA(e){this._context=e}xA.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,s){this._context.bezierCurveTo(t,e,r,n,s,o)}};function kI(e){return new cg(e)}function Tpe(e){return new vA(e)}function bA(e){this._context=e}bA.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=PI(e),o=PI(t),s=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t=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 Dpe(e){return new uy(e,.5)}function $pe(e){return new uy(e,0)}function Ape(e){return new uy(e,1)}function Jc(e,t){if((i=e.length)>1)for(var n=1,r,o,s=e[t[0]],i,a=s.length;n=0;)n[t]=t;return n}function Ope(e,t){return e[t]}function jpe(e){const t=[];return t.key=e,t}function wA(){var e=yt([]),t=eu,n=Jc,r=Ope;function o(s){var i=Array.from(e.apply(this,arguments),jpe),a,l=i.length,c=-1,u;for(const d of s)for(a=0,++c;a0){for(var n,r,o=0,s=e[0].length,i;o0)for(var n,r=0,o,s,i,a,l,c=e[t[0]].length;r0?(o[0]=i,o[1]=i+=s):s<0?(o[1]=a,o[0]=a+=s):(o[0]=0,o[1]=s)}function _pe(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,s=r.length;n0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,s,i;rs&&(s=o,n=t);return n}function SA(e){var t=e.map(kA);return eu(e).sort(function(n,r){return t[n]-t[r]})}function kA(e){for(var t=0,n=-1,r=e.length,o;++nt?1:e>=t?0:NaN}function Upe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function YC(e){let t,n,r;e.length!==2?(t=om,n=(a,l)=>om(e(a),l),r=(a,l)=>e(a)-l):(t=e===om||e===Upe?e:Wpe,n=e,r=e);function o(a,l,c=0,u=a.length){if(c>>1;n(a[d],l)<0?c=d+1:u=d}while(c>>1;n(a[d],l)<=0?c=d+1:u=d}while(cc&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:i,right:s}}function Wpe(){return 0}function Gpe(e){return e===null?NaN:+e}const Kpe=YC(om),PA=Kpe.right;YC(Gpe).center;class MI extends Map{constructor(t,n=Xpe){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(II(this,t))}has(t){return super.has(II(this,t))}set(t,n){return super.set(Ype(this,t),n)}delete(t){return super.delete(qpe(this,t))}}function II({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ype({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qpe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Xpe(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Qpe=Math.sqrt(50),Zpe=Math.sqrt(10),Jpe=Math.sqrt(2);function ug(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),s=r/Math.pow(10,o),i=s>=Qpe?10:s>=Zpe?5:s>=Jpe?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/i,a=Math.round(e*c),l=Math.round(t*c),a/ct&&--l,c=-c):(c=Math.pow(10,o)*i,a=Math.round(e/c),l=Math.round(t/c),a*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=s-o+1,l=new Array(a);if(r)if(i<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?vh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?vh(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=ohe.exec(e))?new yr(t[1],t[2],t[3],1):(t=she.exec(e))?new yr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ihe.exec(e))?vh(t[1],t[2],t[3],t[4]):(t=ahe.exec(e))?vh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lhe.exec(e))?jI(t[1],t[2]/100,t[3]/100,1):(t=che.exec(e))?jI(t[1],t[2]/100,t[3]/100,t[4]):TI.hasOwnProperty(e)?$I(TI[e]):e==="transparent"?new yr(NaN,NaN,NaN,0):null}function $I(e){return new yr(e>>16&255,e>>8&255,e&255,1)}function vh(e,t,n,r){return r<=0&&(e=t=n=NaN),new yr(e,t,n,r)}function fhe(e){return e instanceof yp||(e=ea(e)),e?(e=e.rgb(),new yr(e.r,e.g,e.b,e.opacity)):new yr}function ib(e,t,n,r){return arguments.length===1?fhe(e):new yr(e,t,n,r??1)}function yr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}XC(yr,ib,IA(yp,{brighter(e){return e=e==null?fg:Math.pow(fg,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tf:Math.pow(Tf,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yr(Ha(this.r),Ha(this.g),Ha(this.b),pg(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:AI,formatHex:AI,formatHex8:phe,formatRgb:OI,toString:OI}));function AI(){return`#${Da(this.r)}${Da(this.g)}${Da(this.b)}`}function phe(){return`#${Da(this.r)}${Da(this.g)}${Da(this.b)}${Da((isNaN(this.opacity)?1:this.opacity)*255)}`}function OI(){const e=pg(this.opacity);return`${e===1?"rgb(":"rgba("}${Ha(this.r)}, ${Ha(this.g)}, ${Ha(this.b)}${e===1?")":`, ${e})`}`}function pg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ha(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Da(e){return e=Ha(e),(e<16?"0":"")+e.toString(16)}function jI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wo(e,t,n,r)}function EA(e){if(e instanceof Wo)return new Wo(e.h,e.s,e.l,e.opacity);if(e instanceof yp||(e=ea(e)),!e)return new Wo;if(e instanceof Wo)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=NaN,a=s-o,l=(s+o)/2;return a?(t===s?i=(n-r)/a+(n0&&l<1?0:i,new Wo(i,a,l,e.opacity)}function hhe(e,t,n,r){return arguments.length===1?EA(e):new Wo(e,t,n,r??1)}function Wo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}XC(Wo,hhe,IA(yp,{brighter(e){return e=e==null?fg:Math.pow(fg,e),new Wo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tf:Math.pow(Tf,e),new Wo(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 yr(V1(e>=240?e-240:e+120,o,r),V1(e,o,r),V1(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Wo(FI(this.h),xh(this.s),xh(this.l),pg(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=pg(this.opacity);return`${e===1?"hsl(":"hsla("}${FI(this.h)}, ${xh(this.s)*100}%, ${xh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function FI(e){return e=(e||0)%360,e<0?e+360:e}function xh(e){return Math.max(0,Math.min(1,e||0))}function V1(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 QC=e=>()=>e;function mhe(e,t){return function(n){return e+n*t}}function ghe(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 yhe(e){return(e=+e)==1?TA:function(t,n){return n-t?ghe(t,n,e):QC(isNaN(t)?n:t)}}function TA(e,t){var n=t-e;return n?mhe(e,n):QC(isNaN(e)?t:e)}const LI=function e(t){var n=yhe(t);function r(o,s){var i=n((o=ib(o)).r,(s=ib(s)).r),a=n(o.g,s.g),l=n(o.b,s.b),c=TA(o.opacity,s.opacity);return function(u){return o.r=i(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function vhe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(s){for(o=0;on&&(s=t.slice(n,s),a[i]?a[i]+=s:a[++i]=s),(r=r[0])===(o=o[0])?a[i]?a[i]+=o:a[++i]=o:(a[++i]=null,l.push({i,x:Df(r,o)})),n=U1.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ihe(e,t,n){var r=e[0],o=e[1],s=t[0],i=t[1];return o2?Ehe:Ihe,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?s:(l||(l=a(e.map(r),t,n)))(r(i(f)))}return d.invert=function(f){return i(o((c||(c=a(t,e.map(r),Df)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Phe),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=$A,u()},d.clamp=function(f){return arguments.length?(i=f?!0:vo,u()):i!==vo},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,g){return r=f,o=g,u()}}function AA(){return ZC()(vo,vo)}function The(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hg(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 tu(e){return e=hg(Math.abs(e)),e?e[1]:NaN}function Rhe(e,t){return function(n,r){for(var o=n.length,s=[],i=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),s.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[i=(i+1)%e.length];return s.reverse().join(t)}}function Dhe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var $he=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $f(e){if(!(t=$he.exec(e)))throw new Error("invalid format: "+e);var t;return new JC({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]})}$f.prototype=JC.prototype;function JC(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+""}JC.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 Ahe(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var OA;function Ohe(e,t){var n=hg(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(OA=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return s===i?r:s>i?r+new Array(s-i+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+hg(e,Math.max(0,t+s-1))[0]}function NI(e,t){var n=hg(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 zI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:The,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)=>NI(e*100,t),r:NI,s:Ohe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function BI(e){return e}var HI=Array.prototype.map,VI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jhe(e){var t=e.grouping===void 0||e.thousands===void 0?BI:Rhe(HI.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+"",s=e.numerals===void 0?BI:Dhe(HI.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=$f(d);var f=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,x=d.width,w=d.comma,b=d.precision,C=d.trim,k=d.type;k==="n"?(w=!0,k="g"):zI[k]||(b===void 0&&(b=12),C=!0,k="g"),(v||f==="0"&&g==="=")&&(v=!0,f="0",g="=");var M=y==="$"?n:y==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",T=y==="$"?r:/[%p]/.test(k)?i:"",I=zI[k],D=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(R){var j=M,F=T,A,$,E;if(k==="c")F=I(R)+F,R="";else{R=+R;var L=R<0||1/R<0;if(R=isNaN(R)?l:I(Math.abs(R),b),C&&(R=Ahe(R)),L&&+R==0&&m!=="+"&&(L=!1),j=(L?m==="("?m:a:m==="-"||m==="("?"":m)+j,F=(k==="s"?VI[8+OA/3]:"")+F+(L&&m==="("?")":""),D){for(A=-1,$=R.length;++A<$;)if(E=R.charCodeAt(A),48>E||E>57){F=(E===46?o+R.slice(A+1):R.slice(A))+F,R=R.slice(0,A);break}}}w&&!v&&(R=t(R,1/0));var O=j.length+R.length+F.length,_=O>1)+j+R+F+_.slice(O);break;default:R=_+j+R+F;break}return s(R)}return S.toString=function(){return d+""},S}function u(d,f){var g=c((d=$f(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(tu(f)/3)))*3,y=Math.pow(10,-m),v=VI[8+m/3];return function(x){return g(y*x)+v}}return{format:c,formatPrefix:u}}var bh,eS,jA;Fhe({thousands:",",grouping:[3],currency:["$",""]});function Fhe(e){return bh=jhe(e),eS=bh.format,jA=bh.formatPrefix,bh}function Lhe(e){return Math.max(0,-tu(Math.abs(e)))}function _he(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tu(t)/3)))*3-tu(Math.abs(e)))}function Nhe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tu(t)-tu(e))+1}function zhe(e,t,n,r){var o=sb(e,t,n),s;switch(r=$f(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=_he(o,i))&&(r.precision=s),jA(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Nhe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Lhe(o))&&(r.precision=s-(r.type==="%")*2);break}}return eS(r)}function tS(e){var t=e.domain;return e.ticks=function(n){var r=t();return rb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return zhe(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,s=r.length-1,i=r[o],a=r[s],l,c,u=10;for(a0;){if(c=ob(i,a,n),c===l)return r[o]=i,r[s]=a,t(r);if(c>0)i=Math.floor(i/c)*c,a=Math.ceil(a/c)*c;else if(c<0)i=Math.ceil(i*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function FA(){var e=AA();return e.copy=function(){return fy(e,FA())},fa.apply(e,arguments),tS(e)}function LA(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],s=e[r],i;return sMath.pow(e,t)}function Whe(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 GI(e){return(t,n)=>-e(-t,n)}function Ghe(e){const t=e(UI,WI),n=t.domain;let r=10,o,s;function i(){return o=Whe(r),s=Uhe(r),n()[0]<0?(o=GI(o),s=GI(s),e(Bhe,Hhe)):e(UI,WI),t}return t.base=function(a){return arguments.length?(r=+a,i()):r},t.domain=function(a){return arguments.length?(n(a),i()):n()},t.ticks=a=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=g;++f)for(m=1;mu)break;x.push(y)}}else for(;f<=g;++f)for(m=r-1;m>=1;--m)if(y=f>0?m/s(-f):m*s(f),!(yu)break;x.push(y)}x.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=$f(l)).precision==null&&(l.trim=!0),l=eS(l)),a===1/0)return l;const c=Math.max(1,r*a/t.ticks().length);return u=>{let d=u/s(Math.round(o(u)));return d*rn(LA(n(),{floor:a=>s(Math.floor(o(a))),ceil:a=>s(Math.ceil(o(a)))})),t}function _A(){const e=Ghe(ZC()).domain([1,10]);return e.copy=()=>fy(e,_A()).base(e.base()),fa.apply(e,arguments),e}function KI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Khe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Yhe(e){return e<0?-e*e:e*e}function qhe(e){var t=e(vo,vo),n=1;function r(){return n===1?e(vo,vo):n===.5?e(Khe,Yhe):e(KI(n),KI(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},tS(t)}function nS(){var e=qhe(ZC());return e.copy=function(){return fy(e,nS()).exponent(e.exponent())},fa.apply(e,arguments),e}function Xhe(){return nS.apply(null,arguments).exponent(.5)}function NA(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[PA(e,s,0,r)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var i=t.indexOf(s);return[e[i-1],e[i]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return NA().domain(e).range(t).unknown(n)},fa.apply(o,arguments)}const W1=new Date,G1=new Date;function kn(e,t,n,r){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const i=o(s),a=o.ceil(s);return s-i(t(s=new Date(+s),i==null?1:Math.floor(i)),s),o.range=(s,i,a)=>{const l=[];if(s=o.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let c;do l.push(c=new Date(+s)),t(s,a),e(s);while(ckn(i=>{if(i>=i)for(;e(i),!s(i);)i.setTime(i-1)},(i,a)=>{if(i>=i)if(a<0)for(;++a<=0;)for(;t(i,-1),!s(i););else for(;--a>=0;)for(;t(i,1),!s(i););}),n&&(o.count=(s,i)=>(W1.setTime(+s),G1.setTime(+i),e(W1),e(G1),Math.floor(n(W1,G1))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(r?i=>r(i)%s===0:i=>o.count(0,i)%s===0):o)),o}const mg=kn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):mg);mg.range;const Hs=1e3,xo=Hs*60,Vs=xo*60,oi=Vs*24,rS=oi*7,YI=oi*30,K1=oi*365,$a=kn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Hs)},(e,t)=>(t-e)/Hs,e=>e.getUTCSeconds());$a.range;const oS=kn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hs)},(e,t)=>{e.setTime(+e+t*xo)},(e,t)=>(t-e)/xo,e=>e.getMinutes());oS.range;const sS=kn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xo)},(e,t)=>(t-e)/xo,e=>e.getUTCMinutes());sS.range;const iS=kn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hs-e.getMinutes()*xo)},(e,t)=>{e.setTime(+e+t*Vs)},(e,t)=>(t-e)/Vs,e=>e.getHours());iS.range;const aS=kn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vs)},(e,t)=>(t-e)/Vs,e=>e.getUTCHours());aS.range;const vp=kn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xo)/oi,e=>e.getDate()-1);vp.range;const py=kn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>e.getUTCDate()-1);py.range;const zA=kn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>Math.floor(e/oi));zA.range;function yl(e){return kn(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())*xo)/rS)}const hy=yl(0),gg=yl(1),Qhe=yl(2),Zhe=yl(3),nu=yl(4),Jhe=yl(5),eme=yl(6);hy.range;gg.range;Qhe.range;Zhe.range;nu.range;Jhe.range;eme.range;function vl(e){return kn(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)/rS)}const my=vl(0),yg=vl(1),tme=vl(2),nme=vl(3),ru=vl(4),rme=vl(5),ome=vl(6);my.range;yg.range;tme.range;nme.range;ru.range;rme.range;ome.range;const lS=kn(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());lS.range;const cS=kn(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());cS.range;const si=kn(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());si.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kn(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)});si.range;const ii=kn(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());ii.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kn(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)});ii.range;function BA(e,t,n,r,o,s){const i=[[$a,1,Hs],[$a,5,5*Hs],[$a,15,15*Hs],[$a,30,30*Hs],[s,1,xo],[s,5,5*xo],[s,15,15*xo],[s,30,30*xo],[o,1,Vs],[o,3,3*Vs],[o,6,6*Vs],[o,12,12*Vs],[r,1,oi],[r,2,2*oi],[n,1,rS],[t,1,YI],[t,3,3*YI],[e,1,K1]];function a(c,u,d){const f=uv).right(i,f);if(g===i.length)return e.every(sb(c/K1,u/K1,d));if(g===0)return mg.every(Math.max(sb(c,u,d),1));const[m,y]=i[f/i[g-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(ne=q1(od(H.y,0,1)),oe=ne.getUTCDay(),ne=oe>4||oe===0?yg.ceil(ne):yg(ne),ne=py.offset(ne,(H.V-1)*7),H.y=ne.getUTCFullYear(),H.m=ne.getUTCMonth(),H.d=ne.getUTCDate()+(H.w+6)%7):(ne=Y1(od(H.y,0,1)),oe=ne.getDay(),ne=oe>4||oe===0?gg.ceil(ne):gg(ne),ne=vp.offset(ne,(H.V-1)*7),H.y=ne.getFullYear(),H.m=ne.getMonth(),H.d=ne.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),oe="Z"in H?q1(od(H.y,0,1)).getUTCDay():Y1(od(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(oe+5)%7:H.w+H.U*7-(oe+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,q1(H)):Y1(H)}}function I(q,U,ee,H){for(var Z=0,ne=U.length,oe=ee.length,re,de;Z=oe)return-1;if(re=U.charCodeAt(Z++),re===37){if(re=U.charAt(Z++),de=k[re in qI?U.charAt(Z++):re],!de||(H=de(q,ee,H))<0)return-1}else if(re!=ee.charCodeAt(H++))return-1}return H}function D(q,U,ee){var H=c.exec(U.slice(ee));return H?(q.p=u.get(H[0].toLowerCase()),ee+H[0].length):-1}function S(q,U,ee){var H=g.exec(U.slice(ee));return H?(q.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function R(q,U,ee){var H=d.exec(U.slice(ee));return H?(q.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function j(q,U,ee){var H=x.exec(U.slice(ee));return H?(q.m=w.get(H[0].toLowerCase()),ee+H[0].length):-1}function F(q,U,ee){var H=y.exec(U.slice(ee));return H?(q.m=v.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(q,U,ee){return I(q,t,U,ee)}function $(q,U,ee){return I(q,n,U,ee)}function E(q,U,ee){return I(q,r,U,ee)}function L(q){return i[q.getDay()]}function O(q){return s[q.getDay()]}function _(q){return l[q.getMonth()]}function N(q){return a[q.getMonth()]}function z(q){return o[+(q.getHours()>=12)]}function G(q){return 1+~~(q.getMonth()/3)}function J(q){return i[q.getUTCDay()]}function K(q){return s[q.getUTCDay()]}function B(q){return l[q.getUTCMonth()]}function W(q){return a[q.getUTCMonth()]}function te(q){return o[+(q.getUTCHours()>=12)]}function X(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var U=M(q+="",b);return U.toString=function(){return q},U},parse:function(q){var U=T(q+="",!1);return U.toString=function(){return q},U},utcFormat:function(q){var U=M(q+="",C);return U.toString=function(){return q},U},utcParse:function(q){var U=T(q+="",!0);return U.toString=function(){return q},U}}}var qI={"-":"",_:" ",0:"0"},$n=/^\s*\d+/,ume=/^%/,dme=/[\\^$*+?|[\]().{}]/g;function bt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",s=o.length;return r+(s[t.toLowerCase(),n]))}function pme(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hme(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function XI(e,t,n){var r=$n.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function QI(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function vme(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 xme(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function bme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ZI(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wme(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function JI(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Cme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Sme(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kme(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pme(e,t,n){var r=$n.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Mme(e,t,n){var r=ume.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ime(e,t,n){var r=$n.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Eme(e,t,n){var r=$n.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function eE(e,t){return bt(e.getDate(),t,2)}function Tme(e,t){return bt(e.getHours(),t,2)}function Rme(e,t){return bt(e.getHours()%12||12,t,2)}function Dme(e,t){return bt(1+vp.count(si(e),e),t,3)}function HA(e,t){return bt(e.getMilliseconds(),t,3)}function $me(e,t){return HA(e,t)+"000"}function Ame(e,t){return bt(e.getMonth()+1,t,2)}function Ome(e,t){return bt(e.getMinutes(),t,2)}function jme(e,t){return bt(e.getSeconds(),t,2)}function Fme(e){var t=e.getDay();return t===0?7:t}function Lme(e,t){return bt(hy.count(si(e)-1,e),t,2)}function VA(e){var t=e.getDay();return t>=4||t===0?nu(e):nu.ceil(e)}function _me(e,t){return e=VA(e),bt(nu.count(si(e),e)+(si(e).getDay()===4),t,2)}function Nme(e){return e.getDay()}function zme(e,t){return bt(gg.count(si(e)-1,e),t,2)}function Bme(e,t){return bt(e.getFullYear()%100,t,2)}function Hme(e,t){return e=VA(e),bt(e.getFullYear()%100,t,2)}function Vme(e,t){return bt(e.getFullYear()%1e4,t,4)}function Ume(e,t){var n=e.getDay();return e=n>=4||n===0?nu(e):nu.ceil(e),bt(e.getFullYear()%1e4,t,4)}function Wme(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+bt(t/60|0,"0",2)+bt(t%60,"0",2)}function tE(e,t){return bt(e.getUTCDate(),t,2)}function Gme(e,t){return bt(e.getUTCHours(),t,2)}function Kme(e,t){return bt(e.getUTCHours()%12||12,t,2)}function Yme(e,t){return bt(1+py.count(ii(e),e),t,3)}function UA(e,t){return bt(e.getUTCMilliseconds(),t,3)}function qme(e,t){return UA(e,t)+"000"}function Xme(e,t){return bt(e.getUTCMonth()+1,t,2)}function Qme(e,t){return bt(e.getUTCMinutes(),t,2)}function Zme(e,t){return bt(e.getUTCSeconds(),t,2)}function Jme(e){var t=e.getUTCDay();return t===0?7:t}function ege(e,t){return bt(my.count(ii(e)-1,e),t,2)}function WA(e){var t=e.getUTCDay();return t>=4||t===0?ru(e):ru.ceil(e)}function tge(e,t){return e=WA(e),bt(ru.count(ii(e),e)+(ii(e).getUTCDay()===4),t,2)}function nge(e){return e.getUTCDay()}function rge(e,t){return bt(yg.count(ii(e)-1,e),t,2)}function oge(e,t){return bt(e.getUTCFullYear()%100,t,2)}function sge(e,t){return e=WA(e),bt(e.getUTCFullYear()%100,t,2)}function ige(e,t){return bt(e.getUTCFullYear()%1e4,t,4)}function age(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ru(e):ru.ceil(e),bt(e.getUTCFullYear()%1e4,t,4)}function lge(){return"+0000"}function nE(){return"%"}function rE(e){return+e}function oE(e){return Math.floor(+e/1e3)}var _l,GA,KA;cge({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 cge(e){return _l=cme(e),GA=_l.format,_l.parse,KA=_l.utcFormat,_l.utcParse,_l}function uge(e){return new Date(e)}function dge(e){return e instanceof Date?+e:+new Date(+e)}function uS(e,t,n,r,o,s,i,a,l,c){var u=AA(),d=u.invert,f=u.domain,g=c(".%L"),m=c(":%S"),y=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),w=c("%b %d"),b=c("%B"),C=c("%Y");function k(M){return(l(M)n),e.colors).unknown(e.unknownColor??null)}function sm(e){return e.type==="ordinal"?vg(e):yge(e)}function il(e){return e.bandwidth!==void 0}function dS(e){return typeof e=="number"&&!Number.isFinite(e)}function vge(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:s}=e,i=n===void 0?999:Math.floor(Math.abs(s[1]-s[0])/n),a=t===void 0?2:Math.ceil(Math.abs(s[1]-s[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(i,Math.max(a,l))}const X1={start:0,extremities:0,end:1,middle:.5};function gy(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:i="middle"}=e;return h.useMemo(()=>{if(il(t)){const c=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&c.filter(o)||typeof o=="object"&&o||c).map(f=>({value:f,formattedValue:(r==null?void 0:r(f,{location:"tick"}))??`${f}`,offset:t(f)-(t.step()-t.bandwidth())/2+X1[s]*t.step(),labelOffset:i==="tick"?0:t.step()*(X1[i]-X1[s])})),...s==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&c.filter(o)||typeof o=="object"&&o||c).map(d=>({value:d,formattedValue:(r==null?void 0:r(d,{location:"tick"}))??`${d}`,offset:t(d),labelOffset:0}))}return t.domain().some(dS)?[]:(typeof o=="object"?o:t.ticks(n)).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??t.tickFormat(n)(c),offset:t(c),labelOffset:0}))},[t,o,n,r,s,i])}function xge(e,t,n){switch(e){case"log":return _A(t,n);case"pow":return nS(t,n);case"sqrt":return Xhe(t,n);case"time":return YA(t,n);case"utc":return fge(t,n);default:return FA(t,n)}}const Q1=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,s=e[1]+(100-t[1])*n/r;return[o,s]},bge=(e,t,n,r,o,s,i)=>{var g;const a=r[t],l=((g=s[t])==null?void 0:g.series)??{},[c,u]=(a==null?void 0:a({series:l,axis:n,axisIndex:o,isDefaultAxis:o===0,getFilters:i}))??[1/0,-1/0],[d,f]=e;return[Math.min(c,d),Math.max(u,f)]},wge=(e,t,n,r,o)=>{const i=Object.keys(t).reduce((a,l)=>bge(a,l,e,t,n,r,o),[1/0,-1/0]);return Number.isNaN(i[0])||Number.isNaN(i[1])?[1/0,-1/0]:i};function Cge(e,t,n){if(t==="rotation"){const{startAngle:o=0,endAngle:s=o+360}=n;return n.reverse?[Math.PI*o/180,Math.PI*s/180]:[Math.PI*s/180,Math.PI*o/180]}if(t==="radius"){const{minRadius:o=0,maxRadius:s=Math.min(e.width,e.height)/2}=n;return[o,s]}const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}const sE=e=>(e==null?void 0:e[0])instanceof Date;function iE(e,t){const n=YA(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const Sge=.2,kge=.1;function aE({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:r,axisDirection:o,zoomData:s,zoomOptions:i,getFilters:a}){const l={};return n.forEach((c,u)=>{const d=c,f=i==null?void 0:i[d.id],g=s==null?void 0:s.find(({axisId:A})=>A===d.id),m=g?[g.start,g.end]:[0,100],y=Cge(e,o,d),[v,x]=wge(d,r,u,t,g===void 0&&!f?a:void 0),w=d.data??[];if(mge(d)){const A=d.categoryGapRatio??Sge,$=d.barGapRatio??kge,E=o==="y"?[y[1],y[0]]:y,L=Q1(E,m);if(l[d.id]=P({categoryGapRatio:A,barGapRatio:$},d,{data:w,scale:qC(d.data,L).paddingInner(A).paddingOuter(A/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?vg(P({values:d.data},d.colorMap)):sm(d.colorMap))}),sE(d.data)){const O=iE(d,E);l[d.id].valueFormatter=d.valueFormatter??O}}if(gge(d)){const A=o==="y"?[...y].reverse():y,$=Q1(A,m);if(l[d.id]=P({},d,{data:w,scale:nhe(d.data,$),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?vg(P({values:d.data},d.colorMap)):sm(d.colorMap))}),sE(d.data)){const E=iE(d,A);l[d.id].valueFormatter=d.valueFormatter??E}}if(d.scaleType==="band"||d.scaleType==="point")return;const b=d.scaleType??"linear",C=d.domainLimit??"nice",k=[d.min??v,d.max??x];if(typeof C=="function"){const{min:A,max:$}=C(v,x);k[0]=A,k[1]=$}const M=vge(P({},d,{range:y,domain:k})),T=M/((m[1]-m[0])/100),I=Q1(y,m),D=xge(b,k,I),S=C==="nice"?D.nice(M):D,[R,j]=S.domain(),F=[d.min??R,d.max??j];l[d.id]=P({},d,{data:w,scaleType:b,scale:S.domain(F),tickNumber:T,colorScale:d.colorMap&&sm(d.colorMap)})}),{axis:l,axisIds:n.map(({id:c})=>c)}}const yy="DEFAULT_X_AXIS_KEY",Pge="DEFAULT_Y_AXIS_KEY",Mge={top:50,bottom:50,left:50,right:50},Ige=(e,t,n)=>{const r=P({},Mge,n);return h.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},vy=h.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),XA=h.createContext({isInitialized:!1,data:{current:null}});function Ege(e){const{width:t,height:n,margin:r,svgRef:o,children:s}=e,i=Ige(t,n,r),a=mt(),l=h.useCallback(({x:d,y:f},g)=>{if(g!=null&&g.targetElement&&(g!=null&&g.targetElement.closest("[data-drawing-container]")))return!0;const m=d>=i.left-1&&d<=i.left+i.width,y=f>=i.top-1&&f<=i.top+i.height;return(g==null?void 0:g.direction)==="x"?m:((g==null?void 0:g.direction)==="y"||m)&&y},[i]),c=h.useMemo(()=>P({chartId:a??""},i,{isPointInside:l}),[a,i,l]),u=h.useMemo(()=>({isInitialized:!0,data:o}),[o]);return p.jsx(XA.Provider,{value:u,children:p.jsx(vy.Provider,{value:c,children:s})})}function Ir(){const{left:e,top:t,width:n,height:r,bottom:o,right:s,isPointInside:i}=h.useContext(vy);return h.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:s,isPointInside:i}),[r,e,t,n,o,s,i])}const Tge=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function Rge(e,t,n=Tge){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Dge=({series:e,colors:t,seriesFormatters:n,dataset:r})=>{const o={};e.forEach((i,a)=>{var u;const{id:l=`auto-generated-id-${a}`,type:c}=i;if(o[c]===void 0&&(o[c]={series:{},seriesOrder:[]}),((u=o[c])==null?void 0:u.series[l])!==void 0)throw new Error(`MUI X: series' id "${l}" is not unique.`);o[c].series[l]=P({id:l},Rge(i,a,t)),o[c].seriesOrder.push(l)});const s={};return Object.keys(n).forEach(i=>{var l;const a=o[i];a!==void 0&&(s[i]=((l=n[i])==null?void 0:l.call(n,a,r))??o[i])}),s},$ge=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Age=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Oge=e=>e==="dark"?Age:$ge,QA=h.createContext({isInitialized:!1,data:{}}),xp=h.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}}),lE=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},ZA=e=>{var l;const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n==null?void 0:n({currentAxisId:t.id,isDefaultAxis:r}),s=o?(l=t.data)==null?void 0:l.filter((c,u)=>o({x:null,y:null},u)):t.data,i=Math.min(...s??[]),a=Math.max(...s??[]);return[i,a]},JA=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:s}=t;return Object.keys(n).filter(i=>{const a=n[i].yAxisId??n[i].yAxisKey;return a===r.id||s&&a===void 0}).reduce((i,a)=>{const{stackedData:l}=n[a],c=o==null?void 0:o({currentAxisId:r.id,isDefaultAxis:s,seriesXAxisId:n[a].xAxisId??n[a].xAxisKey,seriesYAxisId:n[a].yAxisId??n[a].yAxisKey}),[u,d]=(l==null?void 0:l.reduce((f,g,m)=>c&&(!c(lE(g[0],e),m)||!c(lE(g[1],e),m))?f:[Math.min(...g,f[0]),Math.max(...g,f[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(u,i[0]),Math.max(d,i[1])]},[1/0,-1/0])},jge=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?JA("x")(e):ZA(e),Fge=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?ZA(e):JA("y")(e),Z1={appearance:CA,ascending:SA,descending:Bpe,insideOut:Hpe,none:eu,reverse:Vpe},J1={expand:Fpe,diverging:Lpe,none:Jc,silhouette:_pe,wiggle:Npe},eO=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],s={};return n.forEach(i=>{const{stack:a,stackOrder:l,stackOffset:c}=t[i];a===void 0?o.push({ids:[i],stackingOrder:Z1.none,stackingOffset:J1.none}):s[a]===void 0?(s[a]=o.length,o.push({ids:[i],stackingOrder:Z1[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:J1[c??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[s[a]].ids.push(i),l!==void 0&&(o[s[a]].stackingOrder=Z1[l]),c!==void 0&&(o[s[a]].stackingOffset=J1[c]))}),o};function tO(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const Lge=(e,t)=>{const{seriesOrder:n,series:r}=e,o=eO(e),s=t??[];n.forEach(a=>{const l=r[a].data;if(l!==void 0)l.forEach((c,u)=>{s.length<=u?s.push({[a]:c}):s[u][a]=c});else if(t===void 0)throw new Error([`MUI X: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const i={};return o.forEach(a=>{const{ids:l,stackingOffset:c,stackingOrder:u}=a,d=wA().keys(l.map(f=>{const g=r[f].dataKey;return r[f].data===void 0&&g!==void 0?g:f})).value((f,g)=>f[g]??0).order(u).offset(c)(s);l.forEach((f,g)=>{const m=r[f].dataKey;i[f]=P({layout:"vertical"},r[f],{data:m?t.map(y=>{const v=y[m];return typeof v!="number"?0:v}):r[f].data,stackedData:d[g].map(([y,v])=>[y,v])})})}),{seriesOrder:n,stackingGroups:o,series:tO(i,a=>a==null?"":a.toLocaleString())}},_ge=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,s=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,i=r?t==null?void 0:t.data:n==null?void 0:n.data;return s?a=>{const l=e.data[a],c=l===null?e.color:s(l);return c===null?e.color:c}:o&&i?a=>{const l=i[a],c=l===null?e.color:o(l);return c===null?e.color:c}:()=>e.color},Nge={seriesType:"bar",seriesFormatter:Lge,colorProcessor:_ge,xExtremumGetter:jge,yExtremumGetter:Fge},xg=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],zge=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].xAxisId??t[s].xAxisKey;return i===n.id||i===void 0&&r}).reduce((s,i)=>{var c;const a=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),l=(c=t[i].data)==null?void 0:c.reduce((u,d,f)=>a&&!a(d,f)?u:xg(u,[d.x,d.x]),[1/0,-1/0]);return xg(s,l??[1/0,-1/0])},[1/0,-1/0])},Bge=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].yAxisId??t[s].yAxisKey;return i===n.id||i===void 0&&r}).reduce((s,i)=>{var c;const a=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),l=(c=t[i].data)==null?void 0:c.reduce((u,d,f)=>a&&!a(d,f)?u:xg(u,[d.y,d.y]),[1/0,-1/0]);return xg(s,l??[1/0,-1/0])},[1/0,-1/0])},Hge=({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([o,s])=>{const i=s==null?void 0:s.datasetKeys,a=["x","y","id"].filter(c=>typeof(i==null?void 0:i[c])!="string");if(s!=null&&s.datasetKeys&&a.length>0)throw new Error([`MUI X: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${a.map(c=>`"${c}"`).join(", ")} are missing.`].join(` +`));const l=i?(n==null?void 0:n.map(c=>({x:c[i.x],y:c[i.y],z:i.z&&c[i.z],id:c[i.id]})))??[]:s.data??[];return[o,P({},s,{data:l,valueFormatter:s.valueFormatter??(c=>`(${c.x}, ${c.y})`)})]})),seriesOrder:t}),Vge=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,s=n==null?void 0:n.colorScale,i=t==null?void 0:t.colorScale;return o?a=>{var u,d;if(((u=r==null?void 0:r.data)==null?void 0:u[a])!==void 0){const f=o((d=r==null?void 0:r.data)==null?void 0:d[a]);if(f!==null)return f}const l=e.data[a],c=l===null?e.color:o(l.z);return c===null?e.color:c}:s?a=>{const l=e.data[a],c=l===null?e.color:s(l.y);return c===null?e.color:c}:i?a=>{const l=e.data[a],c=l===null?e.color:i(l.x);return c===null?e.color:c}:()=>e.color},Uge={seriesType:"scatter",seriesFormatter:Hge,colorProcessor:Vge,xExtremumGetter:zge,yExtremumGetter:Bge},Wge=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function Gge(e,t,n){return t.reduce((r,o,s)=>{const[i,a]=e(o);return n&&(!n({y:i,x:null},s)||!n({y:a,x:null},s))?r:[Math.min(i,a,r[0]),Math.max(i,a,r[1])]},[1/0,-1/0])}const Kge=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(s=>{const i=t[s].yAxisId??t[s].yAxisKey;return i===n.id||r&&i===void 0}).reduce((s,i)=>{const{area:a,stackedData:l}=t[i],c=a!==void 0,u=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[i].xAxisId??t[i].xAxisKey,seriesYAxisId:t[i].yAxisId??t[i].yAxisKey}),d=c&&n.scaleType!=="log"&&typeof t[i].baseline!="string"?y=>y:y=>[y[1],y[1]],f=Gge(d,l,u),[g,m]=f;return[Math.min(g,s[0]),Math.max(m,s[1])]},[1/0,-1/0])},Yge=(e,t)=>{const{seriesOrder:n,series:r}=e,o=eO(P({},e,{defaultStrategy:{stackOffset:"none"}})),s=t??[];n.forEach(a=>{const l=r[a].data;l!==void 0&&l.forEach((c,u)=>{s.length<=u?s.push({[a]:c}):s[u][a]=c})});const i={};return o.forEach(a=>{const{ids:l,stackingOrder:c,stackingOffset:u}=a,d=wA().keys(l.map(f=>{const g=r[f].dataKey;return r[f].data===void 0&&g!==void 0?g:f})).value((f,g)=>f[g]??0).order(c).offset(u)(s);l.forEach((f,g)=>{const m=r[f].dataKey;i[f]=P({},r[f],{data:m?t.map(y=>{const v=y[m];return typeof v!="number"?null:v}):r[f].data,stackedData:d[g].map(([y,v])=>[y,v])})})}),{seriesOrder:n,stackingGroups:o,series:tO(i,a=>a==null?"":a.toLocaleString())}},fS=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?s=>{const i=e.data[s],a=i===null?e.color:r(i);return a===null?e.color:a}:o?s=>{var l;const i=(l=t.data)==null?void 0:l[s],a=i===null?e.color:o(i);return a===null?e.color:a}:()=>e.color},qge={seriesType:"line",colorProcessor:fS,seriesFormatter:Yge,xExtremumGetter:Wge,yExtremumGetter:Kge};function qs(e,t){return typeof e=="function"?e(t):e}const Xge=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Qge=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const s=ppe().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(Xge(n[o].sortingValues??"none"))(n[o].data.map(i=>i.value));r[o]=P({valueFormatter:i=>i.value.toLocaleString()},n[o],{data:n[o].data.map((i,a)=>P({},i,{id:i.id??`auto-generated-pie-id-${o}-${a}`},s[a])).map((i,a)=>{var l,c;return P({},i,{formattedValue:((c=(l=n[o]).valueFormatter)==null?void 0:c.call(l,P({},i,{label:qs(i.label,"arc")}),{dataIndex:a}))??i.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Zge=e=>t=>e.data[t].color,Jge={seriesType:"pie",colorProcessor:Zge,seriesFormatter:Qge},e0e=[Nge,Uge,qge,Jge];function t0e(e){const t=e??e0e,n={},r={},o={},s={},i={},a={};for(let l=0;l({isInitialized:!0,data:t0e(n)}),[n]);return p.jsx(xp.Provider,{value:r,children:t})}function nO(e){const{isInitialized:t,data:n}=h.useContext(xp);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.colorProcessors}function r0e(e){const{isInitialized:t,data:n}=h.useContext(xp);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.seriesFormatters}function o0e(e){const{isInitialized:t,data:n}=h.useContext(xp);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.xExtremumGetters}function s0e(e){const{isInitialized:t,data:n}=h.useContext(xp);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.yExtremumGetters}function i0e(e){const{series:t,dataset:n,colors:r=Oge,children:o}=e,s=r0e(),i=Dn(),a=h.useMemo(()=>({isInitialized:!0,data:Dge({series:t,colors:typeof r=="function"?r(i.palette.mode):r,seriesFormatters:s,dataset:n})}),[t,r,i.palette.mode,s,n]);return p.jsx(QA.Provider,{value:a,children:o})}function pa(){const{isInitialized:e,data:t}=h.useContext(QA);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function xy(){const e=pa();return h.useMemo(()=>e.line,[e.line])}const rO=h.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});function a0e(e){const{xAxis:t,yAxis:n,children:r}=e,o=pa(),s=Ir(),i=o0e(),a=s0e(),l=h.useMemo(()=>aE({drawingArea:s,formattedSeries:o,axis:t,extremumGetters:i,axisDirection:"x"}),[s,o,t,i]),c=h.useMemo(()=>aE({drawingArea:s,formattedSeries:o,axis:n,extremumGetters:a,axisDirection:"y"}),[s,o,n,a]),u=h.useMemo(()=>({isInitialized:!0,data:{xAxis:l.axis,yAxis:c.axis,xAxisIds:l.axisIds,yAxisIds:c.axisIds}}),[l,c]);return p.jsx(rO.Provider,{value:u,children:r})}const Er=()=>{const{data:e}=h.useContext(rO);return e},mi=h.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),l0e=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:P({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return P({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:P({},e,{axis:t.data});default:return e}};function c0e(e){const{children:t}=e,[n,r]=h.useReducer(l0e,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=h.useMemo(()=>P({},n,{dispatch:r}),[n]);return p.jsx(mi.Provider,{value:o,children:t})}const oO=h.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}}),u0e=(e,t)=>n=>e?e.fade==="series"?n.seriesId===(t==null?void 0:t.seriesId)&&n.dataIndex!==(t==null?void 0:t.dataIndex):e.fade==="global"?n.seriesId!==(t==null?void 0:t.seriesId)||n.dataIndex!==(t==null?void 0:t.dataIndex):!1:!1,d0e=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===(t==null?void 0:t.seriesId):e.highlight==="item"?n.dataIndex===(t==null?void 0:t.dataIndex)&&n.seriesId===(t==null?void 0:t.seriesId):!1:!1,f0e=["highlighted","faded"],p0e=e=>{const t=e??{},{highlighted:n,faded:r}=t,o=ue(t,f0e);return P({highlight:n,fade:r},o)};function h0e({children:e,highlightedItem:t,onHighlightChange:n}){const[r,o]=Nn({controlled:t,default:null,name:"HighlightedProvider",state:"highlightedItem"}),s=pa(),i=h.useMemo(()=>{const c=new Map;return Object.keys(s).forEach(u=>{const d=s[u];Object.keys((d==null?void 0:d.series)??{}).forEach(f=>{const g=d==null?void 0:d.series[f];c.set(f,p0e(g==null?void 0:g.highlightScope))})}),c},[s]),a=r&&r.seriesId?i.get(r.seriesId)??void 0:void 0,l=h.useMemo(()=>({isInitialized:!0,data:{highlightScope:a,highlightedItem:r,setHighlighted:c=>{o(c),n==null||n(c)},clearHighlighted:()=>{o(null),n==null||n(null)},isHighlighted:d0e(a,r),isFaded:u0e(a,r)}}),[r,a,o,n]);return p.jsx(oO.Provider,{value:l,children:e})}function sO(){const{isInitialized:e,data:t}=h.useContext(oO);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function by(e){const t=sO();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e),r=!n&&t.isFaded(e);return{isHighlighted:n,isFaded:r}}const pS=h.createContext({zAxis:{},zAxisIds:[]});function m0e(e){const{zAxis:t,dataset:n,children:r}=e,o=h.useMemo(()=>t==null?void 0:t.map(i=>{const a=i.dataKey;if(a===void 0||i.data!==void 0)return i;if(n===void 0)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return P({},i,{data:n.map(l=>l[a])})}),[t,n]),s=h.useMemo(()=>{const i=(o==null?void 0:o.map((l,c)=>P({id:`defaultized-z-axis-${c}`},l)))??[],a={};return i.forEach(l=>{a[l.id]=P({},l,{colorScale:l.colorMap&&(l.colorMap.type==="ordinal"&&l.data?vg(P({values:l.data},l.colorMap)):sm(l.colorMap.type==="continuous"?P({min:l.min,max:l.max},l.colorMap):l.colorMap))})}),{zAxis:a,zAxisIds:i.map(({id:l})=>l)}},[o]);return p.jsx(pS.Provider,{value:s,children:r})}const wy=e=>{const{dispatch:t}=h.useContext(mi),{setHighlighted:n,clearHighlighted:r}=sO();return s=>({onPointerEnter:()=>{t({type:"enterItem",data:s}),n({seriesId:s.seriesId,dataIndex:s.dataIndex})},onPointerLeave:c=>{c.currentTarget.releasePointerCapture(c.pointerId),t({type:"leaveItem",data:s}),r()},onPointerDown:c=>{c.currentTarget.hasPointerCapture(c.pointerId)&&c.currentTarget.releasePointerCapture(c.pointerId)}})};var hS=wp(),st=e=>bp(e,hS),mS=wp();st.write=e=>bp(e,mS);var Cy=wp();st.onStart=e=>bp(e,Cy);var gS=wp();st.onFrame=e=>bp(e,gS);var yS=wp();st.onFinish=e=>bp(e,yS);var Rc=[];st.setTimeout=(e,t)=>{const n=st.now()+t,r=()=>{const s=Rc.findIndex(i=>i.cancel==r);~s&&Rc.splice(s,1),Li-=~s?1:0},o={time:n,handler:e,cancel:r};return Rc.splice(iO(n),0,o),Li+=1,aO(),o};var iO=e=>~(~Rc.findIndex(t=>t.time>e)||~Rc.length);st.cancel=e=>{Cy.delete(e),gS.delete(e),yS.delete(e),hS.delete(e),mS.delete(e)};st.sync=e=>{cb=!0,st.batchedUpdates(e),cb=!1};st.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,st.onStart(n)}return r.handler=e,r.cancel=()=>{Cy.delete(n),t=null},r};var vS=typeof window<"u"?window.requestAnimationFrame:()=>{};st.use=e=>vS=e;st.now=typeof performance<"u"?()=>performance.now():Date.now;st.batchedUpdates=e=>e();st.catch=console.error;st.frameLoop="always";st.advance=()=>{st.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):cO()};var Fi=-1,Li=0,cb=!1;function bp(e,t){cb?(t.delete(e),e(0)):(t.add(e),aO())}function aO(){Fi<0&&(Fi=0,st.frameLoop!=="demand"&&vS(lO))}function g0e(){Fi=-1}function lO(){~Fi&&(vS(lO),st.batchedUpdates(cO))}function cO(){const e=Fi;Fi=st.now();const t=iO(Fi);if(t&&(uO(Rc.splice(0,t),n=>n.handler()),Li-=t),!Li){g0e();return}Cy.flush(),hS.flush(e?Math.min(64,Fi-e):16.667),gS.flush(),mS.flush(),yS.flush()}function wp(){let e=new Set,t=e;return{add(n){Li+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Li-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Li-=t.size,uO(t,r=>r(n)&&e.add(r)),Li+=e.size,t=e)}}}function uO(e,t){e.forEach(n=>{try{t(n)}catch(r){st.catch(r)}})}var y0e=Object.defineProperty,v0e=(e,t)=>{for(var n in t)y0e(e,n,{get:t[n],enumerable:!0})},Ro={};v0e(Ro,{assign:()=>b0e,colors:()=>Ki,createStringInterpolator:()=>bS,skipAnimation:()=>fO,to:()=>dO,willAdvance:()=>wS});function ub(){}var x0e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Se={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ls(e,t){if(Se.arr(e)){if(!Se.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Rs(e,t,n){if(Se.arr(e)){for(let r=0;rSe.und(e)?[]:Se.arr(e)?e:[e];function Hd(e,t){if(e.size){const n=Array.from(e);e.clear(),Je(n,t)}}var wd=(e,...t)=>Hd(e,n=>n(...t)),xS=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),bS,dO,Ki=null,fO=!1,wS=ub,b0e=e=>{e.to&&(dO=e.to),e.now&&(st.now=e.now),e.colors!==void 0&&(Ki=e.colors),e.skipAnimation!=null&&(fO=e.skipAnimation),e.createStringInterpolator&&(bS=e.createStringInterpolator),e.requestAnimationFrame&&st.use(e.requestAnimationFrame),e.batchedUpdates&&(st.batchedUpdates=e.batchedUpdates),e.willAdvance&&(wS=e.willAdvance),e.frameLoop&&(st.frameLoop=e.frameLoop)},Vd=new Set,mo=[],ev=[],bg=0,Sy={get idle(){return!Vd.size&&!mo.length},start(e){bg>e.priority?(Vd.add(e),st.onStart(w0e)):(pO(e),st(db))},advance:db,sort(e){if(bg)st.onFrame(()=>Sy.sort(e));else{const t=mo.indexOf(e);~t&&(mo.splice(t,1),hO(e))}},clear(){mo=[],Vd.clear()}};function w0e(){Vd.forEach(pO),Vd.clear(),st(db)}function pO(e){mo.includes(e)||hO(e)}function hO(e){mo.splice(C0e(mo,t=>t.priority>e.priority),0,e)}function db(e){const t=ev;for(let n=0;n0}function C0e(e,t){const n=e.findIndex(t);return n<0?e.length:n}var S0e={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Go="[-+]?\\d*\\.?\\d+",wg=Go+"%";function ky(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var k0e=new RegExp("rgb"+ky(Go,Go,Go)),P0e=new RegExp("rgba"+ky(Go,Go,Go,Go)),M0e=new RegExp("hsl"+ky(Go,wg,wg)),I0e=new RegExp("hsla"+ky(Go,wg,wg,Go)),E0e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,T0e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,R0e=/^#([0-9a-fA-F]{6})$/,D0e=/^#([0-9a-fA-F]{8})$/;function $0e(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=R0e.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ki&&Ki[e]!==void 0?Ki[e]:(t=k0e.exec(e))?(Nl(t[1])<<24|Nl(t[2])<<16|Nl(t[3])<<8|255)>>>0:(t=P0e.exec(e))?(Nl(t[1])<<24|Nl(t[2])<<16|Nl(t[3])<<8|dE(t[4]))>>>0:(t=E0e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=D0e.exec(e))?parseInt(t[1],16)>>>0:(t=T0e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=M0e.exec(e))?(cE(uE(t[1]),wh(t[2]),wh(t[3]))|255)>>>0:(t=I0e.exec(e))?(cE(uE(t[1]),wh(t[2]),wh(t[3]))|dE(t[4]))>>>0:null}function tv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cE(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,s=tv(o,r,e+1/3),i=tv(o,r,e),a=tv(o,r,e-1/3);return Math.round(s*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}function Nl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function uE(e){return(parseFloat(e)%360+360)%360/360}function dE(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function wh(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fE(e){let t=$0e(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${s})`}var Af=(e,t,n)=>{if(Se.fun(e))return e;if(Se.arr(e))return Af({range:e,output:t,extrapolate:n});if(Se.str(e.output[0]))return bS(e);const r=e,o=r.output,s=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=O0e(c,s);return A0e(c,s[u],s[u+1],o[u],o[u+1],l,i,a,r.map)}};function A0e(e,t,n,r,o,s,i,a,l){let c=l?l(e):e;if(cn){if(a==="identity")return c;a==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=s(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function O0e(e,t){for(var n=1;n=e);++n);return n-1}var j0e={linear:e=>e},Of=Symbol.for("FluidValue.get"),ou=Symbol.for("FluidValue.observers"),ho=e=>!!(e&&e[Of]),fr=e=>e&&e[Of]?e[Of]():e,pE=e=>e[ou]||null;function F0e(e,t){e.eventObserved?e.eventObserved(t):e(t)}function jf(e,t){const n=e[ou];n&&n.forEach(r=>{F0e(r,t)})}var mO=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");L0e(this,e)}},L0e=(e,t)=>gO(e,Of,t);function Ru(e,t){if(e[Of]){let n=e[ou];n||gO(e,ou,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ff(e,t){const n=e[ou];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ou]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gO=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),im=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_0e=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hE=new RegExp(`(${im.source})(%|[a-z]+)`,"i"),N0e=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Py=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yO=e=>{const[t,n]=z0e(e);if(!t||xS())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Py.test(n))return yO(n);if(n)return n}return e},z0e=e=>{const t=Py.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},nv,B0e=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,vO=e=>{nv||(nv=Ki?new RegExp(`(${Object.keys(Ki).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>fr(s).replace(Py,yO).replace(_0e,fE).replace(nv,fE)),n=t.map(s=>s.match(im).map(Number)),o=n[0].map((s,i)=>n.map(a=>{if(!(i in a))throw Error('The arity of each "output" value must be equal');return a[i]})).map(s=>Af({...e,output:s}));return s=>{var l;const i=!hE.test(t[0])&&((l=t.find(c=>hE.test(c)))==null?void 0:l.replace(im,""));let a=0;return t[0].replace(im,()=>`${o[a++](s)}${i||""}`).replace(N0e,B0e)}},CS="react-spring: ",xO=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${CS}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},H0e=xO(console.warn);function V0e(){H0e(`${CS}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var U0e=xO(console.warn);function W0e(){U0e(`${CS}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function My(e){return Se.str(e)&&(e[0]=="#"||/\d/.test(e)||!xS()&&Py.test(e)||e in(Ki||{}))}var _i=xS()?h.useEffect:h.useLayoutEffect,G0e=()=>{const e=h.useRef(!1);return _i(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function SS(){const e=h.useState()[1],t=G0e();return()=>{t.current&&e(Math.random())}}function K0e(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),o=r.current;let s=o;return s?t&&s.inputs&&Y0e(t,s.inputs)||(s={inputs:t,result:e()}):s=n,h.useEffect(()=>{r.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Y0e(e,t){if(e.length!==t.length)return!1;for(let n=0;nh.useEffect(e,q0e),q0e=[];function fb(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Lf=Symbol.for("Animated:node"),X0e=e=>!!e&&e[Lf]===e,cs=e=>e&&e[Lf],PS=(e,t)=>x0e(e,Lf,t),Iy=e=>e&&e[Lf]&&e[Lf].getPayload(),bO=class{constructor(){PS(this,this)}getPayload(){return this.payload||[]}},Cp=class extends bO{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Se.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Cp(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Se.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Se.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},_f=class extends Cp{constructor(e){super(0),this._string=null,this._toString=Af({output:[e,e]})}static create(e){return new _f(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Se.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Af({output:[this.getValue(),e]})),this._value=0,super.reset()}},Cg={dependencies:null},Ey=class extends bO{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Rs(this.source,(n,r)=>{X0e(n)?t[r]=n.getValue(e):ho(n)?t[r]=fr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Je(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Rs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Cg.dependencies&&ho(e)&&Cg.dependencies.add(e);const t=Iy(e);t&&Je(t,n=>this.add(n))}},wO=class extends Ey{constructor(e){super(e)}static create(e){return new wO(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Q0e)),!0)}};function Q0e(e){return(My(e)?_f:Cp).create(e)}function pb(e){const t=cs(e);return t?t.constructor:Se.arr(e)?wO:My(e)?_f:Cp}var mE=(e,t)=>{const n=!Se.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,o)=>{const s=h.useRef(null),i=n&&h.useCallback(m=>{s.current=eye(o,m)},[o]),[a,l]=J0e(r,t),c=SS(),u=()=>{const m=s.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&c()},d=new Z0e(u,l),f=h.useRef();_i(()=>(f.current=d,Je(l,m=>Ru(m,d)),()=>{f.current&&(Je(f.current.deps,m=>Ff(m,f.current)),st.cancel(f.current.update))})),h.useEffect(u,[]),kS(()=>()=>{const m=f.current;Je(m.deps,y=>Ff(y,m))});const g=t.getComponentProps(a.getValue());return h.createElement(e,{...g,ref:i})})},Z0e=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&st.write(this.update)}};function J0e(e,t){const n=new Set;return Cg.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ey(e),Cg.dependencies=null,[e,n]}function eye(e,t){return e&&(Se.fun(e)?e(t):e.current=t),t}var gE=Symbol.for("AnimatedComponent"),tye=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Ey(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=i=>{const a=yE(i)||"Anonymous";return Se.str(i)?i=s[i]||(s[i]=mE(i,o)):i=i[gE]||(i[gE]=mE(i,o)),i.displayName=`Animated(${a})`,i};return Rs(e,(i,a)=>{Se.arr(e)&&(a=yE(i)),s[a]=s(i)}),{animated:s}},yE=e=>Se.str(e)?e:e&&Se.str(e.displayName)?e.displayName:Se.fun(e)&&e.name||null;function pr(e,...t){return Se.fun(e)?e(...t):e}var Ud=(e,t)=>e===!0||!!(t&&e&&(Se.fun(e)?e(t):or(e).includes(t))),CO=(e,t)=>Se.obj(e)?t&&e[t]:e,SO=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,nye=e=>e,Ty=(e,t=nye)=>{let n=rye;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const s=t(e[o],o);Se.und(s)||(r[o]=s)}return r},rye=["config","onProps","onStart","onChange","onPause","onResume","onRest"],oye={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function sye(e){const t={};let n=0;if(Rs(e,(r,o)=>{oye[o]||(t[o]=r,n++)}),n)return t}function MS(e){const t=sye(e);if(t){const n={to:t};return Rs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Nf(e){return e=fr(e),Se.arr(e)?e.map(Nf):My(e)?Ro.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function kO(e){for(const t in e)return!0;return!1}function hb(e){return Se.fun(e)||Se.arr(e)&&Se.obj(e[0])}function mb(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function PO(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var iye={default:{tension:170,friction:26}},gb={...iye.default,mass:1,damping:1,easing:j0e.linear,clamp:!1},aye=class{constructor(){this.velocity=0,Object.assign(this,gb)}};function lye(e,t,n){n&&(n={...n},vE(n,t),t={...n,...t}),vE(e,t),Object.assign(e,t);for(const i in gb)e[i]==null&&(e[i]=gb[i]);let{frequency:r,damping:o}=e;const{mass:s}=e;return Se.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*o*s/r),e}function vE(e,t){if(!Se.und(t.decay))e.duration=void 0;else{const n=!Se.und(t.tension)||!Se.und(t.friction);(n||!Se.und(t.frequency)||!Se.und(t.damping)||!Se.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var xE=[],cye=class{constructor(){this.changed=!1,this.values=xE,this.toValues=null,this.fromValues=xE,this.config=new aye,this.immediate=!1}};function MO(e,{key:t,props:n,defaultProps:r,state:o,actions:s}){return new Promise((i,a)=>{let l,c,u=Ud(n.cancel??(r==null?void 0:r.cancel),t);if(u)g();else{Se.und(n.pause)||(o.paused=Ud(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=o.paused||Ud(m,t)),l=pr(n.delay||0,t),m?(o.resumeQueue.add(f),s.pause()):(s.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(c),c.cancel(),l=c.time-st.now()}function f(){l>0&&!Ro.skipAnimation?(o.delayed=!0,c=st.setTimeout(g,l),o.pauseQueue.add(d),o.timeouts.add(c)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{s.start({...n,callId:e,cancel:u},i)}catch(m){a(m)}}})}var IS=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Dc(e.get()):t.every(n=>n.noop)?IO(e.get()):Vo(e.get(),t.every(n=>n.finished)),IO=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Vo=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Dc=e=>({value:e,cancelled:!0,finished:!1});function EO(e,t,n,r){const{callId:o,parentId:s,onRest:i}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Ty(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),g=v=>{const x=o<=(n.cancelId||0)&&Dc(r)||o!==n.asyncId&&Vo(r,!1);if(x)throw v.result=x,d(v),v},m=(v,x)=>{const w=new bE,b=new wE;return(async()=>{if(Ro.skipAnimation)throw zf(n),b.result=Vo(r,!1),d(b),b;g(w);const C=Se.obj(v)?{...v}:{...x,to:v};C.parentId=o,Rs(c,(M,T)=>{Se.und(C[T])&&(C[T]=M)});const k=await r.start(C);return g(w),n.paused&&await new Promise(M=>{n.resumeQueue.add(M)}),k})()};let y;if(Ro.skipAnimation)return zf(n),Vo(r,!1);try{let v;Se.arr(e)?v=(async x=>{for(const w of x)await m(w)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(u),f]),y=Vo(r.get(),!0,!1)}catch(v){if(v instanceof bE)y=v.result;else if(v instanceof wE)y=v.result;else throw v}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return Se.fun(i)&&st.batchedUpdates(()=>{i(y,r,r.item)}),y})()}function zf(e,t){Hd(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var bE=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},wE=class extends Error{constructor(){super("SkipAnimationSignal")}},yb=e=>e instanceof ES,uye=1,ES=class extends mO{constructor(){super(...arguments),this.id=uye++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=cs(this);return e&&e.getValue()}to(...e){return Ro.to(this,e)}interpolate(...e){return V0e(),Ro.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){jf(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Sy.sort(this),jf(this,{type:"priority",parent:this,priority:e})}},al=Symbol.for("SpringPhase"),TO=1,vb=2,xb=4,rv=e=>(e[al]&TO)>0,Ci=e=>(e[al]&vb)>0,ad=e=>(e[al]&xb)>0,CE=(e,t)=>t?e[al]|=vb|TO:e[al]&=~vb,SE=(e,t)=>t?e[al]|=xb:e[al]&=~xb,dye=class extends ES{constructor(e,t){if(super(),this.animation=new cye,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Se.und(e)||!Se.und(t)){const n=Se.obj(e)?{...e}:{...t,from:e};Se.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ci(this)||this._state.asyncTo)||ad(this)}get goal(){return fr(this.animation.to)}get velocity(){const e=cs(this);return e instanceof Cp?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return rv(this)}get isAnimating(){return Ci(this)}get isPaused(){return ad(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:s}=r,i=Iy(r.to);!i&&ho(r.to)&&(o=or(fr(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==_f?1:i?i[u].lastPosition:o[u];let f=r.immediate,g=d;if(!f){if(g=c.lastPosition,s.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const y=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=Se.arr(s.velocity)?s.velocity[u]:s.velocity;let x;const w=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(Se.und(s.duration))if(s.decay){const b=s.decay===!0?.998:s.decay,C=Math.exp(-(1-b)*m);g=y+v/(1-b)*(1-C),f=Math.abs(c.lastPosition-g)<=w,x=v*C}else{x=c.lastVelocity==null?v:c.lastVelocity;const b=s.restVelocity||w/10,C=s.clamp?0:s.bounce,k=!Se.und(C),M=y==d?c.v0>0:yb,!(!T&&(f=Math.abs(d-g)<=w,f)));++R){k&&(I=g==d||g>d==M,I&&(x=-x*C,g=d));const j=-s.tension*1e-6*(g-d),F=-s.friction*.001*x,A=(j+F)/s.mass;x=x+A*D,g=g+x*D}}else{let b=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,c.durationProgress>0&&(c.elapsedTime=s.duration*c.durationProgress,m=c.elapsedTime+=e)),b=(s.progress||0)+m/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),g=y+s.easing(b)*(d-y),x=(g-c.lastPosition)/e,f=b==1}c.lastVelocity=x,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),f=!0)}i&&!i[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(g,s.round)&&(n=!0)});const a=cs(this),l=a.getValue();if(t){const c=fr(r.to);(l!==c||n)&&!s.decay?(a.setValue(c),this._onChange(c)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return st.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ci(this)){const{to:e,config:t}=this.animation;st.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Se.und(e)?(n=this.queue||[],this.queue=[]):n=[Se.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>IS(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),zf(this._state,e&&this._lastCallId),st.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Se.obj(n)?n[t]:n,(n==null||hb(n))&&(n=void 0),r=Se.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return rv(this)||(e.reverse&&([n,r]=[r,n]),r=fr(r),Se.und(r)?cs(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Ty(e,(i,a)=>/^on/.test(a)?CO(i,n):i)),PE(this,e,"onProps"),cd(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return MO(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{ad(this)||(SE(this,!0),wd(s.pauseQueue),cd(this,"onPause",Vo(this,ld(this,this.animation.to)),this))},resume:()=>{ad(this)&&(SE(this,!1),Ci(this)&&this._resume(),wd(s.resumeQueue),cd(this,"onResume",Vo(this,ld(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){const a=RO(e);if(a)return this._update(a,!0)}return i})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Dc(this));const r=!Se.und(e.to),o=!Se.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Dc(this));const{key:s,defaultProps:i,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=e;o&&!r&&(!t.default||Se.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!Ls(d,c);f&&(a.from=d),d=fr(d);const g=!Ls(u,l);g&&this._focus(u);const m=hb(t.to),{config:y}=a,{decay:v,velocity:x}=y;(r||o)&&(y.velocity=0),t.config&&!m&&lye(y,pr(t.config,s),t.config!==i.config?pr(i.config,s):void 0);let w=cs(this);if(!w||Se.und(u))return n(Vo(this,!0));const b=Se.und(t.reset)?o&&!t.default:!Se.und(d)&&Ud(t.reset,s),C=b?d:this.get(),k=Nf(u),M=Se.num(k)||Se.arr(k)||My(k),T=!m&&(!M||Ud(i.immediate||t.immediate,s));if(g){const R=pb(u);if(R!==w.constructor)if(T)w=this._set(k);else throw Error(`Cannot animate between ${w.constructor.name} and ${R.name}, as the "to" prop suggests`)}const I=w.constructor;let D=ho(u),S=!1;if(!D){const R=b||!rv(this)&&f;(g||R)&&(S=Ls(Nf(C),k),D=!S),(!Ls(a.immediate,T)&&!T||!Ls(y.decay,v)||!Ls(y.velocity,x))&&(D=!0)}if(S&&Ci(this)&&(a.changed&&!b?D=!0:D||this._stop(l)),!m&&((D||ho(l))&&(a.values=w.getPayload(),a.toValues=ho(u)?null:I==_f?[1]:or(k)),a.immediate!=T&&(a.immediate=T,!T&&!b&&this._set(l)),D)){const{onRest:R}=a;Je(pye,F=>PE(this,t,F));const j=Vo(this,ld(this,l));wd(this._pendingCalls,j),this._pendingCalls.add(n),a.changed&&st.batchedUpdates(()=>{var F;a.changed=!b,R==null||R(j,this),b?pr(i.onRest,j):(F=a.onStart)==null||F.call(a,j,this)})}b&&this._set(C),m?n(EO(t.to,t,this._state,this)):D?this._start():Ci(this)&&!g?this._pendingCalls.add(n):n(IO(C))}_focus(e){const t=this.animation;e!==t.to&&(pE(this)&&this._detach(),t.to=e,pE(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ho(t)&&(Ru(t,this),yb(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ho(e)&&Ff(e,this)}_set(e,t=!0){const n=fr(e);if(!Se.und(n)){const r=cs(this);if(!r||!Ls(n,r.getValue())){const o=pb(n);!r||r.constructor!=o?PS(this,o.create(n)):r.setValue(n),r&&st.batchedUpdates(()=>{this._onChange(n,t)})}}return cs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,cd(this,"onStart",Vo(this,ld(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pr(this.animation.onChange,e,this)),pr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;cs(this).reset(fr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ci(this)||(CE(this,!0),ad(this)||this._resume())}_resume(){Ro.skipAnimation?this.finish():Sy.start(this)}_stop(e,t){if(Ci(this)){CE(this,!1);const n=this.animation;Je(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jf(this,{type:"idle",parent:this});const r=t?Dc(this.get()):Vo(this.get(),ld(this,e??n.to));wd(this._pendingCalls,r),n.changed&&(n.changed=!1,cd(this,"onRest",r,this))}}};function ld(e,t){const n=Nf(t),r=Nf(e.get());return Ls(r,n)}function RO(e,t=e.loop,n=e.to){const r=pr(t);if(r){const o=r!==!0&&MS(r),s=(o||e).reverse,i=!o||o.reset;return Bf({...e,loop:t,default:!1,pause:void 0,to:!s||hb(n)?n:void 0,from:i?e.from:void 0,reset:i,...o})}}function Bf(e){const{to:t,from:n}=e=MS(e),r=new Set;return Se.obj(t)&&kE(t,r),Se.obj(n)&&kE(n,r),e.keys=r.size?Array.from(r):null,e}function fye(e){const t=Bf(e);return Se.und(t.default)&&(t.default=Ty(t)),t}function kE(e,t){Rs(e,(n,r)=>n!=null&&t.add(r))}var pye=["onStart","onRest","onChange","onPause","onResume"];function PE(e,t,n){e.animation[n]=t[n]!==SO(t,n)?CO(t[n],e.key):void 0}function cd(e,t,...n){var r,o,s,i;(o=(r=e.animation)[t])==null||o.call(r,...n),(i=(s=e.defaultProps)[t])==null||i.call(s,...n)}var hye=["onStart","onChange","onRest"],mye=1,DO=class{constructor(e,t){this.id=mye++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Se.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bf(e)),this}start(e){let{queue:t}=this;return e?t=or(e).map(Bf):this.queue=[],this._flush?this._flush(this,t):(FO(this,t),bb(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Je(or(t),r=>n[r].stop(!!e))}else zf(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Se.und(e))this.start({pause:!0});else{const t=this.springs;Je(or(e),n=>t[n].pause())}return this}resume(e){if(Se.und(e))this.start({pause:!1});else{const t=this.springs;Je(or(e),n=>t[n].resume())}return this}each(e){Rs(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Hd(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,i=o||s&&n.size?this.get():null;o&&t.size&&Hd(t,([a,l])=>{l.value=i,a(l,this,this._item)}),s&&(this._started=!1,Hd(n,([a,l])=>{l.value=i,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;st.onFrame(this._onFrame)}};function bb(e,t){return Promise.all(t.map(n=>$O(e,n))).then(n=>IS(e,n))}async function $O(e,t,n){const{keys:r,to:o,from:s,loop:i,onRest:a,onResolve:l}=t,c=Se.obj(t.default)&&t.default;i&&(t.loop=!1),o===!1&&(t.to=null),s===!1&&(t.from=null);const u=Se.arr(o)||Se.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Je(hye,y=>{const v=t[y];if(Se.fun(v)){const x=e._events[y];t[y]=({finished:w,cancelled:b})=>{const C=x.get(v);C?(w||(C.finished=!1),b&&(C.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:b||!1})},c&&(c[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,wd(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||SO(t,"cancel")===!0;(u||g&&d.asyncId)&&f.push(MO(++e._lastAsyncId,{props:t,state:d,actions:{pause:ub,resume:ub,start(y,v){g?(zf(d,e._lastAsyncId),v(Dc(e))):(y.onRest=a,v(EO(u,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const m=IS(e,await Promise.all(f));if(i&&m.finished&&!(n&&m.noop)){const y=RO(t,i,o);if(y)return FO(e,[y]),$O(e,y,!0)}return l&&st.batchedUpdates(()=>l(m,e,e.item)),m}function wb(e,t){const n={...e.springs};return t&&Je(or(t),r=>{Se.und(r.keys)&&(r=Bf(r)),Se.obj(r.to)||(r={...r,to:void 0}),jO(n,r,o=>OO(o))}),AO(e,n),n}function AO(e,t){Rs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ru(n,e))})}function OO(e,t){const n=new dye;return n.key=e,t&&Ru(n,t),n}function jO(e,t,n){t.keys&&Je(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function FO(e,t){Je(t,n=>{jO(e.springs,n,r=>OO(r,e))})}var Sp=({children:e,...t})=>{const n=h.useContext(Sg),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=K0e(()=>({pause:r,immediate:o}),[r,o]);const{Provider:s}=Sg;return h.createElement(s,{value:t},e)},Sg=gye(Sp,{});Sp.Provider=Sg.Provider;Sp.Consumer=Sg.Consumer;function gye(e,t){return Object.assign(e,h.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var LO=()=>{const e=[],t=function(r){W0e();const o=[];return Je(e,(s,i)=>{if(Se.und(r))o.push(s.start());else{const a=n(r,s,i);a&&o.push(s.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Je(e,r=>r.pause(...arguments)),this},t.resume=function(){return Je(e,r=>r.resume(...arguments)),this},t.set=function(r){Je(e,(o,s)=>{const i=Se.fun(r)?r(s,o):r;i&&o.set(i)})},t.start=function(r){const o=[];return Je(e,(s,i)=>{if(Se.und(r))o.push(s.start());else{const a=this._getProps(r,s,i);a&&o.push(s.start(a))}}),o},t.stop=function(){return Je(e,r=>r.stop(...arguments)),this},t.update=function(r){return Je(e,(o,s)=>o.update(this._getProps(r,o,s))),this};const n=function(r,o,s){return Se.fun(r)?r(s,o):r};return t._getProps=n,t};function yye(e,t,n){const r=Se.fun(t)&&t;r&&!n&&(n=[]);const o=h.useMemo(()=>r||arguments.length==3?LO():void 0,[]),s=h.useRef(0),i=SS(),a=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const b=wb(x,w);return s.current>0&&!a.queue.length&&!Object.keys(b).some(k=>!x.springs[k])?bb(x,w):new Promise(k=>{AO(x,b),a.queue.push(()=>{k(bb(x,w))}),i()})}}),[]),l=h.useRef([...a.ctrls]),c=[],u=fb(e)||0;h.useMemo(()=>{Je(l.current.slice(e,u),x=>{mb(x,o),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,w){for(let b=x;bwb(x,c[w])),g=h.useContext(Sp),m=fb(g),y=g!==m&&kO(g);_i(()=>{s.current++,a.ctrls=l.current;const{queue:x}=a;x.length&&(a.queue=[],Je(x,w=>w())),Je(l.current,(w,b)=>{o==null||o.add(w),y&&w.start({default:g});const C=c[b];C&&(PO(w,C.ref),w.ref?w.queue.push(C):w.start(C))})}),kS(()=>()=>{Je(a.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return o?[v,o]:v}function _O(e,t){const n=Se.fun(e),[[r],o]=yye(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}function TS(e,t,n){const r=Se.fun(t)&&t,{reset:o,sort:s,trail:i=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?LO():void 0,[]),g=or(e),m=[],y=h.useRef(null),v=o?null:y.current;_i(()=>{y.current=m}),kS(()=>(Je(m,A=>{f==null||f.add(A.ctrl),A.ctrl.ref=f}),()=>{Je(y.current,A=>{A.expired&&clearTimeout(A.expirationId),mb(A.ctrl,f),A.ctrl.stop(!0)})}));const x=xye(g,r?r():t,v),w=o&&y.current||[];_i(()=>Je(w,({ctrl:A,item:$,key:E})=>{mb(A,f),pr(c,$,E)}));const b=[];if(v&&Je(v,(A,$)=>{A.expired?(clearTimeout(A.expirationId),w.push(A)):($=b[$]=x.indexOf(A.key),~$&&(m[$]=A))}),Je(g,(A,$)=>{m[$]||(m[$]={key:x[$],item:A,phase:"mount",ctrl:new DO},m[$].ctrl.item=A)}),b.length){let A=-1;const{leave:$}=r?r():t;Je(b,(E,L)=>{const O=v[L];~E?(A=m.indexOf(O),m[A]={...O,item:g[E]}):$&&m.splice(++A,0,O)})}Se.fun(s)&&m.sort((A,$)=>s(A.item,$.item));let C=-i;const k=SS(),M=Ty(t),T=new Map,I=h.useRef(new Map),D=h.useRef(!1);Je(m,(A,$)=>{const E=A.key,L=A.phase,O=r?r():t;let _,N;const z=pr(O.delay||0,E);if(L=="mount")_=O.enter,N="enter";else{const B=x.indexOf(E)<0;if(L!="leave")if(B)_=O.leave,N="leave";else if(_=O.update)N="update";else return;else if(!B)_=O.enter,N="enter";else return}if(_=pr(_,A.item,$),_=Se.obj(_)?MS(_):{to:_},!_.config){const B=d||M.config;_.config=pr(B,A.item,$,N)}C+=i;const G={...M,delay:z+C,ref:u,immediate:O.immediate,reset:!1,..._};if(N=="enter"&&Se.und(G.from)){const B=r?r():t,W=Se.und(B.initial)||v?B.from:B.initial;G.from=pr(W,A.item,$)}const{onResolve:J}=G;G.onResolve=B=>{pr(J,B);const W=y.current,te=W.find(X=>X.key===E);if(te&&!(B.cancelled&&te.phase!="update")&&te.ctrl.idle){const X=W.every(q=>q.ctrl.idle);if(te.phase=="leave"){const q=pr(a,te.item);if(q!==!1){const U=q===!0?0:q;if(te.expired=!0,!X&&U>0){U<=2147483647&&(te.expirationId=setTimeout(k,U));return}}}X&&W.some(q=>q.expired)&&(I.current.delete(te),l&&(D.current=!0),k())}};const K=wb(A.ctrl,G);N==="leave"&&l?I.current.set(A,{phase:N,springs:K,payload:G}):T.set(A,{phase:N,springs:K,payload:G})});const S=h.useContext(Sp),R=fb(S),j=S!==R&&kO(S);_i(()=>{j&&Je(m,A=>{A.ctrl.start({default:S})})},[S]),Je(T,(A,$)=>{if(I.current.size){const E=m.findIndex(L=>L.key===$.key);m.splice(E,1)}}),_i(()=>{Je(I.current.size?I.current:T,({phase:A,payload:$},E)=>{const{ctrl:L}=E;E.phase=A,f==null||f.add(L),j&&A=="enter"&&L.start({default:S}),$&&(PO(L,$.ref),(L.ref||f)&&!D.current?L.update($):(L.start($),D.current&&(D.current=!1)))})},o?void 0:n);const F=A=>h.createElement(h.Fragment,null,m.map(($,E)=>{const{springs:L}=T.get($)||$.ctrl,O=A({...L},$.item,$,E);return O&&O.type?h.createElement(O.type,{...O.props,key:Se.str($.key)||Se.num($.key)?$.key:$.ctrl.id,ref:O.ref}):O}));return f?[F,f]:F}var vye=1;function xye(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(s=>{const i=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!o.has(a));return i?(o.add(i),i.key):vye++})}return Se.und(n)?e:Se.fun(n)?e.map(n):or(n)}var NO=class extends ES{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Af(...t);const n=this._get(),r=pb(n);PS(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Ls(t,n)||(cs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ME(this._active)&&ov(this)}_get(){const e=Se.arr(this.source)?this.source.map(fr):or(fr(this.source));return this.calc(...e)}_start(){this.idle&&!ME(this._active)&&(this.idle=!1,Je(Iy(this),e=>{e.done=!1}),Ro.skipAnimation?(st.batchedUpdates(()=>this.advance()),ov(this)):Sy.start(this))}_attach(){let e=1;Je(or(this.source),t=>{ho(t)&&Ru(t,this),yb(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Je(or(this.source),e=>{ho(e)&&Ff(e,this)}),this._active.clear(),ov(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=or(this.source).reduce((t,n)=>Math.max(t,(yb(n)?n.priority:0)+1),0))}};function bye(e){return e.idle!==!1}function ME(e){return!e.size||Array.from(e).every(bye)}function ov(e){e.idle||(e.idle=!0,Je(Iy(e),t=>{t.done=!0}),jf(e,{type:"idle",parent:e}))}var IE=(e,...t)=>new NO(e,t);Ro.assign({createStringInterpolator:vO,to:(e,t)=>new NO(e,t)});var zO=/^--/;function wye(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!zO.test(e)&&!(Wd.hasOwnProperty(e)&&Wd[e])?t+"px":(""+t).trim()}var EE={};function Cye(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:o,children:s,scrollTop:i,scrollLeft:a,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:EE[f]||(EE[f]=f.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in o)if(o.hasOwnProperty(f)){const g=wye(f,o[f]);zO.test(f)?e.style.setProperty(f,g):e.style[f]=g}d.forEach((f,g)=>{e.setAttribute(f,u[g])}),r!==void 0&&(e.className=r),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),l!==void 0&&e.setAttribute("viewBox",l)}var Wd={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},Sye=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),kye=["Webkit","Ms","Moz","O"];Wd=Object.keys(Wd).reduce((e,t)=>(kye.forEach(n=>e[Sye(n,t)]=e[t]),e),Wd);var Pye=/^(matrix|translate|scale|rotate|skew)/,Mye=/^(translate)/,Iye=/^(rotate|skew)/,sv=(e,t)=>Se.num(e)&&e!==0?e+t:e,am=(e,t)=>Se.arr(e)?e.every(n=>am(n,t)):Se.num(e)?e===t:parseFloat(e)===t,Eye=class extends Ey{constructor({x:e,y:t,z:n,...r}){const o=[],s=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),s.push(i=>[`translate3d(${i.map(a=>sv(a,"px")).join(",")})`,am(i,0)])),Rs(r,(i,a)=>{if(a==="transform")o.push([i||""]),s.push(l=>[l,l===""]);else if(Pye.test(a)){if(delete r[a],Se.und(i))return;const l=Mye.test(a)?"px":Iye.test(a)?"deg":"";o.push(or(i)),s.push(a==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${sv(f,l)})`,am(f,0)]:c=>[`${a}(${c.map(u=>sv(u,l)).join(",")})`,am(c,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Tye(o,s)),super(r)}},Tye=class extends mO{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Je(this.inputs,(n,r)=>{const o=fr(n[0]),[s,i]=this.transforms[r](Se.arr(o)?o:n.map(fr));e+=" "+s,t=t&&i}),t?"none":e}observerAdded(e){e==1&&Je(this.inputs,t=>Je(t,n=>ho(n)&&Ru(n,this)))}observerRemoved(e){e==0&&Je(this.inputs,t=>Je(t,n=>ho(n)&&Ff(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),jf(this,e)}},Rye=["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","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"];Ro.assign({batchedUpdates:Yf.unstable_batchedUpdates,createStringInterpolator:vO,colors:S0e});var Dye=tye(Rye,{applyAnimatedValues:Cye,createAnimatedStyle:e=>new Eye(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),kp=Dye.animated;function $ye(e){const t=h.useRef({currentPath:e,previousPath:void 0});return t.current.currentPath!==e&&(t.current={currentPath:e,previousPath:t.current.currentPath}),t.current}const BO=e=>{const t=$ye(e);return h.useMemo(()=>t.previousPath?DA(t.previousPath,t.currentPath):()=>t.currentPath,[t.currentPath,t.previousPath])};function HO(e){return e.replace(" ","_")}function VO(){const{chartId:e}=h.useContext(vy);return h.useMemo(()=>e,[e])}function su(e){return il(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function RS(){const{isInitialized:e,data:t}=h.useContext(XA);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function UO(e){const t=Ir(),n=VO(),r=TS([t],{from:s=>({animatedWidth:s.left}),enter:s=>({animatedWidth:s.width+s.left+s.right}),leave:s=>({animatedWidth:s.width+s.left+s.right}),reset:!1,immediate:e.skipAnimation}),o=HO(`${n}-${e.id}`);return p.jsxs(h.Fragment,{children:[p.jsx("clipPath",{id:o,children:r(s=>p.jsx(kp.rect,{x:0,y:0,width:s.animatedWidth,height:t.top+t.height+t.bottom}))}),p.jsx("g",{clipPath:`url(#${o})`,children:e.children})]})}const Aye=["d","skipAnimation","ownerState"],Oye=Q(kp.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&ea(e.color).brighter(1).formatHex()||ea(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));function jye(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=ue(e,Aye),s=BO(t),i=TS([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return p.jsx(UO,{skipAnimation:n,id:`${r.id}-area-clip`,children:i((a,l)=>p.jsx(Oye,P({},o,{ownerState:r,d:a.value.to(l)})))})}const Fye=["id","classes","color","gradientId","slots","slotProps","onClick"];function Lye(e){return xe("MuiAreaElement",e)}ge("MuiAreaElement",["root","highlighted","faded"]);const _ye=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,Lye,t)};function Nye(e){const{id:t,classes:n,color:r,gradientId:o,slots:s,slotProps:i,onClick:a}=e,l=ue(e,Fye),c=wy(),{isFaded:u,isHighlighted:d}=by({seriesId:t}),f={id:t,classes:n,color:r,gradientId:o,isFaded:u,isHighlighted:d},g=_ye(f),m=(s==null?void 0:s.area)??jye,y=et({elementType:m,externalSlotProps:i==null?void 0:i.area,additionalProps:P({},c({type:"line",seriesId:t}),{onClick:a,cursor:a?"pointer":"unset"}),className:g.root,ownerState:f});return p.jsx(m,P({},l,y))}function WO(e){switch(e){case"catmullRom":return Epe.alpha(.5);case"linear":return GC;case"monotoneX":return kI;case"monotoneY":return Tpe;case"natural":return Rpe;case"step":return Dpe;case"stepBefore":return $pe;case"stepAfter":return Ape;default:return kI}}function TE(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:s,colorMap:i}=e;return p.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:i.thresholds.map((a,l)=>{const c=s(a);if(c===void 0)return null;const u=t?1-c/r:c/r;return p.jsxs(h.Fragment,{children:[p.jsx("stop",{offset:u,stopColor:i.colors[l],stopOpacity:1}),p.jsx("stop",{offset:u,stopColor:i.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}const zye=10;function RE(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:s,scale:i,colorScale:a,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(i).filter(m=>m!==void 0);if(u.length!==2)return null;const d=typeof c[0]=="number"?Df(c[0],c[1]):RA(c[0],c[1]),f=Math.round((Math.max(...u)-Math.min(...u))/zye),g=`${c[0]}-${c[1]}-`;return p.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(m,y)=>{const v=d(y/f);if(v===void 0)return null;const x=i(v);if(x===void 0)return null;const w=n?1-x/o:x/o,b=a(v);return b===null?null:p.jsx("stop",{offset:w,stopColor:b,stopOpacity:1},g+y)})})}function DS(){const{chartId:e}=h.useContext(vy);return h.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function Bye(){const{top:e,height:t,bottom:n,left:r,width:o,right:s}=Ir(),i=e+t+n,a=r+o+s,l=DS(),{xAxisIds:c,xAxis:u,yAxisIds:d,yAxis:f}=Er();return p.jsxs("defs",{children:[d.filter(g=>f[g].colorMap!==void 0).map(g=>{const m=l(g,"y"),{colorMap:y,scale:v,colorScale:x,reverse:w}=f[g];return(y==null?void 0:y.type)==="piecewise"?p.jsx(TE,{isReversed:!w,scale:v,colorMap:y,size:i,gradientId:m,direction:"y"},m):(y==null?void 0:y.type)==="continuous"?p.jsx(RE,{isReversed:!w,scale:v,colorScale:x,colorMap:y,size:i,gradientId:m,direction:"y"},m):null}),c.filter(g=>u[g].colorMap!==void 0).map(g=>{const m=l(g,"x"),{colorMap:y,scale:v,reverse:x,colorScale:w}=u[g];return(y==null?void 0:y.type)==="piecewise"?p.jsx(TE,{isReversed:x,scale:v,colorMap:y,size:a,gradientId:m,direction:"x"},m):(y==null?void 0:y.type)==="continuous"?p.jsx(RE,{isReversed:x,scale:v,colorScale:w,colorMap:y,size:a,gradientId:m,direction:"x"},m):null})]})}const GO=h.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function Hye(e){const{children:t,skipAnimation:n}=e,r=typeof window>"u"||!(window!=null&&window.matchMedia),[o,s]=h.useState(r||void 0);_i(()=>{var c;if(r)return;const a=u=>{const d=u.matches||void 0;s(d),Ro.assign({skipAnimation:d})},l=window.matchMedia("(prefers-reduced-motion)");return a(l),(c=l==null?void 0:l.addEventListener)==null||c.call(l,"change",a),()=>{var u;(u=l==null?void 0:l.removeEventListener)==null||u.call(l,"change",a)}},[]);const i=h.useMemo(()=>({isInitialized:!0,data:{skipAnimation:n||o}}),[o,n]);return p.jsx(GO.Provider,{value:i,children:t})}function $S(e){const{isInitialized:t,data:n}=h.useContext(GO);if(!t)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return e||n.skipAnimation}const Vye=["slots","slotProps","onItemClick","skipAnimation"],Uye=()=>{const e=xy(),t=Er();return h.useMemo(()=>{if(e===void 0)return[];const{series:r,stackingGroups:o}=e,{xAxis:s,yAxis:i,xAxisIds:a,yAxisIds:l}=t,c=a[0],u=l[0];return o.flatMap(({ids:d})=>[...d].reverse().map(f=>{const{xAxisId:g,yAxisId:m,xAxisKey:y=c,yAxisKey:v=u,stackedData:x,data:w,connectNulls:b,baseline:C}=r[f],k=g??y,M=m??v,T=su(s[k].scale),I=i[M].scale,D=s[k].data,S=i[M].colorScale&&[M,"y"]||s[k].colorScale&&[k,"x"]||void 0,R=upe().x(E=>T(E.x)).defined((E,L)=>b||w[L]!=null).y0(E=>{if(typeof C=="number")return I(C);if(C==="max")return I.range()[1];if(C==="min")return I.range()[0];const L=E.y&&I(E.y[0]);return Number.isNaN(L)?I.range()[0]:L}).y1(E=>E.y&&I(E.y[1])),j=WO(r[f].curve),F=(D==null?void 0:D.map((E,L)=>({x:E,y:x[L]})))??[],A=b?F.filter((E,L)=>w[L]!=null):F,$=R.curve(j)(A)||"";return P({},r[f],{gradientUsed:S,d:$,seriesId:f})}))},[e,t])};function Wye(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,s=ue(e,Vye),i=$S(o),a=DS(),l=Uye();return p.jsx("g",P({},s,{children:l.map(({d:c,seriesId:u,color:d,area:f,gradientUsed:g})=>!!f&&p.jsx(Nye,{id:u,d:c,color:d,gradientId:g&&a(...g),slots:t,slotProps:n,onClick:r&&(m=>r(m,{type:"line",seriesId:u})),skipAnimation:i},u))}))}const Gye=["d","skipAnimation","ownerState"],Kye=Q(kp.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&ea(e.color).brighter(.5).formatHex()||e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function Yye(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=ue(e,Gye),s=BO(t),i=TS([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return p.jsx(UO,{skipAnimation:n,id:`${r.id}-line-clip`,children:i((a,l)=>p.jsx(Kye,P({},o,{ownerState:r,d:a.value.to(l)})))})}const qye=["id","classes","color","gradientId","slots","slotProps","onClick"];function Xye(e){return xe("MuiLineElement",e)}ge("MuiLineElement",["root","highlighted","faded"]);const Qye=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,Xye,t)};function Zye(e){const{id:t,classes:n,color:r,gradientId:o,slots:s,slotProps:i,onClick:a}=e,l=ue(e,qye),c=wy(),{isFaded:u,isHighlighted:d}=by({seriesId:t}),f={id:t,classes:n,color:r,gradientId:o,isFaded:u,isHighlighted:d},g=Qye(f),m=(s==null?void 0:s.line)??Yye,y=et({elementType:m,externalSlotProps:i==null?void 0:i.line,additionalProps:P({},c({type:"line",seriesId:t}),{onClick:a,cursor:a?"pointer":"unset"}),className:g.root,ownerState:f});return p.jsx(m,P({},l,y))}const Jye=["slots","slotProps","skipAnimation","onItemClick"],e1e=()=>{const e=xy(),t=Er();return h.useMemo(()=>{if(e===void 0)return[];const{series:r,stackingGroups:o}=e,{xAxis:s,yAxis:i,xAxisIds:a,yAxisIds:l}=t,c=a[0],u=l[0];return o.flatMap(({ids:d})=>d.flatMap(f=>{const{xAxisId:g,yAxisId:m,xAxisKey:y=c,yAxisKey:v=u,stackedData:x,data:w,connectNulls:b}=r[f],C=g??y,k=m??v,M=su(s[C].scale),T=i[k].scale,I=s[C].data,D=i[k].colorScale&&[k,"y"]||s[C].colorScale&&[C,"x"]||void 0,S=pA().x(A=>M(A.x)).defined((A,$)=>b||w[$]!=null).y(A=>T(A.y[1])),R=(I==null?void 0:I.map((A,$)=>({x:A,y:x[$]})))??[],j=b?R.filter((A,$)=>w[$]!=null):R,F=S.curve(WO(r[f].curve))(j)||"";return P({},r[f],{gradientUsed:D,d:F,seriesId:f})}))},[e,t])};function t1e(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,s=ue(e,Jye),i=$S(r),a=DS(),l=e1e();return p.jsx("g",P({},s,{children:l.map(({d:c,seriesId:u,color:d,gradientUsed:f})=>p.jsx(Zye,{id:u,d:c,color:d,gradientId:f&&a(...f),skipAnimation:i,slots:t,slotProps:n,onClick:o&&(g=>o(g,{type:"line",seriesId:u}))},u))}))}function n1e(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function zl(e){return e instanceof Date?e.getTime():e}const r1e=e=>{const t=RS(),n=Ir(),{xAxis:r,yAxis:o,xAxisIds:s,yAxisIds:i}=Er(),{dispatch:a}=h.useContext(mi),l=s[0],c=i[0],u=h.useRef({isInChart:!1,x:-1,y:-1});h.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(v,x){const{scale:w,data:b,reverse:C}=v;if(!il(w)){const M=w.invert(x);if(b===void 0)return{value:M,index:-1};const T=zl(M),I=b==null?void 0:b.findIndex((D,S)=>{const R=zl(D);return R>T&&(S===0||Math.abs(T-R)<=Math.abs(T-zl(b[S-1])))||R<=T&&(S===b.length-1||Math.abs(zl(M)-R)=0?b[I]:M,index:I}}const k=w.bandwidth()===0?Math.floor((x-Math.min(...w.range())+w.step()/2)/w.step()):Math.floor((x-Math.min(...w.range()))/w.step());if(k<0||k>=b.length)return null;if(C){const M=b.length-1-k;return{index:M,value:b[M]}}return{index:k,value:b[k]}}const g=()=>{u.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},m=v=>{const x="targetTouches"in v?v.targetTouches[0]:v,w=n1e(d,x);if(u.current.x=w.x,u.current.y=w.y,!n.isPointInside(w,{targetElement:v.target})){u.current.isInChart&&(a({type:"exitChart"}),u.current.isInChart=!1);return}u.current.isInChart=!0;const b=f(r[l],w.x),C=f(o[c],w.y);a({type:"updateAxis",data:{x:b,y:C}})},y=v=>{const x=v.currentTarget;x&&x.hasPointerCapture(v.pointerId)&&x.releasePointerCapture(v.pointerId)};return d.addEventListener("pointerdown",y),d.addEventListener("pointermove",m),d.addEventListener("pointerout",g),d.addEventListener("pointercancel",g),d.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerdown",y),d.removeEventListener("pointermove",m),d.removeEventListener("pointerout",g),d.removeEventListener("pointercancel",g),d.removeEventListener("pointerleave",g)}},[t,a,c,o,l,r,e,n])},o1e=["children","width","height","viewBox","disableAxisListener","className","title","desc"],s1e=Q("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),i1e=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiChartsSurface"}),{children:o,width:s,height:i,viewBox:a,disableAxisListener:l=!1,className:c,title:u,desc:d}=r,f=ue(r,o1e),g=P({width:s,height:i,x:0,y:0},a);return r1e(l),p.jsxs(s1e,P({width:s,height:i,viewBox:`${g.x} ${g.y} ${g.width} ${g.height}`,ref:n,className:c},f,{children:[p.jsx("title",{children:u}),p.jsx("desc",{children:d}),o]}))}),DE=(e,t,n)=>{const r=n==="x"?yy:Pge;return[...(e==null?void 0:e.map((o,s)=>P({id:`defaultized-${n}-axis-${s}`},o)))??[],...e===void 0||e.findIndex(({id:o})=>o===r)===-1?[{id:r,scaleType:"linear"}]:[]].map(o=>{const s=o.dataKey;if(s===void 0||o.data!==void 0)return o;if(t===void 0)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return P({},o,{data:t.map(i=>i[s])})})},a1e=(e,t,n)=>{const r=h.useMemo(()=>DE(e,n,"x"),[e,n]),o=h.useMemo(()=>DE(t,n,"y"),[t,n]);return[r,o]},l1e=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],c1e=(e,t)=>{const{width:n,height:r,series:o,margin:s,xAxis:i,yAxis:a,zAxis:l,colors:c,dataset:u,sx:d,title:f,desc:g,disableAxisListener:m,highlightedItem:y,onHighlightChange:v,plugins:x,children:w,skipAnimation:b}=e,C=ue(e,l1e),k=h.useRef(null),M=tt(t,k),[T,I]=a1e(i,a,u),D={width:n,height:r,margin:s,svgRef:k},S={skipAnimation:b},R={plugins:x},j={series:o,colors:c,dataset:u},F={xAxis:T,yAxis:I,dataset:u},A={zAxis:l,dataset:u},$={highlightedItem:y,onHighlightChange:v},E=P({},C,{width:n,height:r,ref:M,sx:d,title:f,desc:g,disableAxisListener:m});return{children:w,drawingProviderProps:D,seriesProviderProps:j,cartesianProviderProps:F,zAxisContextProps:A,highlightedProviderProps:$,chartsSurfaceProps:E,pluginProviderProps:R,animationProviderProps:S,xAxis:T,yAxis:I}},u1e=h.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:s,cartesianProviderProps:i,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:c,pluginProviderProps:u,animationProviderProps:d}=c1e(t,n);return p.jsx(Ege,P({},o,{children:p.jsx(n0e,P({},u,{children:p.jsx(i0e,P({},s,{children:p.jsx(a0e,P({},i,{children:p.jsx(m0e,P({},a,{children:p.jsx(c0e,{children:p.jsx(h0e,P({},l,{children:p.jsxs(i1e,P({},c,{children:[p.jsx(Bye,{}),p.jsx(Hye,P({},d,{children:r}))]}))}))})}))}))}))}))}))}),d1e=Q("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),f1e=(e,t,n)=>{const r=h.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=h.useRef(null),[s,i]=h.useState(0),[a,l]=h.useState(0),c=h.useCallback(()=>{const u=o==null?void 0:o.current;if(!u)return{};const f=Gr(u).getComputedStyle(u),g=Math.floor(parseFloat(f.height))||0,m=Math.floor(parseFloat(f.width))||0;return i(m),l(g),{width:m,height:g}},[]);return h.useEffect(()=>{r.current.displayError=!0},[]),at(()=>{if(!n||!r.current.initialCompute||r.current.computeRun>20)return;const u=c();u.width!==s||u.height!==a?r.current.computeRun+=1:r.current.initialCompute&&(r.current.initialCompute=!1)},[s,a,c,n]),at(()=>{if(e!==void 0&&t!==void 0)return()=>{};c();const u=o.current;if(typeof ResizeObserver>"u")return()=>{};let d;const f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{c()})});return u&&f.observe(u),()=>{d&&cancelAnimationFrame(d),u&&f.unobserve(u)}},[c,t,e]),{containerRef:o,width:e??s,height:t??a}},p1e=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],h1e=(e,t)=>{const{width:n,height:r,resolveSizeBeforeRender:o,margin:s,children:i,series:a,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:f,onHighlightChange:g,plugins:m,sx:y,title:v,viewBox:x,xAxis:w,yAxis:b,zAxis:C,skipAnimation:k}=e,M=ue(e,p1e),{containerRef:T,width:I,height:D}=f1e(n,r,o),S=P({},M,{ownerState:{width:n,height:r},ref:T});return{hasIntrinsicSize:I&&D,chartContainerProps:{margin:s,children:i,series:a,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:f,onHighlightChange:g,plugins:m,sx:y,title:v,viewBox:x,xAxis:w,yAxis:b,zAxis:C,skipAnimation:k,width:I,height:D,ref:t},resizableChartContainerProps:S}},m1e=h.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:s}=h1e(t,n);return p.jsx(d1e,P({},s,{children:r?p.jsx(u1e,P({},o)):null}))});function g1e(e){return xe("MuiMarkElement",e)}ge("MuiMarkElement",["root","highlighted","faded"]);const KO=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(s,g1e,t)},y1e=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function v1e(e){var b;const{x:t,y:n,id:r,classes:o,color:s,dataIndex:i,onClick:a,skipAnimation:l,shape:c}=e,u=ue(e,y1e),d=Dn(),f=wy(),{isFaded:g,isHighlighted:m}=by({seriesId:r}),{axis:y}=h.useContext(mi),v=_O({to:{x:t,y:n},immediate:l}),x={id:r,classes:o,isHighlighted:((b=y.x)==null?void 0:b.index)===i||m,isFaded:g},w=KO(x);return p.jsx(kp.circle,P({},u,{cx:v.x,cy:v.y,r:5,fill:(d.vars||d).palette.background.paper,stroke:s,strokeWidth:2,className:w.root,onClick:a,cursor:a?"pointer":"unset"},f({type:"line",seriesId:r,dataIndex:i})))}function x1e(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const b1e=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],w1e=Q(kp.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));function C1e(e){var w;const{x:t,y:n,id:r,classes:o,color:s,shape:i,dataIndex:a,onClick:l,skipAnimation:c}=e,u=ue(e,b1e),d=wy(),{isFaded:f,isHighlighted:g}=by({seriesId:r}),{axis:m}=h.useContext(mi),y=_O({to:{x:t,y:n},immediate:c}),v={id:r,classes:o,isHighlighted:((w=m.x)==null?void 0:w.index)===a||g,isFaded:f,color:s},x=KO(v);return p.jsx(w1e,P({},u,{style:{transform:IE([y.x,y.y],(b,C)=>`translate(${b}px, ${C}px)`),transformOrigin:IE([y.x,y.y],(b,C)=>`${b}px ${C}px`)},ownerState:v,className:x.root,d:Mpe(Ppe[x1e(i)])(),onClick:l,cursor:l?"pointer":"unset"},d({type:"line",seriesId:r,dataIndex:a})))}const S1e=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function k1e(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o,experimentalRendering:s}=e,i=ue(e,S1e),a=$S(r),l=xy(),c=Er(),u=VO(),d=Ir(),f=(t==null?void 0:t.mark)??(s?v1e:C1e);if(l===void 0)return null;const{series:g,stackingGroups:m}=l,{xAxis:y,yAxis:v,xAxisIds:x,yAxisIds:w}=c,b=x[0],C=w[0];return p.jsx("g",P({},i,{children:m.flatMap(({ids:k})=>k.map(M=>{const{xAxisId:T,yAxisId:I,xAxisKey:D=b,yAxisKey:S=C,stackedData:R,data:j,showMark:F=!0}=g[M];if(F===!1)return null;const A=T??D,$=I??S,E=su(y[A].scale),L=v[$].scale,O=y[A].data;if(O===void 0)throw new Error(`MUI X: ${A===yy?"The first `xAxis`":`The x-axis with id "${A}"`} should have data property to be able to display a line plot.`);const _=HO(`${u}-${M}-line-clip`),N=fS(g[M],y[A],v[$]);return p.jsx("g",{clipPath:`url(#${_})`,children:O==null?void 0:O.map((z,G)=>{const J=j[G]==null?null:R[G][1];return{x:E(z),y:J===null?null:L(J),position:z,value:J,index:G}}).filter(({x:z,y:G,index:J,position:K,value:B})=>B===null||G===null||!d.isPointInside({x:z,y:G})?!1:F===!0?!0:F({x:z,y:G,index:J,position:K,value:B})).map(({x:z,y:G,index:J})=>p.jsx(f,P({id:M,dataIndex:J,shape:"circle",color:N(J),x:z,y:G,skipAnimation:a,onClick:o&&(K=>o(K,{type:"line",seriesId:M,dataIndex:J}))},n==null?void 0:n.mark),`${M}-${J}`))},M)}))}))}function YO(e){return xe("MuiChartsAxis",e)}const Ch=ge("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),qO=Q("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Ch.tickLabel}`]:P({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${Ch.label}`]:P({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${Ch.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Ch.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function P1e(){return typeof window>"u"}const ya={widthCache:{},cacheCount:0},M1e=2e3,I1e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},E1e=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],$E="mui_measurement_span";function XO(e,t){return E1e.indexOf(e)>=0&&t===+t?`${t}px`:t}function QO(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const T1e=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${QO(n)}:${XO(n,e[n])};`,"");let iv;const R1e=(e,t={})=>{if(e==null||P1e())return{width:0,height:0};const n=`${e}`,r=T1e(t),o=`${n}-${r}`;if(ya.widthCache[o])return ya.widthCache[o];try{let s=document.getElementById($E);s===null&&(s=document.createElement("span"),s.setAttribute("id",$E),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const i=P({},I1e,t);Object.keys(i).map(c=>(s.style[QO(c)]=XO(c,i[c]),c)),s.textContent=n;const a=s.getBoundingClientRect(),l={width:a.width,height:a.height};return ya.widthCache[o]=l,ya.cacheCount+1>M1e?(ya.cacheCount=0,ya.widthCache={}):ya.cacheCount+=1,iv&&clearTimeout(iv),iv=setTimeout(()=>{s.textContent=""},0),l}catch{return{width:0,height:0}}};function AS({style:e,needsComputation:t,text:n}){return n.split(` +`).map(r=>P({text:r},t?R1e(r,e):{width:0,height:0}))}const D1e=["x","y","style","text","ownerState"],$1e=["angle","textAnchor","dominantBaseline"];function Hf(e){const{x:t,y:n,style:r,text:o}=e,s=ue(e,D1e),i=r??{},{angle:a,textAnchor:l,dominantBaseline:c}=i,u=ue(i,$1e),d=h.useMemo(()=>AS({style:u,needsComputation:o.includes(` +`),text:o}),[u,o]);let f;switch(c){case"hanging":f=0;break;case"central":f=(d.length-1)/2*-d[0].height;break;default:f=(d.length-1)*-d[0].height;break}const g=[];return a&&g.push(`rotate(${a}, ${t}, ${n})`),p.jsx("text",P({},s,{transform:g.length>0?g.join(" "):void 0,x:t,y:n,textAnchor:l,dominantBaseline:c,style:u,children:d.map((m,y)=>p.jsx("tspan",{x:t,dy:`${y===0?f:d[0].height}px`,dominantBaseline:c,children:m.text},y))}))}const AE=5;function A1e(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r90-AE)return t;const o=r*Math.PI/180,s=Math.atan2(t,e);return o{e||n(!0)},[e]),h.useEffect(()=>{e&&n(!0)},[e]),t}const j1e=["scale","tickNumber","reverse"],F1e=e=>{const{classes:t,position:n}=e;return le({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},YO,t)};function L1e(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const s=e.map(c=>{if(!o||c.formattedValue===void 0)return P({},c,{width:0,height:0});const u=AS({style:t,needsComputation:!0,text:c.formattedValue});return P({},c,{width:Math.max(...u.map(d=>d.width)),height:Math.max(u.length*u[0].height)})});if(typeof n=="function")return s.map((c,u)=>P({},c,{skipLabel:!n(c.value,u)}));let i=0,a=0;const l=r?-1:1;return s.map((c,u)=>{const{width:d,offset:f,labelOffset:g,height:m}=c,y=A1e(d,m,t==null?void 0:t.angle),v=f+g,x=1.2;return i=v-l*(x*y)/2,u>0&&l*it.root})({}),N1e={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function OE(e){const{xAxisIds:t,xAxis:n}=Er(),r=n[e.axisId??t[0]],{scale:o,tickNumber:s,reverse:i}=r,a=ue(r,j1e),l=O1e(),c=xt({props:P({},a,e),name:"MuiChartsXAxis"}),u=P({},N1e,c),{position:d,disableLine:f,disableTicks:g,tickLabelStyle:m,label:y,labelStyle:v,tickFontSize:x,labelFontSize:w,tickSize:b,valueFormatter:C,slots:k,slotProps:M,tickInterval:T,tickLabelInterval:I,tickPlacement:D,tickLabelPlacement:S,sx:R}=u,j=Dn(),F=F1e(P({},u,{theme:j})),{left:A,top:$,width:E,height:L,isPointInside:O}=Ir(),_=g?4:b,N=d==="bottom"?1:-1,z=(k==null?void 0:k.axisLine)??"line",G=(k==null?void 0:k.axisTick)??"line",J=(k==null?void 0:k.axisTickLabel)??Hf,K=(k==null?void 0:k.axisLabel)??Hf,B=et({elementType:J,externalSlotProps:M==null?void 0:M.axisTickLabel,additionalProps:{style:P({textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto",fontSize:x??12},m)},className:F.tickLabel,ownerState:{}}),W=gy({scale:o,tickNumber:s,valueFormatter:C,tickInterval:T,tickPlacement:D,tickLabelPlacement:S}),te=L1e(W,{tickLabelStyle:B.style,tickLabelInterval:I,reverse:i,isMounted:l}),X={x:A+E/2,y:N*(_+22)},q=et({elementType:K,externalSlotProps:M==null?void 0:M.axisLabel,additionalProps:{style:P({fontSize:w??14,textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto"},v)},ownerState:{}}),U=o.domain(),ee=il(o);return ee&&U.length===0||!ee&&U.some(dS)?null:p.jsxs(_1e,{transform:`translate(0, ${d==="bottom"?$+L:$})`,className:F.root,sx:R,children:[!f&&p.jsx(z,P({x1:A,x2:A+E,className:F.line},M==null?void 0:M.axisLine)),te.map(({formattedValue:H,offset:Z,labelOffset:ne,skipLabel:oe},re)=>{const de=ne??0,ie=N*(_+3),we=O({x:Z,y:-1},{direction:"x"}),Re=O({x:Z+de,y:-1},{direction:"x"});return p.jsxs("g",{transform:`translate(${Z}, 0)`,className:F.tickContainer,children:[!g&&we&&p.jsx(G,P({y2:N*_,className:F.tick},M==null?void 0:M.axisTick)),H!==void 0&&!oe&&Re&&p.jsx(J,P({x:de,y:ie},B,{text:H.toString()}))]},re)}),y&&p.jsx("g",{className:F.label,children:p.jsx(K,P({},X,q,{text:y}))})]})}const z1e=["scale","tickNumber"],B1e=e=>{const{classes:t,position:n}=e;return le({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},YO,t)},H1e=Q(qO,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),V1e={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function jE(e){const{yAxisIds:t,yAxis:n}=Er(),r=n[e.axisId??t[0]],{scale:o,tickNumber:s}=r,i=ue(r,z1e),a=xt({props:P({},i,e),name:"MuiChartsYAxis"}),l=P({},V1e,a),{position:c,disableLine:u,disableTicks:d,tickFontSize:f,label:g,labelFontSize:m,labelStyle:y,tickLabelStyle:v,tickSize:x,valueFormatter:w,slots:b,slotProps:C,tickPlacement:k,tickLabelPlacement:M,tickInterval:T,tickLabelInterval:I,sx:D}=l,S=Dn(),R=Bt(),j=B1e(P({},l,{theme:S})),{left:F,top:A,width:$,height:E,isPointInside:L}=Ir(),O=d?4:x,_=gy({scale:o,tickNumber:s,valueFormatter:w,tickPlacement:k,tickLabelPlacement:M,tickInterval:T}),N=c==="right"?1:-1,z={x:N*(f+O+10),y:A+E/2},G=(b==null?void 0:b.axisLine)??"line",J=(b==null?void 0:b.axisTick)??"line",K=(b==null?void 0:b.axisTickLabel)??Hf,B=(b==null?void 0:b.axisLabel)??Hf,W=!R&&c==="right"||R&&c!=="right",te=et({elementType:K,externalSlotProps:C==null?void 0:C.axisTickLabel,additionalProps:{style:P({fontSize:f,textAnchor:W?"start":"end",dominantBaseline:"central"},v)},className:j.tickLabel,ownerState:{}}),X=et({elementType:B,externalSlotProps:C==null?void 0:C.axisLabel,additionalProps:{style:P({fontSize:m,angle:N*90,textAnchor:"middle",dominantBaseline:"auto"},y)},ownerState:{}}),q=et({elementType:G,externalSlotProps:C==null?void 0:C.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),U=o.domain(),ee=il(o);return ee&&U.length===0||!ee&&U.some(dS)?null:p.jsxs(H1e,{transform:`translate(${c==="right"?F+$:F}, 0)`,className:j.root,sx:D,children:[!u&&p.jsx(G,P({y1:A,y2:A+E,className:j.line},q)),_.map(({formattedValue:H,offset:Z,labelOffset:ne,value:oe},re)=>{const de=N*(O+2),ie=ne,we=typeof I=="function"&&!(I!=null&&I(oe,re));return L({x:-1,y:Z},{direction:"y"})?p.jsxs("g",{transform:`translate(0, ${Z})`,className:j.tickContainer,children:[!d&&p.jsx(J,P({x2:N*O,className:j.tick},C==null?void 0:C.axisTick)),H!==void 0&&!we&&p.jsx(K,P({x:de,y:ie,text:H.toString()},te))]},re):null}),g&&p.jsx("g",{className:j.label,children:p.jsx(B,P({},z,X,{text:g}))})]})}const Sh=(e,t)=>e==null?null:typeof e=="object"?e.axisId??t??null:e,kh=(e,t,n)=>typeof e=="object"?P({},e,{slots:P({},t,e==null?void 0:e.slots),slotProps:P({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function U1e(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:s,slotProps:i}=e,{xAxis:a,xAxisIds:l,yAxis:c,yAxisIds:u}=Er(),d=Sh(n===void 0?u[0]:n,u[0]),f=Sh(o===void 0?l[0]:o,l[0]),g=Sh(t,l[0]),m=Sh(r,u[0]);if(g!==null&&!a[g])throw new Error([`MUI X: id used for top axis "${g}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` +`));if(d!==null&&!c[d])throw new Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(` +`));if(m!==null&&!c[m])throw new Error([`MUI X: id used for right axis "${m}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(` +`));if(f!==null&&!a[f])throw new Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` +`));const y=kh(t,s,i),v=kh(o,s,i),x=kh(n,s,i),w=kh(r,s,i);return p.jsxs(h.Fragment,{children:[g&&p.jsx(OE,P({},y,{position:"top",axisId:g})),f&&p.jsx(OE,P({},v,{position:"bottom",axisId:f})),d&&p.jsx(jE,P({},x,{position:"left",axisId:d})),m&&p.jsx(jE,P({},w,{position:"right",axisId:m}))]})}function W1e(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>P({},r,{toJSON:()=>JSON.stringify(r)})}}function G1e(){const e=RS(),[t,n]=h.useState(null);return h.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=i=>{i.pointerType!=="mouse"&&n(null)},s=i=>{n({x:i.clientX,y:i.clientY,height:i.height,pointerType:i.pointerType})};return r.addEventListener("pointerdown",s),r.addEventListener("pointermove",s),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",s),r.removeEventListener("pointermove",s),r.removeEventListener("pointerup",o)}},[e]),t}function K1e(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function Y1e(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function q1e(e){return xe("MuiChartsTooltip",e)}const FE=ge("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),ZO=Q("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),JO=Q("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Cb=Q("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Aa=Q("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${FE.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${FE.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),ej=Q("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>$d(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function X1e(e){var u;const{series:t,itemData:n,sx:r,classes:o,getColor:s}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:s(n.dataIndex),displayedLabel:qs(t.data[n.dataIndex].label,"tooltip")}:{color:s(n.dataIndex),displayedLabel:qs(t.label,"tooltip")},l=t.type==="pie"?P({},t.data[n.dataIndex],{label:qs(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],c=(u=t.valueFormatter)==null?void 0:u.call(t,l,{dataIndex:n.dataIndex});return p.jsx(ZO,{sx:r,className:o.paper,children:p.jsx(JO,{className:o.table,children:p.jsx("tbody",{children:p.jsxs(Cb,{className:o.row,children:[p.jsx(Aa,{className:se(o.markCell,o.cell),children:p.jsx(ej,{color:a,className:o.mark})}),p.jsx(Aa,{className:se(o.labelCell,o.cell),children:i}),p.jsx(Aa,{className:se(o.valueCell,o.cell),children:c})]})})})})}function Q1e(e){var C;const{content:t,itemData:n,sx:r,classes:o,contentProps:s}=e,i=pa()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:c,yAxisIds:u}=Er(),{zAxis:d,zAxisIds:f}=h.useContext(pS),g=nO(),m=i.xAxisId??i.xAxisKey??c[0],y=i.yAxisId??i.yAxisKey??u[0],v=i.zAxisId??i.zAxisKey??f[0],x=((C=g[i.type])==null?void 0:C.call(g,i,m&&a[m],y&&l[y],v&&d[v]))??(()=>""),w=t??X1e,b=et({elementType:w,externalSlotProps:s,additionalProps:{itemData:n,series:i,sx:r,classes:o,getColor:x},ownerState:{}});return p.jsx(w,P({},b))}let LE;class Z1e{constructor(){if(this.types=new Set,LE)throw new Error("You can only create one instance!");LE=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const Ry=new Z1e;Ry.addType("bar");Ry.addType("line");Ry.addType("scatter");function tj(e){return Ry.getTypes().has(e)}function J1e(e){return tj(e.type)}function eve(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:s,classes:i}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?Y1e(l):l.toLocaleString());return p.jsx(ZO,{sx:s,className:i.paper,children:p.jsxs(JO,{className:i.table,children:[o!=null&&!n.hideTooltip&&p.jsx("thead",{children:p.jsx(Cb,{children:p.jsx(Aa,{colSpan:3,children:p.jsx(Ce,{children:a(o,{location:"tooltip"})})})})}),p.jsx("tbody",{children:t.filter(J1e).map(({id:l,label:c,valueFormatter:u,data:d,getColor:f})=>{const g=u(d[r]??null,{dataIndex:r});if(g==null)return null;const m=qs(c,"tooltip"),y=f(r);return p.jsxs(Cb,{className:i.row,children:[p.jsx(Aa,{className:se(i.markCell,i.cell),children:y&&p.jsx(ej,{color:y,className:i.mark})}),p.jsx(Aa,{className:se(i.labelCell,i.cell),children:m?p.jsx(Ce,{children:m}):null}),p.jsx(Aa,{className:se(i.valueCell,i.cell),children:p.jsx(Ce,{children:g})})]},l)})})]})})}function tve(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:s}=e,i=r.x&&r.x.index!==-1,a=i?r.x&&r.x.index:r.y&&r.y.index,l=i?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:c,xAxis:u,yAxisIds:d,yAxis:f}=Er(),{zAxisIds:g,zAxis:m}=h.useContext(pS),y=pa(),v=nO(),x=i?c[0]:d[0],w=h.useMemo(()=>{const M=[];return Object.keys(y).filter(tj).forEach(T=>{y[T].seriesOrder.forEach(I=>{var F;const D=y[T].series[I],S=D.xAxisId??D.xAxisKey,R=D.yAxisId??D.yAxisKey,j=i?S:R;if(j===void 0||j===x){const A=y[T].series[I],$=S??c[0],E=R??d[0],L=A.zAxisId??A.zAxisKey??g[0],O=((F=v[T])==null?void 0:F.call(v,A,u[$],f[E],L&&m[L]))??(()=>"");M.push(P({},A,{getColor:O}))}})}),M},[x,v,i,y,u,c,f,d,m,g]),b=h.useMemo(()=>i?u[x]:f[x],[x,i,u,f]),C=t??eve,k=et({elementType:C,externalSlotProps:n,additionalProps:{axisData:r,series:w,axis:b,dataIndex:a,axisValue:l,sx:o,classes:s},ownerState:{}});return p.jsx(C,P({},k))}const nve=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},q1e,t)},rve=Q(di,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function ove(e){const t=xt({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:s,slotProps:i}=t,a=G1e(),{item:l,axis:c}=h.useContext(mi),u=n==="item"?l:c,d=K1e(n,u),f=a!==null&&d,g=nve({classes:t.classes}),m=(s==null?void 0:s.popper)??rve,y=et({elementType:m,externalSlotProps:i==null?void 0:i.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:W1e(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:p.jsx(T$,{children:f&&p.jsx(m,P({},y,{className:g.root,children:n==="item"?p.jsx(Q1e,{itemData:u,content:(s==null?void 0:s.itemContent)??r,contentProps:i==null?void 0:i.itemContent,sx:{mx:2},classes:g}):p.jsx(tve,{axisData:u,content:(s==null?void 0:s.axisContent)??o,contentProps:i==null?void 0:i.axisContent,sx:{mx:2},classes:g})}))})}const sve=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=qs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},ive=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=qs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},ave=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const s=qs(n[o].label,"legend");return s===void 0||r.push({id:o,seriesId:o,color:n[o].color,label:s}),r},[])},lve=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(s=>{const i=qs(s.label,"legend");i!==void 0&&r.push({id:s.id,seriesId:o,color:s.color,label:i,itemId:s.id})}),r),[])},cve={bar:sve,scatter:ive,line:ave,pie:lve};function uve(e){return Object.keys(e).flatMap(t=>{const n=cve[t];return n===void 0?[]:n(e[t])})}function dve(e){return xe("MuiChartsLegend",e)}ge("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const fve=["label"];function pve(e,t,n,r,o,s,i){let a=0,l=0,c=0,u=0,d=0;const f=[0];return[e.map(m=>{let{label:y}=m,v=ue(m,fve);const x=t(y,n),w=P({},v,{label:y,positionX:a,positionY:l,innerHeight:x.innerHeight,innerWidth:x.innerWidth,outerHeight:x.outerHeight,outerWidth:x.outerWidth,rowIndex:d});return r==="row"&&(a+x.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),w.positionX=a,w.positionY=l,w.rowIndex=d),c=Math.max(c,a+x.outerWidth),u=Math.max(u,l+x.outerHeight),f[d]=Math.max(f[d],x.outerHeight),a+=x.outerWidth),r==="column"&&(l+x.innerHeight>s&&(a=c+i,l=0,d=0,w.positionX=a,w.positionY=l,w.rowIndex=d),f.length<=d&&f.push(0),c=Math.max(c,a+x.outerWidth),u=Math.max(u,l+x.outerHeight),d+=1,l+=x.outerHeight),w}).map(m=>P({},m,{positionY:m.positionY+(r==="row"?f[m.rowIndex]/2:m.outerHeight/2)})),c,u]}function hve(e){const t=Bt(),{id:n,positionY:r,label:o,positionX:s,innerHeight:i,innerWidth:a,legendWidth:l,color:c,gapX:u,gapY:d,itemMarkHeight:f,itemMarkWidth:g,markGap:m,labelStyle:y,classes:v,onClick:x}=e;return p.jsxs("g",{className:se(v==null?void 0:v.series,`${v==null?void 0:v.series}-${n}`),transform:`translate(${u+(t?l-s:s)} ${d+r})`,children:[p.jsx("rect",{x:t?-(a+2):-2,y:-f/2-2,width:a+4,height:i+4,fill:"transparent",className:v==null?void 0:v.itemBackground,onClick:x,style:{pointerEvents:x?"all":"none",cursor:x?"pointer":"unset"}}),p.jsx("rect",{className:v==null?void 0:v.mark,x:t?-g:0,y:-f/2,width:g,height:f,fill:c,style:{pointerEvents:"none"}}),p.jsx(Hf,{style:P({pointerEvents:"none"},y),text:o,x:(t?-1:1)*(g+m),y:0})]})}const mve=["rotate","dominantBaseline"],gve=Q("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yve=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:P({left:0,right:0,top:0,bottom:0},e);function vve(e){const{position:t,direction:n,itemsToDisplay:r,classes:o,itemMarkWidth:s=20,itemMarkHeight:i=20,markGap:a=5,itemGap:l=10,padding:c=10,labelStyle:u,onItemClick:d}=e,f=Dn(),g=Ir(),m=h.useMemo(()=>P({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},u),[u,f]),y=h.useMemo(()=>yve(c),[c]),v=h.useCallback((S,R={})=>{const j=ue(R,mve),F=AS({style:j,needsComputation:!0,text:S}),A={innerWidth:s+a+Math.max(...F.map($=>$.width)),innerHeight:Math.max(i,F.length*F[0].height)};return P({},A,{outerWidth:A.innerWidth+l,outerHeight:A.innerHeight+l})},[l,i,s,a]),x=g.left+g.width+g.right,w=g.top+g.height+g.bottom,b=x-y.left-y.right,C=w-y.top-y.bottom,[k,M,T]=h.useMemo(()=>pve(r,v,m,n,b,C,l),[r,v,m,n,b,C,l]),I=h.useMemo(()=>{switch(t.horizontal){case"left":return y.left;case"right":return x-y.right-M;default:return(x-M)/2}},[t.horizontal,y.left,y.right,x,M]),D=h.useMemo(()=>{switch(t.vertical){case"top":return y.top;case"bottom":return w-y.bottom-T;default:return(w-T)/2}},[t.vertical,y.top,y.bottom,w,T]);return p.jsx(T$,{children:p.jsx(gve,{className:o==null?void 0:o.root,children:k.map((S,R)=>h.createElement(hve,P({},S,{key:S.id,gapX:I,gapY:D,legendWidth:M,itemMarkHeight:i,itemMarkWidth:s,markGap:a,labelStyle:m,classes:o,onClick:d?j=>d(j,R):void 0})))})})}const xve=["drawingArea","seriesToDisplay","hidden","onItemClick"],bve=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function wve(e){const{seriesToDisplay:t,hidden:n,onItemClick:r}=e,o=ue(e,xve);return n?null:p.jsx(vve,P({},o,{itemsToDisplay:t,onItemClick:r?(s,i)=>r(s,bve(t[i]),i):void 0}))}const Cve=["slots","slotProps"],Sve=e=>{const{classes:t,direction:n}=e;return le({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},dve,t)};function kve(e){const t=xt({props:e,name:"MuiChartsLegend"}),n=P({direction:"row"},t,{position:P({horizontal:"middle",vertical:"top"},t.position)}),{slots:r,slotProps:o}=n,s=ue(n,Cve),i=Dn(),a=Sve(P({},n,{theme:i})),l=Ir(),c=pa(),u=uve(c),d=(r==null?void 0:r.legend)??wve,f=et({elementType:d,externalSlotProps:o==null?void 0:o.legend,additionalProps:P({},s,{classes:a,drawingArea:l,series:c,seriesToDisplay:u}),ownerState:{}});return p.jsx(d,P({},f))}function Pve(e){return xe("MuiChartsAxisHighlight",e)}ge("MuiChartsAxisHighlight",["root"]);const Mve=()=>le({root:["root"]},Pve),Ph=Q("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:P({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:P({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function Ive(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:s,yAxis:i}=Er(),a=Mve(),l=r[0],c=s[0],u=o[l].scale,d=i[c].scale,{axis:f}=h.useContext(mi),g=su(u),m=su(d),y=f.x,v=f.y,x=t==="band"&&y!==null&&il(u),w=n==="band"&&v!==null&&il(d);return p.jsxs(h.Fragment,{children:[x&&u(y.value)!==void 0&&p.jsx(Ph,{d:`M ${u(y.value)-(u.step()-u.bandwidth())/2} ${d.range()[0]} l ${u.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-u.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),w&&d(v.value)!==void 0&&p.jsx(Ph,{d:`M ${u.range()[0]} ${d(v.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${u.range()[1]-u.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&p.jsx(Ph,{d:`M ${g(f.x.value)} ${d.range()[0]} L ${g(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&p.jsx(Ph,{d:`M ${u.range()[0]} ${m(f.y.value)} L ${u.range()[1]} ${m(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function Eve(e){const{id:t,offset:n}=e,{left:r,top:o,width:s,height:i}=Ir(),a=P({top:0,right:0,bottom:0,left:0},n);return p.jsx("clipPath",{id:t,children:p.jsx("rect",{x:r-a.left,y:o-a.top,width:s+a.left+a.right,height:i+a.top+a.bottom})})}const Tve=["x","y","id","classes","color"];function Rve(e){return xe("MuiHighlightElement",e)}ge("MuiHighlightElement",["root"]);const Dve=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return le(r,Rve,t)},$ve=Q("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function Ave(e){const{x:t,y:n,id:r,classes:o,color:s}=e,i=ue(e,Tve),a={id:r,classes:o,color:s,x:t,y:n},l=Dve(a);return p.jsx($ve,P({pointerEvents:"none",ownerState:a,className:l.root,cx:0,cy:0,r:i.r===void 0?5:i.r},i))}const Ove=["slots","slotProps"];function jve(e){var w;const{slots:t,slotProps:n}=e,r=ue(e,Ove),o=xy(),s=Er(),i=Ir(),{axis:a}=h.useContext(mi),l=(w=a.x)==null?void 0:w.index;if(l===void 0||o===void 0)return null;const{series:c,stackingGroups:u}=o,{xAxis:d,yAxis:f,xAxisIds:g,yAxisIds:m}=s,y=g[0],v=m[0],x=(t==null?void 0:t.lineHighlight)??Ave;return p.jsx("g",P({},r,{children:u.flatMap(({ids:b})=>b.flatMap(C=>{const{xAxisId:k,yAxisId:M,xAxisKey:T=y,yAxisKey:I=v,stackedData:D,data:S,disableHighlight:R}=c[C],j=k??T,F=M??I;if(R||S[l]==null)return null;const A=su(d[j].scale),$=f[F].scale,E=d[j].data;if(E===void 0)throw new Error(`MUI X: ${j===yy?"The first `xAxis`":`The x-axis with id "${j}"`} should have data property to be able to display a line plot.`);const L=A(E[l]),O=$(D[l][1]);if(!i.isPointInside({x:L,y:O}))return null;const _=fS(c[C],d[j],f[F]);return p.jsx(x,P({id:C,color:_(l),x:L,y:O},n==null?void 0:n.lineHighlight),`${C}`)}))}))}function Fve(e){return xe("MuiChartsGrid",e)}const _E=ge("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),Lve=Q("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${_E.verticalLine}`]:t.verticalLine},{[`&.${_E.horizontalLine}`]:t.horizontalLine},t.root]})({}),nj=Q("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function _ve(e){const{axis:t,drawingArea:n,classes:r}=e,{scale:o,tickNumber:s,tickInterval:i}=t,a=gy({scale:o,tickNumber:s,tickInterval:i});return p.jsx(h.Fragment,{children:a.map(({formattedValue:l,offset:c})=>p.jsx(nj,{y1:n.top,y2:n.top+n.height,x1:c,x2:c,className:r.verticalLine},`vertical-${l}`))})}function Nve(e){const{axis:t,drawingArea:n,classes:r}=e,{scale:o,tickNumber:s,tickInterval:i}=t,a=gy({scale:o,tickNumber:s,tickInterval:i});return p.jsx(h.Fragment,{children:a.map(({formattedValue:l,offset:c})=>p.jsx(nj,{y1:c,y2:c,x1:n.left,x2:n.left+n.width,className:r.horizontalLine},`horizontal-${l}`))})}const zve=["vertical","horizontal"],Bve=({classes:e})=>le({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},Fve,e);function Hve(e){const t=xt({props:e,name:"MuiChartsGrid"}),n=Ir(),{vertical:r,horizontal:o}=t,s=ue(t,zve),{xAxis:i,xAxisIds:a,yAxis:l,yAxisIds:c}=Er(),u=Bve(t),d=l[c[0]],f=i[a[0]];return p.jsxs(Lve,P({},s,{className:u.root,children:[r&&p.jsx(_ve,{axis:f,drawingArea:n,classes:u}),o&&p.jsx(Nve,{axis:d,drawingArea:n,classes:u})]}))}function Vve(e){const{onAxisClick:t}=e,n=RS(),r=pa(),{axis:o}=h.useContext(mi),{xAxisIds:s,xAxis:i,yAxisIds:a,yAxis:l}=Er();return h.useEffect(()=>{const c=n.current;if(c===null||!t)return()=>{};const u=d=>{var x;d.preventDefault();const f=o.x&&o.x.index!==-1,g=f?s[0]:a[0],m=f?o.x&&o.x.index:o.y&&o.y.index;if(m==null)return;const y={};Object.keys(r).filter(w=>["bar","line"].includes(w)).forEach(w=>{var b;(b=r[w])==null||b.seriesOrder.forEach(C=>{const k=r[w].series[C],M=k.xAxisId??k.xAxisKey,T=k.yAxisId??k.yAxisKey,I=f?M:T;(I===void 0||I===g)&&(y[C]=k.data[m])})});const v=(x=(f?i:l)[g].data)==null?void 0:x[m];t(d,{dataIndex:m,axisValue:v,seriesValues:y})};return c.addEventListener("click",u),()=>{c.removeEventListener("click",u)}},[o.x,o.y,t,r,n,i,s,l,a]),p.jsx(h.Fragment,{})}const Uve=["message"],Wve=Q("text")(({theme:e})=>P({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Gve(e){const{message:t}=e,n=ue(e,Uve),{top:r,left:o,height:s,width:i}=Ir();return p.jsx(Wve,P({x:o+i/2,y:r+s/2},n,{children:t??"Loading data…"}))}const Kve=["message"],Yve=Q("text")(({theme:e})=>P({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function qve(e){const{message:t}=e,n=ue(e,Kve),{top:r,left:o,height:s,width:i}=Ir();return p.jsx(Yve,P({x:o+i/2,y:r+s/2},n,{children:t??"No data to display"}))}function Xve(){const e=pa();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function Qve(e){var n,r,o,s;const t=Xve();if(e.loading){const i=((n=e.slots)==null?void 0:n.loadingOverlay)??Gve;return p.jsx(i,P({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const i=((o=e.slots)==null?void 0:o.noDataOverlay)??qve;return p.jsx(i,P({},(s=e.slotProps)==null?void 0:s.noDataOverlay))}return null}const Zve=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Jve=e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:s,margin:i,colors:a,dataset:l,sx:c,tooltip:u,onAxisClick:d,onAreaClick:f,onLineClick:g,onMarkClick:m,axisHighlight:y,disableLineItemHighlight:v,legend:x,grid:w,topAxis:b,leftAxis:C,rightAxis:k,bottomAxis:M,children:T,slots:I,slotProps:D,skipAnimation:S,loading:R,highlightedItem:j,onHighlightChange:F,className:A,experimentalMarkRendering:$}=e,E=ue(e,Zve),O=`${mt()}-clip-path`,_=P({},E,{series:r.map(Z=>P({disableHighlight:!!v,type:"line"},Z)),width:o,height:s,margin:i,colors:a,dataset:l,xAxis:t??[{id:yy,scaleType:"point",data:Array.from({length:Math.max(...r.map(Z=>(Z.data??l??[]).length))},(Z,ne)=>ne)}],yAxis:n,sx:c,highlightedItem:j,onHighlightChange:F,disableAxisListener:(u==null?void 0:u.trigger)!=="axis"&&(y==null?void 0:y.x)==="none"&&(y==null?void 0:y.y)==="none"&&!d,className:A,skipAnimation:S}),N={onAxisClick:d},z={vertical:w==null?void 0:w.vertical,horizontal:w==null?void 0:w.horizontal},G={clipPath:`url(#${O})`},J={id:O},K={slots:I,slotProps:D,onItemClick:f},B={slots:I,slotProps:D,onItemClick:g},W={slots:I,slotProps:D,onItemClick:m,skipAnimation:S,experimentalRendering:$},te={slots:I,slotProps:D,loading:R},X={topAxis:b,leftAxis:C,rightAxis:k,bottomAxis:M,slots:I,slotProps:D},q=P({x:"line"},y),U={slots:I,slotProps:D},ee=P({},x,{slots:I,slotProps:D}),H=P({},u,{slots:I,slotProps:D});return{chartContainerProps:_,axisClickHandlerProps:N,gridProps:z,clipPathProps:J,clipPathGroupProps:G,areaPlotProps:K,linePlotProps:B,markPlotProps:W,overlayProps:te,chartsAxisProps:X,axisHighlightProps:q,lineHighlightPlotProps:U,legendProps:ee,tooltipProps:H,children:T}},rj=h.forwardRef(function(t,n){const r=xt({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:i,clipPathProps:a,clipPathGroupProps:l,areaPlotProps:c,linePlotProps:u,markPlotProps:d,overlayProps:f,chartsAxisProps:g,axisHighlightProps:m,lineHighlightPlotProps:y,legendProps:v,tooltipProps:x,children:w}=Jve(r);return p.jsxs(m1e,P({ref:n},o,{children:[r.onAxisClick&&p.jsx(Vve,P({},s)),p.jsx(Hve,P({},i)),p.jsxs("g",P({},l,{children:[p.jsx(Wye,P({},c)),p.jsx(t1e,P({},u)),p.jsx(Qve,P({},f)),p.jsx(Ive,P({},m))]})),p.jsx(U1e,P({},g)),p.jsx("g",{"data-drawing-container":!0,children:p.jsx(k1e,P({},d))}),p.jsx(jve,P({},y)),p.jsx(kve,P({},v)),!r.loading&&p.jsx(ove,P({},x)),p.jsx(Eve,P({},a)),w]}))}),exe=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function txe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function nxe(){return p.jsx(Eu,{children:p.jsx(txe,{})})}const NE=new Date().toISOString().slice(0,10),rxe=new Date,zE=new Date(rxe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),oxe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),[o,s]=h.useState(!0),i=gu(),[a,l]=h.useState(null),[c,u]=h.useState(null),d=1,f=mu(g=>g.userDiabetesDataList.userData);return h.useEffect(()=>{n&&i(Wh({page:1,appointment_day_after:NE,appointment_day_before:zE,user_id:d,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[i,NE,zE,d,n]),h.useEffect(()=>{if(a&&c){const g=f.filter(m=>{const y=Yt(m.appointment_day);return y.isAfter(a)&&y.isBefore(c)});t(g)}else t(f)},[f,a,c]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Diabetes Chart"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:a,onChange:g=>{l(g)}}),p.jsx(To,{label:"End Date",value:c,onChange:g=>{u(g)}})]}),p.jsx(fo,{control:p.jsx(Mi,{checked:o,onChange:()=>s(!o),name:"toggleView"}),label:o?"Show Data Grid":"Show Chart"}),o?p.jsx(rj,{xAxis:[{data:[1,2,3,5,8,10]}],series:[{data:[2,5.5,2,8.5,1.5,5]}],width:500,height:300}):p.jsx(Tu,{rows:e,columns:exe,slots:{toolbar:nxe},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},sxe=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function ixe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function axe(){return p.jsx(Eu,{children:p.jsx(ixe,{})})}const BE=new Date().toISOString().slice(0,10),lxe=new Date,HE=new Date(lxe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),cxe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),[o,s]=h.useState(!0),i=gu(),[a,l]=h.useState(null),[c,u]=h.useState(null),d=1,f=mu(g=>g.userWeightDataList.userData);return h.useEffect(()=>{n&&i(Uh({page:1,appointment_day_after:BE,appointment_day_before:HE,user_id:d,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[i,BE,HE,d,n]),h.useEffect(()=>{if(a&&c){const g=f.filter(m=>{const y=Yt(m.appointment_day);return y.isAfter(a)&&y.isBefore(c)});t(g)}else t(f)},[f,a,c]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Weight Chart"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:a,onChange:g=>{l(g)}}),p.jsx(To,{label:"End Date",value:c,onChange:g=>{u(g)}})]}),p.jsx(fo,{control:p.jsx(Mi,{checked:o,onChange:()=>s(!o),name:"toggleView"}),label:o?"Show Data Grid":"Show Chart"}),o?p.jsx(rj,{xAxis:[{data:[1,2,3,5,8,10]}],series:[{data:[2,5.5,2,8.5,1.5,5]}],width:500,height:300}):p.jsx(Tu,{rows:e,columns:sxe,slots:{toolbar:axe},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},uxe=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"doctor_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1}];function dxe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function fxe(){return p.jsx(Eu,{children:p.jsx(dxe,{})})}const VE=new Date().toISOString().slice(0,10),pxe=new Date,UE=new Date(pxe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),hxe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=gu(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=mu(d=>d.userMaternityDataList.userData);return h.useEffect(()=>{n&&o(Gh({page:1,appointment_day_after:VE,appointment_day_before:UE,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,VE,UE,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const g=Yt(f.appointment_day);return g.isAfter(s)&&g.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Maternity Chart"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(To,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(Tu,{rows:e,columns:uxe,slots:{toolbar:fxe},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},mxe=[{field:"id",headerName:"ID",width:90},{field:"appointment_day",headerName:"Day",width:150,editable:!1},{field:"appointment_time",headerName:"Time",width:150,editable:!1},{field:"patient_name",headerName:"Doctor",width:150,editable:!1},{field:"status",width:150,headerName:"Status",editable:!1},{field:"observations",headerName:"Observations",width:150,editable:!1},{field:"heart_rate",headerName:"Heart Rate",width:150,editable:!1},{field:"blood_pressure_systolic",headerName:"B.P. systolic",width:150,editable:!1},{field:"blood_pressure_diastolic",headerName:"B.P. diastolic",width:150,editable:!1},{field:"oxygen_saturation",headerName:"Oxygen Saturation",width:150,editable:!1}];function gxe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function yxe(){return p.jsx(Eu,{children:p.jsx(gxe,{})})}const WE=new Date().toISOString().slice(0,10),vxe=new Date,GE=new Date(vxe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),xxe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=gu(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=mu(d=>d.userHeartDataList.userData);return h.useEffect(()=>{n&&o(Vh({page:1,appointment_day_after:WE,appointment_day_before:GE,user_id:c,rejectValue:"Failed to fetch Appointment."})).then(()=>r(!1))},[o,WE,GE,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const g=Yt(f.appointment_day);return g.isAfter(s)&&g.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Cardiac Chart"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(To,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(Tu,{rows:e,columns:mxe,slots:{toolbar:yxe},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})},bxe=[{field:"id",headerName:"ID",width:90},{field:"expiration_date",headerName:"Expiration Date",width:150,editable:!1},{field:"issue_date",headerName:"Issue Date",width:150,editable:!1},{field:"doctor_full_name",headerName:"Doctor",width:150,editable:!1},{field:"medication",width:150,headerName:"Medication",editable:!1},{field:"dosage",headerName:"Dosage",width:150,editable:!1},{field:"frequency",headerName:"Frequency",width:150,editable:!1},{field:"refill_info",headerName:"Refill Info",width:150,editable:!1},{field:"instructions",headerName:"Instructions",width:150,editable:!1}];function wxe(){const e=Ze(),t=()=>{e.current.exportDataAsCsv()};return p.jsx(rt,{onClick:t,children:"Download CSV"})}function Cxe(){return p.jsx(Eu,{children:p.jsx(wxe,{})})}const KE=new Date().toISOString().slice(0,10),Sxe=new Date,YE=new Date(Sxe.getTime()+7*24*60*60*1e3).toISOString().slice(0,10),kxe=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!0),o=gu(),[s,i]=h.useState(null),[a,l]=h.useState(null),c=1,u=mu(d=>d.userPrescriptionDataList.userData);return h.useEffect(()=>{n&&o(Kh({page:1,expiration_date_after:KE,expiration_date_before:YE,user_id:c,rejectValue:"Failed to fetch Prescription."})).then(()=>r(!1))},[o,KE,YE,c,n]),h.useEffect(()=>{if(s&&a){const d=u.filter(f=>{const g=Yt(f.expiration_date);return g.isAfter(s)&&g.isBefore(a)});t(d)}else t(u)},[u,s,a]),p.jsxs(Ne,{sx:{height:"100%"},children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:"Prescription"}),p.jsxs(hl,{dateAdapter:wu,children:[p.jsx(To,{label:"Start Date",value:s,onChange:d=>{i(d)}}),p.jsx(To,{label:"End Date",value:a,onChange:d=>{l(d)}})]}),p.jsx(Tu,{rows:e,columns:bxe,slots:{toolbar:Cxe},slotProps:{toolbar:{csvOptions:{allColumns:!0,fileName:"gridData"}}},initialState:{pagination:{paginationModel:{pageSize:10,page:0}}},pageSizeOptions:[10,25,50],checkboxSelection:!0,disableRowSelectionOnClick:!0})]})};class Pxe extends h.Component{constructor(n){super(n);yi(this,"handleChange",n=>r=>{this.setState({...this.state,[n]:r.target.checked})});this.state={showCardiacChart:!0,showMaternityChart:!1,showDiabetesChart:!0,showWeightChart:!0,showUserAppointments:!0,showPrescriptions:!0}}render(){return p.jsxs("div",{children:[p.jsxs(Jo,{children:[p.jsx(Ce,{variant:"h4",gutterBottom:!0,children:"User Information"}),p.jsxs(Hw,{children:[p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showPrescriptions,onChange:this.handleChange("showPrescriptions"),value:"prescriptions",color:"primary"}),label:"Prescriptions"}),p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showCardiacChart,onChange:this.handleChange("showCardiacChart"),value:"cardiacChart",color:"primary"}),label:"Cardiac Chart"}),p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showMaternityChart,onChange:this.handleChange("showMaternityChart"),value:"maternityChart",color:"primary"}),label:"Maternity Chart"}),p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showDiabetesChart,onChange:this.handleChange("showDiabetesChart"),value:"diabetesChart",color:"primary"}),label:"Diabetes Chart"}),p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showWeightChart,onChange:this.handleChange("showWeightChart"),value:"weightChart",color:"primary"}),label:"Weight Chart"}),p.jsx(fo,{control:p.jsx(Mi,{checked:this.state.showUserAppointments,onChange:this.handleChange("showUserAppointments"),value:"userAppointments",color:"primary"}),label:"User Appointments"})]})]}),p.jsx(Jo,{children:p.jsxs(cr,{container:!0,spacing:2,children:[this.state.showPrescriptions&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(kxe,{})}),this.state.showPrescriptions&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(dn,{})}),this.state.showCardiacChart&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(xxe,{})}),this.state.showCardiacChart&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(dn,{})}),this.state.showMaternityChart&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(hxe,{})}),this.state.showMaternityChart&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(dn,{})}),p.jsxs(cr,{container:!0,spacing:2,children:[this.state.showDiabetesChart&&p.jsx(cr,{item:!0,xs:12,md:6,children:p.jsx(oxe,{})}),this.state.showWeightChart&&p.jsx(cr,{item:!0,xs:12,md:6,children:p.jsx(cxe,{})})]}),(this.state.showDiabetesChart||this.state.showWeightChart)&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(dn,{})}),this.state.showUserAppointments&&p.jsx(cr,{item:!0,xs:12,children:p.jsx(ipe,{})})]})})]})}}const qE=document.getElementById("root");qE?lR(qE).render(p.jsx(h.StrictMode,{children:p.jsx(OL,{children:p.jsx(sz,{store:X7,children:p.jsx(T_,{children:p.jsxs(U0,{children:[p.jsx(I0,{enableColorScheme:!0}),p.jsx(yV,{}),p.jsxs(M_,{children:[p.jsx(ba,{path:"/demo",element:p.jsx(Pxe,{})}),p.jsx(ba,{path:"/signin",element:p.jsx(CZ,{})}),p.jsx(ba,{path:"/signup",element:p.jsx(EZ,{})}),p.jsx(ba,{path:"/blog",element:p.jsx(LZ,{})}),p.jsx(ba,{path:"/faq",element:p.jsx(XQ,{})}),p.jsx(ba,{path:"/",element:p.jsxs(p.Fragment,{children:[p.jsx(CQ,{}),p.jsx(dn,{}),p.jsx(tZ,{}),p.jsxs("div",{style:{display:"none"},children:[p.jsx(MQ,{}),p.jsx(UQ,{}),p.jsx(dn,{}),p.jsx(qQ,{}),p.jsx(dn,{}),p.jsx(OQ,{}),p.jsx(dn,{}),p.jsx(_Q,{}),p.jsx(dn,{})]})]})})]})]})})})})})):console.error("Root element not found"); diff --git a/index.html b/index.html index 1603fde..22c7f2c 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Sanjeevini - +