diff --git a/dist/assets/index-BamcJAsd.js b/dist/assets/index-BamcJAsd.js new file mode 100644 index 0000000..9e19195 --- /dev/null +++ b/dist/assets/index-BamcJAsd.js @@ -0,0 +1,287 @@ +var WO=e=>{throw TypeError(e)};var Dy=(e,t,r)=>t.has(e)||WO("Cannot "+r);var q=(e,t,r)=>(Dy(e,t,"read from private field"),r?r.call(e):t.get(e)),nt=(e,t,r)=>t.has(e)?WO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ne=(e,t,r,n)=>(Dy(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ct=(e,t,r)=>(Dy(e,t,"access private method"),r);var bp=(e,t,r,n)=>({set _(a){Ne(e,t,a,r)},get _(){return q(e,t,n)}});function LT(e,t){for(var r=0;rn[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var NT={exports:{}},$m={},DT={exports:{}},vt={};/** + * @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 Df=Symbol.for("react.element"),RN=Symbol.for("react.portal"),TN=Symbol.for("react.fragment"),jN=Symbol.for("react.strict_mode"),IN=Symbol.for("react.profiler"),AN=Symbol.for("react.provider"),MN=Symbol.for("react.context"),FN=Symbol.for("react.forward_ref"),LN=Symbol.for("react.suspense"),NN=Symbol.for("react.memo"),DN=Symbol.for("react.lazy"),HO=Symbol.iterator;function BN(e){return e===null||typeof e!="object"?null:(e=HO&&e[HO]||e["@@iterator"],typeof e=="function"?e:null)}var BT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zT=Object.assign,UT={};function uc(e,t,r){this.props=e,this.context=t,this.refs=UT,this.updater=r||BT}uc.prototype.isReactComponent={};uc.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")};uc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VT(){}VT.prototype=uc.prototype;function Uw(e,t,r){this.props=e,this.context=t,this.refs=UT,this.updater=r||BT}var Vw=Uw.prototype=new VT;Vw.constructor=Uw;zT(Vw,uc.prototype);Vw.isPureReactComponent=!0;var qO=Array.isArray,WT=Object.prototype.hasOwnProperty,Ww={current:null},HT={key:!0,ref:!0,__self:!0,__source:!0};function qT(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)WT.call(t,n)&&!HT.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1>>1,ae=T[ie];if(0>>1;iea(be,X))_ea(ke,be)?(T[ie]=ke,T[_e]=X,ie=_e):(T[ie]=be,T[ye]=X,ie=ye);else if(_ea(ke,X))T[ie]=ke,T[_e]=X,ie=_e;else break e}}return V}function a(T,V){var X=T.sortIndex-V.sortIndex;return X!==0?X:T.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,d=null,p=3,h=!1,m=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var V=r(l);V!==null;){if(V.callback===null)n(l);else if(V.startTime<=T)n(l),V.sortIndex=V.expirationTime,t(u,V);else break;V=r(l)}}function E(T){if(g=!1,y(T),!m)if(r(u)!==null)m=!0,U(v);else{var V=r(l);V!==null&&W(E,V.startTime-T)}}function v(T,V){m=!1,g&&(g=!1,x(O),O=-1),h=!0;var X=p;try{for(y(V),d=r(u);d!==null&&(!(d.expirationTime>V)||T&&!$());){var ie=d.callback;if(typeof ie=="function"){d.callback=null,p=d.priorityLevel;var ae=ie(d.expirationTime<=V);V=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===r(u)&&n(u),y(V)}else n(u);d=r(u)}if(d!==null)var pe=!0;else{var ye=r(l);ye!==null&&W(E,ye.startTime-V),pe=!1}return pe}finally{d=null,p=X,h=!1}}var S=!1,w=null,O=-1,C=5,P=-1;function $(){return!(e.unstable_now()-PT||125ie?(T.sortIndex=X,t(l,T),r(u)===null&&T===r(l)&&(g?(x(O),O=-1):g=!0,W(E,X-ie))):(T.sortIndex=ae,t(u,T),m||h||(m=!0,U(v))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var V=p;return function(){var X=p;p=V;try{return T.apply(this,arguments)}finally{p=X}}}})(YT);XT.exports=YT;var YN=XT.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 JN=f,Kn=YN;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sb=Object.prototype.hasOwnProperty,ZN=/^[: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]*$/,GO={},QO={};function eD(e){return Sb.call(QO,e)?!0:Sb.call(GO,e)?!1:ZN.test(e)?QO[e]=!0:(GO[e]=!0,!1)}function tD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rD(e,t,r,n){if(t===null||typeof t>"u"||tD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qr[e]=new vn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qr[t]=new vn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qr[e]=new vn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qr[e]=new vn(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){qr[e]=new vn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qr[e]=new vn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qr[e]=new vn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qr[e]=new vn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qr[e]=new vn(e,5,!1,e.toLowerCase(),null,!1,!1)});var qw=/[\-:]([a-z])/g;function Kw(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(qw,Kw);qr[t]=new vn(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(qw,Kw);qr[t]=new vn(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(qw,Kw);qr[t]=new vn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qr[e]=new vn(e,1,!1,e.toLowerCase(),null,!1,!1)});qr.xlinkHref=new vn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qr[e]=new vn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gw(e,t,r,n){var a=qr.hasOwnProperty(t)?qr[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` +`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Uy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?pd(e):""}function nD(e){switch(e.tag){case 5:return pd(e.type);case 16:return pd("Lazy");case 13:return pd("Suspense");case 19:return pd("SuspenseList");case 0:case 2:case 15:return e=Vy(e.type,!1),e;case 11:return e=Vy(e.type.render,!1),e;case 1:return e=Vy(e.type,!0),e;default:return""}}function $b(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 zl:return"Fragment";case Bl:return"Portal";case Ob:return"Profiler";case Qw:return"StrictMode";case Cb:return"Suspense";case Pb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ej:return(e.displayName||"Context")+".Consumer";case ZT:return(e._context.displayName||"Context")+".Provider";case Xw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yw:return t=e.displayName||null,t!==null?t:$b(e.type)||"Memo";case di:t=e._payload,e=e._init;try{return $b(e(t))}catch{}}return null}function aD(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 $b(t);case 8:return t===Qw?"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 rj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oD(e){var t=rj(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _p(e){e._valueTracker||(e._valueTracker=oD(e))}function nj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=rj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Qv(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 kb(e,t){var r=t.checked;return ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function YO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=zi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function aj(e,t){t=t.checked,t!=null&&Gw(e,"checked",t,!1)}function Rb(e,t){aj(e,t);var r=zi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Tb(e,t.type,zi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function JO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Tb(e,t,r){(t!=="number"||Qv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var vd=Array.isArray;function iu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _d={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},iD=["Webkit","ms","Moz","O"];Object.keys(_d).forEach(function(e){iD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_d[t]=_d[e]})});function lj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_d.hasOwnProperty(e)&&_d[e]?(""+t).trim():t+"px"}function uj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=lj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var sD=ar({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 Ab(e,t){if(t){if(sD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function Mb(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 Fb=null;function Jw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lb=null,su=null,lu=null;function tC(e){if(e=Uf(e)){if(typeof Lb!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=Im(t),Lb(e.stateNode,e.type,t))}}function cj(e){su?lu?lu.push(e):lu=[e]:su=e}function dj(){if(su){var e=su,t=lu;if(lu=su=null,tC(e),t)for(e=0;e>>=0,e===0?32:31-(yD(e)/bD|0)|0}var Sp=64,Op=4194304;function hd(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 Zv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=hd(s):(o&=i,o!==0&&(n=hd(o)))}else i=r&~a,i!==0?n=hd(i):o!==0&&(n=hd(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Bf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fa(t),e[t]=r}function ED(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Sd),cC=" ",dC=!1;function Tj(e,t){switch(e){case"keyup":return YD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function ZD(e,t){switch(e){case"compositionend":return jj(t);case"keypress":return t.which!==32?null:(dC=!0,cC);case"textInput":return e=t.data,e===cC&&dC?null:e;default:return null}}function e6(e,t){if(Ul)return e==="compositionend"||!i_&&Tj(e,t)?(e=kj(),sv=n_=Ci=null,Ul=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hC(r)}}function Fj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lj(){for(var e=window,t=Qv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Qv(e.document)}return t}function s_(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 u6(e){var t=Lj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Fj(r.ownerDocument.documentElement,r)){if(n!==null&&s_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=mC(r,o);var i=mC(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Vl=null,Vb=null,Cd=null,Wb=!1;function gC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wb||Vl==null||Vl!==Qv(n)||(n=Vl,"selectionStart"in n&&s_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Cd&&of(Cd,n)||(Cd=n,n=rh(Vb,"onSelect"),0ql||(e.current=Xb[ql],Xb[ql]=null,ql--)}function Wt(e,t){ql++,Xb[ql]=e.current,e.current=t}var Ui={},tn=qi(Ui),$n=qi(!1),Qs=Ui;function Uu(e,t){var r=e.type.contextTypes;if(!r)return Ui;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function kn(e){return e=e.childContextTypes,e!=null}function ah(){Gt($n),Gt(tn)}function SC(e,t,r){if(tn.current!==Ui)throw Error(Oe(168));Wt(tn,t),Wt($n,r)}function qj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Oe(108,aD(e)||"Unknown",a));return ar({},r,n)}function oh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,Qs=tn.current,Wt(tn,e),Wt($n,$n.current),!0}function OC(e,t,r){var n=e.stateNode;if(!n)throw Error(Oe(169));r?(e=qj(e,t,Qs),n.__reactInternalMemoizedMergedChildContext=e,Gt($n),Gt(tn),Wt(tn,e)):Gt($n),Wt($n,r)}var To=null,Am=!1,n0=!1;function Kj(e){To===null?To=[e]:To.push(e)}function w6(e){Am=!0,Kj(e)}function Ki(){if(!n0&&To!==null){n0=!0;var e=0,t=It;try{var r=To;for(It=1;e>=i,a-=i,Mo=1<<32-Fa(t)+a|r<O?(C=w,w=null):C=w.sibling;var P=p(x,w,y[O],E);if(P===null){w===null&&(w=C);break}e&&w&&P.alternate===null&&t(x,w),b=o(P,b,O),S===null?v=P:S.sibling=P,S=P,w=C}if(O===y.length)return r(x,w),Jt&&cs(x,O),v;if(w===null){for(;OO?(C=w,w=null):C=w.sibling;var $=p(x,w,P.value,E);if($===null){w===null&&(w=C);break}e&&w&&$.alternate===null&&t(x,w),b=o($,b,O),S===null?v=$:S.sibling=$,S=$,w=C}if(P.done)return r(x,w),Jt&&cs(x,O),v;if(w===null){for(;!P.done;O++,P=y.next())P=d(x,P.value,E),P!==null&&(b=o(P,b,O),S===null?v=P:S.sibling=P,S=P);return Jt&&cs(x,O),v}for(w=n(x,w);!P.done;O++,P=y.next())P=h(w,x,O,P.value,E),P!==null&&(e&&P.alternate!==null&&w.delete(P.key===null?O:P.key),b=o(P,b,O),S===null?v=P:S.sibling=P,S=P);return e&&w.forEach(function(R){return t(x,R)}),Jt&&cs(x,O),v}function _(x,b,y,E){if(typeof y=="object"&&y!==null&&y.type===zl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wp:e:{for(var v=y.key,S=b;S!==null;){if(S.key===v){if(v=y.type,v===zl){if(S.tag===7){r(x,S.sibling),b=a(S,y.props.children),b.return=x,x=b;break e}}else if(S.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===di&&$C(v)===S.type){r(x,S.sibling),b=a(S,y.props),b.ref=Gc(x,S,y),b.return=x,x=b;break e}r(x,S);break}else t(x,S);S=S.sibling}y.type===zl?(b=Us(y.props.children,x.mode,E,y.key),b.return=x,x=b):(E=hv(y.type,y.key,y.props,null,x.mode,E),E.ref=Gc(x,b,y),E.return=x,x=E)}return i(x);case Bl:e:{for(S=y.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){r(x,b.sibling),b=a(b,y.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else t(x,b);b=b.sibling}b=d0(y,x.mode,E),b.return=x,x=b}return i(x);case di:return S=y._init,_(x,b,S(y._payload),E)}if(vd(y))return m(x,b,y,E);if(Vc(y))return g(x,b,y,E);jp(x,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(r(x,b.sibling),b=a(b,y),b.return=x,x=b):(r(x,b),b=c0(y,x.mode,E),b.return=x,x=b),i(x)):r(x,b)}return _}var Wu=Yj(!0),Jj=Yj(!1),lh=qi(null),uh=null,Ql=null,d_=null;function f_(){d_=Ql=uh=null}function p_(e){var t=lh.current;Gt(lh),e._currentValue=t}function Zb(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function cu(e,t){uh=e,d_=Ql=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pn=!0),e.firstContext=null)}function pa(e){var t=e._currentValue;if(d_!==e)if(e={context:e,memoizedValue:t,next:null},Ql===null){if(uh===null)throw Error(Oe(308));Ql=e,uh.dependencies={lanes:0,firstContext:e}}else Ql=Ql.next=e;return t}var Cs=null;function v_(e){Cs===null?Cs=[e]:Cs.push(e)}function Zj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,v_(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ho(e,n)}function Ho(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var fi=!1;function h_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eI(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 Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,xt&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ho(e,r)}return a=n.interleaved,a===null?(t.next=t,v_(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ho(e,r)}function uv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,e_(e,r)}}function kC(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ch(e,t,r,n){var a=e.updateQueue;fi=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var d=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,h=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=r,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,d,p):m,p==null)break e;d=ar({},d,p);break e;case 2:fi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(c===null&&(u=d),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Js|=i,e.lanes=i,e.memoizedState=d}}function RC(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=o0.transition;o0.transition={};try{e(!1),t()}finally{It=r,o0.transition=n}}function gI(){return va().memoizedState}function O6(e,t,r){var n=Ni(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},yI(e))bI(t,r);else if(r=Zj(e,t,r,n),r!==null){var a=fn();La(r,e,n,a),xI(r,t,n)}}function C6(e,t,r){var n=Ni(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(yI(e))bI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Na(s,i)){var u=t.interleaved;u===null?(a.next=a,v_(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Zj(e,t,a,n),r!==null&&(a=fn(),La(r,e,n,a),xI(r,t,n))}}function yI(e){var t=e.alternate;return e===nr||t!==null&&t===nr}function bI(e,t){Pd=fh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function xI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,e_(e,r)}}var ph={readContext:pa,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},P6={readContext:pa,useCallback:function(e,t){return qa().memoizedState=[e,t===void 0?null:t],e},useContext:pa,useEffect:jC,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,dv(4194308,4,fI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return dv(4194308,4,e,t)},useInsertionEffect:function(e,t){return dv(4,2,e,t)},useMemo:function(e,t){var r=qa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=O6.bind(null,nr,e),[n.memoizedState,e]},useRef:function(e){var t=qa();return e={current:e},t.memoizedState=e},useState:TC,useDebugValue:E_,useDeferredValue:function(e){return qa().memoizedState=e},useTransition:function(){var e=TC(!1),t=e[0];return e=S6.bind(null,e[1]),qa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=nr,a=qa();if(Jt){if(r===void 0)throw Error(Oe(407));r=r()}else{if(r=t(),Lr===null)throw Error(Oe(349));Ys&30||aI(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,jC(iI.bind(null,n,o,e),[e]),n.flags|=2048,vf(9,oI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=qa(),t=Lr.identifierPrefix;if(Jt){var r=Fo,n=Mo;r=(n&~(1<<32-Fa(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ff++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[no]=t,e[uf]=n,RI(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mb(r,n),r){case"dialog":qt("cancel",e),qt("close",e),a=n;break;case"iframe":case"object":case"embed":qt("load",e),a=n;break;case"video":case"audio":for(a=0;aKu&&(t.flags|=128,n=!0,Qc(o,!1),t.lanes=4194304)}else{if(!n)if(e=dh(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Jt)return Xr(t),null}else 2*yr()-o.renderingStartTime>Ku&&r!==1073741824&&(t.flags|=128,n=!0,Qc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=yr(),t.sibling=null,r=rr.current,Wt(rr,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return k_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zn&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function M6(e,t){switch(u_(t),t.tag){case 1:return kn(t.type)&&ah(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hu(),Gt($n),Gt(tn),y_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return g_(t),null;case 13:if(Gt(rr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(rr),null;case 4:return Hu(),null;case 10:return p_(t.type._context),null;case 22:case 23:return k_(),null;case 24:return null;default:return null}}var Ap=!1,Zr=!1,F6=typeof WeakSet=="function"?WeakSet:Set,Be=null;function Xl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){cr(e,t,n)}else r.current=null}function l1(e,t,r){try{r()}catch(n){cr(e,t,n)}}var VC=!1;function L6(e,t){if(Hb=eh,e=Lj(),s_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(s=i+a),d!==o||n!==0&&d.nodeType!==3||(u=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(qb={focusedElem:e,selectionRange:r},eh=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){t=Be;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,_=m.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:ka(t.type,g),_);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(E){cr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}return m=VC,VC=!1,m}function $d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&l1(t,r,o)}a=a.next}while(a!==n)}}function Lm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function u1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function II(e){var t=e.alternate;t!==null&&(e.alternate=null,II(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[no],delete t[uf],delete t[Qb],delete t[b6],delete t[x6])),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 AI(e){return e.tag===5||e.tag===3||e.tag===4}function WC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AI(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 c1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=nh));else if(n!==4&&(e=e.child,e!==null))for(c1(e,t,r),e=e.sibling;e!==null;)c1(e,t,r),e=e.sibling}function d1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(d1(e,t,r),e=e.sibling;e!==null;)d1(e,t,r),e=e.sibling}var Ur=null,Ta=!1;function ii(e,t,r){for(r=r.child;r!==null;)MI(e,t,r),r=r.sibling}function MI(e,t,r){if(lo&&typeof lo.onCommitFiberUnmount=="function")try{lo.onCommitFiberUnmount(km,r)}catch{}switch(r.tag){case 5:Zr||Xl(r,t);case 6:var n=Ur,a=Ta;Ur=null,ii(e,t,r),Ur=n,Ta=a,Ur!==null&&(Ta?(e=Ur,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ur.removeChild(r.stateNode));break;case 18:Ur!==null&&(Ta?(e=Ur,r=r.stateNode,e.nodeType===8?r0(e.parentNode,r):e.nodeType===1&&r0(e,r),nf(e)):r0(Ur,r.stateNode));break;case 4:n=Ur,a=Ta,Ur=r.stateNode.containerInfo,Ta=!0,ii(e,t,r),Ur=n,Ta=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&l1(r,t,i),a=a.next}while(a!==n)}ii(e,t,r);break;case 1:if(!Zr&&(Xl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){cr(r,t,s)}ii(e,t,r);break;case 21:ii(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,ii(e,t,r),Zr=n):ii(e,t,r);break;default:ii(e,t,r)}}function HC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new F6),t.forEach(function(n){var a=q6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function $a(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*D6(n/1960))-n,10e?16:e,Pi===null)var n=!1;else{if(e=Pi,Pi=null,mh=0,xt&6)throw Error(Oe(331));var a=xt;for(xt|=4,Be=e.current;Be!==null;){var o=Be,i=o.child;if(Be.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uyr()-P_?zs(e,0):C_|=r),Rn(e,t)}function VI(e,t){t===0&&(e.mode&1?(t=Op,Op<<=1,!(Op&130023424)&&(Op=4194304)):t=1);var r=fn();e=Ho(e,t),e!==null&&(Bf(e,t,r),Rn(e,r))}function H6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),VI(e,r)}function q6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Oe(314))}n!==null&&n.delete(t),VI(e,r)}var WI;WI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$n.current)Pn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Pn=!1,I6(e,t,r);Pn=!!(e.flags&131072)}else Pn=!1,Jt&&t.flags&1048576&&Gj(t,sh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;fv(e,t),e=t.pendingProps;var a=Uu(t,tn.current);cu(t,r),a=x_(null,t,n,e,a,r);var o=w_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kn(n)?(o=!0,oh(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,h_(t),a.updater=Fm,t.stateNode=a,a._reactInternals=t,t1(t,n,e,r),t=a1(null,t,n,!0,o,r)):(t.tag=0,Jt&&o&&l_(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(fv(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=G6(n),e=ka(n,e),a){case 0:t=n1(null,t,n,e,r);break e;case 1:t=BC(null,t,n,e,r);break e;case 11:t=NC(null,t,n,e,r);break e;case 14:t=DC(null,t,n,ka(n.type,e),r);break e}throw Error(Oe(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ka(n,a),n1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ka(n,a),BC(e,t,n,a,r);case 3:e:{if(PI(t),e===null)throw Error(Oe(387));n=t.pendingProps,o=t.memoizedState,a=o.element,eI(e,t),ch(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=qu(Error(Oe(423)),t),t=zC(e,t,n,r,a);break e}else if(n!==a){a=qu(Error(Oe(424)),t),t=zC(e,t,n,r,a);break e}else for(Wn=Mi(t.stateNode.containerInfo.firstChild),Hn=t,Jt=!0,Ia=null,r=Jj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=qo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return tI(t),e===null&&Jb(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Kb(n,a)?i=null:o!==null&&Kb(n,o)&&(t.flags|=32),CI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&Jb(t),null;case 13:return $I(e,t,r);case 4:return m_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ka(n,a),NC(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Wt(lh,n._currentValue),n._currentValue=i,o!==null)if(Na(o.value,i)){if(o.children===a.children&&!$n.current){t=qo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Do(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),Zb(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Oe(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Zb(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,cu(t,r),a=pa(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=ka(n,t.pendingProps),a=ka(n.type,a),DC(e,t,n,a,r);case 15:return SI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ka(n,a),fv(e,t),t.tag=1,kn(n)?(e=!0,oh(t)):e=!1,cu(t,r),wI(t,n,a),t1(t,n,a,r),a1(null,t,n,!0,e,r);case 19:return kI(e,t,r);case 22:return OI(e,t,r)}throw Error(Oe(156,t.tag))};function HI(e,t){return yj(e,t)}function K6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(e,t,r,n){return new K6(e,t,r,n)}function T_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function G6(e){if(typeof e=="function")return T_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xw)return 11;if(e===Yw)return 14}return 2}function Di(e,t){var r=e.alternate;return r===null?(r=la(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function hv(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")T_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case zl:return Us(r.children,a,o,t);case Qw:i=8,a|=8;break;case Ob:return e=la(12,r,t,a|2),e.elementType=Ob,e.lanes=o,e;case Cb:return e=la(13,r,t,a),e.elementType=Cb,e.lanes=o,e;case Pb:return e=la(19,r,t,a),e.elementType=Pb,e.lanes=o,e;case tj:return Dm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ZT:i=10;break e;case ej:i=9;break e;case Xw:i=11;break e;case Yw:i=14;break e;case di:i=16,n=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=la(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Us(e,t,r,n){return e=la(7,e,n,t),e.lanes=r,e}function Dm(e,t,r,n){return e=la(22,e,n,t),e.elementType=tj,e.lanes=r,e.stateNode={isHidden:!1},e}function c0(e,t,r){return e=la(6,e,null,t),e.lanes=r,e}function d0(e,t,r){return t=la(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q6(e,t,r,n,a){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=Hy(0),this.expirationTimes=Hy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function j_(e,t,r,n,a,o,i,s,u){return e=new Q6(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=la(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},h_(o),e}function X6(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QI)}catch(e){console.error(e)}}QI(),QT.exports=Qn;var Wf=QT.exports;const gd=pr(Wf),tB=LT({__proto__:null,default:gd},[Wf]);var ZC=Wf;Eb.createRoot=ZC.createRoot,Eb.hydrateRoot=ZC.hydrateRoot;var F_=f.createContext(void 0);F_.displayName="AuthContext";var Wm={loginUrl:"/login",afterLoginUrl:"/"},Jo=function(){return f.useContext(F_)},fc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gu=typeof window>"u"||"Deno"in globalThis;function ea(){}function rB(e,t){return typeof e=="function"?e(t):e}function m1(e){return typeof e=="number"&&e>=0&&e!==1/0}function XI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fu(e,t){return typeof e=="function"?e(t):e}function eP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==L_(i,t.options))return!1}else if(!mf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function tP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(el(t.options.mutationKey)!==el(o))return!1}else if(!mf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function L_(e,t){return((t==null?void 0:t.queryKeyHashFn)||el)(e)}function el(e){return JSON.stringify(e,(t,r)=>g1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function mf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!mf(e[r],t[r])):!1}function YI(e,t){if(e===t)return e;const r=rP(e)&&rP(t);if(r||g1(e)&&g1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function y1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?YI(e,t):t}function aB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function oB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var JI=Symbol(),ZI=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===JI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,As,yi,$u,PT,iB=(PT=class extends fc{constructor(){super();nt(this,As);nt(this,yi);nt(this,$u);Ne(this,$u,t=>{if(!Gu&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,yi)||this.setEventListener(q(this,$u))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,yi))==null||t.call(this),Ne(this,yi,void 0))}setEventListener(t){var r;Ne(this,$u,t),(r=q(this,yi))==null||r.call(this),Ne(this,yi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){q(this,As)!==t&&(Ne(this,As,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof q(this,As)=="boolean"?q(this,As):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},As=new WeakMap,yi=new WeakMap,$u=new WeakMap,PT),N_=new iB,ku,bi,Ru,$T,sB=($T=class extends fc{constructor(){super();nt(this,ku,!0);nt(this,bi);nt(this,Ru);Ne(this,Ru,t=>{if(!Gu&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,bi)||this.setEventListener(q(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,bi))==null||t.call(this),Ne(this,bi,void 0))}setEventListener(t){var r;Ne(this,Ru,t),(r=q(this,bi))==null||r.call(this),Ne(this,bi,t(this.setOnline.bind(this)))}setOnline(t){q(this,ku)!==t&&(Ne(this,ku,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return q(this,ku)}},ku=new WeakMap,bi=new WeakMap,Ru=new WeakMap,$T),xh=new sB;function lB(e){return Math.min(1e3*2**e,3e4)}function eA(e){return(e??"online")==="online"?xh.isOnline():!0}var tA=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function f0(e){return e instanceof tA}function rA(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,b)=>{o=x,i=b}),u=x=>{var b;n||(m(new tA(x)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>N_.isFocused()&&(e.networkMode==="always"||xh.isOnline())&&e.canRun(),p=()=>eA(e.networkMode)&&e.canRun(),h=x=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,x),a==null||a(),o(x))},m=x=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,x),a==null||a(),i(x))},g=()=>new Promise(x=>{var b;a=y=>{(n||d())&&x(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),_=()=>{if(n)return;let x;const b=r===0?e.initialPromise:void 0;try{x=b??e.fn()}catch(y){x=Promise.reject(y)}Promise.resolve(x).then(h).catch(y=>{var O;if(n)return;const E=e.retry??(Gu?0:3),v=e.retryDelay??lB,S=typeof v=="function"?v(r,y):v,w=E===!0||typeof E=="number"&&rd()?void 0:g()).then(()=>{t?m(y):_()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?_():g().then(_),s)}}function uB(){let e=[],t=0,r=p=>{p()},n=p=>{p()},a=p=>setTimeout(p,0);const o=p=>{a=p},i=p=>{let h;t++;try{h=p()}finally{t--,t||l()}return h},s=p=>{t?e.push(p):a(()=>{r(p)})},u=p=>(...h)=>{s(()=>{p(...h)})},l=()=>{const p=e;e=[],p.length&&a(()=>{n(()=>{p.forEach(h=>{r(h)})})})};return{batch:i,batchCalls:u,schedule:s,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p},setScheduler:o}}var br=uB(),Ms,kT,nA=(kT=class{constructor(){nt(this,Ms)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m1(this.gcTime)&&Ne(this,Ms,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gu?1/0:5*60*1e3))}clearGcTimeout(){q(this,Ms)&&(clearTimeout(q(this,Ms)),Ne(this,Ms,void 0))}},Ms=new WeakMap,kT),Tu,ju,Zn,Jr,Mf,Fs,Ra,$o,RT,cB=(RT=class extends nA{constructor(t){super();nt(this,Ra);nt(this,Tu);nt(this,ju);nt(this,Zn);nt(this,Jr);nt(this,Mf);nt(this,Fs);Ne(this,Fs,!1),Ne(this,Mf,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ne(this,Zn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ne(this,Tu,t.state||dB(this.options)),this.state=q(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=q(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...q(this,Mf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,Zn).remove(this)}setData(t,r){const n=y1(this.state.data,t,this.options);return ct(this,Ra,$o).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ct(this,Ra,$o).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=q(this,Jr))==null?void 0:n.promise;return(a=q(this,Jr))==null||a.cancel(t),r?r.then(ea).catch(ea):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,Tu))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!XI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),q(this,Zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(q(this,Jr)&&(q(this,Fs)?q(this,Jr).cancel({revert:!0}):q(this,Jr).cancelRetry()),this.scheduleGc()),q(this,Zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,Ra,$o).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,Jr))return q(this,Jr).continueRetry(),q(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Ne(this,Fs,!0),n.signal)})},o=()=>{const d=ZI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),Ne(this,Fs,!1),this.options.persister?this.options.persister(d,p,this):d(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),Ne(this,ju,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&ct(this,Ra,$o).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=d=>{var p,h,m,g;f0(d)&&d.silent||ct(this,Ra,$o).call(this,{type:"error",error:d}),f0(d)||((h=(p=q(this,Zn).config).onError)==null||h.call(p,d,this),(g=(m=q(this,Zn).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ne(this,Jr,rA({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var p,h,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(h=(p=q(this,Zn).config).onSuccess)==null||h.call(p,d,this),(g=(m=q(this,Zn).config).onSettled)==null||g.call(m,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,p)=>{ct(this,Ra,$o).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{ct(this,Ra,$o).call(this,{type:"pause"})},onContinue:()=>{ct(this,Ra,$o).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),q(this,Jr).start()}},Tu=new WeakMap,ju=new WeakMap,Zn=new WeakMap,Jr=new WeakMap,Mf=new WeakMap,Fs=new WeakMap,Ra=new WeakSet,$o=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aA(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return f0(a)&&a.revert&&q(this,ju)?{...q(this,ju),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),br.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),q(this,Zn).notify({query:this,type:"updated",action:t})})},RT);function aA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ga,TT,fB=(TT=class extends fc{constructor(t={}){super();nt(this,Ga);this.config=t,Ne(this,Ga,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??L_(a,r);let i=this.get(o);return i||(i=new cB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){q(this,Ga).has(t.queryHash)||(q(this,Ga).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=q(this,Ga).get(t.queryHash);r&&(t.destroy(),r===t&&q(this,Ga).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return q(this,Ga).get(t)}getAll(){return[...q(this,Ga).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>eP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>eP(t,n)):r}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){br.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){br.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ga=new WeakMap,TT),Qa,ln,Ls,Xa,ui,jT,pB=(jT=class extends nA{constructor(t){super();nt(this,Xa);nt(this,Qa);nt(this,ln);nt(this,Ls);this.mutationId=t.mutationId,Ne(this,ln,t.mutationCache),Ne(this,Qa,[]),this.state=t.state||oA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){q(this,Qa).includes(t)||(q(this,Qa).push(t),this.clearGcTimeout(),q(this,ln).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ne(this,Qa,q(this,Qa).filter(r=>r!==t)),this.scheduleGc(),q(this,ln).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){q(this,Qa).length||(this.state.status==="pending"?this.scheduleGc():q(this,ln).remove(this))}continue(){var t;return((t=q(this,Ls))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,d,p,h,m,g,_,x,b,y,E,v,S,w;Ne(this,Ls,rA({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{ct(this,Xa,ui).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{ct(this,Xa,ui).call(this,{type:"pause"})},onContinue:()=>{ct(this,Xa,ui).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,ln).canRun(this)}));const r=this.state.status==="pending",n=!q(this,Ls).canStart();try{if(!r){ct(this,Xa,ui).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=q(this,ln).config).onMutate)==null?void 0:o.call(a,t,this));const C=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));C!==this.state.context&&ct(this,Xa,ui).call(this,{type:"pending",context:C,variables:t,isPaused:n})}const O=await q(this,Ls).start();return await((l=(u=q(this,ln).config).onSuccess)==null?void 0:l.call(u,O,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,O,t,this.state.context)),await((h=(p=q(this,ln).config).onSettled)==null?void 0:h.call(p,O,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,O,null,t,this.state.context)),ct(this,Xa,ui).call(this,{type:"success",data:O}),O}catch(O){try{throw await((x=(_=q(this,ln).config).onError)==null?void 0:x.call(_,O,t,this.state.context,this)),await((y=(b=this.options).onError)==null?void 0:y.call(b,O,t,this.state.context)),await((v=(E=q(this,ln).config).onSettled)==null?void 0:v.call(E,void 0,O,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,O,t,this.state.context)),O}finally{ct(this,Xa,ui).call(this,{type:"error",error:O})}}finally{q(this,ln).runNext(this)}}},Qa=new WeakMap,ln=new WeakMap,Ls=new WeakMap,Xa=new WeakSet,ui=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),br.batch(()=>{q(this,Qa).forEach(n=>{n.onMutationUpdate(t)}),q(this,ln).notify({mutation:this,type:"updated",action:t})})},jT);function oA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Dn,Ff,IT,vB=(IT=class extends fc{constructor(t={}){super();nt(this,Dn);nt(this,Ff);this.config=t,Ne(this,Dn,new Map),Ne(this,Ff,Date.now())}build(t,r,n){const a=new pB({mutationCache:this,mutationId:++bp(this,Ff)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Lp(t),n=q(this,Dn).get(r)??[];n.push(t),q(this,Dn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Lp(t);if(q(this,Dn).has(r)){const a=(n=q(this,Dn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?q(this,Dn).delete(r):q(this,Dn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=q(this,Dn).get(Lp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=q(this,Dn).get(Lp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...q(this,Dn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>tP(r,n))}findAll(t={}){return this.getAll().filter(r=>tP(t,r))}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return br.batch(()=>Promise.all(t.map(r=>r.continue().catch(ea))))}},Dn=new WeakMap,Ff=new WeakMap,IT);function Lp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function hB(e){return{onFetch:(t,r)=>{const n=async()=>{var m,g,_,x,b;const a=t.options,o=(_=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,i=((x=t.state.data)==null?void 0:x.pages)||[],s=((b=t.state.data)==null?void 0:b.pageParams)||[],u={pages:[],pageParams:[]};let l=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=ZI(t.options,t.fetchOptions),p=async(y,E,v)=>{if(l)return Promise.reject();if(E==null&&y.pages.length)return Promise.resolve(y);const S={queryKey:t.queryKey,pageParam:E,direction:v?"backward":"forward",meta:t.options.meta};c(S);const w=await d(S),{maxPages:O}=t.options,C=v?oB:aB;return{pages:C(y.pages,w,O),pageParams:C(y.pageParams,E,O)}};let h;if(o&&i.length){const y=o==="backward",E=y?mB:aP,v={pages:i,pageParams:s},S=E(a,v);h=await p(v,S,y)}else{h=await p(u,s[0]??a.initialPageParam);const y=e??i.length;for(let E=1;E{var a,o;return(o=(a=t.options).persister)==null?void 0:o.call(a,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function aP(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function mB(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var ur,xi,wi,Iu,Au,_i,Mu,Fu,AT,gB=(AT=class{constructor(e={}){nt(this,ur);nt(this,xi);nt(this,wi);nt(this,Iu);nt(this,Au);nt(this,_i);nt(this,Mu);nt(this,Fu);Ne(this,ur,e.queryCache||new fB),Ne(this,xi,e.mutationCache||new vB),Ne(this,wi,e.defaultOptions||{}),Ne(this,Iu,new Map),Ne(this,Au,new Map),Ne(this,_i,0)}mount(){bp(this,_i)._++,q(this,_i)===1&&(Ne(this,Mu,N_.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onFocus())})),Ne(this,Fu,xh.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onOnline())})))}unmount(){var e,t;bp(this,_i)._--,q(this,_i)===0&&((e=q(this,Mu))==null||e.call(this),Ne(this,Mu,void 0),(t=q(this,Fu))==null||t.call(this),Ne(this,Fu,void 0))}isFetching(e){return q(this,ur).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,xi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=q(this,ur).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(fu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return q(this,ur).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=q(this,ur).get(n.queryHash),o=a==null?void 0:a.state.data,i=rB(t,o);if(i!==void 0)return q(this,ur).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return br.batch(()=>q(this,ur).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=q(this,ur);br.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=q(this,ur),n={type:"active",...e};return br.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=br.batch(()=>q(this,ur).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(ea).catch(ea)}invalidateQueries(e={},t={}){return br.batch(()=>{if(q(this,ur).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=br.batch(()=>q(this,ur).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(ea)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(ea)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=q(this,ur).build(this,t);return r.isStaleByTime(fu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ea).catch(ea)}fetchInfiniteQuery(e){return e.behavior=hB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ea).catch(ea)}resumePausedMutations(){return xh.isOnline()?q(this,xi).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,ur)}getMutationCache(){return q(this,xi)}getDefaultOptions(){return q(this,wi)}setDefaultOptions(e){Ne(this,wi,e)}setQueryDefaults(e,t){q(this,Iu).set(el(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...q(this,Iu).values()];let r={};return t.forEach(n=>{mf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){q(this,Au).set(el(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...q(this,Au).values()];let r={};return t.forEach(n=>{mf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...q(this,wi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=L_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===JI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,wi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,ur).clear(),q(this,xi).clear()}},ur=new WeakMap,xi=new WeakMap,wi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,_i=new WeakMap,Mu=new WeakMap,Fu=new WeakMap,AT),En,jt,Lf,un,Ns,Lu,Ya,Nf,Nu,Du,Ds,Bs,Ei,Bu,Tt,yd,b1,x1,w1,_1,E1,S1,O1,iA,MT,yB=(MT=class extends fc{constructor(t,r){super();nt(this,Tt);nt(this,En);nt(this,jt);nt(this,Lf);nt(this,un);nt(this,Ns);nt(this,Lu);nt(this,Ya);nt(this,Nf);nt(this,Nu);nt(this,Du);nt(this,Ds);nt(this,Bs);nt(this,Ei);nt(this,Bu,new Set);this.options=r,Ne(this,En,t),Ne(this,Ya,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,jt).addObserver(this),oP(q(this,jt),this.options)?ct(this,Tt,yd).call(this):this.updateResult(),ct(this,Tt,_1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return C1(q(this,jt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return C1(q(this,jt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ct(this,Tt,E1).call(this),ct(this,Tt,S1).call(this),q(this,jt).removeObserver(this)}setOptions(t,r){const n=this.options,a=q(this,jt);if(this.options=q(this,En).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");ct(this,Tt,O1).call(this),q(this,jt).setOptions(this.options),n._defaulted&&!bh(this.options,n)&&q(this,En).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,jt),observer:this});const o=this.hasListeners();o&&iP(q(this,jt),a,this.options,n)&&ct(this,Tt,yd).call(this),this.updateResult(r),o&&(q(this,jt)!==a||this.options.enabled!==n.enabled||fu(this.options.staleTime,q(this,jt))!==fu(n.staleTime,q(this,jt)))&&ct(this,Tt,b1).call(this);const i=ct(this,Tt,x1).call(this);o&&(q(this,jt)!==a||this.options.enabled!==n.enabled||i!==q(this,Ei))&&ct(this,Tt,w1).call(this,i)}getOptimisticResult(t){const r=q(this,En).getQueryCache().build(q(this,En),t),n=this.createResult(r,t);return xB(this,n)&&(Ne(this,un,n),Ne(this,Lu,this.options),Ne(this,Ns,q(this,jt).state)),n}getCurrentResult(){return q(this,un)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){q(this,Bu).add(t)}getCurrentQuery(){return q(this,jt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=q(this,En).defaultQueryOptions(t),n=q(this,En).getQueryCache().build(q(this,En),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ct(this,Tt,yd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,un)))}createResult(t,r){var w;const n=q(this,jt),a=this.options,o=q(this,un),i=q(this,Ns),s=q(this,Lu),l=t!==n?t.state:q(this,Lf),{state:c}=t;let d={...c},p=!1,h;if(r._optimisticResults){const O=this.hasListeners(),C=!O&&oP(t,r),P=O&&iP(t,n,r,a);(C||P)&&(d={...d,...aA(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:_}=d;if(r.select&&d.data!==void 0)if(o&&d.data===(i==null?void 0:i.data)&&r.select===q(this,Nf))h=q(this,Nu);else try{Ne(this,Nf,r.select),h=r.select(d.data),h=y1(o==null?void 0:o.data,h,r),Ne(this,Nu,h),Ne(this,Ya,null)}catch(O){Ne(this,Ya,O)}else h=d.data;if(r.placeholderData!==void 0&&h===void 0&&_==="pending"){let O;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=o.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData((w=q(this,Du))==null?void 0:w.state.data,q(this,Du)):r.placeholderData,r.select&&O!==void 0)try{O=r.select(O),Ne(this,Ya,null)}catch(C){Ne(this,Ya,C)}O!==void 0&&(_="success",h=y1(o==null?void 0:o.data,O,r),p=!0)}q(this,Ya)&&(m=q(this,Ya),h=q(this,Nu),g=Date.now(),_="error");const x=d.fetchStatus==="fetching",b=_==="pending",y=_==="error",E=b&&x,v=h!==void 0;return{status:_,fetchStatus:d.fetchStatus,isPending:b,isSuccess:_==="success",isError:y,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:y&&!v,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:y&&v,isStale:D_(t,r),refetch:this.refetch}}updateResult(t){const r=q(this,un),n=this.createResult(q(this,jt),this.options);if(Ne(this,Ns,q(this,jt).state),Ne(this,Lu,this.options),q(this,Ns).data!==void 0&&Ne(this,Du,q(this,jt)),bh(n,r))return;Ne(this,un,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!q(this,Bu).size)return!0;const u=new Set(s??q(this,Bu));return this.options.throwOnError&&u.add("error"),Object.keys(q(this,un)).some(l=>{const c=l;return q(this,un)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),ct(this,Tt,iA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ct(this,Tt,_1).call(this)}},En=new WeakMap,jt=new WeakMap,Lf=new WeakMap,un=new WeakMap,Ns=new WeakMap,Lu=new WeakMap,Ya=new WeakMap,Nf=new WeakMap,Nu=new WeakMap,Du=new WeakMap,Ds=new WeakMap,Bs=new WeakMap,Ei=new WeakMap,Bu=new WeakMap,Tt=new WeakSet,yd=function(t){ct(this,Tt,O1).call(this);let r=q(this,jt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ea)),r},b1=function(){ct(this,Tt,E1).call(this);const t=fu(this.options.staleTime,q(this,jt));if(Gu||q(this,un).isStale||!m1(t))return;const n=XI(q(this,un).dataUpdatedAt,t)+1;Ne(this,Ds,setTimeout(()=>{q(this,un).isStale||this.updateResult()},n))},x1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,jt)):this.options.refetchInterval)??!1},w1=function(t){ct(this,Tt,S1).call(this),Ne(this,Ei,t),!(Gu||this.options.enabled===!1||!m1(q(this,Ei))||q(this,Ei)===0)&&Ne(this,Bs,setInterval(()=>{(this.options.refetchIntervalInBackground||N_.isFocused())&&ct(this,Tt,yd).call(this)},q(this,Ei)))},_1=function(){ct(this,Tt,b1).call(this),ct(this,Tt,w1).call(this,ct(this,Tt,x1).call(this))},E1=function(){q(this,Ds)&&(clearTimeout(q(this,Ds)),Ne(this,Ds,void 0))},S1=function(){q(this,Bs)&&(clearInterval(q(this,Bs)),Ne(this,Bs,void 0))},O1=function(){const t=q(this,En).getQueryCache().build(q(this,En),this.options);if(t===q(this,jt))return;const r=q(this,jt);Ne(this,jt,t),Ne(this,Lf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},iA=function(t){br.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(q(this,un))}),q(this,En).getQueryCache().notify({query:q(this,jt),type:"observerResultsUpdated"})})},MT);function bB(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function oP(e,t){return bB(e,t)||e.state.data!==void 0&&C1(e,t,t.refetchOnMount)}function C1(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&D_(e,t)}return!1}function iP(e,t,r,n){return(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&D_(e,r)}function D_(e,t){return t.enabled!==!1&&e.isStaleByTime(fu(t.staleTime,e))}function xB(e,t){return!bh(e.getCurrentResult(),t)}var Si,Oi,Sn,Io,Uo,mv,P1,FT,wB=(FT=class extends fc{constructor(r,n){super();nt(this,Uo);nt(this,Si);nt(this,Oi);nt(this,Sn);nt(this,Io);Ne(this,Si,r),this.setOptions(n),this.bindMethods(),ct(this,Uo,mv).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=q(this,Si).defaultMutationOptions(r),bh(this.options,n)||q(this,Si).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&el(n.mutationKey)!==el(this.options.mutationKey)?this.reset():((a=q(this,Sn))==null?void 0:a.state.status)==="pending"&&q(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){ct(this,Uo,mv).call(this),ct(this,Uo,P1).call(this,r)}getCurrentResult(){return q(this,Oi)}reset(){var r;(r=q(this,Sn))==null||r.removeObserver(this),Ne(this,Sn,void 0),ct(this,Uo,mv).call(this),ct(this,Uo,P1).call(this)}mutate(r,n){var a;return Ne(this,Io,n),(a=q(this,Sn))==null||a.removeObserver(this),Ne(this,Sn,q(this,Si).getMutationCache().build(q(this,Si),this.options)),q(this,Sn).addObserver(this),q(this,Sn).execute(r)}},Si=new WeakMap,Oi=new WeakMap,Sn=new WeakMap,Io=new WeakMap,Uo=new WeakSet,mv=function(){var n;const r=((n=q(this,Sn))==null?void 0:n.state)??oA();Ne(this,Oi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},P1=function(r){br.batch(()=>{var n,a,o,i,s,u,l,c;if(q(this,Io)&&this.hasListeners()){const d=q(this,Oi).variables,p=q(this,Oi).context;(r==null?void 0:r.type)==="success"?((a=(n=q(this,Io)).onSuccess)==null||a.call(n,r.data,d,p),(i=(o=q(this,Io)).onSettled)==null||i.call(o,r.data,null,d,p)):(r==null?void 0:r.type)==="error"&&((u=(s=q(this,Io)).onError)==null||u.call(s,r.error,d,p),(c=(l=q(this,Io)).onSettled)==null||c.call(l,void 0,r.error,d,p))}this.listeners.forEach(d=>{d(q(this,Oi))})})},FT),sA=f.createContext(void 0),go=e=>{const t=f.useContext(sA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_B=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.jsx(sA.Provider,{value:e,children:t})),lA=f.createContext(!1),EB=()=>f.useContext(lA);lA.Provider;function SB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OB=f.createContext(SB()),CB=()=>f.useContext(OB);function uA(e,t){return typeof e=="function"?e(...t):!!e}function PB(){}var $B=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},kB=e=>{f.useEffect(()=>{e.clearReset()},[e])},RB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&uA(r,[e.error,n]),TB=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},jB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,IB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function AB(e,t,r){const n=go(),a=EB(),o=CB(),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",TB(i),$B(i,o),kB(o);const[s]=f.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(f.useSyncExternalStore(f.useCallback(l=>{const c=a?()=>{}:s.subscribe(br.batchCalls(l));return s.updateResult(),c},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),jB(i,u))throw IB(i,s,o);if(RB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return i.notifyOnChangeProps?u:s.trackResult(u)}function pc(e,t){return AB(e,yB)}function Hm(e,t){const r=go(),[n]=f.useState(()=>new wB(r,e));f.useEffect(()=>{n.setOptions(e)},[n,e]);const a=f.useSyncExternalStore(f.useCallback(i=>n.subscribe(br.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=f.useCallback((i,s)=>{n.mutate(i,s).catch(PB)},[n]);if(a.error&&uA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** + * @remix-run/router v1.16.1 + * + * 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 tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function tl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FB(){return Math.random().toString(36).substr(2,8)}function lP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yo(t):t,{state:r,key:t&&t.key||n||FB()})}function rl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function yo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function LB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=gr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(tr({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function d(){s=gr.Pop;let _=c(),x=_==null?null:_-l;l=_,u&&u({action:s,location:g.location,delta:x})}function p(_,x){s=gr.Push;let b=gf(g.location,_,x);r&&r(b,_),l=c()+1;let y=lP(b,l),E=g.createHref(b);try{i.pushState(y,"",E)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;a.location.assign(E)}o&&u&&u({action:s,location:g.location,delta:1})}function h(_,x){s=gr.Replace;let b=gf(g.location,_,x);r&&r(b,_),l=c();let y=lP(b,l),E=g.createHref(b);i.replaceState(y,"",E),o&&u&&u({action:s,location:g.location,delta:0})}function m(_){let x=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof _=="string"?_:rl(_);return b=b.replace(/ $/,"%20"),lt(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let g={get action(){return s},get location(){return e(a,i)},listen(_){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(sP,d),u=_,()=>{a.removeEventListener(sP,d),u=null}},createHref(_){return t(a,_)},createURL:m,encodeLocation(_){let x=m(_);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:h,go(_){return i.go(_)}};return g}var Yt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yt||(Yt={}));const NB=new Set(["lazy","caseSensitive","path","id","index","children"]);function DB(e){return e.index===!0}function $1(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,o],s=typeof a.id=="string"?a.id:i.join("-");if(lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),lt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),DB(a)){let u=tr({},a,t(a),{id:s});return n[s]=u,u}else{let u=tr({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=$1(a.children,t,i,n)),u}})}function Jl(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?yo(t):t,a=Vi(n.pathname||"/",r);if(a==null)return null;let o=cA(e);zB(o);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(lt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Bo([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(lt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),cA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:GB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of dA(o.path))a(o,i,u)}),t}function dA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=dA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function zB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:QB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const UB=/^:[\w-]+$/,VB=3,WB=2,HB=1,qB=10,KB=-2,uP=e=>e==="*";function GB(e,t){let r=e.split("/"),n=r.length;return r.some(uP)&&(n+=KB),t&&(n+=WB),r.filter(a=>!uP(a)).reduce((a,o)=>a+(UB.test(o)?VB:o===""?HB:qB),n)}function QB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function XB(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i{let{paramName:p,isOptional:h}=c;if(p==="*"){let g=s[d]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[p]=void 0:l[p]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function YB(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),tl(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function JB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tl(!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 Vi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function ZB(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?yo(e):e;return{pathname:r?r.startsWith("/")?r:e8(r,t):t,search:r8(n),hash:n8(a)}}function e8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function p0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function pA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qm(e,t){let r=pA(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Km(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=yo(e):(a=tr({},e),lt(!a.pathname||!a.pathname.includes("?"),p0("?","pathname","search",a)),lt(!a.pathname||!a.pathname.includes("#"),p0("#","pathname","hash",a)),lt(!a.search||!a.search.includes("#"),p0("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=ZB(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),t8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class B_{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function z_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vA=["post","put","patch","delete"],a8=new Set(vA),o8=["get",...vA],i8=new Set(o8),s8=new Set([301,302,303,307,308]),l8=new Set([307,308]),v0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},u8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ml={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},U_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,c8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),hA="remix-router-transitions";function d8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;a=re=>({hasErrorBoundary:G(re)})}else a=c8;let o={},i=$1(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||h8,c=tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),d=null,p=new Set,h=null,m=null,g=null,_=e.hydrationData!=null,x=Jl(i,e.history.location,u),b=null;if(x==null){let G=ta(404,{pathname:e.history.location.pathname}),{matches:re,route:ue}=bP(i);x=re,b={[ue.id]:G}}let y,E=x.some(G=>G.route.lazy),v=x.some(G=>G.route.loader);if(E)y=!1;else if(!v)y=!0;else if(c.v7_partialHydration){let G=e.hydrationData?e.hydrationData.loaderData:null,re=e.hydrationData?e.hydrationData.errors:null,ue=we=>we.route.loader?typeof we.route.loader=="function"&&we.route.loader.hydrate===!0?!1:G&&G[we.route.id]!==void 0||re&&re[we.route.id]!==void 0:!0;if(re){let we=x.findIndex(Re=>re[Re.route.id]!==void 0);y=x.slice(0,we+1).every(ue)}else y=x.every(ue)}else y=e.hydrationData!=null;let S,w={historyAction:e.history.action,location:e.history.location,matches:x,initialized:y,navigation:v0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},O=gr.Pop,C=!1,P,$=!1,R=new Map,A=null,M=!1,I=!1,U=[],W=[],T=new Map,V=0,X=-1,ie=new Map,ae=new Set,pe=new Map,ye=new Map,be=new Set,_e=new Map,ke=new Map,$e=!1;function Ee(){if(d=e.history.listen(G=>{let{action:re,location:ue,delta:we}=G;if($e){$e=!1;return}tl(ke.size===0||we!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=Ar({currentLocation:w.location,nextLocation:ue,historyAction:re});if(Re&&we!=null){$e=!0,e.history.go(we*-1),bt(Re,{state:"blocked",location:ue,proceed(){bt(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:ue}),e.history.go(we)},reset(){let rt=new Map(w.blockers);rt.set(Re,Ml),De({blockers:rt})}});return}return ft(re,ue)}),r){P8(t,R);let G=()=>$8(t,R);t.addEventListener("pagehide",G),A=()=>t.removeEventListener("pagehide",G)}return w.initialized||ft(gr.Pop,w.location,{initialHydration:!0}),S}function ze(){d&&d(),A&&A(),p.clear(),P&&P.abort(),w.fetchers.forEach((G,re)=>se(re)),w.blockers.forEach((G,re)=>wt(re))}function je(G){return p.add(G),()=>p.delete(G)}function De(G,re){re===void 0&&(re={}),w=tr({},w,G);let ue=[],we=[];c.v7_fetcherPersist&&w.fetchers.forEach((Re,rt)=>{Re.state==="idle"&&(be.has(rt)?we.push(rt):ue.push(rt))}),[...p].forEach(Re=>Re(w,{deletedFetchers:we,unstable_viewTransitionOpts:re.viewTransitionOpts,unstable_flushSync:re.flushSync===!0})),c.v7_fetcherPersist&&(ue.forEach(Re=>w.fetchers.delete(Re)),we.forEach(Re=>se(Re)))}function Me(G,re,ue){var we,Re;let{flushSync:rt}=ue===void 0?{}:ue,Ue=w.actionData!=null&&w.navigation.formMethod!=null&&ja(w.navigation.formMethod)&&w.navigation.state==="loading"&&((we=G.state)==null?void 0:we._isRedirect)!==!0,Fe;re.actionData?Object.keys(re.actionData).length>0?Fe=re.actionData:Fe=null:Ue?Fe=w.actionData:Fe=null;let Ye=re.loaderData?gP(w.loaderData,re.loaderData,re.matches||[],re.errors):w.loaderData,Je=w.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((Ve,Rt)=>Je.set(Rt,Ml)));let hr=C===!0||w.navigation.formMethod!=null&&ja(w.navigation.formMethod)&&((Re=G.state)==null?void 0:Re._isRedirect)!==!0;s&&(i=s,s=void 0),M||O===gr.Pop||(O===gr.Push?e.history.push(G,G.state):O===gr.Replace&&e.history.replace(G,G.state));let zt;if(O===gr.Pop){let Ve=R.get(w.location.pathname);Ve&&Ve.has(G.pathname)?zt={currentLocation:w.location,nextLocation:G}:R.has(G.pathname)&&(zt={currentLocation:G,nextLocation:w.location})}else if($){let Ve=R.get(w.location.pathname);Ve?Ve.add(G.pathname):(Ve=new Set([G.pathname]),R.set(w.location.pathname,Ve)),zt={currentLocation:w.location,nextLocation:G}}De(tr({},re,{actionData:Fe,loaderData:Ye,historyAction:O,location:G,initialized:!0,navigation:v0,revalidation:"idle",restoreScrollPosition:kt(G,re.matches||w.matches),preventScrollReset:hr,blockers:Je}),{viewTransitionOpts:zt,flushSync:rt===!0}),O=gr.Pop,C=!1,$=!1,M=!1,I=!1,U=[],W=[]}async function He(G,re){if(typeof G=="number"){e.history.go(G);return}let ue=k1(w.location,w.matches,u,c.v7_prependBasename,G,c.v7_relativeSplatPath,re==null?void 0:re.fromRouteId,re==null?void 0:re.relative),{path:we,submission:Re,error:rt}=cP(c.v7_normalizeFormMethod,!1,ue,re),Ue=w.location,Fe=gf(w.location,we,re&&re.state);Fe=tr({},Fe,e.history.encodeLocation(Fe));let Ye=re&&re.replace!=null?re.replace:void 0,Je=gr.Push;Ye===!0?Je=gr.Replace:Ye===!1||Re!=null&&ja(Re.formMethod)&&Re.formAction===w.location.pathname+w.location.search&&(Je=gr.Replace);let hr=re&&"preventScrollReset"in re?re.preventScrollReset===!0:void 0,zt=(re&&re.unstable_flushSync)===!0,Ve=Ar({currentLocation:Ue,nextLocation:Fe,historyAction:Je});if(Ve){bt(Ve,{state:"blocked",location:Fe,proceed(){bt(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),He(G,re)},reset(){let Rt=new Map(w.blockers);Rt.set(Ve,Ml),De({blockers:Rt})}});return}return await ft(Je,Fe,{submission:Re,pendingError:rt,preventScrollReset:hr,replace:re&&re.replace,enableViewTransition:re&&re.unstable_viewTransition,flushSync:zt})}function et(){if(Y(),De({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){ft(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}ft(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function ft(G,re,ue){P&&P.abort(),P=null,O=G,M=(ue&&ue.startUninterruptedRevalidation)===!0,or(w.location,w.matches),C=(ue&&ue.preventScrollReset)===!0,$=(ue&&ue.enableViewTransition)===!0;let we=s||i,Re=ue&&ue.overrideNavigation,rt=Jl(we,re,u),Ue=(ue&&ue.flushSync)===!0;if(!rt){let Ve=ta(404,{pathname:re.pathname}),{matches:Rt,route:er}=bP(we);Cr(),Me(re,{matches:Rt,loaderData:{},errors:{[er.id]:Ve}},{flushSync:Ue});return}if(w.initialized&&!I&&w8(w.location,re)&&!(ue&&ue.submission&&ja(ue.submission.formMethod))){Me(re,{matches:rt},{flushSync:Ue});return}P=new AbortController;let Fe=Sl(e.history,re,P.signal,ue&&ue.submission),Ye;if(ue&&ue.pendingError)Ye=[Td(rt).route.id,{type:Yt.error,error:ue.pendingError}];else if(ue&&ue.submission&&ja(ue.submission.formMethod)){let Ve=await gt(Fe,re,ue.submission,rt,{replace:ue.replace,flushSync:Ue});if(Ve.shortCircuited)return;Ye=Ve.pendingActionResult,Re=h0(re,ue.submission),Ue=!1,Fe=Sl(e.history,Fe.url,Fe.signal)}let{shortCircuited:Je,loaderData:hr,errors:zt}=await z(Fe,re,rt,Re,ue&&ue.submission,ue&&ue.fetcherSubmission,ue&&ue.replace,ue&&ue.initialHydration===!0,Ue,Ye);Je||(P=null,Me(re,tr({matches:rt},yP(Ye),{loaderData:hr,errors:zt})))}async function gt(G,re,ue,we,Re){Re===void 0&&(Re={}),Y();let rt=O8(re,ue);De({navigation:rt},{flushSync:Re.flushSync===!0});let Ue,Fe=T1(we,re);if(!Fe.route.action&&!Fe.route.lazy)Ue={type:Yt.error,error:ta(405,{method:G.method,pathname:re.pathname,routeId:Fe.route.id})};else if(Ue=(await de("action",G,[Fe],we))[0],G.signal.aborted)return{shortCircuited:!0};if(ks(Ue)){let Ye;return Re&&Re.replace!=null?Ye=Re.replace:Ye=vP(Ue.response.headers.get("Location"),new URL(G.url),u)===w.location.pathname+w.location.search,await he(G,Ue,{submission:ue,replace:Ye}),{shortCircuited:!0}}if($s(Ue))throw ta(400,{type:"defer-action"});if(ia(Ue)){let Ye=Td(we,Fe.route.id);return(Re&&Re.replace)!==!0&&(O=gr.Push),{pendingActionResult:[Ye.route.id,Ue]}}return{pendingActionResult:[Fe.route.id,Ue]}}async function z(G,re,ue,we,Re,rt,Ue,Fe,Ye,Je){let hr=we||h0(re,Re),zt=Re||rt||_P(hr),Ve=s||i,[Rt,er]=dP(e.history,w,ue,zt,re,c.v7_partialHydration&&Fe===!0,c.unstable_skipActionErrorRevalidation,I,U,W,be,pe,ae,Ve,u,Je);if(Cr(dt=>!(ue&&ue.some(Br=>Br.route.id===dt))||Rt&&Rt.some(Br=>Br.route.id===dt)),X=++V,Rt.length===0&&er.length===0){let dt=Pe();return Me(re,tr({matches:ue,loaderData:{},errors:Je&&ia(Je[1])?{[Je[0]]:Je[1].error}:null},yP(Je),dt?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ye}),{shortCircuited:!0}}if(!M&&(!c.v7_partialHydration||!Fe)){er.forEach(Br=>{let xn=w.fetchers.get(Br.key),Pr=Yc(void 0,xn?xn.data:void 0);w.fetchers.set(Br.key,Pr)});let dt;Je&&!ia(Je[1])?dt={[Je[0]]:Je[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?dt=null:dt=w.actionData),De(tr({navigation:hr},dt!==void 0?{actionData:dt}:{},er.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ye})}er.forEach(dt=>{T.has(dt.key)&&We(dt.key),dt.controller&&T.set(dt.key,dt.controller)});let Oa=()=>er.forEach(dt=>We(dt.key));P&&P.signal.addEventListener("abort",Oa);let{loaderResults:bn,fetcherResults:Ca}=await ge(w.matches,ue,Rt,er,G);if(G.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Oa),er.forEach(dt=>T.delete(dt.key));let Pa=xP([...bn,...Ca]);if(Pa){if(Pa.idx>=Rt.length){let dt=er[Pa.idx-Rt.length].key;ae.add(dt)}return await he(G,Pa.result,{replace:Ue}),{shortCircuited:!0}}let{loaderData:Wa,errors:nn}=mP(w,ue,Rt,bn,Je,er,Ca,_e);_e.forEach((dt,Br)=>{dt.subscribe(xn=>{(xn||dt.done)&&_e.delete(Br)})}),c.v7_partialHydration&&Fe&&w.errors&&Object.entries(w.errors).filter(dt=>{let[Br]=dt;return!Rt.some(xn=>xn.route.id===Br)}).forEach(dt=>{let[Br,xn]=dt;nn=Object.assign(nn||{},{[Br]:xn})});let st=Pe(),ir=Xe(X),gl=st||ir||er.length>0;return tr({loaderData:Wa,errors:nn},gl?{fetchers:new Map(w.fetchers)}:{})}function Q(G,re,ue,we){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(G)&&We(G);let Re=(we&&we.unstable_flushSync)===!0,rt=s||i,Ue=k1(w.location,w.matches,u,c.v7_prependBasename,ue,c.v7_relativeSplatPath,re,we==null?void 0:we.relative),Fe=Jl(rt,Ue,u);if(!Fe){K(G,re,ta(404,{pathname:Ue}),{flushSync:Re});return}let{path:Ye,submission:Je,error:hr}=cP(c.v7_normalizeFormMethod,!0,Ue,we);if(hr){K(G,re,hr,{flushSync:Re});return}let zt=T1(Fe,Ye);if(C=(we&&we.preventScrollReset)===!0,Je&&ja(Je.formMethod)){Z(G,re,Ye,zt,Fe,Re,Je);return}pe.set(G,{routeId:re,path:Ye}),oe(G,re,Ye,zt,Fe,Re,Je)}async function Z(G,re,ue,we,Re,rt,Ue){if(Y(),pe.delete(G),!we.route.action&&!we.route.lazy){let Pr=ta(405,{method:Ue.formMethod,pathname:ue,routeId:re});K(G,re,Pr,{flushSync:rt});return}let Fe=w.fetchers.get(G);H(G,C8(Ue,Fe),{flushSync:rt});let Ye=new AbortController,Je=Sl(e.history,ue,Ye.signal,Ue);T.set(G,Ye);let hr=V,Ve=(await de("action",Je,[we],Re))[0];if(Je.signal.aborted){T.get(G)===Ye&&T.delete(G);return}if(c.v7_fetcherPersist&&be.has(G)){if(ks(Ve)||ia(Ve)){H(G,ci(void 0));return}}else{if(ks(Ve))if(T.delete(G),X>hr){H(G,ci(void 0));return}else return ae.add(G),H(G,Yc(Ue)),he(Je,Ve,{fetcherSubmission:Ue});if(ia(Ve)){K(G,re,Ve.error);return}}if($s(Ve))throw ta(400,{type:"defer-action"});let Rt=w.navigation.location||w.location,er=Sl(e.history,Rt,Ye.signal),Oa=s||i,bn=w.navigation.state!=="idle"?Jl(Oa,w.navigation.location,u):w.matches;lt(bn,"Didn't find any matches after fetcher action");let Ca=++V;ie.set(G,Ca);let Pa=Yc(Ue,Ve.data);w.fetchers.set(G,Pa);let[Wa,nn]=dP(e.history,w,bn,Ue,Rt,!1,c.unstable_skipActionErrorRevalidation,I,U,W,be,pe,ae,Oa,u,[we.route.id,Ve]);nn.filter(Pr=>Pr.key!==G).forEach(Pr=>{let is=Pr.key,ss=w.fetchers.get(is),D=Yc(void 0,ss?ss.data:void 0);w.fetchers.set(is,D),T.has(is)&&We(is),Pr.controller&&T.set(is,Pr.controller)}),De({fetchers:new Map(w.fetchers)});let st=()=>nn.forEach(Pr=>We(Pr.key));Ye.signal.addEventListener("abort",st);let{loaderResults:ir,fetcherResults:gl}=await ge(w.matches,bn,Wa,nn,er);if(Ye.signal.aborted)return;Ye.signal.removeEventListener("abort",st),ie.delete(G),T.delete(G),nn.forEach(Pr=>T.delete(Pr.key));let dt=xP([...ir,...gl]);if(dt){if(dt.idx>=Wa.length){let Pr=nn[dt.idx-Wa.length].key;ae.add(Pr)}return he(er,dt.result)}let{loaderData:Br,errors:xn}=mP(w,w.matches,Wa,ir,void 0,nn,gl,_e);if(w.fetchers.has(G)){let Pr=ci(Ve.data);w.fetchers.set(G,Pr)}Xe(Ca),w.navigation.state==="loading"&&Ca>X?(lt(O,"Expected pending action"),P&&P.abort(),Me(w.navigation.location,{matches:bn,loaderData:Br,errors:xn,fetchers:new Map(w.fetchers)})):(De({errors:xn,loaderData:gP(w.loaderData,Br,bn,xn),fetchers:new Map(w.fetchers)}),I=!1)}async function oe(G,re,ue,we,Re,rt,Ue){let Fe=w.fetchers.get(G);H(G,Yc(Ue,Fe?Fe.data:void 0),{flushSync:rt});let Ye=new AbortController,Je=Sl(e.history,ue,Ye.signal);T.set(G,Ye);let hr=V,Ve=(await de("loader",Je,[we],Re))[0];if($s(Ve)&&(Ve=await bA(Ve,Je.signal,!0)||Ve),T.get(G)===Ye&&T.delete(G),!Je.signal.aborted){if(be.has(G)){H(G,ci(void 0));return}if(ks(Ve))if(X>hr){H(G,ci(void 0));return}else{ae.add(G),await he(Je,Ve);return}if(ia(Ve)){K(G,re,Ve.error);return}lt(!$s(Ve),"Unhandled fetcher deferred data"),H(G,ci(Ve.data))}}async function he(G,re,ue){let{submission:we,fetcherSubmission:Re,replace:rt}=ue===void 0?{}:ue;re.response.headers.has("X-Remix-Revalidate")&&(I=!0);let Ue=re.response.headers.get("Location");lt(Ue,"Expected a Location header on the redirect Response"),Ue=vP(Ue,new URL(G.url),u);let Fe=gf(w.location,Ue,{_isRedirect:!0});if(r){let Rt=!1;if(re.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(U_.test(Ue)){const er=e.history.createURL(Ue);Rt=er.origin!==t.location.origin||Vi(er.pathname,u)==null}if(Rt){rt?t.location.replace(Ue):t.location.assign(Ue);return}}P=null;let Ye=rt===!0?gr.Replace:gr.Push,{formMethod:Je,formAction:hr,formEncType:zt}=w.navigation;!we&&!Re&&Je&&hr&&zt&&(we=_P(w.navigation));let Ve=we||Re;if(l8.has(re.response.status)&&Ve&&ja(Ve.formMethod))await ft(Ye,Fe,{submission:tr({},Ve,{formAction:Ue}),preventScrollReset:C});else{let Rt=h0(Fe,we);await ft(Ye,Fe,{overrideNavigation:Rt,fetcherSubmission:Re,preventScrollReset:C})}}async function de(G,re,ue,we){try{let Re=await m8(l,G,re,ue,we,o,a);return await Promise.all(Re.map((rt,Ue)=>{if(_8(rt)){let Fe=rt.result;return{type:Yt.redirect,response:b8(Fe,re,ue[Ue].route.id,we,u,c.v7_relativeSplatPath)}}return y8(rt)}))}catch(Re){return ue.map(()=>({type:Yt.error,error:Re}))}}async function ge(G,re,ue,we,Re){let[rt,...Ue]=await Promise.all([ue.length?de("loader",Re,ue,re):[],...we.map(Fe=>{if(Fe.matches&&Fe.match&&Fe.controller){let Ye=Sl(e.history,Fe.path,Fe.controller.signal);return de("loader",Ye,[Fe.match],Fe.matches).then(Je=>Je[0])}else return Promise.resolve({type:Yt.error,error:ta(404,{pathname:Fe.path})})})]);return await Promise.all([wP(G,ue,rt,rt.map(()=>Re.signal),!1,w.loaderData),wP(G,we.map(Fe=>Fe.match),Ue,we.map(Fe=>Fe.controller?Fe.controller.signal:null),!0)]),{loaderResults:rt,fetcherResults:Ue}}function Y(){I=!0,U.push(...Cr()),pe.forEach((G,re)=>{T.has(re)&&(W.push(re),We(re))})}function H(G,re,ue){ue===void 0&&(ue={}),w.fetchers.set(G,re),De({fetchers:new Map(w.fetchers)},{flushSync:(ue&&ue.flushSync)===!0})}function K(G,re,ue,we){we===void 0&&(we={});let Re=Td(w.matches,re);se(G),De({errors:{[Re.route.id]:ue},fetchers:new Map(w.fetchers)},{flushSync:(we&&we.flushSync)===!0})}function ne(G){return c.v7_fetcherPersist&&(ye.set(G,(ye.get(G)||0)+1),be.has(G)&&be.delete(G)),w.fetchers.get(G)||u8}function se(G){let re=w.fetchers.get(G);T.has(G)&&!(re&&re.state==="loading"&&ie.has(G))&&We(G),pe.delete(G),ie.delete(G),ae.delete(G),be.delete(G),w.fetchers.delete(G)}function Ae(G){if(c.v7_fetcherPersist){let re=(ye.get(G)||0)-1;re<=0?(ye.delete(G),be.add(G)):ye.set(G,re)}else se(G);De({fetchers:new Map(w.fetchers)})}function We(G){let re=T.get(G);lt(re,"Expected fetch controller: "+G),re.abort(),T.delete(G)}function Le(G){for(let re of G){let ue=ne(re),we=ci(ue.data);w.fetchers.set(re,we)}}function Pe(){let G=[],re=!1;for(let ue of ae){let we=w.fetchers.get(ue);lt(we,"Expected fetcher: "+ue),we.state==="loading"&&(ae.delete(ue),G.push(ue),re=!0)}return Le(G),re}function Xe(G){let re=[];for(let[ue,we]of ie)if(we0}function at(G,re){let ue=w.blockers.get(G)||Ml;return ke.get(G)!==re&&ke.set(G,re),ue}function wt(G){w.blockers.delete(G),ke.delete(G)}function bt(G,re){let ue=w.blockers.get(G)||Ml;lt(ue.state==="unblocked"&&re.state==="blocked"||ue.state==="blocked"&&re.state==="blocked"||ue.state==="blocked"&&re.state==="proceeding"||ue.state==="blocked"&&re.state==="unblocked"||ue.state==="proceeding"&&re.state==="unblocked","Invalid blocker state transition: "+ue.state+" -> "+re.state);let we=new Map(w.blockers);we.set(G,re),De({blockers:we})}function Ar(G){let{currentLocation:re,nextLocation:ue,historyAction:we}=G;if(ke.size===0)return;ke.size>1&&tl(!1,"A router only supports one blocker at a time");let Re=Array.from(ke.entries()),[rt,Ue]=Re[Re.length-1],Fe=w.blockers.get(rt);if(!(Fe&&Fe.state==="proceeding")&&Ue({currentLocation:re,nextLocation:ue,historyAction:we}))return rt}function Cr(G){let re=[];return _e.forEach((ue,we)=>{(!G||G(we))&&(ue.cancel(),re.push(we),_e.delete(we))}),re}function Nn(G,re,ue){if(h=G,g=re,m=ue||null,!_&&w.navigation===v0){_=!0;let we=kt(w.location,w.matches);we!=null&&De({restoreScrollPosition:we})}return()=>{h=null,g=null,m=null}}function Dr(G,re){return m&&m(G,re.map(we=>BB(we,w.loaderData)))||G.key}function or(G,re){if(h&&g){let ue=Dr(G,re);h[ue]=g()}}function kt(G,re){if(h){let ue=Dr(G,re),we=h[ue];if(typeof we=="number")return we}return null}function vr(G){o={},s=$1(G,a,void 0,o)}return S={get basename(){return u},get future(){return c},get state(){return w},get routes(){return i},get window(){return t},initialize:Ee,subscribe:je,enableScrollRestoration:Nn,navigate:He,fetch:Q,revalidate:et,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:ne,deleteFetcher:Ae,dispose:ze,getBlocker:at,deleteBlocker:wt,_internalFetchControllers:T,_internalActiveDeferreds:_e,_internalSetRoutes:vr},S}function f8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function k1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let d of t)if(u.push(d),d.route.id===i){l=d;break}}else u=t,l=t[t.length-1];let c=Km(a||".",qm(u,o),Vi(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!V_(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Bo([r,c.pathname])),rl(c)}function cP(e,t,r,n){if(!n||!f8(n))return{path:r};if(n.formMethod&&!S8(n.formMethod))return{path:r,error:ta(405,{method:n.formMethod})};let a=()=>({path:r,error:ta(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=gA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ja(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,m)=>{let[g,_]=m;return""+h+g+"="+_+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!ja(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}lt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=R1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=R1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=hP(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=hP(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(ja(c.formMethod))return{path:r,submission:c};let d=yo(r);return t&&d.search&&V_(d.search)&&u.append("index",""),d.search="?"+u,{path:rl(d),submission:c}}function p8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function dP(e,t,r,n,a,o,i,s,u,l,c,d,p,h,m,g){let _=g?ia(g[1])?g[1].error:g[1].data:void 0,x=e.createURL(t.location),b=e.createURL(a),y=g&&ia(g[1])?g[0]:void 0,E=y?p8(r,y):r,v=g?g[1].statusCode:void 0,S=i&&v&&v>=400,w=E.filter((C,P)=>{let{route:$}=C;if($.lazy)return!0;if($.loader==null)return!1;if(o)return typeof $.loader!="function"||$.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if(v8(t.loaderData,t.matches[P],C)||u.some(M=>M===C.route.id))return!0;let R=t.matches[P],A=C;return fP(C,tr({currentUrl:x,currentParams:R.params,nextUrl:b,nextParams:A.params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:S?!1:s||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||mA(R,A)}))}),O=[];return d.forEach((C,P)=>{if(o||!r.some(I=>I.route.id===C.routeId)||c.has(P))return;let $=Jl(h,C.path,m);if(!$){O.push({key:P,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(P),A=T1($,C.path),M=!1;p.has(P)?M=!1:l.includes(P)?M=!0:R&&R.state!=="idle"&&R.data===void 0?M=s:M=fP(A,tr({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:S?!1:s})),M&&O.push({key:P,routeId:C.routeId,path:C.path,matches:$,match:A,controller:new AbortController})}),[w,O]}function v8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function mA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function fP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function pP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];lt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";tl(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!NB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,tr({},t(a),{lazy:void 0}))}function h8(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function m8(e,t,r,n,a,o,i,s){let u=n.reduce((d,p)=>d.add(p.route.id),new Set),l=new Set,c=await e({matches:a.map(d=>{let p=u.has(d.route.id);return tr({},d,{shouldLoad:p,resolve:m=>(l.add(d.route.id),p?g8(t,r,d,o,i,m,s):Promise.resolve({type:Yt.data,result:void 0}))})}),request:r,params:a[0].params,context:s});return a.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((d,p)=>u.has(a[p].route.id))}async function g8(e,t,r,n,a,o,i){let s,u,l=c=>{let d,p=new Promise((g,_)=>d=_);u=()=>d(),t.signal.addEventListener("abort",u);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:i},...g!==void 0?[g]:[]),m;return o?m=o(g=>h(g)):m=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([m,p])};try{let c=r.route[e];if(r.route.lazy)if(c){let d,[p]=await Promise.all([l(c).catch(h=>{d=h}),pP(r.route,a,n)]);if(d!==void 0)throw d;s=p}else if(await pP(r.route,a,n),c=r.route[e],c)s=await l(c);else if(e==="action"){let d=new URL(t.url),p=d.pathname+d.search;throw ta(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:Yt.data,result:void 0};else if(c)s=await l(c);else{let d=new URL(t.url),p=d.pathname+d.search;throw ta(404,{pathname:p})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Yt.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return s}async function y8(e){let{result:t,type:r,status:n}=e;if(yA(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:Yt.error,error:s}}return r===Yt.error?{type:Yt.error,error:new B_(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:Yt.data,data:i,statusCode:t.status,headers:t.headers}}if(r===Yt.error)return{type:Yt.error,error:t,statusCode:z_(t)?t.status:n};if(E8(t)){var a,o;return{type:Yt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}return{type:Yt.data,data:t,statusCode:n}}function b8(e,t,r,n,a,o){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!U_.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=k1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function vP(e,t,r){if(U_.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Vi(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Sl(e,t,r,n){let a=e.createURL(gA(t)).toString(),o={signal:r};if(n&&ja(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=R1(n.formData):o.body=n.formData}return new Request(a,o)}function R1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function hP(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function x8(e,t,r,n,a,o){let i={},s=null,u,l=!1,c={},d=n&&ia(n[1])?n[1].error:void 0;return r.forEach((p,h)=>{let m=t[h].route.id;if(lt(!ks(p),"Cannot handle redirect results in processLoaderData"),ia(p)){let g=p.error;d!==void 0&&(g=d,d=void 0),s=s||{};{let _=Td(e,m);s[_.route.id]==null&&(s[_.route.id]=g)}i[m]=void 0,l||(l=!0,u=z_(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else $s(p)?(a.set(m,p.deferredData),i[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers)):(i[m]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers))}),d!==void 0&&n&&(s={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:u||200,loaderHeaders:c}}function mP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=x8(t,r,n,a,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function bP(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ta(e,t){let{pathname:r,routeId:n,method:a,type:o}=t===void 0?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",s='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new B_(e||500,i,new Error(s),!0)}function xP(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(ks(r))return{result:r,idx:t}}}function gA(e){let t=typeof e=="string"?yo(e):e;return rl(tr({},t,{hash:""}))}function w8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _8(e){return yA(e.result)&&s8.has(e.result.status)}function $s(e){return e.type===Yt.deferred}function ia(e){return e.type===Yt.error}function ks(e){return(e&&e.type)===Yt.redirect}function E8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function yA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function S8(e){return i8.has(e.toLowerCase())}function ja(e){return a8.has(e.toLowerCase())}async function wP(e,t,r,n,a,o){for(let i=0;id.route.id===u.route.id),c=l!=null&&!mA(l,u)&&(o&&o[u.route.id])!==void 0;if($s(s)&&(a||c)){let d=n[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await bA(s,d,a).then(p=>{p&&(r[i]=p||r[i])})}}}async function bA(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Yt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Yt.error,error:a}}return{type:Yt.data,data:e.deferredData.data}}}function V_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function T1(e,t){let r=typeof t=="string"?yo(t).search:t.search;if(e[e.length-1].route.index&&V_(r||""))return e[e.length-1];let n=pA(e);return n[n.length-1]}function _P(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function h0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function O8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Yc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function C8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ci(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function P8(e,t){try{let r=e.sessionStorage.getItem(hA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function $8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(hA,JSON.stringify(r))}catch(n){tl(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.23.1 + * + * 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 nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;tfA(e,t),[t,e])}function wA(e){f.useContext(Gi).static||f.useLayoutEffect(e)}function bo(){let{isDataRoute:e}=f.useContext(Zo);return e?U8():T8()}function T8(){Qi()||lt(!1);let e=f.useContext(Hf),{basename:t,future:r,navigator:n}=f.useContext(Gi),{matches:a}=f.useContext(Zo),{pathname:o}=hn(),i=JSON.stringify(qm(a,r.v7_relativeSplatPath)),s=f.useRef(!1);return wA(()=>{s.current=!0}),f.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=Km(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bo([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,o,e])}function _A(){let{matches:e}=f.useContext(Zo),t=e[e.length-1];return t?t.params:{}}function EA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=f.useContext(Gi),{matches:a}=f.useContext(Zo),{pathname:o}=hn(),i=JSON.stringify(qm(a,n.v7_relativeSplatPath));return f.useMemo(()=>Km(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function j8(e,t){return SA(e,t)}function SA(e,t,r,n){Qi()||lt(!1);let{navigator:a}=f.useContext(Gi),{matches:o}=f.useContext(Zo),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=hn(),c;if(t){var d;let _=typeof t=="string"?yo(t):t;u==="/"||(d=_.pathname)!=null&&d.startsWith(u)||lt(!1),c=_}else c=l;let p=c.pathname||"/",h=p;if(u!=="/"){let _=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(_.length).join("/")}let m=Jl(e,{pathname:h}),g=L8(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:Bo([u,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:Bo([u,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r,n);return t&&g?f.createElement(Gm.Provider,{value:{location:nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gr.Pop}},g):g}function I8(){let e=D8(),t=z_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:a},r):null,null)}const A8=f.createElement(I8,null);class M8 extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Zo.Provider,{value:this.props.routeContext},f.createElement(xA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function F8(e){let{routeContext:t,match:r,children:n}=e,a=f.useContext(Hf);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Zo.Provider,{value:t},n)}function L8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||lt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,d,p)=>{let h,m=!1,g=null,_=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||A8,u&&(l<0&&p===0?(m=!0,_=null):l===p&&(m=!0,_=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),b=()=>{let y;return h?y=g:m?y=_:d.route.Component?y=f.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=c,f.createElement(F8,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:y})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(M8,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var H_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(H_||{}),yf=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}(yf||{});function OA(e){let t=f.useContext(Hf);return t||lt(!1),t}function CA(e){let t=f.useContext(W_);return t||lt(!1),t}function N8(e){let t=f.useContext(Zo);return t||lt(!1),t}function PA(e){let t=N8(),r=t.matches[t.matches.length-1];return r.route.id||lt(!1),r.route.id}function D8(){var e;let t=f.useContext(xA),r=CA(yf.UseRouteError),n=PA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let B8=0;function z8(e){let{router:t,basename:r}=OA(H_.UseBlocker),n=CA(yf.UseBlocker),[a,o]=f.useState(""),i=f.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:nl({},u,{pathname:Vi(u.pathname,r)||u.pathname}),nextLocation:nl({},l,{pathname:Vi(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return f.useEffect(()=>{let s=String(++B8);return o(s),()=>t.deleteBlocker(s)},[t]),f.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ml}function U8(){let{router:e}=OA(H_.UseNavigateStable),t=PA(yf.UseNavigateStable),r=f.useRef(!1);return wA(()=>{r.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,nl({fromRouteId:t},o)))},[e,t])}function V8(e){let{to:t,replace:r,state:n,relative:a}=e;Qi()||lt(!1);let{future:o,static:i}=f.useContext(Gi),{matches:s}=f.useContext(Zo),{pathname:u}=hn(),l=bo(),c=Km(t,qm(s,o.v7_relativeSplatPath),u,a==="path"),d=JSON.stringify(c);return f.useEffect(()=>l(JSON.parse(d),{replace:r,state:n,relative:a}),[l,d,a,r,n]),null}function Cn(e){lt(!1)}function W8(e){let{basename:t="/",children:r=null,location:n,navigationType:a=gr.Pop,navigator:o,static:i=!1,future:s}=e;Qi()&<(!1);let u=t.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:u,navigator:o,static:i,future:nl({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=yo(n));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=n,g=f.useMemo(()=>{let _=Vi(c,u);return _==null?null:{location:{pathname:_,search:d,hash:p,state:h,key:m},navigationType:a}},[u,c,d,p,h,m,a]);return g==null?null:f.createElement(Gi.Provider,{value:l},f.createElement(Gm.Provider,{children:r,value:g}))}function Zl(e){let{children:t,location:r}=e;return j8(j1(t),r)}new Promise(()=>{});function j1(e,t){t===void 0&&(t=[]);let r=[];return f.Children.forEach(e,(n,a)=>{if(!f.isValidElement(n))return;let o=[...t,a];if(n.type===f.Fragment){r.push.apply(r,j1(n.props.children,o));return}n.type!==Cn&<(!1),!n.props.index||!n.props.children||lt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=j1(n.props.children,o)),r.push(i)}),r}function H8(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.23.1 + * + * 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 bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function K8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function G8(e,t){return e.button===0&&(!t||t==="_self")&&!K8(e)}const Q8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],X8="6";try{window.__reactRouterVersion=X8}catch{}function Y8(e,t){return d8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:MB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||J8(),routes:e,mapRouteProperties:H8,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function J8(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:Z8(t.errors)})),t}function Z8(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new B_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const ez=f.createContext({isTransitioning:!1}),tz=f.createContext(new Map),rz="startTransition",EP=Gv[rz],nz="flushSync",SP=tB[nz];function az(e){EP?EP(e):e()}function Jc(e){SP?SP(e):e()}class oz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function iz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=f.useState(r.state),[i,s]=f.useState(),[u,l]=f.useState({isTransitioning:!1}),[c,d]=f.useState(),[p,h]=f.useState(),[m,g]=f.useState(),_=f.useRef(new Map),{v7_startTransition:x}=n||{},b=f.useCallback(w=>{x?az(w):w()},[x]),y=f.useCallback((w,O)=>{let{deletedFetchers:C,unstable_flushSync:P,unstable_viewTransitionOpts:$}=O;C.forEach(A=>_.current.delete(A)),w.fetchers.forEach((A,M)=>{A.data!==void 0&&_.current.set(M,A.data)});let R=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!$||R){P?Jc(()=>o(w)):b(()=>o(w));return}if(P){Jc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let A=r.window.document.startViewTransition(()=>{Jc(()=>o(w))});A.finished.finally(()=>{Jc(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),Jc(()=>h(A));return}p?(c&&c.resolve(),p.skipTransition(),g({state:w,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[r.window,p,c,_,b]);f.useLayoutEffect(()=>r.subscribe(y),[r,y]),f.useEffect(()=>{u.isTransitioning&&!u.flushSync&&d(new oz)},[u]),f.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,C=r.window.document.startViewTransition(async()=>{b(()=>o(w)),await O});C.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(C)}},[b,i,c,r.window]),f.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),f.useEffect(()=>{!u.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[u.isTransitioning,m]),f.useEffect(()=>{},[]);let E=f.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,C)=>r.navigate(w,{state:O,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(w,O,C)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[r]),v=r.basename||"/",S=f.useMemo(()=>({router:r,navigator:E,static:!1,basename:v}),[r,E,v]);return f.createElement(f.Fragment,null,f.createElement(Hf.Provider,{value:S},f.createElement(W_.Provider,{value:a},f.createElement(tz.Provider,{value:_.current},f.createElement(ez.Provider,{value:u},f.createElement(W8,{basename:v,location:a.location,navigationType:a.historyAction,navigator:E,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?f.createElement(sz,{routes:r.routes,future:r.future,state:a}):t))))),null)}function sz(e){let{routes:t,future:r,state:n}=e;return SA(t,void 0,n,r)}const lz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,al=f.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:d}=t,p=q8(t,Q8),{basename:h}=f.useContext(Gi),m,g=!1;if(typeof l=="string"&&uz.test(l)&&(m=l,lz))try{let y=new URL(window.location.href),E=l.startsWith("//")?new URL(y.protocol+l):new URL(l),v=Vi(E.pathname,h);E.origin===y.origin&&v!=null?l=v+E.search+E.hash:g=!0}catch{}let _=k8(l,{relative:a}),x=cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(y){n&&n(y),y.defaultPrevented||x(y)}return f.createElement("a",bf({},p,{href:m||_,onClick:g||o?n:b,ref:r,target:u}))});var OP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(OP||(OP={}));var CP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(CP||(CP={}));function cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=bo(),l=hn(),c=EA(e,{relative:i});return f.useCallback(d=>{if(G8(d,r)){d.preventDefault();let p=n!==void 0?n:rl(l)===rl(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var dz="RaStore",fz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},I1=fz(),pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(dz).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?PP(s.newValue):void 0;Object.keys(a).forEach(function(d){a[d]&&a[d].key===l&&(c===null?a[d].callback(void 0):a[d].callback(c??void 0))})}};return{setup:function(){if(I1){var s=Eo().getItem("".concat(r,".version"));if(s&&s!==e){var u=Eo();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Eo().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){I1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Eo().getItem("".concat(r,".").concat(s));return l==null?u:PP(l)},setItem:function(s,u){u===void 0?Eo().removeItem("".concat(r,".").concat(s)):Eo().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){Eo().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=Eo();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=Eo();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},PP=function(e){try{return JSON.parse(e)}catch{return e}},vz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),hz=new vz,Eo=function(){return I1?window.localStorage:hz},mz=typeof Ss=="object"&&Ss&&Ss.Object===Object&&Ss,$A=mz,gz=$A,yz=typeof self=="object"&&self&&self.Object===Object&&self,bz=gz||yz||Function("return this")(),Ba=bz,xz=Ba,wz=xz.Symbol,vc=wz,$P=vc,kA=Object.prototype,_z=kA.hasOwnProperty,Ez=kA.toString,Zc=$P?$P.toStringTag:void 0;function Sz(e){var t=_z.call(e,Zc),r=e[Zc];try{e[Zc]=void 0;var n=!0}catch{}var a=Ez.call(e);return n&&(t?e[Zc]=r:delete e[Zc]),a}var Oz=Sz,Cz=Object.prototype,Pz=Cz.toString;function $z(e){return Pz.call(e)}var kz=$z,kP=vc,Rz=Oz,Tz=kz,jz="[object Null]",Iz="[object Undefined]",RP=kP?kP.toStringTag:void 0;function Az(e){return e==null?e===void 0?Iz:jz:RP&&RP in Object(e)?Rz(e):Tz(e)}var hc=Az;function Mz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ba=Mz,Fz=hc,Lz=ba,Nz="[object AsyncFunction]",Dz="[object Function]",Bz="[object GeneratorFunction]",zz="[object Proxy]";function Uz(e){if(!Lz(e))return!1;var t=Fz(e);return t==Dz||t==Bz||t==Nz||t==zz}var q_=Uz,Vz=Ba,Wz=Vz["__core-js_shared__"],Hz=Wz,m0=Hz,TP=function(){var e=/[^.]+$/.exec(m0&&m0.keys&&m0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qz(e){return!!TP&&TP in e}var Kz=qz,Gz=Function.prototype,Qz=Gz.toString;function Xz(e){if(e!=null){try{return Qz.call(e)}catch{}try{return e+""}catch{}}return""}var RA=Xz,Yz=q_,Jz=Kz,Zz=ba,e9=RA,t9=/[\\^$.*+?()[\]{}|]/g,r9=/^\[object .+?Constructor\]$/,n9=Function.prototype,a9=Object.prototype,o9=n9.toString,i9=a9.hasOwnProperty,s9=RegExp("^"+o9.call(i9).replace(t9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l9(e){if(!Zz(e)||Jz(e))return!1;var t=Yz(e)?s9:r9;return t.test(e9(e))}var u9=l9;function c9(e,t){return e==null?void 0:e[t]}var d9=c9,f9=u9,p9=d9;function v9(e,t){var r=p9(e,t);return f9(r)?r:void 0}var pl=v9,h9=pl,m9=function(){try{var e=h9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),TA=m9,jP=TA;function g9(e,t,r){t=="__proto__"&&jP?jP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var K_=g9;function y9(e,t){return e===t||e!==e&&t!==t}var mc=y9,b9=K_,x9=mc,w9=Object.prototype,_9=w9.hasOwnProperty;function E9(e,t,r){var n=e[t];(!(_9.call(e,t)&&x9(n,r))||r===void 0&&!(t in e))&&b9(e,t,r)}var G_=E9,S9=Array.isArray,Mn=S9;function O9(e){return e!=null&&typeof e=="object"}var ei=O9,C9=hc,P9=ei,$9="[object Symbol]";function k9(e){return typeof e=="symbol"||P9(e)&&C9(e)==$9}var qf=k9,R9=Mn,T9=qf,j9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I9=/^\w*$/;function A9(e,t){if(R9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||T9(e)?!0:I9.test(e)||!j9.test(e)||t!=null&&e in Object(t)}var Q_=A9,M9=pl,F9=M9(Object,"create"),Qm=F9,IP=Qm;function L9(){this.__data__=IP?IP(null):{},this.size=0}var N9=L9;function D9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var B9=D9,z9=Qm,U9="__lodash_hash_undefined__",V9=Object.prototype,W9=V9.hasOwnProperty;function H9(e){var t=this.__data__;if(z9){var r=t[e];return r===U9?void 0:r}return W9.call(t,e)?t[e]:void 0}var q9=H9,K9=Qm,G9=Object.prototype,Q9=G9.hasOwnProperty;function X9(e){var t=this.__data__;return K9?t[e]!==void 0:Q9.call(t,e)}var Y9=X9,J9=Qm,Z9="__lodash_hash_undefined__";function e7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=J9&&t===void 0?Z9:t,this}var t7=e7,r7=N9,n7=B9,a7=q9,o7=Y9,i7=t7;function gc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var _7=w7,E7=Xm;function S7(e,t){var r=this.__data__,n=E7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var O7=S7,C7=u7,P7=m7,$7=b7,k7=_7,R7=O7;function yc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,h=r&QV?new HV:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e<=HW}var oE=qW,KW=hc,GW=oE,QW=ei,XW="[object Arguments]",YW="[object Array]",JW="[object Boolean]",ZW="[object Date]",eH="[object Error]",tH="[object Function]",rH="[object Map]",nH="[object Number]",aH="[object Object]",oH="[object RegExp]",iH="[object Set]",sH="[object String]",lH="[object WeakMap]",uH="[object ArrayBuffer]",cH="[object DataView]",dH="[object Float32Array]",fH="[object Float64Array]",pH="[object Int8Array]",vH="[object Int16Array]",hH="[object Int32Array]",mH="[object Uint8Array]",gH="[object Uint8ClampedArray]",yH="[object Uint16Array]",bH="[object Uint32Array]",Kt={};Kt[dH]=Kt[fH]=Kt[pH]=Kt[vH]=Kt[hH]=Kt[mH]=Kt[gH]=Kt[yH]=Kt[bH]=!0;Kt[XW]=Kt[YW]=Kt[uH]=Kt[JW]=Kt[cH]=Kt[ZW]=Kt[eH]=Kt[tH]=Kt[rH]=Kt[nH]=Kt[aH]=Kt[oH]=Kt[iH]=Kt[sH]=Kt[lH]=!1;function xH(e){return QW(e)&&GW(e.length)&&!!Kt[KW(e)]}var wH=xH;function _H(e){return function(t){return e(t)}}var Qf=_H,Eh={exports:{}};Eh.exports;(function(e,t){var r=$A,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Eh,Eh.exports);var iE=Eh.exports,EH=wH,SH=Qf,HP=iE,qP=HP&&HP.isTypedArray,OH=qP?SH(qP):EH,sE=OH,CH=IW,PH=ng,$H=Mn,kH=ag,RH=eg,TH=sE,jH=Object.prototype,IH=jH.hasOwnProperty;function AH(e,t){var r=$H(e),n=!r&&PH(e),a=!r&&!n&&kH(e),o=!r&&!n&&!a&&TH(e),i=r||n||a||o,s=i?CH(e.length,String):[],u=s.length;for(var l in e)(t||IH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||RH(l,u)))&&s.push(l);return s}var qA=AH,MH=Object.prototype;function FH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||MH;return e===r}var lE=FH;function LH(e,t){return function(r){return e(t(r))}}var KA=LH,NH=KA,DH=NH(Object.keys,Object),BH=DH,zH=lE,UH=BH,VH=Object.prototype,WH=VH.hasOwnProperty;function HH(e){if(!zH(e))return UH(e);var t=[];for(var r in Object(e))WH.call(e,r)&&r!="constructor"&&t.push(r);return t}var qH=HH,KH=q_,GH=oE;function QH(e){return e!=null&&GH(e.length)&&!KH(e)}var _c=QH,XH=qA,YH=qH,JH=_c;function ZH(e){return JH(e)?XH(e):YH(e)}var Xf=ZH,eq=UA,tq=aE,rq=Xf;function nq(e){return eq(e,rq,tq)}var GA=nq,KP=GA,aq=1,oq=Object.prototype,iq=oq.hasOwnProperty;function sq(e,t,r,n,a,o){var i=r&aq,s=KP(e),u=s.length,l=KP(t),c=l.length;if(u!=c&&!i)return!1;for(var d=u;d--;){var p=s[d];if(!(i?p in t:iq.call(t,p)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var _=i;++d0){if(++t>=PG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var TG=RG,jG=CG,IG=TG,AG=IG(jG),dM=AG,MG=ig,FG=cM,LG=dM;function NG(e,t){return LG(FG(e,t,MG),e+"")}var sg=NG,DG=mc,BG=_c,zG=eg,UG=ba;function VG(e,t,r){if(!UG(r))return!1;var n=typeof t;return(n=="number"?BG(r)&&zG(t,r.length):n=="string"&&t in r)?DG(r[t],e):!1}var fM=VG,WG=sg,HG=fM;function qG(e){return WG(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&HG(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||w<0||d&&O>=o}function x(){var S=b0();if(_(S))return b(S);s=setTimeout(x,g(S))}function b(S){return s=void 0,p&&n?h(S):(n=a=void 0,i)}function y(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function E(){return s===void 0?i:b(b0())}function v(){var S=b0(),w=_(S);if(n=arguments,a=this,u=S,w){if(s===void 0)return m(u);if(d)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),i}return v.cancel=y,v.flush=E,v}var rJ=tJ;const SM=pr(rJ);var nJ=function(e,t){t===void 0&&(t=250);var r=aJ(e,t),n=r[0],a=r[1],o=hn();f.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},aJ=function(e,t){t===void 0&&(t=250);var r=wa(e),n=r[0],a=r[1];return f.useEffect(function(){if(!(typeof window>"u")){var o=SM(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},oJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return nJ(r,a),t},Xi=function(){return f.useContext(EM)},Yi=function(){var e=Xi();return f.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Ja("".concat(e,"/").concat(r));case"create":return Ja("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Ja("".concat(e,"/").concat(r)):Ja("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Ja("".concat(e,"/").concat(r)):Ja("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Ja=function(e){return e.replace("//","/")},jd=function(){return jd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),PM="%[a-f0-9]{2}",P2=new RegExp("("+PM+")|([^%]+?)","gi"),$2=new RegExp("("+PM+")+","gi");function D1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],D1(r),D1(n))}function _J(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(P2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},CJ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;ob==null,i=Symbol("encodeFragmentIdentifier");function s(b){switch(b.arrayFormat){case"index":return y=>(E,v)=>{const S=E.length;return v===void 0||b.skipNull&&v===null||b.skipEmptyString&&v===""?E:v===null?[...E,[c(y,b),"[",S,"]"].join("")]:[...E,[c(y,b),"[",c(S,b),"]=",c(v,b)].join("")]};case"bracket":return y=>(E,v)=>v===void 0||b.skipNull&&v===null||b.skipEmptyString&&v===""?E:v===null?[...E,[c(y,b),"[]"].join("")]:[...E,[c(y,b),"[]=",c(v,b)].join("")];case"colon-list-separator":return y=>(E,v)=>v===void 0||b.skipNull&&v===null||b.skipEmptyString&&v===""?E:v===null?[...E,[c(y,b),":list="].join("")]:[...E,[c(y,b),":list=",c(v,b)].join("")];case"comma":case"separator":case"bracket-separator":{const y=b.arrayFormat==="bracket-separator"?"[]=":"=";return E=>(v,S)=>S===void 0||b.skipNull&&S===null||b.skipEmptyString&&S===""?v:(S=S===null?"":S,v.length===0?[[c(E,b),y,c(S,b)].join("")]:[[v,c(S,b)].join(b.arrayFormatSeparator)])}default:return y=>(E,v)=>v===void 0||b.skipNull&&v===null||b.skipEmptyString&&v===""?E:v===null?[...E,c(y,b)]:[...E,[c(y,b),"=",c(v,b)].join("")]}}function u(b){let y;switch(b.arrayFormat){case"index":return(E,v,S)=>{if(y=/\[(\d*)\]$/.exec(E),E=E.replace(/\[\d*\]$/,""),!y){S[E]=v;return}S[E]===void 0&&(S[E]={}),S[E][y[1]]=v};case"bracket":return(E,v,S)=>{if(y=/(\[\])$/.exec(E),E=E.replace(/\[\]$/,""),!y){S[E]=v;return}if(S[E]===void 0){S[E]=[v];return}S[E]=[].concat(S[E],v)};case"colon-list-separator":return(E,v,S)=>{if(y=/(:list)$/.exec(E),E=E.replace(/:list$/,""),!y){S[E]=v;return}if(S[E]===void 0){S[E]=[v];return}S[E]=[].concat(S[E],v)};case"comma":case"separator":return(E,v,S)=>{const w=typeof v=="string"&&v.includes(b.arrayFormatSeparator),O=typeof v=="string"&&!w&&d(v,b).includes(b.arrayFormatSeparator);v=O?d(v,b):v;const C=w||O?v.split(b.arrayFormatSeparator).map(P=>d(P,b)):v===null?v:d(v,b);S[E]=C};case"bracket-separator":return(E,v,S)=>{const w=/(\[\])$/.test(E);if(E=E.replace(/\[\]$/,""),!w){S[E]=v&&d(v,b);return}const O=v===null?[]:v.split(b.arrayFormatSeparator).map(C=>d(C,b));if(S[E]===void 0){S[E]=O;return}S[E]=[].concat(S[E],O)};default:return(E,v,S)=>{if(S[E]===void 0){S[E]=v;return}S[E]=[].concat(S[E],v)}}}function l(b){if(typeof b!="string"||b.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(b,y){return y.encode?y.strict?t(b):encodeURIComponent(b):b}function d(b,y){return y.decode?r(b):b}function p(b){return Array.isArray(b)?b.sort():typeof b=="object"?p(Object.keys(b)).sort((y,E)=>Number(y)-Number(E)).map(y=>b[y]):b}function h(b){const y=b.indexOf("#");return y!==-1&&(b=b.slice(0,y)),b}function m(b){let y="";const E=b.indexOf("#");return E!==-1&&(y=b.slice(E)),y}function g(b){b=h(b);const y=b.indexOf("?");return y===-1?"":b.slice(y+1)}function _(b,y){return y.parseNumbers&&!Number.isNaN(Number(b))&&typeof b=="string"&&b.trim()!==""?b=Number(b):y.parseBooleans&&b!==null&&(b.toLowerCase()==="true"||b.toLowerCase()==="false")&&(b=b.toLowerCase()==="true"),b}function x(b,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),l(y.arrayFormatSeparator);const E=u(y),v=Object.create(null);if(typeof b!="string"||(b=b.trim().replace(/^[?#&]/,""),!b))return v;for(const S of b.split("&")){if(S==="")continue;let[w,O]=n(y.decode?S.replace(/\+/g," "):S,"=");O=O===void 0?null:["comma","separator","bracket-separator"].includes(y.arrayFormat)?O:d(O,y),E(d(w,y),O,v)}for(const S of Object.keys(v)){const w=v[S];if(typeof w=="object"&&w!==null)for(const O of Object.keys(w))w[O]=_(w[O],y);else v[S]=_(w,y)}return y.sort===!1?v:(y.sort===!0?Object.keys(v).sort():Object.keys(v).sort(y.sort)).reduce((S,w)=>{const O=v[w];return O&&typeof O=="object"&&!Array.isArray(O)?S[w]=p(O):S[w]=O,S},Object.create(null))}e.extract=g,e.parse=x,e.stringify=(b,y)=>{if(!b)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),l(y.arrayFormatSeparator);const E=O=>y.skipNull&&o(b[O])||y.skipEmptyString&&b[O]==="",v=s(y),S={};for(const O of Object.keys(b))E(O)||(S[O]=b[O]);const w=Object.keys(S);return y.sort!==!1&&w.sort(y.sort),w.map(O=>{const C=b[O];return C===void 0?"":C===null?c(O,y):Array.isArray(C)?C.length===0&&y.arrayFormat==="bracket-separator"?c(O,y)+"[]":C.reduce(v(O),[]).join("&"):c(O,y)+"="+c(C,y)}).filter(O=>O.length>0).join("&")},e.parseUrl=(b,y)=>{y=Object.assign({decode:!0},y);const[E,v]=n(b,"#");return Object.assign({url:E.split("?")[0]||"",query:x(g(b),y)},y&&y.parseFragmentIdentifier&&v?{fragmentIdentifier:d(v,y)}:{})},e.stringifyUrl=(b,y)=>{y=Object.assign({encode:!0,strict:!0,[i]:!0},y);const E=h(b.url).split("?")[0]||"",v=e.extract(b.url),S=e.parse(v,{sort:!1}),w=Object.assign(S,b.query);let O=e.stringify(w,y);O&&(O=`?${O}`);let C=m(b.url);return b.fragmentIdentifier&&(C=`#${y[i]?c(b.fragmentIdentifier,y):b.fragmentIdentifier}`),`${E}${O}${C}`},e.pick=(b,y,E)=>{E=Object.assign({parseFragmentIdentifier:!0,[i]:!1},E);const{url:v,query:S,fragmentIdentifier:w}=e.parseUrl(b,E);return e.stringifyUrl({url:v,query:a(S,y),fragmentIdentifier:w},E)},e.exclude=(b,y,E)=>{const v=Array.isArray(y)?S=>!y.includes(S):(S,w)=>!y(S,w);return e.pick(b,v,E)}})(ol);var Ch=function(){return Ch=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new CM(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},RJ=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},$M=function(e,t){var r;return t===void 0&&(t=[]),RJ(e)?Object.assign.apply(Object,PJ([{}],Object.keys(e).map(function(n){return $M(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},kM={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function o(u,l,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new a(c,d||u,p),m=r?r+l:l;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],h]:u._events[m].push(h):(u._events[m]=h,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)t.call(c,d)&&l.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,m=new Array(h);p0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message},FJ=["getList","getMany","getManyReference"],vl=function(){var e=f.useContext(mE)||hE,t=RM(),r=f.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=Ce.useRef(e.isMutating()>0),a=Ce.useState(r.current||n.current),o=a[0],i=a[1];return Ce.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(br.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(br.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Jf=function(){var e=go();return f.useCallback(function(){e.invalidateQueries()},[e])},B1=function(){return B1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):qJ(a,s):n||(a[a.length]=s)}return a}var gE=jM;function GJ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=iZ;function sZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=wZ){var l=t?null:bZ(e);if(l)return xZ(l);i=!1,a=yZ,u=new hZ}else u=t?[]:s;e:for(;++n0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. +Be sure to pass the props from the parent. Example: + +const My`).concat(e,` = props => ( + <`).concat(e," {...props}> +); + +The missing props are: `).concat(a.join(", ")))},W1=function(){return W1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?i[l].apply(i,ed(ed([],d,!1),[c],!1)):o.apply(void 0,d)};return i.length>0?i[l].apply(i,ed(ed([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=f.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},$h=function(){return $h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||g(typeof U=="string"?U:U.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof U=="string"?U:U instanceof Error||typeof U=="object"&&U!==null&&U.hasOwnProperty("message")?U.message:void 0}})}},v),{returnPromise:!0,getMutateWithMiddlewares:O})),$=P[0],R=P[1].isPending,A=f.useCallback(function(U,W){W===void 0&&(W={});var T=W.transform,V=W.meta,X=L2(W,["transform","meta"]);return Promise.resolve(T?T(U):o?o(U):U).then(function(ie){return M2(void 0,void 0,void 0,function(){var ae,pe;return F2(this,function(ye){switch(ye.label){case 0:return ye.trys.push([0,2,,3]),[4,$(u,{data:ie,meta:V??E},X)];case 1:return ye.sent(),[3,3];case 2:return ae=ye.sent(),(ae instanceof CM||typeof ae=="object"&&ae!==null&&ae.hasOwnProperty("body"))&&((pe=ae.body)===null||pe===void 0?void 0:pe.errors)!=null?[2,ae.body.errors]:[3,3];case 3:return[2]}})})})},[$,E,u,o]),M=$c(),I=m("ra.page.create",{name:M(u,1)});return{isFetching:!1,isLoading:!1,isPending:R,saving:R,defaultTitle:I,save:A,resource:u,record:x,redirect:p,registerMutationMiddleware:w,unregisterMutationMiddleware:C}},See=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ol.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},Oee=function(e,t){return t?"edit":e?"show":"list"},bE=f.createContext(void 0);bE.displayName="RecordContext";var il=function(e){var t=e.children,r=e.value;return f.createElement(bE.Provider,{value:r},t)},xE=f.createContext(null);xE.displayName="CreateContext";var kh=function(){return kh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!He||a!=="pessimistic")&&g(typeof Ee=="string"?Ee:Ee.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Ee=="string"?Ee:Ee instanceof Error||typeof Ee=="object"&&Ee!==null&&Ee.hasOwnProperty("message")?Ee.message:void 0}})}},C),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:R})),_e=be[0],ke=be[1].isPending,$e=f.useCallback(function(Ee,ze){var je=ze===void 0?{}:ze,De=je.onSuccess,Me=je.onError,He=je.transform,et=je.meta;return Promise.resolve(He?He(Ee,{previousData:ye.previousData}):d?d(Ee,{previousData:ye.previousData}):Ee).then(function(ft){return N2(void 0,void 0,void 0,function(){var gt,z;return D2(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,2,,3]),[4,_e(p,{id:y,data:ft,meta:et??S},{onError:Me,onSuccess:De})];case 1:return Q.sent(),[3,3];case 2:return gt=Q.sent(),((z=gt.body)===null||z===void 0?void 0:z.errors)!=null?[2,gt.body.errors]:[3,3];case 3:return[2]}})})})},[y,S,p,d,_e,ye.previousData]);return{defaultTitle:pe,error:U,isFetching:T,isLoading:W,isPending:V,mutationMode:a,record:I,redirect:c,refetch:X,registerMutationMiddleware:$,resource:p,save:$e,saving:ke,unregisterMutationMiddleware:A}},Tee="list",gn=function(e){var t=f.useContext(bE);return e&&e.record||t},GM=function(e){var t=e.value,r=e.children;return t?f.createElement(il,{value:t},r):r},jee=function(e){var t=gn(e),r=Mt(e),n=zE(r);return f.createElement(f.Fragment,null,n(t))},wE=f.createContext(null);wE.displayName="EditContext";var Iee=function(e){var t=e.children,r=e.value;return f.createElement(wE.Provider,{value:r},f.createElement(VM,{value:qM(r)},f.createElement(il,{value:r&&r.record},t)))},Aee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":XM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),Vee=Uee,Wee=typeof window>"u"?Ss:window;function Hee(e,t){if(e instanceof Wee[t])return!0;switch(typeof e>"u"?"undefined":XM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var O0,z2;function qee(){return z2||(z2=1,O0=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),O0}var Kee=function(){function e(t,r){for(var n=0;n0&&(d=d.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(d=d.map(o)),a.push(d.join(this._options.rowDelimiter)),n=d}}catch(h){s=!0,u=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(_){var x=a._headers.indexOf(_);return x===-1&&(a._headers.push(_),x=a._headers.indexOf(_)),x};i=function(_){var x=[],b=function(M){return x.push(M.map(function(I){return I??""}))},y=function(){return new Array(a._headers.length).fill(null)},E={},v=y(),S=!0,w=!1,O=void 0;try{for(var C=_[Symbol.iterator](),P;!(S=(P=C.next()).done);S=!0){var $=P.value,R=s($.item);if(v[R]!=null&&(b(v),v=y()),E[R]=E[R]||0,a._options.fillTopRow&&E[R]0&&b(v),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var d=r[Symbol.iterator](),p;!(u=(p=d.next()).done);u=!0){var h=p.value,m=a._handler.check(h,a._options.mainPathItem,h,r);i(m)}}catch(g){l=!0,c=g}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),U2(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(d){var p=d.value||d.value===0?d.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var h=[d.item,p];a.push(h.join(n._options.rowDelimiter))}else s[0].push(d.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),U2(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Yee=Xee,Jee=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Zee=Jee,W2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H2=Yee,q2=Zee,ete=QM,tte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:ete,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":W2(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":W2(u))==="object"){var l=Object.keys(e),c=Object.keys(u),d=c.every(function(m){return l.includes(m)});c.length>0&&d?r=u:t=u}else t=u}else return new q2(new H2(e));var p=Object.assign({},e,r),h=new H2(p);return t?new Promise(function(m,g){h.parse(t,function(_,x){if(n)return n(_,x);if(_)return g(_);if(g)return m(x)})}):new q2};const rte=pr(tte),nte=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var ate=function(e,t,r,n){return rte(e,function(a,o){return nte(o,n)})},ote=function(e){return function(t,r,n){return e.getMany(n,{ids:ite(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},ite=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Ol=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||m(function(b){if(!Array.isArray(b))return Ol([],b,!0);var y=b.indexOf(x);return y>-1?Ol(Ol([],b.slice(0,y),!0),b.slice(y+1),!0):Ol(Ol([],b,!0),[x],!1)})},clearSelection:function(){g()}}},[m,g]);return[h,_]},C0=[],ste=rg,lte=uE,ute=1,cte=2;function dte(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a0&&!w&&E(P)},[h.search]);var $=f.useCallback(function(ie){S.current&&(v.current?v.current=A2(v.current,ie):(v.current=A2(P,ie),setTimeout(function(){v.current&&(a?x(v.current):m({search:"?".concat(ol.stringify(Lo(Lo({},v.current),{filter:JSON.stringify(v.current.filter),displayedFilters:JSON.stringify(v.current.displayedFilters)})))},{state:{_scrollToTop:ie.type===U1}}),v.current=void 0)},0)))},K2(K2([],O,!0),[m],!1)),R=f.useCallback(function(ie){return $({type:LM,payload:ie})},[$]),A=f.useCallback(function(ie){return $({type:U1,payload:ie})},[$]),M=f.useCallback(function(ie){return $({type:NM,payload:ie})},[$]),I=P.filter||X2,U=P.displayedFilters||X2,W=SM(function(ie,ae){$({type:V1,payload:{filter:Qu(ie),displayedFilters:ae}})},r),T=f.useCallback(function(ie,ae,pe){return ae===void 0&&(ae=void 0),pe===void 0&&(pe=!1),pe?W(ie,ae):$({type:V1,payload:{filter:Qu(ie),displayedFilters:ae}})},[$]),V=f.useCallback(function(ie){$({type:BM,payload:ie})},[$]),X=f.useCallback(function(ie,ae){$({type:DM,payload:{filterName:ie,defaultValue:ae}})},[$]);return[Lo(Lo({filterValues:I,requestSignature:O},P),{displayedFilters:U}),{changeParams:$,setPage:A,setPerPage:M,setSort:R,setFilters:T,hideFilter:V,showFilter:X}]},lre=["page","perPage","sort","order","filter","displayedFilters"],G2=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},ure=function(e){var t=e.search,r=ore(ol.parse(t),function(n,a){return lre.indexOf(a)!==-1});return G2(r,"filter"),G2(r,"displayedFilters"),r},cre=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},dre=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:cre(r)?Lo({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Lo(Lo({},i),{page:Q2(i.page,1),perPage:Q2(i.perPage,10)})},Q2=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},X2={},fre={field:"id",order:Vs},Y2={},cg=f.createContext(null);cg.displayName="ListContext";var ZM=f.createContext(void 0),pre=function(e){return f.useMemo(function(){return lg(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};ZM.displayName="ListFilterContext";var e3=f.createContext(void 0),vre=function(e){return f.useMemo(function(){return lg(e,["sort","setSort","resource"])},[e.sort,e.setSort])};e3.displayName="ListSortContext";var SE=f.createContext(void 0);SE.displayName="ListPaginationContext";var hre=function(e){return f.useMemo(function(){return lg(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},t3=function(e){var t=e.value,r=e.children;return f.createElement(cg.Provider,{value:t},f.createElement(ZM.Provider,{value:pre(t)},f.createElement(e3.Provider,{value:vre(t)},f.createElement(SE.Provider,{value:hre(t)},r))))},Ws=function(){return Ws=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(R==null||(R==null?void 0:R.length)===0)){w.setPage(1);return}if(M!=null){var pe=Math.ceil(M/S.perPage)||1;!W&&S.page>pe&&w.setPage(pe)}},[W,S.page,S.perPage,R,w,M]);var X=f.useMemo(function(){return{field:S.sort,order:S.order}},[S.sort,S.order]),ie=$c(),ae=y("ra.page.list",{name:ie(_,2)});return{sort:X,data:R,defaultTitle:ae,displayedFilters:S.displayedFilters,error:I,exporter:i,filter:s,filterValues:S.filterValues,hideFilter:w.hideFilter,isFetching:W,isLoading:U,isPending:T,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:S.page,perPage:S.perPage,refetch:V,resource:_,selectedIds:C,setFilters:w.setFilters,setPage:w.setPage,setPerPage:w.setPerPage,setSort:w.setSort,showFilter:w.showFilter,total:M,hasNextPage:A?A.hasNextPage:M!=null?S.page*S.perPage1}},yre={field:"id",order:Vs},bre=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Yu=function(e){return Object.keys(e).filter(function(t){return!bre.includes(t)}).reduce(function(t,r){var n;return Ws(Ws({},t),(n={},n[r]=e[r],n))},{})},xre=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Dp(Dp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Dp(Dp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Ere=function(e,t){var r=wa("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=f.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},eu=function(){return eu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rfr(he,ae.field)?ae.order==="ASC"?1:-1:fr(oe,ae.field)1,hideFilter:et,isFetching:v,isLoading:O,isPending:$,onSelect:ke.select,onToggleItem:ke.toggle,onUnselectItems:ke.clearSelection,page:W,perPage:V,resource:"",refetch:Sre,selectedIds:_e,setFilters:gt,setPage:T,setPerPage:X,setSort:ye,showFilter:ft,total:M==null?void 0:M.total}},Cre={},za=function(){var e=f.useContext(cg);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},Pre=sg,$re=mc,kre=fM,Rre=Sc,r3=Object.prototype,Tre=r3.hasOwnProperty,jre=Pre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&kre(t[0],t[1],a)&&(n=1);++re.type==="checkbox",tu=e=>e instanceof Date,dn=e=>e==null;const a3=e=>typeof e=="object";var Ir=e=>!dn(e)&&!Array.isArray(e)&&a3(e)&&!tu(e),o3=e=>Ir(e)&&e.target?Zf(e.target)?e.target.checked:e.target.value:e,Fre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,i3=(e,t)=>e.has(Fre(t)),Lre=e=>{const t=e.constructor&&e.constructor.prototype;return Ir(t)&&t.hasOwnProperty("isPrototypeOf")},PE=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _n(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(PE&&(e instanceof Blob||e instanceof FileList))&&(r||Ir(e)))if(t=r?[]:{},!r&&!Lre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=_n(e[n]));else return e;return t}var ep=e=>Array.isArray(e)?e.filter(Boolean):[],dr=e=>e===void 0,Te=(e,t,r)=>{if(!t||!Ir(e))return r;const n=ep(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return dr(n)||n===e?dr(e[t])?r:e[t]:n},ao=e=>typeof e=="boolean",$E=e=>/^\w*$/.test(e),s3=e=>ep(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=$E(t)?[t]:s3(t),o=a.length,i=o-1;for(;++nCe.useContext(l3),u3=e=>{const{children:t,...r}=e;return Ce.createElement(l3.Provider,{value:r},t)};var c3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Ma.all&&(t._proxyFormState[i]=!n||Ma.all),r&&(r[i]=!0),e[i]}});return a},Bn=e=>Ir(e)&&!Object.keys(e).length,d3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Bn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ma.all))},bv=e=>Array.isArray(e)?e:[e],f3=(e,t,r)=>!e||!t||e===t||bv(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function kE(e){const t=Ce.useRef(e);t.current=e,Ce.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function dg(e){const t=Cc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=Ce.useState(r._formState),u=Ce.useRef(!0),l=Ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Ce.useRef(a);return c.current=a,kE({disabled:n,next:d=>u.current&&f3(c.current,d.name,o)&&d3(d,l.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),Ce.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),c3(i,r,l.current,!1)}var io=e=>typeof e=="string",p3=(e,t,r,n,a)=>io(e)?(n&&t.watch.add(e),Te(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Te(r,o))):(n&&(t.watchAll=!0),r);function Nre(e){const t=Cc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=Ce.useRef(n);s.current=n,kE({disabled:o,subject:r._subjects.values,next:c=>{f3(s.current,c.name,i)&&l(_n(p3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=Ce.useState(r._getWatch(n,a));return Ce.useEffect(()=>r._removeUnmounted()),u}function Dre(e){const t=Cc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=i3(a._names.array,r),s=Nre({control:a,name:r,defaultValue:Te(a._formValues,r,Te(a._defaultValues,r,e.defaultValue)),exact:!0}),u=dg({control:a,name:r}),l=Ce.useRef(a.register(r,{...e.rules,value:s,...ao(e.disabled)?{disabled:e.disabled}:{}}));return Ce.useEffect(()=>{const c=a._options.shouldUnregister||o,d=(p,h)=>{const m=Te(a._fields,p);m&&m._f&&(m._f.mount=h)};if(d(r,!0),c){const p=_n(Te(a._options.defaultValues,r));Ut(a._defaultValues,r,p),dr(Te(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):d(r,!1)}},[r,a,i,o]),Ce.useEffect(()=>{Te(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Te(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ao(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:Ce.useCallback(c=>l.current.onChange({target:{value:o3(c),name:r},type:Rh.CHANGE}),[r]),onBlur:Ce.useCallback(()=>l.current.onBlur({target:{value:Te(a._formValues,r),name:r},type:Rh.BLUR}),[r,a]),ref:c=>{const d=Te(a._fields,r);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Te(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Te(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Te(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Te(u.validatingFields,r)},error:{enumerable:!0,get:()=>Te(u.errors,r)}})}}var Bre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},Z2=e=>({isOnSubmit:!e||e===Ma.onSubmit,isOnBlur:e===Ma.onBlur,isOnChange:e===Ma.onChange,isOnAll:e===Ma.all,isOnTouch:e===Ma.onTouched}),e$=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Md=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Te(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;Md(s,t)}else Ir(s)&&Md(s,t)}}};var zre=(e,t,r)=>{const n=ep(Te(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},RE=e=>e.type==="file",$i=e=>typeof e=="function",Th=e=>{if(!PE)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},xv=e=>io(e),TE=e=>e.type==="radio",jh=e=>e instanceof RegExp;const t$={value:!1,isValid:!1},r$={value:!0,isValid:!0};var v3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dr(e[0].attributes.value)?dr(e[0].value)||e[0].value===""?r$:{value:e[0].value,isValid:!0}:r$:t$}return t$};const n$={isValid:!1,value:null};var h3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,n$):n$;function a$(e,t,r="validate"){if(xv(e)||Array.isArray(e)&&e.every(xv)||ao(e)&&!e)return{type:r,message:xv(e)?e:"",ref:t}}var Cl=e=>Ir(e)&&!jh(e)?e:{value:e,message:""},o$=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:g,mount:_,disabled:x}=e._f,b=Te(t,m);if(!_||x)return{};const y=i?i[0]:o,E=R=>{n&&y.reportValidity&&(y.setCustomValidity(ao(R)?"":R||""),y.reportValidity())},v={},S=TE(o),w=Zf(o),O=S||w,C=(g||RE(o))&&dr(o.value)&&dr(b)||Th(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,P=Bre.bind(null,m,r,v),$=(R,A,M,I=Co.maxLength,U=Co.minLength)=>{const W=R?A:M;v[m]={type:R?I:U,message:W,ref:o,...P(R?I:U,W)}};if(a?!Array.isArray(b)||!b.length:s&&(!O&&(C||dn(b))||ao(b)&&!b||w&&!v3(i).isValid||S&&!h3(i).isValid)){const{value:R,message:A}=xv(s)?{value:!!s,message:s}:Cl(s);if(R&&(v[m]={type:Co.required,message:A,ref:y,...P(Co.required,A)},!r))return E(A),v}if(!C&&(!dn(c)||!dn(d))){let R,A;const M=Cl(d),I=Cl(c);if(!dn(b)&&!isNaN(b)){const U=o.valueAsNumber||b&&+b;dn(M.value)||(R=U>M.value),dn(I.value)||(A=Unew Date(new Date().toDateString()+" "+X),T=o.type=="time",V=o.type=="week";io(M.value)&&b&&(R=T?W(b)>W(M.value):V?b>M.value:U>new Date(M.value)),io(I.value)&&b&&(A=T?W(b)+R.value,I=!dn(A.value)&&b.length<+A.value;if((M||I)&&($(M,R.message,A.message),!r))return E(v[m].message),v}if(p&&!C&&io(b)){const{value:R,message:A}=Cl(p);if(jh(R)&&!b.match(R)&&(v[m]={type:Co.pattern,message:A,ref:o,...P(Co.pattern,A)},!r))return E(A),v}if(h){if($i(h)){const R=await h(b,t),A=a$(R,y);if(A&&(v[m]={...A,...P(Co.validate,A.message)},!r))return E(A.message),v}else if(Ir(h)){let R={};for(const A in h){if(!Bn(R)&&!r)break;const M=a$(await h[A](b,t),y,A);M&&(R={...M,...P(A,M.message)},E(M.message),r&&(v[m]=R))}if(!Bn(R)&&(v[m]={ref:y,...R},!r))return v}}return E(!0),v};function Ure(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Ih=e=>dn(e)||!a3(e);function Rs(e,t){if(Ih(e)||Ih(t))return e===t;if(tu(e)&&tu(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(tu(o)&&tu(i)||Ir(o)&&Ir(i)||Array.isArray(o)&&Array.isArray(i)?!Rs(o,i):o!==i)return!1}}return!0}var m3=e=>e.type==="select-multiple",Wre=e=>TE(e)||Zf(e),$0=e=>Th(e)&&e.isConnected,g3=e=>{for(const t in e)if($i(e[t]))return!0;return!1};function Ah(e,t={}){const r=Array.isArray(e);if(Ir(e)||r)for(const n in e)Array.isArray(e[n])||Ir(e[n])&&!g3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Ah(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function y3(e,t,r){const n=Array.isArray(e);if(Ir(e)||n)for(const a in e)Array.isArray(e[a])||Ir(e[a])&&!g3(e[a])?dr(t)||Ih(r[a])?r[a]=Array.isArray(e[a])?Ah(e[a],[]):{...Ah(e[a])}:y3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!Rs(e[a],t[a]);return r}var Bp=(e,t)=>y3(e,t,Ah(t)),b3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>dr(e)?e:t?e===""?NaN:e&&+e:r&&io(e)?new Date(e):n?n(e):e;function k0(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return RE(t)?t.files:TE(t)?h3(e.refs).value:m3(t)?[...t.selectedOptions].map(({value:r})=>r):Zf(t)?v3(e.refs).value:b3(dr(t.value)?e.ref.value:t.value,e)}var Hre=(e,t,r,n)=>{const a={};for(const o of e){const i=Te(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},td=e=>dr(e)?e:jh(e)?e.source:Ir(e)?jh(e.value)?e.value.source:e.value:e,qre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function i$(e,t,r){const n=Te(e,r);if(n||$E(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Te(t,o),s=Te(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Kre=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Gre=(e,t)=>!ep(Te(e,t)).length&&$r(e,t);const Qre={mode:Ma.onSubmit,reValidateMode:Ma.onChange,shouldFocusError:!0};function Xre(e={}){let t={...Qre,...e},r={submitCount:0,isDirty:!1,isLoading:$i(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Ir(t.defaultValues)||Ir(t.values)?_n(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:_n(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:P0(),array:P0(),state:P0()},p=Z2(t.mode),h=Z2(t.reValidateMode),m=t.criteriaMode===Ma.all,g=z=>Q=>{clearTimeout(l),l=setTimeout(z,Q)},_=async z=>{if(c.isValid||z){const Q=t.resolver?Bn((await O()).errors):await P(n,!0);Q!==r.isValid&&d.state.next({isValid:Q})}},x=(z,Q)=>{(c.isValidating||c.validatingFields)&&((z||Array.from(s.mount)).forEach(Z=>{Z&&(Q?Ut(r.validatingFields,Z,Q):$r(r.validatingFields,Z))}),d.state.next({validatingFields:r.validatingFields,isValidating:!Bn(r.validatingFields)}))},b=(z,Q=[],Z,oe,he=!0,de=!0)=>{if(oe&&Z){if(i.action=!0,de&&Array.isArray(Te(n,z))){const ge=Z(Te(n,z),oe.argA,oe.argB);he&&Ut(n,z,ge)}if(de&&Array.isArray(Te(r.errors,z))){const ge=Z(Te(r.errors,z),oe.argA,oe.argB);he&&Ut(r.errors,z,ge),Gre(r.errors,z)}if(c.touchedFields&&de&&Array.isArray(Te(r.touchedFields,z))){const ge=Z(Te(r.touchedFields,z),oe.argA,oe.argB);he&&Ut(r.touchedFields,z,ge)}c.dirtyFields&&(r.dirtyFields=Bp(a,o)),d.state.next({name:z,isDirty:R(z,Q),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,z,Q)},y=(z,Q)=>{Ut(r.errors,z,Q),d.state.next({errors:r.errors})},E=z=>{r.errors=z,d.state.next({errors:r.errors,isValid:!1})},v=(z,Q,Z,oe)=>{const he=Te(n,z);if(he){const de=Te(o,z,dr(Z)?Te(a,z):Z);dr(de)||oe&&oe.defaultChecked||Q?Ut(o,z,Q?de:k0(he._f)):I(z,de),i.mount&&_()}},S=(z,Q,Z,oe,he)=>{let de=!1,ge=!1;const Y={name:z},H=!!(Te(n,z)&&Te(n,z)._f&&Te(n,z)._f.disabled);if(!Z||oe){c.isDirty&&(ge=r.isDirty,r.isDirty=Y.isDirty=R(),de=ge!==Y.isDirty);const K=H||Rs(Te(a,z),Q);ge=!!(!H&&Te(r.dirtyFields,z)),K||H?$r(r.dirtyFields,z):Ut(r.dirtyFields,z,!0),Y.dirtyFields=r.dirtyFields,de=de||c.dirtyFields&&ge!==!K}if(Z){const K=Te(r.touchedFields,z);K||(Ut(r.touchedFields,z,Z),Y.touchedFields=r.touchedFields,de=de||c.touchedFields&&K!==Z)}return de&&he&&d.state.next(Y),de?Y:{}},w=(z,Q,Z,oe)=>{const he=Te(r.errors,z),de=c.isValid&&ao(Q)&&r.isValid!==Q;if(e.delayError&&Z?(u=g(()=>y(z,Z)),u(e.delayError)):(clearTimeout(l),u=null,Z?Ut(r.errors,z,Z):$r(r.errors,z)),(Z?!Rs(he,Z):he)||!Bn(oe)||de){const ge={...oe,...de&&ao(Q)?{isValid:Q}:{},errors:r.errors,name:z};r={...r,...ge},d.state.next(ge)}},O=async z=>{x(z,!0);const Q=await t.resolver(o,t.context,Hre(z||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(z),Q},C=async z=>{const{errors:Q}=await O(z);if(z)for(const Z of z){const oe=Te(Q,Z);oe?Ut(r.errors,Z,oe):$r(r.errors,Z)}else r.errors=Q;return Q},P=async(z,Q,Z={valid:!0})=>{for(const oe in z){const he=z[oe];if(he){const{_f:de,...ge}=he;if(de){const Y=s.array.has(de.name);x([oe],!0);const H=await o$(he,o,m,t.shouldUseNativeValidation&&!Q,Y);if(x([oe]),H[de.name]&&(Z.valid=!1,Q))break;!Q&&(Te(H,de.name)?Y?zre(r.errors,H,de.name):Ut(r.errors,de.name,H[de.name]):$r(r.errors,de.name))}ge&&await P(ge,Q,Z)}}return Z.valid},$=()=>{for(const z of s.unMount){const Q=Te(n,z);Q&&(Q._f.refs?Q._f.refs.every(Z=>!$0(Z)):!$0(Q._f.ref))&&_e(z)}s.unMount=new Set},R=(z,Q)=>(z&&Q&&Ut(o,z,Q),!Rs(ie(),a)),A=(z,Q,Z)=>p3(z,s,{...i.mount?o:dr(Q)?a:io(z)?{[z]:Q}:Q},Z,Q),M=z=>ep(Te(i.mount?o:a,z,e.shouldUnregister?Te(a,z,[]):[])),I=(z,Q,Z={})=>{const oe=Te(n,z);let he=Q;if(oe){const de=oe._f;de&&(!de.disabled&&Ut(o,z,b3(Q,de)),he=Th(de.ref)&&dn(Q)?"":Q,m3(de.ref)?[...de.ref.options].forEach(ge=>ge.selected=he.includes(ge.value)):de.refs?Zf(de.ref)?de.refs.length>1?de.refs.forEach(ge=>(!ge.defaultChecked||!ge.disabled)&&(ge.checked=Array.isArray(he)?!!he.find(Y=>Y===ge.value):he===ge.value)):de.refs[0]&&(de.refs[0].checked=!!he):de.refs.forEach(ge=>ge.checked=ge.value===he):RE(de.ref)?de.ref.value="":(de.ref.value=he,de.ref.type||d.values.next({name:z,values:{...o}})))}(Z.shouldDirty||Z.shouldTouch)&&S(z,he,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&X(z)},U=(z,Q,Z)=>{for(const oe in Q){const he=Q[oe],de=`${z}.${oe}`,ge=Te(n,de);(s.array.has(z)||!Ih(he)||ge&&!ge._f)&&!tu(he)?U(de,he,Z):I(de,he,Z)}},W=(z,Q,Z={})=>{const oe=Te(n,z),he=s.array.has(z),de=_n(Q);Ut(o,z,de),he?(d.array.next({name:z,values:{...o}}),(c.isDirty||c.dirtyFields)&&Z.shouldDirty&&d.state.next({name:z,dirtyFields:Bp(a,o),isDirty:R(z,de)})):oe&&!oe._f&&!dn(de)?U(z,de,Z):I(z,de,Z),e$(z,s)&&d.state.next({...r}),d.values.next({name:i.mount?z:void 0,values:{...o}})},T=async z=>{i.mount=!0;const Q=z.target;let Z=Q.name,oe=!0;const he=Te(n,Z),de=()=>Q.type?k0(he._f):o3(z),ge=Y=>{oe=Number.isNaN(Y)||Y===Te(o,Z,Y)};if(he){let Y,H;const K=de(),ne=z.type===Rh.BLUR||z.type===Rh.FOCUS_OUT,se=!qre(he._f)&&!t.resolver&&!Te(r.errors,Z)&&!he._f.deps||Kre(ne,Te(r.touchedFields,Z),r.isSubmitted,h,p),Ae=e$(Z,s,ne);Ut(o,Z,K),ne?(he._f.onBlur&&he._f.onBlur(z),u&&u(0)):he._f.onChange&&he._f.onChange(z);const We=S(Z,K,ne,!1),Le=!Bn(We)||Ae;if(!ne&&d.values.next({name:Z,type:z.type,values:{...o}}),se)return c.isValid&&_(),Le&&d.state.next({name:Z,...Ae?{}:We});if(!ne&&Ae&&d.state.next({...r}),t.resolver){const{errors:Pe}=await O([Z]);if(ge(K),oe){const Xe=i$(r.errors,n,Z),at=i$(Pe,n,Xe.name||Z);Y=at.error,Z=at.name,H=Bn(Pe)}}else x([Z],!0),Y=(await o$(he,o,m,t.shouldUseNativeValidation))[Z],x([Z]),ge(K),oe&&(Y?H=!1:c.isValid&&(H=await P(n,!0)));oe&&(he._f.deps&&X(he._f.deps),w(Z,H,Y,We))}},V=(z,Q)=>{if(Te(r.errors,Q)&&z.focus)return z.focus(),1},X=async(z,Q={})=>{let Z,oe;const he=bv(z);if(t.resolver){const de=await C(dr(z)?z:he);Z=Bn(de),oe=z?!he.some(ge=>Te(de,ge)):Z}else z?(oe=(await Promise.all(he.map(async de=>{const ge=Te(n,de);return await P(ge&&ge._f?{[de]:ge}:ge)}))).every(Boolean),!(!oe&&!r.isValid)&&_()):oe=Z=await P(n);return d.state.next({...!io(z)||c.isValid&&Z!==r.isValid?{}:{name:z},...t.resolver||!z?{isValid:Z}:{},errors:r.errors}),Q.shouldFocus&&!oe&&Md(n,V,z?he:s.mount),oe},ie=z=>{const Q={...i.mount?o:a};return dr(z)?Q:io(z)?Te(Q,z):z.map(Z=>Te(Q,Z))},ae=(z,Q)=>({invalid:!!Te((Q||r).errors,z),isDirty:!!Te((Q||r).dirtyFields,z),error:Te((Q||r).errors,z),isValidating:!!Te(r.validatingFields,z),isTouched:!!Te((Q||r).touchedFields,z)}),pe=z=>{z&&bv(z).forEach(Q=>$r(r.errors,Q)),d.state.next({errors:z?r.errors:{}})},ye=(z,Q,Z)=>{const oe=(Te(n,z,{_f:{}})._f||{}).ref,he=Te(r.errors,z)||{},{ref:de,message:ge,type:Y,...H}=he;Ut(r.errors,z,{...H,...Q,ref:oe}),d.state.next({name:z,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&oe&&oe.focus&&oe.focus()},be=(z,Q)=>$i(z)?d.values.subscribe({next:Z=>z(A(void 0,Q),Z)}):A(z,Q,!0),_e=(z,Q={})=>{for(const Z of z?bv(z):s.mount)s.mount.delete(Z),s.array.delete(Z),Q.keepValue||($r(n,Z),$r(o,Z)),!Q.keepError&&$r(r.errors,Z),!Q.keepDirty&&$r(r.dirtyFields,Z),!Q.keepTouched&&$r(r.touchedFields,Z),!Q.keepIsValidating&&$r(r.validatingFields,Z),!t.shouldUnregister&&!Q.keepDefaultValue&&$r(a,Z);d.values.next({values:{...o}}),d.state.next({...r,...Q.keepDirty?{isDirty:R()}:{}}),!Q.keepIsValid&&_()},ke=({disabled:z,name:Q,field:Z,fields:oe,value:he})=>{if(ao(z)&&i.mount||z){const de=z?void 0:dr(he)?k0(Z?Z._f:Te(oe,Q)._f):he;Ut(o,Q,de),S(Q,de,!1,!1,!0)}},$e=(z,Q={})=>{let Z=Te(n,z);const oe=ao(Q.disabled);return Ut(n,z,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:z}},name:z,mount:!0,...Q}}),s.mount.add(z),Z?ke({field:Z,disabled:Q.disabled,name:z,value:Q.value}):v(z,!0,Q.value),{...oe?{disabled:Q.disabled}:{},...t.progressive?{required:!!Q.required,min:td(Q.min),max:td(Q.max),minLength:td(Q.minLength),maxLength:td(Q.maxLength),pattern:td(Q.pattern)}:{},name:z,onChange:T,onBlur:T,ref:he=>{if(he){$e(z,Q),Z=Te(n,z);const de=dr(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,ge=Wre(de),Y=Z._f.refs||[];if(ge?Y.find(H=>H===de):de===Z._f.ref)return;Ut(n,z,{_f:{...Z._f,...ge?{refs:[...Y.filter($0),de,...Array.isArray(Te(a,z))?[{}]:[]],ref:{type:de.type,name:z}}:{ref:de}}}),v(z,!1,void 0,de)}else Z=Te(n,z,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(i3(s.array,z)&&i.action)&&s.unMount.add(z)}}},Ee=()=>t.shouldFocusError&&Md(n,V,s.mount),ze=z=>{ao(z)&&(d.state.next({disabled:z}),Md(n,(Q,Z)=>{const oe=Te(n,Z);oe&&(Q.disabled=oe._f.disabled||z,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(he=>{he.disabled=oe._f.disabled||z}))},0,!1))},je=(z,Q)=>async Z=>{let oe;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let he=_n(o);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:de,values:ge}=await O();r.errors=de,he=ge}else await P(n);if($r(r.errors,"root"),Bn(r.errors)){d.state.next({errors:{}});try{await z(he,Z)}catch(de){oe=de}}else Q&&await Q({...r.errors},Z),Ee(),setTimeout(Ee);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bn(r.errors)&&!oe,submitCount:r.submitCount+1,errors:r.errors}),oe)throw oe},De=(z,Q={})=>{Te(n,z)&&(dr(Q.defaultValue)?W(z,_n(Te(a,z))):(W(z,Q.defaultValue),Ut(a,z,_n(Q.defaultValue))),Q.keepTouched||$r(r.touchedFields,z),Q.keepDirty||($r(r.dirtyFields,z),r.isDirty=Q.defaultValue?R(z,_n(Te(a,z))):R()),Q.keepError||($r(r.errors,z),c.isValid&&_()),d.state.next({...r}))},Me=(z,Q={})=>{const Z=z?_n(z):a,oe=_n(Z),he=Bn(z),de=he?a:oe;if(Q.keepDefaultValues||(a=Z),!Q.keepValues){if(Q.keepDirtyValues)for(const ge of s.mount)Te(r.dirtyFields,ge)?Ut(de,ge,Te(o,ge)):W(ge,Te(de,ge));else{if(PE&&dr(z))for(const ge of s.mount){const Y=Te(n,ge);if(Y&&Y._f){const H=Array.isArray(Y._f.refs)?Y._f.refs[0]:Y._f.ref;if(Th(H)){const K=H.closest("form");if(K){K.reset();break}}}}n={}}o=e.shouldUnregister?Q.keepDefaultValues?_n(a):{}:_n(de),d.array.next({values:{...de}}),d.values.next({values:{...de}})}s={mount:Q.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,i.watch=!!e.shouldUnregister,d.state.next({submitCount:Q.keepSubmitCount?r.submitCount:0,isDirty:he?!1:Q.keepDirty?r.isDirty:!!(Q.keepDefaultValues&&!Rs(z,a)),isSubmitted:Q.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:he?[]:Q.keepDirtyValues?Q.keepDefaultValues&&o?Bp(a,o):r.dirtyFields:Q.keepDefaultValues&&z?Bp(a,z):Q.keepDirty?r.dirtyFields:{},touchedFields:Q.keepTouched?r.touchedFields:{},errors:Q.keepErrors?r.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},He=(z,Q)=>Me($i(z)?z(o):z,Q);return{control:{register:$e,unregister:_e,getFieldState:ae,handleSubmit:je,setError:ye,_executeSchema:O,_getWatch:A,_getDirty:R,_updateValid:_,_removeUnmounted:$,_updateFieldArray:b,_updateDisabledField:ke,_getFieldArray:M,_reset:Me,_resetDefaultValues:()=>$i(t.defaultValues)&&t.defaultValues().then(z=>{He(z,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:z=>{r={...r,...z}},_disableForm:ze,_subjects:d,_proxyFormState:c,_setErrors:E,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(z){i=z},get _defaultValues(){return a},get _names(){return s},set _names(z){s=z},get _formState(){return r},set _formState(z){r=z},get _options(){return t},set _options(z){t={...t,...z}}},trigger:X,register:$e,handleSubmit:je,watch:be,setValue:W,getValues:ie,reset:He,resetField:De,clearErrors:pe,unregister:_e,setError:ye,setFocus:(z,Q={})=>{const Z=Te(n,z),oe=Z&&Z._f;if(oe){const he=oe.refs?oe.refs[0]:oe.ref;he.focus&&(he.focus(),Q.shouldSelect&&he.select())}},getFieldState:ae}}function x3(e={}){const t=Ce.useRef(),r=Ce.useRef(),[n,a]=Ce.useState({isDirty:!1,isValidating:!1,isLoading:$i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Xre(e),formState:n});const o=t.current.control;return o._options=e,kE({subject:o._subjects.state,next:i=>{d3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ce.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ce.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),Ce.useEffect(()=>{e.values&&!Rs(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),Ce.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ce.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Ce.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=c3(n,o),t.current}var w3=f.createContext(void 0),q1=function(){return q1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=f.useState(!1),l=u[0],c=u[1],d=!e||!s||o,p=z8(function(h){var m=h.currentLocation,g=h.nextLocation;if(d)return!1;var _=t||m.pathname,x=g.pathname.startsWith(_),b=g.pathname.startsWith("".concat(_,"/show")),y=x&&!b;return!y});f.useEffect(function(){if(p.state==="blocked"){if(d){p.proceed();return}c(!0)}},[p.state]),f.useEffect(function(){if(l){var h=window.confirm(n("ra.message.unsaved_changes"));h?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),f.useEffect(function(){var h=function(m){m.preventDefault(),m.returnValue=!0};if(!d)return window.addEventListener("beforeunload",h),function(){window.removeEventListener("beforeunload",h)}},[d])},nne=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return rne(r,n,a),null};function ane(e,t){var r=pM({},one(e,t),t);return r}function one(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var S3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},ine=function(e,t){t===void 0&&(t=!0);var r=dg(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=f.useRef(n),i=mn();f.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},sne=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},G1=function(){return G1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ji=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function pne(e){return e?e.hasOwnProperty("message"):!1}var Zi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},es=function(e){return AA(e,function(){for(var t=[],r=0;re?Zi(t,{max:e},r,n):void 0}});es(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ji(r)&&re?Zi(t,{max:e},r,n):void 0}});es(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ji(t)&&isNaN(Number(t))?Zi(e,void 0,t,r):void 0}});var gne=AA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ji(r)&&typeof r=="string"&&!e.test(r)?Zi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});es(function(e){return e===void 0&&(e="ra.validation.email"),gne(fne,e)});var yne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};es(function(e,t){return t===void 0&&(t=yne),function(r,n){return!Ji(r)&&e.indexOf(r)===-1?Zi(t,{list:e},r,n):void 0}});var bne=f.createContext(null),xne=function(){var e=f.useContext(w3);return e},wne=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=eF(o),s=gn(t),u=Cc(),l=u.getValues,c=u.resetField,d=u.formState,p=u.reset,h=fr(s,i),m=fr(l(),i),g=d.dirtyFields,_=Object.keys(g).includes(i);f.useEffect(function(){if(!(a==null||m!=null||h!=null||_)){var x=i.split(".").some(function(E){return _ne.test(E)});if(x){var b=i.split(".").slice(0,-1).join("."),y=fr(l(),b);if(y==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},_ne=/^\d+$/,Ene=function(){var e=f.useContext(bne);return e},Sne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},ru=function(){return ru=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?A(M):M},{updatedAt:R}),a.setQueriesData({queryKey:[O,"getManyReference"]},function(M){return M&&M.data?{data:A(M.data),total:M.total}:M},{updatedAt:R})},E=Hm(Dt(Dt({mutationFn:function(w){var O=w===void 0?{}:w,C=O.resource,P=C===void 0?e:C,$=O.id,R=$===void 0?h.current.id:$,A=O.data,M=A===void 0?h.current.data:A,I=O.meta,U=I===void 0?h.current.meta:I,W=O.previousData,T=W===void 0?h.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(!R)throw new Error("useUpdate mutation requires a non-empty id");if(!M)throw new Error("useUpdate mutation requires a non-empty data object");return g.current(P,{id:R,data:M,previousData:T,meta:U}).then(function(V){var X=V.data;return X})}},d),{onMutate:function(w){return d$(void 0,void 0,void 0,function(){var O;return f$(this,function(C){switch(C.label){case 0:return d.onMutate?[4,d.onMutate(w)]:[3,2];case 1:return O=C.sent()||{},[2,Dt({snapshot:m.current},O)];case 2:return[2,{snapshot:m.current}]}})})},onError:function(w,O,C){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&C.snapshot.forEach(function(P){var $=P[0],R=P[1];a.setQueryData($,R)}),_.current)return _.current(w,O,C);if(d.onError)return d.onError(w,O,C)},onSuccess:function(w,O,C){if(O===void 0&&(O={}),p.current==="pessimistic"){var P=O.resource,$=P===void 0?e:P,R=O.id,A=R===void 0?o:R;y({resource:$,id:A,data:w}),d.onSuccess&&!b.current&&d.onSuccess(w,O,C)}},onSettled:function(w,O,C,P){if(C===void 0&&(C={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function($){var R=$[0];a.invalidateQueries({queryKey:R})}),x.current)return x.current(w,O,C,P);if(d.onSettled)return d.onSettled(w,O,C,P)}})),v=function(w,O,C){return w===void 0&&(w=e),O===void 0&&(O={}),C===void 0&&(C={}),d$(void 0,void 0,void 0,function(){var P,$,R,A,M,I,U,W,T,V,X,ie,ae,pe,ye;return f$(this,function(be){switch(be.label){case 0:return P=C.mutationMode,$=C.returnPromise,R=$===void 0?d.returnPromise:$,A=C.onError,M=C.onSettled,I=C.onSuccess,U=p$(C,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?g.current=c(n.update.bind(n)):g.current=n.update,b.current=!!I,_.current=A,x.current=M,h.current=t,P&&(p.current=P),R&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?R?[2,E.mutateAsync(Dt({resource:w},O),Dt({onSuccess:I},U))]:[2,E.mutate(Dt({resource:w},O),Dt({onSuccess:I},U))]:(W=O.id,T=W===void 0?o:W,V=O.data,X=V===void 0?i:V,ie=O.meta,ae=ie===void 0?s:ie,pe=a.getQueryData([w,"getOne",{id:String(T),meta:ae}]),ye=[[w,"getOne",{id:String(T),meta:ae}],[w,"getList"],[w,"getInfiniteList"],[w,"getMany"],[w,"getManyReference"]],m.current=ye.reduce(function(_e,ke){return _e.concat(a.getQueriesData({queryKey:ke}))},[]),[4,Promise.all(m.current.map(function(_e){var ke=_e[0];return a.cancelQueries({queryKey:ke})}))]);case 1:return be.sent(),y({resource:w,id:T,data:X}),setTimeout(function(){I?I(Dt(Dt({},pe),X),Dt({resource:w},O),{snapshot:m.current}):d.onSuccess&&!b.current&&d.onSuccess(Dt(Dt({},pe),X),Dt({resource:w},O),{snapshot:m.current})},0),p.current==="optimistic"?[2,E.mutate(Dt({resource:w},O))]:(xf.once("end",function(_e){var ke=_e.isUndo;ke?m.current.forEach(function($e){var Ee=$e[0],ze=$e[1];a.setQueryData(Ee,ze)}):E.mutate(Dt({resource:w},O))}),[2])}})})},S=f.useMemo(function(){return Dt({isLoading:E.isPending},E)},[E]);return[Ht(v),S]},on=function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?C(P):P},{updatedAt:O}),a.setQueriesData({queryKey:[v,"getManyReference"]},function(P){if(!P||!P.data)return P;var $=C(P.data),R=$.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(C):C},{updatedAt:w}),a.setQueriesData({queryKey:[E,"getManyReference"]},function(C){if(!C||!C.data)return C;var P=O(C.data),$=P.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var j3=function(){return f.useContext(R3)},Y1=function(){return Y1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||m.customRoutesWithLayout.length>0||m.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&d(h),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Kne=function(e){var t=f.useState(e),r=t[0],n=t[1],a=f.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Gne=function(e,t){var r=j3(),n=r.register,a=r.unregister;f.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Qne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return I3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},I3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},bd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(f.Children.forEach(e,function(a){if(f.isValidElement(a)){if(a.type===f.Fragment){var o=bd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},A3=f.createContext(!1),Xne=A3.Provider,Yne=function(){return f.useContext(A3)},Jne=function(e){iJ();var t=Yi(),r=Hne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,d=e.requireAuth,p=e.ready,h=f.useState(d),m=h[0],g=h[1],_=f.useState(d),x=_[0],b=_[1],y=oF();if(f.useEffect(function(){d&&y(void 0,!1).then(function(){g(!1)}).catch(function(){}).finally(function(){b(!1)})},[y,d]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return f.createElement(p,null)}return o==="loading"||x?f.createElement(Zl,null,a,f.createElement(Cn,{path:"*",element:f.createElement("div",{style:{height:"100vh"}},f.createElement(c,null))})):m?f.createElement(Zl,null,a,f.createElement(Cn,{path:"*",element:f.createElement(Vae,null)})):f.createElement(Zl,null,a,f.createElement(Cn,{path:"/*",element:f.createElement(Xne,{value:!!l},f.createElement(s,null,f.createElement(Zl,null,n,f.Children.map(i,function(E){return f.createElement(Cn,{key:E.props.name,path:"".concat(E.props.name,"/*"),element:E})}),f.createElement(Cn,{path:"/",element:l?f.createElement(Mae,{authParams:Zne,component:l}):i.length>0?f.createElement(V8,{to:t({resource:i[0].props.name,type:"list"})}):null}),f.createElement(Cn,{path:"*",element:f.createElement(u,null)}))))}))},Zne={params:{route:"dashboard"}},M3=f.createContext("React Admin"),eae=M3.Provider,F3=function(){return f.useContext(M3)},tae=function(e){var t=e.children;return f.createElement(f.Fragment,null,t)},rae=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return OM(n),f.createElement("div",null,f.createElement("h1",null,"Error"),f.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},nae=function(e){var t=f.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?S$:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,d=c===void 0?!1:c,p=e.error,h=p===void 0?rae:p,m=e.layout,g=m===void 0?tae:m,_=e.loading,x=_===void 0?S$:_,b=e.loginPage,y=b===void 0?!1:b,E=e.ready,v=E===void 0?yae:E,S=e.requireAuth,w=S===void 0?!1:S,O=e.title,C=O===void 0?"React Admin":O;f.useEffect(function(){if(!(d||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var $=new Image;$.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[d]);var P=function($,R){return n(R)};return f.createElement(eae,{value:C},f.createElement(T3,{onError:P,fallbackRender:function($){var R=$.error,A=$.resetErrorBoundary;return f.createElement("div",{style:{minHeight:"100vh"}},f.createElement(h,{error:R,errorInfo:r,resetErrorBoundary:A}))}},f.createElement(Zl,null,y!==!1&&y!==!0?f.createElement(Cn,{path:"/login",element:E$(y)}):null,o!==!1&&o!==!0?f.createElement(Cn,{path:"/auth-callback",element:E$(o)}):null,f.createElement(Cn,{path:"/*",element:f.createElement(Jne,{catchAll:s,dashboard:l,layout:g,loading:x,requireAuth:w,ready:v},u)}))))},E$=function(e){return f.isValidElement(e)?e:f.createElement(e)},S$=function(){return null},L3=f.createContext(void 0),Pc=function(e){var t=e.children,r=e.value;return r?f.createElement(L3.Provider,{value:r},t):t},aae=function(e){var t=e.value,r=e.children;return t?f.createElement(Pc,{value:t},r):r},N3={exports:{}},At={};/** + * @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 IE=Symbol.for("react.element"),AE=Symbol.for("react.portal"),fg=Symbol.for("react.fragment"),pg=Symbol.for("react.strict_mode"),vg=Symbol.for("react.profiler"),hg=Symbol.for("react.provider"),mg=Symbol.for("react.context"),oae=Symbol.for("react.server_context"),gg=Symbol.for("react.forward_ref"),yg=Symbol.for("react.suspense"),bg=Symbol.for("react.suspense_list"),xg=Symbol.for("react.memo"),wg=Symbol.for("react.lazy"),iae=Symbol.for("react.offscreen"),D3;D3=Symbol.for("react.module.reference");function xa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IE:switch(e=e.type,e){case fg:case vg:case pg:case yg:case bg:return e;default:switch(e=e&&e.$$typeof,e){case oae:case mg:case gg:case wg:case xg:case hg:return e;default:return t}}case AE:return t}}}At.ContextConsumer=mg;At.ContextProvider=hg;At.Element=IE;At.ForwardRef=gg;At.Fragment=fg;At.Lazy=wg;At.Memo=xg;At.Portal=AE;At.Profiler=vg;At.StrictMode=pg;At.Suspense=yg;At.SuspenseList=bg;At.isAsyncMode=function(){return!1};At.isConcurrentMode=function(){return!1};At.isContextConsumer=function(e){return xa(e)===mg};At.isContextProvider=function(e){return xa(e)===hg};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IE};At.isForwardRef=function(e){return xa(e)===gg};At.isFragment=function(e){return xa(e)===fg};At.isLazy=function(e){return xa(e)===wg};At.isMemo=function(e){return xa(e)===xg};At.isPortal=function(e){return xa(e)===AE};At.isProfiler=function(e){return xa(e)===vg};At.isStrictMode=function(e){return xa(e)===pg};At.isSuspense=function(e){return xa(e)===yg};At.isSuspenseList=function(e){return xa(e)===bg};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fg||e===vg||e===pg||e===yg||e===bg||e===iae||typeof e=="object"&&e!==null&&(e.$$typeof===wg||e.$$typeof===xg||e.$$typeof===hg||e.$$typeof===mg||e.$$typeof===gg||e.$$typeof===D3||e.getModuleId!==void 0)};At.typeOf=xa;N3.exports=At;var sae=N3.exports,Lh=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return f.createElement(Pc,{value:a},f.createElement(Zl,null,t&&f.createElement(Cn,{path:"create/*",element:zp(t)}),o&&f.createElement(Cn,{path:":id/show/*",element:zp(o)}),r&&f.createElement(Cn,{path:":id/*",element:zp(r)}),n&&f.createElement(Cn,{path:"/*",element:f.createElement(oJ,{storeKey:"".concat(a,".list.scrollPosition")},zp(n))}),e.children))},zp=function(e){if(f.isValidElement(e))return e;if(sae.isValidElementType(e)){var t=e;return f.createElement(t,null)}return null};Lh.raName="Resource";Lh.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,d=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!d,icon:n,recordRepresentation:u}};var ME=f.createContext(void 0),B3=ME.Provider,lae=function(){var e=f.useContext(ME);if(!e)throw new Error("Inputs must be used inside a react-admin Form");return e},uae=function(){return f.useContext(ME)},_g=function(){return j3().definitions},$t={};/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */Object.defineProperty($t,"__esModule",{value:!0});var z3=$t.transform=$t.ordinalize=$t.foreignKey=$t.classify=$t.tableize=$t.demodulize=$t.titleize=$t.dasherize=$t.capitalize=Sg=$t.humanize=$t.underscore=$t.camelize=q3=$t.inflect=NE=$t.singularize=H3=$t.pluralize=void 0;const Nh=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],ve={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},U3=[[ve.plural.men],[ve.plural.people],[ve.plural.children],[ve.plural.tia],[ve.plural.analyses],[ve.plural.databases],[ve.plural.drives],[ve.plural.hives],[ve.plural.curves],[ve.plural.lrves],[ve.plural.foves],[ve.plural.aeiouyies],[ve.plural.series],[ve.plural.movies],[ve.plural.xes],[ve.plural.mice],[ve.plural.buses],[ve.plural.oes],[ve.plural.shoes],[ve.plural.crises],[ve.plural.octopuses],[ve.plural.aliases],[ve.plural.summonses],[ve.plural.oxen],[ve.plural.matrices],[ve.plural.feet],[ve.plural.teeth],[ve.plural.geese],[ve.plural.quizzes],[ve.plural.whereases],[ve.plural.criteria],[ve.plural.genera],[ve.singular.man,"$1en"],[ve.singular.person,"$1ople"],[ve.singular.child,"$1ren"],[ve.singular.drive,"$1s"],[ve.singular.ox,"$1en"],[ve.singular.axis,"$1es"],[ve.singular.octopus,"$1uses"],[ve.singular.alias,"$1es"],[ve.singular.summons,"$1es"],[ve.singular.bus,"$1ses"],[ve.singular.buffalo,"$1oes"],[ve.singular.tium,"$1a"],[ve.singular.sis,"ses"],[ve.singular.ffe,"$1$2ves"],[ve.singular.hive,"$1ves"],[ve.singular.aeiouyy,"$1ies"],[ve.singular.matrix,"$1ices"],[ve.singular.vertex,"$1ices"],[ve.singular.x,"$1es"],[ve.singular.mouse,"$1ice"],[ve.singular.foot,"feet"],[ve.singular.tooth,"teeth"],[ve.singular.goose,"geese"],[ve.singular.quiz,"$1zes"],[ve.singular.whereas,"$1es"],[ve.singular.criterion,"$1a"],[ve.singular.genus,"genera"],[ve.singular.s,"s"],[ve.singular.common,"s"]],V3=[[ve.singular.man],[ve.singular.person],[ve.singular.child],[ve.singular.drive],[ve.singular.ox],[ve.singular.axis],[ve.singular.octopus],[ve.singular.alias],[ve.singular.summons],[ve.singular.bus],[ve.singular.buffalo],[ve.singular.tium],[ve.singular.sis],[ve.singular.ffe],[ve.singular.hive],[ve.singular.aeiouyy],[ve.singular.x],[ve.singular.matrix],[ve.singular.mouse],[ve.singular.foot],[ve.singular.tooth],[ve.singular.goose],[ve.singular.quiz],[ve.singular.whereas],[ve.singular.criterion],[ve.singular.genus],[ve.plural.men,"$1an"],[ve.plural.people,"$1rson"],[ve.plural.children,"$1"],[ve.plural.databases,"$1"],[ve.plural.drives,"$1"],[ve.plural.genera,"genus"],[ve.plural.criteria,"$1on"],[ve.plural.tia,"$1um"],[ve.plural.analyses,"$1$2sis"],[ve.plural.hives,"$1ve"],[ve.plural.curves,"$1"],[ve.plural.lrves,"$1f"],[ve.plural.aves,"$1ve"],[ve.plural.foves,"$1fe"],[ve.plural.movies,"$1ovie"],[ve.plural.aeiouyies,"$1y"],[ve.plural.series,"$1eries"],[ve.plural.xes,"$1"],[ve.plural.mice,"$1ouse"],[ve.plural.buses,"$1"],[ve.plural.oes,"$1"],[ve.plural.shoes,"$1"],[ve.plural.crises,"$1is"],[ve.plural.octopuses,"$1us"],[ve.plural.aliases,"$1"],[ve.plural.summonses,"$1"],[ve.plural.oxen,"$1"],[ve.plural.matrices,"$1ix"],[ve.plural.vertices,"$1ex"],[ve.plural.feet,"foot"],[ve.plural.teeth,"tooth"],[ve.plural.geese,"goose"],[ve.plural.quizzes,"$1"],[ve.plural.whereases,"$1"],[ve.plural.ss,"ss"],[ve.plural.s,""]],cae=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],dae=new RegExp("(_ids|_id)$","g"),W3=new RegExp("_","g"),fae=new RegExp("[ _]","g"),pae=new RegExp("([A-Z])","g"),vae=new RegExp("^_");function Dh(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function FE(e,t){return Dh(e,U3,Nh,t)}var H3=$t.pluralize=FE;function LE(e,t){return Dh(e,V3,Nh,t)}var NE=$t.singularize=LE;function hae(e,t,r,n){return isNaN(t)?e:t===1?Dh(e,V3,Nh,r):Dh(e,U3,Nh,n)}var q3=$t.inflect=hae;function DE(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?H3(r):NE(r))});return o}},Mt=function(e){var t=f.useContext(L3);return e&&e.resource||t},ti=function(e){var t=Mt(e),r=_g(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=f.useMemo(function(){return OE({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},zE=function(e){var t=ti({resource:e}).recordRepresentation;return f.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?fr(r,t):f.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},eF=function(e){var t=lae();return t.getSource(e)},tF=function(){var e=ot(),t=Mt(),r=uae();return f.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,bae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},rF=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=tF();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:f.createElement("span",null,o({label:r,resource:n,source:t}),a&&f.createElement("span",{"aria-hidden":"true"}," *"))};rF.displayName="FieldTitle";const wf=f.memo(rF),yae=function(){return f.createElement("span",null)},UE=function(e,t){};var bae=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=xae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=z3(u.replace(/\./g," "),["underscore","humanize"]);return n?[O$(n,s),{_:l}]:r?[r,{_:l}]:[O$(a||"undefined",s),{_:l}]},O$=function(e,t){return"resources.".concat(e,".fields.").concat(t)},xae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){wae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},wae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},_ae=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ht=function(e){var t=f.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return _ae(function(){t.current=e}),f.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return d()}},[e,o,t,n,s]);var l=Ht(function(c,d){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof d>"u"?t:d:p)});return[s,l]},Eae=function(e){var t=tg().removeItem;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Sae=function(e){var t=tg().removeItems;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Oae=function(){var e=tg().reset;return e},kc=function(){var e=Jo(),t=go(),r=Oae(),n=bo(),a=f.useRef(n),o=hn(),i=f.useRef(o),s=Xi(),u=Ja("".concat(s,"/").concat(Wm.loginUrl));f.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=f.useCallback(function(c,d,p){return c===void 0&&(c={}),d===void 0&&(d=u),p===void 0&&(p=!0),e?e.logout(c).then(function(h){if(h===!1||d===!1){r(),t.clear();return}var m=h||d;if(m!=null&&m.startsWith("http"))return r(),t.clear(),window.location.href=m,m;var g=m.split("?"),_={pathname:g[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),g[1]&&(_.search=g[1]),a.current(_,x),r(),t.clear(),h}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l},bs=function(){return bs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},P$=function(){},xs=function(){return xs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Rc(t);var i=aF(t).permissions;if(a)return f.createElement(a,Fd({permissions:i},o));if(n)return n(Fd({permissions:i},o));if(r)return r(Fd({permissions:i},o))},Fae=function(){var e=Jo(),t=hn(),r=t.state,n=bo(),a=Xi(),o=eM().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=Ja("".concat(a,"/").concat(Wm.afterLoginUrl)),l=f.useCallback(function(c,d){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var h=d||i+s||u;n(h)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l},Lae="AUTH_LOGIN",Nae="AUTH_CHECK",Dae="AUTH_ERROR",Bae="AUTH_LOGOUT",zae="AUTH_GET_PERMISSIONS";const Uae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Ld=function(){return Ld=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return wa(r&&e?"".concat(r,".").concat(e):r??e,t)},WE=function(){var e=f.useContext(k3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},roe=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n=0)continue;r[n]=e[n]}return r}function uF(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var uoe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,coe=uF(function(e){return uoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function doe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Vr(Tc,--In):0,Ju--,Sr===10&&(Ju=1,Pg--),Sr}function qn(){return Sr=In2||Sf(Sr)>3?"":" "}function Soe(e,t){for(;--t&&qn()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return tp(e,wv()+(t<6&&fo()==32&&qn()==32))}function ex(e){for(;qn();)switch(Sr){case e:return In;case 34:case 39:e!==34&&e!==39&&ex(Sr);break;case 40:e===41&&ex(e);break;case 92:qn();break}return In}function Ooe(e,t){for(;qn()&&e+Sr!==57;)if(e+Sr===84&&fo()===47)break;return"/*"+tp(t,In-1)+"*"+Cg(e===47?e:qn())}function Coe(e){for(;!Sf(fo());)qn();return tp(e,In)}function Poe(e){return hF(Ev("",null,null,null,[""],e=vF(e),0,[0],e))}function Ev(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,d=i,p=0,h=0,m=0,g=1,_=1,x=1,b=0,y="",E=a,v=o,S=n,w=y;_;)switch(m=b,b=qn()){case 40:if(m!=108&&Vr(w,d-1)==58){Z1(w+=Pt(_v(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:w+=_v(b);break;case 9:case 10:case 13:case 32:w+=Eoe(m);break;case 92:w+=Soe(wv()-1,7);continue;case 47:switch(fo()){case 42:case 47:Up($oe(Ooe(qn(),wv()),t,r),u);break;default:w+="/"}break;case 123*g:s[l++]=eo(w)*x;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+c:x==-1&&(w=Pt(w,/\f/g,"")),h>0&&eo(w)-d&&Up(h>32?j$(w+";",n,r,d-1):j$(Pt(w," ","")+";",n,r,d-2),u);break;case 59:w+=";";default:if(Up(S=T$(w,t,r,l,c,a,s,y,E=[],v=[],d),o),b===123)if(c===0)Ev(w,t,S,S,E,o,d,s,v);else switch(p===99&&Vr(w,3)===110?100:p){case 100:case 108:case 109:case 115:Ev(e,S,S,n&&Up(T$(e,S,S,0,0,a,s,y,a,E=[],d),v),a,v,d,s,n?E:v);break;default:Ev(w,S,S,S,[""],v,0,s,v)}}l=c=h=0,g=x=1,y=w="",d=i;break;case 58:d=1+eo(w),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&_oe()==125)continue}switch(w+=Cg(b),b*g){case 38:x=c>0?1:(w+="\f",-1);break;case 44:s[l++]=(eo(w)-1)*x,x=1;break;case 64:fo()===45&&(w+=_v(qn())),p=fo(),c=d=eo(y=w+=Coe(wv())),b++;break;case 45:m===45&&eo(w)==2&&(g=0)}}return o}function T$(e,t,r,n,a,o,i,s,u,l,c){for(var d=a-1,p=a===0?o:[""],h=KE(p),m=0,g=0,_=0;m0?p[x]+" "+b:Pt(b,/&\f/g,p[x])))&&(u[_++]=y);return $g(e,t,r,a===0?HE:s,u,l,c)}function $oe(e,t,r){return $g(e,t,r,cF,Cg(woe()),Ef(e,2,-2),0)}function j$(e,t,r,n){return $g(e,t,r,qE,Ef(e,0,n),Ef(e,n+1,-1),n)}function pu(e,t){for(var r="",n=KE(e),a=0;a6)switch(Vr(e,t+1)){case 109:if(Vr(e,t+4)!==45)break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+Bh+(Vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Z1(e,"stretch")?mF(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vr(e,t+1)!==115)break;case 6444:switch(Vr(e,eo(e)-3-(~Z1(e,"!important")&&10))){case 107:return Pt(e,":",":"+Ct)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(Vr(e,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Vr(e,t+11)){case 114:return Ct+e+Yr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ct+e+Yr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ct+e+Yr+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ct+e+Yr+e+e}return e}var Loe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case qE:t.return=mF(t.value,t.length);break;case dF:return pu([nd(t,{value:Pt(t.value,"@","@"+Ct)})],a);case HE:if(t.length)return xoe(t.props,function(o){switch(boe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pu([nd(t,{props:[Pt(o,/:(read-\w+)/,":"+Bh+"$1")]})],a);case"::placeholder":return pu([nd(t,{props:[Pt(o,/:(plac\w+)/,":"+Ct+"input-$1")]}),nd(t,{props:[Pt(o,/:(plac\w+)/,":"+Bh+"$1")]}),nd(t,{props:[Pt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Noe=[Loe],gF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Noe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),x=1;x<_.length;x++)o[_[x]]=!0;s.push(g)});var u,l=[Moe,Foe];{var c,d=[koe,Toe(function(g){c.insert(g)})],p=Roe(l.concat(a,d)),h=function(_){return pu(Poe(_),p)};u=function(_,x,b,y){c=b,h(_?_+"{"+x.styles+"}":x.styles),y&&(m.inserted[x.name]=!0)}}var m={key:r,sheet:new poe({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m},yF={exports:{}},Ft={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Nr=typeof Symbol=="function"&&Symbol.for,GE=Nr?Symbol.for("react.element"):60103,QE=Nr?Symbol.for("react.portal"):60106,kg=Nr?Symbol.for("react.fragment"):60107,Rg=Nr?Symbol.for("react.strict_mode"):60108,Tg=Nr?Symbol.for("react.profiler"):60114,jg=Nr?Symbol.for("react.provider"):60109,Ig=Nr?Symbol.for("react.context"):60110,XE=Nr?Symbol.for("react.async_mode"):60111,Ag=Nr?Symbol.for("react.concurrent_mode"):60111,Mg=Nr?Symbol.for("react.forward_ref"):60112,Fg=Nr?Symbol.for("react.suspense"):60113,Doe=Nr?Symbol.for("react.suspense_list"):60120,Lg=Nr?Symbol.for("react.memo"):60115,Ng=Nr?Symbol.for("react.lazy"):60116,Boe=Nr?Symbol.for("react.block"):60121,zoe=Nr?Symbol.for("react.fundamental"):60117,Uoe=Nr?Symbol.for("react.responder"):60118,Voe=Nr?Symbol.for("react.scope"):60119;function Yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case GE:switch(e=e.type,e){case XE:case Ag:case kg:case Tg:case Rg:case Fg:return e;default:switch(e=e&&e.$$typeof,e){case Ig:case Mg:case Ng:case Lg:case jg:return e;default:return t}}case QE:return t}}}function bF(e){return Yn(e)===Ag}Ft.AsyncMode=XE;Ft.ConcurrentMode=Ag;Ft.ContextConsumer=Ig;Ft.ContextProvider=jg;Ft.Element=GE;Ft.ForwardRef=Mg;Ft.Fragment=kg;Ft.Lazy=Ng;Ft.Memo=Lg;Ft.Portal=QE;Ft.Profiler=Tg;Ft.StrictMode=Rg;Ft.Suspense=Fg;Ft.isAsyncMode=function(e){return bF(e)||Yn(e)===XE};Ft.isConcurrentMode=bF;Ft.isContextConsumer=function(e){return Yn(e)===Ig};Ft.isContextProvider=function(e){return Yn(e)===jg};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===GE};Ft.isForwardRef=function(e){return Yn(e)===Mg};Ft.isFragment=function(e){return Yn(e)===kg};Ft.isLazy=function(e){return Yn(e)===Ng};Ft.isMemo=function(e){return Yn(e)===Lg};Ft.isPortal=function(e){return Yn(e)===QE};Ft.isProfiler=function(e){return Yn(e)===Tg};Ft.isStrictMode=function(e){return Yn(e)===Rg};Ft.isSuspense=function(e){return Yn(e)===Fg};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kg||e===Ag||e===Tg||e===Rg||e===Fg||e===Doe||typeof e=="object"&&e!==null&&(e.$$typeof===Ng||e.$$typeof===Lg||e.$$typeof===jg||e.$$typeof===Ig||e.$$typeof===Mg||e.$$typeof===zoe||e.$$typeof===Uoe||e.$$typeof===Voe||e.$$typeof===Boe)};Ft.typeOf=Yn;yF.exports=Ft;var Woe=yF.exports,xF=Woe,Hoe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qoe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wF={};wF[xF.ForwardRef]=Hoe;wF[xF.Memo]=qoe;var Koe=!0;function Goe(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var _F=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Koe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},EF=function(t,r,n){_F(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Qoe(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Xoe={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,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},Yoe=/[A-Z]|^ms/g,Joe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SF=function(t){return t.charCodeAt(1)===45},A$=function(t){return t!=null&&typeof t!="boolean"},A0=uF(function(e){return SF(e)?e:e.replace(Yoe,"-$&").toLowerCase()}),M$=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Joe,function(n,a,o){return to={name:a,styles:o,next:to},a})}return Xoe[t]!==1&&!SF(t)&&typeof r=="number"&&r!==0?r+"px":r};function Of(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return to={name:r.name,styles:r.styles,next:to},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)to={name:n.name,styles:n.styles,next:to},n=n.next;var a=r.styles+";";return a}return Zoe(e,t,r)}case"function":{if(e!==void 0){var o=to,i=r(e);return to=o,Of(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Zoe(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?aie:oie},B$=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},iie=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return _F(r,n,a),tie(function(){return EF(r,n,a)}),null},sie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=B$(t,r,n),u=s||D$(a),l=!u("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(cie(a)?r:a):t;return L.jsx(nie,{styles:n})}function JE(e,t){return tx(e,t)}const RF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},die=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:kF,StyledEngineProvider:uie,ThemeContext:rp,css:hl,default:JE,internal_processStyles:RF,keyframes:ri},Symbol.toStringTag,{value:"Module"}));function Ao(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 TF(e){if(!Ao(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=TF(e[r])}),t}function Hr(e,t,r={clone:!0}){const n=r.clone?k({},e):e;return Ao(e)&&Ao(t)&&Object.keys(t).forEach(a=>{Ao(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ao(e[a])?n[a]=Hr(e[a],t[a],r):r.clone?n[a]=Ao(t[a])?TF(t[a]):t[a]:n[a]=t[a]}),n}const fie=Object.freeze(Object.defineProperty({__proto__:null,default:Hr,isPlainObject:Ao},Symbol.toStringTag,{value:"Module"})),pie=["values","unit","step"],vie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>k({},r,{[n.key]:n.val}),{})};function jF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Se(e,pie),o=vie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,h){const m=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:h)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${ZE[e]}px)`};function Da(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||z$;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||z$;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||ZE).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function IF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function AF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function mie(e,...t){const r=IF(e),n=[r,...t].reduce((a,o)=>Hr(a,o),{});return AF(Object.keys(r),n)}function gie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function F0({values:e,breakpoints:t,base:r}){const n=r||gie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ce(e){if(typeof e!="string")throw new Error(Ko(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yie=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));function Zu(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function zh(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Zu(e,r)||n,t&&(a=t(a,n,e)),a}function wr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Zu(u,n)||{};return Da(i,s,d=>{let p=zh(l,a,d);return d===p&&typeof d=="string"&&(p=zh(l,a,`${t}${d==="default"?"":ce(d)}`,d)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function bie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xie={m:"margin",p:"padding"},wie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_ie=bie(e=>{if(e.length>2)if(U$[e])e=U$[e];else return[e];const[t,r]=e.split(""),n=xie[t],a=wie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),eS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eS,...tS];function np(e,t,r,n){var a;const o=(a=Zu(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function rS(e){return np(e,"spacing",8)}function ll(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Eie(e,t){return r=>e.reduce((n,a)=>(n[a]=ll(t,r),n),{})}function Sie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=_ie(r),o=Eie(a,n),i=e[r];return Da(e,i,o)}function MF(e,t){const r=rS(e.theme);return Object.keys(e).map(n=>Sie(e,t,n,r)).reduce(Nd,{})}function sr(e){return MF(e,eS)}sr.propTypes={};sr.filterProps=eS;function lr(e){return MF(e,tS)}lr.propTypes={};lr.filterProps=tS;function Oie(e=8){if(e.mui)return e;const t=rS({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Dg(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Nd(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function sa(e){return typeof e!="number"?e:`${e}px solid`}function _a(e,t){return wr({prop:e,themeKey:"borders",transform:t})}const Cie=_a("border",sa),Pie=_a("borderTop",sa),$ie=_a("borderRight",sa),kie=_a("borderBottom",sa),Rie=_a("borderLeft",sa),Tie=_a("borderColor"),jie=_a("borderTopColor"),Iie=_a("borderRightColor"),Aie=_a("borderBottomColor"),Mie=_a("borderLeftColor"),Fie=_a("outline",sa),Lie=_a("outlineColor"),Bg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=np(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ll(t,n)});return Da(e,e.borderRadius,r)}return null};Bg.propTypes={};Bg.filterProps=["borderRadius"];Dg(Cie,Pie,$ie,kie,Rie,Tie,jie,Iie,Aie,Mie,Bg,Fie,Lie);const zg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=np(e.theme,"spacing",8),r=n=>({gap:ll(t,n)});return Da(e,e.gap,r)}return null};zg.propTypes={};zg.filterProps=["gap"];const Ug=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=np(e.theme,"spacing",8),r=n=>({columnGap:ll(t,n)});return Da(e,e.columnGap,r)}return null};Ug.propTypes={};Ug.filterProps=["columnGap"];const Vg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=np(e.theme,"spacing",8),r=n=>({rowGap:ll(t,n)});return Da(e,e.rowGap,r)}return null};Vg.propTypes={};Vg.filterProps=["rowGap"];const Nie=wr({prop:"gridColumn"}),Die=wr({prop:"gridRow"}),Bie=wr({prop:"gridAutoFlow"}),zie=wr({prop:"gridAutoColumns"}),Uie=wr({prop:"gridAutoRows"}),Vie=wr({prop:"gridTemplateColumns"}),Wie=wr({prop:"gridTemplateRows"}),Hie=wr({prop:"gridTemplateAreas"}),qie=wr({prop:"gridArea"});Dg(zg,Ug,Vg,Nie,Die,Bie,zie,Uie,Vie,Wie,Hie,qie);function vu(e,t){return t==="grey"?t:e}const Kie=wr({prop:"color",themeKey:"palette",transform:vu}),Gie=wr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vu}),Qie=wr({prop:"backgroundColor",themeKey:"palette",transform:vu});Dg(Kie,Gie,Qie);function Vn(e){return e<=1&&e!==0?`${e*100}%`:e}const Xie=wr({prop:"width",transform:Vn}),nS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ZE[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vn(r)}};return Da(e,e.maxWidth,t)}return null};nS.filterProps=["maxWidth"];const Yie=wr({prop:"minWidth",transform:Vn}),Jie=wr({prop:"height",transform:Vn}),Zie=wr({prop:"maxHeight",transform:Vn}),ese=wr({prop:"minHeight",transform:Vn});wr({prop:"size",cssProperty:"width",transform:Vn});wr({prop:"size",cssProperty:"height",transform:Vn});const tse=wr({prop:"boxSizing"});Dg(Xie,nS,Yie,Jie,Zie,ese,tse);const ap={border:{themeKey:"borders",transform:sa},borderTop:{themeKey:"borders",transform:sa},borderRight:{themeKey:"borders",transform:sa},borderBottom:{themeKey:"borders",transform:sa},borderLeft:{themeKey:"borders",transform:sa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bg},color:{themeKey:"palette",transform:vu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vu},backgroundColor:{themeKey:"palette",transform:vu},p:{style:lr},pt:{style:lr},pr:{style:lr},pb:{style:lr},pl:{style:lr},px:{style:lr},py:{style:lr},padding:{style:lr},paddingTop:{style:lr},paddingRight:{style:lr},paddingBottom:{style:lr},paddingLeft:{style:lr},paddingX:{style:lr},paddingY:{style:lr},paddingInline:{style:lr},paddingInlineStart:{style:lr},paddingInlineEnd:{style:lr},paddingBlock:{style:lr},paddingBlockStart:{style:lr},paddingBlockEnd:{style:lr},m:{style:sr},mt:{style:sr},mr:{style:sr},mb:{style:sr},ml:{style:sr},mx:{style:sr},my:{style:sr},margin:{style:sr},marginTop:{style:sr},marginRight:{style:sr},marginBottom:{style:sr},marginLeft:{style:sr},marginX:{style:sr},marginY:{style:sr},marginInline:{style:sr},marginInlineStart:{style:sr},marginInlineEnd:{style:sr},marginBlock:{style:sr},marginBlockStart:{style:sr},marginBlockEnd:{style:sr},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:zg},rowGap:{style:Vg},columnGap:{style:Ug},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:nS},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rse(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function nse(e,t){return typeof e=="function"?e(t):e}function FF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Zu(a,l)||{};return d?d(i):Da(i,n,m=>{let g=zh(p,c,m);return m===g&&typeof m=="string"&&(g=zh(p,c,`${r}${m==="default"?"":ce(m)}`,m)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:ap;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=IF(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const m=nse(l[h],o);if(m!=null)if(typeof m=="object")if(i[h])p=Nd(p,e(h,m,o,i));else{const g=Da({theme:o},m,_=>({[h]:_}));rse(g,m)?p[h]=t({sx:m,theme:o}):p=Nd(p,g)}else p=Nd(p,e(h,m,o,i))}),AF(d,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const jc=FF();jc.filterProps=["sx"];function LF(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ase=["breakpoints","palette","spacing","shape"];function op(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Se(e,ase),s=jF(r),u=Oie(a);let l=Hr({breakpoints:s,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:u,shape:k({},hie,o)},i);return l.applyStyles=LF,l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=k({},ap,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return jc({sx:d,theme:this})},l}const ose=Object.freeze(Object.defineProperty({__proto__:null,default:op,private_createBreakpoints:jF,unstable_applyStyles:LF},Symbol.toStringTag,{value:"Module"}));function ise(e){return Object.keys(e).length===0}function aS(e=null){const t=f.useContext(rp);return!t||ise(t)?e:t}const sse=op();function Wg(e=sse){return aS(e)}function lse({styles:e,themeId:t,defaultTheme:r={}}){const n=Wg(r),a=typeof e=="function"?e(t&&n[t]||n):e;return L.jsx(kF,{styles:a})}const use=["sx"],cse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ap;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Hg(e){const{sx:t}=e,r=Se(e,use),{systemProps:n,otherProps:a}=cse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Ao(s)?k({},n,s):n}:o=k({},n,t),k({},a,{sx:o})}const dse=Object.freeze(Object.defineProperty({__proto__:null,default:jc,extendSxProp:Hg,unstable_createStyleFunctionSx:FF,unstable_defaultSxConfig:ap},Symbol.toStringTag,{value:"Module"})),V$=e=>e,fse=()=>{let e=V$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V$}}},oS=fse();function NF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(jc);return f.forwardRef(function(u,l){const c=Wg(r),d=Hg(u),{className:p,component:h="div"}=d,m=Se(d,pse);return L.jsx(o,k({as:h,ref:l,className:le(p,a?a(n):n),theme:t&&c[t]||c},m))})}const DF={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 Ke(e,t,r="Mui"){const n=DF[t];return n?`${r}-${n}`:`${oS.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ke(e,a,r)}),n}var BF={exports:{}},Lt={};/** + * @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 iS=Symbol.for("react.element"),sS=Symbol.for("react.portal"),qg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Gg=Symbol.for("react.profiler"),Qg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),hse=Symbol.for("react.server_context"),Yg=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),Zg=Symbol.for("react.suspense_list"),ey=Symbol.for("react.memo"),ty=Symbol.for("react.lazy"),mse=Symbol.for("react.offscreen"),zF;zF=Symbol.for("react.module.reference");function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iS:switch(e=e.type,e){case qg:case Gg:case Kg:case Jg:case Zg:return e;default:switch(e=e&&e.$$typeof,e){case hse:case Xg:case Yg:case ty:case ey:case Qg:return e;default:return t}}case sS:return t}}}Lt.ContextConsumer=Xg;Lt.ContextProvider=Qg;Lt.Element=iS;Lt.ForwardRef=Yg;Lt.Fragment=qg;Lt.Lazy=ty;Lt.Memo=ey;Lt.Portal=sS;Lt.Profiler=Gg;Lt.StrictMode=Kg;Lt.Suspense=Jg;Lt.SuspenseList=Zg;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Ea(e)===Xg};Lt.isContextProvider=function(e){return Ea(e)===Qg};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iS};Lt.isForwardRef=function(e){return Ea(e)===Yg};Lt.isFragment=function(e){return Ea(e)===qg};Lt.isLazy=function(e){return Ea(e)===ty};Lt.isMemo=function(e){return Ea(e)===ey};Lt.isPortal=function(e){return Ea(e)===sS};Lt.isProfiler=function(e){return Ea(e)===Gg};Lt.isStrictMode=function(e){return Ea(e)===Kg};Lt.isSuspense=function(e){return Ea(e)===Jg};Lt.isSuspenseList=function(e){return Ea(e)===Zg};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qg||e===Gg||e===Kg||e===Jg||e===Zg||e===mse||typeof e=="object"&&e!==null&&(e.$$typeof===ty||e.$$typeof===ey||e.$$typeof===Qg||e.$$typeof===Xg||e.$$typeof===Yg||e.$$typeof===zF||e.getModuleId!==void 0)};Lt.typeOf=Ea;BF.exports=Lt;var W$=BF.exports;const gse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function UF(e){const t=`${e}`.match(gse);return t&&t[1]||""}function VF(e,t=""){return e.displayName||e.name||UF(e)||t}function H$(e,t,r){const n=VF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function yse(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return VF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case W$.ForwardRef:return H$(e,e.render,"ForwardRef");case W$.Memo:return H$(e,e.type,"memo");default:return}}}const bse=Object.freeze(Object.defineProperty({__proto__:null,default:yse,getFunctionName:UF},Symbol.toStringTag,{value:"Module"})),xse=["ownerState"],wse=["variants"],_se=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ese(e){return Object.keys(e).length===0}function Sse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function L0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ose=op(),Cse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Vp({defaultTheme:e,theme:t,themeId:r}){return Ese(t)?e:t[r]||t}function Pse(e){return e?(t,r)=>r[e]:null}function Sv(e,t){let{ownerState:r}=t,n=Se(t,xse);const a=typeof e=="function"?e(k({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Sv(o,k({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Se(a,wse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(k({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(k({ownerState:r},n,r)):u.style))}),s}return a}function $se(e={}){const{themeId:t,defaultTheme:r=Ose,rootShouldForwardProp:n=L0,slotShouldForwardProp:a=L0}=e,o=i=>jc(k({},i,{theme:Vp(k({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{RF(i,v=>v.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Pse(Cse(l))}=s,h=Se(s,_se),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=L0;l==="Root"||l==="root"?x=n:l?x=a:Sse(i)&&(x=void 0);const b=JE(i,k({shouldForwardProp:x,label:_},h)),y=v=>typeof v=="function"&&v.__emotion_real!==v||Ao(v)?S=>Sv(v,k({},S,{theme:Vp({theme:S.theme,defaultTheme:r,themeId:t})})):v,E=(v,...S)=>{let w=y(v);const O=S?S.map(y):[];u&&p&&O.push($=>{const R=Vp(k({},$,{defaultTheme:r,themeId:t}));if(!R.components||!R.components[u]||!R.components[u].styleOverrides)return null;const A=R.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=Sv(U,k({},$,{theme:R}))}),p($,M)}),u&&!m&&O.push($=>{var R;const A=Vp(k({},$,{defaultTheme:r,themeId:t})),M=A==null||(R=A.components)==null||(R=R[u])==null?void 0:R.variants;return Sv({variants:M},k({},$,{theme:A}))}),g||O.push(o);const C=O.length-S.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");w=[...v,...$],w.raw=[...v.raw,...$]}const P=b(w,...O);return i.muiName&&(P.muiName=i.muiName),P};return b.withConfig&&(E.withConfig=b.withConfig),E}}const kse=$se();function lS(e,t){const r=k({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=k({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=k({},o),Object.keys(a).forEach(i=>{r[n][i]=lS(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function WF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:lS(t.components[r].defaultProps,n)}function HF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Wg(r);return n&&(a=a[n]||a),WF({theme:a,name:t,props:e})}const ha=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Rse(e,t,r,n,a){const[o,i]=f.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return ha(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const qF=f.useSyncExternalStore;function Tse(e,t,r,n,a){const o=f.useCallback(()=>t,[t]),i=f.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=f.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,r,e]);return qF(u,s,i)}function Fn(e,t={}){const r=aS(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=WF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(qF!==void 0?Tse:Rse)(u,a,o,i,s)}function KF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const jse=Object.freeze(Object.defineProperty({__proto__:null,default:KF},Symbol.toStringTag,{value:"Module"}));function GF(e,t=0,r=1){return KF(e,t,r)}function Ise(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function uS(e){if(e.type)return e;if(e.charAt(0)==="#")return uS(Ise(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ko(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(Ko(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function QF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Cf(e,t){return e=uS(e),t=GF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,QF(e)}function Ase(e,t){if(e=uS(e),t=GF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return QF(e)}function nx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function ry(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Mse(e,t){return()=>null}function Ov(e,t){var r,n;return f.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function jr(e){return e&&e.ownerDocument||document}function vo(e){return jr(e).defaultView||window}function Fse(e,t){return()=>null}function Uh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let q$=0;function Lse(e){const[t,r]=f.useState(e),n=e||t;return f.useEffect(()=>{t==null&&(q$+=1,r(`mui-${q$}`))},[t]),n}const K$=Gv.useId;function ul(e){if(K$!==void 0){const t=K$();return e??t}return Lse(e)}function Nse(e,t,r,n,a){return null}function ec({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=f.useRef(e!==void 0),[o,i]=f.useState(t),s=a?e:o,u=f.useCallback(l=>{a||i(l)},[]);return[s,u]}function ua(e){const t=f.useRef(e);return ha(()=>{t.current=e}),f.useRef((...r)=>(0,t.current)(...r)).current}function Zt(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Uh(r,t)})},e)}const G$={};function Dse(e,t){const r=f.useRef(G$);return r.current===G$&&(r.current=e(t)),r}const Bse=[];function zse(e){f.useEffect(e,Bse)}class ip{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ip}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ts(){const e=Dse(ip.create).current;return zse(e.disposeEffect),e}let ny=!0,ax=!1;const Use=new ip,Vse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Vse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hse(e){e.metaKey||e.altKey||e.ctrlKey||(ny=!0)}function N0(){ny=!1}function qse(){this.visibilityState==="hidden"&&ax&&(ny=!0)}function Kse(e){e.addEventListener("keydown",Hse,!0),e.addEventListener("mousedown",N0,!0),e.addEventListener("pointerdown",N0,!0),e.addEventListener("touchstart",N0,!0),e.addEventListener("visibilitychange",qse,!0)}function Gse(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ny||Wse(t)}function ay(){const e=f.useCallback(a=>{a!=null&&Kse(a.ownerDocument)},[]),t=f.useRef(!1);function r(){return t.current?(ax=!0,Use.start(100,()=>{ax=!1}),t.current=!1,!0):!1}function n(a){return Gse(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function XF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ge(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}const YF=f.createContext(null);function JF(){return f.useContext(YF)}const Qse=typeof Symbol=="function"&&Symbol.for,Xse=Qse?Symbol.for("mui.nested"):"__THEME_NESTED__";function Yse(e,t){return typeof t=="function"?t(e):k({},e,t)}function Jse(e){const{children:t,theme:r}=e,n=JF(),a=f.useMemo(()=>{const o=n===null?r:Yse(n,r);return o!=null&&(o[Xse]=n!==null),o},[r,n]);return L.jsx(YF.Provider,{value:a,children:t})}const Zse=["value"],ZF=f.createContext();function ele(e){let{value:t}=e,r=Se(e,Zse);return L.jsx(ZF.Provider,k({value:t??!0},r))}const Ic=()=>{const e=f.useContext(ZF);return e??!1},Q$={};function X$(e,t,r,n=!1){return f.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?k({},t,{[e]:o}):o;return n?()=>i:i}return e?k({},t,{[e]:r}):k({},t,r)},[e,t,r,n])}function tle(e){const{children:t,theme:r,themeId:n}=e,a=aS(Q$),o=JF()||Q$,i=X$(n,a,r),s=X$(n,o,r,!0),u=i.direction==="rtl";return L.jsx(Jse,{theme:s,children:L.jsx(rp.Provider,{value:i,children:L.jsx(ele,{value:u,children:t})})})}const rle=["component","direction","spacing","divider","children","className","useFlexGap"],nle=op(),ale=kse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ole(e){return HF({props:e,name:"MuiStack",defaultTheme:nle})}function ile(e,t){const r=f.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lle=({ownerState:e,theme:t})=>{let r=k({display:"flex",flexDirection:"column"},Da({theme:t},F0({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=rS(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=F0({values:e.direction,base:a}),i=F0({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Hr(r,Da({theme:t},i,(u,l)=>e.useFlexGap?{gap:ll(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${sle(l?o[l]:e.direction)}`]:ll(n,u)}}))}return r=mie(t.breakpoints,r),r};function ule(e={}){const{createStyledComponent:t=ale,useThemeProps:r=ole,componentName:n="MuiStack"}=e,a=()=>Ge({root:["root"]},u=>Ke(n,u),{}),o=t(lle);return f.forwardRef(function(u,l){const c=r(u),d=Hg(c),{component:p="div",direction:h="column",spacing:m=0,divider:g,children:_,className:x,useFlexGap:b=!1}=d,y=Se(d,rle),E={direction:h,spacing:m,useFlexGap:b},v=a();return L.jsx(o,k({as:p,ownerState:E,ref:l,className:le(v.root,x)},y,{children:g?ile(_,g):_}))})}function cle(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var _r={},e5={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e5);var yt=e5.exports;const dle=mo(loe),fle=mo(jse);var t5=yt;Object.defineProperty(_r,"__esModule",{value:!0});var mt=_r.alpha=o5;_r.blend=Sle;_r.colorChannel=void 0;var cS=_r.darken=pS;_r.decomposeColor=ma;var ple=_r.emphasize=i5,vle=_r.getContrastRatio=ble;_r.getLuminance=Vh;_r.hexToRgb=r5;_r.hslToRgb=a5;var dS=_r.lighten=vS;_r.private_safeAlpha=xle;_r.private_safeColorChannel=void 0;_r.private_safeDarken=wle;_r.private_safeEmphasize=Ele;_r.private_safeLighten=_le;_r.recomposeColor=Ac;_r.rgbToHex=yle;var Y$=t5(dle),hle=t5(fle);function fS(e,t=0,r=1){return(0,hle.default)(e,t,r)}function r5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function mle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ma(e){if(e.type)return e;if(e.charAt(0)==="#")return ma(r5(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Y$.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,Y$.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const n5=e=>{const t=ma(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};_r.colorChannel=n5;const gle=(e,t)=>{try{return n5(e)}catch{return e}};_r.private_safeColorChannel=gle;function Ac(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function yle(e){if(e.indexOf("#")===0)return e;const{values:t}=ma(e);return`#${t.map((r,n)=>mle(n===3?Math.round(255*r):r)).join("")}`}function a5(e){e=ma(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Ac({type:s,values:u})}function Vh(e){e=ma(e);let t=e.type==="hsl"||e.type==="hsla"?ma(a5(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ble(e,t){const r=Vh(e),n=Vh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function o5(e,t){return e=ma(e),t=fS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ac(e)}function xle(e,t,r){try{return o5(e,t)}catch{return e}}function pS(e,t){if(e=ma(e),t=fS(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ac(e)}function wle(e,t,r){try{return pS(e,t)}catch{return e}}function vS(e,t){if(e=ma(e),t=fS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ac(e)}function _le(e,t,r){try{return vS(e,t)}catch{return e}}function i5(e,t=.15){return Vh(e)>.5?pS(e,t):vS(e,t)}function Ele(e,t,r){try{return i5(e,t)}catch{return e}}function Sle(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=ma(e),i=ma(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Ac({type:"rgb",values:s})}const Ole=["mode","contrastThreshold","tonalOffset"],J$={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:_f.white,default:_f.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}},D0={text:{primary:_f.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:_f.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}};function Z$(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=dS(e.main,a):t==="dark"&&(e.dark=cS(e.main,o)))}function Cle(e="light"){return e==="dark"?{main:$l[200],light:$l[50],dark:$l[400]}:{main:$l[700],light:$l[400],dark:$l[800]}}function Ple(e="light"){return e==="dark"?{main:Pl[200],light:Pl[50],dark:Pl[400]}:{main:Pl[500],light:Pl[300],dark:Pl[700]}}function $le(e="light"){return e==="dark"?{main:ps[500],light:ps[300],dark:ps[700]}:{main:ps[700],light:ps[400],dark:ps[800]}}function kle(e="light"){return e==="dark"?{main:kl[400],light:kl[300],dark:kl[700]}:{main:kl[700],light:kl[500],dark:kl[900]}}function Rle(e="light"){return e==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:Rl[800],light:Rl[500],dark:Rl[900]}}function Tle(e="light"){return e==="dark"?{main:rd[400],light:rd[300],dark:rd[700]}:{main:"#ed6c02",light:rd[500],dark:rd[900]}}function jle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Se(e,Ole),o=e.primary||Cle(t),i=e.secondary||Ple(t),s=e.error||$le(t),u=e.info||kle(t),l=e.success||Rle(t),c=e.warning||Tle(t);function d(g){return vle(g,D0.text.primary)>=r?D0.text.primary:J$.text.primary}const p=({color:g,name:_,mainShade:x=500,lightShade:b=300,darkShade:y=700})=>{if(g=k({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(Ko(11,_?` (${_})`:"",x));if(typeof g.main!="string")throw new Error(Ko(12,_?` (${_})`:"",JSON.stringify(g.main)));return Z$(g,"light",b,n),Z$(g,"dark",y,n),g.contrastText||(g.contrastText=d(g.main)),g},h={dark:D0,light:J$};return Hr(k({common:k({},_f),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:soe,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},h[t]),a)}const Ile=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ale(e){return Math.round(e*1e5)/1e5}const ek={textTransform:"uppercase"},tk='"Roboto", "Helvetica", "Arial", sans-serif';function Mle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=tk,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=r,p=Se(r,Ile),h=a/14,m=d||(x=>`${x/l*h}rem`),g=(x,b,y,E,v)=>k({fontFamily:n,fontWeight:x,fontSize:m(b),lineHeight:y},n===tk?{letterSpacing:`${Ale(E/b)}em`}:{},v,c),_={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,ek),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,ek),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(k({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},_),p,{clone:!1})}const Fle=.2,Lle=.14,Nle=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Lle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nle})`].join(",")}const Dle=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],Ble=["duration","easing","delay"],zle={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)"},Ule={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rk(e){return`${Math.round(e)}ms`}function Vle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Wle(e){const t=k({},zle,e.easing),r=k({},Ule,e.duration);return k({getAutoHeightDuration:Vle,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Se(o,Ble),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:rk(i)} ${s} ${typeof u=="string"?u:rk(u)}`).join(",")}},e,{easing:t,duration:r})}const Hle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},qle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Se(e,qle);if(e.vars)throw new Error(Ko(18));const s=jle(n),u=op(e);let l=Hr(u,{mixins:cle(u.breakpoints,r),palette:s,shadows:Dle.slice(),typography:Mle(s,o),transitions:Wle(a),zIndex:k({},Hle)});return l=Hr(l,i),l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=k({},ap,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return jc({sx:d,theme:this})},l}const oy=Wh();function ni(){const e=Wg(oy);return e[sl]||e}function Qe({props:e,name:t}){return HF({props:e,name:t,defaultTheme:oy,themeId:sl})}var sp={},B0={exports:{}},nk;function Kle(){return nk||(nk=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(B0)),B0.exports}const s5=mo(die),Gle=mo(fie),Qle=mo(yie),Xle=mo(bse),Yle=mo(ose),Jle=mo(dse);var Mc=yt;Object.defineProperty(sp,"__esModule",{value:!0});var Zle=sp.default=fue;sp.shouldForwardProp=Cv;sp.systemDefaultTheme=void 0;var ra=Mc($F()),ox=Mc(Kle()),ak=iue(s5),eue=Gle;Mc(Qle);Mc(Xle);var tue=Mc(Yle),rue=Mc(Jle);const nue=["ownerState"],aue=["variants"],oue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function l5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(l5=function(n){return n?r:t})(e)}function iue(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=l5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function sue(e){return Object.keys(e).length===0}function lue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uue=sp.systemDefaultTheme=(0,tue.default)(),cue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wp({defaultTheme:e,theme:t,themeId:r}){return sue(t)?e:t[r]||t}function due(e){return e?(t,r)=>r[e]:null}function Pv(e,t){let{ownerState:r}=t,n=(0,ox.default)(t,nue);const a=typeof e=="function"?e((0,ra.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Pv(o,(0,ra.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,ox.default)(a,aue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ra.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ra.default)({ownerState:r},n,r)):u.style))}),s}return a}function fue(e={}){const{themeId:t,defaultTheme:r=uue,rootShouldForwardProp:n=Cv,slotShouldForwardProp:a=Cv}=e,o=i=>(0,rue.default)((0,ra.default)({},i,{theme:Wp((0,ra.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,ak.internal_processStyles)(i,v=>v.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=due(cue(l))}=s,h=(0,ox.default)(s,oue),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=Cv;l==="Root"||l==="root"?x=n:l?x=a:lue(i)&&(x=void 0);const b=(0,ak.default)(i,(0,ra.default)({shouldForwardProp:x,label:_},h)),y=v=>typeof v=="function"&&v.__emotion_real!==v||(0,eue.isPlainObject)(v)?S=>Pv(v,(0,ra.default)({},S,{theme:Wp({theme:S.theme,defaultTheme:r,themeId:t})})):v,E=(v,...S)=>{let w=y(v);const O=S?S.map(y):[];u&&p&&O.push($=>{const R=Wp((0,ra.default)({},$,{defaultTheme:r,themeId:t}));if(!R.components||!R.components[u]||!R.components[u].styleOverrides)return null;const A=R.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=Pv(U,(0,ra.default)({},$,{theme:R}))}),p($,M)}),u&&!m&&O.push($=>{var R;const A=Wp((0,ra.default)({},$,{defaultTheme:r,themeId:t})),M=A==null||(R=A.components)==null||(R=R[u])==null?void 0:R.variants;return Pv({variants:M},(0,ra.default)({},$,{theme:A}))}),g||O.push(o);const C=O.length-S.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");w=[...v,...$],w.raw=[...v.raw,...$]}const P=b(w,...O);return i.muiName&&(P.muiName=i.muiName),P};return b.withConfig&&(E.withConfig=b.withConfig),E}}function u5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Kr=e=>u5(e)&&e!=="classes",te=Zle({themeId:sl,defaultTheme:oy,rootShouldForwardProp:Kr}),pue=["theme"];function vue(e){let{theme:t}=e,r=Se(e,pue);const n=t[sl];return L.jsx(tle,k({},r,{themeId:n?sl:void 0,theme:n||t}))}const ok=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function hue(e){return Ke("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(r)}`]};return Ge(a,hue,n)},yue=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ce(r.color)}`],t[`fontSize${ce(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),ix=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,h=Se(n,mue),m=f.isValidElement(a)&&a.type==="svg",g=k({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),_={};c||(_.viewBox=p);const x=gue(g);return L.jsxs(yue,k({as:s,className:le(x.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},_,h,m&&a.props,{ownerState:g,children:[m?a.props.children:a,d?L.jsx("title",{children:d}):null]}))});ix.muiName="SvgIcon";function Ln(e,t){function r(n,a){return L.jsx(ix,k({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=ix.muiName,f.memo(f.forwardRef(r))}const bue={configure:e=>{oS.configure(e)}},xue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:nx,createSvgIcon:Ln,debounce:ry,deprecatedPropType:Mse,isMuiElement:Ov,ownerDocument:jr,ownerWindow:vo,requirePropFactory:Fse,setRef:Uh,unstable_ClassNameGenerator:bue,unstable_useEnhancedEffect:ha,unstable_useId:ul,unsupportedProp:Nse,useControlled:ec,useEventCallback:ua,useForkRef:Zt,useIsFocusVisible:ay},Symbol.toStringTag,{value:"Module"}));var Bt={};/** + * @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 hS=Symbol.for("react.element"),mS=Symbol.for("react.portal"),iy=Symbol.for("react.fragment"),sy=Symbol.for("react.strict_mode"),ly=Symbol.for("react.profiler"),uy=Symbol.for("react.provider"),cy=Symbol.for("react.context"),wue=Symbol.for("react.server_context"),dy=Symbol.for("react.forward_ref"),fy=Symbol.for("react.suspense"),py=Symbol.for("react.suspense_list"),vy=Symbol.for("react.memo"),hy=Symbol.for("react.lazy"),_ue=Symbol.for("react.offscreen"),c5;c5=Symbol.for("react.module.reference");function Sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hS:switch(e=e.type,e){case iy:case ly:case sy:case fy:case py:return e;default:switch(e=e&&e.$$typeof,e){case wue:case cy:case dy:case hy:case vy:case uy:return e;default:return t}}case mS:return t}}}Bt.ContextConsumer=cy;Bt.ContextProvider=uy;Bt.Element=hS;Bt.ForwardRef=dy;Bt.Fragment=iy;Bt.Lazy=hy;Bt.Memo=vy;Bt.Portal=mS;Bt.Profiler=ly;Bt.StrictMode=sy;Bt.Suspense=fy;Bt.SuspenseList=py;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Sa(e)===cy};Bt.isContextProvider=function(e){return Sa(e)===uy};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hS};Bt.isForwardRef=function(e){return Sa(e)===dy};Bt.isFragment=function(e){return Sa(e)===iy};Bt.isLazy=function(e){return Sa(e)===hy};Bt.isMemo=function(e){return Sa(e)===vy};Bt.isPortal=function(e){return Sa(e)===mS};Bt.isProfiler=function(e){return Sa(e)===ly};Bt.isStrictMode=function(e){return Sa(e)===sy};Bt.isSuspense=function(e){return Sa(e)===fy};Bt.isSuspenseList=function(e){return Sa(e)===py};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===iy||e===ly||e===sy||e===fy||e===py||e===_ue||typeof e=="object"&&e!==null&&(e.$$typeof===hy||e.$$typeof===vy||e.$$typeof===uy||e.$$typeof===cy||e.$$typeof===dy||e.$$typeof===c5||e.getModuleId!==void 0)};Bt.typeOf=Sa;function Eue(e){return Qe}function sx(e,t){return sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sx(e,t)}function d5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sx(e,t)}const ik={disabled:!1},Hh=Ce.createContext(null);var Sue=function(t){return t.scrollTop},xd="unmounted",vs="exited",hs="entering",Fl="entered",lx="exiting",Ua=function(e){d5(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=vs,o.appearStatus=hs):u=Fl:n.unmountOnExit||n.mountOnEnter?u=xd:u=vs,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===xd?{status:vs}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==hs&&i!==Fl&&(o=hs):(i===hs||i===Fl)&&(o=lx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===hs){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:gd.findDOMNode(this);i&&Sue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vs&&this.setState({status:xd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[gd.findDOMNode(this),s],l=u[0],c=u[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!a&&!i||ik.disabled){this.safeSetState({status:Fl},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:hs},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:Fl},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:gd.findDOMNode(this);if(!o||ik.disabled){this.safeSetState({status:vs},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:lx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:vs},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:gd.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===xd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Se(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ce.createElement(Hh.Provider,{value:null},typeof i=="function"?i(a,s):Ce.cloneElement(Ce.Children.only(i),s))},t}(Ce.Component);Ua.contextType=Hh;Ua.propTypes={};function Tl(){}Ua.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tl,onEntering:Tl,onEntered:Tl,onExit:Tl,onExiting:Tl,onExited:Tl};Ua.UNMOUNTED=xd;Ua.EXITED=vs;Ua.ENTERING=hs;Ua.ENTERED=Fl;Ua.EXITING=lx;function Oue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gS(e,t){var r=function(o){return t&&f.isValidElement(o)?t(o):o},n=Object.create(null);return e&&f.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Cue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function tc(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Tue(e){return Ke("MuiPaper",e)}qe("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 jue=["className","component","elevation","square","variant"],Iue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(o,Tue,a)},Aue=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",ok(t.elevation))}, ${mt("#fff",ok(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ts=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Se(n,jue),c=k({},n,{component:o,elevation:i,square:s,variant:u}),d=Iue(c);return L.jsx(Aue,k({as:o,ownerState:c,className:le(d.root,a),ref:r},l))});function Pf(e){return typeof e=="string"}function nu(e,t,r){return e===void 0||Pf(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}const Mue={disableDefaultClasses:!1},Fue=f.createContext(Mue);function Lue(e){const{disableDefaultClasses:t}=f.useContext(Fue);return r=>t?"":e(r)}function qh(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function f5(e,t,r){return typeof e=="function"?e(t,r):e}function sk(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function p5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const h=le(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=k({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),g=k({},r,a,n);return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const i=qh(k({},a,n)),s=sk(n),u=sk(a),l=t(i),c=le(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),d=k({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=k({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}const Nue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wi(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Se(e,Nue),s=o?{}:f5(n,a),{props:u,internalRef:l}=p5(k({},i,{externalSlotProps:s})),c=Zt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return nu(r,k({},u,{ref:c}),a)}const Due=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Bue=["component","slots","slotProps"],zue=["component"];function Uue(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Se(t,Due),{component:l,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=o;Se(o,Bue);const p=c[e]||n,h=f5(d[e],a),m=p5(k({className:r},u,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:g},internalRef:_}=m,x=Se(m.props,zue),b=Zt(_,h==null?void 0:h.ref,t.ref),y=i?i(x):{},E=k({},a,y),v=g,S=nu(p,k({},e==="root",!c[e]&&s,x,v&&{as:v},{ref:b}),E);return Object.keys(y).forEach(w=>{delete S[w]}),[p,S]}function Vue(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,d]=f.useState(!1),p=le(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},m=le(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),f.useEffect(()=>{if(!s&&u!=null){const g=setTimeout(u,l);return()=>{clearTimeout(g)}}},[u,s,l]),L.jsx("span",{className:p,style:h,children:L.jsx("span",{className:m})})}const na=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wue=["center","classes","className"];let my=e=>e,lk,uk,ck,dk;const ux=550,Hue=80,que=ri(lk||(lk=my` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Kue=ri(uk||(uk=my` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Gue=ri(ck||(ck=my` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),Que=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Xue=te(Vue,{name:"MuiTouchRipple",slot:"Ripple"})(dk||(dk=my` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),na.rippleVisible,que,ux,({theme:e})=>e.transitions.easing.easeInOut,na.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,na.child,na.childLeaving,Kue,ux,({theme:e})=>e.transitions.easing.easeInOut,na.childPulsate,Gue,({theme:e})=>e.transitions.easing.easeInOut),Yue=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Se(n,Wue),[u,l]=f.useState([]),c=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=f.useRef(!1),h=Ts(),m=f.useRef(null),g=f.useRef(null),_=f.useCallback(E=>{const{pulsate:v,rippleX:S,rippleY:w,rippleSize:O,cb:C}=E;l(P=>[...P,L.jsx(Xue,{classes:{ripple:le(o.ripple,na.ripple),rippleVisible:le(o.rippleVisible,na.rippleVisible),ripplePulsate:le(o.ripplePulsate,na.ripplePulsate),child:le(o.child,na.child),childLeaving:le(o.childLeaving,na.childLeaving),childPulsate:le(o.childPulsate,na.childPulsate)},timeout:ux,pulsate:v,rippleX:S,rippleY:w,rippleSize:O},c.current)]),c.current+=1,d.current=C},[o]),x=f.useCallback((E={},v={},S=()=>{})=>{const{pulsate:w=!1,center:O=a||v.pulsate,fakeElement:C=!1}=v;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const P=C?null:g.current,$=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,A,M;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)R=Math.round($.width/2),A=Math.round($.height/2);else{const{clientX:I,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;R=Math.round(I-$.left),A=Math.round(U-$.top)}if(O)M=Math.sqrt((2*$.width**2+$.height**2)/3),M%2===0&&(M+=1);else{const I=Math.max(Math.abs((P?P.clientWidth:0)-R),R)*2+2,U=Math.max(Math.abs((P?P.clientHeight:0)-A),A)*2+2;M=Math.sqrt(I**2+U**2)}E!=null&&E.touches?m.current===null&&(m.current=()=>{_({pulsate:w,rippleX:R,rippleY:A,rippleSize:M,cb:S})},h.start(Hue,()=>{m.current&&(m.current(),m.current=null)})):_({pulsate:w,rippleX:R,rippleY:A,rippleSize:M,cb:S})},[a,_,h]),b=f.useCallback(()=>{x({},{pulsate:!0})},[x]),y=f.useCallback((E,v)=>{if(h.clear(),(E==null?void 0:E.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{y(E,v)});return}m.current=null,l(S=>S.length>0?S.slice(1):S),d.current=v},[h]);return f.useImperativeHandle(r,()=>({pulsate:b,start:x,stop:y}),[b,x,y]),L.jsx(Que,k({className:le(na.root,o.root,i),ref:g},s,{children:L.jsx(yS,{component:null,exit:!0,children:u})}))});function Jue(e){return Ke("MuiButtonBase",e)}const Zue=qe("MuiButtonBase",["root","disabled","focusVisible"]),ece=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],tce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},Jue,a);return r&&n&&(i.root+=` ${n}`),i},rce=te("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"},[`&.${Zue.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Go=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:_,onDragLeave:x,onFocus:b,onFocusVisible:y,onKeyDown:E,onKeyUp:v,onMouseDown:S,onMouseLeave:w,onMouseUp:O,onTouchEnd:C,onTouchMove:P,onTouchStart:$,tabIndex:R=0,TouchRippleProps:A,touchRippleRef:M,type:I}=n,U=Se(n,ece),W=f.useRef(null),T=f.useRef(null),V=Zt(T,M),{isFocusVisibleRef:X,onFocus:ie,onBlur:ae,ref:pe}=ay(),[ye,be]=f.useState(!1);l&&ye&&be(!1),f.useImperativeHandle(a,()=>({focusVisible:()=>{be(!0),W.current.focus()}}),[]);const[_e,ke]=f.useState(!1);f.useEffect(()=>{ke(!0)},[]);const $e=_e&&!c&&!l;f.useEffect(()=>{ye&&p&&!c&&_e&&T.current.pulsate()},[c,p,ye,_e]);function Ee(se,Ae,We=d){return ua(Le=>(Ae&&Ae(Le),!We&&T.current&&T.current[se](Le),!0))}const ze=Ee("start",S),je=Ee("stop",_),De=Ee("stop",x),Me=Ee("stop",O),He=Ee("stop",se=>{ye&&se.preventDefault(),w&&w(se)}),et=Ee("start",$),ft=Ee("stop",C),gt=Ee("stop",P),z=Ee("stop",se=>{ae(se),X.current===!1&&be(!1),m&&m(se)},!1),Q=ua(se=>{W.current||(W.current=se.currentTarget),ie(se),X.current===!0&&(be(!0),y&&y(se)),b&&b(se)}),Z=()=>{const se=W.current;return u&&u!=="button"&&!(se.tagName==="A"&&se.href)},oe=f.useRef(!1),he=ua(se=>{p&&!oe.current&&ye&&T.current&&se.key===" "&&(oe.current=!0,T.current.stop(se,()=>{T.current.start(se)})),se.target===se.currentTarget&&Z()&&se.key===" "&&se.preventDefault(),E&&E(se),se.target===se.currentTarget&&Z()&&se.key==="Enter"&&!l&&(se.preventDefault(),g&&g(se))}),de=ua(se=>{p&&se.key===" "&&T.current&&ye&&!se.defaultPrevented&&(oe.current=!1,T.current.stop(se,()=>{T.current.pulsate(se)})),v&&v(se),g&&se.target===se.currentTarget&&Z()&&se.key===" "&&!se.defaultPrevented&&g(se)});let ge=u;ge==="button"&&(U.href||U.to)&&(ge=h);const Y={};ge==="button"?(Y.type=I===void 0?"button":I,Y.disabled=l):(!U.href&&!U.to&&(Y.role="button"),l&&(Y["aria-disabled"]=l));const H=Zt(r,pe,W),K=k({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:ye}),ne=tce(K);return L.jsxs(rce,k({as:ge,className:le(ne.root,s),ownerState:K,onBlur:z,onClick:g,onContextMenu:je,onFocus:Q,onKeyDown:he,onKeyUp:de,onMouseDown:ze,onMouseLeave:He,onMouseUp:Me,onDragLeave:De,onTouchEnd:ft,onTouchMove:gt,onTouchStart:et,ref:H,tabIndex:l?-1:R,type:I},Y,U,{children:[i,$e?L.jsx(Yue,k({ref:V,center:o},A)):null]}))});function nce(e){return Ke("MuiIconButton",e)}const ace=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oce=["edge","children","className","color","disabled","disableFocusRipple","size"],ice=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ce(n)}`,a&&`edge${ce(a)}`,`size${ce(o)}`]};return Ge(i,nce,t)},sce=te(Go,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ce(r.color)}`],r.edge&&t[`edge${ce(r.edge)}`],t[`size${ce(r.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":k({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ace.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=Se(n,oce),p=k({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),h=ice(p);return L.jsx(sce,k({className:le(h.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},d,{ownerState:p,children:o}))});function lce(e){return Ke("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const uce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cce=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ce(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return Ge(s,lce,i)},dce=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),fk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pce=e=>fce[e]||e,xr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTypography"}),a=pce(n.color),o=Hg(k({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=fk}=o,m=Se(o,uce),g=k({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:d,variant:p,variantMapping:h}),_=u||(d?"p":h[p]||fk[p])||"span",x=cce(g);return L.jsx(dce,k({as:_,ref:r,ownerState:g,className:le(x.root,s)},m))});function vce(e){return Ke("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hce=["className","color","enableColorOnDark","position"],mce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ce(t)}`,`position${ce(r)}`]};return Ge(a,vce,n)},Hp=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,gce=te(ts,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Hp(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Hp(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Hp(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Hp(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),yce=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Se(n,hce),l=k({},n,{color:o,position:s,enableColorOnDark:i}),c=mce(l);return L.jsx(gce,k({square:!0,component:"header",ownerState:l,elevation:4,className:le(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),v5="base";function bce(e){return`${v5}--${e}`}function xce(e,t){return`${v5}-${e}-${t}`}function h5(e,t){const r=DF[t];return r?bce(r):xce(e,t)}function wce(e,t){const r={};return t.forEach(n=>{r[n]=h5(e,n)}),r}function pk(e){return e.substring(2).toLowerCase()}function _ce(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Zt(t.ref,s),d=ua(m=>{const g=l.current;l.current=!1;const _=jr(s.current);if(!u.current||!s.current||"clientX"in m&&_ce(m,_))return;if(i.current){i.current=!1;return}let x;m.composedPath?x=m.composedPath().indexOf(s.current)>-1:x=!_.documentElement.contains(m.target)||s.current.contains(m.target),!x&&(r||!g)&&a(m)}),p=m=>g=>{l.current=!0;const _=t.props[m];_&&_(g)},h={ref:c};return o!==!1&&(h[o]=p(o)),f.useEffect(()=>{if(o!==!1){const m=pk(o),g=jr(s.current),_=()=>{i.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",_),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",_)}}},[d,o]),n!==!1&&(h[n]=p(n)),f.useEffect(()=>{if(n!==!1){const m=pk(n),g=jr(s.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,n]),L.jsx(f.Fragment,{children:f.cloneElement(t,h)})}const Sce=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Oce(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 Cce(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Pce(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Cce(e))}function $ce(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sce)).forEach((n,a)=>{const o=Oce(n);o===-1||!Pce(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function kce(){return!0}function Rce(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=$ce,isEnabled:i=kce,open:s}=e,u=f.useRef(!1),l=f.useRef(null),c=f.useRef(null),d=f.useRef(null),p=f.useRef(null),h=f.useRef(!1),m=f.useRef(null),g=Zt(t.ref,m),_=f.useRef(null);f.useEffect(()=>{!s||!m.current||(h.current=!r)},[r,s]),f.useEffect(()=>{if(!s||!m.current)return;const y=jr(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{a||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[s]),f.useEffect(()=>{if(!s||!m.current)return;const y=jr(m.current),E=w=>{_.current=w,!(n||!i()||w.key!=="Tab")&&y.activeElement===m.current&&w.shiftKey&&(u.current=!0,c.current&&c.current.focus())},v=()=>{const w=m.current;if(w===null)return;if(!y.hasFocus()||!i()||u.current){u.current=!1;return}if(w.contains(y.activeElement)||n&&y.activeElement!==l.current&&y.activeElement!==c.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let O=[];if((y.activeElement===l.current||y.activeElement===c.current)&&(O=o(m.current)),O.length>0){var C,P;const $=!!((C=_.current)!=null&&C.shiftKey&&((P=_.current)==null?void 0:P.key)==="Tab"),R=O[0],A=O[O.length-1];typeof R!="string"&&typeof A!="string"&&($?A.focus():R.focus())}else w.focus()};y.addEventListener("focusin",v),y.addEventListener("keydown",E,!0);const S=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&v()},50);return()=>{clearInterval(S),y.removeEventListener("focusin",v),y.removeEventListener("keydown",E,!0)}},[r,n,a,i,s,o]);const x=y=>{d.current===null&&(d.current=y.relatedTarget),h.current=!0,p.current=y.target;const E=t.props.onFocus;E&&E(y)},b=y=>{d.current===null&&(d.current=y.relatedTarget),h.current=!0};return L.jsxs(f.Fragment,{children:[L.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:l,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:g,onFocus:x}),L.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}function Tce(e){return typeof e=="function"?e():e}const m5=f.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[i,s]=f.useState(null),u=Zt(f.isValidElement(n)?n.ref:null,r);if(ha(()=>{o||s(Tce(a)||document.body)},[a,o]),ha(()=>{if(i&&!o)return Uh(r,i),()=>{Uh(r,null)}},[r,i,o]),o){if(f.isValidElement(n)){const l={ref:u};return f.cloneElement(n,l)}return L.jsx(f.Fragment,{children:n})}return L.jsx(f.Fragment,{children:i&&Wf.createPortal(n,i)})});function jce(e){const t=jr(e);return t.body===e?vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vk(e){return parseInt(vo(e).getComputedStyle(e).paddingRight,10)||0}function Ice(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function hk(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!Ice(i);s&&u&&Dd(i,a)})}function z0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Ace(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(jce(n)){const i=XF(jr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vk(n)+i}px`;const s=jr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${vk(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=jr(n).body;else{const i=n.parentElement,s=vo(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Mce(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Fce{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Dd(t.modalRef,!1);const a=Mce(r);hk(r,t.mount,t.modalRef,a,!0);const o=z0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=z0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Ace(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=z0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Dd(t.modalRef,r),hk(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Dd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Lce(e){return typeof e=="function"?e():e}function Nce(e){return e?e.props.hasOwnProperty("in"):!1}const Dce=new Fce;function Bce(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Dce,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:d}=e,p=f.useRef({}),h=f.useRef(null),m=f.useRef(null),g=Zt(m,d),[_,x]=f.useState(!c),b=Nce(u);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const E=()=>jr(h.current),v=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),S=()=>{a.mount(v(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},w=ua(()=>{const U=Lce(t)||E().body;a.add(v(),U),m.current&&S()}),O=f.useCallback(()=>a.isTopModal(v()),[a]),C=ua(U=>{h.current=U,U&&(c&&O()?S():m.current&&Dd(m.current,y))}),P=f.useCallback(()=>{a.remove(v(),y)},[y,a]);f.useEffect(()=>()=>{P()},[P]),f.useEffect(()=>{c?w():(!b||!o)&&P()},[c,P,b,o,w]);const $=U=>W=>{var T;(T=U.onKeyDown)==null||T.call(U,W),!(W.key!=="Escape"||W.which===229||!O())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},R=U=>W=>{var T;(T=U.onClick)==null||T.call(U,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(U={})=>{const W=qh(e);delete W.onTransitionEnter,delete W.onTransitionExited;const T=k({},W,U);return k({role:"presentation"},T,{onKeyDown:$(T),ref:g})},getBackdropProps:(U={})=>{const W=U;return k({"aria-hidden":!0},W,{onClick:R(W),open:c})},getTransitionProps:()=>{const U=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:nx(U,u==null?void 0:u.props.onEnter),onExited:nx(W,u==null?void 0:u.props.onExited)}},rootRef:g,portalRef:C,isTopModal:O,exited:_,hasTransition:b}}var Tn="top",ga="bottom",ya="right",jn="left",xS="auto",lp=[Tn,ga,ya,jn],rc="start",$f="end",zce="clippingParents",g5="viewport",ad="popper",Uce="reference",mk=lp.reduce(function(e,t){return e.concat([t+"-"+rc,t+"-"+$f])},[]),y5=[].concat(lp,[xS]).reduce(function(e,t){return e.concat([t,t+"-"+rc,t+"-"+$f])},[]),Vce="beforeRead",Wce="read",Hce="afterRead",qce="beforeMain",Kce="main",Gce="afterMain",Qce="beforeWrite",Xce="write",Yce="afterWrite",Jce=[Vce,Wce,Hce,qce,Kce,Gce,Qce,Xce,Yce];function ho(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cl(e){var t=Gn(e).Element;return e instanceof t||e instanceof Element}function da(e){var t=Gn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wS(e){if(typeof ShadowRoot>"u")return!1;var t=Gn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zce(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!da(o)||!ho(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function ede(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!da(a)||!ho(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const tde={name:"applyStyles",enabled:!0,phase:"write",fn:Zce,effect:ede,requires:["computeStyles"]};function po(e){return e.split("-")[0]}var Hs=Math.max,Kh=Math.min,nc=Math.round;function cx(){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 b5(){return!/^((?!chrome|android).)*safari/i.test(cx())}function ac(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&da(e)&&(a=e.offsetWidth>0&&nc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&nc(n.height)/e.offsetHeight||1);var i=cl(e)?Gn(e):window,s=i.visualViewport,u=!b5()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,d=n.width/a,p=n.height/o;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function _S(e){var t=ac(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function x5(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&wS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(e){return Gn(e).getComputedStyle(e)}function rde(e){return["table","td","th"].indexOf(ho(e))>=0}function rs(e){return((cl(e)?e.ownerDocument:e.document)||window.document).documentElement}function gy(e){return ho(e)==="html"?e:e.assignedSlot||e.parentNode||(wS(e)?e.host:null)||rs(e)}function gk(e){return!da(e)||Qo(e).position==="fixed"?null:e.offsetParent}function nde(e){var t=/firefox/i.test(cx()),r=/Trident/i.test(cx());if(r&&da(e)){var n=Qo(e);if(n.position==="fixed")return null}var a=gy(e);for(wS(a)&&(a=a.host);da(a)&&["html","body"].indexOf(ho(a))<0;){var o=Qo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function up(e){for(var t=Gn(e),r=gk(e);r&&rde(r)&&Qo(r).position==="static";)r=gk(r);return r&&(ho(r)==="html"||ho(r)==="body"&&Qo(r).position==="static")?t:r||nde(e)||t}function ES(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bd(e,t,r){return Hs(e,Kh(t,r))}function ade(e,t,r){var n=Bd(e,t,r);return n>r?r:n}function w5(){return{top:0,right:0,bottom:0,left:0}}function _5(e){return Object.assign({},w5(),e)}function E5(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ode=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_5(typeof t!="number"?t:E5(t,lp))};function ide(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=po(r.placement),u=ES(s),l=[jn,ya].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var d=ode(a.padding,r),p=_S(o),h=u==="y"?Tn:jn,m=u==="y"?ga:ya,g=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],_=i[u]-r.rects.reference[u],x=up(o),b=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,y=g/2-_/2,E=d[h],v=b-p[c]-d[m],S=b/2-p[c]/2+y,w=Bd(E,S,v),O=u;r.modifiersData[n]=(t={},t[O]=w,t.centerOffset=w-S,t)}}function sde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||x5(t.elements.popper,a)&&(t.elements.arrow=a))}const lde={name:"arrow",enabled:!0,phase:"main",fn:ide,effect:sde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oc(e){return e.split("-")[1]}var ude={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:nc(r*a)/a||0,y:nc(n*a)/a||0}}function yk(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,h=p===void 0?0:p,m=i.y,g=m===void 0?0:m,_=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=_.x,g=_.y;var x=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=jn,E=Tn,v=window;if(l){var S=up(r),w="clientHeight",O="clientWidth";if(S===Gn(r)&&(S=rs(r),Qo(S).position!=="static"&&s==="absolute"&&(w="scrollHeight",O="scrollWidth")),S=S,a===Tn||(a===jn||a===ya)&&o===$f){E=ga;var C=d&&S===v&&v.visualViewport?v.visualViewport.height:S[w];g-=C-n.height,g*=u?1:-1}if(a===jn||(a===Tn||a===ga)&&o===$f){y=ya;var P=d&&S===v&&v.visualViewport?v.visualViewport.width:S[O];h-=P-n.width,h*=u?1:-1}}var $=Object.assign({position:s},l&&ude),R=c===!0?cde({x:h,y:g},Gn(r)):{x:h,y:g};if(h=R.x,g=R.y,u){var A;return Object.assign({},$,(A={},A[E]=b?"0":"",A[y]=x?"0":"",A.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},$,(t={},t[E]=b?g+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function dde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:po(t.placement),variation:oc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yk(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yk(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dde,data:{}};var qp={passive:!0};function pde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Gn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,qp)}),s&&u.addEventListener("resize",r.update,qp),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,qp)}),s&&u.removeEventListener("resize",r.update,qp)}}const vde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pde,data:{}};var hde={left:"right",right:"left",bottom:"top",top:"bottom"};function $v(e){return e.replace(/left|right|bottom|top/g,function(t){return hde[t]})}var mde={start:"end",end:"start"};function bk(e){return e.replace(/start|end/g,function(t){return mde[t]})}function SS(e){var t=Gn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OS(e){return ac(rs(e)).left+SS(e).scrollLeft}function gde(e,t){var r=Gn(e),n=rs(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=b5();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OS(e),y:u}}function yde(e){var t,r=rs(e),n=SS(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Hs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Hs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OS(e),u=-n.scrollTop;return Qo(a||r).direction==="rtl"&&(s+=Hs(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function CS(e){var t=Qo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function S5(e){return["html","body","#document"].indexOf(ho(e))>=0?e.ownerDocument.body:da(e)&&CS(e)?e:S5(gy(e))}function zd(e,t){var r;t===void 0&&(t=[]);var n=S5(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Gn(n),i=a?[o].concat(o.visualViewport||[],CS(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(zd(gy(i)))}function dx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bde(e,t){var r=ac(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function xk(e,t,r){return t===g5?dx(gde(e,r)):cl(t)?bde(t,r):dx(yde(rs(e)))}function xde(e){var t=zd(gy(e)),r=["absolute","fixed"].indexOf(Qo(e).position)>=0,n=r&&da(e)?up(e):e;return cl(n)?t.filter(function(a){return cl(a)&&x5(a,n)&&ho(a)!=="body"}):[]}function wde(e,t,r,n){var a=t==="clippingParents"?xde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=xk(e,l,n);return u.top=Hs(c.top,u.top),u.right=Kh(c.right,u.right),u.bottom=Kh(c.bottom,u.bottom),u.left=Hs(c.left,u.left),u},xk(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function O5(e){var t=e.reference,r=e.element,n=e.placement,a=n?po(n):null,o=n?oc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ga:u={x:i,y:t.y+t.height};break;case ya:u={x:t.x+t.width,y:s};break;case jn:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?ES(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case rc:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?zce:s,l=r.rootBoundary,c=l===void 0?g5:l,d=r.elementContext,p=d===void 0?ad:d,h=r.altBoundary,m=h===void 0?!1:h,g=r.padding,_=g===void 0?0:g,x=_5(typeof _!="number"?_:E5(_,lp)),b=p===ad?Uce:ad,y=e.rects.popper,E=e.elements[m?b:p],v=wde(cl(E)?E:E.contextElement||rs(e.elements.popper),u,c,i),S=ac(e.elements.reference),w=O5({reference:S,element:y,strategy:"absolute",placement:a}),O=dx(Object.assign({},y,w)),C=p===ad?O:S,P={top:v.top-C.top+x.top,bottom:C.bottom-v.bottom+x.bottom,left:v.left-C.left+x.left,right:C.right-v.right+x.right},$=e.modifiersData.offset;if(p===ad&&$){var R=$[a];Object.keys(P).forEach(function(A){var M=[ya,ga].indexOf(A)>=0?1:-1,I=[Tn,ga].indexOf(A)>=0?"y":"x";P[A]+=R[I]*M})}return P}function _de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?y5:u,c=oc(n),d=c?s?mk:mk.filter(function(m){return oc(m)===c}):lp,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,g){return m[g]=kf(e,{placement:g,boundary:a,rootBoundary:o,padding:i})[po(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Ede(e){if(po(e)===xS)return[];var t=$v(e);return[bk(e),t,bk(t)]}function Sde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,g=r.allowedAutoPlacements,_=t.options.placement,x=po(_),b=x===_,y=u||(b||!m?[$v(_)]:Ede(_)),E=[_].concat(y).reduce(function(ye,be){return ye.concat(po(be)===xS?_de(t,{placement:be,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:g}):be)},[]),v=t.rects.reference,S=t.rects.popper,w=new Map,O=!0,C=E[0],P=0;P=0,I=M?"width":"height",U=kf(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),W=M?A?ya:jn:A?ga:Tn;v[I]>S[I]&&(W=$v(W));var T=$v(W),V=[];if(o&&V.push(U[R]<=0),s&&V.push(U[W]<=0,U[T]<=0),V.every(function(ye){return ye})){C=$,O=!1;break}w.set($,V)}if(O)for(var X=m?3:1,ie=function(be){var _e=E.find(function(ke){var $e=w.get(ke);if($e)return $e.slice(0,be).every(function(Ee){return Ee})});if(_e)return C=_e,"break"},ae=X;ae>0;ae--){var pe=ie(ae);if(pe==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}const Ode={name:"flip",enabled:!0,phase:"main",fn:Sde,requiresIfExists:["offset"],data:{_skip:!1}};function wk(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function _k(e){return[Tn,ya,ga,jn].some(function(t){return e[t]>=0})}function Cde(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=wk(i,n),l=wk(s,a,o),c=_k(u),d=_k(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Pde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cde};function $de(e,t,r){var n=po(e),a=[jn,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[jn,ya].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function kde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=y5.reduce(function(c,d){return c[d]=$de(d,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Rde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kde};function Tde(e){var t=e.state,r=e.name;t.modifiersData[r]=O5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jde={name:"popperOffsets",enabled:!0,phase:"read",fn:Tde,data:{}};function Ide(e){return e==="x"?"y":"x"}function Ade(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,m=r.tetherOffset,g=m===void 0?0:m,_=kf(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),x=po(t.placement),b=oc(t.placement),y=!b,E=ES(x),v=Ide(E),S=t.modifiersData.popperOffsets,w=t.rects.reference,O=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(o){var A,M=E==="y"?Tn:jn,I=E==="y"?ga:ya,U=E==="y"?"height":"width",W=S[E],T=W+_[M],V=W-_[I],X=h?-O[U]/2:0,ie=b===rc?w[U]:O[U],ae=b===rc?-O[U]:-w[U],pe=t.elements.arrow,ye=h&&pe?_S(pe):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:w5(),_e=be[M],ke=be[I],$e=Bd(0,w[U],ye[U]),Ee=y?w[U]/2-X-$e-_e-P.mainAxis:ie-$e-_e-P.mainAxis,ze=y?-w[U]/2+X+$e+ke+P.mainAxis:ae+$e+ke+P.mainAxis,je=t.elements.arrow&&up(t.elements.arrow),De=je?E==="y"?je.clientTop||0:je.clientLeft||0:0,Me=(A=$==null?void 0:$[E])!=null?A:0,He=W+Ee-Me-De,et=W+ze-Me,ft=Bd(h?Kh(T,He):T,W,h?Hs(V,et):V);S[E]=ft,R[E]=ft-W}if(s){var gt,z=E==="x"?Tn:jn,Q=E==="x"?ga:ya,Z=S[v],oe=v==="y"?"height":"width",he=Z+_[z],de=Z-_[Q],ge=[Tn,jn].indexOf(x)!==-1,Y=(gt=$==null?void 0:$[v])!=null?gt:0,H=ge?he:Z-w[oe]-O[oe]-Y+P.altAxis,K=ge?Z+w[oe]+O[oe]-Y-P.altAxis:de,ne=h&&ge?ade(H,Z,K):Bd(h?H:he,Z,h?K:de);S[v]=ne,R[v]=ne-Z}t.modifiersData[n]=R}}const Mde={name:"preventOverflow",enabled:!0,phase:"main",fn:Ade,requiresIfExists:["offset"]};function Fde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lde(e){return e===Gn(e)||!da(e)?SS(e):Fde(e)}function Nde(e){var t=e.getBoundingClientRect(),r=nc(t.width)/e.offsetWidth||1,n=nc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Dde(e,t,r){r===void 0&&(r=!1);var n=da(t),a=da(t)&&Nde(t),o=rs(t),i=ac(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ho(t)!=="body"||CS(o))&&(s=Lde(t)),da(t)?(u=ac(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OS(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Bde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function zde(e){var t=Bde(e);return Jce.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Ude(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Vde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ek={placement:"bottom",modifiers:[],strategy:"absolute"};function Sk(){for(var e=arguments.length,t=new Array(e),r=0;rGe({root:["root"]},Lue(Kde)),Zde={},efe=f.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:g}=t,_=Se(t,Gde),x=f.useRef(null),b=Zt(x,r),y=f.useRef(null),E=Zt(y,p),v=f.useRef(E);ha(()=>{v.current=E},[E]),f.useImperativeHandle(p,()=>y.current,[]);const S=Xde(c,i),[w,O]=f.useState(S),[C,P]=f.useState(fx(a));f.useEffect(()=>{y.current&&y.current.forceUpdate()}),f.useEffect(()=>{a&&P(fx(a))},[a]),ha(()=>{if(!C||!l)return;const I=T=>{O(T.placement)};let U=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:T})=>{I(T)}}];u!=null&&(U=U.concat(u)),d&&d.modifiers!=null&&(U=U.concat(d.modifiers));const W=qde(C,x.current,k({placement:S},d,{modifiers:U}));return v.current(W),()=>{W.destroy(),v.current(null)}},[C,s,u,l,d,S]);const $={placement:w};g!==null&&($.TransitionProps=g);const R=Jde(),A=(n=m.root)!=null?n:"div",M=Wi({elementType:A,externalSlotProps:h.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:R.root});return L.jsx(A,k({},M,{children:typeof o=="function"?o($):o}))}),tfe=f.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=Zde,popperRef:h,style:m,transition:g=!1,slotProps:_={},slots:x={}}=t,b=Se(t,Qde),[y,E]=f.useState(!0),v=()=>{E(!1)},S=()=>{E(!0)};if(!u&&!c&&(!g||y))return null;let w;if(o)w=o;else if(n){const P=fx(n);w=P&&Yde(P)?jr(P).body:jr(null).body}const O=!c&&u&&(!g||y)?"none":void 0,C=g?{in:c,onEnter:v,onExited:S}:void 0;return L.jsx(m5,{disablePortal:s,container:w,children:L.jsx(efe,k({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:g?!y:c,placement:d,popperOptions:p,popperRef:h,slotProps:_,slots:x},b,{style:k({position:"fixed",top:0,left:0,display:O},m),TransitionProps:C,children:a}))})});function rfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ts();f.useEffect(()=>{if(!a)return;function x(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(n==null||n(b,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=ua((x,b)=>{n==null||n(x,b)}),u=ua(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});f.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,d=f.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>b=>{const y=x.onBlur;y==null||y(b),d()},h=x=>b=>{const y=x.onFocus;y==null||y(b),c()},m=x=>b=>{const y=x.onMouseEnter;y==null||y(b),c()},g=x=>b=>{const y=x.onMouseLeave;y==null||y(b),d()};return f.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[r,a,d,c]),{getRootProps:(x={})=>{const b=k({},qh(e),qh(x));return k({role:"presentation"},x,b,{onBlur:p(b),onFocus:h(b),onMouseEnter:m(b),onMouseLeave:g(b)})},onClickAway:l}}const nfe=["onChange","maxRows","minRows","style","value"];function Kp(e){return parseInt(e,10)||0}const afe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ofe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const ife=f.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Se(t,nfe),{current:l}=f.useRef(s!=null),c=f.useRef(null),d=Zt(r,c),p=f.useRef(null),h=f.useCallback(()=>{const _=c.current,b=vo(_).getComputedStyle(_);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=p.current;y.style.width=b.width,y.value=_.value||t.placeholder||"x",y.value.slice(-1)===` +`&&(y.value+=" ");const E=b.boxSizing,v=Kp(b.paddingBottom)+Kp(b.paddingTop),S=Kp(b.borderBottomWidth)+Kp(b.borderTopWidth),w=y.scrollHeight;y.value="x";const O=y.scrollHeight;let C=w;o&&(C=Math.max(Number(o)*O,C)),a&&(C=Math.min(Number(a)*O,C)),C=Math.max(C,O);const P=C+(E==="border-box"?v+S:0),$=Math.abs(C-w)<=1;return{outerHeightStyle:P,overflowing:$}},[a,o,t.placeholder]),m=f.useCallback(()=>{const _=h();if(ofe(_))return;const x=c.current;x.style.height=`${_.outerHeightStyle}px`,x.style.overflow=_.overflowing?"hidden":""},[h]);ha(()=>{const _=()=>{m()};let x;const b=ry(_),y=c.current,E=vo(y);E.addEventListener("resize",b);let v;return typeof ResizeObserver<"u"&&(v=new ResizeObserver(_),v.observe(y)),()=>{b.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",b),v&&v.disconnect()}},[h,m]),ha(()=>{m()});const g=_=>{l||m(),n&&n(_)};return L.jsxs(f.Fragment,{children:[L.jsx("textarea",k({value:s,onChange:g,ref:d,rows:o,style:i},u)),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:k({},afe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var PS={};Object.defineProperty(PS,"__esModule",{value:!0});var P5=PS.default=void 0,sfe=ufe(f),lfe=s5;function $5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return($5=function(n){return n?r:t})(e)}function ufe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=$5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function cfe(e){return Object.keys(e).length===0}function dfe(e=null){const t=sfe.useContext(lfe.ThemeContext);return!t||cfe(t)?e:t}P5=PS.default=dfe;const ffe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],pfe=te(tfe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k5=f.forwardRef(function(t,r){var n;const a=P5(),o=Qe({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:b,slots:y,slotProps:E}=o,v=Se(o,ffe),S=(n=y==null?void 0:y.root)!=null?n:u==null?void 0:u.Root,w=k({anchorEl:i,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:b},v);return L.jsx(pfe,k({as:s,direction:a==null?void 0:a.direction,slots:{root:S},slotProps:E??l},w,{ref:r}))}),vfe=Ln(L.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 hfe(e){return Ke("MuiChip",e)}const Et=qe("MuiChip",["root","sizeSmall","sizeMedium","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"]),mfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ce(n)}`,`color${ce(a)}`,s&&"clickable",s&&`clickableColor${ce(a)}`,i&&"deletable",i&&`deletableColor${ce(a)}`,`${u}${ce(a)}`],label:["label",`label${ce(n)}`],avatar:["avatar",`avatar${ce(n)}`,`avatarColor${ce(a)}`],icon:["icon",`icon${ce(n)}`,`iconColor${ce(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(n)}`,`deleteIconColor${ce(a)}`,`deleteIcon${ce(u)}Color${ce(a)}`]};return Ge(l,hfe,t)},yfe=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ce(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ce(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ce(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ce(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ce(u)}Color${ce(n)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ce(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ce(n)}`],t[u],t[`${u}${ce(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({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",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(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)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{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}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{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]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),bfe=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ce(n)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Ok(e){return e.key==="Backspace"||e.key==="Delete"}const R5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:_,size:x="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:E=!1}=n,v=Se(n,mfe),S=f.useRef(null),w=Zt(S,r),O=V=>{V.stopPropagation(),m&&m(V)},C=V=>{V.currentTarget===V.target&&Ok(V)&&V.preventDefault(),g&&g(V)},P=V=>{V.currentTarget===V.target&&(m&&Ok(V)?m(V):V.key==="Escape"&&S.current&&S.current.blur()),_&&_(V)},$=i!==!1&&h?!0:i,R=$||m?Go:u||"div",A=k({},n,{component:R,disabled:c,size:x,color:s,iconColor:f.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:$,variant:b}),M=gfe(A),I=R===Go?k({component:u||"div",focusVisibleClassName:M.focusVisible},m&&{disableRipple:!0}):{};let U=null;m&&(U=l&&f.isValidElement(l)?f.cloneElement(l,{className:le(l.props.className,M.deleteIcon),onClick:O}):L.jsx(vfe,{className:le(M.deleteIcon),onClick:O}));let W=null;a&&f.isValidElement(a)&&(W=f.cloneElement(a,{className:le(M.avatar,a.props.className)}));let T=null;return d&&f.isValidElement(d)&&(T=f.cloneElement(d,{className:le(M.icon,d.props.className)})),L.jsxs(yfe,k({as:R,className:le(M.root,o),disabled:$&&c?!0:void 0,onClick:h,onKeyDown:C,onKeyUp:P,ref:w,tabIndex:E&&c?-1:y,ownerState:A},I,v,{children:[W||T,L.jsx(bfe,{className:le(M.label),ownerState:A,children:p}),U]}))});function Fc({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const yy=f.createContext(void 0);function ns(){return f.useContext(yy)}function xfe(e){return L.jsx(lse,k({},e,{defaultTheme:oy,themeId:sl}))}function Ck(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Gh(e,t=!1){return e&&(Ck(e.value)&&e.value!==""||t&&Ck(e.defaultValue)&&e.defaultValue!=="")}function wfe(e){return e.startAdornment}function _fe(e){return Ke("MuiInputBase",e)}const ic=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Efe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],by=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ce(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Sfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Ge(g,_fe,t)},wy=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:by})(({theme:e,ownerState:t})=>k({},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",[`&.${ic.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_y=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return k({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ic.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ic.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ofe=L.jsx(xfe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ey=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:g=!1,id:_,inputComponent:x="input",inputProps:b={},inputRef:y,maxRows:E,minRows:v,multiline:S=!1,name:w,onBlur:O,onChange:C,onClick:P,onFocus:$,onKeyDown:R,onKeyUp:A,placeholder:M,readOnly:I,renderSuffix:U,rows:W,slotProps:T={},slots:V={},startAdornment:X,type:ie="text",value:ae}=a,pe=Se(a,Efe),ye=b.value!=null?b.value:ae,{current:be}=f.useRef(ye!=null),_e=f.useRef(),ke=f.useCallback(ne=>{},[]),$e=Zt(_e,y,b.ref,ke),[Ee,ze]=f.useState(!1),je=ns(),De=Fc({props:a,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=je?je.focused:Ee,f.useEffect(()=>{!je&&p&&Ee&&(ze(!1),O&&O())},[je,p,Ee,O]);const Me=je&&je.onFilled,He=je&&je.onEmpty,et=f.useCallback(ne=>{Gh(ne)?Me&&Me():He&&He()},[Me,He]);ha(()=>{be&&et({value:ye})},[ye,et,be]);const ft=ne=>{if(De.disabled){ne.stopPropagation();return}$&&$(ne),b.onFocus&&b.onFocus(ne),je&&je.onFocus?je.onFocus(ne):ze(!0)},gt=ne=>{O&&O(ne),b.onBlur&&b.onBlur(ne),je&&je.onBlur?je.onBlur(ne):ze(!1)},z=(ne,...se)=>{if(!be){const Ae=ne.target||_e.current;if(Ae==null)throw new Error(Ko(1));et({value:Ae.value})}b.onChange&&b.onChange(ne,...se),C&&C(ne,...se)};f.useEffect(()=>{et(_e.current)},[]);const Q=ne=>{_e.current&&ne.currentTarget===ne.target&&_e.current.focus(),P&&P(ne)};let Z=x,oe=b;S&&Z==="input"&&(W?oe=k({type:void 0,minRows:W,maxRows:W},oe):oe=k({type:void 0,maxRows:E,minRows:v},oe),Z=ife);const he=ne=>{et(ne.animationName==="mui-auto-fill-cancel"?_e.current:{value:"x"})};f.useEffect(()=>{je&&je.setAdornedStart(!!X)},[je,X]);const de=k({},a,{color:De.color||"primary",disabled:De.disabled,endAdornment:m,error:De.error,focused:De.focused,formControl:je,fullWidth:g,hiddenLabel:De.hiddenLabel,multiline:S,size:De.size,startAdornment:X,type:ie}),ge=Sfe(de),Y=V.root||l.Root||wy,H=T.root||c.root||{},K=V.input||l.Input||_y;return oe=k({},oe,(n=T.input)!=null?n:c.input),L.jsxs(f.Fragment,{children:[!h&&Ofe,L.jsxs(Y,k({},H,!Pf(Y)&&{ownerState:k({},de,H.ownerState)},{ref:r,onClick:Q},pe,{className:le(ge.root,H.className,u,I&&"MuiInputBase-readOnly"),children:[X,L.jsx(yy.Provider,{value:null,children:L.jsx(K,k({ownerState:de,"aria-invalid":De.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:De.disabled,id:_,onAnimationStart:he,name:w,placeholder:M,readOnly:I,required:De.required,rows:W,value:ye,onKeyDown:R,onKeyUp:A,type:ie},oe,!Pf(K)&&{as:Z,ownerState:k({},de,oe.ownerState)},{ref:$e,className:le(ge.input,oe.className,I&&"MuiInputBase-readOnly"),onBlur:gt,onChange:z,onFocus:ft}))}),m,U?U(k({},De,{startAdornment:X})):null]}))]})});function Cfe(e){return Ke("MuiInput",e)}const od=k({},ic,qe("MuiInput",["root","underline","input"]));function Pfe(e){return Ke("MuiOutlinedInput",e)}const si=k({},ic,qe("MuiOutlinedInput",["root","notchedOutline","input"]));function $fe(e){return Ke("MuiFilledInput",e)}const ls=k({},ic,qe("MuiFilledInput",["root","underline","input"])),kfe=Ln(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Rfe=Ln(L.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 Tfe(e){return Ke("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const jfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Ife=Eue(),Afe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ge({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Tfe,t)},Mfe=te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({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:k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:k({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Ffe=te("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Lfe=te(Rfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Nfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=f.useState(!1);return f.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const px=f.forwardRef(function(t,r){const n=Ife({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:d,src:p,srcSet:h,variant:m="circular"}=n,g=Se(n,jfe);let _=null;const x=Nfe(k({},c,{src:p,srcSet:h})),b=p||h,y=b&&x!=="error",E=k({},n,{colorDefault:!y,component:s,variant:m}),v=Afe(E),[S,w]=Uue("img",{className:v.img,elementType:Ffe,externalForwardedProps:{slots:u,slotProps:{img:k({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:h,sizes:d},ownerState:E});return y?_=L.jsx(S,k({},w)):o||o===0?_=o:b&&a?_=a[0]:_=L.jsx(Lfe,{ownerState:E,className:v.fallback}),L.jsx(Mfe,k({as:s,ownerState:E,className:le(v.root,i),ref:r},g,{children:_}))}),Dfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bfe={entering:{opacity:1},entered:{opacity:1}},T5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:_,timeout:x=a,TransitionComponent:b=Ua}=t,y=Se(t,Dfe),E=f.useRef(null),v=Zt(E,s.ref,r),S=M=>I=>{if(M){const U=E.current;I===void 0?M(U):M(U,I)}},w=S(p),O=S((M,I)=>{bS(M);const U=tc({style:_,timeout:x,easing:u},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",U),M.style.transition=n.transitions.create("opacity",U),c&&c(M,I)}),C=S(d),P=S(g),$=S(M=>{const I=tc({style:_,timeout:x,easing:u},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",I),M.style.transition=n.transitions.create("opacity",I),h&&h(M)}),R=S(m),A=M=>{o&&o(E.current,M)};return L.jsx(b,k({appear:i,in:l,nodeRef:E,onEnter:O,onEntered:C,onEntering:w,onExit:$,onExited:R,onExiting:P,addEndListener:A,timeout:x},y,{children:(M,I)=>f.cloneElement(s,k({style:k({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},Bfe[M],_,s.props.style),ref:v},I))}))});function zfe(e){return Ke("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Ufe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vfe=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},zfe,t)},Wfe=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>k({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"},e.invisible&&{backgroundColor:"transparent"})),j5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:g={},TransitionComponent:_=T5,transitionDuration:x}=i,b=Se(i,Ufe),y=k({},i,{component:l,invisible:p}),E=Vfe(y),v=(n=m.root)!=null?n:d.root;return L.jsx(_,k({in:h,timeout:x},b,{children:L.jsx(Wfe,k({"aria-hidden":!0},v,{as:(a=(o=g.root)!=null?o:c.Root)!=null?a:l,className:le(E.root,u,v==null?void 0:v.className),ownerState:k({},y,v==null?void 0:v.ownerState),classes:E,ref:r,children:s}))}))}),Hfe=qe("MuiBox",["root"]),qfe=Wh(),I5=vse({themeId:sl,defaultTheme:qfe,defaultClassName:Hfe.root,generateClassName:oS.generate});function Kfe(e){return Ke("MuiButton",e)}const Gp=qe("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"]),Gfe=f.createContext({}),Qfe=f.createContext(void 0),Xfe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Yfe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ce(t)}`,`size${ce(a)}`,`${o}Size${ce(a)}`,`color${ce(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(a)}`],endIcon:["icon","endIcon",`iconSize${ce(a)}`]},u=Ge(s,Kfe,i);return k({},i,u)},A5=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Jfe=te(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ce(r.color)}`],t[`size${ce(r.size)}`],t[`${r.variant}Size${ce(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Gp.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Gp.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gp.disabled}`]:{boxShadow:"none"}}),Zfe=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},A5(e))),epe=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},A5(e))),An=f.forwardRef(function(t,r){const n=f.useContext(Gfe),a=f.useContext(Qfe),o=lS(n,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:_=!1,size:x="medium",startIcon:b,type:y,variant:E="text"}=i,v=Se(i,Xfe),S=k({},i,{color:u,component:l,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:_,size:x,type:y,variant:E}),w=Yfe(S),O=b&&L.jsx(Zfe,{className:w.startIcon,ownerState:S,children:b}),C=m&&L.jsx(epe,{className:w.endIcon,ownerState:S,children:m}),P=a||"";return L.jsxs(Jfe,k({ownerState:S,className:le(n.className,w.root,c,P),component:l,disabled:d,focusRipple:!h,focusVisibleClassName:le(w.focusVisible,g),ref:r,type:y},v,{classes:w,children:[O,s,C]}))});function tpe(e){return Ke("MuiCard",e)}qe("MuiCard",["root"]);const rpe=["className","raised"],npe=e=>{const{classes:t}=e;return Ge({root:["root"]},tpe,t)},ape=te(ts,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),cp=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Se(n,rpe),s=k({},n,{raised:o}),u=npe(s);return L.jsx(ape,k({className:le(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))});function ope(e){return Ke("MuiCardContent",e)}qe("MuiCardContent",["root"]);const ipe=["className","component"],spe=e=>{const{classes:t}=e;return Ge({root:["root"]},ope,t)},lpe=te("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Sy=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Se(n,ipe),s=k({},n,{component:o}),u=spe(s);return L.jsx(lpe,k({as:o,className:le(u.root,a),ownerState:s,ref:r},i))});function upe(e){return Ke("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],dpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ce(a)}`],input:["input"]};return Ge(o,upe,t)},fpe=te(Go)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ppe=te("input",{shouldForwardProp:Kr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vpe=f.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:g,onBlur:_,onChange:x,onFocus:b,readOnly:y,required:E=!1,tabIndex:v,type:S,value:w}=t,O=Se(t,cpe),[C,P]=ec({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),$=ns(),R=V=>{b&&b(V),$&&$.onFocus&&$.onFocus(V)},A=V=>{_&&_(V),$&&$.onBlur&&$.onBlur(V)},M=V=>{if(V.nativeEvent.defaultPrevented)return;const X=V.target.checked;P(X),x&&x(V,X)};let I=u;$&&typeof I>"u"&&(I=$.disabled);const U=S==="checkbox"||S==="radio",W=k({},t,{checked:C,disabled:I,disableFocusRipple:l,edge:c}),T=dpe(W);return L.jsxs(fpe,k({component:"span",className:le(T.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:R,onBlur:A,ownerState:W,ref:r},O,{children:[L.jsx(ppe,k({autoFocus:n,checked:a,defaultChecked:s,className:T.input,disabled:I,id:U?p:void 0,name:g,onChange:M,readOnly:y,ref:m,required:E,ownerState:W,tabIndex:v,type:S},S==="checkbox"&&w===void 0?{}:{value:w},h)),C?o:d]}))}),hpe=Ln(L.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"),mpe=Ln(L.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"),gpe=Ln(L.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 ype(e){return Ke("MuiCheckbox",e)}const U0=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xpe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ce(n)}`,`size${ce(a)}`]},i=Ge(o,ype,t);return k({},t,i)},wpe=te(vpe,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ce(r.size)}`],r.color!=="default"&&t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${U0.checked}, &.${U0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${U0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_pe=L.jsx(mpe,{}),Epe=L.jsx(hpe,{}),Spe=L.jsx(gpe,{}),Qh=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=_pe,color:s="primary",icon:u=Epe,indeterminate:l=!1,indeterminateIcon:c=Spe,inputProps:d,size:p="medium",className:h}=o,m=Se(o,bpe),g=l?c:u,_=l?c:i,x=k({},o,{color:s,indeterminate:l,size:p}),b=xpe(x);return L.jsx(wpe,k({type:"checkbox",inputProps:k({"data-indeterminate":l},d),icon:f.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:p}),checkedIcon:f.cloneElement(_,{fontSize:(a=_.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:le(b.root,h)},m,{classes:b}))});function Ope(e){return Ke("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Cpe=["className","color","disableShrink","size","style","thickness","value","variant"];let Oy=e=>e,Pk,$k,kk,Rk;const li=44,Ppe=ri(Pk||(Pk=Oy` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),$pe=ri($k||($k=Oy` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),kpe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ce(n)}`],svg:["svg"],circle:["circle",`circle${ce(r)}`,a&&"circleDisableShrink"]};return Ge(o,Ope,t)},Rpe=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ce(r.color)}`]]}})(({ownerState:e,theme:t})=>k({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&hl(kk||(kk=Oy` + animation: ${0} 1.4s linear infinite; + `),Ppe)),Tpe=te("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),jpe=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ce(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>k({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&hl(Rk||(Rk=Oy` + animation: ${0} 1.4s ease-in-out infinite; + `),$pe)),Cy=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,p=Se(n,Cpe),h=k({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:d}),m=kpe(h),g={},_={},x={};if(d==="determinate"){const b=2*Math.PI*((li-l)/2);g.strokeDasharray=b.toFixed(3),x["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*b).toFixed(3)}px`,_.transform="rotate(-90deg)"}return L.jsx(Rpe,k({className:le(m.root,a),style:k({width:s,height:s},_,u),ownerState:h,ref:r,role:"progressbar"},x,p,{children:L.jsx(Tpe,{className:m.svg,ownerState:h,viewBox:`${li/2} ${li/2} ${li} ${li}`,children:L.jsx(jpe,{className:m.circle,style:g,ownerState:h,cx:li,cy:li,r:(li-l)/2,fill:"none",strokeWidth:l})})}))}),Ipe=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Ape=e=>k({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}});function Mpe(e){return Ke("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Fpe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Lpe=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Mpe,n)},Npe=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Dpe=te(j5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$S=f.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Qe({name:"MuiModal",props:t}),{BackdropComponent:c=Dpe,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:g,component:_,components:x={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:P=!1,onBackdropClick:$,open:R,slotProps:A,slots:M}=l,I=Se(l,Fpe),U=k({},l,{closeAfterTransition:h,disableAutoFocus:y,disableEnforceFocus:E,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:w,disableScrollLock:O,hideBackdrop:C,keepMounted:P}),{getRootProps:W,getBackdropProps:T,getTransitionProps:V,portalRef:X,isTopModal:ie,exited:ae,hasTransition:pe}=Bce(k({},U,{rootRef:r})),ye=k({},U,{exited:ae}),be=Lpe(ye),_e={};if(m.props.tabIndex===void 0&&(_e.tabIndex="-1"),pe){const{onEnter:Me,onExited:He}=V();_e.onEnter=Me,_e.onExited=He}const ke=(n=(a=M==null?void 0:M.root)!=null?a:x.Root)!=null?n:Npe,$e=(o=(i=M==null?void 0:M.backdrop)!=null?i:x.Backdrop)!=null?o:c,Ee=(s=A==null?void 0:A.root)!=null?s:b.root,ze=(u=A==null?void 0:A.backdrop)!=null?u:b.backdrop,je=Wi({elementType:ke,externalSlotProps:Ee,externalForwardedProps:I,getSlotProps:W,additionalProps:{ref:r,as:_},ownerState:ye,className:le(p,Ee==null?void 0:Ee.className,be==null?void 0:be.root,!ye.open&&ye.exited&&(be==null?void 0:be.hidden))}),De=Wi({elementType:$e,externalSlotProps:ze,additionalProps:d,getSlotProps:Me=>T(k({},Me,{onClick:He=>{$&&$(He),Me!=null&&Me.onClick&&Me.onClick(He)}})),className:le(ze==null?void 0:ze.className,d==null?void 0:d.className,be==null?void 0:be.backdrop),ownerState:ye});return!P&&!R&&(!pe||ae)?null:L.jsx(m5,{ref:X,container:g,disablePortal:S,children:L.jsxs(ke,k({},je,{children:[!C&&c?L.jsx($e,k({},De)):null,L.jsx(Rce,{disableEnforceFocus:E,disableAutoFocus:y,disableRestoreFocus:w,isEnabled:ie,open:R,children:f.cloneElement(m,_e)})]}))})});function Bpe(e){return Ke("MuiDialog",e)}const V0=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),M5=f.createContext({}),zpe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Upe=te(j5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Vpe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ce(r)}`],paper:["paper",`paperScroll${ce(r)}`,`paperWidth${ce(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return Ge(i,Bpe,t)},Wpe=te($S,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Hpe=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ce(r.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),qpe=te(ts,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ce(r.scroll)}`],t[`paperWidth${ce(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${V0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${V0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${V0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),kS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialog"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:_,onClick:x,onClose:b,open:y,PaperComponent:E=ts,PaperProps:v={},scroll:S="paper",TransitionComponent:w=T5,transitionDuration:O=o,TransitionProps:C}=n,P=Se(n,zpe),$=k({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:g,scroll:S}),R=Vpe($),A=f.useRef(),M=T=>{A.current=T.target===T.currentTarget},I=T=>{x&&x(T),A.current&&(A.current=null,_&&_(T),b&&b(T,"backdropClick"))},U=ul(s),W=f.useMemo(()=>({titleId:U}),[U]);return L.jsx(Wpe,k({className:le(R.root,d),closeAfterTransition:!0,components:{Backdrop:Upe},componentsProps:{backdrop:k({transitionDuration:O,as:u},l)},disableEscapeKeyDown:p,onClose:b,open:y,ref:r,onClick:I,ownerState:$},P,{children:L.jsx(w,k({appear:!0,in:y,timeout:O,role:"presentation"},C,{children:L.jsx(Hpe,{className:le(R.container),onMouseDown:M,ownerState:$,children:L.jsx(qpe,k({as:E,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":U},v,{className:le(R.paper,v.className),ownerState:$,children:L.jsx(M5.Provider,{value:W,children:c})}))})}))}))});function Kpe(e){return Ke("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const Gpe=["className","disableSpacing"],Qpe=e=>{const{classes:t,disableSpacing:r}=e;return Ge({root:["root",!r&&"spacing"]},Kpe,t)},Xpe=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),RS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Se(n,Gpe),s=k({},n,{disableSpacing:o}),u=Qpe(s);return L.jsx(Xpe,k({className:le(u.root,a),ownerState:s,ref:r},i))});function Ype(e){return Ke("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function Jpe(e){return Ke("MuiDialogTitle",e)}const Zpe=qe("MuiDialogTitle",["root"]),eve=["className","dividers"],tve=e=>{const{classes:t,dividers:r}=e;return Ge({root:["root",r&&"dividers"]},Ype,t)},rve=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Zpe.root} + &`]:{paddingTop:0}})),TS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Se(n,eve),s=k({},n,{dividers:o}),u=tve(s);return L.jsx(rve,k({className:le(u.root,a),ownerState:s,ref:r},i))});function nve(e){return Ke("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const ave=["children","className"],ove=e=>{const{classes:t}=e,n=Ge({root:["root"]},nve,t);return k({},t,n)},ive=te(xr,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Se(n,ave),i=ove(o);return L.jsx(ive,k({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:le(i.root,a)},n,{classes:i}))}),sve=["className","id"],lve=e=>{const{classes:t}=e;return Ge({root:["root"]},Jpe,t)},uve=te(xr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),jS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Se(n,sve),s=n,u=lve(s),{titleId:l=o}=f.useContext(M5);return L.jsx(uve,k({component:"h2",className:le(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),Tk=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),cve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=vo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function fve(e){return typeof e=="function"?e():e}function Qp(e,t,r){const n=fve(r),a=dve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const L5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:d=a,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:_,onExited:x,onExiting:b,style:y,timeout:E=o,TransitionComponent:v=Ua}=t,S=Se(t,cve),w=f.useRef(null),O=Zt(u.ref,w,r),C=T=>V=>{T&&(V===void 0?T(w.current):T(w.current,V))},P=C((T,V)=>{Qp(c,T,l),bS(T),h&&h(T,V)}),$=C((T,V)=>{const X=tc({timeout:E,style:y,easing:d},{mode:"enter"});T.style.webkitTransition=n.transitions.create("-webkit-transform",k({},X)),T.style.transition=n.transitions.create("transform",k({},X)),T.style.webkitTransform="none",T.style.transform="none",g&&g(T,V)}),R=C(m),A=C(b),M=C(T=>{const V=tc({timeout:E,style:y,easing:d},{mode:"exit"});T.style.webkitTransition=n.transitions.create("-webkit-transform",V),T.style.transition=n.transitions.create("transform",V),Qp(c,T,l),_&&_(T)}),I=C(T=>{T.style.webkitTransition="",T.style.transition="",x&&x(T)}),U=T=>{i&&i(w.current,T)},W=f.useCallback(()=>{w.current&&Qp(c,w.current,l)},[c,l]);return f.useEffect(()=>{if(p||c==="down"||c==="right")return;const T=ry(()=>{w.current&&Qp(c,w.current,l)}),V=vo(w.current);return V.addEventListener("resize",T),()=>{T.clear(),V.removeEventListener("resize",T)}},[c,p,l]),f.useEffect(()=>{p||W()},[p,W]),L.jsx(v,k({nodeRef:w,onEnter:P,onEntered:R,onEntering:$,onExit:M,onExited:I,onExiting:A,addEndListener:U,appear:s,in:p,timeout:E},S,{children:(T,V)=>f.cloneElement(u,k({ref:O,style:k({visibility:T==="exited"&&!p?"hidden":void 0},y,u.props.style)},V))}))});function pve(e){return Ke("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const vve=["BackdropProps"],hve=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],N5=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(r)}`,n!=="temporary"&&`paperAnchorDocked${ce(r)}`]};return Ge(a,pve,t)},gve=te($S,{name:"MuiDrawer",slot:"Root",overridesResolver:N5})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),jk=te("div",{shouldForwardProp:Kr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:N5})({flex:"0 0 auto"}),yve=te(ts,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ce(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ce(r.anchor)}`]]}})(({theme:e,ownerState:t})=>k({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),D5={left:"right",right:"left",top:"down",bottom:"up"};function bve(e){return["left","right"].indexOf(e)!==-1}function xve({direction:e},t){return e==="rtl"&&bve(t)?D5[t]:t}const wve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDrawer"}),a=ni(),o=Ic(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:g=!1,PaperProps:_={},SlideProps:x,TransitionComponent:b=L5,transitionDuration:y=i,variant:E="temporary"}=n,v=Se(n.ModalProps,vve),S=Se(n,hve),w=f.useRef(!1);f.useEffect(()=>{w.current=!0},[]);const O=xve({direction:o?"rtl":"ltr"},s),P=k({},n,{anchor:s,elevation:d,open:g,variant:E},S),$=mve(P),R=L.jsx(yve,k({elevation:E==="temporary"?d:0,square:!0},_,{className:le($.paper,_.className),ownerState:P,children:l}));if(E==="permanent")return L.jsx(jk,k({className:le($.root,$.docked,c),ownerState:P,ref:r},S,{children:R}));const A=L.jsx(b,k({in:g,direction:D5[O],timeout:y,appear:w.current},x,{children:R}));return E==="persistent"?L.jsx(jk,k({className:le($.root,$.docked,c),ownerState:P,ref:r},S,{children:A})):L.jsx(gve,k({BackdropProps:k({},u,h,{transitionDuration:y}),className:le($.root,$.modal,c),open:g,ownerState:P,onClose:m,hideBackdrop:p,ref:r},S,v,{children:A}))});function _ve(e){return Ke("MuiFab",e)}const Ik=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Eve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Sve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ce(a)}`,t==="inherit"?"colorInherit":t]},i=Ge(o,_ve,n);return k({},n,i)},Ove=te(Go,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Kr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ce(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return k({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ik.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>k({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${Ik.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Cve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:d="large",variant:p="circular"}=n,h=Se(n,Eve),m=k({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:d,variant:p}),g=Sve(m);return L.jsx(Ove,k({className:le(g.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:le(g.focusVisible,c),ownerState:m,ref:r},h,{classes:g,children:a}))}),Pve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$ve=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},$fe,t);return k({},t,a)},kve=te(wy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...by(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${ls.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ls.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.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})`:a}`,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(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Rve=te(_y,{name:"MuiFilledInput",slot:"Input",overridesResolver:xy})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),IS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:g="text"}=s,_=Se(s,Pve),x=k({},s,{fullWidth:c,inputComponent:d,multiline:p,type:g}),b=$ve(s),y={root:{ownerState:x},input:{ownerState:x}},E=h??l?Hr(y,h??l):y,v=(n=(a=m.root)!=null?a:u.Root)!=null?n:kve,S=(o=(i=m.input)!=null?i:u.Input)!=null?o:Rve;return L.jsx(Ey,k({slots:{root:v,input:S},componentsProps:E,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:g},_,{classes:b}))});IS.muiName="Input";function Tve(e){return Ke("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ive=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ce(r)}`,n&&"fullWidth"]};return Ge(a,Tve,t)},Ave=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Mve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:_="outlined"}=n,x=Se(n,jve),b=k({},n,{color:i,component:s,disabled:u,error:l,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:g,variant:_}),y=Ive(b),[E,v]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{if(!Ov(M,["Input","Select"]))return;const I=Ov(M,["Select"])?M.props.input:M;I&&wfe(I.props)&&(A=!0)}),A}),[S,w]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{Ov(M,["Input","Select"])&&(Gh(M.props,!0)||Gh(M.props.inputProps,!0))&&(A=!0)}),A}),[O,C]=f.useState(!1);u&&O&&C(!1);const P=c!==void 0&&!u?c:O;let $;const R=f.useMemo(()=>({adornedStart:E,setAdornedStart:v,color:i,disabled:u,error:l,filled:S,focused:P,fullWidth:d,hiddenLabel:p,size:g,onBlur:()=>{C(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:m,variant:_}),[E,i,u,l,S,P,d,p,$,m,g,_]);return L.jsx(yy.Provider,{value:R,children:L.jsx(Ave,k({as:s,ownerState:b,className:le(y.root,o),ref:r},x,{children:a}))})}),Py=ule({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qe({props:e,name:"MuiStack"})});function Fve(e){return Ke("MuiFormHelperText",e)}const Ak=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Mk;const Lve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Nve=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ce(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return Ge(l,Fve,t)},Dve=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ce(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ak.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ak.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),B5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Se(n,Lve),u=ns(),l=Fc({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=k({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Nve(c);return L.jsx(Dve,k({as:i,ownerState:c,className:le(d.root,o),ref:r},s,{children:a===" "?Mk||(Mk=L.jsx("span",{className:"notranslate",children:"​"})):a}))});function Bve(e){return Ke("MuiFormLabel",e)}const Ud=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zve=["children","className","color","component","disabled","error","filled","focused","required"],Uve=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ce(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ge(u,Bve,t)},Vve=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ud.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}})),Wve=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}})),Hve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Se(n,zve),u=ns(),l=Fc({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=k({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Uve(c);return L.jsxs(Vve,k({as:i,ownerState:c,className:le(d.root,o),ref:r},s,{children:[a,l.required&&L.jsxs(Wve,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),qve=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vx(e){return`scale(${e}, ${e**2})`}const Kve={entering:{opacity:1,transform:vx(1)},entered:{opacity:1,transform:"none"}},W0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rf=f.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:_=Ua}=t,x=Se(t,qve),b=Ts(),y=f.useRef(),E=ni(),v=f.useRef(null),S=Zt(v,o.ref,r),w=I=>U=>{if(I){const W=v.current;U===void 0?I(W):I(W,U)}},O=w(c),C=w((I,U)=>{bS(I);const{duration:W,delay:T,easing:V}=tc({style:m,timeout:g,easing:i},{mode:"enter"});let X;g==="auto"?(X=E.transitions.getAutoHeightDuration(I.clientHeight),y.current=X):X=W,I.style.transition=[E.transitions.create("opacity",{duration:X,delay:T}),E.transitions.create("transform",{duration:W0?X:X*.666,delay:T,easing:V})].join(","),u&&u(I,U)}),P=w(l),$=w(h),R=w(I=>{const{duration:U,delay:W,easing:T}=tc({style:m,timeout:g,easing:i},{mode:"exit"});let V;g==="auto"?(V=E.transitions.getAutoHeightDuration(I.clientHeight),y.current=V):V=U,I.style.transition=[E.transitions.create("opacity",{duration:V,delay:W}),E.transitions.create("transform",{duration:W0?V:V*.666,delay:W0?W:W||V*.333,easing:T})].join(","),I.style.opacity=0,I.style.transform=vx(.75),d&&d(I)}),A=w(p),M=I=>{g==="auto"&&b.start(y.current||0,I),n&&n(v.current,I)};return L.jsx(_,k({appear:a,in:s,nodeRef:v,onEnter:C,onEntered:P,onEntering:O,onExit:R,onExited:A,onExiting:$,addEndListener:M,timeout:g==="auto"?null:g},x,{children:(I,U)=>f.cloneElement(o,k({style:k({opacity:0,transform:vx(.75),visibility:I==="exited"&&!s?"hidden":void 0},Kve[I],m,o.props.style),ref:S},U))}))});Rf.muiSupportAuto=!0;const Gve=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Qve=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},Cfe,t);return k({},t,a)},Xve=te(wy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...by(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${od.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${od.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(.${od.disabled}, .${od.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${od.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Yve=te(_y,{name:"MuiInput",slot:"Input",overridesResolver:xy})({}),AS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:g={},type:_="text"}=s,x=Se(s,Gve),b=Qve(s),E={root:{ownerState:{disableUnderline:u}}},v=m??c?Hr(m??c,E):E,S=(n=(a=g.root)!=null?a:l.Root)!=null?n:Xve,w=(o=(i=g.input)!=null?i:l.Input)!=null?o:Yve;return L.jsx(Ey,k({slots:{root:S,input:w},slotProps:v,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:_},x,{classes:b}))});AS.muiName="Input";function Jve(e){return Ke("MuiInputAdornment",e)}const Fk=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lk;const Zve=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ehe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},the=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ce(a)}`,i,n&&"hiddenLabel",o&&`size${ce(o)}`]};return Ge(s,Jve,t)},rhe=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ehe})(({theme:e,ownerState:t})=>k({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Fk.positionStart}&:not(.${Fk.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),H0=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,d=Se(n,Zve),p=ns()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=k({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:h}),g=the(m);return L.jsx(yy.Provider,{value:null,children:L.jsx(rhe,k({as:i,ownerState:m,className:le(g.root,o),ref:r},d,{children:typeof a=="string"&&!u?L.jsx(xr,{color:"text.secondary",children:a}):L.jsxs(f.Fragment,{children:[l==="start"?Lk||(Lk=L.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function nhe(e){return Ke("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ahe=["disableAnimation","margin","shrink","variant","className"],ohe=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ce(n)}`,i],asterisk:[s&&"asterisk"]},l=Ge(u,nhe,t);return k({},t,l)},ihe=te(Hve,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ud.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),she=f.forwardRef(function(t,r){const n=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Se(n,ahe),u=ns();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Fc({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d=k({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=ohe(d);return L.jsx(ihe,k({"data-shrink":l,ownerState:d,ref:r,className:le(p.root,i)},s,{classes:p}))});function lhe(e){return Ke("MuiLinearProgress",e)}qe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const uhe=["className","color","value","valueBuffer","variant"];let Lc=e=>e,Nk,Dk,Bk,zk,Uk,Vk;const hx=4,che=ri(Nk||(Nk=Lc` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),dhe=ri(Dk||(Dk=Lc` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),fhe=ri(Bk||(Bk=Lc` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),phe=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${ce(n)}`,r],dashed:["dashed",`dashedColor${ce(n)}`],bar1:["bar",`barColor${ce(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${ce(n)}`,r==="buffer"&&`color${ce(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ge(a,lhe,t)},MS=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?dS(e.palette[t].main,.62):cS(e.palette[t].main,.5),vhe=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ce(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>k({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:MS(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),hhe=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${ce(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=MS(t,e.color);return k({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},hl(zk||(zk=Lc` + animation: ${0} 3s infinite linear; + `),fhe)),mhe=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ce(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>k({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${hx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${hx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&hl(Uk||(Uk=Lc` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),che)),ghe=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ce(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>k({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:MS(t,e.color),transition:`transform .${hx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&hl(Vk||(Vk=Lc` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),dhe)),yhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=Se(n,uhe),c=k({},n,{color:o,variant:u}),d=phe(c),p=Ic(),h={},m={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let g=i-100;p&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(u==="buffer"&&s!==void 0){let g=(s||0)-100;p&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return L.jsxs(vhe,k({className:le(d.root,a),ownerState:c,role:"progressbar"},h,{ref:r},l,{children:[u==="buffer"?L.jsx(hhe,{className:d.dashed,ownerState:c}):null,L.jsx(mhe,{className:d.bar1,ownerState:c,style:m.bar1}),u==="determinate"?null:L.jsx(ghe,{className:d.bar2,ownerState:c,style:m.bar2})]}))});function bhe(e){return Ke("MuiLink",e)}const xhe=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),z5={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},whe=e=>z5[e]||e,_he=({theme:e,ownerState:t})=>{const r=whe(t.color),n=Zu(e,`palette.${r}`,!1)||t.color,a=Zu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:mt(n,.4)},Ehe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],She=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ce(a)}`,r==="button"&&"button",n&&"focusVisible"]};return Ge(o,bhe,t)},Ohe=te(xr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ce(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_he({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${xhe.focusVisible}`]:{outline:"auto"}})),Che=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:d="inherit",sx:p}=n,h=Se(n,Ehe),{isFocusVisibleRef:m,onBlur:g,onFocus:_,ref:x}=ay(),[b,y]=f.useState(!1),E=Zt(r,x),v=C=>{g(C),m.current===!1&&y(!1),s&&s(C)},S=C=>{_(C),m.current===!0&&y(!0),u&&u(C)},w=k({},n,{color:o,component:i,focusVisible:b,underline:c,variant:d}),O=She(w);return L.jsx(Ohe,k({color:o,className:le(O.root,a),classes:l,component:i,onBlur:v,onFocus:S,ref:E,ownerState:w,variant:d,sx:[...Object.keys(z5).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))}),Tf=f.createContext({});function Phe(e){return Ke("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const $he=["children","className","component","dense","disablePadding","subheader"],khe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return Ge({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},Phe,t)},Rhe=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),The=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Se(n,$he),d=f.useMemo(()=>({dense:s}),[s]),p=k({},n,{component:i,dense:s,disablePadding:u}),h=khe(p);return L.jsx(Tf.Provider,{value:d,children:L.jsxs(Rhe,k({as:i,className:le(h.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})});function jhe(e){return Ke("MuiListItemIcon",e)}const Wk=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),Ihe=["className"],Ahe=e=>{const{alignItems:t,classes:r}=e;return Ge({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},jhe,r)},Mhe=te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),U5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Se(n,Ihe),i=f.useContext(Tf),s=k({},n,{alignItems:i.alignItems}),u=Ahe(s);return L.jsx(Mhe,k({className:le(u.root,a),ownerState:s,ref:r},o))});function Fhe(e){return Ke("MuiListItemText",e)}const Xh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Lhe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Nhe=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return Ge({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Fhe,t)},Dhe=te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xh.primary}`]:t.primary},{[`& .${Xh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Bhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d}=n,p=Se(n,Lhe),{dense:h}=f.useContext(Tf);let m=u??a,g=c;const _=k({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!g,dense:h}),x=Nhe(_);return m!=null&&m.type!==xr&&!i&&(m=L.jsx(xr,k({variant:h?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:m}))),g!=null&&g.type!==xr&&!i&&(g=L.jsx(xr,k({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},d,{children:g}))),L.jsxs(Dhe,k({className:le(x.root,o),ownerState:_,ref:r},p,{children:[m,g]}))}),zhe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function q0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Hk(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function V5(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function id(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!V5(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const W5=f.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Se(t,zhe),h=f.useRef(null),m=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ha(()=>{a&&h.current.focus()},[a]),f.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(y,{direction:E})=>{const v=!h.current.style.width;if(y.clientHeight{const E=h.current,v=y.key,S=jr(E).activeElement;if(v==="ArrowDown")y.preventDefault(),id(E,S,l,u,q0);else if(v==="ArrowUp")y.preventDefault(),id(E,S,l,u,Hk);else if(v==="Home")y.preventDefault(),id(E,null,l,u,q0);else if(v==="End")y.preventDefault(),id(E,null,l,u,Hk);else if(v.length===1){const w=m.current,O=v.toLowerCase(),C=performance.now();w.keys.length>0&&(C-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&O!==w.keys[0]&&(w.repeating=!1)),w.lastTime=C,w.keys.push(O);const P=S&&!w.repeating&&V5(S,w);w.previousKeyMatched&&(P||id(E,S,!1,u,q0,w))?y.preventDefault():w.previousKeyMatched=!1}c&&c(y)},_=Zt(h,r);let x=-1;f.Children.forEach(i,(y,E)=>{if(!f.isValidElement(y)){x===E&&(x+=1,x>=i.length&&(x=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||x===-1)&&(x=E),x===E&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const b=f.Children.map(i,(y,E)=>{if(E===x){const v={};return o&&(v.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(v.tabIndex=0),f.cloneElement(y,v)}return y});return L.jsx(The,k({role:"menu",ref:_,className:s,onKeyDown:g,tabIndex:a?0:-1},p,{children:b}))});function Uhe(e){return Ke("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const Vhe=["onEntering"],Whe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Hhe=["slotProps"];function qk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Kk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Gk(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function K0(e){return typeof e=="function"?e():e}const qhe=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Uhe,t)},Khe=te($S,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),H5=te(ts,{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}),q5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:g=8,marginThreshold:_=16,open:x,PaperProps:b={},slots:y,slotProps:E,transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:S=Rf,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},disableScrollLock:C=!1}=i,P=Se(i.TransitionProps,Vhe),$=Se(i,Whe),R=(n=E==null?void 0:E.paper)!=null?n:b,A=f.useRef(),M=Zt(A,R.ref),I=k({},i,{anchorOrigin:l,anchorReference:d,elevation:g,marginThreshold:_,externalPaperSlotProps:R,transformOrigin:v,TransitionComponent:S,transitionDuration:w,TransitionProps:P}),U=qhe(I),W=f.useCallback(()=>{if(d==="anchorPosition")return c;const Me=K0(u),et=(Me&&Me.nodeType===1?Me:jr(A.current).body).getBoundingClientRect();return{top:et.top+qk(et,l.vertical),left:et.left+Kk(et,l.horizontal)}},[u,l.horizontal,l.vertical,c,d]),T=f.useCallback(Me=>({vertical:qk(Me,v.vertical),horizontal:Kk(Me,v.horizontal)}),[v.horizontal,v.vertical]),V=f.useCallback(Me=>{const He={width:Me.offsetWidth,height:Me.offsetHeight},et=T(He);if(d==="none")return{top:null,left:null,transformOrigin:Gk(et)};const ft=W();let gt=ft.top-et.vertical,z=ft.left-et.horizontal;const Q=gt+He.height,Z=z+He.width,oe=vo(K0(u)),he=oe.innerHeight-_,de=oe.innerWidth-_;if(_!==null&><_){const ge=gt-_;gt-=ge,et.vertical+=ge}else if(_!==null&&Q>he){const ge=Q-he;gt-=ge,et.vertical+=ge}if(_!==null&&z<_){const ge=z-_;z-=ge,et.horizontal+=ge}else if(Z>de){const ge=Z-de;z-=ge,et.horizontal+=ge}return{top:`${Math.round(gt)}px`,left:`${Math.round(z)}px`,transformOrigin:Gk(et)}},[u,d,W,T,_]),[X,ie]=f.useState(x),ae=f.useCallback(()=>{const Me=A.current;if(!Me)return;const He=V(Me);He.top!==null&&(Me.style.top=He.top),He.left!==null&&(Me.style.left=He.left),Me.style.transformOrigin=He.transformOrigin,ie(!0)},[V]);f.useEffect(()=>(C&&window.addEventListener("scroll",ae),()=>window.removeEventListener("scroll",ae)),[u,C,ae]);const pe=(Me,He)=>{O&&O(Me,He),ae()},ye=()=>{ie(!1)};f.useEffect(()=>{x&&ae()}),f.useImperativeHandle(s,()=>x?{updatePosition:()=>{ae()}}:null,[x,ae]),f.useEffect(()=>{if(!x)return;const Me=ry(()=>{ae()}),He=vo(u);return He.addEventListener("resize",Me),()=>{Me.clear(),He.removeEventListener("resize",Me)}},[u,x,ae]);let be=w;w==="auto"&&!S.muiSupportAuto&&(be=void 0);const _e=m||(u?jr(K0(u)).body:void 0),ke=(a=y==null?void 0:y.root)!=null?a:Khe,$e=(o=y==null?void 0:y.paper)!=null?o:H5,Ee=Wi({elementType:$e,externalSlotProps:k({},R,{style:X?R.style:k({},R.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:I,className:le(U.paper,R==null?void 0:R.className)}),ze=Wi({elementType:ke,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:$,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:_e,open:x},ownerState:I,className:le(U.root,h)}),{slotProps:je}=ze,De=Se(ze,Hhe);return L.jsx(ke,k({},De,!Pf(ke)&&{slotProps:je,disableScrollLock:C},{children:L.jsx(S,k({appear:!0,in:x,onEntering:pe,onExited:ye,timeout:be},P,{children:L.jsx($e,k({},Ee,{children:p}))}))}))});function Ghe(e){return Ke("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const Qhe=["onEntering"],Xhe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Yhe={vertical:"top",horizontal:"right"},Jhe={vertical:"top",horizontal:"left"},Zhe=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},Ghe,t)},eme=te(q5,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tme=te(H5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rme=te(W5,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$y=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:_}={},variant:x="selectedMenu",slots:b={},slotProps:y={}}=o,E=Se(o.TransitionProps,Qhe),v=Se(o,Xhe),S=Ic(),w=k({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:_,PaperProps:h,transitionDuration:g,TransitionProps:E,variant:x}),O=Zhe(w),C=i&&!l&&p,P=f.useRef(null),$=(T,V)=>{P.current&&P.current.adjustStyleForScrollbar(T,{direction:S?"rtl":"ltr"}),_&&_(T,V)},R=T=>{T.key==="Tab"&&(T.preventDefault(),d&&d(T,"tabKeyDown"))};let A=-1;f.Children.map(s,(T,V)=>{f.isValidElement(T)&&(T.props.disabled||(x==="selectedMenu"&&T.props.selected||A===-1)&&(A=V))});const M=(n=b.paper)!=null?n:tme,I=(a=y.paper)!=null?a:h,U=Wi({elementType:b.root,externalSlotProps:y.root,ownerState:w,className:[O.root,u]}),W=Wi({elementType:M,externalSlotProps:I,ownerState:w,className:O.paper});return L.jsx(eme,k({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Yhe:Jhe,slots:{paper:M,root:b.root},slotProps:{root:U,paper:W},open:p,ref:r,transitionDuration:g,TransitionProps:k({onEntering:$},E),ownerState:w},v,{classes:m,children:L.jsx(rme,k({onKeyDown:R,actions:P,autoFocus:i&&(A===-1||l),autoFocusItem:C,variant:x},c,{className:le(O.list,c.className),children:s}))}))});function nme(e){return Ke("MuiMenuItem",e)}const sd=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ame=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ome=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},ime=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=Ge({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},nme,i);return k({},i,u)},sme=te(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ome})(({theme:e,ownerState:t})=>k({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tk.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tk.inset}`]:{marginLeft:52},[`& .${Xh.root}`]:{marginTop:0,marginBottom:0},[`& .${Xh.inset}`]:{paddingLeft:36},[`& .${Wk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wk.root} svg`]:{fontSize:"1.25rem"}}))),No=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p}=n,h=Se(n,ame),m=f.useContext(Tf),g=f.useMemo(()=>({dense:i||m.dense||!1,disableGutters:u}),[m.dense,i,u]),_=f.useRef(null);ha(()=>{a&&_.current&&_.current.focus()},[a]);const x=k({},n,{dense:g.dense,divider:s,disableGutters:u}),b=ime(n),y=Zt(_,r);let E;return n.disabled||(E=d!==void 0?d:-1),L.jsx(Tf.Provider,{value:g,children:L.jsx(sme,k({ref:y,role:c,tabIndex:E,component:o,focusVisibleClassName:le(b.focusVisible,l),className:le(b.root,p)},h,{ownerState:x,classes:b}))})});function lme(e){return Ke("MuiNativeSelect",e)}const FS=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ume=["className","disabled","error","IconComponent","inputRef","variant"],cme=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ce(r)}`,o&&"iconOpen",n&&"disabled"]};return Ge(s,lme,t)},K5=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${FS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),dme=te("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Kr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${FS.multiple}`]:t.multiple}]}})(K5),G5=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),fme=te("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(G5),pme=f.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Se(t,ume),c=k({},t,{disabled:a,variant:u,error:o}),d=cme(c);return L.jsxs(f.Fragment,{children:[L.jsx(dme,k({ownerState:c,className:le(d.select,n),disabled:a,ref:s||r},l)),t.multiple?null:L.jsx(fme,{as:i,ownerState:c,className:d.icon})]})});var Qk;const vme=["children","classes","className","label","notched"],hme=te("fieldset",{shouldForwardProp:Kr})({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%"}),mme=te("legend",{shouldForwardProp:Kr})(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function gme(e){const{className:t,label:r,notched:n}=e,a=Se(e,vme),o=r!=null&&r!=="",i=k({},e,{notched:n,withLabel:o});return L.jsx(hme,k({"aria-hidden":!0,className:t,ownerState:i},a,{children:L.jsx(mme,{ownerState:i,children:o?L.jsx("span",{children:r}):Qk||(Qk=L.jsx("span",{className:"notranslate",children:"​"}))})}))}const yme=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bme=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Pfe,t);return k({},t,n)},xme=te(wy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:by})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${si.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${si.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${si.focused} .${si.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${si.error} .${si.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${si.disabled} .${si.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),wme=te(gme,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_me=te(_y,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xy})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),LS=f.forwardRef(function(t,r){var n,a,o,i,s;const u=Qe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:g={},type:_="text"}=u,x=Se(u,yme),b=bme(u),y=ns(),E=Fc({props:u,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v=k({},u,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:y,fullWidth:c,hiddenLabel:E.hiddenLabel,multiline:h,size:E.size,type:_}),S=(n=(a=g.root)!=null?a:l.Root)!=null?n:xme,w=(o=(i=g.input)!=null?i:l.Input)!=null?o:_me;return L.jsx(Ey,k({slots:{root:S,input:w},renderSuffix:O=>L.jsx(wme,{ownerState:v,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?s||(s=L.jsxs(f.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:r,type:_},x,{classes:k({},b,{notchedOutline:null})}))});LS.muiName="Input";function Eme(e){return Ke("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const Sme=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Ome(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,h=Se(e,Sme),[m,g]=ec({controlled:l,default:a,name:r,state:"page"}),_=(C,P)=>{l||g(P),u&&u(C,P)},x=(C,P)=>{const $=P-C+1;return Array.from({length:$},(R,A)=>C+A)},b=x(1,Math.min(t,n)),y=x(Math.max(n-t+1,t+1),n),E=Math.max(Math.min(m-p,n-t-p*2-1),t+2),v=Math.min(Math.max(m+p,t+p*2+2),y.length>0?y[0]-2:n-1),S=[...c?["first"]:[],...s?[]:["previous"],...b,...E>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...y,...i?[]:["next"],...d?["last"]:[]],w=C=>{switch(C){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},O=S.map(C=>typeof C=="number"?{onClick:P=>{_(P,C)},type:"page",page:C,selected:C===m,disabled:o,"aria-current":C===m?"true":void 0}:{onClick:P=>{_(P,w(C))},type:C,page:w(C),selected:!1,disabled:o||C.indexOf("ellipsis")===-1&&(C==="next"||C==="last"?m>=n:m<=1)});return k({items:O},h)}function Cme(e){return Ke("MuiPaginationItem",e)}const Jn=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),mx=Ln(L.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),gx=Ln(L.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Xk=Ln(L.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Yk=Ln(L.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Pme=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],Q5=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.variant==="text"&&t[`text${ce(r.color)}`],r.variant==="outlined"&&t[`outlined${ce(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},$me=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ce(o)}`,u,i,r!=="standard"&&`color${ce(r)}`,r!=="standard"&&`${u}${ce(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Ge(l,Cme,t)},kme=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Q5})(({theme:e,ownerState:t})=>k({},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}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Rme=te(Go,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Q5})(({theme:e,ownerState:t})=>k({},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}))`:mt(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}))`:mt(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}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>k({},t.variant==="text"&&{[`&.${Jn.selected}`]:k({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{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}`]:k({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:mt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:mt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Jn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Tme=te("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>k({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),jme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:d="circular",size:p="medium",slots:h={},type:m="page",variant:g="text"}=n,_=Se(n,Pme),x=k({},n,{color:o,disabled:u,selected:c,shape:d,size:p,type:m,variant:g}),b=Ic(),y=$me(x),v=(b?{previous:h.next||s.next||Yk,next:h.previous||s.previous||Xk,last:h.first||s.first||mx,first:h.last||s.last||gx}:{previous:h.previous||s.previous||Xk,next:h.next||s.next||Yk,first:h.first||s.first||mx,last:h.last||s.last||gx})[m];return m==="start-ellipsis"||m==="end-ellipsis"?L.jsx(kme,{ref:r,ownerState:x,className:le(y.root,a),children:"…"}):L.jsxs(Rme,k({ref:r,ownerState:x,component:i,disabled:u,className:le(y.root,a)},_,{children:[m==="page"&&l,v?L.jsx(Tme,{as:v,ownerState:x,className:y.icon}):null]}))}),Ime=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Ame=e=>{const{classes:t,variant:r}=e;return Ge({root:["root",r],ul:["ul"]},Eme,t)},Mme=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Fme=te("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Lme(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Nme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Lme,hideNextButton:d=!1,hidePrevButton:p=!1,renderItem:h=O=>L.jsx(jme,k({},O)),shape:m="circular",showFirstButton:g=!1,showLastButton:_=!1,siblingCount:x=1,size:b="medium",variant:y="text"}=n,E=Se(n,Ime),{items:v}=Ome(k({},n,{componentName:"Pagination"})),S=k({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:d,hidePrevButton:p,renderItem:h,shape:m,showFirstButton:g,showLastButton:_,siblingCount:x,size:b,variant:y}),w=Ame(S);return L.jsx(Mme,k({"aria-label":"pagination navigation",className:le(w.root,o),ownerState:S,ref:r},E,{children:L.jsx(Fme,{className:w.ul,ownerState:S,children:v.map((O,C)=>L.jsx("li",{children:h(k({},O,{color:i,"aria-label":c(O.type,O.page,O.selected),shape:m,size:b,variant:y}))},C))})}))});function Dme(e){return Ke("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const Bme=["className","component","enableColorScheme"],zme=e=>{const{classes:t}=e;return Ge({root:["root"]},Dme,t)},Ume=te("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{var o;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(o=a.palette)==null?void 0:o.mode}}),k({},Ipe(e,t.enableColorScheme),Ape(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),Vme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiScopedCssBaseline"}),{className:a,component:o="div"}=n,i=Se(n,Bme),s=k({},n,{component:o}),u=zme(s);return L.jsx(Ume,k({as:o,className:le(u.root,a),ref:r,ownerState:s},i))});function Wme(e){return Ke("MuiSelect",e)}const ld=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Jk;const Hme=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qme=te("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ld.select}`]:t.select},{[`&.${ld.select}`]:t[r.variant]},{[`&.${ld.error}`]:t.error},{[`&.${ld.multiple}`]:t.multiple}]}})(K5,{[`&.${ld.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kme=te("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(G5),Gme=te("input",{shouldForwardProp:e=>u5(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 Zk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Qme(e){return e==null||typeof e=="string"&&!e.trim()}const Xme=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ce(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,Wme,t)},Yme=f.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:_,labelId:x,MenuProps:b={},multiple:y,name:E,onBlur:v,onChange:S,onClose:w,onFocus:O,onOpen:C,open:P,readOnly:$,renderValue:R,SelectDisplayProps:A={},tabIndex:M,value:I,variant:U="standard"}=t,W=Se(t,Hme),[T,V]=ec({controlled:I,default:d,name:"Select"}),[X,ie]=ec({controlled:P,default:c,name:"Select"}),ae=f.useRef(null),pe=f.useRef(null),[ye,be]=f.useState(null),{current:_e}=f.useRef(P!=null),[ke,$e]=f.useState(),Ee=Zt(r,_),ze=f.useCallback(Pe=>{pe.current=Pe,Pe&&be(Pe)},[]),je=ye==null?void 0:ye.parentNode;f.useImperativeHandle(Ee,()=>({focus:()=>{pe.current.focus()},node:ae.current,value:T}),[T]),f.useEffect(()=>{c&&X&&ye&&!_e&&($e(s?null:je.clientWidth),pe.current.focus())},[ye,s]),f.useEffect(()=>{i&&pe.current.focus()},[i]),f.useEffect(()=>{if(!x)return;const Pe=jr(pe.current).getElementById(x);if(Pe){const Xe=()=>{getSelection().isCollapsed&&pe.current.focus()};return Pe.addEventListener("click",Xe),()=>{Pe.removeEventListener("click",Xe)}}},[x]);const De=(Pe,Xe)=>{Pe?C&&C(Xe):w&&w(Xe),_e||($e(s?null:je.clientWidth),ie(Pe))},Me=Pe=>{Pe.button===0&&(Pe.preventDefault(),pe.current.focus(),De(!0,Pe))},He=Pe=>{De(!1,Pe)},et=f.Children.toArray(u),ft=Pe=>{const Xe=et.find(at=>at.props.value===Pe.target.value);Xe!==void 0&&(V(Xe.props.value),S&&S(Pe,Xe))},gt=Pe=>Xe=>{let at;if(Xe.currentTarget.hasAttribute("tabindex")){if(y){at=Array.isArray(T)?T.slice():[];const wt=T.indexOf(Pe.props.value);wt===-1?at.push(Pe.props.value):at.splice(wt,1)}else at=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(Xe),T!==at&&(V(at),S)){const wt=Xe.nativeEvent||Xe,bt=new wt.constructor(wt.type,wt);Object.defineProperty(bt,"target",{writable:!0,value:{value:at,name:E}}),S(bt,Pe)}y||De(!1,Xe)}},z=Pe=>{$||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Pe.key)!==-1&&(Pe.preventDefault(),De(!0,Pe))},Q=ye!==null&&X,Z=Pe=>{!Q&&v&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:T,name:E}}),v(Pe))};delete W["aria-invalid"];let oe,he;const de=[];let ge=!1;(Gh({value:T})||h)&&(R?oe=R(T):ge=!0);const Y=et.map(Pe=>{if(!f.isValidElement(Pe))return null;let Xe;if(y){if(!Array.isArray(T))throw new Error(Ko(2));Xe=T.some(at=>Zk(at,Pe.props.value)),Xe&&ge&&de.push(Pe.props.children)}else Xe=Zk(T,Pe.props.value),Xe&&ge&&(he=Pe.props.children);return f.cloneElement(Pe,{"aria-selected":Xe?"true":"false",onClick:gt(Pe),onKeyUp:at=>{at.key===" "&&at.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(at)},role:"option",selected:Xe,value:void 0,"data-value":Pe.props.value})});ge&&(y?de.length===0?oe=null:oe=de.reduce((Pe,Xe,at)=>(Pe.push(Xe),at{const{classes:t}=e;return t},NS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Kr(e)&&e!=="variant",slot:"Root"},tge=te(AS,NS)(""),rge=te(LS,NS)(""),nge=te(IS,NS)(""),DS=f.forwardRef(function(t,r){const n=Qe({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=kfe,id:d,input:p,inputProps:h,label:m,labelId:g,MenuProps:_,multiple:x=!1,native:b=!1,onClose:y,onOpen:E,open:v,renderValue:S,SelectDisplayProps:w,variant:O="outlined"}=n,C=Se(n,Jme),P=b?pme:Yme,$=ns(),R=Fc({props:n,muiFormControl:$,states:["variant","error"]}),A=R.variant||O,M=k({},n,{variant:A,classes:i}),I=ege(M),U=Se(I,Zme),W=p||{standard:L.jsx(tge,{ownerState:M}),outlined:L.jsx(rge,{label:m,ownerState:M}),filled:L.jsx(nge,{ownerState:M})}[A],T=Zt(r,W.ref);return L.jsx(f.Fragment,{children:f.cloneElement(W,k({inputComponent:P,inputProps:k({children:o,error:R.error,IconComponent:c,variant:A,type:void 0,multiple:x},b?{id:d}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:g,MenuProps:_,onClose:y,onOpen:E,open:v,renderValue:S,SelectDisplayProps:k({id:d},w)},h,{classes:h?Hr(U,h.classes):U},p?p.props.inputProps:{})},(x&&b||l)&&A==="outlined"?{notched:!0}:{},{ref:T,className:le(W.props.className,s,I.root)},!p&&{variant:A},C))})});DS.muiName="Select";function age(e){return Ke("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const oge=["action","className","message","role"],ige=e=>{const{classes:t}=e;return Ge({root:["root"],action:["action"],message:["message"]},age,t)},sge=te(ts,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ple(e.palette.background.default,t);return k({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),lge=te("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),uge=te("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),cge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Se(n,oge),l=n,c=ige(l);return L.jsxs(sge,k({role:s,square:!0,elevation:6,className:le(c.root,o),ownerState:l,ref:r},u,{children:[L.jsx(lge,{className:c.message,ownerState:l,children:i}),a?L.jsx(uge,{className:c.action,ownerState:l,children:a}):null]}))});function dge(e){return Ke("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const fge=["onEnter","onExited"],pge=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vge=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ce(r.vertical)}${ce(r.horizontal)}`]};return Ge(n,dge,t)},eR=te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ce(r.anchorOrigin.vertical)}${ce(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return k({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:k({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),hge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbar"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:m=!1,message:g,open:_,TransitionComponent:x=Rf,transitionDuration:b=o,TransitionProps:{onEnter:y,onExited:E}={}}=n,v=Se(n.TransitionProps,fge),S=Se(n,pge),w=k({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:m,TransitionComponent:x,transitionDuration:b}),O=vge(w),{getRootProps:C,onClickAway:P}=rfe(k({},w)),[$,R]=f.useState(!0),A=Wi({elementType:eR,getSlotProps:C,externalForwardedProps:S,ownerState:w,additionalProps:{ref:r},className:[O.root,d]}),M=U=>{R(!0),E&&E(U)},I=(U,W)=>{R(!1),y&&y(U,W)};return!_&&$?null:L.jsx(Ece,k({onClickAway:P},p,{children:L.jsx(eR,k({},A,{children:L.jsx(x,k({appear:!0,in:_,timeout:b,direction:s==="top"?"down":"up",onEnter:I,onExited:M},v,{children:c||L.jsx(cge,k({message:g,action:i},h))}))}))}))});function mge(e){return Ke("MuiTooltip",e)}const ki=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gge=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function yge(e){return Math.round(e*1e5)/1e5}const bge=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ce(o.split("-")[0])}`],arrow:["arrow"]};return Ge(i,mge,t)},xge=te(k5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ki.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ki.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ki.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ki.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wge=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ce(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ki.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ki.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ki.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ki.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),_ge=te("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Xp=!1;const tR=new ip;let ud={x:0,y:0};function Yp(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const ml=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,d,p,h,m,g,_,x,b,y,E,v;const S=Qe({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:O,components:C={},componentsProps:P={},describeChild:$=!1,disableFocusListener:R=!1,disableHoverListener:A=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:U=100,enterNextDelay:W=0,enterTouchDelay:T=700,followCursor:V=!1,id:X,leaveDelay:ie=0,leaveTouchDelay:ae=1500,onClose:pe,onOpen:ye,open:be,placement:_e="bottom",PopperComponent:ke,PopperProps:$e={},slotProps:Ee={},slots:ze={},title:je,TransitionComponent:De=Rf,TransitionProps:Me}=S,He=Se(S,gge),et=f.isValidElement(O)?O:L.jsx("span",{children:O}),ft=ni(),gt=Ic(),[z,Q]=f.useState(),[Z,oe]=f.useState(null),he=f.useRef(!1),de=M||V,ge=Ts(),Y=Ts(),H=Ts(),K=Ts(),[ne,se]=ec({controlled:be,default:!1,name:"Tooltip",state:"open"});let Ae=ne;const We=ul(X),Le=f.useRef(),Pe=ua(()=>{Le.current!==void 0&&(document.body.style.WebkitUserSelect=Le.current,Le.current=void 0),K.clear()});f.useEffect(()=>Pe,[Pe]);const Xe=st=>{tR.clear(),Xp=!0,se(!0),ye&&!Ae&&ye(st)},at=ua(st=>{tR.start(800+ie,()=>{Xp=!1}),se(!1),pe&&Ae&&pe(st),ge.start(ft.transitions.duration.shortest,()=>{he.current=!1})}),wt=st=>{he.current&&st.type!=="touchstart"||(z&&z.removeAttribute("title"),Y.clear(),H.clear(),U||Xp&&W?Y.start(Xp?W:U,()=>{Xe(st)}):Xe(st))},bt=st=>{Y.clear(),H.start(ie,()=>{at(st)})},{isFocusVisibleRef:Ar,onBlur:Cr,onFocus:Nn,ref:Dr}=ay(),[,or]=f.useState(!1),kt=st=>{Cr(st),Ar.current===!1&&(or(!1),bt(st))},vr=st=>{z||Q(st.currentTarget),Nn(st),Ar.current===!0&&(or(!0),wt(st))},G=st=>{he.current=!0;const ir=et.props;ir.onTouchStart&&ir.onTouchStart(st)},re=st=>{G(st),H.clear(),ge.clear(),Pe(),Le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.start(T,()=>{document.body.style.WebkitUserSelect=Le.current,wt(st)})},ue=st=>{et.props.onTouchEnd&&et.props.onTouchEnd(st),Pe(),H.start(ae,()=>{at(st)})};f.useEffect(()=>{if(!Ae)return;function st(ir){(ir.key==="Escape"||ir.key==="Esc")&&at(ir)}return document.addEventListener("keydown",st),()=>{document.removeEventListener("keydown",st)}},[at,Ae]);const we=Zt(et.ref,Dr,Q,r);!je&&je!==0&&(Ae=!1);const Re=f.useRef(),rt=st=>{const ir=et.props;ir.onMouseMove&&ir.onMouseMove(st),ud={x:st.clientX,y:st.clientY},Re.current&&Re.current.update()},Ue={},Fe=typeof je=="string";$?(Ue.title=!Ae&&Fe&&!A?je:null,Ue["aria-describedby"]=Ae?We:null):(Ue["aria-label"]=Fe?je:null,Ue["aria-labelledby"]=Ae&&!Fe?We:null);const Ye=k({},Ue,He,et.props,{className:le(He.className,et.props.className),onTouchStart:G,ref:we},V?{onMouseMove:rt}:{}),Je={};I||(Ye.onTouchStart=re,Ye.onTouchEnd=ue),A||(Ye.onMouseOver=Yp(wt,Ye.onMouseOver),Ye.onMouseLeave=Yp(bt,Ye.onMouseLeave),de||(Je.onMouseOver=wt,Je.onMouseLeave=bt)),R||(Ye.onFocus=Yp(vr,Ye.onFocus),Ye.onBlur=Yp(kt,Ye.onBlur),de||(Je.onFocus=vr,Je.onBlur=kt));const hr=f.useMemo(()=>{var st;let ir=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return(st=$e.popperOptions)!=null&&st.modifiers&&(ir=ir.concat($e.popperOptions.modifiers)),k({},$e.popperOptions,{modifiers:ir})},[Z,$e]),zt=k({},S,{isRtl:gt,arrow:w,disableInteractive:de,placement:_e,PopperComponentProp:ke,touch:he.current}),Ve=bge(zt),Rt=(n=(a=ze.popper)!=null?a:C.Popper)!=null?n:xge,er=(o=(i=(s=ze.transition)!=null?s:C.Transition)!=null?i:De)!=null?o:Rf,Oa=(u=(l=ze.tooltip)!=null?l:C.Tooltip)!=null?u:wge,bn=(c=(d=ze.arrow)!=null?d:C.Arrow)!=null?c:_ge,Ca=nu(Rt,k({},$e,(p=Ee.popper)!=null?p:P.popper,{className:le(Ve.popper,$e==null?void 0:$e.className,(h=(m=Ee.popper)!=null?m:P.popper)==null?void 0:h.className)}),zt),Pa=nu(er,k({},Me,(g=Ee.transition)!=null?g:P.transition),zt),Wa=nu(Oa,k({},(_=Ee.tooltip)!=null?_:P.tooltip,{className:le(Ve.tooltip,(x=(b=Ee.tooltip)!=null?b:P.tooltip)==null?void 0:x.className)}),zt),nn=nu(bn,k({},(y=Ee.arrow)!=null?y:P.arrow,{className:le(Ve.arrow,(E=(v=Ee.arrow)!=null?v:P.arrow)==null?void 0:E.className)}),zt);return L.jsxs(f.Fragment,{children:[f.cloneElement(et,Ye),L.jsx(Rt,k({as:ke??k5,placement:_e,anchorEl:V?{getBoundingClientRect:()=>({top:ud.y,left:ud.x,right:ud.x,bottom:ud.y,width:0,height:0})}:z,popperRef:Re,open:z?Ae:!1,id:We,transition:!0},Je,Ca,{popperOptions:hr,children:({TransitionProps:st})=>L.jsx(er,k({timeout:ft.transitions.duration.shorter},st,Pa,{children:L.jsxs(Oa,k({},Wa,{children:[je,w?L.jsx(bn,k({},nn,{ref:oe})):null]}))}))}))]})}),X5=f.createContext();function Ege(e){return Ke("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const Sge=["className","component","padding","size","stickyHeader"],Oge=e=>{const{classes:t,stickyHeader:r}=e;return Ge({root:["root",r&&"stickyHeader"]},Ege,t)},Cge=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":k({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),rR="table",Y5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTable"}),{className:a,component:o=rR,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Se(n,Sge),c=k({},n,{component:o,padding:i,size:s,stickyHeader:u}),d=Oge(c),p=f.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return L.jsx(X5.Provider,{value:p,children:L.jsx(Cge,k({as:o,role:o===rR?null:"table",ref:r,className:le(d.root,a),ownerState:c},l))})}),ky=f.createContext();function Pge(e){return Ke("MuiTableBody",e)}qe("MuiTableBody",["root"]);const $ge=["className","component"],kge=e=>{const{classes:t}=e;return Ge({root:["root"]},Pge,t)},Rge=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Tge={variant:"body"},nR="tbody",J5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableBody"}),{className:a,component:o=nR}=n,i=Se(n,$ge),s=k({},n,{component:o}),u=kge(s);return L.jsx(ky.Provider,{value:Tge,children:L.jsx(Rge,k({className:le(u.root,a),as:o,ref:r,role:o===nR?null:"rowgroup",ownerState:s},i))})});function jge(e){return Ke("MuiTableCell",e)}const Ige=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Age=["align","className","component","padding","scope","size","sortDirection","variant"],Mge=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ce(n)}`,a!=="normal"&&`padding${ce(a)}`,`size${ce(o)}`]};return Ge(s,jge,t)},Fge=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.padding!=="normal"&&t[`padding${ce(r.padding)}`],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?dS(mt(e.palette.divider,1),.88):cS(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Ige.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),en=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:d}=n,p=Se(n,Age),h=f.useContext(X5),m=f.useContext(ky),g=m&&m.variant==="head";let _;i?_=i:_=g?"th":"td";let x=u;_==="td"?x=void 0:!x&&g&&(x="col");const b=d||m&&m.variant,y=k({},n,{align:a,component:_,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:b==="head"&&h&&h.stickyHeader,variant:b}),E=Mge(y);let v=null;return c&&(v=c==="asc"?"ascending":"descending"),L.jsx(Fge,k({as:_,ref:r,className:le(E.root,o),"aria-sort":v,scope:x,ownerState:y},p))});function Lge(e){return Ke("MuiTableHead",e)}qe("MuiTableHead",["root"]);const Nge=["className","component"],Dge=e=>{const{classes:t}=e;return Ge({root:["root"]},Lge,t)},Bge=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),zge={variant:"head"},aR="thead",Z5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableHead"}),{className:a,component:o=aR}=n,i=Se(n,Nge),s=k({},n,{component:o}),u=Dge(s);return L.jsx(ky.Provider,{value:zge,children:L.jsx(Bge,k({as:o,className:le(u.root,a),ref:r,role:o===aR?null:"rowgroup",ownerState:s},i))})});function Uge(e){return Ke("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const Vge=["className","component","disableGutters","variant"],Wge=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ge({root:["root",!r&&"gutters",n]},Uge,t)},Hge=te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>k({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Nc=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Se(n,Vge),l=k({},n,{component:o,disableGutters:i,variant:s}),c=Wge(l);return L.jsx(Hge,k({as:o,className:le(c.root,a),ref:r,ownerState:l},u))}),qge=Ln(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Kge=Ln(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Gge=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Qge=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:m,nextIconButtonProps:g,onPageChange:_,page:x,rowsPerPage:b,showFirstButton:y,showLastButton:E,slots:v={},slotProps:S={}}=t,w=Se(t,Gge),O=Ic(),C=Ee=>{_(Ee,0)},P=Ee=>{_(Ee,x-1)},$=Ee=>{_(Ee,x+1)},R=Ee=>{_(Ee,Math.max(0,Math.ceil(p/b)-1))},A=(n=v.firstButton)!=null?n:Tr,M=(a=v.lastButton)!=null?a:Tr,I=(o=v.nextButton)!=null?o:Tr,U=(i=v.previousButton)!=null?i:Tr,W=(s=v.firstButtonIcon)!=null?s:mx,T=(u=v.lastButtonIcon)!=null?u:gx,V=(l=v.nextButtonIcon)!=null?l:Kge,X=(c=v.previousButtonIcon)!=null?c:qge,ie=O?M:A,ae=O?I:U,pe=O?U:I,ye=O?A:M,be=O?S.lastButton:S.firstButton,_e=O?S.nextButton:S.previousButton,ke=O?S.previousButton:S.nextButton,$e=O?S.firstButton:S.lastButton;return L.jsxs("div",k({ref:r},w,{children:[y&&L.jsx(ie,k({onClick:C,disabled:h||x===0,"aria-label":m("first",x),title:m("first",x)},be,{children:O?L.jsx(T,k({},S.lastButtonIcon)):L.jsx(W,k({},S.firstButtonIcon))})),L.jsx(ae,k({onClick:P,disabled:h||x===0,color:"inherit","aria-label":m("previous",x),title:m("previous",x)},_e??d,{children:O?L.jsx(V,k({},S.nextButtonIcon)):L.jsx(X,k({},S.previousButtonIcon))})),L.jsx(pe,k({onClick:$,disabled:h||(p!==-1?x>=Math.ceil(p/b)-1:!1),color:"inherit","aria-label":m("next",x),title:m("next",x)},ke??g,{children:O?L.jsx(X,k({},S.previousButtonIcon)):L.jsx(V,k({},S.nextButtonIcon))})),E&&L.jsx(ye,k({onClick:R,disabled:h||x>=Math.ceil(p/b)-1,"aria-label":m("last",x),title:m("last",x)},$e,{children:O?L.jsx(W,k({},S.firstButtonIcon)):L.jsx(T,k({},S.lastButtonIcon))}))]}))});function Xge(e){return Ke("MuiTablePagination",e)}const Vd=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var oR;const Yge=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Jge=te(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Zge=te(Nc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>k({[`& .${Vd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Vd.actions}`]:{flexShrink:0,marginLeft:20}})),eye=te("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),tye=te("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>k({},e.typography.body2,{flexShrink:0})),rye=te(DS,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>k({[`& .${Vd.selectIcon}`]:t.selectIcon,[`& .${Vd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Vd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),nye=te(No,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),aye=te("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>k({},e.typography.body2,{flexShrink:0}));function oye({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function iye(e){return`Go to ${e} page`}const sye=e=>{const{classes:t}=e;return Ge({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Xge,t)},iR=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Qge,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:d=!1,getItemAriaLabel:p=iye,labelDisplayedRows:h=oye,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:_,onRowsPerPageChange:x,page:b,rowsPerPage:y,rowsPerPageOptions:E=[10,25,50,100],SelectProps:v={},showFirstButton:S=!1,showLastButton:w=!1,slotProps:O={},slots:C={}}=a,P=Se(a,Yge),$=a,R=sye($),A=(n=O==null?void 0:O.select)!=null?n:v,M=A.native?"option":nye;let I;(l===en||l==="td")&&(I=u||1e3);const U=ul(A.id),W=ul(A.labelId),T=()=>c===-1?(b+1)*y:y===-1?c:Math.min(c,(b+1)*y);return L.jsx(Jge,k({colSpan:I,ref:r,as:l,ownerState:$,className:le(R.root,s)},P,{children:L.jsxs(Zge,{className:R.toolbar,children:[L.jsx(eye,{className:R.spacer}),E.length>1&&L.jsx(tye,{className:R.selectLabel,id:W,children:m}),E.length>1&&L.jsx(rye,k({variant:"standard"},!A.variant&&{input:oR||(oR=L.jsx(Ey,{}))},{value:y,onChange:x,id:U,labelId:W},A,{classes:k({},A.classes,{root:le(R.input,R.selectRoot,(A.classes||{}).root),select:le(R.select,(A.classes||{}).select),icon:le(R.selectIcon,(A.classes||{}).icon)}),disabled:d,children:E.map(V=>f.createElement(M,k({},!Pf(M)&&{ownerState:$},{className:R.menuItem,key:V.label?V.label:V,value:V.value?V.value:V}),V.label?V.label:V))})),L.jsx(aye,{className:R.displayedRows,children:h({from:c===0?0:b*y+1,to:T(),count:c===-1?-1:c,page:b})}),L.jsx(o,{className:R.actions,backIconButtonProps:i,count:c,nextIconButtonProps:g,onPageChange:_,page:b,rowsPerPage:y,showFirstButton:S,showLastButton:w,slotProps:O.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))});function lye(e){return Ke("MuiTableRow",e)}const sR=qe("MuiTableRow",["root","selected","hover","head","footer"]),uye=["className","component","hover","selected"],cye=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return Ge({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},lye,t)},dye=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${sR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),lR="tr",jf=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableRow"}),{className:a,component:o=lR,hover:i=!1,selected:s=!1}=n,u=Se(n,uye),l=f.useContext(ky),c=k({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),d=cye(c);return L.jsx(dye,k({as:o,ref:r,className:le(d.root,a),role:o===lR?null:"row",ownerState:c},u))}),fye=Ln(L.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function pye(e){return Ke("MuiTableSortLabel",e)}const G0=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),vye=["active","children","className","direction","hideSortIcon","IconComponent"],hye=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ce(r)}`]};return Ge(a,pye,t)},mye=te(Go,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${G0.icon}`]:{opacity:.5}},[`&.${G0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${G0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),gye=te("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ce(r.direction)}`]]}})(({theme:e,ownerState:t})=>k({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),yye=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=fye}=n,c=Se(n,vye),d=k({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=hye(d);return L.jsxs(mye,k({className:le(p.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r},c,{children:[o,u&&!a?null:L.jsx(gye,{as:l,className:le(p.icon),ownerState:d})]}))});function bye(e){return Ke("MuiTextField",e)}qe("MuiTextField",["root"]);const xye=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],wye={standard:AS,filled:IS,outlined:LS},_ye=e=>{const{classes:t}=e;return Ge({root:["root"]},bye,t)},Eye=te(Mve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:_,inputProps:x,InputProps:b,inputRef:y,label:E,maxRows:v,minRows:S,multiline:w=!1,name:O,onBlur:C,onChange:P,onFocus:$,placeholder:R,required:A=!1,rows:M,select:I=!1,SelectProps:U,type:W,value:T,variant:V="outlined"}=n,X=Se(n,xye),ie=k({},n,{autoFocus:o,color:u,disabled:c,error:d,fullWidth:h,multiline:w,required:A,select:I,variant:V}),ae=_ye(ie),pe={};V==="outlined"&&(_&&typeof _.shrink<"u"&&(pe.notched=_.shrink),pe.label=E),I&&((!U||!U.native)&&(pe.id=void 0),pe["aria-describedby"]=void 0);const ye=ul(g),be=m&&ye?`${ye}-helper-text`:void 0,_e=E&&ye?`${ye}-label`:void 0,ke=wye[V],$e=L.jsx(ke,k({"aria-describedby":be,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:O,rows:M,maxRows:v,minRows:S,type:W,value:T,id:ye,inputRef:y,onBlur:C,onChange:P,onFocus:$,placeholder:R,inputProps:x},pe,b));return L.jsxs(Eye,k({className:le(ae.root,s),disabled:c,error:d,fullWidth:h,ref:r,required:A,color:u,variant:V,ownerState:ie},X,{children:[E!=null&&E!==""&&L.jsx(she,k({htmlFor:ye,id:_e},_,{children:E})),I?L.jsx(DS,k({"aria-describedby":be,id:ye,labelId:_e,value:T,input:$e},U,{children:i})):$e,m&&L.jsx(B5,k({id:be},p,{children:m}))]}))}),Sye=["getTrigger","target"];function Oye(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const Cye=typeof window<"u"?window:null;function e4(e={}){const{getTrigger:t=Oye,target:r=Cye}=e,n=Se(e,Sye),a=f.useRef(),[o,i]=f.useState(()=>t(a,n));return f.useEffect(()=>{const s=()=>{i(t(a,k({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var zS={},Q0={};const Pye=mo(xue);var uR;function St(){return uR||(uR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Pye}(Q0)),Q0}var $ye=yt;Object.defineProperty(zS,"__esModule",{value:!0});var US=zS.default=void 0,kye=$ye(St()),Rye=L;US=zS.default=(0,kye.default)((0,Rye.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Wd=function(){return Wd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?f.createElement(U1e,null):null,t&&f.createElement(b4,null),f.createElement(s0e,null))},A0e=f.createElement(I0e,null),M0e=f.createElement(d4,null),ms="RaAppBar",Is={appBar:"".concat(ms,"-appBar"),toolbar:"".concat(ms,"-toolbar"),menuButton:"".concat(ms,"-menuButton"),menuButtonIconClosed:"".concat(ms,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ms,"-menuButtonIconOpen"),title:"".concat(ms,"-title")},F0e=te(yce,{name:ms,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Is.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Is.menuButton)]={marginRight:"0.2em"},t["& .".concat(Is.title)]={},t}),JS={},L0e=yt;Object.defineProperty(JS,"__esModule",{value:!0});var w4=JS.default=void 0,N0e=L0e(St()),D0e=L;w4=JS.default=(0,N0e.default)((0,D0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var ZS={},B0e=yt;Object.defineProperty(ZS,"__esModule",{value:!0});var _4=ZS.default=void 0,z0e=B0e(St()),U0e=L;_4=ZS.default=(0,z0e.default)((0,U0e.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var qd=function(){return qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),f.createElement(f.Fragment,null,Wf.createPortal(f.createElement(Sbe,kx({title:r,defaultTitle:t,preferenceKey:n},a)),i))):null},Rx=function(){return Rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=sxe(_===!1||_===void 0?void 0:!_,l||!C||w||O);UE(d==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var $=f.useCallback(function(M){return vR(void 0,void 0,void 0,function(){var I;return hR(this,function(U){switch(U.label){case 0:return E!=null&&E.save?[4,E.save(M,Qd(Qd({},u),{transform:p}))]:[3,2];case 1:I=U.sent(),U.label=2;case 2:return I!=null&&S3(I,y.setError),[2]}})})},[y.setError,E,u,p]),R=f.useCallback(function(M){return vR(void 0,void 0,void 0,function(){return hR(this,function(I){switch(I.label){case 0:return s&&s(M),M.defaultPrevented?[2]:d!=="button"?[3,2]:(M.stopPropagation(),[4,y.handleSubmit($)(M)]);case 1:I.sent(),I.label=2;case 2:return[2]}})})},[s,d,y,$]),A=i&&b(i,{_:i});return f.createElement(ixe,Qd({variant:m,type:d,color:r,"aria-label":A,disabled:P,onClick:R},x),O?f.createElement(Cy,{sx:nxe,size:14,thickness:3,color:"inherit"}):a,A)},nxe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},axe=f.createElement(K4,null),oxe="RaSaveButton",ixe=te(An,{name:oxe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),sxe=function(e,t){return typeof e>"u"?t:e},lxe=function(){return Ce.createElement(cxe,{onClick:dxe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},uxe="RaSkipNavigationButton",cxe=te(Va,{name:uxe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),dxe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Hx=function(){return Hx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var w=J4(),O=ot(),C=gn(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var P=Mt(e);if(!P)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!w||!w.isRowExpandable||w.isRowExpandable(C))&&u,R=Yi(),A=_re(P,h,w&&w.expandSingle),M=A[0],I=A[1],U=f.useState(function(){return mR($,i,c)}),W=U[0],T=U[1];f.useEffect(function(){var pe=mR($,i,c);pe!==W&&T(pe)},[$,W,i,c]);var V=bo(),X=f.useCallback(function(pe){I(),pe.stopPropagation()},[I]),ie=f.useCallback(function(pe){!v||!m||(m(h,pe),pe.stopPropagation())},[h,m,v]),ae=f.useCallback(function(pe){return kxe(void 0,void 0,void 0,function(){var ye,be;return Rxe(this,function(_e){switch(_e.label){case 0:return pe.persist(),typeof _!="function"?[3,2]:[4,_(h,P,C)];case 1:return be=_e.sent(),[3,3];case 2:be=_,_e.label=3;case 3:return ye=be,ye===!1||ye==null?[2]:["edit","show"].includes(ye)?(V(R({resource:P,id:h,type:ye}),{state:{_scrollToTop:!0}}),[2]):ye==="expand"?(X(pe),[2]):ye==="toggleSelection"?(ie(pe),[2]):(V(ye),[2])}})})},[_,h,P,C,V,R,X,ie]);return Ce.createElement(Ce.Fragment,null,Ce.createElement(jf,Yx({ref:t,className:le(s,(r={},r[Ze.expandable]=$,r[Ze.selectable]=v,r[Ze.clickableRow]=typeof _=="function"?!0:_,r)),key:h,style:y,hover:p,onClick:ae},S),u&&Ce.createElement(en,{padding:"none",className:Ze.expandIconCell},$&&Ce.createElement($xe,{className:le(Ze.expandIcon,(n={},n[Ze.expanded]=M,n)),expanded:M,onClick:X,expandContentId:"".concat(h,"-expand")})),c&&Ce.createElement(en,{padding:"checkbox"},Ce.createElement(Qh,{"aria-label":O("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(Ze.checkbox),checked:v&&b,onClick:ie,disabled:!v})),Ce.Children.map(i,function(pe,ye){return f.isValidElement(pe)?Ce.createElement(Y4,{key:"".concat(h,"-").concat(pe.props.source||ye),className:le("column-".concat(pe.props.source),Ze.rowCell),record:C,field:pe,resource:P}):null})),$&&M&&Ce.createElement(jf,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:Ze.expandedPanel},Ce.createElement(en,{colSpan:W},f.isValidElement(u)?u:f.createElement(u))))}),Txe=function(e,t){e.children,e.expand;var r=Jx(e,["children","expand"]);t.children,t.expand;var n=Jx(t,["children","expand"]);return MM(r,n)},eL=f.memo(Z4,Txe);eL.displayName="PureDatagridRow";var fm=function(){return fm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=Xxe&&(o=Qxe,i=!1,t=new Wxe(t));e:for(;++a0&&y.length>0&&y.every(function(E){return h.includes(E)}),onChange:b,onClick:function(E){return E.stopPropagation()}})),f.Children.map(t,function(E,v){return f.isValidElement(E)?f.createElement(Lxe,{className:le(Ze.headerCell,"column-".concat(E.props.source)),sort:c,field:E,isSorting:(c==null?void 0:c.field)===(E.props.sortBy||E.props.source),key:E.props.source||v,updateSort:x||void 0}):null})))};nL.displayName="DatagridHeader";var swe=function(e){var t=e.children,r=e.value;return Ce.createElement(bO.Provider,{value:r},t)},wO={},lwe=yt;Object.defineProperty(wO,"__esModule",{value:!0});var aL=wO.default=void 0,uwe=lwe(St()),cwe=L;aL=wO.default=(0,uwe.default)((0,cwe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var ew=function(){return ew=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var h=o.getValues();return r.filter(function(m){var g=fr(h,m.props.source);return m.props.alwaysOn||u[m.props.source]||!iL(g)})},d=f.useCallback(function(h){return l(h.currentTarget.dataset.key)},[l]),p=f.useMemo(function(){return{getSource:function(h){return h},getLabel:function(h){return"resources.".concat(a,".fields.").concat(h)}}},[a]);return f.createElement(B3,{value:p},f.createElement(Rwe,Bi({className:t},Pwe(n),{onSubmit:Cwe}),c().map(function(h){return f.createElement(bwe,{key:h.key||h.props.source,filterElement:h,handleHide:d,resource:a,className:vm.filterFormInput})}),f.createElement("div",{className:vm.clearFix})))},Cwe=function(e){return e.preventDefault(),!1},Pwe=function(e){e.hasCreate,e.resource;var t=EO(e,["hasCreate","resource"]);return t},$we=function(e,t){return Bi(Bi({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return Z_(Bi({},r),n.props.source,n.props.defaultValue)},{})),e)},kwe=function(e){return e.preventDefault(),e.stopPropagation(),!1},rw="RaFilterForm",vm={clearFix:"".concat(rw,"-clearFix"),filterFormInput:"".concat(rw,"-filterFormInput")},Rwe=te("form",{name:rw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(vm.clearFix)]={clear:"right"},t["& .".concat(vm.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Twe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=oL(e,a,t),n},(r=_M(t))!==null&&r!==void 0?r:{})},oL=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return fr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=oL(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return fr(r,t,"")},iL=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return iL(e[t])}):!1},SO={},jwe=yt;Object.defineProperty(SO,"__esModule",{value:!0});var sL=SO.default=void 0,Iwe=jwe(St()),Awe=L;sL=SO.default=(0,Iwe.default)((0,Awe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var Mwe=f.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.autoFocus,o=Mt(e),i=f.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return f.createElement(No,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:a,ref:t,disabled:r.props.disabled},f.createElement(wf,{label:r.props.label,source:r.props.source,resource:o}))}),OO=function(e){return wa("".concat(e,".savedQueries"),[])},CO=function(e){return Array.isArray(e)?e.filter(function(t){return Fwe(t)}):[]},Fwe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Lwe=function(e){var t=e.open,r=e.onClose,n=ot(),a=za(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=OO(o),d=c[0],p=c[1],h=f.useState(""),m=h[0],g=h[1],_=function(y){g(y.target.value)},x=function(y){y.preventDefault(),b()},b=function(){var y={label:m,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},E=CO(d);p(E.concat(y)),g(""),r()};return f.createElement(kS,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},f.createElement(jS,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),f.createElement(TS,null,f.createElement("form",{onSubmit:x},f.createElement(BS,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:m,onChange:_}))),f.createElement(RS,null,f.createElement(An,{onClick:r},n("ra.action.cancel")),f.createElement(An,{onClick:b,color:"primary"},n("ra.action.save"))))},wR=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=OO(u||"")[0],d=bo(),p=za(),h=p.displayedFilters,m=h===void 0?{}:h,g=p.filterValues,_=p.perPage,x=p.setFilters,b=p.showFilter,y=p.sort,E=!co(g,{}),v=CO(c),S=v.some(function(be){return co(be.value,{filter:g,sort:y,perPage:_,displayedFilters:m})}),w=f.useState(!1),O=w[0],C=w[1],P=f.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var $=s.filter(function(be){return!be.props.alwaysOn&&!m[be.props.source]&&typeof fr(g,be.props.source)>"u"}),R=f.useCallback(function(be){be.preventDefault(),C(!0),P.current=be.currentTarget},[P,C]),A=f.useCallback(function(){C(!1)},[C]),M=f.useCallback(function(be){var _e=be.source,ke=be.defaultValue;b(_e,ke===""?void 0:ke),setTimeout(function(){var $e=document.querySelector("input[name='".concat(_e,"']"));$e&&$e.focus()},50),C(!1)},[b,C]),I=f.useState(!1),U=I[0],W=I[1],T=function(){W(!1)},V=function(){C(!1),W(!0)},X=f.useState(!1),ie=X[0],ae=X[1],pe=function(){ae(!1)},ye=function(){C(!1),ae(!0)};return $.length===0&&v.length===0&&!E?null:f.createElement(Uwe,nw({className:r},Bwe(i)),f.createElement(Va,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:R,variant:o,size:a},f.createElement(sL,null)),f.createElement($y,{open:O,anchorEl:P.current,onClose:A},$.map(function(be,_e){return f.createElement(Mwe,{key:be.props.source,filter:be,resource:u,onShow:M,autoFocus:_e===0})}),v.map(function(be,_e){return co(be.value,{filter:g,sort:y,perPage:_,displayedFilters:m})?f.createElement(No,{onClick:ye,key:_e},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label})):f.createElement(No,{onClick:function(){var ke,$e;d({search:ol.stringify({filter:JSON.stringify(be.value.filter),sort:(ke=be.value.sort)===null||ke===void 0?void 0:ke.field,order:($e=be.value.sort)===null||$e===void 0?void 0:$e.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),C(!1)},key:_e},be.label)}),E&&!S&&!n&&f.createElement(No,{onClick:V},l("ra.saved_queries.new_label",{_:"Save current query..."})),E&&f.createElement(No,{onClick:function(){x({},{}),C(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&f.createElement(f.Fragment,null,f.createElement(Lwe,{open:U,onClose:T}),f.createElement(Nwe,{open:ie,onClose:pe})))},Bwe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=lL(e,["displayedFilters","filterValues","showFilter"]);return t},zwe="RaFilterButton",Uwe=te("div",{name:zwe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),aw=function(){return aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(g("ra.navigation.page_out_of_boundaries",{page:O+1}));h(O+1)},[x,h,g]),y=f.useCallback(function(w){m(w.target.value)},[m]),E=f.useCallback(function(w){var O=w.from,C=w.to,P=w.count;return P===-1&&l?g("ra.navigation.partial_page_range_info",{offsetBegin:O,offsetEnd:C,_:"%{from}-%{to} of more than %{to}"}):g("ra.navigation.page_range_info",{offsetBegin:O,offsetEnd:C,total:P===-1?C:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[g,l]),v=f.useCallback(function(w){return g("ra.navigation.".concat(w),{_:"Go to ".concat(w," page")})},[g]);if(u)return f.createElement(Nc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(_)return f.createElement(iR,hm({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:b,rowsPerPageOptions:Qwe,component:"span",labelDisplayedRows:E},Yu(i)));var S=n||(!u&&p!=null?Vwe:void 0);return f.createElement(iR,hm({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:b,onRowsPerPageChange:y,ActionsComponent:S,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:g("ra.navigation.page_rows_per_page"),labelDisplayedRows:E,getItemAriaLabel:v,rowsPerPageOptions:r},Yu(i)))}),Gwe=[5,10,25,50],Qwe=[],PO={},Xwe=yt;Object.defineProperty(PO,"__esModule",{value:!0});var ow=PO.default=void 0,Ywe=Xwe(St()),Jwe=L;ow=PO.default=(0,Ywe.default)((0,Jwe.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");var mm=function(){return mm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!d.message?"ra.auth.sign_in_error":d.message,{type:"error",messageArgs:{_:typeof d=="string"?d:d&&d.message?d.message:void 0}})})};return f.createElement(a_e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},f.createElement(Sy,{className:yu.content},f.createElement(qs,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:u$()}),f.createElement(qs,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:u$()}),f.createElement(An,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:yu.button},a?f.createElement(Cy,{className:yu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},Mv="RaLoginForm",yu={content:"".concat(Mv,"-content"),button:"".concat(Mv,"-button"),icon:"".concat(Mv,"-icon")},a_e=te(O3,{name:Mv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(yu.content)]={width:300},t["& .".concat(yu.button)]={marginTop:r.spacing(2)},t["& .".concat(yu.icon)]={margin:r.spacing(.3)},t}),iw=function(){return iw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?y_e:r;return a?f.createElement(x_e,cw({className:le("edit-page",o)},l),f.createElement(Dc,{title:u,defaultTitle:h,preferenceKey:"".concat(p,".edit.title")}),g,f.createElement("div",{className:le(wu.main,(t={},t[wu.noActions]=!g,t))},f.createElement(s,{className:wu.card},m?a:f.createElement(Sy,null," ")),n)):null},Nv="RaEdit",wu={main:"".concat(Nv,"-main"),noActions:"".concat(Nv,"-noActions"),card:"".concat(Nv,"-card")},x_e=te("div",{name:Nv,overridesResolver:function(e,t){return t.root}})((cd={},cd["& .".concat(wu.main)]={display:"flex",alignItems:"flex-start"},cd["& .".concat(wu.noActions)]={marginTop:"1em"},cd["& .".concat(wu.card)]={flex:"1 1 auto"},cd)),dw=function(){return dw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&_?M_e:r;return!a||!g&&l?null:f.createElement(L_e,vw({className:le("show-page",o)},d),f.createElement(Dc,{title:c,defaultTitle:m,preferenceKey:"".concat(h,".show.title")}),x!==!1&&x,f.createElement("div",{className:le(Eu.main,(t={},t[Eu.noActions]=!x,t))},f.createElement(s,{className:Eu.card},a),n))},Bv="RaShow",Eu={main:"".concat(Bv,"-main"),noActions:"".concat(Bv,"-noActions"),card:"".concat(Bv,"-card")},L_e=te("div",{name:Bv,overridesResolver:function(e,t){return t.root}})((dd={},dd["& .".concat(Eu.main)]={display:"flex"},dd["& .".concat(Eu.noActions)]={marginTop:"1em"},dd["& .".concat(Eu.card)]={flex:"1 1 auto"},dd)),hw=function(){return hw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),eEe=function(e){return e.stopPropagation()},SR=function(e){var t=e.clickable;return f.createElement(R5,{sx:{cursor:"inherit"},size:"small",label:f.createElement(jee,null),clickable:t})},bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&CR.call(t.callee)==="[object Function]"),n},eb,PR;function $Ee(){if(PR)return eb;PR=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=SL,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var h=p.constructor;return h&&h.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",g=r.call(h)==="[object Function]",_=n(h),x=m&&r.call(h)==="[object String]",b=[];if(!m&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var y=i&&g;if(x&&h.length>0&&!t.call(h,0))for(var E=0;E0)for(var v=0;v"u"||!Mr?ht:Mr(Uint8Array),Gs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":jl&&Mr?Mr([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":Dl,"%AsyncGenerator%":Dl,"%AsyncGeneratorFunction%":Dl,"%AsyncIteratorPrototype%":Dl,"%Atomics%":typeof Atomics>"u"?ht:Atomics,"%BigInt%":typeof BigInt>"u"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JEe,"%eval%":eval,"%EvalError%":ZEe,"%Float32Array%":typeof Float32Array>"u"?ht:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ht:FinalizationRegistry,"%Function%":$L,"%GeneratorFunction%":Dl,"%Int8Array%":typeof Int8Array>"u"?ht:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ht:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jl&&Mr?Mr(Mr([][Symbol.iterator]())):ht,"%JSON%":typeof JSON=="object"?JSON:ht,"%Map%":typeof Map>"u"?ht:Map,"%MapIteratorPrototype%":typeof Map>"u"||!jl||!Mr?ht:Mr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ht:Promise,"%Proxy%":typeof Proxy>"u"?ht:Proxy,"%RangeError%":eSe,"%ReferenceError%":tSe,"%Reflect%":typeof Reflect>"u"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ht:Set,"%SetIteratorPrototype%":typeof Set>"u"||!jl||!Mr?ht:Mr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jl&&Mr?Mr(""[Symbol.iterator]()):ht,"%Symbol%":jl?Symbol:ht,"%SyntaxError%":sc,"%ThrowTypeError%":nSe,"%TypedArray%":oSe,"%TypeError%":Ou,"%Uint8Array%":typeof Uint8Array>"u"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ht:Uint32Array,"%URIError%":rSe,"%WeakMap%":typeof WeakMap>"u"?ht:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ht:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ht:WeakSet};if(Mr)try{null.error}catch(e){var iSe=Mr(Mr(e));Gs["%Error.prototype%"]=iSe}var sSe=function e(t){var r;if(t==="%AsyncFunction%")r=rb("async function () {}");else if(t==="%GeneratorFunction%")r=rb("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=rb("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Mr&&(r=Mr(a.prototype))}return Gs[t]=r,r},jR={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vp=RO,wm=YEe,lSe=vp.call(Function.call,Array.prototype.concat),uSe=vp.call(Function.apply,Array.prototype.splice),IR=vp.call(Function.call,String.prototype.replace),_m=vp.call(Function.call,String.prototype.slice),cSe=vp.call(Function.call,RegExp.prototype.exec),dSe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fSe=/\\(\\)?/g,pSe=function(t){var r=_m(t,0,1),n=_m(t,-1);if(r==="%"&&n!=="%")throw new sc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new sc("invalid intrinsic syntax, expected opening `%`");var a=[];return IR(t,dSe,function(o,i,s,u){a[a.length]=s?IR(u,fSe,"$1"):i||o}),a},vSe=function(t,r){var n=t,a;if(wm(jR,n)&&(a=jR[n],n="%"+a[0]+"%"),wm(Gs,n)){var o=Gs[n];if(o===Dl&&(o=sSe(n)),typeof o>"u"&&!r)throw new Ou("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new sc("intrinsic "+t+" does not exist!")},wo=function(t,r){if(typeof t!="string"||t.length===0)throw new Ou("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ou('"allowMissing" argument must be a boolean');if(cSe(/^%?[^%]*%?$/,t)===null)throw new sc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pSe(t),a=n.length>0?n[0]:"",o=vSe("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],uSe(n,lSe([0,1],l)));for(var c=1,d=!0;c=n.length){var g=Ks(s,p);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[p]}else d=wm(s,p),s=s[p];d&&!u&&(Gs[i]=s)}}return s},hSe=wo,Vv=hSe("%Object.defineProperty%",!0)||!1;if(Vv)try{Vv({},"a",{value:1})}catch{Vv=!1}var TO=Vv,mSe=wo,Wv=mSe("%Object.getOwnPropertyDescriptor%",!0);if(Wv)try{Wv([],"length")}catch{Wv=null}var kL=Wv,AR=TO,gSe=OL,Il=yn,MR=kL,RL=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Il("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Il("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Il("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Il("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Il("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Il("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!MR&&MR(t,r);if(AR)AR(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new gSe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pw=TO,TL=function(){return!!Pw};TL.hasArrayLengthDefineBug=function(){if(!Pw)return null;try{return Pw([],"length",{value:1}).length!==1}catch{return!0}};var jL=TL,ySe=TEe,bSe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",xSe=Object.prototype.toString,wSe=Array.prototype.concat,FR=RL,_Se=function(e){return typeof e=="function"&&xSe.call(e)==="[object Function]"},IL=jL(),ESe=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!_Se(n)||!n())return}IL?FR(e,t,r,!0):FR(e,t,r)},AL=function(e,t){var r=arguments.length>2?arguments[2]:{},n=ySe(t);bSe&&(n=wSe.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||CSe(r)!==r)throw new DR("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&NR){var i=NR(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(OSe?LR(t,"length",r,!0,!0):LR(t,"length",r)),t};(function(e){var t=RO,r=wo,n=PSe,a=yn,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=TO,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(ML);var Ay=ML.exports,FL=wo,LL=Ay,$Se=LL(FL("String.prototype.indexOf")),ai=function(t,r){var n=FL(t,!!r);return typeof n=="function"&&$Se(t,".prototype.")>-1?LL(n):n},kSe=yn,hp=function(t){if(t==null)throw new kSe(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},RSe=wo,NL=RSe("%Array%"),TSe=!NL.isArray&&ai("Object.prototype.toString"),jSe=NL.isArray||function(t){return TSe(t)==="[object Array]"},ISe=jSe,ASe=wo,MSe=ai,FSe=yn,LSe=ISe,NSe=ASe("%Reflect.apply%",!0)||MSe("Function.prototype.apply"),DSe=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!LSe(n))throw new FSe("Assertion failed: optional `argumentsList`, if provided, must be a List");return NSe(t,r,n)};const BSe={},zSe=Object.freeze(Object.defineProperty({__proto__:null,default:BSe},Symbol.toStringTag,{value:"Module"})),USe=mo(zSe);var jO=typeof Map=="function"&&Map.prototype,ab=Object.getOwnPropertyDescriptor&&jO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Em=jO&&ab&&typeof ab.get=="function"?ab.get:null,BR=jO&&Map.prototype.forEach,IO=typeof Set=="function"&&Set.prototype,ob=Object.getOwnPropertyDescriptor&&IO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sm=IO&&ob&&typeof ob.get=="function"?ob.get:null,zR=IO&&Set.prototype.forEach,VSe=typeof WeakMap=="function"&&WeakMap.prototype,Xd=VSe?WeakMap.prototype.has:null,WSe=typeof WeakSet=="function"&&WeakSet.prototype,Yd=WSe?WeakSet.prototype.has:null,HSe=typeof WeakRef=="function"&&WeakRef.prototype,UR=HSe?WeakRef.prototype.deref:null,qSe=Boolean.prototype.valueOf,KSe=Object.prototype.toString,GSe=Function.prototype.toString,QSe=String.prototype.match,AO=String.prototype.slice,Ti=String.prototype.replace,XSe=String.prototype.toUpperCase,VR=String.prototype.toLowerCase,DL=RegExp.prototype.test,WR=Array.prototype.concat,ro=Array.prototype.join,YSe=Array.prototype.slice,HR=Math.floor,$w=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ib=Object.getOwnPropertySymbols,kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,lc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===lc||!0)?Symbol.toStringTag:null,BL=Object.prototype.propertyIsEnumerable,qR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function KR(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||DL.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-HR(-e):HR(e);if(n!==e){var a=String(n),o=AO.call(t,a.length+1);return Ti.call(a,r,"$&_")+"."+Ti.call(Ti.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ti.call(t,r,"$&_")}var Rw=USe,GR=Rw.custom,QR=UL(GR)?GR:null,JSe=function e(t,r,n,a){var o=r||{};if(vi(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vi(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=vi(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vi(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vi(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return WL(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?KR(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?KR(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Tw(t)?"[Array]":"[Object]";var d=mOe(o,n);if(typeof a>"u")a=[];else if(VL(a,t)>=0)return"[Circular]";function p(A,M,I){if(M&&(a=YSe.call(a),a.push(M)),I){var U={depth:o.depth};return vi(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),e(A,U,n+1,a)}return e(A,o,n+1,a)}if(typeof t=="function"&&!XR(t)){var h=sOe(t),m=tv(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+ro.call(m,", ")+" }":"")}if(UL(t)){var g=lc?Ti.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):kw.call(t);return typeof t=="object"&&!lc?fd(g):g}if(pOe(t)){for(var _="<"+VR.call(String(t.nodeName)),x=t.attributes||[],b=0;b",_}if(Tw(t)){if(t.length===0)return"[]";var y=tv(t,p);return d&&!hOe(y)?"["+jw(y,d)+"]":"[ "+ro.call(y,", ")+" ]"}if(tOe(t)){var E=tv(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!BL.call(t,"cause")?"{ ["+String(t)+"] "+ro.call(WR.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ro.call(E,", ")+" }"}if(typeof t=="object"&&i){if(QR&&typeof t[QR]=="function"&&Rw)return Rw(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(lOe(t)){var v=[];return BR&&BR.call(t,function(A,M){v.push(p(M,t,!0)+" => "+p(A,t))}),YR("Map",Em.call(t),v,d)}if(dOe(t)){var S=[];return zR&&zR.call(t,function(A){S.push(p(A,t))}),YR("Set",Sm.call(t),S,d)}if(uOe(t))return sb("WeakMap");if(fOe(t))return sb("WeakSet");if(cOe(t))return sb("WeakRef");if(nOe(t))return fd(p(Number(t)));if(oOe(t))return fd(p($w.call(t)));if(aOe(t))return fd(qSe.call(t));if(rOe(t))return fd(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ss)return"{ [object globalThis] }";if(!eOe(t)&&!XR(t)){var w=tv(t,p),O=qR?qR(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",P=!O&&rn&&Object(t)===t&&rn in t?AO.call(as(t),8,-1):C?"Object":"",$=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=$+(P||C?"["+ro.call(WR.call([],P||[],C||[]),": ")+"] ":"");return w.length===0?R+"{}":d?R+"{"+jw(w,d)+"}":R+"{ "+ro.call(w,", ")+" }"}return String(t)};function zL(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function ZSe(e){return Ti.call(String(e),/"/g,""")}function Tw(e){return as(e)==="[object Array]"&&(!rn||!(typeof e=="object"&&rn in e))}function eOe(e){return as(e)==="[object Date]"&&(!rn||!(typeof e=="object"&&rn in e))}function XR(e){return as(e)==="[object RegExp]"&&(!rn||!(typeof e=="object"&&rn in e))}function tOe(e){return as(e)==="[object Error]"&&(!rn||!(typeof e=="object"&&rn in e))}function rOe(e){return as(e)==="[object String]"&&(!rn||!(typeof e=="object"&&rn in e))}function nOe(e){return as(e)==="[object Number]"&&(!rn||!(typeof e=="object"&&rn in e))}function aOe(e){return as(e)==="[object Boolean]"&&(!rn||!(typeof e=="object"&&rn in e))}function UL(e){if(lc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!kw)return!1;try{return kw.call(e),!0}catch{}return!1}function oOe(e){if(!e||typeof e!="object"||!$w)return!1;try{return $w.call(e),!0}catch{}return!1}var iOe=Object.prototype.hasOwnProperty||function(e){return e in this};function vi(e,t){return iOe.call(e,t)}function as(e){return KSe.call(e)}function sOe(e){if(e.name)return e.name;var t=QSe.call(GSe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function VL(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return WL(AO.call(e,0,t.maxStringLength),t)+n}var a=Ti.call(Ti.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,vOe);return zL(a,"single",t)}function vOe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+XSe.call(t.toString(16))}function fd(e){return"Object("+e+")"}function sb(e){return e+" { ? }"}function YR(e,t,r,n){var a=n?jw(r,n):ro.call(r,", ");return e+" ("+t+") {"+a+"}"}function hOe(e){for(var t=0;t=0)return!1;return!0}function mOe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ro.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ro.call(Array(t+1),r)}}function jw(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+ro.call(e,","+r)+` +`+t.prev}function tv(e,t){var r=Tw(e),n=[];if(r){n.length=e.length;for(var a=0;a"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},yOe=gOe,MO=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":yOe(t)},JR=yn,bOe=JSe,xOe=HL,wOe=MO,qL=function(t,r){if(wOe(t)!=="Object")throw new JR("Assertion failed: Type(O) is not Object");if(!xOe(r))throw new JR("Assertion failed: IsPropertyKey(P) is not true, got "+bOe(r));return t[r]},ZR=yn,_Oe=HL,EOe=MO,SOe=function(t,r){if(EOe(t)!=="Object")throw new ZR("Assertion failed: `O` must be an Object");if(!_Oe(r))throw new ZR("Assertion failed: `P` must be a Property Key");return r in t},KL=Function.prototype.toString,au=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Iw,Hv;if(typeof au=="function"&&typeof Object.defineProperty=="function")try{Iw=Object.defineProperty({},"length",{get:function(){throw Hv}}),Hv={},au(function(){throw 42},null,Iw)}catch(e){e!==Hv&&(au=null)}else au=null;var OOe=/^\s*class\b/,Aw=function(t){try{var r=KL.call(t);return OOe.test(r)}catch{return!1}},lb=function(t){try{return Aw(t)?!1:(KL.call(t),!0)}catch{return!1}},qv=Object.prototype.toString,COe="[object Object]",POe="[object Function]",$Oe="[object GeneratorFunction]",kOe="[object HTMLAllCollection]",ROe="[object HTML document.all class]",TOe="[object HTMLCollection]",jOe=typeof Symbol=="function"&&!!Symbol.toStringTag,IOe=!(0 in[,]),Mw=function(){return!1};if(typeof document=="object"){var AOe=document.all;qv.call(AOe)===qv.call(document.all)&&(Mw=function(t){if((IOe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=qv.call(t);return(r===kOe||r===ROe||r===TOe||r===COe)&&t("")==null}catch{}return!1})}var GL=au?function(t){if(Mw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{au(t,null,Iw)}catch(r){if(r!==Hv)return!1}return!Aw(t)&&lb(t)}:function(t){if(Mw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(jOe)return lb(t);if(Aw(t))return!1;var r=qv.call(t);return r!==POe&&r!==$Oe&&!/^\[object HTML/.test(r)?!1:lb(t)},MOe=GL,FOe=Number.MAX_SAFE_INTEGER||9007199254740991,ub,eT;function LOe(){return eT||(eT=1,ub=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),ub}var cb,tT;function NOe(){return tT||(tT=1,cb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),cb}var DOe=CL,FO=function(){return DOe()&&!!Symbol.toStringTag},db,rT;function BOe(){if(rT)return db;rT=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",a=FO();return db=function(i){return typeof i!="object"||i===null?!1:a?t(i):r.call(i)===n},db}var rv={exports:{}},nT;function zOe(){if(nT)return rv.exports;nT=1;var e=Object.prototype.toString,t=PL();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,a=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};rv.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return a(i)}catch{return!1}}}else rv.exports=function(i){return!1};return rv.exports}var fb,aT;function UOe(){if(aT)return fb;aT=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=NOe(),r=GL,n=BOe(),a=zOe(),o=function(u,l){if(typeof u>"u"||u===null)throw new TypeError("Cannot call method on "+u);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var c=l==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var c;if(e&&(Symbol.toPrimitive?c=i(u,Symbol.toPrimitive):a(u)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(u,l);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(u)||a(u))&&(l="string"),o(u,l==="default"?"number":l)},fb}var pb,oT;function VOe(){if(oT)return pb;oT=1;var e=UOe();return pb=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},pb}var vb,iT;function WOe(){if(iT)return vb;iT=1;var e=ai,t=FO(),r,n,a,o;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),a={};var i=function(){throw a};o={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(o[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,l="[object RegExp]";return vb=t?function(d){if(!d||typeof d!="object")return!1;var p=u(d,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{n(d,o)}catch(m){return m===a}}:function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:s(d)===l},vb}var hb,sT;function HOe(){if(sT)return hb;sT=1;var e=ai,t=WOe(),r=e("RegExp.prototype.exec"),n=yn;return hb=function(o){if(!t(o))throw new n("`regex` must be a RegExp");return function(s){return r(o,s)!==null}},hb}var qOe=wo,KOe=qOe("%String%"),GOe=yn,QL=function(t){if(typeof t=="symbol")throw new GOe("Cannot convert a Symbol value to a string");return KOe(t)},QOe=hp,XOe=QL,YOe=ai,lT=YOe("String.prototype.replace"),XL=/^\s$/.test("᠎"),JOe=XL?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ZOe=XL?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,YL=function(){var t=XOe(QOe(this));return lT(lT(t,JOe,""),ZOe,"")},eCe=YL,uT="​",Al="᠎",JL=function(){return String.prototype.trim&&uT.trim()===uT&&Al.trim()===Al&&("_"+Al).trim()==="_"+Al&&(Al+"_").trim()===Al+"_"?String.prototype.trim:eCe},tCe=Bc,rCe=JL,nCe=function(){var t=rCe();return tCe(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},aCe=Ay,oCe=Bc,iCe=hp,sCe=YL,ZL=JL,lCe=nCe,uCe=aCe(ZL()),eN=function(t){return iCe(t),uCe(t)};oCe(eN,{getPolyfill:ZL,implementation:sCe,shim:lCe});var tN=eN,mb,cT;function cCe(){if(cT)return mb;cT=1;var e=wo,t=e("%Number%"),r=e("%RegExp%"),n=yn,a=e("%parseInt%"),o=ai,i=HOe(),s=o("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),d=["…","​","￾"].join(""),p=new r("["+d+"]","g"),h=i(p),m=tN;return mb=function g(_){if(typeof _!="string")throw new n("Assertion failed: `argument` is not a String");if(u(_))return t(a(s(_,2),2));if(l(_))return t(a(s(_,2),8));if(h(_)||c(_))return NaN;var x=m(_);return x!==_?g(x):t(_)},mb}var dCe=wo,dT=yn,fT=dCe("%Number%"),fCe=LOe(),pCe=VOe(),vCe=cCe(),hCe=function(t){var r=fCe(t)?t:pCe(t,fT);if(typeof r=="symbol")throw new dT("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new dT("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?vCe(r):fT(r)},mCe=Math.floor,gCe=function(t){return typeof t=="bigint"?t:mCe(t)},pT=gCe,yCe=yn,bCe=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new yCe("argument must be a Number or a BigInt");var r=t<0?-pT(-t):pT(t);return r===0?0:r},rN=Number.isNaN||function(t){return t!==t},xCe=rN,wCe=function(e){return(typeof e=="number"||typeof e=="bigint")&&!xCe(e)&&e!==1/0&&e!==-1/0},_Ce=hCe,ECe=bCe,SCe=rN,OCe=wCe,CCe=function(t){var r=_Ce(t);return SCe(r)||r===0?0:OCe(r)?ECe(r):r},vT=FOe,PCe=CCe,$Ce=function(t){var r=PCe(t);return r<=0?0:r>vT?vT:r},kCe=yn,RCe=qL,TCe=$Ce,jCe=MO,ICe=function(t){if(jCe(t)!=="Object")throw new kCe("Assertion failed: `obj` must be an Object");return TCe(RCe(t,"length"))},ACe=Object,MCe=ACe,FCe=hp,LCe=function(t){return FCe(t),MCe(t)},NCe=String.prototype.valueOf,DCe=function(t){try{return NCe.call(t),!0}catch{return!1}},BCe=Object.prototype.toString,zCe="[object String]",UCe=FO(),VCe=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:UCe?DCe(t):BCe.call(t)===zCe},WCe=ai,HCe=yn,qCe=DSe,KCe=qL,GCe=SOe,QCe=MOe,XCe=ICe,YCe=LCe,JCe=QL,ZCe=VCe,ePe=WCe("String.prototype.split"),hT=Object("a"),tPe=hT[0]!=="a"||!(0 in hT),nN=function(t){var r=YCe(this),n=tPe&&ZCe(this)?ePe(this,""):r,a=XCe(n);if(!QCe(t))throw new HCe("Array.prototype.forEach callback must be a function");var o;arguments.length>1&&(o=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},hN={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:bb,chinese:function(){return 0},croatian:bb,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bb,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function TPe(e){var t={};return Om(LO(e),function(r){var n=r[0],a=r[1];Om(a,function(o){t[o]=n})}),t}function jPe(e,t){var r=TPe(e.pluralTypeToLanguages);return r[t]||r[vN.call(t,/-/,1)[0]]||r.en}function IPe(e,t,r){return e.pluralTypes[t](r)}function APe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=jPe(t,r),n&&(e[r]=n)),n}}function yT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function MPe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Kv||r===Kv)throw new RangeError('"'+Kv+'" token is reserved for pluralization');return new RegExp(yT(t)+"(.*?)"+yT(r),"g")}var FPe=APe(),LPe=/%\{(.*?)\}/g;function NO(e,t,r,n,a,o){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||LPe,u=o||pN,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var c=a||hN,d=vN.call(e,Kv),p=r||"en",h=FPe(c,p),m=IPe(c,h,l.smart_count);i=kPe(d[m]||d[0])}return i=u.call(i,s,function(g,_){return!fN(l,_)||l[_]==null?g:l[_]}),i}function oi(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?NO:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||RPe,this.replaceImplementation=t.replace||pN,this.tokenRegex=MPe(t.interpolation),this.pluralRules=t.pluralRules||hN}oi.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};oi.prototype.extend=function(e,t){Om(LO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.extend(a,o):this.phrases[o]=a},this)};oi.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Om(LO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.unset(a,o):delete this.phrases[o]},this)};oi.prototype.clear=function(){this.phrases={}};oi.prototype.replace=function(e){this.clear(),this.extend(e)};oi.prototype.t=function(e,t){var r,n,a=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof a._=="string")r=a._;else if(this.onMissingKey){var o=this.onMissingKey;n=o(e,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=NO(r,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};oi.prototype.has=function(e){return fN(this.phrases,e)};oi.transformPhrase=function(t,r,n){return NO(t,r,n)};var NPe=oi;const bT=pr(NPe);var ou=function(){return ou=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt||o&&i&&u&&!s&&!l||n&&i&&u||!r&&u||!a)return 1;if(!n&&!o&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var u2e=l2e,xb=Zm,c2e=Gf,d2e=ug,f2e=r2e,p2e=a2e,v2e=Qf,h2e=u2e,m2e=ig,g2e=Mn;function y2e(e,t,r){t.length?t=xb(t,function(o){return g2e(o)?function(i){return c2e(i,o.length===1?o[0]:o)}:o}):t=[m2e];var n=-1;t=xb(t,v2e(d2e));var a=f2e(e,function(o,i,s){var u=xb(t,function(l){return l(o)});return{criteria:u,index:++n,value:o}});return p2e(a,function(o,i){return h2e(o,i,r)})}var b2e=y2e,x2e=b2e,wT=Mn;function w2e(e,t,r,n){return e==null?[]:(wT(t)||(t=t==null?[]:[t]),r=n?void 0:r,wT(r)||(r=r==null?[]:[r]),x2e(e,t,r))}var _2e=w2e;const E2e=pr(_2e);var S2e=mN;function O2e(e,t){var r=[];return S2e(e,function(n,a,o){t(n,a,o)&&r.push(n)}),r}var C2e=O2e,P2e=VA,$2e=C2e,k2e=ug,R2e=Mn;function T2e(e,t){var r=R2e(e)?P2e:$2e;return r(e,k2e(t))}var j2e=T2e;const I2e=pr(j2e);var A2e=wM,M2e=ug,F2e=1;function L2e(e){return M2e(typeof e=="function"?e:A2e(e,F2e))}var N2e=L2e;const D2e=pr(N2e);function Xo(e){return Array.isArray?Array.isArray(e):bN(e)==="[object Array]"}const B2e=1/0;function z2e(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-B2e?"-0":t}function U2e(e){return e==null?"":z2e(e)}function so(e){return typeof e=="string"}function gN(e){return typeof e=="number"}function V2e(e){return e===!0||e===!1||W2e(e)&&bN(e)=="[object Boolean]"}function yN(e){return typeof e=="object"}function W2e(e){return yN(e)&&e!==null}function Un(e){return e!=null}function wb(e){return!e.trim().length}function bN(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const H2e="Incorrect 'index' type",q2e=e=>`Invalid value for key ${e}`,K2e=e=>`Pattern length exceeds max of ${e}.`,G2e=e=>`Missing ${e} property in key`,Q2e=e=>`Property 'weight' in key '${e}' must be a positive integer`,_T=Object.prototype.hasOwnProperty;class X2e{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let a=xN(n);this._keys.push(a),this._keyMap[a.id]=a,r+=a.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function xN(e){let t=null,r=null,n=null,a=1,o=null;if(so(e)||Xo(e))n=e,t=ET(e),r=Fw(e);else{if(!_T.call(e,"name"))throw new Error(G2e("name"));const i=e.name;if(n=i,_T.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(Q2e(i));t=ET(i),r=Fw(i),o=e.getFn}return{path:t,id:r,weight:a,src:n,getFn:o}}function ET(e){return Xo(e)?e:e.split(".")}function Fw(e){return Xo(e)?e.join("."):e}function Y2e(e,t){let r=[],n=!1;const a=(o,i,s)=>{if(Un(o))if(!i[s])r.push(o);else{let u=i[s];const l=o[u];if(!Un(l))return;if(s===i.length-1&&(so(l)||gN(l)||V2e(l)))r.push(U2e(l));else if(Xo(l)){n=!0;for(let c=0,d=l.length;ce.score===t.score?e.idx{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,so(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();so(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r{let i=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Un(i)){if(Xo(i)){let s=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:l,value:c}=u.pop();if(Un(c))if(so(c)&&!wb(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xo(c)&&c.forEach((d,p)=>{u.push({nestedArrIndex:p,value:d})})}n.$[o]=s}else if(so(i)&&!wb(i)){let s={v:i,n:this.norm.get(i)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function wN(e,t,{getFn:r=it.getFn,fieldNormWeight:n=it.fieldNormWeight}={}){const a=new DO({getFn:r,fieldNormWeight:n});return a.setKeys(e.map(xN)),a.setSources(t),a.create(),a}function a$e(e,{getFn:t=it.getFn,fieldNormWeight:r=it.fieldNormWeight}={}){const{keys:n,records:a}=e,o=new DO({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(a),o}function nv(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:a=it.distance,ignoreLocation:o=it.ignoreLocation}={}){const i=t/e.length;if(o)return i;const s=Math.abs(n-r);return a?i+s/a:s?1:i}function o$e(e=[],t=it.minMatchCharLength){let r=[],n=-1,a=-1,o=0;for(let i=e.length;o=t&&r.push([n,a]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const Es=32;function i$e(e,t,r,{location:n=it.location,distance:a=it.distance,threshold:o=it.threshold,findAllMatches:i=it.findAllMatches,minMatchCharLength:s=it.minMatchCharLength,includeMatches:u=it.includeMatches,ignoreLocation:l=it.ignoreLocation}={}){if(t.length>Es)throw new Error(K2e(Es));const c=t.length,d=e.length,p=Math.max(0,Math.min(n,d));let h=o,m=p;const g=s>1||u,_=g?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let w=nv(t,{currentLocation:x,expectedLocation:p,distance:a,ignoreLocation:l});if(h=Math.min(w,h),m=x+c,g){let O=0;for(;O=P;M-=1){let I=M-1,U=r[e.charAt(I)];if(g&&(_[I]=+!!U),R[M]=(R[M+1]<<1|1)&U,w&&(R[M]|=(b[M+1]|b[M])<<1|1|b[M+1]),R[M]&v&&(y=nv(t,{errors:w,currentLocation:I,expectedLocation:p,distance:a,ignoreLocation:l}),y<=h)){if(h=y,m=I,m<=p)break;P=Math.max(1,2*p-m)}}if(nv(t,{errors:w+1,currentLocation:p,expectedLocation:p,distance:a,ignoreLocation:l})>h)break;b=R}const S={isMatch:m>=0,score:Math.max(.001,y)};if(g){const w=o$e(_,s);w.length?u&&(S.indices=w):S.isMatch=!1}return S}function s$e(e){let t={};for(let r=0,n=e.length;r{this.chunks.push({pattern:p,alphabet:s$e(p),startIndex:h})},d=this.pattern.length;if(d>Es){let p=0;const h=d%Es,m=d-h;for(;p{const{isMatch:x,score:b,indices:y}=i$e(t,m,g,{location:a+_,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:u,includeMatches:n,ignoreLocation:l});x&&(p=!0),d+=b,x&&y&&(c=[...c,...y])});let h={isMatch:p,score:p?d/this.chunks.length:1};return p&&n&&(h.indices=c),h}}class os{constructor(t){this.pattern=t}static isMultiMatch(t){return ST(t,this.multiRegex)}static isSingleMatch(t){return ST(t,this.singleRegex)}search(){}}function ST(e,t){const r=e.match(t);return r?r[1]:null}class l$e extends os{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class u$e extends os{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class c$e extends os{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class d$e extends os{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class f$e extends os{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class p$e extends os{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class EN extends os{constructor(t,{location:r=it.location,threshold:n=it.threshold,distance:a=it.distance,includeMatches:o=it.includeMatches,findAllMatches:i=it.findAllMatches,minMatchCharLength:s=it.minMatchCharLength,isCaseSensitive:u=it.isCaseSensitive,ignoreLocation:l=it.ignoreLocation}={}){super(t),this._bitapSearch=new _N(t,{location:r,threshold:n,distance:a,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class SN extends os{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const a=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,a.push([n,r-1]);const i=!!a.length;return{isMatch:i,score:i?0:1,indices:a}}}const Lw=[l$e,SN,c$e,d$e,p$e,f$e,u$e,EN],OT=Lw.length,v$e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,h$e="|";function m$e(e,t={}){return e.split(h$e).map(r=>{let n=r.trim().split(v$e).filter(o=>o&&!!o.trim()),a=[];for(let o=0,i=n.length;o!!(e[Cm.AND]||e[Cm.OR]),x$e=e=>!!e[Bw.PATH],w$e=e=>!Xo(e)&&yN(e)&&!zw(e),CT=e=>({[Cm.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ON(e,t,{auto:r=!0}={}){const n=a=>{let o=Object.keys(a);const i=x$e(a);if(!i&&o.length>1&&!zw(a))return n(CT(a));if(w$e(a)){const u=i?a[Bw.PATH]:o[0],l=i?a[Bw.PATTERN]:a[u];if(!so(l))throw new Error(q2e(u));const c={keyId:Fw(u),pattern:l};return r&&(c.searcher=Dw(l,t)),c}let s={children:[],operator:o[0]};return o.forEach(u=>{const l=a[u];Xo(l)&&l.forEach(c=>{s.children.push(n(c))})}),s};return zw(e)||(e=CT(e)),n(e)}function _$e(e,{ignoreFieldNorm:t=it.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:a,norm:o,score:i})=>{const s=a?a.weight:null;n*=Math.pow(i===0&&s?Number.EPSILON:i,(s||1)*(t?1:o))}),r.score=n})}function E$e(e,t){const r=e.matches;t.matches=[],Un(r)&&r.forEach(n=>{if(!Un(n.indices)||!n.indices.length)return;const{indices:a,value:o}=n;let i={indices:a,value:o};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function S$e(e,t){t.score=e.score}function O$e(e,t,{includeMatches:r=it.includeMatches,includeScore:n=it.includeScore}={}){const a=[];return r&&a.push(E$e),n&&a.push(S$e),e.map(o=>{const{idx:i}=o,s={item:t[i],refIndex:i};return a.length&&a.forEach(u=>{u(o,s)}),s})}class zc{constructor(t,r={},n){this.options={...it,...r},this.options.useExtendedSearch,this._keyStore=new X2e(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof DO))throw new Error(H2e);this._myIndex=r||wN(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Un(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,a=this._docs.length;n-1&&(u=u.slice(0,r)),O$e(u,this._docs,{includeMatches:n,includeScore:a})}_searchStringList(t){const r=Dw(t,this.options),{records:n}=this._myIndex,a=[];return n.forEach(({v:o,i,n:s})=>{if(!Un(o))return;const{isMatch:u,score:l,indices:c}=r.searchIn(o);u&&a.push({item:o,idx:i,matches:[{score:l,value:o,norm:s,indices:c}]})}),a}_searchLogical(t){const r=ON(t,this.options),n=(s,u,l)=>{if(!s.children){const{keyId:d,searcher:p}=s,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:p});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}const c=[];for(let d=0,p=s.children.length;d{if(Un(s)){let l=n(r,s,u);l.length&&(o[u]||(o[u]={idx:u,item:s,matches:[]},i.push(o[u])),l.forEach(({matches:c})=>{o[u].matches.push(...c)}))}}),i}_searchObjectList(t){const r=Dw(t,this.options),{keys:n,records:a}=this._myIndex,o=[];return a.forEach(({$:i,i:s})=>{if(!Un(i))return;let u=[];n.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:i[c],searcher:r}))}),u.length&&o.push({idx:s,item:i,matches:u})}),o}_findMatches({key:t,value:r,searcher:n}){if(!Un(r))return[];let a=[];if(Xo(r))r.forEach(({v:o,i,n:s})=>{if(!Un(o))return;const{isMatch:u,score:l,indices:c}=n.searchIn(o);u&&a.push({score:l,key:t,value:o,idx:i,norm:s,indices:c})});else{const{v:o,n:i}=r,{isMatch:s,score:u,indices:l}=n.searchIn(o);s&&a.push({score:u,key:t,value:o,norm:i,indices:l})}return a}}zc.version="7.0.0";zc.createIndex=wN;zc.parseIndex=a$e;zc.config=it;zc.parseQuery=ON;b$e(y$e);const Po=(e,t={})=>{const r="/api";return t.headers=t.headers||new Headers({Accept:"application/json"}),t.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),kJ(`${r}${e}`,t)},C$e=(e,t)=>{const r=new zc(e,{keys:Object.keys(t),includeScore:!0});for(const n of Object.values(t))console.log("$fuse",n,r.search(n));return e},P$e=(e,t)=>{const{fuse:r}=t;return delete t.fuse,Object.keys(t).length>0&&(e=I2e(e,D2e(t))),r!==void 0&&(e=C$e(e,r)),e},_b=(e,t,r)=>{if(t===void 0&&r===void 0)return e;const{field:n,order:a}=r;return E2e(P$e(e,t),[n],[a.toLowerCase()])},$$e={getList:async(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={sort:JSON.stringify([a,o]),range:JSON.stringify([(r-1)*n,r*n-1]),filter:JSON.stringify(t.filter)},s=`/${e}?${ol.stringify(i)}`,{json:u}=await Po(s);return console.log("$list",u,t),{data:_b(u,t.filter,t.sort),total:u.length}},getOne:async(e,t)=>{const{json:r}=await Po(`/${e}/${t.id}`);return{data:r}},getMany:async(e,t)=>{const r={filter:JSON.stringify({ids:t.ids})},n=`/${e}?${ol.stringify(r)}`,{json:a}=await Po(n);return{data:_b(a,t.filter,t.sort)}},getManyReference:async(e,t)=>{const r=`/${e}/${t.id}/${t.target}`,{json:n}=await Po(r);return{data:_b(n,t.filter,t.sort),total:n.length}},create:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:t.data}),update:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{id:t.data.id,data:t.data}),updateMany:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:[]}),delete:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify([t.id])}),{data:[]}},deleteMany:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify(t.ids)}),{data:[]}}};var CN={exports:{}};(function(e,t){(function(r,n){e.exports=n(f)})(Ss,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,d,p){if(i(c),d=u(d,!0),i(p),s)try{return l(c,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[d]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),d=function(p,h,m){var g,_,x,b=p&d.F,y=p&d.G,E=p&d.S,v=p&d.P,S=p&d.B,w=p&d.W,O=y?s:s[h]||(s[h]={}),C=O.prototype,P=y?i:E?i[h]:(i[h]||{}).prototype;for(g in y&&(m=h),m)(_=!b&&P&&P[g]!==void 0)&&c(O,g)||(x=_?P[g]:m[g],O[g]=y&&typeof P[g]!="function"?m[g]:S&&_?u(x,i):w&&P[g]==x?function($){var R=function(A,M,I){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(A);case 2:return new $(A,M)}return new $(A,M,I)}return $.apply(this,arguments)};return R.prototype=$.prototype,R}(x):v&&typeof x=="function"?u(Function.call,x):x,v&&((O.virtual||(O.virtual={}))[g]=x,p&d.R&&C&&!C[g]&&l(C,g,x)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,d){l&&!s(l=d?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;ddocument.F=Object<\/script>"),p.close(),d=p.F;m--;)delete d.prototype[u[m]];return d()};n.exports=Object.create||function(p,h){var m;return p!==null?(c.prototype=i(p),m=new c,c.prototype=null,m[l]=p):m=d(),h===void 0?m:s(m,h)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,d){var p,h=s(c),m=0,g=[];for(p in h)p!=l&&i(h,p)&&g.push(p);for(;d.length>m;)i(h,p=d[m++])&&(~u(g,p)||g.push(p));return g}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(h,m){try{return h[m]}catch{}}(c=Object(l),s))=="string"?d:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=_(o(49)),s=_(o(76)),u=_(o(81)),l=_(o(89)),c=_(o(93)),d=function(C){if(C&&C.__esModule)return C;var P={};if(C!=null)for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(P[$]=C[$]);return P.default=C,P}(o(94)),p=_(o(132)),h=_(o(133)),m=_(o(138)),g=o(139);function _(C){return C&&C.__esModule?C:{default:C}}var x=d.default,b=(0,l.default)(x),y=(0,m.default)(h.default,g.rgb2yuv,function(C){var P,$=(0,u.default)(C,3),R=$[0],A=$[1],M=$[2];return[(P=R,P<.25?1:P<.5?.9-P:1.1-P),A,M]},g.yuv2rgb,p.default),E=function(C){return function(P){return{className:[P.className,C.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},C.style||{})}}},v=function(C,P){var $=(0,l.default)(P);for(var R in C)$.indexOf(R)===-1&&$.push(R);return $.reduce(function(A,M){return A[M]=function(I,U){if(I===void 0)return U;if(U===void 0)return I;var W=I===void 0?"undefined":(0,i.default)(I),T=U===void 0?"undefined":(0,i.default)(U);switch(W){case"string":switch(T){case"string":return[U,I].filter(Boolean).join(" ");case"object":return E({className:I,style:U});case"function":return function(V){for(var X=arguments.length,ie=Array(X>1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae2?$-2:0),A=2;A<$;A++)R[A-2]=arguments[A];if(P===null)return C;Array.isArray(P)||(P=[P]);var M=P.map(function(U){return C[U]}).filter(Boolean),I=M.reduce(function(U,W){return typeof W=="string"?U.className=[U.className,W].filter(Boolean).join(" "):(W===void 0?"undefined":(0,i.default)(W))==="object"?U.style=(0,s.default)({},U.style,W):typeof W=="function"&&(U=(0,s.default)({},U,W.apply(void 0,[U].concat(R)))),U},{className:"",style:{}});return I.className||delete I.className,(0,l.default)(I.style).length===0&&delete I.style,I},w=a.invertTheme=function(C){return(0,l.default)(C).reduce(function(P,$){return P[$]=/^base/.test($)?y(C[$]):$==="scheme"?C[$]+":inverted":C[$],P},{})},O=(a.createStyling=(0,c.default)(function(C){for(var P=arguments.length,$=Array(P>3?P-3:0),R=3;R1&&arguments[1]!==void 0?arguments[1]:{},M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=A.defaultBase16,U=I===void 0?x:I,W=A.base16Themes,T=W===void 0?null:W,V=O(M,T);V&&(M=(0,s.default)({},V,M));var X=b.reduce(function(ye,be){return ye[be]=M[be]||U[be],ye},{}),ie=(0,l.default)(M).reduce(function(ye,be){return b.indexOf(be)===-1&&(ye[be]=M[be]),ye},{}),ae=C(X),pe=v(ie,ae);return(0,c.default)(S,2).apply(void 0,[pe].concat($))},3),a.getBase16Theme=function(C,P){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var $=C.split(":"),R=(0,u.default)($,2),A=R[0],M=R[1];C=(P||{})[A]||d[A],M==="inverted"&&(C=w(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(v,S,w){return Function.prototype.apply.call(v,S,w)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:function(v){return Object.getOwnPropertyNames(v)};var l=Number.isNaN||function(v){return v!=v};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(v,S){return new Promise(function(w,O){function C($){v.removeListener(S,P),O($)}function P(){typeof v.removeListener=="function"&&v.removeListener("error",C),w([].slice.call(arguments))}E(v,S,P,{once:!0}),S!=="error"&&function($,R,A){typeof $.on=="function"&&E($,"error",R,A)}(v,C,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var d=10;function p(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function h(v){return v._maxListeners===void 0?c.defaultMaxListeners:v._maxListeners}function m(v,S,w,O){var C,P,$,R;if(p(w),(P=v._events)===void 0?(P=v._events=Object.create(null),v._eventsCount=0):(P.newListener!==void 0&&(v.emit("newListener",S,w.listener?w.listener:w),P=v._events),$=P[S]),$===void 0)$=P[S]=w,++v._eventsCount;else if(typeof $=="function"?$=P[S]=O?[w,$]:[$,w]:O?$.unshift(w):$.push(w),(C=h(v))>0&&$.length>C&&!$.warned){$.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=v,A.type=S,A.count=$.length,R=A,console&&console.warn&&console.warn(R)}return v}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(v,S,w){var O={fired:!1,wrapFn:void 0,target:v,type:S,listener:w},C=g.bind(O);return C.listener=w,O.wrapFn=C,C}function x(v,S,w){var O=v._events;if(O===void 0)return[];var C=O[S];return C===void 0?[]:typeof C=="function"?w?[C.listener||C]:[C]:w?function(P){for(var $=new Array(P.length),R=0;R<$.length;++R)$[R]=P[R].listener||P[R];return $}(C):y(C,C.length)}function b(v){var S=this._events;if(S!==void 0){var w=S[v];if(typeof w=="function")return 1;if(w!==void 0)return w.length}return 0}function y(v,S){for(var w=new Array(S),O=0;O0&&(P=S[0]),P instanceof Error)throw P;var $=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw $.context=P,$}var R=C[v];if(R===void 0)return!1;if(typeof R=="function")u(R,this,S);else{var A=R.length,M=y(R,A);for(w=0;w=0;P--)if(w[P]===S||w[P].listener===S){$=w[P].listener,C=P;break}if(C<0)return this;C===0?w.shift():function(R,A){for(;A+1=0;O--)this.removeListener(v,S[O]);return this},c.prototype.listeners=function(v){return x(this,v,!0)},c.prototype.rawListeners=function(v){return x(this,v,!1)},c.listenerCount=function(v,S){return typeof v.listenerCount=="function"?v.listenerCount(S):b.call(v,S)},c.prototype.listenerCount=b,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var d,p,h=String(s(l)),m=i(c),g=h.length;return m<0||m>=g?u?"":void 0:(d=h.charCodeAt(m))<55296||d>56319||m+1===g||(p=h.charCodeAt(m+1))<56320||p>57343?u?h.charAt(m):d:u?h.slice(m,m+2):p-56320+(d-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,d){return s.call(u,c,d)};case 3:return function(c,d,p){return s.call(u,c,d,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,d,p){c.prototype=i(l,{next:s(1,p)}),u(c,d+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var d,p=u(c),h=p.length,m=0;h>m;)i.f(l,d=p[m++],c[d]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,d,p){var h,m=i(c),g=s(m.length),_=u(p,g);if(l&&d!=d){for(;g>_;)if((h=m[_++])!=h)return!0}else for(;g>_;_++)if((l||_ in m)&&m[_]===d)return l||_||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,d){this._t=l(c),this._i=0,this._k=d},function(){var c=this._t,d=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),d=o(68).KEY,p=o(8),h=o(26),m=o(28),g=o(17),_=o(2),x=o(30),b=o(31),y=o(69),E=o(70),v=o(10),S=o(11),w=o(18),O=o(9),C=o(23),P=o(16),$=o(38),R=o(71),A=o(72),M=o(32),I=o(7),U=o(13),W=A.f,T=I.f,V=R.f,X=i.Symbol,ie=i.JSON,ae=ie&&ie.stringify,pe=_("_hidden"),ye=_("toPrimitive"),be={}.propertyIsEnumerable,_e=h("symbol-registry"),ke=h("symbols"),$e=h("op-symbols"),Ee=Object.prototype,ze=typeof X=="function"&&!!M.f,je=i.QObject,De=!je||!je.prototype||!je.prototype.findChild,Me=u&&p(function(){return $(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a!=7})?function(K,ne,se){var Ae=W(Ee,ne);Ae&&delete Ee[ne],T(K,ne,se),Ae&&K!==Ee&&T(Ee,ne,Ae)}:T,He=function(K){var ne=ke[K]=$(X.prototype);return ne._k=K,ne},et=ze&&typeof X.iterator=="symbol"?function(K){return typeof K=="symbol"}:function(K){return K instanceof X},ft=function(K,ne,se){return K===Ee&&ft($e,ne,se),v(K),ne=C(ne,!0),v(se),s(ke,ne)?(se.enumerable?(s(K,pe)&&K[pe][ne]&&(K[pe][ne]=!1),se=$(se,{enumerable:P(0,!1)})):(s(K,pe)||T(K,pe,P(1,{})),K[pe][ne]=!0),Me(K,ne,se)):T(K,ne,se)},gt=function(K,ne){v(K);for(var se,Ae=y(ne=O(ne)),We=0,Le=Ae.length;Le>We;)ft(K,se=Ae[We++],ne[se]);return K},z=function(K){var ne=be.call(this,K=C(K,!0));return!(this===Ee&&s(ke,K)&&!s($e,K))&&(!(ne||!s(this,K)||!s(ke,K)||s(this,pe)&&this[pe][K])||ne)},Q=function(K,ne){if(K=O(K),ne=C(ne,!0),K!==Ee||!s(ke,ne)||s($e,ne)){var se=W(K,ne);return!se||!s(ke,ne)||s(K,pe)&&K[pe][ne]||(se.enumerable=!0),se}},Z=function(K){for(var ne,se=V(O(K)),Ae=[],We=0;se.length>We;)s(ke,ne=se[We++])||ne==pe||ne==d||Ae.push(ne);return Ae},oe=function(K){for(var ne,se=K===Ee,Ae=V(se?$e:O(K)),We=[],Le=0;Ae.length>Le;)!s(ke,ne=Ae[Le++])||se&&!s(Ee,ne)||We.push(ke[ne]);return We};ze||(c((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var K=g(arguments.length>0?arguments[0]:void 0),ne=function(se){this===Ee&&ne.call($e,se),s(this,pe)&&s(this[pe],K)&&(this[pe][K]=!1),Me(this,K,P(1,se))};return u&&De&&Me(Ee,K,{configurable:!0,set:ne}),He(K)}).prototype,"toString",function(){return this._k}),A.f=Q,I.f=ft,o(41).f=R.f=Z,o(19).f=z,M.f=oe,u&&!o(14)&&c(Ee,"propertyIsEnumerable",z,!0),x.f=function(K){return He(_(K))}),l(l.G+l.W+l.F*!ze,{Symbol:X});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),de=0;he.length>de;)_(he[de++]);for(var ge=U(_.store),Y=0;ge.length>Y;)b(ge[Y++]);l(l.S+l.F*!ze,"Symbol",{for:function(K){return s(_e,K+="")?_e[K]:_e[K]=X(K)},keyFor:function(K){if(!et(K))throw TypeError(K+" is not a symbol!");for(var ne in _e)if(_e[ne]===K)return ne},useSetter:function(){De=!0},useSimple:function(){De=!1}}),l(l.S+l.F*!ze,"Object",{create:function(K,ne){return ne===void 0?$(K):gt($(K),ne)},defineProperty:ft,defineProperties:gt,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:oe});var H=p(function(){M.f(1)});l(l.S+l.F*H,"Object",{getOwnPropertySymbols:function(K){return M.f(w(K))}}),ie&&l(l.S+l.F*(!ze||p(function(){var K=X();return ae([K])!="[null]"||ae({a:K})!="{}"||ae(Object(K))!="{}"})),"JSON",{stringify:function(K){for(var ne,se,Ae=[K],We=1;arguments.length>We;)Ae.push(arguments[We++]);if(se=ne=Ae[1],(S(ne)||K!==void 0)&&!et(K))return E(ne)||(ne=function(Le,Pe){if(typeof se=="function"&&(Pe=se.call(this,Le,Pe)),!et(Pe))return Pe}),Ae[1]=ne,ae.apply(ie,Ae)}}),X.prototype[ye]||o(6)(X.prototype,ye,X.prototype.valueOf),m(X,"Symbol"),m(Math,"Math",!0),m(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,d=Object.isExtensible||function(){return!0},p=!o(8)(function(){return d(Object.preventExtensions({}))}),h=function(g){l(g,i,{value:{i:"O"+ ++c,w:{}}})},m=n.exports={KEY:i,NEED:!1,fastKey:function(g,_){if(!s(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!u(g,i)){if(!d(g))return"F";if(!_)return"E";h(g)}return g[i].i},getWeak:function(g,_){if(!u(g,i)){if(!d(g))return!0;if(!_)return!1;h(g)}return g[i].w},onFreeze:function(g){return p&&m.NEED&&d(g)&&!u(g,i)&&h(g),g}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),d=s.f;if(d)for(var p,h=d(l),m=u.f,g=0;h.length>g;)m.call(l,p=h[g++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),d=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(h,m){if(h=u(h),m=l(m,!0),d)try{return p(h,m)}catch{}if(c(h,m))return s(!i.f.call(h,m),h[m])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var E,v=d(arguments[x++]),S=b?s(v).concat(b(v)):s(v),w=S.length,O=0;w>O;)E=S[O++],i&&!y.call(v,E)||(g[E]=v[E]);return g}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(d,p){var h=[],m=!0,g=!1,_=void 0;try{for(var x,b=(0,s.default)(d);!(m=(x=b.next()).done)&&(h.push(x.value),!p||h.length!==p);m=!0);}catch(y){g=!0,_=y}finally{try{!m&&b.return&&b.return()}finally{if(g)throw _}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var d=(s.Object||{})[l]||Object[l],p={};p[l]=c(d),i(i.S+i.F*u(function(){d(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,x=parseInt,b=typeof i=="object"&&i&&i.Object===Object&&i,y=typeof self=="object"&&self&&self.Object===Object&&self,E=b||y||Function("return this")();function v(Y,H,K){switch(K.length){case 0:return Y.call(H);case 1:return Y.call(H,K[0]);case 2:return Y.call(H,K[0],K[1]);case 3:return Y.call(H,K[0],K[1],K[2])}return Y.apply(H,K)}function S(Y,H){return!!(Y&&Y.length)&&function(K,ne,se){if(ne!=ne)return function(Le,Pe,Xe,at){for(var wt=Le.length,bt=Xe+-1;++bt-1}function w(Y){return Y!=Y}function O(Y,H){for(var K=Y.length,ne=0;K--;)Y[K]===H&&ne++;return ne}function C(Y,H){for(var K=-1,ne=Y.length,se=0,Ae=[];++K2?$:void 0);function be(Y){return he(Y)?ie(Y):{}}function _e(Y){return!(!he(Y)||function(H){return!!U&&U in H}(Y))&&(function(H){var K=he(H)?V.call(H):"";return K=="[object Function]"||K=="[object GeneratorFunction]"}(Y)||function(H){var K=!1;if(H!=null&&typeof H.toString!="function")try{K=!!(H+"")}catch{}return K}(Y)?X:m).test(function(H){if(H!=null){try{return W.call(H)}catch{}try{return H+""}catch{}}return""}(Y))}function ke(Y,H,K,ne){for(var se=-1,Ae=Y.length,We=K.length,Le=-1,Pe=H.length,Xe=ae(Ae-We,0),at=Array(Pe+Xe),wt=!ne;++Le1&&kt.reverse(),at&&Pe1?"& ":"")+H[ne],H=H.join(K>2?", ":" "),Y.replace(l,`{ +/* [wrapped with `+H+`] */ +`)}function gt(Y,H){return!!(H=H??9007199254740991)&&(typeof Y=="number"||_.test(Y))&&Y>-1&&Y%1==0&&Y1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[m]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(C,P,$){switch($.length){case 0:return C.call(P);case 1:return C.call(P,$[0]);case 2:return C.call(P,$[0],$[1]);case 3:return C.call(P,$[0],$[1],$[2])}return C.apply(P,$)}function d(C,P){for(var $=-1,R=P.length,A=C.length;++$-1&&A%1==0&&A<=9007199254740991}(R.length)&&!function(A){var M=function(I){var U=typeof I;return!!I&&(U=="object"||U=="function")}(A)?m.call(A):"";return M=="[object Function]"||M=="[object GeneratorFunction]"}(R)}($)}(P)&&h.call(P,"callee")&&(!_.call(P,"callee")||m.call(P)=="[object Arguments]")}(C)||!!(x&&C&&C[x])}var E=Array.isArray,v,S,w,O=(S=function(C){var P=(C=function(A,M,I,U,W){var T=-1,V=A.length;for(I||(I=y),W||(W=[]);++T2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var j,F=_(D);if(B){var N=_(this).constructor;j=Reflect.construct(F,arguments,N)}else j=F.apply(this,arguments);return b(this,j)}}o.r(a);var E=o(0),v=o.n(E);function S(){var D=this.constructor.getDerivedStateFromProps(this.props,this.state);D!=null&&this.setState(D)}function w(D){this.setState((function(B){var j=this.constructor.getDerivedStateFromProps(D,B);return j??null}).bind(this))}function O(D,B){try{var j=this.props,F=this.state;this.props=D,this.state=B,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(j,F)}finally{this.props=j,this.state=F}}function C(D){var B=D.prototype;if(!B||!B.isReactComponent)throw new Error("Can only polyfill class components");if(typeof D.getDerivedStateFromProps!="function"&&typeof B.getSnapshotBeforeUpdate!="function")return D;var j=null,F=null,N=null;if(typeof B.componentWillMount=="function"?j="componentWillMount":typeof B.UNSAFE_componentWillMount=="function"&&(j="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps=="function"?F="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate=="function"?N="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),j!==null||F!==null||N!==null){var ee=D.displayName||D.name,me=typeof D.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+ee+" uses "+me+" but also contains the following legacy lifecycles:"+(j!==null?` + `+j:"")+(F!==null?` + `+F:"")+(N!==null?` + `+N:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof D.getDerivedStateFromProps=="function"&&(B.componentWillMount=S,B.componentWillReceiveProps=w),typeof B.getSnapshotBeforeUpdate=="function"){if(typeof B.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");B.componentWillUpdate=O;var fe=B.componentDidUpdate;B.componentDidUpdate=function(J,xe,Ie){var tt=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ie;fe.call(this,J,xe,tt)}}return D}function P(D,B){if(D==null)return{};var j,F,N={},ee=Object.keys(D);for(F=0;F=0||(N[j]=D[j]);return N}function $(D,B){if(D==null)return{};var j,F,N=P(D,B);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(D);for(F=0;F=0||Object.prototype.propertyIsEnumerable.call(D,j)&&(N[j]=D[j])}return N}function R(D){var B=function(j){return{}.toString.call(j).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(D);return B==="number"&&(B=isNaN(D)?"nan":(0|D)!=D?"float":"integer"),B}S.__suppressDeprecationWarning=!0,w.__suppressDeprecationWarning=!0,O.__suppressDeprecationWarning=!0;var A={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},M={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},I={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},U=o(45),W=function(D){var B=function(j){return{backgroundColor:j.base00,ellipsisColor:j.base09,braceColor:j.base07,expandedIcon:j.base0D,collapsedIcon:j.base0E,keyColor:j.base07,arrayKeyColor:j.base0C,objectSize:j.base04,copyToClipboard:j.base0F,copyToClipboardCheck:j.base0D,objectBorder:j.base02,dataTypes:{boolean:j.base0E,date:j.base0D,float:j.base0B,function:j.base0D,integer:j.base0F,string:j.base09,nan:j.base08,null:j.base0A,undefined:j.base05,regexp:j.base0A,background:j.base02},editVariable:{editIcon:j.base0E,cancelIcon:j.base09,removeIcon:j.base09,addIcon:j.base0E,checkIcon:j.base0E,background:j.base01,color:j.base0A,border:j.base07},addKeyModal:{background:j.base05,border:j.base04,color:j.base0A,labelColor:j.base01},validationFailure:{background:j.base09,iconColor:j.base01,fontColor:j.base01}}}(D);return{"app-container":{fontFamily:I.globalFontFamily,cursor:I.globalCursor,backgroundColor:B.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:B.ellipsisColor,fontSize:I.ellipsisFontSize,lineHeight:I.ellipsisLineHeight,cursor:I.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:I.braceCursor,fontWeight:I.braceFontWeight,color:B.braceColor},"expanded-icon":{color:B.expandedIcon},"collapsed-icon":{color:B.collapsedIcon},colon:{display:"inline-block",margin:I.keyMargin,color:B.keyColor,verticalAlign:"top"},objectKeyVal:function(j,F){return{style:c({paddingTop:I.keyValPaddingTop,paddingRight:I.keyValPaddingRight,paddingBottom:I.keyValPaddingBottom,borderLeft:I.keyValBorderLeft+" "+B.objectBorder,":hover":{paddingLeft:F.paddingLeft-1+"px",borderLeft:I.keyValBorderHover+" "+B.objectBorder}},F)}},"object-key-val-no-border":{padding:I.keyValPadding},"pushed-content":{marginLeft:I.pushedContentMarginLeft},variableValue:function(j,F){return{style:c({display:"inline-block",paddingRight:I.variableValuePaddingRight,position:"relative"},F)}},"object-name":{display:"inline-block",color:B.keyColor,letterSpacing:I.keyLetterSpacing,fontStyle:I.keyFontStyle,verticalAlign:I.keyVerticalAlign,opacity:I.keyOpacity,":hover":{opacity:I.keyOpacityHover}},"array-key":{display:"inline-block",color:B.arrayKeyColor,letterSpacing:I.keyLetterSpacing,fontStyle:I.keyFontStyle,verticalAlign:I.keyVerticalAlign,opacity:I.keyOpacity,":hover":{opacity:I.keyOpacityHover}},"object-size":{color:B.objectSize,borderRadius:I.objectSizeBorderRadius,fontStyle:I.objectSizeFontStyle,margin:I.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:I.dataTypeFontSize,marginRight:I.dataTypeMarginRight,opacity:I.datatypeOpacity},boolean:{display:"inline-block",color:B.dataTypes.boolean},date:{display:"inline-block",color:B.dataTypes.date},"date-value":{marginLeft:I.dateValueMarginLeft},float:{display:"inline-block",color:B.dataTypes.float},function:{display:"inline-block",color:B.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:B.dataTypes.integer},string:{display:"inline-block",color:B.dataTypes.string},nan:{display:"inline-block",color:B.dataTypes.nan,fontSize:I.nanFontSize,fontWeight:I.nanFontWeight,backgroundColor:B.dataTypes.background,padding:I.nanPadding,borderRadius:I.nanBorderRadius},null:{display:"inline-block",color:B.dataTypes.null,fontSize:I.nullFontSize,fontWeight:I.nullFontWeight,backgroundColor:B.dataTypes.background,padding:I.nullPadding,borderRadius:I.nullBorderRadius},undefined:{display:"inline-block",color:B.dataTypes.undefined,fontSize:I.undefinedFontSize,padding:I.undefinedPadding,borderRadius:I.undefinedBorderRadius,backgroundColor:B.dataTypes.background},regexp:{display:"inline-block",color:B.dataTypes.regexp},"copy-to-clipboard":{cursor:I.clipboardCursor},"copy-icon":{color:B.copyToClipboard,fontSize:I.iconFontSize,marginRight:I.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:B.copyToClipboardCheck,marginLeft:I.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:I.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:I.metaDataPadding},"icon-container":{display:"inline-block",width:I.iconContainerWidth},tooltip:{padding:I.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.removeIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.addIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.editIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:I.iconCursor,color:B.editVariable.checkIcon,fontSize:I.iconFontSize,paddingRight:I.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:I.iconCursor,color:B.editVariable.cancelIcon,fontSize:I.iconFontSize,paddingRight:I.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:I.editInputMinWidth,borderRadius:I.editInputBorderRadius,backgroundColor:B.editVariable.background,color:B.editVariable.color,padding:I.editInputPadding,marginRight:I.editInputMarginRight,fontFamily:I.editInputFontFamily},"detected-row":{paddingTop:I.detectedRowPaddingTop},"key-modal-request":{position:I.addKeyCoverPosition,top:I.addKeyCoverPositionPx,left:I.addKeyCoverPositionPx,right:I.addKeyCoverPositionPx,bottom:I.addKeyCoverPositionPx,backgroundColor:I.addKeyCoverBackground},"key-modal":{width:I.addKeyModalWidth,backgroundColor:B.addKeyModal.background,marginLeft:I.addKeyModalMargin,marginRight:I.addKeyModalMargin,padding:I.addKeyModalPadding,borderRadius:I.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:B.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:B.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:B.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:B.addKeyModal.labelColor,fontSize:I.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:B.editVariable.addIcon,fontSize:I.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:B.ellipsisColor,fontSize:I.ellipsisFontSize,lineHeight:I.ellipsisLineHeight,cursor:I.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:B.validationFailure.fontColor,backgroundColor:B.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:B.validationFailure.iconColor,fontSize:I.iconFontSize,transform:"rotate(45deg)"}}};function T(D,B,j){return D||console.error("theme has not been set"),function(F){var N=A;return F!==!1&&F!=="none"||(N=M),Object(U.createStyling)(W,{defaultBase16:N})(F)}(D)(B,j)}var V=function(D){g(j,D);var B=y(j);function j(){return d(this,j),B.apply(this,arguments)}return h(j,[{key:"render",value:function(){var F=this.props,N=(F.rjvId,F.type_name),ee=F.displayDataTypes,me=F.theme;return ee?v.a.createElement("span",Object.assign({className:"data-type-label"},T(me,"data-type-label")),N):null}}]),j}(v.a.PureComponent),X=function(D){g(j,D);var B=y(j);function j(){return d(this,j),B.apply(this,arguments)}return h(j,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",T(F.theme,"boolean"),v.a.createElement(V,Object.assign({type_name:"bool"},F)),F.value?"true":"false")}}]),j}(v.a.PureComponent),ie=function(D){g(j,D);var B=y(j);function j(){return d(this,j),B.apply(this,arguments)}return h(j,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",T(F.theme,"date"),v.a.createElement(V,Object.assign({type_name:"date"},F)),v.a.createElement("span",Object.assign({className:"date-value"},T(F.theme,"date-value")),F.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),j}(v.a.PureComponent),ae=function(D){g(j,D);var B=y(j);function j(){return d(this,j),B.apply(this,arguments)}return h(j,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",T(F.theme,"float"),v.a.createElement(V,Object.assign({type_name:"float"},F)),this.props.value)}}]),j}(v.a.PureComponent);function pe(D,B){(B==null||B>D.length)&&(B=D.length);for(var j=0,F=new Array(B);j=D.length?{done:!0}:{done:!1,value:D[F++]}},e:function(J){throw J},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,me=!0,fe=!1;return{s:function(){j=j.call(D)},n:function(){var J=j.next();return me=J.done,J},e:function(J){fe=!0,ee=J},f:function(){try{me||j.return==null||j.return()}finally{if(fe)throw ee}}}}function _e(D){return function(B){if(Array.isArray(B))return pe(B)}(D)||function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}(D)||ye(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var ke=o(46),$e=new(o(47)).Dispatcher,Ee=new(function(D){g(j,D);var B=y(j);function j(){var F;d(this,j);for(var N=arguments.length,ee=new Array(N),me=0;meN&&(fe.style.cursor="pointer",this.state.collapsed&&(me=v.a.createElement("span",null,me.substring(0,N),v.a.createElement("span",T(ee,"ellipsis")," ...")))),v.a.createElement("div",T(ee,"string"),v.a.createElement(V,Object.assign({type_name:"string"},F)),v.a.createElement("span",Object.assign({className:"string-value"},fe,{onClick:this.toggleCollapsed}),'"',me,'"'))}}]),j}(v.a.PureComponent),gt=function(D){g(j,D);var B=y(j);function j(){return d(this,j),B.apply(this,arguments)}return h(j,[{key:"render",value:function(){return v.a.createElement("div",T(this.props.theme,"undefined"),"undefined")}}]),j}(v.a.PureComponent);function z(){return(z=Object.assign?Object.assign.bind():function(D){for(var B=1;B0?tt:null,namespace:Ie.splice(0,Ie.length-1),existing_value:pt,variable_removed:!1,key_name:null};R(pt)==="object"?$e.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:_t,data:Nt}):$e.dispatch({name:"VARIABLE_ADDED",rjvId:_t,data:c(c({},Nt),{},{new_value:[].concat(_e(pt),[null])})})}})))},F.getRemoveObject=function(fe){var J=F.props,xe=J.theme,Ie=(J.hover,J.namespace),tt=J.name,pt=J.src,_t=J.rjvId;if(Ie.length!==1)return v.a.createElement("span",{className:"click-to-remove",style:{display:fe?"inline-block":"none"}},v.a.createElement(Fe,Object.assign({className:"click-to-remove-icon"},T(xe,"removeVarIcon"),{onClick:function(){$e.dispatch({name:"VARIABLE_REMOVED",rjvId:_t,data:{name:tt,namespace:Ie.splice(0,Ie.length-1),existing_value:pt,variable_removed:!0}})}})))},F.render=function(){var fe=F.props,J=fe.theme,xe=fe.onDelete,Ie=fe.onAdd,tt=fe.enableClipboard,pt=fe.src,_t=fe.namespace,ut=fe.rowHovered;return v.a.createElement("div",Object.assign({},T(J,"object-meta-data"),{className:"object-meta-data",onClick:function(Nt){Nt.stopPropagation()}}),F.getObjectSize(),tt?v.a.createElement(Rt,{rowHovered:ut,clickCallback:tt,src:pt,theme:J,namespace:_t}):null,Ie!==!1?F.getAddAttribute(ut):null,xe!==!1?F.getRemoveObject(ut):null)},F}return h(j)}(v.a.PureComponent);function bn(D){var B=D.parent_type,j=D.namespace,F=D.quotesOnKeys,N=D.theme,ee=D.jsvRoot,me=D.name,fe=D.displayArrayKey,J=D.name?D.name:"";return!ee||me!==!1&&me!==null?B=="array"?fe?v.a.createElement("span",Object.assign({},T(N,"array-key"),{key:j}),v.a.createElement("span",{className:"array-key"},J),v.a.createElement("span",T(N,"colon"),":")):v.a.createElement("span",null):v.a.createElement("span",Object.assign({},T(N,"object-name"),{key:j}),v.a.createElement("span",{className:"object-key"},F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"'),v.a.createElement("span",null,J),F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"')),v.a.createElement("span",T(N,"colon"),":")):v.a.createElement("span",null)}function Ca(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(rt,Object.assign({},T(B,"expanded-icon"),{className:"expanded-icon"}));case"square":return v.a.createElement(ue,Object.assign({},T(B,"expanded-icon"),{className:"expanded-icon"}));default:return v.a.createElement(G,Object.assign({},T(B,"expanded-icon"),{className:"expanded-icon"}))}}function Pa(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(Re,Object.assign({},T(B,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v.a.createElement(we,Object.assign({},T(B,"collapsed-icon"),{className:"collapsed-icon"}));default:return v.a.createElement(re,Object.assign({},T(B,"collapsed-icon"),{className:"collapsed-icon"}))}}var Wa=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],nn=function(D){g(j,D);var B=y(j);function j(F){var N;return d(this,j),(N=B.call(this,F)).toggleCollapsed=function(ee){var me=[];for(var fe in N.state.expanded)me.push(N.state.expanded[fe]);me[ee]=!me[ee],N.setState({expanded:me})},N.state={expanded:[]},N}return h(j,[{key:"getExpandedIcon",value:function(F){var N=this.props,ee=N.theme,me=N.iconStyle;return this.state.expanded[F]?v.a.createElement(Ca,{theme:ee,iconStyle:me}):v.a.createElement(Pa,{theme:ee,iconStyle:me})}},{key:"render",value:function(){var F=this,N=this.props,ee=N.src,me=N.groupArraysAfterLength,fe=(N.depth,N.name),J=N.theme,xe=N.jsvRoot,Ie=N.namespace,tt=(N.parent_type,$(N,Wa)),pt=0,_t=5*this.props.indentWidth;xe||(pt=5*this.props.indentWidth);var ut=me,Nt=Math.ceil(ee.length/ut);return v.a.createElement("div",Object.assign({className:"object-key-val"},T(J,xe?"jsv-root":"objectKeyVal",{paddingLeft:pt})),v.a.createElement(bn,this.props),v.a.createElement("span",null,v.a.createElement(Oa,Object.assign({size:ee.length},this.props))),_e(Array(Nt)).map(function(Qt,Ot){return v.a.createElement("div",Object.assign({key:Ot,className:"object-key-val array-group"},T(J,"objectKeyVal",{marginLeft:6,paddingLeft:_t})),v.a.createElement("span",T(J,"brace-row"),v.a.createElement("div",Object.assign({className:"icon-container"},T(J,"icon-container"),{onClick:function(an){F.toggleCollapsed(Ot)}}),F.getExpandedIcon(Ot)),F.state.expanded[Ot]?v.a.createElement(dt,Object.assign({key:fe+Ot,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ut,index_offset:Ot*ut,src:ee.slice(Ot*ut,Ot*ut+ut),namespace:Ie,type:"array",parent_type:"array_group",theme:J},tt)):v.a.createElement("span",Object.assign({},T(J,"brace"),{onClick:function(an){F.toggleCollapsed(Ot)},className:"array-group-brace"}),"[",v.a.createElement("div",Object.assign({},T(J,"array-group-meta-data"),{className:"array-group-meta-data"}),v.a.createElement("span",Object.assign({className:"object-size"},T(J,"object-size")),Ot*ut," - ",Ot*ut+ut>ee.length?ee.length:Ot*ut+ut)),"]")))}))}}]),j}(v.a.PureComponent),st=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],ir=function(D){g(j,D);var B=y(j);function j(F){var N;d(this,j),(N=B.call(this,F)).toggleCollapsed=function(){N.setState({expanded:!N.state.expanded},function(){ze.set(N.props.rjvId,N.props.namespace,"expanded",N.state.expanded)})},N.getObjectContent=function(me,fe,J){return v.a.createElement("div",{className:"pushed-content object-container"},v.a.createElement("div",Object.assign({className:"object-content"},T(N.props.theme,"pushed-content")),N.renderObjectContents(fe,J)))},N.getEllipsis=function(){return N.state.size===0?null:v.a.createElement("div",Object.assign({},T(N.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:N.toggleCollapsed}),"...")},N.getObjectMetaData=function(me){var fe=N.props,J=(fe.rjvId,fe.theme,N.state),xe=J.size,Ie=J.hovered;return v.a.createElement(Oa,Object.assign({rowHovered:Ie,size:xe},N.props))},N.renderObjectContents=function(me,fe){var J,xe=N.props,Ie=xe.depth,tt=xe.parent_type,pt=xe.index_offset,_t=xe.groupArraysAfterLength,ut=xe.namespace,Nt=N.state.object_type,Qt=[],Ot=Object.keys(me||{});return N.props.sortKeys&&Nt!=="array"&&(Ot=Ot.sort()),Ot.forEach(function(an){if(J=new gl(an,me[an]),tt==="array_group"&&pt&&(J.name=parseInt(J.name)+pt),me.hasOwnProperty(an))if(J.type==="object")Qt.push(v.a.createElement(dt,Object.assign({key:J.name,depth:Ie+1,name:J.name,src:J.value,namespace:ut.concat(J.name),parent_type:Nt},fe)));else if(J.type==="array"){var _o=dt;_t&&J.value.length>_t&&(_o=nn),Qt.push(v.a.createElement(_o,Object.assign({key:J.name,depth:Ie+1,name:J.name,src:J.value,namespace:ut.concat(J.name),type:"array",parent_type:Nt},fe)))}else Qt.push(v.a.createElement(er,Object.assign({key:J.name+"_"+ut,variable:J,singleIndent:5,namespace:ut,type:N.props.type},fe)))}),Qt};var ee=j.getState(F);return N.state=c(c({},ee),{},{prevProps:{}}),N}return h(j,[{key:"getBraceStart",value:function(F,N){var ee=this,me=this.props,fe=me.src,J=me.theme,xe=me.iconStyle;if(me.parent_type==="array_group")return v.a.createElement("span",null,v.a.createElement("span",T(J,"brace"),F==="array"?"[":"{"),N?this.getObjectMetaData(fe):null);var Ie=N?Ca:Pa;return v.a.createElement("span",null,v.a.createElement("span",Object.assign({onClick:function(tt){ee.toggleCollapsed()}},T(J,"brace-row")),v.a.createElement("div",Object.assign({className:"icon-container"},T(J,"icon-container")),v.a.createElement(Ie,{theme:J,iconStyle:xe})),v.a.createElement(bn,this.props),v.a.createElement("span",T(J,"brace"),F==="array"?"[":"{")),N?this.getObjectMetaData(fe):null)}},{key:"render",value:function(){var F=this,N=this.props,ee=N.depth,me=N.src,fe=(N.namespace,N.name,N.type,N.parent_type),J=N.theme,xe=N.jsvRoot,Ie=N.iconStyle,tt=$(N,st),pt=this.state,_t=pt.object_type,ut=pt.expanded,Nt={};return xe||fe==="array_group"?fe==="array_group"&&(Nt.borderLeft=0,Nt.display="inline"):Nt.paddingLeft=5*this.props.indentWidth,v.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return F.setState(c(c({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(c(c({},F.state),{},{hovered:!1}))}},T(J,xe?"jsv-root":"objectKeyVal",Nt)),this.getBraceStart(_t,ut),ut?this.getObjectContent(ee,me,c({theme:J,iconStyle:Ie},tt)):this.getEllipsis(),v.a.createElement("span",{className:"brace-row"},v.a.createElement("span",{style:c(c({},T(J,"brace").style),{},{paddingLeft:ut?"3px":"0px"})},_t==="array"?"]":"}"),ut?null:this.getObjectMetaData(me)))}}],[{key:"getDerivedStateFromProps",value:function(F,N){var ee=N.prevProps;return F.src!==ee.src||F.collapsed!==ee.collapsed||F.name!==ee.name||F.namespace!==ee.namespace||F.rjvId!==ee.rjvId?c(c({},j.getState(F)),{},{prevProps:F}):null}}]),j}(v.a.PureComponent);ir.getState=function(D){var B=Object.keys(D.src).length,j=(D.collapsed===!1||D.collapsed!==!0&&D.collapsed>D.depth)&&(!D.shouldCollapse||D.shouldCollapse({name:D.name,src:D.src,type:R(D.src),namespace:D.namespace})===!1)&&B!==0;return{expanded:ze.get(D.rjvId,D.namespace,"expanded",j),object_type:D.type==="array"?"array":"object",parent_type:D.type==="array"?"array":"object",size:B,hovered:!1}};var gl=h(function D(B,j){d(this,D),this.name=B,this.value=j,this.type=R(j)});C(ir);var dt=ir,Br=function(D){g(j,D);var B=y(j);function j(){var F;d(this,j);for(var N=arguments.length,ee=new Array(N),me=0;mett.groupArraysAfterLength&&(_t=nn),v.a.createElement("div",{className:"pretty-json-container object-container"},v.a.createElement("div",{className:"object-content"},v.a.createElement(_t,Object.assign({namespace:pt,depth:0,jsvRoot:!0},tt))))},F}return h(j)}(v.a.PureComponent),xn=function(D){g(j,D);var B=y(j);function j(F){var N;return d(this,j),(N=B.call(this,F)).closeModal=function(){$e.dispatch({rjvId:N.props.rjvId,name:"RESET"})},N.submit=function(){N.props.submit(N.state.input)},N.state={input:F.input?F.input:""},N}return h(j,[{key:"render",value:function(){var F=this,N=this.props,ee=N.theme,me=N.rjvId,fe=N.isValid,J=this.state.input,xe=fe(J);return v.a.createElement("div",Object.assign({className:"key-modal-request"},T(ee,"key-modal-request"),{onClick:this.closeModal}),v.a.createElement("div",Object.assign({},T(ee,"key-modal"),{onClick:function(Ie){Ie.stopPropagation()}}),v.a.createElement("div",T(ee,"key-modal-label"),"Key Name:"),v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("input",Object.assign({},T(ee,"key-modal-input"),{className:"key-modal-input",ref:function(Ie){return Ie&&Ie.focus()},spellCheck:!1,value:J,placeholder:"...",onChange:function(Ie){F.setState({input:Ie.target.value})},onKeyPress:function(Ie){xe&&Ie.key==="Enter"?F.submit():Ie.key==="Escape"&&F.closeModal()}})),xe?v.a.createElement(zt,Object.assign({},T(ee,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Ie){return F.submit()}})):null),v.a.createElement("span",T(ee,"key-modal-cancel"),v.a.createElement(Je,Object.assign({},T(ee,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){$e.dispatch({rjvId:me,name:"RESET"})}})))))}}]),j}(v.a.PureComponent),Pr=function(D){g(j,D);var B=y(j);function j(){var F;d(this,j);for(var N=arguments.length,ee=new Array(N),me=0;me{const r=document.createElement("a");r.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${e}`)),r.setAttribute("download",t),r.click()},T$e=e=>{R$e(JSON.stringify(e,null," "),"export.json")},j$e=()=>L.jsx(_L,{exporter:T$e,children:L.jsxs(_O,{rowClick:"show",children:[L.jsx(zo,{source:"id",sortable:!0}),L.jsx(zo,{source:"service",sortable:!0}),L.jsx(zo,{source:"method",sortable:!0}),L.jsx(Cu,{source:"headers",sortable:!1,reactJsonOptions:{theme:fa()}}),L.jsx(Cu,{source:"input",sortable:!1,reactJsonOptions:{theme:fa()}}),L.jsx(Cu,{source:"output",sortable:!1,reactJsonOptions:{theme:fa()}})]})}),I$e=()=>L.jsx(p_e,{children:L.jsxs(fL,{children:[L.jsx(qs,{source:"service"}),L.jsx(qs,{source:"method"}),L.jsx(Pu,{source:"headers",reactJsonOptions:{theme:fa()}}),L.jsx(Pu,{source:"input",reactJsonOptions:{theme:fa()}}),L.jsx(Pu,{source:"output",reactJsonOptions:{theme:fa()}})]})}),A$e=()=>L.jsx(E_e,{children:L.jsxs(fL,{children:[L.jsx(qs,{source:"id"}),L.jsx(qs,{source:"service"}),L.jsx(qs,{source:"method"}),L.jsx(Pu,{source:"headers",reactJsonOptions:{theme:fa()}}),L.jsx(Pu,{source:"input",reactJsonOptions:{theme:fa()}}),L.jsx(Pu,{source:"output",reactJsonOptions:{theme:fa()}})]})}),M$e=()=>L.jsx(D_e,{children:L.jsxs(rEe,{children:[L.jsx(zo,{source:"id",sortable:!0}),L.jsx(zo,{source:"service",sortable:!0}),L.jsx(zo,{source:"method",sortable:!0}),L.jsx(Cu,{source:"headers",sortable:!1,reactJsonOptions:{theme:fa()}}),L.jsx(Cu,{source:"input",sortable:!1,reactJsonOptions:{theme:fa()}}),L.jsx(Cu,{source:"output",sortable:!1,reactJsonOptions:{theme:fa()}})]})}),fa=()=>{const[e]=YS();return e==="dark"?"monokai":"rjv-default"},F$e=()=>L.jsx(_L,{children:L.jsxs(_O,{bulkActionButtons:!1,children:[L.jsx(zo,{source:"id"}),L.jsx(zo,{source:"package"}),L.jsx(zo,{source:"name"}),L.jsx(B_e,{source:"methods",sortable:!1,children:L.jsx(J_e,{linkType:!1,children:L.jsx(W_e,{source:"name"})})})]})});var BO={},L$e=yt;Object.defineProperty(BO,"__esModule",{value:!0});var $N=BO.default=void 0,N$e=L$e(St()),D$e=L;$N=BO.default=(0,N$e.default)((0,D$e.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var zO={},B$e=yt;Object.defineProperty(zO,"__esModule",{value:!0});var kN=zO.default=void 0,z$e=B$e(St()),U$e=L;kN=zO.default=(0,z$e.default)((0,U$e.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const V$e={...g4,palette:{primary:ooe,secondary:ioe,error:ps,contrastThreshold:3,tonalOffset:.2}},W$e=()=>L.jsxs(x4,{toolbar:L.jsx(b4,{}),children:[L.jsx(f4,{}),L.jsx(xr,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),H$e=e=>L.jsx(L4,{...e,appBar:W$e}),q$e=()=>L.jsxs(UPe,{disableTelemetry:!0,dataProvider:$$e,layout:H$e,theme:V$e,darkTheme:y4,children:[L.jsx(Lh,{icon:kN,name:"services",list:F$e}),L.jsx(Lh,{icon:$N,name:"stubs",list:j$e,edit:A$e,show:M$e,create:I$e})]});Eb.createRoot(document.getElementById("root")).render(L.jsx(Ce.StrictMode,{children:L.jsx(q$e,{})})); diff --git a/dist/assets/index-D7DT4nas.js b/dist/assets/index-D7DT4nas.js deleted file mode 100644 index 7f4eec7..0000000 --- a/dist/assets/index-D7DT4nas.js +++ /dev/null @@ -1,285 +0,0 @@ -function F4(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Po(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var $k={exports:{}},hh={},kk={exports:{}},Je={};/** - * @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 of=Symbol.for("react.element"),N4=Symbol.for("react.portal"),L4=Symbol.for("react.fragment"),D4=Symbol.for("react.strict_mode"),B4=Symbol.for("react.profiler"),z4=Symbol.for("react.provider"),U4=Symbol.for("react.context"),V4=Symbol.for("react.forward_ref"),W4=Symbol.for("react.suspense"),q4=Symbol.for("react.memo"),H4=Symbol.for("react.lazy"),cS=Symbol.iterator;function K4(e){return e===null||typeof e!="object"?null:(e=cS&&e[cS]||e["@@iterator"],typeof e=="function"?e:null)}var Rk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tk=Object.assign,Ik={};function Ll(e,t,r){this.props=e,this.context=t,this.refs=Ik,this.updater=r||Rk}Ll.prototype.isReactComponent={};Ll.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")};Ll.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jk(){}jk.prototype=Ll.prototype;function sx(e,t,r){this.props=e,this.context=t,this.refs=Ik,this.updater=r||Rk}var lx=sx.prototype=new jk;lx.constructor=sx;Tk(lx,Ll.prototype);lx.isPureReactComponent=!0;var fS=Array.isArray,Ak=Object.prototype.hasOwnProperty,ux={current:null},Mk={key:!0,ref:!0,__self:!0,__source:!0};function Fk(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Ak.call(t,n)&&!Mk.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,re=j[ne];if(0>>1;neo(ve,K))weo($e,ve)?(j[ne]=$e,j[we]=K,ne=we):(j[ne]=ve,j[xe]=K,ne=xe);else if(weo($e,K))j[ne]=$e,j[we]=K,ne=we;else break e}}return W}function o(j,W){var K=j.sortIndex-W.sortIndex;return K!==0?K:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,h=!1,g=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var W=r(l);W!==null;){if(W.callback===null)n(l);else if(W.startTime<=j)n(l),W.sortIndex=W.expirationTime,t(u,W);else break;W=r(l)}}function O(j){if(b=!1,y(j),!g)if(r(u)!==null)g=!0,V(v);else{var W=r(l);W!==null&&q(O,W.startTime-j)}}function v(j,W){g=!1,b&&(b=!1,x(C),C=-1),h=!0;var K=p;try{for(y(W),f=r(u);f!==null&&(!(f.expirationTime>W)||j&&!R());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,p=f.priorityLevel;var re=ne(f.expirationTime<=W);W=e.unstable_now(),typeof re=="function"?f.callback=re:f===r(u)&&n(u),y(W)}else n(u);f=r(u)}if(f!==null)var be=!0;else{var xe=r(l);xe!==null&&q(O,xe.startTime-W),be=!1}return be}finally{f=null,p=K,h=!1}}var _=!1,S=null,C=-1,P=5,k=-1;function R(){return!(e.unstable_now()-kj||125ne?(j.sortIndex=K,t(l,j),r(u)===null&&j===r(l)&&(b?(x(C),C=-1):b=!0,q(O,K-ne))):(j.sortIndex=re,t(u,j),g||h||(g=!0,V(v))),j},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(j){var W=p;return function(){var K=p;p=W;try{return j.apply(this,arguments)}finally{p=K}}}})(zk);Bk.exports=zk;var oN=Bk.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 aN=d,mn=oN;function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yy=Object.prototype.hasOwnProperty,iN=/^[: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]*$/,pS={},vS={};function sN(e){return Yy.call(vS,e)?!0:Yy.call(pS,e)?!1:iN.test(e)?vS[e]=!0:(pS[e]=!0,!1)}function lN(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uN(e,t,r,n){if(t===null||typeof t>"u"||lN(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fr(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new Fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new Fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new Fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new Fr(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){gr[e]=new Fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new Fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new Fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new Fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new Fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var fx=/[\-:]([a-z])/g;function dx(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(fx,dx);gr[t]=new Fr(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(fx,dx);gr[t]=new Fr(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(fx,dx);gr[t]=new Fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new Fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function px(e,t,r,n){var o=gr.hasOwnProperty(t)?gr[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var u=` -`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{wg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zu(e):""}function cN(e){switch(e.tag){case 5:return zu(e.type);case 16:return zu("Lazy");case 13:return zu("Suspense");case 19:return zu("SuspenseList");case 0:case 2:case 15:return e=_g(e.type,!1),e;case 11:return e=_g(e.type.render,!1),e;case 1:return e=_g(e.type,!0),e;default:return""}}function t0(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 $s:return"Fragment";case Ps:return"Portal";case Jy:return"Profiler";case vx:return"StrictMode";case Zy:return"Suspense";case e0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wk:return(e.displayName||"Context")+".Consumer";case Vk:return(e._context.displayName||"Context")+".Provider";case hx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mx:return t=e.displayName||null,t!==null?t:t0(e.type)||"Memo";case ya:t=e._payload,e=e._init;try{return t0(e(t))}catch{}}return null}function fN(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 t0(t);case 8:return t===vx?"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 Ha(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dN(e){var t=Hk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ad(e){e._valueTracker||(e._valueTracker=dN(e))}function Kk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Hk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function jp(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 r0(e,t){var r=t.checked;return Ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ha(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gk(e,t){t=t.checked,t!=null&&px(e,"checked",t,!1)}function n0(e,t){Gk(e,t);var r=Ha(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?o0(e,t.type,r):t.hasOwnProperty("defaultValue")&&o0(e,t.type,Ha(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function o0(e,t,r){(t!=="number"||jp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Uu=Array.isArray;function Qs(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=id.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ec(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Qu={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},pN=["Webkit","ms","Moz","O"];Object.keys(Qu).forEach(function(e){pN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qu[t]=Qu[e]})});function Jk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Qu.hasOwnProperty(e)&&Qu[e]?(""+t).trim():t+"px"}function Zk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Jk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var vN=Ft({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 s0(e,t){if(t){if(vN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function l0(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 u0=null;function gx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var c0=null,Xs=null,Ys=null;function xS(e){if(e=lf(e)){if(typeof c0!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=xh(t),c0(e.stateNode,e.type,t))}}function eR(e){Xs?Ys?Ys.push(e):Ys=[e]:Xs=e}function tR(){if(Xs){var e=Xs,t=Ys;if(Ys=Xs=null,xS(e),t)for(e=0;e>>=0,e===0?32:31-(EN(e)/CN|0)|0}var sd=64,ld=4194304;function Vu(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 Np(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Vu(s):(a&=i,a!==0&&(n=Vu(a)))}else i=r&~o,i!==0?n=Vu(i):a!==0&&(n=Vu(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function af(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jn(t),e[t]=r}function RN(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Yu),kS=" ",RS=!1;function wR(e,t){switch(e){case"keyup":return oL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _R(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ks=!1;function iL(e,t){switch(e){case"compositionend":return _R(t);case"keypress":return t.which!==32?null:(RS=!0,kS);case"textInput":return e=t.data,e===kS&&RS?null:e;default:return null}}function sL(e,t){if(ks)return e==="compositionend"||!Ex&&wR(e,t)?(e=bR(),Wd=_x=Pa=null,ks=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AS(r)}}function CR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?CR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PR(){for(var e=window,t=jp();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=jp(e.document)}return t}function Cx(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 mL(e){var t=PR(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&CR(r.ownerDocument.documentElement,r)){if(n!==null&&Cx(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=MS(r,a);var i=MS(r,n);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(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Rs=null,m0=null,Zu=null,g0=!1;function FS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;g0||Rs==null||Rs!==jp(n)||(n=Rs,"selectionStart"in n&&Cx(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zu&&Tc(Zu,n)||(Zu=n,n=Bp(m0,"onSelect"),0js||(e.current=O0[js],O0[js]=null,js--)}function Ot(e,t){js++,O0[js]=e.current,e.current=t}var Ka={},Cr=Xa(Ka),Xr=Xa(!1),zi=Ka;function gl(e,t){var r=e.type.contextTypes;if(!r)return Ka;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Yr(e){return e=e.childContextTypes,e!=null}function Up(){Pt(Xr),Pt(Cr)}function VS(e,t,r){if(Cr.current!==Ka)throw Error(ge(168));Ot(Cr,t),Ot(Xr,r)}function FR(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,fN(e)||"Unknown",o));return Ft({},r,n)}function Vp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ka,zi=Cr.current,Ot(Cr,e),Ot(Xr,Xr.current),!0}function WS(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=FR(e,t,zi),n.__reactInternalMemoizedMergedChildContext=e,Pt(Xr),Pt(Cr),Ot(Cr,e)):Pt(Xr),Ot(Xr,r)}var zo=null,wh=!1,Fg=!1;function NR(e){zo===null?zo=[e]:zo.push(e)}function $L(e){wh=!0,NR(e)}function Ya(){if(!Fg&&zo!==null){Fg=!0;var e=0,t=dt;try{var r=zo;for(dt=1;e>=i,o-=i,qo=1<<32-Jn(t)+o|r<C?(P=S,S=null):P=S.sibling;var k=p(x,S,y[C],O);if(k===null){S===null&&(S=P);break}e&&S&&k.alternate===null&&t(x,S),m=a(k,m,C),_===null?v=k:_.sibling=k,_=k,S=P}if(C===y.length)return r(x,S),Rt&&hi(x,C),v;if(S===null){for(;CC?(P=S,S=null):P=S.sibling;var R=p(x,S,k.value,O);if(R===null){S===null&&(S=P);break}e&&S&&R.alternate===null&&t(x,S),m=a(R,m,C),_===null?v=R:_.sibling=R,_=R,S=P}if(k.done)return r(x,S),Rt&&hi(x,C),v;if(S===null){for(;!k.done;C++,k=y.next())k=f(x,k.value,O),k!==null&&(m=a(k,m,C),_===null?v=k:_.sibling=k,_=k);return Rt&&hi(x,C),v}for(S=n(x,S);!k.done;C++,k=y.next())k=h(S,x,C,k.value,O),k!==null&&(e&&k.alternate!==null&&S.delete(k.key===null?C:k.key),m=a(k,m,C),_===null?v=k:_.sibling=k,_=k);return e&&S.forEach(function(I){return t(x,I)}),Rt&&hi(x,C),v}function w(x,m,y,O){if(typeof y=="object"&&y!==null&&y.type===$s&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case od:e:{for(var v=y.key,_=m;_!==null;){if(_.key===v){if(v=y.type,v===$s){if(_.tag===7){r(x,_.sibling),m=o(_,y.props.children),m.return=x,x=m;break e}}else if(_.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===ya&&KS(v)===_.type){r(x,_.sibling),m=o(_,y.props),m.ref=Eu(x,_,y),m.return=x,x=m;break e}r(x,_);break}else t(x,_);_=_.sibling}y.type===$s?(m=Mi(y.props.children,x.mode,O,y.key),m.return=x,x=m):(O=Jd(y.type,y.key,y.props,null,x.mode,O),O.ref=Eu(x,m,y),O.return=x,x=O)}return i(x);case Ps:e:{for(_=y.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(x,m.sibling),m=o(m,y.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Wg(y,x.mode,O),m.return=x,x=m}return i(x);case ya:return _=y._init,w(x,m,_(y._payload),O)}if(Uu(y))return g(x,m,y,O);if(xu(y))return b(x,m,y,O);hd(x,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(x,m.sibling),m=o(m,y),m.return=x,x=m):(r(x,m),m=Vg(y,x.mode,O),m.return=x,x=m),i(x)):r(x,m)}return w}var bl=zR(!0),UR=zR(!1),Hp=Xa(null),Kp=null,Fs=null,Rx=null;function Tx(){Rx=Fs=Kp=null}function Ix(e){var t=Hp.current;Pt(Hp),e._currentValue=t}function C0(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Zs(e,t){Kp=e,Rx=Fs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qr=!0),e.firstContext=null)}function jn(e){var t=e._currentValue;if(Rx!==e)if(e={context:e,memoizedValue:t,next:null},Fs===null){if(Kp===null)throw Error(ge(308));Fs=e,Kp.dependencies={lanes:0,firstContext:e}}else Fs=Fs.next=e;return t}var Ci=null;function jx(e){Ci===null?Ci=[e]:Ci.push(e)}function VR(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,jx(t)):(r.next=o.next,o.next=r),t.interleaved=r,Jo(e,n)}function Jo(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ba=!1;function Ax(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function WR(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 Go(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,nt&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Jo(e,r)}return o=n.interleaved,o===null?(t.next=t,jx(n)):(t.next=o.next,o.next=t),n.interleaved=t,Jo(e,r)}function Hd(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,bx(e,r)}}function GS(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?o=a=t:a=a.next=t}else o=a=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Gp(e,t,r,n){var o=e.updateQueue;ba=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?a=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(a!==null){var f=o.baseState;i=0,c=l=u=null,s=a;do{var p=s.lane,h=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,b=s;switch(p=t,h=r,b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=Ft({},f,p);break e;case 2:ba=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=f):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Wi|=i,e.lanes=i,e.memoizedState=f}}function QS(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Lg.transition;Lg.transition={};try{e(!1),t()}finally{dt=r,Lg.transition=n}}function sT(){return An().memoizedState}function IL(e,t,r){var n=Da(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},lT(e))uT(t,r);else if(r=VR(e,t,r,n),r!==null){var o=jr();Zn(r,e,n,o),cT(r,t,n)}}function jL(e,t,r){var n=Da(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(lT(e))uT(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,eo(s,i)){var u=t.interleaved;u===null?(o.next=o,jx(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=VR(e,t,o,n),r!==null&&(o=jr(),Zn(r,e,n,o),cT(r,t,n))}}function lT(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function uT(e,t){ec=Xp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function cT(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,bx(e,r)}}var Yp={readContext:jn,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},AL={readContext:jn,useCallback:function(e,t){return lo().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:YS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gd(4194308,4,rT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gd(4,2,e,t)},useMemo:function(e,t){var r=lo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=lo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=IL.bind(null,Mt,e),[n.memoizedState,e]},useRef:function(e){var t=lo();return e={current:e},t.memoizedState=e},useState:XS,useDebugValue:Ux,useDeferredValue:function(e){return lo().memoizedState=e},useTransition:function(){var e=XS(!1),t=e[0];return e=TL.bind(null,e[1]),lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Mt,o=lo();if(Rt){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),sr===null)throw Error(ge(349));Vi&30||GR(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,YS(XR.bind(null,n,a,e),[e]),n.flags|=2048,Dc(9,QR.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=lo(),t=sr.identifierPrefix;if(Rt){var r=Ho,n=qo;r=(n&~(1<<32-Jn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Nc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[ho]=t,e[Ac]=n,xT(e,t,!1,!1),t.stateNode=e;e:{switch(i=l0(r,n),r){case"dialog":St("cancel",e),St("close",e),o=n;break;case"iframe":case"object":case"embed":St("load",e),o=n;break;case"video":case"audio":for(o=0;o_l&&(t.flags|=128,n=!0,Cu(a,!1),t.lanes=4194304)}else{if(!n)if(e=Qp(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Rt)return _r(t),null}else 2*Vt()-a.renderingStartTime>_l&&r!==1073741824&&(t.flags|=128,n=!0,Cu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Vt(),t.sibling=null,r=At.current,Ot(At,n?r&1|2:r&1),t):(_r(t),null);case 22:case 23:return Gx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?cn&1073741824&&(_r(t),t.subtreeFlags&6&&(t.flags|=8192)):_r(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function UL(e,t){switch($x(t),t.tag){case 1:return Yr(t.type)&&Up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xl(),Pt(Xr),Pt(Cr),Nx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fx(t),null;case 13:if(Pt(At),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pt(At),null;case 4:return xl(),null;case 10:return Ix(t.type._context),null;case 22:case 23:return Gx(),null;case 24:return null;default:return null}}var gd=!1,Sr=!1,VL=typeof WeakSet=="function"?WeakSet:Set,Re=null;function Ns(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Dt(e,t,n)}else r.current=null}function M0(e,t,r){try{r()}catch(n){Dt(e,t,n)}}var lE=!1;function WL(e,t){if(y0=Lp,e=PR(),Cx(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(s=i+o),f!==a||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++l===o&&(s=i),p===a&&++c===n&&(u=i),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(b0={focusedElem:e,selectionRange:r},Lp=!1,Re=t;Re!==null;)if(t=Re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Re=e;else for(;Re!==null;){t=Re;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 b=g.memoizedProps,w=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:Kn(t.type,b),w);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(O){Dt(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Re=e;break}Re=t.return}return g=lE,lE=!1,g}function tc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&M0(t,r,a)}o=o.next}while(o!==n)}}function Sh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function F0(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function OT(e){var t=e.alternate;t!==null&&(e.alternate=null,OT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ho],delete t[Ac],delete t[_0],delete t[CL],delete t[PL])),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 ST(e){return e.tag===5||e.tag===3||e.tag===4}function uE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ST(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 N0(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zp));else if(n!==4&&(e=e.child,e!==null))for(N0(e,t,r),e=e.sibling;e!==null;)N0(e,t,r),e=e.sibling}function L0(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(L0(e,t,r),e=e.sibling;e!==null;)L0(e,t,r),e=e.sibling}var pr=null,Gn=!1;function ha(e,t,r){for(r=r.child;r!==null;)ET(e,t,r),r=r.sibling}function ET(e,t,r){if(xo&&typeof xo.onCommitFiberUnmount=="function")try{xo.onCommitFiberUnmount(mh,r)}catch{}switch(r.tag){case 5:Sr||Ns(r,t);case 6:var n=pr,o=Gn;pr=null,ha(e,t,r),pr=n,Gn=o,pr!==null&&(Gn?(e=pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):pr.removeChild(r.stateNode));break;case 18:pr!==null&&(Gn?(e=pr,r=r.stateNode,e.nodeType===8?Mg(e.parentNode,r):e.nodeType===1&&Mg(e,r),kc(e)):Mg(pr,r.stateNode));break;case 4:n=pr,o=Gn,pr=r.stateNode.containerInfo,Gn=!0,ha(e,t,r),pr=n,Gn=o;break;case 0:case 11:case 14:case 15:if(!Sr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&M0(r,t,i),o=o.next}while(o!==n)}ha(e,t,r);break;case 1:if(!Sr&&(Ns(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Dt(r,t,s)}ha(e,t,r);break;case 21:ha(e,t,r);break;case 22:r.mode&1?(Sr=(n=Sr)||r.memoizedState!==null,ha(e,t,r),Sr=n):ha(e,t,r);break;default:ha(e,t,r)}}function cE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new VL),t.forEach(function(n){var o=ZL.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Hn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Vt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*HL(n/1960))-n,10e?16:e,$a===null)var n=!1;else{if(e=$a,$a=null,ev=0,nt&6)throw Error(ge(331));var o=nt;for(nt|=4,Re=e.current;Re!==null;){var a=Re,i=a.child;if(Re.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uVt()-Hx?Ai(e,0):qx|=r),Jr(e,t)}function jT(e,t){t===0&&(e.mode&1?(t=ld,ld<<=1,!(ld&130023424)&&(ld=4194304)):t=1);var r=jr();e=Jo(e,t),e!==null&&(af(e,t,r),Jr(e,r))}function JL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),jT(e,r)}function ZL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),jT(e,r)}var AT;AT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xr.current)Qr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Qr=!1,BL(e,t,r);Qr=!!(e.flags&131072)}else Qr=!1,Rt&&t.flags&1048576&&LR(t,qp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qd(e,t),e=t.pendingProps;var o=gl(t,Cr.current);Zs(t,r),o=Dx(null,t,n,e,o,r);var a=Bx();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,Yr(n)?(a=!0,Vp(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ax(t),o.updater=Oh,t.stateNode=o,o._reactInternals=t,$0(t,n,e,r),t=T0(null,t,n,!0,a,r)):(t.tag=0,Rt&&a&&Px(t),Tr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qd(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=t6(n),e=Kn(n,e),o){case 0:t=R0(null,t,n,e,r);break e;case 1:t=aE(null,t,n,e,r);break e;case 11:t=nE(null,t,n,e,r);break e;case 14:t=oE(null,t,n,Kn(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kn(n,o),R0(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kn(n,o),aE(e,t,n,o,r);case 3:e:{if(gT(t),e===null)throw Error(ge(387));n=t.pendingProps,a=t.memoizedState,o=a.element,WR(e,t),Gp(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=wl(Error(ge(423)),t),t=iE(e,t,n,r,o);break e}else if(n!==o){o=wl(Error(ge(424)),t),t=iE(e,t,n,r,o);break e}else for(pn=Fa(t.stateNode.containerInfo.firstChild),vn=t,Rt=!0,Qn=null,r=UR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yl(),n===o){t=Zo(e,t,r);break e}Tr(e,t,n,r)}t=t.child}return t;case 5:return qR(t),e===null&&E0(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,x0(n,o)?i=null:a!==null&&x0(n,a)&&(t.flags|=32),mT(e,t),Tr(e,t,i,r),t.child;case 6:return e===null&&E0(t),null;case 13:return yT(e,t,r);case 4:return Mx(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=bl(t,null,n,r):Tr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kn(n,o),nE(e,t,n,o,r);case 7:return Tr(e,t,t.pendingProps,r),t.child;case 8:return Tr(e,t,t.pendingProps.children,r),t.child;case 12:return Tr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Ot(Hp,n._currentValue),n._currentValue=i,a!==null)if(eo(a.value,i)){if(a.children===o.children&&!Xr.current){t=Zo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=Go(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),C0(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ge(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),C0(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Tr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Zs(t,r),o=jn(o),n=n(o),t.flags|=1,Tr(e,t,n,r),t.child;case 14:return n=t.type,o=Kn(n,t.pendingProps),o=Kn(n.type,o),oE(e,t,n,o,r);case 15:return vT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kn(n,o),Qd(e,t),t.tag=1,Yr(n)?(e=!0,Vp(t)):e=!1,Zs(t,r),fT(t,n,o),$0(t,n,o,r),T0(null,t,n,!0,e,r);case 19:return bT(e,t,r);case 22:return hT(e,t,r)}throw Error(ge(156,t.tag))};function MT(e,t){return lR(e,t)}function e6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,r,n){return new e6(e,t,r,n)}function Xx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t6(e){if(typeof e=="function")return Xx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hx)return 11;if(e===mx)return 14}return 2}function Ba(e,t){var r=e.alternate;return r===null?(r=$n(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Jd(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")Xx(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $s:return Mi(r.children,o,a,t);case vx:i=8,o|=8;break;case Jy:return e=$n(12,r,t,o|2),e.elementType=Jy,e.lanes=a,e;case Zy:return e=$n(13,r,t,o),e.elementType=Zy,e.lanes=a,e;case e0:return e=$n(19,r,t,o),e.elementType=e0,e.lanes=a,e;case qk:return Ch(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vk:i=10;break e;case Wk:i=9;break e;case hx:i=11;break e;case mx:i=14;break e;case ya:i=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=$n(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Mi(e,t,r,n){return e=$n(7,e,n,t),e.lanes=r,e}function Ch(e,t,r,n){return e=$n(22,e,n,t),e.elementType=qk,e.lanes=r,e.stateNode={isHidden:!1},e}function Vg(e,t,r){return e=$n(6,e,null,t),e.lanes=r,e}function Wg(e,t,r){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r6(e,t,r,n,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=Sg(0),this.expirationTimes=Sg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sg(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yx(e,t,r,n,o,a,i,s,u){return e=new r6(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$n(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ax(a),e}function n6(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DT)}catch(e){console.error(e)}}DT(),Dk.exports=yn;var Th=Dk.exports;const qu=jt(Th);var yE=Th;Xy.createRoot=yE.createRoot,Xy.hydrateRoot=yE.hydrateRoot;var l6={id:""},u6={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(l6)}},tw=d.createContext(u6);tw.displayName="AuthContext";var Ih={loginUrl:"/login",afterLoginUrl:"/"},aa=function(){return d.useContext(tw)};function V0(e,t){return V0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},V0(e,t)}function ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,V0(e,t)}var zl=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var o=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function vr(){}function c6(e,t){return typeof e=="function"?e(t):e}function W0(e){return typeof e=="number"&&e>=0&&e!==1/0}function ov(e){return Array.isArray(e)?e:[e]}function BT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zd(e,t,r){return cf(e)?typeof t=="function"?$({},r,{queryKey:e,queryFn:t}):$({},t,{queryKey:e}):e}function f6(e,t,r){return cf(e)?typeof t=="function"?$({},r,{mutationKey:e,mutationFn:t}):$({},t,{mutationKey:e}):typeof e=="function"?$({},t,{mutationFn:e}):$({},e)}function xa(e,t,r){return cf(e)?[$({},t,{queryKey:e}),r]:[e||{},t]}function d6(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function bE(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,u=e.stale;if(cf(s)){if(n){if(t.queryHash!==rw(s,t.options))return!1}else if(!av(t.queryKey,s))return!1}var l=d6(r,a);if(l==="none")return!1;if(l!=="all"){var c=t.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function xE(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(cf(a)){if(!t.options.mutationKey)return!1;if(r){if($i(t.options.mutationKey)!==$i(a))return!1}else if(!av(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function rw(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||$i;return r(e)}function $i(e){var t=ov(e);return p6(t)}function p6(e){return JSON.stringify(e,function(t,r){return q0(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function av(e,t){return zT(ov(e),ov(t))}function zT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!zT(e[r],t[r])}):!1}function iv(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||q0(e)&&q0(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,u=0;u"u")return!0;var r=t.prototype;return!(!wE(r)||!r.hasOwnProperty("isPrototypeOf"))}function wE(e){return Object.prototype.toString.call(e)==="[object Object]"}function cf(e){return typeof e=="string"||Array.isArray(e)}function h6(e){return new Promise(function(t){setTimeout(t,e)})}function _E(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function UT(){if(typeof AbortController=="function")return new AbortController}var m6=function(e){ia(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!nv&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(zl),oc=new m6,g6=function(e){ia(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!nv&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(zl),ep=new g6;function y6(e){return Math.min(1e3*Math.pow(2,e),3e4)}function sv(e){return typeof(e==null?void 0:e.cancel)=="function"}var VT=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function tp(e){return e instanceof VT}var WT=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(p){return o==null?void 0:o(p)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(p,h){i=p,s=h});var u=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},l=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},c=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function p(){if(!r.isResolved){var h;try{h=t.fn()}catch(g){h=Promise.reject(g)}o=function(b){if(!r.isResolved&&(l(new VT(b)),r.abort==null||r.abort(),sv(h)))try{h.cancel()}catch{}},r.isTransportCancelable=sv(h),Promise.resolve(h).then(u).catch(function(g){var b,w;if(!r.isResolved){var x=(b=t.retry)!=null?b:3,m=(w=t.retryDelay)!=null?w:y6,y=typeof m=="function"?m(r.failureCount,g):m,O=x===!0||typeof x=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(u){return bE(s,u)})},r.findAll=function(o,a){var i=xa(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(u){return bE(s,u)}):this.queries},r.notify=function(o){var a=this;_t.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;_t.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;_t.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(zl),O6=function(){function e(r){this.options=$({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||HT(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(vr).catch(vr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),lv().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new WT({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=S6(this.state,n),_t.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function HT(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function S6(e,t){switch(t.type){case"failed":return $({},e,{failureCount:e.failureCount+1});case"pause":return $({},e,{isPaused:!0});case"continue":return $({},e,{isPaused:!1});case"loading":return $({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return $({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return $({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return $({},e,t.state);default:return e}}var E6=function(e){ia(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new O6({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;_t.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return xE(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return xE(o,a)})},r.notify=function(o){var a=this;_t.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return _t.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(vr)})},Promise.resolve())})},t}(zl);function C6(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,u=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,c=l==null?void 0:l.pageParam,f=(l==null?void 0:l.direction)==="forward",p=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],g=((s=t.state.data)==null?void 0:s.pageParams)||[],b=UT(),w=b==null?void 0:b.signal,x=g,m=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(B,A,V,q){return x=q?[A].concat(x):[].concat(x,[A]),q?[V].concat(B):[].concat(B,[V])},v=function(B,A,V,q){if(m)return Promise.reject("Cancelled");if(typeof V>"u"&&!A&&B.length)return Promise.resolve(B);var j={queryKey:t.queryKey,signal:w,pageParam:V,meta:t.meta},W=y(j),K=Promise.resolve(W).then(function(re){return O(B,V,re,q)});if(sv(W)){var ne=K;ne.cancel=W.cancel}return K},_;if(!h.length)_=v([]);else if(f){var S=typeof c<"u",C=S?c:OE(t.options,h);_=v(h,S,C)}else if(p){var P=typeof c<"u",k=P?c:P6(t.options,h);_=v(h,P,k,!0)}else(function(){x=[];var M=typeof t.options.getNextPageParam>"u",B=u&&h[0]?u(h[0],0,h):!0;_=B?v([],M,g[0]):Promise.resolve(O([],g[0],h[0]));for(var A=function(j){_=_.then(function(W){var K=u&&h[j]?u(h[j],j,h):!0;if(K){var ne=M?g[j]:OE(t.options,W);return v(W,M,ne)}return Promise.resolve(O(W,g[j],h[j]))})},V=1;V"u"&&(c.revert=!0);var f=_t.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.cancel(c)})});return Promise.all(f).then(vr).catch(vr)},t.invalidateQueries=function(n,o,a){var i,s,u,l=this,c=xa(n,o,a),f=c[0],p=c[1],h=$({},f,{active:(i=(s=f.refetchActive)!=null?s:f.active)!=null?i:!0,inactive:(u=f.refetchInactive)!=null?u:!1});return _t.batch(function(){return l.queryCache.findAll(f).forEach(function(g){g.invalidate()}),l.refetchQueries(h,p)})},t.refetchQueries=function(n,o,a){var i=this,s=xa(n,o,a),u=s[0],l=s[1],c=_t.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.fetch(void 0,$({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),f=Promise.all(c).then(vr);return l!=null&&l.throwOnError||(f=f.catch(vr)),f},t.fetchQuery=function(n,o,a){var i=Zd(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(vr).catch(vr)},t.fetchInfiniteQuery=function(n,o,a){var i=Zd(n,o,a);return i.behavior=C6(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(vr).catch(vr)},t.cancelMutations=function(){var n=this,o=_t.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(vr).catch(vr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return $i(n)===$i(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return av(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return $i(n)===$i(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return av(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=$({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=rw(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:$({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),k6=function(e){ia(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),SE(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return H0(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return H0(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var u=this.hasListeners();u&&EE(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},u=function(c){i.trackedProps.includes(c)||i.trackedProps.push(c)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return u(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&u("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var u=a.subscribe(function(l){l.isFetching||(u(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch($({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(vr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(nv||this.currentResult.isStale||!W0(this.options.staleTime))){var a=BT(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(nv||this.options.enabled===!1||!W0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||oc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,f=o!==i,p=f?o.state:this.currentQueryInitialState,h=f?this.currentResult:this.previousQueryResult,g=o.state,b=g.dataUpdatedAt,w=g.error,x=g.errorUpdatedAt,m=g.isFetching,y=g.status,O=!1,v=!1,_;if(a.optimisticResults){var S=this.hasListeners(),C=!S&&SE(o,a),P=S&&EE(o,i,a,s);(C||P)&&(m=!0,b||(y="loading"))}if(a.keepPreviousData&&!g.dataUpdateCount&&(h!=null&&h.isSuccess)&&y!=="error")_=h.data,b=h.dataUpdatedAt,y=h.status,O=!0;else if(a.select&&typeof g.data<"u")if(u&&g.data===(l==null?void 0:l.data)&&a.select===this.selectFn)_=this.selectResult;else try{this.selectFn=a.select,_=a.select(g.data),a.structuralSharing!==!1&&(_=iv(u==null?void 0:u.data,_)),this.selectResult=_,this.selectError=null}catch(I){lv().error(I),this.selectError=I}else _=g.data;if(typeof a.placeholderData<"u"&&typeof _>"u"&&(y==="loading"||y==="idle")){var k;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(c==null?void 0:c.placeholderData))k=u.data;else if(k=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof k<"u")try{k=a.select(k),a.structuralSharing!==!1&&(k=iv(u==null?void 0:u.data,k)),this.selectError=null}catch(I){lv().error(I),this.selectError=I}typeof k<"u"&&(y="success",_=k,v=!0)}this.selectError&&(w=this.selectError,_=this.selectResult,x=Date.now(),y="error");var R={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:_,dataUpdatedAt:b,error:w,errorUpdatedAt:x,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:m,isRefetching:m&&y!=="loading",isLoadingError:y==="error"&&g.dataUpdatedAt===0,isPlaceholderData:v,isPreviousData:O,isRefetchError:y==="error"&&g.dataUpdatedAt!==0,isStale:nw(o,a),refetch:this.refetch,remove:this.remove};return R},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,u=i.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(c){var f=c,p=o[f]!==a[f],h=l==null?void 0:l.some(function(b){return b===c}),g=u==null?void 0:u.some(function(b){return b===c});return p&&!g&&(!l||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!v6(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify($({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!tp(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;_t.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(zl);function R6(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SE(e,t){return R6(e,t)||e.state.dataUpdatedAt>0&&H0(e,t,t.refetchOnMount)}function H0(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&nw(e,t)}return!1}function EE(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&nw(e,r)}function nw(e,t){return e.isStaleByTime(t.staleTime)}var T6=function(e){ia(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,$({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:HT(),a=$({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;_t.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(zl),I6=qu.unstable_batchedUpdates;_t.setBatchNotifyFunction(I6);var j6=console;x6(j6);var CE=ce.createContext(void 0),KT=ce.createContext(!1);function GT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=CE),window.ReactQueryClientContext):CE}var $o=function(){var t=ce.useContext(GT(ce.useContext(KT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},A6=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;ce.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=GT(o);return ce.createElement(KT.Provider,{value:o},ce.createElement(i.Provider,{value:r},a))};function M6(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var F6=ce.createContext(M6()),N6=function(){return ce.useContext(F6)};function QT(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function jh(e,t,r){var n=ce.useRef(!1),o=ce.useState(0),a=o[1],i=f6(e,t,r),s=$o(),u=ce.useRef();u.current?u.current.setOptions(i):u.current=new T6(s,i);var l=u.current.getCurrentResult();ce.useEffect(function(){n.current=!0;var f=u.current.subscribe(_t.batchCalls(function(){n.current&&a(function(p){return p+1})}));return function(){n.current=!1,f()}},[]);var c=ce.useCallback(function(f,p){u.current.mutate(f,p).catch(vr)},[]);if(l.error&&QT(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return $({},l,{mutate:c,mutateAsync:l.mutate})}function L6(e,t){var r=ce.useRef(!1),n=ce.useState(0),o=n[1],a=$o(),i=N6(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=_t.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=_t.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=_t.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var u=ce.useState(function(){return new t(a,s)}),l=u[0],c=l.getOptimisticResult(s);if(ce.useEffect(function(){r.current=!0,i.clearReset();var f=l.subscribe(_t.batchCalls(function(){r.current&&o(function(p){return p+1})}));return l.updateResult(),function(){r.current=!1,f()}},[i,l]),ce.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(f){var p=f.data;s.onSuccess==null||s.onSuccess(p),s.onSettled==null||s.onSettled(p,null)}).catch(function(f){i.clearReset(),s.onError==null||s.onError(f),s.onSettled==null||s.onSettled(void 0,f)});if(c.isError&&!i.isReset()&&!c.isFetching&&QT(s.suspense,s.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c,s)),c}function Ul(e,t,r){var n=Zd(e,t,r);return L6(n,k6)}/** - * @remix-run/router v1.16.1 - * - * 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 K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function XT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PE(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ff(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var $E;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($E||($E={}));function D6(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ff(t):t,o=ow(n.pathname||"/",r);if(o==null)return null;let a=YT(e);B6(a);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&(Wt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=za([n,u.relativePath]),c=r.concat(u);a.children&&a.children.length>0&&(Wt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),YT(a.children,t,c,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:K6(l,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of JT(a.path))o(a,i,u)}),t}function JT(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=JT(n.join("/")),s=[];return s.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function B6(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:G6(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const z6=/^:[\w-]+$/,U6=3,V6=2,W6=1,q6=10,H6=-2,kE=e=>e==="*";function K6(e,t){let r=e.split("/"),n=r.length;return r.some(kE)&&(n+=H6),t&&(n+=V6),r.filter(o=>!kE(o)).reduce((o,a)=>o+(z6.test(a)?U6:a===""?W6:q6),n)}function G6(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Q6(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=s[f];return h&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function X6(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),XT(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Y6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return XT(!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 ow(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function J6(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ff(e):e;return{pathname:r?r.startsWith("/")?r:Z6(r,t):t,search:rD(n),hash:nD(o)}}function Z6(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function qg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eD(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function aw(e,t){let r=eD(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function iw(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ff(e):(o=K0({},e),Wt(!o.pathname||!o.pathname.includes("?"),qg("?","pathname","search",o)),Wt(!o.pathname||!o.pathname.includes("#"),qg("#","pathname","hash",o)),Wt(!o.search||!o.search.includes("#"),qg("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=J6(o,s),l=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const za=e=>e.join("/").replace(/\/\/+/g,"/"),tD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const eI=["post","put","patch","delete"];new Set(eI);const aD=["get",...eI];new Set(aD);/** - * React Router v6.23.1 - * - * 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 zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;tZT(e,t),[t,e])}function rI(e){d.useContext(sa).static||d.useLayoutEffect(e)}function ko(){let{isDataRoute:e}=d.useContext(la);return e?wD():uD()}function uD(){Ja()||Wt(!1);let e=d.useContext(sw),{basename:t,future:r,navigator:n}=d.useContext(sa),{matches:o}=d.useContext(la),{pathname:a}=Nr(),i=JSON.stringify(aw(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return rI(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=iw(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:za([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,a,e])}function nI(){let{matches:e}=d.useContext(la),t=e[e.length-1];return t?t.params:{}}function oI(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(sa),{matches:o}=d.useContext(la),{pathname:a}=Nr(),i=JSON.stringify(aw(o,n.v7_relativeSplatPath));return d.useMemo(()=>iw(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function cD(e,t){return fD(e,t)}function fD(e,t,r,n){Ja()||Wt(!1);let{navigator:o}=d.useContext(sa),{matches:a}=d.useContext(la),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=Nr(),c;if(t){var f;let w=typeof t=="string"?ff(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Wt(!1),c=w}else c=l;let p=c.pathname||"/",h=p;if(u!=="/"){let w=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=D6(e,{pathname:h}),b=mD(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:za([u,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:za([u,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,r,n);return t&&b?d.createElement(Ah.Provider,{value:{location:zc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:uv.Pop}},b):b}function dD(){let e=xD(),t=oD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:o},r):null,null)}const pD=d.createElement(dD,null);class vD extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(la.Provider,{value:this.props.routeContext},d.createElement(tI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hD(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(sw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(la.Provider,{value:t},n)}function mD(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||Wt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let h,g=!1,b=null,w=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||pD,u&&(l<0&&p===0?(g=!0,w=null):l===p&&(g=!0,w=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let y;return h?y=b:g?y=w:f.route.Component?y=d.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,d.createElement(hD,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:y})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(vD,{location:r.location,revalidation:r.revalidation,component:b,error:h,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var aI=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aI||{}),cv=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}(cv||{});function gD(e){let t=d.useContext(sw);return t||Wt(!1),t}function yD(e){let t=d.useContext(iD);return t||Wt(!1),t}function bD(e){let t=d.useContext(la);return t||Wt(!1),t}function iI(e){let t=bD(),r=t.matches[t.matches.length-1];return r.route.id||Wt(!1),r.route.id}function xD(){var e;let t=d.useContext(tI),r=yD(cv.UseRouteError),n=iI(cv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function wD(){let{router:e}=gD(aI.UseNavigateStable),t=iI(cv.UseNavigateStable),r=d.useRef(!1);return rI(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,zc({fromRouteId:t},a)))},[e,t])}function _D(e){let{to:t,replace:r,state:n,relative:o}=e;Ja()||Wt(!1);let{future:a,static:i}=d.useContext(sa),{matches:s}=d.useContext(la),{pathname:u}=Nr(),l=ko(),c=iw(t,aw(s,a.v7_relativeSplatPath),u,o==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:o}),[l,f,o,r,n]),null}function Gr(e){Wt(!1)}function OD(e){let{basename:t="/",children:r=null,location:n,navigationType:o=uv.Pop,navigator:a,static:i=!1,future:s}=e;Ja()&&Wt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:a,static:i,future:zc({v7_relativeSplatPath:!1},s)}),[u,s,a,i]);typeof n=="string"&&(n=ff(n));let{pathname:c="/",search:f="",hash:p="",state:h=null,key:g="default"}=n,b=d.useMemo(()=>{let w=ow(c,u);return w==null?null:{location:{pathname:w,search:f,hash:p,state:h,key:g},navigationType:o}},[u,c,f,p,h,g,o]);return b==null?null:d.createElement(sa.Provider,{value:l},d.createElement(Ah.Provider,{children:r,value:b}))}function Ds(e){let{children:t,location:r}=e;return cD(G0(t),r)}new Promise(()=>{});function G0(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,o)=>{if(!d.isValidElement(n))return;let a=[...t,o];if(n.type===d.Fragment){r.push.apply(r,G0(n.props.children,a));return}n.type!==Gr&&Wt(!1),!n.props.index||!n.props.children||Wt(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=G0(n.props.children,a)),r.push(i)}),r}/** - * React Router DOM v6.23.1 - * - * 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 Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function ED(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CD(e,t){return e.button===0&&(!t||t==="_self")&&!ED(e)}const PD=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$D="6";try{window.__reactRouterVersion=$D}catch{}const kD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hi=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=SD(t,PD),{basename:h}=d.useContext(sa),g,b=!1;if(typeof l=="string"&&RD.test(l)&&(g=l,kD))try{let y=new URL(window.location.href),O=l.startsWith("//")?new URL(y.protocol+l):new URL(l),v=ow(O.pathname,h);O.origin===y.origin&&v!=null?l=v+O.search+O.hash:b=!0}catch{}let w=sD(l,{relative:o}),x=TD(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:f});function m(y){n&&n(y),y.defaultPrevented||x(y)}return d.createElement("a",Q0({},p,{href:g||w,onClick:b||a?n:m,ref:r,target:u}))});var RE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(RE||(RE={}));var TE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(TE||(TE={}));function TD(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=ko(),l=Nr(),c=oI(e,{relative:i});return d.useCallback(f=>{if(CD(f,r)){f.preventDefault();let p=n!==void 0?n:PE(l)===PE(c);u(e,{replace:p,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,u,c,n,o,r,e,a,i,s])}var ID="RaStore",jD=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},X0=jD(),AD=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(ID).concat(t),n=r.length,o={},a=function(s,u){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?IE(s.newValue):void 0;Object.keys(o).forEach(function(f){o[f]&&o[f].key===l&&(c===null?o[f].callback(void 0):o[f].callback(c??void 0))})}};return{setup:function(){if(X0){var s=Mo().getItem("".concat(r,".version"));if(s&&s!==e){var u=Mo();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Mo().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){X0&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Mo().getItem("".concat(r,".").concat(s));return l==null?u:IE(l)},setItem:function(s,u){u===void 0?Mo().removeItem("".concat(r,".").concat(s)):Mo().setItem("".concat(r,".").concat(s),JSON.stringify(u)),a(s,u)},removeItem:function(s){Mo().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var u=Mo();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);a(c,void 0)}})},reset:function(){var s=Mo();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);a(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return o[l]={key:s,callback:u},function(){delete o[l]}}}},IE=function(e){try{return JSON.parse(e)}catch{return e}},MD=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),FD=new MD,Mo=function(){return X0?window.localStorage:FD},ND=typeof Ca=="object"&&Ca&&Ca.Object===Object&&Ca,sI=ND,LD=sI,DD=typeof self=="object"&&self&&self.Object===Object&&self,BD=LD||DD||Function("return this")(),ro=BD,zD=ro,UD=zD.Symbol,Vl=UD,jE=Vl,lI=Object.prototype,VD=lI.hasOwnProperty,WD=lI.toString,$u=jE?jE.toStringTag:void 0;function qD(e){var t=VD.call(e,$u),r=e[$u];try{e[$u]=void 0;var n=!0}catch{}var o=WD.call(e);return n&&(t?e[$u]=r:delete e[$u]),o}var HD=qD,KD=Object.prototype,GD=KD.toString;function QD(e){return GD.call(e)}var XD=QD,AE=Vl,YD=HD,JD=XD,ZD="[object Null]",eB="[object Undefined]",ME=AE?AE.toStringTag:void 0;function tB(e){return e==null?e===void 0?eB:ZD:ME&&ME in Object(e)?YD(e):JD(e)}var Wl=tB;function rB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dn=rB,nB=Wl,oB=Dn,aB="[object AsyncFunction]",iB="[object Function]",sB="[object GeneratorFunction]",lB="[object Proxy]";function uB(e){if(!oB(e))return!1;var t=nB(e);return t==iB||t==sB||t==aB||t==lB}var lw=uB,cB=ro,fB=cB["__core-js_shared__"],dB=fB,Hg=dB,FE=function(){var e=/[^.]+$/.exec(Hg&&Hg.keys&&Hg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pB(e){return!!FE&&FE in e}var vB=pB,hB=Function.prototype,mB=hB.toString;function gB(e){if(e!=null){try{return mB.call(e)}catch{}try{return e+""}catch{}}return""}var uI=gB,yB=lw,bB=vB,xB=Dn,wB=uI,_B=/[\\^$.*+?()[\]{}|]/g,OB=/^\[object .+?Constructor\]$/,SB=Function.prototype,EB=Object.prototype,CB=SB.toString,PB=EB.hasOwnProperty,$B=RegExp("^"+CB.call(PB).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kB(e){if(!xB(e)||bB(e))return!1;var t=yB(e)?$B:OB;return t.test(wB(e))}var RB=kB;function TB(e,t){return e==null?void 0:e[t]}var IB=TB,jB=RB,AB=IB;function MB(e,t){var r=AB(e,t);return jB(r)?r:void 0}var rs=MB,FB=rs,NB=function(){try{var e=FB(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cI=NB,NE=cI;function LB(e,t,r){t=="__proto__"&&NE?NE(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var uw=LB;function DB(e,t){return e===t||e!==e&&t!==t}var ql=DB,BB=uw,zB=ql,UB=Object.prototype,VB=UB.hasOwnProperty;function WB(e,t,r){var n=e[t];(!(VB.call(e,t)&&zB(n,r))||r===void 0&&!(t in e))&&BB(e,t,r)}var cw=WB,qB=Array.isArray,nn=qB;function HB(e){return e!=null&&typeof e=="object"}var ua=HB,KB=Wl,GB=ua,QB="[object Symbol]";function XB(e){return typeof e=="symbol"||GB(e)&&KB(e)==QB}var df=XB,YB=nn,JB=df,ZB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e8=/^\w*$/;function t8(e,t){if(YB(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||JB(e)?!0:e8.test(e)||!ZB.test(e)||t!=null&&e in Object(t)}var fw=t8,r8=rs,n8=r8(Object,"create"),Mh=n8,LE=Mh;function o8(){this.__data__=LE?LE(null):{},this.size=0}var a8=o8;function i8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var s8=i8,l8=Mh,u8="__lodash_hash_undefined__",c8=Object.prototype,f8=c8.hasOwnProperty;function d8(e){var t=this.__data__;if(l8){var r=t[e];return r===u8?void 0:r}return f8.call(t,e)?t[e]:void 0}var p8=d8,v8=Mh,h8=Object.prototype,m8=h8.hasOwnProperty;function g8(e){var t=this.__data__;return v8?t[e]!==void 0:m8.call(t,e)}var y8=g8,b8=Mh,x8="__lodash_hash_undefined__";function w8(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=b8&&t===void 0?x8:t,this}var _8=w8,O8=a8,S8=s8,E8=p8,C8=y8,P8=_8;function Hl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var V8=U8,W8=Fh;function q8(e,t){var r=this.__data__,n=W8(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var H8=q8,K8=R8,G8=N8,Q8=B8,X8=V8,Y8=H8;function Kl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,h=r&m7?new d7:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=dU}var ww=pU,vU=Wl,hU=ww,mU=ua,gU="[object Arguments]",yU="[object Array]",bU="[object Boolean]",xU="[object Date]",wU="[object Error]",_U="[object Function]",OU="[object Map]",SU="[object Number]",EU="[object Object]",CU="[object RegExp]",PU="[object Set]",$U="[object String]",kU="[object WeakMap]",RU="[object ArrayBuffer]",TU="[object DataView]",IU="[object Float32Array]",jU="[object Float64Array]",AU="[object Int8Array]",MU="[object Int16Array]",FU="[object Int32Array]",NU="[object Uint8Array]",LU="[object Uint8ClampedArray]",DU="[object Uint16Array]",BU="[object Uint32Array]",Ct={};Ct[IU]=Ct[jU]=Ct[AU]=Ct[MU]=Ct[FU]=Ct[NU]=Ct[LU]=Ct[DU]=Ct[BU]=!0;Ct[gU]=Ct[yU]=Ct[RU]=Ct[bU]=Ct[TU]=Ct[xU]=Ct[wU]=Ct[_U]=Ct[OU]=Ct[SU]=Ct[EU]=Ct[CU]=Ct[PU]=Ct[$U]=Ct[kU]=!1;function zU(e){return mU(e)&&hU(e.length)&&!!Ct[vU(e)]}var UU=zU;function VU(e){return function(t){return e(t)}}var hf=VU,pv={exports:{}};pv.exports;(function(e,t){var r=sI,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(pv,pv.exports);var _w=pv.exports,WU=UU,qU=hf,XE=_w,YE=XE&&XE.isTypedArray,HU=YE?qU(YE):WU,Ow=HU,KU=eU,GU=Vh,QU=nn,XU=Wh,YU=Bh,JU=Ow,ZU=Object.prototype,eV=ZU.hasOwnProperty;function tV(e,t){var r=QU(e),n=!r&&GU(e),o=!r&&!n&&XU(e),a=!r&&!n&&!o&&JU(e),i=r||n||o||a,s=i?KU(e.length,String):[],u=s.length;for(var l in e)(t||eV.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||YU(l,u)))&&s.push(l);return s}var EI=tV,rV=Object.prototype;function nV(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rV;return e===r}var Sw=nV;function oV(e,t){return function(r){return e(t(r))}}var CI=oV,aV=CI,iV=aV(Object.keys,Object),sV=iV,lV=Sw,uV=sV,cV=Object.prototype,fV=cV.hasOwnProperty;function dV(e){if(!lV(e))return uV(e);var t=[];for(var r in Object(e))fV.call(e,r)&&r!="constructor"&&t.push(r);return t}var pV=dV,vV=lw,hV=ww;function mV(e){return e!=null&&hV(e.length)&&!vV(e)}var Yl=mV,gV=EI,yV=pV,bV=Yl;function xV(e){return bV(e)?gV(e):yV(e)}var mf=xV,wV=wI,_V=xw,OV=mf;function SV(e){return wV(e,OV,_V)}var PI=SV,JE=PI,EV=1,CV=Object.prototype,PV=CV.hasOwnProperty;function $V(e,t,r,n,o,a){var i=r&EV,s=JE(e),u=s.length,l=JE(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:PV.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var b=!0;a.set(e,t),a.set(t,e);for(var w=i;++f0){if(++t>=Gq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jq=Yq,Zq=Kq,eH=Jq,tH=eH(Zq),WI=tH,rH=Hh,nH=VI,oH=WI;function aH(e,t){return oH(nH(e,t,rH),e+"")}var Kh=aH,iH=ql,sH=Yl,lH=Bh,uH=Dn;function cH(e,t,r){if(!uH(r))return!1;var n=typeof t;return(n=="number"?sH(r)&&lH(t,r.length):n=="string"&&t in r)?iH(r[t],e):!1}var qI=cH,fH=Kh,dH=qI;function pH(e){return fH(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&dH(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function SH(e){var t=e.basename,r=e.children,n=e.history,o=d.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return d.useLayoutEffect(function(){return n.listen(i)},[n]),d.createElement(OD,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var QI=d.createContext(""),EH=function(e){var t=e.children,r=e.basename;return d.createElement(QI.Provider,{value:r},t)},CH=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Ja(),i=a?PH:$H;return d.createElement(EH,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},PH=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},$H=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||_H()},[r]);return d.createElement(SH,{history:n},t)},Za=function(){return d.useContext(QI)},ei=function(){var e=Za();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return co("".concat(e,"/").concat(r));case"create":return co("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?co("".concat(e,"/").concat(r)):co("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?co("".concat(e,"/").concat(r)):co("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},co=function(e){return e.replace("//","/")},ac=function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),XI="%[a-f0-9]{2}",CC=new RegExp("("+XI+")|([^%]+?)","gi"),PC=new RegExp("("+XI+")+","gi");function nb(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],nb(r),nb(n))}function HH(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(CC)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},XH=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;am==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return y=>(O,v)=>{const _=O.length;return v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?O:v===null?[...O,[c(y,m),"[",_,"]"].join("")]:[...O,[c(y,m),"[",c(_,m),"]=",c(v,m)].join("")]};case"bracket":return y=>(O,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?O:v===null?[...O,[c(y,m),"[]"].join("")]:[...O,[c(y,m),"[]=",c(v,m)].join("")];case"colon-list-separator":return y=>(O,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?O:v===null?[...O,[c(y,m),":list="].join("")]:[...O,[c(y,m),":list=",c(v,m)].join("")];case"comma":case"separator":case"bracket-separator":{const y=m.arrayFormat==="bracket-separator"?"[]=":"=";return O=>(v,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?v:(_=_===null?"":_,v.length===0?[[c(O,m),y,c(_,m)].join("")]:[[v,c(_,m)].join(m.arrayFormatSeparator)])}default:return y=>(O,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?O:v===null?[...O,c(y,m)]:[...O,[c(y,m),"=",c(v,m)].join("")]}}function u(m){let y;switch(m.arrayFormat){case"index":return(O,v,_)=>{if(y=/\[(\d*)\]$/.exec(O),O=O.replace(/\[\d*\]$/,""),!y){_[O]=v;return}_[O]===void 0&&(_[O]={}),_[O][y[1]]=v};case"bracket":return(O,v,_)=>{if(y=/(\[\])$/.exec(O),O=O.replace(/\[\]$/,""),!y){_[O]=v;return}if(_[O]===void 0){_[O]=[v];return}_[O]=[].concat(_[O],v)};case"colon-list-separator":return(O,v,_)=>{if(y=/(:list)$/.exec(O),O=O.replace(/:list$/,""),!y){_[O]=v;return}if(_[O]===void 0){_[O]=[v];return}_[O]=[].concat(_[O],v)};case"comma":case"separator":return(O,v,_)=>{const S=typeof v=="string"&&v.includes(m.arrayFormatSeparator),C=typeof v=="string"&&!S&&f(v,m).includes(m.arrayFormatSeparator);v=C?f(v,m):v;const P=S||C?v.split(m.arrayFormatSeparator).map(k=>f(k,m)):v===null?v:f(v,m);_[O]=P};case"bracket-separator":return(O,v,_)=>{const S=/(\[\])$/.test(O);if(O=O.replace(/\[\]$/,""),!S){_[O]=v&&f(v,m);return}const C=v===null?[]:v.split(m.arrayFormatSeparator).map(P=>f(P,m));if(_[O]===void 0){_[O]=C;return}_[O]=[].concat(_[O],C)};default:return(O,v,_)=>{if(_[O]===void 0){_[O]=v;return}_[O]=[].concat(_[O],v)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,y){return y.encode?y.strict?t(m):encodeURIComponent(m):m}function f(m,y){return y.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((y,O)=>Number(y)-Number(O)).map(y=>m[y]):m}function h(m){const y=m.indexOf("#");return y!==-1&&(m=m.slice(0,y)),m}function g(m){let y="";const O=m.indexOf("#");return O!==-1&&(y=m.slice(O)),y}function b(m){m=h(m);const y=m.indexOf("?");return y===-1?"":m.slice(y+1)}function w(m,y){return y.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):y.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),l(y.arrayFormatSeparator);const O=u(y),v=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return v;for(const _ of m.split("&")){if(_==="")continue;let[S,C]=n(y.decode?_.replace(/\+/g," "):_,"=");C=C===void 0?null:["comma","separator","bracket-separator"].includes(y.arrayFormat)?C:f(C,y),O(f(S,y),C,v)}for(const _ of Object.keys(v)){const S=v[_];if(typeof S=="object"&&S!==null)for(const C of Object.keys(S))S[C]=w(S[C],y);else v[_]=w(S,y)}return y.sort===!1?v:(y.sort===!0?Object.keys(v).sort():Object.keys(v).sort(y.sort)).reduce((_,S)=>{const C=v[S];return C&&typeof C=="object"&&!Array.isArray(C)?_[S]=p(C):_[S]=C,_},Object.create(null))}e.extract=b,e.parse=x,e.stringify=(m,y)=>{if(!m)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),l(y.arrayFormatSeparator);const O=C=>y.skipNull&&a(m[C])||y.skipEmptyString&&m[C]==="",v=s(y),_={};for(const C of Object.keys(m))O(C)||(_[C]=m[C]);const S=Object.keys(_);return y.sort!==!1&&S.sort(y.sort),S.map(C=>{const P=m[C];return P===void 0?"":P===null?c(C,y):Array.isArray(P)?P.length===0&&y.arrayFormat==="bracket-separator"?c(C,y)+"[]":P.reduce(v(C),[]).join("&"):c(C,y)+"="+c(P,y)}).filter(C=>C.length>0).join("&")},e.parseUrl=(m,y)=>{y=Object.assign({decode:!0},y);const[O,v]=n(m,"#");return Object.assign({url:O.split("?")[0]||"",query:x(b(m),y)},y&&y.parseFragmentIdentifier&&v?{fragmentIdentifier:f(v,y)}:{})},e.stringifyUrl=(m,y)=>{y=Object.assign({encode:!0,strict:!0,[i]:!0},y);const O=h(m.url).split("?")[0]||"",v=e.extract(m.url),_=e.parse(v,{sort:!1}),S=Object.assign(_,m.query);let C=e.stringify(S,y);C&&(C=`?${C}`);let P=g(m.url);return m.fragmentIdentifier&&(P=`#${y[i]?c(m.fragmentIdentifier,y):m.fragmentIdentifier}`),`${O}${C}${P}`},e.pick=(m,y,O)=>{O=Object.assign({parseFragmentIdentifier:!0,[i]:!1},O);const{url:v,query:_,fragmentIdentifier:S}=e.parseUrl(m,O);return e.stringifyUrl({url:v,query:o(_,y),fragmentIdentifier:S},O)},e.exclude=(m,y,O)=>{const v=Array.isArray(y)?_=>!y.includes(_):(_,S)=>!y(_,S);return e.pick(m,v,O)}})(Ki);var mv=function(){return mv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new WH(u&&u.message||a,o,u)):Promise.resolve({status:o,headers:i,body:s,json:u})})},eK=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",o=!!Object.keys(e).length;return!t&&!r&&n&&o},YI=function(e,t){var r;return t===void 0&&(t=[]),eK(e)?Object.assign.apply(Object,YH([{}],Object.keys(e).map(function(n){return YI(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},JI={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,f,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||u,p),g=r?r+l:l;return u._events[g]?u._events[g].fn?u._events[g]=[u._events[g],h]:u._events[g].push(h):(u._events[g]=h,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,h=f.length,g=new Array(h);p0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!e.message?t:e.message},iK=["getList","getMany","getManyReference"],ns=function(){var e=d.useContext(Tw)||ZI,t=ej(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=ce.useRef(e.isMutating()>0),o=ce.useState(r.current||n.current),a=o[0],i=o[1];return ce.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(_t.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(_t.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),a},yf=function(){var e=$o();return d.useCallback(function(){e.invalidateQueries()},[e])},tj=function(e,t,r){var n=t.id,o=t.meta,a=ns();return Ul([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},zs=function(){return zs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?rj(s,t-1,r,n,o):vK(o,s):n||(o[o.length]=s)}return o}var Iw=rj;function mK(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var nj=$K;function kK(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=VK){var l=t?null:zK(e);if(l)return UK(l);i=!1,o=BK,u=new NK}else u=t?[]:s;e:for(;++n=t||S<0||f&&C>=a}function x(){var _=Jg();if(w(_))return m(_);s=setTimeout(x,b(_))}function m(_){return s=void 0,p&&n?h(_):(n=o=void 0,i)}function y(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0}function O(){return s===void 0?i:m(Jg())}function v(){var _=Jg(),S=w(_);if(n=arguments,o=this,u=_,S){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),i}return v.cancel=y,v.flush=O,v}var _G=wG;const OG=jt(_G);function AC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var aj=function(e,t){if(AC(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(o.join(", ")))},sb=function(){return sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(f=e.current)[l].apply(f,wd(wd([],p,!1),[c],!1)):a.apply(void 0,p)};return e.current.length>0?(i=e.current)[l].apply(i,wd(wd([],s,!1),[c],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},yv=function(){return yv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]2?t[2]:void 0;for(o&&EQ(t[0],t[1],o)&&(n=1);++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"?"undefined":_j(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!l.item&&a===void 0&&(a=l);o=o.concat(u)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),qQ=WQ,HQ=typeof window>"u"?Ca:window;function KQ(e,t){if(e instanceof HQ[t])return!0;switch(typeof e>"u"?"undefined":_j(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var ey,UC;function GQ(){return UC||(UC=1,ey=function(t,r,n){var o=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(a,i),(n||s(u))&&(u=t+u+t)),u}}),ey}var QQ=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),o.push(f.join(this._options.rowDelimiter)),n=f}}catch(h){s=!0,u=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(w){var x=o._headers.indexOf(w);return x===-1&&(o._headers.push(w),x=o._headers.indexOf(w)),x};i=function(w){var x=[],m=function(B){return x.push(B.map(function(A){return A??""}))},y=function(){return new Array(o._headers.length).fill(null)},O={},v=y(),_=!0,S=!1,C=void 0;try{for(var P=w[Symbol.iterator](),k;!(_=(k=P.next()).done);_=!0){var R=k.value,I=s(R.item);if(v[I]!=null&&(m(v),v=y()),O[I]=O[I]||0,o._options.fillTopRow&&O[I]0&&m(v),a=a.concat(o._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var h=p.value,g=o._handler.check(h,o._options.mainPathItem,h,r);i(g)}}catch(b){l=!0,c=b}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),VC(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var h=[f.item,p];o.push(h.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[u],l+u,u,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),VC(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),ZQ=JQ,eX=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},tX=eX,qC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HC=ZQ,KC=tX,rX=wj,nX=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:rX,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":qC(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":qC(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new KC(new HC(e));var p=Object.assign({},e,r),h=new HC(p);return t?new Promise(function(g,b){h.parse(t,function(w,x){if(n)return n(w,x);if(w)return b(w);if(b)return g(x)})}):new KC};const oX=jt(nX),aX=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var iX=function(e,t,r,n){return oX(e,function(o,a){return aX(a,n)})},sX=function(e){return function(t,r,n){return e.getMany(n,{ids:lX(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},lX=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},ps=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(u){if(!Array.isArray(u))return ps([],u,!0);var l=u.indexOf(s);return l>-1?ps(ps([],u.slice(0,l),!0),u.slice(l+1),!0):ps(ps([],u,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},uX=[],cX=Uh,fX=Ew,dX=1,pX=2;function vX(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!S&&O(k)},[h.search]);var R=d.useCallback(function(ne){_.current&&(v.current?v.current=FC(v.current,ne):(v.current=FC(k,ne),setTimeout(function(){o?x(v.current):g({search:"?".concat(Ki.stringify(Ua(Ua({},v.current),{filter:JSON.stringify(v.current.filter),displayedFilters:JSON.stringify(v.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===ab}}),v.current=void 0},0)))},GC(GC([],C,!0),[g],!1)),I=d.useCallback(function(ne){return R({type:sj,payload:ne})},[R]),M=d.useCallback(function(ne){return R({type:ab,payload:ne})},[R]),B=d.useCallback(function(ne){return R({type:lj,payload:ne})},[R]),A=k.filter||YC,V=k.displayedFilters||YC,q=OG(function(ne,re){R({type:ib,payload:{filter:Ol(ne),displayedFilters:re}})},r),j=d.useCallback(function(ne,re,be){return be===void 0&&(be=!0),be?q(ne,re):R({type:ib,payload:{filter:Ol(ne),displayedFilters:re}})},[R]),W=d.useCallback(function(ne){R({type:cj,payload:ne})},[R]),K=d.useCallback(function(ne,re){R({type:uj,payload:{filterName:ne,defaultValue:re}})},[R]);return[Ua({displayedFilters:V,filterValues:A,requestSignature:C},k),{changeParams:R,setPage:M,setPerPage:B,setSort:I,setFilters:j,hideFilter:W,showFilter:K}]},wY=["page","perPage","sort","order","filter","displayedFilters"],QC=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},_Y=function(e){var t=e.search,r=yY(Ki.parse(t),function(n,o){return wY.indexOf(o)!==-1});return QC(r,"filter"),QC(r,"displayedFilters"),r},OY=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},SY=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:OY(r)?Ua({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),Ua(Ua({},i),{page:XC(i.page,1),perPage:XC(i.perPage,10)})},XC=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},YC={},EY={field:"id",order:Fi},JC={},Dw=d.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});Dw.displayName="ListContext";var Pj=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),CY=function(e){return d.useMemo(function(){return Gh(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};Pj.displayName="ListFilterContext";var $j=d.createContext({sort:null,setSort:null,resource:null}),PY=function(e){return d.useMemo(function(){return Gh(e,["sort","setSort","resource"])},[e.sort,e.setSort])};$j.displayName="ListSortContext";var Bw=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});Bw.displayName="ListPaginationContext";var $Y=function(e){return d.useMemo(function(){return Gh(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},kj=function(e){var t=e.value,r=e.children;return d.createElement(Dw.Provider,{value:t},d.createElement(Pj.Provider,{value:CY(t)},d.createElement($j.Provider,{value:PY(t)},d.createElement(Bw.Provider,{value:$Y(t)},r))))},Ni=function(){return Ni=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&d.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var y=We(),O=Lr(),v=xY({debounce:r,disableSyncWithLocation:o,filterDefaultValues:u,perPage:c,resource:w,sort:g,storeKey:b}),_=v[0],S=v[1],C=Nw(w),P=C[0],k=C[1],R=uK(w,{pagination:{page:_.page,perPage:_.perPage},sort:{field:_.sort,order:_.order},filter:Ni(Ni({},_.filter),s),meta:x},Ni({keepPreviousData:!0,retry:!1,onError:function(re){return O((re==null?void 0:re.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:re==null?void 0:re.message}})}},m)),I=R.data,M=R.pageInfo,B=R.total,A=R.error,V=R.isLoading,q=R.isFetching,j=R.refetch;d.useEffect(function(){if(_.page<=0||!q&&_.page>1&&(I==null||(I==null?void 0:I.length)===0)){S.setPage(1);return}if(B!=null){var re=Math.ceil(B/_.perPage)||1;!q&&_.page>re&&S.setPage(re)}},[q,_.page,_.perPage,I,S,B]);var W=d.useMemo(function(){return{field:_.sort,order:_.order}},[_.sort,_.order]),K=ru(),ne=y("ra.page.list",{name:K(w,2)});return{sort:W,data:I,defaultTitle:ne,displayedFilters:_.displayedFilters,error:A,exporter:i,filter:s,filterValues:_.filterValues,hideFilter:S.hideFilter,isFetching:q,isLoading:V,onSelect:k.select,onToggleItem:k.toggle,onUnselectItems:k.clearSelection,page:_.page,perPage:_.perPage,refetch:j,resource:w,selectedIds:P,setFilters:S.setFilters,setPage:S.setPage,setPerPage:S.setPerPage,setSort:S.setSort,showFilter:S.showFilter,total:B,hasNextPage:M?M.hasNextPage:B!=null?_.page*_.perPage1}},TY={field:"id",order:Fi},IY=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],El=function(e){return Object.keys(e).filter(function(t){return!IY.includes(t)}).reduce(function(t,r){var n;return Ni(Ni({},t),(n={},n[r]=e[r],n))},{})},jY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:_d(_d([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:_d(_d([],u,!0),[t],!1)})},[a,t,r]);return[i,s]},FY=function(e,t){var r=oo("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},Us=function(){return Us=Object.assign||function(e){for(var t,r=1,n=arguments.length;rTt(Qe,V.field)?V.order==="ASC"?1:-1:Tt(Ce,V.field)1,hideFilter:Oe,isFetching:m,isLoading:v,onSelect:ne.select,onToggleItem:ne.toggle,onUnselectItems:ne.clearSelection,page:R,perPage:M,resource:void 0,refetch:NY,selectedIds:K,setFilters:je,setPage:I,setPerPage:B,setSort:j,showFilter:Ae,total:C==null?void 0:C.total}},DY={},on=function(e){var t=d.useContext(Dw);return d.useMemo(function(){return os({},e!=null?BY(e):{},t)},[t,e])},BY=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,u=e.hideFilter,l=e.isFetching,c=e.isLoading,f=e.onSelect,p=e.onToggleItem,h=e.onUnselectItems,g=e.page,b=e.perPage,w=e.refetch,x=e.resource,m=e.selectedIds,y=e.setFilters,O=e.setPage,v=e.setPerPage,_=e.setSort,S=e.showFilter,C=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:u,isFetching:l,isLoading:c,onSelect:f,onToggleItem:p,onUnselectItems:h,page:g,perPage:b,refetch:w,resource:x,selectedIds:m,setFilters:y,setPage:O,setPerPage:v,setSort:_,showFilter:S,total:C}},zY=function(e){var t=d.useContext(Bw);return d.useMemo(function(){return os({},e!=null?UY(e):{},t)},[t,e])},UY=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,u=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:u,resource:l}},Rj=function(e){var t=Nw(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},bf=e=>e.type==="checkbox",Vs=e=>e instanceof Date,Ir=e=>e==null;const Tj=e=>typeof e=="object";var nr=e=>!Ir(e)&&!Array.isArray(e)&&Tj(e)&&!Vs(e),Ij=e=>nr(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,VY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,jj=(e,t)=>e.has(VY(t)),WY=e=>{const t=e.constructor&&e.constructor.prototype;return nr(t)&&t.hasOwnProperty("isPrototypeOf")},zw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Hr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zw&&(e instanceof Blob||e instanceof FileList))&&(r||nr(e)))if(t=r?[]:{},!r&&!WY(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Hr(e[n]));else return e;return t}var xf=e=>Array.isArray(e)?e.filter(Boolean):[],Bt=e=>e===void 0,Se=(e,t,r)=>{if(!t||!nr(e))return r;const n=xf(t.split(/[,[\].]+?/)).reduce((o,a)=>Ir(o)?o:o[a],e);return Bt(n)||n===e?Bt(e[t])?r:e[t]:n},mo=e=>typeof e=="boolean",Uw=e=>/^\w*$/.test(e),Aj=e=>xf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bt=(e,t,r)=>{let n=-1;const o=Uw(t)?[t]:Aj(t),a=o.length,i=a-1;for(;++nce.useContext(Mj),Fj=e=>{const{children:t,...r}=e;return ce.createElement(Mj.Provider,{value:r},t)};var Nj=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Yn.all&&(t._proxyFormState[i]=!n||Yn.all),r&&(r[i]=!0),e[i]}});return o},un=e=>nr(e)&&!Object.keys(e).length,Lj=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return un(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Yn.all))},np=e=>Array.isArray(e)?e:[e],Dj=(e,t,r)=>!e||!t||e===t||np(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Vw(e){const t=ce.useRef(e);t.current=e,ce.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Xh(e){const t=tu(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=ce.useState(r._formState),u=ce.useRef(!0),l=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ce.useRef(o);return c.current=o,Vw({disabled:n,next:f=>u.current&&Dj(c.current,f.name,a)&&Lj(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ce.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),Nj(i,r,l.current,!1)}var yo=e=>typeof e=="string",Bj=(e,t,r,n,o)=>yo(e)?(n&&t.watch.add(e),Se(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Se(r,a))):(n&&(t.watchAll=!0),r);function qY(e){const t=tu(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=ce.useRef(n);s.current=n,Vw({disabled:a,subject:r._subjects.values,next:c=>{Dj(s.current,c.name,i)&&l(Hr(Bj(s.current,r._names,c.values||r._formValues,!1,o)))}});const[u,l]=ce.useState(r._getWatch(n,o));return ce.useEffect(()=>r._removeUnmounted()),u}function HY(e){const t=tu(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=jj(o._names.array,r),s=qY({control:o,name:r,defaultValue:Se(o._formValues,r,Se(o._defaultValues,r,e.defaultValue)),exact:!0}),u=Xh({control:o,name:r}),l=ce.useRef(o.register(r,{...e.rules,value:s,...mo(e.disabled)?{disabled:e.disabled}:{}}));return ce.useEffect(()=>{const c=o._options.shouldUnregister||a,f=(p,h)=>{const g=Se(o._fields,p);g&&g._f&&(g._f.mount=h)};if(f(r,!0),c){const p=Hr(Se(o._options.defaultValues,r));bt(o._defaultValues,r,p),Bt(Se(o._formValues,r))&&bt(o._formValues,r,p)}return()=>{(i?c&&!o._state.action:c)?o.unregister(r):f(r,!1)}},[r,o,i,a]),ce.useEffect(()=>{Se(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Se(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...mo(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ce.useCallback(c=>l.current.onChange({target:{value:Ij(c),name:r},type:xv.CHANGE}),[r]),onBlur:ce.useCallback(()=>l.current.onBlur({target:{value:Se(o._formValues,r),name:r},type:xv.BLUR}),[r,o]),ref:c=>{const f=Se(o._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Se(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Se(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Se(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Se(u.validatingFields,r)},error:{enumerable:!0,get:()=>Se(u.errors,r)}})}}var KY=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},eP=e=>({isOnSubmit:!e||e===Yn.onSubmit,isOnBlur:e===Yn.onBlur,isOnChange:e===Yn.onChange,isOnAll:e===Yn.all,isOnTouch:e===Yn.onTouched}),tP=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const sc=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Se(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;sc(s,t)}else nr(s)&&sc(s,t)}}};var GY=(e,t,r)=>{const n=xf(Se(e,r));return bt(n,"root",t[r]),bt(e,r,n),e},Ww=e=>e.type==="file",ka=e=>typeof e=="function",wv=e=>{if(!zw)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},op=e=>yo(e),qw=e=>e.type==="radio",_v=e=>e instanceof RegExp;const rP={value:!1,isValid:!1},nP={value:!0,isValid:!0};var zj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Bt(e[0].attributes.value)?Bt(e[0].value)||e[0].value===""?nP:{value:e[0].value,isValid:!0}:nP:rP}return rP};const oP={isValid:!1,value:null};var Uj=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,oP):oP;function aP(e,t,r="validate"){if(op(e)||Array.isArray(e)&&e.every(op)||mo(e)&&!e)return{type:r,message:op(e)?e:"",ref:t}}var vs=e=>nr(e)&&!_v(e)?e:{value:e,message:""},iP=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:h,name:g,valueAsNumber:b,mount:w,disabled:x}=e._f,m=Se(t,g);if(!w||x)return{};const y=i?i[0]:a,O=I=>{n&&y.reportValidity&&(y.setCustomValidity(mo(I)?"":I||""),y.reportValidity())},v={},_=qw(a),S=bf(a),C=_||S,P=(b||Ww(a))&&Bt(a.value)&&Bt(m)||wv(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,k=KY.bind(null,g,r,v),R=(I,M,B,A=Fo.maxLength,V=Fo.minLength)=>{const q=I?M:B;v[g]={type:I?A:V,message:q,ref:a,...k(I?A:V,q)}};if(o?!Array.isArray(m)||!m.length:s&&(!C&&(P||Ir(m))||mo(m)&&!m||S&&!zj(i).isValid||_&&!Uj(i).isValid)){const{value:I,message:M}=op(s)?{value:!!s,message:s}:vs(s);if(I&&(v[g]={type:Fo.required,message:M,ref:y,...k(Fo.required,M)},!r))return O(M),v}if(!P&&(!Ir(c)||!Ir(f))){let I,M;const B=vs(f),A=vs(c);if(!Ir(m)&&!isNaN(m)){const V=a.valueAsNumber||m&&+m;Ir(B.value)||(I=V>B.value),Ir(A.value)||(M=Vnew Date(new Date().toDateString()+" "+K),j=a.type=="time",W=a.type=="week";yo(B.value)&&m&&(I=j?q(m)>q(B.value):W?m>B.value:V>new Date(B.value)),yo(A.value)&&m&&(M=j?q(m)+I.value,A=!Ir(M.value)&&m.length<+M.value;if((B||A)&&(R(B,I.message,M.message),!r))return O(v[g].message),v}if(p&&!P&&yo(m)){const{value:I,message:M}=vs(p);if(_v(I)&&!m.match(I)&&(v[g]={type:Fo.pattern,message:M,ref:a,...k(Fo.pattern,M)},!r))return O(M),v}if(h){if(ka(h)){const I=await h(m,t),M=aP(I,y);if(M&&(v[g]={...M,...k(Fo.validate,M.message)},!r))return O(M.message),v}else if(nr(h)){let I={};for(const M in h){if(!un(I)&&!r)break;const B=aP(await h[M](m,t),y,M);B&&(I={...B,...k(M,B.message)},O(B.message),r&&(v[g]=I))}if(!un(I)&&(v[g]={ref:y,...I},!r))return v}}return O(!0),v};function QY(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},Ov=e=>Ir(e)||!Tj(e);function ki(e,t){if(Ov(e)||Ov(t))return e===t;if(Vs(e)&&Vs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Vs(a)&&Vs(i)||nr(a)&&nr(i)||Array.isArray(a)&&Array.isArray(i)?!ki(a,i):a!==i)return!1}}return!0}var Vj=e=>e.type==="select-multiple",YY=e=>qw(e)||bf(e),ry=e=>wv(e)&&e.isConnected,Wj=e=>{for(const t in e)if(ka(e[t]))return!0;return!1};function Sv(e,t={}){const r=Array.isArray(e);if(nr(e)||r)for(const n in e)Array.isArray(e[n])||nr(e[n])&&!Wj(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Sv(e[n],t[n])):Ir(e[n])||(t[n]=!0);return t}function qj(e,t,r){const n=Array.isArray(e);if(nr(e)||n)for(const o in e)Array.isArray(e[o])||nr(e[o])&&!Wj(e[o])?Bt(t)||Ov(r[o])?r[o]=Array.isArray(e[o])?Sv(e[o],[]):{...Sv(e[o])}:qj(e[o],Ir(t)?{}:t[o],r[o]):r[o]=!ki(e[o],t[o]);return r}var Od=(e,t)=>qj(e,t,Sv(t)),Hj=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Bt(e)?e:t?e===""?NaN:e&&+e:r&&yo(e)?new Date(e):n?n(e):e;function ny(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Ww(t)?t.files:qw(t)?Uj(e.refs).value:Vj(t)?[...t.selectedOptions].map(({value:r})=>r):bf(t)?zj(e.refs).value:Hj(Bt(t.value)?e.ref.value:t.value,e)}var JY=(e,t,r,n)=>{const o={};for(const a of e){const i=Se(t,a);i&&bt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},ku=e=>Bt(e)?e:_v(e)?e.source:nr(e)?_v(e.value)?e.value.source:e.value:e,ZY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function sP(e,t,r){const n=Se(e,r);if(n||Uw(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Se(t,a),s=Se(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var eJ=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,tJ=(e,t)=>!xf(Se(e,t)).length&&Zt(e,t);const rJ={mode:Yn.onSubmit,reValidateMode:Yn.onChange,shouldFocusError:!0};function nJ(e={}){let t={...rJ,...e},r={submitCount:0,isDirty:!1,isLoading:ka(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=nr(t.defaultValues)||nr(t.values)?Hr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Hr(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:ty(),array:ty(),state:ty()},p=eP(t.mode),h=eP(t.reValidateMode),g=t.criteriaMode===Yn.all,b=U=>Q=>{clearTimeout(l),l=setTimeout(U,Q)},w=async U=>{if(c.isValid||U){const Q=t.resolver?un((await C()).errors):await k(n,!0);Q!==r.isValid&&f.state.next({isValid:Q})}},x=(U,Q)=>{(c.isValidating||c.validatingFields)&&((U||Array.from(s.mount)).forEach(Y=>{Y&&(Q?bt(r.validatingFields,Y,Q):Zt(r.validatingFields,Y))}),f.state.next({validatingFields:r.validatingFields,isValidating:!un(r.validatingFields)}))},m=(U,Q=[],Y,le,fe=!0,ue=!0)=>{if(le&&Y){if(i.action=!0,ue&&Array.isArray(Se(n,U))){const de=Y(Se(n,U),le.argA,le.argB);fe&&bt(n,U,de)}if(ue&&Array.isArray(Se(r.errors,U))){const de=Y(Se(r.errors,U),le.argA,le.argB);fe&&bt(r.errors,U,de),tJ(r.errors,U)}if(c.touchedFields&&ue&&Array.isArray(Se(r.touchedFields,U))){const de=Y(Se(r.touchedFields,U),le.argA,le.argB);fe&&bt(r.touchedFields,U,de)}c.dirtyFields&&(r.dirtyFields=Od(o,a)),f.state.next({name:U,isDirty:I(U,Q),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else bt(a,U,Q)},y=(U,Q)=>{bt(r.errors,U,Q),f.state.next({errors:r.errors})},O=U=>{r.errors=U,f.state.next({errors:r.errors,isValid:!1})},v=(U,Q,Y,le)=>{const fe=Se(n,U);if(fe){const ue=Se(a,U,Bt(Y)?Se(o,U):Y);Bt(ue)||le&&le.defaultChecked||Q?bt(a,U,Q?ue:ny(fe._f)):A(U,ue),i.mount&&w()}},_=(U,Q,Y,le,fe)=>{let ue=!1,de=!1;const Z={name:U},H=!!(Se(n,U)&&Se(n,U)._f&&Se(n,U)._f.disabled);if(!Y||le){c.isDirty&&(de=r.isDirty,r.isDirty=Z.isDirty=I(),ue=de!==Z.isDirty);const G=H||ki(Se(o,U),Q);de=!!(!H&&Se(r.dirtyFields,U)),G||H?Zt(r.dirtyFields,U):bt(r.dirtyFields,U,!0),Z.dirtyFields=r.dirtyFields,ue=ue||c.dirtyFields&&de!==!G}if(Y){const G=Se(r.touchedFields,U);G||(bt(r.touchedFields,U,Y),Z.touchedFields=r.touchedFields,ue=ue||c.touchedFields&&G!==Y)}return ue&&fe&&f.state.next(Z),ue?Z:{}},S=(U,Q,Y,le)=>{const fe=Se(r.errors,U),ue=c.isValid&&mo(Q)&&r.isValid!==Q;if(e.delayError&&Y?(u=b(()=>y(U,Y)),u(e.delayError)):(clearTimeout(l),u=null,Y?bt(r.errors,U,Y):Zt(r.errors,U)),(Y?!ki(fe,Y):fe)||!un(le)||ue){const de={...le,...ue&&mo(Q)?{isValid:Q}:{},errors:r.errors,name:U};r={...r,...de},f.state.next(de)}},C=async U=>{x(U,!0);const Q=await t.resolver(a,t.context,JY(U||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(U),Q},P=async U=>{const{errors:Q}=await C(U);if(U)for(const Y of U){const le=Se(Q,Y);le?bt(r.errors,Y,le):Zt(r.errors,Y)}else r.errors=Q;return Q},k=async(U,Q,Y={valid:!0})=>{for(const le in U){const fe=U[le];if(fe){const{_f:ue,...de}=fe;if(ue){const Z=s.array.has(ue.name);x([le],!0);const H=await iP(fe,a,g,t.shouldUseNativeValidation&&!Q,Z);if(x([le]),H[ue.name]&&(Y.valid=!1,Q))break;!Q&&(Se(H,ue.name)?Z?GY(r.errors,H,ue.name):bt(r.errors,ue.name,H[ue.name]):Zt(r.errors,ue.name))}de&&await k(de,Q,Y)}}return Y.valid},R=()=>{for(const U of s.unMount){const Q=Se(n,U);Q&&(Q._f.refs?Q._f.refs.every(Y=>!ry(Y)):!ry(Q._f.ref))&&we(U)}s.unMount=new Set},I=(U,Q)=>(U&&Q&&bt(a,U,Q),!ki(ne(),o)),M=(U,Q,Y)=>Bj(U,s,{...i.mount?a:Bt(Q)?o:yo(U)?{[U]:Q}:Q},Y,Q),B=U=>xf(Se(i.mount?a:o,U,e.shouldUnregister?Se(o,U,[]):[])),A=(U,Q,Y={})=>{const le=Se(n,U);let fe=Q;if(le){const ue=le._f;ue&&(!ue.disabled&&bt(a,U,Hj(Q,ue)),fe=wv(ue.ref)&&Ir(Q)?"":Q,Vj(ue.ref)?[...ue.ref.options].forEach(de=>de.selected=fe.includes(de.value)):ue.refs?bf(ue.ref)?ue.refs.length>1?ue.refs.forEach(de=>(!de.defaultChecked||!de.disabled)&&(de.checked=Array.isArray(fe)?!!fe.find(Z=>Z===de.value):fe===de.value)):ue.refs[0]&&(ue.refs[0].checked=!!fe):ue.refs.forEach(de=>de.checked=de.value===fe):Ww(ue.ref)?ue.ref.value="":(ue.ref.value=fe,ue.ref.type||f.values.next({name:U,values:{...a}})))}(Y.shouldDirty||Y.shouldTouch)&&_(U,fe,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&K(U)},V=(U,Q,Y)=>{for(const le in Q){const fe=Q[le],ue=`${U}.${le}`,de=Se(n,ue);(s.array.has(U)||!Ov(fe)||de&&!de._f)&&!Vs(fe)?V(ue,fe,Y):A(ue,fe,Y)}},q=(U,Q,Y={})=>{const le=Se(n,U),fe=s.array.has(U),ue=Hr(Q);bt(a,U,ue),fe?(f.array.next({name:U,values:{...a}}),(c.isDirty||c.dirtyFields)&&Y.shouldDirty&&f.state.next({name:U,dirtyFields:Od(o,a),isDirty:I(U,ue)})):le&&!le._f&&!Ir(ue)?V(U,ue,Y):A(U,ue,Y),tP(U,s)&&f.state.next({...r}),f.values.next({name:i.mount?U:void 0,values:{...a}})},j=async U=>{i.mount=!0;const Q=U.target;let Y=Q.name,le=!0;const fe=Se(n,Y),ue=()=>Q.type?ny(fe._f):Ij(U),de=Z=>{le=Number.isNaN(Z)||Z===Se(a,Y,Z)};if(fe){let Z,H;const G=ue(),te=U.type===xv.BLUR||U.type===xv.FOCUS_OUT,oe=!ZY(fe._f)&&!t.resolver&&!Se(r.errors,Y)&&!fe._f.deps||eJ(te,Se(r.touchedFields,Y),r.isSubmitted,h,p),Pe=tP(Y,s,te);bt(a,Y,G),te?(fe._f.onBlur&&fe._f.onBlur(U),u&&u(0)):fe._f.onChange&&fe._f.onChange(U);const Be=_(Y,G,te,!1),Ie=!un(Be)||Pe;if(!te&&f.values.next({name:Y,type:U.type,values:{...a}}),oe)return c.isValid&&w(),Ie&&f.state.next({name:Y,...Pe?{}:Be});if(!te&&Pe&&f.state.next({...r}),t.resolver){const{errors:_e}=await C([Y]);if(de(G),le){const Ue=sP(r.errors,n,Y),qe=sP(_e,n,Ue.name||Y);Z=qe.error,Y=qe.name,H=un(_e)}}else x([Y],!0),Z=(await iP(fe,a,g,t.shouldUseNativeValidation))[Y],x([Y]),de(G),le&&(Z?H=!1:c.isValid&&(H=await k(n,!0)));le&&(fe._f.deps&&K(fe._f.deps),S(Y,H,Z,Be))}},W=(U,Q)=>{if(Se(r.errors,Q)&&U.focus)return U.focus(),1},K=async(U,Q={})=>{let Y,le;const fe=np(U);if(t.resolver){const ue=await P(Bt(U)?U:fe);Y=un(ue),le=U?!fe.some(de=>Se(ue,de)):Y}else U?(le=(await Promise.all(fe.map(async ue=>{const de=Se(n,ue);return await k(de&&de._f?{[ue]:de}:de)}))).every(Boolean),!(!le&&!r.isValid)&&w()):le=Y=await k(n);return f.state.next({...!yo(U)||c.isValid&&Y!==r.isValid?{}:{name:U},...t.resolver||!U?{isValid:Y}:{},errors:r.errors}),Q.shouldFocus&&!le&&sc(n,W,U?fe:s.mount),le},ne=U=>{const Q={...i.mount?a:o};return Bt(U)?Q:yo(U)?Se(Q,U):U.map(Y=>Se(Q,Y))},re=(U,Q)=>({invalid:!!Se((Q||r).errors,U),isDirty:!!Se((Q||r).dirtyFields,U),error:Se((Q||r).errors,U),isValidating:!!Se(r.validatingFields,U),isTouched:!!Se((Q||r).touchedFields,U)}),be=U=>{U&&np(U).forEach(Q=>Zt(r.errors,Q)),f.state.next({errors:U?r.errors:{}})},xe=(U,Q,Y)=>{const le=(Se(n,U,{_f:{}})._f||{}).ref,fe=Se(r.errors,U)||{},{ref:ue,message:de,type:Z,...H}=fe;bt(r.errors,U,{...H,...Q,ref:le}),f.state.next({name:U,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&le&&le.focus&&le.focus()},ve=(U,Q)=>ka(U)?f.values.subscribe({next:Y=>U(M(void 0,Q),Y)}):M(U,Q,!0),we=(U,Q={})=>{for(const Y of U?np(U):s.mount)s.mount.delete(Y),s.array.delete(Y),Q.keepValue||(Zt(n,Y),Zt(a,Y)),!Q.keepError&&Zt(r.errors,Y),!Q.keepDirty&&Zt(r.dirtyFields,Y),!Q.keepTouched&&Zt(r.touchedFields,Y),!Q.keepIsValidating&&Zt(r.validatingFields,Y),!t.shouldUnregister&&!Q.keepDefaultValue&&Zt(o,Y);f.values.next({values:{...a}}),f.state.next({...r,...Q.keepDirty?{isDirty:I()}:{}}),!Q.keepIsValid&&w()},$e=({disabled:U,name:Q,field:Y,fields:le,value:fe})=>{if(mo(U)&&i.mount||U){const ue=U?void 0:Bt(fe)?ny(Y?Y._f:Se(le,Q)._f):fe;bt(a,Q,ue),_(Q,ue,!1,!1,!0)}},me=(U,Q={})=>{let Y=Se(n,U);const le=mo(Q.disabled);return bt(n,U,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:U}},name:U,mount:!0,...Q}}),s.mount.add(U),Y?$e({field:Y,disabled:Q.disabled,name:U,value:Q.value}):v(U,!0,Q.value),{...le?{disabled:Q.disabled}:{},...t.progressive?{required:!!Q.required,min:ku(Q.min),max:ku(Q.max),minLength:ku(Q.minLength),maxLength:ku(Q.maxLength),pattern:ku(Q.pattern)}:{},name:U,onChange:j,onBlur:j,ref:fe=>{if(fe){me(U,Q),Y=Se(n,U);const ue=Bt(fe.value)&&fe.querySelectorAll&&fe.querySelectorAll("input,select,textarea")[0]||fe,de=YY(ue),Z=Y._f.refs||[];if(de?Z.find(H=>H===ue):ue===Y._f.ref)return;bt(n,U,{_f:{...Y._f,...de?{refs:[...Z.filter(ry),ue,...Array.isArray(Se(o,U))?[{}]:[]],ref:{type:ue.type,name:U}}:{ref:ue}}}),v(U,!1,void 0,ue)}else Y=Se(n,U,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(jj(s.array,U)&&i.action)&&s.unMount.add(U)}}},Oe=()=>t.shouldFocusError&&sc(n,W,s.mount),Ae=U=>{mo(U)&&(f.state.next({disabled:U}),sc(n,(Q,Y)=>{const le=Se(n,Y);le&&(Q.disabled=le._f.disabled||U,Array.isArray(le._f.refs)&&le._f.refs.forEach(fe=>{fe.disabled=le._f.disabled||U}))},0,!1))},je=(U,Q)=>async Y=>{let le;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let fe=Hr(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:ue,values:de}=await C();r.errors=ue,fe=de}else await k(n);if(Zt(r.errors,"root"),un(r.errors)){f.state.next({errors:{}});try{await U(fe,Y)}catch(ue){le=ue}}else Q&&await Q({...r.errors},Y),Oe(),setTimeout(Oe);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:un(r.errors)&&!le,submitCount:r.submitCount+1,errors:r.errors}),le)throw le},Te=(U,Q={})=>{Se(n,U)&&(Bt(Q.defaultValue)?q(U,Hr(Se(o,U))):(q(U,Q.defaultValue),bt(o,U,Hr(Q.defaultValue))),Q.keepTouched||Zt(r.touchedFields,U),Q.keepDirty||(Zt(r.dirtyFields,U),r.isDirty=Q.defaultValue?I(U,Hr(Se(o,U))):I()),Q.keepError||(Zt(r.errors,U),c.isValid&&w()),f.state.next({...r}))},ke=(U,Q={})=>{const Y=U?Hr(U):o,le=Hr(Y),fe=un(U),ue=fe?o:le;if(Q.keepDefaultValues||(o=Y),!Q.keepValues){if(Q.keepDirtyValues)for(const de of s.mount)Se(r.dirtyFields,de)?bt(ue,de,Se(a,de)):q(de,Se(ue,de));else{if(zw&&Bt(U))for(const de of s.mount){const Z=Se(n,de);if(Z&&Z._f){const H=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(wv(H)){const G=H.closest("form");if(G){G.reset();break}}}}n={}}a=e.shouldUnregister?Q.keepDefaultValues?Hr(o):{}:Hr(ue),f.array.next({values:{...ue}}),f.values.next({values:{...ue}})}s={mount:Q.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:Q.keepSubmitCount?r.submitCount:0,isDirty:fe?!1:Q.keepDirty?r.isDirty:!!(Q.keepDefaultValues&&!ki(U,o)),isSubmitted:Q.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:fe?[]:Q.keepDirtyValues?Q.keepDefaultValues&&a?Od(o,a):r.dirtyFields:Q.keepDefaultValues&&U?Od(o,U):Q.keepDirty?r.dirtyFields:{},touchedFields:Q.keepTouched?r.touchedFields:{},errors:Q.keepErrors?r.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Me=(U,Q)=>ke(ka(U)?U(a):U,Q);return{control:{register:me,unregister:we,getFieldState:re,handleSubmit:je,setError:xe,_executeSchema:C,_getWatch:M,_getDirty:I,_updateValid:w,_removeUnmounted:R,_updateFieldArray:m,_updateDisabledField:$e,_getFieldArray:B,_reset:ke,_resetDefaultValues:()=>ka(t.defaultValues)&&t.defaultValues().then(U=>{Me(U,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_disableForm:Ae,_subjects:f,_proxyFormState:c,_setErrors:O,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(U){i=U},get _defaultValues(){return o},get _names(){return s},set _names(U){s=U},get _formState(){return r},set _formState(U){r=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:K,register:me,handleSubmit:je,watch:ve,setValue:q,getValues:ne,reset:Me,resetField:Te,clearErrors:be,unregister:we,setError:xe,setFocus:(U,Q={})=>{const Y=Se(n,U),le=Y&&Y._f;if(le){const fe=le.refs?le.refs[0]:le.ref;fe.focus&&(fe.focus(),Q.shouldSelect&&fe.select())}},getFieldState:re}}function Kj(e={}){const t=ce.useRef(),r=ce.useRef(),[n,o]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ka(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ka(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...nJ(e),formState:n});const a=t.current.control;return a._options=e,Vw({subject:a._subjects.state,next:i=>{Lj(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),ce.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ce.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),ce.useEffect(()=>{e.values&&!ki(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),ce.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),ce.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),ce.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Nj(n,a),t.current}var ub=function(){return ub=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?S(C):C},{updatedAt:_}),o.setQueriesData([m,"getManyReference"],function(C){return C&&C.data?{data:S(C.data),total:C.total}:C},{updatedAt:_})},b=jh(function(x){var m=x===void 0?{}:x,y=m.resource,O=y===void 0?e:y,v=m.id,_=v===void 0?p.current.id:v,S=m.data,C=S===void 0?p.current.data:S,P=m.meta,k=P===void 0?p.current.meta:P,R=m.previousData,I=R===void 0?p.current.previousData:R;return n.update(O,{id:_,data:C,previousData:I,meta:k}).then(function(M){var B=M.data;return B})},Et(Et({},c),{onMutate:function(x){return lP(void 0,void 0,void 0,function(){var m;return uP(this,function(y){switch(y.label){case 0:return c.onMutate?[4,c.onMutate(x)]:[3,2];case 1:return m=y.sent()||{},[2,Et({snapshot:h.current},m)];case 2:return[2,{snapshot:h.current}]}})})},onError:function(x,m,y){if(m===void 0&&(m={}),(f.current==="optimistic"||f.current==="undoable")&&y.snapshot.forEach(function(O){var v=O[0],_=O[1];o.setQueryData(v,_)}),c.onError)return c.onError(x,m,y)},onSuccess:function(x,m,y){if(m===void 0&&(m={}),f.current==="pessimistic"){var O=m.resource,v=O===void 0?e:O,_=m.id,S=_===void 0?a:_;g({resource:v,id:S,data:x}),c.onSuccess&&c.onSuccess(x,m,y)}},onSettled:function(x,m,y,O){if(y===void 0&&(y={}),(f.current==="optimistic"||f.current==="undoable")&&O.snapshot.forEach(function(v){var _=v[0];o.invalidateQueries(_)}),c.onSettled)return c.onSettled(x,m,y,O)}})),w=function(x,m,y){return x===void 0&&(x=e),m===void 0&&(m={}),y===void 0&&(y={}),lP(void 0,void 0,void 0,function(){var O,v,_,S,C,P,k,R,I,M,B,A,V,q;return uP(this,function(j){switch(j.label){case 0:return O=y.mutationMode,v=y.returnPromise,_=v===void 0?c.returnPromise:v,S=y.onSuccess,C=y.onSettled,P=y.onError,p.current=t,O&&(f.current=O),_&&f.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),f.current==="pessimistic"?_?[2,b.mutateAsync(Et({resource:x},m),{onSuccess:S,onSettled:C,onError:P})]:[2,b.mutate(Et({resource:x},m),{onSuccess:S,onSettled:C,onError:P})]:(k=m.id,R=k===void 0?a:k,I=m.data,M=I===void 0?i:I,B=m.meta,A=B===void 0?s:B,V=o.getQueryData([x,"getOne",{id:String(R),meta:A}]),q=[[x,"getOne",{id:String(R),meta:A}],[x,"getList"],[x,"getInfiniteList"],[x,"getMany"],[x,"getManyReference"]],h.current=q.reduce(function(W,K){return W.concat(o.getQueriesData(K))},[]),[4,Promise.all(h.current.map(function(W){var K=W[0];return o.cancelQueries(K)}))]);case 1:return j.sent(),g({resource:x,id:R,data:M}),S&&setTimeout(function(){return S(Et(Et({},V),M),Et({resource:x},m),{snapshot:h.current})},0),c.onSuccess&&setTimeout(function(){return c.onSuccess(Et(Et({},V),M),Et({resource:x},m),{snapshot:h.current})},0),f.current==="optimistic"?[2,b.mutate(Et({resource:x},m),{onSettled:C,onError:P})]:(Uc.once("end",function(W){var K=W.isUndo;K?h.current.forEach(function(ne){var re=ne[0],be=ne[1];o.setQueryData(re,be)}):b.mutate(Et({resource:x},m),{onSettled:C,onError:P})}),[2])}})})};return[Qi(w),b]},Wr=function(){return Wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?v(_):_},{updatedAt:O}),o.setQueriesData([x,"getManyReference"],function(_){if(!_||!_.data)return _;var S=v(_.data),C=S.length<_.data.length;return C?{data:S,total:_.total-1}:_},{updatedAt:O})},g=jh(function(w){var x=w===void 0?{}:w,m=x.resource,y=m===void 0?e:m,O=x.id,v=O===void 0?f.current.id:O,_=x.previousData,S=_===void 0?f.current.previousData:_,C=x.meta,P=C===void 0?f.current.meta:C;return n.delete(y,{id:v,previousData:S,meta:P}).then(function(k){var R=k.data;return R})},Wr(Wr({},l),{onMutate:function(w){return cP(void 0,void 0,void 0,function(){var x;return fP(this,function(m){switch(m.label){case 0:return l.onMutate?[4,l.onMutate(w)]:[3,2];case 1:return x=m.sent()||{},[2,Wr({snapshot:p.current},x)];case 2:return[2,{snapshot:p.current}]}})})},onError:function(w,x,m){if(x===void 0&&(x={}),(c.current==="optimistic"||c.current==="undoable")&&m.snapshot.forEach(function(y){var O=y[0],v=y[1];o.setQueryData(O,v)}),l.onError)return l.onError(w,x,m)},onSuccess:function(w,x,m){if(x===void 0&&(x={}),c.current==="pessimistic"){var y=x.resource,O=y===void 0?e:y,v=x.id,_=v===void 0?a:v;h({resource:O,id:_}),l.onSuccess&&l.onSuccess(w,x,m)}},onSettled:function(w,x,m,y){if(m===void 0&&(m={}),(c.current==="optimistic"||c.current==="undoable")&&y.snapshot.forEach(function(O){var v=O[0];o.invalidateQueries(v)}),l.onSettled)return l.onSettled(w,x,m,y)}})),b=function(w,x,m){return w===void 0&&(w=e),x===void 0&&(x={}),m===void 0&&(m={}),cP(void 0,void 0,void 0,function(){var y,O,v,_,S,C,P,k,R;return fP(this,function(I){switch(I.label){case 0:return y=m.mutationMode,O=m.onSuccess,v=m.onSettled,_=m.onError,f.current=t,y&&(c.current=y),c.current==="pessimistic"?[2,g.mutate(Wr({resource:w},x),{onSuccess:O,onSettled:v,onError:_})]:(S=x.id,C=S===void 0?a:S,P=x.previousData,k=P===void 0?i:P,R=[[w,"getList"],[w,"getInfiniteList"],[w,"getMany"],[w,"getManyReference"]],p.current=R.reduce(function(M,B){return M.concat(o.getQueriesData(B))},[]),[4,Promise.all(p.current.map(function(M){var B=M[0];return o.cancelQueries(B)}))]);case 1:return I.sent(),h({resource:w,id:C}),O&&setTimeout(function(){return O(k,Wr({resource:w},x),{snapshot:p.current})},0),l.onSuccess&&setTimeout(function(){return l.onSuccess(k,Wr({resource:w},x),{snapshot:p.current})},0),c.current==="optimistic"?[2,g.mutate(Wr({resource:w},x),{onSettled:v,onError:_})]:(Uc.once("end",function(M){var B=M.isUndo;B?p.current.forEach(function(A){var V=A[0],q=A[1];o.setQueryData(V,q)}):g.mutate(Wr({resource:w},x),{onSettled:v,onError:_})}),[2])}})})};return[Qi(b),g]},qr=function(){return qr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?O(v):v},{updatedAt:y}),o.setQueriesData([w,"getManyReference"],function(v){if(!v||!v.data)return v;var _=O(v.data),S=_.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&f(h),[2]})})};r||p()},[e,n,r,s,t,i,c]),[a,l]},SJ=function(e){var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},EJ=function(e,t){var r=Jj(),n=r.register,o=r.unregister;d.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},CJ=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return Zj(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},Zj=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},Hu=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Hu(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},PJ=function(e){kH();var t=ei(),r=_J(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.menu,p=e.requireAuth,h=e.ready,g=e.title,b=d.useState(p),w=b[0],x=b[1],m=d.useState(p),y=m[0],O=m[1],v=mA();return d.useEffect(function(){p&&v(void 0,!1).then(function(){x(!1)}).catch(function(){}).finally(function(){O(!1)})},[v,p]),a==="empty"?d.createElement(h,null):a==="loading"||y?d.createElement(Ds,null,o,d.createElement(Gr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):w?d.createElement(Ds,null,o,d.createElement(Gr,{path:"*",element:d.createElement(pZ,null)})):d.createElement(Ds,null,o,d.createElement(Gr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:f,title:g},d.createElement(Ds,null,n,d.Children.map(i,function(_){return d.createElement(Gr,{key:_.props.name,path:"".concat(_.props.name,"/*"),element:_})}),d.createElement(Gr,{path:"/",element:l?d.createElement(aZ,{authParams:$J,component:l}):i.length>0?d.createElement(_D,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(Gr,{path:"*",element:d.createElement(u,{title:g})}))))}))},$J={params:{route:"dashboard"}},kJ=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},RJ=function(e){var t=e.catchAll,r=t===void 0?yP:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,u=s===void 0?kJ:s,l=e.loading,c=l===void 0?yP:l,f=e.loginPage,p=f===void 0?!1:f,h=e.authCallbackPage,g=h===void 0?!1:h,b=e.menu,w=e.ready,x=w===void 0?HJ:w,m=e.title,y=m===void 0?"React Admin":m,O=e.requireAuth,v=O===void 0?!1:O;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var _=new Image;_.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(Ds,null,p!==!1&&p!==!0?d.createElement(Gr,{path:"/login",element:gP(p)}):null,g!==!1&&g!==!0?d.createElement(Gr,{path:"/auth-callback",element:gP(g)}):null,d.createElement(Gr,{path:"/*",element:d.createElement(PJ,{catchAll:r,dashboard:o,layout:u,loading:c,menu:b,requireAuth:v,ready:x,title:y},n)}))},gP=function(e){return d.isValidElement(e)?e:d.createElement(e)},yP=function(){return null},eA={exports:{}},xt={};/** @license React v17.0.2 - * 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 Yh=60103,Jh=60106,wf=60107,_f=60108,Of=60114,Sf=60109,Ef=60110,Cf=60112,Pf=60113,Kw=60120,$f=60115,kf=60116,tA=60121,rA=60122,nA=60117,oA=60129,aA=60131;if(typeof Symbol=="function"&&Symbol.for){var fr=Symbol.for;Yh=fr("react.element"),Jh=fr("react.portal"),wf=fr("react.fragment"),_f=fr("react.strict_mode"),Of=fr("react.profiler"),Sf=fr("react.provider"),Ef=fr("react.context"),Cf=fr("react.forward_ref"),Pf=fr("react.suspense"),Kw=fr("react.suspense_list"),$f=fr("react.memo"),kf=fr("react.lazy"),tA=fr("react.block"),rA=fr("react.server.block"),nA=fr("react.fundamental"),oA=fr("react.debug_trace_mode"),aA=fr("react.legacy_hidden")}function no(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yh:switch(e=e.type,e){case wf:case Of:case _f:case Pf:case Kw:return e;default:switch(e=e&&e.$$typeof,e){case Ef:case Cf:case kf:case $f:case Sf:return e;default:return t}}case Jh:return t}}}var TJ=Sf,IJ=Yh,jJ=Cf,AJ=wf,MJ=kf,FJ=$f,NJ=Jh,LJ=Of,DJ=_f,BJ=Pf;xt.ContextConsumer=Ef;xt.ContextProvider=TJ;xt.Element=IJ;xt.ForwardRef=jJ;xt.Fragment=AJ;xt.Lazy=MJ;xt.Memo=FJ;xt.Portal=NJ;xt.Profiler=LJ;xt.StrictMode=DJ;xt.Suspense=BJ;xt.isAsyncMode=function(){return!1};xt.isConcurrentMode=function(){return!1};xt.isContextConsumer=function(e){return no(e)===Ef};xt.isContextProvider=function(e){return no(e)===Sf};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yh};xt.isForwardRef=function(e){return no(e)===Cf};xt.isFragment=function(e){return no(e)===wf};xt.isLazy=function(e){return no(e)===kf};xt.isMemo=function(e){return no(e)===$f};xt.isPortal=function(e){return no(e)===Jh};xt.isProfiler=function(e){return no(e)===Of};xt.isStrictMode=function(e){return no(e)===_f};xt.isSuspense=function(e){return no(e)===Pf};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wf||e===Of||e===oA||e===_f||e===Pf||e===Kw||e===aA||typeof e=="object"&&e!==null&&(e.$$typeof===kf||e.$$typeof===$f||e.$$typeof===Sf||e.$$typeof===Ef||e.$$typeof===Cf||e.$$typeof===nA||e.$$typeof===tA||e[0]===rA)};xt.typeOf=no;eA.exports=xt;var iA=eA.exports,sA=d.createContext(void 0),Rf=function(e){var t=e.children,r=e.value;return r?d.createElement(sA.Provider,{value:r},t):t},Cv=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(Rf,{value:o},d.createElement(Ds,null,t&&d.createElement(Gr,{path:"create/*",element:Sd(t)}),a&&d.createElement(Gr,{path:":id/show/*",element:Sd(a)}),r&&d.createElement(Gr,{path:":id/*",element:Sd(r)}),n&&d.createElement(Gr,{path:"/*",element:Sd(n)}),e.children))},Sd=function(e){return d.isValidElement(e)?e:iA.isValidElementType(e)?d.createElement(e,null):null};Cv.raName="Resource";Cv.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var lA={exports:{}};/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */(function(e,t){(function(r,n){e.exports=n()})(Ca,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),l=new RegExp("[ _]","g"),c=new RegExp("([A-Z])","g"),f=new RegExp("^_"),p={_apply_rules:function(h,g,b,w){if(w)h=w;else{var x=p.indexOf(b,h.toLowerCase())>-1;if(!x){for(var m=0,y=g.length;m1?p._apply_rules(h,o,r,w):p._apply_rules(h,a,r,b)},camelize:function(h,g){for(var b=h.split("/"),w=0,x=b.length,m,y,O,v;w1?Va.pluralize(r):Va.singularize(r))});return a}},ct=function(e){var t=d.useContext(sA);return e&&e.resource||t},ti=function(e){var t=ct(e),r=Zh(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return os({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:u},r[t])},[t,r,o,a,i,s,u]);return l},Gw=function(e){var t=ti({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?Tt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},We=function(){var e=Rw(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:UJ},UJ=function(e){return e},uA=function(){var e=We(),t=dA(),r=ct();return d.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,VJ({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},cA=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=uA();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,a({label:r,resource:n,source:t}),o&&d.createElement("span",{"aria-hidden":"true"}," *"))};cA.displayName="FieldTitle";const Vc=d.memo(cA),VJ=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=WJ(a),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=Va.transform(u.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var WJ=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){qJ(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},qJ=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const Tf=function(e,t,r){if(e[t]&&!iA.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},HJ=function(){return d.createElement("span",null)},Qw=function(e,t){};var KJ=typeof window<"u"?d.useLayoutEffect:d.useEffect,Qi=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return KJ(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,a,t,n,s]);var l=Qi(function(c,f){var p=typeof c=="function"?c(s):c;o(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},GJ=function(e){var t=zh().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},QJ=function(e){var t=zh().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},XJ=function(){var e=zh().reset;return e},nu=function(){var e=aa(),t=$o(),r=XJ(),n=ko(),o=d.useRef(n),a=Nr(),i=d.useRef(a),s=Za(),u=co("".concat(s,"/").concat(Ih.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(f,p,h){return f===void 0&&(f={}),p===void 0&&(p=u),h===void 0&&(h=!0),e.logout(f).then(function(g){if(g===!1||p===!1){r(),t.clear();return}var b=g||p;if(b!=null&&b.startsWith("http"))return r(),t.clear(),window.location.href=b,b;var w=b.split("?"),x={pathname:w[0]},m={};return h&&i.current&&i.current.pathname&&(m={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(x.search=w[1]),o.current(x,m),r(),t.clear(),g})},[e,r,u,t]),c=d.useCallback(function(f){return n({pathname:u},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,u,t]);return e?l:c},fb=function(){return fb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},db=function(){return db=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"),ou(t);var i=hA(t).permissions;if(o)return d.createElement(o,lc({permissions:i},a));if(n)return n(lc({permissions:i},a));if(r)return r(lc({permissions:i},a))},iZ=function(){var e=aa(),t=Nr(),r=t.state,n=ko(),o=Za(),a=jI().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=co("".concat(o,"/").concat(Ih.afterLoginUrl)),l=d.useCallback(function(f,p){return f===void 0&&(f={}),e.login(f).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var g=p||i+s||u;n(g)}return h})},[e,n,i,s,a,u]),c=d.useCallback(function(f,p){return a(),n(u),Promise.resolve()},[n,a,u]);return e?l:c},sZ="AUTH_LOGIN",lZ="AUTH_CHECK",uZ="AUTH_ERROR",cZ="AUTH_LOGOUT",fZ="AUTH_GET_PERMISSIONS";const dZ=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},pb=function(){return pb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return oo(r&&e?"".concat(r,".").concat(e):r??e,t)},Xw=function(){return d.useContext(Xj)},SZ=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},MZ=function(e,t,r){var n=d.useContext(sa).navigator,o=Nr(),a=We(),i=Xh(r?{control:r}:void 0),s=i.isSubmitSuccessful,u=i.isSubmitting,l=i.dirtyFields,c=Object.keys(l).length>0,f=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!c)&&n.block){var p=n.block(function(h){var g=h.location.pathname.startsWith(f.current),b=h.location.pathname.startsWith("".concat(f.current,"/show")),w=g&&!b;!u&&(w||s||window.confirm(a("ra.message.unsaved_changes")))?(p(),h.retry()):u&&setTimeout(function(){h.retry()},100)});return p}},[e,o,n,c,u,s,a])},FZ=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},gb=function(){return gb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ri=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function UZ(e){return e?e.hasOwnProperty("message"):!1}var ni=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},oi=function(e){return pI(e,function(){for(var t=[],r=0;re?ni(t,{max:e},r,n):void 0}});oi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ri(r)&&re?ni(t,{max:e},r,n):void 0}});oi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ri(t)&&isNaN(Number(t))?ni(e,void 0,t,r):void 0}});var HZ=pI(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ri(r)&&typeof r=="string"&&!e.test(r)?ni(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});oi(function(e){return e===void 0&&(e="ra.validation.email"),HZ(zZ,e)});var KZ=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};oi(function(e,t){return t===void 0&&(t=KZ),function(r,n){return!ri(r)&&e.indexOf(r)===-1?ni(t,{list:e},r,n):void 0}});var GZ=d.createContext(void 0),QZ=function(){var e=d.useContext(xA);return e},XZ=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=lr(t),s=tu(),u=s.getValues,l=s.resetField,c=s.getFieldState,f=s.formState,p=s.reset,h=Tt(i,a),g=Tt(u(),a),b=c(a,f).isDirty;d.useEffect(function(){if(!(o==null||g!=null||h!=null||b)){var w=a.split(".").some(function(y){return YZ.test(y)});if(w){var x=a.split(".").slice(0,-1).join("."),m=Tt(u(),x);if(m==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),p({},{keepValues:!0});return}l(a,{defaultValue:o})}})},YZ=/^\d+$/,JZ=function(){var e=d.useContext(GZ);return e},ZZ=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},qs=function(){return qs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=0)continue;r[n]=e[n]}return r}function CA(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cee=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fee=CA(function(e){return cee.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function dee(e){if(e.sheet)return e.sheet;for(var t=0;t0?hr(au,--tn):0,Cl--,Qt===10&&(Cl=1,tm--),Qt}function hn(){return Qt=tn2||Hc(Qt)>3?"":" "}function Eee(e,t){for(;--t&&hn()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return If(e,ap()+(t<6&&Oo()==32&&hn()==32))}function xb(e){for(;hn();)switch(Qt){case e:return tn;case 34:case 39:e!==34&&e!==39&&xb(Qt);break;case 40:e===41&&xb(e);break;case 92:hn();break}return tn}function Cee(e,t){for(;hn()&&e+Qt!==57;)if(e+Qt===84&&Oo()===47)break;return"/*"+If(t,tn-1)+"*"+em(e===47?e:hn())}function Pee(e){for(;!Hc(Oo());)hn();return If(e,tn)}function $ee(e){return IA(sp("",null,null,null,[""],e=TA(e),0,[0],e))}function sp(e,t,r,n,o,a,i,s,u){for(var l=0,c=0,f=i,p=0,h=0,g=0,b=1,w=1,x=1,m=0,y="",O=o,v=a,_=n,S=y;w;)switch(g=m,m=hn()){case 40:if(g!=108&&hr(S,f-1)==58){bb(S+=ut(ip(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:S+=ip(m);break;case 9:case 10:case 13:case 32:S+=See(g);break;case 92:S+=Eee(ap()-1,7);continue;case 47:switch(Oo()){case 42:case 47:Ed(kee(Cee(hn(),ap()),t,r),u);break;default:S+="/"}break;case 123*b:s[l++]=fo(S)*x;case 125*b:case 59:case 0:switch(m){case 0:case 125:w=0;case 59+c:x==-1&&(S=ut(S,/\f/g,"")),h>0&&fo(S)-f&&Ed(h>32?SP(S+";",n,r,f-1):SP(ut(S," ","")+";",n,r,f-2),u);break;case 59:S+=";";default:if(Ed(_=OP(S,t,r,l,c,o,s,y,O=[],v=[],f),a),m===123)if(c===0)sp(S,t,_,_,O,a,f,s,v);else switch(p===99&&hr(S,3)===110?100:p){case 100:case 108:case 109:case 115:sp(e,_,_,n&&Ed(OP(e,_,_,0,0,o,s,y,o,O=[],f),v),o,v,f,s,n?O:v);break;default:sp(S,_,_,_,[""],v,0,s,v)}}l=c=h=0,b=x=1,y=S="",f=i;break;case 58:f=1+fo(S),h=g;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&Oee()==125)continue}switch(S+=em(m),m*b){case 38:x=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(fo(S)-1)*x,x=1;break;case 64:Oo()===45&&(S+=ip(hn())),p=Oo(),c=f=fo(y=S+=Pee(ap())),m++;break;case 45:g===45&&fo(S)==2&&(b=0)}}return a}function OP(e,t,r,n,o,a,i,s,u,l,c){for(var f=o-1,p=o===0?a:[""],h=Zw(p),g=0,b=0,w=0;g0?p[x]+" "+m:ut(m,/&\f/g,p[x])))&&(u[w++]=y);return rm(e,t,r,o===0?Yw:s,u,l,c)}function kee(e,t,r){return rm(e,t,r,PA,em(_ee()),qc(e,2,-2),0)}function SP(e,t,r,n){return rm(e,t,r,Jw,qc(e,0,n),qc(e,n+1,-1),n)}function tl(e,t){for(var r="",n=Zw(e),o=0;o6)switch(hr(e,t+1)){case 109:if(hr(e,t+4)!==45)break;case 102:return ut(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+$v+(hr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bb(e,"stretch")?jA(ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(hr(e,t+1)!==115)break;case 6444:switch(hr(e,fo(e)-3-(~bb(e,"!important")&&10))){case 107:return ut(e,":",":"+lt)+e;case 101:return ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(hr(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+Or+"$2box$3")+e}break;case 5936:switch(hr(e,t+11)){case 114:return lt+e+Or+ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+Or+ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+Or+ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+Or+e+e}return e}var Lee=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Jw:t.return=jA(t.value,t.length);break;case $A:return tl([Tu(t,{value:ut(t.value,"@","@"+lt)})],o);case Yw:if(t.length)return wee(t.props,function(a){switch(xee(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tl([Tu(t,{props:[ut(a,/:(read-\w+)/,":"+$v+"$1")]})],o);case"::placeholder":return tl([Tu(t,{props:[ut(a,/:(plac\w+)/,":"+lt+"input-$1")]}),Tu(t,{props:[ut(a,/:(plac\w+)/,":"+$v+"$1")]}),Tu(t,{props:[ut(a,/:(plac\w+)/,Or+"input-$1")]})],o)}return""})}},Dee=[Lee],AA=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||Dee,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Xee={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,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},Yee=/[A-Z]|^ms/g,Jee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UA=function(t){return t.charCodeAt(1)===45},CP=function(t){return t!=null&&typeof t!="boolean"},iy=CA(function(e){return UA(e)?e:e.replace(Yee,"-$&").toLowerCase()}),PP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jee,function(n,o,a){return po={name:o,styles:a,next:po},o})}return Xee[t]!==1&&!UA(t)&&typeof r=="number"&&r!==0?r+"px":r};function Kc(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return po={name:r.name,styles:r.styles,next:po},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)po={name:n.name,styles:n.styles,next:po},n=n.next;var o=r.styles+";";return o}return Zee(e,t,r)}case"function":{if(e!==void 0){var a=po,i=r(e);return po=a,Kc(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Zee(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?ote:ate},IP=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},ite=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return BA(r,n,o),tte(function(){return zA(r,n,o)}),null},ste=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=IP(t,r,n),u=s||TP(o),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,h=1;ht(hte(o)?r:o):t;return N.jsx(nte,{styles:n})}function o_(e,t){return wb(e,t)}const YA=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mte=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:XA,StyledEngineProvider:vte,ThemeContext:jf,css:as,default:o_,internal_processStyles:YA,keyframes:ca},Symbol.toStringTag,{value:"Module"}));function Wo(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 JA(e){if(!Wo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=JA(e[r])}),t}function Ar(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Wo(e)&&Wo(t)&&Object.keys(t).forEach(o=>{Wo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Wo(e[o])?n[o]=Ar(e[o],t[o],r):r.clone?n[o]=Wo(t[o])?JA(t[o]):t[o]:n[o]=t[o]}),n}const gte=Object.freeze(Object.defineProperty({__proto__:null,default:Ar,isPlainObject:Wo},Symbol.toStringTag,{value:"Module"})),yte=["values","unit","step"],bte=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$({},r,{[n.key]:n.val}),{})};function ZA(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=he(e,yte),a=bte(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,h){const g=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:h)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${a_[e]}px)`};function to(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||jP;return t.reduce((i,s,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||jP;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||a_).indexOf(s)!==-1){const u=a.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function eM(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function tM(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wte(e,...t){const r=eM(e),n=[r,...t].reduce((o,a)=>Ar(o,a),{});return tM(Object.keys(r),n)}function _te(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function ly({values:e,breakpoints:t,base:r}){const n=r||_te(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function ae(e){if(typeof e!="string")throw new Error(ea(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ote=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));function Pl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function kv(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pl(e,r)||n,t&&(o=t(o,n,e)),o}function qt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Pl(u,n)||{};return to(i,s,f=>{let p=kv(l,o,f);return f===p&&typeof f=="string"&&(p=kv(l,o,`${t}${f==="default"?"":ae(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function Ste(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ete={m:"margin",p:"padding"},Cte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},AP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pte=Ste(e=>{if(e.length>2)if(AP[e])e=AP[e];else return[e];const[t,r]=e.split(""),n=Ete[t],o=Cte[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),i_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],s_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...i_,...s_];function Af(e,t,r,n){var o;const a=(o=Pl(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function l_(e){return Af(e,"spacing",8)}function Yi(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $te(e,t){return r=>e.reduce((n,o)=>(n[o]=Yi(t,r),n),{})}function kte(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Pte(r),a=$te(o,n),i=e[r];return to(e,i,a)}function rM(e,t){const r=l_(e.theme);return Object.keys(e).map(n=>kte(e,t,n,r)).reduce(uc,{})}function Nt(e){return rM(e,i_)}Nt.propTypes={};Nt.filterProps=i_;function Lt(e){return rM(e,s_)}Lt.propTypes={};Lt.filterProps=s_;function Rte(e=8){if(e.mui)return e;const t=l_({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function pm(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?uc(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Pn(e){return typeof e!="number"?e:`${e}px solid`}function Bn(e,t){return qt({prop:e,themeKey:"borders",transform:t})}const Tte=Bn("border",Pn),Ite=Bn("borderTop",Pn),jte=Bn("borderRight",Pn),Ate=Bn("borderBottom",Pn),Mte=Bn("borderLeft",Pn),Fte=Bn("borderColor"),Nte=Bn("borderTopColor"),Lte=Bn("borderRightColor"),Dte=Bn("borderBottomColor"),Bte=Bn("borderLeftColor"),zte=Bn("outline",Pn),Ute=Bn("outlineColor"),vm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Af(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Yi(t,n)});return to(e,e.borderRadius,r)}return null};vm.propTypes={};vm.filterProps=["borderRadius"];pm(Tte,Ite,jte,Ate,Mte,Fte,Nte,Lte,Dte,Bte,vm,zte,Ute);const hm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Af(e.theme,"spacing",8),r=n=>({gap:Yi(t,n)});return to(e,e.gap,r)}return null};hm.propTypes={};hm.filterProps=["gap"];const mm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Af(e.theme,"spacing",8),r=n=>({columnGap:Yi(t,n)});return to(e,e.columnGap,r)}return null};mm.propTypes={};mm.filterProps=["columnGap"];const gm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Af(e.theme,"spacing",8),r=n=>({rowGap:Yi(t,n)});return to(e,e.rowGap,r)}return null};gm.propTypes={};gm.filterProps=["rowGap"];const Vte=qt({prop:"gridColumn"}),Wte=qt({prop:"gridRow"}),qte=qt({prop:"gridAutoFlow"}),Hte=qt({prop:"gridAutoColumns"}),Kte=qt({prop:"gridAutoRows"}),Gte=qt({prop:"gridTemplateColumns"}),Qte=qt({prop:"gridTemplateRows"}),Xte=qt({prop:"gridTemplateAreas"}),Yte=qt({prop:"gridArea"});pm(hm,mm,gm,Vte,Wte,qte,Hte,Kte,Gte,Qte,Xte,Yte);function rl(e,t){return t==="grey"?t:e}const Jte=qt({prop:"color",themeKey:"palette",transform:rl}),Zte=qt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rl}),ere=qt({prop:"backgroundColor",themeKey:"palette",transform:rl});pm(Jte,Zte,ere);function dn(e){return e<=1&&e!==0?`${e*100}%`:e}const tre=qt({prop:"width",transform:dn}),u_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||a_[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:dn(r)}};return to(e,e.maxWidth,t)}return null};u_.filterProps=["maxWidth"];const rre=qt({prop:"minWidth",transform:dn}),nre=qt({prop:"height",transform:dn}),ore=qt({prop:"maxHeight",transform:dn}),are=qt({prop:"minHeight",transform:dn});qt({prop:"size",cssProperty:"width",transform:dn});qt({prop:"size",cssProperty:"height",transform:dn});const ire=qt({prop:"boxSizing"});pm(tre,u_,rre,nre,ore,are,ire);const Mf={border:{themeKey:"borders",transform:Pn},borderTop:{themeKey:"borders",transform:Pn},borderRight:{themeKey:"borders",transform:Pn},borderBottom:{themeKey:"borders",transform:Pn},borderLeft:{themeKey:"borders",transform:Pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vm},color:{themeKey:"palette",transform:rl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rl},backgroundColor:{themeKey:"palette",transform:rl},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Nt},mt:{style:Nt},mr:{style:Nt},mb:{style:Nt},ml:{style:Nt},mx:{style:Nt},my:{style:Nt},margin:{style:Nt},marginTop:{style:Nt},marginRight:{style:Nt},marginBottom:{style:Nt},marginLeft:{style:Nt},marginX:{style:Nt},marginY:{style:Nt},marginInline:{style:Nt},marginInlineStart:{style:Nt},marginInlineEnd:{style:Nt},marginBlock:{style:Nt},marginBlockStart:{style:Nt},marginBlockEnd:{style:Nt},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:hm},rowGap:{style:gm},columnGap:{style:mm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dn},maxWidth:{style:u_},minWidth:{transform:dn},height:{transform:dn},maxHeight:{transform:dn},minHeight:{transform:dn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function sre(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function lre(e,t){return typeof e=="function"?e(t):e}function nM(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Pl(o,l)||{};return f?f(i):to(i,n,g=>{let b=kv(p,c,g);return g===b&&typeof g=="string"&&(b=kv(p,c,`${r}${g==="default"?"":ae(g)}`,g)),u===!1?b:{[u]:b}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Mf;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=eM(a.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const g=lre(l[h],a);if(g!=null)if(typeof g=="object")if(i[h])p=uc(p,e(h,g,a,i));else{const b=to({theme:a},g,w=>({[h]:w}));sre(b,g)?p[h]=t({sx:g,theme:a}):p=uc(p,b)}else p=uc(p,e(h,g,a,i))}),tM(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const iu=nM();iu.filterProps=["sx"];function oM(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ure=["breakpoints","palette","spacing","shape"];function Ff(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=he(e,ure),s=ZA(r),u=Rte(o);let l=Ar({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:u,shape:$({},xte,a)},i);return l.applyStyles=oM,l=t.reduce((c,f)=>Ar(c,f),l),l.unstable_sxConfig=$({},Mf,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return iu({sx:f,theme:this})},l}const cre=Object.freeze(Object.defineProperty({__proto__:null,default:Ff,private_createBreakpoints:ZA,unstable_applyStyles:oM},Symbol.toStringTag,{value:"Module"}));function fre(e){return Object.keys(e).length===0}function c_(e=null){const t=d.useContext(jf);return!t||fre(t)?e:t}const dre=Ff();function ym(e=dre){return c_(e)}function pre({styles:e,themeId:t,defaultTheme:r={}}){const n=ym(r),o=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(XA,{styles:o})}const vre=["sx"],hre=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Mf;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function bm(e){const{sx:t}=e,r=he(e,vre),{systemProps:n,otherProps:o}=hre(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Wo(s)?$({},n,s):n}:a=$({},n,t),$({},o,{sx:a})}const mre=Object.freeze(Object.defineProperty({__proto__:null,default:iu,extendSxProp:bm,unstable_createStyleFunctionSx:nM,unstable_defaultSxConfig:Mf},Symbol.toStringTag,{value:"Module"})),MP=e=>e,gre=()=>{let e=MP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=MP}}},f_=gre();function aM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(iu);return d.forwardRef(function(u,l){const c=ym(r),f=bm(u),{className:p,component:h="div"}=f,g=he(f,yre);return N.jsx(a,$({as:h,ref:l,className:ye(p,o?o(n):n),theme:t&&c[t]||c},g))})}const iM={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 Ne(e,t,r="Mui"){const n=iM[t];return n?`${r}-${n}`:`${f_.generate(e)}-${t}`}function Fe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ne(e,o,r)}),n}var sM={exports:{}},vt={};/** - * @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 d_=Symbol.for("react.element"),p_=Symbol.for("react.portal"),xm=Symbol.for("react.fragment"),wm=Symbol.for("react.strict_mode"),_m=Symbol.for("react.profiler"),Om=Symbol.for("react.provider"),Sm=Symbol.for("react.context"),xre=Symbol.for("react.server_context"),Em=Symbol.for("react.forward_ref"),Cm=Symbol.for("react.suspense"),Pm=Symbol.for("react.suspense_list"),$m=Symbol.for("react.memo"),km=Symbol.for("react.lazy"),wre=Symbol.for("react.offscreen"),lM;lM=Symbol.for("react.module.reference");function zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d_:switch(e=e.type,e){case xm:case _m:case wm:case Cm:case Pm:return e;default:switch(e=e&&e.$$typeof,e){case xre:case Sm:case Em:case km:case $m:case Om:return e;default:return t}}case p_:return t}}}vt.ContextConsumer=Sm;vt.ContextProvider=Om;vt.Element=d_;vt.ForwardRef=Em;vt.Fragment=xm;vt.Lazy=km;vt.Memo=$m;vt.Portal=p_;vt.Profiler=_m;vt.StrictMode=wm;vt.Suspense=Cm;vt.SuspenseList=Pm;vt.isAsyncMode=function(){return!1};vt.isConcurrentMode=function(){return!1};vt.isContextConsumer=function(e){return zn(e)===Sm};vt.isContextProvider=function(e){return zn(e)===Om};vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d_};vt.isForwardRef=function(e){return zn(e)===Em};vt.isFragment=function(e){return zn(e)===xm};vt.isLazy=function(e){return zn(e)===km};vt.isMemo=function(e){return zn(e)===$m};vt.isPortal=function(e){return zn(e)===p_};vt.isProfiler=function(e){return zn(e)===_m};vt.isStrictMode=function(e){return zn(e)===wm};vt.isSuspense=function(e){return zn(e)===Cm};vt.isSuspenseList=function(e){return zn(e)===Pm};vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xm||e===_m||e===wm||e===Cm||e===Pm||e===wre||typeof e=="object"&&e!==null&&(e.$$typeof===km||e.$$typeof===$m||e.$$typeof===Om||e.$$typeof===Sm||e.$$typeof===Em||e.$$typeof===lM||e.getModuleId!==void 0)};vt.typeOf=zn;sM.exports=vt;var FP=sM.exports;const _re=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uM(e){const t=`${e}`.match(_re);return t&&t[1]||""}function cM(e,t=""){return e.displayName||e.name||uM(e)||t}function NP(e,t,r){const n=cM(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ore(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cM(e,"Component");if(typeof e=="object")switch(e.$$typeof){case FP.ForwardRef:return NP(e,e.render,"ForwardRef");case FP.Memo:return NP(e,e.type,"memo");default:return}}}const Sre=Object.freeze(Object.defineProperty({__proto__:null,default:Ore,getFunctionName:uM},Symbol.toStringTag,{value:"Module"})),Ere=["ownerState"],Cre=["variants"],Pre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $re(e){return Object.keys(e).length===0}function kre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rre=Ff(),Tre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Cd({defaultTheme:e,theme:t,themeId:r}){return $re(t)?e:t[r]||t}function Ire(e){return e?(t,r)=>r[e]:null}function lp(e,t){let{ownerState:r}=t,n=he(t,Ere);const o=typeof e=="function"?e($({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>lp(a,$({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=he(o,Cre);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props($({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style($({ownerState:r},n,r)):u.style))}),s}return o}function jre(e={}){const{themeId:t,defaultTheme:r=Rre,rootShouldForwardProp:n=uy,slotShouldForwardProp:o=uy}=e,a=i=>iu($({},i,{theme:Cd($({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{YA(i,v=>v.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ire(Tre(l))}=s,h=he(s,Pre),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,b=f||!1;let w,x=uy;l==="Root"||l==="root"?x=n:l?x=o:kre(i)&&(x=void 0);const m=o_(i,$({shouldForwardProp:x,label:w},h)),y=v=>typeof v=="function"&&v.__emotion_real!==v||Wo(v)?_=>lp(v,$({},_,{theme:Cd({theme:_.theme,defaultTheme:r,themeId:t})})):v,O=(v,..._)=>{let S=y(v);const C=_?_.map(y):[];u&&p&&C.push(R=>{const I=Cd($({},R,{defaultTheme:r,themeId:t}));if(!I.components||!I.components[u]||!I.components[u].styleOverrides)return null;const M=I.components[u].styleOverrides,B={};return Object.entries(M).forEach(([A,V])=>{B[A]=lp(V,$({},R,{theme:I}))}),p(R,B)}),u&&!g&&C.push(R=>{var I;const M=Cd($({},R,{defaultTheme:r,themeId:t})),B=M==null||(I=M.components)==null||(I=I[u])==null?void 0:I.variants;return lp({variants:B},$({},R,{theme:M}))}),b||C.push(a);const P=C.length-_.length;if(Array.isArray(v)&&P>0){const R=new Array(P).fill("");S=[...v,...R],S.raw=[...v.raw,...R]}const k=m(S,...C);return i.muiName&&(k.muiName=i.muiName),k};return m.withConfig&&(O.withConfig=m.withConfig),O}}const Are=jre();function v_(e,t){const r=$({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=$({},a),Object.keys(o).forEach(i=>{r[n][i]=v_(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function fM(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:v_(t.components[r].defaultProps,n)}function dM({props:e,name:t,defaultTheme:r,themeId:n}){let o=ym(r);return n&&(o=o[n]||o),fM({theme:o,name:t,props:e})}const Mn=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Mre(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Mn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),a}const pM=d.useSyncExternalStore;function Fre(e,t,r,n,o){const a=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,o,r]),[s,u]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return pM(u,s,i)}function an(e,t={}){const r=c_(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=fM({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(pM!==void 0?Fre:Mre)(u,o,a,i,s)}function vM(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Nre=Object.freeze(Object.defineProperty({__proto__:null,default:vM},Symbol.toStringTag,{value:"Module"}));function hM(e,t=0,r=1){return vM(e,t,r)}function Lre(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function h_(e){if(e.type)return e;if(e.charAt(0)==="#")return h_(Lre(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(ea(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ea(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function mM(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Gc(e,t){return e=h_(e),t=hM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mM(e)}function Dre(e,t){if(e=h_(e),t=hM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return mM(e)}function Ob(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Rm(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Bre(e,t){return()=>null}function up(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function rr(e){return e&&e.ownerDocument||document}function Eo(e){return rr(e).defaultView||window}function zre(e,t){return()=>null}function Rv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let LP=0;function Ure(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(LP+=1,r(`mui-${LP}`))},[t]),n}const DP=Qy.useId;function Ji(e){if(DP!==void 0){const t=DP();return e??t}return Ure(e)}function Vre(e,t,r,n,o){return null}function $l({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,u=d.useCallback(l=>{o||i(l)},[]);return[s,u]}function kn(e){const t=d.useRef(e);return Mn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function It(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Rv(r,t)})},e)}const BP={};function Wre(e,t){const r=d.useRef(BP);return r.current===BP&&(r.current=e(t)),r}const qre=[];function Hre(e){d.useEffect(e,qre)}class Nf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Nf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ri(){const e=Wre(Nf.create).current;return Hre(e.disposeEffect),e}let Tm=!0,Sb=!1;const Kre=new Nf,Gre={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Qre(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Gre[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xre(e){e.metaKey||e.altKey||e.ctrlKey||(Tm=!0)}function cy(){Tm=!1}function Yre(){this.visibilityState==="hidden"&&Sb&&(Tm=!0)}function Jre(e){e.addEventListener("keydown",Xre,!0),e.addEventListener("mousedown",cy,!0),e.addEventListener("pointerdown",cy,!0),e.addEventListener("touchstart",cy,!0),e.addEventListener("visibilitychange",Yre,!0)}function Zre(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Tm||Qre(t)}function Im(){const e=d.useCallback(o=>{o!=null&&Jre(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(Sb=!0,Kre.start(100,()=>{Sb=!1}),t.current=!1,!0):!1}function n(o){return Zre(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function gM(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Le(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const yM=d.createContext(null);function bM(){return d.useContext(yM)}const ene=typeof Symbol=="function"&&Symbol.for,tne=ene?Symbol.for("mui.nested"):"__THEME_NESTED__";function rne(e,t){return typeof t=="function"?t(e):$({},e,t)}function nne(e){const{children:t,theme:r}=e,n=bM(),o=d.useMemo(()=>{const a=n===null?r:rne(n,r);return a!=null&&(a[tne]=n!==null),a},[r,n]);return N.jsx(yM.Provider,{value:o,children:t})}const one=["value"],xM=d.createContext();function ane(e){let{value:t}=e,r=he(e,one);return N.jsx(xM.Provider,$({value:t??!0},r))}const su=()=>{const e=d.useContext(xM);return e??!1},zP={};function UP(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?$({},t,{[e]:a}):a;return n?()=>i:i}return e?$({},t,{[e]:r}):$({},t,r)},[e,t,r,n])}function ine(e){const{children:t,theme:r,themeId:n}=e,o=c_(zP),a=bM()||zP,i=UP(n,o,r),s=UP(n,a,r,!0),u=i.direction==="rtl";return N.jsx(nne,{theme:s,children:N.jsx(jf.Provider,{value:i,children:N.jsx(ane,{value:u,children:t})})})}const sne=["component","direction","spacing","divider","children","className","useFlexGap"],lne=Ff(),une=Are("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function cne(e){return dM({props:e,name:"MuiStack",defaultTheme:lne})}function fne(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pne=({ownerState:e,theme:t})=>{let r=$({display:"flex",flexDirection:"column"},to({theme:t},ly({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=l_(t),o=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),a=ly({values:e.direction,base:o}),i=ly({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,l,c)=>{if(!a[u]){const p=l>0?a[c[l-1]]:"column";a[u]=p}}),r=Ar(r,to({theme:t},i,(u,l)=>e.useFlexGap?{gap:Yi(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${dne(l?a[l]:e.direction)}`]:Yi(n,u)}}))}return r=wte(t.breakpoints,r),r};function vne(e={}){const{createStyledComponent:t=une,useThemeProps:r=cne,componentName:n="MuiStack"}=e,o=()=>Le({root:["root"]},u=>Ne(n,u),{}),a=t(pne);return d.forwardRef(function(u,l){const c=r(u),f=bm(c),{component:p="div",direction:h="column",spacing:g=0,divider:b,children:w,className:x,useFlexGap:m=!1}=f,y=he(f,sne),O={direction:h,spacing:g,useFlexGap:m},v=o();return N.jsx(a,$({as:p,ownerState:O,ref:l,className:ye(v.root,x)},y,{children:b?fne(w,b):w}))})}function hne(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ht={},wM={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wM);var tt=wM.exports;const mne=Po(uee),gne=Po(Nre);var _M=tt;Object.defineProperty(Ht,"__esModule",{value:!0});var et=Ht.alpha=CM;Ht.blend=kne;Ht.colorChannel=void 0;var m_=Ht.darken=b_;Ht.decomposeColor=Fn;var yne=Ht.emphasize=PM,bne=Ht.getContrastRatio=Sne;Ht.getLuminance=Tv;Ht.hexToRgb=OM;Ht.hslToRgb=EM;var g_=Ht.lighten=x_;Ht.private_safeAlpha=Ene;Ht.private_safeColorChannel=void 0;Ht.private_safeDarken=Cne;Ht.private_safeEmphasize=$ne;Ht.private_safeLighten=Pne;Ht.recomposeColor=lu;Ht.rgbToHex=One;var VP=_M(mne),xne=_M(gne);function y_(e,t=0,r=1){return(0,xne.default)(e,t,r)}function OM(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function wne(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Fn(e){if(e.type)return e;if(e.charAt(0)==="#")return Fn(OM(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,VP.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,VP.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const SM=e=>{const t=Fn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Ht.colorChannel=SM;const _ne=(e,t)=>{try{return SM(e)}catch{return e}};Ht.private_safeColorChannel=_ne;function lu(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function One(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((r,n)=>wne(n===3?Math.round(255*r):r)).join("")}`}function EM(e){e=Fn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,c=(l+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),lu({type:s,values:u})}function Tv(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(EM(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sne(e,t){const r=Tv(e),n=Tv(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function CM(e,t){return e=Fn(e),t=y_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lu(e)}function Ene(e,t,r){try{return CM(e,t)}catch{return e}}function b_(e,t){if(e=Fn(e),t=y_(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return lu(e)}function Cne(e,t,r){try{return b_(e,t)}catch{return e}}function x_(e,t){if(e=Fn(e),t=y_(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return lu(e)}function Pne(e,t,r){try{return x_(e,t)}catch{return e}}function PM(e,t=.15){return Tv(e)>.5?b_(e,t):x_(e,t)}function $ne(e,t,r){try{return PM(e,t)}catch{return e}}function kne(e,t,r,n=1){const o=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),a=Fn(e),i=Fn(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return lu({type:"rgb",values:s})}const Rne=["mode","contrastThreshold","tonalOffset"],WP={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:Wc.white,default:Wc.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}},fy={text:{primary:Wc.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:Wc.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}};function qP(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=g_(e.main,o):t==="dark"&&(e.dark=m_(e.main,a)))}function Tne(e="light"){return e==="dark"?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[700],light:ms[400],dark:ms[800]}}function Ine(e="light"){return e==="dark"?{main:hs[200],light:hs[50],dark:hs[400]}:{main:hs[500],light:hs[300],dark:hs[700]}}function jne(e="light"){return e==="dark"?{main:yi[500],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[400],dark:yi[800]}}function Ane(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[700],light:gs[500],dark:gs[900]}}function Mne(e="light"){return e==="dark"?{main:ys[400],light:ys[300],dark:ys[700]}:{main:ys[800],light:ys[500],dark:ys[900]}}function Fne(e="light"){return e==="dark"?{main:Ru[400],light:Ru[300],dark:Ru[700]}:{main:"#ed6c02",light:Ru[500],dark:Ru[900]}}function Nne(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=he(e,Rne),a=e.primary||Tne(t),i=e.secondary||Ine(t),s=e.error||jne(t),u=e.info||Ane(t),l=e.success||Mne(t),c=e.warning||Fne(t);function f(b){return bne(b,fy.text.primary)>=r?fy.text.primary:WP.text.primary}const p=({color:b,name:w,mainShade:x=500,lightShade:m=300,darkShade:y=700})=>{if(b=$({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(ea(11,w?` (${w})`:"",x));if(typeof b.main!="string")throw new Error(ea(12,w?` (${w})`:"",JSON.stringify(b.main)));return qP(b,"light",m,n),qP(b,"dark",y,n),b.contrastText||(b.contrastText=f(b.main)),b},h={dark:fy,light:WP};return Ar($({common:$({},Wc),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:lee,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},h[t]),o)}const Lne=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Dne(e){return Math.round(e*1e5)/1e5}const HP={textTransform:"uppercase"},KP='"Roboto", "Helvetica", "Arial", sans-serif';function Bne(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=KP,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=he(r,Lne),h=o/14,g=f||(x=>`${x/l*h}rem`),b=(x,m,y,O,v)=>$({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:y},n===KP?{letterSpacing:`${Dne(O/m)}em`}:{},v,c),w={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(s,14,1.75,.4,HP),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,HP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ar($({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},w),p,{clone:!1})}const zne=.2,Une=.14,Vne=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Une})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vne})`].join(",")}const Wne=["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)],qne=["duration","easing","delay"],Hne={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)"},Kne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function GP(e){return`${Math.round(e)}ms`}function Gne(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Qne(e){const t=$({},Hne,e.easing),r=$({},Kne,e.duration);return $({getAutoHeightDuration:Gne,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=a;return he(a,qne),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:GP(i)} ${s} ${typeof u=="string"?u:GP(u)}`).join(",")}},e,{easing:t,duration:r})}const Xne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yne=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Iv(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=he(e,Yne);if(e.vars)throw new Error(ea(18));const s=Nne(n),u=Ff(e);let l=Ar(u,{mixins:hne(u.breakpoints,r),palette:s,shadows:Wne.slice(),typography:Bne(s,a),transitions:Qne(o),zIndex:$({},Xne)});return l=Ar(l,i),l=t.reduce((c,f)=>Ar(c,f),l),l.unstable_sxConfig=$({},Mf,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return iu({sx:f,theme:this})},l}const jm=Iv();function fa(){const e=ym(jm);return e[Xi]||e}function De({props:e,name:t}){return dM({props:e,name:t,defaultTheme:jm,themeId:Xi})}var Lf={},dy={exports:{}},QP;function Jne(){return QP||(QP=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(dy)),dy.exports}const $M=Po(mte),Zne=Po(gte),eoe=Po(Ote),toe=Po(Sre),roe=Po(cre),noe=Po(mre);var uu=tt;Object.defineProperty(Lf,"__esModule",{value:!0});var ooe=Lf.default=goe;Lf.shouldForwardProp=cp;Lf.systemDefaultTheme=void 0;var On=uu(HA()),Eb=uu(Jne()),XP=foe($M),aoe=Zne;uu(eoe);uu(toe);var ioe=uu(roe),soe=uu(noe);const loe=["ownerState"],uoe=["variants"],coe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kM(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kM=function(n){return n?r:t})(e)}function foe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kM(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function doe(e){return Object.keys(e).length===0}function poe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const voe=Lf.systemDefaultTheme=(0,ioe.default)(),hoe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pd({defaultTheme:e,theme:t,themeId:r}){return doe(t)?e:t[r]||t}function moe(e){return e?(t,r)=>r[e]:null}function fp(e,t){let{ownerState:r}=t,n=(0,Eb.default)(t,loe);const o=typeof e=="function"?e((0,On.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>fp(a,(0,On.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,Eb.default)(o,uoe);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,On.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,On.default)({ownerState:r},n,r)):u.style))}),s}return o}function goe(e={}){const{themeId:t,defaultTheme:r=voe,rootShouldForwardProp:n=cp,slotShouldForwardProp:o=cp}=e,a=i=>(0,soe.default)((0,On.default)({},i,{theme:Pd((0,On.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,XP.internal_processStyles)(i,v=>v.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=moe(hoe(l))}=s,h=(0,Eb.default)(s,coe),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,b=f||!1;let w,x=cp;l==="Root"||l==="root"?x=n:l?x=o:poe(i)&&(x=void 0);const m=(0,XP.default)(i,(0,On.default)({shouldForwardProp:x,label:w},h)),y=v=>typeof v=="function"&&v.__emotion_real!==v||(0,aoe.isPlainObject)(v)?_=>fp(v,(0,On.default)({},_,{theme:Pd({theme:_.theme,defaultTheme:r,themeId:t})})):v,O=(v,..._)=>{let S=y(v);const C=_?_.map(y):[];u&&p&&C.push(R=>{const I=Pd((0,On.default)({},R,{defaultTheme:r,themeId:t}));if(!I.components||!I.components[u]||!I.components[u].styleOverrides)return null;const M=I.components[u].styleOverrides,B={};return Object.entries(M).forEach(([A,V])=>{B[A]=fp(V,(0,On.default)({},R,{theme:I}))}),p(R,B)}),u&&!g&&C.push(R=>{var I;const M=Pd((0,On.default)({},R,{defaultTheme:r,themeId:t})),B=M==null||(I=M.components)==null||(I=I[u])==null?void 0:I.variants;return fp({variants:B},(0,On.default)({},R,{theme:M}))}),b||C.push(a);const P=C.length-_.length;if(Array.isArray(v)&&P>0){const R=new Array(P).fill("");S=[...v,...R],S.raw=[...v.raw,...R]}const k=m(S,...C);return i.muiName&&(k.muiName=i.muiName),k};return m.withConfig&&(O.withConfig=m.withConfig),O}}function RM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yr=e=>RM(e)&&e!=="classes",ee=ooe({themeId:Xi,defaultTheme:jm,rootShouldForwardProp:yr}),yoe=["theme"];function boe(e){let{theme:t}=e,r=he(e,yoe);const n=t[Xi];return N.jsx(ine,$({},r,{themeId:n?Xi:void 0,theme:n||t}))}const YP=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xoe(e){return Ne("MuiSvgIcon",e)}Fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const woe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_oe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(r)}`]};return Le(o,xoe,n)},Ooe=ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ae(r.color)}`],t[`fontSize${ae(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,u,l,c,f,p,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Cb=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,h=he(n,woe),g=d.isValidElement(o)&&o.type==="svg",b=$({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),w={};c||(w.viewBox=p);const x=_oe(b);return N.jsxs(Ooe,$({as:s,className:ye(x.root,a),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w,h,g&&o.props,{ownerState:b,children:[g?o.props.children:o,f?N.jsx("title",{children:f}):null]}))});Cb.muiName="SvgIcon";function sn(e,t){function r(n,o){return N.jsx(Cb,$({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Cb.muiName,d.memo(d.forwardRef(r))}const Soe={configure:e=>{f_.configure(e)}},Eoe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ae,createChainedFunction:Ob,createSvgIcon:sn,debounce:Rm,deprecatedPropType:Bre,isMuiElement:up,ownerDocument:rr,ownerWindow:Eo,requirePropFactory:zre,setRef:Rv,unstable_ClassNameGenerator:Soe,unstable_useEnhancedEffect:Mn,unstable_useId:Ji,unsupportedProp:Vre,useControlled:$l,useEventCallback:kn,useForkRef:It,useIsFocusVisible:Im},Symbol.toStringTag,{value:"Module"}));var gt={};/** - * @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 w_=Symbol.for("react.element"),__=Symbol.for("react.portal"),Am=Symbol.for("react.fragment"),Mm=Symbol.for("react.strict_mode"),Fm=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),Lm=Symbol.for("react.context"),Coe=Symbol.for("react.server_context"),Dm=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),zm=Symbol.for("react.suspense_list"),Um=Symbol.for("react.memo"),Vm=Symbol.for("react.lazy"),Poe=Symbol.for("react.offscreen"),TM;TM=Symbol.for("react.module.reference");function Un(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case w_:switch(e=e.type,e){case Am:case Fm:case Mm:case Bm:case zm:return e;default:switch(e=e&&e.$$typeof,e){case Coe:case Lm:case Dm:case Vm:case Um:case Nm:return e;default:return t}}case __:return t}}}gt.ContextConsumer=Lm;gt.ContextProvider=Nm;gt.Element=w_;gt.ForwardRef=Dm;gt.Fragment=Am;gt.Lazy=Vm;gt.Memo=Um;gt.Portal=__;gt.Profiler=Fm;gt.StrictMode=Mm;gt.Suspense=Bm;gt.SuspenseList=zm;gt.isAsyncMode=function(){return!1};gt.isConcurrentMode=function(){return!1};gt.isContextConsumer=function(e){return Un(e)===Lm};gt.isContextProvider=function(e){return Un(e)===Nm};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===w_};gt.isForwardRef=function(e){return Un(e)===Dm};gt.isFragment=function(e){return Un(e)===Am};gt.isLazy=function(e){return Un(e)===Vm};gt.isMemo=function(e){return Un(e)===Um};gt.isPortal=function(e){return Un(e)===__};gt.isProfiler=function(e){return Un(e)===Fm};gt.isStrictMode=function(e){return Un(e)===Mm};gt.isSuspense=function(e){return Un(e)===Bm};gt.isSuspenseList=function(e){return Un(e)===zm};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Am||e===Fm||e===Mm||e===Bm||e===zm||e===Poe||typeof e=="object"&&e!==null&&(e.$$typeof===Vm||e.$$typeof===Um||e.$$typeof===Nm||e.$$typeof===Lm||e.$$typeof===Dm||e.$$typeof===TM||e.getModuleId!==void 0)};gt.typeOf=Un;function $oe(e){return De}const JP={disabled:!1},jv=ce.createContext(null);var koe=function(t){return t.scrollTop},Ku="unmounted",bi="exited",xi="entering",Os="entered",Pb="exiting",ao=function(e){ia(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=bi,a.appearStatus=xi):u=Os:n.unmountOnExit||n.mountOnEnter?u=Ku:u=bi,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Ku?{status:bi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==xi&&i!==Os&&(a=xi):(i===xi||i===Os)&&(a=Pb)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===xi){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:qu.findDOMNode(this);i&&koe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bi&&this.setState({status:Ku})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[qu.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||JP.disabled){this.safeSetState({status:Os},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:xi},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:Os},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:qu.findDOMNode(this);if(!a||JP.disabled){this.safeSetState({status:bi},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Pb},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:bi},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:qu.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ku)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=he(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ce.createElement(jv.Provider,{value:null},typeof i=="function"?i(o,s):ce.cloneElement(ce.Children.only(i),s))},t}(ce.Component);ao.contextType=jv;ao.propTypes={};function bs(){}ao.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bs,onEntering:bs,onEntered:bs,onExit:bs,onExiting:bs,onExited:bs};ao.UNMOUNTED=Ku;ao.EXITED=bi;ao.ENTERING=xi;ao.ENTERED=Os;ao.EXITING=Pb;function O_(e,t){var r=function(a){return t&&d.isValidElement(a)?t(a):a},n=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Roe(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function kl(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function Moe(e){return Ne("MuiPaper",e)}Fe("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 Foe=["className","component","elevation","square","variant"],Noe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Le(a,Moe,o)},Loe=ee("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${et("#fff",YP(t.elevation))}, ${et("#fff",YP(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ai=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=he(n,Foe),c=$({},n,{component:a,elevation:i,square:s,variant:u}),f=Noe(c);return N.jsx(Loe,$({as:a,ownerState:c,className:ye(f.root,o),ref:r},l))});function Qc(e){return typeof e=="string"}function Hs(e,t,r){return e===void 0||Qc(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}const Doe={disableDefaultClasses:!1},Boe=d.createContext(Doe);function zoe(e){const{disableDefaultClasses:t}=d.useContext(Boe);return r=>t?"":e(r)}function Av(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function IM(e,t,r){return typeof e=="function"?e(t,r):e}function ZP(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function jM(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=ye(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=$({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),b=$({},r,o,n);return h.length>0&&(b.className=h),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:void 0}}const i=Av($({},o,n)),s=ZP(n),u=ZP(o),l=t(i),c=ye(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=$({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=$({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}const Uoe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ga(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=he(e,Uoe),s=a?{}:IM(n,o),{props:u,internalRef:l}=jM($({},i,{externalSlotProps:s})),c=It(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Hs(r,$({},u,{ref:c}),o)}const Voe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Woe=["component","slots","slotProps"],qoe=["component"];function Hoe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,u=he(t,Voe),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=a;he(a,Woe);const p=c[e]||n,h=IM(f[e],o),g=jM($({className:r},u,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:b},internalRef:w}=g,x=he(g.props,qoe),m=It(w,h==null?void 0:h.ref,t.ref),y=i?i(x):{},O=$({},o,y),v=b,_=Hs(p,$({},e==="root",!c[e]&&s,x,v&&{as:v},{ref:m}),O);return Object.keys(y).forEach(S=>{delete _[S]}),[p,_]}function Koe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ye(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=ye(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const b=setTimeout(u,l);return()=>{clearTimeout(b)}}},[u,s,l]),N.jsx("span",{className:p,style:h,children:N.jsx("span",{className:g})})}const Sn=Fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Goe=["center","classes","className"];let Wm=e=>e,e2,t2,r2,n2;const $b=550,Qoe=80,Xoe=ca(e2||(e2=Wm` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Yoe=ca(t2||(t2=Wm` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),Joe=ca(r2||(r2=Wm` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Zoe=ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),eae=ee(Koe,{name:"MuiTouchRipple",slot:"Ripple"})(n2||(n2=Wm` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),Sn.rippleVisible,Xoe,$b,({theme:e})=>e.transitions.easing.easeInOut,Sn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Sn.child,Sn.childLeaving,Yoe,$b,({theme:e})=>e.transitions.easing.easeInOut,Sn.childPulsate,Joe,({theme:e})=>e.transitions.easing.easeInOut),tae=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=he(n,Goe),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),h=Ri(),g=d.useRef(null),b=d.useRef(null),w=d.useCallback(O=>{const{pulsate:v,rippleX:_,rippleY:S,rippleSize:C,cb:P}=O;l(k=>[...k,N.jsx(eae,{classes:{ripple:ye(a.ripple,Sn.ripple),rippleVisible:ye(a.rippleVisible,Sn.rippleVisible),ripplePulsate:ye(a.ripplePulsate,Sn.ripplePulsate),child:ye(a.child,Sn.child),childLeaving:ye(a.childLeaving,Sn.childLeaving),childPulsate:ye(a.childPulsate,Sn.childPulsate)},timeout:$b,pulsate:v,rippleX:_,rippleY:S,rippleSize:C},c.current)]),c.current+=1,f.current=P},[a]),x=d.useCallback((O={},v={},_=()=>{})=>{const{pulsate:S=!1,center:C=o||v.pulsate,fakeElement:P=!1}=v;if((O==null?void 0:O.type)==="mousedown"&&p.current){p.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(p.current=!0);const k=P?null:b.current,R=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,M,B;if(C||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)I=Math.round(R.width/2),M=Math.round(R.height/2);else{const{clientX:A,clientY:V}=O.touches&&O.touches.length>0?O.touches[0]:O;I=Math.round(A-R.left),M=Math.round(V-R.top)}if(C)B=Math.sqrt((2*R.width**2+R.height**2)/3),B%2===0&&(B+=1);else{const A=Math.max(Math.abs((k?k.clientWidth:0)-I),I)*2+2,V=Math.max(Math.abs((k?k.clientHeight:0)-M),M)*2+2;B=Math.sqrt(A**2+V**2)}O!=null&&O.touches?g.current===null&&(g.current=()=>{w({pulsate:S,rippleX:I,rippleY:M,rippleSize:B,cb:_})},h.start(Qoe,()=>{g.current&&(g.current(),g.current=null)})):w({pulsate:S,rippleX:I,rippleY:M,rippleSize:B,cb:_})},[o,w,h]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),y=d.useCallback((O,v)=>{if(h.clear(),(O==null?void 0:O.type)==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{y(O,v)});return}g.current=null,l(_=>_.length>0?_.slice(1):_),f.current=v},[h]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:y}),[m,x,y]),N.jsx(Zoe,$({className:ye(Sn.root,a.root,i),ref:b},s,{children:N.jsx(S_,{component:null,exit:!0,children:u})}))});function rae(e){return Ne("MuiButtonBase",e)}const nae=Fe("MuiButtonBase",["root","disabled","focusVisible"]),oae=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],aae=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Le({root:["root",t&&"disabled",r&&"focusVisible"]},rae,o);return r&&n&&(i.root+=` ${n}`),i},iae=ee("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"},[`&.${nae.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ta=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:g,onClick:b,onContextMenu:w,onDragLeave:x,onFocus:m,onFocusVisible:y,onKeyDown:O,onKeyUp:v,onMouseDown:_,onMouseLeave:S,onMouseUp:C,onTouchEnd:P,onTouchMove:k,onTouchStart:R,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:B,type:A}=n,V=he(n,oae),q=d.useRef(null),j=d.useRef(null),W=It(j,B),{isFocusVisibleRef:K,onFocus:ne,onBlur:re,ref:be}=Im(),[xe,ve]=d.useState(!1);l&&xe&&ve(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{ve(!0),q.current.focus()}}),[]);const[we,$e]=d.useState(!1);d.useEffect(()=>{$e(!0)},[]);const me=we&&!c&&!l;d.useEffect(()=>{xe&&p&&!c&&we&&j.current.pulsate()},[c,p,xe,we]);function Oe(oe,Pe,Be=f){return kn(Ie=>(Pe&&Pe(Ie),!Be&&j.current&&j.current[oe](Ie),!0))}const Ae=Oe("start",_),je=Oe("stop",w),Te=Oe("stop",x),ke=Oe("stop",C),Me=Oe("stop",oe=>{xe&&oe.preventDefault(),S&&S(oe)}),Ce=Oe("start",R),Qe=Oe("stop",P),rt=Oe("stop",k),U=Oe("stop",oe=>{re(oe),K.current===!1&&ve(!1),g&&g(oe)},!1),Q=kn(oe=>{q.current||(q.current=oe.currentTarget),ne(oe),K.current===!0&&(ve(!0),y&&y(oe)),m&&m(oe)}),Y=()=>{const oe=q.current;return u&&u!=="button"&&!(oe.tagName==="A"&&oe.href)},le=d.useRef(!1),fe=kn(oe=>{p&&!le.current&&xe&&j.current&&oe.key===" "&&(le.current=!0,j.current.stop(oe,()=>{j.current.start(oe)})),oe.target===oe.currentTarget&&Y()&&oe.key===" "&&oe.preventDefault(),O&&O(oe),oe.target===oe.currentTarget&&Y()&&oe.key==="Enter"&&!l&&(oe.preventDefault(),b&&b(oe))}),ue=kn(oe=>{p&&oe.key===" "&&j.current&&xe&&!oe.defaultPrevented&&(le.current=!1,j.current.stop(oe,()=>{j.current.pulsate(oe)})),v&&v(oe),b&&oe.target===oe.currentTarget&&Y()&&oe.key===" "&&!oe.defaultPrevented&&b(oe)});let de=u;de==="button"&&(V.href||V.to)&&(de=h);const Z={};de==="button"?(Z.type=A===void 0?"button":A,Z.disabled=l):(!V.href&&!V.to&&(Z.role="button"),l&&(Z["aria-disabled"]=l));const H=It(r,be,q),G=$({},n,{centerRipple:a,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:I,focusVisible:xe}),te=aae(G);return N.jsxs(iae,$({as:de,className:ye(te.root,s),ownerState:G,onBlur:U,onClick:b,onContextMenu:je,onFocus:Q,onKeyDown:fe,onKeyUp:ue,onMouseDown:Ae,onMouseLeave:Me,onMouseUp:ke,onDragLeave:Te,onTouchEnd:Qe,onTouchMove:rt,onTouchStart:Ce,ref:H,tabIndex:l?-1:I,type:A},Z,V,{children:[i,me?N.jsx(tae,$({ref:W,center:a},M)):null]}))});function sae(e){return Ne("MuiIconButton",e)}const lae=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),uae=["edge","children","className","color","disabled","disableFocusRipple","size"],cae=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ae(n)}`,o&&`edge${ae(o)}`,`size${ae(a)}`]};return Le(i,sae,t)},fae=ee(ta,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ae(r.color)}`],r.edge&&t[`edge${ae(r.edge)}`],t[`size${ae(r.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":$({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${lae.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Yt=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=he(n,uae),p=$({},n,{edge:o,color:s,disabled:u,disableFocusRipple:l,size:c}),h=cae(p);return N.jsx(fae,$({className:ye(h.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:a}))});function dae(e){return Ne("MuiTypography",e)}Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pae=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vae=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${ae(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Le(s,dae,i)},hae=ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ae(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),o2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mae={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gae=e=>mae[e]||e,zt=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTypography"}),o=gae(n.color),a=bm($({},n,{color:o})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=o2}=a,g=he(a,pae),b=$({},a,{align:i,color:o,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:h}),w=u||(f?"p":h[p]||o2[p])||"span",x=vae(b);return N.jsx(hae,$({as:w,ref:r,ownerState:b,className:ye(x.root,s)},g))});function yae(e){return Ne("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bae=["className","color","enableColorOnDark","position"],xae=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${ae(t)}`,`position${ae(r)}`]};return Le(o,yae,n)},$d=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,wae=ee(ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ae(r.position)}`],t[`color${ae(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:$d(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:$d(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:$d(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:$d(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),_ae=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=he(n,bae),l=$({},n,{color:a,position:s,enableColorOnDark:i}),c=xae(l);return N.jsx(wae,$({square:!0,component:"header",ownerState:l,elevation:4,className:ye(c.root,o,s==="fixed"&&"mui-fixed"),ref:r},u))}),AM="base";function Oae(e){return`${AM}--${e}`}function Sae(e,t){return`${AM}-${e}-${t}`}function MM(e,t){const r=iM[t];return r?Oae(r):Sae(e,t)}function Eae(e,t){const r={};return t.forEach(n=>{r[n]=MM(e,n)}),r}function a2(e){return e.substring(2).toLowerCase()}function Cae(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=It(t.ref,s),f=kn(g=>{const b=l.current;l.current=!1;const w=rr(s.current);if(!u.current||!s.current||"clientX"in g&&Cae(g,w))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!w.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!b)&&o(g)}),p=g=>b=>{l.current=!0;const w=t.props[g];w&&w(b)},h={ref:c};return a!==!1&&(h[a]=p(a)),d.useEffect(()=>{if(a!==!1){const g=a2(a),b=rr(s.current),w=()=>{i.current=!0};return b.addEventListener(g,f),b.addEventListener("touchmove",w),()=>{b.removeEventListener(g,f),b.removeEventListener("touchmove",w)}}},[f,a]),n!==!1&&(h[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=a2(n),b=rr(s.current);return b.addEventListener(g,f),()=>{b.removeEventListener(g,f)}}},[f,n]),N.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const $ae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kae(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 Rae(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Tae(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Rae(e))}function Iae(e){const t=[],r=[];return Array.from(e.querySelectorAll($ae)).forEach((n,o)=>{const a=kae(n);a===-1||!Tae(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function jae(){return!0}function Aae(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=Iae,isEnabled:i=jae,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),h=d.useRef(!1),g=d.useRef(null),b=It(t.ref,g),w=d.useRef(null);d.useEffect(()=>{!s||!g.current||(h.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const y=rr(g.current);return g.current.contains(y.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const y=rr(g.current),O=S=>{w.current=S,!(n||!i()||S.key!=="Tab")&&y.activeElement===g.current&&S.shiftKey&&(u.current=!0,c.current&&c.current.focus())},v=()=>{const S=g.current;if(S===null)return;if(!y.hasFocus()||!i()||u.current){u.current=!1;return}if(S.contains(y.activeElement)||n&&y.activeElement!==l.current&&y.activeElement!==c.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let C=[];if((y.activeElement===l.current||y.activeElement===c.current)&&(C=a(g.current)),C.length>0){var P,k;const R=!!((P=w.current)!=null&&P.shiftKey&&((k=w.current)==null?void 0:k.key)==="Tab"),I=C[0],M=C[C.length-1];typeof I!="string"&&typeof M!="string"&&(R?M.focus():I.focus())}else S.focus()};y.addEventListener("focusin",v),y.addEventListener("keydown",O,!0);const _=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&v()},50);return()=>{clearInterval(_),y.removeEventListener("focusin",v),y.removeEventListener("keydown",O,!0)}},[r,n,o,i,s,a]);const x=y=>{f.current===null&&(f.current=y.relatedTarget),h.current=!0,p.current=y.target;const O=t.props.onFocus;O&&O(y)},m=y=>{f.current===null&&(f.current=y.relatedTarget),h.current=!0};return N.jsxs(d.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:b,onFocus:x}),N.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Mae(e){return typeof e=="function"?e():e}const FM=d.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=d.useState(null),u=It(d.isValidElement(n)?n.ref:null,r);if(Mn(()=>{a||s(Mae(o)||document.body)},[o,a]),Mn(()=>{if(i&&!a)return Rv(r,i),()=>{Rv(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return N.jsx(d.Fragment,{children:n})}return N.jsx(d.Fragment,{children:i&&Th.createPortal(n,i)})});function Fae(e){const t=rr(e);return t.body===e?Eo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function i2(e){return parseInt(Eo(e).getComputedStyle(e).paddingRight,10)||0}function Nae(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function s2(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,u=!Nae(i);s&&u&&cc(i,o)})}function py(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Lae(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Fae(n)){const i=gM(rr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${i2(n)+i}px`;const s=rr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${i2(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=rr(n).body;else{const i=n.parentElement,s=Eo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function Dae(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Bae{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&cc(t.modalRef,!1);const o=Dae(r);s2(r,t.mount,t.modalRef,o,!0);const a=py(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=py(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Lae(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=py(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&cc(t.modalRef,r),s2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&cc(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function zae(e){return typeof e=="function"?e():e}function Uae(e){return e?e.props.hasOwnProperty("in"):!1}const Vae=new Bae;function Wae(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Vae,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),h=d.useRef(null),g=d.useRef(null),b=It(g,f),[w,x]=d.useState(!c),m=Uae(u);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const O=()=>rr(h.current),v=()=>(p.current.modalRef=g.current,p.current.mount=h.current,p.current),_=()=>{o.mount(v(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},S=kn(()=>{const V=zae(t)||O().body;o.add(v(),V),g.current&&_()}),C=d.useCallback(()=>o.isTopModal(v()),[o]),P=kn(V=>{h.current=V,V&&(c&&C()?_():g.current&&cc(g.current,y))}),k=d.useCallback(()=>{o.remove(v(),y)},[y,o]);d.useEffect(()=>()=>{k()},[k]),d.useEffect(()=>{c?S():(!m||!a)&&k()},[c,k,m,a,S]);const R=V=>q=>{var j;(j=V.onKeyDown)==null||j.call(V,q),!(q.key!=="Escape"||q.which===229||!C())&&(r||(q.stopPropagation(),l&&l(q,"escapeKeyDown")))},I=V=>q=>{var j;(j=V.onClick)==null||j.call(V,q),q.target===q.currentTarget&&l&&l(q,"backdropClick")};return{getRootProps:(V={})=>{const q=Av(e);delete q.onTransitionEnter,delete q.onTransitionExited;const j=$({},q,V);return $({role:"presentation"},j,{onKeyDown:R(j),ref:b})},getBackdropProps:(V={})=>{const q=V;return $({"aria-hidden":!0},q,{onClick:I(q),open:c})},getTransitionProps:()=>{const V=()=>{x(!1),i&&i()},q=()=>{x(!0),s&&s(),a&&k()};return{onEnter:Ob(V,u==null?void 0:u.props.onEnter),onExited:Ob(q,u==null?void 0:u.props.onExited)}},rootRef:b,portalRef:P,isTopModal:C,exited:w,hasTransition:m}}var Zr="top",Nn="bottom",Ln="right",en="left",C_="auto",Df=[Zr,Nn,Ln,en],Rl="start",Xc="end",qae="clippingParents",NM="viewport",Iu="popper",Hae="reference",l2=Df.reduce(function(e,t){return e.concat([t+"-"+Rl,t+"-"+Xc])},[]),LM=[].concat(Df,[C_]).reduce(function(e,t){return e.concat([t,t+"-"+Rl,t+"-"+Xc])},[]),Kae="beforeRead",Gae="read",Qae="afterRead",Xae="beforeMain",Yae="main",Jae="afterMain",Zae="beforeWrite",eie="write",tie="afterWrite",rie=[Kae,Gae,Qae,Xae,Yae,Jae,Zae,eie,tie];function Co(e){return e?(e.nodeName||"").toLowerCase():null}function gn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zi(e){var t=gn(e).Element;return e instanceof t||e instanceof Element}function Tn(e){var t=gn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function P_(e){if(typeof ShadowRoot>"u")return!1;var t=gn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nie(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Tn(a)||!Co(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function oie(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!Tn(o)||!Co(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const aie={name:"applyStyles",enabled:!0,phase:"write",fn:nie,effect:oie,requires:["computeStyles"]};function So(e){return e.split("-")[0]}var Li=Math.max,Mv=Math.min,Tl=Math.round;function kb(){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 DM(){return!/^((?!chrome|android).)*safari/i.test(kb())}function Il(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Tn(e)&&(o=e.offsetWidth>0&&Tl(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Tl(n.height)/e.offsetHeight||1);var i=Zi(e)?gn(e):window,s=i.visualViewport,u=!DM()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/o,c=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function $_(e){var t=Il(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function BM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&P_(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ra(e){return gn(e).getComputedStyle(e)}function iie(e){return["table","td","th"].indexOf(Co(e))>=0}function ii(e){return((Zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function qm(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(P_(e)?e.host:null)||ii(e)}function u2(e){return!Tn(e)||ra(e).position==="fixed"?null:e.offsetParent}function sie(e){var t=/firefox/i.test(kb()),r=/Trident/i.test(kb());if(r&&Tn(e)){var n=ra(e);if(n.position==="fixed")return null}var o=qm(e);for(P_(o)&&(o=o.host);Tn(o)&&["html","body"].indexOf(Co(o))<0;){var a=ra(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Bf(e){for(var t=gn(e),r=u2(e);r&&iie(r)&&ra(r).position==="static";)r=u2(r);return r&&(Co(r)==="html"||Co(r)==="body"&&ra(r).position==="static")?t:r||sie(e)||t}function k_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fc(e,t,r){return Li(e,Mv(t,r))}function lie(e,t,r){var n=fc(e,t,r);return n>r?r:n}function zM(){return{top:0,right:0,bottom:0,left:0}}function UM(e){return Object.assign({},zM(),e)}function VM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var uie=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,UM(typeof t!="number"?t:VM(t,Df))};function cie(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=So(r.placement),u=k_(s),l=[en,Ln].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!i)){var f=uie(o.padding,r),p=$_(a),h=u==="y"?Zr:en,g=u==="y"?Nn:Ln,b=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],w=i[u]-r.rects.reference[u],x=Bf(a),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,y=b/2-w/2,O=f[h],v=m-p[c]-f[g],_=m/2-p[c]/2+y,S=fc(O,_,v),C=u;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-_,t)}}function fie(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||BM(t.elements.popper,o)&&(t.elements.arrow=o))}const die={name:"arrow",enabled:!0,phase:"main",fn:cie,effect:fie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jl(e){return e.split("-")[1]}var pie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vie(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Tl(r*o)/o||0,y:Tl(n*o)/o||0}}function c2(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,h=p===void 0?0:p,g=i.y,b=g===void 0?0:g,w=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=w.x,b=w.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),y=en,O=Zr,v=window;if(l){var _=Bf(r),S="clientHeight",C="clientWidth";if(_===gn(r)&&(_=ii(r),ra(_).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),_=_,o===Zr||(o===en||o===Ln)&&a===Xc){O=Nn;var P=f&&_===v&&v.visualViewport?v.visualViewport.height:_[S];b-=P-n.height,b*=u?1:-1}if(o===en||(o===Zr||o===Nn)&&a===Xc){y=Ln;var k=f&&_===v&&v.visualViewport?v.visualViewport.width:_[C];h-=k-n.width,h*=u?1:-1}}var R=Object.assign({position:s},l&&pie),I=c===!0?vie({x:h,y:b},gn(r)):{x:h,y:b};if(h=I.x,b=I.y,u){var M;return Object.assign({},R,(M={},M[O]=m?"0":"",M[y]=x?"0":"",M.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",M))}return Object.assign({},R,(t={},t[O]=m?b+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function hie(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:So(t.placement),variation:jl(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,c2(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,c2(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hie,data:{}};var kd={passive:!0};function gie(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,u=gn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,kd)}),s&&u.addEventListener("resize",r.update,kd),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,kd)}),s&&u.removeEventListener("resize",r.update,kd)}}const yie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gie,data:{}};var bie={left:"right",right:"left",bottom:"top",top:"bottom"};function dp(e){return e.replace(/left|right|bottom|top/g,function(t){return bie[t]})}var xie={start:"end",end:"start"};function f2(e){return e.replace(/start|end/g,function(t){return xie[t]})}function R_(e){var t=gn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function T_(e){return Il(ii(e)).left+R_(e).scrollLeft}function wie(e,t){var r=gn(e),n=ii(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;var l=DM();(l||!l&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s+T_(e),y:u}}function _ie(e){var t,r=ii(e),n=R_(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Li(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Li(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+T_(e),u=-n.scrollTop;return ra(o||r).direction==="rtl"&&(s+=Li(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}function I_(e){var t=ra(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function WM(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:Tn(e)&&I_(e)?e:WM(qm(e))}function dc(e,t){var r;t===void 0&&(t=[]);var n=WM(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=gn(n),i=o?[a].concat(a.visualViewport||[],I_(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(dc(qm(i)))}function Rb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Oie(e,t){var r=Il(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function d2(e,t,r){return t===NM?Rb(wie(e,r)):Zi(t)?Oie(t,r):Rb(_ie(ii(e)))}function Sie(e){var t=dc(qm(e)),r=["absolute","fixed"].indexOf(ra(e).position)>=0,n=r&&Tn(e)?Bf(e):e;return Zi(n)?t.filter(function(o){return Zi(o)&&BM(o,n)&&Co(o)!=="body"}):[]}function Eie(e,t,r,n){var o=t==="clippingParents"?Sie(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(u,l){var c=d2(e,l,n);return u.top=Li(c.top,u.top),u.right=Mv(c.right,u.right),u.bottom=Mv(c.bottom,u.bottom),u.left=Li(c.left,u.left),u},d2(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qM(e){var t=e.reference,r=e.element,n=e.placement,o=n?So(n):null,a=n?jl(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Zr:u={x:i,y:t.y-r.height};break;case Nn:u={x:i,y:t.y+t.height};break;case Ln:u={x:t.x+t.width,y:s};break;case en:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=o?k_(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Rl:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Xc:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function Yc(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?qae:s,l=r.rootBoundary,c=l===void 0?NM:l,f=r.elementContext,p=f===void 0?Iu:f,h=r.altBoundary,g=h===void 0?!1:h,b=r.padding,w=b===void 0?0:b,x=UM(typeof w!="number"?w:VM(w,Df)),m=p===Iu?Hae:Iu,y=e.rects.popper,O=e.elements[g?m:p],v=Eie(Zi(O)?O:O.contextElement||ii(e.elements.popper),u,c,i),_=Il(e.elements.reference),S=qM({reference:_,element:y,strategy:"absolute",placement:o}),C=Rb(Object.assign({},y,S)),P=p===Iu?C:_,k={top:v.top-P.top+x.top,bottom:P.bottom-v.bottom+x.bottom,left:v.left-P.left+x.left,right:P.right-v.right+x.right},R=e.modifiersData.offset;if(p===Iu&&R){var I=R[o];Object.keys(k).forEach(function(M){var B=[Ln,Nn].indexOf(M)>=0?1:-1,A=[Zr,Nn].indexOf(M)>=0?"y":"x";k[M]+=I[A]*B})}return k}function Cie(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?LM:u,c=jl(n),f=c?s?l2:l2.filter(function(g){return jl(g)===c}):Df,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,b){return g[b]=Yc(e,{placement:b,boundary:o,rootBoundary:a,padding:i})[So(b)],g},{});return Object.keys(h).sort(function(g,b){return h[g]-h[b]})}function Pie(e){if(So(e)===C_)return[];var t=dp(e);return[f2(e),t,f2(t)]}function $ie(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,b=r.allowedAutoPlacements,w=t.options.placement,x=So(w),m=x===w,y=u||(m||!g?[dp(w)]:Pie(w)),O=[w].concat(y).reduce(function(xe,ve){return xe.concat(So(ve)===C_?Cie(t,{placement:ve,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:b}):ve)},[]),v=t.rects.reference,_=t.rects.popper,S=new Map,C=!0,P=O[0],k=0;k=0,A=B?"width":"height",V=Yc(t,{placement:R,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),q=B?M?Ln:en:M?Nn:Zr;v[A]>_[A]&&(q=dp(q));var j=dp(q),W=[];if(a&&W.push(V[I]<=0),s&&W.push(V[q]<=0,V[j]<=0),W.every(function(xe){return xe})){P=R,C=!1;break}S.set(R,W)}if(C)for(var K=g?3:1,ne=function(ve){var we=O.find(function($e){var me=S.get($e);if(me)return me.slice(0,ve).every(function(Oe){return Oe})});if(we)return P=we,"break"},re=K;re>0;re--){var be=ne(re);if(be==="break")break}t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}}const kie={name:"flip",enabled:!0,phase:"main",fn:$ie,requiresIfExists:["offset"],data:{_skip:!1}};function p2(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function v2(e){return[Zr,Ln,Nn,en].some(function(t){return e[t]>=0})}function Rie(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Yc(t,{elementContext:"reference"}),s=Yc(t,{altBoundary:!0}),u=p2(i,n),l=p2(s,o,a),c=v2(u),f=v2(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Tie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rie};function Iie(e,t,r){var n=So(e),o=[en,Zr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[en,Ln].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function jie(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=LM.reduce(function(c,f){return c[f]=Iie(f,t.rects,a),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Aie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jie};function Mie(e){var t=e.state,r=e.name;t.modifiersData[r]=qM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fie={name:"popperOffsets",enabled:!0,phase:"read",fn:Mie,data:{}};function Nie(e){return e==="x"?"y":"x"}function Lie(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,g=r.tetherOffset,b=g===void 0?0:g,w=Yc(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=So(t.placement),m=jl(t.placement),y=!m,O=k_(x),v=Nie(O),_=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,k=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(_){if(a){var M,B=O==="y"?Zr:en,A=O==="y"?Nn:Ln,V=O==="y"?"height":"width",q=_[O],j=q+w[B],W=q-w[A],K=h?-C[V]/2:0,ne=m===Rl?S[V]:C[V],re=m===Rl?-C[V]:-S[V],be=t.elements.arrow,xe=h&&be?$_(be):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zM(),we=ve[B],$e=ve[A],me=fc(0,S[V],xe[V]),Oe=y?S[V]/2-K-me-we-k.mainAxis:ne-me-we-k.mainAxis,Ae=y?-S[V]/2+K+me+$e+k.mainAxis:re+me+$e+k.mainAxis,je=t.elements.arrow&&Bf(t.elements.arrow),Te=je?O==="y"?je.clientTop||0:je.clientLeft||0:0,ke=(M=R==null?void 0:R[O])!=null?M:0,Me=q+Oe-ke-Te,Ce=q+Ae-ke,Qe=fc(h?Mv(j,Me):j,q,h?Li(W,Ce):W);_[O]=Qe,I[O]=Qe-q}if(s){var rt,U=O==="x"?Zr:en,Q=O==="x"?Nn:Ln,Y=_[v],le=v==="y"?"height":"width",fe=Y+w[U],ue=Y-w[Q],de=[Zr,en].indexOf(x)!==-1,Z=(rt=R==null?void 0:R[v])!=null?rt:0,H=de?fe:Y-S[le]-C[le]-Z+k.altAxis,G=de?Y+S[le]+C[le]-Z-k.altAxis:ue,te=h&&de?lie(H,Y,G):fc(h?H:fe,Y,h?G:ue);_[v]=te,I[v]=te-Y}t.modifiersData[n]=I}}const Die={name:"preventOverflow",enabled:!0,phase:"main",fn:Lie,requiresIfExists:["offset"]};function Bie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zie(e){return e===gn(e)||!Tn(e)?R_(e):Bie(e)}function Uie(e){var t=e.getBoundingClientRect(),r=Tl(t.width)/e.offsetWidth||1,n=Tl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Vie(e,t,r){r===void 0&&(r=!1);var n=Tn(t),o=Tn(t)&&Uie(t),a=ii(t),i=Il(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Co(t)!=="body"||I_(a))&&(s=zie(t)),Tn(t)?(u=Il(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=T_(a))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Wie(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function qie(e){var t=Wie(e);return rie.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Hie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Kie(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var h2={placement:"bottom",modifiers:[],strategy:"absolute"};function m2(){for(var e=arguments.length,t=new Array(e),r=0;rLe({root:["root"]},zoe(Yie)),nse={},ose=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:h={},slots:g={},TransitionProps:b}=t,w=he(t,Jie),x=d.useRef(null),m=It(x,r),y=d.useRef(null),O=It(y,p),v=d.useRef(O);Mn(()=>{v.current=O},[O]),d.useImperativeHandle(p,()=>y.current,[]);const _=ese(c,i),[S,C]=d.useState(_),[P,k]=d.useState(Tb(o));d.useEffect(()=>{y.current&&y.current.forceUpdate()}),d.useEffect(()=>{o&&k(Tb(o))},[o]),Mn(()=>{if(!P||!l)return;const A=j=>{C(j.placement)};let V=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{A(j)}}];u!=null&&(V=V.concat(u)),f&&f.modifiers!=null&&(V=V.concat(f.modifiers));const q=Xie(P,x.current,$({placement:_},f,{modifiers:V}));return v.current(q),()=>{q.destroy(),v.current(null)}},[P,s,u,l,f,_]);const R={placement:S};b!==null&&(R.TransitionProps=b);const I=rse(),M=(n=g.root)!=null?n:"div",B=Ga({elementType:M,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:I.root});return N.jsx(M,$({},B,{children:typeof a=="function"?a(R):a}))}),ase=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=nse,popperRef:h,style:g,transition:b=!1,slotProps:w={},slots:x={}}=t,m=he(t,Zie),[y,O]=d.useState(!0),v=()=>{O(!1)},_=()=>{O(!0)};if(!u&&!c&&(!b||y))return null;let S;if(a)S=a;else if(n){const k=Tb(n);S=k&&tse(k)?rr(k).body:rr(null).body}const C=!c&&u&&(!b||y)?"none":void 0,P=b?{in:c,onEnter:v,onExited:_}:void 0;return N.jsx(FM,{disablePortal:s,container:S,children:N.jsx(ose,$({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:b?!y:c,placement:f,popperOptions:p,popperRef:h,slotProps:w,slots:x},m,{style:$({position:"fixed",top:0,left:0,display:C},g),TransitionProps:P,children:o}))})});function ise(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Ri();d.useEffect(()=>{if(!o)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,n]);const s=kn((x,m)=>{n==null||n(x,m)}),u=kn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),p=x=>m=>{const y=x.onBlur;y==null||y(m),f()},h=x=>m=>{const y=x.onFocus;y==null||y(m),c()},g=x=>m=>{const y=x.onMouseEnter;y==null||y(m),c()},b=x=>m=>{const y=x.onMouseLeave;y==null||y(m),f()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,o,f,c]),{getRootProps:(x={})=>{const m=$({},Av(e),Av(x));return $({role:"presentation"},x,m,{onBlur:p(m),onFocus:h(m),onMouseEnter:g(m),onMouseLeave:b(m)})},onClickAway:l}}const sse=["onChange","maxRows","minRows","style","value"];function Rd(e){return parseInt(e,10)||0}const lse={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function use(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const cse=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,u=he(t,sse),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=It(r,c),p=d.useRef(null),h=d.useCallback(()=>{const w=c.current,m=Eo(w).getComputedStyle(w);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=p.current;y.style.width=m.width,y.value=w.value||t.placeholder||"x",y.value.slice(-1)===` -`&&(y.value+=" ");const O=m.boxSizing,v=Rd(m.paddingBottom)+Rd(m.paddingTop),_=Rd(m.borderBottomWidth)+Rd(m.borderTopWidth),S=y.scrollHeight;y.value="x";const C=y.scrollHeight;let P=S;a&&(P=Math.max(Number(a)*C,P)),o&&(P=Math.min(Number(o)*C,P)),P=Math.max(P,C);const k=P+(O==="border-box"?v+_:0),R=Math.abs(P-S)<=1;return{outerHeightStyle:k,overflowing:R}},[o,a,t.placeholder]),g=d.useCallback(()=>{const w=h();if(use(w))return;const x=c.current;x.style.height=`${w.outerHeightStyle}px`,x.style.overflow=w.overflowing?"hidden":""},[h]);Mn(()=>{const w=()=>{g()};let x;const m=Rm(w),y=c.current,O=Eo(y);O.addEventListener("resize",m);let v;return typeof ResizeObserver<"u"&&(v=new ResizeObserver(w),v.observe(y)),()=>{m.clear(),cancelAnimationFrame(x),O.removeEventListener("resize",m),v&&v.disconnect()}},[h,g]),Mn(()=>{g()});const b=w=>{l||g(),n&&n(w)};return N.jsxs(d.Fragment,{children:[N.jsx("textarea",$({value:s,onChange:b,ref:f,rows:a,style:i},u)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},lse.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var j_={};Object.defineProperty(j_,"__esModule",{value:!0});var KM=j_.default=void 0,fse=pse(d),dse=$M;function GM(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(GM=function(n){return n?r:t})(e)}function pse(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=GM(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function vse(e){return Object.keys(e).length===0}function hse(e=null){const t=fse.useContext(dse.ThemeContext);return!t||vse(t)?e:t}KM=j_.default=hse;const mse=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],gse=ee(ase,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QM=d.forwardRef(function(t,r){var n;const o=KM(),a=De({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:b,popperOptions:w,popperRef:x,transition:m,slots:y,slotProps:O}=a,v=he(a,mse),_=(n=y==null?void 0:y.root)!=null?n:u==null?void 0:u.Root,S=$({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:b,popperOptions:w,popperRef:x,transition:m},v);return N.jsx(gse,$({as:s,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:O??l},S,{ref:r}))}),yse=sn(N.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 bse(e){return Ne("MuiChip",e)}const at=Fe("MuiChip",["root","sizeSmall","sizeMedium","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"]),xse=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],wse=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ae(n)}`,`color${ae(o)}`,s&&"clickable",s&&`clickableColor${ae(o)}`,i&&"deletable",i&&`deletableColor${ae(o)}`,`${u}${ae(o)}`],label:["label",`label${ae(n)}`],avatar:["avatar",`avatar${ae(n)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(n)}`,`iconColor${ae(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(n)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(u)}Color${ae(o)}`]};return Le(l,bse,t)},_se=ee("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:u}=r;return[{[`& .${at.avatar}`]:t.avatar},{[`& .${at.avatar}`]:t[`avatar${ae(s)}`]},{[`& .${at.avatar}`]:t[`avatarColor${ae(n)}`]},{[`& .${at.icon}`]:t.icon},{[`& .${at.icon}`]:t[`icon${ae(s)}`]},{[`& .${at.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${at.deleteIcon}`]:t.deleteIcon},{[`& .${at.deleteIcon}`]:t[`deleteIcon${ae(s)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIconColor${ae(n)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIcon${ae(u)}Color${ae(n)}`]},t.root,t[`size${ae(s)}`],t[`color${ae(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${ae(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ae(n)}`],t[u],t[`${u}${ae(n)}`]]}})(({theme:e,ownerState:t})=>{const r=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",[`&.${at.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${at.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${at.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${at.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${at.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${at.icon}`]:$({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&$({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${at.deleteIcon}`]:$({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:et(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)`:et(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:et(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>$({},t.clickable&&{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}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>$({},t.variant==="outlined"&&{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]}`,[`&.${at.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${at.avatar}`]:{marginLeft:4},[`& .${at.avatarSmall}`]:{marginLeft:2},[`& .${at.icon}`]:{marginLeft:4},[`& .${at.iconSmall}`]:{marginLeft:2},[`& .${at.deleteIcon}`]:{marginRight:5},[`& .${at.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:et(e.palette[t.color].main,.7)}`,[`&.${at.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${at.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:et(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Ose=ee("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ae(n)}`]]}})(({ownerState:e})=>$({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function g2(e){return e.key==="Backspace"||e.key==="Delete"}const A_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:h,onDelete:g,onKeyDown:b,onKeyUp:w,size:x="medium",variant:m="filled",tabIndex:y,skipFocusWhenDisabled:O=!1}=n,v=he(n,xse),_=d.useRef(null),S=It(_,r),C=W=>{W.stopPropagation(),g&&g(W)},P=W=>{W.currentTarget===W.target&&g2(W)&&W.preventDefault(),b&&b(W)},k=W=>{W.currentTarget===W.target&&(g&&g2(W)?g(W):W.key==="Escape"&&_.current&&_.current.blur()),w&&w(W)},R=i!==!1&&h?!0:i,I=R||g?ta:u||"div",M=$({},n,{component:I,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:R,variant:m}),B=wse(M),A=I===ta?$({component:u||"div",focusVisibleClassName:B.focusVisible},g&&{disableRipple:!0}):{};let V=null;g&&(V=l&&d.isValidElement(l)?d.cloneElement(l,{className:ye(l.props.className,B.deleteIcon),onClick:C}):N.jsx(yse,{className:ye(B.deleteIcon),onClick:C}));let q=null;o&&d.isValidElement(o)&&(q=d.cloneElement(o,{className:ye(B.avatar,o.props.className)}));let j=null;return f&&d.isValidElement(f)&&(j=d.cloneElement(f,{className:ye(B.icon,f.props.className)})),N.jsxs(_se,$({as:I,className:ye(B.root,a),disabled:R&&c?!0:void 0,onClick:h,onKeyDown:P,onKeyUp:k,ref:S,tabIndex:O&&c?-1:y,ownerState:M},A,v,{children:[q||j,N.jsx(Ose,{className:ye(B.label),ownerState:M,children:p}),V]}))});function cu({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Hm=d.createContext(void 0);function si(){return d.useContext(Hm)}function Sse(e){return N.jsx(pre,$({},e,{defaultTheme:jm,themeId:Xi}))}function y2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fv(e,t=!1){return e&&(y2(e.value)&&e.value!==""||t&&y2(e.defaultValue)&&e.defaultValue!=="")}function Ese(e){return e.startAdornment}function Cse(e){return Ne("MuiInputBase",e)}const Al=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pse=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Km=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ae(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Gm=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},$se=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:h,type:g}=e,b={root:["root",`color${ae(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ae(p)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Le(b,Cse,t)},Qm=ee("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Km})(({theme:e,ownerState:t})=>$({},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",[`&.${Al.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Xm=ee("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Gm})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Al.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Al.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),kse=N.jsx(Sse,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ym=d.forwardRef(function(t,r){var n;const o=De({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:b=!1,id:w,inputComponent:x="input",inputProps:m={},inputRef:y,maxRows:O,minRows:v,multiline:_=!1,name:S,onBlur:C,onChange:P,onClick:k,onFocus:R,onKeyDown:I,onKeyUp:M,placeholder:B,readOnly:A,renderSuffix:V,rows:q,slotProps:j={},slots:W={},startAdornment:K,type:ne="text",value:re}=o,be=he(o,Pse),xe=m.value!=null?m.value:re,{current:ve}=d.useRef(xe!=null),we=d.useRef(),$e=d.useCallback(te=>{},[]),me=It(we,y,m.ref,$e),[Oe,Ae]=d.useState(!1),je=si(),Te=cu({props:o,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=je?je.focused:Oe,d.useEffect(()=>{!je&&p&&Oe&&(Ae(!1),C&&C())},[je,p,Oe,C]);const ke=je&&je.onFilled,Me=je&&je.onEmpty,Ce=d.useCallback(te=>{Fv(te)?ke&&ke():Me&&Me()},[ke,Me]);Mn(()=>{ve&&Ce({value:xe})},[xe,Ce,ve]);const Qe=te=>{if(Te.disabled){te.stopPropagation();return}R&&R(te),m.onFocus&&m.onFocus(te),je&&je.onFocus?je.onFocus(te):Ae(!0)},rt=te=>{C&&C(te),m.onBlur&&m.onBlur(te),je&&je.onBlur?je.onBlur(te):Ae(!1)},U=(te,...oe)=>{if(!ve){const Pe=te.target||we.current;if(Pe==null)throw new Error(ea(1));Ce({value:Pe.value})}m.onChange&&m.onChange(te,...oe),P&&P(te,...oe)};d.useEffect(()=>{Ce(we.current)},[]);const Q=te=>{we.current&&te.currentTarget===te.target&&we.current.focus(),k&&k(te)};let Y=x,le=m;_&&Y==="input"&&(q?le=$({type:void 0,minRows:q,maxRows:q},le):le=$({type:void 0,maxRows:O,minRows:v},le),Y=cse);const fe=te=>{Ce(te.animationName==="mui-auto-fill-cancel"?we.current:{value:"x"})};d.useEffect(()=>{je&&je.setAdornedStart(!!K)},[je,K]);const ue=$({},o,{color:Te.color||"primary",disabled:Te.disabled,endAdornment:g,error:Te.error,focused:Te.focused,formControl:je,fullWidth:b,hiddenLabel:Te.hiddenLabel,multiline:_,size:Te.size,startAdornment:K,type:ne}),de=$se(ue),Z=W.root||l.Root||Qm,H=j.root||c.root||{},G=W.input||l.Input||Xm;return le=$({},le,(n=j.input)!=null?n:c.input),N.jsxs(d.Fragment,{children:[!h&&kse,N.jsxs(Z,$({},H,!Qc(Z)&&{ownerState:$({},ue,H.ownerState)},{ref:r,onClick:Q},be,{className:ye(de.root,H.className,u,A&&"MuiInputBase-readOnly"),children:[K,N.jsx(Hm.Provider,{value:null,children:N.jsx(G,$({ownerState:ue,"aria-invalid":Te.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Te.disabled,id:w,onAnimationStart:fe,name:S,placeholder:B,readOnly:A,required:Te.required,rows:q,value:xe,onKeyDown:I,onKeyUp:M,type:ne},le,!Qc(G)&&{as:Y,ownerState:$({},ue,le.ownerState)},{ref:me,className:ye(de.input,le.className,A&&"MuiInputBase-readOnly"),onBlur:rt,onChange:U,onFocus:Qe}))}),g,V?V($({},Te,{startAdornment:K})):null]}))]})});function Rse(e){return Ne("MuiInput",e)}const ju=$({},Al,Fe("MuiInput",["root","underline","input"]));function Tse(e){return Ne("MuiOutlinedInput",e)}const ma=$({},Al,Fe("MuiOutlinedInput",["root","notchedOutline","input"]));function Ise(e){return Ne("MuiFilledInput",e)}const pi=$({},Al,Fe("MuiFilledInput",["root","underline","input"])),jse=sn(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ase=sn(N.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 Mse(e){return Ne("MuiAvatar",e)}Fe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Fse=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Nse=$oe(),Lse=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Le({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Mse,t)},Dse=ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({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]})))}]})),Bse=ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zse=ee(Ase,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Use({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const Ib=d.forwardRef(function(t,r){const n=Nse({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:h,variant:g="circular"}=n,b=he(n,Fse);let w=null;const x=Use($({},c,{src:p,srcSet:h})),m=p||h,y=m&&x!=="error",O=$({},n,{colorDefault:!y,component:s,variant:g}),v=Lse(O),[_,S]=Hoe("img",{className:v.img,elementType:Bse,externalForwardedProps:{slots:u,slotProps:{img:$({},c,l.img)}},additionalProps:{alt:o,src:p,srcSet:h,sizes:f},ownerState:O});return y?w=N.jsx(_,$({},S)):a||a===0?w=a:m&&o?w=o[0]:w=N.jsx(zse,{ownerState:O,className:v.fallback}),N.jsx(Dse,$({as:s,ownerState:O,className:ye(v.root,i),ref:r},b,{children:w}))}),Vse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Wse={entering:{opacity:1},entered:{opacity:1}},XM=d.forwardRef(function(t,r){const n=fa(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:b,style:w,timeout:x=o,TransitionComponent:m=ao}=t,y=he(t,Vse),O=d.useRef(null),v=It(O,s.ref,r),_=B=>A=>{if(B){const V=O.current;A===void 0?B(V):B(V,A)}},S=_(p),C=_((B,A)=>{E_(B);const V=kl({style:w,timeout:x,easing:u},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),c&&c(B,A)}),P=_(f),k=_(b),R=_(B=>{const A=kl({style:w,timeout:x,easing:u},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",A),B.style.transition=n.transitions.create("opacity",A),h&&h(B)}),I=_(g),M=B=>{a&&a(O.current,B)};return N.jsx(m,$({appear:i,in:l,nodeRef:O,onEnter:C,onEntered:P,onEntering:S,onExit:R,onExited:I,onExiting:k,addEndListener:M,timeout:x},y,{children:(B,A)=>d.cloneElement(s,$({style:$({opacity:0,visibility:B==="exited"&&!l?"hidden":void 0},Wse[B],w,s.props.style),ref:v},A))}))});function qse(e){return Ne("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const Hse=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Kse=e=>{const{classes:t,invisible:r}=e;return Le({root:["root",r&&"invisible"]},qse,t)},Gse=ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$({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"},e.invisible&&{backgroundColor:"transparent"})),YM=d.forwardRef(function(t,r){var n,o,a;const i=De({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:h,slotProps:g={},slots:b={},TransitionComponent:w=XM,transitionDuration:x}=i,m=he(i,Hse),y=$({},i,{component:l,invisible:p}),O=Kse(y),v=(n=g.root)!=null?n:f.root;return N.jsx(w,$({in:h,timeout:x},m,{children:N.jsx(Gse,$({"aria-hidden":!0},v,{as:(o=(a=b.root)!=null?a:c.Root)!=null?o:l,className:ye(O.root,u,v==null?void 0:v.className),ownerState:$({},y,v==null?void 0:v.ownerState),classes:O,ref:r,children:s}))}))}),Qse=Fe("MuiBox",["root"]),Xse=Iv(),JM=bre({themeId:Xi,defaultTheme:Xse,defaultClassName:Qse.root,generateClassName:f_.generate});function Yse(e){return Ne("MuiButton",e)}const Td=Fe("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"]),Jse=d.createContext({}),Zse=d.createContext(void 0),ele=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tle=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${ae(t)}`,`size${ae(o)}`,`${a}Size${ae(o)}`,`color${ae(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`]},u=Le(s,Yse,i);return $({},i,u)},ZM=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),rle=ee(ta,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ae(r.color)}`],t[`size${ae(r.size)}`],t[`${r.variant}Size${ae(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",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",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Td.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Td.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${et(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Td.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Td.disabled}`]:{boxShadow:"none"}}),nle=ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ae(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ZM(e))),ole=ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ae(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ZM(e))),rn=d.forwardRef(function(t,r){const n=d.useContext(Jse),o=d.useContext(Zse),a=v_(n,t),i=De({props:a,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:b,fullWidth:w=!1,size:x="medium",startIcon:m,type:y,variant:O="text"}=i,v=he(i,ele),_=$({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:w,size:x,type:y,variant:O}),S=tle(_),C=m&&N.jsx(nle,{className:S.startIcon,ownerState:_,children:m}),P=g&&N.jsx(ole,{className:S.endIcon,ownerState:_,children:g}),k=o||"";return N.jsxs(rle,$({ownerState:_,className:ye(n.className,S.root,c,k),component:l,disabled:f,focusRipple:!h,focusVisibleClassName:ye(S.focusVisible,b),ref:r,type:y},v,{classes:S,children:[C,s,P]}))});function ale(e){return Ne("MuiCard",e)}Fe("MuiCard",["root"]);const ile=["className","raised"],sle=e=>{const{classes:t}=e;return Le({root:["root"]},ale,t)},lle=ee(ai,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),zf=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=he(n,ile),s=$({},n,{raised:a}),u=sle(s);return N.jsx(lle,$({className:ye(u.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))});function ule(e){return Ne("MuiCardContent",e)}Fe("MuiCardContent",["root"]);const cle=["className","component"],fle=e=>{const{classes:t}=e;return Le({root:["root"]},ule,t)},dle=ee("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Jm=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=he(n,cle),s=$({},n,{component:a}),u=fle(s);return N.jsx(dle,$({as:a,className:ye(u.root,o),ownerState:s,ref:r},i))});function ple(e){return Ne("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vle=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],hle=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${ae(o)}`],input:["input"]};return Le(a,ple,t)},mle=ee(ta)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),gle=ee("input",{shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yle=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:h,inputRef:g,name:b,onBlur:w,onChange:x,onFocus:m,readOnly:y,required:O=!1,tabIndex:v,type:_,value:S}=t,C=he(t,vle),[P,k]=$l({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),R=si(),I=W=>{m&&m(W),R&&R.onFocus&&R.onFocus(W)},M=W=>{w&&w(W),R&&R.onBlur&&R.onBlur(W)},B=W=>{if(W.nativeEvent.defaultPrevented)return;const K=W.target.checked;k(K),x&&x(W,K)};let A=u;R&&typeof A>"u"&&(A=R.disabled);const V=_==="checkbox"||_==="radio",q=$({},t,{checked:P,disabled:A,disableFocusRipple:l,edge:c}),j=hle(q);return N.jsxs(mle,$({component:"span",className:ye(j.root,i),centerRipple:!0,focusRipple:!l,disabled:A,tabIndex:null,role:void 0,onFocus:I,onBlur:M,ownerState:q,ref:r},C,{children:[N.jsx(gle,$({autoFocus:n,checked:o,defaultChecked:s,className:j.input,disabled:A,id:V?p:void 0,name:b,onChange:B,readOnly:y,ref:g,required:O,ownerState:q,tabIndex:v,type:_},_==="checkbox"&&S===void 0?{}:{value:S},h)),P?a:f]}))}),ble=sn(N.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"),xle=sn(N.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"),wle=sn(N.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 _le(e){return Ne("MuiCheckbox",e)}const vy=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ole=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sle=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${ae(n)}`,`size${ae(o)}`]},i=Le(a,_le,t);return $({},t,i)},Ele=ee(yle,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ae(r.size)}`],r.color!=="default"&&t[`color${ae(r.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vy.checked}, &.${vy.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vy.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Cle=N.jsx(xle,{}),Ple=N.jsx(ble,{}),$le=N.jsx(wle,{}),Nv=d.forwardRef(function(t,r){var n,o;const a=De({props:t,name:"MuiCheckbox"}),{checkedIcon:i=Cle,color:s="primary",icon:u=Ple,indeterminate:l=!1,indeterminateIcon:c=$le,inputProps:f,size:p="medium",className:h}=a,g=he(a,Ole),b=l?c:u,w=l?c:i,x=$({},a,{color:s,indeterminate:l,size:p}),m=Sle(x);return N.jsx(Ele,$({type:"checkbox",inputProps:$({"data-indeterminate":l},f),icon:d.cloneElement(b,{fontSize:(n=b.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:p}),ownerState:x,ref:r,className:ye(m.root,h)},g,{classes:m}))});function kle(e){return Ne("MuiCircularProgress",e)}Fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Rle=["className","color","disableShrink","size","style","thickness","value","variant"];let Zm=e=>e,b2,x2,w2,_2;const ga=44,Tle=ca(b2||(b2=Zm` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Ile=ca(x2||(x2=Zm` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),jle=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${ae(n)}`],svg:["svg"],circle:["circle",`circle${ae(r)}`,o&&"circleDisableShrink"]};return Le(a,kle,t)},Ale=ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ae(r.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&as(w2||(w2=Zm` - animation: ${0} 1.4s linear infinite; - `),Tle)),Mle=ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Fle=ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ae(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&as(_2||(_2=Zm` - animation: ${0} 1.4s ease-in-out infinite; - `),Ile)),eg=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=he(n,Rle),h=$({},n,{color:a,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=jle(h),b={},w={},x={};if(f==="determinate"){const m=2*Math.PI*((ga-l)/2);b.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,w.transform="rotate(-90deg)"}return N.jsx(Ale,$({className:ye(g.root,o),style:$({width:s,height:s},w,u),ownerState:h,ref:r,role:"progressbar"},x,p,{children:N.jsx(Mle,{className:g.svg,ownerState:h,viewBox:`${ga/2} ${ga/2} ${ga} ${ga}`,children:N.jsx(Fle,{className:g.circle,style:b,ownerState:h,cx:ga,cy:ga,r:(ga-l)/2,fill:"none",strokeWidth:l})})}))}),Nle=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Lle=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}});function Dle(e){return Ne("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const Ble=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],zle=e=>{const{open:t,exited:r,classes:n}=e;return Le({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dle,n)},Ule=ee("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vle=ee(YM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),M_=d.forwardRef(function(t,r){var n,o,a,i,s,u;const l=De({name:"MuiModal",props:t}),{BackdropComponent:c=Vle,BackdropProps:f,className:p,closeAfterTransition:h=!1,children:g,container:b,component:w,components:x={},componentsProps:m={},disableAutoFocus:y=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:v=!1,disablePortal:_=!1,disableRestoreFocus:S=!1,disableScrollLock:C=!1,hideBackdrop:P=!1,keepMounted:k=!1,onBackdropClick:R,open:I,slotProps:M,slots:B}=l,A=he(l,Ble),V=$({},l,{closeAfterTransition:h,disableAutoFocus:y,disableEnforceFocus:O,disableEscapeKeyDown:v,disablePortal:_,disableRestoreFocus:S,disableScrollLock:C,hideBackdrop:P,keepMounted:k}),{getRootProps:q,getBackdropProps:j,getTransitionProps:W,portalRef:K,isTopModal:ne,exited:re,hasTransition:be}=Wae($({},V,{rootRef:r})),xe=$({},V,{exited:re}),ve=zle(xe),we={};if(g.props.tabIndex===void 0&&(we.tabIndex="-1"),be){const{onEnter:ke,onExited:Me}=W();we.onEnter=ke,we.onExited=Me}const $e=(n=(o=B==null?void 0:B.root)!=null?o:x.Root)!=null?n:Ule,me=(a=(i=B==null?void 0:B.backdrop)!=null?i:x.Backdrop)!=null?a:c,Oe=(s=M==null?void 0:M.root)!=null?s:m.root,Ae=(u=M==null?void 0:M.backdrop)!=null?u:m.backdrop,je=Ga({elementType:$e,externalSlotProps:Oe,externalForwardedProps:A,getSlotProps:q,additionalProps:{ref:r,as:w},ownerState:xe,className:ye(p,Oe==null?void 0:Oe.className,ve==null?void 0:ve.root,!xe.open&&xe.exited&&(ve==null?void 0:ve.hidden))}),Te=Ga({elementType:me,externalSlotProps:Ae,additionalProps:f,getSlotProps:ke=>j($({},ke,{onClick:Me=>{R&&R(Me),ke!=null&&ke.onClick&&ke.onClick(Me)}})),className:ye(Ae==null?void 0:Ae.className,f==null?void 0:f.className,ve==null?void 0:ve.backdrop),ownerState:xe});return!k&&!I&&(!be||re)?null:N.jsx(FM,{ref:K,container:b,disablePortal:_,children:N.jsxs($e,$({},je,{children:[!P&&c?N.jsx(me,$({},Te)):null,N.jsx(Aae,{disableEnforceFocus:O,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:ne,open:I,children:d.cloneElement(g,we)})]}))})});function Wle(e){return Ne("MuiDialog",e)}const hy=Fe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),e3=d.createContext({}),qle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Hle=ee(YM,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Kle=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${ae(r)}`],paper:["paper",`paperScroll${ae(r)}`,`paperWidth${ae(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Le(i,Wle,t)},Gle=ee(M_,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Qle=ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ae(r.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Xle=ee(ai,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ae(r.scroll)}`],t[`paperWidth${ae(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${hy.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${hy.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${hy.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),F_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDialog"}),o=fa(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:b="sm",onBackdropClick:w,onClick:x,onClose:m,open:y,PaperComponent:O=ai,PaperProps:v={},scroll:_="paper",TransitionComponent:S=XM,transitionDuration:C=a,TransitionProps:P}=n,k=he(n,qle),R=$({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:g,maxWidth:b,scroll:_}),I=Kle(R),M=d.useRef(),B=j=>{M.current=j.target===j.currentTarget},A=j=>{x&&x(j),M.current&&(M.current=null,w&&w(j),m&&m(j,"backdropClick"))},V=Ji(s),q=d.useMemo(()=>({titleId:V}),[V]);return N.jsx(Gle,$({className:ye(I.root,f),closeAfterTransition:!0,components:{Backdrop:Hle},componentsProps:{backdrop:$({transitionDuration:C,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:y,ref:r,onClick:A,ownerState:R},k,{children:N.jsx(S,$({appear:!0,in:y,timeout:C,role:"presentation"},P,{children:N.jsx(Qle,{className:ye(I.container),onMouseDown:B,ownerState:R,children:N.jsx(Xle,$({as:O,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":V},v,{className:ye(I.paper,v.className),ownerState:R,children:N.jsx(e3.Provider,{value:q,children:c})}))})}))}))});function Yle(e){return Ne("MuiDialogActions",e)}Fe("MuiDialogActions",["root","spacing"]);const Jle=["className","disableSpacing"],Zle=e=>{const{classes:t,disableSpacing:r}=e;return Le({root:["root",!r&&"spacing"]},Yle,t)},eue=ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>$({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),N_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=he(n,Jle),s=$({},n,{disableSpacing:a}),u=Zle(s);return N.jsx(eue,$({className:ye(u.root,o),ownerState:s,ref:r},i))});function tue(e){return Ne("MuiDialogContent",e)}Fe("MuiDialogContent",["root","dividers"]);function rue(e){return Ne("MuiDialogTitle",e)}const nue=Fe("MuiDialogTitle",["root"]),oue=["className","dividers"],aue=e=>{const{classes:t,dividers:r}=e;return Le({root:["root",r&&"dividers"]},tue,t)},iue=ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>$({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${nue.root} + &`]:{paddingTop:0}})),L_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=he(n,oue),s=$({},n,{dividers:a}),u=aue(s);return N.jsx(iue,$({className:ye(u.root,o),ownerState:s,ref:r},i))});function sue(e){return Ne("MuiDialogContentText",e)}Fe("MuiDialogContentText",["root"]);const lue=["children","className"],uue=e=>{const{classes:t}=e,n=Le({root:["root"]},sue,t);return $({},t,n)},cue=ee(zt,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=he(n,lue),i=uue(a);return N.jsx(cue,$({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:ye(i.root,o)},n,{classes:i}))}),fue=["className","id"],due=e=>{const{classes:t}=e;return Le({root:["root"]},rue,t)},pue=ee(zt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),D_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=he(n,fue),s=n,u=due(s),{titleId:l=a}=d.useContext(e3);return N.jsx(pue,$({component:"h2",className:ye(u.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),O2=Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),vue=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hue(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Eo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+u-n.top}px)`:`translateY(${a.innerHeight+u-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function mue(e){return typeof e=="function"?e():e}function Id(e,t,r){const n=mue(r),o=hue(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const r3=d.forwardRef(function(t,r){const n=fa(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=o,in:p,onEnter:h,onEntered:g,onEntering:b,onExit:w,onExited:x,onExiting:m,style:y,timeout:O=a,TransitionComponent:v=ao}=t,_=he(t,vue),S=d.useRef(null),C=It(u.ref,S,r),P=j=>W=>{j&&(W===void 0?j(S.current):j(S.current,W))},k=P((j,W)=>{Id(c,j,l),E_(j),h&&h(j,W)}),R=P((j,W)=>{const K=kl({timeout:O,style:y,easing:f},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",$({},K)),j.style.transition=n.transitions.create("transform",$({},K)),j.style.webkitTransform="none",j.style.transform="none",b&&b(j,W)}),I=P(g),M=P(m),B=P(j=>{const W=kl({timeout:O,style:y,easing:f},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",W),j.style.transition=n.transitions.create("transform",W),Id(c,j,l),w&&w(j)}),A=P(j=>{j.style.webkitTransition="",j.style.transition="",x&&x(j)}),V=j=>{i&&i(S.current,j)},q=d.useCallback(()=>{S.current&&Id(c,S.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const j=Rm(()=>{S.current&&Id(c,S.current,l)}),W=Eo(S.current);return W.addEventListener("resize",j),()=>{j.clear(),W.removeEventListener("resize",j)}},[c,p,l]),d.useEffect(()=>{p||q()},[p,q]),N.jsx(v,$({nodeRef:S,onEnter:k,onEntered:I,onEntering:R,onExit:B,onExited:A,onExiting:M,addEndListener:V,appear:s,in:p,timeout:O},_,{children:(j,W)=>d.cloneElement(u,$({ref:C,style:$({visibility:j==="exited"&&!p?"hidden":void 0},y,u.props.style)},W))}))});function gue(e){return Ne("MuiDrawer",e)}Fe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const yue=["BackdropProps"],bue=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],n3=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},xue=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ae(r)}`,n!=="temporary"&&`paperAnchorDocked${ae(r)}`]};return Le(o,gue,t)},wue=ee(M_,{name:"MuiDrawer",slot:"Root",overridesResolver:n3})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),S2=ee("div",{shouldForwardProp:yr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:n3})({flex:"0 0 auto"}),_ue=ee(ai,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ae(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ae(r.anchor)}`]]}})(({theme:e,ownerState:t})=>$({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o3={left:"right",right:"left",top:"down",bottom:"up"};function Oue(e){return["left","right"].indexOf(e)!==-1}function Sue({direction:e},t){return e==="rtl"&&Oue(t)?o3[t]:t}const Eue=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiDrawer"}),o=fa(),a=su(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:g,open:b=!1,PaperProps:w={},SlideProps:x,TransitionComponent:m=r3,transitionDuration:y=i,variant:O="temporary"}=n,v=he(n.ModalProps,yue),_=he(n,bue),S=d.useRef(!1);d.useEffect(()=>{S.current=!0},[]);const C=Sue({direction:a?"rtl":"ltr"},s),k=$({},n,{anchor:s,elevation:f,open:b,variant:O},_),R=xue(k),I=N.jsx(_ue,$({elevation:O==="temporary"?f:0,square:!0},w,{className:ye(R.paper,w.className),ownerState:k,children:l}));if(O==="permanent")return N.jsx(S2,$({className:ye(R.root,R.docked,c),ownerState:k,ref:r},_,{children:I}));const M=N.jsx(m,$({in:b,direction:o3[C],timeout:y,appear:S.current},x,{children:I}));return O==="persistent"?N.jsx(S2,$({className:ye(R.root,R.docked,c),ownerState:k,ref:r},_,{children:M})):N.jsx(wue,$({BackdropProps:$({},u,h,{transitionDuration:y}),className:ye(R.root,R.modal,c),open:b,ownerState:k,onClose:g,hideBackdrop:p,ref:r},_,v,{children:M}))});function Cue(e){return Ne("MuiFab",e)}const E2=Fe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Pue=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],$ue=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${ae(o)}`,t==="inherit"?"colorInherit":t]},i=Le(a,Cue,n);return $({},n,i)},kue=ee(ta,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>yr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ae(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ae(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return $({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${E2.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>$({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${E2.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Rue=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,h=he(n,Pue),g=$({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),b=$ue(g);return N.jsx(kue,$({className:ye(b.root,a),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ye(b.focusVisible,c),ownerState:g,ref:r},h,{classes:b,children:o}))}),Tue=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Iue=e=>{const{classes:t,disableUnderline:r}=e,o=Le({root:["root",!r&&"underline"],input:["input"]},Ise,t);return $({},t,o)},jue=ee(Qm,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Km(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${pi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${pi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pi.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})`:o}`,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(.${pi.disabled}, .${pi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Aue=ee(Xm,{name:"MuiFilledInput",slot:"Input",overridesResolver:Gm})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),B_=d.forwardRef(function(t,r){var n,o,a,i;const s=De({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:h,slots:g={},type:b="text"}=s,w=he(s,Tue),x=$({},s,{fullWidth:c,inputComponent:f,multiline:p,type:b}),m=Iue(s),y={root:{ownerState:x},input:{ownerState:x}},O=h??l?Ar(y,h??l):y,v=(n=(o=g.root)!=null?o:u.Root)!=null?n:jue,_=(a=(i=g.input)!=null?i:u.Input)!=null?a:Aue;return N.jsx(Ym,$({slots:{root:v,input:_},componentsProps:O,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:b},w,{classes:m}))});B_.muiName="Input";function Mue(e){return Ne("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Fue=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nue=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${ae(r)}`,n&&"fullWidth"]};return Le(o,Mue,t)},Lue=ee("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${ae(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Due=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:b="medium",variant:w="outlined"}=n,x=he(n,Fue),m=$({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:h,required:g,size:b,variant:w}),y=Nue(m),[O,v]=d.useState(()=>{let M=!1;return o&&d.Children.forEach(o,B=>{if(!up(B,["Input","Select"]))return;const A=up(B,["Select"])?B.props.input:B;A&&Ese(A.props)&&(M=!0)}),M}),[_,S]=d.useState(()=>{let M=!1;return o&&d.Children.forEach(o,B=>{up(B,["Input","Select"])&&(Fv(B.props,!0)||Fv(B.props.inputProps,!0))&&(M=!0)}),M}),[C,P]=d.useState(!1);u&&C&&P(!1);const k=c!==void 0&&!u?c:C;let R;const I=d.useMemo(()=>({adornedStart:O,setAdornedStart:v,color:i,disabled:u,error:l,filled:_,focused:k,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{P(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{P(!0)},registerEffect:R,required:g,variant:w}),[O,i,u,l,_,k,f,p,R,g,b,w]);return N.jsx(Hm.Provider,{value:I,children:N.jsx(Lue,$({as:s,ownerState:m,className:ye(y.root,a),ref:r},x,{children:o}))})}),tg=vne({createStyledComponent:ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>De({props:e,name:"MuiStack"})});function Bue(e){return Ne("MuiFormHelperText",e)}const C2=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var P2;const zue=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Uue=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:u}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${ae(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return Le(l,Bue,t)},Vue=ee("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ae(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${C2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${C2.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),a3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=he(n,zue),u=si(),l=cu({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=$({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Uue(c);return N.jsx(Vue,$({as:i,ownerState:c,className:ye(f.root,a),ref:r},s,{children:o===" "?P2||(P2=N.jsx("span",{className:"notranslate",children:"​"})):o}))});function Wue(e){return Ne("MuiFormLabel",e)}const pc=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),que=["children","className","color","component","disabled","error","filled","focused","required"],Hue=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,u={root:["root",`color${ae(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Le(u,Wue,t)},Kue=ee("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${pc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pc.error}`]:{color:(e.vars||e).palette.error.main}})),Gue=ee("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pc.error}`]:{color:(e.vars||e).palette.error.main}})),Que=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=he(n,que),u=si(),l=cu({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=$({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Hue(c);return N.jsxs(Kue,$({as:i,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[o,l.required&&N.jsxs(Gue,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Xue=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jb(e){return`scale(${e}, ${e**2})`}const Yue={entering:{opacity:1,transform:jb(1)},entered:{opacity:1,transform:"none"}},my=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jc=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:h,style:g,timeout:b="auto",TransitionComponent:w=ao}=t,x=he(t,Xue),m=Ri(),y=d.useRef(),O=fa(),v=d.useRef(null),_=It(v,a.ref,r),S=A=>V=>{if(A){const q=v.current;V===void 0?A(q):A(q,V)}},C=S(c),P=S((A,V)=>{E_(A);const{duration:q,delay:j,easing:W}=kl({style:g,timeout:b,easing:i},{mode:"enter"});let K;b==="auto"?(K=O.transitions.getAutoHeightDuration(A.clientHeight),y.current=K):K=q,A.style.transition=[O.transitions.create("opacity",{duration:K,delay:j}),O.transitions.create("transform",{duration:my?K:K*.666,delay:j,easing:W})].join(","),u&&u(A,V)}),k=S(l),R=S(h),I=S(A=>{const{duration:V,delay:q,easing:j}=kl({style:g,timeout:b,easing:i},{mode:"exit"});let W;b==="auto"?(W=O.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=V,A.style.transition=[O.transitions.create("opacity",{duration:W,delay:q}),O.transitions.create("transform",{duration:my?W:W*.666,delay:my?q:q||W*.333,easing:j})].join(","),A.style.opacity=0,A.style.transform=jb(.75),f&&f(A)}),M=S(p),B=A=>{b==="auto"&&m.start(y.current||0,A),n&&n(v.current,A)};return N.jsx(w,$({appear:o,in:s,nodeRef:v,onEnter:P,onEntered:k,onEntering:C,onExit:I,onExited:M,onExiting:R,addEndListener:B,timeout:b==="auto"?null:b},x,{children:(A,V)=>d.cloneElement(a,$({style:$({opacity:0,transform:jb(.75),visibility:A==="exited"&&!s?"hidden":void 0},Yue[A],g,a.props.style),ref:_},V))}))});Jc.muiSupportAuto=!0;const Jue=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Zue=e=>{const{classes:t,disableUnderline:r}=e,o=Le({root:["root",!r&&"underline"],input:["input"]},Rse,t);return $({},t,o)},ece=ee(Qm,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Km(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${ju.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ju.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(.${ju.disabled}, .${ju.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ju.disabled}:before`]:{borderBottomStyle:"dotted"}})}),tce=ee(Xm,{name:"MuiInput",slot:"Input",overridesResolver:Gm})({}),z_=d.forwardRef(function(t,r){var n,o,a,i;const s=De({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:b={},type:w="text"}=s,x=he(s,Jue),m=Zue(s),O={root:{ownerState:{disableUnderline:u}}},v=g??c?Ar(g??c,O):O,_=(n=(o=b.root)!=null?o:l.Root)!=null?n:ece,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:tce;return N.jsx(Ym,$({slots:{root:_,input:S},slotProps:v,fullWidth:f,inputComponent:p,multiline:h,ref:r,type:w},x,{classes:m}))});z_.muiName="Input";function rce(e){return Ne("MuiInputAdornment",e)}const $2=Fe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var k2;const nce=["children","className","component","disablePointerEvents","disableTypography","position","variant"],oce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ae(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},ace=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${ae(o)}`,i,n&&"hiddenLabel",a&&`size${ae(a)}`]};return Le(s,rce,t)},ice=ee("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:oce})(({theme:e,ownerState:t})=>$({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${$2.positionStart}&:not(.${$2.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),gy=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=he(n,nce),p=si()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const g=$({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:h}),b=ace(g);return N.jsx(Hm.Provider,{value:null,children:N.jsx(ice,$({as:i,ownerState:g,className:ye(b.root,a),ref:r},f,{children:typeof o=="string"&&!u?N.jsx(zt,{color:"text.secondary",children:o}):N.jsxs(d.Fragment,{children:[l==="start"?k2||(k2=N.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function sce(e){return Ne("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const lce=["disableAnimation","margin","shrink","variant","className"],uce=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${ae(n)}`,i],asterisk:[s&&"asterisk"]},l=Le(u,sce,t);return $({},t,l)},cce=ee(Que,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pc.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),fce=d.forwardRef(function(t,r){const n=De({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=he(n,lce),u=si();let l=a;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=cu({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=$({},n,{disableAnimation:o,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=uce(f);return N.jsx(cce,$({"data-shrink":l,ownerState:f,ref:r,className:ye(p.root,i)},s,{classes:p}))});function dce(e){return Ne("MuiLinearProgress",e)}Fe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const pce=["className","color","value","valueBuffer","variant"];let fu=e=>e,R2,T2,I2,j2,A2,M2;const Ab=4,vce=ca(R2||(R2=fu` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),hce=ca(T2||(T2=fu` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),mce=ca(I2||(I2=fu` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),gce=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${ae(n)}`,r],dashed:["dashed",`dashedColor${ae(n)}`],bar1:["bar",`barColor${ae(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${ae(n)}`,r==="buffer"&&`color${ae(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Le(o,dce,t)},U_=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?g_(e.palette[t].main,.62):m_(e.palette[t].main,.5),yce=ee("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ae(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:U_(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),bce=ee("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${ae(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=U_(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},as(j2||(j2=fu` - animation: ${0} 3s infinite linear; - `),mce)),xce=ee("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ae(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Ab}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Ab}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&as(A2||(A2=fu` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),vce)),wce=ee("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ae(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:U_(t,e.color),transition:`transform .${Ab}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&as(M2||(M2=fu` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),hce)),_ce=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=he(n,pce),c=$({},n,{color:a,variant:u}),f=gce(c),p=su(),h={},g={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let b=i-100;p&&(b=-b),g.bar1.transform=`translateX(${b}%)`}if(u==="buffer"&&s!==void 0){let b=(s||0)-100;p&&(b=-b),g.bar2.transform=`translateX(${b}%)`}return N.jsxs(yce,$({className:ye(f.root,o),ownerState:c,role:"progressbar"},h,{ref:r},l,{children:[u==="buffer"?N.jsx(bce,{className:f.dashed,ownerState:c}):null,N.jsx(xce,{className:f.bar1,ownerState:c,style:g.bar1}),u==="determinate"?null:N.jsx(wce,{className:f.bar2,ownerState:c,style:g.bar2})]}))});function Oce(e){return Ne("MuiLink",e)}const Sce=Fe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),i3={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ece=e=>i3[e]||e,Cce=({theme:e,ownerState:t})=>{const r=Ece(t.color),n=Pl(e,`palette.${r}`,!1)||t.color,o=Pl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:et(n,.4)},Pce=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$ce=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${ae(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Le(a,Oce,t)},kce=ee(zt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ae(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Cce({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${Sce.focusVisible}`]:{outline:"auto"}})),Rce=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,h=he(n,Pce),{isFocusVisibleRef:g,onBlur:b,onFocus:w,ref:x}=Im(),[m,y]=d.useState(!1),O=It(r,x),v=P=>{b(P),g.current===!1&&y(!1),s&&s(P)},_=P=>{w(P),g.current===!0&&y(!0),u&&u(P)},S=$({},n,{color:a,component:i,focusVisible:m,underline:c,variant:f}),C=$ce(S);return N.jsx(kce,$({color:a,className:ye(C.root,o),classes:l,component:i,onBlur:v,onFocus:_,ref:O,ownerState:S,variant:f,sx:[...Object.keys(i3).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},h))}),Zc=d.createContext({});function Tce(e){return Ne("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const Ice=["children","className","component","dense","disablePadding","subheader"],jce=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Le({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Tce,t)},Ace=ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Mce=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=he(n,Ice),f=d.useMemo(()=>({dense:s}),[s]),p=$({},n,{component:i,dense:s,disablePadding:u}),h=jce(p);return N.jsx(Zc.Provider,{value:f,children:N.jsxs(Ace,$({as:i,className:ye(h.root,a),ref:r,ownerState:p},c,{children:[l,o]}))})});function Fce(e){return Ne("MuiListItemIcon",e)}const F2=Fe("MuiListItemIcon",["root","alignItemsFlexStart"]),Nce=["className"],Lce=e=>{const{alignItems:t,classes:r}=e;return Le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Fce,r)},Dce=ee("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),s3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=he(n,Nce),i=d.useContext(Zc),s=$({},n,{alignItems:i.alignItems}),u=Lce(s);return N.jsx(Dce,$({className:ye(u.root,o),ownerState:s,ref:r},a))});function Bce(e){return Ne("MuiListItemText",e)}const Lv=Fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Uce=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Le({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Bce,t)},Vce=ee("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lv.primary}`]:t.primary},{[`& .${Lv.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Wce=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=he(n,zce),{dense:h}=d.useContext(Zc);let g=u??o,b=c;const w=$({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!b,dense:h}),x=Uce(w);return g!=null&&g.type!==zt&&!i&&(g=N.jsx(zt,$({variant:h?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),b!=null&&b.type!==zt&&!i&&(b=N.jsx(zt,$({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:b}))),N.jsxs(Vce,$({className:ye(x.root,a),ownerState:w,ref:r},p,{children:[g,b]}))}),qce=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function N2(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function l3(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Au(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!l3(s,a)||u)s=o(e,s,r);else return s.focus(),!0}return!1}const u3=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=he(t,qce),h=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mn(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(y,{direction:O})=>{const v=!h.current.style.width;if(y.clientHeight{const O=h.current,v=y.key,_=rr(O).activeElement;if(v==="ArrowDown")y.preventDefault(),Au(O,_,l,u,yy);else if(v==="ArrowUp")y.preventDefault(),Au(O,_,l,u,N2);else if(v==="Home")y.preventDefault(),Au(O,null,l,u,yy);else if(v==="End")y.preventDefault(),Au(O,null,l,u,N2);else if(v.length===1){const S=g.current,C=v.toLowerCase(),P=performance.now();S.keys.length>0&&(P-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&C!==S.keys[0]&&(S.repeating=!1)),S.lastTime=P,S.keys.push(C);const k=_&&!S.repeating&&l3(_,S);S.previousKeyMatched&&(k||Au(O,_,!1,u,yy,S))?y.preventDefault():S.previousKeyMatched=!1}c&&c(y)},w=It(h,r);let x=-1;d.Children.forEach(i,(y,O)=>{if(!d.isValidElement(y)){x===O&&(x+=1,x>=i.length&&(x=-1));return}y.props.disabled||(f==="selectedMenu"&&y.props.selected||x===-1)&&(x=O),x===O&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(y,O)=>{if(O===x){const v={};return a&&(v.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(v.tabIndex=0),d.cloneElement(y,v)}return y});return N.jsx(Mce,$({role:"menu",ref:w,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:m}))});function Hce(e){return Ne("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);const Kce=["onEntering"],Gce=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Qce=["slotProps"];function L2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function D2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function B2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function by(e){return typeof e=="function"?e():e}const Xce=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},Hce,t)},Yce=ee(M_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),c3=ee(ai,{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}),f3=d.forwardRef(function(t,r){var n,o,a;const i=De({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:h,container:g,elevation:b=8,marginThreshold:w=16,open:x,PaperProps:m={},slots:y,slotProps:O,transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:_=Jc,transitionDuration:S="auto",TransitionProps:{onEntering:C}={},disableScrollLock:P=!1}=i,k=he(i.TransitionProps,Kce),R=he(i,Gce),I=(n=O==null?void 0:O.paper)!=null?n:m,M=d.useRef(),B=It(M,I.ref),A=$({},i,{anchorOrigin:l,anchorReference:f,elevation:b,marginThreshold:w,externalPaperSlotProps:I,transformOrigin:v,TransitionComponent:_,transitionDuration:S,TransitionProps:k}),V=Xce(A),q=d.useCallback(()=>{if(f==="anchorPosition")return c;const ke=by(u),Ce=(ke&&ke.nodeType===1?ke:rr(M.current).body).getBoundingClientRect();return{top:Ce.top+L2(Ce,l.vertical),left:Ce.left+D2(Ce,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),j=d.useCallback(ke=>({vertical:L2(ke,v.vertical),horizontal:D2(ke,v.horizontal)}),[v.horizontal,v.vertical]),W=d.useCallback(ke=>{const Me={width:ke.offsetWidth,height:ke.offsetHeight},Ce=j(Me);if(f==="none")return{top:null,left:null,transformOrigin:B2(Ce)};const Qe=q();let rt=Qe.top-Ce.vertical,U=Qe.left-Ce.horizontal;const Q=rt+Me.height,Y=U+Me.width,le=Eo(by(u)),fe=le.innerHeight-w,ue=le.innerWidth-w;if(w!==null&&rtfe){const de=Q-fe;rt-=de,Ce.vertical+=de}if(w!==null&&Uue){const de=Y-ue;U-=de,Ce.horizontal+=de}return{top:`${Math.round(rt)}px`,left:`${Math.round(U)}px`,transformOrigin:B2(Ce)}},[u,f,q,j,w]),[K,ne]=d.useState(x),re=d.useCallback(()=>{const ke=M.current;if(!ke)return;const Me=W(ke);Me.top!==null&&(ke.style.top=Me.top),Me.left!==null&&(ke.style.left=Me.left),ke.style.transformOrigin=Me.transformOrigin,ne(!0)},[W]);d.useEffect(()=>(P&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[u,P,re]);const be=(ke,Me)=>{C&&C(ke,Me),re()},xe=()=>{ne(!1)};d.useEffect(()=>{x&&re()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{re()}}:null,[x,re]),d.useEffect(()=>{if(!x)return;const ke=Rm(()=>{re()}),Me=Eo(u);return Me.addEventListener("resize",ke),()=>{ke.clear(),Me.removeEventListener("resize",ke)}},[u,x,re]);let ve=S;S==="auto"&&!_.muiSupportAuto&&(ve=void 0);const we=g||(u?rr(by(u)).body:void 0),$e=(o=y==null?void 0:y.root)!=null?o:Yce,me=(a=y==null?void 0:y.paper)!=null?a:c3,Oe=Ga({elementType:me,externalSlotProps:$({},I,{style:K?I.style:$({},I.style,{opacity:0})}),additionalProps:{elevation:b,ref:B},ownerState:A,className:ye(V.paper,I==null?void 0:I.className)}),Ae=Ga({elementType:$e,externalSlotProps:(O==null?void 0:O.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:we,open:x},ownerState:A,className:ye(V.root,h)}),{slotProps:je}=Ae,Te=he(Ae,Qce);return N.jsx($e,$({},Te,!Qc($e)&&{slotProps:je,disableScrollLock:P},{children:N.jsx(_,$({appear:!0,in:x,onEntering:be,onExited:xe,timeout:ve},k,{children:N.jsx(me,$({},Oe,{children:p}))}))}))});function Jce(e){return Ne("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const Zce=["onEntering"],efe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tfe={vertical:"top",horizontal:"right"},rfe={vertical:"top",horizontal:"left"},nfe=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},Jce,t)},ofe=ee(f3,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),afe=ee(c3,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ife=ee(u3,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rg=d.forwardRef(function(t,r){var n,o;const a=De({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:h={},PopoverClasses:g,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:x="selectedMenu",slots:m={},slotProps:y={}}=a,O=he(a.TransitionProps,Zce),v=he(a,efe),_=su(),S=$({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:w,PaperProps:h,transitionDuration:b,TransitionProps:O,variant:x}),C=nfe(S),P=i&&!l&&p,k=d.useRef(null),R=(j,W)=>{k.current&&k.current.adjustStyleForScrollbar(j,{direction:_?"rtl":"ltr"}),w&&w(j,W)},I=j=>{j.key==="Tab"&&(j.preventDefault(),f&&f(j,"tabKeyDown"))};let M=-1;d.Children.map(s,(j,W)=>{d.isValidElement(j)&&(j.props.disabled||(x==="selectedMenu"&&j.props.selected||M===-1)&&(M=W))});const B=(n=m.paper)!=null?n:afe,A=(o=y.paper)!=null?o:h,V=Ga({elementType:m.root,externalSlotProps:y.root,ownerState:S,className:[C.root,u]}),q=Ga({elementType:B,externalSlotProps:A,ownerState:S,className:C.paper});return N.jsx(ofe,$({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?tfe:rfe,slots:{paper:B,root:m.root},slotProps:{root:V,paper:q},open:p,ref:r,transitionDuration:b,TransitionProps:$({onEntering:R},O),ownerState:S},v,{classes:g,children:N.jsx(ife,$({onKeyDown:I,actions:k,autoFocus:i&&(M===-1||l),autoFocusItem:P,variant:x},c,{className:ye(C.list,c.className),children:s}))}))});function sfe(e){return Ne("MuiMenuItem",e)}const Mu=Fe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lfe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ufe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},cfe=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=Le({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},sfe,i);return $({},i,u)},ffe=ee(ta,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ufe})(({theme:e,ownerState:t})=>$({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(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})`:et(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${O2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${O2.inset}`]:{marginLeft:52},[`& .${Lv.root}`]:{marginTop:0,marginBottom:0},[`& .${Lv.inset}`]:{paddingLeft:36},[`& .${F2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${F2.root} svg`]:{fontSize:"1.25rem"}}))),Ko=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,h=he(n,lfe),g=d.useContext(Zc),b=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),w=d.useRef(null);Mn(()=>{o&&w.current&&w.current.focus()},[o]);const x=$({},n,{dense:b.dense,divider:s,disableGutters:u}),m=cfe(n),y=It(w,r);let O;return n.disabled||(O=f!==void 0?f:-1),N.jsx(Zc.Provider,{value:b,children:N.jsx(ffe,$({ref:y,role:c,tabIndex:O,component:a,focusVisibleClassName:ye(m.focusVisible,l),className:ye(m.root,p)},h,{ownerState:x,classes:m}))})});function dfe(e){return Ne("MuiNativeSelect",e)}const V_=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pfe=["className","disabled","error","IconComponent","inputRef","variant"],vfe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(r)}`,a&&"iconOpen",n&&"disabled"]};return Le(s,dfe,t)},d3=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${V_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),hfe=ee("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${V_.multiple}`]:t.multiple}]}})(d3),p3=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${V_.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),mfe=ee("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ae(r.variant)}`],r.open&&t.iconOpen]}})(p3),gfe=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=he(t,pfe),c=$({},t,{disabled:o,variant:u,error:a}),f=vfe(c);return N.jsxs(d.Fragment,{children:[N.jsx(hfe,$({ownerState:c,className:ye(f.select,n),disabled:o,ref:s||r},l)),t.multiple?null:N.jsx(mfe,{as:i,ownerState:c,className:f.icon})]})});var z2;const yfe=["children","classes","className","label","notched"],bfe=ee("fieldset",{shouldForwardProp:yr})({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%"}),xfe=ee("legend",{shouldForwardProp:yr})(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function wfe(e){const{className:t,label:r,notched:n}=e,o=he(e,yfe),a=r!=null&&r!=="",i=$({},e,{notched:n,withLabel:a});return N.jsx(bfe,$({"aria-hidden":!0,className:t,ownerState:i},o,{children:N.jsx(xfe,{ownerState:i,children:a?N.jsx("span",{children:r}):z2||(z2=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const _fe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ofe=e=>{const{classes:t}=e,n=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tse,t);return $({},t,n)},Sfe=ee(Qm,{shouldForwardProp:e=>yr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Km})(({theme:e,ownerState:t})=>{const r=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 .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ma.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ma.focused} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ma.error} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ma.disabled} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Efe=ee(wfe,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Cfe=ee(Xm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Gm})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),W_=d.forwardRef(function(t,r){var n,o,a,i,s;const u=De({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:h=!1,notched:g,slots:b={},type:w="text"}=u,x=he(u,_fe),m=Ofe(u),y=si(),O=cu({props:u,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v=$({},u,{color:O.color||"primary",disabled:O.disabled,error:O.error,focused:O.focused,formControl:y,fullWidth:c,hiddenLabel:O.hiddenLabel,multiline:h,size:O.size,type:w}),_=(n=(o=b.root)!=null?o:l.Root)!=null?n:Sfe,S=(a=(i=b.input)!=null?i:l.Input)!=null?a:Cfe;return N.jsx(Ym,$({slots:{root:_,input:S},renderSuffix:C=>N.jsx(Efe,{ownerState:v,className:m.notchedOutline,label:p!=null&&p!==""&&O.required?s||(s=N.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:w},x,{classes:$({},m,{notchedOutline:null})}))});W_.muiName="Input";function Pfe(e){return Ne("MuiPagination",e)}Fe("MuiPagination",["root","ul","outlined","text"]);const $fe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function kfe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,h=he(e,$fe),[g,b]=$l({controlled:l,default:o,name:r,state:"page"}),w=(P,k)=>{l||b(k),u&&u(P,k)},x=(P,k)=>{const R=k-P+1;return Array.from({length:R},(I,M)=>P+M)},m=x(1,Math.min(t,n)),y=x(Math.max(n-t+1,t+1),n),O=Math.max(Math.min(g-p,n-t-p*2-1),t+2),v=Math.min(Math.max(g+p,t+p*2+2),y.length>0?y[0]-2:n-1),_=[...c?["first"]:[],...s?[]:["previous"],...m,...O>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...y,...i?[]:["next"],...f?["last"]:[]],S=P=>{switch(P){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},C=_.map(P=>typeof P=="number"?{onClick:k=>{w(k,P)},type:"page",page:P,selected:P===g,disabled:a,"aria-current":P===g?"true":void 0}:{onClick:k=>{w(k,S(P))},type:P,page:S(P),selected:!1,disabled:a||P.indexOf("ellipsis")===-1&&(P==="next"||P==="last"?g>=n:g<=1)});return $({items:C},h)}function Rfe(e){return Ne("MuiPaginationItem",e)}const _n=Fe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Mb=sn(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Fb=sn(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),U2=sn(N.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),V2=sn(N.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Tfe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],v3=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ae(r.size)}`],r.variant==="text"&&t[`text${ae(r.color)}`],r.variant==="outlined"&&t[`outlined${ae(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Ife=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:u}=e,l={root:["root",`size${ae(a)}`,u,i,r!=="standard"&&`color${ae(r)}`,r!=="standard"&&`${u}${ae(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Le(l,Rfe,t)},jfe=ee("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:v3})(({theme:e,ownerState:t})=>$({},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",[`&.${_n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Afe=ee(ta,{name:"MuiPaginationItem",slot:"Root",overridesResolver:v3})(({theme:e,ownerState:t})=>$({},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,[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_n.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"}},[`&.${_n.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}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_n.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_n.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>$({},t.variant==="text"&&{[`&.${_n.selected}`]:$({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_n.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{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)"}`,[`&.${_n.selected}`]:$({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:et(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:et(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_n.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Mfe=ee("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>$({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Ffe=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:h={},type:g="page",variant:b="text"}=n,w=he(n,Tfe),x=$({},n,{color:a,disabled:u,selected:c,shape:f,size:p,type:g,variant:b}),m=su(),y=Ife(x),v=(m?{previous:h.next||s.next||V2,next:h.previous||s.previous||U2,last:h.first||s.first||Mb,first:h.last||s.last||Fb}:{previous:h.previous||s.previous||U2,next:h.next||s.next||V2,first:h.first||s.first||Mb,last:h.last||s.last||Fb})[g];return g==="start-ellipsis"||g==="end-ellipsis"?N.jsx(jfe,{ref:r,ownerState:x,className:ye(y.root,o),children:"…"}):N.jsxs(Afe,$({ref:r,ownerState:x,component:i,disabled:u,className:ye(y.root,o)},w,{children:[g==="page"&&l,v?N.jsx(Mfe,{as:v,ownerState:x,className:y.icon}):null]}))}),Nfe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Lfe=e=>{const{classes:t,variant:r}=e;return Le({root:["root",r],ul:["ul"]},Pfe,t)},Dfe=ee("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Bfe=ee("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function zfe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Ufe=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=zfe,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:h=C=>N.jsx(Ffe,$({},C)),shape:g="circular",showFirstButton:b=!1,showLastButton:w=!1,siblingCount:x=1,size:m="medium",variant:y="text"}=n,O=he(n,Nfe),{items:v}=kfe($({},n,{componentName:"Pagination"})),_=$({},n,{boundaryCount:o,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:h,shape:g,showFirstButton:b,showLastButton:w,siblingCount:x,size:m,variant:y}),S=Lfe(_);return N.jsx(Dfe,$({"aria-label":"pagination navigation",className:ye(S.root,a),ownerState:_,ref:r},O,{children:N.jsx(Bfe,{className:S.ul,ownerState:_,children:v.map((C,P)=>N.jsx("li",{children:h($({},C,{color:i,"aria-label":c(C.type,C.page,C.selected),shape:g,size:m,variant:y}))},P))})}))});function Vfe(e){return Ne("MuiScopedCssBaseline",e)}Fe("MuiScopedCssBaseline",["root"]);const Wfe=["className","component","enableColorScheme"],qfe=e=>{const{classes:t}=e;return Le({root:["root"]},Vfe,t)},Hfe=ee("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),$({},Nle(e,t.enableColorScheme),Lle(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),Kfe=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=he(n,Wfe),s=$({},n,{component:a}),u=qfe(s);return N.jsx(Hfe,$({as:a,className:ye(u.root,o),ref:r,ownerState:s},i))});function Gfe(e){return Ne("MuiSelect",e)}const Fu=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var W2;const Qfe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Xfe=ee("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Fu.select}`]:t.select},{[`&.${Fu.select}`]:t[r.variant]},{[`&.${Fu.error}`]:t.error},{[`&.${Fu.multiple}`]:t.multiple}]}})(d3,{[`&.${Fu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yfe=ee("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ae(r.variant)}`],r.open&&t.iconOpen]}})(p3),Jfe=ee("input",{shouldForwardProp:e=>RM(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 q2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Zfe(e){return e==null||typeof e=="string"&&!e.trim()}const ede=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ae(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Le(s,Gfe,t)},tde=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:h,error:g=!1,IconComponent:b,inputRef:w,labelId:x,MenuProps:m={},multiple:y,name:O,onBlur:v,onChange:_,onClose:S,onFocus:C,onOpen:P,open:k,readOnly:R,renderValue:I,SelectDisplayProps:M={},tabIndex:B,value:A,variant:V="standard"}=t,q=he(t,Qfe),[j,W]=$l({controlled:A,default:f,name:"Select"}),[K,ne]=$l({controlled:k,default:c,name:"Select"}),re=d.useRef(null),be=d.useRef(null),[xe,ve]=d.useState(null),{current:we}=d.useRef(k!=null),[$e,me]=d.useState(),Oe=It(r,w),Ae=d.useCallback(_e=>{be.current=_e,_e&&ve(_e)},[]),je=xe==null?void 0:xe.parentNode;d.useImperativeHandle(Oe,()=>({focus:()=>{be.current.focus()},node:re.current,value:j}),[j]),d.useEffect(()=>{c&&K&&xe&&!we&&(me(s?null:je.clientWidth),be.current.focus())},[xe,s]),d.useEffect(()=>{i&&be.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const _e=rr(be.current).getElementById(x);if(_e){const Ue=()=>{getSelection().isCollapsed&&be.current.focus()};return _e.addEventListener("click",Ue),()=>{_e.removeEventListener("click",Ue)}}},[x]);const Te=(_e,Ue)=>{_e?P&&P(Ue):S&&S(Ue),we||(me(s?null:je.clientWidth),ne(_e))},ke=_e=>{_e.button===0&&(_e.preventDefault(),be.current.focus(),Te(!0,_e))},Me=_e=>{Te(!1,_e)},Ce=d.Children.toArray(u),Qe=_e=>{const Ue=Ce.find(qe=>qe.props.value===_e.target.value);Ue!==void 0&&(W(Ue.props.value),_&&_(_e,Ue))},rt=_e=>Ue=>{let qe;if(Ue.currentTarget.hasAttribute("tabindex")){if(y){qe=Array.isArray(j)?j.slice():[];const ft=j.indexOf(_e.props.value);ft===-1?qe.push(_e.props.value):qe.splice(ft,1)}else qe=_e.props.value;if(_e.props.onClick&&_e.props.onClick(Ue),j!==qe&&(W(qe),_)){const ft=Ue.nativeEvent||Ue,ht=new ft.constructor(ft.type,ft);Object.defineProperty(ht,"target",{writable:!0,value:{value:qe,name:O}}),_(ht,_e)}y||Te(!1,Ue)}},U=_e=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(_e.key)!==-1&&(_e.preventDefault(),Te(!0,_e))},Q=xe!==null&&K,Y=_e=>{!Q&&v&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:j,name:O}}),v(_e))};delete q["aria-invalid"];let le,fe;const ue=[];let de=!1;(Fv({value:j})||h)&&(I?le=I(j):de=!0);const Z=Ce.map(_e=>{if(!d.isValidElement(_e))return null;let Ue;if(y){if(!Array.isArray(j))throw new Error(ea(2));Ue=j.some(qe=>q2(qe,_e.props.value)),Ue&&de&&ue.push(_e.props.children)}else Ue=q2(j,_e.props.value),Ue&&de&&(fe=_e.props.children);return d.cloneElement(_e,{"aria-selected":Ue?"true":"false",onClick:rt(_e),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(qe)},role:"option",selected:Ue,value:void 0,"data-value":_e.props.value})});de&&(y?ue.length===0?le=null:le=ue.reduce((_e,Ue,qe)=>(_e.push(Ue),qe{const{classes:t}=e;return t},q_={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yr(e)&&e!=="variant",slot:"Root"},ade=ee(z_,q_)(""),ide=ee(W_,q_)(""),sde=ee(B_,q_)(""),H_=d.forwardRef(function(t,r){const n=De({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=jse,id:f,input:p,inputProps:h,label:g,labelId:b,MenuProps:w,multiple:x=!1,native:m=!1,onClose:y,onOpen:O,open:v,renderValue:_,SelectDisplayProps:S,variant:C="outlined"}=n,P=he(n,rde),k=m?gfe:tde,R=si(),I=cu({props:n,muiFormControl:R,states:["variant","error"]}),M=I.variant||C,B=$({},n,{variant:M,classes:i}),A=ode(B),V=he(A,nde),q=p||{standard:N.jsx(ade,{ownerState:B}),outlined:N.jsx(ide,{label:g,ownerState:B}),filled:N.jsx(sde,{ownerState:B})}[M],j=It(r,q.ref);return N.jsx(d.Fragment,{children:d.cloneElement(q,$({inputComponent:k,inputProps:$({children:a,error:I.error,IconComponent:c,variant:M,type:void 0,multiple:x},m?{id:f}:{autoWidth:o,defaultOpen:u,displayEmpty:l,labelId:b,MenuProps:w,onClose:y,onOpen:O,open:v,renderValue:_,SelectDisplayProps:$({id:f},S)},h,{classes:h?Ar(V,h.classes):V},p?p.props.inputProps:{})},(x&&m||l)&&M==="outlined"?{notched:!0}:{},{ref:j,className:ye(q.props.className,s,A.root)},!p&&{variant:M},P))})});H_.muiName="Select";function lde(e){return Ne("MuiSnackbarContent",e)}Fe("MuiSnackbarContent",["root","message","action"]);const ude=["action","className","message","role"],cde=e=>{const{classes:t}=e;return Le({root:["root"],action:["action"],message:["message"]},lde,t)},fde=ee(ai,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=yne(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dde=ee("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),pde=ee("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),vde=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,u=he(n,ude),l=n,c=cde(l);return N.jsxs(fde,$({role:s,square:!0,elevation:6,className:ye(c.root,a),ownerState:l,ref:r},u,{children:[N.jsx(dde,{className:c.message,ownerState:l,children:i}),o?N.jsx(pde,{className:c.action,ownerState:l,children:o}):null]}))});function hde(e){return Ne("MuiSnackbar",e)}Fe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mde=["onEnter","onExited"],gde=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],yde=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ae(r.vertical)}${ae(r.horizontal)}`]};return Le(n,hde,t)},H2=ee("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ae(r.anchorOrigin.vertical)}${ae(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),bde=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiSnackbar"}),o=fa(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:g=!1,message:b,open:w,TransitionComponent:x=Jc,transitionDuration:m=a,TransitionProps:{onEnter:y,onExited:O}={}}=n,v=he(n.TransitionProps,mde),_=he(n,gde),S=$({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),C=yde(S),{getRootProps:P,onClickAway:k}=ise($({},S)),[R,I]=d.useState(!0),M=Ga({elementType:H2,getSlotProps:P,externalForwardedProps:_,ownerState:S,additionalProps:{ref:r},className:[C.root,f]}),B=V=>{I(!0),O&&O(V)},A=(V,q)=>{I(!1),y&&y(V,q)};return!w&&R?null:N.jsx(Pae,$({onClickAway:k},p,{children:N.jsx(H2,$({},M,{children:N.jsx(x,$({appear:!0,in:w,timeout:m,direction:s==="top"?"down":"up",onEnter:A,onExited:B},v,{children:c||N.jsx(vde,$({message:b,action:i},h))}))}))}))});function xde(e){return Ne("MuiTooltip",e)}const Ra=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),wde=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function _de(e){return Math.round(e*1e5)/1e5}const Ode=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ae(a.split("-")[0])}`],arrow:["arrow"]};return Le(i,xde,t)},Sde=ee(QM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ra.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ra.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ra.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ra.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Ede=ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ae(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:et(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_de(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ra.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ra.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ra.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ra.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Cde=ee("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:et(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let jd=!1;const K2=new Nf;let Nu={x:0,y:0};function Ad(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const li=d.forwardRef(function(t,r){var n,o,a,i,s,u,l,c,f,p,h,g,b,w,x,m,y,O,v;const _=De({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:C,components:P={},componentsProps:k={},describeChild:R=!1,disableFocusListener:I=!1,disableHoverListener:M=!1,disableInteractive:B=!1,disableTouchListener:A=!1,enterDelay:V=100,enterNextDelay:q=0,enterTouchDelay:j=700,followCursor:W=!1,id:K,leaveDelay:ne=0,leaveTouchDelay:re=1500,onClose:be,onOpen:xe,open:ve,placement:we="bottom",PopperComponent:$e,PopperProps:me={},slotProps:Oe={},slots:Ae={},title:je,TransitionComponent:Te=Jc,TransitionProps:ke}=_,Me=he(_,wde),Ce=d.isValidElement(C)?C:N.jsx("span",{children:C}),Qe=fa(),rt=su(),[U,Q]=d.useState(),[Y,le]=d.useState(null),fe=d.useRef(!1),ue=B||W,de=Ri(),Z=Ri(),H=Ri(),G=Ri(),[te,oe]=$l({controlled:ve,default:!1,name:"Tooltip",state:"open"});let Pe=te;const Be=Ji(K),Ie=d.useRef(),_e=kn(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),G.clear()});d.useEffect(()=>_e,[_e]);const Ue=Xe=>{K2.clear(),jd=!0,oe(!0),xe&&!Pe&&xe(Xe)},qe=kn(Xe=>{K2.start(800+ne,()=>{jd=!1}),oe(!1),be&&Pe&&be(Xe),de.start(Qe.transitions.duration.shortest,()=>{fe.current=!1})}),ft=Xe=>{fe.current&&Xe.type!=="touchstart"||(U&&U.removeAttribute("title"),Z.clear(),H.clear(),V||jd&&q?Z.start(jd?q:V,()=>{Ue(Xe)}):Ue(Xe))},ht=Xe=>{Z.clear(),H.start(ne,()=>{qe(Xe)})},{isFocusVisibleRef:$r,onBlur:kr,onFocus:Wn,ref:Br}=Im(),[,Kt]=d.useState(!1),yt=Xe=>{kr(Xe),$r.current===!1&&(Kt(!1),ht(Xe))},Jt=Xe=>{U||Q(Xe.currentTarget),Wn(Xe),$r.current===!0&&(Kt(!0),ft(Xe))},or=Xe=>{fe.current=!0;const cr=Ce.props;cr.onTouchStart&&cr.onTouchStart(Xe)},qn=Xe=>{or(Xe),H.clear(),de.clear(),_e(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(j,()=>{document.body.style.WebkitUserSelect=Ie.current,ft(Xe)})},wn=Xe=>{Ce.props.onTouchEnd&&Ce.props.onTouchEnd(Xe),_e(),H.start(re,()=>{qe(Xe)})};d.useEffect(()=>{if(!Pe)return;function Xe(cr){(cr.key==="Escape"||cr.key==="Esc")&&qe(cr)}return document.addEventListener("keydown",Xe),()=>{document.removeEventListener("keydown",Xe)}},[qe,Pe]);const zr=It(Ce.ref,Br,Q,r);!je&&je!==0&&(Pe=!1);const Ur=d.useRef(),fi=Xe=>{const cr=Ce.props;cr.onMouseMove&&cr.onMouseMove(Xe),Nu={x:Xe.clientX,y:Xe.clientY},Ur.current&&Ur.current.update()},io={},di=typeof je=="string";R?(io.title=!Pe&&di&&!M?je:null,io["aria-describedby"]=Pe?Be:null):(io["aria-label"]=di?je:null,io["aria-labelledby"]=Pe&&!di?Be:null);const ln=$({},io,Me,Ce.props,{className:ye(Me.className,Ce.props.className),onTouchStart:or,ref:zr},W?{onMouseMove:fi}:{}),va={};A||(ln.onTouchStart=qn,ln.onTouchEnd=wn),M||(ln.onMouseOver=Ad(ft,ln.onMouseOver),ln.onMouseLeave=Ad(ht,ln.onMouseLeave),ue||(va.onMouseOver=ft,va.onMouseLeave=ht)),I||(ln.onFocus=Ad(Jt,ln.onFocus),ln.onBlur=Ad(yt,ln.onBlur),ue||(va.onFocus=Jt,va.onBlur=yt));const pg=d.useMemo(()=>{var Xe;let cr=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(Xe=me.popperOptions)!=null&&Xe.modifiers&&(cr=cr.concat(me.popperOptions.modifiers)),$({},me.popperOptions,{modifiers:cr})},[Y,me]),jo=$({},_,{isRtl:rt,arrow:S,disableInteractive:ue,placement:we,PopperComponentProp:$e,touch:fe.current}),br=Ode(jo),mu=(n=(o=Ae.popper)!=null?o:P.Popper)!=null?n:Sde,Gf=(a=(i=(s=Ae.transition)!=null?s:P.Transition)!=null?i:Te)!=null?a:Jc,gu=(u=(l=Ae.tooltip)!=null?l:P.Tooltip)!=null?u:Ede,yu=(c=(f=Ae.arrow)!=null?f:P.Arrow)!=null?c:Cde,Qf=Hs(mu,$({},me,(p=Oe.popper)!=null?p:k.popper,{className:ye(br.popper,me==null?void 0:me.className,(h=(g=Oe.popper)!=null?g:k.popper)==null?void 0:h.className)}),jo),Xf=Hs(Gf,$({},ke,(b=Oe.transition)!=null?b:k.transition),jo),vg=Hs(gu,$({},(w=Oe.tooltip)!=null?w:k.tooltip,{className:ye(br.tooltip,(x=(m=Oe.tooltip)!=null?m:k.tooltip)==null?void 0:x.className)}),jo),Yf=Hs(yu,$({},(y=Oe.arrow)!=null?y:k.arrow,{className:ye(br.arrow,(O=(v=Oe.arrow)!=null?v:k.arrow)==null?void 0:O.className)}),jo);return N.jsxs(d.Fragment,{children:[d.cloneElement(Ce,ln),N.jsx(mu,$({as:$e??QM,placement:we,anchorEl:W?{getBoundingClientRect:()=>({top:Nu.y,left:Nu.x,right:Nu.x,bottom:Nu.y,width:0,height:0})}:U,popperRef:Ur,open:U?Pe:!1,id:Be,transition:!0},va,Qf,{popperOptions:pg,children:({TransitionProps:Xe})=>N.jsx(Gf,$({timeout:Qe.transitions.duration.shorter},Xe,Xf,{children:N.jsxs(gu,$({},vg,{children:[je,S?N.jsx(yu,$({},Yf,{ref:le})):null]}))}))}))]})}),h3=d.createContext();function Pde(e){return Ne("MuiTable",e)}Fe("MuiTable",["root","stickyHeader"]);const $de=["className","component","padding","size","stickyHeader"],kde=e=>{const{classes:t,stickyHeader:r}=e;return Le({root:["root",r&&"stickyHeader"]},Pde,t)},Rde=ee("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),G2="table",m3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTable"}),{className:o,component:a=G2,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=he(n,$de),c=$({},n,{component:a,padding:i,size:s,stickyHeader:u}),f=kde(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return N.jsx(h3.Provider,{value:p,children:N.jsx(Rde,$({as:a,role:a===G2?null:"table",ref:r,className:ye(f.root,o),ownerState:c},l))})}),ng=d.createContext();function Tde(e){return Ne("MuiTableBody",e)}Fe("MuiTableBody",["root"]);const Ide=["className","component"],jde=e=>{const{classes:t}=e;return Le({root:["root"]},Tde,t)},Ade=ee("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Mde={variant:"body"},Q2="tbody",g3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTableBody"}),{className:o,component:a=Q2}=n,i=he(n,Ide),s=$({},n,{component:a}),u=jde(s);return N.jsx(ng.Provider,{value:Mde,children:N.jsx(Ade,$({className:ye(u.root,o),as:a,ref:r,role:a===Q2?null:"rowgroup",ownerState:s},i))})});function Fde(e){return Ne("MuiTableCell",e)}const Nde=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Lde=["align","className","component","padding","scope","size","sortDirection","variant"],Dde=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ae(n)}`,o!=="normal"&&`padding${ae(o)}`,`size${ae(a)}`]};return Le(s,Fde,t)},Bde=ee("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ae(r.size)}`],r.padding!=="normal"&&t[`padding${ae(r.padding)}`],r.align!=="inherit"&&t[`align${ae(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?g_(et(e.palette.divider,1),.88):m_(et(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Nde.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Er=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=he(n,Lde),h=d.useContext(h3),g=d.useContext(ng),b=g&&g.variant==="head";let w;i?w=i:w=b?"th":"td";let x=u;w==="td"?x=void 0:!x&&b&&(x="col");const m=f||g&&g.variant,y=$({},n,{align:o,component:w,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&h&&h.stickyHeader,variant:m}),O=Dde(y);let v=null;return c&&(v=c==="asc"?"ascending":"descending"),N.jsx(Bde,$({as:w,ref:r,className:ye(O.root,a),"aria-sort":v,scope:x,ownerState:y},p))});function zde(e){return Ne("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const Ude=["className","component"],Vde=e=>{const{classes:t}=e;return Le({root:["root"]},zde,t)},Wde=ee("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),qde={variant:"head"},X2="thead",y3=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTableHead"}),{className:o,component:a=X2}=n,i=he(n,Ude),s=$({},n,{component:a}),u=Vde(s);return N.jsx(ng.Provider,{value:qde,children:N.jsx(Wde,$({as:a,className:ye(u.root,o),ref:r,role:a===X2?null:"rowgroup",ownerState:s},i))})});function Hde(e){return Ne("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const Kde=["className","component","disableGutters","variant"],Gde=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Le({root:["root",!r&&"gutters",n]},Hde,t)},Qde=ee("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),du=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,u=he(n,Kde),l=$({},n,{component:a,disableGutters:i,variant:s}),c=Gde(l);return N.jsx(Qde,$({as:a,className:ye(c.root,o),ref:r,ownerState:l},u))}),Xde=sn(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yde=sn(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jde=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Zde=d.forwardRef(function(t,r){var n,o,a,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:h=!1,getItemAriaLabel:g,nextIconButtonProps:b,onPageChange:w,page:x,rowsPerPage:m,showFirstButton:y,showLastButton:O,slots:v={},slotProps:_={}}=t,S=he(t,Jde),C=su(),P=Oe=>{w(Oe,0)},k=Oe=>{w(Oe,x-1)},R=Oe=>{w(Oe,x+1)},I=Oe=>{w(Oe,Math.max(0,Math.ceil(p/m)-1))},M=(n=v.firstButton)!=null?n:Yt,B=(o=v.lastButton)!=null?o:Yt,A=(a=v.nextButton)!=null?a:Yt,V=(i=v.previousButton)!=null?i:Yt,q=(s=v.firstButtonIcon)!=null?s:Mb,j=(u=v.lastButtonIcon)!=null?u:Fb,W=(l=v.nextButtonIcon)!=null?l:Yde,K=(c=v.previousButtonIcon)!=null?c:Xde,ne=C?B:M,re=C?A:V,be=C?V:A,xe=C?M:B,ve=C?_.lastButton:_.firstButton,we=C?_.nextButton:_.previousButton,$e=C?_.previousButton:_.nextButton,me=C?_.firstButton:_.lastButton;return N.jsxs("div",$({ref:r},S,{children:[y&&N.jsx(ne,$({onClick:P,disabled:h||x===0,"aria-label":g("first",x),title:g("first",x)},ve,{children:C?N.jsx(j,$({},_.lastButtonIcon)):N.jsx(q,$({},_.firstButtonIcon))})),N.jsx(re,$({onClick:k,disabled:h||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},we??f,{children:C?N.jsx(W,$({},_.nextButtonIcon)):N.jsx(K,$({},_.previousButtonIcon))})),N.jsx(be,$({onClick:R,disabled:h||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},$e??b,{children:C?N.jsx(K,$({},_.previousButtonIcon)):N.jsx(W,$({},_.nextButtonIcon))})),O&&N.jsx(xe,$({onClick:I,disabled:h||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},me,{children:C?N.jsx(q,$({},_.firstButtonIcon)):N.jsx(j,$({},_.lastButtonIcon))}))]}))});function epe(e){return Ne("MuiTablePagination",e)}const vc=Fe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Y2;const tpe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],rpe=ee(Er,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),npe=ee(du,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>$({[`& .${vc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vc.actions}`]:{flexShrink:0,marginLeft:20}})),ope=ee("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ape=ee("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>$({},e.typography.body2,{flexShrink:0})),ipe=ee(H_,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>$({[`& .${vc.selectIcon}`]:t.selectIcon,[`& .${vc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),spe=ee(Ko,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lpe=ee("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>$({},e.typography.body2,{flexShrink:0}));function upe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function cpe(e){return`Go to ${e} page`}const fpe=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"]},epe,t)},J2=d.forwardRef(function(t,r){var n;const o=De({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=Zde,backIconButtonProps:i,className:s,colSpan:u,component:l=Er,count:c,disabled:f=!1,getItemAriaLabel:p=cpe,labelDisplayedRows:h=upe,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:b,onPageChange:w,onRowsPerPageChange:x,page:m,rowsPerPage:y,rowsPerPageOptions:O=[10,25,50,100],SelectProps:v={},showFirstButton:_=!1,showLastButton:S=!1,slotProps:C={},slots:P={}}=o,k=he(o,tpe),R=o,I=fpe(R),M=(n=C==null?void 0:C.select)!=null?n:v,B=M.native?"option":spe;let A;(l===Er||l==="td")&&(A=u||1e3);const V=Ji(M.id),q=Ji(M.labelId),j=()=>c===-1?(m+1)*y:y===-1?c:Math.min(c,(m+1)*y);return N.jsx(rpe,$({colSpan:A,ref:r,as:l,ownerState:R,className:ye(I.root,s)},k,{children:N.jsxs(npe,{className:I.toolbar,children:[N.jsx(ope,{className:I.spacer}),O.length>1&&N.jsx(ape,{className:I.selectLabel,id:q,children:g}),O.length>1&&N.jsx(ipe,$({variant:"standard"},!M.variant&&{input:Y2||(Y2=N.jsx(Ym,{}))},{value:y,onChange:x,id:V,labelId:q},M,{classes:$({},M.classes,{root:ye(I.input,I.selectRoot,(M.classes||{}).root),select:ye(I.select,(M.classes||{}).select),icon:ye(I.selectIcon,(M.classes||{}).icon)}),disabled:f,children:O.map(W=>d.createElement(B,$({},!Qc(B)&&{ownerState:R},{className:I.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),N.jsx(lpe,{className:I.displayedRows,children:h({from:c===0?0:m*y+1,to:j(),count:c===-1?-1:c,page:m})}),N.jsx(a,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:b,onPageChange:w,page:m,rowsPerPage:y,showFirstButton:_,showLastButton:S,slotProps:C.actions,slots:P.actions,getItemAriaLabel:p,disabled:f})]})}))});function dpe(e){return Ne("MuiTableRow",e)}const Z2=Fe("MuiTableRow",["root","selected","hover","head","footer"]),ppe=["className","component","hover","selected"],vpe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Le({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},dpe,t)},hpe=ee("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Z2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),e$="tr",ef=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTableRow"}),{className:o,component:a=e$,hover:i=!1,selected:s=!1}=n,u=he(n,ppe),l=d.useContext(ng),c=$({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=vpe(c);return N.jsx(hpe,$({as:a,ref:r,className:ye(f.root,o),role:a===e$?null:"row",ownerState:c},u))}),mpe=sn(N.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function gpe(e){return Ne("MuiTableSortLabel",e)}const xy=Fe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),ype=["active","children","className","direction","hideSortIcon","IconComponent"],bpe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${ae(r)}`]};return Le(o,gpe,t)},xpe=ee(ta,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${xy.icon}`]:{opacity:.5}},[`&.${xy.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${xy.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),wpe=ee("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ae(r.direction)}`]]}})(({theme:e,ownerState:t})=>$({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),_pe=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=mpe}=n,c=he(n,ype),f=$({},n,{active:o,direction:s,hideSortIcon:u,IconComponent:l}),p=bpe(f);return N.jsxs(xpe,$({className:ye(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[a,u&&!o?null:N.jsx(wpe,{as:l,className:ye(p.icon),ownerState:f})]}))});function Ope(e){return Ne("MuiTextField",e)}Fe("MuiTextField",["root"]);const Spe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Epe={standard:z_,filled:B_,outlined:W_},Cpe=e=>{const{classes:t}=e;return Le({root:["root"]},Ope,t)},Ppe=ee(Due,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),K_=d.forwardRef(function(t,r){const n=De({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:b,InputLabelProps:w,inputProps:x,InputProps:m,inputRef:y,label:O,maxRows:v,minRows:_,multiline:S=!1,name:C,onBlur:P,onChange:k,onFocus:R,placeholder:I,required:M=!1,rows:B,select:A=!1,SelectProps:V,type:q,value:j,variant:W="outlined"}=n,K=he(n,Spe),ne=$({},n,{autoFocus:a,color:u,disabled:c,error:f,fullWidth:h,multiline:S,required:M,select:A,variant:W}),re=Cpe(ne),be={};W==="outlined"&&(w&&typeof w.shrink<"u"&&(be.notched=w.shrink),be.label=O),A&&((!V||!V.native)&&(be.id=void 0),be["aria-describedby"]=void 0);const xe=Ji(b),ve=g&&xe?`${xe}-helper-text`:void 0,we=O&&xe?`${xe}-label`:void 0,$e=Epe[W],me=N.jsx($e,$({"aria-describedby":ve,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:S,name:C,rows:B,maxRows:v,minRows:_,type:q,value:j,id:xe,inputRef:y,onBlur:P,onChange:k,onFocus:R,placeholder:I,inputProps:x},be,m));return N.jsxs(Ppe,$({className:ye(re.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:M,color:u,variant:W,ownerState:ne},K,{children:[O!=null&&O!==""&&N.jsx(fce,$({htmlFor:xe,id:we},w,{children:O})),A?N.jsx(H_,$({"aria-describedby":ve,id:xe,labelId:we,value:j,input:me},V,{children:i})):me,g&&N.jsx(a3,$({id:ve},p,{children:g}))]}))}),$pe=["getTrigger","target"];function kpe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const Rpe=typeof window<"u"?window:null;function b3(e={}){const{getTrigger:t=kpe,target:r=Rpe}=e,n=he(e,$pe),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,$({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var G_={},wy={};const Tpe=Po(Eoe);var t$;function it(){return t$||(t$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Tpe}(wy)),wy}var Ipe=tt;Object.defineProperty(G_,"__esModule",{value:!0});var Q_=G_.default=void 0,jpe=Ipe(it()),Ape=N;Q_=G_.default=(0,jpe.default)((0,Ape.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var hc=function(){return hc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(Ame,null):null,t&&d.createElement(D3,null),d.createElement(k3,null))},Mve=d.createElement(Ave,null);sO.propTypes={alwaysOn:E.bool,children:E.node,className:E.string,color:E.oneOf(["default","inherit","primary","secondary","transparent"]),container:Tf,open:E.bool,toolbar:E.element,userMenu:E.oneOfType([E.element,E.bool])};var Fve=d.createElement(rO,null),wi="RaAppBar",ji={appBar:"".concat(wi,"-appBar"),toolbar:"".concat(wi,"-toolbar"),menuButton:"".concat(wi,"-menuButton"),menuButtonIconClosed:"".concat(wi,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(wi,"-menuButtonIconOpen"),title:"".concat(wi,"-title")},Nve=ee(_ae,{name:wi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(ji.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(ji.menuButton)]={marginRight:"0.2em"},t["& .".concat(ji.title)]={},t}),lO={},Lve=tt;Object.defineProperty(lO,"__esModule",{value:!0});var B3=lO.default=void 0,Dve=Lve(it()),Bve=N;B3=lO.default=(0,Dve.default)((0,Bve.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var uO={},zve=tt;Object.defineProperty(uO,"__esModule",{value:!0});var z3=uO.default=void 0,Uve=zve(it()),Vve=N;z3=uO.default=(0,Uve.default)((0,Vve.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var gc=function(){return gc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Th.createPortal(d.createElement(Ehe,Qb({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},sg=E.oneOfType([E.string,E.element]);is.propTypes={defaultTitle:E.string,className:E.string,record:E.any,title:sg};var Phe=function(e){var t=Nr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},Xb=function(){return Xb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0,k=Yme(w===!1||w===void 0?void 0:!w,l||!P||S||C);Qw(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var R=d.useCallback(function(B){return s$(void 0,void 0,void 0,function(){var A;return l$(this,function(V){switch(V.label){case 0:return O!=null&&O.save?[4,O.save(B,xc(xc({},u),{transform:p}))]:[3,2];case 1:A=V.sent(),V.label=2;case 2:return A!=null&&OA(A,y.setError),[2]}})})},[y.setError,O,u,p]),I=d.useCallback(function(B){return s$(void 0,void 0,void 0,function(){return l$(this,function(A){switch(A.label){case 0:return s&&s(B),B.defaultPrevented?[2]:f!=="button"?[3,2]:(B.stopPropagation(),[4,y.handleSubmit(R)(B)]);case 1:A.sent(),A.label=2;case 2:return[2]}})})},[s,f,y,R]),M=i&&m(i,{_:i});return d.createElement(Xme,xc({variant:g,type:f,color:r,"aria-label":M,disabled:k,onClick:I},x),C?d.createElement(eg,{sx:Kme,size:14,thickness:3,color:"inherit"}):o,M)},Kme={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},Gme=d.createElement(xF,null);wF.propTypes={className:E.string,invalid:E.bool,label:E.string,variant:E.oneOf(["text","outlined","contained"]),icon:E.element,alwaysEnable:E.bool};var Qme="RaSaveButton",Xme=ee(rn,{name:Qme,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),Yme=function(e,t){return typeof e>"u"?t:e},Jme=function(){return ce.createElement(ege,{onClick:tge,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Zme="RaSkipNavigationButton",ege=ee(Vn,{name:Zme,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),tge=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},d1=function(){return d1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=Nge&&(a=Fge,i=!1,t=new Tge(t));e:for(;++o0&&O.length>0&&O.every(function(v){return g.includes(v)}),onChange:y,onClick:function(v){return v.stopPropagation()}})),d.Children.map(t,function(v,_){return d.isValidElement(v)?d.createElement(Ege,{className:Ke(ze.headerCell,"column-".concat(v.props.source)),sort:f,field:v,isSorting:f.field===(v.props.sortBy||v.props.source),key:v.props.source||_,resource:u,updateSort:m}):null})))};AO.propTypes={children:E.node,className:E.string,sort:E.exact({field:E.string,order:E.oneOf(["ASC","DESC"])}),data:E.arrayOf(E.any),hasExpand:E.bool,hasBulkActions:E.bool,isRowSelectable:E.func,isRowExpandable:E.func,onSelect:E.func,onToggleItem:E.func,resource:E.string,selectedIds:E.arrayOf(E.any),setSort:E.func};AO.displayName="DatagridHeader";var Gge=function(e){var t=e.children,r=e.value;return ce.createElement(IO.Provider,{value:r},t)},MO={},Qge=tt;Object.defineProperty(MO,"__esModule",{value:!0});var IF=MO.default=void 0,Xge=Qge(it()),Yge=N;IF=MO.default=(0,Xge.default)((0,Yge.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var w1=function(){return w1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1] element instead.")})},[r]);var c=function(){var p=a.getValues();return r.filter(function(h){var g=Tt(p,h.props.source);return h.props.alwaysOn||u[h.props.source]||!UF(g)})},f=d.useCallback(function(p){return l(p.currentTarget.dataset.key)},[l]);return d.createElement(pA,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(jbe,Wa({className:t},Rbe(n),{onSubmit:kbe}),c().map(function(p){return d.createElement(DF,{key:p.key||p.props.source,filterElement:p,handleHide:f,resource:o,className:rh.filterFormInput})}),d.createElement("div",{className:rh.clearFix})))},kbe=function(e){return e.preventDefault(),!1};BF.propTypes={resource:E.string,filters:E.arrayOf(E.node).isRequired,displayedFilters:E.object,hideFilter:E.func,initialValues:E.object,className:E.string};var Rbe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=FO(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},Tbe=function(e,t){return Wa(Wa({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return hw(Wa({},r),n.props.source,n.props.defaultValue)},{})),e)},Ibe=function(e){return e.preventDefault(),e.stopPropagation(),!1},O1="RaFilterForm",rh={clearFix:"".concat(O1,"-clearFix"),filterFormInput:"".concat(O1,"-filterFormInput")},jbe=ee("form",{name:O1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(rh.clearFix)]={clear:"right"},t["& .".concat(rh.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Abe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=zF(e,o,t),n},(r=LF(t))!==null&&r!==void 0?r:{})},zF=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return Tt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=zF(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return Tt(r,t,"")},UF=function(e){return e===""||typeof e>"u"?!0:typeof e=="object"?Object.keys(e).every(function(t){return UF(e[t])}):!1},NO={},Mbe=tt;Object.defineProperty(NO,"__esModule",{value:!0});var VF=NO.default=void 0,Fbe=Mbe(it()),Nbe=N;VF=NO.default=(0,Fbe.default)((0,Nbe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var WF=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=ct(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(Ko,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},d.createElement(Vc,{label:r.props.label,source:r.props.source,resource:a}))});WF.propTypes={filter:E.element.isRequired,onShow:E.func.isRequired,resource:E.string,autoFocus:E.bool};var LO=function(e){return oo("".concat(e,".savedQueries"),[])},DO=function(e){return Array.isArray(e)?e.filter(function(t){return Lbe(t)}):[]},Lbe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Dbe=function(e){var t=e.open,r=e.onClose,n=We(),o=on(),a=o.resource,i=o.filterValues,s=o.displayedFilters,u=o.sort,l=o.perPage,c=LO(a),f=c[0],p=c[1],h=d.useState(""),g=h[0],b=h[1],w=function(y){b(y.target.value)},x=function(y){y.preventDefault(),m()},m=function(){var y={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},O=DO(f);p(O.concat(y)),b(""),r()};return d.createElement(F_,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(D_,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(L_,null,d.createElement("form",{onSubmit:x},d.createElement(K_,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:w}))),d.createElement(N_,null,d.createElement(rn,{onClick:r},n("ra.action.cancel")),d.createElement(rn,{onClick:m,color:"primary"},n("ra.action.save"))))},w$=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var R=s.filter(function(ve){return!ve.props.alwaysOn&&!g[ve.props.source]&&typeof Tt(b,ve.props.source)>"u"}),I=d.useCallback(function(ve){ve.preventDefault(),P(!0),k.current=ve.currentTarget},[k,P]),M=d.useCallback(function(){P(!1)},[P]),B=d.useCallback(function(ve){var we=ve.source,$e=ve.defaultValue;m(we,$e===""?void 0:$e),setTimeout(function(){var me=document.querySelector("input[name='".concat(we,"']"));me&&me.focus()},50),P(!1)},[m,P]),A=d.useState(!1),V=A[0],q=A[1],j=function(){q(!1)},W=function(){P(!1),q(!0)},K=d.useState(!1),ne=K[0],re=K[1],be=function(){re(!1)},xe=function(){P(!1),re(!0)};return R.length===0&&v.length===0&&!O?null:d.createElement(Vbe,S1({className:r},zbe(i)),d.createElement(Vn,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:I,variant:a,size:o},d.createElement(VF,null)),d.createElement(rg,{open:C,anchorEl:k.current,onClose:M},R.map(function(ve,we){return d.createElement(WF,{key:ve.props.source,filter:ve,resource:u,onShow:B,autoFocus:we===0})}),v.map(function(ve,we){return _o(ve.value,{filter:b,sort:y,perPage:w,displayedFilters:g})?d.createElement(Ko,{onClick:xe,key:we},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:ve.label})):d.createElement(Ko,{onClick:function(){f({search:Ki.stringify({filter:JSON.stringify(ve.value.filter),sort:ve.value.sort.field,order:ve.value.sort.order,page:1,perPage:ve.value.perPage,displayedFilters:JSON.stringify(ve.value.displayedFilters)})}),P(!1)},key:we},ve.label)}),O&&!_&&!n&&d.createElement(Ko,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),O&&d.createElement(Ko,{onClick:function(){x({},{},!1),P(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(Dbe,{open:V,onClose:j}),d.createElement(Bbe,{open:ne,onClose:be})))},zbe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=qF(e,["displayedFilters","filterValues","showFilter"]);return t};HF.propTypes={resource:E.string,filters:E.arrayOf(E.node),displayedFilters:E.object,filterValues:E.object,showFilter:E.func,className:E.string};var Ube="RaFilterButton",Vbe=ee("div",{name:Ube,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),E1=function(){return E1=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(b("ra.navigation.page_out_of_boundaries",{page:C+1}));h(C+1)},[x,h,b]),y=d.useCallback(function(S){g(S.target.value)},[g]),O=d.useCallback(function(S){var C=S.from,P=S.to,k=S.count;return k===-1&&l?b("ra.navigation.partial_page_range_info",{offsetBegin:C,offsetEnd:P,_:"%{from}-%{to} of more than %{to}"}):b("ra.navigation.page_range_info",{offsetBegin:C,offsetEnd:P,total:k===-1?P:k,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[b,l]),v=d.useCallback(function(S){return b("ra.navigation.".concat(S),{_:"Go to ".concat(S," page")})},[b]);if(u)return d.createElement(du,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return a!=null,null;if(w)return d.createElement(J2,nh({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:Gbe,component:"span",labelDisplayedRows:O},El(i)));var _=n||(!u&&p!=null?GF:void 0);return d.createElement(J2,nh({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:y,ActionsComponent:_,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:b("ra.navigation.page_rows_per_page"),labelDisplayedRows:O,getItemAriaLabel:v,rowsPerPageOptions:r},El(i)))});QF.propTypes={actions:Tf,limit:E.element,rowsPerPageOptions:E.arrayOf(E.oneOfType([E.number,E.exact({label:E.string.isRequired,value:E.number.isRequired})]))};var Kbe=[5,10,25,50],Gbe=[],BO={},Qbe=tt;Object.defineProperty(BO,"__esModule",{value:!0});var C1=BO.default=void 0,Xbe=Qbe(it()),Ybe=N;C1=BO.default=(0,Xbe.default)((0,Ybe.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");var oh=function(){return oh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(r1e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Jm,{className:il.content},d.createElement(qa,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:_P(),fullWidth:!0}),d.createElement(qa,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:_P(),fullWidth:!0}),d.createElement(rn,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:il.button},o?d.createElement(eg,{className:il.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},xp="RaLoginForm",il={content:"".concat(xp,"-content"),button:"".concat(xp,"-button"),icon:"".concat(xp,"-icon")},r1e=ee(SA,{name:xp,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(il.content)]={width:300},t["& .".concat(il.button)]={marginTop:r.spacing(2)},t["& .".concat(il.icon)]={margin:r.spacing(.3)},t});XF.propTypes={redirectTo:E.string};var P1=function(){return P1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?d.createElement(r5,null):r;return o?d.createElement(f1e,T1({className:Ke("edit-page",a)},c1e(l)),d.createElement(is,{title:u,defaultTitle:h,preferenceKey:"".concat(p,".edit.title")}),b,d.createElement("div",{className:Ke(ul.main,(t={},t[ul.noActions]=!b,t))},d.createElement(s,{className:ul.card},g?o:d.createElement(Jm,null," ")),n)):null};o5.propTypes={actions:E.oneOfType([E.element,E.bool]),aside:E.element,className:E.string,component:Tf,defaultTitle:E.any,hasList:E.bool,hasShow:E.bool,mutationMode:E.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:E.object,record:E.object,redirect:E.oneOfType([E.string,E.bool,E.func]),resource:E.string,save:E.func,title:E.node};var c1e=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;var t=n5(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"]);return t},Op="RaEdit",ul={main:"".concat(Op,"-main"),noActions:"".concat(Op,"-noActions"),card:"".concat(Op,"-card")},f1e=ee("div",{name:Op,overridesResolver:function(e,t){return t.root}})((Lu={},Lu["& .".concat(ul.main)]={display:"flex",alignItems:"flex-start"},Lu["& .".concat(ul.noActions)]={marginTop:"1em"},Lu["& .".concat(ul.card)]={flex:"1 1 auto"},Lu)),I1=function(){return I1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&w?b1e:r;return!o||!b&&l?null:d.createElement(w1e,A1({className:Ke("show-page",a)},x1e(f)),d.createElement(is,{title:c,defaultTitle:g,preferenceKey:"".concat(h,".show.title")}),x!==!1&&x,d.createElement("div",{className:Ke(fl.main,(t={},t[fl.noActions]=!x,t))},d.createElement(s,{className:fl.card},o),n))};c5.propTypes={actions:E.oneOfType([E.element,E.bool]),children:E.node,className:E.string,emptyWhileLoading:E.bool,title:E.any};var x1e=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=u5(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},Ep="RaShow",fl={main:"".concat(Ep,"-main"),noActions:"".concat(Ep,"-noActions"),card:"".concat(Ep,"-card")},w1e=ee("div",{name:Ep,overridesResolver:function(e,t){return t.root}})((Du={},Du["& .".concat(fl.main)]={display:"flex"},Du["& .".concat(fl.noActions)]={marginTop:"1em"},Du["& .".concat(fl.card)]={flex:"1 1 auto"},Du)),M1=function(){return M1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),A1e=function(e){return e.stopPropagation()},E$=function(e){var t=e.clickable;return d.createElement(A_,{sx:{cursor:"inherit"},size:"small",label:d.createElement(AQ,null),clickable:t})},nf=function(){return nf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&P$.call(t.callee)==="[object Function]"),n},Cy,$$;function ixe(){if($$)return Cy;$$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=E5,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var h=p.constructor;return h&&h.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(h){var g=h!==null&&typeof h=="object",b=r.call(h)==="[object Function]",w=n(h),x=g&&r.call(h)==="[object String]",m=[];if(!g&&!b&&!w)throw new TypeError("Object.keys called on a non-object");var y=i&&b;if(x&&h.length>0&&!t.call(h,0))for(var O=0;O0)for(var v=0;v"u"||!ar?Ze:ar(Uint8Array),Bi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ze:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ze:ArrayBuffer,"%ArrayIteratorPrototype%":xs&&ar?ar([][Symbol.iterator]()):Ze,"%AsyncFromSyncIteratorPrototype%":Ze,"%AsyncFunction%":Cs,"%AsyncGenerator%":Cs,"%AsyncGeneratorFunction%":Cs,"%AsyncIteratorPrototype%":Cs,"%Atomics%":typeof Atomics>"u"?Ze:Atomics,"%BigInt%":typeof BigInt>"u"?Ze:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ze:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ze:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ze:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Rxe,"%eval%":eval,"%EvalError%":Txe,"%Float32Array%":typeof Float32Array>"u"?Ze:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ze:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ze:FinalizationRegistry,"%Function%":k5,"%GeneratorFunction%":Cs,"%Int8Array%":typeof Int8Array>"u"?Ze:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ze:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ze:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xs&&ar?ar(ar([][Symbol.iterator]())):Ze,"%JSON%":typeof JSON=="object"?JSON:Ze,"%Map%":typeof Map>"u"?Ze:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xs||!ar?Ze:ar(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ze:Promise,"%Proxy%":typeof Proxy>"u"?Ze:Proxy,"%RangeError%":Ixe,"%ReferenceError%":jxe,"%Reflect%":typeof Reflect>"u"?Ze:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ze:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xs||!ar?Ze:ar(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ze:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xs&&ar?ar(""[Symbol.iterator]()):Ze,"%Symbol%":xs?Symbol:Ze,"%SyntaxError%":Fl,"%ThrowTypeError%":Mxe,"%TypedArray%":Nxe,"%TypeError%":pl,"%Uint8Array%":typeof Uint8Array>"u"?Ze:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ze:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ze:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ze:Uint32Array,"%URIError%":Axe,"%WeakMap%":typeof WeakMap>"u"?Ze:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ze:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ze:WeakSet};if(ar)try{null.error}catch(e){var Lxe=ar(ar(e));Bi["%Error.prototype%"]=Lxe}var Dxe=function e(t){var r;if(t==="%AsyncFunction%")r=$y("async function () {}");else if(t==="%GeneratorFunction%")r=$y("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=$y("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ar&&(r=ar(o.prototype))}return Bi[t]=r,r},j$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Hf=XO,lh=kxe,Bxe=Hf.call(Function.call,Array.prototype.concat),zxe=Hf.call(Function.apply,Array.prototype.splice),A$=Hf.call(Function.call,String.prototype.replace),uh=Hf.call(Function.call,String.prototype.slice),Uxe=Hf.call(Function.call,RegExp.prototype.exec),Vxe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Wxe=/\\(\\)?/g,qxe=function(t){var r=uh(t,0,1),n=uh(t,-1);if(r==="%"&&n!=="%")throw new Fl("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fl("invalid intrinsic syntax, expected opening `%`");var o=[];return A$(t,Vxe,function(a,i,s,u){o[o.length]=s?A$(u,Wxe,"$1"):i||a}),o},Hxe=function(t,r){var n=t,o;if(lh(j$,n)&&(o=j$[n],n="%"+o[0]+"%"),lh(Bi,n)){var a=Bi[n];if(a===Cs&&(a=Dxe(n)),typeof a>"u"&&!r)throw new pl("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Fl("intrinsic "+t+" does not exist!")},Io=function(t,r){if(typeof t!="string"||t.length===0)throw new pl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pl('"allowMissing" argument must be a boolean');if(Uxe(/^%?[^%]*%?$/,t)===null)throw new Fl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=qxe(t),o=n.length>0?n[0]:"",a=Hxe("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],zxe(n,Bxe([0,1],l)));for(var c=1,f=!0;c=n.length){var b=Di(s,p);f=!!b,f&&"get"in b&&!("originalValue"in b.get)?s=b.get:s=s[p]}else f=lh(s,p),s=s[p];f&&!u&&(Bi[i]=s)}}return s},Kxe=Io,$p=Kxe("%Object.defineProperty%",!0)||!1;if($p)try{$p({},"a",{value:1})}catch{$p=!1}var YO=$p,Gxe=Io,kp=Gxe("%Object.getOwnPropertyDescriptor%",!0);if(kp)try{kp([],"length")}catch{kp=null}var R5=kp,M$=YO,Qxe=C5,ws=Dr,F$=R5,T5=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ws("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ws("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ws("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ws("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ws("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ws("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!F$&&F$(t,r);if(M$)M$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new Qxe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},H1=YO,I5=function(){return!!H1};I5.hasArrayLengthDefineBug=function(){if(!H1)return null;try{return H1([],"length",{value:1}).length!==1}catch{return!0}};var j5=I5,Xxe=uxe,Yxe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Jxe=Object.prototype.toString,Zxe=Array.prototype.concat,N$=T5,ewe=function(e){return typeof e=="function"&&Jxe.call(e)==="[object Function]"},A5=j5(),twe=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!ewe(n)||!n())return}A5?N$(e,t,r,!0):N$(e,t,r)},M5=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Xxe(t);Yxe&&(n=Zxe.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||owe(r)!==r)throw new B$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&D$){var i=D$(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(nwe?L$(t,"length",r,!0,!0):L$(t,"length",r)),t};(function(e){var t=XO,r=Io,n=awe,o=Dr,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),u=YO,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,a,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(F5);var dg=F5.exports,N5=Io,L5=dg,iwe=L5(N5("String.prototype.indexOf")),da=function(t,r){var n=N5(t,!!r);return typeof n=="function"&&iwe(t,".prototype.")>-1?L5(n):n},swe=Dr,Kf=function(t){if(t==null)throw new swe(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},lwe=Io,D5=lwe("%Array%"),uwe=!D5.isArray&&da("Object.prototype.toString"),cwe=D5.isArray||function(t){return uwe(t)==="[object Array]"},fwe=cwe,dwe=Io,pwe=da,vwe=Dr,hwe=fwe,mwe=dwe("%Reflect.apply%",!0)||pwe("Function.prototype.apply"),gwe=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!hwe(n))throw new vwe("Assertion failed: optional `argumentsList`, if provided, must be a List");return mwe(t,r,n)};const ywe={},bwe=Object.freeze(Object.defineProperty({__proto__:null,default:ywe},Symbol.toStringTag,{value:"Module"})),xwe=Po(bwe);var JO=typeof Map=="function"&&Map.prototype,Ry=Object.getOwnPropertyDescriptor&&JO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ch=JO&&Ry&&typeof Ry.get=="function"?Ry.get:null,z$=JO&&Map.prototype.forEach,ZO=typeof Set=="function"&&Set.prototype,Ty=Object.getOwnPropertyDescriptor&&ZO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fh=ZO&&Ty&&typeof Ty.get=="function"?Ty.get:null,U$=ZO&&Set.prototype.forEach,wwe=typeof WeakMap=="function"&&WeakMap.prototype,_c=wwe?WeakMap.prototype.has:null,_we=typeof WeakSet=="function"&&WeakSet.prototype,Oc=_we?WeakSet.prototype.has:null,Owe=typeof WeakRef=="function"&&WeakRef.prototype,V$=Owe?WeakRef.prototype.deref:null,Swe=Boolean.prototype.valueOf,Ewe=Object.prototype.toString,Cwe=Function.prototype.toString,Pwe=String.prototype.match,eS=String.prototype.slice,Ia=String.prototype.replace,$we=String.prototype.toUpperCase,W$=String.prototype.toLowerCase,B5=RegExp.prototype.test,q$=Array.prototype.concat,vo=Array.prototype.join,kwe=Array.prototype.slice,H$=Math.floor,K1=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Iy=Object.getOwnPropertySymbols,G1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nl||!0)?Symbol.toStringTag:null,z5=Object.prototype.propertyIsEnumerable,K$=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function G$(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||B5.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-H$(-e):H$(e);if(n!==e){var o=String(n),a=eS.call(t,o.length+1);return Ia.call(o,r,"$&_")+"."+Ia.call(Ia.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ia.call(t,r,"$&_")}var Q1=xwe,Q$=Q1.custom,X$=V5(Q$)?Q$:null,Rwe=function e(t,r,n,o){var a=r||{};if(_a(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_a(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=_a(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_a(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_a(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return q5(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?G$(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?G$(t,l):l}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return X1(t)?"[Array]":"[Object]";var f=Gwe(a,n);if(typeof o>"u")o=[];else if(W5(o,t)>=0)return"[Circular]";function p(M,B,A){if(B&&(o=kwe.call(o),o.push(B)),A){var V={depth:a.depth};return _a(a,"quoteStyle")&&(V.quoteStyle=a.quoteStyle),e(M,V,n+1,o)}return e(M,a,n+1,o)}if(typeof t=="function"&&!Y$(t)){var h=Dwe(t),g=Ld(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+vo.call(g,", ")+" }":"")}if(V5(t)){var b=Nl?Ia.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):G1.call(t);return typeof t=="object"&&!Nl?Bu(b):b}if(qwe(t)){for(var w="<"+W$.call(String(t.nodeName)),x=t.attributes||[],m=0;m",w}if(X1(t)){if(t.length===0)return"[]";var y=Ld(t,p);return f&&!Kwe(y)?"["+Y1(y,f)+"]":"[ "+vo.call(y,", ")+" ]"}if(jwe(t)){var O=Ld(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!z5.call(t,"cause")?"{ ["+String(t)+"] "+vo.call(q$.call("[cause]: "+p(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vo.call(O,", ")+" }"}if(typeof t=="object"&&i){if(X$&&typeof t[X$]=="function"&&Q1)return Q1(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Bwe(t)){var v=[];return z$&&z$.call(t,function(M,B){v.push(p(B,t,!0)+" => "+p(M,t))}),J$("Map",ch.call(t),v,f)}if(Vwe(t)){var _=[];return U$&&U$.call(t,function(M){_.push(p(M,t))}),J$("Set",fh.call(t),_,f)}if(zwe(t))return jy("WeakMap");if(Wwe(t))return jy("WeakSet");if(Uwe(t))return jy("WeakRef");if(Mwe(t))return Bu(p(Number(t)));if(Nwe(t))return Bu(p(K1.call(t)));if(Fwe(t))return Bu(Swe.call(t));if(Awe(t))return Bu(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ca)return"{ [object globalThis] }";if(!Iwe(t)&&!Y$(t)){var S=Ld(t,p),C=K$?K$(t)===Object.prototype:t instanceof Object||t.constructor===Object,P=t instanceof Object?"":"null prototype",k=!C&&Pr&&Object(t)===t&&Pr in t?eS.call(ui(t),8,-1):P?"Object":"",R=C||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",I=R+(k||P?"["+vo.call(q$.call([],k||[],P||[]),": ")+"] ":"");return S.length===0?I+"{}":f?I+"{"+Y1(S,f)+"}":I+"{ "+vo.call(S,", ")+" }"}return String(t)};function U5(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Twe(e){return Ia.call(String(e),/"/g,""")}function X1(e){return ui(e)==="[object Array]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function Iwe(e){return ui(e)==="[object Date]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function Y$(e){return ui(e)==="[object RegExp]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function jwe(e){return ui(e)==="[object Error]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function Awe(e){return ui(e)==="[object String]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function Mwe(e){return ui(e)==="[object Number]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function Fwe(e){return ui(e)==="[object Boolean]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function V5(e){if(Nl)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!G1)return!1;try{return G1.call(e),!0}catch{}return!1}function Nwe(e){if(!e||typeof e!="object"||!K1)return!1;try{return K1.call(e),!0}catch{}return!1}var Lwe=Object.prototype.hasOwnProperty||function(e){return e in this};function _a(e,t){return Lwe.call(e,t)}function ui(e){return Ewe.call(e)}function Dwe(e){if(e.name)return e.name;var t=Pwe.call(Cwe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function W5(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return q5(eS.call(e,0,t.maxStringLength),t)+n}var o=Ia.call(Ia.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Hwe);return U5(o,"single",t)}function Hwe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+$we.call(t.toString(16))}function Bu(e){return"Object("+e+")"}function jy(e){return e+" { ? }"}function J$(e,t,r,n){var o=n?Y1(r,n):vo.call(r,", ");return e+" ("+t+") {"+o+"}"}function Kwe(e){for(var t=0;t=0)return!1;return!0}function Gwe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=vo.call(Array(e.indent+1)," ");else return null;return{base:r,prev:vo.call(Array(t+1),r)}}function Y1(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+vo.call(e,","+r)+` -`+t.prev}function Ld(e,t){var r=X1(e),n=[];if(r){n.length=e.length;for(var o=0;o"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},Xwe=Qwe,tS=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":Xwe(t)},Z$=Dr,Ywe=Rwe,Jwe=H5,Zwe=tS,K5=function(t,r){if(Zwe(t)!=="Object")throw new Z$("Assertion failed: Type(O) is not Object");if(!Jwe(r))throw new Z$("Assertion failed: IsPropertyKey(P) is not true, got "+Ywe(r));return t[r]},ek=Dr,e_e=H5,t_e=tS,r_e=function(t,r){if(t_e(t)!=="Object")throw new ek("Assertion failed: `O` must be an Object");if(!e_e(r))throw new ek("Assertion failed: `P` must be a Property Key");return r in t},G5=Function.prototype.toString,Ks=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,J1,Rp;if(typeof Ks=="function"&&typeof Object.defineProperty=="function")try{J1=Object.defineProperty({},"length",{get:function(){throw Rp}}),Rp={},Ks(function(){throw 42},null,J1)}catch(e){e!==Rp&&(Ks=null)}else Ks=null;var n_e=/^\s*class\b/,Z1=function(t){try{var r=G5.call(t);return n_e.test(r)}catch{return!1}},Ay=function(t){try{return Z1(t)?!1:(G5.call(t),!0)}catch{return!1}},Tp=Object.prototype.toString,o_e="[object Object]",a_e="[object Function]",i_e="[object GeneratorFunction]",s_e="[object HTMLAllCollection]",l_e="[object HTML document.all class]",u_e="[object HTMLCollection]",c_e=typeof Symbol=="function"&&!!Symbol.toStringTag,f_e=!(0 in[,]),ex=function(){return!1};if(typeof document=="object"){var d_e=document.all;Tp.call(d_e)===Tp.call(document.all)&&(ex=function(t){if((f_e||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Tp.call(t);return(r===s_e||r===l_e||r===u_e||r===o_e)&&t("")==null}catch{}return!1})}var Q5=Ks?function(t){if(ex(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ks(t,null,J1)}catch(r){if(r!==Rp)return!1}return!Z1(t)&&Ay(t)}:function(t){if(ex(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(c_e)return Ay(t);if(Z1(t))return!1;var r=Tp.call(t);return r!==a_e&&r!==i_e&&!/^\[object HTML/.test(r)?!1:Ay(t)},p_e=Q5,v_e=Number.MAX_SAFE_INTEGER||9007199254740991,My,tk;function h_e(){return tk||(tk=1,My=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),My}var Fy,rk;function m_e(){return rk||(rk=1,Fy=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Fy}var g_e=P5,rS=function(){return g_e()&&!!Symbol.toStringTag},Ny,nk;function y_e(){if(nk)return Ny;nk=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=rS();return Ny=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},Ny}var Dd={exports:{}},ok;function b_e(){if(ok)return Dd.exports;ok=1;var e=Object.prototype.toString,t=$5();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};Dd.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else Dd.exports=function(i){return!1};return Dd.exports}var Ly,ak;function x_e(){if(ak)return Ly;ak=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=m_e(),r=Q5,n=y_e(),o=b_e(),a=function(u,l){if(typeof u>"u"||u===null)throw new TypeError("Cannot call method on "+u);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var c=l==="string"?["toString","valueOf"]:["valueOf","toString"],f,p,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var c;if(e&&(Symbol.toPrimitive?c=i(u,Symbol.toPrimitive):o(u)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var f=c.call(u,l);if(t(f))return f;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(u)||o(u))&&(l="string"),a(u,l==="default"?"number":l)},Ly}var Dy,ik;function w_e(){if(ik)return Dy;ik=1;var e=x_e();return Dy=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Dy}var By,sk;function O_e(){if(sk)return By;sk=1;var e=da,t=rS(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,l="[object RegExp]";return By=t?function(f){if(!f||typeof f!="object")return!1;var p=u(f,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{n(f,a)}catch(g){return g===o}}:function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:s(f)===l},By}var zy,lk;function S_e(){if(lk)return zy;lk=1;var e=da,t=O_e(),r=e("RegExp.prototype.exec"),n=Dr;return zy=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},zy}var E_e=Io,C_e=E_e("%String%"),P_e=Dr,X5=function(t){if(typeof t=="symbol")throw new P_e("Cannot convert a Symbol value to a string");return C_e(t)},$_e=Kf,k_e=X5,R_e=da,uk=R_e("String.prototype.replace"),Y5=/^\s$/.test("᠎"),T_e=Y5?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,I_e=Y5?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,J5=function(){var t=k_e($_e(this));return uk(uk(t,T_e,""),I_e,"")},j_e=J5,ck="​",_s="᠎",Z5=function(){return String.prototype.trim&&ck.trim()===ck&&_s.trim()===_s&&("_"+_s).trim()==="_"+_s&&(_s+"_").trim()===_s+"_"?String.prototype.trim:j_e},A_e=vu,M_e=Z5,F_e=function(){var t=M_e();return A_e(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},N_e=dg,L_e=vu,D_e=Kf,B_e=J5,e4=Z5,z_e=F_e,U_e=N_e(e4()),t4=function(t){return D_e(t),U_e(t)};L_e(t4,{getPolyfill:e4,implementation:B_e,shim:z_e});var r4=t4,Uy,fk;function V_e(){if(fk)return Uy;fk=1;var e=Io,t=e("%Number%"),r=e("%RegExp%"),n=Dr,o=e("%parseInt%"),a=da,i=S_e(),s=a("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),f=["…","​","￾"].join(""),p=new r("["+f+"]","g"),h=i(p),g=r4;return Uy=function b(w){if(typeof w!="string")throw new n("Assertion failed: `argument` is not a String");if(u(w))return t(o(s(w,2),2));if(l(w))return t(o(s(w,2),8));if(h(w)||c(w))return NaN;var x=g(w);return x!==w?b(x):t(w)},Uy}var W_e=Io,dk=Dr,pk=W_e("%Number%"),q_e=h_e(),H_e=w_e(),K_e=V_e(),G_e=function(t){var r=q_e(t)?t:H_e(t,pk);if(typeof r=="symbol")throw new dk("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new dk("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?K_e(r):pk(r)},Q_e=Math.floor,X_e=function(t){return typeof t=="bigint"?t:Q_e(t)},vk=X_e,Y_e=Dr,J_e=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new Y_e("argument must be a Number or a BigInt");var r=t<0?-vk(-t):vk(t);return r===0?0:r},n4=Number.isNaN||function(t){return t!==t},Z_e=n4,eOe=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Z_e(e)&&e!==1/0&&e!==-1/0},tOe=G_e,rOe=J_e,nOe=n4,oOe=eOe,aOe=function(t){var r=tOe(t);return nOe(r)||r===0?0:oOe(r)?rOe(r):r},hk=v_e,iOe=aOe,sOe=function(t){var r=iOe(t);return r<=0?0:r>hk?hk:r},lOe=Dr,uOe=K5,cOe=sOe,fOe=tS,dOe=function(t){if(fOe(t)!=="Object")throw new lOe("Assertion failed: `obj` must be an Object");return cOe(uOe(t,"length"))},pOe=Object,vOe=pOe,hOe=Kf,mOe=function(t){return hOe(t),vOe(t)},gOe=String.prototype.valueOf,yOe=function(t){try{return gOe.call(t),!0}catch{return!1}},bOe=Object.prototype.toString,xOe="[object String]",wOe=rS(),_Oe=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:wOe?yOe(t):bOe.call(t)===xOe},OOe=da,SOe=Dr,EOe=gwe,COe=K5,POe=r_e,$Oe=p_e,kOe=dOe,ROe=mOe,TOe=X5,IOe=_Oe,jOe=OOe("String.prototype.split"),mk=Object("a"),AOe=mk[0]!=="a"||!(0 in mk),o4=function(t){var r=ROe(this),n=AOe&&IOe(this)?jOe(this,""):r,o=kOe(n);if(!$Oe(t))throw new SOe("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},m4={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:qy,chinese:function(){return 0},croatian:qy,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:qy,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function cSe(e){var t={};return dh(nS(e),function(r){var n=r[0],o=r[1];dh(o,function(a){t[a]=n})}),t}function fSe(e,t){var r=cSe(e.pluralTypeToLanguages);return r[t]||r[h4.call(t,/-/,1)[0]]||r.en}function dSe(e,t,r){return e.pluralTypes[t](r)}function pSe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=fSe(t,r),n&&(e[r]=n)),n}}function bk(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vSe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Ip||r===Ip)throw new RangeError('"'+Ip+'" token is reserved for pluralization');return new RegExp(bk(t)+"(.*?)"+bk(r),"g")}var hSe=pSe(),mSe=/%\{(.*?)\}/g;function oS(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||mSe,u=a||v4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var c=o||m4,f=h4.call(e,Ip),p=r||"en",h=hSe(c,p),g=dSe(c,h,l.smart_count);i=lSe(f[g]||f[0])}return i=u.call(i,s,function(b,w){return!p4(l,w)||l[w]==null?b:l[w]}),i}function pa(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?oS:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||uSe,this.replaceImplementation=t.replace||v4,this.tokenRegex=vSe(t.interpolation),this.pluralRules=t.pluralRules||m4}pa.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};pa.prototype.extend=function(e,t){dh(nS(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};pa.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:dh(nS(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};pa.prototype.clear=function(){this.phrases={}};pa.prototype.replace=function(e){this.clear(),this.extend(e)};pa.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=oS(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};pa.prototype.has=function(e){return p4(this.phrases,e)};pa.transformPhrase=function(t,r,n){return oS(t,r,n)};var gSe=pa;const xk=jt(gSe);var Gs=function(){return Gs=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt||a&&i&&u&&!s&&!l||n&&i&&u||!r&&u||!o)return 1;if(!n&&!a&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var USe=zSe,Hy=Dh,VSe=vf,WSe=Qh,qSe=MSe,HSe=NSe,KSe=hf,GSe=USe,QSe=Hh,XSe=nn;function YSe(e,t,r){t.length?t=Hy(t,function(a){return XSe(a)?function(i){return VSe(i,a.length===1?a[0]:a)}:a}):t=[QSe];var n=-1;t=Hy(t,KSe(WSe));var o=qSe(e,function(a,i,s){var u=Hy(t,function(l){return l(a)});return{criteria:u,index:++n,value:a}});return HSe(o,function(a,i){return GSe(a,i,r)})}var JSe=YSe,ZSe=JSe,_k=nn;function eEe(e,t,r,n){return e==null?[]:(_k(t)||(t=t==null?[]:[t]),r=n?void 0:r,_k(r)||(r=r==null?[]:[r]),ZSe(e,t,r))}var tEe=eEe;const rEe=jt(tEe);var nEe=g4;function oEe(e,t){var r=[];return nEe(e,function(n,o,a){t(n,o,a)&&r.push(n)}),r}var aEe=oEe,iEe=_I,sEe=aEe,lEe=Qh,uEe=nn;function cEe(e,t){var r=uEe(e)?iEe:sEe;return r(e,lEe(t))}var fEe=cEe;const dEe=jt(fEe);var pEe=NF,vEe=Qh,hEe=1;function mEe(e){return vEe(typeof e=="function"?e:pEe(e,hEe))}var gEe=mEe;const yEe=jt(gEe);function na(e){return Array.isArray?Array.isArray(e):x4(e)==="[object Array]"}const bEe=1/0;function xEe(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-bEe?"-0":t}function wEe(e){return e==null?"":xEe(e)}function bo(e){return typeof e=="string"}function y4(e){return typeof e=="number"}function _Ee(e){return e===!0||e===!1||OEe(e)&&x4(e)=="[object Boolean]"}function b4(e){return typeof e=="object"}function OEe(e){return b4(e)&&e!==null}function fn(e){return e!=null}function Ky(e){return!e.trim().length}function x4(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const SEe="Incorrect 'index' type",EEe=e=>`Invalid value for key ${e}`,CEe=e=>`Pattern length exceeds max of ${e}.`,PEe=e=>`Missing ${e} property in key`,$Ee=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ok=Object.prototype.hasOwnProperty;class kEe{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let o=w4(n);this._keys.push(o),this._keyMap[o.id]=o,r+=o.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function w4(e){let t=null,r=null,n=null,o=1,a=null;if(bo(e)||na(e))n=e,t=Sk(e),r=tx(e);else{if(!Ok.call(e,"name"))throw new Error(PEe("name"));const i=e.name;if(n=i,Ok.call(e,"weight")&&(o=e.weight,o<=0))throw new Error($Ee(i));t=Sk(i),r=tx(i),a=e.getFn}return{path:t,id:r,weight:o,src:n,getFn:a}}function Sk(e){return na(e)?e:e.split(".")}function tx(e){return na(e)?e.join("."):e}function REe(e,t){let r=[],n=!1;const o=(a,i,s)=>{if(fn(a))if(!i[s])r.push(a);else{let u=i[s];const l=a[u];if(!fn(l))return;if(s===i.length-1&&(bo(l)||y4(l)||_Ee(l)))r.push(wEe(l));else if(na(l)){n=!0;for(let c=0,f=l.length;ce.score===t.score?e.idx{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,bo(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();bo(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r{let i=o.getFn?o.getFn(t):this.getFn(t,o.path);if(fn(i)){if(na(i)){let s=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:l,value:c}=u.pop();if(fn(c))if(bo(c)&&!Ky(c)){let f={v:c,i:l,n:this.norm.get(c)};s.push(f)}else na(c)&&c.forEach((f,p)=>{u.push({nestedArrIndex:p,value:f})})}n.$[a]=s}else if(bo(i)&&!Ky(i)){let s={v:i,n:this.norm.get(i)};n.$[a]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function _4(e,t,{getFn:r=He.getFn,fieldNormWeight:n=He.fieldNormWeight}={}){const o=new aS({getFn:r,fieldNormWeight:n});return o.setKeys(e.map(w4)),o.setSources(t),o.create(),o}function NEe(e,{getFn:t=He.getFn,fieldNormWeight:r=He.fieldNormWeight}={}){const{keys:n,records:o}=e,a=new aS({getFn:t,fieldNormWeight:r});return a.setKeys(n),a.setIndexRecords(o),a}function Bd(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:o=He.distance,ignoreLocation:a=He.ignoreLocation}={}){const i=t/e.length;if(a)return i;const s=Math.abs(n-r);return o?i+s/o:s?1:i}function LEe(e=[],t=He.minMatchCharLength){let r=[],n=-1,o=-1,a=0;for(let i=e.length;a=t&&r.push([n,o]),n=-1)}return e[a-1]&&a-n>=t&&r.push([n,a-1]),r}const Si=32;function DEe(e,t,r,{location:n=He.location,distance:o=He.distance,threshold:a=He.threshold,findAllMatches:i=He.findAllMatches,minMatchCharLength:s=He.minMatchCharLength,includeMatches:u=He.includeMatches,ignoreLocation:l=He.ignoreLocation}={}){if(t.length>Si)throw new Error(CEe(Si));const c=t.length,f=e.length,p=Math.max(0,Math.min(n,f));let h=a,g=p;const b=s>1||u,w=b?Array(f):[];let x;for(;(x=e.indexOf(t,g))>-1;){let S=Bd(t,{currentLocation:x,expectedLocation:p,distance:o,ignoreLocation:l});if(h=Math.min(S,h),g=x+c,b){let C=0;for(;C=k;B-=1){let A=B-1,V=r[e.charAt(A)];if(b&&(w[A]=+!!V),I[B]=(I[B+1]<<1|1)&V,S&&(I[B]|=(m[B+1]|m[B])<<1|1|m[B+1]),I[B]&v&&(y=Bd(t,{errors:S,currentLocation:A,expectedLocation:p,distance:o,ignoreLocation:l}),y<=h)){if(h=y,g=A,g<=p)break;k=Math.max(1,2*p-g)}}if(Bd(t,{errors:S+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:l})>h)break;m=I}const _={isMatch:g>=0,score:Math.max(.001,y)};if(b){const S=LEe(w,s);S.length?u&&(_.indices=S):_.isMatch=!1}return _}function BEe(e){let t={};for(let r=0,n=e.length;r{this.chunks.push({pattern:p,alphabet:BEe(p),startIndex:h})},f=this.pattern.length;if(f>Si){let p=0;const h=f%Si,g=f-h;for(;p{const{isMatch:x,score:m,indices:y}=DEe(t,g,b,{location:o+w,distance:a,threshold:i,findAllMatches:s,minMatchCharLength:u,includeMatches:n,ignoreLocation:l});x&&(p=!0),f+=m,x&&y&&(c=[...c,...y])});let h={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(h.indices=c),h}}class ci{constructor(t){this.pattern=t}static isMultiMatch(t){return Ek(t,this.multiRegex)}static isSingleMatch(t){return Ek(t,this.singleRegex)}search(){}}function Ek(e,t){const r=e.match(t);return r?r[1]:null}class zEe extends ci{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class UEe extends ci{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class VEe extends ci{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class WEe extends ci{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class qEe extends ci{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class HEe extends ci{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class S4 extends ci{constructor(t,{location:r=He.location,threshold:n=He.threshold,distance:o=He.distance,includeMatches:a=He.includeMatches,findAllMatches:i=He.findAllMatches,minMatchCharLength:s=He.minMatchCharLength,isCaseSensitive:u=He.isCaseSensitive,ignoreLocation:l=He.ignoreLocation}={}){super(t),this._bitapSearch=new O4(t,{location:r,threshold:n,distance:o,includeMatches:a,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class E4 extends ci{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const o=[],a=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+a,o.push([n,r-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const rx=[zEe,E4,VEe,WEe,HEe,qEe,UEe,S4],Ck=rx.length,KEe=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,GEe="|";function QEe(e,t={}){return e.split(GEe).map(r=>{let n=r.trim().split(KEe).filter(a=>a&&!!a.trim()),o=[];for(let a=0,i=n.length;a!!(e[ph.AND]||e[ph.OR]),ZEe=e=>!!e[ax.PATH],eCe=e=>!na(e)&&b4(e)&&!ix(e),Pk=e=>({[ph.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function C4(e,t,{auto:r=!0}={}){const n=o=>{let a=Object.keys(o);const i=ZEe(o);if(!i&&a.length>1&&!ix(o))return n(Pk(o));if(eCe(o)){const u=i?o[ax.PATH]:a[0],l=i?o[ax.PATTERN]:o[u];if(!bo(l))throw new Error(EEe(u));const c={keyId:tx(u),pattern:l};return r&&(c.searcher=ox(l,t)),c}let s={children:[],operator:a[0]};return a.forEach(u=>{const l=o[u];na(l)&&l.forEach(c=>{s.children.push(n(c))})}),s};return ix(e)||(e=Pk(e)),n(e)}function tCe(e,{ignoreFieldNorm:t=He.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:o,norm:a,score:i})=>{const s=o?o.weight:null;n*=Math.pow(i===0&&s?Number.EPSILON:i,(s||1)*(t?1:a))}),r.score=n})}function rCe(e,t){const r=e.matches;t.matches=[],fn(r)&&r.forEach(n=>{if(!fn(n.indices)||!n.indices.length)return;const{indices:o,value:a}=n;let i={indices:o,value:a};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function nCe(e,t){t.score=e.score}function oCe(e,t,{includeMatches:r=He.includeMatches,includeScore:n=He.includeScore}={}){const o=[];return r&&o.push(rCe),n&&o.push(nCe),e.map(a=>{const{idx:i}=a,s={item:t[i],refIndex:i};return o.length&&o.forEach(u=>{u(a,s)}),s})}class hu{constructor(t,r={},n){this.options={...He,...r},this.options.useExtendedSearch,this._keyStore=new kEe(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof aS))throw new Error(SEe);this._myIndex=r||_4(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){fn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,o=this._docs.length;n-1&&(u=u.slice(0,r)),oCe(u,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(t){const r=ox(t,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:a,i,n:s})=>{if(!fn(a))return;const{isMatch:u,score:l,indices:c}=r.searchIn(a);u&&o.push({item:a,idx:i,matches:[{score:l,value:a,norm:s,indices:c}]})}),o}_searchLogical(t){const r=C4(t,this.options),n=(s,u,l)=>{if(!s.children){const{keyId:f,searcher:p}=s,h=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(u,f),searcher:p});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}const c=[];for(let f=0,p=s.children.length;f{if(fn(s)){let l=n(r,s,u);l.length&&(a[u]||(a[u]={idx:u,item:s,matches:[]},i.push(a[u])),l.forEach(({matches:c})=>{a[u].matches.push(...c)}))}}),i}_searchObjectList(t){const r=ox(t,this.options),{keys:n,records:o}=this._myIndex,a=[];return o.forEach(({$:i,i:s})=>{if(!fn(i))return;let u=[];n.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:i[c],searcher:r}))}),u.length&&a.push({idx:s,item:i,matches:u})}),a}_findMatches({key:t,value:r,searcher:n}){if(!fn(r))return[];let o=[];if(na(r))r.forEach(({v:a,i,n:s})=>{if(!fn(a))return;const{isMatch:u,score:l,indices:c}=n.searchIn(a);u&&o.push({score:l,key:t,value:a,idx:i,norm:s,indices:c})});else{const{v:a,n:i}=r,{isMatch:s,score:u,indices:l}=n.searchIn(a);s&&o.push({score:u,key:t,value:a,norm:i,indices:l})}return o}}hu.version="7.0.0";hu.createIndex=_4;hu.parseIndex=NEe;hu.config=He;hu.parseQuery=C4;JEe(YEe);const No=(e,t={})=>{const r="/api";return t.headers=t.headers||new Headers({Accept:"application/json"}),t.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),ZH(`${r}${e}`,t)},aCe=(e,t)=>{const r=new hu(e,{keys:Object.keys(t),includeScore:!0});for(const n of Object.values(t))console.log("$fuse",n,r.search(n));return e},iCe=(e,t)=>{const{fuse:r}=t;return delete t.fuse,Object.keys(t).length>0&&(e=dEe(e,yEe(t))),r!==void 0&&(e=aCe(e,r)),e},Gy=(e,t,r)=>{if(t===void 0&&r===void 0)return e;const{field:n,order:o}=r;return rEe(iCe(e,t),[n],[o.toLowerCase()])},sCe={getList:async(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i={sort:JSON.stringify([o,a]),range:JSON.stringify([(r-1)*n,r*n-1]),filter:JSON.stringify(t.filter)},s=`/${e}?${Ki.stringify(i)}`,{json:u}=await No(s);return console.log("$list",u,t),{data:Gy(u,t.filter,t.sort),total:u.length}},getOne:async(e,t)=>{const{json:r}=await No(`/${e}/${t.id}`);return{data:r}},getMany:async(e,t)=>{const r={filter:JSON.stringify({ids:t.ids})},n=`/${e}?${Ki.stringify(r)}`,{json:o}=await No(n);return{data:Gy(o,t.filter,t.sort)}},getManyReference:async(e,t)=>{const r=`/${e}/${t.id}/${t.target}`,{json:n}=await No(r);return{data:Gy(n,t.filter,t.sort),total:n.length}},create:async(e,t)=>(await No(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:t.data}),update:async(e,t)=>(await No(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{id:t.data.id,data:t.data}),updateMany:async(e,t)=>(await No(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:[]}),delete:async(e,t)=>{const r=`/${e}/batchDelete`;return await No(r,{method:"POST",body:JSON.stringify([t.id])}),{data:[]}},deleteMany:async(e,t)=>{const r=`/${e}/batchDelete`;return await No(r,{method:"POST",body:JSON.stringify(t.ids)}),{data:[]}}};var P4={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Ca,function(r){return function(n){var o={};function a(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=n,a.c=o,a.d=function(i,s,u){a.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},a.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},a.t=function(i,s){if(1&s&&(i=a(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)a.d(u,l,(function(c){return i[c]}).bind(null,l));return u},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=48)}([function(n,o){n.exports=r},function(n,o){var a=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=a)},function(n,o,a){var i=a(26)("wks"),s=a(17),u=a(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,o){var a=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(n,o,a){n.exports=!a(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var a={}.hasOwnProperty;n.exports=function(i,s){return a.call(i,s)}},function(n,o,a){var i=a(7),s=a(16);n.exports=a(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,o,a){var i=a(10),s=a(35),u=a(23),l=Object.defineProperty;o.f=a(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,o){n.exports=function(a){try{return!!a()}catch{return!0}}},function(n,o,a){var i=a(40),s=a(22);n.exports=function(u){return i(s(u))}},function(n,o,a){var i=a(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,o){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(n,o){n.exports={}},function(n,o,a){var i=a(39),s=a(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,o){n.exports=!0},function(n,o,a){var i=a(3),s=a(1),u=a(53),l=a(6),c=a(5),f=function(p,h,g){var b,w,x,m=p&f.F,y=p&f.G,O=p&f.S,v=p&f.P,_=p&f.B,S=p&f.W,C=y?s:s[h]||(s[h]={}),P=C.prototype,k=y?i:O?i[h]:(i[h]||{}).prototype;for(b in y&&(g=h),g)(w=!m&&k&&k[b]!==void 0)&&c(C,b)||(x=w?k[b]:g[b],C[b]=y&&typeof k[b]!="function"?g[b]:_&&w?u(x,i):S&&k[b]==x?function(R){var I=function(M,B,A){if(this instanceof R){switch(arguments.length){case 0:return new R;case 1:return new R(M);case 2:return new R(M,B)}return new R(M,B,A)}return R.apply(this,arguments)};return I.prototype=R.prototype,I}(x):v&&typeof x=="function"?u(Function.call,x):x,v&&((C.virtual||(C.virtual={}))[b]=x,p&f.R&&P&&!P[b]&&l(P,b,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(a,i){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:i}}},function(n,o){var a=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++a+i).toString(36))}},function(n,o,a){var i=a(22);n.exports=function(s){return Object(i(s))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,a){var i=a(52)(!0);a(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,o){var a=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:a)(s)}},function(n,o){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(n,o,a){var i=a(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var a={}.toString;n.exports=function(i){return a.call(i).slice(8,-1)}},function(n,o,a){var i=a(26)("keys"),s=a(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,o,a){var i=a(1),s=a(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:a(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,a){var i=a(7).f,s=a(5),u=a(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,o,a){a(62);for(var i=a(3),s=a(6),u=a(12),l=a(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,h){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),h===void 0?g:s(g,h)}},function(n,o,a){var i=a(5),s=a(9),u=a(57)(!1),l=a(25)("IE_PROTO");n.exports=function(c,f){var p,h=s(c),g=0,b=[];for(p in h)p!=l&&i(h,p)&&b.push(p);for(;f.length>g;)i(h,p=f[g++])&&(~u(b,p)||b.push(p));return b}},function(n,o,a){var i=a(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,o,a){var i=a(39),s=a(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,o,a){var i=a(24),s=a(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(h,g){try{return h[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,o){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},function(n,o){var a=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(a)}},function(n,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var i=w(a(49)),s=w(a(76)),u=w(a(81)),l=w(a(89)),c=w(a(93)),f=function(P){if(P&&P.__esModule)return P;var k={};if(P!=null)for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(k[R]=P[R]);return k.default=P,k}(a(94)),p=w(a(132)),h=w(a(133)),g=w(a(138)),b=a(139);function w(P){return P&&P.__esModule?P:{default:P}}var x=f.default,m=(0,l.default)(x),y=(0,g.default)(h.default,b.rgb2yuv,function(P){var k,R=(0,u.default)(P,3),I=R[0],M=R[1],B=R[2];return[(k=I,k<.25?1:k<.5?.9-k:1.1-k),M,B]},b.yuv2rgb,p.default),O=function(P){return function(k){return{className:[k.className,P.className].filter(Boolean).join(" "),style:(0,s.default)({},k.style||{},P.style||{})}}},v=function(P,k){var R=(0,l.default)(k);for(var I in P)R.indexOf(I)===-1&&R.push(I);return R.reduce(function(M,B){return M[B]=function(A,V){if(A===void 0)return V;if(V===void 0)return A;var q=A===void 0?"undefined":(0,i.default)(A),j=V===void 0?"undefined":(0,i.default)(V);switch(q){case"string":switch(j){case"string":return[V,A].filter(Boolean).join(" ");case"object":return O({className:A,style:V});case"function":return function(W){for(var K=arguments.length,ne=Array(K>1?K-1:0),re=1;re1?K-1:0),re=1;re1?K-1:0),re=1;re1?K-1:0),re=1;re1?K-1:0),re=1;re2?R-2:0),M=2;M3?k-3:0),I=3;I1&&arguments[1]!==void 0?arguments[1]:{},B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=M.defaultBase16,V=A===void 0?x:A,q=M.base16Themes,j=q===void 0?null:q,W=C(B,j);W&&(B=(0,s.default)({},W,B));var K=m.reduce(function(xe,ve){return xe[ve]=B[ve]||V[ve],xe},{}),ne=(0,l.default)(B).reduce(function(xe,ve){return m.indexOf(ve)===-1&&(xe[ve]=B[ve]),xe},{}),re=P(K),be=v(ne,re);return(0,c.default)(_,2).apply(void 0,[be].concat(R))},3),o.getBase16Theme=function(P,k){if(P&&P.extend&&(P=P.extend),typeof P=="string"){var R=P.split(":"),I=(0,u.default)(R,2),M=I[0],B=I[1];P=(k||{})[M]||f[M],B==="inverted"&&(P=S(P))}return P&&P.hasOwnProperty("base00")?P:void 0})},function(n,o,a){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(v,_,S){return Function.prototype.apply.call(v,_,S)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:function(v){return Object.getOwnPropertyNames(v)};var l=Number.isNaN||function(v){return v!=v};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(v,_){return new Promise(function(S,C){function P(R){v.removeListener(_,k),C(R)}function k(){typeof v.removeListener=="function"&&v.removeListener("error",P),S([].slice.call(arguments))}O(v,_,k,{once:!0}),_!=="error"&&function(R,I,M){typeof R.on=="function"&&O(R,"error",I,M)}(v,P,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function h(v){return v._maxListeners===void 0?c.defaultMaxListeners:v._maxListeners}function g(v,_,S,C){var P,k,R,I;if(p(S),(k=v._events)===void 0?(k=v._events=Object.create(null),v._eventsCount=0):(k.newListener!==void 0&&(v.emit("newListener",_,S.listener?S.listener:S),k=v._events),R=k[_]),R===void 0)R=k[_]=S,++v._eventsCount;else if(typeof R=="function"?R=k[_]=C?[S,R]:[R,S]:C?R.unshift(S):R.push(S),(P=h(v))>0&&R.length>P&&!R.warned){R.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=v,M.type=_,M.count=R.length,I=M,console&&console.warn&&console.warn(I)}return v}function b(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(v,_,S){var C={fired:!1,wrapFn:void 0,target:v,type:_,listener:S},P=b.bind(C);return P.listener=S,C.wrapFn=P,P}function x(v,_,S){var C=v._events;if(C===void 0)return[];var P=C[_];return P===void 0?[]:typeof P=="function"?S?[P.listener||P]:[P]:S?function(k){for(var R=new Array(k.length),I=0;I0&&(k=_[0]),k instanceof Error)throw k;var R=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw R.context=k,R}var I=P[v];if(I===void 0)return!1;if(typeof I=="function")u(I,this,_);else{var M=I.length,B=y(I,M);for(S=0;S=0;k--)if(S[k]===_||S[k].listener===_){R=S[k].listener,P=k;break}if(P<0)return this;P===0?S.shift():function(I,M){for(;M+1=0;C--)this.removeListener(v,_[C]);return this},c.prototype.listeners=function(v){return x(this,v,!0)},c.prototype.rawListeners=function(v){return x(this,v,!1)},c.listenerCount=function(v,_){return typeof v.listenerCount=="function"?v.listenerCount(_):m.call(v,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,o,a){n.exports.Dispatcher=a(140)},function(n,o,a){n.exports=a(142)},function(n,o,a){o.__esModule=!0;var i=l(a(50)),s=l(a(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}o.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,o,a){n.exports={default:a(51),__esModule:!0}},function(n,o,a){a(20),a(29),n.exports=a(30).f("iterator")},function(n,o,a){var i=a(21),s=a(22);n.exports=function(u){return function(l,c){var f,p,h=String(s(l)),g=i(c),b=h.length;return g<0||g>=b?u?"":void 0:(f=h.charCodeAt(g))<55296||f>56319||g+1===b||(p=h.charCodeAt(g+1))<56320||p>57343?u?h.charAt(g):f:u?h.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,o,a){var i=a(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,o){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(n,o,a){var i=a(38),s=a(16),u=a(28),l={};a(6)(l,a(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,o,a){var i=a(7),s=a(10),u=a(13);n.exports=a(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),h=p.length,g=0;h>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,o,a){var i=a(9),s=a(58),u=a(59);n.exports=function(l){return function(c,f,p){var h,g=i(c),b=s(g.length),w=u(p,b);if(l&&f!=f){for(;b>w;)if((h=g[w++])!=h)return!0}else for(;b>w;w++)if((l||w in g)&&g[w]===f)return l||w||0;return!l&&-1}}},function(n,o,a){var i=a(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,o,a){var i=a(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,o,a){var i=a(3).document;n.exports=i&&i.documentElement},function(n,o,a){var i=a(5),s=a(18),u=a(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,o,a){var i=a(63),s=a(64),u=a(12),l=a(9);n.exports=a(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(a,i){return{value:i,done:!!a}}},function(n,o,a){n.exports={default:a(66),__esModule:!0}},function(n,o,a){a(67),a(73),a(74),a(75),n.exports=a(1).Symbol},function(n,o,a){var i=a(3),s=a(5),u=a(4),l=a(15),c=a(37),f=a(68).KEY,p=a(8),h=a(26),g=a(28),b=a(17),w=a(2),x=a(30),m=a(31),y=a(69),O=a(70),v=a(10),_=a(11),S=a(18),C=a(9),P=a(23),k=a(16),R=a(38),I=a(71),M=a(72),B=a(32),A=a(7),V=a(13),q=M.f,j=A.f,W=I.f,K=i.Symbol,ne=i.JSON,re=ne&&ne.stringify,be=w("_hidden"),xe=w("toPrimitive"),ve={}.propertyIsEnumerable,we=h("symbol-registry"),$e=h("symbols"),me=h("op-symbols"),Oe=Object.prototype,Ae=typeof K=="function"&&!!B.f,je=i.QObject,Te=!je||!je.prototype||!je.prototype.findChild,ke=u&&p(function(){return R(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a!=7})?function(G,te,oe){var Pe=q(Oe,te);Pe&&delete Oe[te],j(G,te,oe),Pe&&G!==Oe&&j(Oe,te,Pe)}:j,Me=function(G){var te=$e[G]=R(K.prototype);return te._k=G,te},Ce=Ae&&typeof K.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof K},Qe=function(G,te,oe){return G===Oe&&Qe(me,te,oe),v(G),te=P(te,!0),v(oe),s($e,te)?(oe.enumerable?(s(G,be)&&G[be][te]&&(G[be][te]=!1),oe=R(oe,{enumerable:k(0,!1)})):(s(G,be)||j(G,be,k(1,{})),G[be][te]=!0),ke(G,te,oe)):j(G,te,oe)},rt=function(G,te){v(G);for(var oe,Pe=y(te=C(te)),Be=0,Ie=Pe.length;Ie>Be;)Qe(G,oe=Pe[Be++],te[oe]);return G},U=function(G){var te=ve.call(this,G=P(G,!0));return!(this===Oe&&s($e,G)&&!s(me,G))&&(!(te||!s(this,G)||!s($e,G)||s(this,be)&&this[be][G])||te)},Q=function(G,te){if(G=C(G),te=P(te,!0),G!==Oe||!s($e,te)||s(me,te)){var oe=q(G,te);return!oe||!s($e,te)||s(G,be)&&G[be][te]||(oe.enumerable=!0),oe}},Y=function(G){for(var te,oe=W(C(G)),Pe=[],Be=0;oe.length>Be;)s($e,te=oe[Be++])||te==be||te==f||Pe.push(te);return Pe},le=function(G){for(var te,oe=G===Oe,Pe=W(oe?me:C(G)),Be=[],Ie=0;Pe.length>Ie;)!s($e,te=Pe[Ie++])||oe&&!s(Oe,te)||Be.push($e[te]);return Be};Ae||(c((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var G=b(arguments.length>0?arguments[0]:void 0),te=function(oe){this===Oe&&te.call(me,oe),s(this,be)&&s(this[be],G)&&(this[be][G]=!1),ke(this,G,k(1,oe))};return u&&Te&&ke(Oe,G,{configurable:!0,set:te}),Me(G)}).prototype,"toString",function(){return this._k}),M.f=Q,A.f=Qe,a(41).f=I.f=Y,a(19).f=U,B.f=le,u&&!a(14)&&c(Oe,"propertyIsEnumerable",U,!0),x.f=function(G){return Me(w(G))}),l(l.G+l.W+l.F*!Ae,{Symbol:K});for(var fe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ue=0;fe.length>ue;)w(fe[ue++]);for(var de=V(w.store),Z=0;de.length>Z;)m(de[Z++]);l(l.S+l.F*!Ae,"Symbol",{for:function(G){return s(we,G+="")?we[G]:we[G]=K(G)},keyFor:function(G){if(!Ce(G))throw TypeError(G+" is not a symbol!");for(var te in we)if(we[te]===G)return te},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),l(l.S+l.F*!Ae,"Object",{create:function(G,te){return te===void 0?R(G):rt(R(G),te)},defineProperty:Qe,defineProperties:rt,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Y,getOwnPropertySymbols:le});var H=p(function(){B.f(1)});l(l.S+l.F*H,"Object",{getOwnPropertySymbols:function(G){return B.f(S(G))}}),ne&&l(l.S+l.F*(!Ae||p(function(){var G=K();return re([G])!="[null]"||re({a:G})!="{}"||re(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var te,oe,Pe=[G],Be=1;arguments.length>Be;)Pe.push(arguments[Be++]);if(oe=te=Pe[1],(_(te)||G!==void 0)&&!Ce(G))return O(te)||(te=function(Ie,_e){if(typeof oe=="function"&&(_e=oe.call(this,Ie,_e)),!Ce(_e))return _e}),Pe[1]=te,re.apply(ne,Pe)}}),K.prototype[xe]||a(6)(K.prototype,xe,K.prototype.valueOf),g(K,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,o,a){var i=a(17)("meta"),s=a(11),u=a(5),l=a(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!a(8)(function(){return f(Object.preventExtensions({}))}),h=function(b){l(b,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(b,w){if(!s(b))return typeof b=="symbol"?b:(typeof b=="string"?"S":"P")+b;if(!u(b,i)){if(!f(b))return"F";if(!w)return"E";h(b)}return b[i].i},getWeak:function(b,w){if(!u(b,i)){if(!f(b))return!0;if(!w)return!1;h(b)}return b[i].w},onFreeze:function(b){return p&&g.NEED&&f(b)&&!u(b,i)&&h(b),b}}},function(n,o,a){var i=a(13),s=a(32),u=a(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,h=f(l),g=u.f,b=0;h.length>b;)g.call(l,p=h[b++])&&c.push(p);return c}},function(n,o,a){var i=a(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,o,a){var i=a(9),s=a(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,o,a){var i=a(19),s=a(16),u=a(9),l=a(23),c=a(5),f=a(35),p=Object.getOwnPropertyDescriptor;o.f=a(4)?p:function(h,g){if(h=u(h),g=l(g,!0),f)try{return p(h,g)}catch{}if(c(h,g))return s(!i.f.call(h,g),h[g])}},function(n,o){},function(n,o,a){a(31)("asyncIterator")},function(n,o,a){a(31)("observable")},function(n,o,a){o.__esModule=!0;var i,s=a(77),u=(i=s)&&i.__esModule?i:{default:i};o.default=u.default||function(l){for(var c=1;cx;)for(var O,v=f(arguments[x++]),_=m?s(v).concat(m(v)):s(v),S=_.length,C=0;S>C;)O=_[C++],i&&!y.call(v,O)||(b[O]=v[O]);return b}:p},function(n,o,a){o.__esModule=!0;var i=u(a(82)),s=u(a(85));function u(l){return l&&l.__esModule?l:{default:l}}o.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var h=[],g=!0,b=!1,w=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(h.push(x.value),!p||h.length!==p);g=!0);}catch(y){b=!0,w=y}finally{try{!g&&m.return&&m.return()}finally{if(b)throw w}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,a){n.exports={default:a(83),__esModule:!0}},function(n,o,a){a(29),a(20),n.exports=a(84)},function(n,o,a){var i=a(42),s=a(2)("iterator"),u=a(12);n.exports=a(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,o,a){n.exports={default:a(86),__esModule:!0}},function(n,o,a){a(29),a(20),n.exports=a(87)},function(n,o,a){var i=a(10),s=a(88);n.exports=a(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,o,a){var i=a(42),s=a(2)("iterator"),u=a(12);n.exports=a(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,o,a){n.exports={default:a(90),__esModule:!0}},function(n,o,a){a(91),n.exports=a(1).Object.keys},function(n,o,a){var i=a(18),s=a(13);a(92)("keys",function(){return function(u){return s(i(u))}})},function(n,o,a){var i=a(15),s=a(1),u=a(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,o,a){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,b=/^0o[0-7]+$/i,w=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,y=typeof self=="object"&&self&&self.Object===Object&&self,O=m||y||Function("return this")();function v(Z,H,G){switch(G.length){case 0:return Z.call(H);case 1:return Z.call(H,G[0]);case 2:return Z.call(H,G[0],G[1]);case 3:return Z.call(H,G[0],G[1],G[2])}return Z.apply(H,G)}function _(Z,H){return!!(Z&&Z.length)&&function(G,te,oe){if(te!=te)return function(Ie,_e,Ue,qe){for(var ft=Ie.length,ht=Ue+-1;++ht-1}function S(Z){return Z!=Z}function C(Z,H){for(var G=Z.length,te=0;G--;)Z[G]===H&&te++;return te}function P(Z,H){for(var G=-1,te=Z.length,oe=0,Pe=[];++G2?R:void 0);function ve(Z){return fe(Z)?ne(Z):{}}function we(Z){return!(!fe(Z)||function(H){return!!V&&V in H}(Z))&&(function(H){var G=fe(H)?W.call(H):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(Z)||function(H){var G=!1;if(H!=null&&typeof H.toString!="function")try{G=!!(H+"")}catch{}return G}(Z)?K:g).test(function(H){if(H!=null){try{return q.call(H)}catch{}try{return H+""}catch{}}return""}(Z))}function $e(Z,H,G,te){for(var oe=-1,Pe=Z.length,Be=G.length,Ie=-1,_e=H.length,Ue=re(Pe-Be,0),qe=Array(_e+Ue),ft=!te;++Ie<_e;)qe[Ie]=H[Ie];for(;++oe1&&yt.reverse(),qe&&_e1?"& ":"")+H[te],H=H.join(G>2?", ":" "),Z.replace(l,`{ -/* [wrapped with `+H+`] */ -`)}function rt(Z,H){return!!(H=H??9007199254740991)&&(typeof Z=="number"||w.test(Z))&&Z>-1&&Z%1==0&&Z1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,o,a){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(P,k,R){switch(R.length){case 0:return P.call(k);case 1:return P.call(k,R[0]);case 2:return P.call(k,R[0],R[1]);case 3:return P.call(k,R[0],R[1],R[2])}return P.apply(k,R)}function f(P,k){for(var R=-1,I=k.length,M=P.length;++R-1&&M%1==0&&M<=9007199254740991}(I.length)&&!function(M){var B=function(A){var V=typeof A;return!!A&&(V=="object"||V=="function")}(M)?g.call(M):"";return B=="[object Function]"||B=="[object GeneratorFunction]"}(I)}(R)}(k)&&h.call(k,"callee")&&(!w.call(k,"callee")||g.call(k)=="[object Arguments]")}(P)||!!(x&&P&&P[x])}var O=Array.isArray,v,_,S,C=(_=function(P){var k=(P=function(M,B,A,V,q){var j=-1,W=M.length;for(A||(A=y),q||(q=[]);++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var T,F=w(D);if(z){var L=w(this).constructor;T=Reflect.construct(F,arguments,L)}else T=F.apply(this,arguments);return m(this,T)}}a.r(o);var O=a(0),v=a.n(O);function _(){var D=this.constructor.getDerivedStateFromProps(this.props,this.state);D!=null&&this.setState(D)}function S(D){this.setState((function(z){var T=this.constructor.getDerivedStateFromProps(D,z);return T??null}).bind(this))}function C(D,z){try{var T=this.props,F=this.state;this.props=D,this.state=z,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(T,F)}finally{this.props=T,this.state=F}}function P(D){var z=D.prototype;if(!z||!z.isReactComponent)throw new Error("Can only polyfill class components");if(typeof D.getDerivedStateFromProps!="function"&&typeof z.getSnapshotBeforeUpdate!="function")return D;var T=null,F=null,L=null;if(typeof z.componentWillMount=="function"?T="componentWillMount":typeof z.UNSAFE_componentWillMount=="function"&&(T="UNSAFE_componentWillMount"),typeof z.componentWillReceiveProps=="function"?F="componentWillReceiveProps":typeof z.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof z.componentWillUpdate=="function"?L="componentWillUpdate":typeof z.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),T!==null||F!==null||L!==null){var J=D.displayName||D.name,se=typeof D.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+J+" uses "+se+" but also contains the following legacy lifecycles:"+(T!==null?` - `+T:"")+(F!==null?` - `+F:"")+(L!==null?` - `+L:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof D.getDerivedStateFromProps=="function"&&(z.componentWillMount=_,z.componentWillReceiveProps=S),typeof z.getSnapshotBeforeUpdate=="function"){if(typeof z.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");z.componentWillUpdate=C;var ie=z.componentDidUpdate;z.componentDidUpdate=function(X,pe,Ee){var Ve=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ee;ie.call(this,X,pe,Ve)}}return D}function k(D,z){if(D==null)return{};var T,F,L={},J=Object.keys(D);for(F=0;F=0||(L[T]=D[T]);return L}function R(D,z){if(D==null)return{};var T,F,L=k(D,z);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);for(F=0;F=0||Object.prototype.propertyIsEnumerable.call(D,T)&&(L[T]=D[T])}return L}function I(D){var z=function(T){return{}.toString.call(T).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(D);return z==="number"&&(z=isNaN(D)?"nan":(0|D)!=D?"float":"integer"),z}_.__suppressDeprecationWarning=!0,S.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0;var M={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},B={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},A={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},V=a(45),q=function(D){var z=function(T){return{backgroundColor:T.base00,ellipsisColor:T.base09,braceColor:T.base07,expandedIcon:T.base0D,collapsedIcon:T.base0E,keyColor:T.base07,arrayKeyColor:T.base0C,objectSize:T.base04,copyToClipboard:T.base0F,copyToClipboardCheck:T.base0D,objectBorder:T.base02,dataTypes:{boolean:T.base0E,date:T.base0D,float:T.base0B,function:T.base0D,integer:T.base0F,string:T.base09,nan:T.base08,null:T.base0A,undefined:T.base05,regexp:T.base0A,background:T.base02},editVariable:{editIcon:T.base0E,cancelIcon:T.base09,removeIcon:T.base09,addIcon:T.base0E,checkIcon:T.base0E,background:T.base01,color:T.base0A,border:T.base07},addKeyModal:{background:T.base05,border:T.base04,color:T.base0A,labelColor:T.base01},validationFailure:{background:T.base09,iconColor:T.base01,fontColor:T.base01}}}(D);return{"app-container":{fontFamily:A.globalFontFamily,cursor:A.globalCursor,backgroundColor:z.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:z.ellipsisColor,fontSize:A.ellipsisFontSize,lineHeight:A.ellipsisLineHeight,cursor:A.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:A.braceCursor,fontWeight:A.braceFontWeight,color:z.braceColor},"expanded-icon":{color:z.expandedIcon},"collapsed-icon":{color:z.collapsedIcon},colon:{display:"inline-block",margin:A.keyMargin,color:z.keyColor,verticalAlign:"top"},objectKeyVal:function(T,F){return{style:c({paddingTop:A.keyValPaddingTop,paddingRight:A.keyValPaddingRight,paddingBottom:A.keyValPaddingBottom,borderLeft:A.keyValBorderLeft+" "+z.objectBorder,":hover":{paddingLeft:F.paddingLeft-1+"px",borderLeft:A.keyValBorderHover+" "+z.objectBorder}},F)}},"object-key-val-no-border":{padding:A.keyValPadding},"pushed-content":{marginLeft:A.pushedContentMarginLeft},variableValue:function(T,F){return{style:c({display:"inline-block",paddingRight:A.variableValuePaddingRight,position:"relative"},F)}},"object-name":{display:"inline-block",color:z.keyColor,letterSpacing:A.keyLetterSpacing,fontStyle:A.keyFontStyle,verticalAlign:A.keyVerticalAlign,opacity:A.keyOpacity,":hover":{opacity:A.keyOpacityHover}},"array-key":{display:"inline-block",color:z.arrayKeyColor,letterSpacing:A.keyLetterSpacing,fontStyle:A.keyFontStyle,verticalAlign:A.keyVerticalAlign,opacity:A.keyOpacity,":hover":{opacity:A.keyOpacityHover}},"object-size":{color:z.objectSize,borderRadius:A.objectSizeBorderRadius,fontStyle:A.objectSizeFontStyle,margin:A.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:A.dataTypeFontSize,marginRight:A.dataTypeMarginRight,opacity:A.datatypeOpacity},boolean:{display:"inline-block",color:z.dataTypes.boolean},date:{display:"inline-block",color:z.dataTypes.date},"date-value":{marginLeft:A.dateValueMarginLeft},float:{display:"inline-block",color:z.dataTypes.float},function:{display:"inline-block",color:z.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:z.dataTypes.integer},string:{display:"inline-block",color:z.dataTypes.string},nan:{display:"inline-block",color:z.dataTypes.nan,fontSize:A.nanFontSize,fontWeight:A.nanFontWeight,backgroundColor:z.dataTypes.background,padding:A.nanPadding,borderRadius:A.nanBorderRadius},null:{display:"inline-block",color:z.dataTypes.null,fontSize:A.nullFontSize,fontWeight:A.nullFontWeight,backgroundColor:z.dataTypes.background,padding:A.nullPadding,borderRadius:A.nullBorderRadius},undefined:{display:"inline-block",color:z.dataTypes.undefined,fontSize:A.undefinedFontSize,padding:A.undefinedPadding,borderRadius:A.undefinedBorderRadius,backgroundColor:z.dataTypes.background},regexp:{display:"inline-block",color:z.dataTypes.regexp},"copy-to-clipboard":{cursor:A.clipboardCursor},"copy-icon":{color:z.copyToClipboard,fontSize:A.iconFontSize,marginRight:A.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:z.copyToClipboardCheck,marginLeft:A.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:A.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:A.metaDataPadding},"icon-container":{display:"inline-block",width:A.iconContainerWidth},tooltip:{padding:A.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:z.editVariable.removeIcon,cursor:A.iconCursor,fontSize:A.iconFontSize,marginRight:A.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:z.editVariable.addIcon,cursor:A.iconCursor,fontSize:A.iconFontSize,marginRight:A.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:z.editVariable.editIcon,cursor:A.iconCursor,fontSize:A.iconFontSize,marginRight:A.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:A.iconCursor,color:z.editVariable.checkIcon,fontSize:A.iconFontSize,paddingRight:A.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:A.iconCursor,color:z.editVariable.cancelIcon,fontSize:A.iconFontSize,paddingRight:A.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:A.editInputMinWidth,borderRadius:A.editInputBorderRadius,backgroundColor:z.editVariable.background,color:z.editVariable.color,padding:A.editInputPadding,marginRight:A.editInputMarginRight,fontFamily:A.editInputFontFamily},"detected-row":{paddingTop:A.detectedRowPaddingTop},"key-modal-request":{position:A.addKeyCoverPosition,top:A.addKeyCoverPositionPx,left:A.addKeyCoverPositionPx,right:A.addKeyCoverPositionPx,bottom:A.addKeyCoverPositionPx,backgroundColor:A.addKeyCoverBackground},"key-modal":{width:A.addKeyModalWidth,backgroundColor:z.addKeyModal.background,marginLeft:A.addKeyModalMargin,marginRight:A.addKeyModalMargin,padding:A.addKeyModalPadding,borderRadius:A.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:z.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:z.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:z.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:z.addKeyModal.labelColor,fontSize:A.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:z.editVariable.addIcon,fontSize:A.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:z.ellipsisColor,fontSize:A.ellipsisFontSize,lineHeight:A.ellipsisLineHeight,cursor:A.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:z.validationFailure.fontColor,backgroundColor:z.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:z.validationFailure.iconColor,fontSize:A.iconFontSize,transform:"rotate(45deg)"}}};function j(D,z,T){return D||console.error("theme has not been set"),function(F){var L=M;return F!==!1&&F!=="none"||(L=B),Object(V.createStyling)(q,{defaultBase16:L})(F)}(D)(z,T)}var W=function(D){b(T,D);var z=y(T);function T(){return f(this,T),z.apply(this,arguments)}return h(T,[{key:"render",value:function(){var F=this.props,L=(F.rjvId,F.type_name),J=F.displayDataTypes,se=F.theme;return J?v.a.createElement("span",Object.assign({className:"data-type-label"},j(se,"data-type-label")),L):null}}]),T}(v.a.PureComponent),K=function(D){b(T,D);var z=y(T);function T(){return f(this,T),z.apply(this,arguments)}return h(T,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"boolean"),v.a.createElement(W,Object.assign({type_name:"bool"},F)),F.value?"true":"false")}}]),T}(v.a.PureComponent),ne=function(D){b(T,D);var z=y(T);function T(){return f(this,T),z.apply(this,arguments)}return h(T,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"date"),v.a.createElement(W,Object.assign({type_name:"date"},F)),v.a.createElement("span",Object.assign({className:"date-value"},j(F.theme,"date-value")),F.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),T}(v.a.PureComponent),re=function(D){b(T,D);var z=y(T);function T(){return f(this,T),z.apply(this,arguments)}return h(T,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"float"),v.a.createElement(W,Object.assign({type_name:"float"},F)),this.props.value)}}]),T}(v.a.PureComponent);function be(D,z){(z==null||z>D.length)&&(z=D.length);for(var T=0,F=new Array(z);T=D.length?{done:!0}:{done:!1,value:D[F++]}},e:function(X){throw X},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J,se=!0,ie=!1;return{s:function(){T=T.call(D)},n:function(){var X=T.next();return se=X.done,X},e:function(X){ie=!0,J=X},f:function(){try{se||T.return==null||T.return()}finally{if(ie)throw J}}}}function we(D){return function(z){if(Array.isArray(z))return be(z)}(D)||function(z){if(typeof Symbol<"u"&&z[Symbol.iterator]!=null||z["@@iterator"]!=null)return Array.from(z)}(D)||xe(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var $e=a(46),me=new(a(47)).Dispatcher,Oe=new(function(D){b(T,D);var z=y(T);function T(){var F;f(this,T);for(var L=arguments.length,J=new Array(L),se=0;seL&&(ie.style.cursor="pointer",this.state.collapsed&&(se=v.a.createElement("span",null,se.substring(0,L),v.a.createElement("span",j(J,"ellipsis")," ...")))),v.a.createElement("div",j(J,"string"),v.a.createElement(W,Object.assign({type_name:"string"},F)),v.a.createElement("span",Object.assign({className:"string-value"},ie,{onClick:this.toggleCollapsed}),'"',se,'"'))}}]),T}(v.a.PureComponent),rt=function(D){b(T,D);var z=y(T);function T(){return f(this,T),z.apply(this,arguments)}return h(T,[{key:"render",value:function(){return v.a.createElement("div",j(this.props.theme,"undefined"),"undefined")}}]),T}(v.a.PureComponent);function U(){return(U=Object.assign?Object.assign.bind():function(D){for(var z=1;z0?Ve:null,namespace:Ee.splice(0,Ee.length-1),existing_value:Ye,variable_removed:!1,key_name:null};I(Ye)==="object"?me.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ot,data:mt}):me.dispatch({name:"VARIABLE_ADDED",rjvId:ot,data:c(c({},mt),{},{new_value:[].concat(we(Ye),[null])})})}})))},F.getRemoveObject=function(ie){var X=F.props,pe=X.theme,Ee=(X.hover,X.namespace),Ve=X.name,Ye=X.src,ot=X.rjvId;if(Ee.length!==1)return v.a.createElement("span",{className:"click-to-remove",style:{display:ie?"inline-block":"none"}},v.a.createElement(di,Object.assign({className:"click-to-remove-icon"},j(pe,"removeVarIcon"),{onClick:function(){me.dispatch({name:"VARIABLE_REMOVED",rjvId:ot,data:{name:Ve,namespace:Ee.splice(0,Ee.length-1),existing_value:Ye,variable_removed:!0}})}})))},F.render=function(){var ie=F.props,X=ie.theme,pe=ie.onDelete,Ee=ie.onAdd,Ve=ie.enableClipboard,Ye=ie.src,ot=ie.namespace,Ge=ie.rowHovered;return v.a.createElement("div",Object.assign({},j(X,"object-meta-data"),{className:"object-meta-data",onClick:function(mt){mt.stopPropagation()}}),F.getObjectSize(),Ve?v.a.createElement(mu,{rowHovered:Ge,clickCallback:Ve,src:Ye,theme:X,namespace:ot}):null,Ee!==!1?F.getAddAttribute(Ge):null,pe!==!1?F.getRemoveObject(Ge):null)},F}return h(T)}(v.a.PureComponent);function yu(D){var z=D.parent_type,T=D.namespace,F=D.quotesOnKeys,L=D.theme,J=D.jsvRoot,se=D.name,ie=D.displayArrayKey,X=D.name?D.name:"";return!J||se!==!1&&se!==null?z=="array"?ie?v.a.createElement("span",Object.assign({},j(L,"array-key"),{key:T}),v.a.createElement("span",{className:"array-key"},X),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null):v.a.createElement("span",Object.assign({},j(L,"object-name"),{key:T}),v.a.createElement("span",{className:"object-key"},F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"'),v.a.createElement("span",null,X),F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"')),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null)}function Qf(D){var z=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(fi,Object.assign({},j(z,"expanded-icon"),{className:"expanded-icon"}));case"square":return v.a.createElement(wn,Object.assign({},j(z,"expanded-icon"),{className:"expanded-icon"}));default:return v.a.createElement(or,Object.assign({},j(z,"expanded-icon"),{className:"expanded-icon"}))}}function Xf(D){var z=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(Ur,Object.assign({},j(z,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v.a.createElement(zr,Object.assign({},j(z,"collapsed-icon"),{className:"collapsed-icon"}));default:return v.a.createElement(qn,Object.assign({},j(z,"collapsed-icon"),{className:"collapsed-icon"}))}}var vg=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Yf=function(D){b(T,D);var z=y(T);function T(F){var L;return f(this,T),(L=z.call(this,F)).toggleCollapsed=function(J){var se=[];for(var ie in L.state.expanded)se.push(L.state.expanded[ie]);se[J]=!se[J],L.setState({expanded:se})},L.state={expanded:[]},L}return h(T,[{key:"getExpandedIcon",value:function(F){var L=this.props,J=L.theme,se=L.iconStyle;return this.state.expanded[F]?v.a.createElement(Qf,{theme:J,iconStyle:se}):v.a.createElement(Xf,{theme:J,iconStyle:se})}},{key:"render",value:function(){var F=this,L=this.props,J=L.src,se=L.groupArraysAfterLength,ie=(L.depth,L.name),X=L.theme,pe=L.jsvRoot,Ee=L.namespace,Ve=(L.parent_type,R(L,vg)),Ye=0,ot=5*this.props.indentWidth;pe||(Ye=5*this.props.indentWidth);var Ge=se,mt=Math.ceil(J.length/Ge);return v.a.createElement("div",Object.assign({className:"object-key-val"},j(X,pe?"jsv-root":"objectKeyVal",{paddingLeft:Ye})),v.a.createElement(yu,this.props),v.a.createElement("span",null,v.a.createElement(gu,Object.assign({size:J.length},this.props))),we(Array(mt)).map(function($t,st){return v.a.createElement("div",Object.assign({key:st,className:"object-key-val array-group"},j(X,"objectKeyVal",{marginLeft:6,paddingLeft:ot})),v.a.createElement("span",j(X,"brace-row"),v.a.createElement("div",Object.assign({className:"icon-container"},j(X,"icon-container"),{onClick:function(Rr){F.toggleCollapsed(st)}}),F.getExpandedIcon(st)),F.state.expanded[st]?v.a.createElement(Jf,Object.assign({key:ie+st,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Ge,index_offset:st*Ge,src:J.slice(st*Ge,st*Ge+Ge),namespace:Ee,type:"array",parent_type:"array_group",theme:X},Ve)):v.a.createElement("span",Object.assign({},j(X,"brace"),{onClick:function(Rr){F.toggleCollapsed(st)},className:"array-group-brace"}),"[",v.a.createElement("div",Object.assign({},j(X,"array-group-meta-data"),{className:"array-group-meta-data"}),v.a.createElement("span",Object.assign({className:"object-size"},j(X,"object-size")),st*Ge," - ",st*Ge+Ge>J.length?J.length:st*Ge+Ge)),"]")))}))}}]),T}(v.a.PureComponent),Xe=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],cr=function(D){b(T,D);var z=y(T);function T(F){var L;f(this,T),(L=z.call(this,F)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){Ae.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(se,ie,X){return v.a.createElement("div",{className:"pushed-content object-container"},v.a.createElement("div",Object.assign({className:"object-content"},j(L.props.theme,"pushed-content")),L.renderObjectContents(ie,X)))},L.getEllipsis=function(){return L.state.size===0?null:v.a.createElement("div",Object.assign({},j(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(se){var ie=L.props,X=(ie.rjvId,ie.theme,L.state),pe=X.size,Ee=X.hovered;return v.a.createElement(gu,Object.assign({rowHovered:Ee,size:pe},L.props))},L.renderObjectContents=function(se,ie){var X,pe=L.props,Ee=pe.depth,Ve=pe.parent_type,Ye=pe.index_offset,ot=pe.groupArraysAfterLength,Ge=pe.namespace,mt=L.state.object_type,$t=[],st=Object.keys(se||{});return L.props.sortKeys&&mt!=="array"&&(st=st.sort()),st.forEach(function(Rr){if(X=new T4(Rr,se[Rr]),Ve==="array_group"&&Ye&&(X.name=parseInt(X.name)+Ye),se.hasOwnProperty(Rr))if(X.type==="object")$t.push(v.a.createElement(Jf,Object.assign({key:X.name,depth:Ee+1,name:X.name,src:X.value,namespace:Ge.concat(X.name),parent_type:mt},ie)));else if(X.type==="array"){var Ao=Jf;ot&&X.value.length>ot&&(Ao=Yf),$t.push(v.a.createElement(Ao,Object.assign({key:X.name,depth:Ee+1,name:X.name,src:X.value,namespace:Ge.concat(X.name),type:"array",parent_type:mt},ie)))}else $t.push(v.a.createElement(Gf,Object.assign({key:X.name+"_"+Ge,variable:X,singleIndent:5,namespace:Ge,type:L.props.type},ie)))}),$t};var J=T.getState(F);return L.state=c(c({},J),{},{prevProps:{}}),L}return h(T,[{key:"getBraceStart",value:function(F,L){var J=this,se=this.props,ie=se.src,X=se.theme,pe=se.iconStyle;if(se.parent_type==="array_group")return v.a.createElement("span",null,v.a.createElement("span",j(X,"brace"),F==="array"?"[":"{"),L?this.getObjectMetaData(ie):null);var Ee=L?Qf:Xf;return v.a.createElement("span",null,v.a.createElement("span",Object.assign({onClick:function(Ve){J.toggleCollapsed()}},j(X,"brace-row")),v.a.createElement("div",Object.assign({className:"icon-container"},j(X,"icon-container")),v.a.createElement(Ee,{theme:X,iconStyle:pe})),v.a.createElement(yu,this.props),v.a.createElement("span",j(X,"brace"),F==="array"?"[":"{")),L?this.getObjectMetaData(ie):null)}},{key:"render",value:function(){var F=this,L=this.props,J=L.depth,se=L.src,ie=(L.namespace,L.name,L.type,L.parent_type),X=L.theme,pe=L.jsvRoot,Ee=L.iconStyle,Ve=R(L,Xe),Ye=this.state,ot=Ye.object_type,Ge=Ye.expanded,mt={};return pe||ie==="array_group"?ie==="array_group"&&(mt.borderLeft=0,mt.display="inline"):mt.paddingLeft=5*this.props.indentWidth,v.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return F.setState(c(c({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(c(c({},F.state),{},{hovered:!1}))}},j(X,pe?"jsv-root":"objectKeyVal",mt)),this.getBraceStart(ot,Ge),Ge?this.getObjectContent(J,se,c({theme:X,iconStyle:Ee},Ve)):this.getEllipsis(),v.a.createElement("span",{className:"brace-row"},v.a.createElement("span",{style:c(c({},j(X,"brace").style),{},{paddingLeft:Ge?"3px":"0px"})},ot==="array"?"]":"}"),Ge?null:this.getObjectMetaData(se)))}}],[{key:"getDerivedStateFromProps",value:function(F,L){var J=L.prevProps;return F.src!==J.src||F.collapsed!==J.collapsed||F.name!==J.name||F.namespace!==J.namespace||F.rjvId!==J.rjvId?c(c({},T.getState(F)),{},{prevProps:F}):null}}]),T}(v.a.PureComponent);cr.getState=function(D){var z=Object.keys(D.src).length,T=(D.collapsed===!1||D.collapsed!==!0&&D.collapsed>D.depth)&&(!D.shouldCollapse||D.shouldCollapse({name:D.name,src:D.src,type:I(D.src),namespace:D.namespace})===!1)&&z!==0;return{expanded:Ae.get(D.rjvId,D.namespace,"expanded",T),object_type:D.type==="array"?"array":"object",parent_type:D.type==="array"?"array":"object",size:z,hovered:!1}};var T4=h(function D(z,T){f(this,D),this.name=z,this.value=T,this.type=I(T)});P(cr);var Jf=cr,I4=function(D){b(T,D);var z=y(T);function T(){var F;f(this,T);for(var L=arguments.length,J=new Array(L),se=0;seVe.groupArraysAfterLength&&(ot=Yf),v.a.createElement("div",{className:"pretty-json-container object-container"},v.a.createElement("div",{className:"object-content"},v.a.createElement(ot,Object.assign({namespace:Ye,depth:0,jsvRoot:!0},Ve))))},F}return h(T)}(v.a.PureComponent),j4=function(D){b(T,D);var z=y(T);function T(F){var L;return f(this,T),(L=z.call(this,F)).closeModal=function(){me.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:F.input?F.input:""},L}return h(T,[{key:"render",value:function(){var F=this,L=this.props,J=L.theme,se=L.rjvId,ie=L.isValid,X=this.state.input,pe=ie(X);return v.a.createElement("div",Object.assign({className:"key-modal-request"},j(J,"key-modal-request"),{onClick:this.closeModal}),v.a.createElement("div",Object.assign({},j(J,"key-modal"),{onClick:function(Ee){Ee.stopPropagation()}}),v.a.createElement("div",j(J,"key-modal-label"),"Key Name:"),v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("input",Object.assign({},j(J,"key-modal-input"),{className:"key-modal-input",ref:function(Ee){return Ee&&Ee.focus()},spellCheck:!1,value:X,placeholder:"...",onChange:function(Ee){F.setState({input:Ee.target.value})},onKeyPress:function(Ee){pe&&Ee.key==="Enter"?F.submit():Ee.key==="Escape"&&F.closeModal()}})),pe?v.a.createElement(jo,Object.assign({},j(J,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Ee){return F.submit()}})):null),v.a.createElement("span",j(J,"key-modal-cancel"),v.a.createElement(va,Object.assign({},j(J,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){me.dispatch({rjvId:se,name:"RESET"})}})))))}}]),T}(v.a.PureComponent),A4=function(D){b(T,D);var z=y(T);function T(){var F;f(this,T);for(var L=arguments.length,J=new Array(L),se=0;se{const r=document.createElement("a");r.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${e}`)),r.setAttribute("download",t),r.click()},cCe=e=>{uCe(JSON.stringify(e,null," "),"export.json")},fCe=()=>N.jsx(QO,{exporter:cCe,children:N.jsxs(cg,{rowClick:"show",children:[N.jsx(Qo,{source:"id",sortable:!0}),N.jsx(Qo,{source:"service",sortable:!0}),N.jsx(Qo,{source:"method",sortable:!0}),N.jsx(vl,{source:"headers",sortable:!1,reactJsonOptions:{theme:In()}}),N.jsx(vl,{source:"input",sortable:!1,reactJsonOptions:{theme:In()}}),N.jsx(vl,{source:"output",sortable:!1,reactJsonOptions:{theme:In()}})]})}),dCe=()=>N.jsx(e5,{children:N.jsxs(UO,{children:[N.jsx(qa,{source:"service"}),N.jsx(qa,{source:"method"}),N.jsx(hl,{source:"headers",reactJsonOptions:{theme:In()}}),N.jsx(hl,{source:"input",reactJsonOptions:{theme:In()}}),N.jsx(hl,{source:"output",reactJsonOptions:{theme:In()}})]})}),pCe=()=>N.jsx(a5,{children:N.jsxs(UO,{children:[N.jsx(qa,{source:"id"}),N.jsx(qa,{source:"service"}),N.jsx(qa,{source:"method"}),N.jsx(hl,{source:"headers",reactJsonOptions:{theme:In()}}),N.jsx(hl,{source:"input",reactJsonOptions:{theme:In()}}),N.jsx(hl,{source:"output",reactJsonOptions:{theme:In()}})]})}),vCe=()=>N.jsx(f5,{children:N.jsxs(b5,{children:[N.jsx(Qo,{source:"id",sortable:!0}),N.jsx(Qo,{source:"service",sortable:!0}),N.jsx(Qo,{source:"method",sortable:!0}),N.jsx(vl,{source:"headers",sortable:!1,reactJsonOptions:{theme:In()}}),N.jsx(vl,{source:"input",sortable:!1,reactJsonOptions:{theme:In()}}),N.jsx(vl,{source:"output",sortable:!1,reactJsonOptions:{theme:In()}})]})}),In=()=>{const[e]=ag();return e==="dark"?"monokai":"rjv-default"},hCe=()=>N.jsx(QO,{children:N.jsxs(cg,{bulkActionButtons:!1,children:[N.jsx(Qo,{source:"id"}),N.jsx(Qo,{source:"package"}),N.jsx(Qo,{source:"name"}),N.jsx(O1e,{source:"methods",sortable:!1,children:N.jsx(h5,{linkType:!1,children:N.jsx(C1e,{source:"name"})})})]})});var iS={},mCe=tt;Object.defineProperty(iS,"__esModule",{value:!0});var k4=iS.default=void 0,gCe=mCe(it()),yCe=N;k4=iS.default=(0,gCe.default)((0,yCe.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var sS={},bCe=tt;Object.defineProperty(sS,"__esModule",{value:!0});var R4=sS.default=void 0,xCe=bCe(it()),wCe=N;R4=sS.default=(0,xCe.default)((0,wCe.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const _Ce={...L3,palette:{primary:iee,secondary:see,error:yi,contrastThreshold:3,tonalOffset:.2}},OCe=()=>N.jsxs(sO,{toolbar:N.jsx(D3,{}),children:[N.jsx(F3,{}),N.jsx(zt,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),SCe=e=>N.jsx(Z3,{...e,appBar:OCe}),ECe=()=>N.jsxs(wSe,{disableTelemetry:!0,dataProvider:sCe,layout:SCe,theme:_Ce,darkTheme:Tve,children:[N.jsx(Cv,{icon:R4,name:"services",list:hCe}),N.jsx(Cv,{icon:k4,name:"stubs",list:fCe,edit:pCe,show:vCe,create:dCe})]});Xy.createRoot(document.getElementById("root")).render(N.jsx(ce.StrictMode,{children:N.jsx(ECe,{})})); diff --git a/dist/index.html b/dist/index.html index 6d41c7e..08c7790 100644 --- a/dist/index.html +++ b/dist/index.html @@ -111,7 +111,7 @@ href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet" /> - + diff --git a/package-lock.json b/package-lock.json index c795a36..b49794d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "fuse.js": "^7.0", "prettier": "^3.3", "react": "^18.3", - "react-admin": "^4.16", + "react-admin": "^5.0", "react-dom": "^18.3", "typescript": "^5.4", "vite": "^5.3" @@ -1572,6 +1572,30 @@ "win32" ] }, + "node_modules/@tanstack/query-core": { + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.45.0.tgz", + "integrity": "sha512-RVfIZQmFUTdjhSAAblvueimfngYyfN6HlwaJUPK71PKd7yi43Vs1S/rdimmZedPWX/WGppcq/U1HOj7O7FwYxw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.45.1", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.45.1.tgz", + "integrity": "sha512-mYYfJujKg2kxmkRRjA6nn4YKG3ITsKuH22f1kteJ5IuVQqgKUgbaSQfYwVP0gBS05mhwxO03HVpD0t7BMN7WOA==", + "dependencies": { + "@tanstack/query-core": "5.45.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18.0.0" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -2170,14 +2194,6 @@ "resolved": "https://registry.npmjs.org/base16/-/base16-1.0.0.tgz", "integrity": "sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==" }, - "node_modules/big-integer": { - "version": "1.6.52", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", - "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", - "engines": { - "node": ">=0.6" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2198,21 +2214,6 @@ "node": ">=8" } }, - "node_modules/broadcast-channel": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-3.7.0.tgz", - "integrity": "sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==", - "dependencies": { - "@babel/runtime": "^7.7.2", - "detect-node": "^2.1.0", - "js-sha3": "0.8.0", - "microseconds": "0.2.0", - "nano-time": "1.0.0", - "oblivious-set": "1.0.0", - "rimraf": "3.0.2", - "unload": "2.2.0" - } - }, "node_modules/browserslist": { "version": "4.23.0", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", @@ -2428,18 +2429,12 @@ } }, "node_modules/date-fns": { - "version": "2.30.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", - "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", - "dependencies": { - "@babel/runtime": "^7.21.0" - }, - "engines": { - "node": ">=0.11" - }, + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz", + "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==", "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" } }, "node_modules/debug": { @@ -2503,11 +2498,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -3081,9 +3071,9 @@ } }, "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" }, "node_modules/fast-deep-equal": { "version": "3.1.3", @@ -3173,14 +3163,14 @@ } }, "node_modules/file-selector": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.5.0.tgz", - "integrity": "sha512-s8KNnmIDTBoD0p9uJ9uD0XY38SCeBOtj0UMXyQSLg1Ypfrfj8+dAvwsLjYQkQ2GjhVtp2HrnF5cJzMhBjfD8HA==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.6.0.tgz", + "integrity": "sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==", "dependencies": { - "tslib": "^2.0.3" + "tslib": "^2.4.0" }, "engines": { - "node": ">= 10" + "node": ">= 12" } }, "node_modules/fill-range": { @@ -3520,14 +3510,6 @@ "node": ">= 0.4" } }, - "node_modules/history": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz", - "integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==", - "dependencies": { - "@babel/runtime": "^7.7.6" - } - }, "node_modules/hoist-non-react-statics": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", @@ -3573,12 +3555,12 @@ } }, "node_modules/inflection": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", - "integrity": "sha512-lRy4DxuIFWXlJU7ed8UiTJOSTqStqYdEb4CEbtXfNbkdj3nH1L+reUWiE10VWcJS2yR7tge8Z74pJjtBjNwj0w==", - "engines": [ - "node >= 0.4.0" - ] + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-3.0.0.tgz", + "integrity": "sha512-1zEJU1l19SgJlmwqsEyFTbScw/tkMHFenUo//Y0i+XEP83gDFdMvPizAD/WGcE+l1ku12PcTVHQhO6g5E0UCMw==", + "engines": { + "node": ">=18.0.0" + } }, "node_modules/inflight": { "version": "1.0.6", @@ -3955,11 +3937,6 @@ "set-function-name": "^2.0.1" } }, - "node_modules/js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -4118,20 +4095,6 @@ "yallist": "^3.0.2" } }, - "node_modules/match-sorter": { - "version": "6.3.4", - "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.4.tgz", - "integrity": "sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==", - "dependencies": { - "@babel/runtime": "^7.23.8", - "remove-accents": "0.5.0" - } - }, - "node_modules/match-sorter/node_modules/remove-accents": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.5.0.tgz", - "integrity": "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==" - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -4152,11 +4115,6 @@ "node": ">=8.6" } }, - "node_modules/microseconds": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/microseconds/-/microseconds-0.2.0.tgz", - "integrity": "sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==" - }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -4173,14 +4131,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "node_modules/nano-time": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/nano-time/-/nano-time-1.0.0.tgz", - "integrity": "sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==", - "dependencies": { - "big-integer": "^1.6.16" - } - }, "node_modules/nanoid": { "version": "3.3.7", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", @@ -4347,11 +4297,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/oblivious-set": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.0.0.tgz", - "integrity": "sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==" - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -4610,98 +4555,50 @@ ] }, "node_modules/ra-core": { - "version": "4.16.19", - "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-4.16.19.tgz", - "integrity": "sha512-1qNuLGaGSHYv5esqJcu7n/PeMKTBXA3JXzjQPAPDK9dBsuWC1IXx9MilivANwh8doYbpFfqsX8VJyW1aqIG1Pg==", - "dependencies": { - "clsx": "^1.1.1", - "date-fns": "^2.19.0", - "eventemitter3": "^4.0.7", - "inflection": "~1.12.0", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.0.1.tgz", + "integrity": "sha512-fmMKe9gPGrmUlFLUrJliOGBIdQwpLaXgqsEyyeETcKJrQkK0nha+YW05NrY/axm9vvbDCSxij0H6phMjISImNQ==", + "dependencies": { + "@tanstack/react-query": "^5.8.4", + "clsx": "^2.1.1", + "date-fns": "^3.6.0", + "eventemitter3": "^5.0.1", + "hotscript": "^1.0.12", + "inflection": "^3.0.0", "jsonexport": "^3.2.0", "lodash": "~4.17.5", - "prop-types": "^15.6.1", - "query-string": "^7.1.1", - "react-is": "^17.0.2", - "react-query": "^3.32.1" + "query-string": "^7.1.3", + "react-error-boundary": "^4.0.13", + "react-is": "^18.2.0" }, "peerDependencies": { - "history": "^5.1.0", - "react": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-hook-form": "^7.43.9", - "react-router": "^6.1.0", - "react-router-dom": "^6.1.0" - } - }, - "node_modules/ra-core/node_modules/clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", - "engines": { - "node": ">=6" + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0", + "react-hook-form": "^7.52.0", + "react-router": "^6.22.0", + "react-router-dom": "^6.22.0" } }, "node_modules/ra-core/node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/ra-i18n-polyglot": { - "version": "4.16.19", - "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-4.16.19.tgz", - "integrity": "sha512-gRnY0fUn61cVtR36Qf5mgULXnQALRrjZ8Hnp7w+U9YvtrzapNTuIyZem3Tp0QL+/jRgxeqlQW7dqPYdV0bC7vg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.0.1.tgz", + "integrity": "sha512-tfjEPRnrpvGJ72ZFIUxUJAmHprk78Xj9VIYsX/Vpuq6a1tCWJyrnlOIriPUTkaLHXex0PuVvrKw6R8SZoVLY/w==", "dependencies": { "node-polyglot": "^2.2.2", - "ra-core": "^4.16.19" + "ra-core": "^5.0.1" } }, "node_modules/ra-language-english": { - "version": "4.16.19", - "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-4.16.19.tgz", - "integrity": "sha512-k8ykj7bJ5UEAebB+SsOAcpyb6gUlsNkJ8N0+lDAezpilBaHahDQaYtNKA+GkoZnU8rIKYMYLttcl3VdCllkG2g==", - "dependencies": { - "ra-core": "^4.16.19" - } - }, - "node_modules/ra-ui-materialui": { - "version": "4.16.19", - "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-4.16.19.tgz", - "integrity": "sha512-EyalFIUq9oUQ8N/vAeQFlrBaRTU/pMPAHvmfPHUxL5ajcQaSii6XKhRgT9S+YOec/XAU0DDaTjH9oJm0H3UgNA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.0.1.tgz", + "integrity": "sha512-bm/5Al2X32GgBtrCgAg1SL6KGGWyGozIupB/D0KQ8ol4lMYXXAaKIFwWgc08IJ+p+mecu680nW8UpIkNdl+cqA==", "dependencies": { - "autosuggest-highlight": "^3.1.1", - "clsx": "^1.1.1", - "css-mediaquery": "^0.1.2", - "dompurify": "^2.4.3", - "hotscript": "^1.0.12", - "inflection": "~1.12.0", - "jsonexport": "^3.2.0", - "lodash": "~4.17.5", - "prop-types": "^15.7.0", - "query-string": "^7.1.1", - "react-dropzone": "^12.0.4", - "react-error-boundary": "^3.1.4", - "react-query": "^3.32.1", - "react-transition-group": "^4.4.1" - }, - "peerDependencies": { - "@mui/icons-material": "^5.0.1", - "@mui/material": "^5.0.2", - "ra-core": "^4.0.0", - "react": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-hook-form": "*", - "react-is": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-router": "^6.1.0", - "react-router-dom": "^6.1.0" - } - }, - "node_modules/ra-ui-materialui/node_modules/clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", - "engines": { - "node": ">=6" + "ra-core": "^5.0.1" } }, "node_modules/react": { @@ -4716,28 +4613,64 @@ } }, "node_modules/react-admin": { - "version": "4.16.19", - "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-4.16.19.tgz", - "integrity": "sha512-aFUPEbHFaDbfT3158moam2bchiQHE5C1f4yljSV7/0FukFkKa0ihS2hosPchqzilPEOS41ve0krYNEnHCPlHxw==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.0.1.tgz", + "integrity": "sha512-lW1bJspOnY2AErhY1mCm2f2oF7ajmRGdT0nb8QU/7ziDbUYAgtioxs0r2wAXX//x4oFnR3zh4SnsE/4AlURNzg==", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", - "@mui/icons-material": "^5.0.1", - "@mui/material": "^5.0.2", - "history": "^5.1.0", - "ra-core": "^4.16.19", - "ra-i18n-polyglot": "^4.16.19", - "ra-language-english": "^4.16.19", - "ra-ui-materialui": "^4.16.19", - "react-hook-form": "^7.43.9", - "react-router": "^6.1.0", - "react-router-dom": "^6.1.0" + "@mui/icons-material": "^5.15.20", + "@mui/material": "^5.15.20", + "ra-core": "^5.0.1", + "ra-i18n-polyglot": "^5.0.1", + "ra-language-english": "^5.0.1", + "ra-ui-materialui": "^5.0.1", + "react-hook-form": "^7.52.0", + "react-router": "^6.22.0", + "react-router-dom": "^6.22.0" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/react-admin/node_modules/ra-ui-materialui": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.0.1.tgz", + "integrity": "sha512-RSfR9B7KaMRAwgXVbCToX7MRikNW8Ffoi1AqXfsrmtunurtc+smitiDtO45pk5y/F7F3JkR5sayegMj54p3R1A==", + "dependencies": { + "@tanstack/react-query": "^5.8.4", + "autosuggest-highlight": "^3.1.1", + "clsx": "^2.1.1", + "css-mediaquery": "^0.1.2", + "dompurify": "^2.4.3", + "hotscript": "^1.0.12", + "inflection": "^3.0.0", + "jsonexport": "^3.2.0", + "lodash": "~4.17.5", + "query-string": "^7.1.3", + "react-dropzone": "^14.2.3", + "react-error-boundary": "^4.0.13", + "react-transition-group": "^4.4.5" }, "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0" + "@mui/icons-material": "^5.15.20", + "@mui/material": "^5.15.20", + "ra-core": "^5.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0", + "react-hook-form": "*", + "react-is": "^18.0.0", + "react-router": "^6.22.0", + "react-router-dom": "^6.22.0" } }, + "node_modules/react-admin/node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "peer": true + }, "node_modules/react-base16-styling": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz", @@ -4762,32 +4695,28 @@ } }, "node_modules/react-dropzone": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-12.1.0.tgz", - "integrity": "sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog==", + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.2.3.tgz", + "integrity": "sha512-O3om8I+PkFKbxCukfIR3QAGftYXDZfOE2N1mr/7qebQJHs7U+/RSL/9xomJNpRg9kM5h9soQSdf0Gc7OHF5Fug==", "dependencies": { "attr-accept": "^2.2.2", - "file-selector": "^0.5.0", + "file-selector": "^0.6.0", "prop-types": "^15.8.1" }, "engines": { "node": ">= 10.13" }, "peerDependencies": { - "react": ">= 16.8" + "react": ">= 16.8 || 18.0.0" } }, "node_modules/react-error-boundary": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz", - "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==", + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.13.tgz", + "integrity": "sha512-b6PwbdSv8XeOSYvjt8LpgpKrZ0yGdtZokYwkwV2wlcZbxgopHX/hgPl5VgpnoVOWd868n1hktM8Qm4b+02MiLQ==", "dependencies": { "@babel/runtime": "^7.12.5" }, - "engines": { - "node": ">=10", - "npm": ">=6" - }, "peerDependencies": { "react": ">=16.13.1" } @@ -4817,31 +4746,6 @@ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" }, - "node_modules/react-query": { - "version": "3.39.3", - "resolved": "https://registry.npmjs.org/react-query/-/react-query-3.39.3.tgz", - "integrity": "sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g==", - "dependencies": { - "@babel/runtime": "^7.5.5", - "broadcast-channel": "^3.4.1", - "match-sorter": "^6.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - } - } - }, "node_modules/react-refresh": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", @@ -5542,15 +5446,6 @@ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" }, - "node_modules/unload": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/unload/-/unload-2.2.0.tgz", - "integrity": "sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==", - "dependencies": { - "@babel/runtime": "^7.6.2", - "detect-node": "^2.0.4" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", diff --git a/package.json b/package.json index ab4c85e..9d90b17 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@bavix/react-admin-json-view": "^2.1", "fuse.js": "^7.0", "react": "^18.3", - "react-admin": "^4.16", + "react-admin": "^5.0", "react-dom": "^18.3", "@types/lodash": "^4.17", "@types/node": "^20.14",